@supernova-studio/client 1.5.0 → 1.5.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 +1333 -258
- package/dist/index.d.ts +1333 -258
- package/dist/index.js +340 -214
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1894 -1768
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
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
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
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
|
|
8
5
|
// ../model/dist/index.mjs
|
|
9
6
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
@@ -191,15 +188,14 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
191
188
|
|
|
192
189
|
|
|
193
190
|
|
|
191
|
+
|
|
192
|
+
|
|
194
193
|
|
|
195
194
|
|
|
196
195
|
|
|
197
196
|
var __defProp2 = Object.defineProperty;
|
|
198
197
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
199
|
-
var __publicField2 = (obj, key, value) =>
|
|
200
|
-
__defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
201
|
-
return value;
|
|
202
|
-
};
|
|
198
|
+
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
203
199
|
var AssetDeleteScheduleStatus = _zod.z.enum(["InProgress", "Pending"]);
|
|
204
200
|
var AssetDeleteSchedule = _zod.z.object({
|
|
205
201
|
id: _zod.z.string(),
|
|
@@ -927,14 +923,10 @@ function groupBy(items, keyFn) {
|
|
|
927
923
|
return result;
|
|
928
924
|
}
|
|
929
925
|
function areShallowObjectsEqual(lhs, rhs) {
|
|
930
|
-
if (lhs === void 0 !== (rhs === void 0))
|
|
931
|
-
|
|
932
|
-
if (lhs ===
|
|
933
|
-
|
|
934
|
-
if (lhs === null !== (rhs === null))
|
|
935
|
-
return false;
|
|
936
|
-
if (lhs === null || rhs === null)
|
|
937
|
-
return true;
|
|
926
|
+
if (lhs === void 0 !== (rhs === void 0)) return false;
|
|
927
|
+
if (lhs === void 0 || rhs === void 0) return true;
|
|
928
|
+
if (lhs === null !== (rhs === null)) return false;
|
|
929
|
+
if (lhs === null || rhs === null) return true;
|
|
938
930
|
for (const key in lhs) {
|
|
939
931
|
if (!(key in rhs) || lhs[key] !== rhs[key]) {
|
|
940
932
|
return false;
|
|
@@ -949,8 +941,7 @@ function areShallowObjectsEqual(lhs, rhs) {
|
|
|
949
941
|
}
|
|
950
942
|
function recordToMap(record) {
|
|
951
943
|
const map = /* @__PURE__ */ new Map();
|
|
952
|
-
for (const [k, v] of Object.entries(record))
|
|
953
|
-
map.set(k, v);
|
|
944
|
+
for (const [k, v] of Object.entries(record)) map.set(k, v);
|
|
954
945
|
return map;
|
|
955
946
|
}
|
|
956
947
|
var ContentLoadInstruction = _zod.z.object({
|
|
@@ -1667,10 +1658,8 @@ var Size = _zod.z.object({
|
|
|
1667
1658
|
height: _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( nullSize.height)))
|
|
1668
1659
|
});
|
|
1669
1660
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1670
|
-
if (!v)
|
|
1671
|
-
|
|
1672
|
-
if (isNullSize(v))
|
|
1673
|
-
return void 0;
|
|
1661
|
+
if (!v) return void 0;
|
|
1662
|
+
if (isNullSize(v)) return void 0;
|
|
1674
1663
|
return v;
|
|
1675
1664
|
});
|
|
1676
1665
|
var DesignTokenType = _zod.z.enum([
|
|
@@ -2064,8 +2053,7 @@ function removeCommentSpans(text) {
|
|
|
2064
2053
|
return joinRepeatingSpans(updatedRichText);
|
|
2065
2054
|
}
|
|
2066
2055
|
function joinRepeatingSpans(text) {
|
|
2067
|
-
if (text.spans.length < 2)
|
|
2068
|
-
return text;
|
|
2056
|
+
if (text.spans.length < 2) return text;
|
|
2069
2057
|
text = sanitizeSpans(text);
|
|
2070
2058
|
const { spans, ...rest } = text;
|
|
2071
2059
|
let previousSpan = { ...spans[0] };
|
|
@@ -2085,13 +2073,11 @@ function joinRepeatingSpans(text) {
|
|
|
2085
2073
|
};
|
|
2086
2074
|
}
|
|
2087
2075
|
function areAttributesEqual(lhs, rhs) {
|
|
2088
|
-
if (lhs.length !== rhs.length)
|
|
2089
|
-
return false;
|
|
2076
|
+
if (lhs.length !== rhs.length) return false;
|
|
2090
2077
|
const lhsMap = mapByUnique(lhs, (i) => i.type);
|
|
2091
2078
|
for (const rhsAttribute of rhs) {
|
|
2092
2079
|
const lhsAttribute = lhsMap.get(rhsAttribute.type);
|
|
2093
|
-
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
|
|
2094
|
-
return false;
|
|
2080
|
+
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute)) return false;
|
|
2095
2081
|
}
|
|
2096
2082
|
return true;
|
|
2097
2083
|
}
|
|
@@ -2518,7 +2504,9 @@ var PageBlockItemStorybookValue = _zod.z.object({
|
|
|
2518
2504
|
caption: _zod.z.string().optional(),
|
|
2519
2505
|
height: _zod.z.number().optional(),
|
|
2520
2506
|
embedUrl: _zod.z.string().optional(),
|
|
2521
|
-
value: _zod.z.string().optional()
|
|
2507
|
+
value: _zod.z.string().optional(),
|
|
2508
|
+
storyId: _zod.z.string().optional(),
|
|
2509
|
+
sourceId: _zod.z.string().optional()
|
|
2522
2510
|
});
|
|
2523
2511
|
var PageBlockItemTextValue = _zod.z.object({
|
|
2524
2512
|
value: _zod.z.string()
|
|
@@ -3173,8 +3161,7 @@ function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
|
3173
3161
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
3174
3162
|
Object.entries(item.props).forEach(([propKey, value]) => {
|
|
3175
3163
|
const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
|
|
3176
|
-
if (!property)
|
|
3177
|
-
return;
|
|
3164
|
+
if (!property) return;
|
|
3178
3165
|
item.props[propKey] = fn(block, item, property, value);
|
|
3179
3166
|
});
|
|
3180
3167
|
});
|
|
@@ -3267,7 +3254,7 @@ var SourceImportSummary = _zod.z.object({
|
|
|
3267
3254
|
function zeroNumberByDefault() {
|
|
3268
3255
|
return _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( 0)));
|
|
3269
3256
|
}
|
|
3270
|
-
var DataSourceRemoteType = _zod.z.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
3257
|
+
var DataSourceRemoteType = _zod.z.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
|
|
3271
3258
|
var DataSourceUploadRemoteSource = _zod.z.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3272
3259
|
var DataSourceFigmaState = _zod.z.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3273
3260
|
var DataSourceAutoImportMode = _zod.z.enum(["Never", "Hourly"]);
|
|
@@ -3327,10 +3314,22 @@ var DataSourceUploadRemote = _zod.z.object({
|
|
|
3327
3314
|
isTokenTypeSplitEnabled: _zod.z.boolean(),
|
|
3328
3315
|
isCollectionsMigrationCompleted: _zod.z.boolean()
|
|
3329
3316
|
});
|
|
3317
|
+
var DataSourceStorybookRemote = _zod.z.object({
|
|
3318
|
+
type: _zod.z.literal(DataSourceRemoteType.Enum.Storybook),
|
|
3319
|
+
indexUrl: _zod.z.string(),
|
|
3320
|
+
userUrl: _zod.z.string(),
|
|
3321
|
+
ownerId: _zod.z.string().optional(),
|
|
3322
|
+
lastImportedAt: _zod.z.coerce.date().optional(),
|
|
3323
|
+
lastImportedSuccessfully: _zod.z.coerce.date().optional(),
|
|
3324
|
+
isFailed: _zod.z.boolean(),
|
|
3325
|
+
storiesCount: _zod.z.number(),
|
|
3326
|
+
docsCount: _zod.z.number()
|
|
3327
|
+
});
|
|
3330
3328
|
var DataSourceRemote = _zod.z.discriminatedUnion("type", [
|
|
3331
3329
|
DataSourceFigmaRemote,
|
|
3332
3330
|
DataSourceUploadRemote,
|
|
3333
|
-
DataSourceTokenStudioRemote
|
|
3331
|
+
DataSourceTokenStudioRemote,
|
|
3332
|
+
DataSourceStorybookRemote
|
|
3334
3333
|
]);
|
|
3335
3334
|
var DataSource = _zod.z.object({
|
|
3336
3335
|
id: _zod.z.string(),
|
|
@@ -3405,15 +3404,11 @@ var FigmaImportBaseContext = _zod.z.object({
|
|
|
3405
3404
|
importWarnings: _zod.z.record(ImportWarning.array()).default({})
|
|
3406
3405
|
});
|
|
3407
3406
|
var FeatureFlagsKeepAliases = _zod.z.object({
|
|
3408
|
-
isTypographyPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3409
|
-
isGradientPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3410
|
-
isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3411
3407
|
isNonCompatibleTypeChangesEnabled: _zod.z.boolean().default(false),
|
|
3412
3408
|
isTypographyUseFontStyleEnabled: _zod.z.boolean().default(false)
|
|
3413
3409
|
});
|
|
3414
3410
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3415
3411
|
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
3416
|
-
shadowOpacityOptional: _zod.z.boolean().default(false),
|
|
3417
3412
|
featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
|
|
3418
3413
|
});
|
|
3419
3414
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
@@ -3522,20 +3517,18 @@ var FigmaComponentImportModelPart = _zod.z.object({
|
|
|
3522
3517
|
parentComponentId: _zod.z.string().optional(),
|
|
3523
3518
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
3524
3519
|
variantPropertyValues: _zod.z.record(_zod.z.string()).optional(),
|
|
3525
|
-
renderNodeId: _zod.z.string()
|
|
3520
|
+
renderNodeId: _zod.z.string(),
|
|
3521
|
+
svg: FigmaSvgRenderImportModel.optional()
|
|
3526
3522
|
});
|
|
3527
3523
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
origin: FigmaComponentOrigin
|
|
3524
|
+
origin: FigmaComponentOrigin,
|
|
3525
|
+
isAsset: _zod.z.boolean()
|
|
3531
3526
|
});
|
|
3532
3527
|
var FigmaComponentImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3533
|
-
originMetadata: FigmaComponentOriginPart
|
|
3534
|
-
|
|
3535
|
-
var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3536
|
-
svg: FigmaSvgRenderImportModel,
|
|
3537
|
-
originMetadata: FigmaComponentOriginPart
|
|
3528
|
+
originMetadata: FigmaComponentOriginPart,
|
|
3529
|
+
isAsset: _zod.z.boolean().optional()
|
|
3538
3530
|
});
|
|
3531
|
+
var AssetImportModelInput = FigmaComponentImportModelInput;
|
|
3539
3532
|
var DataSourceImportModel = _zod.z.object({
|
|
3540
3533
|
id: _zod.z.string(),
|
|
3541
3534
|
fileName: _zod.z.string().optional(),
|
|
@@ -4316,6 +4309,33 @@ var PublishedDoc = _zod.z.object({
|
|
|
4316
4309
|
tokenCount: _zod.z.number(),
|
|
4317
4310
|
assetCount: _zod.z.number()
|
|
4318
4311
|
});
|
|
4312
|
+
var StorybookEntryOrigin = _zod.z.object({
|
|
4313
|
+
id: _zod.z.string(),
|
|
4314
|
+
type: _zod.z.enum(["story", "docs"]),
|
|
4315
|
+
name: _zod.z.string(),
|
|
4316
|
+
title: _zod.z.string()
|
|
4317
|
+
// Same as 'kind' for v3
|
|
4318
|
+
});
|
|
4319
|
+
var StorybookEntry = _zod.z.object({
|
|
4320
|
+
id: _zod.z.string(),
|
|
4321
|
+
storyId: _zod.z.string(),
|
|
4322
|
+
designSystemId: _zod.z.string(),
|
|
4323
|
+
sourceId: _zod.z.string(),
|
|
4324
|
+
aliases: _zod.z.array(_zod.z.string()).optional(),
|
|
4325
|
+
url: _zod.z.string(),
|
|
4326
|
+
isDeleted: _zod.z.boolean().optional(),
|
|
4327
|
+
origin: StorybookEntryOrigin,
|
|
4328
|
+
createdAt: _zod.z.coerce.date(),
|
|
4329
|
+
updatedAt: _zod.z.coerce.date()
|
|
4330
|
+
});
|
|
4331
|
+
var StorybookPayload = _zod.z.object({
|
|
4332
|
+
id: _zod.z.string(),
|
|
4333
|
+
designSystemId: _zod.z.string(),
|
|
4334
|
+
sourceId: _zod.z.string(),
|
|
4335
|
+
payload: _zod.z.any(),
|
|
4336
|
+
createdAt: _zod.z.coerce.date(),
|
|
4337
|
+
updatedAt: _zod.z.coerce.date()
|
|
4338
|
+
});
|
|
4319
4339
|
var DesignSystemVersion = _zod.z.object({
|
|
4320
4340
|
id: _zod.z.string(),
|
|
4321
4341
|
version: _zod.z.string(),
|
|
@@ -4624,8 +4644,7 @@ var IntegrationToken = _zod.z.object({
|
|
|
4624
4644
|
token_bitbucket_username: _zod.z.string().optional(),
|
|
4625
4645
|
// Bitbucket only
|
|
4626
4646
|
custom_url: _zod.z.string().optional().transform((value) => {
|
|
4627
|
-
if (!_optionalChain([value, 'optionalAccess', _4 => _4.trim, 'call', _5 => _5()]))
|
|
4628
|
-
return void 0;
|
|
4647
|
+
if (!_optionalChain([value, 'optionalAccess', _4 => _4.trim, 'call', _5 => _5()])) return void 0;
|
|
4629
4648
|
return formatCustomUrl(value);
|
|
4630
4649
|
})
|
|
4631
4650
|
}).refine((data) => {
|
|
@@ -4844,7 +4863,6 @@ var ExporterWorkspaceMembership = _zod.z.object({
|
|
|
4844
4863
|
});
|
|
4845
4864
|
var FlaggedFeature = _zod.z.enum([
|
|
4846
4865
|
"FigmaImporterV2",
|
|
4847
|
-
"ShadowOpacityOptional",
|
|
4848
4866
|
"DisableImporter",
|
|
4849
4867
|
"VariablesOrder",
|
|
4850
4868
|
"TypographyPropsKeepAliases",
|
|
@@ -5015,6 +5033,28 @@ function pageVisitsToDto(entries) {
|
|
|
5015
5033
|
}
|
|
5016
5034
|
return result;
|
|
5017
5035
|
}
|
|
5036
|
+
function calculateChangeOverTime(currentIntervalData, priorIntervalData, priorIntervalStartDate, priorIntervalEndDate) {
|
|
5037
|
+
let priorIntervalVisits = 0;
|
|
5038
|
+
let priorIntervalSessions = 0;
|
|
5039
|
+
for (const v of priorIntervalData) {
|
|
5040
|
+
priorIntervalVisits += v.visits;
|
|
5041
|
+
priorIntervalSessions += v.sessions;
|
|
5042
|
+
}
|
|
5043
|
+
let currentIntervalVisits = 0;
|
|
5044
|
+
let currentIntervalSessions = 0;
|
|
5045
|
+
for (const v of currentIntervalData) {
|
|
5046
|
+
currentIntervalVisits += v.visits;
|
|
5047
|
+
currentIntervalSessions += v.sessions;
|
|
5048
|
+
}
|
|
5049
|
+
return {
|
|
5050
|
+
priorVisitCount: priorIntervalVisits,
|
|
5051
|
+
priorSessionCount: priorIntervalSessions,
|
|
5052
|
+
currentVisitCount: currentIntervalVisits,
|
|
5053
|
+
currentSessionCount: currentIntervalSessions,
|
|
5054
|
+
startDate: priorIntervalStartDate,
|
|
5055
|
+
endDate: priorIntervalEndDate
|
|
5056
|
+
};
|
|
5057
|
+
}
|
|
5018
5058
|
function getTimestampKey(timestamp) {
|
|
5019
5059
|
const date = timestamp.toISOString().split("T")[0];
|
|
5020
5060
|
const hour = timestamp.toISOString().split("T")[1].split(":")[0];
|
|
@@ -5080,8 +5120,7 @@ var getDtoDefaultItemConfigurationV1 = () => ({
|
|
|
5080
5120
|
});
|
|
5081
5121
|
function documentationItemConfigurationToDTOV1(config) {
|
|
5082
5122
|
const dtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1();
|
|
5083
|
-
if (!config)
|
|
5084
|
-
return dtoDefaultItemConfigurationV1;
|
|
5123
|
+
if (!config) return dtoDefaultItemConfigurationV1;
|
|
5085
5124
|
const { backgroundColor, foregroundColor, ...headerRest } = config.header;
|
|
5086
5125
|
return {
|
|
5087
5126
|
showSidebar: config.showSidebar,
|
|
@@ -5095,16 +5134,11 @@ function documentationItemConfigurationToDTOV1(config) {
|
|
|
5095
5134
|
};
|
|
5096
5135
|
}
|
|
5097
5136
|
function colorToDTOV1(color) {
|
|
5098
|
-
if (!color)
|
|
5099
|
-
|
|
5100
|
-
if (color.
|
|
5101
|
-
|
|
5102
|
-
if (
|
|
5103
|
-
return void 0;
|
|
5104
|
-
if (typeof color.value === "string")
|
|
5105
|
-
return { value: color.value };
|
|
5106
|
-
if (typeof color.value.color === "string")
|
|
5107
|
-
return { value: color.value.color };
|
|
5137
|
+
if (!color) return void 0;
|
|
5138
|
+
if (color.aliasTo) return { aliasTo: color.aliasTo };
|
|
5139
|
+
if (!color.value) return void 0;
|
|
5140
|
+
if (typeof color.value === "string") return { value: color.value };
|
|
5141
|
+
if (typeof color.value.color === "string") return { value: color.value.color };
|
|
5108
5142
|
return void 0;
|
|
5109
5143
|
}
|
|
5110
5144
|
|
|
@@ -5117,8 +5151,7 @@ function buildDocPagePublishPaths(groups, pages, routingVersion) {
|
|
|
5117
5151
|
let pathV1 = `${page.userSlug || page.slug}.html`;
|
|
5118
5152
|
let pathV2 = `${page.slug}-${page.shortPersistentId}`;
|
|
5119
5153
|
for (const parent of parentChain) {
|
|
5120
|
-
if (!parent.parentPersistentId)
|
|
5121
|
-
continue;
|
|
5154
|
+
if (!parent.parentPersistentId) continue;
|
|
5122
5155
|
pathV1 = `${parent.userSlug || parent.slug || "root"}/${pathV1}`;
|
|
5123
5156
|
pathV2 = `${parent.slug || "root"}/${pathV2}`;
|
|
5124
5157
|
}
|
|
@@ -5137,8 +5170,7 @@ function calculateElementParentChain(elementParentPersistentId, groupPersistentI
|
|
|
5137
5170
|
let parentId = elementParentPersistentId;
|
|
5138
5171
|
while (parentId) {
|
|
5139
5172
|
const parent = groupPersistentIdToGroupMap.get(parentId);
|
|
5140
|
-
if (parent)
|
|
5141
|
-
result.push(parent);
|
|
5173
|
+
if (parent) result.push(parent);
|
|
5142
5174
|
parentId = _optionalChain([parent, 'optionalAccess', _6 => _6.parentPersistentId]);
|
|
5143
5175
|
}
|
|
5144
5176
|
return result;
|
|
@@ -5158,8 +5190,7 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
5158
5190
|
let nextParentId = groupToFix.parentPersistentId;
|
|
5159
5191
|
while ((!isHidden || !isPrivate) && nextParentId) {
|
|
5160
5192
|
const parent = groupPersistentIdToGroupMap.get(nextParentId);
|
|
5161
|
-
if (!parent)
|
|
5162
|
-
break;
|
|
5193
|
+
if (!parent) break;
|
|
5163
5194
|
isHidden = isHidden || _optionalChain([parent, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.configuration, 'optionalAccess', _11 => _11.isHidden]) || false;
|
|
5164
5195
|
isPrivate = isPrivate || _optionalChain([parent, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.configuration, 'optionalAccess', _14 => _14.isPrivate]) || false;
|
|
5165
5196
|
nextParentId = parent.parentPersistentId;
|
|
@@ -5238,8 +5269,7 @@ function calculateChildrenIdsMapV1(elements, groups) {
|
|
|
5238
5269
|
const byParentId = groupBy([...elements, ...groups], (e) => e.parentPersistentId);
|
|
5239
5270
|
const childrenIdsMap = /* @__PURE__ */ new Map();
|
|
5240
5271
|
for (const [parentPersistentId, children] of byParentId) {
|
|
5241
|
-
if (!parentPersistentId)
|
|
5242
|
-
continue;
|
|
5272
|
+
if (!parentPersistentId) continue;
|
|
5243
5273
|
children.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
5244
5274
|
childrenIdsMap.set(
|
|
5245
5275
|
parentPersistentId,
|
|
@@ -5264,8 +5294,7 @@ var getDtoDefaultItemConfigurationV2 = () => ({
|
|
|
5264
5294
|
});
|
|
5265
5295
|
function documentationItemConfigurationToDTOV2(config) {
|
|
5266
5296
|
const dtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2();
|
|
5267
|
-
if (!config)
|
|
5268
|
-
return dtoDefaultItemConfigurationV2;
|
|
5297
|
+
if (!config) return dtoDefaultItemConfigurationV2;
|
|
5269
5298
|
return {
|
|
5270
5299
|
header: config.header,
|
|
5271
5300
|
isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isHidden)),
|
|
@@ -5310,8 +5339,7 @@ function calculateChildrenIdsMapV2(elements, groups) {
|
|
|
5310
5339
|
const byParentId = groupBy([...elements, ...groups], (e) => e.parentPersistentId);
|
|
5311
5340
|
const childrenIdsMap = /* @__PURE__ */ new Map();
|
|
5312
5341
|
for (const [parentPersistentId, children] of byParentId) {
|
|
5313
|
-
if (!parentPersistentId)
|
|
5314
|
-
continue;
|
|
5342
|
+
if (!parentPersistentId) continue;
|
|
5315
5343
|
children.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
5316
5344
|
childrenIdsMap.set(
|
|
5317
5345
|
parentPersistentId,
|
|
@@ -5333,10 +5361,8 @@ function documentationPagesFixedConfigurationToDTOV1(pages, groups, routingVersi
|
|
|
5333
5361
|
}
|
|
5334
5362
|
function documentationPageToDTOV1(page, pagePathMap) {
|
|
5335
5363
|
let path = pagePathMap.get(page.persistentId);
|
|
5336
|
-
if (!path)
|
|
5337
|
-
|
|
5338
|
-
if (path.startsWith("/"))
|
|
5339
|
-
path = path.substring(1);
|
|
5364
|
+
if (!path) throw SupernovaException.conflict(`Path for page ${page.id} was not calculated`);
|
|
5365
|
+
if (path.startsWith("/")) path = path.substring(1);
|
|
5340
5366
|
const configuration = documentationItemConfigurationToDTOV1(page.data.configuration);
|
|
5341
5367
|
return {
|
|
5342
5368
|
id: page.id,
|
|
@@ -5371,10 +5397,8 @@ function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersi
|
|
|
5371
5397
|
}
|
|
5372
5398
|
function _documentationPageToDTOV2(page, pagePathMap, pageLiveblocksRoomIdMap) {
|
|
5373
5399
|
let path = pagePathMap.get(page.persistentId);
|
|
5374
|
-
if (!path)
|
|
5375
|
-
|
|
5376
|
-
if (path.startsWith("/"))
|
|
5377
|
-
path = path.substring(1);
|
|
5400
|
+
if (!path) throw new Error(`Path for page ${page.persistentId} was not calculated`);
|
|
5401
|
+
if (path.startsWith("/")) path = path.substring(1);
|
|
5378
5402
|
const liveblocksRoomId = pageLiveblocksRoomIdMap.get(page.persistentId);
|
|
5379
5403
|
return {
|
|
5380
5404
|
id: "to_be_removed",
|
|
@@ -5730,10 +5754,35 @@ var DTODataSourceFigmaVariablesPlugin = _zod.z.object({
|
|
|
5730
5754
|
isCollectionsMigrationCompleted: _zod.z.boolean().default(false)
|
|
5731
5755
|
})
|
|
5732
5756
|
});
|
|
5757
|
+
var DTODataSourceStorybook = _zod.z.object({
|
|
5758
|
+
id: _zod.z.string(),
|
|
5759
|
+
type: _zod.z.literal(DataSourceRemoteType.Enum.Storybook),
|
|
5760
|
+
fileName: _zod.z.string(),
|
|
5761
|
+
brandId: _zod.z.string(),
|
|
5762
|
+
sortOrder: _zod.z.number().optional(),
|
|
5763
|
+
storybook: _zod.z.object({
|
|
5764
|
+
indexUrl: _zod.z.string(),
|
|
5765
|
+
userUrl: _zod.z.string(),
|
|
5766
|
+
lastImportedAt: _zod.z.coerce.date().optional(),
|
|
5767
|
+
lastImportedSuccessfully: _zod.z.coerce.date().optional(),
|
|
5768
|
+
isFailed: _zod.z.boolean(),
|
|
5769
|
+
storiesCount: _zod.z.number(),
|
|
5770
|
+
docsCount: _zod.z.number()
|
|
5771
|
+
})
|
|
5772
|
+
});
|
|
5773
|
+
var DTODataSourcesStorybookResponse = _zod.z.object({
|
|
5774
|
+
isFailed: _zod.z.boolean(),
|
|
5775
|
+
storiesCount: _zod.z.number(),
|
|
5776
|
+
docsCount: _zod.z.number(),
|
|
5777
|
+
created: _zod.z.array(_zod.z.string()).optional(),
|
|
5778
|
+
updated: _zod.z.array(_zod.z.string()).optional(),
|
|
5779
|
+
deleted: _zod.z.array(_zod.z.string()).optional()
|
|
5780
|
+
});
|
|
5733
5781
|
var DTODataSource = _zod.z.discriminatedUnion("type", [
|
|
5734
5782
|
DTODataSourceFigma,
|
|
5735
5783
|
DTODataSourceFigmaVariablesPlugin,
|
|
5736
|
-
DTODataSourceTokenStudio
|
|
5784
|
+
DTODataSourceTokenStudio,
|
|
5785
|
+
DTODataSourceStorybook
|
|
5737
5786
|
]);
|
|
5738
5787
|
var DTODataSourcesListResponse = _zod.z.object({
|
|
5739
5788
|
sources: _zod.z.array(DTODataSource)
|
|
@@ -5750,6 +5799,17 @@ var DTODataSourceFigmaCreatePayload = _zod.z.object({
|
|
|
5750
5799
|
var DTODataSourceFigmaImportPayload = _zod.z.object({
|
|
5751
5800
|
sourceIds: _zod.z.array(_zod.z.string())
|
|
5752
5801
|
});
|
|
5802
|
+
var DTODataSourceStorybookCreatePayload = _zod.z.object({
|
|
5803
|
+
brandPersistentId: _zod.z.string(),
|
|
5804
|
+
userUrl: _zod.z.string(),
|
|
5805
|
+
indexUrl: _zod.z.string(),
|
|
5806
|
+
payload: _zod.z.unknown(),
|
|
5807
|
+
type: _zod.z.literal(DataSourceRemoteType.Enum.Storybook)
|
|
5808
|
+
});
|
|
5809
|
+
var DTOStorybookImportPayload = _zod.z.object({
|
|
5810
|
+
sourceId: _zod.z.string(),
|
|
5811
|
+
payload: _zod.z.unknown()
|
|
5812
|
+
});
|
|
5753
5813
|
|
|
5754
5814
|
// src/api/dto/design-systems/design-system.ts
|
|
5755
5815
|
|
|
@@ -6000,6 +6060,32 @@ var DTODesignSystemVersionStatsQuery = _zod.z.object({
|
|
|
6000
6060
|
brandId: _zod.z.string().optional()
|
|
6001
6061
|
});
|
|
6002
6062
|
|
|
6063
|
+
// src/api/dto/design-systems/storybook.ts
|
|
6064
|
+
|
|
6065
|
+
var DTOStorybookEntryOrigin = _zod.z.object({
|
|
6066
|
+
id: _zod.z.string(),
|
|
6067
|
+
type: _zod.z.enum(["story", "docs"]),
|
|
6068
|
+
name: _zod.z.string(),
|
|
6069
|
+
title: _zod.z.string()
|
|
6070
|
+
});
|
|
6071
|
+
var DTOStorybookEntry = _zod.z.object({
|
|
6072
|
+
id: _zod.z.string(),
|
|
6073
|
+
storyId: _zod.z.string(),
|
|
6074
|
+
designSystemId: _zod.z.string(),
|
|
6075
|
+
sourceId: _zod.z.string(),
|
|
6076
|
+
aliases: _zod.z.array(_zod.z.string()).optional(),
|
|
6077
|
+
url: _zod.z.string(),
|
|
6078
|
+
isDeleted: _zod.z.boolean().optional(),
|
|
6079
|
+
origin: DTOStorybookEntryOrigin,
|
|
6080
|
+
createdAt: _zod.z.coerce.date(),
|
|
6081
|
+
updatedAt: _zod.z.coerce.date()
|
|
6082
|
+
});
|
|
6083
|
+
var DTOStorybookEntryReplaceAction = _zod.z.object({
|
|
6084
|
+
newStoryId: _zod.z.string()
|
|
6085
|
+
});
|
|
6086
|
+
var DTOStorybookEntryListResponse = _zod.z.object({ entries: _zod.z.array(DTOStorybookEntry) });
|
|
6087
|
+
var DTOStorybookEntryResponse = _zod.z.object({ entry: DTOStorybookEntry });
|
|
6088
|
+
|
|
6003
6089
|
// src/api/dto/design-systems/version-room.ts
|
|
6004
6090
|
|
|
6005
6091
|
var DTODesignSystemVersionRoom = _zod.z.object({
|
|
@@ -6057,6 +6143,24 @@ var DTOUpdateVersionInput = _zod.z.object({
|
|
|
6057
6143
|
changeLog: _zod.z.string()
|
|
6058
6144
|
});
|
|
6059
6145
|
|
|
6146
|
+
// src/api/payloads/documentation/analytics.ts
|
|
6147
|
+
|
|
6148
|
+
var DTODocumentationAnalyticsTimeFrame = _zod.z.object({
|
|
6149
|
+
start: _zod.z.coerce.date(),
|
|
6150
|
+
end: _zod.z.coerce.date()
|
|
6151
|
+
});
|
|
6152
|
+
var DTODocumentationAnalyticsQueryParams = _zod.z.object({
|
|
6153
|
+
start: _zod.z.coerce.date(),
|
|
6154
|
+
end: _zod.z.coerce.date().optional()
|
|
6155
|
+
});
|
|
6156
|
+
var DTODocumentationAnalyticsTimeFrameComparison = _zod.z.object({
|
|
6157
|
+
referencePeriod: DTODocumentationAnalyticsTimeFrame,
|
|
6158
|
+
baselinePeriod: DTODocumentationAnalyticsTimeFrame
|
|
6159
|
+
});
|
|
6160
|
+
var DTODocumentationAnalyticsDiffPayload = _zod.z.object({
|
|
6161
|
+
timeFrames: _zod.z.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
6162
|
+
});
|
|
6163
|
+
|
|
6060
6164
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6061
6165
|
|
|
6062
6166
|
|
|
@@ -6610,7 +6714,20 @@ var DTOPublishedDocPageVisitData = _zod.z.object({
|
|
|
6610
6714
|
visits: _zod.z.number(),
|
|
6611
6715
|
sessions: _zod.z.number()
|
|
6612
6716
|
});
|
|
6613
|
-
var
|
|
6717
|
+
var DTODocumentationPageAnalyticsDifference = _zod.z.object({
|
|
6718
|
+
startDate: _zod.z.coerce.date(),
|
|
6719
|
+
endDate: _zod.z.coerce.date(),
|
|
6720
|
+
currentVisitCount: _zod.z.number(),
|
|
6721
|
+
currentSessionCount: _zod.z.number(),
|
|
6722
|
+
priorVisitCount: _zod.z.number(),
|
|
6723
|
+
priorSessionCount: _zod.z.number()
|
|
6724
|
+
});
|
|
6725
|
+
var DTODocumentationPageAnalyticsResponse = _zod.z.object({
|
|
6726
|
+
analytics: _zod.z.array(DTOPublishedDocPageVisitData)
|
|
6727
|
+
});
|
|
6728
|
+
var DTODocumentationPageIntervalDifferenceResponse = _zod.z.object({
|
|
6729
|
+
differences: _zod.z.array(DTODocumentationPageAnalyticsDifference)
|
|
6730
|
+
});
|
|
6614
6731
|
|
|
6615
6732
|
// src/api/dto/documentation/anchor.ts
|
|
6616
6733
|
|
|
@@ -8519,6 +8636,26 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
8519
8636
|
}
|
|
8520
8637
|
};
|
|
8521
8638
|
|
|
8639
|
+
// src/api/endpoints/design-system/analytics.ts
|
|
8640
|
+
var DesignSystemAnalyticsEndpoint = class {
|
|
8641
|
+
constructor(requestExecutor) {
|
|
8642
|
+
this.requestExecutor = requestExecutor;
|
|
8643
|
+
}
|
|
8644
|
+
get(designSystemId, versionId, query) {
|
|
8645
|
+
return this.requestExecutor.json(
|
|
8646
|
+
`/design-systems/${designSystemId}/versions/${versionId}/documentation/analytics`,
|
|
8647
|
+
DTODocumentationPageAnalyticsResponse,
|
|
8648
|
+
{
|
|
8649
|
+
method: "GET",
|
|
8650
|
+
query: new URLSearchParams({
|
|
8651
|
+
start: query.start.toISOString(),
|
|
8652
|
+
...query.end && { end: query.end.toISOString() }
|
|
8653
|
+
})
|
|
8654
|
+
}
|
|
8655
|
+
);
|
|
8656
|
+
}
|
|
8657
|
+
};
|
|
8658
|
+
|
|
8522
8659
|
// src/api/endpoints/design-system/bff.ts
|
|
8523
8660
|
var DesignSystemBffEndpoint = class {
|
|
8524
8661
|
constructor(requestExecutor) {
|
|
@@ -8636,6 +8773,9 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8636
8773
|
list(dsId) {
|
|
8637
8774
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
8638
8775
|
}
|
|
8776
|
+
get(dsId, sourceId) {
|
|
8777
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
8778
|
+
}
|
|
8639
8779
|
delete(dsId, sourceId) {
|
|
8640
8780
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, _zod.z.any(), { method: "DELETE" });
|
|
8641
8781
|
}
|
|
@@ -8645,6 +8785,29 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8645
8785
|
body: payload
|
|
8646
8786
|
});
|
|
8647
8787
|
}
|
|
8788
|
+
storybookImport(dsId, payload) {
|
|
8789
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook-import`, DTODataSourcesStorybookResponse, {
|
|
8790
|
+
method: "POST",
|
|
8791
|
+
body: payload
|
|
8792
|
+
});
|
|
8793
|
+
}
|
|
8794
|
+
};
|
|
8795
|
+
|
|
8796
|
+
// src/api/endpoints/design-system/storybook.ts
|
|
8797
|
+
|
|
8798
|
+
var StorybookEntriesEndpoint = class {
|
|
8799
|
+
constructor(requestExecutor) {
|
|
8800
|
+
this.requestExecutor = requestExecutor;
|
|
8801
|
+
}
|
|
8802
|
+
list(dsId) {
|
|
8803
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse);
|
|
8804
|
+
}
|
|
8805
|
+
replace(dsId, entryId) {
|
|
8806
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, DTOStorybookEntryReplaceAction, { method: "PUT" });
|
|
8807
|
+
}
|
|
8808
|
+
delete(dsId, entryId) {
|
|
8809
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, _zod.z.any(), { method: "DELETE" });
|
|
8810
|
+
}
|
|
8648
8811
|
};
|
|
8649
8812
|
|
|
8650
8813
|
// src/api/endpoints/design-system/design-systems.ts
|
|
@@ -8655,16 +8818,20 @@ var DesignSystemsEndpoint = class {
|
|
|
8655
8818
|
__publicField(this, "versions");
|
|
8656
8819
|
__publicField(this, "bff");
|
|
8657
8820
|
__publicField(this, "sources");
|
|
8821
|
+
__publicField(this, "storybook");
|
|
8658
8822
|
__publicField(this, "contacts");
|
|
8659
8823
|
__publicField(this, "redirects");
|
|
8660
8824
|
__publicField(this, "figmaNodeStructures");
|
|
8825
|
+
__publicField(this, "analytics");
|
|
8661
8826
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
8662
8827
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
8663
8828
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
8664
8829
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
8830
|
+
this.storybook = new StorybookEntriesEndpoint(requestExecutor);
|
|
8665
8831
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
8666
8832
|
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
8667
8833
|
this.figmaNodeStructures = new FigmaNodeStructuresEndpoint(requestExecutor);
|
|
8834
|
+
this.analytics = new DesignSystemAnalyticsEndpoint(requestExecutor);
|
|
8668
8835
|
}
|
|
8669
8836
|
create(body) {
|
|
8670
8837
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -8902,14 +9069,12 @@ var RequestExecutor = class {
|
|
|
8902
9069
|
const defaultHeaders = {
|
|
8903
9070
|
Accept: "application/json"
|
|
8904
9071
|
};
|
|
8905
|
-
if (requestInit.body)
|
|
8906
|
-
defaultHeaders["Content-Type"] = "application/json";
|
|
9072
|
+
if (requestInit.body) defaultHeaders["Content-Type"] = "application/json";
|
|
8907
9073
|
if (this.testServerConfig.accessToken) {
|
|
8908
9074
|
defaultHeaders["Authorization"] = `Bearer ${this.testServerConfig.accessToken}`;
|
|
8909
9075
|
}
|
|
8910
9076
|
let body;
|
|
8911
|
-
if (requestInit.body && typeof requestInit.body === "object")
|
|
8912
|
-
body = JSON.stringify(requestInit.body);
|
|
9077
|
+
if (requestInit.body && typeof requestInit.body === "object") body = JSON.stringify(requestInit.body);
|
|
8913
9078
|
const response = await _nodefetch2.default.call(void 0, this.fullUrl(path, requestInit.query), {
|
|
8914
9079
|
...requestInit,
|
|
8915
9080
|
headers: {
|
|
@@ -8941,8 +9106,7 @@ var RequestExecutor = class {
|
|
|
8941
9106
|
fullUrl(path, query) {
|
|
8942
9107
|
let url = `https://${this.testServerConfig.host}/api/v2${path}`;
|
|
8943
9108
|
const queryString = _optionalChain([query, 'optionalAccess', _36 => _36.toString, 'call', _37 => _37()]);
|
|
8944
|
-
if (queryString)
|
|
8945
|
-
url += `?${queryString}`;
|
|
9109
|
+
if (queryString) url += `?${queryString}`;
|
|
8946
9110
|
return url;
|
|
8947
9111
|
}
|
|
8948
9112
|
};
|
|
@@ -9140,8 +9304,7 @@ var VersionRoomBaseYDoc = class {
|
|
|
9140
9304
|
const map = this.documentationPageContentHashesYMap;
|
|
9141
9305
|
const result = {};
|
|
9142
9306
|
map.forEach((hash2, key) => {
|
|
9143
|
-
if (typeof hash2 === "string")
|
|
9144
|
-
result[key] = hash2;
|
|
9307
|
+
if (typeof hash2 === "string") result[key] = hash2;
|
|
9145
9308
|
});
|
|
9146
9309
|
return result;
|
|
9147
9310
|
}
|
|
@@ -9149,8 +9312,7 @@ var VersionRoomBaseYDoc = class {
|
|
|
9149
9312
|
const map = this.documentationPageLiveblocksRoomIdsYMap;
|
|
9150
9313
|
const result = {};
|
|
9151
9314
|
map.forEach((hash2, key) => {
|
|
9152
|
-
if (typeof hash2 === "string")
|
|
9153
|
-
result[key] = hash2;
|
|
9315
|
+
if (typeof hash2 === "string") result[key] = hash2;
|
|
9154
9316
|
});
|
|
9155
9317
|
return result;
|
|
9156
9318
|
}
|
|
@@ -9184,8 +9346,7 @@ var VersionRoomBaseYDoc = class {
|
|
|
9184
9346
|
//
|
|
9185
9347
|
updateExecutedTransactionIds(transactionIds) {
|
|
9186
9348
|
transactionIds = Array.from(new Set(transactionIds));
|
|
9187
|
-
if (!transactionIds.length)
|
|
9188
|
-
return;
|
|
9349
|
+
if (!transactionIds.length) return;
|
|
9189
9350
|
const array = this.executedTransactionIdsArray;
|
|
9190
9351
|
array.push(transactionIds);
|
|
9191
9352
|
if (array.length > 100) {
|
|
@@ -9277,8 +9438,7 @@ function buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots, pageHashes,
|
|
|
9277
9438
|
const currentPageContentHash = _nullishCoalesce(_nullishCoalesce(pageHashes[page.persistentId], () => ( _optionalChain([snapshot, 'optionalAccess', _38 => _38.pageContentHash]))), () => ( ""));
|
|
9278
9439
|
const currentState = itemStateFromPage(page, currentPageContentHash);
|
|
9279
9440
|
const draftState = createDraftState(page.persistentId, currentState, publishedState, debug);
|
|
9280
|
-
if (draftState)
|
|
9281
|
-
result.set(page.persistentId, draftState);
|
|
9441
|
+
if (draftState) result.set(page.persistentId, draftState);
|
|
9282
9442
|
});
|
|
9283
9443
|
return result;
|
|
9284
9444
|
}
|
|
@@ -9297,8 +9457,7 @@ function buildPagePublishedMetadata(pages, pageSnapshots) {
|
|
|
9297
9457
|
const result = /* @__PURE__ */ new Map();
|
|
9298
9458
|
pages.forEach((p) => {
|
|
9299
9459
|
const publishedSnapshot = publishedPageSnapshotsByPersistentId.get(p.persistentId);
|
|
9300
|
-
if (!publishedSnapshot)
|
|
9301
|
-
return;
|
|
9460
|
+
if (!publishedSnapshot) return;
|
|
9302
9461
|
result.set(p.persistentId, {
|
|
9303
9462
|
lastPublishedAt: publishedSnapshot.createdAt,
|
|
9304
9463
|
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
@@ -9362,8 +9521,7 @@ function buildPageDraftDeletedStates(pages, pageSnapshots) {
|
|
|
9362
9521
|
const result = /* @__PURE__ */ new Map();
|
|
9363
9522
|
pages.forEach((page) => {
|
|
9364
9523
|
const deletedSnapshot = deletedSnapshotsByPagePersistentId.get(page.persistentId);
|
|
9365
|
-
if (!deletedSnapshot)
|
|
9366
|
-
return;
|
|
9524
|
+
if (!deletedSnapshot) return;
|
|
9367
9525
|
result.set(page.persistentId, {
|
|
9368
9526
|
changeType: "Deleted",
|
|
9369
9527
|
deletedAt: deletedSnapshot.createdAt,
|
|
@@ -9379,11 +9537,9 @@ function buildGroupDraftDeletedStates(groups, groupSnapshots) {
|
|
|
9379
9537
|
);
|
|
9380
9538
|
const result = /* @__PURE__ */ new Map();
|
|
9381
9539
|
groups.forEach((group) => {
|
|
9382
|
-
if (!group.parentPersistentId)
|
|
9383
|
-
return;
|
|
9540
|
+
if (!group.parentPersistentId) return;
|
|
9384
9541
|
const deletedSnapshot = deletedSnapshotsByGroupPersistentId.get(group.persistentId);
|
|
9385
|
-
if (!deletedSnapshot)
|
|
9386
|
-
return;
|
|
9542
|
+
if (!deletedSnapshot) return;
|
|
9387
9543
|
result.set(group.persistentId, {
|
|
9388
9544
|
changeType: "Deleted",
|
|
9389
9545
|
deletedAt: deletedSnapshot.createdAt,
|
|
@@ -9397,8 +9553,7 @@ function buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots, debug) {
|
|
|
9397
9553
|
const publishedSnapshotsByGroupPersistent = mapByUnique(publishedSnapshots, (s) => s.group.persistentId);
|
|
9398
9554
|
const result = /* @__PURE__ */ new Map();
|
|
9399
9555
|
groups.forEach((group) => {
|
|
9400
|
-
if (!group.parentPersistentId)
|
|
9401
|
-
return;
|
|
9556
|
+
if (!group.parentPersistentId) return;
|
|
9402
9557
|
const currentState = itemStateFromGroup(group);
|
|
9403
9558
|
const snapshot = publishedSnapshotsByGroupPersistent.get(group.persistentId);
|
|
9404
9559
|
let publishedState;
|
|
@@ -9406,8 +9561,7 @@ function buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots, debug) {
|
|
|
9406
9561
|
publishedState = itemStateFromGroup(snapshot.group);
|
|
9407
9562
|
}
|
|
9408
9563
|
const draftState = createDraftState(group.persistentId, currentState, publishedState, debug);
|
|
9409
|
-
if (draftState)
|
|
9410
|
-
result.set(group.persistentId, draftState);
|
|
9564
|
+
if (draftState) result.set(group.persistentId, draftState);
|
|
9411
9565
|
});
|
|
9412
9566
|
return result;
|
|
9413
9567
|
}
|
|
@@ -9425,11 +9579,9 @@ function buildGroupPublishedMetadata(groups, groupSnapshots) {
|
|
|
9425
9579
|
);
|
|
9426
9580
|
const result = /* @__PURE__ */ new Map();
|
|
9427
9581
|
groups.forEach((g) => {
|
|
9428
|
-
if (!g.parentPersistentId)
|
|
9429
|
-
return;
|
|
9582
|
+
if (!g.parentPersistentId) return;
|
|
9430
9583
|
const publishedSnapshot = publishedGroupSnapshotsByPersistentId.get(g.persistentId);
|
|
9431
|
-
if (!publishedSnapshot)
|
|
9432
|
-
return;
|
|
9584
|
+
if (!publishedSnapshot) return;
|
|
9433
9585
|
result.set(g.persistentId, {
|
|
9434
9586
|
lastPublishedAt: publishedSnapshot.createdAt,
|
|
9435
9587
|
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
@@ -9448,17 +9600,14 @@ function generatePageContentHash(content, definitions, debug = false) {
|
|
|
9448
9600
|
return generateHash(sanitizedContent, debug);
|
|
9449
9601
|
}
|
|
9450
9602
|
function isPageContentEmpty(content) {
|
|
9451
|
-
if (content.blocks.length > 1)
|
|
9452
|
-
|
|
9453
|
-
if (content.blocks.length < 1)
|
|
9454
|
-
return true;
|
|
9603
|
+
if (content.blocks.length > 1) return false;
|
|
9604
|
+
if (content.blocks.length < 1) return true;
|
|
9455
9605
|
const singleBlock = content.blocks[0];
|
|
9456
9606
|
if (singleBlock.type !== "Block" || singleBlock.data.packageId !== "io.supernova.block.rich-text") {
|
|
9457
9607
|
return false;
|
|
9458
9608
|
}
|
|
9459
9609
|
const singleItem = singleBlock.data.items[0];
|
|
9460
|
-
if (!singleItem || !singleItem.props["text"])
|
|
9461
|
-
return true;
|
|
9610
|
+
if (!singleItem || !singleItem.props["text"]) return true;
|
|
9462
9611
|
const textValue = singleItem.props["text"];
|
|
9463
9612
|
return !textValue.value.spans.length;
|
|
9464
9613
|
}
|
|
@@ -10368,10 +10517,8 @@ var _yprosemirror = require('y-prosemirror');
|
|
|
10368
10517
|
// src/yjs/docs-editor/utils.ts
|
|
10369
10518
|
var BlockParsingUtils = {
|
|
10370
10519
|
singleBlockItem(block) {
|
|
10371
|
-
if (!block.data.items.length)
|
|
10372
|
-
|
|
10373
|
-
if (block.data.items.length > 1)
|
|
10374
|
-
throw new Error(`Block ${block.id} has more than 1 item`);
|
|
10520
|
+
if (!block.data.items.length) throw new Error(`Block ${block.id} has no items`);
|
|
10521
|
+
if (block.data.items.length > 1) throw new Error(`Block ${block.id} has more than 1 item`);
|
|
10375
10522
|
return block.data.items[0];
|
|
10376
10523
|
},
|
|
10377
10524
|
richTextPropertyValue(item, propertyKey) {
|
|
@@ -10403,34 +10550,29 @@ var BlockParsingUtils = {
|
|
|
10403
10550
|
},
|
|
10404
10551
|
propertyValueOrThrow(item, propertyKey) {
|
|
10405
10552
|
const value = item.props[propertyKey];
|
|
10406
|
-
if (!value)
|
|
10407
|
-
throw new Error(`Property ${propertyKey} is not defined on block item`);
|
|
10553
|
+
if (!value) throw new Error(`Property ${propertyKey} is not defined on block item`);
|
|
10408
10554
|
return value;
|
|
10409
10555
|
}
|
|
10410
10556
|
};
|
|
10411
10557
|
var BlockDefinitionUtils = {
|
|
10412
10558
|
firstRichTextProperty(definition) {
|
|
10413
10559
|
const property = definition.item.properties.find((p) => p.type === "RichText");
|
|
10414
|
-
if (property)
|
|
10415
|
-
return property;
|
|
10560
|
+
if (property) return property;
|
|
10416
10561
|
return void 0;
|
|
10417
10562
|
},
|
|
10418
10563
|
firstMultiRichTextProperty(definition) {
|
|
10419
10564
|
const property = definition.item.properties.find((p) => p.type === "MultiRichText");
|
|
10420
|
-
if (property)
|
|
10421
|
-
return property;
|
|
10565
|
+
if (property) return property;
|
|
10422
10566
|
return void 0;
|
|
10423
10567
|
},
|
|
10424
10568
|
firstTableProperty(definition) {
|
|
10425
10569
|
const property = definition.item.properties.find((p) => p.type === "Table");
|
|
10426
|
-
if (property)
|
|
10427
|
-
return property;
|
|
10570
|
+
if (property) return property;
|
|
10428
10571
|
return void 0;
|
|
10429
10572
|
},
|
|
10430
10573
|
firstEmbedProperty(definition) {
|
|
10431
10574
|
const property = definition.item.properties.find((p) => p.type === "EmbedURL");
|
|
10432
|
-
if (property)
|
|
10433
|
-
return property;
|
|
10575
|
+
if (property) return property;
|
|
10434
10576
|
return void 0;
|
|
10435
10577
|
},
|
|
10436
10578
|
richTextProperty(definition, propertyKey) {
|
|
@@ -10485,13 +10627,11 @@ var ListTreeBuilder = class {
|
|
|
10485
10627
|
return node;
|
|
10486
10628
|
}
|
|
10487
10629
|
getParentOfDepth(depth) {
|
|
10488
|
-
if (!this.rootNode || depth <= 0)
|
|
10489
|
-
throw new Error("Invalid state");
|
|
10630
|
+
if (!this.rootNode || depth <= 0) throw new Error("Invalid state");
|
|
10490
10631
|
let currentNode = this.rootNode;
|
|
10491
10632
|
let currentDepth = depth - 1;
|
|
10492
10633
|
while (currentDepth > 0) {
|
|
10493
|
-
if (currentNode.children.length === 0)
|
|
10494
|
-
return currentNode;
|
|
10634
|
+
if (currentNode.children.length === 0) return currentNode;
|
|
10495
10635
|
const lastChild = currentNode.children[currentNode.children.length - 1];
|
|
10496
10636
|
if (lastChild.type !== "List") {
|
|
10497
10637
|
return currentNode;
|
|
@@ -10928,8 +11068,7 @@ function serializeBlockNodeAttributes(block) {
|
|
|
10928
11068
|
}
|
|
10929
11069
|
function richTextHeadingLevel(property) {
|
|
10930
11070
|
const style = _optionalChain([property, 'access', _48 => _48.options, 'optionalAccess', _49 => _49.richTextStyle]);
|
|
10931
|
-
if (!style)
|
|
10932
|
-
return void 0;
|
|
11071
|
+
if (!style) return void 0;
|
|
10933
11072
|
switch (style) {
|
|
10934
11073
|
case "Title1":
|
|
10935
11074
|
return 1;
|
|
@@ -10963,8 +11102,7 @@ function serializeCalloutType(calloutType) {
|
|
|
10963
11102
|
}
|
|
10964
11103
|
function serializeRichTextNodePart(richText) {
|
|
10965
11104
|
const spans = serializeRichText(richText);
|
|
10966
|
-
if (spans.length)
|
|
10967
|
-
return { content: spans };
|
|
11105
|
+
if (spans.length) return { content: spans };
|
|
10968
11106
|
return {};
|
|
10969
11107
|
}
|
|
10970
11108
|
function serializeRichText(richText) {
|
|
@@ -13243,11 +13381,9 @@ function parseAsListNode(prosemirrorNode) {
|
|
|
13243
13381
|
};
|
|
13244
13382
|
}
|
|
13245
13383
|
function parseAsListNodeItem(prosemirrorNode) {
|
|
13246
|
-
if (prosemirrorNode.type !== "listItem")
|
|
13247
|
-
return null;
|
|
13384
|
+
if (prosemirrorNode.type !== "listItem") return null;
|
|
13248
13385
|
const firstChild = _optionalChain([prosemirrorNode, 'access', _53 => _53.content, 'optionalAccess', _54 => _54[0]]);
|
|
13249
|
-
if (!firstChild || firstChild.type !== "paragraph")
|
|
13250
|
-
return null;
|
|
13386
|
+
if (!firstChild || firstChild.type !== "paragraph") return null;
|
|
13251
13387
|
return parseRichText(_nullishCoalesce(firstChild.content, () => ( [])));
|
|
13252
13388
|
}
|
|
13253
13389
|
function prosemirrorNodeToSection(prosemirrorNode, definitions) {
|
|
@@ -13256,8 +13392,7 @@ function prosemirrorNodeToSection(prosemirrorNode, definitions) {
|
|
|
13256
13392
|
}
|
|
13257
13393
|
function internalProsemirrorNodeToSection(prosemirrorNode, definitionsMap) {
|
|
13258
13394
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13259
|
-
if (!id)
|
|
13260
|
-
return null;
|
|
13395
|
+
if (!id) return null;
|
|
13261
13396
|
return {
|
|
13262
13397
|
id,
|
|
13263
13398
|
type: "Section",
|
|
@@ -13272,8 +13407,7 @@ function internalProsemirrorNodeToSection(prosemirrorNode, definitionsMap) {
|
|
|
13272
13407
|
}
|
|
13273
13408
|
function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
13274
13409
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13275
|
-
if (!id)
|
|
13276
|
-
return null;
|
|
13410
|
+
if (!id) return null;
|
|
13277
13411
|
return {
|
|
13278
13412
|
id,
|
|
13279
13413
|
title: _nullishCoalesce(getProsemirrorAttribute(prosemirrorNode, "title", _zod.z.string()), () => ( "")),
|
|
@@ -13282,8 +13416,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13282
13416
|
}
|
|
13283
13417
|
function prosemirrorNodeToSectionColumns(prosemirrorNode, definitionsMap) {
|
|
13284
13418
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13285
|
-
if (!id)
|
|
13286
|
-
return null;
|
|
13419
|
+
if (!id) return null;
|
|
13287
13420
|
return {
|
|
13288
13421
|
id,
|
|
13289
13422
|
blocks: internalProsemirrorNodesToBlocks(_nullishCoalesce(prosemirrorNode.content, () => ( [])), definitionsMap, 0)
|
|
@@ -13350,8 +13483,7 @@ function shallowProsemirrorNodeAndDefinitionToBlock(prosemirrorNode, definition)
|
|
|
13350
13483
|
}
|
|
13351
13484
|
function parseAsRichText(prosemirrorNode, definition, property) {
|
|
13352
13485
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13353
|
-
if (!id)
|
|
13354
|
-
return null;
|
|
13486
|
+
if (!id) return null;
|
|
13355
13487
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13356
13488
|
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", _zod.z.string().optional()));
|
|
13357
13489
|
return {
|
|
@@ -13378,8 +13510,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13378
13510
|
};
|
|
13379
13511
|
}
|
|
13380
13512
|
function parseCalloutType(prosemirrorCalloutType) {
|
|
13381
|
-
if (!prosemirrorCalloutType)
|
|
13382
|
-
return void 0;
|
|
13513
|
+
if (!prosemirrorCalloutType) return void 0;
|
|
13383
13514
|
switch (prosemirrorCalloutType) {
|
|
13384
13515
|
case "critical":
|
|
13385
13516
|
return "Error";
|
|
@@ -13395,22 +13526,19 @@ function parseCalloutType(prosemirrorCalloutType) {
|
|
|
13395
13526
|
}
|
|
13396
13527
|
function parseAsMultiRichText(prosemirrorNode, definition, property, definitionsMap, depth) {
|
|
13397
13528
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13398
|
-
if (!id)
|
|
13399
|
-
return [];
|
|
13529
|
+
if (!id) return [];
|
|
13400
13530
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13401
13531
|
const result = [];
|
|
13402
13532
|
const listItems = [];
|
|
13403
13533
|
_optionalChain([prosemirrorNode, 'access', _55 => _55.content, 'optionalAccess', _56 => _56.forEach, 'call', _57 => _57((c) => {
|
|
13404
|
-
if (c.type !== "listItem")
|
|
13405
|
-
return;
|
|
13534
|
+
if (c.type !== "listItem") return;
|
|
13406
13535
|
_optionalChain([c, 'access', _58 => _58.content, 'optionalAccess', _59 => _59.forEach, 'call', _60 => _60((cc) => {
|
|
13407
13536
|
listItems.push(cc);
|
|
13408
13537
|
})]);
|
|
13409
13538
|
})]);
|
|
13410
13539
|
let bufferedTextItems = [];
|
|
13411
13540
|
function flushBufferedTextItems() {
|
|
13412
|
-
if (!bufferedTextItems.length)
|
|
13413
|
-
return;
|
|
13541
|
+
if (!bufferedTextItems.length) return;
|
|
13414
13542
|
const idSuffix = result.length ? `-${result.length}` : "";
|
|
13415
13543
|
result.push({
|
|
13416
13544
|
id: id + idSuffix,
|
|
@@ -13455,8 +13583,7 @@ function parseRichTextSpan(span) {
|
|
|
13455
13583
|
if (span.type === "hardBreak") {
|
|
13456
13584
|
return { text: "\n", attributes: [] };
|
|
13457
13585
|
}
|
|
13458
|
-
if (span.type !== "text" || !span.text)
|
|
13459
|
-
return null;
|
|
13586
|
+
if (span.type !== "text" || !span.text) return null;
|
|
13460
13587
|
const marks = _nullishCoalesce(span.marks, () => ( []));
|
|
13461
13588
|
return {
|
|
13462
13589
|
text: span.text,
|
|
@@ -13482,8 +13609,7 @@ function parseRichTextAttribute(mark) {
|
|
|
13482
13609
|
}
|
|
13483
13610
|
function parseProsemirrorLink(mark) {
|
|
13484
13611
|
const href = getProsemirrorAttribute(mark, "href", _zod.z.string().optional());
|
|
13485
|
-
if (!href)
|
|
13486
|
-
return null;
|
|
13612
|
+
if (!href) return null;
|
|
13487
13613
|
const target = getProsemirrorAttribute(mark, "target", _zod.z.string().optional());
|
|
13488
13614
|
const openInNewTab = target === "_blank";
|
|
13489
13615
|
if (href.startsWith("@")) {
|
|
@@ -13504,8 +13630,7 @@ function parseProsemirrorLink(mark) {
|
|
|
13504
13630
|
}
|
|
13505
13631
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13506
13632
|
const highlightId = getProsemirrorAttribute(mark, "highlightId", _zod.z.string().optional());
|
|
13507
|
-
if (!highlightId)
|
|
13508
|
-
return null;
|
|
13633
|
+
if (!highlightId) return null;
|
|
13509
13634
|
const isResolved = _nullishCoalesce(getProsemirrorAttribute(mark, "resolved", _zod.z.boolean().optional()), () => ( false));
|
|
13510
13635
|
return {
|
|
13511
13636
|
type: "Comment",
|
|
@@ -13515,8 +13640,7 @@ function parseProsemirrorCommentHighlight(mark) {
|
|
|
13515
13640
|
}
|
|
13516
13641
|
function parseAsTable(prosemirrorNode, definition, property) {
|
|
13517
13642
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13518
|
-
if (!id)
|
|
13519
|
-
return null;
|
|
13643
|
+
if (!id) return null;
|
|
13520
13644
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13521
13645
|
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
|
|
13522
13646
|
const tableChild = _optionalChain([prosemirrorNode, 'access', _61 => _61.content, 'optionalAccess', _62 => _62.find, 'call', _63 => _63((c) => c.type === "table")]);
|
|
@@ -13563,8 +13687,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13563
13687
|
}
|
|
13564
13688
|
function parseAsTableCell(prosemirrorNode) {
|
|
13565
13689
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13566
|
-
if (!id)
|
|
13567
|
-
return null;
|
|
13690
|
+
if (!id) return null;
|
|
13568
13691
|
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", _zod.z.string().optional());
|
|
13569
13692
|
let columnWidth;
|
|
13570
13693
|
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", _zod.z.array(_zod.z.number()).nullish());
|
|
@@ -13580,8 +13703,7 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
13580
13703
|
};
|
|
13581
13704
|
}
|
|
13582
13705
|
function parseTableCellAlignment(alignment) {
|
|
13583
|
-
if (!alignment)
|
|
13584
|
-
return "Left";
|
|
13706
|
+
if (!alignment) return "Left";
|
|
13585
13707
|
switch (alignment) {
|
|
13586
13708
|
case "left":
|
|
13587
13709
|
return "Left";
|
|
@@ -13595,8 +13717,7 @@ function parseTableCellAlignment(alignment) {
|
|
|
13595
13717
|
}
|
|
13596
13718
|
function parseAsTableNode(prosemirrorNode) {
|
|
13597
13719
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13598
|
-
if (!id)
|
|
13599
|
-
return null;
|
|
13720
|
+
if (!id) return null;
|
|
13600
13721
|
switch (prosemirrorNode.type) {
|
|
13601
13722
|
case "paragraph":
|
|
13602
13723
|
return {
|
|
@@ -13606,17 +13727,13 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13606
13727
|
};
|
|
13607
13728
|
case "image":
|
|
13608
13729
|
const items = getProsemirrorAttribute(prosemirrorNode, "items", _zod.z.string());
|
|
13609
|
-
if (!items)
|
|
13610
|
-
return null;
|
|
13730
|
+
if (!items) return null;
|
|
13611
13731
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
13612
|
-
if (!parsedItems.success)
|
|
13613
|
-
return null;
|
|
13732
|
+
if (!parsedItems.success) return null;
|
|
13614
13733
|
const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _80 => _80.data, 'access', _81 => _81[0], 'optionalAccess', _82 => _82.props, 'access', _83 => _83.image]);
|
|
13615
|
-
if (!rawImagePropertyValue)
|
|
13616
|
-
return null;
|
|
13734
|
+
if (!rawImagePropertyValue) return null;
|
|
13617
13735
|
const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
|
|
13618
|
-
if (!imagePropertyValueParseResult.success)
|
|
13619
|
-
return null;
|
|
13736
|
+
if (!imagePropertyValueParseResult.success) return null;
|
|
13620
13737
|
const { value, caption, alt, alignment } = imagePropertyValueParseResult.data;
|
|
13621
13738
|
return {
|
|
13622
13739
|
type: "Image",
|
|
@@ -13678,8 +13795,7 @@ function emptyTableCellContent() {
|
|
|
13678
13795
|
}
|
|
13679
13796
|
function parseAsDivider(prosemirrorNode, definition) {
|
|
13680
13797
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13681
|
-
if (!id)
|
|
13682
|
-
return null;
|
|
13798
|
+
if (!id) return null;
|
|
13683
13799
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13684
13800
|
return {
|
|
13685
13801
|
id,
|
|
@@ -13694,8 +13810,7 @@ function parseAsDivider(prosemirrorNode, definition) {
|
|
|
13694
13810
|
}
|
|
13695
13811
|
function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
13696
13812
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13697
|
-
if (!id)
|
|
13698
|
-
return null;
|
|
13813
|
+
if (!id) return null;
|
|
13699
13814
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13700
13815
|
const appearance = parseAppearance(prosemirrorNode);
|
|
13701
13816
|
const parsedItems = _nullishCoalesce(parseBlockItems(prosemirrorNode, definition), () => ( []));
|
|
@@ -13726,8 +13841,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13726
13841
|
}
|
|
13727
13842
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13728
13843
|
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", _zod.z.string());
|
|
13729
|
-
if (!itemsString)
|
|
13730
|
-
return null;
|
|
13844
|
+
if (!itemsString) return null;
|
|
13731
13845
|
const itemsJson = JSON.parse(itemsString);
|
|
13732
13846
|
if (!Array.isArray(itemsJson)) {
|
|
13733
13847
|
console.error("Block `items` property must be a json array");
|
|
@@ -13755,8 +13869,7 @@ function parseAppearance(prosemirrorNode) {
|
|
|
13755
13869
|
appearance.itemBackgroundColor = parsedColor.data;
|
|
13756
13870
|
}
|
|
13757
13871
|
}
|
|
13758
|
-
if (!Object.keys(appearance).length)
|
|
13759
|
-
return void 0;
|
|
13872
|
+
if (!Object.keys(appearance).length) return void 0;
|
|
13760
13873
|
return appearance;
|
|
13761
13874
|
}
|
|
13762
13875
|
function parseItem(rawItem, definition) {
|
|
@@ -13844,8 +13957,7 @@ function valueSchemaForPropertyType(type) {
|
|
|
13844
13957
|
}
|
|
13845
13958
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
13846
13959
|
const id = getProsemirrorAttribute(prosemirrorNode, "id", _zod.z.string());
|
|
13847
|
-
if (!id)
|
|
13848
|
-
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13960
|
+
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13849
13961
|
return id;
|
|
13850
13962
|
}
|
|
13851
13963
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
@@ -13943,16 +14055,19 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13943
14055
|
}
|
|
13944
14056
|
applyTransaction(trx) {
|
|
13945
14057
|
switch (trx.type) {
|
|
14058
|
+
// Groups
|
|
13946
14059
|
case "DocumentationGroupCreate":
|
|
13947
14060
|
return this.documentationGroupCreate(trx);
|
|
13948
14061
|
case "DocumentationGroupUpdate":
|
|
13949
14062
|
return this.documentationGroupUpdate(trx);
|
|
13950
14063
|
case "DocumentationGroupMove":
|
|
13951
14064
|
return this.documentationGroupMove(trx);
|
|
14065
|
+
// Groups - unsupported
|
|
13952
14066
|
case "DocumentationGroupDelete":
|
|
13953
14067
|
case "DocumentationGroupDuplicate":
|
|
13954
14068
|
case "DocumentationGroupRestore":
|
|
13955
14069
|
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
14070
|
+
// Pages
|
|
13956
14071
|
case "DocumentationPageCreate":
|
|
13957
14072
|
return this.documentationPageCreate(trx);
|
|
13958
14073
|
case "DocumentationPageUpdate":
|
|
@@ -13961,15 +14076,18 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13961
14076
|
return this.documentationPageMove(trx);
|
|
13962
14077
|
case "DocumentationPageDelete":
|
|
13963
14078
|
return this.documentationPageDelete(trx);
|
|
14079
|
+
// Pages - unsupported
|
|
13964
14080
|
case "DocumentationPageApprovalStateChange":
|
|
13965
14081
|
return this.documentationApprovalStateUpdate(trx);
|
|
13966
14082
|
case "DocumentationPageDuplicate":
|
|
13967
14083
|
case "DocumentationPageRestore":
|
|
13968
14084
|
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
14085
|
+
// Tabs
|
|
13969
14086
|
case "DocumentationTabCreate":
|
|
13970
14087
|
return this.documentationTabCreate(trx);
|
|
13971
14088
|
case "DocumentationTabGroupDelete":
|
|
13972
14089
|
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
14090
|
+
// Won't ever be supported
|
|
13973
14091
|
case "FigmaNodeRender":
|
|
13974
14092
|
case "FigmaNodeRenderAsync":
|
|
13975
14093
|
throw new Error(`Transaction type ${trx.type} is not a documentation element action`);
|
|
@@ -14178,13 +14296,10 @@ var LocalDocsElementActionExecutor = class {
|
|
|
14178
14296
|
...Array.from(this.pages.values()).filter((p) => p.parentPersistentId === parentPersistentId),
|
|
14179
14297
|
...Array.from(this.groups.values()).filter((g) => g.parentPersistentId === parentPersistentId)
|
|
14180
14298
|
];
|
|
14181
|
-
if (!neighbours.length)
|
|
14182
|
-
return 0;
|
|
14299
|
+
if (!neighbours.length) return 0;
|
|
14183
14300
|
neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
14184
|
-
if (afterPersistentId === null)
|
|
14185
|
-
|
|
14186
|
-
if (!afterPersistentId)
|
|
14187
|
-
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
14301
|
+
if (afterPersistentId === null) return neighbours[0].sortOrder - sortOrderStep;
|
|
14302
|
+
if (!afterPersistentId) return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
14188
14303
|
const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
|
|
14189
14304
|
if (index < 0 || index === neighbours.length - 1) {
|
|
14190
14305
|
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
@@ -14229,24 +14344,21 @@ var DocsStructureRepository = class {
|
|
|
14229
14344
|
return !!this._currentHierarchy;
|
|
14230
14345
|
}
|
|
14231
14346
|
onInitialized() {
|
|
14232
|
-
if (this.isInitialized)
|
|
14233
|
-
return Promise.resolve();
|
|
14347
|
+
if (this.isInitialized) return Promise.resolve();
|
|
14234
14348
|
return new Promise((resolve) => {
|
|
14235
14349
|
this.initCallbacks.add(resolve);
|
|
14236
14350
|
});
|
|
14237
14351
|
}
|
|
14238
14352
|
addHierarchyObserver(observer) {
|
|
14239
14353
|
this.hierarchyObservers.add(observer);
|
|
14240
|
-
if (this._currentHierarchy)
|
|
14241
|
-
observer(this._currentHierarchy);
|
|
14354
|
+
if (this._currentHierarchy) observer(this._currentHierarchy);
|
|
14242
14355
|
}
|
|
14243
14356
|
removeHierarchyObserver(observer) {
|
|
14244
14357
|
this.hierarchyObservers.delete(observer);
|
|
14245
14358
|
}
|
|
14246
14359
|
addSettingsObserver(observer) {
|
|
14247
14360
|
this.settingsObservers.add(observer);
|
|
14248
|
-
if (this._currentSettings)
|
|
14249
|
-
observer(this._currentSettings);
|
|
14361
|
+
if (this._currentSettings) observer(this._currentSettings);
|
|
14250
14362
|
}
|
|
14251
14363
|
removeSettingsObserver(observer) {
|
|
14252
14364
|
this.settingsObservers.delete(observer);
|
|
@@ -14269,8 +14381,7 @@ var DocsStructureRepository = class {
|
|
|
14269
14381
|
//
|
|
14270
14382
|
get currentHierarchy() {
|
|
14271
14383
|
const hierarchy = this._currentHierarchy;
|
|
14272
|
-
if (!hierarchy)
|
|
14273
|
-
throw new Error(`Hierarchy cannot be accessed while it's still loading`);
|
|
14384
|
+
if (!hierarchy) throw new Error(`Hierarchy cannot be accessed while it's still loading`);
|
|
14274
14385
|
return hierarchy;
|
|
14275
14386
|
}
|
|
14276
14387
|
//
|
|
@@ -14309,8 +14420,7 @@ var DocsStructureRepository = class {
|
|
|
14309
14420
|
}
|
|
14310
14421
|
refreshSettings() {
|
|
14311
14422
|
const yState = this._yState;
|
|
14312
|
-
if (!yState)
|
|
14313
|
-
return;
|
|
14423
|
+
if (!yState) return;
|
|
14314
14424
|
const newSettings = {
|
|
14315
14425
|
isApprovalRequiredForPublishing: yState.settings.approvalRequiredForPublishing,
|
|
14316
14426
|
isApprovalsFeatureEnabled: yState.settings.isApprovalFeatureEnabled,
|
|
@@ -14323,11 +14433,9 @@ var DocsStructureRepository = class {
|
|
|
14323
14433
|
}
|
|
14324
14434
|
refreshHierarchy() {
|
|
14325
14435
|
const yState = this._yState;
|
|
14326
|
-
if (!yState)
|
|
14327
|
-
return;
|
|
14436
|
+
if (!yState) return;
|
|
14328
14437
|
const hierarchy = this.calculateHierarchy(yState);
|
|
14329
|
-
if (!hierarchy)
|
|
14330
|
-
return;
|
|
14438
|
+
if (!hierarchy) return;
|
|
14331
14439
|
this._currentHierarchy = hierarchy;
|
|
14332
14440
|
this.hierarchyObservers.forEach((o) => o(hierarchy));
|
|
14333
14441
|
}
|
|
@@ -14836,5 +14944,23 @@ var TransactionQueue = class {
|
|
|
14836
14944
|
|
|
14837
14945
|
|
|
14838
14946
|
|
|
14839
|
-
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodeComponentsEndpoint = CodeComponentsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAnalyticsDataResponse = DTOAnalyticsDataResponse; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCodeComponent = DTOCodeComponent; exports.DTOCodeComponentCreateInput = DTOCodeComponentCreateInput; exports.DTOCodeComponentListResponse = DTOCodeComponentListResponse; exports.DTOCodeComponentProperty = DTOCodeComponentProperty; exports.DTOCodeComponentResponse = DTOCodeComponentResponse; exports.DTOCodeComponentsCreateInput = DTOCodeComponentsCreateInput; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionRoom = DTODesignSystemVersionRoom; exports.DTODesignSystemVersionRoomResponse = DTODesignSystemVersionRoomResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoom = DTODocumentationPageRoom; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageRoomResponse = DTODocumentationPageRoomResponse; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageUpdateDocumentActionInputV2 = DTODocumentationPageUpdateDocumentActionInputV2; exports.DTODocumentationPageUpdateDocumentActionOutputV2 = DTODocumentationPageUpdateDocumentActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationSettings = DTODocumentationSettings; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; exports.DTOElementPropertyValuesEditActionInput = DTOElementPropertyValuesEditActionInput; exports.DTOElementPropertyValuesEditActionOutput = DTOElementPropertyValuesEditActionOutput; 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.DTOElementsGetOutputV2 = DTOElementsGetOutputV2; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOEvent = DTOEvent; exports.DTOEventDataSourcesImported = DTOEventDataSourcesImported; exports.DTOEventFigmaNodesRendered = DTOEventFigmaNodesRendered; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreateInput = DTOExportJobCreateInput; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResponseLegacy = DTOExportJobResponseLegacy; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterDeprecationInput = DTOExporterDeprecationInput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionCode = DTOExporterPropertyDefinitionCode; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionEnumOption = DTOExporterPropertyDefinitionEnumOption; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterPropertyValue = DTOExporterPropertyValue; exports.DTOExporterPropertyValueMap = DTOExporterPropertyValueMap; exports.DTOExporterResponse = DTOExporterResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeDataV2 = DTOFigmaNodeDataV2; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderAsyncActionInput = DTOFigmaNodeRenderAsyncActionInput; exports.DTOFigmaNodeRenderAsyncActionOutput = DTOFigmaNodeRenderAsyncActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderIdInput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderUrlInput; exports.DTOFigmaNodeRerenderInput = DTOFigmaNodeRerenderInput; exports.DTOFigmaNodeStructure = DTOFigmaNodeStructure; exports.DTOFigmaNodeStructureDetail = DTOFigmaNodeStructureDetail; exports.DTOFigmaNodeStructureDetailResponse = DTOFigmaNodeStructureDetailResponse; exports.DTOFigmaNodeStructureListResponse = DTOFigmaNodeStructureListResponse; exports.DTOFigmaNodeV2 = DTOFigmaNodeV2; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPageRedirect = DTOPageRedirect; exports.DTOPageRedirectCreateBody = DTOPageRedirectCreateBody; exports.DTOPageRedirectDeleteResponse = DTOPageRedirectDeleteResponse; exports.DTOPageRedirectListResponse = DTOPageRedirectListResponse; exports.DTOPageRedirectResponse = DTOPageRedirectResponse; exports.DTOPageRedirectUpdateBody = DTOPageRedirectUpdateBody; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTOPublishedDocPageVisitData = DTOPublishedDocPageVisitData; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageDocumentInputV2 = DTOUpdateDocumentationPageDocumentInputV2; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserTheme = DTOUserTheme; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemPageRedirectsEndpoint = DesignSystemPageRedirectsEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExporterJobsEndpoint = ExporterJobsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaNodeStructuresEndpoint = FigmaNodeStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.GitDestinationOptions = GitDestinationOptions; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LiveblocksEndpoint = LiveblocksEndpoint; exports.LocalDocsElementActionExecutor = LocalDocsElementActionExecutor; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.ParsedFigmaFileURLError = ParsedFigmaFileURLError; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceIntegrationsEndpoint = WorkspaceIntegrationsEndpoint; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyActionsLocally = applyActionsLocally; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.exhaustiveInvalidUriPaths = exhaustiveInvalidUriPaths; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.isValidRedirectPath = isValidRedirectPath; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pageVisitsToDto = pageVisitsToDto; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
14947
|
+
|
|
14948
|
+
|
|
14949
|
+
|
|
14950
|
+
|
|
14951
|
+
|
|
14952
|
+
|
|
14953
|
+
|
|
14954
|
+
|
|
14955
|
+
|
|
14956
|
+
|
|
14957
|
+
|
|
14958
|
+
|
|
14959
|
+
|
|
14960
|
+
|
|
14961
|
+
|
|
14962
|
+
|
|
14963
|
+
|
|
14964
|
+
|
|
14965
|
+
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodeComponentsEndpoint = CodeComponentsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCodeComponent = DTOCodeComponent; exports.DTOCodeComponentCreateInput = DTOCodeComponentCreateInput; exports.DTOCodeComponentListResponse = DTOCodeComponentListResponse; exports.DTOCodeComponentProperty = DTOCodeComponentProperty; exports.DTOCodeComponentResponse = DTOCodeComponentResponse; exports.DTOCodeComponentsCreateInput = DTOCodeComponentsCreateInput; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceStorybook = DTODataSourceStorybook; exports.DTODataSourceStorybookCreatePayload = DTODataSourceStorybookCreatePayload; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODataSourcesStorybookResponse = DTODataSourcesStorybookResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionRoom = DTODesignSystemVersionRoom; exports.DTODesignSystemVersionRoomResponse = DTODesignSystemVersionRoomResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationAnalyticsDiffPayload = DTODocumentationAnalyticsDiffPayload; exports.DTODocumentationAnalyticsQueryParams = DTODocumentationAnalyticsQueryParams; exports.DTODocumentationAnalyticsTimeFrame = DTODocumentationAnalyticsTimeFrame; exports.DTODocumentationAnalyticsTimeFrameComparison = DTODocumentationAnalyticsTimeFrameComparison; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnalyticsDifference = DTODocumentationPageAnalyticsDifference; exports.DTODocumentationPageAnalyticsResponse = DTODocumentationPageAnalyticsResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageIntervalDifferenceResponse = DTODocumentationPageIntervalDifferenceResponse; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoom = DTODocumentationPageRoom; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageRoomResponse = DTODocumentationPageRoomResponse; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageUpdateDocumentActionInputV2 = DTODocumentationPageUpdateDocumentActionInputV2; exports.DTODocumentationPageUpdateDocumentActionOutputV2 = DTODocumentationPageUpdateDocumentActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationSettings = DTODocumentationSettings; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; exports.DTOElementPropertyValuesEditActionInput = DTOElementPropertyValuesEditActionInput; exports.DTOElementPropertyValuesEditActionOutput = DTOElementPropertyValuesEditActionOutput; 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.DTOElementsGetOutputV2 = DTOElementsGetOutputV2; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOEvent = DTOEvent; exports.DTOEventDataSourcesImported = DTOEventDataSourcesImported; exports.DTOEventFigmaNodesRendered = DTOEventFigmaNodesRendered; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreateInput = DTOExportJobCreateInput; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResponseLegacy = DTOExportJobResponseLegacy; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterDeprecationInput = DTOExporterDeprecationInput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionCode = DTOExporterPropertyDefinitionCode; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionEnumOption = DTOExporterPropertyDefinitionEnumOption; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterPropertyValue = DTOExporterPropertyValue; exports.DTOExporterPropertyValueMap = DTOExporterPropertyValueMap; exports.DTOExporterResponse = DTOExporterResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeDataV2 = DTOFigmaNodeDataV2; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderAsyncActionInput = DTOFigmaNodeRenderAsyncActionInput; exports.DTOFigmaNodeRenderAsyncActionOutput = DTOFigmaNodeRenderAsyncActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderIdInput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderUrlInput; exports.DTOFigmaNodeRerenderInput = DTOFigmaNodeRerenderInput; exports.DTOFigmaNodeStructure = DTOFigmaNodeStructure; exports.DTOFigmaNodeStructureDetail = DTOFigmaNodeStructureDetail; exports.DTOFigmaNodeStructureDetailResponse = DTOFigmaNodeStructureDetailResponse; exports.DTOFigmaNodeStructureListResponse = DTOFigmaNodeStructureListResponse; exports.DTOFigmaNodeV2 = DTOFigmaNodeV2; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPageRedirect = DTOPageRedirect; exports.DTOPageRedirectCreateBody = DTOPageRedirectCreateBody; exports.DTOPageRedirectDeleteResponse = DTOPageRedirectDeleteResponse; exports.DTOPageRedirectListResponse = DTOPageRedirectListResponse; exports.DTOPageRedirectResponse = DTOPageRedirectResponse; exports.DTOPageRedirectUpdateBody = DTOPageRedirectUpdateBody; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTOPublishedDocPageVisitData = DTOPublishedDocPageVisitData; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOStorybookEntry = DTOStorybookEntry; exports.DTOStorybookEntryListResponse = DTOStorybookEntryListResponse; exports.DTOStorybookEntryOrigin = DTOStorybookEntryOrigin; exports.DTOStorybookEntryReplaceAction = DTOStorybookEntryReplaceAction; exports.DTOStorybookEntryResponse = DTOStorybookEntryResponse; exports.DTOStorybookImportPayload = DTOStorybookImportPayload; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageDocumentInputV2 = DTOUpdateDocumentationPageDocumentInputV2; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserTheme = DTOUserTheme; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemAnalyticsEndpoint = DesignSystemAnalyticsEndpoint; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemPageRedirectsEndpoint = DesignSystemPageRedirectsEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExporterJobsEndpoint = ExporterJobsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaNodeStructuresEndpoint = FigmaNodeStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.GitDestinationOptions = GitDestinationOptions; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LiveblocksEndpoint = LiveblocksEndpoint; exports.LocalDocsElementActionExecutor = LocalDocsElementActionExecutor; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.ParsedFigmaFileURLError = ParsedFigmaFileURLError; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StorybookEntriesEndpoint = StorybookEntriesEndpoint; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceIntegrationsEndpoint = WorkspaceIntegrationsEndpoint; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyActionsLocally = applyActionsLocally; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateChangeOverTime = calculateChangeOverTime; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.exhaustiveInvalidUriPaths = exhaustiveInvalidUriPaths; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.isValidRedirectPath = isValidRedirectPath; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pageVisitsToDto = pageVisitsToDto; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
14840
14966
|
//# sourceMappingURL=index.js.map
|