first commit

This commit is contained in:
Matt Kane
2026-04-01 10:44:22 +01:00
commit 43fcb9a131
1789 changed files with 395041 additions and 0 deletions

View 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";