feat(builder): add dynamic blocks email and dnd packages
This commit is contained in:
1 parent
06433e4ac4
commit
0bd2a6860d
37 files changed
+3060
-1
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import type { DocumentLimits, JsonObject } from "./types.ts";
|
||||
import type { ValueSchema } from "./schema.ts";
|
||||
import type { BlockDefinition } from "./registry.ts";
|
||||
|
||||
export interface DocumentKindDefinition {
|
||||
kind: string;
|
||||
version: number;
|
||||
metadata: ValueSchema<JsonObject>;
|
||||
rootTypes: string[];
|
||||
blocks: readonly BlockDefinition[];
|
||||
variables: Record<string, "string" | "number" | "date" | "boolean">;
|
||||
breakpoints: Record<string, number>;
|
||||
capabilities: string[];
|
||||
targets: string[];
|
||||
limits: DocumentLimits;
|
||||
urlSchemes: string[];
|
||||
}
|
||||
|
||||
export const defineDocumentKind = <T extends DocumentKindDefinition>(definition: T): T =>
|
||||
definition;
|
||||
Reference in new issue
Block a user