@supernova-studio/client 0.44.0 → 0.45.1
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 +319 -122
- package/dist/index.d.ts +319 -122
- package/dist/index.js +311 -292
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +563 -544
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +30 -5
- package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +28 -8
- package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +18 -16
- package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +15 -13
- package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +62 -0
- package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +47 -26
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +23 -9
- package/src/api/conversion/index.ts +0 -2
- package/src/api/dto/design-systems/version.ts +17 -0
- package/src/api/dto/workspaces/integrations.ts +2 -2
- package/src/api/payloads/design-systems/version.ts +5 -2
- package/src/api/payloads/workspaces/workspace-integrations.ts +9 -1
- package/src/yjs/design-system-content/documentation-hierarchy.ts +5 -11
- package/src/api/conversion/design-system/index.ts +0 -1
- package/src/api/conversion/design-system/version-to-dto.ts +0 -17
- package/src/api/conversion/design-systems/brand.ts +0 -14
- package/src/api/conversion/design-systems/elements/index.ts +0 -1
- package/src/api/conversion/design-systems/elements/properties/index.ts +0 -2
- package/src/api/conversion/design-systems/elements/properties/property-definition.ts +0 -21
- package/src/api/conversion/design-systems/elements/properties/property-value.ts +0 -28
- package/src/api/conversion/design-systems/index.ts +0 -3
- package/src/api/conversion/design-systems/view.ts +0 -18
package/dist/index.js
CHANGED
|
@@ -1,93 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }//
|
|
2
|
-
function designSystemVersionToDto(version) {
|
|
3
|
-
return {
|
|
4
|
-
id: version.id,
|
|
5
|
-
designSystemId: version.designSystemId,
|
|
6
|
-
createdAt: version.createdAt,
|
|
7
|
-
meta: {
|
|
8
|
-
name: version.name,
|
|
9
|
-
description: version.comment
|
|
10
|
-
},
|
|
11
|
-
version: version.version,
|
|
12
|
-
changeLog: version.changeLog,
|
|
13
|
-
isReadonly: version.isReadonly
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// src/api/conversion/design-systems/elements/properties/property-definition.ts
|
|
18
|
-
function elementPropertyDefinitionToDto(elementProperyDefinition) {
|
|
19
|
-
return {
|
|
20
|
-
id: elementProperyDefinition.id,
|
|
21
|
-
designSystemVersionId: elementProperyDefinition.designSystemVersionId,
|
|
22
|
-
meta: {
|
|
23
|
-
name: elementProperyDefinition.name,
|
|
24
|
-
description: elementProperyDefinition.description
|
|
25
|
-
},
|
|
26
|
-
persistentId: elementProperyDefinition.persistentId,
|
|
27
|
-
type: elementProperyDefinition.type,
|
|
28
|
-
targetElementType: elementProperyDefinition.targetElementType,
|
|
29
|
-
codeName: elementProperyDefinition.codeName,
|
|
30
|
-
options: elementProperyDefinition.options,
|
|
31
|
-
linkElementType: elementProperyDefinition.linkElementType
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// src/api/conversion/design-systems/elements/properties/property-value.ts
|
|
36
|
-
function elementPropertyValueToDto(elementPropertyValue) {
|
|
37
|
-
let value;
|
|
38
|
-
let valuePreview;
|
|
39
|
-
if (elementPropertyValue.stringValue) {
|
|
40
|
-
value = elementPropertyValue.stringValue;
|
|
41
|
-
} else if (elementPropertyValue.numberValue) {
|
|
42
|
-
value = elementPropertyValue.numberValue;
|
|
43
|
-
} else if (typeof elementPropertyValue.booleanValue === "boolean") {
|
|
44
|
-
value = elementPropertyValue.booleanValue;
|
|
45
|
-
} else if (elementPropertyValue.referenceValue) {
|
|
46
|
-
value = elementPropertyValue.referenceValue;
|
|
47
|
-
valuePreview = elementPropertyValue.referenceValuePreview;
|
|
48
|
-
} else {
|
|
49
|
-
value = void 0;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
id: elementPropertyValue.id,
|
|
53
|
-
designSystemVersionId: elementPropertyValue.designSystemVersionId,
|
|
54
|
-
definitionId: elementPropertyValue.definitionPersistentId,
|
|
55
|
-
targetElementId: elementPropertyValue.targetElementPersistentId,
|
|
56
|
-
value,
|
|
57
|
-
valuePreview
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// src/api/conversion/design-systems/brand.ts
|
|
62
|
-
function designSystemBrandToDto(brand) {
|
|
63
|
-
return {
|
|
64
|
-
id: brand.id,
|
|
65
|
-
designSystemVersionId: brand.designSystemVersionId,
|
|
66
|
-
persistentId: brand.persistentId,
|
|
67
|
-
meta: {
|
|
68
|
-
name: brand.name,
|
|
69
|
-
description: brand.description
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// src/api/conversion/design-systems/view.ts
|
|
75
|
-
function elementViewToDto(elementView, columns) {
|
|
76
|
-
columns.sort((lhs, rhs) => lhs.sortPosition - rhs.sortPosition);
|
|
77
|
-
return {
|
|
78
|
-
id: elementView.id,
|
|
79
|
-
persistentId: elementView.persistentId,
|
|
80
|
-
targetElementType: elementView.targetElementType,
|
|
81
|
-
isDefault: elementView.isDefault,
|
|
82
|
-
meta: {
|
|
83
|
-
name: elementView.name,
|
|
84
|
-
description: elementView.description
|
|
85
|
-
},
|
|
86
|
-
columns
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// ../model/dist/index.mjs
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../model/dist/index.mjs
|
|
91
2
|
var _zod = require('zod');
|
|
92
3
|
|
|
93
4
|
|
|
@@ -893,6 +804,7 @@ var PageBlockShortcut = _zod.z.object({
|
|
|
893
804
|
description: nullishToOptional(_zod.z.string()),
|
|
894
805
|
asset: nullishToOptional(PageBlockAsset),
|
|
895
806
|
documentationItemId: nullishToOptional(_zod.z.string()),
|
|
807
|
+
pageHeadingId: nullishToOptional(_zod.z.string()),
|
|
896
808
|
url: nullishToOptional(_zod.z.string()),
|
|
897
809
|
openInNewTab: nullishToOptional(_zod.z.boolean()),
|
|
898
810
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
@@ -1287,8 +1199,8 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
1287
1199
|
};
|
|
1288
1200
|
var DocumentationItemConfigurationV2 = _zod.z.object({
|
|
1289
1201
|
showSidebar: _zod.z.boolean(),
|
|
1290
|
-
isPrivate: _zod.z.boolean(),
|
|
1291
|
-
isHidden: _zod.z.boolean(),
|
|
1202
|
+
isPrivate: _zod.z.boolean().optional(),
|
|
1203
|
+
isHidden: _zod.z.boolean().optional(),
|
|
1292
1204
|
header: DocumentationItemHeaderV2
|
|
1293
1205
|
});
|
|
1294
1206
|
var DocumentationPageDataV2 = _zod.z.object({
|
|
@@ -2978,13 +2890,13 @@ var ExternalOAuthRequest = _zod.z.object({
|
|
|
2978
2890
|
state: _zod.z.string(),
|
|
2979
2891
|
createdAt: _zod.z.coerce.date()
|
|
2980
2892
|
});
|
|
2981
|
-
var IntegrationCredentialsType = _zod.z.enum(["OAuth2", "PAT"]);
|
|
2893
|
+
var IntegrationCredentialsType = _zod.z.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
2982
2894
|
var IntegrationCredentialsProfile = _zod.z.object({
|
|
2983
2895
|
id: _zod.z.string(),
|
|
2984
2896
|
username: _zod.z.string().optional(),
|
|
2985
2897
|
avatarUrl: _zod.z.string().optional()
|
|
2986
2898
|
});
|
|
2987
|
-
var
|
|
2899
|
+
var IntegrationCredentials = _zod.z.object({
|
|
2988
2900
|
id: _zod.z.string(),
|
|
2989
2901
|
type: IntegrationCredentialsType,
|
|
2990
2902
|
integrationId: _zod.z.string(),
|
|
@@ -2992,7 +2904,8 @@ var IntegrationCredentialsSchema = _zod.z.object({
|
|
|
2992
2904
|
userId: _zod.z.string(),
|
|
2993
2905
|
createdAt: _zod.z.coerce.date(),
|
|
2994
2906
|
refreshToken: _zod.z.string().optional(),
|
|
2995
|
-
profile: IntegrationCredentialsProfile.optional()
|
|
2907
|
+
profile: IntegrationCredentialsProfile.optional(),
|
|
2908
|
+
customUrl: _zod.z.string().optional()
|
|
2996
2909
|
});
|
|
2997
2910
|
var IntegrationType = _zod.z.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2998
2911
|
var Integration = _zod.z.object({
|
|
@@ -3000,7 +2913,29 @@ var Integration = _zod.z.object({
|
|
|
3000
2913
|
workspaceId: _zod.z.string(),
|
|
3001
2914
|
type: IntegrationType,
|
|
3002
2915
|
createdAt: _zod.z.coerce.date(),
|
|
3003
|
-
integrationCredentials: _zod.z.array(
|
|
2916
|
+
integrationCredentials: _zod.z.array(IntegrationCredentials).optional()
|
|
2917
|
+
});
|
|
2918
|
+
var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
|
|
2919
|
+
var IntegrationTokenResponse = _zod.z.object({
|
|
2920
|
+
access_token: _zod.z.string(),
|
|
2921
|
+
refresh_token: _zod.z.string().optional(),
|
|
2922
|
+
expires_in: _zod.z.number().optional(),
|
|
2923
|
+
token_type: _zod.z.string().optional(),
|
|
2924
|
+
custom_url: _zod.z.string().optional().refine((value) => {
|
|
2925
|
+
if (!value)
|
|
2926
|
+
return true;
|
|
2927
|
+
if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
|
|
2928
|
+
return false;
|
|
2929
|
+
return true;
|
|
2930
|
+
}, "Custom URL validation failed")
|
|
2931
|
+
}).transform((data) => {
|
|
2932
|
+
return {
|
|
2933
|
+
accessToken: data.access_token,
|
|
2934
|
+
refreshToken: data.refresh_token,
|
|
2935
|
+
expiresIn: data.expires_in,
|
|
2936
|
+
tokenType: data.token_type,
|
|
2937
|
+
customUrl: data.custom_url
|
|
2938
|
+
};
|
|
3004
2939
|
});
|
|
3005
2940
|
var IntegrationTokenSchema = _zod.z.object({
|
|
3006
2941
|
id: _zod.z.string(),
|
|
@@ -3788,7 +3723,7 @@ var RESERVED_SLUGS = [
|
|
|
3788
3723
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3789
3724
|
|
|
3790
3725
|
// src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
|
|
3791
|
-
var
|
|
3726
|
+
var getDtoDefaultItemConfigurationV2 = () => ({
|
|
3792
3727
|
showSidebar: true,
|
|
3793
3728
|
isHidden: false,
|
|
3794
3729
|
isPrivate: false,
|
|
@@ -3799,18 +3734,97 @@ var dtoDefaultItemConfigurationV2 = {
|
|
|
3799
3734
|
showBackgroundOverlay: false,
|
|
3800
3735
|
showCoverText: true
|
|
3801
3736
|
}
|
|
3802
|
-
};
|
|
3737
|
+
});
|
|
3803
3738
|
function documentationItemConfigurationToDTOV2(config) {
|
|
3739
|
+
const dtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2();
|
|
3804
3740
|
if (!config)
|
|
3805
3741
|
return dtoDefaultItemConfigurationV2;
|
|
3806
3742
|
return {
|
|
3807
3743
|
header: config.header,
|
|
3808
|
-
isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.
|
|
3744
|
+
isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isHidden)),
|
|
3809
3745
|
isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
|
|
3810
3746
|
showSidebar: config.showSidebar
|
|
3811
3747
|
};
|
|
3812
3748
|
}
|
|
3813
3749
|
|
|
3750
|
+
// src/api/conversion/documentation/documentation-page-to-dto-utils.ts
|
|
3751
|
+
function buildDocPagePublishPaths(groups, pages, routingVersion) {
|
|
3752
|
+
const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
|
|
3753
|
+
const result = /* @__PURE__ */ new Map();
|
|
3754
|
+
for (const page of pages) {
|
|
3755
|
+
const parentChain = calculateElementParentChain(page.parentPersistentId, groupPersistentIdToGroupMap);
|
|
3756
|
+
let pathV1 = `${page.userSlug || page.slug}.html`;
|
|
3757
|
+
let pathV2 = `${slugify(page.meta.name)}-${page.shortPersistentId}`;
|
|
3758
|
+
for (const parent of parentChain) {
|
|
3759
|
+
if (!parent.parentPersistentId)
|
|
3760
|
+
continue;
|
|
3761
|
+
pathV1 = `${parent.userSlug || parent.slug}/${pathV1}`;
|
|
3762
|
+
pathV2 = `${slugify(parent.meta.name)}/${pathV2}`;
|
|
3763
|
+
}
|
|
3764
|
+
pathV1 = `/${pathV1}`;
|
|
3765
|
+
pathV2 = `/${pathV2}`;
|
|
3766
|
+
if (routingVersion === "2") {
|
|
3767
|
+
result.set(page.persistentId, pathV2);
|
|
3768
|
+
} else {
|
|
3769
|
+
result.set(page.persistentId, pathV1);
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
return result;
|
|
3773
|
+
}
|
|
3774
|
+
function calculateElementParentChain(elementParentPersistentId, groupPersistentIdToGroupMap) {
|
|
3775
|
+
const result = [];
|
|
3776
|
+
let parentId = elementParentPersistentId;
|
|
3777
|
+
while (parentId) {
|
|
3778
|
+
const parent = groupPersistentIdToGroupMap.get(parentId);
|
|
3779
|
+
if (parent)
|
|
3780
|
+
result.push(parent);
|
|
3781
|
+
parentId = _optionalChain([parent, 'optionalAccess', _3 => _3.parentPersistentId]);
|
|
3782
|
+
}
|
|
3783
|
+
return result;
|
|
3784
|
+
}
|
|
3785
|
+
function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemConfiguration) {
|
|
3786
|
+
const fixedGroups = groups.map((group) => ({
|
|
3787
|
+
...group,
|
|
3788
|
+
data: {
|
|
3789
|
+
...group.data,
|
|
3790
|
+
configuration: _nullishCoalesce(_optionalChain([group, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.configuration]), () => ( getDefaultItemConfiguration()))
|
|
3791
|
+
}
|
|
3792
|
+
}));
|
|
3793
|
+
const groupPersistentIdToGroupMap = mapByUnique(fixedGroups, (group) => group.persistentId);
|
|
3794
|
+
for (const groupToFix of fixedGroups) {
|
|
3795
|
+
let isHidden = groupToFix.data.configuration.isHidden;
|
|
3796
|
+
let isPrivate = groupToFix.data.configuration.isPrivate;
|
|
3797
|
+
let nextParentId = groupToFix.parentPersistentId;
|
|
3798
|
+
while ((!isHidden || !isPrivate) && nextParentId) {
|
|
3799
|
+
const parent = groupPersistentIdToGroupMap.get(nextParentId);
|
|
3800
|
+
if (!parent)
|
|
3801
|
+
break;
|
|
3802
|
+
isHidden = isHidden || _optionalChain([parent, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.configuration, 'optionalAccess', _8 => _8.isHidden]) || false;
|
|
3803
|
+
isPrivate = isPrivate || _optionalChain([parent, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.configuration, 'optionalAccess', _11 => _11.isPrivate]) || false;
|
|
3804
|
+
nextParentId = parent.parentPersistentId;
|
|
3805
|
+
}
|
|
3806
|
+
groupToFix.data.configuration.isHidden = isHidden;
|
|
3807
|
+
groupToFix.data.configuration.isPrivate = isPrivate;
|
|
3808
|
+
}
|
|
3809
|
+
const fixedPages = [];
|
|
3810
|
+
for (const page of pages) {
|
|
3811
|
+
const configuration = _nullishCoalesce(_optionalChain([page, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.configuration]), () => ( getDefaultItemConfiguration()));
|
|
3812
|
+
const parent = groupPersistentIdToGroupMap.get(page.parentPersistentId);
|
|
3813
|
+
fixedPages.push({
|
|
3814
|
+
...page,
|
|
3815
|
+
data: {
|
|
3816
|
+
...page.data,
|
|
3817
|
+
configuration: {
|
|
3818
|
+
...configuration,
|
|
3819
|
+
isHidden: configuration.isHidden || _optionalChain([parent, 'optionalAccess', _14 => _14.data, 'optionalAccess', _15 => _15.configuration, 'optionalAccess', _16 => _16.isHidden]) || false,
|
|
3820
|
+
isPrivate: configuration.isPrivate || _optionalChain([parent, 'optionalAccess', _17 => _17.data, 'optionalAccess', _18 => _18.configuration, 'optionalAccess', _19 => _19.isPrivate]) || false
|
|
3821
|
+
}
|
|
3822
|
+
}
|
|
3823
|
+
});
|
|
3824
|
+
}
|
|
3825
|
+
return { pages: fixedPages, groups: fixedGroups };
|
|
3826
|
+
}
|
|
3827
|
+
|
|
3814
3828
|
// src/api/conversion/documentation/documentation-group-v2-to-dto.ts
|
|
3815
3829
|
function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
|
|
3816
3830
|
const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
|
|
@@ -3818,12 +3832,12 @@ function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
|
|
|
3818
3832
|
}
|
|
3819
3833
|
function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
|
|
3820
3834
|
const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
|
|
3821
|
-
return groups.map((group) =>
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3835
|
+
return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
|
|
3836
|
+
}
|
|
3837
|
+
function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups, pages) {
|
|
3838
|
+
const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
|
|
3839
|
+
const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
|
|
3840
|
+
return fixedGroups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
|
|
3827
3841
|
}
|
|
3828
3842
|
function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
3829
3843
|
const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
|
|
@@ -3839,10 +3853,10 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
|
3839
3853
|
createdAt: group.createdAt,
|
|
3840
3854
|
updatedAt: group.updatedAt,
|
|
3841
3855
|
title: group.meta.name,
|
|
3842
|
-
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess',
|
|
3856
|
+
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.configuration])),
|
|
3843
3857
|
childrenIds,
|
|
3844
3858
|
isRoot: !group.parentPersistentId,
|
|
3845
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
3859
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _22 => _22.data, 'optionalAccess', _23 => _23.behavior]), () => ( "Group")),
|
|
3846
3860
|
shortPersistentId: group.shortPersistentId,
|
|
3847
3861
|
type: "Group"
|
|
3848
3862
|
};
|
|
@@ -3862,42 +3876,6 @@ function calculateChildrenIdsMapV2(elements, groups) {
|
|
|
3862
3876
|
return childrenIdsMap;
|
|
3863
3877
|
}
|
|
3864
3878
|
|
|
3865
|
-
// src/api/conversion/documentation/documentation-page-to-dto-utils.ts
|
|
3866
|
-
function buildDocPagePublishPaths(groups, pages, routingVersion) {
|
|
3867
|
-
const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
|
|
3868
|
-
const result = /* @__PURE__ */ new Map();
|
|
3869
|
-
for (const page of pages) {
|
|
3870
|
-
const parentChain = calculateElementParentChain(page.parentPersistentId, groupPersistentIdToGroupMap);
|
|
3871
|
-
let pathV1 = `${page.userSlug || page.slug}.html`;
|
|
3872
|
-
let pathV2 = `${slugify(page.meta.name)}-${page.shortPersistentId}`;
|
|
3873
|
-
for (const parent of parentChain) {
|
|
3874
|
-
if (!parent.parentPersistentId)
|
|
3875
|
-
continue;
|
|
3876
|
-
pathV1 = `${parent.userSlug || parent.slug}/${pathV1}`;
|
|
3877
|
-
pathV2 = `${slugify(parent.meta.name)}/${pathV2}`;
|
|
3878
|
-
}
|
|
3879
|
-
pathV1 = `/${pathV1}`;
|
|
3880
|
-
pathV2 = `/${pathV2}`;
|
|
3881
|
-
if (routingVersion === "2") {
|
|
3882
|
-
result.set(page.persistentId, pathV2);
|
|
3883
|
-
} else {
|
|
3884
|
-
result.set(page.persistentId, pathV1);
|
|
3885
|
-
}
|
|
3886
|
-
}
|
|
3887
|
-
return result;
|
|
3888
|
-
}
|
|
3889
|
-
function calculateElementParentChain(elementParentPersistentId, groupPersistentIdToGroupMap) {
|
|
3890
|
-
const result = [];
|
|
3891
|
-
let parentId = elementParentPersistentId;
|
|
3892
|
-
while (parentId) {
|
|
3893
|
-
const parent = groupPersistentIdToGroupMap.get(parentId);
|
|
3894
|
-
if (parent)
|
|
3895
|
-
result.push(parent);
|
|
3896
|
-
parentId = _optionalChain([parent, 'optionalAccess', _9 => _9.parentPersistentId]);
|
|
3897
|
-
}
|
|
3898
|
-
return result;
|
|
3899
|
-
}
|
|
3900
|
-
|
|
3901
3879
|
// src/api/conversion/documentation/documentation-page-v2-to-dto.ts
|
|
3902
3880
|
function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
|
|
3903
3881
|
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
@@ -3905,12 +3883,12 @@ function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
|
|
|
3905
3883
|
}
|
|
3906
3884
|
function documentationPagesToDTOV2(pages, groups, routingVersion) {
|
|
3907
3885
|
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
3908
|
-
return pages.map((page) =>
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3886
|
+
return pages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
|
|
3887
|
+
}
|
|
3888
|
+
function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion) {
|
|
3889
|
+
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
3890
|
+
const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
|
|
3891
|
+
return fixedPages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
|
|
3914
3892
|
}
|
|
3915
3893
|
function documentationPageToStructureDTOV2(page, pagePathMap) {
|
|
3916
3894
|
let path = pagePathMap.get(page.persistentId);
|
|
@@ -3943,7 +3921,7 @@ function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion
|
|
|
3943
3921
|
}
|
|
3944
3922
|
|
|
3945
3923
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
3946
|
-
var
|
|
3924
|
+
var getDtoDefaultItemConfigurationV1 = () => ({
|
|
3947
3925
|
showSidebar: true,
|
|
3948
3926
|
isHidden: false,
|
|
3949
3927
|
isPrivate: false,
|
|
@@ -3954,12 +3932,14 @@ var dtoDefaultItemConfigurationV1 = {
|
|
|
3954
3932
|
showBackgroundOverlay: false,
|
|
3955
3933
|
showCoverText: true
|
|
3956
3934
|
}
|
|
3957
|
-
};
|
|
3935
|
+
});
|
|
3958
3936
|
function documentationItemConfigurationToDTOV1(config) {
|
|
3959
|
-
const
|
|
3960
|
-
|
|
3937
|
+
const dtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1();
|
|
3938
|
+
if (!config)
|
|
3939
|
+
return dtoDefaultItemConfigurationV1;
|
|
3940
|
+
const { backgroundColor, foregroundColor, ...headerRest } = config.header;
|
|
3961
3941
|
return {
|
|
3962
|
-
showSidebar,
|
|
3942
|
+
showSidebar: config.showSidebar,
|
|
3963
3943
|
isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV1.isHidden)),
|
|
3964
3944
|
isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV1.isPrivate)),
|
|
3965
3945
|
header: {
|
|
@@ -3993,7 +3973,17 @@ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
|
|
|
3993
3973
|
return groups.map((group) => {
|
|
3994
3974
|
return {
|
|
3995
3975
|
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
3996
|
-
configuration: _optionalChain([group, 'access',
|
|
3976
|
+
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _24 => _24.data, 'optionalAccess', _25 => _25.configuration]))
|
|
3977
|
+
};
|
|
3978
|
+
});
|
|
3979
|
+
}
|
|
3980
|
+
function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages) {
|
|
3981
|
+
const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
|
|
3982
|
+
const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
|
|
3983
|
+
return fixedGroups.map((group) => {
|
|
3984
|
+
return {
|
|
3985
|
+
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
3986
|
+
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _26 => _26.data, 'optionalAccess', _27 => _27.configuration]))
|
|
3997
3987
|
};
|
|
3998
3988
|
});
|
|
3999
3989
|
}
|
|
@@ -4013,7 +4003,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
|
|
|
4013
4003
|
title: group.meta.name,
|
|
4014
4004
|
childrenIds,
|
|
4015
4005
|
isRoot: !group.parentPersistentId,
|
|
4016
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4006
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _28 => _28.data, 'optionalAccess', _29 => _29.behavior]), () => ( "Group")),
|
|
4017
4007
|
shortPersistentId: group.shortPersistentId,
|
|
4018
4008
|
type: "Group"
|
|
4019
4009
|
};
|
|
@@ -4036,27 +4026,33 @@ function calculateChildrenIdsMapV1(elements, groups) {
|
|
|
4036
4026
|
// src/api/conversion/documentation/documentation-page-v1-to-dto.ts
|
|
4037
4027
|
function documentationPagesToDTOV1(pages, groups, routingVersion) {
|
|
4038
4028
|
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
4039
|
-
return pages.map((page) =>
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4029
|
+
return pages.map((page) => documentationPageToDTOV1(page, pathsMap));
|
|
4030
|
+
}
|
|
4031
|
+
function documentationPagesFixedConfigurationToDTOV1(pages, groups, routingVersion) {
|
|
4032
|
+
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
4033
|
+
const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
|
|
4034
|
+
return fixedPages.map((page) => documentationPageToDTOV1(page, pathsMap));
|
|
4035
|
+
}
|
|
4036
|
+
function documentationPageToDTOV1(page, pagePathMap) {
|
|
4037
|
+
let path = pagePathMap.get(page.persistentId);
|
|
4038
|
+
if (!path)
|
|
4039
|
+
throw SupernovaException.conflict(`Path for page ${page.id} was not calculated`);
|
|
4040
|
+
if (path.startsWith("/"))
|
|
4041
|
+
path = path.substring(1);
|
|
4042
|
+
return {
|
|
4043
|
+
id: page.id,
|
|
4044
|
+
designSystemVersionId: page.designSystemVersionId,
|
|
4045
|
+
persistentId: page.persistentId,
|
|
4046
|
+
shortPersistentId: page.shortPersistentId,
|
|
4047
|
+
title: page.meta.name,
|
|
4048
|
+
blocks: page.data.blocks,
|
|
4049
|
+
slug: page.slug,
|
|
4050
|
+
userSlug: page.userSlug,
|
|
4051
|
+
configuration: documentationItemConfigurationToDTOV1(page.data.configuration),
|
|
4052
|
+
createdAt: page.createdAt,
|
|
4053
|
+
updatedAt: page.updatedAt,
|
|
4054
|
+
path
|
|
4055
|
+
};
|
|
4060
4056
|
}
|
|
4061
4057
|
|
|
4062
4058
|
// src/api/conversion/integrations/integration.ts
|
|
@@ -4102,6 +4098,104 @@ var DTOExporterPropertyListResponse = _zod.z.object({ items: _zod.z.array(DTOExp
|
|
|
4102
4098
|
|
|
4103
4099
|
// src/api/dto/design-systems/version.ts
|
|
4104
4100
|
|
|
4101
|
+
|
|
4102
|
+
// src/api/payloads/design-systems/brand.ts
|
|
4103
|
+
|
|
4104
|
+
var DTOCreateBrandInput = _zod.z.object({
|
|
4105
|
+
persistentId: _zod.z.string().uuid(),
|
|
4106
|
+
meta: _zod.z.object({
|
|
4107
|
+
name: _zod.z.string(),
|
|
4108
|
+
description: _zod.z.string()
|
|
4109
|
+
})
|
|
4110
|
+
});
|
|
4111
|
+
|
|
4112
|
+
// src/api/payloads/design-systems/version.ts
|
|
4113
|
+
|
|
4114
|
+
var ObjectMeta2 = _zod.z.object({
|
|
4115
|
+
name: _zod.z.string().max(150).optional(),
|
|
4116
|
+
description: _zod.z.string().max(2e3).optional()
|
|
4117
|
+
});
|
|
4118
|
+
function validateSemver(version) {
|
|
4119
|
+
const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
|
|
4120
|
+
return semverRegex.test(version);
|
|
4121
|
+
}
|
|
4122
|
+
var DTOCreateVersionInput = _zod.z.object({
|
|
4123
|
+
meta: ObjectMeta2,
|
|
4124
|
+
version: _zod.z.string().refine(validateSemver, {
|
|
4125
|
+
message: "Invalid semantic versioning format"
|
|
4126
|
+
}),
|
|
4127
|
+
changeLog: _zod.z.string().max(2e3).optional()
|
|
4128
|
+
});
|
|
4129
|
+
|
|
4130
|
+
// src/api/payloads/documentation/block-definitions.ts
|
|
4131
|
+
|
|
4132
|
+
var DTOGetBlockDefinitionsOutput = _zod.z.object({
|
|
4133
|
+
definitions: _zod.z.array(PageBlockDefinition)
|
|
4134
|
+
});
|
|
4135
|
+
|
|
4136
|
+
// src/api/payloads/liveblocks/auth.ts
|
|
4137
|
+
|
|
4138
|
+
var DTOLiveblocksAuthRequest = _zod.z.object({
|
|
4139
|
+
room: _zod.z.string().optional()
|
|
4140
|
+
});
|
|
4141
|
+
|
|
4142
|
+
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4143
|
+
|
|
4144
|
+
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4145
|
+
function validateSsoPayload(ssoPayload) {
|
|
4146
|
+
const keys = [];
|
|
4147
|
+
let valid = true;
|
|
4148
|
+
if (!ssoPayload) {
|
|
4149
|
+
valid = true;
|
|
4150
|
+
return {
|
|
4151
|
+
valid,
|
|
4152
|
+
keys: []
|
|
4153
|
+
};
|
|
4154
|
+
}
|
|
4155
|
+
for (const key of Object.keys(ssoPayload)) {
|
|
4156
|
+
if (prohibitedSsoKeys.includes(key)) {
|
|
4157
|
+
keys.push(key);
|
|
4158
|
+
valid = false;
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
4161
|
+
return {
|
|
4162
|
+
valid,
|
|
4163
|
+
keys
|
|
4164
|
+
};
|
|
4165
|
+
}
|
|
4166
|
+
var NpmRegistryInput = _zod.z.object({
|
|
4167
|
+
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
4168
|
+
customRegistryUrl: _zod.z.string().optional(),
|
|
4169
|
+
bypassProxy: _zod.z.boolean().optional(),
|
|
4170
|
+
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
4171
|
+
npmProxyVersion: _zod.z.number().optional(),
|
|
4172
|
+
registryType: _zod.z.string(),
|
|
4173
|
+
authType: _zod.z.string(),
|
|
4174
|
+
authHeaderName: _zod.z.string(),
|
|
4175
|
+
authHeaderValue: _zod.z.string(),
|
|
4176
|
+
accessToken: _zod.z.string(),
|
|
4177
|
+
username: _zod.z.string(),
|
|
4178
|
+
password: _zod.z.string()
|
|
4179
|
+
});
|
|
4180
|
+
var WorkspaceConfigurationPayload = _zod.z.object({
|
|
4181
|
+
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4182
|
+
sso: SsoProvider.partial().optional(),
|
|
4183
|
+
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
4184
|
+
profile: WorkspaceProfile.partial().optional()
|
|
4185
|
+
});
|
|
4186
|
+
|
|
4187
|
+
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4188
|
+
|
|
4189
|
+
var DTOWorkspaceIntegrationOauthInput = _zod.z.object({
|
|
4190
|
+
type: IntegrationType
|
|
4191
|
+
});
|
|
4192
|
+
var DTOWorkspaceIntegrationPATInput = _zod.z.object({
|
|
4193
|
+
userId: _zod.z.string(),
|
|
4194
|
+
type: IntegrationType,
|
|
4195
|
+
token: IntegrationTokenResponse
|
|
4196
|
+
});
|
|
4197
|
+
|
|
4198
|
+
// src/api/dto/design-systems/version.ts
|
|
4105
4199
|
var DTODesignSystemVersion = _zod.z.object({
|
|
4106
4200
|
id: _zod.z.string(),
|
|
4107
4201
|
createdAt: _zod.z.date(),
|
|
@@ -4117,6 +4211,17 @@ var DTODesignSystemVersionsListResponse = _zod.z.object({
|
|
|
4117
4211
|
var DTODesignSystemVersionGetResponse = _zod.z.object({
|
|
4118
4212
|
designSystemVersion: DTODesignSystemVersion
|
|
4119
4213
|
});
|
|
4214
|
+
var DTODesignSystemVersionCreationResponse = _zod.z.object({
|
|
4215
|
+
meta: ObjectMeta,
|
|
4216
|
+
version: _zod.z.string(),
|
|
4217
|
+
changeLog: _zod.z.string(),
|
|
4218
|
+
isReadOnly: _zod.z.boolean(),
|
|
4219
|
+
designSystemId: _zod.z.string()
|
|
4220
|
+
});
|
|
4221
|
+
var VersionSQSPayload = _zod.z.object({
|
|
4222
|
+
designSystemId: _zod.z.string(),
|
|
4223
|
+
input: DTOCreateVersionInput
|
|
4224
|
+
});
|
|
4120
4225
|
|
|
4121
4226
|
// src/api/dto/design-systems/view.ts
|
|
4122
4227
|
|
|
@@ -4668,7 +4773,7 @@ var DTOIntegration = _zod.z.object({
|
|
|
4668
4773
|
workspaceId: _zod.z.string(),
|
|
4669
4774
|
type: IntegrationType,
|
|
4670
4775
|
createdAt: _zod.z.coerce.date(),
|
|
4671
|
-
integrationCredentials: _zod.z.array(
|
|
4776
|
+
integrationCredentials: _zod.z.array(IntegrationCredentials).optional()
|
|
4672
4777
|
});
|
|
4673
4778
|
var DTOIntegrationOAuthGetResponse = _zod.z.object({
|
|
4674
4779
|
url: _zod.z.string()
|
|
@@ -4731,93 +4836,6 @@ var DTOUserWorkspaceMembershipsResponse = _zod.z.object({
|
|
|
4731
4836
|
membership: _zod.z.array(DTOUserWorkspaceMembership)
|
|
4732
4837
|
});
|
|
4733
4838
|
|
|
4734
|
-
// src/api/payloads/design-systems/brand.ts
|
|
4735
|
-
|
|
4736
|
-
var DTOCreateBrandInput = _zod.z.object({
|
|
4737
|
-
persistentId: _zod.z.string().uuid(),
|
|
4738
|
-
meta: _zod.z.object({
|
|
4739
|
-
name: _zod.z.string(),
|
|
4740
|
-
description: _zod.z.string()
|
|
4741
|
-
})
|
|
4742
|
-
});
|
|
4743
|
-
|
|
4744
|
-
// src/api/payloads/design-systems/version.ts
|
|
4745
|
-
|
|
4746
|
-
function validateSemver(version) {
|
|
4747
|
-
const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
|
|
4748
|
-
return semverRegex.test(version);
|
|
4749
|
-
}
|
|
4750
|
-
var DTOCreateVersionInput = _zod.z.object({
|
|
4751
|
-
meta: ObjectMeta,
|
|
4752
|
-
version: _zod.z.string().refine(validateSemver, {
|
|
4753
|
-
message: "Invalid semantic versioning format"
|
|
4754
|
-
}),
|
|
4755
|
-
changeLog: _zod.z.string()
|
|
4756
|
-
});
|
|
4757
|
-
|
|
4758
|
-
// src/api/payloads/documentation/block-definitions.ts
|
|
4759
|
-
|
|
4760
|
-
var DTOGetBlockDefinitionsOutput = _zod.z.object({
|
|
4761
|
-
definitions: _zod.z.array(PageBlockDefinition)
|
|
4762
|
-
});
|
|
4763
|
-
|
|
4764
|
-
// src/api/payloads/liveblocks/auth.ts
|
|
4765
|
-
|
|
4766
|
-
var DTOLiveblocksAuthRequest = _zod.z.object({
|
|
4767
|
-
room: _zod.z.string().optional()
|
|
4768
|
-
});
|
|
4769
|
-
|
|
4770
|
-
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4771
|
-
|
|
4772
|
-
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4773
|
-
function validateSsoPayload(ssoPayload) {
|
|
4774
|
-
const keys = [];
|
|
4775
|
-
let valid = true;
|
|
4776
|
-
if (!ssoPayload) {
|
|
4777
|
-
valid = true;
|
|
4778
|
-
return {
|
|
4779
|
-
valid,
|
|
4780
|
-
keys: []
|
|
4781
|
-
};
|
|
4782
|
-
}
|
|
4783
|
-
for (const key of Object.keys(ssoPayload)) {
|
|
4784
|
-
if (prohibitedSsoKeys.includes(key)) {
|
|
4785
|
-
keys.push(key);
|
|
4786
|
-
valid = false;
|
|
4787
|
-
}
|
|
4788
|
-
}
|
|
4789
|
-
return {
|
|
4790
|
-
valid,
|
|
4791
|
-
keys
|
|
4792
|
-
};
|
|
4793
|
-
}
|
|
4794
|
-
var NpmRegistryInput = _zod.z.object({
|
|
4795
|
-
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
4796
|
-
customRegistryUrl: _zod.z.string().optional(),
|
|
4797
|
-
bypassProxy: _zod.z.boolean().optional(),
|
|
4798
|
-
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
4799
|
-
npmProxyVersion: _zod.z.number().optional(),
|
|
4800
|
-
registryType: _zod.z.string(),
|
|
4801
|
-
authType: _zod.z.string(),
|
|
4802
|
-
authHeaderName: _zod.z.string(),
|
|
4803
|
-
authHeaderValue: _zod.z.string(),
|
|
4804
|
-
accessToken: _zod.z.string(),
|
|
4805
|
-
username: _zod.z.string(),
|
|
4806
|
-
password: _zod.z.string()
|
|
4807
|
-
});
|
|
4808
|
-
var WorkspaceConfigurationPayload = _zod.z.object({
|
|
4809
|
-
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4810
|
-
sso: SsoProvider.partial().optional(),
|
|
4811
|
-
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
4812
|
-
profile: WorkspaceProfile.partial().optional()
|
|
4813
|
-
});
|
|
4814
|
-
|
|
4815
|
-
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4816
|
-
|
|
4817
|
-
var DTOWorkspaceIntegrationOauthInput = _zod.z.object({
|
|
4818
|
-
type: IntegrationType
|
|
4819
|
-
});
|
|
4820
|
-
|
|
4821
4839
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
4822
4840
|
|
|
4823
4841
|
var DocumentationHierarchySettings = _zod.z.object({
|
|
@@ -4832,7 +4850,9 @@ function documentationHierarchyToYjs(doc, transaction) {
|
|
|
4832
4850
|
transaction.pages.forEach((page) => {
|
|
4833
4851
|
const sanitizedPage = {
|
|
4834
4852
|
...page,
|
|
4835
|
-
data: {
|
|
4853
|
+
data: {
|
|
4854
|
+
configuration: page.data.configuration
|
|
4855
|
+
}
|
|
4836
4856
|
};
|
|
4837
4857
|
pagesMap.set(page.id, JSON.parse(JSON.stringify(sanitizedPage)));
|
|
4838
4858
|
});
|
|
@@ -4841,13 +4861,7 @@ function documentationHierarchyToYjs(doc, transaction) {
|
|
|
4841
4861
|
groupsMap.delete(id);
|
|
4842
4862
|
});
|
|
4843
4863
|
transaction.groups.forEach((group) => {
|
|
4844
|
-
|
|
4845
|
-
...group,
|
|
4846
|
-
data: {
|
|
4847
|
-
behavior: _optionalChain([group, 'access', _14 => _14.data, 'optionalAccess', _15 => _15.behavior])
|
|
4848
|
-
}
|
|
4849
|
-
};
|
|
4850
|
-
groupsMap.set(group.id, JSON.parse(JSON.stringify(sanitizedGroup)));
|
|
4864
|
+
groupsMap.set(group.id, JSON.parse(JSON.stringify(group)));
|
|
4851
4865
|
});
|
|
4852
4866
|
if (transaction.internalSettings) {
|
|
4853
4867
|
serializeDocumentationInternalSettings(trx.doc, transaction.internalSettings);
|
|
@@ -4908,7 +4922,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
|
|
|
4908
4922
|
function itemConfigurationToYjs(yDoc, item) {
|
|
4909
4923
|
yDoc.transact((trx) => {
|
|
4910
4924
|
const { title, configuration } = item;
|
|
4911
|
-
const header = _optionalChain([configuration, 'optionalAccess',
|
|
4925
|
+
const header = _optionalChain([configuration, 'optionalAccess', _30 => _30.header]);
|
|
4912
4926
|
if (title !== void 0) {
|
|
4913
4927
|
const headerYMap = trx.doc.getMap("itemTitle");
|
|
4914
4928
|
headerYMap.set("title", title);
|
|
@@ -4926,9 +4940,9 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
4926
4940
|
header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
|
|
4927
4941
|
}
|
|
4928
4942
|
const configYMap = trx.doc.getMap("itemConfiguration");
|
|
4929
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
4930
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
4931
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
4943
|
+
_optionalChain([configuration, 'optionalAccess', _31 => _31.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
|
|
4944
|
+
_optionalChain([configuration, 'optionalAccess', _32 => _32.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
|
|
4945
|
+
_optionalChain([configuration, 'optionalAccess', _33 => _33.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
4932
4946
|
});
|
|
4933
4947
|
}
|
|
4934
4948
|
function yjsToItemConfiguration(yDoc) {
|
|
@@ -5717,7 +5731,7 @@ var BlockDefinitionUtils = {
|
|
|
5717
5731
|
var ListTreeBuilder = class {
|
|
5718
5732
|
addWithProperty(block, multiRichTextProperty) {
|
|
5719
5733
|
const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
|
|
5720
|
-
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess',
|
|
5734
|
+
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _34 => _34.multiRichTextStyle]) || "OL");
|
|
5721
5735
|
}
|
|
5722
5736
|
add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
|
|
5723
5737
|
const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
|
|
@@ -5737,7 +5751,7 @@ var ListTreeBuilder = class {
|
|
|
5737
5751
|
}
|
|
5738
5752
|
const listParent = this.getParentOfDepth(block.data.indentLevel);
|
|
5739
5753
|
const lastChild = listParent.children[listParent.children.length - 1];
|
|
5740
|
-
if (_optionalChain([lastChild, 'optionalAccess',
|
|
5754
|
+
if (_optionalChain([lastChild, 'optionalAccess', _35 => _35.type]) === "List") {
|
|
5741
5755
|
lastChild.children.push(...list.leadingChildren);
|
|
5742
5756
|
return;
|
|
5743
5757
|
} else {
|
|
@@ -5921,7 +5935,7 @@ function serializeAsRichTextBlock(input) {
|
|
|
5921
5935
|
const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
|
|
5922
5936
|
const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
|
|
5923
5937
|
const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
|
|
5924
|
-
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess',
|
|
5938
|
+
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _36 => _36.richTextStyle]), () => ( "Default"));
|
|
5925
5939
|
switch (style) {
|
|
5926
5940
|
case "Callout":
|
|
5927
5941
|
return serializeAsCallout(enrichedInput);
|
|
@@ -6142,7 +6156,7 @@ function serializeBlockNodeAttributes(block) {
|
|
|
6142
6156
|
};
|
|
6143
6157
|
}
|
|
6144
6158
|
function richTextHeadingLevel(property) {
|
|
6145
|
-
const style = _optionalChain([property, 'access',
|
|
6159
|
+
const style = _optionalChain([property, 'access', _37 => _37.options, 'optionalAccess', _38 => _38.richTextStyle]);
|
|
6146
6160
|
if (!style)
|
|
6147
6161
|
return void 0;
|
|
6148
6162
|
switch (style) {
|
|
@@ -6255,7 +6269,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
6255
6269
|
linksTo: i.linksTo
|
|
6256
6270
|
};
|
|
6257
6271
|
});
|
|
6258
|
-
const columns = _optionalChain([block, 'access',
|
|
6272
|
+
const columns = _optionalChain([block, 'access', _39 => _39.data, 'access', _40 => _40.appearance, 'optionalAccess', _41 => _41.numberOfColumns]);
|
|
6259
6273
|
return {
|
|
6260
6274
|
type: serializeCustomBlockNodeType(block, definition),
|
|
6261
6275
|
attrs: {
|
|
@@ -8102,10 +8116,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
|
|
|
8102
8116
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8103
8117
|
const result = [];
|
|
8104
8118
|
const listItems = [];
|
|
8105
|
-
_optionalChain([prosemirrorNode, 'access',
|
|
8119
|
+
_optionalChain([prosemirrorNode, 'access', _42 => _42.content, 'optionalAccess', _43 => _43.forEach, 'call', _44 => _44((c) => {
|
|
8106
8120
|
if (c.type !== "listItem")
|
|
8107
8121
|
return;
|
|
8108
|
-
_optionalChain([c, 'access',
|
|
8122
|
+
_optionalChain([c, 'access', _45 => _45.content, 'optionalAccess', _46 => _46.forEach, 'call', _47 => _47((cc) => {
|
|
8109
8123
|
listItems.push(cc);
|
|
8110
8124
|
})]);
|
|
8111
8125
|
})]);
|
|
@@ -8208,17 +8222,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
8208
8222
|
return null;
|
|
8209
8223
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8210
8224
|
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
|
|
8211
|
-
const tableChild = _optionalChain([prosemirrorNode, 'access',
|
|
8225
|
+
const tableChild = _optionalChain([prosemirrorNode, 'access', _48 => _48.content, 'optionalAccess', _49 => _49.find, 'call', _50 => _50((c) => c.type === "table")]);
|
|
8212
8226
|
if (!tableChild) {
|
|
8213
8227
|
return emptyTable(id, variantId, 0);
|
|
8214
8228
|
}
|
|
8215
|
-
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access',
|
|
8229
|
+
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _51 => _51.content, 'optionalAccess', _52 => _52.filter, 'call', _53 => _53((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _54 => _54.content, 'optionalAccess', _55 => _55.length]))]), () => ( []));
|
|
8216
8230
|
if (!rows.length) {
|
|
8217
8231
|
return emptyTable(id, variantId, 0);
|
|
8218
8232
|
}
|
|
8219
|
-
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access',
|
|
8220
|
-
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access',
|
|
8221
|
-
const hasHeaderRow = _optionalChain([rows, 'access',
|
|
8233
|
+
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _56 => _56[0], 'access', _57 => _57.content, 'optionalAccess', _58 => _58.filter, 'call', _59 => _59((c) => c.type === "tableHeader"), 'access', _60 => _60.length]), () => ( 0));
|
|
8234
|
+
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _61 => _61.content, 'optionalAccess', _62 => _62[0], 'optionalAccess', _63 => _63.type]) === "tableHeader").length;
|
|
8235
|
+
const hasHeaderRow = _optionalChain([rows, 'access', _64 => _64[0], 'access', _65 => _65.content, 'optionalAccess', _66 => _66.length]) === rowHeaderCells;
|
|
8222
8236
|
const hasHeaderColumn = rows.length === columnHeaderCells;
|
|
8223
8237
|
const tableValue = {
|
|
8224
8238
|
showBorder: hasBorder,
|
|
@@ -8300,7 +8314,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8300
8314
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
8301
8315
|
if (!parsedItems.success)
|
|
8302
8316
|
return null;
|
|
8303
|
-
const rawImagePropertyValue = _optionalChain([parsedItems, 'access',
|
|
8317
|
+
const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _67 => _67.data, 'access', _68 => _68[0], 'optionalAccess', _69 => _69.props, 'access', _70 => _70.image]);
|
|
8304
8318
|
if (!rawImagePropertyValue)
|
|
8305
8319
|
return null;
|
|
8306
8320
|
const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
|
|
@@ -8522,7 +8536,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
|
8522
8536
|
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
|
|
8523
8537
|
}
|
|
8524
8538
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
8525
|
-
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access',
|
|
8539
|
+
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _71 => _71.attrs, 'optionalAccess', _72 => _72[attributeName]]));
|
|
8526
8540
|
if (parsedAttr.success) {
|
|
8527
8541
|
return parsedAttr.data;
|
|
8528
8542
|
} else {
|
|
@@ -8697,5 +8711,10 @@ function mapByUnique2(items, keyFn) {
|
|
|
8697
8711
|
|
|
8698
8712
|
|
|
8699
8713
|
|
|
8700
|
-
exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.designSystemBrandToDto = designSystemBrandToDto; exports.designSystemVersionToDto = designSystemVersionToDto; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.dtoDefaultItemConfigurationV1 = dtoDefaultItemConfigurationV1; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.elementGroupsToDocumentationGroupStructureDTOV2 = elementGroupsToDocumentationGroupStructureDTOV2; exports.elementPropertyDefinitionToDto = elementPropertyDefinitionToDto; exports.elementPropertyValueToDto = elementPropertyValueToDto; exports.elementViewToDto = elementViewToDto; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateSemver = validateSemver; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
8714
|
+
|
|
8715
|
+
|
|
8716
|
+
|
|
8717
|
+
|
|
8718
|
+
|
|
8719
|
+
exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.elementGroupsToDocumentationGroupStructureDTOV2 = elementGroupsToDocumentationGroupStructureDTOV2; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateSemver = validateSemver; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
8701
8720
|
//# sourceMappingURL=index.js.map
|