@supernova-studio/client 0.1.0 → 0.2.1
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 +87 -100
- package/dist/index.d.ts +87 -100
- package/dist/index.js +752 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +746 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/docs-editor/blocks-to-prosemirror.ts +88 -114
- package/src/docs-editor/mock.ts +2 -2
- package/src/docs-editor/prosemirror/types.ts +3 -7
- package/src/docs-editor/prosemirror-to-blocks.ts +226 -3
- package/src/docs-editor/utils.ts +14 -0
- package/src/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -249,6 +249,9 @@ var Asset = _zod.z.object({
|
|
|
249
249
|
properties: AssetProperties.nullish(),
|
|
250
250
|
origin: AssetOrigin.nullish()
|
|
251
251
|
});
|
|
252
|
+
function isImportedAsset(asset) {
|
|
253
|
+
return !!asset.origin;
|
|
254
|
+
}
|
|
252
255
|
|
|
253
256
|
// ../model/src/dsm/data-sources/data-source.ts
|
|
254
257
|
|
|
@@ -501,6 +504,9 @@ var DesignElementType = DesignTokenType.or(
|
|
|
501
504
|
"PageBlock"
|
|
502
505
|
])
|
|
503
506
|
);
|
|
507
|
+
function isTokenType(type) {
|
|
508
|
+
return DesignTokenType.safeParse(type).success;
|
|
509
|
+
}
|
|
504
510
|
var DesignElementCategory = _zod.z.enum([
|
|
505
511
|
"Token",
|
|
506
512
|
"Component",
|
|
@@ -856,10 +862,18 @@ var PageBlockV1 = PageBlockBaseV1.extend({
|
|
|
856
862
|
() => PageBlockV1.array().nullish().transform((t) => _nullishCoalesce(t, () => ( [])))
|
|
857
863
|
)
|
|
858
864
|
});
|
|
865
|
+
function traversePageBlocksV1(blocks2, action) {
|
|
866
|
+
for (const block of blocks2) {
|
|
867
|
+
action(block);
|
|
868
|
+
traversePageBlocksV1(block.children, action);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
859
871
|
|
|
860
872
|
// ../model/src/dsm/elements/data/documentation-block-v2.ts
|
|
861
873
|
|
|
862
|
-
var PageBlockLinkType = _zod.z.enum(["
|
|
874
|
+
var PageBlockLinkType = _zod.z.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
875
|
+
var PageBlockImageType = _zod.z.enum(["Upload", "Asset", "FigmaFrame"]);
|
|
876
|
+
var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
863
877
|
var PageBlockAppearanceV2 = _zod.z.object({
|
|
864
878
|
itemBackgroundColor: ColorValue
|
|
865
879
|
});
|
|
@@ -870,6 +884,11 @@ var PageBlockItemRichTextPropertyValue = _zod.z.object({
|
|
|
870
884
|
value: PageBlockText,
|
|
871
885
|
calloutType: PageBlockCalloutType.optional()
|
|
872
886
|
});
|
|
887
|
+
var PageBlockItemEmbedPropertyValue = _zod.z.object({
|
|
888
|
+
value: _zod.z.string().optional(),
|
|
889
|
+
caption: _zod.z.string().optional(),
|
|
890
|
+
height: _zod.z.number().optional()
|
|
891
|
+
});
|
|
873
892
|
var PageBlockItemMultiRichTextPropertyValue = _zod.z.object({
|
|
874
893
|
value: PageBlockText.array()
|
|
875
894
|
});
|
|
@@ -877,11 +896,26 @@ var PageBlockItemTextPropertyValue = _zod.z.object({
|
|
|
877
896
|
value: _zod.z.string(),
|
|
878
897
|
calloutType: PageBlockCalloutType.optional()
|
|
879
898
|
});
|
|
899
|
+
var PageBlockItemImageReference = _zod.z.object({
|
|
900
|
+
type: PageBlockImageType,
|
|
901
|
+
url: _zod.z.string(),
|
|
902
|
+
assetId: _zod.z.string().optional(),
|
|
903
|
+
size: Size.optional(),
|
|
904
|
+
figmaFile: _zod.z.object({
|
|
905
|
+
sourceId: _zod.z.string(),
|
|
906
|
+
frameId: _zod.z.string()
|
|
907
|
+
}).optional()
|
|
908
|
+
});
|
|
909
|
+
var PageBlockItemImageValue = _zod.z.object({
|
|
910
|
+
alt: _zod.z.string().optional(),
|
|
911
|
+
caption: _zod.z.string().optional(),
|
|
912
|
+
alignment: PageBlockImageAlignment.optional(),
|
|
913
|
+
value: PageBlockItemImageReference.optional()
|
|
914
|
+
});
|
|
880
915
|
var PageBlockLinkV2 = _zod.z.object({
|
|
881
916
|
type: PageBlockLinkType,
|
|
882
|
-
|
|
917
|
+
documentationItemId: _zod.z.string().optional(),
|
|
883
918
|
pageHeadingId: _zod.z.string().optional(),
|
|
884
|
-
groupId: _zod.z.string().optional(),
|
|
885
919
|
url: _zod.z.string().optional(),
|
|
886
920
|
openInNewTab: _zod.z.boolean().optional()
|
|
887
921
|
});
|
|
@@ -959,6 +993,16 @@ var FigmaFileStructureElementData = _zod.z.object({
|
|
|
959
993
|
assetsInFile: FigmaFileStructureStatistics
|
|
960
994
|
})
|
|
961
995
|
});
|
|
996
|
+
function figmaFileStructureToMap(root) {
|
|
997
|
+
const map = /* @__PURE__ */ new Map();
|
|
998
|
+
recursiveFigmaFileStructureToMap(root, map);
|
|
999
|
+
return map;
|
|
1000
|
+
}
|
|
1001
|
+
function recursiveFigmaFileStructureToMap(node, map) {
|
|
1002
|
+
map.set(node.id, node);
|
|
1003
|
+
for (const child of node.children)
|
|
1004
|
+
recursiveFigmaFileStructureToMap(child, map);
|
|
1005
|
+
}
|
|
962
1006
|
|
|
963
1007
|
// ../model/src/dsm/elements/data/figma-node-reference.ts
|
|
964
1008
|
|
|
@@ -1199,6 +1243,9 @@ var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shap
|
|
|
1199
1243
|
svg: ComponentAsset.optional(),
|
|
1200
1244
|
isAsset: _zod.z.boolean()
|
|
1201
1245
|
});
|
|
1246
|
+
function isImportedComponent(component) {
|
|
1247
|
+
return !!component.origin;
|
|
1248
|
+
}
|
|
1202
1249
|
|
|
1203
1250
|
// ../model/src/dsm/elements/documentation-page-v1.ts
|
|
1204
1251
|
|
|
@@ -1237,6 +1284,12 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
1237
1284
|
origin: FigmaFileStructureOrigin,
|
|
1238
1285
|
data: FigmaFileStructureData
|
|
1239
1286
|
});
|
|
1287
|
+
function traverseStructure(node, action) {
|
|
1288
|
+
action(node);
|
|
1289
|
+
for (const child of node.children) {
|
|
1290
|
+
traverseStructure(child, action);
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1240
1293
|
|
|
1241
1294
|
// ../model/src/dsm/elements/figma-node-reference.ts
|
|
1242
1295
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
@@ -1431,6 +1484,21 @@ var DesignTokenTypedData = _zod.z.discriminatedUnion("type", [
|
|
|
1431
1484
|
]);
|
|
1432
1485
|
var DesignToken = DesignTokenTypedData.and(DesignTokenBase);
|
|
1433
1486
|
var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
1487
|
+
function extractTokenTypedData(source) {
|
|
1488
|
+
return {
|
|
1489
|
+
type: source.type,
|
|
1490
|
+
data: source.data
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
function isImportedDesignToken(designToken) {
|
|
1494
|
+
return !!designToken.origin;
|
|
1495
|
+
}
|
|
1496
|
+
function isDesignTokenOfType(designToken, type) {
|
|
1497
|
+
return designToken.type === type;
|
|
1498
|
+
}
|
|
1499
|
+
function designTokenTypeFilter(type) {
|
|
1500
|
+
return (designToken) => isDesignTokenOfType(designToken, type);
|
|
1501
|
+
}
|
|
1434
1502
|
|
|
1435
1503
|
// ../model/src/dsm/elements/theme.ts
|
|
1436
1504
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
@@ -1650,6 +1718,12 @@ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImp
|
|
|
1650
1718
|
});
|
|
1651
1719
|
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
1652
1720
|
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
1721
|
+
function isDesignTokenImportModelOfType(designToken, type) {
|
|
1722
|
+
return designToken.type === type;
|
|
1723
|
+
}
|
|
1724
|
+
function designTokenImportModelTypeFilter(type) {
|
|
1725
|
+
return (designToken) => isDesignTokenImportModelOfType(designToken, type);
|
|
1726
|
+
}
|
|
1653
1727
|
|
|
1654
1728
|
// ../model/src/dsm/import/figma-frames.ts
|
|
1655
1729
|
|
|
@@ -1673,6 +1747,16 @@ var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
|
1673
1747
|
).extend({
|
|
1674
1748
|
fileVersionId: _zod.z.string()
|
|
1675
1749
|
});
|
|
1750
|
+
function figmaFileStructureImportModelToMap(root) {
|
|
1751
|
+
const map = /* @__PURE__ */ new Map();
|
|
1752
|
+
recursiveFigmaFileStructureToMap2(root, map);
|
|
1753
|
+
return map;
|
|
1754
|
+
}
|
|
1755
|
+
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
1756
|
+
map.set(node.id, node);
|
|
1757
|
+
for (const child of node.children)
|
|
1758
|
+
recursiveFigmaFileStructureToMap2(child, map);
|
|
1759
|
+
}
|
|
1676
1760
|
|
|
1677
1761
|
// ../model/src/dsm/import/data-source.ts
|
|
1678
1762
|
|
|
@@ -1700,6 +1784,16 @@ var ImportModelCollection = _zod.z.object({
|
|
|
1700
1784
|
themes: _zod.z.array(ThemeImportModel).default([]),
|
|
1701
1785
|
figmaFileStructures: _zod.z.array(FigmaFileStructureImportModel)
|
|
1702
1786
|
});
|
|
1787
|
+
function addImportModelCollections(lhs, rhs) {
|
|
1788
|
+
return {
|
|
1789
|
+
sources: [...lhs.sources, ...rhs.sources],
|
|
1790
|
+
tokens: [...lhs.tokens, ...rhs.tokens],
|
|
1791
|
+
components: [...lhs.components, ...rhs.components],
|
|
1792
|
+
themeUpdates: [...lhs.themeUpdates, ...rhs.themeUpdates],
|
|
1793
|
+
themes: [...lhs.themes, ...rhs.themes],
|
|
1794
|
+
figmaFileStructures: [...lhs.figmaFileStructures, ...rhs.figmaFileStructures]
|
|
1795
|
+
};
|
|
1796
|
+
}
|
|
1703
1797
|
|
|
1704
1798
|
// ../model/src/dsm/import/warning.ts
|
|
1705
1799
|
|
|
@@ -1837,7 +1931,8 @@ var PageBlockDefinitionPropertyType = _zod.z.enum([
|
|
|
1837
1931
|
"CodeSandbox",
|
|
1838
1932
|
"Table",
|
|
1839
1933
|
"Divider",
|
|
1840
|
-
"Storybook"
|
|
1934
|
+
"Storybook",
|
|
1935
|
+
"Color"
|
|
1841
1936
|
]);
|
|
1842
1937
|
var PageBlockDefinitionRichTextPropertyStyle = _zod.z.enum([
|
|
1843
1938
|
"Title1",
|
|
@@ -2196,6 +2291,14 @@ var DesignSystemUpdateInput = _zod.z.object({
|
|
|
2196
2291
|
docExporterId: _zod.z.string().optional()
|
|
2197
2292
|
});
|
|
2198
2293
|
|
|
2294
|
+
// ../model/src/dsm/published-doc-page.ts
|
|
2295
|
+
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
2296
|
+
function tryParseShortPersistentId(url = "/") {
|
|
2297
|
+
const lastUrlPart = url.split("/").pop() || "";
|
|
2298
|
+
const shortPersistentId = _optionalChain([lastUrlPart, 'access', _2 => _2.split, 'call', _3 => _3("-"), 'access', _4 => _4.pop, 'call', _5 => _5(), 'optionalAccess', _6 => _6.replaceAll, 'call', _7 => _7(".html", "")]) || null;
|
|
2299
|
+
return _optionalChain([shortPersistentId, 'optionalAccess', _8 => _8.length]) === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2199
2302
|
// ../model/src/dsm/published-doc.ts
|
|
2200
2303
|
|
|
2201
2304
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
@@ -3879,6 +3982,11 @@ var BlockParsingUtils = {
|
|
|
3879
3982
|
const richText = PageBlockItemMultiRichTextPropertyValue.parse(objectValue);
|
|
3880
3983
|
return richText;
|
|
3881
3984
|
},
|
|
3985
|
+
embedPropertyValue(item, propertyKey) {
|
|
3986
|
+
const objectValue = this.objectPropertyValue(item, propertyKey);
|
|
3987
|
+
const embed = PageBlockItemEmbedPropertyValue.parse(objectValue);
|
|
3988
|
+
return embed;
|
|
3989
|
+
},
|
|
3882
3990
|
objectPropertyValue(item, propertyKey) {
|
|
3883
3991
|
const value = this.propertyValueOrThrow(item, propertyKey);
|
|
3884
3992
|
if (typeof value !== "object") {
|
|
@@ -3912,6 +4020,12 @@ var BlockDefinitionUtils = {
|
|
|
3912
4020
|
return property;
|
|
3913
4021
|
return void 0;
|
|
3914
4022
|
},
|
|
4023
|
+
firstEmbedProperty(definition) {
|
|
4024
|
+
const property = definition.item.properties.find((p) => p.type === "EmbedURL");
|
|
4025
|
+
if (property)
|
|
4026
|
+
return property;
|
|
4027
|
+
return void 0;
|
|
4028
|
+
},
|
|
3915
4029
|
richTextProperty(definition, propertyKey) {
|
|
3916
4030
|
return this.property(definition, propertyKey, "RichText");
|
|
3917
4031
|
},
|
|
@@ -3967,6 +4081,24 @@ function blockToProsemirrorNode(block, definition) {
|
|
|
3967
4081
|
property: multiRichTextProperty
|
|
3968
4082
|
});
|
|
3969
4083
|
}
|
|
4084
|
+
const embedProperty = BlockDefinitionUtils.firstEmbedProperty(definition);
|
|
4085
|
+
const embedType = serializeEmbedType(block.data.packageId);
|
|
4086
|
+
if (embedProperty && embedType) {
|
|
4087
|
+
return serializeAsEmbed(
|
|
4088
|
+
{
|
|
4089
|
+
block,
|
|
4090
|
+
definition,
|
|
4091
|
+
property: embedProperty
|
|
4092
|
+
},
|
|
4093
|
+
embedType
|
|
4094
|
+
);
|
|
4095
|
+
}
|
|
4096
|
+
if (block.data.packageId === "io.supernova.block.divider") {
|
|
4097
|
+
return serializeAsDivider({
|
|
4098
|
+
block,
|
|
4099
|
+
definition
|
|
4100
|
+
});
|
|
4101
|
+
}
|
|
3970
4102
|
return serializeAsCustomBlock(block, definition);
|
|
3971
4103
|
}
|
|
3972
4104
|
function serializeAsRichTextBlock(input) {
|
|
@@ -3974,7 +4106,7 @@ function serializeAsRichTextBlock(input) {
|
|
|
3974
4106
|
const blockItem = BlockParsingUtils.singleBlockItem(block);
|
|
3975
4107
|
const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
|
|
3976
4108
|
const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
|
|
3977
|
-
const style = _nullishCoalesce(_optionalChain([richTextProperty, 'access',
|
|
4109
|
+
const style = _nullishCoalesce(_optionalChain([richTextProperty, 'access', _9 => _9.options, 'optionalAccess', _10 => _10.richTextStyle]), () => ( "Default"));
|
|
3978
4110
|
switch (style) {
|
|
3979
4111
|
case "Callout":
|
|
3980
4112
|
return serializeAsCallout(enrichedInput);
|
|
@@ -4030,7 +4162,7 @@ function serializeAsMultiRichTextBlock(input) {
|
|
|
4030
4162
|
const blockItem = BlockParsingUtils.singleBlockItem(block);
|
|
4031
4163
|
const textPropertyValue = BlockParsingUtils.multiRichTextPropertyValue(blockItem, richTextProperty.id);
|
|
4032
4164
|
const enrichedInput = { ...input, multiRichTextPropertyValue: textPropertyValue };
|
|
4033
|
-
const style = _nullishCoalesce(_optionalChain([richTextProperty, 'access',
|
|
4165
|
+
const style = _nullishCoalesce(_optionalChain([richTextProperty, 'access', _11 => _11.options, 'optionalAccess', _12 => _12.multiRichTextStyle]), () => ( "Default"));
|
|
4034
4166
|
switch (style) {
|
|
4035
4167
|
case "Default":
|
|
4036
4168
|
return serializeAsMultiParagraph(enrichedInput);
|
|
@@ -4079,6 +4211,38 @@ function serializeAsListItem(text) {
|
|
|
4079
4211
|
]
|
|
4080
4212
|
};
|
|
4081
4213
|
}
|
|
4214
|
+
function serializeAsEmbed(input, embedType) {
|
|
4215
|
+
const { block, definition, property: embedProperty } = input;
|
|
4216
|
+
const blockItem = BlockParsingUtils.singleBlockItem(block);
|
|
4217
|
+
const embedValue = BlockParsingUtils.embedPropertyValue(blockItem, embedProperty.id);
|
|
4218
|
+
return {
|
|
4219
|
+
type: "embed",
|
|
4220
|
+
attrs: {
|
|
4221
|
+
...serializeBlockNodeAttributes(input),
|
|
4222
|
+
type: embedType,
|
|
4223
|
+
url: embedValue.value,
|
|
4224
|
+
height: embedValue.height,
|
|
4225
|
+
caption: embedValue.caption
|
|
4226
|
+
}
|
|
4227
|
+
};
|
|
4228
|
+
}
|
|
4229
|
+
function serializeEmbedType(blockDefinitionId) {
|
|
4230
|
+
switch (blockDefinitionId) {
|
|
4231
|
+
case "io.supernova.block.embed":
|
|
4232
|
+
return "generic";
|
|
4233
|
+
case "io.supernova.block.embed-youtube":
|
|
4234
|
+
return "youtube";
|
|
4235
|
+
case "io.supernova.block.embed-figma":
|
|
4236
|
+
return "figma";
|
|
4237
|
+
}
|
|
4238
|
+
return void 0;
|
|
4239
|
+
}
|
|
4240
|
+
function serializeAsDivider(input) {
|
|
4241
|
+
return {
|
|
4242
|
+
type: "horizontalrule",
|
|
4243
|
+
attrs: serializeBlockNodeAttributes(input)
|
|
4244
|
+
};
|
|
4245
|
+
}
|
|
4082
4246
|
function serializeBlockNodeAttributes(input) {
|
|
4083
4247
|
const { block } = input;
|
|
4084
4248
|
return {
|
|
@@ -4088,7 +4252,7 @@ function serializeBlockNodeAttributes(input) {
|
|
|
4088
4252
|
};
|
|
4089
4253
|
}
|
|
4090
4254
|
function richTextHeadingLevel(property) {
|
|
4091
|
-
const style = _optionalChain([property, 'access',
|
|
4255
|
+
const style = _optionalChain([property, 'access', _13 => _13.options, 'optionalAccess', _14 => _14.richTextStyle]);
|
|
4092
4256
|
if (!style)
|
|
4093
4257
|
return void 0;
|
|
4094
4258
|
switch (style) {
|
|
@@ -4171,43 +4335,23 @@ function serializeTextSpanAttribute(spanAttribute) {
|
|
|
4171
4335
|
}
|
|
4172
4336
|
}
|
|
4173
4337
|
function serializeAsCustomBlock(block, definition) {
|
|
4174
|
-
const items = block.data.items.map((i) =>
|
|
4338
|
+
const items = block.data.items.map((i) => {
|
|
4339
|
+
return {
|
|
4340
|
+
id: i.id,
|
|
4341
|
+
props: i.props,
|
|
4342
|
+
linksTo: i.linksTo
|
|
4343
|
+
};
|
|
4344
|
+
});
|
|
4175
4345
|
return {
|
|
4176
4346
|
type: "blockNode",
|
|
4177
4347
|
attrs: {
|
|
4178
4348
|
id: block.id,
|
|
4179
4349
|
definitionId: block.data.packageId,
|
|
4180
|
-
variantId:
|
|
4181
|
-
columns: 1,
|
|
4350
|
+
variantId: block.data.variantId,
|
|
4182
4351
|
items: JSON.stringify(items)
|
|
4183
|
-
// TODO Docs: variant, columns
|
|
4184
4352
|
}
|
|
4185
4353
|
};
|
|
4186
4354
|
}
|
|
4187
|
-
function serializeItem(item, block, definition) {
|
|
4188
|
-
const result = {
|
|
4189
|
-
properties: []
|
|
4190
|
-
};
|
|
4191
|
-
for (const property of definition.item.properties) {
|
|
4192
|
-
const serializedValue = serializePropertyValue(item, property);
|
|
4193
|
-
serializedValue && result.properties.push(serializedValue);
|
|
4194
|
-
}
|
|
4195
|
-
return result;
|
|
4196
|
-
}
|
|
4197
|
-
function serializePropertyValue(item, property) {
|
|
4198
|
-
const value = _nullishCoalesce(item.props[property.id], () => ( void 0));
|
|
4199
|
-
if (!value) {
|
|
4200
|
-
return void 0;
|
|
4201
|
-
}
|
|
4202
|
-
const result = {
|
|
4203
|
-
id: property.id,
|
|
4204
|
-
data: {}
|
|
4205
|
-
};
|
|
4206
|
-
if (typeof value === "string") {
|
|
4207
|
-
result.data.value = value;
|
|
4208
|
-
}
|
|
4209
|
-
return result;
|
|
4210
|
-
}
|
|
4211
4355
|
function nonNullFilter(item) {
|
|
4212
4356
|
return !!item;
|
|
4213
4357
|
}
|
|
@@ -4801,7 +4945,7 @@ var blocks = [
|
|
|
4801
4945
|
{
|
|
4802
4946
|
id: "block.links.property.title",
|
|
4803
4947
|
name: "Title",
|
|
4804
|
-
type: "
|
|
4948
|
+
type: "Text",
|
|
4805
4949
|
description: void 0,
|
|
4806
4950
|
options: { textStyle: "Title5" },
|
|
4807
4951
|
variantOptions: void 0
|
|
@@ -4809,7 +4953,7 @@ var blocks = [
|
|
|
4809
4953
|
{
|
|
4810
4954
|
id: "block.links.property.description",
|
|
4811
4955
|
name: "Short description",
|
|
4812
|
-
type: "
|
|
4956
|
+
type: "Text",
|
|
4813
4957
|
description: void 0,
|
|
4814
4958
|
options: { textStyle: "Default", color: "NeutralFaded" },
|
|
4815
4959
|
variantOptions: void 0
|
|
@@ -5586,7 +5730,7 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
|
|
|
5586
5730
|
const definitionsById = mapByUnique(definitions, (d) => d.id);
|
|
5587
5731
|
return {
|
|
5588
5732
|
blocks: (_nullishCoalesce(prosemirrorDoc.content, () => ( []))).map((prosemirrorNode) => {
|
|
5589
|
-
const definitionId = _optionalChain([prosemirrorNode, 'access',
|
|
5733
|
+
const definitionId = _optionalChain([prosemirrorNode, 'access', _15 => _15.attrs, 'optionalAccess', _16 => _16.definitionId]);
|
|
5590
5734
|
if (!definitionId)
|
|
5591
5735
|
throw new Error(`Node is missing defintion id`);
|
|
5592
5736
|
if (typeof definitionId !== "string")
|
|
@@ -5603,9 +5747,61 @@ function prosemirrorNodeToBlock(prosemirrorNode, definition) {
|
|
|
5603
5747
|
if (richTextProperty) {
|
|
5604
5748
|
return parseAsRichText(prosemirrorNode, definition, richTextProperty);
|
|
5605
5749
|
}
|
|
5750
|
+
const multiRichTextProperty = BlockDefinitionUtils.firstMultiRichTextProperty(definition);
|
|
5751
|
+
if (multiRichTextProperty) {
|
|
5752
|
+
return parseAsMultiRichText(prosemirrorNode, definition, multiRichTextProperty);
|
|
5753
|
+
}
|
|
5754
|
+
const embedProperty = BlockDefinitionUtils.firstEmbedProperty(definition);
|
|
5755
|
+
if (prosemirrorNode.type === "embed" && embedProperty) {
|
|
5756
|
+
return parseAsEmbed(prosemirrorNode, definition, embedProperty);
|
|
5757
|
+
}
|
|
5758
|
+
if (definition.id === "io.supernova.block.divider") {
|
|
5759
|
+
return parseAsDivider(prosemirrorNode, definition);
|
|
5760
|
+
}
|
|
5606
5761
|
return parseAsCustomBlock(prosemirrorNode, definition);
|
|
5607
5762
|
}
|
|
5608
5763
|
function parseAsRichText(prosemirrorNode, definition, property) {
|
|
5764
|
+
const id = parseProsemirrorBlockAttribute(prosemirrorNode, "id");
|
|
5765
|
+
const variantId = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "variantId");
|
|
5766
|
+
const calloutType = parseCalloutType(parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "type"));
|
|
5767
|
+
return {
|
|
5768
|
+
// TODO Artem: indent
|
|
5769
|
+
id,
|
|
5770
|
+
...variantId && { variantId },
|
|
5771
|
+
data: {
|
|
5772
|
+
packageId: definition.id,
|
|
5773
|
+
indentLevel: 0,
|
|
5774
|
+
items: [
|
|
5775
|
+
{
|
|
5776
|
+
id,
|
|
5777
|
+
props: {
|
|
5778
|
+
[property.id]: {
|
|
5779
|
+
// Required
|
|
5780
|
+
value: parseRichText(_nullishCoalesce(prosemirrorNode.content, () => ( []))),
|
|
5781
|
+
// Optional
|
|
5782
|
+
...calloutType && { calloutType }
|
|
5783
|
+
}
|
|
5784
|
+
}
|
|
5785
|
+
}
|
|
5786
|
+
]
|
|
5787
|
+
}
|
|
5788
|
+
};
|
|
5789
|
+
}
|
|
5790
|
+
function parseCalloutType(prosemirrorCalloutType) {
|
|
5791
|
+
if (!prosemirrorCalloutType)
|
|
5792
|
+
return void 0;
|
|
5793
|
+
switch (prosemirrorCalloutType) {
|
|
5794
|
+
case "error":
|
|
5795
|
+
return "Error";
|
|
5796
|
+
case "neutral":
|
|
5797
|
+
return "Info";
|
|
5798
|
+
case "success":
|
|
5799
|
+
return "Success";
|
|
5800
|
+
case "warning":
|
|
5801
|
+
return "Warning";
|
|
5802
|
+
}
|
|
5803
|
+
}
|
|
5804
|
+
function parseAsMultiRichText(prosemirrorNode, definition, property) {
|
|
5609
5805
|
const id = parseProsemirrorBlockAttribute(prosemirrorNode, "id");
|
|
5610
5806
|
const variantId = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "variantId");
|
|
5611
5807
|
return {
|
|
@@ -5614,13 +5810,23 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
5614
5810
|
data: {
|
|
5615
5811
|
packageId: definition.id,
|
|
5616
5812
|
indentLevel: 0,
|
|
5617
|
-
variantId,
|
|
5813
|
+
...variantId && { variantId },
|
|
5618
5814
|
items: [
|
|
5619
5815
|
{
|
|
5620
5816
|
id,
|
|
5621
5817
|
props: {
|
|
5622
5818
|
[property.id]: {
|
|
5623
|
-
|
|
5819
|
+
// Required
|
|
5820
|
+
value: (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map((listItem) => {
|
|
5821
|
+
if (listItem.type !== "listitem")
|
|
5822
|
+
return null;
|
|
5823
|
+
if (!_optionalChain([listItem, 'access', _17 => _17.content, 'optionalAccess', _18 => _18.length]))
|
|
5824
|
+
return parseRichText([]);
|
|
5825
|
+
const paragraph = listItem.content[0];
|
|
5826
|
+
if (paragraph.type !== "paragraph")
|
|
5827
|
+
return parseRichText([]);
|
|
5828
|
+
return parseRichText(_nullishCoalesce(paragraph.content, () => ( [])));
|
|
5829
|
+
}).filter(nonNullFilter2)
|
|
5624
5830
|
}
|
|
5625
5831
|
}
|
|
5626
5832
|
}
|
|
@@ -5653,19 +5859,108 @@ function parseRichTextAttribute(mark) {
|
|
|
5653
5859
|
case "code":
|
|
5654
5860
|
return { type: "Code" };
|
|
5655
5861
|
case "link":
|
|
5656
|
-
const itemId = _optionalChain([mark, 'access',
|
|
5657
|
-
const href = _optionalChain([mark, 'access',
|
|
5862
|
+
const itemId = _optionalChain([mark, 'access', _19 => _19.attrs, 'optionalAccess', _20 => _20.itemId]);
|
|
5863
|
+
const href = _optionalChain([mark, 'access', _21 => _21.attrs, 'optionalAccess', _22 => _22.href]);
|
|
5658
5864
|
return {
|
|
5659
5865
|
type: "Link",
|
|
5660
|
-
openInNewWindow: _optionalChain([mark, 'access',
|
|
5866
|
+
openInNewWindow: _optionalChain([mark, 'access', _23 => _23.attrs, 'optionalAccess', _24 => _24.target]) !== "_self",
|
|
5661
5867
|
documentationItemId: itemId,
|
|
5662
5868
|
link: href
|
|
5663
5869
|
};
|
|
5664
5870
|
}
|
|
5665
5871
|
return null;
|
|
5666
5872
|
}
|
|
5873
|
+
function parseAsEmbed(prosemirrorNode, definition, property) {
|
|
5874
|
+
const id = parseProsemirrorBlockAttribute(prosemirrorNode, "id");
|
|
5875
|
+
const variantId = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "variantId");
|
|
5876
|
+
const url = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "url");
|
|
5877
|
+
const caption = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "caption");
|
|
5878
|
+
const height = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "height");
|
|
5879
|
+
return {
|
|
5880
|
+
id,
|
|
5881
|
+
data: {
|
|
5882
|
+
packageId: definition.id,
|
|
5883
|
+
indentLevel: 0,
|
|
5884
|
+
...variantId && { variantId },
|
|
5885
|
+
items: [
|
|
5886
|
+
{
|
|
5887
|
+
id,
|
|
5888
|
+
props: {
|
|
5889
|
+
[property.id]: {
|
|
5890
|
+
value: url,
|
|
5891
|
+
caption,
|
|
5892
|
+
height
|
|
5893
|
+
}
|
|
5894
|
+
}
|
|
5895
|
+
}
|
|
5896
|
+
]
|
|
5897
|
+
}
|
|
5898
|
+
};
|
|
5899
|
+
}
|
|
5900
|
+
function parseAsDivider(prosemirrorNode, definition) {
|
|
5901
|
+
const id = parseProsemirrorBlockAttribute(prosemirrorNode, "id");
|
|
5902
|
+
const variantId = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "variantId");
|
|
5903
|
+
return {
|
|
5904
|
+
id,
|
|
5905
|
+
data: {
|
|
5906
|
+
packageId: definition.id,
|
|
5907
|
+
indentLevel: 0,
|
|
5908
|
+
...variantId && { variantId },
|
|
5909
|
+
items: [{ id, props: {} }]
|
|
5910
|
+
}
|
|
5911
|
+
};
|
|
5912
|
+
}
|
|
5667
5913
|
function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
5668
|
-
|
|
5914
|
+
const id = parseProsemirrorBlockAttribute(prosemirrorNode, "id");
|
|
5915
|
+
const variantId = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "variantId");
|
|
5916
|
+
const itemsString = parseProsemirrorBlockAttribute(prosemirrorNode, "items");
|
|
5917
|
+
const itemsJson = JSON.parse(itemsString);
|
|
5918
|
+
if (!Array.isArray(itemsJson)) {
|
|
5919
|
+
console.error("Block `items` property must be a json array");
|
|
5920
|
+
return null;
|
|
5921
|
+
}
|
|
5922
|
+
const parsedItems = itemsJson.map((i) => parseItem(i, definition));
|
|
5923
|
+
return {
|
|
5924
|
+
id,
|
|
5925
|
+
data: {
|
|
5926
|
+
packageId: definition.id,
|
|
5927
|
+
indentLevel: 0,
|
|
5928
|
+
...variantId && { variantId },
|
|
5929
|
+
items: parsedItems
|
|
5930
|
+
}
|
|
5931
|
+
};
|
|
5932
|
+
}
|
|
5933
|
+
function parseItem(rawItem, definition) {
|
|
5934
|
+
const parsedItem = PageBlockItemV2.safeParse(rawItem);
|
|
5935
|
+
if (!parsedItem.success) {
|
|
5936
|
+
return null;
|
|
5937
|
+
}
|
|
5938
|
+
const sanitizedProps = {};
|
|
5939
|
+
for (const property of definition.item.properties) {
|
|
5940
|
+
const value = parsedItem.data.props[property.id];
|
|
5941
|
+
if (!value) {
|
|
5942
|
+
return null;
|
|
5943
|
+
}
|
|
5944
|
+
switch (property.type) {
|
|
5945
|
+
case "Text":
|
|
5946
|
+
PageBlockItemTextPropertyValue.parse(value);
|
|
5947
|
+
break;
|
|
5948
|
+
case "EmbedURL":
|
|
5949
|
+
PageBlockItemEmbedPropertyValue.parse(value);
|
|
5950
|
+
break;
|
|
5951
|
+
case "Image":
|
|
5952
|
+
PageBlockItemImageValue.parse(value);
|
|
5953
|
+
break;
|
|
5954
|
+
default:
|
|
5955
|
+
return null;
|
|
5956
|
+
}
|
|
5957
|
+
sanitizedProps[property.id] = value;
|
|
5958
|
+
}
|
|
5959
|
+
return {
|
|
5960
|
+
id: parsedItem.data.id,
|
|
5961
|
+
linksTo: parsedItem.data.linksTo,
|
|
5962
|
+
props: sanitizedProps
|
|
5963
|
+
};
|
|
5669
5964
|
}
|
|
5670
5965
|
function parseProsemirrorBlockAttribute(prosemirrorNode, attributeName) {
|
|
5671
5966
|
const attributeValue = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, attributeName);
|
|
@@ -5675,7 +5970,7 @@ function parseProsemirrorBlockAttribute(prosemirrorNode, attributeName) {
|
|
|
5675
5970
|
return attributeValue;
|
|
5676
5971
|
}
|
|
5677
5972
|
function parseProsemirrorOptionalBlockAttribute(prosemirrorNode, attributeName) {
|
|
5678
|
-
return _nullishCoalesce(_optionalChain([prosemirrorNode, 'access',
|
|
5973
|
+
return _nullishCoalesce(_optionalChain([prosemirrorNode, 'access', _25 => _25.attrs, 'optionalAccess', _26 => _26[attributeName]]), () => ( void 0));
|
|
5679
5974
|
}
|
|
5680
5975
|
function nonNullFilter2(item) {
|
|
5681
5976
|
return item !== null;
|
|
@@ -5705,5 +6000,416 @@ function mapByUnique(items, keyFn) {
|
|
|
5705
6000
|
|
|
5706
6001
|
|
|
5707
6002
|
|
|
5708
|
-
|
|
6003
|
+
|
|
6004
|
+
|
|
6005
|
+
|
|
6006
|
+
|
|
6007
|
+
|
|
6008
|
+
|
|
6009
|
+
|
|
6010
|
+
|
|
6011
|
+
|
|
6012
|
+
|
|
6013
|
+
|
|
6014
|
+
|
|
6015
|
+
|
|
6016
|
+
|
|
6017
|
+
|
|
6018
|
+
|
|
6019
|
+
|
|
6020
|
+
|
|
6021
|
+
|
|
6022
|
+
|
|
6023
|
+
|
|
6024
|
+
|
|
6025
|
+
|
|
6026
|
+
|
|
6027
|
+
|
|
6028
|
+
|
|
6029
|
+
|
|
6030
|
+
|
|
6031
|
+
|
|
6032
|
+
|
|
6033
|
+
|
|
6034
|
+
|
|
6035
|
+
|
|
6036
|
+
|
|
6037
|
+
|
|
6038
|
+
|
|
6039
|
+
|
|
6040
|
+
|
|
6041
|
+
|
|
6042
|
+
|
|
6043
|
+
|
|
6044
|
+
|
|
6045
|
+
|
|
6046
|
+
|
|
6047
|
+
|
|
6048
|
+
|
|
6049
|
+
|
|
6050
|
+
|
|
6051
|
+
|
|
6052
|
+
|
|
6053
|
+
|
|
6054
|
+
|
|
6055
|
+
|
|
6056
|
+
|
|
6057
|
+
|
|
6058
|
+
|
|
6059
|
+
|
|
6060
|
+
|
|
6061
|
+
|
|
6062
|
+
|
|
6063
|
+
|
|
6064
|
+
|
|
6065
|
+
|
|
6066
|
+
|
|
6067
|
+
|
|
6068
|
+
|
|
6069
|
+
|
|
6070
|
+
|
|
6071
|
+
|
|
6072
|
+
|
|
6073
|
+
|
|
6074
|
+
|
|
6075
|
+
|
|
6076
|
+
|
|
6077
|
+
|
|
6078
|
+
|
|
6079
|
+
|
|
6080
|
+
|
|
6081
|
+
|
|
6082
|
+
|
|
6083
|
+
|
|
6084
|
+
|
|
6085
|
+
|
|
6086
|
+
|
|
6087
|
+
|
|
6088
|
+
|
|
6089
|
+
|
|
6090
|
+
|
|
6091
|
+
|
|
6092
|
+
|
|
6093
|
+
|
|
6094
|
+
|
|
6095
|
+
|
|
6096
|
+
|
|
6097
|
+
|
|
6098
|
+
|
|
6099
|
+
|
|
6100
|
+
|
|
6101
|
+
|
|
6102
|
+
|
|
6103
|
+
|
|
6104
|
+
|
|
6105
|
+
|
|
6106
|
+
|
|
6107
|
+
|
|
6108
|
+
|
|
6109
|
+
|
|
6110
|
+
|
|
6111
|
+
|
|
6112
|
+
|
|
6113
|
+
|
|
6114
|
+
|
|
6115
|
+
|
|
6116
|
+
|
|
6117
|
+
|
|
6118
|
+
|
|
6119
|
+
|
|
6120
|
+
|
|
6121
|
+
|
|
6122
|
+
|
|
6123
|
+
|
|
6124
|
+
|
|
6125
|
+
|
|
6126
|
+
|
|
6127
|
+
|
|
6128
|
+
|
|
6129
|
+
|
|
6130
|
+
|
|
6131
|
+
|
|
6132
|
+
|
|
6133
|
+
|
|
6134
|
+
|
|
6135
|
+
|
|
6136
|
+
|
|
6137
|
+
|
|
6138
|
+
|
|
6139
|
+
|
|
6140
|
+
|
|
6141
|
+
|
|
6142
|
+
|
|
6143
|
+
|
|
6144
|
+
|
|
6145
|
+
|
|
6146
|
+
|
|
6147
|
+
|
|
6148
|
+
|
|
6149
|
+
|
|
6150
|
+
|
|
6151
|
+
|
|
6152
|
+
|
|
6153
|
+
|
|
6154
|
+
|
|
6155
|
+
|
|
6156
|
+
|
|
6157
|
+
|
|
6158
|
+
|
|
6159
|
+
|
|
6160
|
+
|
|
6161
|
+
|
|
6162
|
+
|
|
6163
|
+
|
|
6164
|
+
|
|
6165
|
+
|
|
6166
|
+
|
|
6167
|
+
|
|
6168
|
+
|
|
6169
|
+
|
|
6170
|
+
|
|
6171
|
+
|
|
6172
|
+
|
|
6173
|
+
|
|
6174
|
+
|
|
6175
|
+
|
|
6176
|
+
|
|
6177
|
+
|
|
6178
|
+
|
|
6179
|
+
|
|
6180
|
+
|
|
6181
|
+
|
|
6182
|
+
|
|
6183
|
+
|
|
6184
|
+
|
|
6185
|
+
|
|
6186
|
+
|
|
6187
|
+
|
|
6188
|
+
|
|
6189
|
+
|
|
6190
|
+
|
|
6191
|
+
|
|
6192
|
+
|
|
6193
|
+
|
|
6194
|
+
|
|
6195
|
+
|
|
6196
|
+
|
|
6197
|
+
|
|
6198
|
+
|
|
6199
|
+
|
|
6200
|
+
|
|
6201
|
+
|
|
6202
|
+
|
|
6203
|
+
|
|
6204
|
+
|
|
6205
|
+
|
|
6206
|
+
|
|
6207
|
+
|
|
6208
|
+
|
|
6209
|
+
|
|
6210
|
+
|
|
6211
|
+
|
|
6212
|
+
|
|
6213
|
+
|
|
6214
|
+
|
|
6215
|
+
|
|
6216
|
+
|
|
6217
|
+
|
|
6218
|
+
|
|
6219
|
+
|
|
6220
|
+
|
|
6221
|
+
|
|
6222
|
+
|
|
6223
|
+
|
|
6224
|
+
|
|
6225
|
+
|
|
6226
|
+
|
|
6227
|
+
|
|
6228
|
+
|
|
6229
|
+
|
|
6230
|
+
|
|
6231
|
+
|
|
6232
|
+
|
|
6233
|
+
|
|
6234
|
+
|
|
6235
|
+
|
|
6236
|
+
|
|
6237
|
+
|
|
6238
|
+
|
|
6239
|
+
|
|
6240
|
+
|
|
6241
|
+
|
|
6242
|
+
|
|
6243
|
+
|
|
6244
|
+
|
|
6245
|
+
|
|
6246
|
+
|
|
6247
|
+
|
|
6248
|
+
|
|
6249
|
+
|
|
6250
|
+
|
|
6251
|
+
|
|
6252
|
+
|
|
6253
|
+
|
|
6254
|
+
|
|
6255
|
+
|
|
6256
|
+
|
|
6257
|
+
|
|
6258
|
+
|
|
6259
|
+
|
|
6260
|
+
|
|
6261
|
+
|
|
6262
|
+
|
|
6263
|
+
|
|
6264
|
+
|
|
6265
|
+
|
|
6266
|
+
|
|
6267
|
+
|
|
6268
|
+
|
|
6269
|
+
|
|
6270
|
+
|
|
6271
|
+
|
|
6272
|
+
|
|
6273
|
+
|
|
6274
|
+
|
|
6275
|
+
|
|
6276
|
+
|
|
6277
|
+
|
|
6278
|
+
|
|
6279
|
+
|
|
6280
|
+
|
|
6281
|
+
|
|
6282
|
+
|
|
6283
|
+
|
|
6284
|
+
|
|
6285
|
+
|
|
6286
|
+
|
|
6287
|
+
|
|
6288
|
+
|
|
6289
|
+
|
|
6290
|
+
|
|
6291
|
+
|
|
6292
|
+
|
|
6293
|
+
|
|
6294
|
+
|
|
6295
|
+
|
|
6296
|
+
|
|
6297
|
+
|
|
6298
|
+
|
|
6299
|
+
|
|
6300
|
+
|
|
6301
|
+
|
|
6302
|
+
|
|
6303
|
+
|
|
6304
|
+
|
|
6305
|
+
|
|
6306
|
+
|
|
6307
|
+
|
|
6308
|
+
|
|
6309
|
+
|
|
6310
|
+
|
|
6311
|
+
|
|
6312
|
+
|
|
6313
|
+
|
|
6314
|
+
|
|
6315
|
+
|
|
6316
|
+
|
|
6317
|
+
|
|
6318
|
+
|
|
6319
|
+
|
|
6320
|
+
|
|
6321
|
+
|
|
6322
|
+
|
|
6323
|
+
|
|
6324
|
+
|
|
6325
|
+
|
|
6326
|
+
|
|
6327
|
+
|
|
6328
|
+
|
|
6329
|
+
|
|
6330
|
+
|
|
6331
|
+
|
|
6332
|
+
|
|
6333
|
+
|
|
6334
|
+
|
|
6335
|
+
|
|
6336
|
+
|
|
6337
|
+
|
|
6338
|
+
|
|
6339
|
+
|
|
6340
|
+
|
|
6341
|
+
|
|
6342
|
+
|
|
6343
|
+
|
|
6344
|
+
|
|
6345
|
+
|
|
6346
|
+
|
|
6347
|
+
|
|
6348
|
+
|
|
6349
|
+
|
|
6350
|
+
|
|
6351
|
+
|
|
6352
|
+
|
|
6353
|
+
|
|
6354
|
+
|
|
6355
|
+
|
|
6356
|
+
|
|
6357
|
+
|
|
6358
|
+
|
|
6359
|
+
|
|
6360
|
+
|
|
6361
|
+
|
|
6362
|
+
|
|
6363
|
+
|
|
6364
|
+
|
|
6365
|
+
|
|
6366
|
+
|
|
6367
|
+
|
|
6368
|
+
|
|
6369
|
+
|
|
6370
|
+
|
|
6371
|
+
|
|
6372
|
+
|
|
6373
|
+
|
|
6374
|
+
|
|
6375
|
+
|
|
6376
|
+
|
|
6377
|
+
|
|
6378
|
+
|
|
6379
|
+
|
|
6380
|
+
|
|
6381
|
+
|
|
6382
|
+
|
|
6383
|
+
|
|
6384
|
+
|
|
6385
|
+
|
|
6386
|
+
|
|
6387
|
+
|
|
6388
|
+
|
|
6389
|
+
|
|
6390
|
+
|
|
6391
|
+
|
|
6392
|
+
|
|
6393
|
+
|
|
6394
|
+
|
|
6395
|
+
|
|
6396
|
+
|
|
6397
|
+
|
|
6398
|
+
|
|
6399
|
+
|
|
6400
|
+
|
|
6401
|
+
|
|
6402
|
+
|
|
6403
|
+
|
|
6404
|
+
|
|
6405
|
+
|
|
6406
|
+
|
|
6407
|
+
|
|
6408
|
+
|
|
6409
|
+
|
|
6410
|
+
|
|
6411
|
+
|
|
6412
|
+
|
|
6413
|
+
|
|
6414
|
+
exports.Address = Address; exports.Asset = Asset; exports.AssetFontProperties = AssetFontProperties; exports.AssetImportModelInput = AssetImportModelInput; exports.AssetOrigin = AssetOrigin; exports.AssetProperties = AssetProperties; exports.AssetReference = AssetReference; exports.AssetScope = AssetScope; exports.AssetType = AssetType; exports.AssetValue = AssetValue; exports.AuthTokens = AuthTokens; exports.BasePulsarProperty = BasePulsarProperty; exports.BillingDetails = BillingDetails; exports.BillingIntervalSchema = BillingIntervalSchema; exports.BillingType = BillingType; exports.BillingTypeSchema = BillingTypeSchema; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BlurTokenData = BlurTokenData; exports.BlurType = BlurType; exports.BlurValue = BlurValue; exports.BorderPosition = BorderPosition; exports.BorderRadiusTokenData = BorderRadiusTokenData; exports.BorderRadiusUnit = BorderRadiusUnit; exports.BorderRadiusValue = BorderRadiusValue; exports.BorderStyle = BorderStyle; exports.BorderTokenData = BorderTokenData; exports.BorderValue = BorderValue; exports.BorderWidthTokenData = BorderWidthTokenData; exports.BorderWidthUnit = BorderWidthUnit; exports.BorderWidthValue = BorderWidthValue; exports.BrandedElementGroup = BrandedElementGroup; exports.CardSchema = CardSchema; exports.ChangedImportedFigmaSourceData = ChangedImportedFigmaSourceData; exports.ColorTokenData = ColorTokenData; exports.ColorTokenInlineData = ColorTokenInlineData; exports.ColorValue = ColorValue; exports.Component = Component; exports.ComponentElementData = ComponentElementData; exports.ComponentImportModel = ComponentImportModel; exports.ComponentImportModelInput = ComponentImportModelInput; exports.ComponentOrigin = ComponentOrigin; exports.ComponentOriginPart = ComponentOriginPart; exports.ContentLoadInstruction = ContentLoadInstruction; exports.ContentLoaderPayload = ContentLoaderPayload; exports.CreateDesignToken = CreateDesignToken; exports.CreateWorkspaceInput = CreateWorkspaceInput; exports.CustomDomain = CustomDomain; exports.Customer = Customer; exports.DataSourceAutoImportMode = DataSourceAutoImportMode; exports.DataSourceFigmaFileData = DataSourceFigmaFileData; exports.DataSourceFigmaFileVersionData = DataSourceFigmaFileVersionData; exports.DataSourceFigmaImportMetadata = DataSourceFigmaImportMetadata; exports.DataSourceFigmaRemote = DataSourceFigmaRemote; exports.DataSourceFigmaScope = DataSourceFigmaScope; exports.DataSourceFigmaState = DataSourceFigmaState; exports.DataSourceImportModel = DataSourceImportModel; exports.DataSourceRemote = DataSourceRemote; exports.DataSourceRemoteType = DataSourceRemoteType; exports.DataSourceStats = DataSourceStats; exports.DataSourceTokenStudioRemote = DataSourceTokenStudioRemote; exports.DataSourceUploadImportMetadata = DataSourceUploadImportMetadata; exports.DataSourceUploadRemote = DataSourceUploadRemote; exports.DataSourceUploadRemoteSource = DataSourceUploadRemoteSource; exports.DataSourceVersion = DataSourceVersion; exports.DesignElement = DesignElement; exports.DesignElementBase = DesignElementBase; exports.DesignElementBrandedPart = DesignElementBrandedPart; exports.DesignElementCategory = DesignElementCategory; exports.DesignElementGroupableBase = DesignElementGroupableBase; exports.DesignElementGroupablePart = DesignElementGroupablePart; exports.DesignElementGroupableRequiredPart = DesignElementGroupableRequiredPart; exports.DesignElementImportedBase = DesignElementImportedBase; exports.DesignElementOrigin = DesignElementOrigin; exports.DesignElementSlugPart = DesignElementSlugPart; exports.DesignElementType = DesignElementType; exports.DesignSystem = DesignSystem; exports.DesignSystemCreateInput = DesignSystemCreateInput; exports.DesignSystemElementExportProps = DesignSystemElementExportProps; exports.DesignSystemSwitcher = DesignSystemSwitcher; exports.DesignSystemUpdateInput = DesignSystemUpdateInput; exports.DesignSystemVersionRoom = DesignSystemVersionRoom; exports.DesignSystemWithWorkspace = DesignSystemWithWorkspace; exports.DesignToken = DesignToken; exports.DesignTokenImportModel = DesignTokenImportModel; exports.DesignTokenImportModelBase = DesignTokenImportModelBase; exports.DesignTokenImportModelInput = DesignTokenImportModelInput; exports.DesignTokenImportModelInputBase = DesignTokenImportModelInputBase; exports.DesignTokenOrigin = DesignTokenOrigin; exports.DesignTokenOriginPart = DesignTokenOriginPart; exports.DesignTokenType = DesignTokenType; exports.DesignTokenTypedData = DesignTokenTypedData; exports.DimensionTokenData = DimensionTokenData; exports.DimensionUnit = DimensionUnit; exports.DimensionValue = DimensionValue; exports.DocumentationGroupBehavior = DocumentationGroupBehavior; exports.DocumentationGroupDTO = DocumentationGroupDTO; exports.DocumentationItemConfiguration = DocumentationItemConfiguration; exports.DocumentationPage = DocumentationPage; exports.DocumentationPageDTOV1 = DocumentationPageDTOV1; exports.DocumentationPageDataV1 = DocumentationPageDataV1; exports.DocumentationPageDataV2 = DocumentationPageDataV2; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageElementDataV1 = DocumentationPageElementDataV1; exports.DocumentationPageElementDataV2 = DocumentationPageElementDataV2; exports.DocumentationPageGroup = DocumentationPageGroup; exports.DocumentationPageRoom = DocumentationPageRoom; exports.DocumentationPageV1 = DocumentationPageV1; exports.DocumentationPageV2 = DocumentationPageV2; exports.DurationTokenData = DurationTokenData; exports.DurationUnit = DurationUnit; exports.DurationValue = DurationValue; exports.ElementGroup = ElementGroup; exports.ElementGroupData = ElementGroupData; exports.ElementGroupElementData = ElementGroupElementData; exports.ElementPropertyDefinition = ElementPropertyDefinition; exports.ElementPropertyDefinitionOption = ElementPropertyDefinitionOption; exports.ElementPropertyLinkType = ElementPropertyLinkType; exports.ElementPropertyTargetType = ElementPropertyTargetType; exports.ElementPropertyType = ElementPropertyType; exports.ElementPropertyValue = ElementPropertyValue; exports.Entity = Entity; exports.ExportJob = ExportJob; exports.ExportJobStatus = ExportJobStatus; exports.Exporter = Exporter; exports.ExporterDetails = ExporterDetails; exports.ExporterSource = ExporterSource; exports.ExporterTag = ExporterTag; exports.ExporterType = ExporterType; exports.ExporterWorkspaceMembership = ExporterWorkspaceMembership; exports.ExporterWorkspaceMembershipRole = ExporterWorkspaceMembershipRole; exports.ExternalOAuthRequest = ExternalOAuthRequest; exports.ExternalServiceType = ExternalServiceType; exports.FeatureFlag = FeatureFlag; exports.FeatureFlagMap = FeatureFlagMap; exports.FeaturesSummary = FeaturesSummary; exports.FigmaFileAccessData = FigmaFileAccessData; exports.FigmaFileDownloadScope = FigmaFileDownloadScope; exports.FigmaFileStructure = FigmaFileStructure; exports.FigmaFileStructureData = FigmaFileStructureData; exports.FigmaFileStructureElementData = FigmaFileStructureElementData; exports.FigmaFileStructureImportModel = FigmaFileStructureImportModel; exports.FigmaFileStructureImportModelInput = FigmaFileStructureImportModelInput; exports.FigmaFileStructureNode = FigmaFileStructureNode; exports.FigmaFileStructureNodeBase = FigmaFileStructureNodeBase; exports.FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModel; exports.FigmaFileStructureNodeType = FigmaFileStructureNodeType; exports.FigmaFileStructureOrigin = FigmaFileStructureOrigin; exports.FigmaFileStructureStatistics = FigmaFileStructureStatistics; exports.FigmaImportBaseContext = FigmaImportBaseContext; exports.FigmaImportContextWithDownloadScopes = FigmaImportContextWithDownloadScopes; exports.FigmaNodeReference = FigmaNodeReference; exports.FigmaNodeReferenceData = FigmaNodeReferenceData; exports.FigmaNodeReferenceElementData = FigmaNodeReferenceElementData; exports.FigmaPngRenderImportModel = FigmaPngRenderImportModel; exports.FigmaRenderFormat = FigmaRenderFormat; exports.FigmaRenderImportModel = FigmaRenderImportModel; exports.FigmaSvgRenderImportModel = FigmaSvgRenderImportModel; exports.FileStructureStats = FileStructureStats; exports.FlaggedFeature = FlaggedFeature; exports.FontFamilyTokenData = FontFamilyTokenData; exports.FontFamilyValue = FontFamilyValue; exports.FontSizeTokenData = FontSizeTokenData; exports.FontSizeUnit = FontSizeUnit; exports.FontSizeValue = FontSizeValue; exports.FontWeightTokenData = FontWeightTokenData; exports.FontWeightValue = FontWeightValue; exports.GetBlockDefinitionsResponse = GetBlockDefinitionsResponse; exports.GitProvider = GitProvider; exports.GitProviderNames = GitProviderNames; exports.GradientLayerData = GradientLayerData; exports.GradientLayerValue = GradientLayerValue; exports.GradientStop = GradientStop; exports.GradientTokenData = GradientTokenData; exports.GradientTokenValue = GradientTokenValue; exports.GradientType = GradientType; exports.HANDLE_MAX_LENGTH = HANDLE_MAX_LENGTH; exports.HANDLE_MIN_LENGTH = HANDLE_MIN_LENGTH; exports.ImageImportModel = ImageImportModel; exports.ImageImportModelType = ImageImportModelType; exports.ImportFunctionInput = ImportFunctionInput; exports.ImportJob = ImportJob; exports.ImportJobOperation = ImportJobOperation; exports.ImportJobState = ImportJobState; exports.ImportModelBase = ImportModelBase; exports.ImportModelCollection = ImportModelCollection; exports.ImportModelInputBase = ImportModelInputBase; exports.ImportModelInputCollection = ImportModelInputCollection; exports.ImportWarning = ImportWarning; exports.ImportWarningType = ImportWarningType; exports.ImportedFigmaSourceData = ImportedFigmaSourceData; exports.IntegrationAuthType = IntegrationAuthType; exports.IntegrationTokenSchema = IntegrationTokenSchema; exports.IntegrationUserInfo = IntegrationUserInfo; exports.InternalStatus = InternalStatus; exports.InternalStatusSchema = InternalStatusSchema; exports.InvoiceCouponSchema = InvoiceCouponSchema; exports.InvoiceLineSchema = InvoiceLineSchema; exports.InvoiceSchema = InvoiceSchema; exports.LetterSpacingTokenData = LetterSpacingTokenData; exports.LetterSpacingUnit = LetterSpacingUnit; exports.LetterSpacingValue = LetterSpacingValue; exports.LineHeightTokenData = LineHeightTokenData; exports.LineHeightUnit = LineHeightUnit; exports.LineHeightValue = LineHeightValue; exports.MAX_MEMBERS_COUNT = MAX_MEMBERS_COUNT; exports.NpmPackage = NpmPackage; exports.NpmProxyToken = NpmProxyToken; exports.NpmProxyTokenPayload = NpmProxyTokenPayload; exports.NpmRegistrCustomAuthConfig = NpmRegistrCustomAuthConfig; exports.NpmRegistryAuthConfig = NpmRegistryAuthConfig; exports.NpmRegistryAuthType = NpmRegistryAuthType; exports.NpmRegistryBasicAuthConfig = NpmRegistryBasicAuthConfig; exports.NpmRegistryBearerAuthConfig = NpmRegistryBearerAuthConfig; exports.NpmRegistryConfig = NpmRegistryConfig; exports.NpmRegistryNoAuthConfig = NpmRegistryNoAuthConfig; exports.NpmRegistryType = NpmRegistryType; exports.OAuthProvider = OAuthProvider; exports.OAuthProviderNames = OAuthProviderNames; exports.OAuthProviderSchema = OAuthProviderSchema; exports.ObjectMeta = ObjectMeta; exports.OpacityTokenData = OpacityTokenData; exports.OpacityValue = OpacityValue; exports.PageBlockAlignment = PageBlockAlignment; exports.PageBlockAppearanceV2 = PageBlockAppearanceV2; exports.PageBlockAsset = PageBlockAsset; exports.PageBlockAssetComponent = PageBlockAssetComponent; exports.PageBlockAssetType = PageBlockAssetType; exports.PageBlockBehaviorDataType = PageBlockBehaviorDataType; exports.PageBlockBehaviorSelectionType = PageBlockBehaviorSelectionType; exports.PageBlockCalloutType = PageBlockCalloutType; exports.PageBlockCategory = PageBlockCategory; exports.PageBlockCodeLanguage = PageBlockCodeLanguage; exports.PageBlockCustomBlockPropertyImageValue = PageBlockCustomBlockPropertyImageValue; exports.PageBlockCustomBlockPropertyValue = PageBlockCustomBlockPropertyValue; exports.PageBlockDataV2 = PageBlockDataV2; exports.PageBlockDefinition = PageBlockDefinition; exports.PageBlockDefinitionAppearance = PageBlockDefinitionAppearance; exports.PageBlockDefinitionBehavior = PageBlockDefinitionBehavior; exports.PageBlockDefinitionBooleanPropertyStyle = PageBlockDefinitionBooleanPropertyStyle; exports.PageBlockDefinitionItem = PageBlockDefinitionItem; exports.PageBlockDefinitionLayout = PageBlockDefinitionLayout; exports.PageBlockDefinitionLayoutAlign = PageBlockDefinitionLayoutAlign; exports.PageBlockDefinitionLayoutBase = PageBlockDefinitionLayoutBase; exports.PageBlockDefinitionLayoutGap = PageBlockDefinitionLayoutGap; exports.PageBlockDefinitionLayoutResizing = PageBlockDefinitionLayoutResizing; exports.PageBlockDefinitionLayoutType = PageBlockDefinitionLayoutType; exports.PageBlockDefinitionMultiRichTextPropertyStyle = PageBlockDefinitionMultiRichTextPropertyStyle; exports.PageBlockDefinitionMultiSelectPropertyStyle = PageBlockDefinitionMultiSelectPropertyStyle; exports.PageBlockDefinitionOnboarding = PageBlockDefinitionOnboarding; exports.PageBlockDefinitionProperty = PageBlockDefinitionProperty; exports.PageBlockDefinitionPropertyOptions = PageBlockDefinitionPropertyOptions; exports.PageBlockDefinitionPropertyType = PageBlockDefinitionPropertyType; exports.PageBlockDefinitionRichTextPropertyStyle = PageBlockDefinitionRichTextPropertyStyle; exports.PageBlockDefinitionSingleSelectPropertyStyle = PageBlockDefinitionSingleSelectPropertyStyle; exports.PageBlockDefinitionTextPropertyStyle = PageBlockDefinitionTextPropertyStyle; exports.PageBlockDefinitionVariant = PageBlockDefinitionVariant; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageBlockEditorModelV2 = PageBlockEditorModelV2; exports.PageBlockFigmaFrameProperties = PageBlockFigmaFrameProperties; exports.PageBlockFrame = PageBlockFrame; exports.PageBlockFrameOrigin = PageBlockFrameOrigin; exports.PageBlockImageAlignment = PageBlockImageAlignment; exports.PageBlockImageType = PageBlockImageType; exports.PageBlockItemEmbedPropertyValue = PageBlockItemEmbedPropertyValue; exports.PageBlockItemImageReference = PageBlockItemImageReference; exports.PageBlockItemImageValue = PageBlockItemImageValue; exports.PageBlockItemMultiRichTextPropertyValue = PageBlockItemMultiRichTextPropertyValue; exports.PageBlockItemRichTextPropertyValue = PageBlockItemRichTextPropertyValue; exports.PageBlockItemTextPropertyValue = PageBlockItemTextPropertyValue; exports.PageBlockItemUntypedPropertyValue = PageBlockItemUntypedPropertyValue; exports.PageBlockItemV2 = PageBlockItemV2; exports.PageBlockLinkPreview = PageBlockLinkPreview; exports.PageBlockLinkType = PageBlockLinkType; exports.PageBlockLinkV2 = PageBlockLinkV2; exports.PageBlockRenderCodeProperties = PageBlockRenderCodeProperties; exports.PageBlockShortcut = PageBlockShortcut; exports.PageBlockTableColumn = PageBlockTableColumn; exports.PageBlockTableProperties = PageBlockTableProperties; exports.PageBlockText = PageBlockText; exports.PageBlockTextSpan = PageBlockTextSpan; exports.PageBlockTextSpanAttribute = PageBlockTextSpanAttribute; exports.PageBlockTextSpanAttributeType = PageBlockTextSpanAttributeType; exports.PageBlockTheme = PageBlockTheme; exports.PageBlockThemeType = PageBlockThemeType; exports.PageBlockTilesAlignment = PageBlockTilesAlignment; exports.PageBlockTilesLayout = PageBlockTilesLayout; exports.PageBlockTypeV1 = PageBlockTypeV1; exports.PageBlockUrlPreview = PageBlockUrlPreview; exports.PageBlockV1 = PageBlockV1; exports.PageBlockV2 = PageBlockV2; exports.ParagraphIndentTokenData = ParagraphIndentTokenData; exports.ParagraphIndentUnit = ParagraphIndentUnit; exports.ParagraphIndentValue = ParagraphIndentValue; exports.ParagraphSpacingTokenData = ParagraphSpacingTokenData; exports.ParagraphSpacingUnit = ParagraphSpacingUnit; exports.ParagraphSpacingValue = ParagraphSpacingValue; exports.PeriodSchema = PeriodSchema; exports.PersonalAccessToken = PersonalAccessToken; exports.PluginOAuthRequestSchema = PluginOAuthRequestSchema; exports.Point2D = Point2D; exports.PostStripeCheckoutBodyInputSchema = PostStripeCheckoutBodyInputSchema; exports.PostStripeCheckoutOutputSchema = PostStripeCheckoutOutputSchema; exports.PostStripePortalSessionBodyInputSchema = PostStripePortalSessionBodyInputSchema; exports.PostStripePortalSessionOutputSchema = PostStripePortalSessionOutputSchema; exports.PostStripePortalUpdateSessionBodyInputSchema = PostStripePortalUpdateSessionBodyInputSchema; exports.PriceSchema = PriceSchema; exports.ProductCode = ProductCode; exports.ProductCodeSchema = ProductCodeSchema; exports.ProductCopyTokenData = ProductCopyTokenData; exports.ProductCopyValue = ProductCopyValue; exports.PublishedDoc = PublishedDoc; exports.PublishedDocEnvironment = PublishedDocEnvironment; exports.PublishedDocRoutingVersion = PublishedDocRoutingVersion; exports.PublishedDocsChecksums = PublishedDocsChecksums; exports.PulsarContributionBlock = PulsarContributionBlock; exports.PulsarContributionConfigurationProperty = PulsarContributionConfigurationProperty; exports.PulsarContributionVariant = PulsarContributionVariant; exports.PulsarPropertyType = PulsarPropertyType; exports.SHORT_PERSISTENT_ID_LENGTH = SHORT_PERSISTENT_ID_LENGTH; exports.Session = Session; exports.SessionData = SessionData; exports.ShadowLayerValue = ShadowLayerValue; exports.ShadowTokenData = ShadowTokenData; exports.ShadowType = ShadowType; exports.ShallowDesignElement = ShallowDesignElement; exports.Size = Size; exports.SizeOrUndefined = SizeOrUndefined; exports.SizeTokenData = SizeTokenData; exports.SizeUnit = SizeUnit; exports.SizeValue = SizeValue; exports.SourceImportComponentSummary = SourceImportComponentSummary; exports.SourceImportFrameSummary = SourceImportFrameSummary; exports.SourceImportSummary = SourceImportSummary; exports.SourceImportSummaryByTokenType = SourceImportSummaryByTokenType; exports.SourceImportTokenSummary = SourceImportTokenSummary; exports.SpaceTokenData = SpaceTokenData; exports.SpaceUnit = SpaceUnit; exports.SpaceValue = SpaceValue; exports.SsoProvider = SsoProvider; exports.StringTokenData = StringTokenData; exports.StringValue = StringValue; exports.StripeSubscriptionStatus = StripeSubscriptionStatus; exports.StripeSubscriptionStatusSchema = StripeSubscriptionStatusSchema; exports.Subscription = Subscription; exports.TextCase = TextCase; exports.TextCaseTokenData = TextCaseTokenData; exports.TextCaseValue = TextCaseValue; exports.TextDecoration = TextDecoration; exports.TextDecorationTokenData = TextDecorationTokenData; exports.TextDecorationValue = TextDecorationValue; exports.Theme = Theme; exports.ThemeElementData = ThemeElementData; exports.ThemeImportModel = ThemeImportModel; exports.ThemeImportModelInput = ThemeImportModelInput; exports.ThemeOrigin = ThemeOrigin; exports.ThemeOriginObject = ThemeOriginObject; exports.ThemeOriginPart = ThemeOriginPart; exports.ThemeOriginSource = ThemeOriginSource; exports.ThemeOverride = ThemeOverride; exports.ThemeOverrideImportModel = ThemeOverrideImportModel; exports.ThemeOverrideImportModelBase = ThemeOverrideImportModelBase; exports.ThemeOverrideImportModelInput = ThemeOverrideImportModelInput; exports.ThemeOverrideOrigin = ThemeOverrideOrigin; exports.ThemeOverrideOriginPart = ThemeOverrideOriginPart; exports.ThemeUpdateImportModel = ThemeUpdateImportModel; exports.ThemeUpdateImportModelInput = ThemeUpdateImportModelInput; exports.TokenDataAliasSchema = TokenDataAliasSchema; exports.TypographyTokenData = TypographyTokenData; exports.TypographyValue = TypographyValue; exports.UrlImageImportModel = UrlImageImportModel; exports.User = User; exports.UserIdentity = UserIdentity; exports.UserInvite = UserInvite; exports.UserInvites = UserInvites; exports.UserLinkedIntegrations = UserLinkedIntegrations; exports.UserOnboarding = UserOnboarding; exports.UserOnboardingDepartment = UserOnboardingDepartment; exports.UserOnboardingJobLevel = UserOnboardingJobLevel; exports.UserProfile = UserProfile; exports.UserSession = UserSession; exports.Visibility = Visibility; exports.VisibilityTokenData = VisibilityTokenData; exports.VisibilityValue = VisibilityValue; exports.Workspace = Workspace; exports.WorkspaceContext = WorkspaceContext; exports.WorkspaceInvitation = WorkspaceInvitation; exports.WorkspaceIpSettings = WorkspaceIpSettings; exports.WorkspaceIpWhitelistEntry = WorkspaceIpWhitelistEntry; exports.WorkspaceMembership = WorkspaceMembership; exports.WorkspaceProfile = WorkspaceProfile; exports.WorkspaceRole = WorkspaceRole; exports.WorkspaceRoleSchema = WorkspaceRoleSchema; exports.WorkspaceWithDesignSystems = WorkspaceWithDesignSystems; exports.ZIndexTokenData = ZIndexTokenData; exports.ZIndexUnit = ZIndexUnit; exports.ZIndexValue = ZIndexValue; exports.addImportModelCollections = addImportModelCollections; exports.blockDefinitionForBlock = blockDefinitionForBlock; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.designTokenImportModelTypeFilter = designTokenImportModelTypeFilter; exports.designTokenTypeFilter = designTokenTypeFilter; exports.extractTokenTypedData = extractTokenTypedData; exports.figmaFileStructureImportModelToMap = figmaFileStructureImportModelToMap; exports.figmaFileStructureToMap = figmaFileStructureToMap; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.isDesignTokenImportModelOfType = isDesignTokenImportModelOfType; exports.isDesignTokenOfType = isDesignTokenOfType; exports.isImportedAsset = isImportedAsset; exports.isImportedComponent = isImportedComponent; exports.isImportedDesignToken = isImportedDesignToken; exports.isTokenType = isTokenType; exports.nullishToOptional = nullishToOptional; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToBlock = prosemirrorNodeToBlock; exports.publishedDocEnvironments = publishedDocEnvironments; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.tokenAliasOrValue = tokenAliasOrValue; exports.tokenElementTypes = tokenElementTypes; exports.traversePageBlocksV1 = traversePageBlocksV1; exports.traverseStructure = traverseStructure; exports.tryParseShortPersistentId = tryParseShortPersistentId; exports.yXmlFragmetToPage = yXmlFragmetToPage; exports.zodCreateInputOmit = zodCreateInputOmit; exports.zodUpdateInputOmit = zodUpdateInputOmit;
|
|
5709
6415
|
//# sourceMappingURL=index.js.map
|