@supernova-studio/client 0.47.42 → 0.47.44

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,53 +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, publishedPagesSnapshots, routingVersion) {
4357
- return {
4358
- pages: documentationPagesToStructureDTOV2(docPages, docGroups, routingVersion),
4359
- groups: elementGroupsToDocumentationGroupStructureDTOV2(docGroups, docPages),
4360
- publishedPagesSnapshots
4361
- };
4362
- }
4363
-
4364
- // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
4365
- var getDtoDefaultItemConfigurationV1 = () => ({
4346
+ // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
4347
+ var getDtoDefaultItemConfigurationV2 = () => ({
4366
4348
  showSidebar: true,
4367
4349
  isHidden: false,
4368
4350
  isPrivate: false,
@@ -4374,64 +4356,29 @@ var getDtoDefaultItemConfigurationV1 = () => ({
4374
4356
  showCoverText: true
4375
4357
  }
4376
4358
  });
4377
- function documentationItemConfigurationToDTOV1(config) {
4378
- const dtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1();
4359
+ function documentationItemConfigurationToDTOV2(config) {
4360
+ const dtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2();
4379
4361
  if (!config)
4380
- return dtoDefaultItemConfigurationV1;
4381
- const { backgroundColor, foregroundColor, ...headerRest } = config.header;
4362
+ return dtoDefaultItemConfigurationV2;
4382
4363
  return {
4383
- showSidebar: config.showSidebar,
4384
- isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV1.isHidden)),
4385
- isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV1.isPrivate)),
4386
- header: {
4387
- ...headerRest,
4388
- backgroundColor: colorToDTOV1(_nullishCoalesce(backgroundColor, () => ( void 0))),
4389
- foregroundColor: colorToDTOV1(_nullishCoalesce(foregroundColor, () => ( void 0)))
4390
- }
4364
+ header: config.header,
4365
+ isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isHidden)),
4366
+ isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
4367
+ showSidebar: config.showSidebar
4391
4368
  };
4392
4369
  }
4393
- function colorToDTOV1(color) {
4394
- if (!color)
4395
- return void 0;
4396
- if (color.aliasTo)
4397
- return { aliasTo: color.aliasTo };
4398
- if (!color.value)
4399
- return void 0;
4400
- if (typeof color.value === "string")
4401
- return { value: color.value };
4402
- if (typeof color.value.color === "string")
4403
- return { value: color.value.color };
4404
- return void 0;
4405
- }
4406
4370
 
4407
- // src/api/conversion/documentation/documentation-group-v1-to-dto.ts
4408
- function elementGroupsToDocumentationGroupStructureDTOV1(groups, pages) {
4409
- const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4410
- return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap));
4411
- }
4412
- function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
4413
- const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4414
- return groups.map((group) => {
4415
- return {
4416
- ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
4417
- configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _26 => _26.data, 'optionalAccess', _27 => _27.configuration]))
4418
- };
4419
- });
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));
4420
4375
  }
4421
- function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages) {
4422
- const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
4423
- const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
4424
- return fixedGroups.map((group) => {
4425
- const configuration = documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _28 => _28.data, 'optionalAccess', _29 => _29.configuration]));
4426
- return {
4427
- ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
4428
- // backward compatibility with custom doc exporters, anyway these groups will not be shown, so we can adjust title
4429
- title: configuration.isHidden && !group.meta.name.startsWith("_") ? "_" + group.meta.name : group.meta.name,
4430
- configuration
4431
- };
4432
- });
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));
4433
4380
  }
4434
- function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
4381
+ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
4435
4382
  const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
4436
4383
  if (!group.shortPersistentId) {
4437
4384
  throw new Error(`Short persistent id is required for docs groups, group id: ${group.id}`);
@@ -4445,6 +4392,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
4445
4392
  createdAt: group.createdAt,
4446
4393
  updatedAt: group.updatedAt,
4447
4394
  title: group.meta.name,
4395
+ configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _28 => _28.data, 'optionalAccess', _29 => _29.configuration])),
4448
4396
  childrenIds,
4449
4397
  isRoot: !group.parentPersistentId,
4450
4398
  groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _30 => _30.data, 'optionalAccess', _31 => _31.behavior]), () => ( "Group")),
@@ -4452,7 +4400,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
4452
4400
  type: "Group"
4453
4401
  };
4454
4402
  }
4455
- function calculateChildrenIdsMapV1(elements, groups) {
4403
+ function calculateChildrenIdsMapV2(elements, groups) {
4456
4404
  const byParentId = groupBy([...elements, ...groups], (e) => e.parentPersistentId);
4457
4405
  const childrenIdsMap = /* @__PURE__ */ new Map();
4458
4406
  for (const [parentPersistentId, children] of byParentId) {
@@ -4501,6 +4449,42 @@ function documentationPageToDTOV1(page, pagePathMap) {
4501
4449
  };
4502
4450
  }
4503
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
+
4504
4488
  // src/api/conversion/export/pipeline.ts
4505
4489
  function pipelineToDto(pipeline) {
4506
4490
  return {
@@ -4954,20 +4938,13 @@ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
4954
4938
  anchors: _zod.z.array(DTODocumentationPageAnchor)
4955
4939
  });
4956
4940
 
4957
- // src/api/dto/documentation/link-preview.ts
4941
+ // src/api/dto/documentation/documentation-page-snapshot.ts
4958
4942
 
4959
- var DTODocumentationLinkPreviewResponse = _zod.z.object({
4960
- linkPreview: DocumentationLinkPreview
4961
- });
4962
- var DTODocumentationLinkPreviewRequest = _zod.z.object({
4963
- url: _zod.z.string().optional(),
4964
- documentationItemPersistentId: _zod.z.string().optional()
4965
- });
4966
4943
 
4967
- // src/api/dto/elements/documentation/group-action.ts
4944
+ // src/api/dto/elements/documentation/page-v2.ts
4968
4945
 
4969
4946
 
4970
- // src/api/dto/elements/documentation/group-v2.ts
4947
+ // src/api/dto/elements/documentation/draft-state.ts
4971
4948
 
4972
4949
 
4973
4950
  // src/api/dto/elements/documentation/item-configuration-v2.ts
@@ -4980,7 +4957,110 @@ var DTODocumentationItemConfigurationV2 = _zod.z.object({
4980
4957
  header: DTODocumentationItemHeaderV2
4981
4958
  });
4982
4959
 
4960
+ // src/api/dto/elements/documentation/draft-state.ts
4961
+ var DTODocumentationDraftChangeType = _zod.z.enum(["Created", "Updated", "Deleted"]);
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),
4967
+ changes: _zod.z.object({
4968
+ previousTitle: _zod.z.string().optional(),
4969
+ previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
4970
+ previousContentHash: _zod.z.string().optional()
4971
+ })
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
+ });
5058
+
5059
+ // src/api/dto/elements/documentation/group-action.ts
5060
+
5061
+
4983
5062
  // src/api/dto/elements/documentation/group-v2.ts
5063
+
4984
5064
  var DTODocumentationGroupV2 = ElementGroup.omit({
4985
5065
  sortOrder: true,
4986
5066
  parentPersistentId: true,
@@ -4996,9 +5076,10 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4996
5076
  groupBehavior: DocumentationGroupBehavior,
4997
5077
  shortPersistentId: _zod.z.string(),
4998
5078
  configuration: DTODocumentationItemConfigurationV2,
4999
- type: _zod.z.literal("Group")
5079
+ type: _zod.z.literal("Group"),
5080
+ /** Defined when a group has changed since last publish and can be included into a partial publish */
5081
+ draftState: DTODocumentationDraftState.optional()
5000
5082
  });
5001
- var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
5002
5083
  var DTOCreateDocumentationGroupInput = _zod.z.object({
5003
5084
  // Identifier
5004
5085
  persistentId: _zod.z.string().uuid(),
@@ -5156,67 +5237,37 @@ var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5156
5237
  configuration: DTODocumentationItemConfigurationV1
5157
5238
  });
5158
5239
 
5159
- // src/api/dto/elements/documentation/page-actions-v2.ts
5160
-
5161
-
5162
- // src/api/dto/elements/documentation/page-v2.ts
5240
+ // src/api/dto/elements/documentation/hierarchy.ts
5163
5241
 
5164
- var DTODocumentationPageV2 = DocumentationPageV2.omit({
5165
- data: true,
5166
- meta: true,
5167
- parentPersistentId: true,
5168
- sortOrder: true
5169
- }).extend({
5170
- title: _zod.z.string(),
5171
- path: _zod.z.string(),
5172
- type: _zod.z.literal("Page"),
5173
- configuration: DTODocumentationItemConfigurationV2
5174
- });
5175
- var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
5176
5242
  var DTODocumentationHierarchyV2 = _zod.z.object({
5177
- pages: _zod.z.array(DTODocumentationPageStructureV2),
5178
- groups: _zod.z.array(DTODocumentationGroupStructureV2),
5179
- publishedPagesSnapshots: DesignElementSnapshot.array()
5180
- });
5181
- var DTOCreateDocumentationPageInputV2 = _zod.z.object({
5182
- // Identifier
5183
- persistentId: _zod.z.string().uuid(),
5184
- // Page properties
5185
- title: _zod.z.string(),
5186
- configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5187
- // Page placement properties
5188
- parentPersistentId: _zod.z.string().uuid(),
5189
- afterPersistentId: _zod.z.string().uuid().nullish()
5190
- });
5191
- var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
5192
- // Identifier of the group to update
5193
- id: _zod.z.string(),
5194
- // Page properties
5195
- title: _zod.z.string().optional(),
5196
- configuration: DTODocumentationItemConfigurationV2.partial().optional()
5197
- });
5198
- var DTOMoveDocumentationPageInputV2 = _zod.z.object({
5199
- // Identifier of the group to update
5200
- id: _zod.z.string(),
5201
- // Page placement properties
5202
- parentPersistentId: _zod.z.string().uuid(),
5203
- afterPersistentId: _zod.z.string().uuid().nullish()
5204
- });
5205
- var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
5206
- // Identifier of the page to duplicate from
5207
- id: _zod.z.string(),
5208
- // New page persistent id
5209
- persistentId: _zod.z.string().uuid(),
5210
- // Page placement properties
5211
- parentPersistentId: _zod.z.string().uuid(),
5212
- afterPersistentId: _zod.z.string().uuid().nullish()
5213
- });
5214
- var DTODeleteDocumentationPageInputV2 = _zod.z.object({
5215
- // Identifier
5216
- 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
+ )
5217
5267
  });
5218
5268
 
5219
5269
  // src/api/dto/elements/documentation/page-actions-v2.ts
5270
+
5220
5271
  var SuccessPayload2 = _zod.z.object({
5221
5272
  success: _zod.z.literal(true)
5222
5273
  });
@@ -5730,98 +5781,330 @@ function generateHash(input) {
5730
5781
 
5731
5782
  // src/yjs/design-system-content/documentation-hierarchy.ts
5732
5783
 
5733
- var DocumentationHierarchySettings = _zod.z.object({
5734
- routingVersion: _zod.z.string(),
5735
- isDraftFeatureAdopted: _zod.z.boolean()
5736
- });
5737
- function documentationHierarchyToYjs(doc, transaction) {
5738
- doc.transact((trx) => {
5739
- const pagesMap = getPagesYMap(trx.doc);
5740
- transaction.pageIdsToDelete.forEach((pageId) => {
5741
- pagesMap.delete(pageId);
5742
- });
5743
- transaction.pages.forEach((page) => {
5744
- const sanitizedPage = {
5784
+
5785
+ // src/yjs/version-room/frontend.ts
5786
+ var _deepequal = require('deep-equal'); var _deepequal2 = _interopRequireDefault(_deepequal);
5787
+
5788
+ // src/yjs/version-room/base.ts
5789
+ var VersionRoomBaseYDoc = class {
5790
+ constructor(yDoc) {
5791
+ __publicField(this, "yDoc");
5792
+ this.yDoc = yDoc;
5793
+ }
5794
+ //
5795
+ // Pages
5796
+ //
5797
+ getPages() {
5798
+ return this.getObjects(this.pagesYMap, DocumentationPageV2);
5799
+ }
5800
+ updatePages(pages) {
5801
+ pages = pages.map((page) => {
5802
+ return {
5745
5803
  ...page,
5746
5804
  data: {
5747
5805
  configuration: page.data.configuration
5748
5806
  }
5749
5807
  };
5750
- pagesMap.set(page.id, JSON.parse(JSON.stringify(sanitizedPage)));
5751
5808
  });
5752
- const groupsMap = getGroupsYMap(trx.doc);
5753
- transaction.groupIdsToDelete.forEach((id) => {
5754
- groupsMap.delete(id);
5809
+ this.setObjects(this.pagesYMap, pages);
5810
+ }
5811
+ deletePages(ids) {
5812
+ this.deleteObjects(this.pagesYMap, ids);
5813
+ }
5814
+ get pagesYMap() {
5815
+ return this.yDoc.getMap("documentationPages");
5816
+ }
5817
+ //
5818
+ // Groups
5819
+ //
5820
+ getGroups() {
5821
+ return this.getObjects(this.groupsYMap, ElementGroup);
5822
+ }
5823
+ updateGroups(groups) {
5824
+ this.setObjects(this.groupsYMap, groups);
5825
+ }
5826
+ deleteGroups(ids) {
5827
+ this.deleteObjects(this.groupsYMap, ids);
5828
+ }
5829
+ get groupsYMap() {
5830
+ return this.yDoc.getMap("documentationGroups");
5831
+ }
5832
+ //
5833
+ // Documentation internal settings
5834
+ //
5835
+ getDocumentationInternalSettings() {
5836
+ const map = this.internalSettingsYMap;
5837
+ const rawSettings = {
5838
+ routingVersion: map.get("routingVersion"),
5839
+ isDraftFeatureAdopted: _nullishCoalesce(map.get("isDraftFeatureAdapted"), () => ( false))
5840
+ };
5841
+ const settingsParseResult = DocumentationHierarchySettings.safeParse(rawSettings);
5842
+ if (!settingsParseResult.success) {
5843
+ return {
5844
+ routingVersion: "2",
5845
+ isDraftFeatureAdopted: false
5846
+ };
5847
+ }
5848
+ return settingsParseResult.data;
5849
+ }
5850
+ updateDocumentationInternalSettings(settings) {
5851
+ const map = this.internalSettingsYMap;
5852
+ map.set("routingVersion", settings.routingVersion);
5853
+ }
5854
+ get internalSettingsYMap() {
5855
+ return this.yDoc.getMap("documentationInternalSettings");
5856
+ }
5857
+ //
5858
+ // Documentation page published snapshot
5859
+ //
5860
+ getPagePublishedSnapshots() {
5861
+ return this.getObjects(this.documentationPagePublishedStatesYMap, DocumentationPageSnapshot);
5862
+ }
5863
+ updatePagePublishedSnapshots(snapshots) {
5864
+ this.setObjects(this.documentationPagePublishedStatesYMap, snapshots);
5865
+ }
5866
+ deletePagePublishedSnapshots(ids) {
5867
+ this.deleteObjects(this.documentationPagePublishedStatesYMap, ids);
5868
+ }
5869
+ get documentationPagePublishedStatesYMap() {
5870
+ return this.yDoc.getMap("documentationPagePublishedSnapshots");
5871
+ }
5872
+ //
5873
+ // Documentation page deleted snapshot
5874
+ //
5875
+ getPageDeletedSnapshots() {
5876
+ return this.getObjects(this.documentationPageDeletedStatesYMap, DocumentationPageSnapshot);
5877
+ }
5878
+ updatePageDeletedSnapshots(snapshots) {
5879
+ this.setObjects(this.documentationPageDeletedStatesYMap, snapshots);
5880
+ }
5881
+ deletePageDeletedSnapshots(ids) {
5882
+ this.deleteObjects(this.documentationPageDeletedStatesYMap, ids);
5883
+ }
5884
+ get documentationPageDeletedStatesYMap() {
5885
+ return this.yDoc.getMap("documentationPageDeletedSnapshots");
5886
+ }
5887
+ //
5888
+ // Documentation group published snapshots
5889
+ //
5890
+ getGroupPublishedSnapshots() {
5891
+ return this.getObjects(this.documentationGroupPublishedStatesYMap, ElementGroupSnapshot);
5892
+ }
5893
+ updateGroupPublishedSnapshots(snapshots) {
5894
+ this.setObjects(this.documentationGroupPublishedStatesYMap, snapshots);
5895
+ }
5896
+ deleteGroupPublishedSnapshots(ids) {
5897
+ this.deleteObjects(this.documentationGroupPublishedStatesYMap, ids);
5898
+ }
5899
+ get documentationGroupPublishedStatesYMap() {
5900
+ return this.yDoc.getMap("documentationGroupPublishedSnapshots");
5901
+ }
5902
+ //
5903
+ // Documentation group deleted snapshots
5904
+ //
5905
+ getGroupDeletedSnapshots() {
5906
+ return this.getObjects(this.documentationGroupDeletedStatesYMap, ElementGroupSnapshot);
5907
+ }
5908
+ updateGroupDeletedSnapshots(snapshots) {
5909
+ this.setObjects(this.documentationGroupDeletedStatesYMap, snapshots);
5910
+ }
5911
+ deleteGroupDeletedSnapshots(ids) {
5912
+ this.deleteObjects(this.documentationGroupDeletedStatesYMap, ids);
5913
+ }
5914
+ get documentationGroupDeletedStatesYMap() {
5915
+ return this.yDoc.getMap("documentationGroupDeletedSnapshots");
5916
+ }
5917
+ //
5918
+ // Utils
5919
+ //
5920
+ getObjects(map, schema) {
5921
+ const results = [];
5922
+ map.forEach((object) => results.push(schema.parse(object)));
5923
+ return results;
5924
+ }
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));
5930
+ }
5931
+ //
5932
+ // Documentation page content hashes
5933
+ //
5934
+ getDocumentationPageContentHashes() {
5935
+ const map = this.documentationPageContentHashesYMap;
5936
+ const result = {};
5937
+ map.forEach((hash2, key) => {
5938
+ result[key] = hash2;
5755
5939
  });
5756
- transaction.groups.forEach((group) => {
5757
- groupsMap.set(group.id, JSON.parse(JSON.stringify(group)));
5940
+ return result;
5941
+ }
5942
+ updateDocumentationPageContentHashes(hashes) {
5943
+ const map = this.documentationPageContentHashesYMap;
5944
+ Object.entries(hashes).forEach(([key, hash2]) => map.set(key, hash2));
5945
+ }
5946
+ get documentationPageContentHashesYMap() {
5947
+ return this.yDoc.getMap("documentationPageHashes");
5948
+ }
5949
+ };
5950
+
5951
+ // src/yjs/version-room/frontend.ts
5952
+ var FrontendVersionRoomYDoc = class {
5953
+ constructor(yDoc) {
5954
+ __publicField(this, "yDoc");
5955
+ this.yDoc = yDoc;
5956
+ }
5957
+ //
5958
+ // Hierarchy
5959
+ //
5960
+ getDocumentationHierarchy() {
5961
+ const doc = new VersionRoomBaseYDoc(this.yDoc);
5962
+ const pages = doc.getPages();
5963
+ const groups = doc.getGroups();
5964
+ const settings = doc.getDocumentationInternalSettings();
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);
5758
5970
  });
5759
- const publishedSnapshotsMap = getPublishedSnapshotsYMap(trx.doc);
5760
- transaction.publishedPageSnapshots.forEach((state) => {
5761
- publishedSnapshotsMap.set(state.id, JSON.parse(JSON.stringify(state)));
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" } };
5762
5988
  });
5763
- if (transaction.internalSettings) {
5764
- serializeDocumentationInternalSettings(trx.doc, transaction.internalSettings);
5765
- }
5766
- });
5767
- return doc;
5768
- }
5769
- function serializeDocumentationInternalSettings(doc, settings) {
5770
- const map = getInternalSettingsYMap(doc);
5771
- map.set("routingVersion", settings.routingVersion);
5772
- settings.isDraftFeatureAdopted !== void 0 && map.set("isDraftFeatureAdapted", settings.isDraftFeatureAdopted);
5773
- }
5774
- function yjsToDocumentationHierarchy(doc) {
5775
- const pagesMap = getPagesYMap(doc);
5776
- const groupsMap = getGroupsYMap(doc);
5777
- const publishedSnapshotsMap = getPublishedSnapshotsYMap(doc);
5778
- const pages = [];
5779
- pagesMap.forEach((page) => {
5780
- pages.push(DocumentationPageV2.parse(page));
5781
- });
5782
- const groups = [];
5783
- groupsMap.forEach((group) => {
5784
- groups.push(ElementGroup.parse(group));
5785
- });
5786
- const publishedSnapshots = [];
5787
- publishedSnapshotsMap.forEach((state) => {
5788
- publishedSnapshots.push(DesignElementSnapshot.parse(state));
5789
- });
5790
- const internalSettings = parseDocumentationInternalSettings(doc);
5791
- const hierarchy = documentationElementsToHierarchyDto(
5792
- pages,
5793
- groups,
5794
- publishedSnapshots,
5795
- _nullishCoalesce(internalSettings.routingVersion, () => ( "2"))
5796
- );
5797
- return hierarchy;
5798
- }
5799
- function parseDocumentationInternalSettings(doc) {
5800
- const map = getInternalSettingsYMap(doc);
5801
- const rawSettings = {
5802
- routingVersion: map.get("routingVersion"),
5803
- isDraftFeatureAdopted: _nullishCoalesce(map.get("isDraftFeatureAdapted"), () => ( false))
5804
- };
5805
- const settingsParseResult = DocumentationHierarchySettings.safeParse(rawSettings);
5806
- if (!settingsParseResult.success) {
5807
5989
  return {
5808
- routingVersion: "2",
5809
- isDraftFeatureAdopted: false
5990
+ pages: pageDTOs,
5991
+ groups: groupDTOs,
5992
+ deletedPages: deletedPageDTOs,
5993
+ deletedGroups: deletedGroupDTOs
5810
5994
  };
5811
5995
  }
5812
- return settingsParseResult.data;
5813
- }
5814
- function getPagesYMap(doc) {
5815
- return doc.getMap("documentationPages");
5816
- }
5817
- function getGroupsYMap(doc) {
5818
- return doc.getMap("documentationGroups");
5819
- }
5820
- function getInternalSettingsYMap(doc) {
5821
- return doc.getMap("documentationInternalSettings");
5822
- }
5823
- function getPublishedSnapshotsYMap(doc) {
5824
- return doc.getMap("documentationPagePublishedSnapshots");
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
+ //
6093
+ notifyDocumentationPageContentUpdated(pageId, content) {
6094
+ const pageContentHash = generateHash(content);
6095
+ new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
6096
+ [pageId]: pageContentHash
6097
+ });
6098
+ }
6099
+ };
6100
+
6101
+ // src/yjs/design-system-content/documentation-hierarchy.ts
6102
+ var DocumentationHierarchySettings = _zod.z.object({
6103
+ routingVersion: _zod.z.string(),
6104
+ isDraftFeatureAdopted: _zod.z.boolean()
6105
+ });
6106
+ function yjsToDocumentationHierarchy(doc) {
6107
+ return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
5825
6108
  }
5826
6109
 
5827
6110
  // src/yjs/design-system-content/item-configuration.ts
@@ -5837,7 +6120,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
5837
6120
  function itemConfigurationToYjs(yDoc, item) {
5838
6121
  yDoc.transact((trx) => {
5839
6122
  const { title, configuration } = item;
5840
- const header = _optionalChain([configuration, 'optionalAccess', _35 => _35.header]);
6123
+ const header = _optionalChain([configuration, 'optionalAccess', _37 => _37.header]);
5841
6124
  if (title !== void 0) {
5842
6125
  const headerYMap = trx.doc.getMap("itemTitle");
5843
6126
  headerYMap.set("title", title);
@@ -5855,9 +6138,9 @@ function itemConfigurationToYjs(yDoc, item) {
5855
6138
  header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
5856
6139
  }
5857
6140
  const configYMap = trx.doc.getMap("itemConfiguration");
5858
- _optionalChain([configuration, 'optionalAccess', _36 => _36.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
5859
- _optionalChain([configuration, 'optionalAccess', _37 => _37.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
5860
- _optionalChain([configuration, 'optionalAccess', _38 => _38.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
6141
+ _optionalChain([configuration, 'optionalAccess', _38 => _38.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
6142
+ _optionalChain([configuration, 'optionalAccess', _39 => _39.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
6143
+ _optionalChain([configuration, 'optionalAccess', _40 => _40.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
5861
6144
  });
5862
6145
  }
5863
6146
  function yjsToItemConfiguration(yDoc) {
@@ -6649,7 +6932,7 @@ var ListTreeBuilder = class {
6649
6932
  }
6650
6933
  addWithProperty(block, multiRichTextProperty) {
6651
6934
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
6652
- return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _39 => _39.multiRichTextStyle]) || "OL");
6935
+ return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _41 => _41.multiRichTextStyle]) || "OL");
6653
6936
  }
6654
6937
  add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
6655
6938
  const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
@@ -6669,7 +6952,7 @@ var ListTreeBuilder = class {
6669
6952
  }
6670
6953
  const listParent = this.getParentOfDepth(block.data.indentLevel);
6671
6954
  const lastChild = listParent.children[listParent.children.length - 1];
6672
- if (_optionalChain([lastChild, 'optionalAccess', _40 => _40.type]) === "List") {
6955
+ if (_optionalChain([lastChild, 'optionalAccess', _42 => _42.type]) === "List") {
6673
6956
  lastChild.children.push(...list.leadingChildren);
6674
6957
  return;
6675
6958
  } else {
@@ -6853,7 +7136,7 @@ function serializeAsRichTextBlock(input) {
6853
7136
  const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
6854
7137
  const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
6855
7138
  const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
6856
- const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _41 => _41.richTextStyle]), () => ( "Default"));
7139
+ const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _43 => _43.richTextStyle]), () => ( "Default"));
6857
7140
  switch (style) {
6858
7141
  case "Callout":
6859
7142
  return serializeAsCallout(enrichedInput);
@@ -7075,7 +7358,7 @@ function serializeBlockNodeAttributes(block) {
7075
7358
  };
7076
7359
  }
7077
7360
  function richTextHeadingLevel(property) {
7078
- const style = _optionalChain([property, 'access', _42 => _42.options, 'optionalAccess', _43 => _43.richTextStyle]);
7361
+ const style = _optionalChain([property, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.richTextStyle]);
7079
7362
  if (!style)
7080
7363
  return void 0;
7081
7364
  switch (style) {
@@ -7188,7 +7471,7 @@ function serializeAsCustomBlock(block, definition) {
7188
7471
  linksTo: i.linksTo
7189
7472
  };
7190
7473
  });
7191
- const columns = _optionalChain([block, 'access', _44 => _44.data, 'access', _45 => _45.appearance, 'optionalAccess', _46 => _46.numberOfColumns]);
7474
+ const columns = _optionalChain([block, 'access', _46 => _46.data, 'access', _47 => _47.appearance, 'optionalAccess', _48 => _48.numberOfColumns]);
7192
7475
  return {
7193
7476
  type: serializeCustomBlockNodeType(block, definition),
7194
7477
  attrs: {
@@ -9034,10 +9317,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
9034
9317
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
9035
9318
  const result = [];
9036
9319
  const listItems = [];
9037
- _optionalChain([prosemirrorNode, 'access', _47 => _47.content, 'optionalAccess', _48 => _48.forEach, 'call', _49 => _49((c) => {
9320
+ _optionalChain([prosemirrorNode, 'access', _49 => _49.content, 'optionalAccess', _50 => _50.forEach, 'call', _51 => _51((c) => {
9038
9321
  if (c.type !== "listItem")
9039
9322
  return;
9040
- _optionalChain([c, 'access', _50 => _50.content, 'optionalAccess', _51 => _51.forEach, 'call', _52 => _52((cc) => {
9323
+ _optionalChain([c, 'access', _52 => _52.content, 'optionalAccess', _53 => _53.forEach, 'call', _54 => _54((cc) => {
9041
9324
  listItems.push(cc);
9042
9325
  })]);
9043
9326
  })]);
@@ -9140,17 +9423,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
9140
9423
  return null;
9141
9424
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
9142
9425
  const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
9143
- const tableChild = _optionalChain([prosemirrorNode, 'access', _53 => _53.content, 'optionalAccess', _54 => _54.find, 'call', _55 => _55((c) => c.type === "table")]);
9426
+ const tableChild = _optionalChain([prosemirrorNode, 'access', _55 => _55.content, 'optionalAccess', _56 => _56.find, 'call', _57 => _57((c) => c.type === "table")]);
9144
9427
  if (!tableChild) {
9145
9428
  return emptyTable(id, variantId, 0);
9146
9429
  }
9147
- 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]))]), () => ( []));
9430
+ 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]))]), () => ( []));
9148
9431
  if (!rows.length) {
9149
9432
  return emptyTable(id, variantId, 0);
9150
9433
  }
9151
- 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));
9152
- const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _66 => _66.content, 'optionalAccess', _67 => _67[0], 'optionalAccess', _68 => _68.type]) === "tableHeader").length;
9153
- const hasHeaderRow = _optionalChain([rows, 'access', _69 => _69[0], 'access', _70 => _70.content, 'optionalAccess', _71 => _71.length]) === rowHeaderCells;
9434
+ 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));
9435
+ const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _68 => _68.content, 'optionalAccess', _69 => _69[0], 'optionalAccess', _70 => _70.type]) === "tableHeader").length;
9436
+ const hasHeaderRow = _optionalChain([rows, 'access', _71 => _71[0], 'access', _72 => _72.content, 'optionalAccess', _73 => _73.length]) === rowHeaderCells;
9154
9437
  const hasHeaderColumn = rows.length === columnHeaderCells;
9155
9438
  const tableValue = {
9156
9439
  showBorder: hasBorder,
@@ -9232,7 +9515,7 @@ function parseAsTableNode(prosemirrorNode) {
9232
9515
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
9233
9516
  if (!parsedItems.success)
9234
9517
  return null;
9235
- const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _72 => _72.data, 'access', _73 => _73[0], 'optionalAccess', _74 => _74.props, 'access', _75 => _75.image]);
9518
+ const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _74 => _74.data, 'access', _75 => _75[0], 'optionalAccess', _76 => _76.props, 'access', _77 => _77.image]);
9236
9519
  if (!rawImagePropertyValue)
9237
9520
  return null;
9238
9521
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
@@ -9468,7 +9751,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
9468
9751
  return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
9469
9752
  }
9470
9753
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
9471
- const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _76 => _76.attrs, 'optionalAccess', _77 => _77[attributeName]]));
9754
+ const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _78 => _78.attrs, 'optionalAccess', _79 => _79[attributeName]]));
9472
9755
  if (parsedAttr.success) {
9473
9756
  return parsedAttr.data;
9474
9757
  } else {
@@ -9488,6 +9771,36 @@ function mapByUnique2(items, keyFn) {
9488
9771
  return result;
9489
9772
  }
9490
9773
 
9774
+ // src/yjs/version-room/backend.ts
9775
+ var BackendVersionRoomYDoc = class {
9776
+ constructor(yDoc) {
9777
+ __publicField(this, "yDoc");
9778
+ this.yDoc = yDoc;
9779
+ }
9780
+ updateDocumentationHierarchy(transaction) {
9781
+ this.yDoc.transact((trx) => {
9782
+ const yDoc = new VersionRoomBaseYDoc(trx.doc);
9783
+ transaction.pageIdsToDelete && yDoc.deletePages(transaction.pageIdsToDelete);
9784
+ transaction.pages && yDoc.updatePages(transaction.pages);
9785
+ transaction.groupIdsToDelete && yDoc.deleteGroups(transaction.groupIdsToDelete);
9786
+ transaction.groups && yDoc.updateGroups(transaction.groups);
9787
+ transaction.publishedPageSnapshotIdsToDelete && yDoc.deletePagePublishedSnapshots(transaction.publishedPageSnapshotIdsToDelete);
9788
+ transaction.publishedPageSnapshots && yDoc.updatePagePublishedSnapshots(transaction.publishedPageSnapshots);
9789
+ transaction.publishedGroupSnapshotIdsToDelete && yDoc.deleteGroupPublishedSnapshots(transaction.publishedGroupSnapshotIdsToDelete);
9790
+ transaction.publishedGroupSnapshots && yDoc.updateGroupPublishedSnapshots(transaction.publishedGroupSnapshots);
9791
+ transaction.deletedPageSnapshotIdsToDelete && yDoc.deletePageDeletedSnapshots(transaction.deletedPageSnapshotIdsToDelete);
9792
+ transaction.deletedPageSnapshots && yDoc.updatePageDeletedSnapshots(transaction.deletedPageSnapshots);
9793
+ transaction.deletedGroupSnapshotIdsToDelete && yDoc.deleteGroupDeletedSnapshots(transaction.deletedGroupSnapshotIdsToDelete);
9794
+ transaction.deletedGroupSnapshots && yDoc.updateGroupDeletedSnapshots(transaction.deletedGroupSnapshots);
9795
+ transaction.internalSettings && yDoc.updateDocumentationInternalSettings(transaction.internalSettings);
9796
+ });
9797
+ }
9798
+ };
9799
+
9800
+
9801
+
9802
+
9803
+
9491
9804
 
9492
9805
 
9493
9806
 
@@ -9697,5 +10010,5 @@ function mapByUnique2(items, keyFn) {
9697
10010
 
9698
10011
 
9699
10012
 
9700
- 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.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.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; 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;
10013
+ 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;
9701
10014
  //# sourceMappingURL=index.js.map