@supernova-studio/client 0.9.2 → 0.10.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 +145 -244
- package/dist/index.d.ts +145 -244
- package/dist/index.js +256 -99
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +245 -88
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-system.ts +11 -0
- package/src/api/dto/index.ts +1 -0
- package/src/docs-editor/blocks-to-prosemirror.ts +8 -4
- package/src/docs-editor/mock.ts +2 -1374
- package/src/docs-editor/prosemirror-to-blocks.ts +20 -25
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import * as _supernova_studio_model from '@supernova-studio/model';
|
|
2
3
|
import { DocumentationItemConfiguration, DocumentationItemHeader, PageBlockItemUntypedValue, PageBlockDefinition, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemTableValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
|
|
3
|
-
import { z } from 'zod';
|
|
4
4
|
import * as Y from 'yjs';
|
|
5
5
|
import { Schema } from 'prosemirror-model';
|
|
6
6
|
|
|
7
|
+
declare const DesignSystemDTO: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
workspaceId: z.ZodString;
|
|
10
|
+
docExporterId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
|
|
11
|
+
docSlug: z.ZodString;
|
|
12
|
+
docUserSlug: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
|
|
13
|
+
docSlugDeprecated: z.ZodString;
|
|
14
|
+
isPublic: z.ZodBoolean;
|
|
15
|
+
isMultibrand: z.ZodBoolean;
|
|
16
|
+
docViewUrl: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
|
|
17
|
+
basePrefixes: z.ZodArray<z.ZodString, "many">;
|
|
18
|
+
designSystemSwitcher: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
19
|
+
isEnabled: boolean;
|
|
20
|
+
designSystemIds: string[];
|
|
21
|
+
}, z.ZodTypeDef, {
|
|
22
|
+
isEnabled: boolean;
|
|
23
|
+
designSystemIds: string[];
|
|
24
|
+
}>>>, {
|
|
25
|
+
isEnabled: boolean;
|
|
26
|
+
designSystemIds: string[];
|
|
27
|
+
} | undefined, {
|
|
28
|
+
isEnabled: boolean;
|
|
29
|
+
designSystemIds: string[];
|
|
30
|
+
} | null | undefined>;
|
|
31
|
+
createdAt: z.ZodDate;
|
|
32
|
+
updatedAt: z.ZodDate;
|
|
33
|
+
meta: z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
name: string;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
id: string;
|
|
45
|
+
workspaceId: string;
|
|
46
|
+
docSlug: string;
|
|
47
|
+
docSlugDeprecated: string;
|
|
48
|
+
isPublic: boolean;
|
|
49
|
+
isMultibrand: boolean;
|
|
50
|
+
basePrefixes: string[];
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
updatedAt: Date;
|
|
53
|
+
meta: {
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
docExporterId?: string | undefined;
|
|
58
|
+
docUserSlug?: string | undefined;
|
|
59
|
+
docViewUrl?: string | undefined;
|
|
60
|
+
designSystemSwitcher?: {
|
|
61
|
+
isEnabled: boolean;
|
|
62
|
+
designSystemIds: string[];
|
|
63
|
+
} | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
66
|
+
workspaceId: string;
|
|
67
|
+
docSlug: string;
|
|
68
|
+
docSlugDeprecated: string;
|
|
69
|
+
isPublic: boolean;
|
|
70
|
+
isMultibrand: boolean;
|
|
71
|
+
basePrefixes: string[];
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
updatedAt: Date;
|
|
74
|
+
meta: {
|
|
75
|
+
name: string;
|
|
76
|
+
description?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
docExporterId?: string | null | undefined;
|
|
79
|
+
docUserSlug?: string | null | undefined;
|
|
80
|
+
docViewUrl?: string | null | undefined;
|
|
81
|
+
designSystemSwitcher?: {
|
|
82
|
+
isEnabled: boolean;
|
|
83
|
+
designSystemIds: string[];
|
|
84
|
+
} | null | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
type DesignSystemDTO = z.infer<typeof DesignSystemDTO>;
|
|
87
|
+
|
|
7
88
|
declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
8
89
|
id: z.ZodString;
|
|
9
90
|
createdAt: z.ZodDate;
|
|
@@ -14,7 +95,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
14
95
|
userSlug: z.ZodOptional<z.ZodString>;
|
|
15
96
|
shortPersistentId: z.ZodString;
|
|
16
97
|
blocks: z.ZodArray<z.ZodType<_supernova_studio_model.PageBlockV1, z.ZodTypeDef, {
|
|
17
|
-
type: "Tabs" | "Text" | "Image" | "Token" | "Component" | "Code" | "Table" | "Divider" | "
|
|
98
|
+
type: "Tabs" | "Text" | "Image" | "Token" | "Component" | "Code" | "Table" | "Divider" | "Embed" | "Quote" | "Callout" | "Link" | "ComponentGroup" | "Theme" | "Heading" | "UnorderedList" | "OrderedList" | "Shortcuts" | "FigmaEmbed" | "YoutubeEmbed" | "StorybookEmbed" | "TokenGroup" | "TokenList" | "ComponentSandbox" | "Custom" | "FigmaFrames" | "ComponentAssets" | "RenderCode" | "TabItem" | "TableRow" | "TableCell";
|
|
18
99
|
persistentId: string;
|
|
19
100
|
designObjectId?: string | null | undefined;
|
|
20
101
|
designObjectIds?: string[] | null | undefined;
|
|
@@ -493,11 +574,11 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
493
574
|
id: string;
|
|
494
575
|
createdAt: Date;
|
|
495
576
|
updatedAt: Date;
|
|
577
|
+
path: string;
|
|
496
578
|
persistentId: string;
|
|
497
579
|
designSystemVersionId: string;
|
|
498
580
|
shortPersistentId: string;
|
|
499
581
|
blocks: _supernova_studio_model.PageBlockV1[];
|
|
500
|
-
path: string;
|
|
501
582
|
title: string;
|
|
502
583
|
slug?: string | undefined;
|
|
503
584
|
userSlug?: string | undefined;
|
|
@@ -579,11 +660,12 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
579
660
|
id: string;
|
|
580
661
|
createdAt: Date;
|
|
581
662
|
updatedAt: Date;
|
|
663
|
+
path: string;
|
|
582
664
|
persistentId: string;
|
|
583
665
|
designSystemVersionId: string;
|
|
584
666
|
shortPersistentId: string;
|
|
585
667
|
blocks: ({
|
|
586
|
-
type: "Tabs" | "Text" | "Image" | "Token" | "Component" | "Code" | "Table" | "Divider" | "
|
|
668
|
+
type: "Tabs" | "Text" | "Image" | "Token" | "Component" | "Code" | "Table" | "Divider" | "Embed" | "Quote" | "Callout" | "Link" | "ComponentGroup" | "Theme" | "Heading" | "UnorderedList" | "OrderedList" | "Shortcuts" | "FigmaEmbed" | "YoutubeEmbed" | "StorybookEmbed" | "TokenGroup" | "TokenList" | "ComponentSandbox" | "Custom" | "FigmaFrames" | "ComponentAssets" | "RenderCode" | "TabItem" | "TableRow" | "TableCell";
|
|
587
669
|
persistentId: string;
|
|
588
670
|
designObjectId?: string | null | undefined;
|
|
589
671
|
designObjectIds?: string[] | null | undefined;
|
|
@@ -763,7 +845,6 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
763
845
|
} & {
|
|
764
846
|
children: any[] | null | undefined;
|
|
765
847
|
})[];
|
|
766
|
-
path: string;
|
|
767
848
|
title: string;
|
|
768
849
|
slug?: string | undefined;
|
|
769
850
|
userSlug?: string | undefined;
|
|
@@ -848,12 +929,12 @@ declare const DocumentationPageV2DTO: z.ZodObject<{
|
|
|
848
929
|
id: z.ZodString;
|
|
849
930
|
createdAt: z.ZodDate;
|
|
850
931
|
updatedAt: z.ZodDate;
|
|
932
|
+
path: z.ZodString;
|
|
851
933
|
persistentId: z.ZodString;
|
|
852
934
|
designSystemVersionId: z.ZodString;
|
|
853
935
|
slug: z.ZodOptional<z.ZodString>;
|
|
854
936
|
userSlug: z.ZodOptional<z.ZodString>;
|
|
855
937
|
shortPersistentId: z.ZodString;
|
|
856
|
-
path: z.ZodString;
|
|
857
938
|
title: z.ZodString;
|
|
858
939
|
configuration: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
859
940
|
showSidebar: boolean;
|
|
@@ -1152,10 +1233,10 @@ declare const DocumentationPageV2DTO: z.ZodObject<{
|
|
|
1152
1233
|
id: string;
|
|
1153
1234
|
createdAt: Date;
|
|
1154
1235
|
updatedAt: Date;
|
|
1236
|
+
path: string;
|
|
1155
1237
|
persistentId: string;
|
|
1156
1238
|
designSystemVersionId: string;
|
|
1157
1239
|
shortPersistentId: string;
|
|
1158
|
-
path: string;
|
|
1159
1240
|
title: string;
|
|
1160
1241
|
slug?: string | undefined;
|
|
1161
1242
|
userSlug?: string | undefined;
|
|
@@ -1237,10 +1318,10 @@ declare const DocumentationPageV2DTO: z.ZodObject<{
|
|
|
1237
1318
|
id: string;
|
|
1238
1319
|
createdAt: Date;
|
|
1239
1320
|
updatedAt: Date;
|
|
1321
|
+
path: string;
|
|
1240
1322
|
persistentId: string;
|
|
1241
1323
|
designSystemVersionId: string;
|
|
1242
1324
|
shortPersistentId: string;
|
|
1243
|
-
path: string;
|
|
1244
1325
|
title: string;
|
|
1245
1326
|
slug?: string | undefined;
|
|
1246
1327
|
userSlug?: string | undefined;
|
|
@@ -1339,10 +1420,10 @@ declare const DocumentationPageStructureV2DTO: z.ZodObject<{
|
|
|
1339
1420
|
id: string;
|
|
1340
1421
|
createdAt: Date;
|
|
1341
1422
|
updatedAt: Date;
|
|
1423
|
+
path: string;
|
|
1342
1424
|
persistentId: string;
|
|
1343
1425
|
designSystemVersionId: string;
|
|
1344
1426
|
shortPersistentId: string;
|
|
1345
|
-
path: string;
|
|
1346
1427
|
title: string;
|
|
1347
1428
|
slug?: string | undefined;
|
|
1348
1429
|
userSlug?: string | undefined;
|
|
@@ -1350,10 +1431,10 @@ declare const DocumentationPageStructureV2DTO: z.ZodObject<{
|
|
|
1350
1431
|
id: string;
|
|
1351
1432
|
createdAt: Date;
|
|
1352
1433
|
updatedAt: Date;
|
|
1434
|
+
path: string;
|
|
1353
1435
|
persistentId: string;
|
|
1354
1436
|
designSystemVersionId: string;
|
|
1355
1437
|
shortPersistentId: string;
|
|
1356
|
-
path: string;
|
|
1357
1438
|
title: string;
|
|
1358
1439
|
slug?: string | undefined;
|
|
1359
1440
|
userSlug?: string | undefined;
|
|
@@ -1375,10 +1456,10 @@ declare const DocumentationHierarchyV2DTO: z.ZodObject<{
|
|
|
1375
1456
|
id: string;
|
|
1376
1457
|
createdAt: Date;
|
|
1377
1458
|
updatedAt: Date;
|
|
1459
|
+
path: string;
|
|
1378
1460
|
persistentId: string;
|
|
1379
1461
|
designSystemVersionId: string;
|
|
1380
1462
|
shortPersistentId: string;
|
|
1381
|
-
path: string;
|
|
1382
1463
|
title: string;
|
|
1383
1464
|
slug?: string | undefined;
|
|
1384
1465
|
userSlug?: string | undefined;
|
|
@@ -1386,10 +1467,10 @@ declare const DocumentationHierarchyV2DTO: z.ZodObject<{
|
|
|
1386
1467
|
id: string;
|
|
1387
1468
|
createdAt: Date;
|
|
1388
1469
|
updatedAt: Date;
|
|
1470
|
+
path: string;
|
|
1389
1471
|
persistentId: string;
|
|
1390
1472
|
designSystemVersionId: string;
|
|
1391
1473
|
shortPersistentId: string;
|
|
1392
|
-
path: string;
|
|
1393
1474
|
title: string;
|
|
1394
1475
|
slug?: string | undefined;
|
|
1395
1476
|
userSlug?: string | undefined;
|
|
@@ -1439,10 +1520,10 @@ declare const DocumentationHierarchyV2DTO: z.ZodObject<{
|
|
|
1439
1520
|
id: string;
|
|
1440
1521
|
createdAt: Date;
|
|
1441
1522
|
updatedAt: Date;
|
|
1523
|
+
path: string;
|
|
1442
1524
|
persistentId: string;
|
|
1443
1525
|
designSystemVersionId: string;
|
|
1444
1526
|
shortPersistentId: string;
|
|
1445
|
-
path: string;
|
|
1446
1527
|
title: string;
|
|
1447
1528
|
slug?: string | undefined;
|
|
1448
1529
|
userSlug?: string | undefined;
|
|
@@ -1466,10 +1547,10 @@ declare const DocumentationHierarchyV2DTO: z.ZodObject<{
|
|
|
1466
1547
|
id: string;
|
|
1467
1548
|
createdAt: Date;
|
|
1468
1549
|
updatedAt: Date;
|
|
1550
|
+
path: string;
|
|
1469
1551
|
persistentId: string;
|
|
1470
1552
|
designSystemVersionId: string;
|
|
1471
1553
|
shortPersistentId: string;
|
|
1472
|
-
path: string;
|
|
1473
1554
|
title: string;
|
|
1474
1555
|
slug?: string | undefined;
|
|
1475
1556
|
userSlug?: string | undefined;
|
|
@@ -6295,72 +6376,22 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6295
6376
|
name: z.ZodString;
|
|
6296
6377
|
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"]>;
|
|
6297
6378
|
description: z.ZodOptional<z.ZodString>;
|
|
6298
|
-
options: z.ZodOptional<z.
|
|
6299
|
-
|
|
6300
|
-
multiRichTextStyle: z.ZodOptional<z.ZodEnum<["OL", "UL", "Default"]>>;
|
|
6301
|
-
textStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Default", "DefaultBold", "DefaultSemibold", "Small", "SmallBold", "SmallSemibold"]>>;
|
|
6302
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
6303
|
-
}, "strip", z.ZodTypeAny, {
|
|
6304
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6305
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6306
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6307
|
-
placeholder?: string | undefined;
|
|
6308
|
-
}, {
|
|
6309
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6310
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6311
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6312
|
-
placeholder?: string | undefined;
|
|
6313
|
-
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
6314
|
-
variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
6315
|
-
richTextStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Quote", "Callout", "Default"]>>;
|
|
6316
|
-
multiRichTextStyle: z.ZodOptional<z.ZodEnum<["OL", "UL", "Default"]>>;
|
|
6317
|
-
textStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Default", "DefaultBold", "DefaultSemibold", "Small", "SmallBold", "SmallSemibold"]>>;
|
|
6318
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
6319
|
-
}, "strip", z.ZodTypeAny, {
|
|
6320
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6321
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6322
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6323
|
-
placeholder?: string | undefined;
|
|
6324
|
-
}, {
|
|
6325
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6326
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6327
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6328
|
-
placeholder?: string | undefined;
|
|
6329
|
-
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
6379
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6380
|
+
variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
6330
6381
|
}, "strip", z.ZodTypeAny, {
|
|
6331
6382
|
id: string;
|
|
6332
6383
|
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";
|
|
6333
6384
|
name: string;
|
|
6334
6385
|
description?: string | undefined;
|
|
6335
|
-
options?:
|
|
6336
|
-
|
|
6337
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6338
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6339
|
-
placeholder?: string | undefined;
|
|
6340
|
-
} & Record<string, any>) | undefined;
|
|
6341
|
-
variantOptions?: Record<string, {
|
|
6342
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6343
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6344
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6345
|
-
placeholder?: string | undefined;
|
|
6346
|
-
} & Record<string, any>> | undefined;
|
|
6386
|
+
options?: Record<string, any> | undefined;
|
|
6387
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6347
6388
|
}, {
|
|
6348
6389
|
id: string;
|
|
6349
6390
|
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";
|
|
6350
6391
|
name: string;
|
|
6351
6392
|
description?: string | undefined;
|
|
6352
|
-
options?:
|
|
6353
|
-
|
|
6354
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6355
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6356
|
-
placeholder?: string | undefined;
|
|
6357
|
-
} & Record<string, any>) | undefined;
|
|
6358
|
-
variantOptions?: Record<string, {
|
|
6359
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6360
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6361
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6362
|
-
placeholder?: string | undefined;
|
|
6363
|
-
} & Record<string, any>> | undefined;
|
|
6393
|
+
options?: Record<string, any> | undefined;
|
|
6394
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6364
6395
|
}>, "many">;
|
|
6365
6396
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
6366
6397
|
isBordered: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6402,7 +6433,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6402
6433
|
name: string;
|
|
6403
6434
|
layout: {
|
|
6404
6435
|
type: "Column" | "Row";
|
|
6405
|
-
gap?: "
|
|
6436
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6406
6437
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6407
6438
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6408
6439
|
} & {
|
|
@@ -6423,7 +6454,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6423
6454
|
name: string;
|
|
6424
6455
|
layout: {
|
|
6425
6456
|
type: "Column" | "Row";
|
|
6426
|
-
gap?: "
|
|
6457
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6427
6458
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6428
6459
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6429
6460
|
} & {
|
|
@@ -6447,25 +6478,15 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6447
6478
|
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";
|
|
6448
6479
|
name: string;
|
|
6449
6480
|
description?: string | undefined;
|
|
6450
|
-
options?:
|
|
6451
|
-
|
|
6452
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6453
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6454
|
-
placeholder?: string | undefined;
|
|
6455
|
-
} & Record<string, any>) | undefined;
|
|
6456
|
-
variantOptions?: Record<string, {
|
|
6457
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6458
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6459
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6460
|
-
placeholder?: string | undefined;
|
|
6461
|
-
} & Record<string, any>> | undefined;
|
|
6481
|
+
options?: Record<string, any> | undefined;
|
|
6482
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6462
6483
|
}[];
|
|
6463
6484
|
variants: {
|
|
6464
6485
|
id: string;
|
|
6465
6486
|
name: string;
|
|
6466
6487
|
layout: {
|
|
6467
6488
|
type: "Column" | "Row";
|
|
6468
|
-
gap?: "
|
|
6489
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6469
6490
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6470
6491
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6471
6492
|
} & {
|
|
@@ -6494,25 +6515,15 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6494
6515
|
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";
|
|
6495
6516
|
name: string;
|
|
6496
6517
|
description?: string | undefined;
|
|
6497
|
-
options?:
|
|
6498
|
-
|
|
6499
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6500
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6501
|
-
placeholder?: string | undefined;
|
|
6502
|
-
} & Record<string, any>) | undefined;
|
|
6503
|
-
variantOptions?: Record<string, {
|
|
6504
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6505
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6506
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6507
|
-
placeholder?: string | undefined;
|
|
6508
|
-
} & Record<string, any>> | undefined;
|
|
6518
|
+
options?: Record<string, any> | undefined;
|
|
6519
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6509
6520
|
}[];
|
|
6510
6521
|
variants: {
|
|
6511
6522
|
id: string;
|
|
6512
6523
|
name: string;
|
|
6513
6524
|
layout: {
|
|
6514
6525
|
type: "Column" | "Row";
|
|
6515
|
-
gap?: "
|
|
6526
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6516
6527
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6517
6528
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6518
6529
|
} & {
|
|
@@ -6537,7 +6548,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6537
6548
|
} | undefined;
|
|
6538
6549
|
}>;
|
|
6539
6550
|
behavior: z.ZodObject<{
|
|
6540
|
-
dataType: z.ZodEnum<["Item", "Token", "Asset", "Component", "
|
|
6551
|
+
dataType: z.ZodEnum<["Item", "Token", "Asset", "Component", "FigmaNode"]>;
|
|
6541
6552
|
items: z.ZodOptional<z.ZodObject<{
|
|
6542
6553
|
numberOfItems: z.ZodNumber;
|
|
6543
6554
|
allowLinks: z.ZodBoolean;
|
|
@@ -6559,7 +6570,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6559
6570
|
maxSelected: number;
|
|
6560
6571
|
}>>;
|
|
6561
6572
|
}, "strip", z.ZodTypeAny, {
|
|
6562
|
-
dataType: "Token" | "Component" | "Asset" | "
|
|
6573
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaNode" | "Item";
|
|
6563
6574
|
items?: {
|
|
6564
6575
|
numberOfItems: number;
|
|
6565
6576
|
allowLinks: boolean;
|
|
@@ -6569,7 +6580,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6569
6580
|
maxSelected: number;
|
|
6570
6581
|
} | undefined;
|
|
6571
6582
|
}, {
|
|
6572
|
-
dataType: "Token" | "Component" | "Asset" | "
|
|
6583
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaNode" | "Item";
|
|
6573
6584
|
items?: {
|
|
6574
6585
|
numberOfItems: number;
|
|
6575
6586
|
allowLinks: boolean;
|
|
@@ -6619,7 +6630,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6619
6630
|
name: string;
|
|
6620
6631
|
description: string;
|
|
6621
6632
|
behavior: {
|
|
6622
|
-
dataType: "Token" | "Component" | "Asset" | "
|
|
6633
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaNode" | "Item";
|
|
6623
6634
|
items?: {
|
|
6624
6635
|
numberOfItems: number;
|
|
6625
6636
|
allowLinks: boolean;
|
|
@@ -6636,25 +6647,15 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6636
6647
|
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";
|
|
6637
6648
|
name: string;
|
|
6638
6649
|
description?: string | undefined;
|
|
6639
|
-
options?:
|
|
6640
|
-
|
|
6641
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6642
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6643
|
-
placeholder?: string | undefined;
|
|
6644
|
-
} & Record<string, any>) | undefined;
|
|
6645
|
-
variantOptions?: Record<string, {
|
|
6646
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6647
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6648
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6649
|
-
placeholder?: string | undefined;
|
|
6650
|
-
} & Record<string, any>> | undefined;
|
|
6650
|
+
options?: Record<string, any> | undefined;
|
|
6651
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6651
6652
|
}[];
|
|
6652
6653
|
variants: {
|
|
6653
6654
|
id: string;
|
|
6654
6655
|
name: string;
|
|
6655
6656
|
layout: {
|
|
6656
6657
|
type: "Column" | "Row";
|
|
6657
|
-
gap?: "
|
|
6658
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6658
6659
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6659
6660
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6660
6661
|
} & {
|
|
@@ -6697,7 +6698,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6697
6698
|
name: string;
|
|
6698
6699
|
description: string;
|
|
6699
6700
|
behavior: {
|
|
6700
|
-
dataType: "Token" | "Component" | "Asset" | "
|
|
6701
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaNode" | "Item";
|
|
6701
6702
|
items?: {
|
|
6702
6703
|
numberOfItems: number;
|
|
6703
6704
|
allowLinks: boolean;
|
|
@@ -6714,25 +6715,15 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6714
6715
|
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";
|
|
6715
6716
|
name: string;
|
|
6716
6717
|
description?: string | undefined;
|
|
6717
|
-
options?:
|
|
6718
|
-
|
|
6719
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6720
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6721
|
-
placeholder?: string | undefined;
|
|
6722
|
-
} & Record<string, any>) | undefined;
|
|
6723
|
-
variantOptions?: Record<string, {
|
|
6724
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6725
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6726
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6727
|
-
placeholder?: string | undefined;
|
|
6728
|
-
} & Record<string, any>> | undefined;
|
|
6718
|
+
options?: Record<string, any> | undefined;
|
|
6719
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6729
6720
|
}[];
|
|
6730
6721
|
variants: {
|
|
6731
6722
|
id: string;
|
|
6732
6723
|
name: string;
|
|
6733
6724
|
layout: {
|
|
6734
6725
|
type: "Column" | "Row";
|
|
6735
|
-
gap?: "
|
|
6726
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6736
6727
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6737
6728
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6738
6729
|
} & {
|
|
@@ -6777,7 +6768,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6777
6768
|
name: string;
|
|
6778
6769
|
description: string;
|
|
6779
6770
|
behavior: {
|
|
6780
|
-
dataType: "Token" | "Component" | "Asset" | "
|
|
6771
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaNode" | "Item";
|
|
6781
6772
|
items?: {
|
|
6782
6773
|
numberOfItems: number;
|
|
6783
6774
|
allowLinks: boolean;
|
|
@@ -6794,25 +6785,15 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6794
6785
|
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";
|
|
6795
6786
|
name: string;
|
|
6796
6787
|
description?: string | undefined;
|
|
6797
|
-
options?:
|
|
6798
|
-
|
|
6799
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6800
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6801
|
-
placeholder?: string | undefined;
|
|
6802
|
-
} & Record<string, any>) | undefined;
|
|
6803
|
-
variantOptions?: Record<string, {
|
|
6804
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6805
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6806
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6807
|
-
placeholder?: string | undefined;
|
|
6808
|
-
} & Record<string, any>> | undefined;
|
|
6788
|
+
options?: Record<string, any> | undefined;
|
|
6789
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6809
6790
|
}[];
|
|
6810
6791
|
variants: {
|
|
6811
6792
|
id: string;
|
|
6812
6793
|
name: string;
|
|
6813
6794
|
layout: {
|
|
6814
6795
|
type: "Column" | "Row";
|
|
6815
|
-
gap?: "
|
|
6796
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6816
6797
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6817
6798
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6818
6799
|
} & {
|
|
@@ -6857,7 +6838,7 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6857
6838
|
name: string;
|
|
6858
6839
|
description: string;
|
|
6859
6840
|
behavior: {
|
|
6860
|
-
dataType: "Token" | "Component" | "Asset" | "
|
|
6841
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaNode" | "Item";
|
|
6861
6842
|
items?: {
|
|
6862
6843
|
numberOfItems: number;
|
|
6863
6844
|
allowLinks: boolean;
|
|
@@ -6874,25 +6855,15 @@ declare const GetBlockDefinitionsResponse: z.ZodObject<{
|
|
|
6874
6855
|
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";
|
|
6875
6856
|
name: string;
|
|
6876
6857
|
description?: string | undefined;
|
|
6877
|
-
options?:
|
|
6878
|
-
|
|
6879
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6880
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6881
|
-
placeholder?: string | undefined;
|
|
6882
|
-
} & Record<string, any>) | undefined;
|
|
6883
|
-
variantOptions?: Record<string, {
|
|
6884
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
6885
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
6886
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
6887
|
-
placeholder?: string | undefined;
|
|
6888
|
-
} & Record<string, any>> | undefined;
|
|
6858
|
+
options?: Record<string, any> | undefined;
|
|
6859
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
6889
6860
|
}[];
|
|
6890
6861
|
variants: {
|
|
6891
6862
|
id: string;
|
|
6892
6863
|
name: string;
|
|
6893
6864
|
layout: {
|
|
6894
6865
|
type: "Column" | "Row";
|
|
6895
|
-
gap?: "
|
|
6866
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
6896
6867
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
6897
6868
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
6898
6869
|
} & {
|
|
@@ -7654,7 +7625,7 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
7654
7625
|
name: string;
|
|
7655
7626
|
description: string;
|
|
7656
7627
|
behavior: {
|
|
7657
|
-
dataType: "Token" | "Component" | "Asset" | "
|
|
7628
|
+
dataType: "Token" | "Component" | "Asset" | "FigmaNode" | "Item";
|
|
7658
7629
|
items?: {
|
|
7659
7630
|
numberOfItems: number;
|
|
7660
7631
|
allowLinks: boolean;
|
|
@@ -7671,25 +7642,15 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
|
|
|
7671
7642
|
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";
|
|
7672
7643
|
name: string;
|
|
7673
7644
|
description?: string | undefined;
|
|
7674
|
-
options?:
|
|
7675
|
-
|
|
7676
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7677
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7678
|
-
placeholder?: string | undefined;
|
|
7679
|
-
} & Record<string, any>) | undefined;
|
|
7680
|
-
variantOptions?: Record<string, {
|
|
7681
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
7682
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7683
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7684
|
-
placeholder?: string | undefined;
|
|
7685
|
-
} & Record<string, any>> | undefined;
|
|
7645
|
+
options?: Record<string, any> | undefined;
|
|
7646
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
7686
7647
|
}[];
|
|
7687
7648
|
variants: {
|
|
7688
7649
|
id: string;
|
|
7689
7650
|
name: string;
|
|
7690
7651
|
layout: {
|
|
7691
7652
|
type: "Column" | "Row";
|
|
7692
|
-
gap?: "
|
|
7653
|
+
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
7693
7654
|
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
7694
7655
|
columnResizing?: "Fill" | "Hug" | undefined;
|
|
7695
7656
|
} & {
|
|
@@ -7767,109 +7728,49 @@ declare const BlockDefinitionUtils: {
|
|
|
7767
7728
|
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";
|
|
7768
7729
|
name: string;
|
|
7769
7730
|
description?: string | undefined;
|
|
7770
|
-
options?:
|
|
7771
|
-
|
|
7772
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7773
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7774
|
-
placeholder?: string | undefined;
|
|
7775
|
-
} & Record<string, any>) | undefined;
|
|
7776
|
-
variantOptions?: Record<string, {
|
|
7777
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
7778
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7779
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7780
|
-
placeholder?: string | undefined;
|
|
7781
|
-
} & Record<string, any>> | undefined;
|
|
7731
|
+
options?: Record<string, any> | undefined;
|
|
7732
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
7782
7733
|
} | undefined;
|
|
7783
7734
|
firstMultiRichTextProperty(definition: PageBlockDefinition): {
|
|
7784
7735
|
id: string;
|
|
7785
7736
|
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";
|
|
7786
7737
|
name: string;
|
|
7787
7738
|
description?: string | undefined;
|
|
7788
|
-
options?:
|
|
7789
|
-
|
|
7790
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7791
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7792
|
-
placeholder?: string | undefined;
|
|
7793
|
-
} & Record<string, any>) | undefined;
|
|
7794
|
-
variantOptions?: Record<string, {
|
|
7795
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
7796
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7797
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7798
|
-
placeholder?: string | undefined;
|
|
7799
|
-
} & Record<string, any>> | undefined;
|
|
7739
|
+
options?: Record<string, any> | undefined;
|
|
7740
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
7800
7741
|
} | undefined;
|
|
7801
7742
|
firstTableProperty(definition: PageBlockDefinition): {
|
|
7802
7743
|
id: string;
|
|
7803
7744
|
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";
|
|
7804
7745
|
name: string;
|
|
7805
7746
|
description?: string | undefined;
|
|
7806
|
-
options?:
|
|
7807
|
-
|
|
7808
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7809
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7810
|
-
placeholder?: string | undefined;
|
|
7811
|
-
} & Record<string, any>) | undefined;
|
|
7812
|
-
variantOptions?: Record<string, {
|
|
7813
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
7814
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7815
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7816
|
-
placeholder?: string | undefined;
|
|
7817
|
-
} & Record<string, any>> | undefined;
|
|
7747
|
+
options?: Record<string, any> | undefined;
|
|
7748
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
7818
7749
|
} | undefined;
|
|
7819
7750
|
firstEmbedProperty(definition: PageBlockDefinition): {
|
|
7820
7751
|
id: string;
|
|
7821
7752
|
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";
|
|
7822
7753
|
name: string;
|
|
7823
7754
|
description?: string | undefined;
|
|
7824
|
-
options?:
|
|
7825
|
-
|
|
7826
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7827
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7828
|
-
placeholder?: string | undefined;
|
|
7829
|
-
} & Record<string, any>) | undefined;
|
|
7830
|
-
variantOptions?: Record<string, {
|
|
7831
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
7832
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7833
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7834
|
-
placeholder?: string | undefined;
|
|
7835
|
-
} & Record<string, any>> | undefined;
|
|
7755
|
+
options?: Record<string, any> | undefined;
|
|
7756
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
7836
7757
|
} | undefined;
|
|
7837
7758
|
richTextProperty(definition: PageBlockDefinition, propertyKey: string): {
|
|
7838
7759
|
id: string;
|
|
7839
7760
|
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";
|
|
7840
7761
|
name: string;
|
|
7841
7762
|
description?: string | undefined;
|
|
7842
|
-
options?:
|
|
7843
|
-
|
|
7844
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7845
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7846
|
-
placeholder?: string | undefined;
|
|
7847
|
-
} & Record<string, any>) | undefined;
|
|
7848
|
-
variantOptions?: Record<string, {
|
|
7849
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
7850
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7851
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7852
|
-
placeholder?: string | undefined;
|
|
7853
|
-
} & Record<string, any>> | undefined;
|
|
7763
|
+
options?: Record<string, any> | undefined;
|
|
7764
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
7854
7765
|
};
|
|
7855
7766
|
property(definition: PageBlockDefinition, propertyKey: string, expectedPropertyType?: PageBlockDefinitionPropertyType): {
|
|
7856
7767
|
id: string;
|
|
7857
7768
|
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";
|
|
7858
7769
|
name: string;
|
|
7859
7770
|
description?: string | undefined;
|
|
7860
|
-
options?:
|
|
7861
|
-
|
|
7862
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7863
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7864
|
-
placeholder?: string | undefined;
|
|
7865
|
-
} & Record<string, any>) | undefined;
|
|
7866
|
-
variantOptions?: Record<string, {
|
|
7867
|
-
richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | undefined;
|
|
7868
|
-
multiRichTextStyle?: "Default" | "OL" | "UL" | undefined;
|
|
7869
|
-
textStyle?: "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "Small" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
|
|
7870
|
-
placeholder?: string | undefined;
|
|
7871
|
-
} & Record<string, any>> | undefined;
|
|
7771
|
+
options?: Record<string, any> | undefined;
|
|
7772
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
7872
7773
|
};
|
|
7873
7774
|
};
|
|
7874
7775
|
|
|
7875
|
-
export { BlockDefinitionUtils, BlockParsingUtils, BulkEditDocPageElementsInput, CreateBulkElementsInput, DeleteBulkElementsInput, DocumentationGroupDTO, DocumentationGroupStructureDTO, DocumentationHierarchyV2DTO, DocumentationPageEditorModel, DocumentationPageStructureV2DTO, DocumentationPageV1DTO, DocumentationPageV2DTO, DuplicateBulkElementsInput, GetBlockDefinitionsResponse, PageBlockEditorModel, PostLiveblocksAuth, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, UpdateBulkElementsInput, blockDefinitionForBlock, blockToProsemirrorNode, documentationHierarchyToYjs, getMockPageBlockDefinitions, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, serializeAsCustomBlock, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|
|
7776
|
+
export { BlockDefinitionUtils, BlockParsingUtils, BulkEditDocPageElementsInput, CreateBulkElementsInput, DeleteBulkElementsInput, DesignSystemDTO, DocumentationGroupDTO, DocumentationGroupStructureDTO, DocumentationHierarchyV2DTO, DocumentationPageEditorModel, DocumentationPageStructureV2DTO, DocumentationPageV1DTO, DocumentationPageV2DTO, DuplicateBulkElementsInput, GetBlockDefinitionsResponse, PageBlockEditorModel, PostLiveblocksAuth, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, UpdateBulkElementsInput, blockDefinitionForBlock, blockToProsemirrorNode, documentationHierarchyToYjs, getMockPageBlockDefinitions, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, serializeAsCustomBlock, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|