@supernova-studio/client 0.2.2 → 0.3.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 +78 -78
- package/dist/index.d.ts +78 -78
- package/dist/index.js +315 -453
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +319 -457
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/blocks-to-prosemirror.ts +4 -4
- package/src/docs-editor/prosemirror/types.ts +2 -2
- package/src/docs-editor/prosemirror-to-blocks.ts +88 -28
- package/src/docs-editor/utils.ts +11 -11
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 { PageBlockItemUntypedValue, PageBlockDefinition, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
|
|
3
3
|
export * from '@supernova-studio/model';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Schema } from 'prosemirror-model';
|
|
@@ -28,12 +28,12 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
30
30
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
31
|
-
textStyle?: "
|
|
31
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
32
32
|
placeholder?: string | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
35
35
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
36
|
-
textStyle?: "
|
|
36
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
37
37
|
placeholder?: string | undefined;
|
|
38
38
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
39
39
|
variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
@@ -44,46 +44,46 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
46
46
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
47
|
-
textStyle?: "
|
|
47
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
48
48
|
placeholder?: string | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
51
51
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
52
|
-
textStyle?: "
|
|
52
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
53
53
|
placeholder?: string | undefined;
|
|
54
54
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
id: string;
|
|
57
|
-
type: "
|
|
57
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
58
58
|
name: string;
|
|
59
59
|
description?: string | undefined;
|
|
60
60
|
options?: ({
|
|
61
61
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
62
62
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
63
|
-
textStyle?: "
|
|
63
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
64
64
|
placeholder?: string | undefined;
|
|
65
65
|
} & Record<string, any>) | undefined;
|
|
66
66
|
variantOptions?: Record<string, {
|
|
67
67
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
68
68
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
69
|
-
textStyle?: "
|
|
69
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
70
70
|
placeholder?: string | undefined;
|
|
71
71
|
} & Record<string, any>> | undefined;
|
|
72
72
|
}, {
|
|
73
73
|
id: string;
|
|
74
|
-
type: "
|
|
74
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
75
75
|
name: string;
|
|
76
76
|
description?: string | undefined;
|
|
77
77
|
options?: ({
|
|
78
78
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
79
79
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
80
|
-
textStyle?: "
|
|
80
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
81
81
|
placeholder?: string | undefined;
|
|
82
82
|
} & Record<string, any>) | undefined;
|
|
83
83
|
variantOptions?: Record<string, {
|
|
84
84
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
85
85
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
86
|
-
textStyle?: "
|
|
86
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
87
87
|
placeholder?: string | undefined;
|
|
88
88
|
} & Record<string, any>> | undefined;
|
|
89
89
|
}>, "many">;
|
|
@@ -127,7 +127,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
127
127
|
name: string;
|
|
128
128
|
layout: {
|
|
129
129
|
type: "Column" | "Row";
|
|
130
|
-
gap?: "
|
|
130
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
131
131
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
132
132
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
133
133
|
} & {
|
|
@@ -148,7 +148,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
148
148
|
name: string;
|
|
149
149
|
layout: {
|
|
150
150
|
type: "Column" | "Row";
|
|
151
|
-
gap?: "
|
|
151
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
152
152
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
153
153
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
154
154
|
} & {
|
|
@@ -169,19 +169,19 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
170
|
properties: {
|
|
171
171
|
id: string;
|
|
172
|
-
type: "
|
|
172
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
173
173
|
name: string;
|
|
174
174
|
description?: string | undefined;
|
|
175
175
|
options?: ({
|
|
176
176
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
177
177
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
178
|
-
textStyle?: "
|
|
178
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
179
179
|
placeholder?: string | undefined;
|
|
180
180
|
} & Record<string, any>) | undefined;
|
|
181
181
|
variantOptions?: Record<string, {
|
|
182
182
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
183
183
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
184
|
-
textStyle?: "
|
|
184
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
185
185
|
placeholder?: string | undefined;
|
|
186
186
|
} & Record<string, any>> | undefined;
|
|
187
187
|
}[];
|
|
@@ -190,7 +190,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
190
190
|
name: string;
|
|
191
191
|
layout: {
|
|
192
192
|
type: "Column" | "Row";
|
|
193
|
-
gap?: "
|
|
193
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
194
194
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
195
195
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
196
196
|
} & {
|
|
@@ -216,19 +216,19 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
216
216
|
}, {
|
|
217
217
|
properties: {
|
|
218
218
|
id: string;
|
|
219
|
-
type: "
|
|
219
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
220
220
|
name: string;
|
|
221
221
|
description?: string | undefined;
|
|
222
222
|
options?: ({
|
|
223
223
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
224
224
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
225
|
-
textStyle?: "
|
|
225
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
226
226
|
placeholder?: string | undefined;
|
|
227
227
|
} & Record<string, any>) | undefined;
|
|
228
228
|
variantOptions?: Record<string, {
|
|
229
229
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
230
230
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
231
|
-
textStyle?: "
|
|
231
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
232
232
|
placeholder?: string | undefined;
|
|
233
233
|
} & Record<string, any>> | undefined;
|
|
234
234
|
}[];
|
|
@@ -237,7 +237,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
237
237
|
name: string;
|
|
238
238
|
layout: {
|
|
239
239
|
type: "Column" | "Row";
|
|
240
|
-
gap?: "
|
|
240
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
241
241
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
242
242
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
243
243
|
} & {
|
|
@@ -284,7 +284,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
284
284
|
maxSelected: number;
|
|
285
285
|
}>>;
|
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
|
287
|
-
dataType: "
|
|
287
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaFrame" | "Item";
|
|
288
288
|
items?: {
|
|
289
289
|
numberOfItems: number;
|
|
290
290
|
allowLinks: boolean;
|
|
@@ -294,7 +294,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
294
294
|
maxSelected: number;
|
|
295
295
|
} | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
dataType: "
|
|
297
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaFrame" | "Item";
|
|
298
298
|
items?: {
|
|
299
299
|
numberOfItems: number;
|
|
300
300
|
allowLinks: boolean;
|
|
@@ -344,7 +344,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
344
344
|
name: string;
|
|
345
345
|
description: string;
|
|
346
346
|
behavior: {
|
|
347
|
-
dataType: "
|
|
347
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaFrame" | "Item";
|
|
348
348
|
items?: {
|
|
349
349
|
numberOfItems: number;
|
|
350
350
|
allowLinks: boolean;
|
|
@@ -358,19 +358,19 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
358
358
|
item: {
|
|
359
359
|
properties: {
|
|
360
360
|
id: string;
|
|
361
|
-
type: "
|
|
361
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
362
362
|
name: string;
|
|
363
363
|
description?: string | undefined;
|
|
364
364
|
options?: ({
|
|
365
365
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
366
366
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
367
|
-
textStyle?: "
|
|
367
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
368
368
|
placeholder?: string | undefined;
|
|
369
369
|
} & Record<string, any>) | undefined;
|
|
370
370
|
variantOptions?: Record<string, {
|
|
371
371
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
372
372
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
373
|
-
textStyle?: "
|
|
373
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
374
374
|
placeholder?: string | undefined;
|
|
375
375
|
} & Record<string, any>> | undefined;
|
|
376
376
|
}[];
|
|
@@ -379,7 +379,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
379
379
|
name: string;
|
|
380
380
|
layout: {
|
|
381
381
|
type: "Column" | "Row";
|
|
382
|
-
gap?: "
|
|
382
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
383
383
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
384
384
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
385
385
|
} & {
|
|
@@ -422,7 +422,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
422
422
|
name: string;
|
|
423
423
|
description: string;
|
|
424
424
|
behavior: {
|
|
425
|
-
dataType: "
|
|
425
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaFrame" | "Item";
|
|
426
426
|
items?: {
|
|
427
427
|
numberOfItems: number;
|
|
428
428
|
allowLinks: boolean;
|
|
@@ -436,19 +436,19 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
436
436
|
item: {
|
|
437
437
|
properties: {
|
|
438
438
|
id: string;
|
|
439
|
-
type: "
|
|
439
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
440
440
|
name: string;
|
|
441
441
|
description?: string | undefined;
|
|
442
442
|
options?: ({
|
|
443
443
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
444
444
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
445
|
-
textStyle?: "
|
|
445
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
446
446
|
placeholder?: string | undefined;
|
|
447
447
|
} & Record<string, any>) | undefined;
|
|
448
448
|
variantOptions?: Record<string, {
|
|
449
449
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
450
450
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
451
|
-
textStyle?: "
|
|
451
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
452
452
|
placeholder?: string | undefined;
|
|
453
453
|
} & Record<string, any>> | undefined;
|
|
454
454
|
}[];
|
|
@@ -457,7 +457,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
457
457
|
name: string;
|
|
458
458
|
layout: {
|
|
459
459
|
type: "Column" | "Row";
|
|
460
|
-
gap?: "
|
|
460
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
461
461
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
462
462
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
463
463
|
} & {
|
|
@@ -502,7 +502,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
502
502
|
name: string;
|
|
503
503
|
description: string;
|
|
504
504
|
behavior: {
|
|
505
|
-
dataType: "
|
|
505
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaFrame" | "Item";
|
|
506
506
|
items?: {
|
|
507
507
|
numberOfItems: number;
|
|
508
508
|
allowLinks: boolean;
|
|
@@ -516,19 +516,19 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
516
516
|
item: {
|
|
517
517
|
properties: {
|
|
518
518
|
id: string;
|
|
519
|
-
type: "
|
|
519
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
520
520
|
name: string;
|
|
521
521
|
description?: string | undefined;
|
|
522
522
|
options?: ({
|
|
523
523
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
524
524
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
525
|
-
textStyle?: "
|
|
525
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
526
526
|
placeholder?: string | undefined;
|
|
527
527
|
} & Record<string, any>) | undefined;
|
|
528
528
|
variantOptions?: Record<string, {
|
|
529
529
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
530
530
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
531
|
-
textStyle?: "
|
|
531
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
532
532
|
placeholder?: string | undefined;
|
|
533
533
|
} & Record<string, any>> | undefined;
|
|
534
534
|
}[];
|
|
@@ -537,7 +537,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
537
537
|
name: string;
|
|
538
538
|
layout: {
|
|
539
539
|
type: "Column" | "Row";
|
|
540
|
-
gap?: "
|
|
540
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
541
541
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
542
542
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
543
543
|
} & {
|
|
@@ -582,7 +582,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
582
582
|
name: string;
|
|
583
583
|
description: string;
|
|
584
584
|
behavior: {
|
|
585
|
-
dataType: "
|
|
585
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaFrame" | "Item";
|
|
586
586
|
items?: {
|
|
587
587
|
numberOfItems: number;
|
|
588
588
|
allowLinks: boolean;
|
|
@@ -596,19 +596,19 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
596
596
|
item: {
|
|
597
597
|
properties: {
|
|
598
598
|
id: string;
|
|
599
|
-
type: "
|
|
599
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
600
600
|
name: string;
|
|
601
601
|
description?: string | undefined;
|
|
602
602
|
options?: ({
|
|
603
603
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
604
604
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
605
|
-
textStyle?: "
|
|
605
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
606
606
|
placeholder?: string | undefined;
|
|
607
607
|
} & Record<string, any>) | undefined;
|
|
608
608
|
variantOptions?: Record<string, {
|
|
609
609
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
610
610
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
611
|
-
textStyle?: "
|
|
611
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
612
612
|
placeholder?: string | undefined;
|
|
613
613
|
} & Record<string, any>> | undefined;
|
|
614
614
|
}[];
|
|
@@ -617,7 +617,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
617
617
|
name: string;
|
|
618
618
|
layout: {
|
|
619
619
|
type: "Column" | "Row";
|
|
620
|
-
gap?: "
|
|
620
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
621
621
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
622
622
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
623
623
|
} & {
|
|
@@ -884,7 +884,6 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
884
884
|
} | undefined;
|
|
885
885
|
}>;
|
|
886
886
|
}, "strip", z.ZodTypeAny, {
|
|
887
|
-
id: string;
|
|
888
887
|
data: {
|
|
889
888
|
packageId: string;
|
|
890
889
|
indentLevel: number;
|
|
@@ -919,8 +918,8 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
919
918
|
};
|
|
920
919
|
} | undefined;
|
|
921
920
|
};
|
|
922
|
-
}, {
|
|
923
921
|
id: string;
|
|
922
|
+
}, {
|
|
924
923
|
data: {
|
|
925
924
|
packageId: string;
|
|
926
925
|
indentLevel: number;
|
|
@@ -955,6 +954,7 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
955
954
|
};
|
|
956
955
|
} | undefined;
|
|
957
956
|
};
|
|
957
|
+
id: string;
|
|
958
958
|
}>;
|
|
959
959
|
type PageBlockEditorModel = z.infer<typeof PageBlockEditorModel>;
|
|
960
960
|
|
|
@@ -1184,7 +1184,6 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1184
1184
|
} | undefined;
|
|
1185
1185
|
}>;
|
|
1186
1186
|
}, "strip", z.ZodTypeAny, {
|
|
1187
|
-
id: string;
|
|
1188
1187
|
data: {
|
|
1189
1188
|
packageId: string;
|
|
1190
1189
|
indentLevel: number;
|
|
@@ -1219,8 +1218,8 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1219
1218
|
};
|
|
1220
1219
|
} | undefined;
|
|
1221
1220
|
};
|
|
1222
|
-
}, {
|
|
1223
1221
|
id: string;
|
|
1222
|
+
}, {
|
|
1224
1223
|
data: {
|
|
1225
1224
|
packageId: string;
|
|
1226
1225
|
indentLevel: number;
|
|
@@ -1255,10 +1254,10 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1255
1254
|
};
|
|
1256
1255
|
} | undefined;
|
|
1257
1256
|
};
|
|
1257
|
+
id: string;
|
|
1258
1258
|
}>, "many">;
|
|
1259
1259
|
}, "strip", z.ZodTypeAny, {
|
|
1260
1260
|
blocks: {
|
|
1261
|
-
id: string;
|
|
1262
1261
|
data: {
|
|
1263
1262
|
packageId: string;
|
|
1264
1263
|
indentLevel: number;
|
|
@@ -1293,10 +1292,10 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1293
1292
|
};
|
|
1294
1293
|
} | undefined;
|
|
1295
1294
|
};
|
|
1295
|
+
id: string;
|
|
1296
1296
|
}[];
|
|
1297
1297
|
}, {
|
|
1298
1298
|
blocks: {
|
|
1299
|
-
id: string;
|
|
1300
1299
|
data: {
|
|
1301
1300
|
packageId: string;
|
|
1302
1301
|
indentLevel: number;
|
|
@@ -1331,11 +1330,12 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
1331
1330
|
};
|
|
1332
1331
|
} | undefined;
|
|
1333
1332
|
};
|
|
1333
|
+
id: string;
|
|
1334
1334
|
}[];
|
|
1335
1335
|
}>;
|
|
1336
1336
|
type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
|
|
1337
1337
|
|
|
1338
|
-
declare const pmSchema: Schema<"
|
|
1338
|
+
declare const pmSchema: Schema<"paragraph" | "reactComponent" | "tableRow" | "table" | "tableCell" | "tableHeader" | "tableContainer" | "image" | "codeBlock" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "blockquote" | "plainSection" | "sectionItem" | "tabsSection" | "sectionItemColumn" | "doc" | "callout" | "blockNode", "code" | "link" | "bold" | "italic" | "strike">;
|
|
1339
1339
|
|
|
1340
1340
|
type ProsemirrorNode = {
|
|
1341
1341
|
type: string;
|
|
@@ -1350,7 +1350,7 @@ type ProsemirrorMark = {
|
|
|
1350
1350
|
};
|
|
1351
1351
|
type ProsemirrorBlockItem = {
|
|
1352
1352
|
id: string;
|
|
1353
|
-
props: Record<string,
|
|
1353
|
+
props: Record<string, PageBlockItemUntypedValue>;
|
|
1354
1354
|
};
|
|
1355
1355
|
|
|
1356
1356
|
declare function pageToYXmlFragment(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[], fragment: Y.XmlFragment): Y.XmlFragment;
|
|
@@ -1360,7 +1360,7 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
1360
1360
|
name: string;
|
|
1361
1361
|
description: string;
|
|
1362
1362
|
behavior: {
|
|
1363
|
-
dataType: "
|
|
1363
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaFrame" | "Item";
|
|
1364
1364
|
items?: {
|
|
1365
1365
|
numberOfItems: number;
|
|
1366
1366
|
allowLinks: boolean;
|
|
@@ -1374,19 +1374,19 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
1374
1374
|
item: {
|
|
1375
1375
|
properties: {
|
|
1376
1376
|
id: string;
|
|
1377
|
-
type: "
|
|
1377
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
1378
1378
|
name: string;
|
|
1379
1379
|
description?: string | undefined;
|
|
1380
1380
|
options?: ({
|
|
1381
1381
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1382
1382
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1383
|
-
textStyle?: "
|
|
1383
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1384
1384
|
placeholder?: string | undefined;
|
|
1385
1385
|
} & Record<string, any>) | undefined;
|
|
1386
1386
|
variantOptions?: Record<string, {
|
|
1387
1387
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1388
1388
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1389
|
-
textStyle?: "
|
|
1389
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1390
1390
|
placeholder?: string | undefined;
|
|
1391
1391
|
} & Record<string, any>> | undefined;
|
|
1392
1392
|
}[];
|
|
@@ -1395,7 +1395,7 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
1395
1395
|
name: string;
|
|
1396
1396
|
layout: {
|
|
1397
1397
|
type: "Column" | "Row";
|
|
1398
|
-
gap?: "
|
|
1398
|
+
gap?: "Small" | "None" | "Medium" | "Large" | undefined;
|
|
1399
1399
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
1400
1400
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
1401
1401
|
} & {
|
|
@@ -1457,120 +1457,120 @@ declare const BlockParsingUtils: {
|
|
|
1457
1457
|
openInNewTab?: boolean | undefined;
|
|
1458
1458
|
} | undefined;
|
|
1459
1459
|
};
|
|
1460
|
-
richTextPropertyValue(item: PageBlockItemV2, propertyKey: string):
|
|
1461
|
-
multiRichTextPropertyValue(item: PageBlockItemV2, propertyKey: string):
|
|
1462
|
-
embedPropertyValue(item: PageBlockItemV2, propertyKey: string):
|
|
1460
|
+
richTextPropertyValue(item: PageBlockItemV2, propertyKey: string): PageBlockItemRichTextValue;
|
|
1461
|
+
multiRichTextPropertyValue(item: PageBlockItemV2, propertyKey: string): PageBlockItemMultiRichTextValue;
|
|
1462
|
+
embedPropertyValue(item: PageBlockItemV2, propertyKey: string): PageBlockItemEmbedValue;
|
|
1463
1463
|
objectPropertyValue(item: PageBlockItemV2, propertyKey: string): {
|
|
1464
1464
|
value?: any;
|
|
1465
1465
|
} & Record<string, any>;
|
|
1466
|
-
propertyValueOrThrow(item: PageBlockItemV2, propertyKey: string):
|
|
1466
|
+
propertyValueOrThrow(item: PageBlockItemV2, propertyKey: string): PageBlockItemUntypedValue;
|
|
1467
1467
|
};
|
|
1468
1468
|
declare const BlockDefinitionUtils: {
|
|
1469
1469
|
firstRichTextProperty(definition: PageBlockDefinition): {
|
|
1470
1470
|
id: string;
|
|
1471
|
-
type: "
|
|
1471
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
1472
1472
|
name: string;
|
|
1473
1473
|
description?: string | undefined;
|
|
1474
1474
|
options?: ({
|
|
1475
1475
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1476
1476
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1477
|
-
textStyle?: "
|
|
1477
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1478
1478
|
placeholder?: string | undefined;
|
|
1479
1479
|
} & Record<string, any>) | undefined;
|
|
1480
1480
|
variantOptions?: Record<string, {
|
|
1481
1481
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1482
1482
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1483
|
-
textStyle?: "
|
|
1483
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1484
1484
|
placeholder?: string | undefined;
|
|
1485
1485
|
} & Record<string, any>> | undefined;
|
|
1486
1486
|
} | undefined;
|
|
1487
1487
|
firstMultiRichTextProperty(definition: PageBlockDefinition): {
|
|
1488
1488
|
id: string;
|
|
1489
|
-
type: "
|
|
1489
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
1490
1490
|
name: string;
|
|
1491
1491
|
description?: string | undefined;
|
|
1492
1492
|
options?: ({
|
|
1493
1493
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1494
1494
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1495
|
-
textStyle?: "
|
|
1495
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1496
1496
|
placeholder?: string | undefined;
|
|
1497
1497
|
} & Record<string, any>) | undefined;
|
|
1498
1498
|
variantOptions?: Record<string, {
|
|
1499
1499
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1500
1500
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1501
|
-
textStyle?: "
|
|
1501
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1502
1502
|
placeholder?: string | undefined;
|
|
1503
1503
|
} & Record<string, any>> | undefined;
|
|
1504
1504
|
} | undefined;
|
|
1505
1505
|
firstTableProperty(definition: PageBlockDefinition): {
|
|
1506
1506
|
id: string;
|
|
1507
|
-
type: "
|
|
1507
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
1508
1508
|
name: string;
|
|
1509
1509
|
description?: string | undefined;
|
|
1510
1510
|
options?: ({
|
|
1511
1511
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1512
1512
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1513
|
-
textStyle?: "
|
|
1513
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1514
1514
|
placeholder?: string | undefined;
|
|
1515
1515
|
} & Record<string, any>) | undefined;
|
|
1516
1516
|
variantOptions?: Record<string, {
|
|
1517
1517
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1518
1518
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1519
|
-
textStyle?: "
|
|
1519
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1520
1520
|
placeholder?: string | undefined;
|
|
1521
1521
|
} & Record<string, any>> | undefined;
|
|
1522
1522
|
} | undefined;
|
|
1523
1523
|
firstEmbedProperty(definition: PageBlockDefinition): {
|
|
1524
1524
|
id: string;
|
|
1525
|
-
type: "
|
|
1525
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
1526
1526
|
name: string;
|
|
1527
1527
|
description?: string | undefined;
|
|
1528
1528
|
options?: ({
|
|
1529
1529
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1530
1530
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1531
|
-
textStyle?: "
|
|
1531
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1532
1532
|
placeholder?: string | undefined;
|
|
1533
1533
|
} & Record<string, any>) | undefined;
|
|
1534
1534
|
variantOptions?: Record<string, {
|
|
1535
1535
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1536
1536
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1537
|
-
textStyle?: "
|
|
1537
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1538
1538
|
placeholder?: string | undefined;
|
|
1539
1539
|
} & Record<string, any>> | undefined;
|
|
1540
1540
|
} | undefined;
|
|
1541
1541
|
richTextProperty(definition: PageBlockDefinition, propertyKey: string): {
|
|
1542
1542
|
id: string;
|
|
1543
|
-
type: "
|
|
1543
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
1544
1544
|
name: string;
|
|
1545
1545
|
description?: string | undefined;
|
|
1546
1546
|
options?: ({
|
|
1547
1547
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1548
1548
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1549
|
-
textStyle?: "
|
|
1549
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1550
1550
|
placeholder?: string | undefined;
|
|
1551
1551
|
} & Record<string, any>) | undefined;
|
|
1552
1552
|
variantOptions?: Record<string, {
|
|
1553
1553
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1554
1554
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1555
|
-
textStyle?: "
|
|
1555
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1556
1556
|
placeholder?: string | undefined;
|
|
1557
1557
|
} & Record<string, any>> | undefined;
|
|
1558
1558
|
};
|
|
1559
1559
|
property(definition: PageBlockDefinition, propertyKey: string, expectedPropertyType?: PageBlockDefinitionPropertyType): {
|
|
1560
1560
|
id: string;
|
|
1561
|
-
type: "
|
|
1561
|
+
type: "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Image" | "Token" | "TokenType" | "TokenProperty" | "Component" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook" | "Color";
|
|
1562
1562
|
name: string;
|
|
1563
1563
|
description?: string | undefined;
|
|
1564
1564
|
options?: ({
|
|
1565
1565
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1566
1566
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1567
|
-
textStyle?: "
|
|
1567
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1568
1568
|
placeholder?: string | undefined;
|
|
1569
1569
|
} & Record<string, any>) | undefined;
|
|
1570
1570
|
variantOptions?: Record<string, {
|
|
1571
1571
|
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
1572
1572
|
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
1573
|
-
textStyle?: "
|
|
1573
|
+
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
1574
1574
|
placeholder?: string | undefined;
|
|
1575
1575
|
} & Record<string, any>> | undefined;
|
|
1576
1576
|
};
|