first commit
This commit is contained in:
49
packages/blocks/src/server.ts
Normal file
49
packages/blocks/src/server.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Server-safe exports for @emdashcms/blocks.
|
||||
*
|
||||
* Use this entry point in plugin route handlers and other server-side code
|
||||
* that doesn't have React available. Provides builders, validation, and types
|
||||
* without importing any React components.
|
||||
*/
|
||||
|
||||
export { blocks, elements } from "./builders.js";
|
||||
export { validateBlocks } from "./validation.js";
|
||||
|
||||
export type {
|
||||
// Composition objects
|
||||
ConfirmDialog,
|
||||
// Elements
|
||||
ButtonElement,
|
||||
TextInputElement,
|
||||
NumberInputElement,
|
||||
SelectElement,
|
||||
ToggleElement,
|
||||
SecretInputElement,
|
||||
Element,
|
||||
// Form
|
||||
FieldCondition,
|
||||
FormField,
|
||||
// Block sub-types
|
||||
TableColumn,
|
||||
StatItem,
|
||||
// Blocks
|
||||
HeaderBlock,
|
||||
SectionBlock,
|
||||
DividerBlock,
|
||||
FieldsBlock,
|
||||
TableBlock,
|
||||
ActionsBlock,
|
||||
StatsBlock,
|
||||
FormBlock,
|
||||
ImageBlock,
|
||||
ContextBlock,
|
||||
ColumnsBlock,
|
||||
Block,
|
||||
// Interactions
|
||||
BlockAction,
|
||||
FormSubmit,
|
||||
PageLoad,
|
||||
BlockInteraction,
|
||||
// Response
|
||||
BlockResponse,
|
||||
} from "./types.js";
|
||||
Reference in New Issue
Block a user