@supernova-studio/client 0.40.0 → 0.42.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 (41) hide show
  1. package/dist/index.d.mts +6672 -2394
  2. package/dist/index.d.ts +6672 -2394
  3. package/dist/index.js +349 -70
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1091 -812
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/api/conversion/design-systems/elements/properties/property-definition.ts +1 -1
  9. package/src/api/conversion/design-systems/elements/properties/property-value.ts +1 -1
  10. package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +3 -11
  11. package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +4 -0
  12. package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +32 -0
  13. package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +3 -5
  14. package/src/api/conversion/documentation/index.ts +1 -0
  15. package/src/api/dto/design-systems/brand.ts +5 -0
  16. package/src/api/dto/design-systems/design-system.ts +2 -0
  17. package/src/api/dto/design-systems/exporter-property.ts +8 -0
  18. package/src/api/dto/design-systems/index.ts +1 -0
  19. package/src/api/dto/documentation/anchor.ts +15 -0
  20. package/src/api/dto/documentation/index.ts +1 -0
  21. package/src/api/dto/elements/documentation/group-v2.ts +8 -7
  22. package/src/api/dto/elements/documentation/index.ts +2 -0
  23. package/src/api/dto/elements/documentation/item-configuration-v1.ts +2 -0
  24. package/src/api/dto/elements/documentation/item-configuration-v2.ts +14 -0
  25. package/src/api/dto/elements/documentation/page-content.ts +15 -0
  26. package/src/api/dto/elements/documentation/page-v2.ts +8 -7
  27. package/src/api/dto/elements/elements-action-v2.ts +30 -12
  28. package/src/api/dto/elements/properties/index.ts +1 -0
  29. package/src/api/dto/elements/properties/property-definitions-actions-v2.ts +53 -0
  30. package/src/api/dto/elements/properties/property-definitions.ts +38 -3
  31. package/src/api/dto/workspaces/index.ts +1 -0
  32. package/src/api/dto/workspaces/integrations.ts +16 -0
  33. package/src/api/payloads/design-systems/brand.ts +11 -0
  34. package/src/api/payloads/design-systems/index.ts +2 -0
  35. package/src/api/payloads/design-systems/version.ts +18 -0
  36. package/src/api/payloads/index.ts +1 -0
  37. package/src/api/payloads/workspaces/index.ts +1 -0
  38. package/src/api/payloads/workspaces/workspace-integrations.ts +8 -0
  39. package/src/yjs/design-system-content/item-configuration.ts +14 -9
  40. package/src/yjs/docs-editor/blocks-to-prosemirror.ts +11 -5
  41. package/src/yjs/docs-editor/prosemirror-to-blocks.ts +9 -3
package/dist/index.js CHANGED
@@ -198,6 +198,7 @@ var _zod = require('zod');
198
198
 
199
199
 
200
200
 
201
+
201
202
 
202
203
 
203
204
  var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
@@ -223,6 +224,10 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
223
224
 
224
225
 
225
226
 
227
+
228
+
229
+
230
+
226
231
 
227
232
 
228
233
 
@@ -715,6 +720,7 @@ var HierarchicalElements = DesignTokenType.or(
715
720
  var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
716
721
  var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
717
722
  var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
723
+ var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
718
724
  var ColorTokenInlineData = _zod.z.object({
719
725
  value: _zod.z.string()
720
726
  });
@@ -728,7 +734,7 @@ var ElementPropertyDefinition = _zod.z.object({
728
734
  designSystemVersionId: _zod.z.string(),
729
735
  persistentId: _zod.z.string(),
730
736
  name: _zod.z.string(),
731
- codeName: _zod.z.string(),
737
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX),
732
738
  description: _zod.z.string(),
733
739
  type: ElementPropertyTypeSchema,
734
740
  targetElementType: ElementPropertyTargetType,
@@ -885,6 +891,7 @@ var PageBlockShortcut = _zod.z.object({
885
891
  asset: nullishToOptional(PageBlockAsset),
886
892
  documentationItemId: nullishToOptional(_zod.z.string()),
887
893
  url: nullishToOptional(_zod.z.string()),
894
+ openInNewTab: nullishToOptional(_zod.z.boolean()),
888
895
  urlPreview: nullishToOptional(PageBlockUrlPreview),
889
896
  documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
890
897
  });
@@ -942,7 +949,9 @@ var PageBlockTextSpanAttribute = _zod.z.object({
942
949
  type: PageBlockTextSpanAttributeType,
943
950
  link: nullishToOptional(_zod.z.string()),
944
951
  documentationItemId: nullishToOptional(_zod.z.string()),
945
- openInNewWindow: nullishToOptional(_zod.z.boolean())
952
+ openInNewWindow: nullishToOptional(_zod.z.boolean()),
953
+ // deprecated. use openInNewTab
954
+ openInNewTab: nullishToOptional(_zod.z.boolean())
946
955
  });
947
956
  var PageBlockTextSpan = _zod.z.object({
948
957
  text: _zod.z.string(),
@@ -1247,6 +1256,8 @@ var defaultDocumentationItemHeaderV1 = {
1247
1256
  };
1248
1257
  var DocumentationItemConfigurationV1 = _zod.z.object({
1249
1258
  showSidebar: _zod.z.boolean(),
1259
+ isPrivate: _zod.z.boolean().optional(),
1260
+ isHidden: _zod.z.boolean().optional(),
1250
1261
  header: DocumentationItemHeaderV1
1251
1262
  });
1252
1263
  var DocumentationPageDataV1 = _zod.z.object({
@@ -1273,6 +1284,8 @@ var defaultDocumentationItemHeaderV2 = {
1273
1284
  };
1274
1285
  var DocumentationItemConfigurationV2 = _zod.z.object({
1275
1286
  showSidebar: _zod.z.boolean(),
1287
+ isPrivate: _zod.z.boolean().optional(),
1288
+ isHidden: _zod.z.boolean().optional(),
1276
1289
  header: DocumentationItemHeaderV2
1277
1290
  });
1278
1291
  var DocumentationPageDataV2 = _zod.z.object({
@@ -2240,6 +2253,11 @@ var DocumentationLinkPreview = _zod.z.object({
2240
2253
  description: _zod.z.string().optional(),
2241
2254
  thumbnail: PageBlockImageReference.optional()
2242
2255
  });
2256
+ var DocumentationPageAnchor = _zod.z.object({
2257
+ blockId: _zod.z.string(),
2258
+ level: _zod.z.number(),
2259
+ text: _zod.z.string()
2260
+ });
2243
2261
  var DocumentationPageContentBackup = _zod.z.object({
2244
2262
  id: _zod.z.string(),
2245
2263
  designSystemVersionId: _zod.z.string(),
@@ -2262,8 +2280,7 @@ var DocumentationPageContent = _zod.z.object({
2262
2280
  createdAt: _zod.z.coerce.date(),
2263
2281
  updatedAt: _zod.z.coerce.date(),
2264
2282
  documentationPageId: _zod.z.string(),
2265
- data: DocumentationPageContentData,
2266
- isDirty: _zod.z.boolean()
2283
+ data: DocumentationPageContentData
2267
2284
  });
2268
2285
  var DocumentationPage = _zod.z.object({
2269
2286
  type: _zod.z.literal("DocumentationPage"),
@@ -2533,11 +2550,10 @@ var DesignSystemWithWorkspace = _zod.z.object({
2533
2550
  });
2534
2551
  var DS_NAME_MIN_LENGTH = 2;
2535
2552
  var DS_NAME_MAX_LENGTH = 64;
2536
- var DS_DESC_MIN_LENGTH = 2;
2537
2553
  var DS_DESC_MAX_LENGTH = 64;
2538
2554
  var DesignSystemCreateInputMetadata = _zod.z.object({
2539
2555
  name: _zod.z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2540
- description: _zod.z.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2556
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH).trim()
2541
2557
  });
2542
2558
  var DesignSystemCreateInput = _zod.z.object({
2543
2559
  meta: DesignSystemCreateInputMetadata,
@@ -2549,11 +2565,10 @@ var DesignSystemCreateInput = _zod.z.object({
2549
2565
  });
2550
2566
  var DS_NAME_MIN_LENGTH2 = 2;
2551
2567
  var DS_NAME_MAX_LENGTH2 = 64;
2552
- var DS_DESC_MIN_LENGTH2 = 2;
2553
2568
  var DS_DESC_MAX_LENGTH2 = 64;
2554
2569
  var DesignSystemUpdateInputMetadata = _zod.z.object({
2555
2570
  name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2556
- description: _zod.z.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2571
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2557
2572
  });
2558
2573
  var DesignSystemUpdateInput = _zod.z.object({
2559
2574
  meta: DesignSystemUpdateInputMetadata.optional(),
@@ -2563,9 +2578,44 @@ var DesignSystemUpdateInput = _zod.z.object({
2563
2578
  docUserSlug: _zod.z.string().nullish().optional(),
2564
2579
  source: _zod.z.array(_zod.z.string()).optional(),
2565
2580
  name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2566
- description: _zod.z.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2581
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2567
2582
  docExporterId: _zod.z.string().optional()
2568
2583
  });
2584
+ var ExporterPropertyImageValue = _zod.z.object({
2585
+ asset: PageBlockAsset.optional(),
2586
+ assetId: _zod.z.string().optional(),
2587
+ assetUrl: _zod.z.string().optional()
2588
+ });
2589
+ var ExporterPropertyValue = _zod.z.object({
2590
+ key: _zod.z.string(),
2591
+ value: _zod.z.union([
2592
+ _zod.z.number(),
2593
+ _zod.z.string(),
2594
+ _zod.z.boolean(),
2595
+ ExporterPropertyImageValue,
2596
+ ColorTokenData,
2597
+ TypographyTokenData
2598
+ ])
2599
+ });
2600
+ var ExporterPropertyValuesCollection = _zod.z.object({
2601
+ id: _zod.z.string(),
2602
+ designSystemId: _zod.z.string(),
2603
+ exporterId: _zod.z.string(),
2604
+ values: _zod.z.array(ExporterPropertyValue)
2605
+ });
2606
+ var PublishedDocPage = _zod.z.object({
2607
+ id: _zod.z.string(),
2608
+ publishedDocId: _zod.z.string(),
2609
+ pageShortPersistentId: _zod.z.string(),
2610
+ pathV1: _zod.z.string(),
2611
+ pathV2: _zod.z.string(),
2612
+ storagePath: _zod.z.string(),
2613
+ locale: _zod.z.string().optional(),
2614
+ isPrivate: _zod.z.boolean(),
2615
+ isHidden: _zod.z.boolean(),
2616
+ createdAt: _zod.z.coerce.date(),
2617
+ updatedAt: _zod.z.coerce.date()
2618
+ });
2569
2619
  var publishedDocEnvironments = ["Live", "Preview"];
2570
2620
  var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
2571
2621
  var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
@@ -2890,7 +2940,7 @@ var UserSession = _zod.z.object({
2890
2940
  session: Session,
2891
2941
  user: User.nullable()
2892
2942
  });
2893
- var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional"]);
2943
+ var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
2894
2944
  var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
2895
2945
  var FeatureFlag = _zod.z.object({
2896
2946
  id: _zod.z.string(),
@@ -2916,6 +2966,29 @@ var ExternalOAuthRequest = _zod.z.object({
2916
2966
  state: _zod.z.string(),
2917
2967
  createdAt: _zod.z.coerce.date()
2918
2968
  });
2969
+ var IntegrationType = _zod.z.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
2970
+ var Integration = _zod.z.object({
2971
+ id: _zod.z.string(),
2972
+ workspaceId: _zod.z.string(),
2973
+ type: IntegrationType,
2974
+ createdAt: _zod.z.coerce.date()
2975
+ });
2976
+ var IntegrationCredentialsType = _zod.z.enum(["OAuth2", "PAT"]);
2977
+ var IntegrationCredentialsProfile = _zod.z.object({
2978
+ id: _zod.z.string(),
2979
+ username: _zod.z.string().optional(),
2980
+ avatarUrl: _zod.z.string().optional()
2981
+ });
2982
+ var IntegrationCredentialsSchema = _zod.z.object({
2983
+ id: _zod.z.string(),
2984
+ type: IntegrationCredentialsType,
2985
+ integrationId: _zod.z.string(),
2986
+ accessToken: _zod.z.string(),
2987
+ userId: _zod.z.string(),
2988
+ createdAt: _zod.z.coerce.date(),
2989
+ refreshToken: _zod.z.string().optional(),
2990
+ profile: IntegrationCredentialsProfile.optional()
2991
+ });
2919
2992
  var IntegrationTokenSchema = _zod.z.object({
2920
2993
  id: _zod.z.string(),
2921
2994
  provider: OAuthProviderSchema,
@@ -2926,6 +2999,13 @@ var IntegrationTokenSchema = _zod.z.object({
2926
2999
  expiresAt: _zod.z.coerce.date(),
2927
3000
  externalUserId: _zod.z.string().nullish()
2928
3001
  });
3002
+ var WorkspaceOAuthRequestSchema = _zod.z.object({
3003
+ id: _zod.z.string(),
3004
+ workspaceId: _zod.z.string(),
3005
+ provider: OAuthProviderSchema,
3006
+ userId: _zod.z.string(),
3007
+ createdAt: _zod.z.coerce.date()
3008
+ });
2929
3009
  var AnyRecord = _zod.z.record(_zod.z.any());
2930
3010
  var NpmPackageVersionDist = AnyRecord.and(
2931
3011
  _zod.z.object({
@@ -2953,14 +3033,14 @@ var NpmProxyTokenPayload = _zod.z.object({
2953
3033
  var PersonalAccessToken = _zod.z.object({
2954
3034
  id: _zod.z.string(),
2955
3035
  userId: _zod.z.string(),
3036
+ workspaceId: _zod.z.string().optional(),
3037
+ workspaceRole: WorkspaceRoleSchema.optional(),
2956
3038
  name: _zod.z.string(),
3039
+ hidden: _zod.z.boolean(),
2957
3040
  token: _zod.z.string(),
3041
+ scope: _zod.z.string().optional(),
2958
3042
  createdAt: _zod.z.coerce.date(),
2959
- hidden: _zod.z.boolean(),
2960
- workspaceId: _zod.z.string().optional(),
2961
- workspaceRole: WorkspaceRoleSchema.optional(),
2962
- expireAt: _zod.z.coerce.date().optional(),
2963
- scope: _zod.z.string().optional()
3043
+ expireAt: _zod.z.coerce.date().optional()
2964
3044
  });
2965
3045
  var SupernovaException = class _SupernovaException extends Error {
2966
3046
  //
@@ -3018,6 +3098,9 @@ var SupernovaException = class _SupernovaException extends Error {
3018
3098
  static noAccess(message) {
3019
3099
  return new _SupernovaException("NoAccess", message);
3020
3100
  }
3101
+ static missingCredentials(message) {
3102
+ return new _SupernovaException("MissingCredentials", message);
3103
+ }
3021
3104
  //
3022
3105
  // To refactor
3023
3106
  //
@@ -3691,6 +3774,30 @@ var RESERVED_SLUGS = [
3691
3774
  ];
3692
3775
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3693
3776
 
3777
+ // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
3778
+ var dtoDefaultItemConfigurationV2 = {
3779
+ showSidebar: true,
3780
+ isHidden: false,
3781
+ isPrivate: false,
3782
+ header: {
3783
+ alignment: DocumentationItemHeaderAlignment.Left,
3784
+ backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
3785
+ description: "",
3786
+ showBackgroundOverlay: false,
3787
+ showCoverText: true
3788
+ }
3789
+ };
3790
+ function documentationItemConfigurationToDTOV2(config) {
3791
+ if (!config)
3792
+ return dtoDefaultItemConfigurationV2;
3793
+ return {
3794
+ header: config.header,
3795
+ isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
3796
+ isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
3797
+ showSidebar: config.showSidebar
3798
+ };
3799
+ }
3800
+
3694
3801
  // src/api/conversion/documentation/documentation-group-v2-to-dto.ts
3695
3802
  function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
3696
3803
  const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
@@ -3701,10 +3808,7 @@ function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
3701
3808
  return groups.map((group) => {
3702
3809
  return {
3703
3810
  ...elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap),
3704
- configuration: _nullishCoalesce(_optionalChain([group, 'access', _3 => _3.data, 'optionalAccess', _4 => _4.configuration]), () => ( {
3705
- showSidebar: true,
3706
- header: defaultDocumentationItemHeaderV2
3707
- }))
3811
+ configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'access', _3 => _3.data, 'optionalAccess', _4 => _4.configuration]))
3708
3812
  };
3709
3813
  });
3710
3814
  }
@@ -3790,10 +3894,7 @@ function documentationPagesToDTOV2(pages, groups, routingVersion) {
3790
3894
  return pages.map((page) => {
3791
3895
  return {
3792
3896
  ...documentationPageToStructureDTOV2(page, pathsMap),
3793
- configuration: _nullishCoalesce(page.data.configuration, () => ( {
3794
- showSidebar: true,
3795
- header: defaultDocumentationItemHeaderV2
3796
- }))
3897
+ configuration: documentationItemConfigurationToDTOV2(page.data.configuration)
3797
3898
  };
3798
3899
  });
3799
3900
  }
@@ -3829,6 +3930,8 @@ function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion
3829
3930
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
3830
3931
  var dtoDefaultItemConfigurationV1 = {
3831
3932
  showSidebar: true,
3933
+ isHidden: false,
3934
+ isPrivate: false,
3832
3935
  header: {
3833
3936
  alignment: DocumentationItemHeaderAlignment.Left,
3834
3937
  backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
@@ -3842,6 +3945,8 @@ function documentationItemConfigurationToDTOV1(config) {
3842
3945
  const { backgroundColor, foregroundColor, ...headerRest } = header;
3843
3946
  return {
3844
3947
  showSidebar,
3948
+ isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV1.isHidden)),
3949
+ isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV1.isPrivate)),
3845
3950
  header: {
3846
3951
  ...headerRest,
3847
3952
  backgroundColor: colorToDTOV1(_nullishCoalesce(backgroundColor, () => ( void 0))),
@@ -3948,16 +4053,27 @@ var DTOBrand = _zod.z.object({
3948
4053
  meta: ObjectMeta
3949
4054
  });
3950
4055
  var DTOBrandGetResponse = _zod.z.object({ brand: DTOBrand });
4056
+ var DTOBrandCreateResponse = _zod.z.object({
4057
+ brand: DTOBrand
4058
+ });
3951
4059
  var DTOBrandsListResponse = _zod.z.object({ brands: _zod.z.array(DTOBrand) });
3952
4060
 
3953
4061
  // src/api/dto/design-systems/design-system.ts
4062
+
3954
4063
  var DTODesignSystem = DesignSystem.omit({
3955
4064
  name: true,
3956
- description: true
4065
+ description: true,
4066
+ docExporterId: true
3957
4067
  }).extend({
3958
- meta: ObjectMeta
4068
+ meta: ObjectMeta,
4069
+ docExporterId: _zod.z.string()
3959
4070
  });
3960
4071
 
4072
+ // src/api/dto/design-systems/exporter-property.ts
4073
+
4074
+ var DTOExporterProperty = _zod.z.any({});
4075
+ var DTOExporterPropertyListResponse = _zod.z.object({ items: _zod.z.array(DTOExporterProperty) });
4076
+
3961
4077
  // src/api/dto/design-systems/version.ts
3962
4078
 
3963
4079
  var DTODesignSystemVersion = _zod.z.object({
@@ -4012,6 +4128,13 @@ var DTOElementViewsListResponse = _zod.z.object({
4012
4128
  elementDataViews: _zod.z.array(DTOElementView)
4013
4129
  });
4014
4130
 
4131
+ // src/api/dto/documentation/anchor.ts
4132
+
4133
+ var DTODocumentationPageAnchor = DocumentationPageAnchor;
4134
+ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
4135
+ anchors: _zod.z.array(DTODocumentationPageAnchor)
4136
+ });
4137
+
4015
4138
  // src/api/dto/documentation/link-preview.ts
4016
4139
 
4017
4140
  var DTODocumentationLinkPreviewResponse = _zod.z.object({
@@ -4027,6 +4150,18 @@ var DTODocumentationLinkPreviewRequest = _zod.z.object({
4027
4150
 
4028
4151
  // src/api/dto/elements/documentation/group-v2.ts
4029
4152
 
4153
+
4154
+ // src/api/dto/elements/documentation/item-configuration-v2.ts
4155
+
4156
+ var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4157
+ var DTODocumentationItemConfigurationV2 = _zod.z.object({
4158
+ showSidebar: _zod.z.boolean(),
4159
+ isPrivate: _zod.z.boolean(),
4160
+ isHidden: _zod.z.boolean(),
4161
+ header: DTODocumentationItemHeaderV2
4162
+ });
4163
+
4164
+ // src/api/dto/elements/documentation/group-v2.ts
4030
4165
  var DTODocumentationGroupStructureV2 = ElementGroup.omit({
4031
4166
  sortOrder: true,
4032
4167
  parentPersistentId: true,
@@ -4044,16 +4179,16 @@ var DTODocumentationGroupStructureV2 = ElementGroup.omit({
4044
4179
  type: _zod.z.literal("Group")
4045
4180
  });
4046
4181
  var DTODocumentationGroupV2 = DTODocumentationGroupStructureV2.extend({
4047
- configuration: DocumentationItemConfigurationV2
4182
+ configuration: DTODocumentationItemConfigurationV2
4048
4183
  });
4049
4184
  var DTOCreateDocumentationGroupInput = _zod.z.object({
4050
4185
  // Identifier
4051
4186
  persistentId: _zod.z.string().uuid(),
4052
4187
  // Group properties
4053
4188
  title: _zod.z.string(),
4054
- configuration: DocumentationItemConfigurationV2.optional(),
4189
+ configuration: DTODocumentationItemConfigurationV2.optional(),
4055
4190
  // Group placement properties
4056
- afterPersistentId: _zod.z.string().uuid().optional(),
4191
+ afterPersistentId: _zod.z.string().uuid().nullish(),
4057
4192
  parentPersistentId: _zod.z.string().uuid()
4058
4193
  });
4059
4194
  var DTOUpdateDocumentationGroupInput = _zod.z.object({
@@ -4061,14 +4196,14 @@ var DTOUpdateDocumentationGroupInput = _zod.z.object({
4061
4196
  id: _zod.z.string(),
4062
4197
  // Group properties
4063
4198
  title: _zod.z.string().optional(),
4064
- configuration: DocumentationItemConfigurationV2.optional()
4199
+ configuration: DTODocumentationItemConfigurationV2.optional()
4065
4200
  });
4066
4201
  var DTOMoveDocumentationGroupInput = _zod.z.object({
4067
4202
  // Identifier of the group to update
4068
4203
  id: _zod.z.string(),
4069
4204
  // Group placement properties
4070
4205
  parentPersistentId: _zod.z.string().uuid(),
4071
- afterPersistentId: _zod.z.string().uuid().optional()
4206
+ afterPersistentId: _zod.z.string().uuid().nullish()
4072
4207
  });
4073
4208
  var DTODuplicateDocumentationGroupInput = _zod.z.object({
4074
4209
  // Identifier of the group to duplicate from
@@ -4076,7 +4211,7 @@ var DTODuplicateDocumentationGroupInput = _zod.z.object({
4076
4211
  // New group persistent id
4077
4212
  persistentId: _zod.z.string().uuid(),
4078
4213
  // Group placement properties
4079
- afterPersistentId: _zod.z.string().uuid().optional(),
4214
+ afterPersistentId: _zod.z.string().uuid().nullish(),
4080
4215
  parentPersistentId: _zod.z.string().uuid()
4081
4216
  });
4082
4217
  var DTOCreateDocumentationTabInput = _zod.z.object({
@@ -4177,6 +4312,8 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4177
4312
  });
4178
4313
  var DTODocumentationItemConfigurationV1 = _zod.z.object({
4179
4314
  showSidebar: _zod.z.boolean(),
4315
+ isPrivate: _zod.z.boolean(),
4316
+ isHidden: _zod.z.boolean(),
4180
4317
  header: DTODocumentationItemHeaderV1
4181
4318
  });
4182
4319
 
@@ -4217,7 +4354,7 @@ var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
4217
4354
  type: _zod.z.literal("Page")
4218
4355
  });
4219
4356
  var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
4220
- configuration: DocumentationItemConfigurationV2
4357
+ configuration: DTODocumentationItemConfigurationV2
4221
4358
  });
4222
4359
  var DTODocumentationHierarchyV2 = _zod.z.object({
4223
4360
  pages: _zod.z.array(DTODocumentationPageStructureV2),
@@ -4228,24 +4365,24 @@ var DTOCreateDocumentationPageInputV2 = _zod.z.object({
4228
4365
  persistentId: _zod.z.string().uuid(),
4229
4366
  // Page properties
4230
4367
  title: _zod.z.string(),
4231
- configuration: DocumentationItemConfigurationV2.optional(),
4368
+ configuration: DTODocumentationItemConfigurationV2.optional(),
4232
4369
  // Page placement properties
4233
4370
  parentPersistentId: _zod.z.string().uuid(),
4234
- afterPersistentId: _zod.z.string().uuid().optional()
4371
+ afterPersistentId: _zod.z.string().uuid().nullish()
4235
4372
  });
4236
4373
  var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
4237
4374
  // Identifier of the group to update
4238
4375
  id: _zod.z.string(),
4239
4376
  // Page properties
4240
4377
  title: _zod.z.string().optional(),
4241
- configuration: DocumentationItemConfigurationV2.optional()
4378
+ configuration: DTODocumentationItemConfigurationV2.optional()
4242
4379
  });
4243
4380
  var DTOMoveDocumentationPageInputV2 = _zod.z.object({
4244
4381
  // Identifier of the group to update
4245
4382
  id: _zod.z.string(),
4246
4383
  // Page placement properties
4247
4384
  parentPersistentId: _zod.z.string().uuid(),
4248
- afterPersistentId: _zod.z.string().uuid().optional()
4385
+ afterPersistentId: _zod.z.string().uuid().nullish()
4249
4386
  });
4250
4387
  var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
4251
4388
  // Identifier of the page to duplicate from
@@ -4254,7 +4391,7 @@ var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
4254
4391
  persistentId: _zod.z.string().uuid(),
4255
4392
  // Page placement properties
4256
4393
  parentPersistentId: _zod.z.string().uuid(),
4257
- afterPersistentId: _zod.z.string().uuid().optional()
4394
+ afterPersistentId: _zod.z.string().uuid().nullish()
4258
4395
  });
4259
4396
  var DTODeleteDocumentationPageInputV2 = _zod.z.object({
4260
4397
  // Identifier
@@ -4306,6 +4443,13 @@ var DTODocumentationPageDeleteActionInputV2 = _zod.z.object({
4306
4443
  input: DTODeleteDocumentationPageInputV2
4307
4444
  });
4308
4445
 
4446
+ // src/api/dto/elements/documentation/page-content.ts
4447
+
4448
+ var DTODocumentationPageContent = DocumentationPageContent;
4449
+ var DTODocumentationPageContentGetResponse = _zod.z.object({
4450
+ pageContent: DTODocumentationPageContent
4451
+ });
4452
+
4309
4453
  // src/api/dto/elements/documentation/page-v1.ts
4310
4454
 
4311
4455
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
@@ -4358,8 +4502,12 @@ var DTOFigmaNodeRenderActionInput = _zod.z.object({
4358
4502
  input: DTOFigmaNodeRenderInput.array()
4359
4503
  });
4360
4504
 
4505
+ // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4506
+
4507
+
4361
4508
  // src/api/dto/elements/properties/property-definitions.ts
4362
4509
 
4510
+ var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
4363
4511
  var DTOElementPropertyDefinition = _zod.z.object({
4364
4512
  id: _zod.z.string(),
4365
4513
  designSystemVersionId: _zod.z.string(),
@@ -4367,13 +4515,56 @@ var DTOElementPropertyDefinition = _zod.z.object({
4367
4515
  persistentId: _zod.z.string(),
4368
4516
  type: ElementPropertyTypeSchema,
4369
4517
  targetElementType: ElementPropertyTargetType,
4370
- codeName: _zod.z.string(),
4518
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX2),
4371
4519
  options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
4372
4520
  linkElementType: ElementPropertyLinkType.optional()
4373
4521
  });
4374
4522
  var DTOElementPropertyDefinitionsGetResponse = _zod.z.object({
4375
4523
  definitions: _zod.z.array(DTOElementPropertyDefinition)
4376
4524
  });
4525
+ var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
4526
+ id: true,
4527
+ designSystemVersionId: true
4528
+ });
4529
+ var DTOUpdateElementPropertyDefinitionInputV2 = _zod.z.object({
4530
+ id: _zod.z.string(),
4531
+ name: _zod.z.string().optional(),
4532
+ description: _zod.z.string().optional(),
4533
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX2).optional(),
4534
+ options: _zod.z.array(ElementPropertyDefinitionOption).optional()
4535
+ });
4536
+ var DTODeleteElementPropertyDefinitionInputV2 = _zod.z.object({
4537
+ id: _zod.z.string()
4538
+ });
4539
+
4540
+ // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4541
+ var SuccessPayload3 = _zod.z.object({
4542
+ success: _zod.z.literal(true)
4543
+ });
4544
+ var DTOPropertyDefinitionCreateActionOutputV2 = _zod.z.object({
4545
+ type: _zod.z.literal("PropertyDefinitionCreate"),
4546
+ definition: DTOElementPropertyDefinition
4547
+ });
4548
+ var DTOPropertyDefinitionUpdateActionOutputV2 = _zod.z.object({
4549
+ type: _zod.z.literal("PropertyDefinitionUpdate"),
4550
+ definition: DTOElementPropertyDefinition
4551
+ });
4552
+ var DTOPropertyDefinitionDeleteActionOutputV2 = _zod.z.object({
4553
+ type: _zod.z.literal("PropertyDefinitionDelete"),
4554
+ output: SuccessPayload3
4555
+ });
4556
+ var DTOPropertyDefinitionCreateActionInputV2 = _zod.z.object({
4557
+ type: _zod.z.literal("PropertyDefinitionCreate"),
4558
+ input: DTOCreateElementPropertyDefinitionInputV2
4559
+ });
4560
+ var DTOPropertyDefinitionUpdateActionInputV2 = _zod.z.object({
4561
+ type: _zod.z.literal("PropertyDefinitionUpdate"),
4562
+ input: DTOUpdateElementPropertyDefinitionInputV2
4563
+ });
4564
+ var DTOPropertyDefinitionDeleteActionInputV2 = _zod.z.object({
4565
+ type: _zod.z.literal("PropertyDefinitionDelete"),
4566
+ input: DTODeleteElementPropertyDefinitionInputV2
4567
+ });
4377
4568
 
4378
4569
  // src/api/dto/elements/properties/property-values.ts
4379
4570
 
@@ -4407,7 +4598,11 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
4407
4598
  DTODocumentationGroupDeleteActionOutputV2,
4408
4599
  DTODocumentationTabGroupDeleteActionOutputV2,
4409
4600
  // Figma frames
4410
- DTOFigmaNodeRenderActionOutput
4601
+ DTOFigmaNodeRenderActionOutput,
4602
+ // Properties Definitions
4603
+ DTOPropertyDefinitionCreateActionOutputV2,
4604
+ DTOPropertyDefinitionUpdateActionOutputV2,
4605
+ DTOPropertyDefinitionDeleteActionOutputV2
4411
4606
  ]);
4412
4607
  var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
4413
4608
  // Documentation pages
@@ -4425,7 +4620,11 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
4425
4620
  DTODocumentationGroupDeleteActionInputV2,
4426
4621
  DTODocumentationTabGroupDeleteActionInputV2,
4427
4622
  // Figma frames
4428
- DTOFigmaNodeRenderActionInput
4623
+ DTOFigmaNodeRenderActionInput,
4624
+ // Properties Definitions
4625
+ DTOPropertyDefinitionCreateActionInputV2,
4626
+ DTOPropertyDefinitionUpdateActionInputV2,
4627
+ DTOPropertyDefinitionDeleteActionInputV2
4429
4628
  ]);
4430
4629
 
4431
4630
  // src/api/dto/elements/get-elements-v2.ts
@@ -4438,6 +4637,18 @@ var DTOElementsGetOutput = _zod.z.object({
4438
4637
  figmaNodes: _zod.z.array(DTOFigmaNode).optional()
4439
4638
  });
4440
4639
 
4640
+ // src/api/dto/workspaces/integrations.ts
4641
+
4642
+ var DTOIntegration = _zod.z.object({
4643
+ id: _zod.z.string(),
4644
+ workspaceId: _zod.z.string(),
4645
+ type: IntegrationType,
4646
+ createdAt: _zod.z.coerce.date()
4647
+ });
4648
+ var DTOIntegrationOAuthGetResponse = _zod.z.object({
4649
+ url: _zod.z.string()
4650
+ });
4651
+
4441
4652
  // src/api/dto/workspaces/membership.ts
4442
4653
 
4443
4654
 
@@ -4489,6 +4700,30 @@ var DTOUserWorkspaceMembershipsResponse = _zod.z.object({
4489
4700
  membership: _zod.z.array(DTOUserWorkspaceMembership)
4490
4701
  });
4491
4702
 
4703
+ // src/api/payloads/design-systems/brand.ts
4704
+
4705
+ var DTOCreateBrandInput = _zod.z.object({
4706
+ persistentId: _zod.z.string().uuid(),
4707
+ meta: _zod.z.object({
4708
+ name: _zod.z.string(),
4709
+ description: _zod.z.string()
4710
+ })
4711
+ });
4712
+
4713
+ // src/api/payloads/design-systems/version.ts
4714
+
4715
+ function validateSemver(version) {
4716
+ const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
4717
+ return semverRegex.test(version);
4718
+ }
4719
+ var DTOCreateVersionInput = _zod.z.object({
4720
+ meta: ObjectMeta,
4721
+ version: _zod.z.string().refine(validateSemver, {
4722
+ message: "Invalid semantic versioning format"
4723
+ }),
4724
+ changeLog: _zod.z.string()
4725
+ });
4726
+
4492
4727
  // src/api/payloads/documentation/block-definitions.ts
4493
4728
 
4494
4729
  var DTOGetBlockDefinitionsOutput = _zod.z.object({
@@ -4546,6 +4781,12 @@ var WorkspaceConfigurationPayload = _zod.z.object({
4546
4781
  profile: WorkspaceProfile.partial().optional()
4547
4782
  });
4548
4783
 
4784
+ // src/api/payloads/workspaces/workspace-integrations.ts
4785
+
4786
+ var DTOWorkspaceIntegrationOauthInput = _zod.z.object({
4787
+ type: IntegrationType
4788
+ });
4789
+
4549
4790
  // src/yjs/design-system-content/documentation-hierarchy.ts
4550
4791
 
4551
4792
  var DocumentationHierarchySettings = _zod.z.object({
@@ -4627,11 +4868,11 @@ function getInternalSettingsYMap(doc) {
4627
4868
 
4628
4869
  var DTODocumentationPageRoomHeaderData = _zod.z.object({
4629
4870
  title: _zod.z.string(),
4630
- configuration: DocumentationItemConfigurationV2
4871
+ configuration: DTODocumentationItemConfigurationV2
4631
4872
  });
4632
4873
  var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
4633
4874
  title: _zod.z.string().optional(),
4634
- configuration: DocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
4875
+ configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
4635
4876
  });
4636
4877
  function itemConfigurationToYjs(yDoc, item) {
4637
4878
  yDoc.transact((trx) => {
@@ -4653,10 +4894,10 @@ function itemConfigurationToYjs(yDoc, item) {
4653
4894
  header.showCoverText !== void 0 && headerYMap.set("showCoverText", header.showCoverText);
4654
4895
  header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
4655
4896
  }
4656
- if (_optionalChain([configuration, 'optionalAccess', _15 => _15.showSidebar]) !== void 0) {
4657
- const configYMap = trx.doc.getMap("itemConfiguration");
4658
- configYMap.set("showSidebar", configuration.showSidebar);
4659
- }
4897
+ const configYMap = trx.doc.getMap("itemConfiguration");
4898
+ _optionalChain([configuration, 'optionalAccess', _15 => _15.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
4899
+ _optionalChain([configuration, 'optionalAccess', _16 => _16.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
4900
+ _optionalChain([configuration, 'optionalAccess', _17 => _17.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
4660
4901
  });
4661
4902
  }
4662
4903
  function yjsToItemConfiguration(yDoc) {
@@ -4676,11 +4917,13 @@ function yjsToItemConfiguration(yDoc) {
4676
4917
  const configYMap = yDoc.getMap("itemConfiguration");
4677
4918
  const rawConfig = {
4678
4919
  showSidebar: configYMap.get("showSidebar"),
4920
+ isHidden: _nullishCoalesce(configYMap.get("isHidden"), () => ( false)),
4921
+ isPrivate: _nullishCoalesce(configYMap.get("isPrivate"), () => ( false)),
4679
4922
  header: rawHeader
4680
4923
  };
4681
4924
  return {
4682
4925
  title: _zod.z.string().parse(title),
4683
- configuration: DocumentationItemConfigurationV2.parse(rawConfig)
4926
+ configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
4684
4927
  };
4685
4928
  }
4686
4929
 
@@ -5443,7 +5686,7 @@ var BlockDefinitionUtils = {
5443
5686
  var ListTreeBuilder = class {
5444
5687
  addWithProperty(block, multiRichTextProperty) {
5445
5688
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
5446
- return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _16 => _16.multiRichTextStyle]) || "OL");
5689
+ return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _18 => _18.multiRichTextStyle]) || "OL");
5447
5690
  }
5448
5691
  add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
5449
5692
  const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
@@ -5463,7 +5706,7 @@ var ListTreeBuilder = class {
5463
5706
  }
5464
5707
  const listParent = this.getParentOfDepth(block.data.indentLevel);
5465
5708
  const lastChild = listParent.children[listParent.children.length - 1];
5466
- if (_optionalChain([lastChild, 'optionalAccess', _17 => _17.type]) === "List") {
5709
+ if (_optionalChain([lastChild, 'optionalAccess', _19 => _19.type]) === "List") {
5467
5710
  lastChild.children.push(...list.leadingChildren);
5468
5711
  return;
5469
5712
  } else {
@@ -5647,7 +5890,7 @@ function serializeAsRichTextBlock(input) {
5647
5890
  const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
5648
5891
  const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
5649
5892
  const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
5650
- const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _18 => _18.richTextStyle]), () => ( "Default"));
5893
+ const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _20 => _20.richTextStyle]), () => ( "Default"));
5651
5894
  switch (style) {
5652
5895
  case "Callout":
5653
5896
  return serializeAsCallout(enrichedInput);
@@ -5868,7 +6111,7 @@ function serializeBlockNodeAttributes(block) {
5868
6111
  };
5869
6112
  }
5870
6113
  function richTextHeadingLevel(property) {
5871
- const style = _optionalChain([property, 'access', _19 => _19.options, 'optionalAccess', _20 => _20.richTextStyle]);
6114
+ const style = _optionalChain([property, 'access', _21 => _21.options, 'optionalAccess', _22 => _22.richTextStyle]);
5872
6115
  if (!style)
5873
6116
  return void 0;
5874
6117
  switch (style) {
@@ -5948,20 +6191,26 @@ function serializeTextSpanAttribute(spanAttribute) {
5948
6191
  return { type: "code", attrs: {} };
5949
6192
  case "Link":
5950
6193
  if (spanAttribute.link) {
5951
- return serializeLinkMark(spanAttribute.link, _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
6194
+ return serializeLinkMark(
6195
+ spanAttribute.link,
6196
+ _nullishCoalesce(_nullishCoalesce(spanAttribute.openInNewTab, () => ( spanAttribute.openInNewWindow)), () => ( false))
6197
+ );
5952
6198
  } else if (spanAttribute.documentationItemId) {
5953
- return serializeLinkMark(`@page:${spanAttribute.documentationItemId}`, _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
6199
+ return serializeLinkMark(
6200
+ `@page:${spanAttribute.documentationItemId}`,
6201
+ _nullishCoalesce(_nullishCoalesce(spanAttribute.openInNewTab, () => ( spanAttribute.openInNewWindow)), () => ( false))
6202
+ );
5954
6203
  } else {
5955
- return serializeLinkMark("about:blank", _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
6204
+ return serializeLinkMark("about:blank", _nullishCoalesce(_nullishCoalesce(spanAttribute.openInNewTab, () => ( spanAttribute.openInNewWindow)), () => ( false)));
5956
6205
  }
5957
6206
  }
5958
6207
  }
5959
- function serializeLinkMark(href, openInNewWindow) {
6208
+ function serializeLinkMark(href, openInNewTab) {
5960
6209
  return {
5961
6210
  type: "link",
5962
6211
  attrs: {
5963
6212
  href,
5964
- target: openInNewWindow ? "_blank" : "_self",
6213
+ target: openInNewTab ? "_blank" : "_self",
5965
6214
  rel: "noopener noreferrer nofollow",
5966
6215
  class: "tiptap-link"
5967
6216
  }
@@ -5975,7 +6224,7 @@ function serializeAsCustomBlock(block, definition) {
5975
6224
  linksTo: i.linksTo
5976
6225
  };
5977
6226
  });
5978
- const columns = _optionalChain([block, 'access', _21 => _21.data, 'access', _22 => _22.appearance, 'optionalAccess', _23 => _23.numberOfColumns]);
6227
+ const columns = _optionalChain([block, 'access', _23 => _23.data, 'access', _24 => _24.appearance, 'optionalAccess', _25 => _25.numberOfColumns]);
5979
6228
  return {
5980
6229
  type: serializeCustomBlockNodeType(block, definition),
5981
6230
  attrs: {
@@ -7822,10 +8071,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
7822
8071
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7823
8072
  const result = [];
7824
8073
  const listItems = [];
7825
- _optionalChain([prosemirrorNode, 'access', _24 => _24.content, 'optionalAccess', _25 => _25.forEach, 'call', _26 => _26((c) => {
8074
+ _optionalChain([prosemirrorNode, 'access', _26 => _26.content, 'optionalAccess', _27 => _27.forEach, 'call', _28 => _28((c) => {
7826
8075
  if (c.type !== "listItem")
7827
8076
  return;
7828
- _optionalChain([c, 'access', _27 => _27.content, 'optionalAccess', _28 => _28.forEach, 'call', _29 => _29((cc) => {
8077
+ _optionalChain([c, 'access', _29 => _29.content, 'optionalAccess', _30 => _30.forEach, 'call', _31 => _31((cc) => {
7829
8078
  listItems.push(cc);
7830
8079
  })]);
7831
8080
  })]);
@@ -7874,6 +8123,9 @@ function parseRichText(spans) {
7874
8123
  };
7875
8124
  }
7876
8125
  function parseRichTextSpan(span) {
8126
+ if (span.type === "hardBreak") {
8127
+ return { text: "\n", attributes: [] };
8128
+ }
7877
8129
  if (span.type !== "text" || !span.text)
7878
8130
  return null;
7879
8131
  const marks = _nullishCoalesce(span.marks, () => ( []));
@@ -7902,17 +8154,19 @@ function parseProsemirrorLink(mark) {
7902
8154
  if (!href)
7903
8155
  return null;
7904
8156
  const target = getProsemirrorAttribute(mark, "target", _zod.z.string().optional());
7905
- const openInNewWindow = target === "_blank";
8157
+ const openInNewTab = target === "_blank";
7906
8158
  if (href.startsWith("@")) {
7907
8159
  return {
7908
8160
  type: "Link",
7909
- openInNewWindow,
8161
+ openInNewWindow: openInNewTab,
8162
+ openInNewTab,
7910
8163
  documentationItemId: href.split(":")[1]
7911
8164
  };
7912
8165
  } else {
7913
8166
  return {
7914
8167
  type: "Link",
7915
- openInNewWindow,
8168
+ openInNewWindow: openInNewTab,
8169
+ openInNewTab,
7916
8170
  link: href
7917
8171
  };
7918
8172
  }
@@ -7923,17 +8177,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
7923
8177
  return null;
7924
8178
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7925
8179
  const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
7926
- const tableChild = _optionalChain([prosemirrorNode, 'access', _30 => _30.content, 'optionalAccess', _31 => _31.find, 'call', _32 => _32((c) => c.type === "table")]);
8180
+ const tableChild = _optionalChain([prosemirrorNode, 'access', _32 => _32.content, 'optionalAccess', _33 => _33.find, 'call', _34 => _34((c) => c.type === "table")]);
7927
8181
  if (!tableChild) {
7928
8182
  return emptyTable(id, variantId, 0);
7929
8183
  }
7930
- 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]))]), () => ( []));
8184
+ const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _35 => _35.content, 'optionalAccess', _36 => _36.filter, 'call', _37 => _37((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _38 => _38.content, 'optionalAccess', _39 => _39.length]))]), () => ( []));
7931
8185
  if (!rows.length) {
7932
8186
  return emptyTable(id, variantId, 0);
7933
8187
  }
7934
- 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));
7935
- const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _43 => _43.content, 'optionalAccess', _44 => _44[0], 'optionalAccess', _45 => _45.type]) === "tableHeader").length;
7936
- const hasHeaderRow = _optionalChain([rows, 'access', _46 => _46[0], 'access', _47 => _47.content, 'optionalAccess', _48 => _48.length]) === rowHeaderCells;
8188
+ const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _40 => _40[0], 'access', _41 => _41.content, 'optionalAccess', _42 => _42.filter, 'call', _43 => _43((c) => c.type === "tableHeader"), 'access', _44 => _44.length]), () => ( 0));
8189
+ const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _45 => _45.content, 'optionalAccess', _46 => _46[0], 'optionalAccess', _47 => _47.type]) === "tableHeader").length;
8190
+ const hasHeaderRow = _optionalChain([rows, 'access', _48 => _48[0], 'access', _49 => _49.content, 'optionalAccess', _50 => _50.length]) === rowHeaderCells;
7937
8191
  const hasHeaderColumn = rows.length === columnHeaderCells;
7938
8192
  const tableValue = {
7939
8193
  showBorder: hasBorder,
@@ -8015,7 +8269,7 @@ function parseAsTableNode(prosemirrorNode) {
8015
8269
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
8016
8270
  if (!parsedItems.success)
8017
8271
  return null;
8018
- const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _49 => _49.data, 'access', _50 => _50[0], 'optionalAccess', _51 => _51.props, 'access', _52 => _52.image]);
8272
+ const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _51 => _51.data, 'access', _52 => _52[0], 'optionalAccess', _53 => _53.props, 'access', _54 => _54.image]);
8019
8273
  if (!rawImagePropertyValue)
8020
8274
  return null;
8021
8275
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
@@ -8237,7 +8491,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
8237
8491
  return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
8238
8492
  }
8239
8493
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8240
- const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _53 => _53.attrs, 'optionalAccess', _54 => _54[attributeName]]));
8494
+ const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _55 => _55.attrs, 'optionalAccess', _56 => _56[attributeName]]));
8241
8495
  if (parsedAttr.success) {
8242
8496
  return parsedAttr.data;
8243
8497
  } else {
@@ -8384,5 +8638,30 @@ function mapByUnique2(items, keyFn) {
8384
8638
 
8385
8639
 
8386
8640
 
8387
- 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;
8641
+
8642
+
8643
+
8644
+
8645
+
8646
+
8647
+
8648
+
8649
+
8650
+
8651
+
8652
+
8653
+
8654
+
8655
+
8656
+
8657
+
8658
+
8659
+
8660
+
8661
+
8662
+
8663
+
8664
+
8665
+
8666
+ exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; 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.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; 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.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; 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.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; 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.validateSemver = validateSemver; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
8388
8667
  //# sourceMappingURL=index.js.map