@supernova-studio/client 0.58.19 → 1.0.0-alpha.3
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.d.mts +1363 -1321
- package/dist/index.d.ts +1363 -1321
- package/dist/index.js +536 -339
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +839 -642
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
- package/src/api/client.ts +0 -31
- package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +0 -114
- package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +0 -92
- package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +0 -52
- package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +0 -34
- package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +0 -131
- package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +0 -69
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +0 -72
- package/src/api/conversion/documentation/index.ts +0 -7
- package/src/api/conversion/export/index.ts +0 -1
- package/src/api/conversion/export/pipeline.ts +0 -25
- package/src/api/conversion/index.ts +0 -3
- package/src/api/conversion/integrations/git.ts +0 -37
- package/src/api/conversion/integrations/index.ts +0 -2
- package/src/api/conversion/integrations/integration.ts +0 -37
- package/src/api/dto/aux/color.ts +0 -7
- package/src/api/dto/aux/index.ts +0 -3
- package/src/api/dto/aux/meta.ts +0 -8
- package/src/api/dto/aux/pagination.ts +0 -8
- package/src/api/dto/bff/app-bootstrap-data.ts +0 -20
- package/src/api/dto/bff/index.ts +0 -1
- package/src/api/dto/collections/index.ts +0 -1
- package/src/api/dto/collections/token-collection.ts +0 -24
- package/src/api/dto/design-systems/brand.ts +0 -44
- package/src/api/dto/design-systems/component.ts +0 -40
- package/src/api/dto/design-systems/contact.ts +0 -11
- package/src/api/dto/design-systems/data-source.ts +0 -141
- package/src/api/dto/design-systems/design-system.ts +0 -68
- package/src/api/dto/design-systems/elements-diff.ts +0 -14
- package/src/api/dto/design-systems/figma-variables.ts +0 -108
- package/src/api/dto/design-systems/import-job.ts +0 -61
- package/src/api/dto/design-systems/index.ts +0 -13
- package/src/api/dto/design-systems/members.ts +0 -50
- package/src/api/dto/design-systems/role.ts +0 -11
- package/src/api/dto/design-systems/stats.ts +0 -19
- package/src/api/dto/design-systems/version.ts +0 -56
- package/src/api/dto/design-systems/view.ts +0 -45
- package/src/api/dto/design-tokens/design-token.ts +0 -78
- package/src/api/dto/design-tokens/index.ts +0 -1
- package/src/api/dto/documentation/anchor.ts +0 -15
- package/src/api/dto/documentation/approvals.ts +0 -15
- package/src/api/dto/documentation/block-definition.ts +0 -28
- package/src/api/dto/documentation/block.ts +0 -6
- package/src/api/dto/documentation/documentation-page-snapshot.ts +0 -18
- package/src/api/dto/documentation/index.ts +0 -8
- package/src/api/dto/documentation/link-preview.ts +0 -23
- package/src/api/dto/documentation/publish.ts +0 -23
- package/src/api/dto/documentation/room.ts +0 -12
- package/src/api/dto/elements/components/figma-component-group.ts +0 -19
- package/src/api/dto/elements/components/figma-component.ts +0 -56
- package/src/api/dto/elements/components/index.ts +0 -2
- package/src/api/dto/elements/documentation/draft-state.ts +0 -37
- package/src/api/dto/elements/documentation/group-action.ts +0 -108
- package/src/api/dto/elements/documentation/group-v1.ts +0 -35
- package/src/api/dto/elements/documentation/group-v2.ts +0 -117
- package/src/api/dto/elements/documentation/hierarchy.ts +0 -22
- package/src/api/dto/elements/documentation/index.ts +0 -13
- package/src/api/dto/elements/documentation/item-configuration-v1.ts +0 -24
- package/src/api/dto/elements/documentation/item-configuration-v2.ts +0 -14
- package/src/api/dto/elements/documentation/metadata.ts +0 -8
- package/src/api/dto/elements/documentation/page-actions-v2.ts +0 -121
- package/src/api/dto/elements/documentation/page-content.ts +0 -15
- package/src/api/dto/elements/documentation/page-v1.ts +0 -21
- package/src/api/dto/elements/documentation/page-v2.ts +0 -120
- package/src/api/dto/elements/documentation/structure.ts +0 -37
- package/src/api/dto/elements/elements-action-v2.ts +0 -104
- package/src/api/dto/elements/figma-nodes/figma-node.ts +0 -106
- package/src/api/dto/elements/figma-nodes/index.ts +0 -2
- package/src/api/dto/elements/figma-nodes/node-actions-v2.ts +0 -24
- package/src/api/dto/elements/frame-node-structures/frame-node-structure.ts +0 -17
- package/src/api/dto/elements/frame-node-structures/index.ts +0 -1
- package/src/api/dto/elements/get-elements-v2.ts +0 -21
- package/src/api/dto/elements/index.ts +0 -7
- package/src/api/dto/elements/properties/index.ts +0 -2
- package/src/api/dto/elements/properties/property-definitions.ts +0 -75
- package/src/api/dto/elements/properties/property-values.ts +0 -38
- package/src/api/dto/export/exporter-property.ts +0 -95
- package/src/api/dto/export/exporter.ts +0 -87
- package/src/api/dto/export/filter.ts +0 -6
- package/src/api/dto/export/index.ts +0 -5
- package/src/api/dto/export/job.ts +0 -87
- package/src/api/dto/export/pipeline.ts +0 -43
- package/src/api/dto/figma-components/assets/download.ts +0 -30
- package/src/api/dto/figma-components/assets/index.ts +0 -1
- package/src/api/dto/figma-components/index.ts +0 -1
- package/src/api/dto/index.ts +0 -13
- package/src/api/dto/liveblocks/auth-response.ts +0 -7
- package/src/api/dto/liveblocks/index.ts +0 -1
- package/src/api/dto/themes/index.ts +0 -2
- package/src/api/dto/themes/override.ts +0 -27
- package/src/api/dto/themes/theme.ts +0 -45
- package/src/api/dto/users/authenticated-user.ts +0 -43
- package/src/api/dto/users/index.ts +0 -3
- package/src/api/dto/users/update.ts +0 -8
- package/src/api/dto/users/user.ts +0 -31
- package/src/api/dto/workspaces/git.ts +0 -32
- package/src/api/dto/workspaces/index.ts +0 -6
- package/src/api/dto/workspaces/integrations.ts +0 -34
- package/src/api/dto/workspaces/invitations.ts +0 -30
- package/src/api/dto/workspaces/membership.ts +0 -41
- package/src/api/dto/workspaces/npm-registry.ts +0 -35
- package/src/api/dto/workspaces/workspace.ts +0 -34
- package/src/api/endpoints/codegen/codegen.ts +0 -13
- package/src/api/endpoints/codegen/exporters.ts +0 -13
- package/src/api/endpoints/codegen/index.ts +0 -3
- package/src/api/endpoints/codegen/pipelines.ts +0 -37
- package/src/api/endpoints/design-system/bff.ts +0 -13
- package/src/api/endpoints/design-system/contact.ts +0 -12
- package/src/api/endpoints/design-system/design-systems.ts +0 -55
- package/src/api/endpoints/design-system/index.ts +0 -6
- package/src/api/endpoints/design-system/members.ts +0 -24
- package/src/api/endpoints/design-system/sources.ts +0 -35
- package/src/api/endpoints/design-system/versions/brands.ts +0 -45
- package/src/api/endpoints/design-system/versions/documentation.ts +0 -27
- package/src/api/endpoints/design-system/versions/ds-components.ts +0 -28
- package/src/api/endpoints/design-system/versions/elements-action.ts +0 -55
- package/src/api/endpoints/design-system/versions/elements.ts +0 -13
- package/src/api/endpoints/design-system/versions/figma-component-groups.ts +0 -13
- package/src/api/endpoints/design-system/versions/figma-components.ts +0 -13
- package/src/api/endpoints/design-system/versions/figma-frame-structures.ts +0 -13
- package/src/api/endpoints/design-system/versions/import-jobs.ts +0 -13
- package/src/api/endpoints/design-system/versions/index.ts +0 -18
- package/src/api/endpoints/design-system/versions/overrides.ts +0 -17
- package/src/api/endpoints/design-system/versions/property-definitions.ts +0 -43
- package/src/api/endpoints/design-system/versions/property-values.ts +0 -25
- package/src/api/endpoints/design-system/versions/stats.ts +0 -12
- package/src/api/endpoints/design-system/versions/themes.ts +0 -35
- package/src/api/endpoints/design-system/versions/token-collections.ts +0 -13
- package/src/api/endpoints/design-system/versions/token-groups.ts +0 -28
- package/src/api/endpoints/design-system/versions/tokens.ts +0 -27
- package/src/api/endpoints/design-system/versions/versions.ts +0 -79
- package/src/api/endpoints/index.ts +0 -5
- package/src/api/endpoints/liveblocks.ts +0 -14
- package/src/api/endpoints/users.ts +0 -26
- package/src/api/endpoints/workspaces/index.ts +0 -3
- package/src/api/endpoints/workspaces/workspace-invites.ts +0 -34
- package/src/api/endpoints/workspaces/workspace-members.ts +0 -31
- package/src/api/endpoints/workspaces/workspaces.ts +0 -47
- package/src/api/index.ts +0 -6
- package/src/api/payloads/design-systems/index.ts +0 -2
- package/src/api/payloads/design-systems/update-design-system.ts +0 -29
- package/src/api/payloads/design-systems/version.ts +0 -29
- package/src/api/payloads/documentation/block-definitions.ts +0 -12
- package/src/api/payloads/documentation/design-data-doc-diff.ts +0 -7
- package/src/api/payloads/documentation/index.ts +0 -2
- package/src/api/payloads/export/index.ts +0 -1
- package/src/api/payloads/export/pipeline.ts +0 -50
- package/src/api/payloads/index.ts +0 -6
- package/src/api/payloads/liveblocks/auth.ts +0 -7
- package/src/api/payloads/liveblocks/index.ts +0 -1
- package/src/api/payloads/users/index.ts +0 -2
- package/src/api/payloads/users/notifications/index.ts +0 -1
- package/src/api/payloads/users/notifications/notification-settings.ts +0 -17
- package/src/api/payloads/users/profile/index.ts +0 -1
- package/src/api/payloads/users/profile/update.ts +0 -4
- package/src/api/payloads/workspaces/index.ts +0 -3
- package/src/api/payloads/workspaces/transfer-ownership.ts +0 -7
- package/src/api/payloads/workspaces/workspace-configuration.ts +0 -50
- package/src/api/payloads/workspaces/workspace-integrations.ts +0 -26
- package/src/api/transport/index.ts +0 -2
- package/src/api/transport/request-executor-error.ts +0 -66
- package/src/api/transport/request-executor.ts +0 -87
- package/src/index.ts +0 -3
- package/src/utils/figma.ts +0 -53
- package/src/utils/hash.ts +0 -62
- package/src/utils/index.ts +0 -3
- package/src/utils/query.ts +0 -18
- package/src/yjs/design-system-content/documentation-hierarchy.ts +0 -35
- package/src/yjs/design-system-content/index.ts +0 -2
- package/src/yjs/design-system-content/item-configuration.ts +0 -93
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +0 -764
- package/src/yjs/docs-editor/index.ts +0 -7
- package/src/yjs/docs-editor/list-tree-builder.ts +0 -127
- package/src/yjs/docs-editor/mock.ts +0 -2104
- package/src/yjs/docs-editor/model/block.ts +0 -8
- package/src/yjs/docs-editor/model/index.ts +0 -2
- package/src/yjs/docs-editor/model/page.ts +0 -8
- package/src/yjs/docs-editor/prosemirror/index.ts +0 -3
- package/src/yjs/docs-editor/prosemirror/inner-editor-schema.ts +0 -145
- package/src/yjs/docs-editor/prosemirror/main-editor-schema.ts +0 -577
- package/src/yjs/docs-editor/prosemirror/types.ts +0 -19
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +0 -975
- package/src/yjs/docs-editor/utils.ts +0 -115
- package/src/yjs/index.ts +0 -3
- package/src/yjs/version-room/backend.ts +0 -78
- package/src/yjs/version-room/base.ts +0 -211
- package/src/yjs/version-room/frontend.ts +0 -461
- package/src/yjs/version-room/index.ts +0 -4
- package/src/yjs/version-room/utils.ts +0 -109
package/dist/index.js
CHANGED
|
@@ -859,6 +859,23 @@ var ContentLoaderPayload = _zod.z.object({
|
|
|
859
859
|
location: _zod.z.string()
|
|
860
860
|
})
|
|
861
861
|
);
|
|
862
|
+
var shortPersistentIdLength = 8;
|
|
863
|
+
var alphanumeric = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
864
|
+
function generateShortPersistentId() {
|
|
865
|
+
return generateAlphanumericId(shortPersistentIdLength);
|
|
866
|
+
}
|
|
867
|
+
function generateAlphanumericId(length) {
|
|
868
|
+
let randomString = "";
|
|
869
|
+
for (let i = 0; i < length; i++) {
|
|
870
|
+
const randomIndex = Math.floor(Math.random() * alphanumeric.length);
|
|
871
|
+
randomString += alphanumeric.charAt(randomIndex);
|
|
872
|
+
}
|
|
873
|
+
return randomString;
|
|
874
|
+
}
|
|
875
|
+
function slugify(str, options) {
|
|
876
|
+
const slug = _slugify2.default.call(void 0, _nullishCoalesce(str, () => ( "")), options);
|
|
877
|
+
return _optionalChain([slug, 'optionalAccess', _2 => _2.length]) > 0 ? slug : "item";
|
|
878
|
+
}
|
|
862
879
|
var RESERVED_SLUGS = [
|
|
863
880
|
"workspaces",
|
|
864
881
|
"workspace",
|
|
@@ -2712,7 +2729,6 @@ var ShadowLayerValue = _zod.z.object({
|
|
|
2712
2729
|
type: ShadowType
|
|
2713
2730
|
});
|
|
2714
2731
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
2715
|
-
var ShadowValue = _zod.z.array(ShadowTokenDataBase);
|
|
2716
2732
|
var ShadowTokenData = tokenAliasOrValue(_zod.z.array(ShadowTokenDataBase));
|
|
2717
2733
|
var SizeUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
2718
2734
|
var SizeValue = _zod.z.object({
|
|
@@ -3230,15 +3246,10 @@ var FigmaImportBaseContext = _zod.z.object({
|
|
|
3230
3246
|
*/
|
|
3231
3247
|
importWarnings: _zod.z.record(ImportWarning.array()).default({})
|
|
3232
3248
|
});
|
|
3233
|
-
var FeatureFlagsKeepAliases = _zod.z.object({
|
|
3234
|
-
isTypographyPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3235
|
-
isGradientPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3236
|
-
isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false)
|
|
3237
|
-
});
|
|
3238
3249
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3239
3250
|
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
3240
3251
|
shadowOpacityOptional: _zod.z.boolean().default(false),
|
|
3241
|
-
|
|
3252
|
+
typographyPropsKeepAliases: _zod.z.boolean().default(false)
|
|
3242
3253
|
});
|
|
3243
3254
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
3244
3255
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -3765,7 +3776,7 @@ var HANDLE_MIN_LENGTH = 2;
|
|
|
3765
3776
|
var HANDLE_MAX_LENGTH = 64;
|
|
3766
3777
|
var CreateWorkspaceInput = _zod.z.object({
|
|
3767
3778
|
name: _zod.z.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
3768
|
-
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess',
|
|
3779
|
+
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess', _3 => _3.length]) > 0).optional()
|
|
3769
3780
|
});
|
|
3770
3781
|
var WorkspaceInvitation = _zod.z.object({
|
|
3771
3782
|
id: _zod.z.string(),
|
|
@@ -4289,8 +4300,7 @@ var RestoredDocumentationGroup = _zod.z.object({
|
|
|
4289
4300
|
parent: ElementGroup
|
|
4290
4301
|
});
|
|
4291
4302
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4292
|
-
RoomTypeEnum2["
|
|
4293
|
-
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
4303
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4294
4304
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4295
4305
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4296
4306
|
return RoomTypeEnum2;
|
|
@@ -4403,7 +4413,7 @@ var IntegrationToken = _zod.z.object({
|
|
|
4403
4413
|
token_bitbucket_username: _zod.z.string().optional(),
|
|
4404
4414
|
// Bitbucket only
|
|
4405
4415
|
custom_url: _zod.z.string().optional().transform((value) => {
|
|
4406
|
-
if (!_optionalChain([value, 'optionalAccess',
|
|
4416
|
+
if (!_optionalChain([value, 'optionalAccess', _4 => _4.trim, 'call', _5 => _5()]))
|
|
4407
4417
|
return void 0;
|
|
4408
4418
|
return formatCustomUrl(value);
|
|
4409
4419
|
})
|
|
@@ -4614,9 +4624,7 @@ var FlaggedFeature = _zod.z.enum([
|
|
|
4614
4624
|
"ShadowOpacityOptional",
|
|
4615
4625
|
"DisableImporter",
|
|
4616
4626
|
"VariablesOrder",
|
|
4617
|
-
"TypographyPropsKeepAliases"
|
|
4618
|
-
"GradientPropsKeepAliases",
|
|
4619
|
-
"ShadowPropsKeepAliases"
|
|
4627
|
+
"TypographyPropsKeepAliases"
|
|
4620
4628
|
]);
|
|
4621
4629
|
var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
|
|
4622
4630
|
var FeatureFlag = _zod.z.object({
|
|
@@ -4812,7 +4820,7 @@ function calculateElementParentChain(elementParentPersistentId, groupPersistentI
|
|
|
4812
4820
|
const parent = groupPersistentIdToGroupMap.get(parentId);
|
|
4813
4821
|
if (parent)
|
|
4814
4822
|
result.push(parent);
|
|
4815
|
-
parentId = _optionalChain([parent, 'optionalAccess',
|
|
4823
|
+
parentId = _optionalChain([parent, 'optionalAccess', _6 => _6.parentPersistentId]);
|
|
4816
4824
|
}
|
|
4817
4825
|
return result;
|
|
4818
4826
|
}
|
|
@@ -4821,7 +4829,7 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4821
4829
|
...group,
|
|
4822
4830
|
data: {
|
|
4823
4831
|
...group.data,
|
|
4824
|
-
configuration: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4832
|
+
configuration: _nullishCoalesce(_optionalChain([group, 'access', _7 => _7.data, 'optionalAccess', _8 => _8.configuration]), () => ( getDefaultItemConfiguration()))
|
|
4825
4833
|
}
|
|
4826
4834
|
}));
|
|
4827
4835
|
const groupPersistentIdToGroupMap = mapByUnique(fixedGroups, (group) => group.persistentId);
|
|
@@ -4833,8 +4841,8 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4833
4841
|
const parent = groupPersistentIdToGroupMap.get(nextParentId);
|
|
4834
4842
|
if (!parent)
|
|
4835
4843
|
break;
|
|
4836
|
-
isHidden = isHidden || _optionalChain([parent, 'access',
|
|
4837
|
-
isPrivate = isPrivate || _optionalChain([parent, 'access',
|
|
4844
|
+
isHidden = isHidden || _optionalChain([parent, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.configuration, 'optionalAccess', _11 => _11.isHidden]) || false;
|
|
4845
|
+
isPrivate = isPrivate || _optionalChain([parent, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.configuration, 'optionalAccess', _14 => _14.isPrivate]) || false;
|
|
4838
4846
|
nextParentId = parent.parentPersistentId;
|
|
4839
4847
|
}
|
|
4840
4848
|
groupToFix.data.configuration.isHidden = isHidden;
|
|
@@ -4842,7 +4850,7 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4842
4850
|
}
|
|
4843
4851
|
const fixedPages = [];
|
|
4844
4852
|
for (const page of pages) {
|
|
4845
|
-
const configuration = _nullishCoalesce(_optionalChain([page, 'access',
|
|
4853
|
+
const configuration = _nullishCoalesce(_optionalChain([page, 'access', _15 => _15.data, 'optionalAccess', _16 => _16.configuration]), () => ( getDefaultItemConfiguration()));
|
|
4846
4854
|
const parent = groupPersistentIdToGroupMap.get(page.parentPersistentId);
|
|
4847
4855
|
fixedPages.push({
|
|
4848
4856
|
...page,
|
|
@@ -4850,8 +4858,8 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4850
4858
|
...page.data,
|
|
4851
4859
|
configuration: {
|
|
4852
4860
|
...configuration,
|
|
4853
|
-
isHidden: configuration.isHidden || _optionalChain([parent, 'optionalAccess',
|
|
4854
|
-
isPrivate: configuration.isPrivate || _optionalChain([parent, 'optionalAccess',
|
|
4861
|
+
isHidden: configuration.isHidden || _optionalChain([parent, 'optionalAccess', _17 => _17.data, 'optionalAccess', _18 => _18.configuration, 'optionalAccess', _19 => _19.isHidden]) || false,
|
|
4862
|
+
isPrivate: configuration.isPrivate || _optionalChain([parent, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.configuration, 'optionalAccess', _22 => _22.isPrivate]) || false
|
|
4855
4863
|
}
|
|
4856
4864
|
}
|
|
4857
4865
|
});
|
|
@@ -4869,7 +4877,7 @@ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
|
|
|
4869
4877
|
return groups.map((group) => {
|
|
4870
4878
|
return {
|
|
4871
4879
|
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
4872
|
-
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access',
|
|
4880
|
+
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _23 => _23.data, 'optionalAccess', _24 => _24.configuration]))
|
|
4873
4881
|
};
|
|
4874
4882
|
});
|
|
4875
4883
|
}
|
|
@@ -4877,7 +4885,7 @@ function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages)
|
|
|
4877
4885
|
const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
|
|
4878
4886
|
const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
|
|
4879
4887
|
return fixedGroups.map((group) => {
|
|
4880
|
-
const configuration = documentationItemConfigurationToDTOV1(_optionalChain([group, 'access',
|
|
4888
|
+
const configuration = documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _25 => _25.data, 'optionalAccess', _26 => _26.configuration]));
|
|
4881
4889
|
return {
|
|
4882
4890
|
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
4883
4891
|
// backward compatibility with custom doc exporters, anyway these groups will not be shown, so we can adjust title
|
|
@@ -4902,7 +4910,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
|
|
|
4902
4910
|
title: group.meta.name,
|
|
4903
4911
|
childrenIds,
|
|
4904
4912
|
isRoot: !group.parentPersistentId,
|
|
4905
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4913
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _27 => _27.data, 'optionalAccess', _28 => _28.behavior]), () => ( "Group")),
|
|
4906
4914
|
shortPersistentId: group.shortPersistentId,
|
|
4907
4915
|
type: "Group"
|
|
4908
4916
|
};
|
|
@@ -4960,10 +4968,10 @@ function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups, pages)
|
|
|
4960
4968
|
function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
4961
4969
|
const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
|
|
4962
4970
|
if (!group.shortPersistentId) {
|
|
4963
|
-
throw new Error(`Short persistent id is required for docs groups, group id: ${group.
|
|
4971
|
+
throw new Error(`Short persistent id is required for docs groups, group id: ${group.persistentId}`);
|
|
4964
4972
|
}
|
|
4965
4973
|
return {
|
|
4966
|
-
id:
|
|
4974
|
+
id: "to_be_removed",
|
|
4967
4975
|
designSystemVersionId: group.designSystemVersionId,
|
|
4968
4976
|
persistentId: group.persistentId,
|
|
4969
4977
|
slug: group.slug,
|
|
@@ -4971,10 +4979,10 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
|
4971
4979
|
createdAt: group.createdAt,
|
|
4972
4980
|
updatedAt: group.updatedAt,
|
|
4973
4981
|
title: group.meta.name,
|
|
4974
|
-
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess',
|
|
4982
|
+
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _29 => _29.data, 'optionalAccess', _30 => _30.configuration])),
|
|
4975
4983
|
childrenIds,
|
|
4976
4984
|
isRoot: !group.parentPersistentId,
|
|
4977
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4985
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _31 => _31.data, 'optionalAccess', _32 => _32.behavior]), () => ( "Group")),
|
|
4978
4986
|
shortPersistentId: group.shortPersistentId,
|
|
4979
4987
|
type: "Group"
|
|
4980
4988
|
};
|
|
@@ -5045,11 +5053,11 @@ function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersi
|
|
|
5045
5053
|
function _documentationPageToDTOV2(page, pagePathMap) {
|
|
5046
5054
|
let path = pagePathMap.get(page.persistentId);
|
|
5047
5055
|
if (!path)
|
|
5048
|
-
throw new Error(`Path for page ${page.
|
|
5056
|
+
throw new Error(`Path for page ${page.persistentId} was not calculated`);
|
|
5049
5057
|
if (path.startsWith("/"))
|
|
5050
5058
|
path = path.substring(1);
|
|
5051
5059
|
return {
|
|
5052
|
-
id:
|
|
5060
|
+
id: "to_be_removed",
|
|
5053
5061
|
designSystemVersionId: page.designSystemVersionId,
|
|
5054
5062
|
persistentId: page.persistentId,
|
|
5055
5063
|
shortPersistentId: page.shortPersistentId,
|
|
@@ -5128,7 +5136,7 @@ function integrationToDto(integration) {
|
|
|
5128
5136
|
workspaceId: integration.workspaceId,
|
|
5129
5137
|
type: integration.type,
|
|
5130
5138
|
createdAt: integration.createdAt,
|
|
5131
|
-
integrationCredentials: _optionalChain([integration, 'access',
|
|
5139
|
+
integrationCredentials: _optionalChain([integration, 'access', _33 => _33.integrationCredentials, 'optionalAccess', _34 => _34.map, 'call', _35 => _35(integrationCredentialToDto)]),
|
|
5132
5140
|
integrationDesignSystems: _nullishCoalesce(integration.integrationDesignSystems, () => ( void 0))
|
|
5133
5141
|
};
|
|
5134
5142
|
}
|
|
@@ -6175,7 +6183,7 @@ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
|
|
|
6175
6183
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6176
6184
|
var DTODocumentationGroupApprovalState = _zod.z.object({
|
|
6177
6185
|
persistentId: _zod.z.string(),
|
|
6178
|
-
|
|
6186
|
+
groupPersistentId: _zod.z.string(),
|
|
6179
6187
|
designSystemVersionId: _zod.z.string(),
|
|
6180
6188
|
approvalState: DocumentationPageApprovalState
|
|
6181
6189
|
});
|
|
@@ -6476,15 +6484,6 @@ var DTOPublishDocumentationResponse = _zod.z.object({
|
|
|
6476
6484
|
job: DTOExportJob
|
|
6477
6485
|
});
|
|
6478
6486
|
|
|
6479
|
-
// src/api/dto/documentation/room.ts
|
|
6480
|
-
|
|
6481
|
-
var DTODocumentationPageRoom = _zod.z.object({
|
|
6482
|
-
id: _zod.z.string()
|
|
6483
|
-
});
|
|
6484
|
-
var DTODocumentationPageRoomResponse = _zod.z.object({
|
|
6485
|
-
room: DTODocumentationPageRoom
|
|
6486
|
-
});
|
|
6487
|
-
|
|
6488
6487
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6489
6488
|
|
|
6490
6489
|
var DTOFigmaComponentGroup = _zod2.default.object({
|
|
@@ -7333,8 +7332,8 @@ var DocumentationEndpoint = class {
|
|
|
7333
7332
|
constructor(requestExecutor) {
|
|
7334
7333
|
this.requestExecutor = requestExecutor;
|
|
7335
7334
|
}
|
|
7336
|
-
|
|
7337
|
-
return
|
|
7335
|
+
getStructure(designSystemId, versionId) {
|
|
7336
|
+
return this.requestExecutor.json(
|
|
7338
7337
|
`/design-systems/${designSystemId}/versions/${versionId}/documentation/structure`,
|
|
7339
7338
|
DTODocumentationStructure
|
|
7340
7339
|
);
|
|
@@ -7342,13 +7341,10 @@ var DocumentationEndpoint = class {
|
|
|
7342
7341
|
async getDocStructure(dsId, vId) {
|
|
7343
7342
|
return await this.requestExecutor.json(
|
|
7344
7343
|
`/design-systems/${dsId}/versions/${vId}/documentation/structure`,
|
|
7345
|
-
DTODocumentationStructure
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
return await this.requestExecutor.json(
|
|
7350
|
-
`/design-systems/${dsId}/versions/${vId}/documentation/pages/${pageId}/room`,
|
|
7351
|
-
DTODocumentationPageRoomResponse
|
|
7344
|
+
DTODocumentationStructure,
|
|
7345
|
+
{
|
|
7346
|
+
method: "GET"
|
|
7347
|
+
}
|
|
7352
7348
|
);
|
|
7353
7349
|
}
|
|
7354
7350
|
};
|
|
@@ -7912,19 +7908,6 @@ var WorkspacesEndpoint = class {
|
|
|
7912
7908
|
}
|
|
7913
7909
|
};
|
|
7914
7910
|
|
|
7915
|
-
// src/api/endpoints/liveblocks.ts
|
|
7916
|
-
var LiveblocksEndpoint = class {
|
|
7917
|
-
constructor(requestExecutor) {
|
|
7918
|
-
this.requestExecutor = requestExecutor;
|
|
7919
|
-
}
|
|
7920
|
-
auth(body) {
|
|
7921
|
-
return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
|
|
7922
|
-
method: "POST",
|
|
7923
|
-
body
|
|
7924
|
-
});
|
|
7925
|
-
}
|
|
7926
|
-
};
|
|
7927
|
-
|
|
7928
7911
|
// src/api/endpoints/users.ts
|
|
7929
7912
|
var UsersEndpoint = class {
|
|
7930
7913
|
constructor(requestExecutor) {
|
|
@@ -8053,7 +8036,7 @@ var RequestExecutor = class {
|
|
|
8053
8036
|
}
|
|
8054
8037
|
fullUrl(path, query) {
|
|
8055
8038
|
let url = `https://${this.testServerConfig.host}/api/v2${path}`;
|
|
8056
|
-
const queryString = _optionalChain([query, 'optionalAccess',
|
|
8039
|
+
const queryString = _optionalChain([query, 'optionalAccess', _36 => _36.toString, 'call', _37 => _37()]);
|
|
8057
8040
|
if (queryString)
|
|
8058
8041
|
url += `?${queryString}`;
|
|
8059
8042
|
return url;
|
|
@@ -8067,7 +8050,6 @@ var SupernovaApiClient = class {
|
|
|
8067
8050
|
__publicField(this, "workspaces");
|
|
8068
8051
|
__publicField(this, "designSystems");
|
|
8069
8052
|
__publicField(this, "codegen");
|
|
8070
|
-
__publicField(this, "liveblocks");
|
|
8071
8053
|
const requestExecutor = new RequestExecutor({
|
|
8072
8054
|
host: config.host,
|
|
8073
8055
|
accessToken: config.accessToken
|
|
@@ -8076,10 +8058,12 @@ var SupernovaApiClient = class {
|
|
|
8076
8058
|
this.workspaces = new WorkspacesEndpoint(requestExecutor);
|
|
8077
8059
|
this.designSystems = new DesignSystemsEndpoint(requestExecutor);
|
|
8078
8060
|
this.codegen = new CodegenEndpoint(requestExecutor);
|
|
8079
|
-
this.liveblocks = new LiveblocksEndpoint(requestExecutor);
|
|
8080
8061
|
}
|
|
8081
8062
|
};
|
|
8082
8063
|
|
|
8064
|
+
// src/sync/docs-structure-repo.ts
|
|
8065
|
+
var _pqueue = require('p-queue'); var _pqueue2 = _interopRequireDefault(_pqueue);
|
|
8066
|
+
|
|
8083
8067
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8084
8068
|
|
|
8085
8069
|
|
|
@@ -8089,6 +8073,17 @@ var VersionRoomBaseYDoc = class {
|
|
|
8089
8073
|
__publicField(this, "yDoc");
|
|
8090
8074
|
this.yDoc = yDoc;
|
|
8091
8075
|
}
|
|
8076
|
+
getState() {
|
|
8077
|
+
return {
|
|
8078
|
+
approvals: this.getApprovals(),
|
|
8079
|
+
groups: this.getGroups(),
|
|
8080
|
+
groupSnapshots: this.getGroupSnapshots(),
|
|
8081
|
+
pageContentHashes: this.getDocumentationPageContentHashes(),
|
|
8082
|
+
pages: this.getPages(),
|
|
8083
|
+
pageSnapshots: this.getPageSnapshots(),
|
|
8084
|
+
settings: this.getDocumentationInternalSettings()
|
|
8085
|
+
};
|
|
8086
|
+
}
|
|
8092
8087
|
//
|
|
8093
8088
|
// Pages
|
|
8094
8089
|
//
|
|
@@ -8240,6 +8235,236 @@ var VersionRoomBaseYDoc = class {
|
|
|
8240
8235
|
}
|
|
8241
8236
|
};
|
|
8242
8237
|
|
|
8238
|
+
// src/yjs/version-room/compute-dto.ts
|
|
8239
|
+
function computeDocsHierarchy(input, options = {}) {
|
|
8240
|
+
const includeDeletedContent = _nullishCoalesce(options.includeDeletedContent, () => ( false));
|
|
8241
|
+
const debug = _nullishCoalesce(options.debug, () => ( false));
|
|
8242
|
+
const { pages, groups, pageSnapshots, groupSnapshots, settings, pageContentHashes, approvals } = input;
|
|
8243
|
+
if (includeDeletedContent) {
|
|
8244
|
+
pages.push(...getDeletedPages(pages, pageSnapshots));
|
|
8245
|
+
groups.push(...getDeletedGroups(groups, groupSnapshots));
|
|
8246
|
+
}
|
|
8247
|
+
const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion);
|
|
8248
|
+
const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
|
|
8249
|
+
if (!settings.isDraftFeatureAdopted) {
|
|
8250
|
+
return {
|
|
8251
|
+
pages: pageDTOs,
|
|
8252
|
+
groups: groupDTOs
|
|
8253
|
+
};
|
|
8254
|
+
}
|
|
8255
|
+
const pageDraftStates = buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots, pageContentHashes, debug);
|
|
8256
|
+
const pageDraftDeletedStates = buildPageDraftDeletedStates(pages, pageSnapshots);
|
|
8257
|
+
const pagePublishedMetadata = buildPagePublishedMetadata(pages, pageSnapshots);
|
|
8258
|
+
const pageApprovalStates = mapByUnique(approvals, (a) => a.pagePersistentId);
|
|
8259
|
+
pageDTOs.forEach((p) => {
|
|
8260
|
+
const draftState = _nullishCoalesce(pageDraftDeletedStates.get(p.persistentId), () => ( pageDraftStates.get(p.persistentId)));
|
|
8261
|
+
draftState && (p.draftState = draftState);
|
|
8262
|
+
const publishMetadata = pagePublishedMetadata.get(p.persistentId);
|
|
8263
|
+
publishMetadata && (p.publishMetadata = publishMetadata);
|
|
8264
|
+
const approvalState = pageApprovalStates.get(p.persistentId);
|
|
8265
|
+
approvalState && (p.approvalState = approvalState);
|
|
8266
|
+
});
|
|
8267
|
+
const groupDraftStates = buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots, debug);
|
|
8268
|
+
const groupDraftDeletedStates = buildGroupDraftDeletedStates(groups, groupSnapshots);
|
|
8269
|
+
const groupPublishedMetadata = buildGroupPublishedMetadata(groups, groupSnapshots);
|
|
8270
|
+
const groupApprovalStates = buildGroupApprovalStates(groups, groupSnapshots);
|
|
8271
|
+
groupDTOs.forEach((g) => {
|
|
8272
|
+
const draftState = _nullishCoalesce(groupDraftDeletedStates.get(g.persistentId), () => ( groupDraftStates.get(g.persistentId)));
|
|
8273
|
+
draftState && (g.draftState = draftState);
|
|
8274
|
+
const publishMetadata = groupPublishedMetadata.get(g.persistentId);
|
|
8275
|
+
publishMetadata && (g.publishMetadata = publishMetadata);
|
|
8276
|
+
const approvalState = groupApprovalStates.get(g.persistentId);
|
|
8277
|
+
approvalState && (g.approvalState = approvalState);
|
|
8278
|
+
});
|
|
8279
|
+
return {
|
|
8280
|
+
pages: pageDTOs,
|
|
8281
|
+
groups: groupDTOs
|
|
8282
|
+
};
|
|
8283
|
+
}
|
|
8284
|
+
function getDeletedPages(pages, pageSnapshots) {
|
|
8285
|
+
const existingPagePersistentIds = new Set(pages.map((p) => p.persistentId));
|
|
8286
|
+
const latestSnapshots = pickLatestPageSnapshots(pageSnapshots);
|
|
8287
|
+
return latestSnapshots.filter((s) => !existingPagePersistentIds.has(s.page.persistentId)).map((s) => s.page);
|
|
8288
|
+
}
|
|
8289
|
+
function getDeletedGroups(groups, groupSnapshots) {
|
|
8290
|
+
const existingGroupPersistentIds = new Set(groups.map((p) => p.persistentId));
|
|
8291
|
+
const latestSnapshots = pickLatestGroupSnapshots(groupSnapshots);
|
|
8292
|
+
return latestSnapshots.filter((s) => !existingGroupPersistentIds.has(s.group.persistentId)).map((s) => s.group);
|
|
8293
|
+
}
|
|
8294
|
+
function buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots, pageHashes, debug) {
|
|
8295
|
+
const publishedSnapshots = pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Publish"));
|
|
8296
|
+
const publishedSnapshotsByPagePersistentId = mapByUnique(publishedSnapshots, (s) => s.page.persistentId);
|
|
8297
|
+
const result = /* @__PURE__ */ new Map();
|
|
8298
|
+
pages.forEach((page) => {
|
|
8299
|
+
const snapshot = publishedSnapshotsByPagePersistentId.get(page.persistentId);
|
|
8300
|
+
let publishedState;
|
|
8301
|
+
if (snapshot) {
|
|
8302
|
+
publishedState = itemStateFromPage(snapshot.page, snapshot.pageContentHash);
|
|
8303
|
+
}
|
|
8304
|
+
const currentPageContentHash = _nullishCoalesce(_nullishCoalesce(pageHashes[page.persistentId], () => ( _optionalChain([snapshot, 'optionalAccess', _38 => _38.pageContentHash]))), () => ( ""));
|
|
8305
|
+
const currentState = itemStateFromPage(page, currentPageContentHash);
|
|
8306
|
+
const draftState = createDraftState(page.persistentId, currentState, publishedState, debug);
|
|
8307
|
+
if (draftState)
|
|
8308
|
+
result.set(page.persistentId, draftState);
|
|
8309
|
+
});
|
|
8310
|
+
return result;
|
|
8311
|
+
}
|
|
8312
|
+
function itemStateFromPage(page, pageContentHash) {
|
|
8313
|
+
return {
|
|
8314
|
+
title: page.meta.name,
|
|
8315
|
+
configuration: _nullishCoalesce(page.data.configuration, () => ( defaultDocumentationItemConfigurationV2)),
|
|
8316
|
+
contentHash: pageContentHash
|
|
8317
|
+
};
|
|
8318
|
+
}
|
|
8319
|
+
function buildPagePublishedMetadata(pages, pageSnapshots) {
|
|
8320
|
+
const publishedPageSnapshotsByPersistentId = mapByUnique(
|
|
8321
|
+
pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Publish")),
|
|
8322
|
+
(s) => s.page.persistentId
|
|
8323
|
+
);
|
|
8324
|
+
const result = /* @__PURE__ */ new Map();
|
|
8325
|
+
pages.forEach((p) => {
|
|
8326
|
+
const publishedSnapshot = publishedPageSnapshotsByPersistentId.get(p.persistentId);
|
|
8327
|
+
if (!publishedSnapshot)
|
|
8328
|
+
return;
|
|
8329
|
+
result.set(p.persistentId, {
|
|
8330
|
+
lastPublishedAt: publishedSnapshot.createdAt,
|
|
8331
|
+
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
8332
|
+
});
|
|
8333
|
+
});
|
|
8334
|
+
return result;
|
|
8335
|
+
}
|
|
8336
|
+
function createDraftState(itemPersistentId, currentState, publishedState, debug) {
|
|
8337
|
+
if (!publishedState) {
|
|
8338
|
+
return { changeType: "Created" };
|
|
8339
|
+
}
|
|
8340
|
+
const updatedDraftState = {
|
|
8341
|
+
changeType: "Updated",
|
|
8342
|
+
changes: {}
|
|
8343
|
+
};
|
|
8344
|
+
if (currentState.title !== publishedState.title) {
|
|
8345
|
+
if (debug) {
|
|
8346
|
+
console.log(`Item ${itemPersistentId} (${currentState.title}): updated title`);
|
|
8347
|
+
}
|
|
8348
|
+
updatedDraftState.changes.previousTitle = publishedState.title;
|
|
8349
|
+
}
|
|
8350
|
+
const currentConfigHash = generateHash(currentState.configuration, debug);
|
|
8351
|
+
const publishedConfigHash = generateHash(publishedState.configuration, debug);
|
|
8352
|
+
if (currentConfigHash !== publishedConfigHash) {
|
|
8353
|
+
if (debug) {
|
|
8354
|
+
console.log(`Item ${itemPersistentId} (${currentState.title}): updated configuration`);
|
|
8355
|
+
}
|
|
8356
|
+
const configurationDto = documentationItemConfigurationToDTOV2(publishedState.configuration);
|
|
8357
|
+
updatedDraftState.changes.previousConfiguration = configurationDto;
|
|
8358
|
+
}
|
|
8359
|
+
if (currentState.contentHash !== publishedState.contentHash) {
|
|
8360
|
+
if (debug) {
|
|
8361
|
+
console.log(`Item ${itemPersistentId} (${currentState.title}): updated content hash`);
|
|
8362
|
+
}
|
|
8363
|
+
updatedDraftState.changes.previousContentHash = publishedState.contentHash;
|
|
8364
|
+
}
|
|
8365
|
+
if (Object.keys(updatedDraftState.changes).length) {
|
|
8366
|
+
return updatedDraftState;
|
|
8367
|
+
}
|
|
8368
|
+
return void 0;
|
|
8369
|
+
}
|
|
8370
|
+
function buildGroupApprovalStates(groups, groupSnapshots) {
|
|
8371
|
+
const result = /* @__PURE__ */ new Map();
|
|
8372
|
+
const allGroups = [...groups, ...groupSnapshots];
|
|
8373
|
+
for (const g of allGroups) {
|
|
8374
|
+
const approvalState = {
|
|
8375
|
+
approvalState: "Approved",
|
|
8376
|
+
designSystemVersionId: g.designSystemVersionId,
|
|
8377
|
+
persistentId: g.persistentId,
|
|
8378
|
+
groupPersistentId: g.persistentId
|
|
8379
|
+
};
|
|
8380
|
+
result.set(g.persistentId, approvalState);
|
|
8381
|
+
}
|
|
8382
|
+
return result;
|
|
8383
|
+
}
|
|
8384
|
+
function buildPageDraftDeletedStates(pages, pageSnapshots) {
|
|
8385
|
+
const deletedSnapshotsByPagePersistentId = mapByUnique(
|
|
8386
|
+
pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Deletion")),
|
|
8387
|
+
(s) => s.page.persistentId
|
|
8388
|
+
);
|
|
8389
|
+
const result = /* @__PURE__ */ new Map();
|
|
8390
|
+
pages.forEach((page) => {
|
|
8391
|
+
const deletedSnapshot = deletedSnapshotsByPagePersistentId.get(page.persistentId);
|
|
8392
|
+
if (!deletedSnapshot)
|
|
8393
|
+
return;
|
|
8394
|
+
result.set(page.persistentId, {
|
|
8395
|
+
changeType: "Deleted",
|
|
8396
|
+
deletedAt: deletedSnapshot.createdAt,
|
|
8397
|
+
deletedByUserId: deletedSnapshot.createdByUserId
|
|
8398
|
+
});
|
|
8399
|
+
});
|
|
8400
|
+
return result;
|
|
8401
|
+
}
|
|
8402
|
+
function buildGroupDraftDeletedStates(groups, groupSnapshots) {
|
|
8403
|
+
const deletedSnapshotsByGroupPersistentId = mapByUnique(
|
|
8404
|
+
pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Deletion")),
|
|
8405
|
+
(s) => s.group.persistentId
|
|
8406
|
+
);
|
|
8407
|
+
const result = /* @__PURE__ */ new Map();
|
|
8408
|
+
groups.forEach((group) => {
|
|
8409
|
+
if (!group.parentPersistentId)
|
|
8410
|
+
return;
|
|
8411
|
+
const deletedSnapshot = deletedSnapshotsByGroupPersistentId.get(group.persistentId);
|
|
8412
|
+
if (!deletedSnapshot)
|
|
8413
|
+
return;
|
|
8414
|
+
result.set(group.persistentId, {
|
|
8415
|
+
changeType: "Deleted",
|
|
8416
|
+
deletedAt: deletedSnapshot.createdAt,
|
|
8417
|
+
deletedByUserId: deletedSnapshot.createdByUserId
|
|
8418
|
+
});
|
|
8419
|
+
});
|
|
8420
|
+
return result;
|
|
8421
|
+
}
|
|
8422
|
+
function buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots, debug) {
|
|
8423
|
+
const publishedSnapshots = pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Publish"));
|
|
8424
|
+
const publishedSnapshotsByGroupPersistent = mapByUnique(publishedSnapshots, (s) => s.group.persistentId);
|
|
8425
|
+
const result = /* @__PURE__ */ new Map();
|
|
8426
|
+
groups.forEach((group) => {
|
|
8427
|
+
if (!group.parentPersistentId)
|
|
8428
|
+
return;
|
|
8429
|
+
const currentState = itemStateFromGroup(group);
|
|
8430
|
+
const snapshot = publishedSnapshotsByGroupPersistent.get(group.persistentId);
|
|
8431
|
+
let publishedState;
|
|
8432
|
+
if (snapshot) {
|
|
8433
|
+
publishedState = itemStateFromGroup(snapshot.group);
|
|
8434
|
+
}
|
|
8435
|
+
const draftState = createDraftState(group.persistentId, currentState, publishedState, debug);
|
|
8436
|
+
if (draftState)
|
|
8437
|
+
result.set(group.persistentId, draftState);
|
|
8438
|
+
});
|
|
8439
|
+
return result;
|
|
8440
|
+
}
|
|
8441
|
+
function itemStateFromGroup(group) {
|
|
8442
|
+
return {
|
|
8443
|
+
title: group.meta.name,
|
|
8444
|
+
configuration: _nullishCoalesce(_optionalChain([group, 'access', _39 => _39.data, 'optionalAccess', _40 => _40.configuration]), () => ( defaultDocumentationItemConfigurationV2)),
|
|
8445
|
+
contentHash: "-"
|
|
8446
|
+
};
|
|
8447
|
+
}
|
|
8448
|
+
function buildGroupPublishedMetadata(groups, groupSnapshots) {
|
|
8449
|
+
const publishedGroupSnapshotsByPersistentId = mapByUnique(
|
|
8450
|
+
pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Publish")),
|
|
8451
|
+
(s) => s.group.persistentId
|
|
8452
|
+
);
|
|
8453
|
+
const result = /* @__PURE__ */ new Map();
|
|
8454
|
+
groups.forEach((g) => {
|
|
8455
|
+
if (!g.parentPersistentId)
|
|
8456
|
+
return;
|
|
8457
|
+
const publishedSnapshot = publishedGroupSnapshotsByPersistentId.get(g.persistentId);
|
|
8458
|
+
if (!publishedSnapshot)
|
|
8459
|
+
return;
|
|
8460
|
+
result.set(g.persistentId, {
|
|
8461
|
+
lastPublishedAt: publishedSnapshot.createdAt,
|
|
8462
|
+
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
8463
|
+
});
|
|
8464
|
+
});
|
|
8465
|
+
return result;
|
|
8466
|
+
}
|
|
8467
|
+
|
|
8243
8468
|
// src/yjs/version-room/utils.ts
|
|
8244
8469
|
function generatePageContentHash(content, definitions, debug = false) {
|
|
8245
8470
|
let sanitizedContent = structuredClone(content);
|
|
@@ -8319,247 +8544,8 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8319
8544
|
// Hierarchy
|
|
8320
8545
|
//
|
|
8321
8546
|
getDocumentationHierarchy(options = {}) {
|
|
8322
|
-
const includeDeletedContent = _nullishCoalesce(options.includeDeletedContent, () => ( false));
|
|
8323
8547
|
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
8324
|
-
|
|
8325
|
-
const groups = doc.getGroups();
|
|
8326
|
-
const pageSnapshots = doc.getPageSnapshots();
|
|
8327
|
-
const groupSnapshots = doc.getGroupSnapshots();
|
|
8328
|
-
if (includeDeletedContent) {
|
|
8329
|
-
pages.push(...this.getDeletedPages(pages, pageSnapshots));
|
|
8330
|
-
groups.push(...this.getDeletedGroups(groups, groupSnapshots));
|
|
8331
|
-
}
|
|
8332
|
-
const settings = doc.getDocumentationInternalSettings();
|
|
8333
|
-
const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion);
|
|
8334
|
-
const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
|
|
8335
|
-
if (!settings.isDraftFeatureAdopted) {
|
|
8336
|
-
return {
|
|
8337
|
-
pages: pageDTOs,
|
|
8338
|
-
groups: groupDTOs
|
|
8339
|
-
};
|
|
8340
|
-
}
|
|
8341
|
-
const pageDraftStates = this.buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots);
|
|
8342
|
-
const pageDraftDeletedStates = this.buildPageDraftDeletedStates(pages, pageSnapshots);
|
|
8343
|
-
const pagePublishedMetadata = this.buildPagePublishedMetadata(pages, pageSnapshots);
|
|
8344
|
-
const pageApprovalStates = this.buildPageApprovalStates(pages);
|
|
8345
|
-
pageDTOs.forEach((p) => {
|
|
8346
|
-
const draftState = _nullishCoalesce(pageDraftDeletedStates.get(p.id), () => ( pageDraftStates.get(p.id)));
|
|
8347
|
-
draftState && (p.draftState = draftState);
|
|
8348
|
-
const publishMetadata = pagePublishedMetadata.get(p.id);
|
|
8349
|
-
publishMetadata && (p.publishMetadata = publishMetadata);
|
|
8350
|
-
const approvalState = pageApprovalStates.get(p.id);
|
|
8351
|
-
approvalState && (p.approvalState = approvalState);
|
|
8352
|
-
});
|
|
8353
|
-
const groupDraftStates = this.buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots);
|
|
8354
|
-
const groupDraftDeletedStates = this.buildGroupDraftDeletedStates(groups, groupSnapshots);
|
|
8355
|
-
const groupPublishedMetadata = this.buildGroupPublishedMetadata(groups, groupSnapshots);
|
|
8356
|
-
const groupApprovalStates = this.buildGroupApprovalStates(groups, groupSnapshots);
|
|
8357
|
-
groupDTOs.forEach((g) => {
|
|
8358
|
-
const draftState = _nullishCoalesce(groupDraftDeletedStates.get(g.id), () => ( groupDraftStates.get(g.id)));
|
|
8359
|
-
draftState && (g.draftState = draftState);
|
|
8360
|
-
const publishMetadata = groupPublishedMetadata.get(g.id);
|
|
8361
|
-
publishMetadata && (g.publishMetadata = publishMetadata);
|
|
8362
|
-
const approvalState = groupApprovalStates.get(g.id);
|
|
8363
|
-
approvalState && (g.approvalState = approvalState);
|
|
8364
|
-
});
|
|
8365
|
-
return {
|
|
8366
|
-
pages: pageDTOs,
|
|
8367
|
-
groups: groupDTOs
|
|
8368
|
-
};
|
|
8369
|
-
}
|
|
8370
|
-
//
|
|
8371
|
-
// Drafts - Pages
|
|
8372
|
-
//
|
|
8373
|
-
buildPageDraftDeletedStates(pages, pageSnapshots) {
|
|
8374
|
-
const deletedSnapshotsByPageId = mapByUnique(
|
|
8375
|
-
pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Deletion")),
|
|
8376
|
-
(s) => s.page.id
|
|
8377
|
-
);
|
|
8378
|
-
const result = /* @__PURE__ */ new Map();
|
|
8379
|
-
pages.forEach((page) => {
|
|
8380
|
-
const deletedSnapshot = deletedSnapshotsByPageId.get(page.id);
|
|
8381
|
-
if (!deletedSnapshot)
|
|
8382
|
-
return;
|
|
8383
|
-
result.set(page.id, {
|
|
8384
|
-
changeType: "Deleted",
|
|
8385
|
-
deletedAt: deletedSnapshot.createdAt,
|
|
8386
|
-
deletedByUserId: deletedSnapshot.createdByUserId
|
|
8387
|
-
});
|
|
8388
|
-
});
|
|
8389
|
-
return result;
|
|
8390
|
-
}
|
|
8391
|
-
buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots) {
|
|
8392
|
-
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
8393
|
-
const pageHashes = doc.getDocumentationPageContentHashes();
|
|
8394
|
-
const publishedSnapshots = pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Publish"));
|
|
8395
|
-
const publishedSnapshotsByPageId = mapByUnique(publishedSnapshots, (s) => s.page.id);
|
|
8396
|
-
const result = /* @__PURE__ */ new Map();
|
|
8397
|
-
pages.forEach((page) => {
|
|
8398
|
-
const snapshot = publishedSnapshotsByPageId.get(page.id);
|
|
8399
|
-
let publishedState;
|
|
8400
|
-
if (snapshot) {
|
|
8401
|
-
publishedState = this.itemStateFromPage(snapshot.page, snapshot.pageContentHash);
|
|
8402
|
-
}
|
|
8403
|
-
const currentPageContentHash = _nullishCoalesce(_nullishCoalesce(pageHashes[page.persistentId], () => ( _optionalChain([snapshot, 'optionalAccess', _37 => _37.pageContentHash]))), () => ( ""));
|
|
8404
|
-
const currentState = this.itemStateFromPage(page, currentPageContentHash);
|
|
8405
|
-
const draftState = this.createDraftState(page.persistentId, currentState, publishedState);
|
|
8406
|
-
if (draftState)
|
|
8407
|
-
result.set(page.id, draftState);
|
|
8408
|
-
});
|
|
8409
|
-
return result;
|
|
8410
|
-
}
|
|
8411
|
-
itemStateFromPage(page, pageContentHash) {
|
|
8412
|
-
return {
|
|
8413
|
-
title: page.meta.name,
|
|
8414
|
-
configuration: _nullishCoalesce(page.data.configuration, () => ( defaultDocumentationItemConfigurationV2)),
|
|
8415
|
-
contentHash: pageContentHash
|
|
8416
|
-
};
|
|
8417
|
-
}
|
|
8418
|
-
getDeletedPages(pages, pageSnapshots) {
|
|
8419
|
-
const existingPageIds = new Set(pages.map((p) => p.id));
|
|
8420
|
-
const latestSnapshots = pickLatestPageSnapshots(pageSnapshots);
|
|
8421
|
-
return latestSnapshots.filter((s) => !existingPageIds.has(s.page.id)).map((s) => s.page);
|
|
8422
|
-
}
|
|
8423
|
-
buildPagePublishedMetadata(pages, pageSnapshots) {
|
|
8424
|
-
const publishedPageSnapshotsById = mapByUnique(
|
|
8425
|
-
pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Publish")),
|
|
8426
|
-
(s) => s.page.id
|
|
8427
|
-
);
|
|
8428
|
-
const result = /* @__PURE__ */ new Map();
|
|
8429
|
-
pages.forEach((p) => {
|
|
8430
|
-
const publishedSnapshot = publishedPageSnapshotsById.get(p.id);
|
|
8431
|
-
if (!publishedSnapshot)
|
|
8432
|
-
return;
|
|
8433
|
-
result.set(p.id, {
|
|
8434
|
-
lastPublishedAt: publishedSnapshot.createdAt,
|
|
8435
|
-
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
8436
|
-
});
|
|
8437
|
-
});
|
|
8438
|
-
return result;
|
|
8439
|
-
}
|
|
8440
|
-
//
|
|
8441
|
-
// Drafts - Groups
|
|
8442
|
-
//
|
|
8443
|
-
buildGroupDraftDeletedStates(groups, groupSnapshots) {
|
|
8444
|
-
const deletedSnapshotsByGroupId = mapByUnique(
|
|
8445
|
-
pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Deletion")),
|
|
8446
|
-
(s) => s.group.id
|
|
8447
|
-
);
|
|
8448
|
-
const result = /* @__PURE__ */ new Map();
|
|
8449
|
-
groups.forEach((group) => {
|
|
8450
|
-
if (!group.parentPersistentId)
|
|
8451
|
-
return;
|
|
8452
|
-
const deletedSnapshot = deletedSnapshotsByGroupId.get(group.id);
|
|
8453
|
-
if (!deletedSnapshot)
|
|
8454
|
-
return;
|
|
8455
|
-
result.set(group.id, {
|
|
8456
|
-
changeType: "Deleted",
|
|
8457
|
-
deletedAt: deletedSnapshot.createdAt,
|
|
8458
|
-
deletedByUserId: deletedSnapshot.createdByUserId
|
|
8459
|
-
});
|
|
8460
|
-
});
|
|
8461
|
-
return result;
|
|
8462
|
-
}
|
|
8463
|
-
buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots) {
|
|
8464
|
-
const publishedSnapshots = pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Publish"));
|
|
8465
|
-
const publishedSnapshotsByGroupId = mapByUnique(publishedSnapshots, (s) => s.group.id);
|
|
8466
|
-
const result = /* @__PURE__ */ new Map();
|
|
8467
|
-
groups.forEach((group) => {
|
|
8468
|
-
if (!group.parentPersistentId)
|
|
8469
|
-
return;
|
|
8470
|
-
const currentState = this.itemStateFromGroup(group);
|
|
8471
|
-
const snapshot = publishedSnapshotsByGroupId.get(group.id);
|
|
8472
|
-
let publishedState;
|
|
8473
|
-
if (snapshot) {
|
|
8474
|
-
publishedState = this.itemStateFromGroup(snapshot.group);
|
|
8475
|
-
}
|
|
8476
|
-
const draftState = this.createDraftState(group.persistentId, currentState, publishedState);
|
|
8477
|
-
if (draftState)
|
|
8478
|
-
result.set(group.id, draftState);
|
|
8479
|
-
});
|
|
8480
|
-
return result;
|
|
8481
|
-
}
|
|
8482
|
-
itemStateFromGroup(group) {
|
|
8483
|
-
return {
|
|
8484
|
-
title: group.meta.name,
|
|
8485
|
-
configuration: _nullishCoalesce(_optionalChain([group, 'access', _38 => _38.data, 'optionalAccess', _39 => _39.configuration]), () => ( defaultDocumentationItemConfigurationV2)),
|
|
8486
|
-
contentHash: "-"
|
|
8487
|
-
};
|
|
8488
|
-
}
|
|
8489
|
-
getDeletedGroups(groups, groupSnapshots) {
|
|
8490
|
-
const existingGroupIds = new Set(groups.map((p) => p.id));
|
|
8491
|
-
const latestSnapshots = pickLatestGroupSnapshots(groupSnapshots);
|
|
8492
|
-
return latestSnapshots.filter((s) => !existingGroupIds.has(s.group.id)).map((s) => s.group);
|
|
8493
|
-
}
|
|
8494
|
-
buildGroupPublishedMetadata(groups, groupSnapshots) {
|
|
8495
|
-
const publishedGroupSnapshotsById = mapByUnique(
|
|
8496
|
-
pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Publish")),
|
|
8497
|
-
(s) => s.group.id
|
|
8498
|
-
);
|
|
8499
|
-
const result = /* @__PURE__ */ new Map();
|
|
8500
|
-
groups.forEach((g) => {
|
|
8501
|
-
if (!g.parentPersistentId)
|
|
8502
|
-
return;
|
|
8503
|
-
const publishedSnapshot = publishedGroupSnapshotsById.get(g.id);
|
|
8504
|
-
if (!publishedSnapshot)
|
|
8505
|
-
return;
|
|
8506
|
-
result.set(g.id, {
|
|
8507
|
-
lastPublishedAt: publishedSnapshot.createdAt,
|
|
8508
|
-
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
8509
|
-
});
|
|
8510
|
-
});
|
|
8511
|
-
return result;
|
|
8512
|
-
}
|
|
8513
|
-
//
|
|
8514
|
-
// Drafts - Shared
|
|
8515
|
-
//
|
|
8516
|
-
createDraftState(itemPersistentId, currentState, publishedState) {
|
|
8517
|
-
if (!publishedState) {
|
|
8518
|
-
return { changeType: "Created" };
|
|
8519
|
-
}
|
|
8520
|
-
const updatedDraftState = {
|
|
8521
|
-
changeType: "Updated",
|
|
8522
|
-
changes: {}
|
|
8523
|
-
};
|
|
8524
|
-
if (currentState.title !== publishedState.title) {
|
|
8525
|
-
if (this.debug) {
|
|
8526
|
-
console.log(`Item ${itemPersistentId} (${currentState.title}): updated title`);
|
|
8527
|
-
}
|
|
8528
|
-
updatedDraftState.changes.previousTitle = publishedState.title;
|
|
8529
|
-
}
|
|
8530
|
-
const currentConfigHash = generateHash(currentState.configuration, this.debug);
|
|
8531
|
-
const publishedConfigHash = generateHash(publishedState.configuration, this.debug);
|
|
8532
|
-
if (currentConfigHash !== publishedConfigHash) {
|
|
8533
|
-
if (this.debug) {
|
|
8534
|
-
console.log(`Item ${itemPersistentId} (${currentState.title}): updated configuration`);
|
|
8535
|
-
}
|
|
8536
|
-
const configurationDto = documentationItemConfigurationToDTOV2(publishedState.configuration);
|
|
8537
|
-
updatedDraftState.changes.previousConfiguration = configurationDto;
|
|
8538
|
-
}
|
|
8539
|
-
if (currentState.contentHash !== publishedState.contentHash) {
|
|
8540
|
-
if (this.debug) {
|
|
8541
|
-
console.log(`Item ${itemPersistentId} (${currentState.title}): updated content hash`);
|
|
8542
|
-
}
|
|
8543
|
-
updatedDraftState.changes.previousContentHash = publishedState.contentHash;
|
|
8544
|
-
}
|
|
8545
|
-
if (Object.keys(updatedDraftState.changes).length) {
|
|
8546
|
-
return updatedDraftState;
|
|
8547
|
-
}
|
|
8548
|
-
return void 0;
|
|
8549
|
-
}
|
|
8550
|
-
buildGroupApprovalStates(groups, groupSnapshots) {
|
|
8551
|
-
const result = /* @__PURE__ */ new Map();
|
|
8552
|
-
const allGroups = [...groups, ...groupSnapshots];
|
|
8553
|
-
for (const g of allGroups) {
|
|
8554
|
-
const approvalState = {
|
|
8555
|
-
approvalState: "Approved",
|
|
8556
|
-
designSystemVersionId: g.designSystemVersionId,
|
|
8557
|
-
persistentId: g.persistentId,
|
|
8558
|
-
groupId: g.id
|
|
8559
|
-
};
|
|
8560
|
-
result.set(g.id, approvalState);
|
|
8561
|
-
}
|
|
8562
|
-
return result;
|
|
8548
|
+
return computeDocsHierarchy(doc.getState(), options);
|
|
8563
8549
|
}
|
|
8564
8550
|
//
|
|
8565
8551
|
// Update page content hash
|
|
@@ -8595,19 +8581,6 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8595
8581
|
const settings = doc.getDocumentationInternalSettings();
|
|
8596
8582
|
return settings.approvalRequiredForPublishing;
|
|
8597
8583
|
}
|
|
8598
|
-
buildPageApprovalStates(pages) {
|
|
8599
|
-
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
8600
|
-
const pageIds = pages.map((p) => p.id);
|
|
8601
|
-
const result = /* @__PURE__ */ new Map();
|
|
8602
|
-
const approvals = doc.getApprovals();
|
|
8603
|
-
for (const pId of pageIds) {
|
|
8604
|
-
const approval = approvals.find((approval2) => approval2.pageId === pId);
|
|
8605
|
-
if (approval) {
|
|
8606
|
-
result.set(pId, approval);
|
|
8607
|
-
}
|
|
8608
|
-
}
|
|
8609
|
-
return result;
|
|
8610
|
-
}
|
|
8611
8584
|
};
|
|
8612
8585
|
|
|
8613
8586
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
@@ -8634,7 +8607,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
|
|
|
8634
8607
|
function itemConfigurationToYjs(yDoc, item) {
|
|
8635
8608
|
yDoc.transact((trx) => {
|
|
8636
8609
|
const { title, configuration } = item;
|
|
8637
|
-
const header = _optionalChain([configuration, 'optionalAccess',
|
|
8610
|
+
const header = _optionalChain([configuration, 'optionalAccess', _41 => _41.header]);
|
|
8638
8611
|
if (title !== void 0) {
|
|
8639
8612
|
const headerYMap = trx.doc.getMap("itemTitle");
|
|
8640
8613
|
headerYMap.set("title", title);
|
|
@@ -8652,9 +8625,9 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
8652
8625
|
header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
|
|
8653
8626
|
}
|
|
8654
8627
|
const configYMap = trx.doc.getMap("itemConfiguration");
|
|
8655
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
8656
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
8657
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
8628
|
+
_optionalChain([configuration, 'optionalAccess', _42 => _42.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
|
|
8629
|
+
_optionalChain([configuration, 'optionalAccess', _43 => _43.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
|
|
8630
|
+
_optionalChain([configuration, 'optionalAccess', _44 => _44.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
8658
8631
|
});
|
|
8659
8632
|
}
|
|
8660
8633
|
function yjsToItemConfiguration(yDoc) {
|
|
@@ -9511,7 +9484,7 @@ var ListTreeBuilder = class {
|
|
|
9511
9484
|
}
|
|
9512
9485
|
addWithProperty(block, multiRichTextProperty) {
|
|
9513
9486
|
const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
|
|
9514
|
-
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess',
|
|
9487
|
+
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _45 => _45.multiRichTextStyle]) || "OL");
|
|
9515
9488
|
}
|
|
9516
9489
|
add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
|
|
9517
9490
|
const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
|
|
@@ -9526,7 +9499,7 @@ var ListTreeBuilder = class {
|
|
|
9526
9499
|
}
|
|
9527
9500
|
const listParent = this.getParentOfDepth(block.data.indentLevel);
|
|
9528
9501
|
const lastChild = listParent.children[listParent.children.length - 1];
|
|
9529
|
-
if (_optionalChain([lastChild, 'optionalAccess',
|
|
9502
|
+
if (_optionalChain([lastChild, 'optionalAccess', _46 => _46.type]) === "List") {
|
|
9530
9503
|
lastChild.children.push(...list.leadingChildren);
|
|
9531
9504
|
return;
|
|
9532
9505
|
} else {
|
|
@@ -9757,7 +9730,7 @@ function serializeAsRichTextBlock(input) {
|
|
|
9757
9730
|
const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
|
|
9758
9731
|
const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
|
|
9759
9732
|
const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
|
|
9760
|
-
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess',
|
|
9733
|
+
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _47 => _47.richTextStyle]), () => ( "Default"));
|
|
9761
9734
|
switch (style) {
|
|
9762
9735
|
case "Callout":
|
|
9763
9736
|
return serializeAsCallout(enrichedInput);
|
|
@@ -9981,7 +9954,7 @@ function serializeBlockNodeAttributes(block) {
|
|
|
9981
9954
|
};
|
|
9982
9955
|
}
|
|
9983
9956
|
function richTextHeadingLevel(property) {
|
|
9984
|
-
const style = _optionalChain([property, 'access',
|
|
9957
|
+
const style = _optionalChain([property, 'access', _48 => _48.options, 'optionalAccess', _49 => _49.richTextStyle]);
|
|
9985
9958
|
if (!style)
|
|
9986
9959
|
return void 0;
|
|
9987
9960
|
switch (style) {
|
|
@@ -10102,7 +10075,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
10102
10075
|
linksTo: i.linksTo
|
|
10103
10076
|
};
|
|
10104
10077
|
});
|
|
10105
|
-
const columns = _optionalChain([block, 'access',
|
|
10078
|
+
const columns = _optionalChain([block, 'access', _50 => _50.data, 'access', _51 => _51.appearance, 'optionalAccess', _52 => _52.numberOfColumns]);
|
|
10106
10079
|
return {
|
|
10107
10080
|
type: serializeCustomBlockNodeType(block, definition),
|
|
10108
10081
|
attrs: {
|
|
@@ -12261,7 +12234,7 @@ function parseAsListNode(prosemirrorNode) {
|
|
|
12261
12234
|
function parseAsListNodeItem(prosemirrorNode) {
|
|
12262
12235
|
if (prosemirrorNode.type !== "listItem")
|
|
12263
12236
|
return null;
|
|
12264
|
-
const firstChild = _optionalChain([prosemirrorNode, 'access',
|
|
12237
|
+
const firstChild = _optionalChain([prosemirrorNode, 'access', _53 => _53.content, 'optionalAccess', _54 => _54[0]]);
|
|
12265
12238
|
if (!firstChild || firstChild.type !== "paragraph")
|
|
12266
12239
|
return null;
|
|
12267
12240
|
return parseRichText(_nullishCoalesce(firstChild.content, () => ( [])));
|
|
@@ -12416,10 +12389,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
|
|
|
12416
12389
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12417
12390
|
const result = [];
|
|
12418
12391
|
const listItems = [];
|
|
12419
|
-
_optionalChain([prosemirrorNode, 'access',
|
|
12392
|
+
_optionalChain([prosemirrorNode, 'access', _55 => _55.content, 'optionalAccess', _56 => _56.forEach, 'call', _57 => _57((c) => {
|
|
12420
12393
|
if (c.type !== "listItem")
|
|
12421
12394
|
return;
|
|
12422
|
-
_optionalChain([c, 'access',
|
|
12395
|
+
_optionalChain([c, 'access', _58 => _58.content, 'optionalAccess', _59 => _59.forEach, 'call', _60 => _60((cc) => {
|
|
12423
12396
|
listItems.push(cc);
|
|
12424
12397
|
})]);
|
|
12425
12398
|
})]);
|
|
@@ -12535,17 +12508,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12535
12508
|
return null;
|
|
12536
12509
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12537
12510
|
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
|
|
12538
|
-
const tableChild = _optionalChain([prosemirrorNode, 'access',
|
|
12511
|
+
const tableChild = _optionalChain([prosemirrorNode, 'access', _61 => _61.content, 'optionalAccess', _62 => _62.find, 'call', _63 => _63((c) => c.type === "table")]);
|
|
12539
12512
|
if (!tableChild) {
|
|
12540
12513
|
return emptyTable(id, variantId, 0);
|
|
12541
12514
|
}
|
|
12542
|
-
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access',
|
|
12515
|
+
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _64 => _64.content, 'optionalAccess', _65 => _65.filter, 'call', _66 => _66((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _67 => _67.content, 'optionalAccess', _68 => _68.length]))]), () => ( []));
|
|
12543
12516
|
if (!rows.length) {
|
|
12544
12517
|
return emptyTable(id, variantId, 0);
|
|
12545
12518
|
}
|
|
12546
|
-
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access',
|
|
12547
|
-
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access',
|
|
12548
|
-
const hasHeaderRow = _optionalChain([rows, 'access',
|
|
12519
|
+
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _69 => _69[0], 'access', _70 => _70.content, 'optionalAccess', _71 => _71.filter, 'call', _72 => _72((c) => c.type === "tableHeader"), 'access', _73 => _73.length]), () => ( 0));
|
|
12520
|
+
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _74 => _74.content, 'optionalAccess', _75 => _75[0], 'optionalAccess', _76 => _76.type]) === "tableHeader").length;
|
|
12521
|
+
const hasHeaderRow = _optionalChain([rows, 'access', _77 => _77[0], 'access', _78 => _78.content, 'optionalAccess', _79 => _79.length]) === rowHeaderCells;
|
|
12549
12522
|
const hasHeaderColumn = rows.length === columnHeaderCells;
|
|
12550
12523
|
const tableValue = {
|
|
12551
12524
|
showBorder: hasBorder,
|
|
@@ -12627,7 +12600,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12627
12600
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
12628
12601
|
if (!parsedItems.success)
|
|
12629
12602
|
return null;
|
|
12630
|
-
const rawImagePropertyValue = _optionalChain([parsedItems, 'access',
|
|
12603
|
+
const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _80 => _80.data, 'access', _81 => _81[0], 'optionalAccess', _82 => _82.props, 'access', _83 => _83.image]);
|
|
12631
12604
|
if (!rawImagePropertyValue)
|
|
12632
12605
|
return null;
|
|
12633
12606
|
const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
|
|
@@ -12868,7 +12841,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
|
12868
12841
|
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
|
|
12869
12842
|
}
|
|
12870
12843
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12871
|
-
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access',
|
|
12844
|
+
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _84 => _84.attrs, 'optionalAccess', _85 => _85[attributeName]]));
|
|
12872
12845
|
if (parsedAttr.success) {
|
|
12873
12846
|
return parsedAttr.data;
|
|
12874
12847
|
} else {
|
|
@@ -12923,6 +12896,230 @@ var BackendVersionRoomYDoc = class {
|
|
|
12923
12896
|
}
|
|
12924
12897
|
};
|
|
12925
12898
|
|
|
12899
|
+
// src/sync/local-state.ts
|
|
12900
|
+
var LocalStorage = class {
|
|
12901
|
+
constructor() {
|
|
12902
|
+
__publicField(this, "pages", /* @__PURE__ */ new Map());
|
|
12903
|
+
__publicField(this, "deletedPageIds", /* @__PURE__ */ new Set());
|
|
12904
|
+
__publicField(this, "groups", /* @__PURE__ */ new Map());
|
|
12905
|
+
}
|
|
12906
|
+
setPage(page) {
|
|
12907
|
+
if (this.pages.has(page.persistentId)) {
|
|
12908
|
+
throw new Error(`Page with id ${page.persistentId} already exists`);
|
|
12909
|
+
}
|
|
12910
|
+
this.pages.set(page.persistentId, page);
|
|
12911
|
+
}
|
|
12912
|
+
deletePage(persistentId) {
|
|
12913
|
+
this.pages.delete(persistentId);
|
|
12914
|
+
this.deletedPageIds.add(persistentId);
|
|
12915
|
+
}
|
|
12916
|
+
tryGetPage(persistentId) {
|
|
12917
|
+
return this.pages.get(persistentId);
|
|
12918
|
+
}
|
|
12919
|
+
getPage(persistentId) {
|
|
12920
|
+
const page = this.tryGetPage(persistentId);
|
|
12921
|
+
if (!page)
|
|
12922
|
+
throw new Error(`Page with id ${persistentId} doesn't exist`);
|
|
12923
|
+
return page;
|
|
12924
|
+
}
|
|
12925
|
+
getAllPages() {
|
|
12926
|
+
return Array.from(this.pages.values());
|
|
12927
|
+
}
|
|
12928
|
+
getAllDeletedPages() {
|
|
12929
|
+
return this.deletedPageIds;
|
|
12930
|
+
}
|
|
12931
|
+
removePage(persistentId) {
|
|
12932
|
+
this.pages.delete(persistentId);
|
|
12933
|
+
}
|
|
12934
|
+
};
|
|
12935
|
+
|
|
12936
|
+
// src/sync/docs-structure-repo.ts
|
|
12937
|
+
var DocsStructureRepo = class {
|
|
12938
|
+
};
|
|
12939
|
+
var DocsStructureRepository = class {
|
|
12940
|
+
constructor(yDoc, transactionExecutor) {
|
|
12941
|
+
__publicField(this, "localState", new LocalStorage());
|
|
12942
|
+
__publicField(this, "yDoc");
|
|
12943
|
+
__publicField(this, "yObserver");
|
|
12944
|
+
__publicField(this, "yState");
|
|
12945
|
+
__publicField(this, "trxQueue");
|
|
12946
|
+
__publicField(this, "hierarchyObservers", /* @__PURE__ */ new Set());
|
|
12947
|
+
this.yDoc = yDoc;
|
|
12948
|
+
this.yState = new VersionRoomBaseYDoc(this.yDoc).getState();
|
|
12949
|
+
this.yObserver = yDoc.on("update", () => this.onYUpdate());
|
|
12950
|
+
this.trxQueue = new TransactionQueue(transactionExecutor);
|
|
12951
|
+
}
|
|
12952
|
+
//
|
|
12953
|
+
// Lifecycle
|
|
12954
|
+
//
|
|
12955
|
+
addHierarchyObserver(observer) {
|
|
12956
|
+
this.hierarchyObservers.add(observer);
|
|
12957
|
+
}
|
|
12958
|
+
removeHierarchyObserver(observer) {
|
|
12959
|
+
this.hierarchyObservers.delete(observer);
|
|
12960
|
+
}
|
|
12961
|
+
dispose() {
|
|
12962
|
+
this.yDoc.off("update", this.yObserver);
|
|
12963
|
+
this.hierarchyObservers.clear();
|
|
12964
|
+
this.trxQueue.clear();
|
|
12965
|
+
}
|
|
12966
|
+
//
|
|
12967
|
+
// Actions
|
|
12968
|
+
//
|
|
12969
|
+
createPage(input) {
|
|
12970
|
+
void this.createPage(input);
|
|
12971
|
+
}
|
|
12972
|
+
createPagePromise(input) {
|
|
12973
|
+
this.localState.setPage({
|
|
12974
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
12975
|
+
parentPersistentId: input.parentPersistentId,
|
|
12976
|
+
persistentId: input.persistentId,
|
|
12977
|
+
shortPersistentId: generateShortPersistentId(),
|
|
12978
|
+
slug: slugify(input.title),
|
|
12979
|
+
meta: { name: input.title },
|
|
12980
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
12981
|
+
data: { configuration: input.configuration },
|
|
12982
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
12983
|
+
designSystemVersionId: ""
|
|
12984
|
+
});
|
|
12985
|
+
this.recalculateHierarchy();
|
|
12986
|
+
return this.trxQueue.enqueue({
|
|
12987
|
+
type: "DocumentationPageCreate",
|
|
12988
|
+
input: {
|
|
12989
|
+
persistentId: input.persistentId,
|
|
12990
|
+
parentPersistentId: input.parentPersistentId,
|
|
12991
|
+
title: input.title,
|
|
12992
|
+
afterPersistentId: input.afterPersistentId,
|
|
12993
|
+
configuration: input.configuration
|
|
12994
|
+
}
|
|
12995
|
+
});
|
|
12996
|
+
}
|
|
12997
|
+
updatePage(update) {
|
|
12998
|
+
void this.updatePagePromise(update);
|
|
12999
|
+
}
|
|
13000
|
+
updatePagePromise(update) {
|
|
13001
|
+
this.updatePageLocally(update);
|
|
13002
|
+
this.recalculateHierarchy();
|
|
13003
|
+
return this.trxQueue.enqueue({
|
|
13004
|
+
type: "DocumentationPageUpdate",
|
|
13005
|
+
input: {
|
|
13006
|
+
id: update.persistentId,
|
|
13007
|
+
configuration: update.configuration,
|
|
13008
|
+
title: update.title
|
|
13009
|
+
}
|
|
13010
|
+
});
|
|
13011
|
+
}
|
|
13012
|
+
updatePageLocally(update) {
|
|
13013
|
+
const basePage = this.lookupPage(update.persistentId);
|
|
13014
|
+
this.localState.setPage(this.createLocalPageUpdate(basePage, update));
|
|
13015
|
+
}
|
|
13016
|
+
deletePagePromise(persistentId) {
|
|
13017
|
+
this.lookupPage(persistentId);
|
|
13018
|
+
this.localState.deletePage(persistentId);
|
|
13019
|
+
this.recalculateHierarchy();
|
|
13020
|
+
return this.trxQueue.enqueue({
|
|
13021
|
+
type: "DocumentationPageDelete",
|
|
13022
|
+
input: {
|
|
13023
|
+
id: persistentId
|
|
13024
|
+
}
|
|
13025
|
+
});
|
|
13026
|
+
}
|
|
13027
|
+
deletePage(persistentId) {
|
|
13028
|
+
void this.deletePagePromise(persistentId);
|
|
13029
|
+
}
|
|
13030
|
+
createLocalPageUpdate(basePage, update) {
|
|
13031
|
+
const { title, configuration } = update;
|
|
13032
|
+
return {
|
|
13033
|
+
createdAt: basePage.createdAt,
|
|
13034
|
+
data: {
|
|
13035
|
+
configuration: _nullishCoalesce(configuration, () => ( basePage.data.configuration))
|
|
13036
|
+
},
|
|
13037
|
+
designSystemVersionId: basePage.designSystemVersionId,
|
|
13038
|
+
meta: { name: _nullishCoalesce(title, () => ( basePage.meta.name)) },
|
|
13039
|
+
parentPersistentId: basePage.parentPersistentId,
|
|
13040
|
+
persistentId: basePage.persistentId,
|
|
13041
|
+
shortPersistentId: basePage.shortPersistentId,
|
|
13042
|
+
sortOrder: basePage.sortOrder,
|
|
13043
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
13044
|
+
slug: basePage.slug
|
|
13045
|
+
};
|
|
13046
|
+
}
|
|
13047
|
+
lookupPage(persistentId) {
|
|
13048
|
+
const localPageToUpdate = this.localState.tryGetPage(persistentId);
|
|
13049
|
+
if (localPageToUpdate)
|
|
13050
|
+
return localPageToUpdate;
|
|
13051
|
+
const remotePage = this.yState.pages.find((p) => p.persistentId === persistentId);
|
|
13052
|
+
if (remotePage)
|
|
13053
|
+
return remotePage;
|
|
13054
|
+
throw SupernovaException.notFound(`Page ${persistentId} was not found`);
|
|
13055
|
+
}
|
|
13056
|
+
//
|
|
13057
|
+
// Reactions
|
|
13058
|
+
//
|
|
13059
|
+
recalculateHierarchy() {
|
|
13060
|
+
const allPagesById = mapByUnique(this.yState.pages, (p) => p.persistentId);
|
|
13061
|
+
this.localState.getAllPages().forEach((p) => {
|
|
13062
|
+
allPagesById.set(p.persistentId, p);
|
|
13063
|
+
});
|
|
13064
|
+
this.localState.getAllDeletedPages().forEach((id) => allPagesById.delete(id));
|
|
13065
|
+
const hierarchy = computeDocsHierarchy({
|
|
13066
|
+
approvals: this.yState.approvals,
|
|
13067
|
+
groups: this.yState.groups,
|
|
13068
|
+
groupSnapshots: this.yState.groupSnapshots,
|
|
13069
|
+
pageContentHashes: this.yState.pageContentHashes,
|
|
13070
|
+
pages: Array.from(allPagesById.values()),
|
|
13071
|
+
pageSnapshots: this.yState.pageSnapshots,
|
|
13072
|
+
settings: this.yState.settings
|
|
13073
|
+
});
|
|
13074
|
+
this.hierarchyObservers.forEach((o) => o(hierarchy));
|
|
13075
|
+
}
|
|
13076
|
+
onYUpdate() {
|
|
13077
|
+
this.yState = new VersionRoomBaseYDoc(this.yDoc).getState();
|
|
13078
|
+
this.recalculateHierarchy();
|
|
13079
|
+
}
|
|
13080
|
+
//
|
|
13081
|
+
// Utils
|
|
13082
|
+
//
|
|
13083
|
+
calculateSortOrder(parentPersistentId, afterPersistentId) {
|
|
13084
|
+
const sortOrderStep = Math.pow(2, 16);
|
|
13085
|
+
const neighbours = [
|
|
13086
|
+
...this.yState.pages.filter((p) => p.parentPersistentId === parentPersistentId),
|
|
13087
|
+
...this.yState.groups.filter((g) => g.parentPersistentId === parentPersistentId)
|
|
13088
|
+
];
|
|
13089
|
+
if (!neighbours.length)
|
|
13090
|
+
return 0;
|
|
13091
|
+
neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
13092
|
+
if (!afterPersistentId)
|
|
13093
|
+
return neighbours[0].sortOrder - sortOrderStep;
|
|
13094
|
+
const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
|
|
13095
|
+
if (index < 0 || index === neighbours.length - 1) {
|
|
13096
|
+
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13097
|
+
}
|
|
13098
|
+
const left = neighbours[index].sortOrder;
|
|
13099
|
+
const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _86 => _86[index + 1], 'optionalAccess', _87 => _87.sortOrder]), () => ( left + sortOrderStep * 2));
|
|
13100
|
+
return (right + left) / 2;
|
|
13101
|
+
}
|
|
13102
|
+
};
|
|
13103
|
+
var TransactionQueue = class {
|
|
13104
|
+
constructor(executor) {
|
|
13105
|
+
__publicField(this, "executor");
|
|
13106
|
+
__publicField(this, "queue", new (0, _pqueue2.default)({
|
|
13107
|
+
concurrency: 1
|
|
13108
|
+
}));
|
|
13109
|
+
this.executor = executor;
|
|
13110
|
+
}
|
|
13111
|
+
enqueue(trx) {
|
|
13112
|
+
return this.queue.add(() => this.executor(trx));
|
|
13113
|
+
}
|
|
13114
|
+
onEmpty() {
|
|
13115
|
+
return this.queue.onEmpty();
|
|
13116
|
+
}
|
|
13117
|
+
clear() {
|
|
13118
|
+
this.queue.clear();
|
|
13119
|
+
}
|
|
13120
|
+
};
|
|
13121
|
+
|
|
13122
|
+
|
|
12926
13123
|
|
|
12927
13124
|
|
|
12928
13125
|
|
|
@@ -13315,5 +13512,5 @@ var BackendVersionRoomYDoc = class {
|
|
|
13315
13512
|
|
|
13316
13513
|
|
|
13317
13514
|
|
|
13318
|
-
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; 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.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; 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.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; 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.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoom = DTODocumentationPageRoom; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageRoomResponse = DTODocumentationPageRoomResponse; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; 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.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionValue = DTOExporterPropertyDefinitionValue; exports.DTOExporterPropertyDefinitionValueMap = DTOExporterPropertyDefinitionValueMap; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; 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.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LiveblocksEndpoint = LiveblocksEndpoint; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; 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.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
13515
|
+
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; 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.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; 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.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; 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.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; 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.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionValue = DTOExporterPropertyDefinitionValue; exports.DTOExporterPropertyDefinitionValueMap = DTOExporterPropertyDefinitionValueMap; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; 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.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepo = DocsStructureRepo; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LocalStorage = LocalStorage; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; 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.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
13319
13516
|
//# sourceMappingURL=index.js.map
|