@supernova-studio/client 0.31.0 → 0.33.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 +33 -107
- package/dist/index.d.ts +33 -107
- package/dist/index.js +273 -121
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +261 -109
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/documentation/group.ts +3 -2
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +125 -105
- package/src/yjs/docs-editor/list-tree-builder.ts +194 -0
- package/src/yjs/docs-editor/prosemirror/schema.ts +3 -0
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -92,8 +92,8 @@ declare const DTODocumentationLinkPreviewResponse: z.ZodObject<{
|
|
|
92
92
|
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
93
93
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
94
94
|
resource: z.ZodOptional<z.ZodObject<{
|
|
95
|
-
url: z.ZodString;
|
|
96
95
|
resourceId: z.ZodString;
|
|
96
|
+
url: z.ZodString;
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
url: string;
|
|
99
99
|
resourceId: string;
|
|
@@ -358,29 +358,29 @@ declare const DTODocumentationTabCreateActionInputV2: z.ZodObject<{
|
|
|
358
358
|
type: z.ZodLiteral<"DocumentationTabCreate">;
|
|
359
359
|
input: z.ZodObject<{
|
|
360
360
|
persistentId: z.ZodString;
|
|
361
|
-
|
|
361
|
+
fromItemPersistentId: z.ZodString;
|
|
362
362
|
tabName: z.ZodString;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
364
|
persistentId: string;
|
|
365
|
-
|
|
365
|
+
fromItemPersistentId: string;
|
|
366
366
|
tabName: string;
|
|
367
367
|
}, {
|
|
368
368
|
persistentId: string;
|
|
369
|
-
|
|
369
|
+
fromItemPersistentId: string;
|
|
370
370
|
tabName: string;
|
|
371
371
|
}>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
373
373
|
type: "DocumentationTabCreate";
|
|
374
374
|
input: {
|
|
375
375
|
persistentId: string;
|
|
376
|
-
|
|
376
|
+
fromItemPersistentId: string;
|
|
377
377
|
tabName: string;
|
|
378
378
|
};
|
|
379
379
|
}, {
|
|
380
380
|
type: "DocumentationTabCreate";
|
|
381
381
|
input: {
|
|
382
382
|
persistentId: string;
|
|
383
|
-
|
|
383
|
+
fromItemPersistentId: string;
|
|
384
384
|
tabName: string;
|
|
385
385
|
};
|
|
386
386
|
}>;
|
|
@@ -417,8 +417,8 @@ declare const DTODocumentationGroupCreateActionInputV2: z.ZodObject<{
|
|
|
417
417
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
418
418
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
419
419
|
resource: z.ZodOptional<z.ZodObject<{
|
|
420
|
-
url: z.ZodString;
|
|
421
420
|
resourceId: z.ZodString;
|
|
421
|
+
url: z.ZodString;
|
|
422
422
|
}, "strip", z.ZodTypeAny, {
|
|
423
423
|
url: string;
|
|
424
424
|
resourceId: string;
|
|
@@ -758,8 +758,8 @@ declare const DTODocumentationGroupUpdateActionInputV2: z.ZodObject<{
|
|
|
758
758
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
759
759
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
760
760
|
resource: z.ZodOptional<z.ZodObject<{
|
|
761
|
-
url: z.ZodString;
|
|
762
761
|
resourceId: z.ZodString;
|
|
762
|
+
url: z.ZodString;
|
|
763
763
|
}, "strip", z.ZodTypeAny, {
|
|
764
764
|
url: string;
|
|
765
765
|
resourceId: string;
|
|
@@ -1260,8 +1260,8 @@ declare const DTODocumentationGroupV2: z.ZodObject<{
|
|
|
1260
1260
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1261
1261
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
1262
1262
|
resource: z.ZodOptional<z.ZodObject<{
|
|
1263
|
-
url: z.ZodString;
|
|
1264
1263
|
resourceId: z.ZodString;
|
|
1264
|
+
url: z.ZodString;
|
|
1265
1265
|
}, "strip", z.ZodTypeAny, {
|
|
1266
1266
|
url: string;
|
|
1267
1267
|
resourceId: string;
|
|
@@ -1537,8 +1537,8 @@ declare const DTOCreateDocumentationGroupInput: z.ZodObject<{
|
|
|
1537
1537
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1538
1538
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
1539
1539
|
resource: z.ZodOptional<z.ZodObject<{
|
|
1540
|
-
url: z.ZodString;
|
|
1541
1540
|
resourceId: z.ZodString;
|
|
1541
|
+
url: z.ZodString;
|
|
1542
1542
|
}, "strip", z.ZodTypeAny, {
|
|
1543
1543
|
url: string;
|
|
1544
1544
|
resourceId: string;
|
|
@@ -1798,8 +1798,8 @@ declare const DTOUpdateDocumentationGroupInput: z.ZodObject<{
|
|
|
1798
1798
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1799
1799
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
1800
1800
|
resource: z.ZodOptional<z.ZodObject<{
|
|
1801
|
-
url: z.ZodString;
|
|
1802
1801
|
resourceId: z.ZodString;
|
|
1802
|
+
url: z.ZodString;
|
|
1803
1803
|
}, "strip", z.ZodTypeAny, {
|
|
1804
1804
|
url: string;
|
|
1805
1805
|
resourceId: string;
|
|
@@ -2055,15 +2055,15 @@ declare const DTODuplicateDocumentationGroupInput: z.ZodObject<{
|
|
|
2055
2055
|
type DTODuplicateDocumentationGroupInput = z.infer<typeof DTODuplicateDocumentationGroupInput>;
|
|
2056
2056
|
declare const DTOCreateDocumentationTabInput: z.ZodObject<{
|
|
2057
2057
|
persistentId: z.ZodString;
|
|
2058
|
-
|
|
2058
|
+
fromItemPersistentId: z.ZodString;
|
|
2059
2059
|
tabName: z.ZodString;
|
|
2060
2060
|
}, "strip", z.ZodTypeAny, {
|
|
2061
2061
|
persistentId: string;
|
|
2062
|
-
|
|
2062
|
+
fromItemPersistentId: string;
|
|
2063
2063
|
tabName: string;
|
|
2064
2064
|
}, {
|
|
2065
2065
|
persistentId: string;
|
|
2066
|
-
|
|
2066
|
+
fromItemPersistentId: string;
|
|
2067
2067
|
tabName: string;
|
|
2068
2068
|
}>;
|
|
2069
2069
|
type DTOCreateDocumentationTabInput = z.infer<typeof DTOCreateDocumentationTabInput>;
|
|
@@ -2225,8 +2225,8 @@ declare const DTODocumentationPageCreateActionInputV2: z.ZodObject<{
|
|
|
2225
2225
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2226
2226
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
2227
2227
|
resource: z.ZodOptional<z.ZodObject<{
|
|
2228
|
-
url: z.ZodString;
|
|
2229
2228
|
resourceId: z.ZodString;
|
|
2229
|
+
url: z.ZodString;
|
|
2230
2230
|
}, "strip", z.ZodTypeAny, {
|
|
2231
2231
|
url: string;
|
|
2232
2232
|
resourceId: string;
|
|
@@ -2565,8 +2565,8 @@ declare const DTODocumentationPageUpdateActionInputV2: z.ZodObject<{
|
|
|
2565
2565
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2566
2566
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
2567
2567
|
resource: z.ZodOptional<z.ZodObject<{
|
|
2568
|
-
url: z.ZodString;
|
|
2569
2568
|
resourceId: z.ZodString;
|
|
2569
|
+
url: z.ZodString;
|
|
2570
2570
|
}, "strip", z.ZodTypeAny, {
|
|
2571
2571
|
url: string;
|
|
2572
2572
|
resourceId: string;
|
|
@@ -3242,7 +3242,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3242
3242
|
};
|
|
3243
3243
|
} | null | undefined>;
|
|
3244
3244
|
blocks: z.ZodArray<z.ZodType<_supernova_studio_model.PageBlockV1, z.ZodTypeDef, {
|
|
3245
|
-
type: "Tabs" | "Custom" | "Image" | "Component" | "Theme" | "Text" | "Token" | "Code" | "Table" | "Divider" | "
|
|
3245
|
+
type: "Tabs" | "Custom" | "Image" | "Component" | "Theme" | "Text" | "Token" | "Code" | "Table" | "Divider" | "Link" | "Quote" | "Callout" | "Embed" | "ComponentGroup" | "Heading" | "UnorderedList" | "OrderedList" | "Shortcuts" | "FigmaEmbed" | "YoutubeEmbed" | "StorybookEmbed" | "TokenGroup" | "TokenList" | "ComponentSandbox" | "FigmaFrames" | "ComponentAssets" | "RenderCode" | "TabItem" | "TableRow" | "TableCell";
|
|
3246
3246
|
persistentId: string;
|
|
3247
3247
|
designObjectId?: string | null | undefined;
|
|
3248
3248
|
designObjectIds?: string[] | null | undefined;
|
|
@@ -3517,7 +3517,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3517
3517
|
shortPersistentId: string;
|
|
3518
3518
|
title: string;
|
|
3519
3519
|
blocks: ({
|
|
3520
|
-
type: "Tabs" | "Custom" | "Image" | "Component" | "Theme" | "Text" | "Token" | "Code" | "Table" | "Divider" | "
|
|
3520
|
+
type: "Tabs" | "Custom" | "Image" | "Component" | "Theme" | "Text" | "Token" | "Code" | "Table" | "Divider" | "Link" | "Quote" | "Callout" | "Embed" | "ComponentGroup" | "Heading" | "UnorderedList" | "OrderedList" | "Shortcuts" | "FigmaEmbed" | "YoutubeEmbed" | "StorybookEmbed" | "TokenGroup" | "TokenList" | "ComponentSandbox" | "FigmaFrames" | "ComponentAssets" | "RenderCode" | "TabItem" | "TableRow" | "TableCell";
|
|
3521
3521
|
persistentId: string;
|
|
3522
3522
|
designObjectId?: string | null | undefined;
|
|
3523
3523
|
designObjectIds?: string[] | null | undefined;
|
|
@@ -3813,8 +3813,8 @@ declare const DTODocumentationPageV2: z.ZodObject<{
|
|
|
3813
3813
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3814
3814
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
3815
3815
|
resource: z.ZodOptional<z.ZodObject<{
|
|
3816
|
-
url: z.ZodString;
|
|
3817
3816
|
resourceId: z.ZodString;
|
|
3817
|
+
url: z.ZodString;
|
|
3818
3818
|
}, "strip", z.ZodTypeAny, {
|
|
3819
3819
|
url: string;
|
|
3820
3820
|
resourceId: string;
|
|
@@ -4269,8 +4269,8 @@ declare const DTOCreateDocumentationPageInputV2: z.ZodObject<{
|
|
|
4269
4269
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4270
4270
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
4271
4271
|
resource: z.ZodOptional<z.ZodObject<{
|
|
4272
|
-
url: z.ZodString;
|
|
4273
4272
|
resourceId: z.ZodString;
|
|
4273
|
+
url: z.ZodString;
|
|
4274
4274
|
}, "strip", z.ZodTypeAny, {
|
|
4275
4275
|
url: string;
|
|
4276
4276
|
resourceId: string;
|
|
@@ -4530,8 +4530,8 @@ declare const DTOUpdateDocumentationPageInputV2: z.ZodObject<{
|
|
|
4530
4530
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4531
4531
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
4532
4532
|
resource: z.ZodOptional<z.ZodObject<{
|
|
4533
|
-
url: z.ZodString;
|
|
4534
4533
|
resourceId: z.ZodString;
|
|
4534
|
+
url: z.ZodString;
|
|
4535
4535
|
}, "strip", z.ZodTypeAny, {
|
|
4536
4536
|
url: string;
|
|
4537
4537
|
resourceId: string;
|
|
@@ -5527,8 +5527,8 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
5527
5527
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5528
5528
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
5529
5529
|
resource: z.ZodOptional<z.ZodObject<{
|
|
5530
|
-
url: z.ZodString;
|
|
5531
5530
|
resourceId: z.ZodString;
|
|
5531
|
+
url: z.ZodString;
|
|
5532
5532
|
}, "strip", z.ZodTypeAny, {
|
|
5533
5533
|
url: string;
|
|
5534
5534
|
resourceId: string;
|
|
@@ -5865,8 +5865,8 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
5865
5865
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5866
5866
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
5867
5867
|
resource: z.ZodOptional<z.ZodObject<{
|
|
5868
|
-
url: z.ZodString;
|
|
5869
5868
|
resourceId: z.ZodString;
|
|
5869
|
+
url: z.ZodString;
|
|
5870
5870
|
}, "strip", z.ZodTypeAny, {
|
|
5871
5871
|
url: string;
|
|
5872
5872
|
resourceId: string;
|
|
@@ -6275,8 +6275,8 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
6275
6275
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6276
6276
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
6277
6277
|
resource: z.ZodOptional<z.ZodObject<{
|
|
6278
|
-
url: z.ZodString;
|
|
6279
6278
|
resourceId: z.ZodString;
|
|
6279
|
+
url: z.ZodString;
|
|
6280
6280
|
}, "strip", z.ZodTypeAny, {
|
|
6281
6281
|
url: string;
|
|
6282
6282
|
resourceId: string;
|
|
@@ -6584,29 +6584,29 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
6584
6584
|
type: z.ZodLiteral<"DocumentationTabCreate">;
|
|
6585
6585
|
input: z.ZodObject<{
|
|
6586
6586
|
persistentId: z.ZodString;
|
|
6587
|
-
|
|
6587
|
+
fromItemPersistentId: z.ZodString;
|
|
6588
6588
|
tabName: z.ZodString;
|
|
6589
6589
|
}, "strip", z.ZodTypeAny, {
|
|
6590
6590
|
persistentId: string;
|
|
6591
|
-
|
|
6591
|
+
fromItemPersistentId: string;
|
|
6592
6592
|
tabName: string;
|
|
6593
6593
|
}, {
|
|
6594
6594
|
persistentId: string;
|
|
6595
|
-
|
|
6595
|
+
fromItemPersistentId: string;
|
|
6596
6596
|
tabName: string;
|
|
6597
6597
|
}>;
|
|
6598
6598
|
}, "strip", z.ZodTypeAny, {
|
|
6599
6599
|
type: "DocumentationTabCreate";
|
|
6600
6600
|
input: {
|
|
6601
6601
|
persistentId: string;
|
|
6602
|
-
|
|
6602
|
+
fromItemPersistentId: string;
|
|
6603
6603
|
tabName: string;
|
|
6604
6604
|
};
|
|
6605
6605
|
}, {
|
|
6606
6606
|
type: "DocumentationTabCreate";
|
|
6607
6607
|
input: {
|
|
6608
6608
|
persistentId: string;
|
|
6609
|
-
|
|
6609
|
+
fromItemPersistentId: string;
|
|
6610
6610
|
tabName: string;
|
|
6611
6611
|
};
|
|
6612
6612
|
}>, z.ZodObject<{
|
|
@@ -6642,8 +6642,8 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
6642
6642
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6643
6643
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
6644
6644
|
resource: z.ZodOptional<z.ZodObject<{
|
|
6645
|
-
url: z.ZodString;
|
|
6646
6645
|
resourceId: z.ZodString;
|
|
6646
|
+
url: z.ZodString;
|
|
6647
6647
|
}, "strip", z.ZodTypeAny, {
|
|
6648
6648
|
url: string;
|
|
6649
6649
|
resourceId: string;
|
|
@@ -12757,8 +12757,8 @@ declare const DTODocumentationPageRoomHeaderData: z.ZodObject<{
|
|
|
12757
12757
|
backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12758
12758
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
12759
12759
|
resource: z.ZodOptional<z.ZodObject<{
|
|
12760
|
-
url: z.ZodString;
|
|
12761
12760
|
resourceId: z.ZodString;
|
|
12761
|
+
url: z.ZodString;
|
|
12762
12762
|
}, "strip", z.ZodTypeAny, {
|
|
12763
12763
|
url: string;
|
|
12764
12764
|
resourceId: string;
|
|
@@ -13009,8 +13009,8 @@ declare const DTODocumentationPageRoomHeaderDataUpdate: z.ZodObject<{
|
|
|
13009
13009
|
backgroundImageAsset: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13010
13010
|
type: z.ZodEnum<["Resource", "FigmaNode"]>;
|
|
13011
13011
|
resource: z.ZodOptional<z.ZodObject<{
|
|
13012
|
-
url: z.ZodString;
|
|
13013
13012
|
resourceId: z.ZodString;
|
|
13013
|
+
url: z.ZodString;
|
|
13014
13014
|
}, "strip", z.ZodTypeAny, {
|
|
13015
13015
|
url: string;
|
|
13016
13016
|
resourceId: string;
|
|
@@ -14876,80 +14876,6 @@ type ProsemirrorBlockItem = {
|
|
|
14876
14876
|
|
|
14877
14877
|
declare function pageToYXmlFragment(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[], fragment: Y.XmlFragment): Y.XmlFragment;
|
|
14878
14878
|
declare function pageToProsemirrorDoc(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[]): ProsemirrorNode;
|
|
14879
|
-
declare function blockDefinitionForBlock(block: PageBlockEditorModel, definitions: PageBlockDefinition[]): {
|
|
14880
|
-
id: string;
|
|
14881
|
-
name: string;
|
|
14882
|
-
description: string;
|
|
14883
|
-
item: {
|
|
14884
|
-
properties: {
|
|
14885
|
-
id: string;
|
|
14886
|
-
type: "FigmaNode" | "Image" | "Color" | "Component" | "RichText" | "MultiRichText" | "Text" | "Boolean" | "Number" | "SingleSelect" | "MultiSelect" | "Token" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "URL" | "Markdown" | "Code" | "CodeSandbox" | "Table" | "Divider" | "Storybook";
|
|
14887
|
-
name: string;
|
|
14888
|
-
description?: string | undefined;
|
|
14889
|
-
options?: Record<string, any> | undefined;
|
|
14890
|
-
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
14891
|
-
}[];
|
|
14892
|
-
variants: {
|
|
14893
|
-
id: string;
|
|
14894
|
-
name: string;
|
|
14895
|
-
layout: {
|
|
14896
|
-
type: "Column" | "Row";
|
|
14897
|
-
gap?: "None" | "Small" | "Medium" | "Large" | undefined;
|
|
14898
|
-
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
14899
|
-
columnResizing?: "Fill" | "Hug" | undefined;
|
|
14900
|
-
} & {
|
|
14901
|
-
children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
|
|
14902
|
-
};
|
|
14903
|
-
image?: string | undefined;
|
|
14904
|
-
description?: string | undefined;
|
|
14905
|
-
documentationLink?: string | undefined;
|
|
14906
|
-
maxColumns?: number | undefined;
|
|
14907
|
-
defaultColumns?: number | undefined;
|
|
14908
|
-
appearance?: {
|
|
14909
|
-
isBordered?: boolean | undefined;
|
|
14910
|
-
hasBackground?: boolean | undefined;
|
|
14911
|
-
isEditorPresentationDifferent?: boolean | undefined;
|
|
14912
|
-
showBlockHeaderInEditor?: boolean | undefined;
|
|
14913
|
-
} | undefined;
|
|
14914
|
-
}[];
|
|
14915
|
-
defaultVariantKey: string;
|
|
14916
|
-
appearance?: {
|
|
14917
|
-
isBordered?: boolean | undefined;
|
|
14918
|
-
hasBackground?: boolean | undefined;
|
|
14919
|
-
isEditorPresentationDifferent?: boolean | undefined;
|
|
14920
|
-
showBlockHeaderInEditor?: boolean | undefined;
|
|
14921
|
-
} | undefined;
|
|
14922
|
-
};
|
|
14923
|
-
category: "Text" | "Code" | "Embed" | "Figma" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
|
|
14924
|
-
behavior: {
|
|
14925
|
-
dataType: "FigmaNode" | "Component" | "Token" | "Asset" | "Item";
|
|
14926
|
-
items?: {
|
|
14927
|
-
numberOfItems: number;
|
|
14928
|
-
allowLinks: boolean;
|
|
14929
|
-
} | undefined;
|
|
14930
|
-
entities?: {
|
|
14931
|
-
selectionType: "Group" | "Entity" | "EntityAndGroup";
|
|
14932
|
-
maxSelected: number;
|
|
14933
|
-
} | undefined;
|
|
14934
|
-
};
|
|
14935
|
-
editorOptions: {
|
|
14936
|
-
onboarding?: {
|
|
14937
|
-
helpText: string;
|
|
14938
|
-
documentationLink?: string | undefined;
|
|
14939
|
-
} | undefined;
|
|
14940
|
-
};
|
|
14941
|
-
icon?: string | undefined;
|
|
14942
|
-
documentationLink?: string | undefined;
|
|
14943
|
-
searchKeywords?: string[] | undefined;
|
|
14944
|
-
appearance?: {
|
|
14945
|
-
isBordered?: boolean | undefined;
|
|
14946
|
-
hasBackground?: boolean | undefined;
|
|
14947
|
-
isEditorPresentationDifferent?: boolean | undefined;
|
|
14948
|
-
showBlockHeaderInEditor?: boolean | undefined;
|
|
14949
|
-
} | undefined;
|
|
14950
|
-
};
|
|
14951
|
-
declare function sectionToProsemirrorNode(section: PageSectionEditorModel, definitions: PageBlockDefinition[]): ProsemirrorNode;
|
|
14952
|
-
declare function blockToProsemirrorNode(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode | null;
|
|
14953
14879
|
declare function serializeAsCustomBlock(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode;
|
|
14954
14880
|
|
|
14955
14881
|
declare function getMockPageBlockDefinitions(): PageBlockDefinition[];
|
|
@@ -15063,4 +14989,4 @@ declare const BlockDefinitionUtils: {
|
|
|
15063
14989
|
};
|
|
15064
14990
|
};
|
|
15065
14991
|
|
|
15066
|
-
export { BlockDefinitionUtils, BlockParsingUtils, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupStructureV2, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderInput, DTOGetBlockDefinitionsOutput, DTOLiveblocksAuthRequest, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceRole, DocumentationPageEditorModel, DocumentationPageV1DTO, NpmRegistryInput, PageBlockEditorModel, PageSectionEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, WorkspaceConfigurationPayload,
|
|
14992
|
+
export { BlockDefinitionUtils, BlockParsingUtils, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupStructureV2, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderInput, DTOGetBlockDefinitionsOutput, DTOLiveblocksAuthRequest, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceRole, DocumentationPageEditorModel, DocumentationPageV1DTO, NpmRegistryInput, PageBlockEditorModel, PageSectionEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, WorkspaceConfigurationPayload, buildDocPagePublishPaths, calculateElementParentChain, documentationElementsToHierarchyDto, documentationHierarchyToYjs, documentationPagesToDTOV1, documentationPagesToDTOV2, documentationPagesToStructureDTOV2, elementGroupsToDocumentationGroupDTO, elementGroupsToDocumentationGroupStructureDTO, getMockPageBlockDefinitions, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, prosemirrorNodeToSection, prosemirrorNodesToBlocks, serializeAsCustomBlock, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|