@supernova-studio/client 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +315 -122
- package/dist/index.d.ts +315 -122
- package/dist/index.js +315 -282
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +568 -535
- 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/index.ts +0 -1
- 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,91 +1,9 @@
|
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
}
|
|
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; }var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
89
7
|
|
|
90
8
|
// ../model/dist/index.mjs
|
|
91
9
|
var _zod = require('zod');
|
|
@@ -1287,8 +1205,8 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
1287
1205
|
};
|
|
1288
1206
|
var DocumentationItemConfigurationV2 = _zod.z.object({
|
|
1289
1207
|
showSidebar: _zod.z.boolean(),
|
|
1290
|
-
isPrivate: _zod.z.boolean(),
|
|
1291
|
-
isHidden: _zod.z.boolean(),
|
|
1208
|
+
isPrivate: _zod.z.boolean().optional(),
|
|
1209
|
+
isHidden: _zod.z.boolean().optional(),
|
|
1292
1210
|
header: DocumentationItemHeaderV2
|
|
1293
1211
|
});
|
|
1294
1212
|
var DocumentationPageDataV2 = _zod.z.object({
|
|
@@ -2613,6 +2531,7 @@ var PublishedDocPage = _zod.z.object({
|
|
|
2613
2531
|
pathV1: _zod.z.string(),
|
|
2614
2532
|
pathV2: _zod.z.string(),
|
|
2615
2533
|
storagePath: _zod.z.string(),
|
|
2534
|
+
fallbackPublicPath: _zod.z.string().optional(),
|
|
2616
2535
|
locale: _zod.z.string().optional(),
|
|
2617
2536
|
isPrivate: _zod.z.boolean(),
|
|
2618
2537
|
isHidden: _zod.z.boolean(),
|
|
@@ -2978,13 +2897,13 @@ var ExternalOAuthRequest = _zod.z.object({
|
|
|
2978
2897
|
state: _zod.z.string(),
|
|
2979
2898
|
createdAt: _zod.z.coerce.date()
|
|
2980
2899
|
});
|
|
2981
|
-
var IntegrationCredentialsType = _zod.z.enum(["OAuth2", "PAT"]);
|
|
2900
|
+
var IntegrationCredentialsType = _zod.z.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
2982
2901
|
var IntegrationCredentialsProfile = _zod.z.object({
|
|
2983
2902
|
id: _zod.z.string(),
|
|
2984
2903
|
username: _zod.z.string().optional(),
|
|
2985
2904
|
avatarUrl: _zod.z.string().optional()
|
|
2986
2905
|
});
|
|
2987
|
-
var
|
|
2906
|
+
var IntegrationCredentials = _zod.z.object({
|
|
2988
2907
|
id: _zod.z.string(),
|
|
2989
2908
|
type: IntegrationCredentialsType,
|
|
2990
2909
|
integrationId: _zod.z.string(),
|
|
@@ -2992,7 +2911,8 @@ var IntegrationCredentialsSchema = _zod.z.object({
|
|
|
2992
2911
|
userId: _zod.z.string(),
|
|
2993
2912
|
createdAt: _zod.z.coerce.date(),
|
|
2994
2913
|
refreshToken: _zod.z.string().optional(),
|
|
2995
|
-
profile: IntegrationCredentialsProfile.optional()
|
|
2914
|
+
profile: IntegrationCredentialsProfile.optional(),
|
|
2915
|
+
customUrl: _zod.z.string().optional()
|
|
2996
2916
|
});
|
|
2997
2917
|
var IntegrationType = _zod.z.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2998
2918
|
var Integration = _zod.z.object({
|
|
@@ -3000,7 +2920,29 @@ var Integration = _zod.z.object({
|
|
|
3000
2920
|
workspaceId: _zod.z.string(),
|
|
3001
2921
|
type: IntegrationType,
|
|
3002
2922
|
createdAt: _zod.z.coerce.date(),
|
|
3003
|
-
integrationCredentials: _zod.z.array(
|
|
2923
|
+
integrationCredentials: _zod.z.array(IntegrationCredentials).optional()
|
|
2924
|
+
});
|
|
2925
|
+
var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
|
|
2926
|
+
var IntegrationTokenResponse = _zod.z.object({
|
|
2927
|
+
access_token: _zod.z.string(),
|
|
2928
|
+
refresh_token: _zod.z.string().optional(),
|
|
2929
|
+
expires_in: _zod.z.number().optional(),
|
|
2930
|
+
token_type: _zod.z.string().optional(),
|
|
2931
|
+
custom_url: _zod.z.string().optional().refine((value) => {
|
|
2932
|
+
if (!value)
|
|
2933
|
+
return true;
|
|
2934
|
+
if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
|
|
2935
|
+
return false;
|
|
2936
|
+
return true;
|
|
2937
|
+
}, "Custom URL validation failed")
|
|
2938
|
+
}).transform((data) => {
|
|
2939
|
+
return {
|
|
2940
|
+
accessToken: data.access_token,
|
|
2941
|
+
refreshToken: data.refresh_token,
|
|
2942
|
+
expiresIn: data.expires_in,
|
|
2943
|
+
tokenType: data.token_type,
|
|
2944
|
+
customUrl: data.custom_url
|
|
2945
|
+
};
|
|
3004
2946
|
});
|
|
3005
2947
|
var IntegrationTokenSchema = _zod.z.object({
|
|
3006
2948
|
id: _zod.z.string(),
|
|
@@ -3788,7 +3730,7 @@ var RESERVED_SLUGS = [
|
|
|
3788
3730
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3789
3731
|
|
|
3790
3732
|
// src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
|
|
3791
|
-
var
|
|
3733
|
+
var getDtoDefaultItemConfigurationV2 = () => ({
|
|
3792
3734
|
showSidebar: true,
|
|
3793
3735
|
isHidden: false,
|
|
3794
3736
|
isPrivate: false,
|
|
@@ -3799,18 +3741,97 @@ var dtoDefaultItemConfigurationV2 = {
|
|
|
3799
3741
|
showBackgroundOverlay: false,
|
|
3800
3742
|
showCoverText: true
|
|
3801
3743
|
}
|
|
3802
|
-
};
|
|
3744
|
+
});
|
|
3803
3745
|
function documentationItemConfigurationToDTOV2(config) {
|
|
3746
|
+
const dtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2();
|
|
3804
3747
|
if (!config)
|
|
3805
3748
|
return dtoDefaultItemConfigurationV2;
|
|
3806
3749
|
return {
|
|
3807
3750
|
header: config.header,
|
|
3808
|
-
isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.
|
|
3751
|
+
isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isHidden)),
|
|
3809
3752
|
isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
|
|
3810
3753
|
showSidebar: config.showSidebar
|
|
3811
3754
|
};
|
|
3812
3755
|
}
|
|
3813
3756
|
|
|
3757
|
+
// src/api/conversion/documentation/documentation-page-to-dto-utils.ts
|
|
3758
|
+
function buildDocPagePublishPaths(groups, pages, routingVersion) {
|
|
3759
|
+
const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
|
|
3760
|
+
const result = /* @__PURE__ */ new Map();
|
|
3761
|
+
for (const page of pages) {
|
|
3762
|
+
const parentChain = calculateElementParentChain(page.parentPersistentId, groupPersistentIdToGroupMap);
|
|
3763
|
+
let pathV1 = `${page.userSlug || page.slug}.html`;
|
|
3764
|
+
let pathV2 = `${slugify(page.meta.name)}-${page.shortPersistentId}`;
|
|
3765
|
+
for (const parent of parentChain) {
|
|
3766
|
+
if (!parent.parentPersistentId)
|
|
3767
|
+
continue;
|
|
3768
|
+
pathV1 = `${parent.userSlug || parent.slug}/${pathV1}`;
|
|
3769
|
+
pathV2 = `${slugify(parent.meta.name)}/${pathV2}`;
|
|
3770
|
+
}
|
|
3771
|
+
pathV1 = `/${pathV1}`;
|
|
3772
|
+
pathV2 = `/${pathV2}`;
|
|
3773
|
+
if (routingVersion === "2") {
|
|
3774
|
+
result.set(page.persistentId, pathV2);
|
|
3775
|
+
} else {
|
|
3776
|
+
result.set(page.persistentId, pathV1);
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
return result;
|
|
3780
|
+
}
|
|
3781
|
+
function calculateElementParentChain(elementParentPersistentId, groupPersistentIdToGroupMap) {
|
|
3782
|
+
const result = [];
|
|
3783
|
+
let parentId = elementParentPersistentId;
|
|
3784
|
+
while (parentId) {
|
|
3785
|
+
const parent = groupPersistentIdToGroupMap.get(parentId);
|
|
3786
|
+
if (parent)
|
|
3787
|
+
result.push(parent);
|
|
3788
|
+
parentId = _optionalChain([parent, 'optionalAccess', _3 => _3.parentPersistentId]);
|
|
3789
|
+
}
|
|
3790
|
+
return result;
|
|
3791
|
+
}
|
|
3792
|
+
function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemConfiguration) {
|
|
3793
|
+
const fixedGroups = groups.map((group) => ({
|
|
3794
|
+
...group,
|
|
3795
|
+
data: {
|
|
3796
|
+
...group.data,
|
|
3797
|
+
configuration: _nullishCoalesce(_optionalChain([group, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.configuration]), () => ( getDefaultItemConfiguration()))
|
|
3798
|
+
}
|
|
3799
|
+
}));
|
|
3800
|
+
const groupPersistentIdToGroupMap = mapByUnique(fixedGroups, (group) => group.persistentId);
|
|
3801
|
+
for (const groupToFix of fixedGroups) {
|
|
3802
|
+
let isHidden = groupToFix.data.configuration.isHidden;
|
|
3803
|
+
let isPrivate = groupToFix.data.configuration.isPrivate;
|
|
3804
|
+
let nextParentId = groupToFix.parentPersistentId;
|
|
3805
|
+
while ((!isHidden || !isPrivate) && nextParentId) {
|
|
3806
|
+
const parent = groupPersistentIdToGroupMap.get(nextParentId);
|
|
3807
|
+
if (!parent)
|
|
3808
|
+
break;
|
|
3809
|
+
isHidden = isHidden || _optionalChain([parent, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.configuration, 'optionalAccess', _8 => _8.isHidden]) || false;
|
|
3810
|
+
isPrivate = isPrivate || _optionalChain([parent, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.configuration, 'optionalAccess', _11 => _11.isPrivate]) || false;
|
|
3811
|
+
nextParentId = parent.parentPersistentId;
|
|
3812
|
+
}
|
|
3813
|
+
groupToFix.data.configuration.isHidden = isHidden;
|
|
3814
|
+
groupToFix.data.configuration.isPrivate = isPrivate;
|
|
3815
|
+
}
|
|
3816
|
+
const fixedPages = [];
|
|
3817
|
+
for (const page of pages) {
|
|
3818
|
+
const configuration = _nullishCoalesce(_optionalChain([page, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.configuration]), () => ( getDefaultItemConfiguration()));
|
|
3819
|
+
const parent = groupPersistentIdToGroupMap.get(page.parentPersistentId);
|
|
3820
|
+
fixedPages.push({
|
|
3821
|
+
...page,
|
|
3822
|
+
data: {
|
|
3823
|
+
...page.data,
|
|
3824
|
+
configuration: {
|
|
3825
|
+
...configuration,
|
|
3826
|
+
isHidden: configuration.isHidden || _optionalChain([parent, 'optionalAccess', _14 => _14.data, 'optionalAccess', _15 => _15.configuration, 'optionalAccess', _16 => _16.isHidden]) || false,
|
|
3827
|
+
isPrivate: configuration.isPrivate || _optionalChain([parent, 'optionalAccess', _17 => _17.data, 'optionalAccess', _18 => _18.configuration, 'optionalAccess', _19 => _19.isPrivate]) || false
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
});
|
|
3831
|
+
}
|
|
3832
|
+
return { pages: fixedPages, groups: fixedGroups };
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3814
3835
|
// src/api/conversion/documentation/documentation-group-v2-to-dto.ts
|
|
3815
3836
|
function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
|
|
3816
3837
|
const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
|
|
@@ -3818,12 +3839,12 @@ function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
|
|
|
3818
3839
|
}
|
|
3819
3840
|
function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
|
|
3820
3841
|
const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
|
|
3821
|
-
return groups.map((group) =>
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3842
|
+
return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
|
|
3843
|
+
}
|
|
3844
|
+
function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups, pages) {
|
|
3845
|
+
const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
|
|
3846
|
+
const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
|
|
3847
|
+
return fixedGroups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
|
|
3827
3848
|
}
|
|
3828
3849
|
function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
3829
3850
|
const childrenIds = _nullishCoalesce(childrenIdsMap.get(group.persistentId), () => ( []));
|
|
@@ -3839,10 +3860,10 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
|
3839
3860
|
createdAt: group.createdAt,
|
|
3840
3861
|
updatedAt: group.updatedAt,
|
|
3841
3862
|
title: group.meta.name,
|
|
3842
|
-
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess',
|
|
3863
|
+
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.configuration])),
|
|
3843
3864
|
childrenIds,
|
|
3844
3865
|
isRoot: !group.parentPersistentId,
|
|
3845
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
3866
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _22 => _22.data, 'optionalAccess', _23 => _23.behavior]), () => ( "Group")),
|
|
3846
3867
|
shortPersistentId: group.shortPersistentId,
|
|
3847
3868
|
type: "Group"
|
|
3848
3869
|
};
|
|
@@ -3862,42 +3883,6 @@ function calculateChildrenIdsMapV2(elements, groups) {
|
|
|
3862
3883
|
return childrenIdsMap;
|
|
3863
3884
|
}
|
|
3864
3885
|
|
|
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
3886
|
// src/api/conversion/documentation/documentation-page-v2-to-dto.ts
|
|
3902
3887
|
function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
|
|
3903
3888
|
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
@@ -3905,12 +3890,12 @@ function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
|
|
|
3905
3890
|
}
|
|
3906
3891
|
function documentationPagesToDTOV2(pages, groups, routingVersion) {
|
|
3907
3892
|
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
3908
|
-
return pages.map((page) =>
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3893
|
+
return pages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
|
|
3894
|
+
}
|
|
3895
|
+
function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion) {
|
|
3896
|
+
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
3897
|
+
const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
|
|
3898
|
+
return fixedPages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
|
|
3914
3899
|
}
|
|
3915
3900
|
function documentationPageToStructureDTOV2(page, pagePathMap) {
|
|
3916
3901
|
let path = pagePathMap.get(page.persistentId);
|
|
@@ -3943,7 +3928,7 @@ function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion
|
|
|
3943
3928
|
}
|
|
3944
3929
|
|
|
3945
3930
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
3946
|
-
var
|
|
3931
|
+
var getDtoDefaultItemConfigurationV1 = () => ({
|
|
3947
3932
|
showSidebar: true,
|
|
3948
3933
|
isHidden: false,
|
|
3949
3934
|
isPrivate: false,
|
|
@@ -3954,12 +3939,14 @@ var dtoDefaultItemConfigurationV1 = {
|
|
|
3954
3939
|
showBackgroundOverlay: false,
|
|
3955
3940
|
showCoverText: true
|
|
3956
3941
|
}
|
|
3957
|
-
};
|
|
3942
|
+
});
|
|
3958
3943
|
function documentationItemConfigurationToDTOV1(config) {
|
|
3959
|
-
const
|
|
3960
|
-
|
|
3944
|
+
const dtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1();
|
|
3945
|
+
if (!config)
|
|
3946
|
+
return dtoDefaultItemConfigurationV1;
|
|
3947
|
+
const { backgroundColor, foregroundColor, ...headerRest } = config.header;
|
|
3961
3948
|
return {
|
|
3962
|
-
showSidebar,
|
|
3949
|
+
showSidebar: config.showSidebar,
|
|
3963
3950
|
isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV1.isHidden)),
|
|
3964
3951
|
isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV1.isPrivate)),
|
|
3965
3952
|
header: {
|
|
@@ -3993,7 +3980,17 @@ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
|
|
|
3993
3980
|
return groups.map((group) => {
|
|
3994
3981
|
return {
|
|
3995
3982
|
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
3996
|
-
configuration: _optionalChain([group, 'access',
|
|
3983
|
+
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _24 => _24.data, 'optionalAccess', _25 => _25.configuration]))
|
|
3984
|
+
};
|
|
3985
|
+
});
|
|
3986
|
+
}
|
|
3987
|
+
function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages) {
|
|
3988
|
+
const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
|
|
3989
|
+
const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
|
|
3990
|
+
return fixedGroups.map((group) => {
|
|
3991
|
+
return {
|
|
3992
|
+
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
3993
|
+
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _26 => _26.data, 'optionalAccess', _27 => _27.configuration]))
|
|
3997
3994
|
};
|
|
3998
3995
|
});
|
|
3999
3996
|
}
|
|
@@ -4013,7 +4010,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
|
|
|
4013
4010
|
title: group.meta.name,
|
|
4014
4011
|
childrenIds,
|
|
4015
4012
|
isRoot: !group.parentPersistentId,
|
|
4016
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4013
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _28 => _28.data, 'optionalAccess', _29 => _29.behavior]), () => ( "Group")),
|
|
4017
4014
|
shortPersistentId: group.shortPersistentId,
|
|
4018
4015
|
type: "Group"
|
|
4019
4016
|
};
|
|
@@ -4036,27 +4033,33 @@ function calculateChildrenIdsMapV1(elements, groups) {
|
|
|
4036
4033
|
// src/api/conversion/documentation/documentation-page-v1-to-dto.ts
|
|
4037
4034
|
function documentationPagesToDTOV1(pages, groups, routingVersion) {
|
|
4038
4035
|
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
|
-
|
|
4036
|
+
return pages.map((page) => documentationPageToDTOV1(page, pathsMap));
|
|
4037
|
+
}
|
|
4038
|
+
function documentationPagesFixedConfigurationToDTOV1(pages, groups, routingVersion) {
|
|
4039
|
+
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
4040
|
+
const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
|
|
4041
|
+
return fixedPages.map((page) => documentationPageToDTOV1(page, pathsMap));
|
|
4042
|
+
}
|
|
4043
|
+
function documentationPageToDTOV1(page, pagePathMap) {
|
|
4044
|
+
let path = pagePathMap.get(page.persistentId);
|
|
4045
|
+
if (!path)
|
|
4046
|
+
throw SupernovaException.conflict(`Path for page ${page.id} was not calculated`);
|
|
4047
|
+
if (path.startsWith("/"))
|
|
4048
|
+
path = path.substring(1);
|
|
4049
|
+
return {
|
|
4050
|
+
id: page.id,
|
|
4051
|
+
designSystemVersionId: page.designSystemVersionId,
|
|
4052
|
+
persistentId: page.persistentId,
|
|
4053
|
+
shortPersistentId: page.shortPersistentId,
|
|
4054
|
+
title: page.meta.name,
|
|
4055
|
+
blocks: page.data.blocks,
|
|
4056
|
+
slug: page.slug,
|
|
4057
|
+
userSlug: page.userSlug,
|
|
4058
|
+
configuration: documentationItemConfigurationToDTOV1(page.data.configuration),
|
|
4059
|
+
createdAt: page.createdAt,
|
|
4060
|
+
updatedAt: page.updatedAt,
|
|
4061
|
+
path
|
|
4062
|
+
};
|
|
4060
4063
|
}
|
|
4061
4064
|
|
|
4062
4065
|
// src/api/conversion/integrations/integration.ts
|
|
@@ -4102,6 +4105,104 @@ var DTOExporterPropertyListResponse = _zod.z.object({ items: _zod.z.array(DTOExp
|
|
|
4102
4105
|
|
|
4103
4106
|
// src/api/dto/design-systems/version.ts
|
|
4104
4107
|
|
|
4108
|
+
|
|
4109
|
+
// src/api/payloads/design-systems/brand.ts
|
|
4110
|
+
|
|
4111
|
+
var DTOCreateBrandInput = _zod.z.object({
|
|
4112
|
+
persistentId: _zod.z.string().uuid(),
|
|
4113
|
+
meta: _zod.z.object({
|
|
4114
|
+
name: _zod.z.string(),
|
|
4115
|
+
description: _zod.z.string()
|
|
4116
|
+
})
|
|
4117
|
+
});
|
|
4118
|
+
|
|
4119
|
+
// src/api/payloads/design-systems/version.ts
|
|
4120
|
+
|
|
4121
|
+
var ObjectMeta2 = _zod.z.object({
|
|
4122
|
+
name: _zod.z.string().max(150).optional(),
|
|
4123
|
+
description: _zod.z.string().max(2e3).optional()
|
|
4124
|
+
});
|
|
4125
|
+
function validateSemver(version) {
|
|
4126
|
+
const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
|
|
4127
|
+
return semverRegex.test(version);
|
|
4128
|
+
}
|
|
4129
|
+
var DTOCreateVersionInput = _zod.z.object({
|
|
4130
|
+
meta: ObjectMeta2,
|
|
4131
|
+
version: _zod.z.string().refine(validateSemver, {
|
|
4132
|
+
message: "Invalid semantic versioning format"
|
|
4133
|
+
}),
|
|
4134
|
+
changeLog: _zod.z.string().max(2e3).optional()
|
|
4135
|
+
});
|
|
4136
|
+
|
|
4137
|
+
// src/api/payloads/documentation/block-definitions.ts
|
|
4138
|
+
|
|
4139
|
+
var DTOGetBlockDefinitionsOutput = _zod.z.object({
|
|
4140
|
+
definitions: _zod.z.array(PageBlockDefinition)
|
|
4141
|
+
});
|
|
4142
|
+
|
|
4143
|
+
// src/api/payloads/liveblocks/auth.ts
|
|
4144
|
+
|
|
4145
|
+
var DTOLiveblocksAuthRequest = _zod.z.object({
|
|
4146
|
+
room: _zod.z.string().optional()
|
|
4147
|
+
});
|
|
4148
|
+
|
|
4149
|
+
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4150
|
+
|
|
4151
|
+
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4152
|
+
function validateSsoPayload(ssoPayload) {
|
|
4153
|
+
const keys = [];
|
|
4154
|
+
let valid = true;
|
|
4155
|
+
if (!ssoPayload) {
|
|
4156
|
+
valid = true;
|
|
4157
|
+
return {
|
|
4158
|
+
valid,
|
|
4159
|
+
keys: []
|
|
4160
|
+
};
|
|
4161
|
+
}
|
|
4162
|
+
for (const key of Object.keys(ssoPayload)) {
|
|
4163
|
+
if (prohibitedSsoKeys.includes(key)) {
|
|
4164
|
+
keys.push(key);
|
|
4165
|
+
valid = false;
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
return {
|
|
4169
|
+
valid,
|
|
4170
|
+
keys
|
|
4171
|
+
};
|
|
4172
|
+
}
|
|
4173
|
+
var NpmRegistryInput = _zod.z.object({
|
|
4174
|
+
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
4175
|
+
customRegistryUrl: _zod.z.string().optional(),
|
|
4176
|
+
bypassProxy: _zod.z.boolean().optional(),
|
|
4177
|
+
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
4178
|
+
npmProxyVersion: _zod.z.number().optional(),
|
|
4179
|
+
registryType: _zod.z.string(),
|
|
4180
|
+
authType: _zod.z.string(),
|
|
4181
|
+
authHeaderName: _zod.z.string(),
|
|
4182
|
+
authHeaderValue: _zod.z.string(),
|
|
4183
|
+
accessToken: _zod.z.string(),
|
|
4184
|
+
username: _zod.z.string(),
|
|
4185
|
+
password: _zod.z.string()
|
|
4186
|
+
});
|
|
4187
|
+
var WorkspaceConfigurationPayload = _zod.z.object({
|
|
4188
|
+
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4189
|
+
sso: SsoProvider.partial().optional(),
|
|
4190
|
+
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
4191
|
+
profile: WorkspaceProfile.partial().optional()
|
|
4192
|
+
});
|
|
4193
|
+
|
|
4194
|
+
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4195
|
+
|
|
4196
|
+
var DTOWorkspaceIntegrationOauthInput = _zod.z.object({
|
|
4197
|
+
type: IntegrationType
|
|
4198
|
+
});
|
|
4199
|
+
var DTOWorkspaceIntegrationPATInput = _zod.z.object({
|
|
4200
|
+
userId: _zod.z.string(),
|
|
4201
|
+
type: IntegrationType,
|
|
4202
|
+
token: IntegrationTokenResponse
|
|
4203
|
+
});
|
|
4204
|
+
|
|
4205
|
+
// src/api/dto/design-systems/version.ts
|
|
4105
4206
|
var DTODesignSystemVersion = _zod.z.object({
|
|
4106
4207
|
id: _zod.z.string(),
|
|
4107
4208
|
createdAt: _zod.z.date(),
|
|
@@ -4117,6 +4218,17 @@ var DTODesignSystemVersionsListResponse = _zod.z.object({
|
|
|
4117
4218
|
var DTODesignSystemVersionGetResponse = _zod.z.object({
|
|
4118
4219
|
designSystemVersion: DTODesignSystemVersion
|
|
4119
4220
|
});
|
|
4221
|
+
var DTODesignSystemVersionCreationResponse = _zod.z.object({
|
|
4222
|
+
meta: ObjectMeta,
|
|
4223
|
+
version: _zod.z.string(),
|
|
4224
|
+
changeLog: _zod.z.string(),
|
|
4225
|
+
isReadOnly: _zod.z.boolean(),
|
|
4226
|
+
designSystemId: _zod.z.string()
|
|
4227
|
+
});
|
|
4228
|
+
var VersionSQSPayload = _zod.z.object({
|
|
4229
|
+
designSystemId: _zod.z.string(),
|
|
4230
|
+
input: DTOCreateVersionInput
|
|
4231
|
+
});
|
|
4120
4232
|
|
|
4121
4233
|
// src/api/dto/design-systems/view.ts
|
|
4122
4234
|
|
|
@@ -4668,7 +4780,7 @@ var DTOIntegration = _zod.z.object({
|
|
|
4668
4780
|
workspaceId: _zod.z.string(),
|
|
4669
4781
|
type: IntegrationType,
|
|
4670
4782
|
createdAt: _zod.z.coerce.date(),
|
|
4671
|
-
integrationCredentials: _zod.z.array(
|
|
4783
|
+
integrationCredentials: _zod.z.array(IntegrationCredentials).optional()
|
|
4672
4784
|
});
|
|
4673
4785
|
var DTOIntegrationOAuthGetResponse = _zod.z.object({
|
|
4674
4786
|
url: _zod.z.string()
|
|
@@ -4731,93 +4843,6 @@ var DTOUserWorkspaceMembershipsResponse = _zod.z.object({
|
|
|
4731
4843
|
membership: _zod.z.array(DTOUserWorkspaceMembership)
|
|
4732
4844
|
});
|
|
4733
4845
|
|
|
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
4846
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
4822
4847
|
|
|
4823
4848
|
var DocumentationHierarchySettings = _zod.z.object({
|
|
@@ -4904,7 +4929,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
|
|
|
4904
4929
|
function itemConfigurationToYjs(yDoc, item) {
|
|
4905
4930
|
yDoc.transact((trx) => {
|
|
4906
4931
|
const { title, configuration } = item;
|
|
4907
|
-
const header = _optionalChain([configuration, 'optionalAccess',
|
|
4932
|
+
const header = _optionalChain([configuration, 'optionalAccess', _30 => _30.header]);
|
|
4908
4933
|
if (title !== void 0) {
|
|
4909
4934
|
const headerYMap = trx.doc.getMap("itemTitle");
|
|
4910
4935
|
headerYMap.set("title", title);
|
|
@@ -4922,9 +4947,9 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
4922
4947
|
header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
|
|
4923
4948
|
}
|
|
4924
4949
|
const configYMap = trx.doc.getMap("itemConfiguration");
|
|
4925
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
4926
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
4927
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
4950
|
+
_optionalChain([configuration, 'optionalAccess', _31 => _31.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
|
|
4951
|
+
_optionalChain([configuration, 'optionalAccess', _32 => _32.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
|
|
4952
|
+
_optionalChain([configuration, 'optionalAccess', _33 => _33.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
4928
4953
|
});
|
|
4929
4954
|
}
|
|
4930
4955
|
function yjsToItemConfiguration(yDoc) {
|
|
@@ -5711,9 +5736,12 @@ var BlockDefinitionUtils = {
|
|
|
5711
5736
|
|
|
5712
5737
|
// src/yjs/docs-editor/list-tree-builder.ts
|
|
5713
5738
|
var ListTreeBuilder = class {
|
|
5739
|
+
constructor() {
|
|
5740
|
+
__publicField(this, "rootNode");
|
|
5741
|
+
}
|
|
5714
5742
|
addWithProperty(block, multiRichTextProperty) {
|
|
5715
5743
|
const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
|
|
5716
|
-
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess',
|
|
5744
|
+
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _34 => _34.multiRichTextStyle]) || "OL");
|
|
5717
5745
|
}
|
|
5718
5746
|
add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
|
|
5719
5747
|
const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
|
|
@@ -5733,7 +5761,7 @@ var ListTreeBuilder = class {
|
|
|
5733
5761
|
}
|
|
5734
5762
|
const listParent = this.getParentOfDepth(block.data.indentLevel);
|
|
5735
5763
|
const lastChild = listParent.children[listParent.children.length - 1];
|
|
5736
|
-
if (_optionalChain([lastChild, 'optionalAccess',
|
|
5764
|
+
if (_optionalChain([lastChild, 'optionalAccess', _35 => _35.type]) === "List") {
|
|
5737
5765
|
lastChild.children.push(...list.leadingChildren);
|
|
5738
5766
|
return;
|
|
5739
5767
|
} else {
|
|
@@ -5917,7 +5945,7 @@ function serializeAsRichTextBlock(input) {
|
|
|
5917
5945
|
const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
|
|
5918
5946
|
const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
|
|
5919
5947
|
const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
|
|
5920
|
-
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess',
|
|
5948
|
+
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _36 => _36.richTextStyle]), () => ( "Default"));
|
|
5921
5949
|
switch (style) {
|
|
5922
5950
|
case "Callout":
|
|
5923
5951
|
return serializeAsCallout(enrichedInput);
|
|
@@ -6138,7 +6166,7 @@ function serializeBlockNodeAttributes(block) {
|
|
|
6138
6166
|
};
|
|
6139
6167
|
}
|
|
6140
6168
|
function richTextHeadingLevel(property) {
|
|
6141
|
-
const style = _optionalChain([property, 'access',
|
|
6169
|
+
const style = _optionalChain([property, 'access', _37 => _37.options, 'optionalAccess', _38 => _38.richTextStyle]);
|
|
6142
6170
|
if (!style)
|
|
6143
6171
|
return void 0;
|
|
6144
6172
|
switch (style) {
|
|
@@ -6251,7 +6279,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
6251
6279
|
linksTo: i.linksTo
|
|
6252
6280
|
};
|
|
6253
6281
|
});
|
|
6254
|
-
const columns = _optionalChain([block, 'access',
|
|
6282
|
+
const columns = _optionalChain([block, 'access', _39 => _39.data, 'access', _40 => _40.appearance, 'optionalAccess', _41 => _41.numberOfColumns]);
|
|
6255
6283
|
return {
|
|
6256
6284
|
type: serializeCustomBlockNodeType(block, definition),
|
|
6257
6285
|
attrs: {
|
|
@@ -8098,10 +8126,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
|
|
|
8098
8126
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8099
8127
|
const result = [];
|
|
8100
8128
|
const listItems = [];
|
|
8101
|
-
_optionalChain([prosemirrorNode, 'access',
|
|
8129
|
+
_optionalChain([prosemirrorNode, 'access', _42 => _42.content, 'optionalAccess', _43 => _43.forEach, 'call', _44 => _44((c) => {
|
|
8102
8130
|
if (c.type !== "listItem")
|
|
8103
8131
|
return;
|
|
8104
|
-
_optionalChain([c, 'access',
|
|
8132
|
+
_optionalChain([c, 'access', _45 => _45.content, 'optionalAccess', _46 => _46.forEach, 'call', _47 => _47((cc) => {
|
|
8105
8133
|
listItems.push(cc);
|
|
8106
8134
|
})]);
|
|
8107
8135
|
})]);
|
|
@@ -8204,17 +8232,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
8204
8232
|
return null;
|
|
8205
8233
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8206
8234
|
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
|
|
8207
|
-
const tableChild = _optionalChain([prosemirrorNode, 'access',
|
|
8235
|
+
const tableChild = _optionalChain([prosemirrorNode, 'access', _48 => _48.content, 'optionalAccess', _49 => _49.find, 'call', _50 => _50((c) => c.type === "table")]);
|
|
8208
8236
|
if (!tableChild) {
|
|
8209
8237
|
return emptyTable(id, variantId, 0);
|
|
8210
8238
|
}
|
|
8211
|
-
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access',
|
|
8239
|
+
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]))]), () => ( []));
|
|
8212
8240
|
if (!rows.length) {
|
|
8213
8241
|
return emptyTable(id, variantId, 0);
|
|
8214
8242
|
}
|
|
8215
|
-
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access',
|
|
8216
|
-
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access',
|
|
8217
|
-
const hasHeaderRow = _optionalChain([rows, 'access',
|
|
8243
|
+
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));
|
|
8244
|
+
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _61 => _61.content, 'optionalAccess', _62 => _62[0], 'optionalAccess', _63 => _63.type]) === "tableHeader").length;
|
|
8245
|
+
const hasHeaderRow = _optionalChain([rows, 'access', _64 => _64[0], 'access', _65 => _65.content, 'optionalAccess', _66 => _66.length]) === rowHeaderCells;
|
|
8218
8246
|
const hasHeaderColumn = rows.length === columnHeaderCells;
|
|
8219
8247
|
const tableValue = {
|
|
8220
8248
|
showBorder: hasBorder,
|
|
@@ -8296,7 +8324,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8296
8324
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
8297
8325
|
if (!parsedItems.success)
|
|
8298
8326
|
return null;
|
|
8299
|
-
const rawImagePropertyValue = _optionalChain([parsedItems, 'access',
|
|
8327
|
+
const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _67 => _67.data, 'access', _68 => _68[0], 'optionalAccess', _69 => _69.props, 'access', _70 => _70.image]);
|
|
8300
8328
|
if (!rawImagePropertyValue)
|
|
8301
8329
|
return null;
|
|
8302
8330
|
const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
|
|
@@ -8518,7 +8546,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
|
8518
8546
|
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
|
|
8519
8547
|
}
|
|
8520
8548
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
8521
|
-
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access',
|
|
8549
|
+
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _71 => _71.attrs, 'optionalAccess', _72 => _72[attributeName]]));
|
|
8522
8550
|
if (parsedAttr.success) {
|
|
8523
8551
|
return parsedAttr.data;
|
|
8524
8552
|
} else {
|
|
@@ -8693,5 +8721,10 @@ function mapByUnique2(items, keyFn) {
|
|
|
8693
8721
|
|
|
8694
8722
|
|
|
8695
8723
|
|
|
8696
|
-
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;
|
|
8724
|
+
|
|
8725
|
+
|
|
8726
|
+
|
|
8727
|
+
|
|
8728
|
+
|
|
8729
|
+
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;
|
|
8697
8730
|
//# sourceMappingURL=index.js.map
|