@supernova-studio/client 0.47.43 → 0.47.45

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
@@ -115,6 +115,7 @@ var _zod = require('zod');
115
115
 
116
116
 
117
117
 
118
+
118
119
 
119
120
 
120
121
  var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
@@ -1553,23 +1554,6 @@ var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequire
1553
1554
  oldBlocks: _zod.z.array(PageBlockV1).optional()
1554
1555
  })
1555
1556
  });
1556
- var DesignElementSnapshot = _zod.z.object({
1557
- id: _zod.z.string(),
1558
- // Scope
1559
- designSystemVersionId: _zod.z.string(),
1560
- // Metadata about the element that needs to be indexed in the db
1561
- elementId: _zod.z.string(),
1562
- elementType: DesignElementType,
1563
- elementPersistentId: _zod.z.string(),
1564
- elementParentPersistentId: _zod.z.string(),
1565
- elementName: _zod.z.string(),
1566
- // Computed hash to compare to current state of the element
1567
- hash: _zod.z.string(),
1568
- // Where is the element's full shapshot stored
1569
- storageKey: _zod.z.string(),
1570
- // When the element was snapshotted
1571
- createdAt: _zod.z.coerce.date()
1572
- });
1573
1557
  var FigmaFileStructureOrigin = _zod.z.object({
1574
1558
  sourceId: _zod.z.string(),
1575
1559
  fileId: _zod.z.string().optional()
@@ -2240,6 +2224,21 @@ var DocumentationCommentThread = _zod.z.object({
2240
2224
  createdAt: _zod.z.coerce.date(),
2241
2225
  updatedAt: _zod.z.coerce.date()
2242
2226
  });
2227
+ var DesignElementSnapshotReason = _zod.z.enum(["Publish", "Deletion"]);
2228
+ var DesignElementSnapshotBase = _zod.z.object({
2229
+ id: _zod.z.string(),
2230
+ designSystemVersionId: _zod.z.string(),
2231
+ createdAt: _zod.z.coerce.date(),
2232
+ updatedAt: _zod.z.coerce.date(),
2233
+ reason: DesignElementSnapshotReason
2234
+ });
2235
+ var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
2236
+ page: DocumentationPageV2,
2237
+ pageContentHash: _zod.z.string()
2238
+ });
2239
+ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
2240
+ group: ElementGroup
2241
+ });
2243
2242
  var FigmaFileDownloadScope = _zod.z.object({
2244
2243
  styles: _zod.z.boolean(),
2245
2244
  components: _zod.z.boolean(),
@@ -2820,13 +2819,11 @@ var DesignSystemVersionRoomInternalSettings = _zod.z.object({
2820
2819
  var DesignSystemVersionRoomInitialState = _zod.z.object({
2821
2820
  pages: _zod.z.array(DocumentationPageV2),
2822
2821
  groups: _zod.z.array(ElementGroup),
2823
- documentationPublishedState: _zod.z.array(DesignElementSnapshot),
2824
2822
  internalSettings: DesignSystemVersionRoomInternalSettings
2825
2823
  });
2826
2824
  var DesignSystemVersionRoomUpdate = _zod.z.object({
2827
2825
  pages: _zod.z.array(DocumentationPageV2),
2828
2826
  groups: _zod.z.array(ElementGroup),
2829
- documentationPublishedState: _zod.z.array(DesignElementSnapshot),
2830
2827
  deletedPageIds: _zod.z.array(_zod.z.string()),
2831
2828
  deletedGroupIds: _zod.z.array(_zod.z.string())
2832
2829
  });
@@ -4162,8 +4159,8 @@ var PersonalAccessToken = _zod.z.object({
4162
4159
  expireAt: _zod.z.coerce.date().optional()
4163
4160
  });
4164
4161
 
4165
- // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
4166
- var getDtoDefaultItemConfigurationV2 = () => ({
4162
+ // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
4163
+ var getDtoDefaultItemConfigurationV1 = () => ({
4167
4164
  showSidebar: true,
4168
4165
  isHidden: false,
4169
4166
  isPrivate: false,
@@ -4175,17 +4172,35 @@ var getDtoDefaultItemConfigurationV2 = () => ({
4175
4172
  showCoverText: true
4176
4173
  }
4177
4174
  });
4178
- function documentationItemConfigurationToDTOV2(config) {
4179
- const dtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2();
4175
+ function documentationItemConfigurationToDTOV1(config) {
4176
+ const dtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1();
4180
4177
  if (!config)
4181
- return dtoDefaultItemConfigurationV2;
4178
+ return dtoDefaultItemConfigurationV1;
4179
+ const { backgroundColor, foregroundColor, ...headerRest } = config.header;
4182
4180
  return {
4183
- header: config.header,
4184
- isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isHidden)),
4185
- isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
4186
- showSidebar: config.showSidebar
4181
+ showSidebar: config.showSidebar,
4182
+ isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV1.isHidden)),
4183
+ isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV1.isPrivate)),
4184
+ header: {
4185
+ ...headerRest,
4186
+ backgroundColor: colorToDTOV1(_nullishCoalesce(backgroundColor, () => ( void 0))),
4187
+ foregroundColor: colorToDTOV1(_nullishCoalesce(foregroundColor, () => ( void 0)))
4188
+ }
4187
4189
  };
4188
4190
  }
4191
+ function colorToDTOV1(color) {
4192
+ if (!color)
4193
+ return void 0;
4194
+ if (color.aliasTo)
4195
+ return { aliasTo: color.aliasTo };
4196
+ if (!color.value)
4197
+ return void 0;
4198
+ if (typeof color.value === "string")
4199
+ return { value: color.value };
4200
+ if (typeof color.value.color === "string")
4201
+ return { value: color.value.color };
4202
+ return void 0;
4203
+ }
4189
4204
 
4190
4205
  // src/api/conversion/documentation/documentation-page-to-dto-utils.ts
4191
4206
  function buildDocPagePublishPaths(groups, pages, routingVersion) {
@@ -4265,21 +4280,34 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
4265
4280
  return { pages: fixedPages, groups: fixedGroups };
4266
4281
  }
4267
4282
 
4268
- // src/api/conversion/documentation/documentation-group-v2-to-dto.ts
4269
- function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
4270
- const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
4271
- return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
4283
+ // src/api/conversion/documentation/documentation-group-v1-to-dto.ts
4284
+ function elementGroupsToDocumentationGroupStructureDTOV1(groups, pages) {
4285
+ const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4286
+ return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap));
4272
4287
  }
4273
- function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
4274
- const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
4275
- return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
4288
+ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
4289
+ const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4290
+ return groups.map((group) => {
4291
+ return {
4292
+ ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
4293
+ configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _22 => _22.data, 'optionalAccess', _23 => _23.configuration]))
4294
+ };
4295
+ });
4276
4296
  }
4277
- function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups, pages) {
4278
- const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
4279
- const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
4280
- return fixedGroups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
4297
+ function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages) {
4298
+ const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4299
+ const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
4300
+ return fixedGroups.map((group) => {
4301
+ const configuration = documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _24 => _24.data, 'optionalAccess', _25 => _25.configuration]));
4302
+ return {
4303
+ ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
4304
+ // backward compatibility with custom doc exporters, anyway these groups will not be shown, so we can adjust title
4305
+ title: configuration.isHidden && !group.meta.name.startsWith("_") ? "_" + group.meta.name : group.meta.name,
4306
+ configuration
4307
+ };
4308
+ });
4281
4309
  }
4282
- function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
4310
+ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
4283
4311
  const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
4284
4312
  if (!group.shortPersistentId) {
4285
4313
  throw new Error(`Short persistent id is required for docs groups, group id: ${group.id}`);
@@ -4293,15 +4321,14 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
4293
4321
  createdAt: group.createdAt,
4294
4322
  updatedAt: group.updatedAt,
4295
4323
  title: group.meta.name,
4296
- configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _22 => _22.data, 'optionalAccess', _23 => _23.configuration])),
4297
4324
  childrenIds,
4298
4325
  isRoot: !group.parentPersistentId,
4299
- groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _24 => _24.data, 'optionalAccess', _25 => _25.behavior]), () => ( "Group")),
4326
+ groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _26 => _26.data, 'optionalAccess', _27 => _27.behavior]), () => ( "Group")),
4300
4327
  shortPersistentId: group.shortPersistentId,
4301
4328
  type: "Group"
4302
4329
  };
4303
4330
  }
4304
- function calculateChildrenIdsMapV2(elements, groups) {
4331
+ function calculateChildrenIdsMapV1(elements, groups) {
4305
4332
  const byParentId = groupBy([...elements, ...groups], (e) => e.parentPersistentId);
4306
4333
  const childrenIdsMap = /* @__PURE__ */ new Map();
4307
4334
  for (const [parentPersistentId, children] of byParentId) {
@@ -4316,55 +4343,8 @@ function calculateChildrenIdsMapV2(elements, groups) {
4316
4343
  return childrenIdsMap;
4317
4344
  }
4318
4345
 
4319
- // src/api/conversion/documentation/documentation-page-v2-to-dto.ts
4320
- function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
4321
- const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
4322
- return pages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
4323
- }
4324
- function documentationPagesToDTOV2(pages, groups, routingVersion) {
4325
- const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
4326
- return pages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
4327
- }
4328
- function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion) {
4329
- const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
4330
- const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
4331
- return fixedPages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
4332
- }
4333
- function documentationPageToStructureDTOV2(page, pagePathMap) {
4334
- let path = pagePathMap.get(page.persistentId);
4335
- if (!path)
4336
- throw new Error(`Path for page ${page.id} was not calculated`);
4337
- if (path.startsWith("/"))
4338
- path = path.substring(1);
4339
- return {
4340
- id: page.id,
4341
- designSystemVersionId: page.designSystemVersionId,
4342
- persistentId: page.persistentId,
4343
- shortPersistentId: page.shortPersistentId,
4344
- title: page.meta.name,
4345
- slug: page.slug,
4346
- userSlug: page.userSlug,
4347
- configuration: documentationItemConfigurationToDTOV2(page.data.configuration),
4348
- createdAt: page.createdAt,
4349
- updatedAt: page.updatedAt,
4350
- path,
4351
- type: "Page"
4352
- };
4353
- }
4354
-
4355
- // src/api/conversion/documentation/documentation-elements-to-hierarchy-v2-dto.ts
4356
- function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion) {
4357
- return {
4358
- pages: documentationPagesToStructureDTOV2(docPages, docGroups, routingVersion),
4359
- groups: elementGroupsToDocumentationGroupStructureDTOV2(docGroups, docPages),
4360
- // TODO Artem
4361
- deletedGroups: [],
4362
- deletedPages: []
4363
- };
4364
- }
4365
-
4366
- // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
4367
- var getDtoDefaultItemConfigurationV1 = () => ({
4346
+ // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
4347
+ var getDtoDefaultItemConfigurationV2 = () => ({
4368
4348
  showSidebar: true,
4369
4349
  isHidden: false,
4370
4350
  isPrivate: false,
@@ -4376,64 +4356,29 @@ var getDtoDefaultItemConfigurationV1 = () => ({
4376
4356
  showCoverText: true
4377
4357
  }
4378
4358
  });
4379
- function documentationItemConfigurationToDTOV1(config) {
4380
- const dtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1();
4359
+ function documentationItemConfigurationToDTOV2(config) {
4360
+ const dtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2();
4381
4361
  if (!config)
4382
- return dtoDefaultItemConfigurationV1;
4383
- const { backgroundColor, foregroundColor, ...headerRest } = config.header;
4362
+ return dtoDefaultItemConfigurationV2;
4384
4363
  return {
4385
- showSidebar: config.showSidebar,
4386
- isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV1.isHidden)),
4387
- isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV1.isPrivate)),
4388
- header: {
4389
- ...headerRest,
4390
- backgroundColor: colorToDTOV1(_nullishCoalesce(backgroundColor, () => ( void 0))),
4391
- foregroundColor: colorToDTOV1(_nullishCoalesce(foregroundColor, () => ( void 0)))
4392
- }
4364
+ header: config.header,
4365
+ isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isHidden)),
4366
+ isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
4367
+ showSidebar: config.showSidebar
4393
4368
  };
4394
4369
  }
4395
- function colorToDTOV1(color) {
4396
- if (!color)
4397
- return void 0;
4398
- if (color.aliasTo)
4399
- return { aliasTo: color.aliasTo };
4400
- if (!color.value)
4401
- return void 0;
4402
- if (typeof color.value === "string")
4403
- return { value: color.value };
4404
- if (typeof color.value.color === "string")
4405
- return { value: color.value.color };
4406
- return void 0;
4407
- }
4408
4370
 
4409
- // src/api/conversion/documentation/documentation-group-v1-to-dto.ts
4410
- function elementGroupsToDocumentationGroupStructureDTOV1(groups, pages) {
4411
- const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4412
- return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap));
4413
- }
4414
- function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
4415
- const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4416
- return groups.map((group) => {
4417
- return {
4418
- ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
4419
- configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _26 => _26.data, 'optionalAccess', _27 => _27.configuration]))
4420
- };
4421
- });
4371
+ // src/api/conversion/documentation/documentation-group-v2-to-dto.ts
4372
+ function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
4373
+ const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
4374
+ return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
4422
4375
  }
4423
- function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages) {
4424
- const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4425
- const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
4426
- return fixedGroups.map((group) => {
4427
- const configuration = documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _28 => _28.data, 'optionalAccess', _29 => _29.configuration]));
4428
- return {
4429
- ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
4430
- // backward compatibility with custom doc exporters, anyway these groups will not be shown, so we can adjust title
4431
- title: configuration.isHidden && !group.meta.name.startsWith("_") ? "_" + group.meta.name : group.meta.name,
4432
- configuration
4433
- };
4434
- });
4376
+ function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups, pages) {
4377
+ const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
4378
+ const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
4379
+ return fixedGroups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
4435
4380
  }
4436
- function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
4381
+ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
4437
4382
  const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
4438
4383
  if (!group.shortPersistentId) {
4439
4384
  throw new Error(`Short persistent id is required for docs groups, group id: ${group.id}`);
@@ -4447,6 +4392,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
4447
4392
  createdAt: group.createdAt,
4448
4393
  updatedAt: group.updatedAt,
4449
4394
  title: group.meta.name,
4395
+ configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _28 => _28.data, 'optionalAccess', _29 => _29.configuration])),
4450
4396
  childrenIds,
4451
4397
  isRoot: !group.parentPersistentId,
4452
4398
  groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _30 => _30.data, 'optionalAccess', _31 => _31.behavior]), () => ( "Group")),
@@ -4454,7 +4400,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
4454
4400
  type: "Group"
4455
4401
  };
4456
4402
  }
4457
- function calculateChildrenIdsMapV1(elements, groups) {
4403
+ function calculateChildrenIdsMapV2(elements, groups) {
4458
4404
  const byParentId = groupBy([...elements, ...groups], (e) => e.parentPersistentId);
4459
4405
  const childrenIdsMap = /* @__PURE__ */ new Map();
4460
4406
  for (const [parentPersistentId, children] of byParentId) {
@@ -4503,6 +4449,42 @@ function documentationPageToDTOV1(page, pagePathMap) {
4503
4449
  };
4504
4450
  }
4505
4451
 
4452
+ // src/api/conversion/documentation/documentation-page-v2-to-dto.ts
4453
+ function documentationPageToDTOV2(page, groups, routingVersion) {
4454
+ const pathsMap = buildDocPagePublishPaths(groups, [page], routingVersion);
4455
+ return _documentationPageToDTOV2(page, pathsMap);
4456
+ }
4457
+ function documentationPagesToDTOV2(pages, groups, routingVersion) {
4458
+ const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
4459
+ return pages.map((page) => _documentationPageToDTOV2(page, pathsMap));
4460
+ }
4461
+ function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion) {
4462
+ const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
4463
+ const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
4464
+ return fixedPages.map((page) => _documentationPageToDTOV2(page, pathsMap));
4465
+ }
4466
+ function _documentationPageToDTOV2(page, pagePathMap) {
4467
+ let path = pagePathMap.get(page.persistentId);
4468
+ if (!path)
4469
+ throw new Error(`Path for page ${page.id} was not calculated`);
4470
+ if (path.startsWith("/"))
4471
+ path = path.substring(1);
4472
+ return {
4473
+ id: page.id,
4474
+ designSystemVersionId: page.designSystemVersionId,
4475
+ persistentId: page.persistentId,
4476
+ shortPersistentId: page.shortPersistentId,
4477
+ title: page.meta.name,
4478
+ slug: page.slug,
4479
+ userSlug: page.userSlug,
4480
+ configuration: documentationItemConfigurationToDTOV2(page.data.configuration),
4481
+ createdAt: page.createdAt,
4482
+ updatedAt: page.updatedAt,
4483
+ path,
4484
+ type: "Page"
4485
+ };
4486
+ }
4487
+
4506
4488
  // src/api/conversion/export/pipeline.ts
4507
4489
  function pipelineToDto(pipeline) {
4508
4490
  return {
@@ -4956,15 +4938,11 @@ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
4956
4938
  anchors: _zod.z.array(DTODocumentationPageAnchor)
4957
4939
  });
4958
4940
 
4959
- // src/api/dto/documentation/link-preview.ts
4941
+ // src/api/dto/documentation/documentation-page-snapshot.ts
4942
+
4943
+
4944
+ // src/api/dto/elements/documentation/page-v2.ts
4960
4945
 
4961
- var DTODocumentationLinkPreviewResponse = _zod.z.object({
4962
- linkPreview: DocumentationLinkPreview
4963
- });
4964
- var DTODocumentationLinkPreviewRequest = _zod.z.object({
4965
- url: _zod.z.string().optional(),
4966
- documentationItemPersistentId: _zod.z.string().optional()
4967
- });
4968
4946
 
4969
4947
  // src/api/dto/elements/documentation/draft-state.ts
4970
4948
 
@@ -4981,14 +4959,102 @@ var DTODocumentationItemConfigurationV2 = _zod.z.object({
4981
4959
 
4982
4960
  // src/api/dto/elements/documentation/draft-state.ts
4983
4961
  var DTODocumentationDraftChangeType = _zod.z.enum(["Created", "Updated", "Deleted"]);
4984
- var DTODocumentationDraftState = _zod.z.object({
4985
- changeType: DTODocumentationDraftChangeType,
4962
+ var DTODocumentationDraftStateCreated = _zod.z.object({
4963
+ changeType: _zod.z.literal(DTODocumentationDraftChangeType.enum.Created)
4964
+ });
4965
+ var DTODocumentationDraftStateUpdated = _zod.z.object({
4966
+ changeType: _zod.z.literal(DTODocumentationDraftChangeType.enum.Updated),
4986
4967
  changes: _zod.z.object({
4987
4968
  previousTitle: _zod.z.string().optional(),
4988
4969
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
4989
4970
  previousContentHash: _zod.z.string().optional()
4990
4971
  })
4991
4972
  });
4973
+ var DTODocumentationDraftStateDeleted = _zod.z.object({
4974
+ changeType: _zod.z.literal(DTODocumentationDraftChangeType.enum.Deleted)
4975
+ });
4976
+ var DTODocumentationDraftState = _zod.z.discriminatedUnion("changeType", [
4977
+ DTODocumentationDraftStateCreated,
4978
+ DTODocumentationDraftStateUpdated,
4979
+ DTODocumentationDraftStateDeleted
4980
+ ]);
4981
+
4982
+ // src/api/dto/elements/documentation/page-v2.ts
4983
+ var DTODocumentationPageV2 = _zod.z.object({
4984
+ id: _zod.z.string(),
4985
+ persistentId: _zod.z.string(),
4986
+ designSystemVersionId: _zod.z.string(),
4987
+ title: _zod.z.string(),
4988
+ configuration: DTODocumentationItemConfigurationV2,
4989
+ shortPersistentId: _zod.z.string(),
4990
+ slug: _zod.z.string().optional(),
4991
+ userSlug: _zod.z.string().optional(),
4992
+ createdAt: _zod.z.coerce.date(),
4993
+ updatedAt: _zod.z.coerce.date(),
4994
+ path: _zod.z.string(),
4995
+ /** Defined when a page has changed since last publish and can be included into a partial publish */
4996
+ draftState: DTODocumentationDraftState.optional(),
4997
+ // Backward compatibility
4998
+ type: _zod.z.literal("Page")
4999
+ });
5000
+ var DTOCreateDocumentationPageInputV2 = _zod.z.object({
5001
+ // Identifier
5002
+ persistentId: _zod.z.string().uuid(),
5003
+ // Page properties
5004
+ title: _zod.z.string(),
5005
+ configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5006
+ // Page placement properties
5007
+ parentPersistentId: _zod.z.string().uuid(),
5008
+ afterPersistentId: _zod.z.string().uuid().nullish()
5009
+ });
5010
+ var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
5011
+ // Identifier of the group to update
5012
+ id: _zod.z.string(),
5013
+ // Page properties
5014
+ title: _zod.z.string().optional(),
5015
+ configuration: DTODocumentationItemConfigurationV2.partial().optional()
5016
+ });
5017
+ var DTOMoveDocumentationPageInputV2 = _zod.z.object({
5018
+ // Identifier of the group to update
5019
+ id: _zod.z.string(),
5020
+ // Page placement properties
5021
+ parentPersistentId: _zod.z.string().uuid(),
5022
+ afterPersistentId: _zod.z.string().uuid().nullish()
5023
+ });
5024
+ var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
5025
+ // Identifier of the page to duplicate from
5026
+ id: _zod.z.string(),
5027
+ // New page persistent id
5028
+ persistentId: _zod.z.string().uuid(),
5029
+ // Page placement properties
5030
+ parentPersistentId: _zod.z.string().uuid(),
5031
+ afterPersistentId: _zod.z.string().uuid().nullish()
5032
+ });
5033
+ var DTODeleteDocumentationPageInputV2 = _zod.z.object({
5034
+ // Identifier
5035
+ id: _zod.z.string()
5036
+ });
5037
+
5038
+ // src/api/dto/documentation/documentation-page-snapshot.ts
5039
+ var DTODocumentationPageSnapshot = _zod.z.object({
5040
+ id: _zod.z.string(),
5041
+ designSystemVersionId: _zod.z.string(),
5042
+ createdAt: _zod.z.string(),
5043
+ updatedAt: _zod.z.string(),
5044
+ documentationPage: DTODocumentationPageV2,
5045
+ pageContentHash: _zod.z.string(),
5046
+ reason: DesignElementSnapshotReason
5047
+ });
5048
+
5049
+ // src/api/dto/documentation/link-preview.ts
5050
+
5051
+ var DTODocumentationLinkPreviewResponse = _zod.z.object({
5052
+ linkPreview: DocumentationLinkPreview
5053
+ });
5054
+ var DTODocumentationLinkPreviewRequest = _zod.z.object({
5055
+ url: _zod.z.string().optional(),
5056
+ documentationItemPersistentId: _zod.z.string().optional()
5057
+ });
4992
5058
 
4993
5059
  // src/api/dto/elements/documentation/group-action.ts
4994
5060
 
@@ -5014,7 +5080,6 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5014
5080
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5015
5081
  draftState: DTODocumentationDraftState.optional()
5016
5082
  });
5017
- var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
5018
5083
  var DTOCreateDocumentationGroupInput = _zod.z.object({
5019
5084
  // Identifier
5020
5085
  persistentId: _zod.z.string().uuid(),
@@ -5172,70 +5237,37 @@ var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5172
5237
  configuration: DTODocumentationItemConfigurationV1
5173
5238
  });
5174
5239
 
5175
- // src/api/dto/elements/documentation/page-actions-v2.ts
5176
-
5177
-
5178
- // src/api/dto/elements/documentation/page-v2.ts
5240
+ // src/api/dto/elements/documentation/hierarchy.ts
5179
5241
 
5180
- var DTODocumentationPageV2 = DocumentationPageV2.omit({
5181
- data: true,
5182
- meta: true,
5183
- parentPersistentId: true,
5184
- sortOrder: true
5185
- }).extend({
5186
- title: _zod.z.string(),
5187
- path: _zod.z.string(),
5188
- type: _zod.z.literal("Page"),
5189
- configuration: DTODocumentationItemConfigurationV2,
5190
- /** Defined when a page has changed since last publish and can be included into a partial publish */
5191
- draftState: DTODocumentationDraftState.optional()
5192
- });
5193
- var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
5194
5242
  var DTODocumentationHierarchyV2 = _zod.z.object({
5195
- pages: _zod.z.array(DTODocumentationPageStructureV2),
5196
- groups: _zod.z.array(DTODocumentationGroupStructureV2),
5197
- deletedPages: _zod.z.array(DTODocumentationPageStructureV2),
5198
- deletedGroups: _zod.z.array(DTODocumentationGroupStructureV2)
5199
- });
5200
- var DTOCreateDocumentationPageInputV2 = _zod.z.object({
5201
- // Identifier
5202
- persistentId: _zod.z.string().uuid(),
5203
- // Page properties
5204
- title: _zod.z.string(),
5205
- configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5206
- // Page placement properties
5207
- parentPersistentId: _zod.z.string().uuid(),
5208
- afterPersistentId: _zod.z.string().uuid().nullish()
5209
- });
5210
- var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
5211
- // Identifier of the group to update
5212
- id: _zod.z.string(),
5213
- // Page properties
5214
- title: _zod.z.string().optional(),
5215
- configuration: DTODocumentationItemConfigurationV2.partial().optional()
5216
- });
5217
- var DTOMoveDocumentationPageInputV2 = _zod.z.object({
5218
- // Identifier of the group to update
5219
- id: _zod.z.string(),
5220
- // Page placement properties
5221
- parentPersistentId: _zod.z.string().uuid(),
5222
- afterPersistentId: _zod.z.string().uuid().nullish()
5223
- });
5224
- var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
5225
- // Identifier of the page to duplicate from
5226
- id: _zod.z.string(),
5227
- // New page persistent id
5228
- persistentId: _zod.z.string().uuid(),
5229
- // Page placement properties
5230
- parentPersistentId: _zod.z.string().uuid(),
5231
- afterPersistentId: _zod.z.string().uuid().nullish()
5232
- });
5233
- var DTODeleteDocumentationPageInputV2 = _zod.z.object({
5234
- // Identifier
5235
- id: _zod.z.string()
5243
+ pages: _zod.z.array(
5244
+ DTODocumentationPageV2.extend({
5245
+ /** Defined when a page has changed since last publish and can be included into a partial publish */
5246
+ draftState: DTODocumentationDraftState.optional()
5247
+ })
5248
+ ),
5249
+ groups: _zod.z.array(
5250
+ DTODocumentationGroupV2.extend({
5251
+ /** Defined when a page has changed since last publish and can be included into a partial publish */
5252
+ draftState: DTODocumentationDraftState.optional()
5253
+ })
5254
+ ),
5255
+ deletedPages: _zod.z.array(
5256
+ DTODocumentationPageV2.extend({
5257
+ /** Deleted page is always a draft change */
5258
+ draftState: DTODocumentationDraftState
5259
+ })
5260
+ ),
5261
+ deletedGroups: _zod.z.array(
5262
+ DTODocumentationGroupV2.extend({
5263
+ /** Deleted page is always a draft change */
5264
+ draftState: DTODocumentationDraftState
5265
+ })
5266
+ )
5236
5267
  });
5237
5268
 
5238
5269
  // src/api/dto/elements/documentation/page-actions-v2.ts
5270
+
5239
5271
  var SuccessPayload2 = _zod.z.object({
5240
5272
  success: _zod.z.literal(true)
5241
5273
  });
@@ -5750,6 +5782,9 @@ function generateHash(input) {
5750
5782
  // src/yjs/design-system-content/documentation-hierarchy.ts
5751
5783
 
5752
5784
 
5785
+ // src/yjs/version-room/frontend.ts
5786
+ var _deepequal = require('deep-equal'); var _deepequal2 = _interopRequireDefault(_deepequal);
5787
+
5753
5788
  // src/yjs/version-room/base.ts
5754
5789
  var VersionRoomBaseYDoc = class {
5755
5790
  constructor(yDoc) {
@@ -5759,29 +5794,22 @@ var VersionRoomBaseYDoc = class {
5759
5794
  //
5760
5795
  // Pages
5761
5796
  //
5762
- getDocumentationPages() {
5763
- const pagesMap = this.pagesYMap;
5764
- const pages = [];
5765
- pagesMap.forEach((page) => {
5766
- pages.push(DocumentationPageV2.parse(page));
5767
- });
5768
- return pages;
5797
+ getPages() {
5798
+ return this.getObjects(this.pagesYMap, DocumentationPageV2);
5769
5799
  }
5770
- updateDocumentationPages(pages) {
5771
- const pagesMap = this.pagesYMap;
5772
- pages.forEach((page) => {
5773
- const sanitizedPage = {
5800
+ updatePages(pages) {
5801
+ pages = pages.map((page) => {
5802
+ return {
5774
5803
  ...page,
5775
5804
  data: {
5776
5805
  configuration: page.data.configuration
5777
5806
  }
5778
5807
  };
5779
- pagesMap.set(page.id, JSON.parse(JSON.stringify(sanitizedPage)));
5780
5808
  });
5809
+ this.setObjects(this.pagesYMap, pages);
5781
5810
  }
5782
- deleteDocumentationPages(ids) {
5783
- const pagesMap = this.pagesYMap;
5784
- ids.forEach((id) => pagesMap.delete(id));
5811
+ deletePages(ids) {
5812
+ this.deleteObjects(this.pagesYMap, ids);
5785
5813
  }
5786
5814
  get pagesYMap() {
5787
5815
  return this.yDoc.getMap("documentationPages");
@@ -5789,23 +5817,14 @@ var VersionRoomBaseYDoc = class {
5789
5817
  //
5790
5818
  // Groups
5791
5819
  //
5792
- getDocumentationGroups() {
5793
- const groupsMap = this.groupsYMap;
5794
- const groups = [];
5795
- groupsMap.forEach((group) => {
5796
- groups.push(ElementGroup.parse(group));
5797
- });
5798
- return groups;
5820
+ getGroups() {
5821
+ return this.getObjects(this.groupsYMap, ElementGroup);
5799
5822
  }
5800
- updateDocumentationGroups(groups) {
5801
- const groupsMap = this.groupsYMap;
5802
- groups.forEach((group) => {
5803
- groupsMap.set(group.id, JSON.parse(JSON.stringify(group)));
5804
- });
5823
+ updateGroups(groups) {
5824
+ this.setObjects(this.groupsYMap, groups);
5805
5825
  }
5806
- deleteDocumentationGroups(ids) {
5807
- const groupsMap = this.groupsYMap;
5808
- ids.forEach((id) => groupsMap.delete(id));
5826
+ deleteGroups(ids) {
5827
+ this.deleteObjects(this.groupsYMap, ids);
5809
5828
  }
5810
5829
  get groupsYMap() {
5811
5830
  return this.yDoc.getMap("documentationGroups");
@@ -5838,11 +5857,14 @@ var VersionRoomBaseYDoc = class {
5838
5857
  //
5839
5858
  // Documentation page published snapshot
5840
5859
  //
5841
- getDocumentationPagePublishedSnapshots() {
5842
- return this.getSnapshots(this.documentationPagePublishedStatesYMap);
5860
+ getPagePublishedSnapshots() {
5861
+ return this.getObjects(this.documentationPagePublishedStatesYMap, DocumentationPageSnapshot);
5843
5862
  }
5844
- updateDocumentationPagePublishedSnapshots(snapshots) {
5845
- this.setSnapshots(this.documentationPagePublishedStatesYMap, snapshots);
5863
+ updatePagePublishedSnapshots(snapshots) {
5864
+ this.setObjects(this.documentationPagePublishedStatesYMap, snapshots);
5865
+ }
5866
+ deletePagePublishedSnapshots(ids) {
5867
+ this.deleteObjects(this.documentationPagePublishedStatesYMap, ids);
5846
5868
  }
5847
5869
  get documentationPagePublishedStatesYMap() {
5848
5870
  return this.yDoc.getMap("documentationPagePublishedSnapshots");
@@ -5850,11 +5872,14 @@ var VersionRoomBaseYDoc = class {
5850
5872
  //
5851
5873
  // Documentation page deleted snapshot
5852
5874
  //
5853
- getDocumentationPageDeletedSnapshots() {
5854
- return this.getSnapshots(this.documentationPageDeletedStatesYMap);
5875
+ getPageDeletedSnapshots() {
5876
+ return this.getObjects(this.documentationPageDeletedStatesYMap, DocumentationPageSnapshot);
5877
+ }
5878
+ updatePageDeletedSnapshots(snapshots) {
5879
+ this.setObjects(this.documentationPageDeletedStatesYMap, snapshots);
5855
5880
  }
5856
- updateDocumentationPageDeletedSnapshots(snapshots) {
5857
- this.setSnapshots(this.documentationPageDeletedStatesYMap, snapshots);
5881
+ deletePageDeletedSnapshots(ids) {
5882
+ this.deleteObjects(this.documentationPageDeletedStatesYMap, ids);
5858
5883
  }
5859
5884
  get documentationPageDeletedStatesYMap() {
5860
5885
  return this.yDoc.getMap("documentationPageDeletedSnapshots");
@@ -5862,11 +5887,14 @@ var VersionRoomBaseYDoc = class {
5862
5887
  //
5863
5888
  // Documentation group published snapshots
5864
5889
  //
5865
- getDocumentationGroupPublishedSnapshots() {
5866
- return this.getSnapshots(this.documentationGroupPublishedStatesYMap);
5890
+ getGroupPublishedSnapshots() {
5891
+ return this.getObjects(this.documentationGroupPublishedStatesYMap, ElementGroupSnapshot);
5892
+ }
5893
+ updateGroupPublishedSnapshots(snapshots) {
5894
+ this.setObjects(this.documentationGroupPublishedStatesYMap, snapshots);
5867
5895
  }
5868
- updateDocumentationGroupPublishedSnapshots(snapshots) {
5869
- this.setSnapshots(this.documentationGroupPublishedStatesYMap, snapshots);
5896
+ deleteGroupPublishedSnapshots(ids) {
5897
+ this.deleteObjects(this.documentationGroupPublishedStatesYMap, ids);
5870
5898
  }
5871
5899
  get documentationGroupPublishedStatesYMap() {
5872
5900
  return this.yDoc.getMap("documentationGroupPublishedSnapshots");
@@ -5874,29 +5902,31 @@ var VersionRoomBaseYDoc = class {
5874
5902
  //
5875
5903
  // Documentation group deleted snapshots
5876
5904
  //
5877
- getDocumentationGroupDeletedSnapshots() {
5878
- return this.getSnapshots(this.documentationGroupDeletedStatesYMap);
5905
+ getGroupDeletedSnapshots() {
5906
+ return this.getObjects(this.documentationGroupDeletedStatesYMap, ElementGroupSnapshot);
5879
5907
  }
5880
- updateDocumentationGroupDeletedSnapshots(snapshots) {
5881
- this.setSnapshots(this.documentationGroupDeletedStatesYMap, snapshots);
5908
+ updateGroupDeletedSnapshots(snapshots) {
5909
+ this.setObjects(this.documentationGroupDeletedStatesYMap, snapshots);
5910
+ }
5911
+ deleteGroupDeletedSnapshots(ids) {
5912
+ this.deleteObjects(this.documentationGroupDeletedStatesYMap, ids);
5882
5913
  }
5883
5914
  get documentationGroupDeletedStatesYMap() {
5884
5915
  return this.yDoc.getMap("documentationGroupDeletedSnapshots");
5885
5916
  }
5886
5917
  //
5887
- // Snapshot utils
5918
+ // Utils
5888
5919
  //
5889
- getSnapshots(map) {
5890
- const snapshots = [];
5891
- map.forEach((snapshot) => {
5892
- snapshots.push(DesignElementSnapshot.parse(snapshot));
5893
- });
5894
- return snapshots;
5920
+ getObjects(map, schema) {
5921
+ const results = [];
5922
+ map.forEach((object) => results.push(schema.parse(object)));
5923
+ return results;
5895
5924
  }
5896
- setSnapshots(map, snapshots) {
5897
- snapshots.forEach((snapshot) => {
5898
- map.set(snapshot.id, JSON.parse(JSON.stringify(snapshot)));
5899
- });
5925
+ setObjects(map, objects) {
5926
+ objects.forEach((o) => map.set(o.id, JSON.parse(JSON.stringify(o))));
5927
+ }
5928
+ deleteObjects(map, ids) {
5929
+ ids.forEach((id) => map.delete(id));
5900
5930
  }
5901
5931
  //
5902
5932
  // Documentation page content hashes
@@ -5924,20 +5954,156 @@ var FrontendVersionRoomYDoc = class {
5924
5954
  __publicField(this, "yDoc");
5925
5955
  this.yDoc = yDoc;
5926
5956
  }
5957
+ //
5958
+ // Hierarchy
5959
+ //
5927
5960
  getDocumentationHierarchy() {
5928
5961
  const doc = new VersionRoomBaseYDoc(this.yDoc);
5929
- const pages = doc.getDocumentationPages();
5930
- const groups = doc.getDocumentationGroups();
5962
+ const pages = doc.getPages();
5963
+ const groups = doc.getGroups();
5931
5964
  const settings = doc.getDocumentationInternalSettings();
5932
- const hierarchy = documentationElementsToHierarchyDto(pages, groups, settings.routingVersion);
5933
- return hierarchy;
5965
+ const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion);
5966
+ const pageDraftStates = this.buildPageDraftStates(pages);
5967
+ pageDTOs.forEach((p) => {
5968
+ const draftState = pageDraftStates.get(p.id);
5969
+ draftState && (p.draftState = draftState);
5970
+ });
5971
+ const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
5972
+ const groupDraftStates = this.buildGroupDraftStates(groups);
5973
+ groupDTOs.forEach((g) => {
5974
+ const draftState = groupDraftStates.get(g.id);
5975
+ draftState && (g.draftState = draftState);
5976
+ });
5977
+ const deletedGroups = doc.getGroupDeletedSnapshots().map((s) => s.group);
5978
+ const deletedPages = doc.getPageDeletedSnapshots().map((s) => s.page);
5979
+ const deletedPageDTOs = documentationPagesToDTOV2(
5980
+ deletedPages,
5981
+ [...groups, ...deletedGroups],
5982
+ settings.routingVersion
5983
+ ).map((p) => {
5984
+ return { ...p, draftState: { changeType: "Deleted" } };
5985
+ });
5986
+ const deletedGroupDTOs = elementGroupsToDocumentationGroupDTOV2(deletedGroups, deletedPages).map((g) => {
5987
+ return { ...g, draftState: { changeType: "Deleted" } };
5988
+ });
5989
+ return {
5990
+ pages: pageDTOs,
5991
+ groups: groupDTOs,
5992
+ deletedPages: deletedPageDTOs,
5993
+ deletedGroups: deletedGroupDTOs
5994
+ };
5934
5995
  }
5996
+ //
5997
+ // Drafts - Pages
5998
+ //
5999
+ buildPageDraftStates(pages) {
6000
+ const doc = new VersionRoomBaseYDoc(this.yDoc);
6001
+ const pageHashes = doc.getDocumentationPageContentHashes();
6002
+ const publishedSnapshots = doc.getPagePublishedSnapshots();
6003
+ const publishedSnapshotsByPageId = mapByUnique(publishedSnapshots, (s) => s.page.id);
6004
+ const publishedPagesById = mapByUnique(
6005
+ publishedSnapshots.map((s) => s.page),
6006
+ (p) => p.id
6007
+ );
6008
+ const result = /* @__PURE__ */ new Map();
6009
+ pages.forEach((page) => {
6010
+ const currentPageContentHash = _nullishCoalesce(pageHashes[page.persistentId], () => ( ""));
6011
+ const currentState = this.itemStateFromPage(page, currentPageContentHash);
6012
+ const snapshot = publishedSnapshotsByPageId.get(page.id);
6013
+ let publishedState;
6014
+ if (snapshot) {
6015
+ const publishedPage = publishedPagesById.get(snapshot.page.id);
6016
+ publishedState = this.itemStateFromPage(publishedPage, snapshot.pageContentHash);
6017
+ }
6018
+ const draftState = this.createDraftState(currentState, publishedState);
6019
+ if (draftState)
6020
+ result.set(page.id, draftState);
6021
+ });
6022
+ return result;
6023
+ }
6024
+ itemStateFromPage(page, pageContentHash) {
6025
+ return {
6026
+ title: page.meta.name,
6027
+ configuration: page.data.configuration,
6028
+ contentHash: pageContentHash
6029
+ };
6030
+ }
6031
+ //
6032
+ // Drafts - Groups
6033
+ //
6034
+ buildGroupDraftStates(groups) {
6035
+ const doc = new VersionRoomBaseYDoc(this.yDoc);
6036
+ const publishedSnapshots = doc.getGroupPublishedSnapshots();
6037
+ const publishedSnapshotsByGroupId = mapByUnique(publishedSnapshots, (s) => s.group.id);
6038
+ const publishedGroupsById = mapByUnique(
6039
+ publishedSnapshots.map((s) => s.group),
6040
+ (g) => g.id
6041
+ );
6042
+ const result = /* @__PURE__ */ new Map();
6043
+ groups.forEach((group) => {
6044
+ const currentState = this.itemStateFromGroup(group);
6045
+ const snapshot = publishedSnapshotsByGroupId.get(group.id);
6046
+ let publishedState;
6047
+ if (snapshot) {
6048
+ const publishedGroup = publishedGroupsById.get(snapshot.group.id);
6049
+ publishedState = this.itemStateFromGroup(publishedGroup);
6050
+ }
6051
+ const draftState = this.createDraftState(currentState, publishedState);
6052
+ if (draftState)
6053
+ result.set(group.id, draftState);
6054
+ });
6055
+ return result;
6056
+ }
6057
+ itemStateFromGroup(group) {
6058
+ return {
6059
+ title: group.meta.name,
6060
+ configuration: _optionalChain([group, 'access', _35 => _35.data, 'optionalAccess', _36 => _36.configuration]),
6061
+ contentHash: "-"
6062
+ };
6063
+ }
6064
+ //
6065
+ // Drafts - Shared
6066
+ //
6067
+ createDraftState(currentState, publishedState) {
6068
+ if (!publishedState) {
6069
+ return { changeType: "Created" };
6070
+ }
6071
+ const updatedDraftState = {
6072
+ changeType: "Updated",
6073
+ changes: {}
6074
+ };
6075
+ if (currentState.title !== publishedState.title) {
6076
+ updatedDraftState.changes.previousTitle = publishedState.title;
6077
+ }
6078
+ if (!_deepequal2.default.call(void 0, currentState.configuration, publishedState.configuration)) {
6079
+ const configurationDto = documentationItemConfigurationToDTOV2(publishedState.configuration);
6080
+ updatedDraftState.changes.previousConfiguration = configurationDto;
6081
+ }
6082
+ if (currentState.contentHash !== publishedState.contentHash) {
6083
+ updatedDraftState.changes.previousContentHash = publishedState.contentHash;
6084
+ }
6085
+ if (Object.keys(updatedDraftState).length) {
6086
+ return updatedDraftState;
6087
+ }
6088
+ return void 0;
6089
+ }
6090
+ //
6091
+ // Update page content hash
6092
+ //
5935
6093
  notifyDocumentationPageContentUpdated(pageId, content) {
5936
6094
  const pageContentHash = generateHash(content);
5937
6095
  new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
5938
6096
  [pageId]: pageContentHash
5939
6097
  });
5940
6098
  }
6099
+ //
6100
+ // Misc
6101
+ //
6102
+ isDraftFeatureAdopted() {
6103
+ const doc = new VersionRoomBaseYDoc(this.yDoc);
6104
+ const settings = doc.getDocumentationInternalSettings();
6105
+ return settings.isDraftFeatureAdopted;
6106
+ }
5941
6107
  };
5942
6108
 
5943
6109
  // src/yjs/design-system-content/documentation-hierarchy.ts
@@ -5962,7 +6128,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
5962
6128
  function itemConfigurationToYjs(yDoc, item) {
5963
6129
  yDoc.transact((trx) => {
5964
6130
  const { title, configuration } = item;
5965
- const header = _optionalChain([configuration, 'optionalAccess', _35 => _35.header]);
6131
+ const header = _optionalChain([configuration, 'optionalAccess', _37 => _37.header]);
5966
6132
  if (title !== void 0) {
5967
6133
  const headerYMap = trx.doc.getMap("itemTitle");
5968
6134
  headerYMap.set("title", title);
@@ -5980,9 +6146,9 @@ function itemConfigurationToYjs(yDoc, item) {
5980
6146
  header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
5981
6147
  }
5982
6148
  const configYMap = trx.doc.getMap("itemConfiguration");
5983
- _optionalChain([configuration, 'optionalAccess', _36 => _36.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
5984
- _optionalChain([configuration, 'optionalAccess', _37 => _37.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
5985
- _optionalChain([configuration, 'optionalAccess', _38 => _38.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
6149
+ _optionalChain([configuration, 'optionalAccess', _38 => _38.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
6150
+ _optionalChain([configuration, 'optionalAccess', _39 => _39.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
6151
+ _optionalChain([configuration, 'optionalAccess', _40 => _40.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
5986
6152
  });
5987
6153
  }
5988
6154
  function yjsToItemConfiguration(yDoc) {
@@ -6774,7 +6940,7 @@ var ListTreeBuilder = class {
6774
6940
  }
6775
6941
  addWithProperty(block, multiRichTextProperty) {
6776
6942
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
6777
- return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _39 => _39.multiRichTextStyle]) || "OL");
6943
+ return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _41 => _41.multiRichTextStyle]) || "OL");
6778
6944
  }
6779
6945
  add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
6780
6946
  const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
@@ -6794,7 +6960,7 @@ var ListTreeBuilder = class {
6794
6960
  }
6795
6961
  const listParent = this.getParentOfDepth(block.data.indentLevel);
6796
6962
  const lastChild = listParent.children[listParent.children.length - 1];
6797
- if (_optionalChain([lastChild, 'optionalAccess', _40 => _40.type]) === "List") {
6963
+ if (_optionalChain([lastChild, 'optionalAccess', _42 => _42.type]) === "List") {
6798
6964
  lastChild.children.push(...list.leadingChildren);
6799
6965
  return;
6800
6966
  } else {
@@ -6978,7 +7144,7 @@ function serializeAsRichTextBlock(input) {
6978
7144
  const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
6979
7145
  const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
6980
7146
  const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
6981
- const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _41 => _41.richTextStyle]), () => ( "Default"));
7147
+ const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _43 => _43.richTextStyle]), () => ( "Default"));
6982
7148
  switch (style) {
6983
7149
  case "Callout":
6984
7150
  return serializeAsCallout(enrichedInput);
@@ -7200,7 +7366,7 @@ function serializeBlockNodeAttributes(block) {
7200
7366
  };
7201
7367
  }
7202
7368
  function richTextHeadingLevel(property) {
7203
- const style = _optionalChain([property, 'access', _42 => _42.options, 'optionalAccess', _43 => _43.richTextStyle]);
7369
+ const style = _optionalChain([property, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.richTextStyle]);
7204
7370
  if (!style)
7205
7371
  return void 0;
7206
7372
  switch (style) {
@@ -7313,7 +7479,7 @@ function serializeAsCustomBlock(block, definition) {
7313
7479
  linksTo: i.linksTo
7314
7480
  };
7315
7481
  });
7316
- const columns = _optionalChain([block, 'access', _44 => _44.data, 'access', _45 => _45.appearance, 'optionalAccess', _46 => _46.numberOfColumns]);
7482
+ const columns = _optionalChain([block, 'access', _46 => _46.data, 'access', _47 => _47.appearance, 'optionalAccess', _48 => _48.numberOfColumns]);
7317
7483
  return {
7318
7484
  type: serializeCustomBlockNodeType(block, definition),
7319
7485
  attrs: {
@@ -9159,10 +9325,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
9159
9325
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
9160
9326
  const result = [];
9161
9327
  const listItems = [];
9162
- _optionalChain([prosemirrorNode, 'access', _47 => _47.content, 'optionalAccess', _48 => _48.forEach, 'call', _49 => _49((c) => {
9328
+ _optionalChain([prosemirrorNode, 'access', _49 => _49.content, 'optionalAccess', _50 => _50.forEach, 'call', _51 => _51((c) => {
9163
9329
  if (c.type !== "listItem")
9164
9330
  return;
9165
- _optionalChain([c, 'access', _50 => _50.content, 'optionalAccess', _51 => _51.forEach, 'call', _52 => _52((cc) => {
9331
+ _optionalChain([c, 'access', _52 => _52.content, 'optionalAccess', _53 => _53.forEach, 'call', _54 => _54((cc) => {
9166
9332
  listItems.push(cc);
9167
9333
  })]);
9168
9334
  })]);
@@ -9265,17 +9431,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
9265
9431
  return null;
9266
9432
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
9267
9433
  const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
9268
- const tableChild = _optionalChain([prosemirrorNode, 'access', _53 => _53.content, 'optionalAccess', _54 => _54.find, 'call', _55 => _55((c) => c.type === "table")]);
9434
+ const tableChild = _optionalChain([prosemirrorNode, 'access', _55 => _55.content, 'optionalAccess', _56 => _56.find, 'call', _57 => _57((c) => c.type === "table")]);
9269
9435
  if (!tableChild) {
9270
9436
  return emptyTable(id, variantId, 0);
9271
9437
  }
9272
- const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _56 => _56.content, 'optionalAccess', _57 => _57.filter, 'call', _58 => _58((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _59 => _59.content, 'optionalAccess', _60 => _60.length]))]), () => ( []));
9438
+ const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _58 => _58.content, 'optionalAccess', _59 => _59.filter, 'call', _60 => _60((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _61 => _61.content, 'optionalAccess', _62 => _62.length]))]), () => ( []));
9273
9439
  if (!rows.length) {
9274
9440
  return emptyTable(id, variantId, 0);
9275
9441
  }
9276
- const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _61 => _61[0], 'access', _62 => _62.content, 'optionalAccess', _63 => _63.filter, 'call', _64 => _64((c) => c.type === "tableHeader"), 'access', _65 => _65.length]), () => ( 0));
9277
- const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _66 => _66.content, 'optionalAccess', _67 => _67[0], 'optionalAccess', _68 => _68.type]) === "tableHeader").length;
9278
- const hasHeaderRow = _optionalChain([rows, 'access', _69 => _69[0], 'access', _70 => _70.content, 'optionalAccess', _71 => _71.length]) === rowHeaderCells;
9442
+ const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _63 => _63[0], 'access', _64 => _64.content, 'optionalAccess', _65 => _65.filter, 'call', _66 => _66((c) => c.type === "tableHeader"), 'access', _67 => _67.length]), () => ( 0));
9443
+ const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _68 => _68.content, 'optionalAccess', _69 => _69[0], 'optionalAccess', _70 => _70.type]) === "tableHeader").length;
9444
+ const hasHeaderRow = _optionalChain([rows, 'access', _71 => _71[0], 'access', _72 => _72.content, 'optionalAccess', _73 => _73.length]) === rowHeaderCells;
9279
9445
  const hasHeaderColumn = rows.length === columnHeaderCells;
9280
9446
  const tableValue = {
9281
9447
  showBorder: hasBorder,
@@ -9357,7 +9523,7 @@ function parseAsTableNode(prosemirrorNode) {
9357
9523
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
9358
9524
  if (!parsedItems.success)
9359
9525
  return null;
9360
- const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _72 => _72.data, 'access', _73 => _73[0], 'optionalAccess', _74 => _74.props, 'access', _75 => _75.image]);
9526
+ const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _74 => _74.data, 'access', _75 => _75[0], 'optionalAccess', _76 => _76.props, 'access', _77 => _77.image]);
9361
9527
  if (!rawImagePropertyValue)
9362
9528
  return null;
9363
9529
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
@@ -9593,7 +9759,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
9593
9759
  return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
9594
9760
  }
9595
9761
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
9596
- const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _76 => _76.attrs, 'optionalAccess', _77 => _77[attributeName]]));
9762
+ const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _78 => _78.attrs, 'optionalAccess', _79 => _79[attributeName]]));
9597
9763
  if (parsedAttr.success) {
9598
9764
  return parsedAttr.data;
9599
9765
  } else {
@@ -9622,10 +9788,18 @@ var BackendVersionRoomYDoc = class {
9622
9788
  updateDocumentationHierarchy(transaction) {
9623
9789
  this.yDoc.transact((trx) => {
9624
9790
  const yDoc = new VersionRoomBaseYDoc(trx.doc);
9625
- transaction.pageIdsToDelete.length && yDoc.deleteDocumentationPages(transaction.pageIdsToDelete);
9626
- transaction.pages.length && yDoc.updateDocumentationPages(transaction.pages);
9627
- transaction.groupIdsToDelete.length && yDoc.deleteDocumentationGroups(transaction.groupIdsToDelete);
9628
- transaction.groups.length && yDoc.updateDocumentationGroups(transaction.groups);
9791
+ transaction.pageIdsToDelete && yDoc.deletePages(transaction.pageIdsToDelete);
9792
+ transaction.pages && yDoc.updatePages(transaction.pages);
9793
+ transaction.groupIdsToDelete && yDoc.deleteGroups(transaction.groupIdsToDelete);
9794
+ transaction.groups && yDoc.updateGroups(transaction.groups);
9795
+ transaction.publishedPageSnapshotIdsToDelete && yDoc.deletePagePublishedSnapshots(transaction.publishedPageSnapshotIdsToDelete);
9796
+ transaction.publishedPageSnapshots && yDoc.updatePagePublishedSnapshots(transaction.publishedPageSnapshots);
9797
+ transaction.publishedGroupSnapshotIdsToDelete && yDoc.deleteGroupPublishedSnapshots(transaction.publishedGroupSnapshotIdsToDelete);
9798
+ transaction.publishedGroupSnapshots && yDoc.updateGroupPublishedSnapshots(transaction.publishedGroupSnapshots);
9799
+ transaction.deletedPageSnapshotIdsToDelete && yDoc.deletePageDeletedSnapshots(transaction.deletedPageSnapshotIdsToDelete);
9800
+ transaction.deletedPageSnapshots && yDoc.updatePageDeletedSnapshots(transaction.deletedPageSnapshots);
9801
+ transaction.deletedGroupSnapshotIdsToDelete && yDoc.deleteGroupDeletedSnapshots(transaction.deletedGroupSnapshotIdsToDelete);
9802
+ transaction.deletedGroupSnapshots && yDoc.updateGroupDeletedSnapshots(transaction.deletedGroupSnapshots);
9629
9803
  transaction.internalSettings && yDoc.updateDocumentationInternalSettings(transaction.internalSettings);
9630
9804
  });
9631
9805
  }
@@ -9844,5 +10018,5 @@ var BackendVersionRoomYDoc = class {
9844
10018
 
9845
10019
 
9846
10020
 
9847
- exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; 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.DTODataSource = DTODataSource; exports.DTODataSourceCreationResponse = DTODataSourceCreationResponse; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; 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.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; 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.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.elementGroupsToDocumentationGroupStructureDTOV2 = elementGroupsToDocumentationGroupStructureDTOV2; exports.generateHash = generateHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
10021
+ exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; 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.DTODataSource = DTODataSource; exports.DTODataSourceCreationResponse = DTODataSourceCreationResponse; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; 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.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.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; 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.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; 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.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
9848
10022
  //# sourceMappingURL=index.js.map