@supernova-studio/client 0.0.15 → 0.2.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/dist/index.d.mts +190 -191
- package/dist/index.d.ts +190 -191
- package/dist/index.js +388 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +382 -80
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/docs-editor/blocks-to-prosemirror.ts +214 -144
- package/src/docs-editor/mock.ts +16 -16
- package/src/docs-editor/prosemirror/types.ts +3 -7
- package/src/docs-editor/prosemirror-to-blocks.ts +226 -3
- package/src/docs-editor/utils.ts +35 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _supernova_studio_model from '@supernova-studio/model';
|
|
2
|
-
import {
|
|
2
|
+
import { PageBlockItemUntypedPropertyValue, PageBlockDefinition, PageBlockItemV2, PageBlockItemRichTextPropertyValue, PageBlockItemMultiRichTextPropertyValue, PageBlockItemEmbedPropertyValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { Schema } from 'prosemirror-model';
|
|
5
5
|
import * as Y from 'yjs';
|
|
@@ -17,61 +17,71 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
17
17
|
properties: z.ZodArray<z.ZodObject<{
|
|
18
18
|
id: z.ZodString;
|
|
19
19
|
name: z.ZodString;
|
|
20
|
-
type: z.ZodEnum<["RichText", "Text", "Boolean", "Number", "SingleSelect", "MultiSelect", "Image", "Token", "TokenType", "TokenProperty", "Component", "ComponentProperty", "Asset", "AssetProperty", "EmbedURL", "URL", "Markdown", "Code", "CodeSandbox", "Table", "Divider", "Storybook"]>;
|
|
20
|
+
type: z.ZodEnum<["RichText", "MultiRichText", "Text", "Boolean", "Number", "SingleSelect", "MultiSelect", "Image", "Token", "TokenType", "TokenProperty", "Component", "ComponentProperty", "Asset", "AssetProperty", "EmbedURL", "URL", "Markdown", "Code", "CodeSandbox", "Table", "Divider", "Storybook", "Color"]>;
|
|
21
21
|
description: z.ZodOptional<z.ZodString>;
|
|
22
22
|
options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
23
|
-
richTextStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Quote", "Callout", "
|
|
23
|
+
richTextStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Quote", "Callout", "Default"]>>;
|
|
24
|
+
multiRichTextStyle: z.ZodOptional<z.ZodEnum<["OL", "UL", "Default"]>>;
|
|
24
25
|
textStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Default", "DefaultBold", "DefaultSemibold", "Small", "SmallBold", "SmallSemibold"]>>;
|
|
25
26
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
26
27
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
28
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
29
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
28
30
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
29
31
|
placeholder?: string | undefined;
|
|
30
32
|
}, {
|
|
31
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
33
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
34
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
32
35
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
33
36
|
placeholder?: string | undefined;
|
|
34
37
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
35
38
|
variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
36
|
-
richTextStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Quote", "Callout", "
|
|
39
|
+
richTextStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Quote", "Callout", "Default"]>>;
|
|
40
|
+
multiRichTextStyle: z.ZodOptional<z.ZodEnum<["OL", "UL", "Default"]>>;
|
|
37
41
|
textStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Default", "DefaultBold", "DefaultSemibold", "Small", "SmallBold", "SmallSemibold"]>>;
|
|
38
42
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
39
43
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
44
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
45
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
41
46
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
42
47
|
placeholder?: string | undefined;
|
|
43
48
|
}, {
|
|
44
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
49
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
50
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
45
51
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
46
52
|
placeholder?: string | undefined;
|
|
47
53
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
48
54
|
}, "strip", z.ZodTypeAny, {
|
|
49
55
|
id: string;
|
|
50
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
56
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
51
57
|
name: string;
|
|
52
58
|
description?: string | undefined;
|
|
53
59
|
options?: ({
|
|
54
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
60
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
61
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
55
62
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
56
63
|
placeholder?: string | undefined;
|
|
57
64
|
} & Record<string, any>) | undefined;
|
|
58
65
|
variantOptions?: Record<string, {
|
|
59
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
66
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
67
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
60
68
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
61
69
|
placeholder?: string | undefined;
|
|
62
70
|
} & Record<string, any>> | undefined;
|
|
63
71
|
}, {
|
|
64
72
|
id: string;
|
|
65
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
73
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
66
74
|
name: string;
|
|
67
75
|
description?: string | undefined;
|
|
68
76
|
options?: ({
|
|
69
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
77
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
78
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
70
79
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
71
80
|
placeholder?: string | undefined;
|
|
72
81
|
} & Record<string, any>) | undefined;
|
|
73
82
|
variantOptions?: Record<string, {
|
|
74
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
83
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
84
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
75
85
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
76
86
|
placeholder?: string | undefined;
|
|
77
87
|
} & Record<string, any>> | undefined;
|
|
@@ -158,16 +168,18 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
158
168
|
}, "strip", z.ZodTypeAny, {
|
|
159
169
|
properties: {
|
|
160
170
|
id: string;
|
|
161
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
171
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
162
172
|
name: string;
|
|
163
173
|
description?: string | undefined;
|
|
164
174
|
options?: ({
|
|
165
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
175
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
176
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
166
177
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
167
178
|
placeholder?: string | undefined;
|
|
168
179
|
} & Record<string, any>) | undefined;
|
|
169
180
|
variantOptions?: Record<string, {
|
|
170
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
181
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
182
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
171
183
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
172
184
|
placeholder?: string | undefined;
|
|
173
185
|
} & Record<string, any>> | undefined;
|
|
@@ -203,16 +215,18 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
203
215
|
}, {
|
|
204
216
|
properties: {
|
|
205
217
|
id: string;
|
|
206
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
218
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
207
219
|
name: string;
|
|
208
220
|
description?: string | undefined;
|
|
209
221
|
options?: ({
|
|
210
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
222
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
223
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
211
224
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
212
225
|
placeholder?: string | undefined;
|
|
213
226
|
} & Record<string, any>) | undefined;
|
|
214
227
|
variantOptions?: Record<string, {
|
|
215
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
228
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
229
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
216
230
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
217
231
|
placeholder?: string | undefined;
|
|
218
232
|
} & Record<string, any>> | undefined;
|
|
@@ -269,7 +283,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
269
283
|
maxSelected: number;
|
|
270
284
|
}>>;
|
|
271
285
|
}, "strip", z.ZodTypeAny, {
|
|
272
|
-
dataType: "Component" | "Token" | "Asset" | "
|
|
286
|
+
dataType: "Component" | "Token" | "Asset" | "FigmaFrame" | "Item";
|
|
273
287
|
items?: {
|
|
274
288
|
numberOfItems: number;
|
|
275
289
|
allowLinks: boolean;
|
|
@@ -279,7 +293,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
279
293
|
maxSelected: number;
|
|
280
294
|
} | undefined;
|
|
281
295
|
}, {
|
|
282
|
-
dataType: "Component" | "Token" | "Asset" | "
|
|
296
|
+
dataType: "Component" | "Token" | "Asset" | "FigmaFrame" | "Item";
|
|
283
297
|
items?: {
|
|
284
298
|
numberOfItems: number;
|
|
285
299
|
allowLinks: boolean;
|
|
@@ -329,7 +343,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
329
343
|
name: string;
|
|
330
344
|
description: string;
|
|
331
345
|
behavior: {
|
|
332
|
-
dataType: "Component" | "Token" | "Asset" | "
|
|
346
|
+
dataType: "Component" | "Token" | "Asset" | "FigmaFrame" | "Item";
|
|
333
347
|
items?: {
|
|
334
348
|
numberOfItems: number;
|
|
335
349
|
allowLinks: boolean;
|
|
@@ -343,16 +357,18 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
343
357
|
item: {
|
|
344
358
|
properties: {
|
|
345
359
|
id: string;
|
|
346
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
360
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
347
361
|
name: string;
|
|
348
362
|
description?: string | undefined;
|
|
349
363
|
options?: ({
|
|
350
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
364
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
365
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
351
366
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
352
367
|
placeholder?: string | undefined;
|
|
353
368
|
} & Record<string, any>) | undefined;
|
|
354
369
|
variantOptions?: Record<string, {
|
|
355
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
370
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
371
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
356
372
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
357
373
|
placeholder?: string | undefined;
|
|
358
374
|
} & Record<string, any>> | undefined;
|
|
@@ -405,7 +421,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
405
421
|
name: string;
|
|
406
422
|
description: string;
|
|
407
423
|
behavior: {
|
|
408
|
-
dataType: "Component" | "Token" | "Asset" | "
|
|
424
|
+
dataType: "Component" | "Token" | "Asset" | "FigmaFrame" | "Item";
|
|
409
425
|
items?: {
|
|
410
426
|
numberOfItems: number;
|
|
411
427
|
allowLinks: boolean;
|
|
@@ -419,16 +435,18 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
419
435
|
item: {
|
|
420
436
|
properties: {
|
|
421
437
|
id: string;
|
|
422
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
438
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
423
439
|
name: string;
|
|
424
440
|
description?: string | undefined;
|
|
425
441
|
options?: ({
|
|
426
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
442
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
443
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
427
444
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
428
445
|
placeholder?: string | undefined;
|
|
429
446
|
} & Record<string, any>) | undefined;
|
|
430
447
|
variantOptions?: Record<string, {
|
|
431
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
448
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
449
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
432
450
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
433
451
|
placeholder?: string | undefined;
|
|
434
452
|
} & Record<string, any>> | undefined;
|
|
@@ -483,7 +501,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
483
501
|
name: string;
|
|
484
502
|
description: string;
|
|
485
503
|
behavior: {
|
|
486
|
-
dataType: "Component" | "Token" | "Asset" | "
|
|
504
|
+
dataType: "Component" | "Token" | "Asset" | "FigmaFrame" | "Item";
|
|
487
505
|
items?: {
|
|
488
506
|
numberOfItems: number;
|
|
489
507
|
allowLinks: boolean;
|
|
@@ -497,16 +515,18 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
497
515
|
item: {
|
|
498
516
|
properties: {
|
|
499
517
|
id: string;
|
|
500
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
518
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
501
519
|
name: string;
|
|
502
520
|
description?: string | undefined;
|
|
503
521
|
options?: ({
|
|
504
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
522
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
523
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
505
524
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
506
525
|
placeholder?: string | undefined;
|
|
507
526
|
} & Record<string, any>) | undefined;
|
|
508
527
|
variantOptions?: Record<string, {
|
|
509
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
528
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
529
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
510
530
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
511
531
|
placeholder?: string | undefined;
|
|
512
532
|
} & Record<string, any>> | undefined;
|
|
@@ -561,7 +581,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
561
581
|
name: string;
|
|
562
582
|
description: string;
|
|
563
583
|
behavior: {
|
|
564
|
-
dataType: "Component" | "Token" | "Asset" | "
|
|
584
|
+
dataType: "Component" | "Token" | "Asset" | "FigmaFrame" | "Item";
|
|
565
585
|
items?: {
|
|
566
586
|
numberOfItems: number;
|
|
567
587
|
allowLinks: boolean;
|
|
@@ -575,16 +595,18 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
575
595
|
item: {
|
|
576
596
|
properties: {
|
|
577
597
|
id: string;
|
|
578
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
598
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
579
599
|
name: string;
|
|
580
600
|
description?: string | undefined;
|
|
581
601
|
options?: ({
|
|
582
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
602
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
603
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
583
604
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
584
605
|
placeholder?: string | undefined;
|
|
585
606
|
} & Record<string, any>) | undefined;
|
|
586
607
|
variantOptions?: Record<string, {
|
|
587
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
608
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
609
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
588
610
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
589
611
|
placeholder?: string | undefined;
|
|
590
612
|
} & Record<string, any>> | undefined;
|
|
@@ -743,48 +765,40 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
743
765
|
items: z.ZodArray<z.ZodObject<{
|
|
744
766
|
id: z.ZodString;
|
|
745
767
|
linksTo: z.ZodOptional<z.ZodObject<{
|
|
746
|
-
type: z.ZodEnum<["
|
|
747
|
-
|
|
768
|
+
type: z.ZodEnum<["DocumentationItem", "PageHeading", "Url"]>;
|
|
769
|
+
documentationItemId: z.ZodOptional<z.ZodString>;
|
|
748
770
|
pageHeadingId: z.ZodOptional<z.ZodString>;
|
|
749
|
-
groupId: z.ZodOptional<z.ZodString>;
|
|
750
771
|
url: z.ZodOptional<z.ZodString>;
|
|
751
772
|
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
752
773
|
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
type: "
|
|
754
|
-
|
|
774
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
775
|
+
documentationItemId?: string | undefined;
|
|
755
776
|
pageHeadingId?: string | undefined;
|
|
756
|
-
groupId?: string | undefined;
|
|
757
777
|
url?: string | undefined;
|
|
758
778
|
openInNewTab?: boolean | undefined;
|
|
759
779
|
}, {
|
|
760
|
-
type: "
|
|
761
|
-
|
|
780
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
781
|
+
documentationItemId?: string | undefined;
|
|
762
782
|
pageHeadingId?: string | undefined;
|
|
763
|
-
groupId?: string | undefined;
|
|
764
783
|
url?: string | undefined;
|
|
765
784
|
openInNewTab?: boolean | undefined;
|
|
766
785
|
}>>;
|
|
767
|
-
props: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
786
|
+
props: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
768
787
|
value: z.ZodAny;
|
|
769
|
-
calloutType: z.ZodOptional<z.ZodEnum<["Info", "Success", "Warning", "Error"]>>;
|
|
770
788
|
}, "strip", z.ZodTypeAny, {
|
|
771
789
|
value?: any;
|
|
772
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
|
|
773
790
|
}, {
|
|
774
791
|
value?: any;
|
|
775
|
-
|
|
776
|
-
}>>;
|
|
792
|
+
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
777
793
|
}, "strip", z.ZodTypeAny, {
|
|
778
794
|
id: string;
|
|
779
795
|
props: Record<string, {
|
|
780
796
|
value?: any;
|
|
781
|
-
|
|
782
|
-
}>;
|
|
797
|
+
} & Record<string, any>>;
|
|
783
798
|
linksTo?: {
|
|
784
|
-
type: "
|
|
785
|
-
|
|
799
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
800
|
+
documentationItemId?: string | undefined;
|
|
786
801
|
pageHeadingId?: string | undefined;
|
|
787
|
-
groupId?: string | undefined;
|
|
788
802
|
url?: string | undefined;
|
|
789
803
|
openInNewTab?: boolean | undefined;
|
|
790
804
|
} | undefined;
|
|
@@ -792,13 +806,11 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
792
806
|
id: string;
|
|
793
807
|
props: Record<string, {
|
|
794
808
|
value?: any;
|
|
795
|
-
|
|
796
|
-
}>;
|
|
809
|
+
} & Record<string, any>>;
|
|
797
810
|
linksTo?: {
|
|
798
|
-
type: "
|
|
799
|
-
|
|
811
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
812
|
+
documentationItemId?: string | undefined;
|
|
800
813
|
pageHeadingId?: string | undefined;
|
|
801
|
-
groupId?: string | undefined;
|
|
802
814
|
url?: string | undefined;
|
|
803
815
|
openInNewTab?: boolean | undefined;
|
|
804
816
|
} | undefined;
|
|
@@ -810,13 +822,11 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
810
822
|
id: string;
|
|
811
823
|
props: Record<string, {
|
|
812
824
|
value?: any;
|
|
813
|
-
|
|
814
|
-
}>;
|
|
825
|
+
} & Record<string, any>>;
|
|
815
826
|
linksTo?: {
|
|
816
|
-
type: "
|
|
817
|
-
|
|
827
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
828
|
+
documentationItemId?: string | undefined;
|
|
818
829
|
pageHeadingId?: string | undefined;
|
|
819
|
-
groupId?: string | undefined;
|
|
820
830
|
url?: string | undefined;
|
|
821
831
|
openInNewTab?: boolean | undefined;
|
|
822
832
|
} | undefined;
|
|
@@ -845,13 +855,11 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
845
855
|
id: string;
|
|
846
856
|
props: Record<string, {
|
|
847
857
|
value?: any;
|
|
848
|
-
|
|
849
|
-
}>;
|
|
858
|
+
} & Record<string, any>>;
|
|
850
859
|
linksTo?: {
|
|
851
|
-
type: "
|
|
852
|
-
|
|
860
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
861
|
+
documentationItemId?: string | undefined;
|
|
853
862
|
pageHeadingId?: string | undefined;
|
|
854
|
-
groupId?: string | undefined;
|
|
855
863
|
url?: string | undefined;
|
|
856
864
|
openInNewTab?: boolean | undefined;
|
|
857
865
|
} | undefined;
|
|
@@ -883,13 +891,11 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
883
891
|
id: string;
|
|
884
892
|
props: Record<string, {
|
|
885
893
|
value?: any;
|
|
886
|
-
|
|
887
|
-
}>;
|
|
894
|
+
} & Record<string, any>>;
|
|
888
895
|
linksTo?: {
|
|
889
|
-
type: "
|
|
890
|
-
|
|
896
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
897
|
+
documentationItemId?: string | undefined;
|
|
891
898
|
pageHeadingId?: string | undefined;
|
|
892
|
-
groupId?: string | undefined;
|
|
893
899
|
url?: string | undefined;
|
|
894
900
|
openInNewTab?: boolean | undefined;
|
|
895
901
|
} | undefined;
|
|
@@ -921,13 +927,11 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
921
927
|
id: string;
|
|
922
928
|
props: Record<string, {
|
|
923
929
|
value?: any;
|
|
924
|
-
|
|
925
|
-
}>;
|
|
930
|
+
} & Record<string, any>>;
|
|
926
931
|
linksTo?: {
|
|
927
|
-
type: "
|
|
928
|
-
|
|
932
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
933
|
+
documentationItemId?: string | undefined;
|
|
929
934
|
pageHeadingId?: string | undefined;
|
|
930
|
-
groupId?: string | undefined;
|
|
931
935
|
url?: string | undefined;
|
|
932
936
|
openInNewTab?: boolean | undefined;
|
|
933
937
|
} | undefined;
|
|
@@ -1061,48 +1065,40 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1061
1065
|
items: z.ZodArray<z.ZodObject<{
|
|
1062
1066
|
id: z.ZodString;
|
|
1063
1067
|
linksTo: z.ZodOptional<z.ZodObject<{
|
|
1064
|
-
type: z.ZodEnum<["
|
|
1065
|
-
|
|
1068
|
+
type: z.ZodEnum<["DocumentationItem", "PageHeading", "Url"]>;
|
|
1069
|
+
documentationItemId: z.ZodOptional<z.ZodString>;
|
|
1066
1070
|
pageHeadingId: z.ZodOptional<z.ZodString>;
|
|
1067
|
-
groupId: z.ZodOptional<z.ZodString>;
|
|
1068
1071
|
url: z.ZodOptional<z.ZodString>;
|
|
1069
1072
|
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
1070
1073
|
}, "strip", z.ZodTypeAny, {
|
|
1071
|
-
type: "
|
|
1072
|
-
|
|
1074
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1075
|
+
documentationItemId?: string | undefined;
|
|
1073
1076
|
pageHeadingId?: string | undefined;
|
|
1074
|
-
groupId?: string | undefined;
|
|
1075
1077
|
url?: string | undefined;
|
|
1076
1078
|
openInNewTab?: boolean | undefined;
|
|
1077
1079
|
}, {
|
|
1078
|
-
type: "
|
|
1079
|
-
|
|
1080
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1081
|
+
documentationItemId?: string | undefined;
|
|
1080
1082
|
pageHeadingId?: string | undefined;
|
|
1081
|
-
groupId?: string | undefined;
|
|
1082
1083
|
url?: string | undefined;
|
|
1083
1084
|
openInNewTab?: boolean | undefined;
|
|
1084
1085
|
}>>;
|
|
1085
|
-
props: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1086
|
+
props: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
1086
1087
|
value: z.ZodAny;
|
|
1087
|
-
calloutType: z.ZodOptional<z.ZodEnum<["Info", "Success", "Warning", "Error"]>>;
|
|
1088
1088
|
}, "strip", z.ZodTypeAny, {
|
|
1089
1089
|
value?: any;
|
|
1090
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
|
|
1091
1090
|
}, {
|
|
1092
1091
|
value?: any;
|
|
1093
|
-
|
|
1094
|
-
}>>;
|
|
1092
|
+
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1095
1093
|
}, "strip", z.ZodTypeAny, {
|
|
1096
1094
|
id: string;
|
|
1097
1095
|
props: Record<string, {
|
|
1098
1096
|
value?: any;
|
|
1099
|
-
|
|
1100
|
-
}>;
|
|
1097
|
+
} & Record<string, any>>;
|
|
1101
1098
|
linksTo?: {
|
|
1102
|
-
type: "
|
|
1103
|
-
|
|
1099
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1100
|
+
documentationItemId?: string | undefined;
|
|
1104
1101
|
pageHeadingId?: string | undefined;
|
|
1105
|
-
groupId?: string | undefined;
|
|
1106
1102
|
url?: string | undefined;
|
|
1107
1103
|
openInNewTab?: boolean | undefined;
|
|
1108
1104
|
} | undefined;
|
|
@@ -1110,13 +1106,11 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1110
1106
|
id: string;
|
|
1111
1107
|
props: Record<string, {
|
|
1112
1108
|
value?: any;
|
|
1113
|
-
|
|
1114
|
-
}>;
|
|
1109
|
+
} & Record<string, any>>;
|
|
1115
1110
|
linksTo?: {
|
|
1116
|
-
type: "
|
|
1117
|
-
|
|
1111
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1112
|
+
documentationItemId?: string | undefined;
|
|
1118
1113
|
pageHeadingId?: string | undefined;
|
|
1119
|
-
groupId?: string | undefined;
|
|
1120
1114
|
url?: string | undefined;
|
|
1121
1115
|
openInNewTab?: boolean | undefined;
|
|
1122
1116
|
} | undefined;
|
|
@@ -1128,13 +1122,11 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1128
1122
|
id: string;
|
|
1129
1123
|
props: Record<string, {
|
|
1130
1124
|
value?: any;
|
|
1131
|
-
|
|
1132
|
-
}>;
|
|
1125
|
+
} & Record<string, any>>;
|
|
1133
1126
|
linksTo?: {
|
|
1134
|
-
type: "
|
|
1135
|
-
|
|
1127
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1128
|
+
documentationItemId?: string | undefined;
|
|
1136
1129
|
pageHeadingId?: string | undefined;
|
|
1137
|
-
groupId?: string | undefined;
|
|
1138
1130
|
url?: string | undefined;
|
|
1139
1131
|
openInNewTab?: boolean | undefined;
|
|
1140
1132
|
} | undefined;
|
|
@@ -1163,13 +1155,11 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1163
1155
|
id: string;
|
|
1164
1156
|
props: Record<string, {
|
|
1165
1157
|
value?: any;
|
|
1166
|
-
|
|
1167
|
-
}>;
|
|
1158
|
+
} & Record<string, any>>;
|
|
1168
1159
|
linksTo?: {
|
|
1169
|
-
type: "
|
|
1170
|
-
|
|
1160
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1161
|
+
documentationItemId?: string | undefined;
|
|
1171
1162
|
pageHeadingId?: string | undefined;
|
|
1172
|
-
groupId?: string | undefined;
|
|
1173
1163
|
url?: string | undefined;
|
|
1174
1164
|
openInNewTab?: boolean | undefined;
|
|
1175
1165
|
} | undefined;
|
|
@@ -1201,13 +1191,11 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1201
1191
|
id: string;
|
|
1202
1192
|
props: Record<string, {
|
|
1203
1193
|
value?: any;
|
|
1204
|
-
|
|
1205
|
-
}>;
|
|
1194
|
+
} & Record<string, any>>;
|
|
1206
1195
|
linksTo?: {
|
|
1207
|
-
type: "
|
|
1208
|
-
|
|
1196
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1197
|
+
documentationItemId?: string | undefined;
|
|
1209
1198
|
pageHeadingId?: string | undefined;
|
|
1210
|
-
groupId?: string | undefined;
|
|
1211
1199
|
url?: string | undefined;
|
|
1212
1200
|
openInNewTab?: boolean | undefined;
|
|
1213
1201
|
} | undefined;
|
|
@@ -1239,13 +1227,11 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1239
1227
|
id: string;
|
|
1240
1228
|
props: Record<string, {
|
|
1241
1229
|
value?: any;
|
|
1242
|
-
|
|
1243
|
-
}>;
|
|
1230
|
+
} & Record<string, any>>;
|
|
1244
1231
|
linksTo?: {
|
|
1245
|
-
type: "
|
|
1246
|
-
|
|
1232
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1233
|
+
documentationItemId?: string | undefined;
|
|
1247
1234
|
pageHeadingId?: string | undefined;
|
|
1248
|
-
groupId?: string | undefined;
|
|
1249
1235
|
url?: string | undefined;
|
|
1250
1236
|
openInNewTab?: boolean | undefined;
|
|
1251
1237
|
} | undefined;
|
|
@@ -1279,13 +1265,11 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1279
1265
|
id: string;
|
|
1280
1266
|
props: Record<string, {
|
|
1281
1267
|
value?: any;
|
|
1282
|
-
|
|
1283
|
-
}>;
|
|
1268
|
+
} & Record<string, any>>;
|
|
1284
1269
|
linksTo?: {
|
|
1285
|
-
type: "
|
|
1286
|
-
|
|
1270
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1271
|
+
documentationItemId?: string | undefined;
|
|
1287
1272
|
pageHeadingId?: string | undefined;
|
|
1288
|
-
groupId?: string | undefined;
|
|
1289
1273
|
url?: string | undefined;
|
|
1290
1274
|
openInNewTab?: boolean | undefined;
|
|
1291
1275
|
} | undefined;
|
|
@@ -1319,13 +1303,11 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1319
1303
|
id: string;
|
|
1320
1304
|
props: Record<string, {
|
|
1321
1305
|
value?: any;
|
|
1322
|
-
|
|
1323
|
-
}>;
|
|
1306
|
+
} & Record<string, any>>;
|
|
1324
1307
|
linksTo?: {
|
|
1325
|
-
type: "
|
|
1326
|
-
|
|
1308
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1309
|
+
documentationItemId?: string | undefined;
|
|
1327
1310
|
pageHeadingId?: string | undefined;
|
|
1328
|
-
groupId?: string | undefined;
|
|
1329
1311
|
url?: string | undefined;
|
|
1330
1312
|
openInNewTab?: boolean | undefined;
|
|
1331
1313
|
} | undefined;
|
|
@@ -1366,20 +1348,10 @@ type ProsemirrorMark = {
|
|
|
1366
1348
|
attrs: Record<string, any>;
|
|
1367
1349
|
};
|
|
1368
1350
|
type ProsemirrorBlockItem = {
|
|
1369
|
-
properties: ProsemirrorBlockItemPropertyValue[];
|
|
1370
|
-
};
|
|
1371
|
-
type ProsemirrorBlockItemPropertyValue = {
|
|
1372
1351
|
id: string;
|
|
1373
|
-
|
|
1374
|
-
value?: string;
|
|
1375
|
-
};
|
|
1352
|
+
props: Record<string, PageBlockItemUntypedPropertyValue>;
|
|
1376
1353
|
};
|
|
1377
1354
|
|
|
1378
|
-
type Input = {
|
|
1379
|
-
block: PageBlockEditorModel;
|
|
1380
|
-
definition: PageBlockDefinition;
|
|
1381
|
-
richTextProperty: PageBlockDefinitionProperty;
|
|
1382
|
-
};
|
|
1383
1355
|
declare function pageToYXmlFragment(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[], fragment: Y.XmlFragment): Y.XmlFragment;
|
|
1384
1356
|
declare function pageToProsemirrorDoc(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[]): ProsemirrorNode;
|
|
1385
1357
|
declare function blockDefinitionForBlock(block: PageBlockEditorModel, definitions: PageBlockDefinition[]): {
|
|
@@ -1387,7 +1359,7 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
1387
1359
|
name: string;
|
|
1388
1360
|
description: string;
|
|
1389
1361
|
behavior: {
|
|
1390
|
-
dataType: "Component" | "Token" | "Asset" | "
|
|
1362
|
+
dataType: "Component" | "Token" | "Asset" | "FigmaFrame" | "Item";
|
|
1391
1363
|
items?: {
|
|
1392
1364
|
numberOfItems: number;
|
|
1393
1365
|
allowLinks: boolean;
|
|
@@ -1401,16 +1373,18 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
1401
1373
|
item: {
|
|
1402
1374
|
properties: {
|
|
1403
1375
|
id: string;
|
|
1404
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
1376
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
1405
1377
|
name: string;
|
|
1406
1378
|
description?: string | undefined;
|
|
1407
1379
|
options?: ({
|
|
1408
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1380
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1381
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1409
1382
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1410
1383
|
placeholder?: string | undefined;
|
|
1411
1384
|
} & Record<string, any>) | undefined;
|
|
1412
1385
|
variantOptions?: Record<string, {
|
|
1413
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1386
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1387
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1414
1388
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1415
1389
|
placeholder?: string | undefined;
|
|
1416
1390
|
} & Record<string, any>> | undefined;
|
|
@@ -1460,7 +1434,6 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
1460
1434
|
} | undefined;
|
|
1461
1435
|
};
|
|
1462
1436
|
declare function blockToProsemirrorNode(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode | null;
|
|
1463
|
-
declare function serializeAsRichTextBlock(input: Input): ProsemirrorNode;
|
|
1464
1437
|
declare function serializeAsCustomBlock(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode;
|
|
1465
1438
|
|
|
1466
1439
|
declare function getMockPageBlockDefinitions(): PageBlockDefinition[];
|
|
@@ -1474,106 +1447,132 @@ declare const BlockParsingUtils: {
|
|
|
1474
1447
|
id: string;
|
|
1475
1448
|
props: Record<string, {
|
|
1476
1449
|
value?: any;
|
|
1477
|
-
|
|
1478
|
-
}>;
|
|
1450
|
+
} & Record<string, any>>;
|
|
1479
1451
|
linksTo?: {
|
|
1480
|
-
type: "
|
|
1481
|
-
|
|
1452
|
+
type: "DocumentationItem" | "PageHeading" | "Url";
|
|
1453
|
+
documentationItemId?: string | undefined;
|
|
1482
1454
|
pageHeadingId?: string | undefined;
|
|
1483
|
-
groupId?: string | undefined;
|
|
1484
1455
|
url?: string | undefined;
|
|
1485
1456
|
openInNewTab?: boolean | undefined;
|
|
1486
1457
|
} | undefined;
|
|
1487
1458
|
};
|
|
1488
|
-
richTextPropertyValue(item: PageBlockItemV2, propertyKey: string):
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
attributes: {
|
|
1492
|
-
type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
|
|
1493
|
-
link?: string | undefined;
|
|
1494
|
-
documentationItemId?: string | undefined;
|
|
1495
|
-
openInNewWindow?: boolean | undefined;
|
|
1496
|
-
}[];
|
|
1497
|
-
}[];
|
|
1498
|
-
};
|
|
1459
|
+
richTextPropertyValue(item: PageBlockItemV2, propertyKey: string): PageBlockItemRichTextPropertyValue;
|
|
1460
|
+
multiRichTextPropertyValue(item: PageBlockItemV2, propertyKey: string): PageBlockItemMultiRichTextPropertyValue;
|
|
1461
|
+
embedPropertyValue(item: PageBlockItemV2, propertyKey: string): PageBlockItemEmbedPropertyValue;
|
|
1499
1462
|
objectPropertyValue(item: PageBlockItemV2, propertyKey: string): {
|
|
1500
1463
|
value?: any;
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
propertyValue(item: PageBlockItemV2, propertyKey: string): {
|
|
1504
|
-
value?: any;
|
|
1505
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
|
|
1506
|
-
};
|
|
1507
|
-
safePropertyValue(item: PageBlockItemV2, propertyKey: string): {
|
|
1508
|
-
value?: any;
|
|
1509
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
|
|
1510
|
-
};
|
|
1464
|
+
} & Record<string, any>;
|
|
1465
|
+
propertyValueOrThrow(item: PageBlockItemV2, propertyKey: string): PageBlockItemUntypedPropertyValue;
|
|
1511
1466
|
};
|
|
1512
1467
|
declare const BlockDefinitionUtils: {
|
|
1513
1468
|
firstRichTextProperty(definition: PageBlockDefinition): {
|
|
1514
1469
|
id: string;
|
|
1515
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
1470
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
1516
1471
|
name: string;
|
|
1517
1472
|
description?: string | undefined;
|
|
1518
1473
|
options?: ({
|
|
1519
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1474
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1475
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1520
1476
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1521
1477
|
placeholder?: string | undefined;
|
|
1522
1478
|
} & Record<string, any>) | undefined;
|
|
1523
1479
|
variantOptions?: Record<string, {
|
|
1524
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1480
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1481
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1482
|
+
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1483
|
+
placeholder?: string | undefined;
|
|
1484
|
+
} & Record<string, any>> | undefined;
|
|
1485
|
+
} | undefined;
|
|
1486
|
+
firstMultiRichTextProperty(definition: PageBlockDefinition): {
|
|
1487
|
+
id: string;
|
|
1488
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
1489
|
+
name: string;
|
|
1490
|
+
description?: string | undefined;
|
|
1491
|
+
options?: ({
|
|
1492
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1493
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1494
|
+
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1495
|
+
placeholder?: string | undefined;
|
|
1496
|
+
} & Record<string, any>) | undefined;
|
|
1497
|
+
variantOptions?: Record<string, {
|
|
1498
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1499
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1525
1500
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1526
1501
|
placeholder?: string | undefined;
|
|
1527
1502
|
} & Record<string, any>> | undefined;
|
|
1528
1503
|
} | undefined;
|
|
1529
1504
|
firstTableProperty(definition: PageBlockDefinition): {
|
|
1530
1505
|
id: string;
|
|
1531
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
1506
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
1507
|
+
name: string;
|
|
1508
|
+
description?: string | undefined;
|
|
1509
|
+
options?: ({
|
|
1510
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1511
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1512
|
+
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1513
|
+
placeholder?: string | undefined;
|
|
1514
|
+
} & Record<string, any>) | undefined;
|
|
1515
|
+
variantOptions?: Record<string, {
|
|
1516
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1517
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1518
|
+
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1519
|
+
placeholder?: string | undefined;
|
|
1520
|
+
} & Record<string, any>> | undefined;
|
|
1521
|
+
} | undefined;
|
|
1522
|
+
firstEmbedProperty(definition: PageBlockDefinition): {
|
|
1523
|
+
id: string;
|
|
1524
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
1532
1525
|
name: string;
|
|
1533
1526
|
description?: string | undefined;
|
|
1534
1527
|
options?: ({
|
|
1535
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1528
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1529
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1536
1530
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1537
1531
|
placeholder?: string | undefined;
|
|
1538
1532
|
} & Record<string, any>) | undefined;
|
|
1539
1533
|
variantOptions?: Record<string, {
|
|
1540
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1534
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1535
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1541
1536
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1542
1537
|
placeholder?: string | undefined;
|
|
1543
1538
|
} & Record<string, any>> | undefined;
|
|
1544
1539
|
} | undefined;
|
|
1545
1540
|
richTextProperty(definition: PageBlockDefinition, propertyKey: string): {
|
|
1546
1541
|
id: string;
|
|
1547
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
1542
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
1548
1543
|
name: string;
|
|
1549
1544
|
description?: string | undefined;
|
|
1550
1545
|
options?: ({
|
|
1551
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1546
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1547
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1552
1548
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1553
1549
|
placeholder?: string | undefined;
|
|
1554
1550
|
} & Record<string, any>) | undefined;
|
|
1555
1551
|
variantOptions?: Record<string, {
|
|
1556
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1552
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1553
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1557
1554
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1558
1555
|
placeholder?: string | undefined;
|
|
1559
1556
|
} & Record<string, any>> | undefined;
|
|
1560
1557
|
};
|
|
1561
1558
|
property(definition: PageBlockDefinition, propertyKey: string, expectedPropertyType?: PageBlockDefinitionPropertyType): {
|
|
1562
1559
|
id: string;
|
|
1563
|
-
type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "
|
|
1560
|
+
type: "Image" | "Color" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "Asset" | "RichText" | "MultiRichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
1564
1561
|
name: string;
|
|
1565
1562
|
description?: string | undefined;
|
|
1566
1563
|
options?: ({
|
|
1567
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1564
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1565
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1568
1566
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1569
1567
|
placeholder?: string | undefined;
|
|
1570
1568
|
} & Record<string, any>) | undefined;
|
|
1571
1569
|
variantOptions?: Record<string, {
|
|
1572
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "
|
|
1570
|
+
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1571
|
+
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1573
1572
|
textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1574
1573
|
placeholder?: string | undefined;
|
|
1575
1574
|
} & Record<string, any>> | undefined;
|
|
1576
1575
|
};
|
|
1577
1576
|
};
|
|
1578
1577
|
|
|
1579
|
-
export { BlockDefinitionUtils, BlockParsingUtils, DocumentationPageEditorModel, GetBlockDefinitionsResponse, PageBlockEditorModel, type ProsemirrorBlockItem, type
|
|
1578
|
+
export { BlockDefinitionUtils, BlockParsingUtils, DocumentationPageEditorModel, GetBlockDefinitionsResponse, PageBlockEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, blockDefinitionForBlock, blockToProsemirrorNode, getMockPageBlockDefinitions, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, serializeAsCustomBlock, yXmlFragmetToPage };
|