lkb-fields-document 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component-blocks/dist/lkb-fields-document-component-blocks.cjs.d.ts +2 -0
- package/component-blocks/dist/lkb-fields-document-component-blocks.cjs.js +306 -0
- package/component-blocks/dist/lkb-fields-document-component-blocks.esm.js +300 -0
- package/component-blocks/dist/lkb-fields-document-component-blocks.node.cjs.js +306 -0
- package/component-blocks/dist/lkb-fields-document-component-blocks.node.esm.js +300 -0
- package/component-blocks/package.json +4 -0
- package/dist/Cell-0ac0ac66.node.cjs.js +21 -0
- package/dist/Cell-242f7404.esm.js +17 -0
- package/dist/Cell-3103f73d.node.esm.js +17 -0
- package/dist/Cell-bfb56d74.cjs.js +21 -0
- package/dist/Field-0e0f75ed.node.cjs.js +1628 -0
- package/dist/Field-28177061.cjs.js +1628 -0
- package/dist/Field-35b79e6b.node.esm.js +1619 -0
- package/dist/Field-92d13205.esm.js +1619 -0
- package/dist/api-2f524611.esm.js +502 -0
- package/dist/api-73636987.cjs.js +506 -0
- package/dist/api-8e2b20b8.node.cjs.js +506 -0
- package/dist/api-c32e360e.node.esm.js +502 -0
- package/dist/callout-ui-2aded278.cjs.js +131 -0
- package/dist/callout-ui-3e5ca544.node.esm.js +126 -0
- package/dist/callout-ui-8b5f2376.esm.js +126 -0
- package/dist/callout-ui-ad50f301.node.cjs.js +131 -0
- package/dist/declarations/src/component-blocks.d.ts +4 -0
- package/dist/declarations/src/component-blocks.d.ts.map +1 -0
- package/dist/declarations/src/document-editor/component-blocks/api.d.ts +120 -0
- package/dist/declarations/src/document-editor/component-blocks/api.d.ts.map +1 -0
- package/dist/declarations/src/document-editor/component-blocks/types.d.ts +241 -0
- package/dist/declarations/src/document-editor/component-blocks/types.d.ts.map +1 -0
- package/dist/declarations/src/document-editor/toolset/relationship/relationship-shared.d.ts +10 -0
- package/dist/declarations/src/document-editor/toolset/relationship/relationship-shared.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +7 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/my-component-blocks/index.d.ts +46 -0
- package/dist/declarations/src/my-component-blocks/index.d.ts.map +1 -0
- package/dist/declarations/src/structure/Cell.d.ts +5 -0
- package/dist/declarations/src/structure/Cell.d.ts.map +1 -0
- package/dist/declarations/src/structure/Field.d.ts +5 -0
- package/dist/declarations/src/structure/Field.d.ts.map +1 -0
- package/dist/declarations/src/structure/controller.d.ts +10 -0
- package/dist/declarations/src/structure/controller.d.ts.map +1 -0
- package/dist/declarations/src/structure/structure.d.ts +4 -0
- package/dist/declarations/src/structure/structure.d.ts.map +1 -0
- package/dist/declarations/src/structure-views.d.ts +5 -0
- package/dist/declarations/src/structure-views.d.ts.map +1 -0
- package/dist/declarations/src/types/DocumentFeatures.d.ts +33 -0
- package/dist/declarations/src/types/DocumentFeatures.d.ts.map +1 -0
- package/dist/declarations/src/types/DocumentFieldConfig.d.ts +18 -0
- package/dist/declarations/src/types/DocumentFieldConfig.d.ts.map +1 -0
- package/dist/declarations/src/types/FormattingConfig.d.ts +28 -0
- package/dist/declarations/src/types/FormattingConfig.d.ts.map +1 -0
- package/dist/declarations/src/types/RelationshipsConfig.d.ts +9 -0
- package/dist/declarations/src/types/RelationshipsConfig.d.ts.map +1 -0
- package/dist/declarations/src/types/StructureFieldConfig.d.ts +10 -0
- package/dist/declarations/src/types/StructureFieldConfig.d.ts.map +1 -0
- package/dist/declarations/src/validation/structure-validation.d.ts +218 -0
- package/dist/declarations/src/validation/structure-validation.d.ts.map +1 -0
- package/dist/declarations/src/views/Cell.d.ts +5 -0
- package/dist/declarations/src/views/Cell.d.ts.map +1 -0
- package/dist/declarations/src/views/Field.d.ts +5 -0
- package/dist/declarations/src/views/Field.d.ts.map +1 -0
- package/dist/declarations/src/views/controller.d.ts +15 -0
- package/dist/declarations/src/views/controller.d.ts.map +1 -0
- package/dist/declarations/src/views/document.d.ts +4 -0
- package/dist/declarations/src/views/document.d.ts.map +1 -0
- package/dist/declarations/src/views.d.ts +7 -0
- package/dist/declarations/src/views.d.ts.map +1 -0
- package/dist/editor-shared-a6e340e6.node.esm.js +1993 -0
- package/dist/editor-shared-a997ae98.node.cjs.js +2007 -0
- package/dist/editor-shared-cc1293ed.cjs.js +2007 -0
- package/dist/editor-shared-da518ba3.esm.js +1993 -0
- package/dist/form-from-preview-2042b9ef.cjs.js +512 -0
- package/dist/form-from-preview-5df6e492.node.esm.js +508 -0
- package/dist/form-from-preview-9e501058.node.cjs.js +512 -0
- package/dist/form-from-preview-b3a66f37.esm.js +508 -0
- package/dist/index-06c36775.cjs.js +14 -0
- package/dist/index-586adb8f.node.esm.js +11 -0
- package/dist/index-67d52357.esm.js +11 -0
- package/dist/index-c3223fdc.node.cjs.js +14 -0
- package/dist/layouts-6412fa2a.esm.js +189 -0
- package/dist/layouts-a4a3cf0b.node.cjs.js +196 -0
- package/dist/layouts-ba9a558b.cjs.js +196 -0
- package/dist/layouts-e653b908.node.esm.js +189 -0
- package/dist/lkb-fields-document.cjs.d.ts +2 -0
- package/dist/lkb-fields-document.cjs.js +1167 -0
- package/dist/lkb-fields-document.esm.js +1162 -0
- package/dist/lkb-fields-document.node.cjs.js +1167 -0
- package/dist/lkb-fields-document.node.esm.js +1162 -0
- package/dist/shared-0533009e.cjs.js +594 -0
- package/dist/shared-4684cc24.node.cjs.js +594 -0
- package/dist/shared-5e864055.node.esm.js +579 -0
- package/dist/shared-aaba5901.esm.js +579 -0
- package/dist/toolbar-state-3359e2f3.cjs.js +994 -0
- package/dist/toolbar-state-945823b8.node.esm.js +971 -0
- package/dist/toolbar-state-9611743f.node.cjs.js +994 -0
- package/dist/toolbar-state-bc8fe661.esm.js +971 -0
- package/dist/utils-06bcddc4.node.cjs.js +747 -0
- package/dist/utils-200ff260.node.esm.js +722 -0
- package/dist/utils-6409f730.cjs.js +747 -0
- package/dist/utils-bc6a0b82.esm.js +722 -0
- package/package.json +118 -0
- package/structure-views/dist/lkb-fields-document-structure-views.cjs.d.ts +2 -0
- package/structure-views/dist/lkb-fields-document-structure-views.cjs.js +138 -0
- package/structure-views/dist/lkb-fields-document-structure-views.esm.js +131 -0
- package/structure-views/dist/lkb-fields-document-structure-views.node.cjs.js +138 -0
- package/structure-views/dist/lkb-fields-document-structure-views.node.esm.js +131 -0
- package/structure-views/package.json +4 -0
- package/views/dist/lkb-fields-document-views.cjs.d.ts +2 -0
- package/views/dist/lkb-fields-document-views.cjs.js +114 -0
- package/views/dist/lkb-fields-document-views.esm.js +95 -0
- package/views/dist/lkb-fields-document-views.node.cjs.js +114 -0
- package/views/dist/lkb-fields-document-views.node.esm.js +95 -0
- package/views/package.json +4 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { RelationshipData } from "../document-editor/component-blocks/types.js";
|
|
3
|
+
declare const zText: z.ZodObject<{
|
|
4
|
+
type: z.ZodOptional<z.ZodNever>;
|
|
5
|
+
text: z.ZodString;
|
|
6
|
+
bold: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
7
|
+
italic: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
8
|
+
underline: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
9
|
+
strikethrough: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
10
|
+
code: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
11
|
+
superscript: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
12
|
+
subscript: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
13
|
+
keyboard: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
14
|
+
insertMenu: z.ZodUnion<[z.ZodLiteral<true>, z.ZodUndefined]>;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
text: string;
|
|
17
|
+
type?: undefined;
|
|
18
|
+
bold?: true | undefined;
|
|
19
|
+
italic?: true | undefined;
|
|
20
|
+
underline?: true | undefined;
|
|
21
|
+
strikethrough?: true | undefined;
|
|
22
|
+
code?: true | undefined;
|
|
23
|
+
superscript?: true | undefined;
|
|
24
|
+
subscript?: true | undefined;
|
|
25
|
+
keyboard?: true | undefined;
|
|
26
|
+
insertMenu?: true | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
text: string;
|
|
29
|
+
type?: undefined;
|
|
30
|
+
bold?: true | undefined;
|
|
31
|
+
italic?: true | undefined;
|
|
32
|
+
underline?: true | undefined;
|
|
33
|
+
strikethrough?: true | undefined;
|
|
34
|
+
code?: true | undefined;
|
|
35
|
+
superscript?: true | undefined;
|
|
36
|
+
subscript?: true | undefined;
|
|
37
|
+
keyboard?: true | undefined;
|
|
38
|
+
insertMenu?: true | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
declare const zLink: z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"link">;
|
|
42
|
+
href: z.ZodEffects<z.ZodString, any, string>;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
type: "link";
|
|
45
|
+
href?: any;
|
|
46
|
+
}, {
|
|
47
|
+
type: "link";
|
|
48
|
+
href: string;
|
|
49
|
+
}>;
|
|
50
|
+
declare const zHeading: z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<"heading">;
|
|
52
|
+
textAlign: z.ZodUnion<[z.ZodUndefined, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>;
|
|
53
|
+
level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
|
+
type: "heading";
|
|
56
|
+
level: 1 | 3 | 2 | 4 | 5 | 6;
|
|
57
|
+
textAlign?: "center" | "end" | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
type: "heading";
|
|
60
|
+
level: 1 | 3 | 2 | 4 | 5 | 6;
|
|
61
|
+
textAlign?: "center" | "end" | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
declare const zParagraph: z.ZodObject<{
|
|
64
|
+
type: z.ZodLiteral<"paragraph">;
|
|
65
|
+
textAlign: z.ZodUnion<[z.ZodUndefined, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>;
|
|
66
|
+
}, "strict", z.ZodTypeAny, {
|
|
67
|
+
type: "paragraph";
|
|
68
|
+
textAlign?: "center" | "end" | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
type: "paragraph";
|
|
71
|
+
textAlign?: "center" | "end" | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
declare const zBasicElements: readonly [z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"blockquote">;
|
|
75
|
+
}, "strict", z.ZodTypeAny, {
|
|
76
|
+
type: "blockquote";
|
|
77
|
+
}, {
|
|
78
|
+
type: "blockquote";
|
|
79
|
+
}>, z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"layout-area">;
|
|
81
|
+
}, "strict", z.ZodTypeAny, {
|
|
82
|
+
type: "layout-area";
|
|
83
|
+
}, {
|
|
84
|
+
type: "layout-area";
|
|
85
|
+
}>, z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<"code">;
|
|
87
|
+
}, "strict", z.ZodTypeAny, {
|
|
88
|
+
type: "code";
|
|
89
|
+
}, {
|
|
90
|
+
type: "code";
|
|
91
|
+
}>, z.ZodObject<{
|
|
92
|
+
type: z.ZodLiteral<"divider">;
|
|
93
|
+
}, "strict", z.ZodTypeAny, {
|
|
94
|
+
type: "divider";
|
|
95
|
+
}, {
|
|
96
|
+
type: "divider";
|
|
97
|
+
}>, z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<"list-item">;
|
|
99
|
+
}, "strict", z.ZodTypeAny, {
|
|
100
|
+
type: "list-item";
|
|
101
|
+
}, {
|
|
102
|
+
type: "list-item";
|
|
103
|
+
}>, z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"list-item-content">;
|
|
105
|
+
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
type: "list-item-content";
|
|
107
|
+
}, {
|
|
108
|
+
type: "list-item-content";
|
|
109
|
+
}>, z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"ordered-list">;
|
|
111
|
+
}, "strict", z.ZodTypeAny, {
|
|
112
|
+
type: "ordered-list";
|
|
113
|
+
}, {
|
|
114
|
+
type: "ordered-list";
|
|
115
|
+
}>, z.ZodObject<{
|
|
116
|
+
type: z.ZodLiteral<"unordered-list">;
|
|
117
|
+
}, "strict", z.ZodTypeAny, {
|
|
118
|
+
type: "unordered-list";
|
|
119
|
+
}, {
|
|
120
|
+
type: "unordered-list";
|
|
121
|
+
}>];
|
|
122
|
+
declare const zLayout: z.ZodObject<{
|
|
123
|
+
type: z.ZodLiteral<"layout">;
|
|
124
|
+
layout: z.ZodArray<z.ZodNumber, "many">;
|
|
125
|
+
}, "strict", z.ZodTypeAny, {
|
|
126
|
+
type: "layout";
|
|
127
|
+
layout: number[];
|
|
128
|
+
}, {
|
|
129
|
+
type: "layout";
|
|
130
|
+
layout: number[];
|
|
131
|
+
}>;
|
|
132
|
+
declare const zRelationship: z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"relationship">;
|
|
134
|
+
relationship: z.ZodString;
|
|
135
|
+
data: z.ZodUnion<[z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
label: z.ZodOptional<z.ZodString>;
|
|
138
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
139
|
+
}, "strict", z.ZodTypeAny, {
|
|
140
|
+
id: string;
|
|
141
|
+
data?: Record<string, any> | undefined;
|
|
142
|
+
label?: string | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
id: string;
|
|
145
|
+
data?: Record<string, any> | undefined;
|
|
146
|
+
label?: string | undefined;
|
|
147
|
+
}>, z.ZodNull]>;
|
|
148
|
+
}, "strict", z.ZodTypeAny, {
|
|
149
|
+
type: "relationship";
|
|
150
|
+
data: {
|
|
151
|
+
id: string;
|
|
152
|
+
data?: Record<string, any> | undefined;
|
|
153
|
+
label?: string | undefined;
|
|
154
|
+
} | null;
|
|
155
|
+
relationship: string;
|
|
156
|
+
}, {
|
|
157
|
+
type: "relationship";
|
|
158
|
+
data: {
|
|
159
|
+
id: string;
|
|
160
|
+
data?: Record<string, any> | undefined;
|
|
161
|
+
label?: string | undefined;
|
|
162
|
+
} | null;
|
|
163
|
+
relationship: string;
|
|
164
|
+
}>;
|
|
165
|
+
declare const zComponentBlock: z.ZodObject<{
|
|
166
|
+
type: z.ZodLiteral<"component-block">;
|
|
167
|
+
component: z.ZodString;
|
|
168
|
+
props: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
169
|
+
}, "strict", z.ZodTypeAny, {
|
|
170
|
+
type: "component-block";
|
|
171
|
+
component: string;
|
|
172
|
+
props: Record<string, any>;
|
|
173
|
+
}, {
|
|
174
|
+
type: "component-block";
|
|
175
|
+
component: string;
|
|
176
|
+
props: Record<string, any>;
|
|
177
|
+
}>;
|
|
178
|
+
declare const zComponentProps: readonly [z.ZodObject<{
|
|
179
|
+
type: z.ZodLiteral<"component-block-prop">;
|
|
180
|
+
propPath: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
181
|
+
}, "strict", z.ZodTypeAny, {
|
|
182
|
+
type: "component-block-prop";
|
|
183
|
+
propPath?: (string | number)[] | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
type: "component-block-prop";
|
|
186
|
+
propPath?: (string | number)[] | undefined;
|
|
187
|
+
}>, z.ZodObject<{
|
|
188
|
+
type: z.ZodLiteral<"component-inline-prop">;
|
|
189
|
+
propPath: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
190
|
+
}, "strict", z.ZodTypeAny, {
|
|
191
|
+
type: "component-inline-prop";
|
|
192
|
+
propPath?: (string | number)[] | undefined;
|
|
193
|
+
}, {
|
|
194
|
+
type: "component-inline-prop";
|
|
195
|
+
propPath?: (string | number)[] | undefined;
|
|
196
|
+
}>];
|
|
197
|
+
export type Node = z.infer<typeof zText> | (z.infer<typeof zLink> & {
|
|
198
|
+
children: Node[];
|
|
199
|
+
}) | (z.infer<typeof zRelationship> & {
|
|
200
|
+
children: Node[];
|
|
201
|
+
}) | (z.infer<typeof zComponentBlock> & {
|
|
202
|
+
children: Node[];
|
|
203
|
+
}) | (z.infer<(typeof zComponentProps)[keyof typeof zComponentProps & number]> & {
|
|
204
|
+
children: Node[];
|
|
205
|
+
}) | (z.infer<(typeof zBasicElements)[keyof typeof zBasicElements & number]> & {
|
|
206
|
+
children: Node[];
|
|
207
|
+
}) | (z.infer<typeof zHeading> & {
|
|
208
|
+
children: Node[];
|
|
209
|
+
}) | (z.infer<typeof zLayout> & {
|
|
210
|
+
children: Node[];
|
|
211
|
+
}) | (z.infer<typeof zParagraph> & {
|
|
212
|
+
children: Node[];
|
|
213
|
+
});
|
|
214
|
+
export type TextWithMarks = z.infer<typeof zText>;
|
|
215
|
+
export declare function isRelationshipData(value: unknown): value is RelationshipData;
|
|
216
|
+
export declare function validateDocumentStructure(value: unknown): asserts value is Node[];
|
|
217
|
+
export {};
|
|
218
|
+
//# sourceMappingURL=structure-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure-validation.d.ts","sourceRoot":"../../../../src/validation","sources":["structure-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,qDAAiD;AAKjF,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcA,CAAA;AAKX,QAAA,MAAM,KAAK;;;;;;;;;EAQA,CAAA;AAEX,QAAA,MAAM,QAAQ;;;;;;;;;;;;EAaH,CAAA;AAEX,QAAA,MAAM,UAAU;;;;;;;;;EAKL,CAAA;AASX,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASV,CAAA;AAEV,QAAA,MAAM,OAAO;;;;;;;;;EAKF,CAAA;AAUX,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMR,CAAA;AAEX,QAAA,MAAM,eAAe;;;;;;;;;;;;EAMV,CAAA;AAUX,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;GAGX,CAAA;AAEV,MAAM,MAAM,IAAI,GAEZ,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,GACrB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,GAAG;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,GAC9C,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,GAEtD,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,GACxD,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,GAAG,MAAM,CAAC,CAAC,GAAG;IAC1E,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB,CAAC,GACF,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,GAAG,MAAM,CAAC,CAAC,GAAG;IACxE,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB,CAAC,GACF,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,GAAG;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,GACjD,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,GAAG;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,GAChD,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CAAA;AAqBvD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAA;AAEjD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,IAAI,EAAE,CAKjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"../../../../src/views","sources":["Cell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,OAAO,EAAE,KAAK,UAAU,EAAE,wBAAoB;AAI9C,QAAA,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAG1C,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"../../../../src/views","sources":["Field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAGhD,OAAO,EAAE,KAAK,UAAU,EAAE,wBAAoB;AAG9C,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAoBlD;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FieldController, FieldControllerConfig } from 'lkb-core/types';
|
|
2
|
+
import { type Descendant } from 'slate';
|
|
3
|
+
import type { ComponentBlock } from "../document-editor/component-blocks/types.js";
|
|
4
|
+
import type { Relationships } from "../document-editor/toolset/relationship/relationship-shared.js";
|
|
5
|
+
import type DocumentFeatures from "../types/DocumentFeatures.js";
|
|
6
|
+
export declare function controller(config: FieldControllerConfig<{
|
|
7
|
+
relationships: Relationships;
|
|
8
|
+
documentFeatures: DocumentFeatures;
|
|
9
|
+
componentBlocksPassedOnServer: string[];
|
|
10
|
+
}>): FieldController<Descendant[]> & {
|
|
11
|
+
componentBlocks: Record<string, ComponentBlock>;
|
|
12
|
+
relationships: Relationships;
|
|
13
|
+
documentFeatures: DocumentFeatures;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"../../../../src/views","sources":["controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC5E,OAAO,EAAE,KAAK,UAAU,EAA2B,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,qDAAiD;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,uEAAmE;AAChG,OAAO,KAAK,gBAAgB,qCAAiC;AAM7D,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC;IAC5B,aAAa,EAAE,aAAa,CAAA;IAC5B,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,6BAA6B,EAAE,MAAM,EAAE,CAAA;CACxC,CAAC,GACD,eAAe,CAAC,UAAU,EAAE,CAAC,GAAG;IACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,aAAa,EAAE,aAAa,CAAA;IAC5B,gBAAgB,EAAE,gBAAgB,CAAA;CACnC,CAgFA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type BaseListTypeInfo, type FieldTypeFunc } from 'lkb-core/types';
|
|
2
|
+
import type DocumentFieldConfig from "../types/DocumentFieldConfig.js";
|
|
3
|
+
export default function document<ListTypeInfo extends BaseListTypeInfo>({ componentBlocks, dividers, formatting, layouts, relationships: configRelationships, links, ...config }?: DocumentFieldConfig<ListTypeInfo>): FieldTypeFunc<ListTypeInfo>;
|
|
4
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"../../../../src/views","sources":["document.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGnB,MAAM,gBAAgB,CAAA;AAMvB,OAAO,KAAK,mBAAmB,wCAAoC;AAInE,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,YAAY,SAAS,gBAAgB,EAAE,EACtE,eAAoB,EACpB,QAAQ,EACR,UAAU,EACV,OAAO,EACP,aAAa,EAAE,mBAAmB,EAClC,KAAK,EACL,GAAG,MAAM,EACV,GAAE,mBAAmB,CAAC,YAAY,CAAM,GAAG,aAAa,CAAC,YAAY,CAAC,CAiGtE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type DocumentFeatures from "./types/DocumentFeatures.js";
|
|
2
|
+
export { controller } from "./views/controller.js";
|
|
3
|
+
export { type DocumentFeatures };
|
|
4
|
+
export { default as Field } from "./views/Field.js";
|
|
5
|
+
export { default as Cell } from "./views/Cell.js";
|
|
6
|
+
export declare const allowedExportsOnCustomViews: string[];
|
|
7
|
+
//# sourceMappingURL=views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.d.ts","sourceRoot":"../../../src","sources":["views.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,oCAAgC;AAE5D,OAAO,EAAE,UAAU,EAAE,8BAA0B;AAC/C,OAAO,EAAE,KAAK,gBAAgB,EAAE,CAAA;AAEhC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,yBAAqB;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,wBAAoB;AAE9C,eAAO,MAAM,2BAA2B,UAAsB,CAAA"}
|