@supernova-studio/client 0.36.2 → 0.38.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.
Files changed (29) hide show
  1. package/dist/index.d.mts +2231 -997
  2. package/dist/index.d.ts +2231 -997
  3. package/dist/index.js +358 -175
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +531 -348
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/api/conversion/design-systems/elements/properties/property-value.ts +2 -2
  9. package/src/api/conversion/design-systems/index.ts +1 -1
  10. package/src/api/conversion/documentation/documentation-elements-to-hierarchy-v2-dto.ts +6 -5
  11. package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +85 -0
  12. package/src/api/conversion/documentation/{documentation-group-to-dto.ts → documentation-group-v2-to-dto.ts} +16 -12
  13. package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +46 -0
  14. package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +16 -5
  15. package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +12 -10
  16. package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +9 -7
  17. package/src/api/conversion/documentation/index.ts +3 -1
  18. package/src/api/conversion/index.ts +1 -1
  19. package/src/api/dto/design-systems/index.ts +2 -2
  20. package/src/api/dto/elements/documentation/group-action.ts +1 -1
  21. package/src/api/dto/elements/documentation/group-v1.ts +35 -0
  22. package/src/api/dto/elements/documentation/index.ts +3 -1
  23. package/src/api/dto/elements/documentation/item-configuration-v1.ts +22 -0
  24. package/src/api/dto/elements/documentation/page-v1.ts +8 -7
  25. package/src/api/dto/elements/documentation/page-v2.ts +2 -3
  26. package/src/yjs/design-system-content/documentation-hierarchy.ts +47 -2
  27. package/src/yjs/docs-editor/mock.ts +13 -13
  28. package/src/yjs/docs-editor/prosemirror-to-blocks.ts +1 -1
  29. /package/src/api/dto/elements/documentation/{group.ts → group-v2.ts} +0 -0
package/dist/index.js CHANGED
@@ -1,13 +1,16 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/api/conversion/design-systems/brand.ts
2
- function designSystemBrandToDto(brand) {
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/api/conversion/design-system/version-to-dto.ts
2
+ function designSystemVersionToDto(version) {
3
3
  return {
4
- id: brand.id,
5
- designSystemVersionId: brand.designSystemVersionId,
6
- persistentId: brand.persistentId,
4
+ id: version.id,
5
+ designSystemId: version.designSystemId,
6
+ createdAt: version.createdAt,
7
7
  meta: {
8
- name: brand.name,
9
- description: brand.description
10
- }
8
+ name: version.name,
9
+ description: version.comment
10
+ },
11
+ version: version.version,
12
+ changeLog: version.changeLog,
13
+ isReadonly: version.isReadonly
11
14
  };
12
15
  }
13
16
 
@@ -29,6 +32,61 @@ function elementPropertyDefinitionToDto(elementProperyDefinition) {
29
32
  };
30
33
  }
31
34
 
35
+ // src/api/conversion/design-systems/elements/properties/property-value.ts
36
+ function elementPropertyValueToDto(elementPropertyValue) {
37
+ let value;
38
+ let valuePreview;
39
+ if (elementPropertyValue.stringValue) {
40
+ value = elementPropertyValue.stringValue;
41
+ } else if (elementPropertyValue.numberValue) {
42
+ value = elementPropertyValue.numberValue;
43
+ } else if (typeof elementPropertyValue.booleanValue === "boolean") {
44
+ value = elementPropertyValue.booleanValue;
45
+ } else if (elementPropertyValue.referenceValue) {
46
+ value = elementPropertyValue.referenceValue;
47
+ valuePreview = elementPropertyValue.referenceValuePreview;
48
+ } else {
49
+ value = void 0;
50
+ }
51
+ return {
52
+ id: elementPropertyValue.id,
53
+ designSystemVersionId: elementPropertyValue.designSystemVersionId,
54
+ definitionId: elementPropertyValue.definitionPersistentId,
55
+ targetElementId: elementPropertyValue.targetElementPersistentId,
56
+ value,
57
+ valuePreview
58
+ };
59
+ }
60
+
61
+ // src/api/conversion/design-systems/brand.ts
62
+ function designSystemBrandToDto(brand) {
63
+ return {
64
+ id: brand.id,
65
+ designSystemVersionId: brand.designSystemVersionId,
66
+ persistentId: brand.persistentId,
67
+ meta: {
68
+ name: brand.name,
69
+ description: brand.description
70
+ }
71
+ };
72
+ }
73
+
74
+ // src/api/conversion/design-systems/view.ts
75
+ function elementViewToDto(elementView, columns) {
76
+ columns.sort((lhs, rhs) => lhs.sortPosition - rhs.sortPosition);
77
+ return {
78
+ id: elementView.id,
79
+ persistentId: elementView.persistentId,
80
+ targetElementType: elementView.targetElementType,
81
+ isDefault: elementView.isDefault,
82
+ meta: {
83
+ name: elementView.name,
84
+ description: elementView.description
85
+ },
86
+ columns
87
+ };
88
+ }
89
+
32
90
  // ../model/dist/index.mjs
33
91
  var _zod = require('zod');
34
92
 
@@ -1014,10 +1072,10 @@ var PageBlockItemAssetValue = _zod.z.object({
1014
1072
  entityType: _zod.z.enum(["Asset", "AssetGroup"]),
1015
1073
  entityMeta: PageBlockAssetEntityMeta.optional()
1016
1074
  })
1017
- )
1075
+ ).default([])
1018
1076
  });
1019
1077
  var PageBlockItemAssetPropertyValue = _zod.z.object({
1020
- value: _zod.z.array(_zod.z.string())
1078
+ value: _zod.z.array(_zod.z.string()).default([])
1021
1079
  });
1022
1080
  var PageBlockItemBooleanValue = _zod.z.object({
1023
1081
  value: _zod.z.boolean()
@@ -1043,7 +1101,7 @@ var PageBlockItemComponentValue = _zod.z.object({
1043
1101
  entityId: _zod.z.string(),
1044
1102
  entityType: _zod.z.enum(["Component", "ComponentGroup"])
1045
1103
  })
1046
- )
1104
+ ).default([])
1047
1105
  });
1048
1106
  var PageBlockItemComponentPropertyValue = _zod.z.object({
1049
1107
  value: _zod.z.string()
@@ -1069,7 +1127,7 @@ var PageBlockItemFigmaNodeValue = _zod.z.object({
1069
1127
  entityId: _zod.z.string(),
1070
1128
  entityMeta: PageBlockFigmaNodeEntityMeta.optional()
1071
1129
  })
1072
- )
1130
+ ).default([])
1073
1131
  });
1074
1132
  var PageBlockItemImageValue = _zod.z.object({
1075
1133
  alt: _zod.z.string().optional(),
@@ -1084,7 +1142,7 @@ var PageBlockItemMultiRichTextValue = _zod.z.object({
1084
1142
  value: PageBlockText.array()
1085
1143
  });
1086
1144
  var PageBlockItemMultiSelectValue = _zod.z.object({
1087
- value: _zod.z.array(_zod.z.string())
1145
+ value: _zod.z.array(_zod.z.string()).default([])
1088
1146
  });
1089
1147
  var PageBlockItemNumberValue = _zod.z.object({
1090
1148
  value: _zod.z.number()
@@ -1117,15 +1175,15 @@ var PageBlockItemTokenValue = _zod.z.object({
1117
1175
  showNestedGroups: _zod.z.boolean().optional()
1118
1176
  }).optional()
1119
1177
  })
1120
- )
1178
+ ).default([])
1121
1179
  });
1122
1180
  var PageBlockItemTokenPropertyValue = _zod.z.object({
1123
1181
  selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
1124
1182
  selectedThemeIds: _zod.z.array(_zod.z.string()).optional(),
1125
- value: _zod.z.array(_zod.z.string())
1183
+ value: _zod.z.array(_zod.z.string()).default([])
1126
1184
  });
1127
1185
  var PageBlockItemTokenTypeValue = _zod.z.object({
1128
- value: _zod.z.array(DesignTokenType)
1186
+ value: _zod.z.array(DesignTokenType).default([])
1129
1187
  });
1130
1188
  var PageBlockItemUrlValue = _zod.z.object({
1131
1189
  value: _zod.z.string()
@@ -1163,7 +1221,7 @@ var PageBlockItemTableValue = _zod.z.object({
1163
1221
  highlightHeaderColumn: _zod.z.boolean().optional(),
1164
1222
  highlightHeaderRow: _zod.z.boolean().optional(),
1165
1223
  showBorder: _zod.z.boolean().optional(),
1166
- value: _zod.z.array(PageBlockItemTableRow)
1224
+ value: _zod.z.array(PageBlockItemTableRow).default([])
1167
1225
  });
1168
1226
  var DocumentationItemHeaderAlignmentSchema = _zod.z.enum(["Left", "Center"]);
1169
1227
  var DocumentationItemHeaderImageScaleTypeSchema = _zod.z.enum(["AspectFill", "AspectFit"]);
@@ -1361,6 +1419,10 @@ var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
1361
1419
  var GradientTokenValue = _zod.z.array(GradientLayerData);
1362
1420
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1363
1421
  var DocumentationGroupBehavior = _zod.z.enum(["Group", "Tabs"]);
1422
+ var ElementGroupDataV1 = _zod.z.object({
1423
+ behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1424
+ configuration: nullishToOptional(DocumentationItemConfigurationV1)
1425
+ });
1364
1426
  var ElementGroupDataV2 = _zod.z.object({
1365
1427
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1366
1428
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
@@ -1407,7 +1469,7 @@ var ShadowLayerValue = _zod.z.object({
1407
1469
  y: _zod.z.number(),
1408
1470
  radius: _zod.z.number(),
1409
1471
  spread: _zod.z.number(),
1410
- opacity: OpacityTokenData,
1472
+ opacity: OpacityTokenData.optional(),
1411
1473
  type: ShadowType
1412
1474
  });
1413
1475
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
@@ -1469,10 +1531,21 @@ var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shap
1469
1531
  svg: ComponentAsset.optional(),
1470
1532
  isAsset: _zod.z.boolean()
1471
1533
  });
1534
+ var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1535
+ shortPersistentId: _zod.z.string().optional(),
1536
+ childType: DesignElementType,
1537
+ data: ElementGroupDataV2.optional()
1538
+ });
1539
+ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1472
1540
  var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1473
1541
  shortPersistentId: _zod.z.string(),
1474
1542
  data: DocumentationPageDataV1
1475
1543
  });
1544
+ var DocumentationGroupV1 = ElementGroup.omit({
1545
+ data: true
1546
+ }).extend({
1547
+ data: ElementGroupDataV1.optional()
1548
+ });
1476
1549
  var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1477
1550
  shortPersistentId: _zod.z.string(),
1478
1551
  data: DocumentationPageDataV2.extend({
@@ -1498,12 +1571,6 @@ var FigmaNodeReference = DesignElementBase.extend({
1498
1571
  data: FigmaNodeReferenceData,
1499
1572
  origin: FigmaNodeReferenceOrigin
1500
1573
  });
1501
- var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1502
- shortPersistentId: _zod.z.string().optional(),
1503
- childType: DesignElementType,
1504
- data: ElementGroupDataV2.optional()
1505
- });
1506
- var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1507
1574
  var DesignTokenOriginPart = _zod.z.object({
1508
1575
  referenceOriginId: _zod.z.string().optional(),
1509
1576
  referencePersistentId: _zod.z.string().optional()
@@ -1718,7 +1785,8 @@ var FigmaImportBaseContext = _zod.z.object({
1718
1785
  importedSourceDataBySourceId: _zod.z.record(ImportedFigmaSourceData)
1719
1786
  });
1720
1787
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
1721
- sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([])
1788
+ sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
1789
+ shadowOpacityOptional: _zod.z.boolean().default(false)
1722
1790
  });
1723
1791
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
1724
1792
  importMetadata: DataSourceFigmaImportMetadata
@@ -2215,11 +2283,17 @@ var DesignSystemVersionRoom = Entity.extend({
2215
2283
  designSystemVersionId: _zod.z.string(),
2216
2284
  liveblocksId: _zod.z.string()
2217
2285
  });
2286
+ var DesignSystemVersionRoomInternalSettings = _zod.z.object({
2287
+ routingVersion: _zod.z.string()
2288
+ });
2218
2289
  var DesignSystemVersionRoomInitialState = _zod.z.object({
2219
2290
  pages: _zod.z.array(DocumentationPageV2),
2220
- groups: _zod.z.array(ElementGroup)
2291
+ groups: _zod.z.array(ElementGroup),
2292
+ internalSettings: DesignSystemVersionRoomInternalSettings
2221
2293
  });
2222
- var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
2294
+ var DesignSystemVersionRoomUpdate = _zod.z.object({
2295
+ pages: _zod.z.array(DocumentationPageV2),
2296
+ groups: _zod.z.array(ElementGroup),
2223
2297
  deletedPageIds: _zod.z.array(_zod.z.string()),
2224
2298
  deletedGroupIds: _zod.z.array(_zod.z.string())
2225
2299
  });
@@ -2816,13 +2890,14 @@ var UserSession = _zod.z.object({
2816
2890
  session: Session,
2817
2891
  user: User.nullable()
2818
2892
  });
2819
- var FlaggedFeature = _zod.z.enum(["FigmaImporterV2"]);
2893
+ var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional"]);
2820
2894
  var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
2821
2895
  var FeatureFlag = _zod.z.object({
2822
2896
  id: _zod.z.string(),
2823
2897
  feature: FlaggedFeature,
2824
2898
  createdAt: _zod.z.coerce.date(),
2825
- enabled: _zod.z.boolean()
2899
+ enabled: _zod.z.boolean(),
2900
+ designSystemId: _zod.z.string().optional()
2826
2901
  });
2827
2902
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2828
2903
  OAuthProviderNames2["Figma"] = "figma";
@@ -3616,50 +3691,61 @@ var RESERVED_SLUGS = [
3616
3691
  ];
3617
3692
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3618
3693
 
3619
- // src/api/conversion/design-systems/elements/properties/property-value.ts
3620
- function elementPropertyValueToDto(elementPropertyValue) {
3621
- let value;
3622
- let valuePreview;
3623
- if (elementPropertyValue.stringValue) {
3624
- value = elementPropertyValue.stringValue;
3625
- } else if (elementPropertyValue.numberValue) {
3626
- value = elementPropertyValue.numberValue;
3627
- } else if (typeof elementPropertyValue.booleanValue === "boolean") {
3628
- value = elementPropertyValue.booleanValue;
3629
- } else if (elementPropertyValue.referenceValue) {
3630
- value = elementPropertyValue.referenceValue;
3631
- valuePreview = elementPropertyValue.referenceValuePreview;
3632
- } else {
3633
- throw SupernovaException.shouldNotHappen(`Invalid element property value, id: ${elementPropertyValue.id}`);
3694
+ // src/api/conversion/documentation/documentation-group-v2-to-dto.ts
3695
+ function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
3696
+ const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
3697
+ return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
3698
+ }
3699
+ function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
3700
+ const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
3701
+ return groups.map((group) => {
3702
+ return {
3703
+ ...elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap),
3704
+ configuration: _nullishCoalesce(_optionalChain([group, 'access', _3 => _3.data, 'optionalAccess', _4 => _4.configuration]), () => ( {
3705
+ showSidebar: true,
3706
+ header: defaultDocumentationItemHeaderV2
3707
+ }))
3708
+ };
3709
+ });
3710
+ }
3711
+ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
3712
+ const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
3713
+ if (!group.shortPersistentId) {
3714
+ throw new Error(`Short persistent id is required for docs groups, group id: ${group.id}`);
3634
3715
  }
3635
3716
  return {
3636
- id: elementPropertyValue.id,
3637
- designSystemVersionId: elementPropertyValue.designSystemVersionId,
3638
- definitionId: elementPropertyValue.definitionPersistentId,
3639
- targetElementId: elementPropertyValue.targetElementPersistentId,
3640
- value,
3641
- valuePreview
3717
+ id: group.id,
3718
+ designSystemVersionId: group.designSystemVersionId,
3719
+ persistentId: group.persistentId,
3720
+ slug: group.slug,
3721
+ userSlug: group.userSlug,
3722
+ createdAt: group.createdAt,
3723
+ updatedAt: group.updatedAt,
3724
+ title: group.meta.name,
3725
+ childrenIds,
3726
+ isRoot: !group.parentPersistentId,
3727
+ groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _5 => _5.data, 'optionalAccess', _6 => _6.behavior]), () => ( "Group")),
3728
+ shortPersistentId: group.shortPersistentId,
3729
+ type: "Group"
3642
3730
  };
3643
3731
  }
3644
-
3645
- // src/api/conversion/design-systems/view.ts
3646
- function elementViewToDto(elementView, columns) {
3647
- columns.sort((lhs, rhs) => lhs.sortPosition - rhs.sortPosition);
3648
- return {
3649
- id: elementView.id,
3650
- persistentId: elementView.persistentId,
3651
- targetElementType: elementView.targetElementType,
3652
- isDefault: elementView.isDefault,
3653
- meta: {
3654
- name: elementView.name,
3655
- description: elementView.description
3656
- },
3657
- columns
3658
- };
3732
+ function calculateChildrenIdsMapV2(elements, groups) {
3733
+ const byParentId = groupBy([...elements, ...groups], (e) => e.parentPersistentId);
3734
+ const childrenIdsMap = /* @__PURE__ */ new Map();
3735
+ for (const [parentPersistentId, children] of byParentId) {
3736
+ if (!parentPersistentId)
3737
+ continue;
3738
+ children.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
3739
+ childrenIdsMap.set(
3740
+ parentPersistentId,
3741
+ children.map((c) => c.persistentId)
3742
+ );
3743
+ }
3744
+ return childrenIdsMap;
3659
3745
  }
3660
3746
 
3661
3747
  // src/api/conversion/documentation/documentation-page-to-dto-utils.ts
3662
- function buildDocPagePublishPaths(groups, pages) {
3748
+ function buildDocPagePublishPaths(groups, pages, routingVersion) {
3663
3749
  const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
3664
3750
  const result = /* @__PURE__ */ new Map();
3665
3751
  for (const page of pages) {
@@ -3674,7 +3760,11 @@ function buildDocPagePublishPaths(groups, pages) {
3674
3760
  }
3675
3761
  pathV1 = `/${pathV1}`;
3676
3762
  pathV2 = `/${pathV2}`;
3677
- result.set(page.persistentId, pathV2);
3763
+ if (routingVersion === "2") {
3764
+ result.set(page.persistentId, pathV2);
3765
+ } else {
3766
+ result.set(page.persistentId, pathV1);
3767
+ }
3678
3768
  }
3679
3769
  return result;
3680
3770
  }
@@ -3685,18 +3775,18 @@ function calculateElementParentChain(elementParentPersistentId, groupPersistentI
3685
3775
  const parent = groupPersistentIdToGroupMap.get(parentId);
3686
3776
  if (parent)
3687
3777
  result.push(parent);
3688
- parentId = _optionalChain([parent, 'optionalAccess', _3 => _3.parentPersistentId]);
3778
+ parentId = _optionalChain([parent, 'optionalAccess', _7 => _7.parentPersistentId]);
3689
3779
  }
3690
3780
  return result;
3691
3781
  }
3692
3782
 
3693
3783
  // src/api/conversion/documentation/documentation-page-v2-to-dto.ts
3694
- function documentationPagesToStructureDTOV2(pages, groups) {
3695
- const pathsMap = buildDocPagePublishPaths(groups, pages);
3784
+ function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
3785
+ const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
3696
3786
  return pages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
3697
3787
  }
3698
- function documentationPagesToDTOV2(pages, groups) {
3699
- const pathsMap = buildDocPagePublishPaths(groups, pages);
3788
+ function documentationPagesToDTOV2(pages, groups, routingVersion) {
3789
+ const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
3700
3790
  return pages.map((page) => {
3701
3791
  return {
3702
3792
  ...documentationPageToStructureDTOV2(page, pathsMap),
@@ -3728,24 +3818,66 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
3728
3818
  };
3729
3819
  }
3730
3820
 
3731
- // src/api/conversion/documentation/documentation-group-to-dto.ts
3732
- function elementGroupsToDocumentationGroupStructureDTO(groups, pages) {
3733
- const childrenIdsMap = calculateChildrenIdsMap(pages, groups);
3734
- return groups.map((group) => elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap));
3821
+ // src/api/conversion/documentation/documentation-elements-to-hierarchy-v2-dto.ts
3822
+ function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion) {
3823
+ return {
3824
+ pages: documentationPagesToStructureDTOV2(docPages, docGroups, routingVersion),
3825
+ groups: elementGroupsToDocumentationGroupStructureDTOV2(docGroups, docPages)
3826
+ };
3827
+ }
3828
+
3829
+ // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
3830
+ var dtoDefaultItemConfigurationV1 = {
3831
+ showSidebar: true,
3832
+ header: {
3833
+ alignment: DocumentationItemHeaderAlignment.Left,
3834
+ backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
3835
+ description: "",
3836
+ showBackgroundOverlay: false,
3837
+ showCoverText: true
3838
+ }
3839
+ };
3840
+ function documentationItemConfigurationToDTOV1(config) {
3841
+ const { header, showSidebar } = config;
3842
+ const { backgroundColor, foregroundColor, ...headerRest } = header;
3843
+ return {
3844
+ showSidebar,
3845
+ header: {
3846
+ ...headerRest,
3847
+ backgroundColor: colorToDTOV1(_nullishCoalesce(backgroundColor, () => ( void 0))),
3848
+ foregroundColor: colorToDTOV1(_nullishCoalesce(foregroundColor, () => ( void 0)))
3849
+ }
3850
+ };
3851
+ }
3852
+ function colorToDTOV1(color) {
3853
+ if (!color)
3854
+ return void 0;
3855
+ if (color.aliasTo)
3856
+ return { aliasTo: color.aliasTo };
3857
+ if (!color.value)
3858
+ return void 0;
3859
+ if (typeof color.value === "string")
3860
+ return { value: color.value };
3861
+ if (typeof color.value.color === "string")
3862
+ return { value: color.value.color };
3863
+ return void 0;
3864
+ }
3865
+
3866
+ // src/api/conversion/documentation/documentation-group-v1-to-dto.ts
3867
+ function elementGroupsToDocumentationGroupStructureDTOV1(groups, pages) {
3868
+ const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
3869
+ return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap));
3735
3870
  }
3736
- function elementGroupsToDocumentationGroupDTO(groups, pages) {
3737
- const childrenIdsMap = calculateChildrenIdsMap(pages, groups);
3871
+ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
3872
+ const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
3738
3873
  return groups.map((group) => {
3739
3874
  return {
3740
- ...elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap),
3741
- configuration: _nullishCoalesce(_optionalChain([group, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.configuration]), () => ( {
3742
- showSidebar: true,
3743
- header: defaultDocumentationItemHeaderV2
3744
- }))
3875
+ ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
3876
+ configuration: _optionalChain([group, 'access', _8 => _8.data, 'optionalAccess', _9 => _9.configuration]) ? documentationItemConfigurationToDTOV1(group.data.configuration) : dtoDefaultItemConfigurationV1
3745
3877
  };
3746
3878
  });
3747
3879
  }
3748
- function elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap) {
3880
+ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
3749
3881
  const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
3750
3882
  if (!group.shortPersistentId) {
3751
3883
  throw new Error(`Short persistent id is required for docs groups, group id: ${group.id}`);
@@ -3761,12 +3893,12 @@ function elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap) {
3761
3893
  title: group.meta.name,
3762
3894
  childrenIds,
3763
3895
  isRoot: !group.parentPersistentId,
3764
- groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.behavior]), () => ( "Group")),
3896
+ groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _10 => _10.data, 'optionalAccess', _11 => _11.behavior]), () => ( "Group")),
3765
3897
  shortPersistentId: group.shortPersistentId,
3766
3898
  type: "Group"
3767
3899
  };
3768
3900
  }
3769
- function calculateChildrenIdsMap(elements, groups) {
3901
+ function calculateChildrenIdsMapV1(elements, groups) {
3770
3902
  const byParentId = groupBy([...elements, ...groups], (e) => e.parentPersistentId);
3771
3903
  const childrenIdsMap = /* @__PURE__ */ new Map();
3772
3904
  for (const [parentPersistentId, children] of byParentId) {
@@ -3781,17 +3913,9 @@ function calculateChildrenIdsMap(elements, groups) {
3781
3913
  return childrenIdsMap;
3782
3914
  }
3783
3915
 
3784
- // src/api/conversion/documentation/documentation-elements-to-hierarchy-v2-dto.ts
3785
- function documentationElementsToHierarchyDto(docPages, docGroups) {
3786
- return {
3787
- pages: documentationPagesToStructureDTOV2(docPages, docGroups),
3788
- groups: elementGroupsToDocumentationGroupStructureDTO(docGroups, docPages)
3789
- };
3790
- }
3791
-
3792
3916
  // src/api/conversion/documentation/documentation-page-v1-to-dto.ts
3793
- function documentationPagesToDTOV1(pages, groups) {
3794
- const pathsMap = buildDocPagePublishPaths(groups, pages);
3917
+ function documentationPagesToDTOV1(pages, groups, routingVersion) {
3918
+ const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
3795
3919
  return pages.map((page) => {
3796
3920
  let path = pathsMap.get(page.persistentId);
3797
3921
  if (!path)
@@ -3807,10 +3931,7 @@ function documentationPagesToDTOV1(pages, groups) {
3807
3931
  blocks: page.data.blocks,
3808
3932
  slug: page.slug,
3809
3933
  userSlug: page.userSlug,
3810
- configuration: _nullishCoalesce(page.data.configuration, () => ( {
3811
- showSidebar: true,
3812
- header: defaultDocumentationItemHeaderV1
3813
- })),
3934
+ configuration: page.data.configuration ? documentationItemConfigurationToDTOV1(page.data.configuration) : dtoDefaultItemConfigurationV1,
3814
3935
  createdAt: page.createdAt,
3815
3936
  updatedAt: page.updatedAt,
3816
3937
  path
@@ -3818,21 +3939,16 @@ function documentationPagesToDTOV1(pages, groups) {
3818
3939
  });
3819
3940
  }
3820
3941
 
3821
- // src/api/conversion/design-system/version-to-dto.ts
3822
- function designSystemVersionToDto(version) {
3823
- return {
3824
- id: version.id,
3825
- designSystemId: version.designSystemId,
3826
- createdAt: version.createdAt,
3827
- meta: {
3828
- name: version.name,
3829
- description: version.comment
3830
- },
3831
- version: version.version,
3832
- changeLog: version.changeLog,
3833
- isReadonly: version.isReadonly
3834
- };
3835
- }
3942
+ // src/api/dto/design-systems/brand.ts
3943
+
3944
+ var DTOBrand = _zod.z.object({
3945
+ id: _zod.z.string(),
3946
+ designSystemVersionId: _zod.z.string(),
3947
+ persistentId: _zod.z.string(),
3948
+ meta: ObjectMeta
3949
+ });
3950
+ var DTOBrandGetResponse = _zod.z.object({ brand: DTOBrand });
3951
+ var DTOBrandsListResponse = _zod.z.object({ brands: _zod.z.array(DTOBrand) });
3836
3952
 
3837
3953
  // src/api/dto/design-systems/design-system.ts
3838
3954
  var DTODesignSystem = DesignSystem.omit({
@@ -3842,16 +3958,23 @@ var DTODesignSystem = DesignSystem.omit({
3842
3958
  meta: ObjectMeta
3843
3959
  });
3844
3960
 
3845
- // src/api/dto/design-systems/brand.ts
3961
+ // src/api/dto/design-systems/version.ts
3846
3962
 
3847
- var DTOBrand = _zod.z.object({
3963
+ var DTODesignSystemVersion = _zod.z.object({
3848
3964
  id: _zod.z.string(),
3849
- designSystemVersionId: _zod.z.string(),
3850
- persistentId: _zod.z.string(),
3851
- meta: ObjectMeta
3965
+ createdAt: _zod.z.date(),
3966
+ meta: ObjectMeta,
3967
+ version: _zod.z.string(),
3968
+ isReadonly: _zod.z.boolean(),
3969
+ changeLog: _zod.z.string(),
3970
+ designSystemId: _zod.z.string()
3971
+ });
3972
+ var DTODesignSystemVersionsListResponse = _zod.z.object({
3973
+ designSystemVersions: _zod.z.array(DTODesignSystemVersion)
3974
+ });
3975
+ var DTODesignSystemVersionGetResponse = _zod.z.object({
3976
+ designSystemVersion: DTODesignSystemVersion
3852
3977
  });
3853
- var DTOBrandGetResponse = _zod.z.object({ brand: DTOBrand });
3854
- var DTOBrandsListResponse = _zod.z.object({ brands: _zod.z.array(DTOBrand) });
3855
3978
 
3856
3979
  // src/api/dto/design-systems/view.ts
3857
3980
 
@@ -3889,24 +4012,6 @@ var DTOElementViewsListResponse = _zod.z.object({
3889
4012
  elementDataViews: _zod.z.array(DTOElementView)
3890
4013
  });
3891
4014
 
3892
- // src/api/dto/design-systems/version.ts
3893
-
3894
- var DTODesignSystemVersion = _zod.z.object({
3895
- id: _zod.z.string(),
3896
- createdAt: _zod.z.date(),
3897
- meta: ObjectMeta,
3898
- version: _zod.z.string(),
3899
- isReadonly: _zod.z.boolean(),
3900
- changeLog: _zod.z.string(),
3901
- designSystemId: _zod.z.string()
3902
- });
3903
- var DTODesignSystemVersionsListResponse = _zod.z.object({
3904
- designSystemVersions: _zod.z.array(DTODesignSystemVersion)
3905
- });
3906
- var DTODesignSystemVersionGetResponse = _zod.z.object({
3907
- designSystemVersion: DTODesignSystemVersion
3908
- });
3909
-
3910
4015
  // src/api/dto/documentation/link-preview.ts
3911
4016
 
3912
4017
  var DTODocumentationLinkPreviewResponse = _zod.z.object({
@@ -3920,7 +4025,7 @@ var DTODocumentationLinkPreviewRequest = _zod.z.object({
3920
4025
  // src/api/dto/elements/documentation/group-action.ts
3921
4026
 
3922
4027
 
3923
- // src/api/dto/elements/documentation/group.ts
4028
+ // src/api/dto/elements/documentation/group-v2.ts
3924
4029
 
3925
4030
  var DTODocumentationGroupStructureV2 = ElementGroup.omit({
3926
4031
  sortOrder: true,
@@ -4054,6 +4159,48 @@ var DTODocumentationTabGroupDeleteActionInputV2 = _zod.z.object({
4054
4159
  input: DTODeleteDocumentationTabGroupInput
4055
4160
  });
4056
4161
 
4162
+ // src/api/dto/elements/documentation/group-v1.ts
4163
+
4164
+
4165
+ // src/api/dto/elements/documentation/item-configuration-v1.ts
4166
+
4167
+ var DocumentationColorV1 = _zod.z.object({
4168
+ aliasTo: _zod.z.string().optional(),
4169
+ value: _zod.z.string().optional()
4170
+ });
4171
+ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4172
+ foregroundColor: true,
4173
+ backgroundColor: true
4174
+ }).extend({
4175
+ foregroundColor: DocumentationColorV1.optional(),
4176
+ backgroundColor: DocumentationColorV1.optional()
4177
+ });
4178
+ var DTODocumentationItemConfigurationV1 = _zod.z.object({
4179
+ showSidebar: _zod.z.boolean(),
4180
+ header: DTODocumentationItemHeaderV1
4181
+ });
4182
+
4183
+ // src/api/dto/elements/documentation/group-v1.ts
4184
+ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
4185
+ sortOrder: true,
4186
+ parentPersistentId: true,
4187
+ brandPersistentId: true,
4188
+ meta: true,
4189
+ childType: true,
4190
+ data: true,
4191
+ shortPersistentId: true
4192
+ }).extend({
4193
+ title: _zod.z.string(),
4194
+ isRoot: _zod.z.boolean(),
4195
+ childrenIds: _zod.z.array(_zod.z.string()),
4196
+ groupBehavior: DocumentationGroupBehavior,
4197
+ shortPersistentId: _zod.z.string(),
4198
+ type: _zod.z.literal("Group")
4199
+ });
4200
+ var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
4201
+ configuration: DTODocumentationItemConfigurationV1
4202
+ });
4203
+
4057
4204
  // src/api/dto/elements/documentation/page-actions-v2.ts
4058
4205
 
4059
4206
 
@@ -4166,7 +4313,9 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
4166
4313
  meta: true,
4167
4314
  parentPersistentId: true,
4168
4315
  sortOrder: true
4169
- }).extend(DocumentationPageV1.shape.data.shape).extend({
4316
+ }).extend({
4317
+ configuration: DTODocumentationItemConfigurationV1,
4318
+ blocks: _zod.z.array(PageBlockV1),
4170
4319
  title: _zod.z.string(),
4171
4320
  path: _zod.z.string()
4172
4321
  });
@@ -4398,6 +4547,10 @@ var WorkspaceConfigurationPayload = _zod.z.object({
4398
4547
  });
4399
4548
 
4400
4549
  // src/yjs/design-system-content/documentation-hierarchy.ts
4550
+
4551
+ var DocumentationHierarchySettings = _zod.z.object({
4552
+ routingVersion: _zod.z.string()
4553
+ });
4401
4554
  function documentationHierarchyToYjs(doc, transaction) {
4402
4555
  doc.transact((trx) => {
4403
4556
  const pagesMap = getPagesYMap(trx.doc);
@@ -4419,14 +4572,21 @@ function documentationHierarchyToYjs(doc, transaction) {
4419
4572
  const sanitizedGroup = {
4420
4573
  ...group,
4421
4574
  data: {
4422
- behavior: _optionalChain([group, 'access', _8 => _8.data, 'optionalAccess', _9 => _9.behavior])
4575
+ behavior: _optionalChain([group, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.behavior])
4423
4576
  }
4424
4577
  };
4425
4578
  groupsMap.set(group.id, JSON.parse(JSON.stringify(sanitizedGroup)));
4426
4579
  });
4580
+ if (transaction.internalSettings) {
4581
+ serializeDocumentationInternalSettings(trx.doc, transaction.internalSettings);
4582
+ }
4427
4583
  });
4428
4584
  return doc;
4429
4585
  }
4586
+ function serializeDocumentationInternalSettings(doc, settings) {
4587
+ const map = getInternalSettingsYMap(doc);
4588
+ map.set("routingVersion", settings.routingVersion);
4589
+ }
4430
4590
  function yjsToDocumentationHierarchy(doc) {
4431
4591
  const pagesMap = getPagesYMap(doc);
4432
4592
  const groupsMap = getGroupsYMap(doc);
@@ -4438,15 +4598,30 @@ function yjsToDocumentationHierarchy(doc) {
4438
4598
  groupsMap.forEach((group) => {
4439
4599
  groups.push(ElementGroup.parse(group));
4440
4600
  });
4441
- const hierarchy = documentationElementsToHierarchyDto(pages, groups);
4601
+ const internalSettings = parseDocumentationInternalSettings(doc);
4602
+ const hierarchy = documentationElementsToHierarchyDto(pages, groups, _nullishCoalesce(internalSettings.routingVersion, () => ( "2")));
4442
4603
  return hierarchy;
4443
4604
  }
4605
+ function parseDocumentationInternalSettings(doc) {
4606
+ const map = getInternalSettingsYMap(doc);
4607
+ const rawSettings = {
4608
+ routingVersion: map.get("routingVersion")
4609
+ };
4610
+ const settingsParseResult = DocumentationHierarchySettings.safeParse(rawSettings);
4611
+ if (!settingsParseResult.success) {
4612
+ return { routingVersion: "2" };
4613
+ }
4614
+ return settingsParseResult.data;
4615
+ }
4444
4616
  function getPagesYMap(doc) {
4445
4617
  return doc.getMap("documentationPages");
4446
4618
  }
4447
4619
  function getGroupsYMap(doc) {
4448
4620
  return doc.getMap("documentationGroups");
4449
4621
  }
4622
+ function getInternalSettingsYMap(doc) {
4623
+ return doc.getMap("documentationInternalSettings");
4624
+ }
4450
4625
 
4451
4626
  // src/yjs/design-system-content/item-configuration.ts
4452
4627
 
@@ -4461,7 +4636,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
4461
4636
  function itemConfigurationToYjs(yDoc, item) {
4462
4637
  yDoc.transact((trx) => {
4463
4638
  const { title, configuration } = item;
4464
- const header = _optionalChain([configuration, 'optionalAccess', _10 => _10.header]);
4639
+ const header = _optionalChain([configuration, 'optionalAccess', _14 => _14.header]);
4465
4640
  if (title !== void 0) {
4466
4641
  const headerYMap = trx.doc.getMap("itemTitle");
4467
4642
  headerYMap.set("title", title);
@@ -4478,7 +4653,7 @@ function itemConfigurationToYjs(yDoc, item) {
4478
4653
  header.showCoverText !== void 0 && headerYMap.set("showCoverText", header.showCoverText);
4479
4654
  header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
4480
4655
  }
4481
- if (_optionalChain([configuration, 'optionalAccess', _11 => _11.showSidebar]) !== void 0) {
4656
+ if (_optionalChain([configuration, 'optionalAccess', _15 => _15.showSidebar]) !== void 0) {
4482
4657
  const configYMap = trx.doc.getMap("itemConfiguration");
4483
4658
  configYMap.set("showSidebar", configuration.showSidebar);
4484
4659
  }
@@ -5268,7 +5443,7 @@ var _yprosemirror = require('y-prosemirror');
5268
5443
  var ListTreeBuilder = class {
5269
5444
  addWithProperty(block, multiRichTextProperty) {
5270
5445
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
5271
- return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _12 => _12.multiRichTextStyle]) || "OL");
5446
+ return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _16 => _16.multiRichTextStyle]) || "OL");
5272
5447
  }
5273
5448
  add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
5274
5449
  const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
@@ -5288,7 +5463,7 @@ var ListTreeBuilder = class {
5288
5463
  }
5289
5464
  const listParent = this.getParentOfDepth(block.data.indentLevel);
5290
5465
  const lastChild = listParent.children[listParent.children.length - 1];
5291
- if (_optionalChain([lastChild, 'optionalAccess', _13 => _13.type]) === "List") {
5466
+ if (_optionalChain([lastChild, 'optionalAccess', _17 => _17.type]) === "List") {
5292
5467
  lastChild.children.push(...list.leadingChildren);
5293
5468
  return;
5294
5469
  } else {
@@ -5470,7 +5645,7 @@ function serializeAsRichTextBlock(input) {
5470
5645
  const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
5471
5646
  const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
5472
5647
  const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
5473
- const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _14 => _14.richTextStyle]), () => ( "Default"));
5648
+ const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _18 => _18.richTextStyle]), () => ( "Default"));
5474
5649
  switch (style) {
5475
5650
  case "Callout":
5476
5651
  return serializeAsCallout(enrichedInput);
@@ -5691,7 +5866,7 @@ function serializeBlockNodeAttributes(block) {
5691
5866
  };
5692
5867
  }
5693
5868
  function richTextHeadingLevel(property) {
5694
- const style = _optionalChain([property, 'access', _15 => _15.options, 'optionalAccess', _16 => _16.richTextStyle]);
5869
+ const style = _optionalChain([property, 'access', _19 => _19.options, 'optionalAccess', _20 => _20.richTextStyle]);
5695
5870
  if (!style)
5696
5871
  return void 0;
5697
5872
  switch (style) {
@@ -5798,7 +5973,7 @@ function serializeAsCustomBlock(block, definition) {
5798
5973
  linksTo: i.linksTo
5799
5974
  };
5800
5975
  });
5801
- const columns = _optionalChain([block, 'access', _17 => _17.data, 'access', _18 => _18.appearance, 'optionalAccess', _19 => _19.numberOfColumns]);
5976
+ const columns = _optionalChain([block, 'access', _21 => _21.data, 'access', _22 => _22.appearance, 'optionalAccess', _23 => _23.numberOfColumns]);
5802
5977
  return {
5803
5978
  type: serializeCustomBlockNodeType(block, definition),
5804
5979
  attrs: {
@@ -5839,7 +6014,7 @@ var blocks = [
5839
6014
  name: "Text",
5840
6015
  description: "Plain text",
5841
6016
  category: "Text",
5842
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/text.svg",
6017
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v3/text.svg",
5843
6018
  searchKeywords: ["paragraph", "rich text"],
5844
6019
  item: {
5845
6020
  properties: [
@@ -6309,7 +6484,7 @@ var blocks = [
6309
6484
  {
6310
6485
  id: "io.supernova.block.image",
6311
6486
  name: "Image",
6312
- description: "Display an image or Figma frame",
6487
+ description: "Display an image or Figma image",
6313
6488
  category: "Media",
6314
6489
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/image.svg",
6315
6490
  searchKeywords: ["image", "figma", "frame", "picture", "photo"],
@@ -6338,7 +6513,7 @@ var blocks = [
6338
6513
  behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6339
6514
  editorOptions: {
6340
6515
  onboarding: {
6341
- helpText: "Use to display an image or Figma frame.",
6516
+ helpText: "Use to display an image or Figma image.",
6342
6517
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B"
6343
6518
  }
6344
6519
  },
@@ -7057,7 +7232,7 @@ var blocks = [
7057
7232
  behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7058
7233
  editorOptions: { onboarding: { helpText: "Code descriptor." } },
7059
7234
  appearance: {
7060
- isBordered: true,
7235
+ isBordered: false,
7061
7236
  hasBackground: false,
7062
7237
  isEditorPresentationDifferent: false,
7063
7238
  showBlockHeaderInEditor: false
@@ -7162,7 +7337,7 @@ var blocks = [
7162
7337
  layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7163
7338
  maxColumns: 8,
7164
7339
  defaultColumns: 1,
7165
- appearance: { isEditorPresentationDifferent: false }
7340
+ appearance: {}
7166
7341
  },
7167
7342
  {
7168
7343
  id: "square-grid",
@@ -7172,7 +7347,7 @@ var blocks = [
7172
7347
  layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7173
7348
  maxColumns: 8,
7174
7349
  defaultColumns: 1,
7175
- appearance: { isEditorPresentationDifferent: false }
7350
+ appearance: { isEditorPresentationDifferent: true }
7176
7351
  },
7177
7352
  {
7178
7353
  id: "borderless-grid",
@@ -7182,7 +7357,7 @@ var blocks = [
7182
7357
  layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7183
7358
  maxColumns: 8,
7184
7359
  defaultColumns: 1,
7185
- appearance: { isEditorPresentationDifferent: false }
7360
+ appearance: { isEditorPresentationDifferent: true }
7186
7361
  }
7187
7362
  ],
7188
7363
  defaultVariantKey: "default"
@@ -7203,11 +7378,11 @@ var blocks = [
7203
7378
  },
7204
7379
  {
7205
7380
  id: "io.supernova.block.figma-frames",
7206
- name: "Figma frames",
7207
- description: "Display Figma frames as images",
7381
+ name: "Figma images",
7382
+ description: "Generate images from Figma layers",
7208
7383
  category: "Figma",
7209
7384
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/figma-frames.svg",
7210
- searchKeywords: ["figma", "frames", "image"],
7385
+ searchKeywords: ["figma", "frames", "image", "layer"],
7211
7386
  item: {
7212
7387
  properties: [
7213
7388
  {
@@ -7231,7 +7406,7 @@ var blocks = [
7231
7406
  columnResizing: "Fill",
7232
7407
  gap: "Medium"
7233
7408
  },
7234
- maxColumns: 1,
7409
+ maxColumns: 8,
7235
7410
  defaultColumns: 1,
7236
7411
  appearance: {}
7237
7412
  },
@@ -7247,7 +7422,7 @@ var blocks = [
7247
7422
  columnResizing: "Fill",
7248
7423
  gap: "Medium"
7249
7424
  },
7250
- maxColumns: 1,
7425
+ maxColumns: 8,
7251
7426
  defaultColumns: 1,
7252
7427
  appearance: {}
7253
7428
  }
@@ -7257,7 +7432,7 @@ var blocks = [
7257
7432
  behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
7258
7433
  editorOptions: {
7259
7434
  onboarding: {
7260
- helpText: "Display Figma frames as images.",
7435
+ helpText: "Generate images from Figma layers",
7261
7436
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/figma-frames/general-f3IYC5dg"
7262
7437
  }
7263
7438
  },
@@ -7492,7 +7667,7 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
7492
7667
  };
7493
7668
  }
7494
7669
  function shallowProsemirrorNodeToBlock(prosemirrorNode, definition) {
7495
- return shallowProsemirrorNodeAndDefinitionToBlock(prosemirrorNode, definition);
7670
+ return prosemirrorNodeAndDefinitionToBlock(prosemirrorNode, definition, /* @__PURE__ */ new Map([[definition.id, definition]]), 0);
7496
7671
  }
7497
7672
  function prosemirrorNodeToSection(prosemirrorNode, definitions) {
7498
7673
  const definitionsById = mapByUnique2(definitions, (d) => d.id);
@@ -7645,10 +7820,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
7645
7820
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7646
7821
  const result = [];
7647
7822
  const listItems = [];
7648
- _optionalChain([prosemirrorNode, 'access', _20 => _20.content, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((c) => {
7823
+ _optionalChain([prosemirrorNode, 'access', _24 => _24.content, 'optionalAccess', _25 => _25.forEach, 'call', _26 => _26((c) => {
7649
7824
  if (c.type !== "listItem")
7650
7825
  return;
7651
- _optionalChain([c, 'access', _23 => _23.content, 'optionalAccess', _24 => _24.forEach, 'call', _25 => _25((cc) => {
7826
+ _optionalChain([c, 'access', _27 => _27.content, 'optionalAccess', _28 => _28.forEach, 'call', _29 => _29((cc) => {
7652
7827
  listItems.push(cc);
7653
7828
  })]);
7654
7829
  })]);
@@ -7746,17 +7921,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
7746
7921
  return null;
7747
7922
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7748
7923
  const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
7749
- const tableChild = _optionalChain([prosemirrorNode, 'access', _26 => _26.content, 'optionalAccess', _27 => _27.find, 'call', _28 => _28((c) => c.type === "table")]);
7924
+ const tableChild = _optionalChain([prosemirrorNode, 'access', _30 => _30.content, 'optionalAccess', _31 => _31.find, 'call', _32 => _32((c) => c.type === "table")]);
7750
7925
  if (!tableChild) {
7751
7926
  return emptyTable(id, variantId, 0);
7752
7927
  }
7753
- const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _29 => _29.content, 'optionalAccess', _30 => _30.filter, 'call', _31 => _31((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _32 => _32.content, 'optionalAccess', _33 => _33.length]))]), () => ( []));
7928
+ const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _33 => _33.content, 'optionalAccess', _34 => _34.filter, 'call', _35 => _35((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _36 => _36.content, 'optionalAccess', _37 => _37.length]))]), () => ( []));
7754
7929
  if (!rows.length) {
7755
7930
  return emptyTable(id, variantId, 0);
7756
7931
  }
7757
- const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _34 => _34[0], 'access', _35 => _35.content, 'optionalAccess', _36 => _36.filter, 'call', _37 => _37((c) => c.type === "tableHeader"), 'access', _38 => _38.length]), () => ( 0));
7758
- const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _39 => _39.content, 'optionalAccess', _40 => _40[0], 'optionalAccess', _41 => _41.type]) === "tableHeader").length;
7759
- const hasHeaderRow = _optionalChain([rows, 'access', _42 => _42[0], 'access', _43 => _43.content, 'optionalAccess', _44 => _44.length]) === rowHeaderCells;
7932
+ const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _38 => _38[0], 'access', _39 => _39.content, 'optionalAccess', _40 => _40.filter, 'call', _41 => _41((c) => c.type === "tableHeader"), 'access', _42 => _42.length]), () => ( 0));
7933
+ const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _43 => _43.content, 'optionalAccess', _44 => _44[0], 'optionalAccess', _45 => _45.type]) === "tableHeader").length;
7934
+ const hasHeaderRow = _optionalChain([rows, 'access', _46 => _46[0], 'access', _47 => _47.content, 'optionalAccess', _48 => _48.length]) === rowHeaderCells;
7760
7935
  const hasHeaderColumn = rows.length === columnHeaderCells;
7761
7936
  const tableValue = {
7762
7937
  showBorder: hasBorder,
@@ -7838,7 +8013,7 @@ function parseAsTableNode(prosemirrorNode) {
7838
8013
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
7839
8014
  if (!parsedItems.success)
7840
8015
  return null;
7841
- const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _45 => _45.data, 'access', _46 => _46[0], 'optionalAccess', _47 => _47.props, 'access', _48 => _48.image]);
8016
+ const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _49 => _49.data, 'access', _50 => _50[0], 'optionalAccess', _51 => _51.props, 'access', _52 => _52.image]);
7842
8017
  if (!rawImagePropertyValue)
7843
8018
  return null;
7844
8019
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
@@ -8060,7 +8235,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
8060
8235
  return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
8061
8236
  }
8062
8237
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8063
- const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _49 => _49.attrs, 'optionalAccess', _50 => _50[attributeName]]));
8238
+ const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _53 => _53.attrs, 'optionalAccess', _54 => _54[attributeName]]));
8064
8239
  if (parsedAttr.success) {
8065
8240
  return parsedAttr.data;
8066
8241
  } else {
@@ -8199,5 +8374,13 @@ function mapByUnique2(items, keyFn) {
8199
8374
 
8200
8375
 
8201
8376
 
8202
- exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.designSystemBrandToDto = designSystemBrandToDto; exports.designSystemVersionToDto = designSystemVersionToDto; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTO = elementGroupsToDocumentationGroupDTO; exports.elementGroupsToDocumentationGroupStructureDTO = elementGroupsToDocumentationGroupStructureDTO; exports.elementPropertyDefinitionToDto = elementPropertyDefinitionToDto; exports.elementPropertyValueToDto = elementPropertyValueToDto; exports.elementViewToDto = elementViewToDto; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
8377
+
8378
+
8379
+
8380
+
8381
+
8382
+
8383
+
8384
+
8385
+ exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.designSystemBrandToDto = designSystemBrandToDto; exports.designSystemVersionToDto = designSystemVersionToDto; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.dtoDefaultItemConfigurationV1 = dtoDefaultItemConfigurationV1; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.elementGroupsToDocumentationGroupStructureDTOV2 = elementGroupsToDocumentationGroupStructureDTOV2; exports.elementPropertyDefinitionToDto = elementPropertyDefinitionToDto; exports.elementPropertyValueToDto = elementPropertyValueToDto; exports.elementViewToDto = elementViewToDto; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
8203
8386
  //# sourceMappingURL=index.js.map