@supernova-studio/client 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -108,6 +108,10 @@ var _zod = require('zod');
108
108
 
109
109
 
110
110
 
111
+ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
112
+
113
+
114
+
111
115
 
112
116
 
113
117
 
@@ -334,6 +338,12 @@ var Subscription = _zod.z.object({
334
338
  billingType: BillingTypeSchema.optional(),
335
339
  daysUntilDue: _zod.z.number().optional()
336
340
  });
341
+ var AssetDynamoRecord = _zod.z.object({
342
+ path: _zod.z.string(),
343
+ id: _zod.z.string(),
344
+ designSystemId: _zod.z.string(),
345
+ expiresAt: _zod.z.number()
346
+ });
337
347
  var AssetReference = _zod.z.object({
338
348
  id: _zod.z.string(),
339
349
  designSystemVersionId: _zod.z.string(),
@@ -347,12 +357,19 @@ var AssetFontProperties = _zod.z.object({
347
357
  family: _zod.z.string(),
348
358
  subfamily: _zod.z.string()
349
359
  });
350
- var AssetProperties = _zod.z.object({
351
- fontProperties: _zod.z.array(AssetFontProperties)
352
- });
360
+ var AssetProperties = _zod.z.union([
361
+ _zod.z.object({
362
+ fontProperties: _zod.z.array(AssetFontProperties)
363
+ }),
364
+ _zod.z.object({
365
+ width: _zod.z.number(),
366
+ height: _zod.z.number()
367
+ })
368
+ ]);
353
369
  var AssetOrigin = _zod.z.object({
354
370
  originKey: _zod.z.string()
355
371
  });
372
+ var AssetProcessStatus = _zod.z.enum(["Pending", "Uploaded", "Processed"]);
356
373
  var Asset = _zod.z.object({
357
374
  id: _zod.z.string(),
358
375
  designSystemId: _zod.z.string().nullish(),
@@ -361,6 +378,7 @@ var Asset = _zod.z.object({
361
378
  filePath: _zod.z.string(),
362
379
  scope: AssetScope,
363
380
  properties: AssetProperties.nullish(),
381
+ state: AssetProcessStatus.optional(),
364
382
  origin: AssetOrigin.optional(),
365
383
  originKey: _zod.z.string().optional()
366
384
  });
@@ -1109,30 +1127,6 @@ var PageBlockItemTableValue = _zod.z.object({
1109
1127
  showBorder: _zod.z.boolean().optional(),
1110
1128
  value: _zod.z.array(PageBlockItemTableRow)
1111
1129
  });
1112
- var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
1113
- var SafeIdSchema = _zod.z.string().refine(
1114
- (value) => {
1115
- return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
1116
- },
1117
- {
1118
- message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
1119
- }
1120
- );
1121
- var DocumentationPageAssetType = _zod.z.enum(["image", "figmaFrame"]);
1122
- var DocumentationPageImageAsset = _zod.z.object({
1123
- type: _zod.z.literal(DocumentationPageAssetType.Enum.image),
1124
- url: _zod.z.string().optional(),
1125
- id: SafeIdSchema
1126
- });
1127
- var DocumentationPageFrameAsset = _zod.z.object({
1128
- type: _zod.z.literal(DocumentationPageAssetType.Enum.figmaFrame),
1129
- url: _zod.z.string().optional(),
1130
- figmaFrame: PageBlockFrame
1131
- });
1132
- var DocumentationPageAsset = _zod.z.discriminatedUnion("type", [
1133
- DocumentationPageImageAsset,
1134
- DocumentationPageFrameAsset
1135
- ]);
1136
1130
  var DocumentationItemHeaderAlignmentSchema = _zod.z.enum(["Left", "Center"]);
1137
1131
  var DocumentationItemHeaderImageScaleTypeSchema = _zod.z.enum(["AspectFill", "AspectFit"]);
1138
1132
  var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
@@ -1142,7 +1136,7 @@ var DocumentationItemHeaderV1 = _zod.z.object({
1142
1136
  alignment: DocumentationItemHeaderAlignmentSchema,
1143
1137
  foregroundColor: ColorTokenData.nullish(),
1144
1138
  backgroundColor: ColorTokenData.nullish(),
1145
- backgroundImageAsset: DocumentationPageAsset.nullish(),
1139
+ backgroundImageAsset: PageBlockAsset.nullish(),
1146
1140
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1147
1141
  showBackgroundOverlay: _zod.z.boolean(),
1148
1142
  showCoverText: _zod.z.boolean(),
@@ -1375,6 +1369,15 @@ var ParagraphSpacingValue = _zod.z.object({
1375
1369
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
1376
1370
  var ProductCopyValue = _zod.z.string();
1377
1371
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
1372
+ var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
1373
+ var SafeIdSchema = _zod.z.string().refine(
1374
+ (value) => {
1375
+ return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
1376
+ },
1377
+ {
1378
+ message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
1379
+ }
1380
+ );
1378
1381
  var ShadowType = _zod.z.enum(["Drop", "Inner"]);
1379
1382
  var ShadowLayerValue = _zod.z.object({
1380
1383
  color: ColorTokenData,
@@ -2141,6 +2144,36 @@ var DocumentationPageGroup = _zod.z.object({
2141
2144
  createdAt: _zod.z.coerce.date(),
2142
2145
  updatedAt: _zod.z.coerce.date()
2143
2146
  });
2147
+ var DocumentationLinkPreview = _zod.z.object({
2148
+ title: _zod.z.string().optional(),
2149
+ description: _zod.z.string().optional(),
2150
+ thumbnailUrl: _zod.z.string().optional()
2151
+ });
2152
+ var DocumentationPageContentBackup = _zod.z.object({
2153
+ id: _zod.z.string(),
2154
+ designSystemVersionId: _zod.z.string(),
2155
+ createdAt: _zod.z.coerce.date(),
2156
+ updatedAt: _zod.z.coerce.date(),
2157
+ documentationPageId: _zod.z.string(),
2158
+ documentationPageName: _zod.z.string(),
2159
+ storagePath: _zod.z.string()
2160
+ });
2161
+ var DocumentationPageContentItem = _zod.z.discriminatedUnion("type", [
2162
+ PageBlockEditorModelV2,
2163
+ PageSectionEditorModelV2
2164
+ ]);
2165
+ var DocumentationPageContentData = _zod.z.object({
2166
+ items: _zod.z.array(DocumentationPageContentItem)
2167
+ });
2168
+ var DocumentationPageContent = _zod.z.object({
2169
+ id: _zod.z.string(),
2170
+ designSystemVersionId: _zod.z.string(),
2171
+ createdAt: _zod.z.coerce.date(),
2172
+ updatedAt: _zod.z.coerce.date(),
2173
+ documentationPageId: _zod.z.string(),
2174
+ data: DocumentationPageContentData,
2175
+ isDirty: _zod.z.boolean()
2176
+ });
2144
2177
  var DocumentationPage = _zod.z.object({
2145
2178
  type: _zod.z.literal("DocumentationPage"),
2146
2179
  id: _zod.z.string(),
@@ -2155,6 +2188,43 @@ var DocumentationPage = _zod.z.object({
2155
2188
  createdAt: _zod.z.coerce.date(),
2156
2189
  updatedAt: _zod.z.coerce.date()
2157
2190
  });
2191
+ var DesignSystemVersionRoom = Entity.extend({
2192
+ designSystemVersionId: _zod.z.string(),
2193
+ liveblocksId: _zod.z.string()
2194
+ });
2195
+ var DesignSystemVersionRoomInitialState = _zod.z.object({
2196
+ pages: _zod.z.array(DocumentationPageV2),
2197
+ groups: _zod.z.array(ElementGroup)
2198
+ });
2199
+ var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
2200
+ deletedPageIds: _zod.z.array(_zod.z.string()),
2201
+ deletedGroupIds: _zod.z.array(_zod.z.string())
2202
+ });
2203
+ var DocumentationPageRoom = Entity.extend({
2204
+ designSystemVersionId: _zod.z.string(),
2205
+ documentationPageId: _zod.z.string(),
2206
+ liveblocksId: _zod.z.string(),
2207
+ isDirty: _zod.z.boolean()
2208
+ });
2209
+ var DocumentationPageRoomState = _zod.z.object({
2210
+ pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2211
+ itemConfiguration: DocumentationItemConfigurationV2
2212
+ });
2213
+ var DocumentationPageRoomRoomUpdate = _zod.z.object({
2214
+ page: DocumentationPageV2,
2215
+ pageParent: ElementGroup
2216
+ });
2217
+ var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
2218
+ pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2219
+ blockDefinitions: _zod.z.array(PageBlockDefinition)
2220
+ });
2221
+ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2222
+ RoomTypeEnum2["DocumentationPage"] = "documentation-page";
2223
+ RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
2224
+ return RoomTypeEnum2;
2225
+ })(RoomTypeEnum || {});
2226
+ var RoomTypeSchema = _zod.z.nativeEnum(RoomTypeEnum);
2227
+ var RoomType = RoomTypeSchema.enum;
2158
2228
  var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
2159
2229
  var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2160
2230
  var NpmRegistryBasicAuthConfig = _zod.z.object({
@@ -2207,16 +2277,21 @@ var UserInvite = _zod.z.object({
2207
2277
  role: WorkspaceRoleSchema
2208
2278
  });
2209
2279
  var UserInvites = _zod.z.array(UserInvite).max(MAX_MEMBERS_COUNT);
2280
+ var isValidCIDR = (value) => {
2281
+ return _ipcidr2.default.isValidAddress(value);
2282
+ };
2210
2283
  var WorkspaceIpWhitelistEntry = _zod.z.object({
2211
2284
  isEnabled: _zod.z.boolean(),
2212
2285
  name: _zod.z.string(),
2213
- range: _zod.z.string()
2286
+ range: _zod.z.string().refine(isValidCIDR, {
2287
+ message: "Invalid IP CIDR"
2288
+ })
2214
2289
  });
2215
2290
  var WorkspaceIpSettings = _zod.z.object({
2216
2291
  isEnabledForCloud: _zod.z.boolean(),
2217
2292
  isEnabledForDocs: _zod.z.boolean(),
2218
2293
  entries: _zod.z.array(WorkspaceIpWhitelistEntry)
2219
- }).nullish();
2294
+ });
2220
2295
  var WorkspaceProfile = _zod.z.object({
2221
2296
  name: _zod.z.string(),
2222
2297
  handle: _zod.z.string(),
@@ -2228,9 +2303,9 @@ var Workspace = _zod.z.object({
2228
2303
  id: _zod.z.string(),
2229
2304
  profile: WorkspaceProfile,
2230
2305
  subscription: Subscription,
2231
- ipWhitelist: WorkspaceIpSettings,
2232
- sso: SsoProvider.nullish(),
2233
- npmRegistrySettings: _zod.z.unknown().optional(),
2306
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2307
+ sso: nullishToOptional(SsoProvider),
2308
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2234
2309
  designSystems: _zod.z.array(DesignSystem).nullish()
2235
2310
  });
2236
2311
  var WorkspaceWithDesignSystems = _zod.z.object({
@@ -2240,7 +2315,7 @@ var WorkspaceWithDesignSystems = _zod.z.object({
2240
2315
  var WorkspaceContext = _zod.z.object({
2241
2316
  workspaceId: _zod.z.string(),
2242
2317
  product: ProductCodeSchema,
2243
- ipWhitelist: WorkspaceIpSettings,
2318
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2244
2319
  publicDesignSystem: _zod.z.boolean().optional()
2245
2320
  });
2246
2321
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2260,7 +2335,10 @@ var CreateWorkspaceInput = _zod.z.object({
2260
2335
  planInterval: BillingIntervalSchema.optional(),
2261
2336
  seats: _zod.z.number().optional(),
2262
2337
  seatLimit: _zod.z.number().optional(),
2263
- card: CardSchema.optional()
2338
+ card: CardSchema.optional(),
2339
+ sso: SsoProvider.optional(),
2340
+ npmRegistrySettings: NpmRegistryConfig.optional(),
2341
+ ipWhitelist: WorkspaceIpSettings.optional()
2264
2342
  });
2265
2343
  var WorkspaceInvitation = _zod.z.object({
2266
2344
  id: _zod.z.string(),
@@ -2525,9 +2603,9 @@ var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2525
2603
  var PulsarContributionVariant = _zod.z.object({
2526
2604
  key: _zod.z.string(),
2527
2605
  name: _zod.z.string(),
2528
- isDefault: _zod.z.boolean().nullish(),
2529
- description: _zod.z.string().nullish(),
2530
- thumbnailURL: _zod.z.string().nullish()
2606
+ isDefault: nullishToOptional(_zod.z.boolean()),
2607
+ description: nullishToOptional(_zod.z.string()),
2608
+ thumbnailURL: nullishToOptional(_zod.z.string())
2531
2609
  });
2532
2610
  var PulsarCustomBlock = _zod.z.object({
2533
2611
  title: _zod.z.string(),
@@ -2693,38 +2771,6 @@ var IntegrationTokenSchema = _zod.z.object({
2693
2771
  expiresAt: _zod.z.coerce.date(),
2694
2772
  externalUserId: _zod.z.string().nullish()
2695
2773
  });
2696
- var DesignSystemVersionRoom = Entity.extend({
2697
- designSystemVersionId: _zod.z.string(),
2698
- liveblocksId: _zod.z.string()
2699
- });
2700
- var DesignSystemVersionRoomInitialState = _zod.z.object({
2701
- pages: _zod.z.array(DocumentationPageV2),
2702
- groups: _zod.z.array(ElementGroup)
2703
- });
2704
- var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
2705
- deletedPageIds: _zod.z.array(_zod.z.string()),
2706
- deletedGroupIds: _zod.z.array(_zod.z.string())
2707
- });
2708
- var DocumentationPageRoom = Entity.extend({
2709
- designSystemVersionId: _zod.z.string(),
2710
- documentationPageId: _zod.z.string(),
2711
- liveblocksId: _zod.z.string()
2712
- });
2713
- var DocumentationPageRoomRoomUpdate = _zod.z.object({
2714
- page: DocumentationPageV2,
2715
- pageParent: ElementGroup
2716
- });
2717
- var DocumentationPageRoomInitialState = DocumentationPageRoomRoomUpdate.extend({
2718
- pageBlocks: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2719
- blockDefinitions: _zod.z.array(PageBlockDefinition)
2720
- });
2721
- var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2722
- RoomTypeEnum2["DocumentationPage"] = "documentation-page";
2723
- RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
2724
- return RoomTypeEnum2;
2725
- })(RoomTypeEnum || {});
2726
- var RoomTypeSchema = _zod.z.nativeEnum(RoomTypeEnum);
2727
- var RoomType = RoomTypeSchema.enum;
2728
2774
  var AnyRecord = _zod.z.record(_zod.z.any());
2729
2775
  var NpmPackageVersionDist = AnyRecord.and(
2730
2776
  _zod.z.object({
@@ -3658,6 +3704,16 @@ var DTODesignSystem = DesignSystem.omit({
3658
3704
  meta: ObjectMeta
3659
3705
  });
3660
3706
 
3707
+ // src/api/dto/documentation/link-preview.ts
3708
+
3709
+ var DTODocumentationLinkPreviewResponse = _zod.z.object({
3710
+ linkPreview: DocumentationLinkPreview
3711
+ });
3712
+ var DTODocumentationLinkPreviewRequest = _zod.z.object({
3713
+ url: _zod.z.string().optional(),
3714
+ documentationItemPersistentId: _zod.z.string().optional()
3715
+ });
3716
+
3661
3717
  // src/api/dto/elements/documentation/group-action.ts
3662
3718
 
3663
3719
 
@@ -3966,7 +4022,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
3966
4022
  DTODocumentationGroupDuplicateActionOutputV2,
3967
4023
  DTODocumentationGroupDeleteActionOutputV2,
3968
4024
  DTODocumentationTabGroupDeleteActionOutputV2,
3969
- // // Figma frames
4025
+ // Figma frames
3970
4026
  DTOFigmaNodeRenderActionOutput
3971
4027
  ]);
3972
4028
  var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
@@ -4061,6 +4117,51 @@ var DTOLiveblocksAuthRequest = _zod.z.object({
4061
4117
  room: _zod.z.string()
4062
4118
  });
4063
4119
 
4120
+ // src/api/payloads/workspaces/workspace-configuration.ts
4121
+
4122
+ var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4123
+ function validateSsoPayload(ssoPayload) {
4124
+ const keys = [];
4125
+ let valid = true;
4126
+ if (!ssoPayload) {
4127
+ valid = true;
4128
+ return {
4129
+ valid,
4130
+ keys: []
4131
+ };
4132
+ }
4133
+ for (const key of Object.keys(ssoPayload)) {
4134
+ if (prohibitedSsoKeys.includes(key)) {
4135
+ keys.push(key);
4136
+ valid = false;
4137
+ }
4138
+ }
4139
+ return {
4140
+ valid,
4141
+ keys
4142
+ };
4143
+ }
4144
+ var NpmRegistryInput = _zod.z.object({
4145
+ enabledScopes: _zod.z.array(_zod.z.string()),
4146
+ customRegistryUrl: _zod.z.string().optional(),
4147
+ bypassProxy: _zod.z.boolean().optional(),
4148
+ npmProxyRegistryConfigId: _zod.z.string().optional(),
4149
+ npmProxyVersion: _zod.z.number().optional(),
4150
+ registryType: _zod.z.string(),
4151
+ authType: _zod.z.string(),
4152
+ authHeaderName: _zod.z.string(),
4153
+ authHeaderValue: _zod.z.string(),
4154
+ accessToken: _zod.z.string(),
4155
+ username: _zod.z.string(),
4156
+ password: _zod.z.string()
4157
+ });
4158
+ var WorkspaceConfigurationPayload = _zod.z.object({
4159
+ ipWhitelist: WorkspaceIpSettings.partial().optional(),
4160
+ sso: SsoProvider.partial().optional(),
4161
+ npmRegistrySettings: NpmRegistryInput.partial().optional(),
4162
+ profile: WorkspaceProfile.partial().optional()
4163
+ });
4164
+
4064
4165
  // src/yjs/design-system-content/documentation-hierarchy.ts
4065
4166
  function documentationHierarchyToYjs(doc, transaction) {
4066
4167
  doc.transact((trx) => {
@@ -4655,56 +4756,34 @@ var newSchema = {
4655
4756
  }
4656
4757
  },
4657
4758
  image: {
4658
- name: "image",
4659
- spec: {
4660
- group: "block",
4661
- inline: false,
4662
- draggable: true,
4663
- attrs: {
4664
- src: {
4665
- default: null
4666
- },
4667
- alt: {
4668
- default: null
4669
- },
4670
- title: {
4671
- default: null
4672
- }
4673
- },
4674
- parseDOM: [
4675
- {
4676
- tag: 'img[src]:not([src^="data:"])'
4677
- }
4678
- ]
4679
- },
4680
- markSet: [],
4681
- groups: ["block"],
4759
+ group: "block",
4760
+ atom: true,
4761
+ draggable: true,
4682
4762
  attrs: {
4683
- src: {
4684
- hasDefault: true,
4763
+ id: {
4685
4764
  default: null
4686
4765
  },
4687
- alt: {
4688
- hasDefault: true,
4766
+ definitionId: {
4689
4767
  default: null
4690
4768
  },
4691
- title: {
4692
- hasDefault: true,
4769
+ variantId: {
4693
4770
  default: null
4771
+ },
4772
+ appearance: {
4773
+ default: "{}"
4774
+ },
4775
+ columns: {
4776
+ default: 1
4777
+ },
4778
+ items: {
4779
+ default: "[]"
4694
4780
  }
4695
4781
  },
4696
- defaultAttrs: {
4697
- src: null,
4698
- alt: null,
4699
- title: null
4700
- },
4701
- contentMatch: {
4702
- validEnd: true,
4703
- wrapCache: []
4704
- },
4705
- inlineContent: false,
4706
- isBlock: true,
4707
- isText: false
4782
+ parseDOM: [
4783
+ {
4784
+ tag: "block-node"
4785
+ }
4786
+ ]
4708
4787
  }
4709
4788
  },
4710
4789
  marks: {
@@ -5352,18 +5431,26 @@ function serializeTextSpanAttribute(spanAttribute) {
5352
5431
  case "Code":
5353
5432
  return { type: "code", attrs: {} };
5354
5433
  case "Link":
5355
- return {
5356
- type: "link",
5357
- attrs: {
5358
- itemId: spanAttribute.documentationItemId,
5359
- href: spanAttribute.link,
5360
- target: spanAttribute.openInNewWindow ? "_blank" : "_self",
5361
- rel: "noopener noreferrer nofollow",
5362
- class: null
5363
- }
5364
- };
5434
+ if (spanAttribute.link) {
5435
+ return serializeLinkMark(spanAttribute.link, _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
5436
+ } else if (spanAttribute.documentationItemId) {
5437
+ return serializeLinkMark(`@page:${spanAttribute.documentationItemId}`, _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
5438
+ } else {
5439
+ return serializeLinkMark("about:blank", _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
5440
+ }
5365
5441
  }
5366
5442
  }
5443
+ function serializeLinkMark(href, openInNewWindow) {
5444
+ return {
5445
+ type: "link",
5446
+ attrs: {
5447
+ href,
5448
+ target: openInNewWindow ? "_blank" : "_self",
5449
+ rel: "noopener noreferrer nofollow",
5450
+ class: "tiptap-link"
5451
+ }
5452
+ };
5453
+ }
5367
5454
  function serializeAsCustomBlock(block, definition) {
5368
5455
  const items = block.data.items.map((i) => {
5369
5456
  return {
@@ -5399,7 +5486,16 @@ function nonNullFilter(item) {
5399
5486
 
5400
5487
  // src/yjs/docs-editor/mock.ts
5401
5488
  function getMockPageBlockDefinitions() {
5402
- return blocks;
5489
+ return blocks.map((block) => {
5490
+ return {
5491
+ ...block,
5492
+ item: {
5493
+ ...block.item,
5494
+ // Make sure variatns array is copied
5495
+ variants: [...block.item.variants]
5496
+ }
5497
+ };
5498
+ });
5403
5499
  }
5404
5500
  var blocks = [
5405
5501
  {
@@ -5407,6 +5503,7 @@ var blocks = [
5407
5503
  name: "Text",
5408
5504
  description: "Plain text",
5409
5505
  category: "Text",
5506
+ icon: "https://cdn-assets.supernova.io/blocks/icons/text.svg",
5410
5507
  searchKeywords: ["paragraph", "rich text"],
5411
5508
  item: {
5412
5509
  properties: [
@@ -5468,6 +5565,7 @@ var blocks = [
5468
5565
  name: "Title 1",
5469
5566
  description: "Main sections within the page",
5470
5567
  category: "Text",
5568
+ icon: "https://cdn-assets.supernova.io/blocks/icons/title-1.svg",
5471
5569
  searchKeywords: ["heading", "h1"],
5472
5570
  item: {
5473
5571
  properties: [
@@ -5530,6 +5628,7 @@ var blocks = [
5530
5628
  name: "Title 2",
5531
5629
  description: "Section subheadings",
5532
5630
  category: "Text",
5631
+ icon: "https://cdn-assets.supernova.io/blocks/icons/title-2.svg",
5533
5632
  searchKeywords: ["heading", "h2"],
5534
5633
  item: {
5535
5634
  properties: [
@@ -5592,6 +5691,7 @@ var blocks = [
5592
5691
  name: "Title 3",
5593
5692
  description: "Further subsections",
5594
5693
  category: "Text",
5694
+ icon: "https://cdn-assets.supernova.io/blocks/icons/title-3.svg",
5595
5695
  searchKeywords: ["heading", "h3"],
5596
5696
  item: {
5597
5697
  properties: [
@@ -5654,6 +5754,7 @@ var blocks = [
5654
5754
  name: "Title 4",
5655
5755
  description: "Details in subsections",
5656
5756
  category: "Text",
5757
+ icon: "https://cdn-assets.supernova.io/blocks/icons/title-4.svg",
5657
5758
  searchKeywords: ["heading", "h4"],
5658
5759
  item: {
5659
5760
  properties: [
@@ -5716,6 +5817,7 @@ var blocks = [
5716
5817
  name: "Title 5",
5717
5818
  description: "Nuanced details or sub-points",
5718
5819
  category: "Text",
5820
+ icon: "https://cdn-assets.supernova.io/blocks/icons/title-5.svg",
5719
5821
  searchKeywords: ["heading", "h5"],
5720
5822
  item: {
5721
5823
  properties: [
@@ -5778,6 +5880,7 @@ var blocks = [
5778
5880
  name: "Ordered list",
5779
5881
  description: "A list with numbers",
5780
5882
  category: "Text",
5883
+ icon: "https://cdn-assets.supernova.io/blocks/icons/list-ordered.svg",
5781
5884
  searchKeywords: ["ol"],
5782
5885
  item: {
5783
5886
  properties: [
@@ -5839,6 +5942,7 @@ var blocks = [
5839
5942
  name: "Unordered list",
5840
5943
  description: "A list with bullet points",
5841
5944
  category: "Text",
5945
+ icon: "https://cdn-assets.supernova.io/blocks/icons/list-unordered.svg",
5842
5946
  searchKeywords: ["ul", "bullet points"],
5843
5947
  item: {
5844
5948
  properties: [
@@ -5900,6 +6004,7 @@ var blocks = [
5900
6004
  name: "Divider",
5901
6005
  description: "A section divider",
5902
6006
  category: "Layout",
6007
+ icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
5903
6008
  searchKeywords: ["hr", "line", "rule", "separator"],
5904
6009
  item: {
5905
6010
  properties: [
@@ -5959,6 +6064,7 @@ var blocks = [
5959
6064
  name: "Blockquote",
5960
6065
  description: "Display a quotation",
5961
6066
  category: "Text",
6067
+ icon: "https://cdn-assets.supernova.io/blocks/icons/blockquote.svg",
5962
6068
  searchKeywords: ["cite"],
5963
6069
  item: {
5964
6070
  properties: [
@@ -6021,6 +6127,7 @@ var blocks = [
6021
6127
  name: "Callout",
6022
6128
  description: "Highlight a section of text",
6023
6129
  category: "Text",
6130
+ icon: "https://cdn-assets.supernova.io/blocks/icons/callout.svg",
6024
6131
  searchKeywords: ["banner", "alert", "note", "tip", "warning"],
6025
6132
  item: {
6026
6133
  properties: [
@@ -6083,6 +6190,7 @@ var blocks = [
6083
6190
  name: "Image",
6084
6191
  description: "Display an image or Figma frame",
6085
6192
  category: "Media",
6193
+ icon: "https://cdn-assets.supernova.io/blocks/icons/image.svg",
6086
6194
  searchKeywords: ["image", "figma", "frame", "picture", "photo"],
6087
6195
  item: {
6088
6196
  properties: [
@@ -6144,6 +6252,7 @@ var blocks = [
6144
6252
  name: "Shortcut links",
6145
6253
  description: "Link to a page or external URL",
6146
6254
  category: "Media",
6255
+ icon: "https://cdn-assets.supernova.io/blocks/icons/shortcuts.svg",
6147
6256
  searchKeywords: [],
6148
6257
  item: {
6149
6258
  properties: [
@@ -6160,6 +6269,9 @@ var blocks = [
6160
6269
  width: "Icon",
6161
6270
  aspectRatio: "Square"
6162
6271
  },
6272
+ imageOnLeft: {
6273
+ width: "Medium"
6274
+ },
6163
6275
  iconOnLeft: {
6164
6276
  width: "Icon",
6165
6277
  aspectRatio: "Square"
@@ -6323,6 +6435,7 @@ var blocks = [
6323
6435
  name: "Accessibility Color Grid",
6324
6436
  description: "Visualize accessibility of your color tokens.",
6325
6437
  category: "Tokens",
6438
+ icon: "https://cdn-assets.supernova.io/blocks/icons/token-a11y-contrast-grid.svg",
6326
6439
  searchKeywords: ["color", "accessibility", "grid", "contrast", "blind", "impairment"],
6327
6440
  item: {
6328
6441
  properties: [
@@ -6386,6 +6499,7 @@ var blocks = [
6386
6499
  name: "Embed",
6387
6500
  description: "Embed a generic URL",
6388
6501
  category: "Media",
6502
+ icon: "https://cdn-assets.supernova.io/blocks/icons/embed.svg",
6389
6503
  searchKeywords: ["embed", "url", "iframe", "site", "import"],
6390
6504
  item: {
6391
6505
  properties: [
@@ -6450,6 +6564,7 @@ var blocks = [
6450
6564
  name: "YouTube",
6451
6565
  description: "Embed a Youtube video",
6452
6566
  category: "Media",
6567
+ icon: "https://cdn-assets.supernova.io/blocks/icons/embed-youtube.svg",
6453
6568
  searchKeywords: ["embed", "video", "player", "upload"],
6454
6569
  item: {
6455
6570
  properties: [
@@ -6514,6 +6629,7 @@ var blocks = [
6514
6629
  name: "Lottie animation",
6515
6630
  description: "Preview a Lottie animation",
6516
6631
  category: "Media",
6632
+ icon: "https://cdn-assets.supernova.io/blocks/icons/lottie.svg",
6517
6633
  searchKeywords: ["embed", "lottie", "animation", "rive", "json"],
6518
6634
  item: {
6519
6635
  properties: [
@@ -6616,6 +6732,7 @@ var blocks = [
6616
6732
  name: "Storybook",
6617
6733
  description: "Embed Storybook canvas",
6618
6734
  category: "Media",
6735
+ icon: "https://cdn-assets.supernova.io/blocks/icons/storybook.svg",
6619
6736
  searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
6620
6737
  item: {
6621
6738
  properties: [
@@ -6679,6 +6796,7 @@ var blocks = [
6679
6796
  name: "Figma embed",
6680
6797
  description: "Embed a Figma canvas or prototype",
6681
6798
  category: "Media",
6799
+ icon: "https://cdn-assets.supernova.io/blocks/icons/embed-figma.svg",
6682
6800
  searchKeywords: ["embed", "figma", "design", "prototype", "canvas"],
6683
6801
  item: {
6684
6802
  properties: [
@@ -6743,6 +6861,7 @@ var blocks = [
6743
6861
  name: "Markdown",
6744
6862
  description: "Render Markdown URL",
6745
6863
  category: "Other",
6864
+ icon: "https://cdn-assets.supernova.io/blocks/icons/markdown.svg",
6746
6865
  searchKeywords: ["md", "embed", "api", "table", "mdx"],
6747
6866
  item: {
6748
6867
  properties: [
@@ -6843,6 +6962,7 @@ var blocks = [
6843
6962
  name: "Table",
6844
6963
  description: "Display a simple table",
6845
6964
  category: "Layout",
6965
+ icon: "https://cdn-assets.supernova.io/blocks/icons/table.svg",
6846
6966
  searchKeywords: ["grid", "data", "spreadsheet", "api"],
6847
6967
  item: {
6848
6968
  properties: [
@@ -6902,6 +7022,7 @@ var blocks = [
6902
7022
  name: "Token detail",
6903
7023
  description: "Show a single design tokens",
6904
7024
  category: "Tokens",
7025
+ icon: "https://cdn-assets.supernova.io/blocks/icons/token-detail.svg",
6905
7026
  searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
6906
7027
  item: {
6907
7028
  properties: [
@@ -7004,6 +7125,7 @@ var blocks = [
7004
7125
  name: "Token list",
7005
7126
  description: "Show a list of design tokens",
7006
7127
  category: "Tokens",
7128
+ icon: "https://cdn-assets.supernova.io/blocks/icons/token-list.svg",
7007
7129
  searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
7008
7130
  item: {
7009
7131
  properties: [
@@ -7111,6 +7233,7 @@ var blocks = [
7111
7233
  name: "Token group",
7112
7234
  description: "Show a group of design tokens",
7113
7235
  category: "Tokens",
7236
+ icon: "https://cdn-assets.supernova.io/blocks/icons/token-list.svg",
7114
7237
  searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
7115
7238
  item: {
7116
7239
  properties: [
@@ -7218,6 +7341,7 @@ var blocks = [
7218
7341
  name: "Code",
7219
7342
  description: "Code description",
7220
7343
  category: "Code",
7344
+ icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
7221
7345
  searchKeywords: ["code"],
7222
7346
  item: {
7223
7347
  properties: [
@@ -7276,6 +7400,7 @@ var blocks = [
7276
7400
  name: "React code",
7277
7401
  description: "Render React code",
7278
7402
  category: "Code",
7403
+ icon: "https://cdn-assets.supernova.io/blocks/icons/code-react.svg",
7279
7404
  searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example"],
7280
7405
  item: {
7281
7406
  properties: [
@@ -7410,6 +7535,7 @@ var blocks = [
7410
7535
  name: "Link",
7411
7536
  description: "Preview of a link",
7412
7537
  category: "Media",
7538
+ icon: "https://cdn-assets.supernova.io/blocks/icons/shortcut-link.svg",
7413
7539
  searchKeywords: [],
7414
7540
  item: {
7415
7541
  properties: [
@@ -7467,6 +7593,7 @@ var blocks = [
7467
7593
  name: "Assets",
7468
7594
  description: "Display icons or illustrations",
7469
7595
  category: "Assets",
7596
+ icon: "https://cdn-assets.supernova.io/blocks/icons/assets.svg",
7470
7597
  searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "theme"],
7471
7598
  item: {
7472
7599
  properties: [
@@ -7568,6 +7695,7 @@ var blocks = [
7568
7695
  name: "Figma frames",
7569
7696
  description: "Display Figma frames as images",
7570
7697
  category: "Figma",
7698
+ icon: "https://cdn-assets.supernova.io/blocks/icons/figma-frames.svg",
7571
7699
  searchKeywords: ["figma", "frames", "image"],
7572
7700
  item: {
7573
7701
  properties: [
@@ -7649,6 +7777,7 @@ var blocks = [
7649
7777
  name: "Release notes",
7650
7778
  description: "Show version release notes",
7651
7779
  category: "Other",
7780
+ icon: "https://cdn-assets.supernova.io/blocks/icons/release-notes.svg",
7652
7781
  searchKeywords: ["version", "changelog", "history"],
7653
7782
  item: {
7654
7783
  properties: [],
@@ -7701,6 +7830,7 @@ var blocks = [
7701
7830
  name: "Component checklist",
7702
7831
  description: "Highlight specific features of your components",
7703
7832
  category: "Components",
7833
+ icon: "https://cdn-assets.supernova.io/blocks/icons/component-checklist.svg",
7704
7834
  searchKeywords: ["components", "health", "properties", "overview", "status"],
7705
7835
  item: {
7706
7836
  properties: [
@@ -7779,6 +7909,7 @@ var blocks = [
7779
7909
  name: "Component overview table",
7780
7910
  description: "Show the overview of all your components",
7781
7911
  category: "Components",
7912
+ icon: "https://cdn-assets.supernova.io/blocks/icons/component-overview-table.svg",
7782
7913
  searchKeywords: ["components", "health", "properties", "overview", "status"],
7783
7914
  item: {
7784
7915
  properties: [
@@ -7849,6 +7980,7 @@ var blocks = [
7849
7980
  name: "Component health",
7850
7981
  description: "Show component health and additional attributes",
7851
7982
  category: "Components",
7983
+ icon: "https://cdn-assets.supernova.io/blocks/icons/component-health.svg",
7852
7984
  searchKeywords: ["components", "health", "properties", "overview", "status"],
7853
7985
  item: {
7854
7986
  properties: [
@@ -7982,11 +8114,14 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap) {
7982
8114
  }).filter(nonNullFilter2);
7983
8115
  }
7984
8116
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap) {
7985
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", _zod.z.string());
8117
+ let definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", _zod.z.string());
7986
8118
  if (!definitionId) {
7987
8119
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
7988
8120
  return null;
7989
8121
  }
8122
+ if (definitionId === "io.supernova.block.token-detail") {
8123
+ definitionId = "io.supernova.block.token-list";
8124
+ }
7990
8125
  const definition = definitionsMap.get(definitionId);
7991
8126
  if (!definition) {
7992
8127
  console.warn(
@@ -8122,34 +8257,47 @@ function parseRichTextAttribute(mark) {
8122
8257
  case "code":
8123
8258
  return { type: "Code" };
8124
8259
  case "link":
8125
- const itemId = getProsemirrorAttribute(mark, "itemId", _zod.z.string().optional());
8126
- const href = getProsemirrorAttribute(mark, "href", _zod.z.string().optional());
8127
- return {
8128
- type: "Link",
8129
- openInNewWindow: _optionalChain([mark, 'access', _19 => _19.attrs, 'optionalAccess', _20 => _20.target]) !== "_self",
8130
- documentationItemId: itemId,
8131
- link: href
8132
- };
8260
+ return parseProsemirrorLink(mark);
8133
8261
  }
8134
8262
  return null;
8135
8263
  }
8264
+ function parseProsemirrorLink(mark) {
8265
+ const href = getProsemirrorAttribute(mark, "href", _zod.z.string().optional());
8266
+ if (!href)
8267
+ return null;
8268
+ const target = getProsemirrorAttribute(mark, "target", _zod.z.string().optional());
8269
+ const openInNewWindow = target === "_blank";
8270
+ if (href.startsWith("@")) {
8271
+ return {
8272
+ type: "Link",
8273
+ openInNewWindow,
8274
+ documentationItemId: href.split(":")[1]
8275
+ };
8276
+ } else {
8277
+ return {
8278
+ type: "Link",
8279
+ openInNewWindow,
8280
+ link: href
8281
+ };
8282
+ }
8283
+ }
8136
8284
  function parseAsTable(prosemirrorNode, definition, property) {
8137
8285
  const id = getProsemirrorBlockId(prosemirrorNode);
8138
8286
  if (!id)
8139
8287
  return null;
8140
8288
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8141
8289
  const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
8142
- const tableChild = _optionalChain([prosemirrorNode, 'access', _21 => _21.content, 'optionalAccess', _22 => _22.find, 'call', _23 => _23((c) => c.type === "table")]);
8290
+ const tableChild = _optionalChain([prosemirrorNode, 'access', _19 => _19.content, 'optionalAccess', _20 => _20.find, 'call', _21 => _21((c) => c.type === "table")]);
8143
8291
  if (!tableChild) {
8144
8292
  return emptyTable(id, variantId, 0);
8145
8293
  }
8146
- const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _24 => _24.content, 'optionalAccess', _25 => _25.filter, 'call', _26 => _26((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _27 => _27.content, 'optionalAccess', _28 => _28.length]))]), () => ( []));
8294
+ const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _22 => _22.content, 'optionalAccess', _23 => _23.filter, 'call', _24 => _24((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _25 => _25.content, 'optionalAccess', _26 => _26.length]))]), () => ( []));
8147
8295
  if (!rows.length) {
8148
8296
  return emptyTable(id, variantId, 0);
8149
8297
  }
8150
- const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _29 => _29[0], 'access', _30 => _30.content, 'optionalAccess', _31 => _31.filter, 'call', _32 => _32((c) => c.type === "tableHeader"), 'access', _33 => _33.length]), () => ( 0));
8151
- const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _34 => _34.content, 'optionalAccess', _35 => _35[0], 'optionalAccess', _36 => _36.type]) === "tableHeader").length;
8152
- const hasHeaderRow = _optionalChain([rows, 'access', _37 => _37[0], 'access', _38 => _38.content, 'optionalAccess', _39 => _39.length]) === rowHeaderCells;
8298
+ const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _27 => _27[0], 'access', _28 => _28.content, 'optionalAccess', _29 => _29.filter, 'call', _30 => _30((c) => c.type === "tableHeader"), 'access', _31 => _31.length]), () => ( 0));
8299
+ const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _32 => _32.content, 'optionalAccess', _33 => _33[0], 'optionalAccess', _34 => _34.type]) === "tableHeader").length;
8300
+ const hasHeaderRow = _optionalChain([rows, 'access', _35 => _35[0], 'access', _36 => _36.content, 'optionalAccess', _37 => _37.length]) === rowHeaderCells;
8153
8301
  const hasHeaderColumn = rows.length === columnHeaderCells;
8154
8302
  const tableValue = {
8155
8303
  showBorder: hasBorder,
@@ -8231,7 +8379,7 @@ function parseAsTableNode(prosemirrorNode) {
8231
8379
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
8232
8380
  if (!parsedItems.success)
8233
8381
  return null;
8234
- const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _40 => _40.data, 'access', _41 => _41[0], 'optionalAccess', _42 => _42.props, 'access', _43 => _43.image]);
8382
+ const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _38 => _38.data, 'access', _39 => _39[0], 'optionalAccess', _40 => _40.props, 'access', _41 => _41.image]);
8235
8383
  if (!rawImagePropertyValue)
8236
8384
  return null;
8237
8385
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
@@ -8453,7 +8601,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
8453
8601
  return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
8454
8602
  }
8455
8603
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8456
- const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _44 => _44.attrs, 'optionalAccess', _45 => _45[attributeName]]));
8604
+ const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _42 => _42.attrs, 'optionalAccess', _43 => _43[attributeName]]));
8457
8605
  if (parsedAttr.success) {
8458
8606
  return parsedAttr.data;
8459
8607
  } else {
@@ -8566,5 +8714,10 @@ function mapByUnique2(items, keyFn) {
8566
8714
 
8567
8715
 
8568
8716
 
8569
- exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; 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.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.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.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.blockDefinitionForBlock = blockDefinitionForBlock; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTO = elementGroupsToDocumentationGroupDTO; exports.elementGroupsToDocumentationGroupStructureDTO = elementGroupsToDocumentationGroupStructureDTO; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToBlock = prosemirrorNodeToBlock; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.sectionToProsemirrorNode = sectionToProsemirrorNode; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
8717
+
8718
+
8719
+
8720
+
8721
+
8722
+ exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; 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.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.NpmRegistryInput = NpmRegistryInput; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.blockDefinitionForBlock = blockDefinitionForBlock; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTO = elementGroupsToDocumentationGroupDTO; exports.elementGroupsToDocumentationGroupStructureDTO = elementGroupsToDocumentationGroupStructureDTO; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToBlock = prosemirrorNodeToBlock; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.sectionToProsemirrorNode = sectionToProsemirrorNode; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
8570
8723
  //# sourceMappingURL=index.js.map