@supernova-studio/client 1.0.0-alpha.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5894 -2234
- package/dist/index.d.ts +5894 -2234
- package/dist/index.js +640 -221
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2369 -1950
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -130,6 +130,7 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
133
|
+
|
|
133
134
|
|
|
134
135
|
|
|
135
136
|
var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
|
|
@@ -3316,7 +3317,7 @@ var ImportJob = Entity.extend({
|
|
|
3316
3317
|
var ImportFunctionInput = _zod.z.object({
|
|
3317
3318
|
importJobId: _zod.z.string(),
|
|
3318
3319
|
importContextId: _zod.z.string(),
|
|
3319
|
-
designSystemId: _zod.z.string()
|
|
3320
|
+
designSystemId: _zod.z.string()
|
|
3320
3321
|
});
|
|
3321
3322
|
var ImportedFigmaSourceData = _zod.z.object({
|
|
3322
3323
|
sourceId: _zod.z.string(),
|
|
@@ -3479,11 +3480,7 @@ var DataSourceImportModel = _zod.z.object({
|
|
|
3479
3480
|
fileName: _zod.z.string().optional(),
|
|
3480
3481
|
thumbnailUrl: _zod.z.string().optional()
|
|
3481
3482
|
});
|
|
3482
|
-
var
|
|
3483
|
-
png: FigmaPngRenderImportModel,
|
|
3484
|
-
svg: FigmaSvgRenderImportModel
|
|
3485
|
-
});
|
|
3486
|
-
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3483
|
+
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeBase.extend({
|
|
3487
3484
|
children: _zod.z.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3488
3485
|
});
|
|
3489
3486
|
var FigmaFileStructureImportModelPart = _zod.z.object({
|
|
@@ -3705,6 +3702,14 @@ var DocumentationPage = _zod.z.object({
|
|
|
3705
3702
|
createdAt: _zod.z.coerce.date(),
|
|
3706
3703
|
updatedAt: _zod.z.coerce.date()
|
|
3707
3704
|
});
|
|
3705
|
+
var PageRedirect = _zod.z.object({
|
|
3706
|
+
id: _zod.z.string(),
|
|
3707
|
+
pagePersistentId: _zod.z.string(),
|
|
3708
|
+
path: _zod.z.string(),
|
|
3709
|
+
createdAt: _zod.z.coerce.date(),
|
|
3710
|
+
updatedAt: _zod.z.coerce.date(),
|
|
3711
|
+
designSystemId: _zod.z.string()
|
|
3712
|
+
});
|
|
3708
3713
|
var DocumentationSettings = _zod.z.object({
|
|
3709
3714
|
// Basic
|
|
3710
3715
|
designSystemVersionId: _zod.z.string(),
|
|
@@ -3945,7 +3950,17 @@ var UserNotificationSettings = _zod.z.object({
|
|
|
3945
3950
|
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3946
3951
|
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3947
3952
|
var UserTheme = _zod.z.object({
|
|
3948
|
-
preset: _zod.z.enum([
|
|
3953
|
+
preset: _zod.z.enum([
|
|
3954
|
+
"Custom",
|
|
3955
|
+
"Default",
|
|
3956
|
+
"HighContrast",
|
|
3957
|
+
"DefaultDark",
|
|
3958
|
+
"HighContrastDark",
|
|
3959
|
+
"SpaceBlue",
|
|
3960
|
+
"DarkGrey",
|
|
3961
|
+
"SystemPreference",
|
|
3962
|
+
"Sepia"
|
|
3963
|
+
]).optional(),
|
|
3949
3964
|
backgroundColor: _zod.z.string().optional(),
|
|
3950
3965
|
accentColor: _zod.z.string().optional(),
|
|
3951
3966
|
contrast: _zod.z.number().min(16).max(100).optional(),
|
|
@@ -4328,6 +4343,15 @@ var ExportDestinationsMap = _zod.z.object({
|
|
|
4328
4343
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
4329
4344
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
4330
4345
|
});
|
|
4346
|
+
var ExportDestinationsMapUpdate = _zod.z.object({
|
|
4347
|
+
webhookUrl: _zod.z.string().nullish(),
|
|
4348
|
+
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
4349
|
+
destinationS3: ExporterDestinationS3.nullish(),
|
|
4350
|
+
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
4351
|
+
destinationAzure: ExporterDestinationAzure.nullish(),
|
|
4352
|
+
destinationGitlab: ExporterDestinationGitlab.nullish(),
|
|
4353
|
+
destinationBitbucket: ExporterDestinationBitbucket.nullish()
|
|
4354
|
+
});
|
|
4331
4355
|
var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4332
4356
|
var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4333
4357
|
var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
@@ -4343,7 +4367,7 @@ var Pipeline = _zod.z.object({
|
|
|
4343
4367
|
brandPersistentId: _zod.z.string().optional(),
|
|
4344
4368
|
themePersistentId: _zod.z.string().optional(),
|
|
4345
4369
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
4346
|
-
|
|
4370
|
+
exporterPropertyValues: ExporterPropertyDefinitionValueMap.optional(),
|
|
4347
4371
|
// Destinations
|
|
4348
4372
|
...ExportDestinationsMap.shape
|
|
4349
4373
|
});
|
|
@@ -4388,7 +4412,8 @@ var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
|
4388
4412
|
groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
4389
4413
|
pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string()),
|
|
4390
4414
|
pageApprovals: _zod.z.array(DocumentationPageApproval),
|
|
4391
|
-
pageApprovalIdsToDelete: _zod.z.array(_zod.z.string())
|
|
4415
|
+
pageApprovalIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
4416
|
+
executedTransactionIds: _zod.z.array(_zod.z.string())
|
|
4392
4417
|
});
|
|
4393
4418
|
var DocumentationPageRoom = Entity.extend({
|
|
4394
4419
|
designSystemVersionId: _zod.z.string(),
|
|
@@ -4412,9 +4437,7 @@ var RestoredDocumentationPage = _zod.z.object({
|
|
|
4412
4437
|
page: DocumentationPageV2,
|
|
4413
4438
|
pageParent: ElementGroup,
|
|
4414
4439
|
pageContent: DocumentationPageContentData,
|
|
4415
|
-
contentHash: _zod.z.string()
|
|
4416
|
-
snapshotId: _zod.z.string(),
|
|
4417
|
-
roomId: _zod.z.string().optional()
|
|
4440
|
+
contentHash: _zod.z.string()
|
|
4418
4441
|
});
|
|
4419
4442
|
var RestoredDocumentationGroup = _zod.z.object({
|
|
4420
4443
|
group: ElementGroup,
|
|
@@ -4719,7 +4742,7 @@ var ExportJob = _zod.z.object({
|
|
|
4719
4742
|
status: ExportJobStatus,
|
|
4720
4743
|
result: ExportJobResult.optional(),
|
|
4721
4744
|
createdByUserId: _zod.z.string().optional(),
|
|
4722
|
-
|
|
4745
|
+
exporterPropertyValues: ExporterPropertyDefinitionValueMap.optional(),
|
|
4723
4746
|
// Destinations
|
|
4724
4747
|
...ExportDestinationsMap.shape
|
|
4725
4748
|
});
|
|
@@ -5220,7 +5243,7 @@ function pipelineToDto(pipeline) {
|
|
|
5220
5243
|
destinationGithub: pipeline.destinationGithub,
|
|
5221
5244
|
destinationGitlab: pipeline.destinationGitlab,
|
|
5222
5245
|
destinationS3: pipeline.destinationS3,
|
|
5223
|
-
|
|
5246
|
+
exporterPropertyValues: pipeline.exporterPropertyValues,
|
|
5224
5247
|
webhookUrl: pipeline.webhookUrl,
|
|
5225
5248
|
latestJobs: []
|
|
5226
5249
|
};
|
|
@@ -5385,6 +5408,7 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5385
5408
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5386
5409
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5387
5410
|
var DTOUserSource = UserSource;
|
|
5411
|
+
var DTOUserTheme = UserTheme;
|
|
5388
5412
|
var DTOUserOnboarding = _zod.z.object({
|
|
5389
5413
|
companyName: _zod.z.string().optional(),
|
|
5390
5414
|
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
@@ -5398,7 +5422,8 @@ var DTOUserOnboarding = _zod.z.object({
|
|
|
5398
5422
|
isPageDraftOnboardingFinished: _zod.z.boolean().optional()
|
|
5399
5423
|
});
|
|
5400
5424
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5401
|
-
onboarding: DTOUserOnboarding.optional()
|
|
5425
|
+
onboarding: DTOUserOnboarding.optional(),
|
|
5426
|
+
theme: DTOUserTheme.optional()
|
|
5402
5427
|
});
|
|
5403
5428
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5404
5429
|
profile: DTOAuthenticatedUserProfile,
|
|
@@ -5737,6 +5762,28 @@ var DTOBffImportRequestBody = _zod.z.discriminatedUnion("type", [
|
|
|
5737
5762
|
DTOBffUploadImportRequestBody
|
|
5738
5763
|
]);
|
|
5739
5764
|
|
|
5765
|
+
// src/api/dto/design-systems/redirects.ts
|
|
5766
|
+
|
|
5767
|
+
var DTOPageRedirectCreateBody = _zod.z.object({
|
|
5768
|
+
pagePersistentId: _zod.z.string(),
|
|
5769
|
+
path: _zod.z.string()
|
|
5770
|
+
});
|
|
5771
|
+
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
5772
|
+
var DTOPageRedirect = _zod.z.object({
|
|
5773
|
+
id: _zod.z.string(),
|
|
5774
|
+
pagePersistentId: _zod.z.string(),
|
|
5775
|
+
path: _zod.z.string()
|
|
5776
|
+
});
|
|
5777
|
+
var DTOPageRedirectListResponse = _zod.z.object({
|
|
5778
|
+
redirects: DTOPageRedirect.array()
|
|
5779
|
+
});
|
|
5780
|
+
var DTOPageRedirectResponse = _zod.z.object({
|
|
5781
|
+
redirect: DTOPageRedirect
|
|
5782
|
+
});
|
|
5783
|
+
var DTOPageRedirectDeleteResponse = _zod.z.object({
|
|
5784
|
+
success: _zod.z.boolean()
|
|
5785
|
+
});
|
|
5786
|
+
|
|
5740
5787
|
// src/api/dto/design-systems/stats.ts
|
|
5741
5788
|
|
|
5742
5789
|
var DTODesignSystemVersionStats = _zod.z.object({
|
|
@@ -5753,6 +5800,15 @@ var DTODesignSystemVersionStatsQuery = _zod.z.object({
|
|
|
5753
5800
|
brandId: _zod.z.string().optional()
|
|
5754
5801
|
});
|
|
5755
5802
|
|
|
5803
|
+
// src/api/dto/design-systems/version-room.ts
|
|
5804
|
+
|
|
5805
|
+
var DTODesignSystemVersionRoom = _zod.z.object({
|
|
5806
|
+
id: _zod.z.string()
|
|
5807
|
+
});
|
|
5808
|
+
var DTODesignSystemVersionRoomResponse = _zod.z.object({
|
|
5809
|
+
room: DTODesignSystemVersionRoom
|
|
5810
|
+
});
|
|
5811
|
+
|
|
5756
5812
|
// src/api/dto/design-systems/version.ts
|
|
5757
5813
|
|
|
5758
5814
|
|
|
@@ -5832,7 +5888,7 @@ var DTODocumentationPublishTypeQueryParams = _zod.z.object({
|
|
|
5832
5888
|
var PrimitiveValue2 = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
|
|
5833
5889
|
var ArrayValue2 = _zod.z.array(_zod.z.string());
|
|
5834
5890
|
var ObjectValue2 = _zod.z.record(_zod.z.string());
|
|
5835
|
-
var
|
|
5891
|
+
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5836
5892
|
var DTOExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5837
5893
|
var PropertyDefinitionBase2 = _zod.z.object({
|
|
5838
5894
|
key: _zod.z.string(),
|
|
@@ -5888,7 +5944,7 @@ var DTOExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
|
|
|
5888
5944
|
var DTOExporterPropertyDefinitionsResponse = _zod.z.object({
|
|
5889
5945
|
properties: DTOExporterPropertyDefinition.array()
|
|
5890
5946
|
});
|
|
5891
|
-
var
|
|
5947
|
+
var DTOExporterPropertyValueMap = _zod.z.record(DTOExporterPropertyValue);
|
|
5892
5948
|
|
|
5893
5949
|
// src/api/payloads/export/pipeline.ts
|
|
5894
5950
|
var DTOPipelineCreateBody = _zod.z.object({
|
|
@@ -5900,7 +5956,7 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5900
5956
|
brandPersistentId: _zod.z.string().optional(),
|
|
5901
5957
|
themePersistentId: _zod.z.string().optional(),
|
|
5902
5958
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
5903
|
-
exporterConfigurationProperties:
|
|
5959
|
+
exporterConfigurationProperties: DTOExporterPropertyValueMap.optional(),
|
|
5904
5960
|
destination: PipelineDestinationType.optional(),
|
|
5905
5961
|
gitQuery: GitObjectsQuery,
|
|
5906
5962
|
destinations: _zod.z.object({
|
|
@@ -5921,7 +5977,7 @@ var DTOPipelineUpdateBody = _zod.z.object({
|
|
|
5921
5977
|
brandPersistentId: _zod.z.string().optional(),
|
|
5922
5978
|
themePersistentId: _zod.z.string().optional(),
|
|
5923
5979
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
5924
|
-
exporterConfigurationProperties:
|
|
5980
|
+
exporterConfigurationProperties: DTOExporterPropertyValueMap.optional(),
|
|
5925
5981
|
destination: PipelineDestinationType.optional(),
|
|
5926
5982
|
gitQuery: GitObjectsQuery.optional(),
|
|
5927
5983
|
destinations: _zod.z.object({
|
|
@@ -6335,7 +6391,14 @@ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
|
|
|
6335
6391
|
|
|
6336
6392
|
// src/api/dto/documentation/approvals.ts
|
|
6337
6393
|
|
|
6338
|
-
var DTODocumentationPageApprovalState =
|
|
6394
|
+
var DTODocumentationPageApprovalState = _zod.z.object({
|
|
6395
|
+
approvalState: DocumentationPageApprovalState,
|
|
6396
|
+
pagePersistentId: _zod.z.string(),
|
|
6397
|
+
updatedByUserId: _zod.z.string(),
|
|
6398
|
+
designSystemVersionId: _zod.z.string(),
|
|
6399
|
+
updatedAt: _zod.z.coerce.date(),
|
|
6400
|
+
createdAt: _zod.z.coerce.date()
|
|
6401
|
+
});
|
|
6339
6402
|
var DTODocumentationGroupApprovalState = _zod.z.object({
|
|
6340
6403
|
persistentId: _zod.z.string(),
|
|
6341
6404
|
groupPersistentId: _zod.z.string(),
|
|
@@ -6431,12 +6494,18 @@ var DTOCreateDocumentationPageInputV2 = _zod.z.object({
|
|
|
6431
6494
|
afterPersistentId: _zod.z.string().nullish()
|
|
6432
6495
|
});
|
|
6433
6496
|
var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
|
|
6434
|
-
// Identifier of the
|
|
6497
|
+
// Identifier of the page to update
|
|
6435
6498
|
id: _zod.z.string(),
|
|
6436
6499
|
// Page properties
|
|
6437
6500
|
title: _zod.z.string().optional(),
|
|
6438
6501
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6439
6502
|
});
|
|
6503
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = _zod.z.object({
|
|
6504
|
+
// Identifier of the page to update
|
|
6505
|
+
id: _zod.z.string(),
|
|
6506
|
+
// Page properties
|
|
6507
|
+
documentItems: _zod.z.array(DocumentationPageContentItem)
|
|
6508
|
+
});
|
|
6440
6509
|
var DTOMoveDocumentationPageInputV2 = _zod.z.object({
|
|
6441
6510
|
// Identifier of the group to update
|
|
6442
6511
|
id: _zod.z.string(),
|
|
@@ -6592,7 +6661,7 @@ var DTOExportJob = _zod.z.object({
|
|
|
6592
6661
|
brandPersistentId: _zod.z.string().optional(),
|
|
6593
6662
|
themePersistentId: _zod.z.string().optional(),
|
|
6594
6663
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6595
|
-
|
|
6664
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6596
6665
|
});
|
|
6597
6666
|
var DTOExportJobResponse = _zod.z.object({
|
|
6598
6667
|
job: DTOExportJob
|
|
@@ -6622,7 +6691,7 @@ var DTOPipeline = _zod.z.object({
|
|
|
6622
6691
|
brandPersistentId: _zod.z.string().optional(),
|
|
6623
6692
|
themePersistentId: _zod.z.string().optional(),
|
|
6624
6693
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6625
|
-
|
|
6694
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6626
6695
|
...ExportDestinationsMap.shape,
|
|
6627
6696
|
latestJobs: DTOExportJob.array()
|
|
6628
6697
|
});
|
|
@@ -6897,7 +6966,9 @@ var DTODocumentationHierarchyV2 = _zod.z.object({
|
|
|
6897
6966
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6898
6967
|
draftState: DTODocumentationDraftState.optional()
|
|
6899
6968
|
})
|
|
6900
|
-
)
|
|
6969
|
+
),
|
|
6970
|
+
/** True if the documentation was already published, false otherwise. */
|
|
6971
|
+
hasPublishedDocumentationContent: _zod.z.boolean()
|
|
6901
6972
|
});
|
|
6902
6973
|
|
|
6903
6974
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
@@ -6913,6 +6984,10 @@ var DTODocumentationPageUpdateActionOutputV2 = _zod.z.object({
|
|
|
6913
6984
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
6914
6985
|
output: SuccessPayload2
|
|
6915
6986
|
});
|
|
6987
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = _zod.z.object({
|
|
6988
|
+
type: _zod.z.literal("DocumentationPageUpdateDocument"),
|
|
6989
|
+
output: SuccessPayload2
|
|
6990
|
+
});
|
|
6916
6991
|
var DTODocumentationPageMoveActionOutputV2 = _zod.z.object({
|
|
6917
6992
|
type: _zod.z.literal("DocumentationPageMove"),
|
|
6918
6993
|
output: SuccessPayload2
|
|
@@ -6945,6 +7020,10 @@ var DTODocumentationPageUpdateActionInputV2 = _zod.z.object({
|
|
|
6945
7020
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
6946
7021
|
input: DTOUpdateDocumentationPageInputV2
|
|
6947
7022
|
});
|
|
7023
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = _zod.z.object({
|
|
7024
|
+
type: _zod.z.literal("DocumentationPageUpdateDocument"),
|
|
7025
|
+
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7026
|
+
});
|
|
6948
7027
|
var DTODocumentationPageMoveActionInputV2 = _zod.z.object({
|
|
6949
7028
|
type: _zod.z.literal("DocumentationPageMove"),
|
|
6950
7029
|
input: DTOMoveDocumentationPageInputV2
|
|
@@ -6991,6 +7070,14 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6991
7070
|
path: _zod.z.string()
|
|
6992
7071
|
});
|
|
6993
7072
|
|
|
7073
|
+
// src/api/dto/elements/documentation/settings.ts
|
|
7074
|
+
|
|
7075
|
+
var DTODocumentationSettings = _zod.z.object({
|
|
7076
|
+
isDraftFeatureAdopted: _zod.z.boolean(),
|
|
7077
|
+
isApprovalsFeatureEnabled: _zod.z.boolean(),
|
|
7078
|
+
isApprovalRequiredForPublishing: _zod.z.boolean()
|
|
7079
|
+
});
|
|
7080
|
+
|
|
6994
7081
|
// src/api/dto/elements/documentation/structure.ts
|
|
6995
7082
|
|
|
6996
7083
|
var DTODocumentationStructureItemType = _zod.z.enum(["Group", "Page"]);
|
|
@@ -7223,6 +7310,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
7223
7310
|
// Documentation pages
|
|
7224
7311
|
DTODocumentationPageCreateActionOutputV2,
|
|
7225
7312
|
DTODocumentationPageUpdateActionOutputV2,
|
|
7313
|
+
DTODocumentationPageUpdateDocumentActionOutputV2,
|
|
7226
7314
|
DTODocumentationPageMoveActionOutputV2,
|
|
7227
7315
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
7228
7316
|
DTODocumentationPageDeleteActionOutputV2,
|
|
@@ -7247,6 +7335,7 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
7247
7335
|
// Documentation pages
|
|
7248
7336
|
DTODocumentationPageCreateActionInputV2,
|
|
7249
7337
|
DTODocumentationPageUpdateActionInputV2,
|
|
7338
|
+
DTODocumentationPageUpdateDocumentActionInputV2,
|
|
7250
7339
|
DTODocumentationPageMoveActionInputV2,
|
|
7251
7340
|
DTODocumentationPageDuplicateActionInputV2,
|
|
7252
7341
|
DTODocumentationPageDeleteActionInputV2,
|
|
@@ -7266,7 +7355,11 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
7266
7355
|
DTODocumentationGroupRestoreActionInput,
|
|
7267
7356
|
// Approval
|
|
7268
7357
|
DTODocumentationPageApprovalStateChangeActionInput
|
|
7269
|
-
])
|
|
7358
|
+
]).and(
|
|
7359
|
+
_zod.z.object({
|
|
7360
|
+
tId: _zod.z.string().optional()
|
|
7361
|
+
})
|
|
7362
|
+
);
|
|
7270
7363
|
|
|
7271
7364
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7272
7365
|
|
|
@@ -7467,6 +7560,79 @@ function serializeQuery(query) {
|
|
|
7467
7560
|
return new URLSearchParams(queryWithStrings);
|
|
7468
7561
|
}
|
|
7469
7562
|
|
|
7563
|
+
// src/utils/redirect-validation.ts
|
|
7564
|
+
var exhaustiveInvalidUriPaths = {
|
|
7565
|
+
emptyPath: "",
|
|
7566
|
+
spacesInPath: "/invalid path/with spaces",
|
|
7567
|
+
specialCharacter1: "/path/with|invalid>characters",
|
|
7568
|
+
specialCharacter2: "/path/with<invalid*characters",
|
|
7569
|
+
specialCharacter3: "/path/{invalid}?characters",
|
|
7570
|
+
consecutiveSlashes: "/path//with///too/many/slashes",
|
|
7571
|
+
unencodedPercent: "/path/with/unencoded%percent",
|
|
7572
|
+
unencodedSpaces: "/path/with unencoded spaces",
|
|
7573
|
+
fragmentIdentifier: "/path/with#fragment",
|
|
7574
|
+
queryParameters: "/path/with?query=parameter",
|
|
7575
|
+
nullCharacter: "/path/with/\0nullcharacter",
|
|
7576
|
+
onlySlash: "/",
|
|
7577
|
+
controlCharacter: "/path/with/control\0character",
|
|
7578
|
+
extremelyLongPath: "/" + "a".repeat(2047),
|
|
7579
|
+
invalidStartCharacter: "///path/starting/with/slashes",
|
|
7580
|
+
invalidStartCharacterColon: ":/path/starting/with/colon",
|
|
7581
|
+
invalidTrailingDot: "/path/ending/with/dot.",
|
|
7582
|
+
invalidPercentEncoding1: "/path/with/%2",
|
|
7583
|
+
invalidPercentEncoding2: "/path/with/%ZZ",
|
|
7584
|
+
invalidPercentEncoding3: "/path/with/%G1",
|
|
7585
|
+
reservedCharacter1: "/path/with?<reserved>",
|
|
7586
|
+
reservedCharacter2: '/path/with/"quotes"',
|
|
7587
|
+
reservedCharacter3: "/path/with/[brackets]",
|
|
7588
|
+
reservedCharacter4: "/path/with/\\backslashes",
|
|
7589
|
+
nonAscii1: "/path/with/\u4F60\u597D",
|
|
7590
|
+
nonAscii2: "/path/with/emoji/\u{1F603}",
|
|
7591
|
+
mixedEncodingPath: "/path/%41A%42B%C3%28",
|
|
7592
|
+
directoryTraversal1: "/path/../../etc/passwd",
|
|
7593
|
+
directoryTraversal2: "/path/./././"
|
|
7594
|
+
};
|
|
7595
|
+
function isValidRedirectPath(path) {
|
|
7596
|
+
const trimmedPath = path.toLowerCase().trim();
|
|
7597
|
+
const url = "https://www.example.com" + trimmedPath;
|
|
7598
|
+
if (url.length > 2048) {
|
|
7599
|
+
return {
|
|
7600
|
+
isValid: false,
|
|
7601
|
+
reason: "TooLong"
|
|
7602
|
+
};
|
|
7603
|
+
}
|
|
7604
|
+
if (trimmedPath === "") {
|
|
7605
|
+
return {
|
|
7606
|
+
isValid: false,
|
|
7607
|
+
reason: "Empty"
|
|
7608
|
+
};
|
|
7609
|
+
}
|
|
7610
|
+
if (url === "/") {
|
|
7611
|
+
return {
|
|
7612
|
+
isValid: false,
|
|
7613
|
+
reason: "Empty"
|
|
7614
|
+
};
|
|
7615
|
+
}
|
|
7616
|
+
if (url.includes("?")) {
|
|
7617
|
+
return {
|
|
7618
|
+
isValid: false,
|
|
7619
|
+
reason: "ContainsQuery"
|
|
7620
|
+
};
|
|
7621
|
+
}
|
|
7622
|
+
if (url.includes("#")) {
|
|
7623
|
+
return {
|
|
7624
|
+
isValid: false,
|
|
7625
|
+
reason: "ContainsFragment"
|
|
7626
|
+
};
|
|
7627
|
+
}
|
|
7628
|
+
const regex = /^\/[A-Za-z0-9_-]+(\/[A-Za-z0-9_-]+)*$/;
|
|
7629
|
+
const isValid = regex.test(trimmedPath);
|
|
7630
|
+
return {
|
|
7631
|
+
isValid: regex.test(trimmedPath),
|
|
7632
|
+
reason: !isValid ? "InvalidURI" : void 0
|
|
7633
|
+
};
|
|
7634
|
+
}
|
|
7635
|
+
|
|
7470
7636
|
// src/api/endpoints/codegen/exporters.ts
|
|
7471
7637
|
var ExportersEndpoint = class {
|
|
7472
7638
|
constructor(requestExecutor) {
|
|
@@ -7983,6 +8149,12 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7983
8149
|
DTODesignSystemVersionJobStatusResponse
|
|
7984
8150
|
);
|
|
7985
8151
|
}
|
|
8152
|
+
room(dsId, vId) {
|
|
8153
|
+
return this.requestExecutor.json(
|
|
8154
|
+
`/design-systems/${dsId}/versions/${vId}/room`,
|
|
8155
|
+
DTODesignSystemVersionRoomResponse
|
|
8156
|
+
);
|
|
8157
|
+
}
|
|
7986
8158
|
};
|
|
7987
8159
|
|
|
7988
8160
|
// src/api/endpoints/design-system/bff.ts
|
|
@@ -8057,6 +8229,43 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8057
8229
|
}
|
|
8058
8230
|
};
|
|
8059
8231
|
|
|
8232
|
+
// src/api/endpoints/design-system/redirects.ts
|
|
8233
|
+
var DesignSystemPageRedirectsEndpoint = class {
|
|
8234
|
+
constructor(requestExecutor) {
|
|
8235
|
+
this.requestExecutor = requestExecutor;
|
|
8236
|
+
}
|
|
8237
|
+
create(dsId, body) {
|
|
8238
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectResponse, {
|
|
8239
|
+
body,
|
|
8240
|
+
method: "POST"
|
|
8241
|
+
});
|
|
8242
|
+
}
|
|
8243
|
+
list(dsId) {
|
|
8244
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectListResponse, {
|
|
8245
|
+
method: "GET"
|
|
8246
|
+
});
|
|
8247
|
+
}
|
|
8248
|
+
update(dsId, redirectId, body) {
|
|
8249
|
+
return this.requestExecutor.json(
|
|
8250
|
+
`/design-systems/${dsId}/documentation/redirects/${redirectId}`,
|
|
8251
|
+
DTOPageRedirectResponse,
|
|
8252
|
+
{
|
|
8253
|
+
body,
|
|
8254
|
+
method: "PUT"
|
|
8255
|
+
}
|
|
8256
|
+
);
|
|
8257
|
+
}
|
|
8258
|
+
delete(dsId, redirectId) {
|
|
8259
|
+
return this.requestExecutor.json(
|
|
8260
|
+
`/design-systems/${dsId}/documentation/redirects/${redirectId}`,
|
|
8261
|
+
DTOPageRedirectDeleteResponse,
|
|
8262
|
+
{
|
|
8263
|
+
method: "DELETE"
|
|
8264
|
+
}
|
|
8265
|
+
);
|
|
8266
|
+
}
|
|
8267
|
+
};
|
|
8268
|
+
|
|
8060
8269
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8061
8270
|
var DesignSystemsEndpoint = class {
|
|
8062
8271
|
constructor(requestExecutor) {
|
|
@@ -8066,11 +8275,13 @@ var DesignSystemsEndpoint = class {
|
|
|
8066
8275
|
__publicField(this, "bff");
|
|
8067
8276
|
__publicField(this, "sources");
|
|
8068
8277
|
__publicField(this, "contacts");
|
|
8278
|
+
__publicField(this, "redirects");
|
|
8069
8279
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
8070
8280
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
8071
8281
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
8072
8282
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
8073
8283
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
8284
|
+
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
8074
8285
|
}
|
|
8075
8286
|
create(body) {
|
|
8076
8287
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -8357,6 +8568,27 @@ var SupernovaApiClient = class {
|
|
|
8357
8568
|
}
|
|
8358
8569
|
};
|
|
8359
8570
|
|
|
8571
|
+
// src/events/design-system.ts
|
|
8572
|
+
|
|
8573
|
+
var DTOEventFigmaNodesRendered = _zod.z.object({
|
|
8574
|
+
type: _zod.z.literal("DesignSystem.FigmaNodesRendered"),
|
|
8575
|
+
designSystemId: _zod.z.string(),
|
|
8576
|
+
versionId: _zod.z.string(),
|
|
8577
|
+
figmaNodePersistentIds: _zod.z.string().array()
|
|
8578
|
+
});
|
|
8579
|
+
var DTOEventDataSourcesImported = _zod.z.object({
|
|
8580
|
+
type: _zod.z.literal("DesignSystem.ImportJobFinished"),
|
|
8581
|
+
designSystemId: _zod.z.string(),
|
|
8582
|
+
versionId: _zod.z.string(),
|
|
8583
|
+
importJobId: _zod.z.string(),
|
|
8584
|
+
dataSourceType: DataSourceRemoteType,
|
|
8585
|
+
dataSourceIds: _zod.z.string().array()
|
|
8586
|
+
});
|
|
8587
|
+
|
|
8588
|
+
// src/events/event.ts
|
|
8589
|
+
|
|
8590
|
+
var DTOEvent = _zod.z.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8591
|
+
|
|
8360
8592
|
// src/sync/docs-structure-repo.ts
|
|
8361
8593
|
var _pqueue = require('p-queue'); var _pqueue2 = _interopRequireDefault(_pqueue);
|
|
8362
8594
|
|
|
@@ -8381,7 +8613,8 @@ var VersionRoomBaseYDoc = class {
|
|
|
8381
8613
|
pageContentHashes: this.getDocumentationPageContentHashes(),
|
|
8382
8614
|
pageSnapshots: this.getPageSnapshots(),
|
|
8383
8615
|
settings: this.getDocumentationInternalSettings(),
|
|
8384
|
-
pageLiveblockRoomIds: this.getDocumentationPageLiveblocksRoomIds()
|
|
8616
|
+
pageLiveblockRoomIds: this.getDocumentationPageLiveblocksRoomIds(),
|
|
8617
|
+
executedTransactionIds: this.getExecutedTransactionIds()
|
|
8385
8618
|
};
|
|
8386
8619
|
}
|
|
8387
8620
|
//
|
|
@@ -8532,7 +8765,9 @@ var VersionRoomBaseYDoc = class {
|
|
|
8532
8765
|
get documentationPageContentHashesYMap() {
|
|
8533
8766
|
return this.yDoc.getMap("documentationPageHashes");
|
|
8534
8767
|
}
|
|
8768
|
+
//
|
|
8535
8769
|
// Approval states
|
|
8770
|
+
//
|
|
8536
8771
|
updateApprovalStates(updates) {
|
|
8537
8772
|
this.setObjects(this.documentationPageApprovalsMap, updates);
|
|
8538
8773
|
}
|
|
@@ -8545,6 +8780,28 @@ var VersionRoomBaseYDoc = class {
|
|
|
8545
8780
|
get documentationPageApprovalsMap() {
|
|
8546
8781
|
return this.yDoc.getMap("documentationPageApprovals");
|
|
8547
8782
|
}
|
|
8783
|
+
//
|
|
8784
|
+
// Executed transactions
|
|
8785
|
+
//
|
|
8786
|
+
updateExecutedTransactionIds(transactionIds) {
|
|
8787
|
+
transactionIds = Array.from(new Set(transactionIds));
|
|
8788
|
+
if (!transactionIds.length)
|
|
8789
|
+
return;
|
|
8790
|
+
const array = this.executedTransactionIdsArray;
|
|
8791
|
+
array.push(transactionIds);
|
|
8792
|
+
if (array.length > 100) {
|
|
8793
|
+
array.delete(0, array.length - 100);
|
|
8794
|
+
}
|
|
8795
|
+
}
|
|
8796
|
+
getExecutedTransactionIds() {
|
|
8797
|
+
const array = this.executedTransactionIdsArray;
|
|
8798
|
+
const transactionIds = [];
|
|
8799
|
+
array.forEach((e) => typeof e === "string" && transactionIds.push(e));
|
|
8800
|
+
return transactionIds;
|
|
8801
|
+
}
|
|
8802
|
+
get executedTransactionIdsArray() {
|
|
8803
|
+
return this.yDoc.getArray("executedTransactionIds");
|
|
8804
|
+
}
|
|
8548
8805
|
};
|
|
8549
8806
|
|
|
8550
8807
|
// src/yjs/version-room/compute-dto.ts
|
|
@@ -8558,8 +8815,12 @@ function computeDocsHierarchy(input, options = {}) {
|
|
|
8558
8815
|
}
|
|
8559
8816
|
const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion, recordToMap(pageLiveblockRoomIds));
|
|
8560
8817
|
const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
|
|
8818
|
+
const hasPublishedPages = pageSnapshots.some((s) => s.reason === "Publish");
|
|
8819
|
+
const hasPublishedGroups = groupSnapshots.some((s) => s.reason === "Publish");
|
|
8820
|
+
const hasPublishedDocumentationContent = hasPublishedPages || hasPublishedGroups;
|
|
8561
8821
|
if (!settings.isDraftFeatureAdopted) {
|
|
8562
8822
|
return {
|
|
8823
|
+
hasPublishedDocumentationContent,
|
|
8563
8824
|
pages: pageDTOs,
|
|
8564
8825
|
groups: groupDTOs
|
|
8565
8826
|
};
|
|
@@ -8589,6 +8850,7 @@ function computeDocsHierarchy(input, options = {}) {
|
|
|
8589
8850
|
approvalState && (g.approvalState = approvalState);
|
|
8590
8851
|
});
|
|
8591
8852
|
return {
|
|
8853
|
+
hasPublishedDocumentationContent,
|
|
8592
8854
|
pages: pageDTOs,
|
|
8593
8855
|
groups: groupDTOs
|
|
8594
8856
|
};
|
|
@@ -13235,6 +13497,7 @@ var BackendVersionRoomYDoc = class {
|
|
|
13235
13497
|
transaction.pageHashesToUpdate && yDoc.updateDocumentationPageContentHashes(transaction.pageHashesToUpdate);
|
|
13236
13498
|
transaction.pageApprovals && yDoc.updateApprovalStates(transaction.pageApprovals);
|
|
13237
13499
|
transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
|
|
13500
|
+
transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
|
|
13238
13501
|
});
|
|
13239
13502
|
}
|
|
13240
13503
|
getDocumentationPageContentHashes() {
|
|
@@ -13246,81 +13509,283 @@ var BackendVersionRoomYDoc = class {
|
|
|
13246
13509
|
}
|
|
13247
13510
|
};
|
|
13248
13511
|
|
|
13249
|
-
// src/sync/local-
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13512
|
+
// src/sync/local-action-executor.ts
|
|
13513
|
+
function applyActionsLocally(input) {
|
|
13514
|
+
const actionExecutor = new LocalDocsElementActionExecutor(input);
|
|
13515
|
+
actionExecutor.applyActions(input.actions);
|
|
13516
|
+
return actionExecutor.localState;
|
|
13517
|
+
}
|
|
13518
|
+
var LocalDocsElementActionExecutor = class {
|
|
13519
|
+
constructor(config) {
|
|
13520
|
+
__publicField(this, "userId");
|
|
13521
|
+
__publicField(this, "designSystemVersionId");
|
|
13522
|
+
__publicField(this, "pages");
|
|
13523
|
+
__publicField(this, "groups");
|
|
13524
|
+
__publicField(this, "approvalStates");
|
|
13525
|
+
const { designSystemVersionId, remoteState, userId } = config;
|
|
13526
|
+
this.userId = userId;
|
|
13527
|
+
this.designSystemVersionId = designSystemVersionId;
|
|
13528
|
+
this.pages = mapByUnique(remoteState.pages, (p) => p.persistentId);
|
|
13529
|
+
this.groups = mapByUnique(remoteState.groups, (p) => p.persistentId);
|
|
13530
|
+
this.approvalStates = mapByUnique(remoteState.approvals, (a) => a.pagePersistentId);
|
|
13531
|
+
}
|
|
13532
|
+
get localState() {
|
|
13533
|
+
return {
|
|
13534
|
+
pages: Array.from(this.pages.values()),
|
|
13535
|
+
groups: Array.from(this.groups.values()),
|
|
13536
|
+
approvals: Array.from(this.approvalStates.values())
|
|
13537
|
+
};
|
|
13538
|
+
}
|
|
13539
|
+
applyActions(trx) {
|
|
13540
|
+
trx.forEach((trx2) => this.applyTransaction(trx2));
|
|
13541
|
+
}
|
|
13542
|
+
applyTransaction(trx) {
|
|
13543
|
+
switch (trx.type) {
|
|
13544
|
+
case "DocumentationGroupCreate":
|
|
13545
|
+
return this.documentationGroupCreate(trx);
|
|
13546
|
+
case "DocumentationGroupUpdate":
|
|
13547
|
+
return this.documentationGroupUpdate(trx);
|
|
13548
|
+
case "DocumentationGroupDelete":
|
|
13549
|
+
return this.documentationGroupDelete(trx);
|
|
13550
|
+
case "DocumentationGroupMove":
|
|
13551
|
+
return this.documentationGroupMove(trx);
|
|
13552
|
+
case "DocumentationGroupDuplicate":
|
|
13553
|
+
case "DocumentationGroupRestore":
|
|
13554
|
+
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
13555
|
+
case "DocumentationPageCreate":
|
|
13556
|
+
return this.documentationPageCreate(trx);
|
|
13557
|
+
case "DocumentationPageUpdate":
|
|
13558
|
+
return this.documentationPageUpdate(trx);
|
|
13559
|
+
case "DocumentationPageMove":
|
|
13560
|
+
return this.documentationPageMove(trx);
|
|
13561
|
+
case "DocumentationPageDelete":
|
|
13562
|
+
return this.documentationPageDelete(trx);
|
|
13563
|
+
case "DocumentationPageApprovalStateChange":
|
|
13564
|
+
return this.documentationApprovalStateUpdate(trx);
|
|
13565
|
+
case "DocumentationPageDuplicate":
|
|
13566
|
+
case "DocumentationPageRestore":
|
|
13567
|
+
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
13568
|
+
case "DocumentationTabCreate":
|
|
13569
|
+
case "DocumentationTabGroupDelete":
|
|
13570
|
+
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
13571
|
+
case "FigmaNodeRender":
|
|
13572
|
+
case "FigmaNodeRenderAsync":
|
|
13573
|
+
throw new Error(`Transaction type ${trx.type} is not a documentation element action`);
|
|
13574
|
+
}
|
|
13575
|
+
}
|
|
13576
|
+
//
|
|
13577
|
+
// Pages
|
|
13578
|
+
//
|
|
13579
|
+
documentationPageCreate(trx) {
|
|
13580
|
+
const { input } = trx;
|
|
13581
|
+
if (this.pages.has(input.persistentId)) {
|
|
13582
|
+
return;
|
|
13583
|
+
}
|
|
13584
|
+
if (!this.groups.has(input.parentPersistentId)) {
|
|
13585
|
+
throw new Error(`Cannot create page: parent persistent id ${input.parentPersistentId} was not found`);
|
|
13260
13586
|
}
|
|
13261
|
-
|
|
13587
|
+
const localPage = {
|
|
13588
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
13589
|
+
parentPersistentId: input.parentPersistentId,
|
|
13590
|
+
persistentId: input.persistentId,
|
|
13591
|
+
shortPersistentId: generateShortPersistentId(),
|
|
13592
|
+
slug: slugify(input.title),
|
|
13593
|
+
meta: { name: input.title },
|
|
13594
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
13595
|
+
data: {
|
|
13596
|
+
// TODO Artem: move somewhere reusable
|
|
13597
|
+
configuration: input.configuration ? { ...defaultDocumentationItemConfigurationV2, ...input.configuration } : input.configuration
|
|
13598
|
+
},
|
|
13599
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13600
|
+
designSystemVersionId: this.designSystemVersionId
|
|
13601
|
+
};
|
|
13602
|
+
this.pages.set(localPage.persistentId, localPage);
|
|
13262
13603
|
}
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
this.
|
|
13604
|
+
documentationPageUpdate(trx) {
|
|
13605
|
+
const { input } = trx;
|
|
13606
|
+
const existingPage = this.pages.get(input.id);
|
|
13607
|
+
if (!existingPage) {
|
|
13608
|
+
throw new Error(`Cannot update page: page id ${input.id} was not found`);
|
|
13609
|
+
}
|
|
13610
|
+
const localPage = {
|
|
13611
|
+
...existingPage,
|
|
13612
|
+
userSlug: void 0,
|
|
13613
|
+
meta: {
|
|
13614
|
+
...existingPage.meta,
|
|
13615
|
+
name: _nullishCoalesce(input.title, () => ( existingPage.meta.name))
|
|
13616
|
+
},
|
|
13617
|
+
data: {
|
|
13618
|
+
// TODO Artem: move somewhere reusable
|
|
13619
|
+
configuration: input.configuration ? { ..._nullishCoalesce(existingPage.data.configuration, () => ( defaultDocumentationItemConfigurationV2)), ...input.configuration } : existingPage.data.configuration
|
|
13620
|
+
}
|
|
13621
|
+
};
|
|
13622
|
+
this.pages.set(localPage.persistentId, localPage);
|
|
13266
13623
|
}
|
|
13267
|
-
|
|
13268
|
-
|
|
13624
|
+
documentationPageMove(trx) {
|
|
13625
|
+
const { input } = trx;
|
|
13626
|
+
if (!this.groups.has(input.parentPersistentId)) {
|
|
13627
|
+
throw new Error(`Cannot move page: page parent id ${input.parentPersistentId} was not found`);
|
|
13628
|
+
}
|
|
13629
|
+
const existingPage = this.pages.get(input.id);
|
|
13630
|
+
if (!existingPage) {
|
|
13631
|
+
throw new Error(`Cannot update page: page id ${input.id} was not found`);
|
|
13632
|
+
}
|
|
13633
|
+
const localPage = {
|
|
13634
|
+
...existingPage,
|
|
13635
|
+
userSlug: void 0,
|
|
13636
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13637
|
+
parentPersistentId: input.parentPersistentId
|
|
13638
|
+
};
|
|
13639
|
+
this.pages.set(localPage.persistentId, localPage);
|
|
13269
13640
|
}
|
|
13270
|
-
|
|
13271
|
-
const
|
|
13272
|
-
if (!
|
|
13273
|
-
throw new Error(`
|
|
13274
|
-
|
|
13641
|
+
documentationPageDelete(trx) {
|
|
13642
|
+
const { input } = trx;
|
|
13643
|
+
if (!this.pages.delete(trx.input.id)) {
|
|
13644
|
+
throw new Error(`Cannot delete page: page id ${input.id} was not found`);
|
|
13645
|
+
}
|
|
13275
13646
|
}
|
|
13276
|
-
|
|
13277
|
-
|
|
13647
|
+
//
|
|
13648
|
+
// Group
|
|
13649
|
+
//
|
|
13650
|
+
documentationGroupCreate(trx) {
|
|
13651
|
+
const { input } = trx;
|
|
13652
|
+
if (this.groups.has(input.persistentId)) {
|
|
13653
|
+
return;
|
|
13654
|
+
}
|
|
13655
|
+
const localGroup = {
|
|
13656
|
+
parentPersistentId: input.parentPersistentId,
|
|
13657
|
+
persistentId: input.persistentId,
|
|
13658
|
+
shortPersistentId: generateShortPersistentId(),
|
|
13659
|
+
slug: slugify(input.title),
|
|
13660
|
+
meta: { name: input.title },
|
|
13661
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
13662
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
13663
|
+
data: {
|
|
13664
|
+
// TODO Artem: move somewhere reusable
|
|
13665
|
+
configuration: input.configuration ? { ...defaultDocumentationItemConfigurationV2, ...input.configuration } : input.configuration
|
|
13666
|
+
},
|
|
13667
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13668
|
+
designSystemVersionId: this.designSystemVersionId
|
|
13669
|
+
};
|
|
13670
|
+
this.groups.set(localGroup.persistentId, localGroup);
|
|
13278
13671
|
}
|
|
13279
|
-
|
|
13280
|
-
|
|
13672
|
+
documentationGroupUpdate(trx) {
|
|
13673
|
+
const { input } = trx;
|
|
13674
|
+
const existingGroup = this.groups.get(input.id);
|
|
13675
|
+
if (!existingGroup) {
|
|
13676
|
+
throw new Error(`Cannot update group: group id ${input.id} was not found`);
|
|
13677
|
+
}
|
|
13678
|
+
const localGroup = {
|
|
13679
|
+
...existingGroup,
|
|
13680
|
+
userSlug: void 0,
|
|
13681
|
+
meta: {
|
|
13682
|
+
...existingGroup.meta,
|
|
13683
|
+
name: _nullishCoalesce(input.title, () => ( existingGroup.meta.name))
|
|
13684
|
+
},
|
|
13685
|
+
data: {
|
|
13686
|
+
// TODO Artem: move somewhere reusable
|
|
13687
|
+
configuration: input.configuration ? {
|
|
13688
|
+
..._nullishCoalesce(_optionalChain([existingGroup, 'access', _86 => _86.data, 'optionalAccess', _87 => _87.configuration]), () => ( defaultDocumentationItemConfigurationV2)),
|
|
13689
|
+
...input.configuration
|
|
13690
|
+
} : _optionalChain([existingGroup, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.configuration])
|
|
13691
|
+
}
|
|
13692
|
+
};
|
|
13693
|
+
this.groups.set(localGroup.persistentId, localGroup);
|
|
13281
13694
|
}
|
|
13282
|
-
|
|
13283
|
-
|
|
13695
|
+
documentationGroupMove(trx) {
|
|
13696
|
+
const { input } = trx;
|
|
13697
|
+
if (!this.groups.has(input.parentPersistentId)) {
|
|
13698
|
+
throw new Error(`Cannot move group: group parent id ${input.parentPersistentId} was not found`);
|
|
13699
|
+
}
|
|
13700
|
+
const existingGroup = this.groups.get(input.id);
|
|
13701
|
+
if (!existingGroup) {
|
|
13702
|
+
throw new Error(`Cannot update group: group id ${input.id} was not found`);
|
|
13703
|
+
}
|
|
13704
|
+
const localGroup = {
|
|
13705
|
+
...existingGroup,
|
|
13706
|
+
userSlug: void 0,
|
|
13707
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13708
|
+
parentPersistentId: input.parentPersistentId
|
|
13709
|
+
};
|
|
13710
|
+
this.groups.set(localGroup.persistentId, localGroup);
|
|
13284
13711
|
}
|
|
13285
|
-
|
|
13286
|
-
|
|
13712
|
+
documentationGroupDelete(trx) {
|
|
13713
|
+
const { input } = trx;
|
|
13714
|
+
if (!this.groups.delete(trx.input.id)) {
|
|
13715
|
+
throw new Error(`Cannot delete group: group id ${input.id} was not found`);
|
|
13716
|
+
}
|
|
13287
13717
|
}
|
|
13288
|
-
|
|
13289
|
-
|
|
13718
|
+
//
|
|
13719
|
+
// Approval states
|
|
13720
|
+
//
|
|
13721
|
+
documentationApprovalStateUpdate(trx) {
|
|
13722
|
+
const { input } = trx;
|
|
13723
|
+
const existingApproval = this.approvalStates.get(input.persistentId);
|
|
13724
|
+
if (input.approvalState) {
|
|
13725
|
+
this.approvalStates.set(input.persistentId, {
|
|
13726
|
+
approvalState: input.approvalState,
|
|
13727
|
+
createdAt: _nullishCoalesce(_optionalChain([existingApproval, 'optionalAccess', _90 => _90.createdAt]), () => ( /* @__PURE__ */ new Date())),
|
|
13728
|
+
designSystemVersionId: this.designSystemVersionId,
|
|
13729
|
+
pagePersistentId: input.persistentId,
|
|
13730
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
13731
|
+
updatedByUserId: this.userId
|
|
13732
|
+
});
|
|
13733
|
+
} else {
|
|
13734
|
+
this.approvalStates.delete(input.persistentId);
|
|
13735
|
+
}
|
|
13290
13736
|
}
|
|
13291
|
-
|
|
13292
|
-
|
|
13737
|
+
//
|
|
13738
|
+
// Utils
|
|
13739
|
+
//
|
|
13740
|
+
calculateSortOrder(parentPersistentId, afterPersistentId) {
|
|
13741
|
+
const sortOrderStep = Math.pow(2, 16);
|
|
13742
|
+
const neighbours = [
|
|
13743
|
+
...Array.from(this.pages.values()).filter((p) => p.parentPersistentId === parentPersistentId),
|
|
13744
|
+
...Array.from(this.groups.values()).filter((g) => g.parentPersistentId === parentPersistentId)
|
|
13745
|
+
];
|
|
13746
|
+
if (!neighbours.length)
|
|
13747
|
+
return 0;
|
|
13748
|
+
neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
13749
|
+
if (afterPersistentId === null)
|
|
13750
|
+
return neighbours[0].sortOrder - sortOrderStep;
|
|
13751
|
+
if (!afterPersistentId)
|
|
13752
|
+
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13753
|
+
const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
|
|
13754
|
+
if (index < 0 || index === neighbours.length - 1) {
|
|
13755
|
+
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13756
|
+
}
|
|
13757
|
+
const left = neighbours[index].sortOrder;
|
|
13758
|
+
const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _91 => _91[index + 1], 'optionalAccess', _92 => _92.sortOrder]), () => ( left + sortOrderStep * 2));
|
|
13759
|
+
return (right + left) / 2;
|
|
13293
13760
|
}
|
|
13294
13761
|
};
|
|
13295
13762
|
|
|
13296
13763
|
// src/sync/docs-structure-repo.ts
|
|
13297
|
-
var DocsStructureRepo = class {
|
|
13298
|
-
};
|
|
13299
13764
|
var DocsStructureRepository = class {
|
|
13300
|
-
constructor(
|
|
13301
|
-
__publicField(this, "
|
|
13765
|
+
constructor(config) {
|
|
13766
|
+
__publicField(this, "userId");
|
|
13302
13767
|
__publicField(this, "designSystemVersionId");
|
|
13303
13768
|
__publicField(this, "yDoc");
|
|
13304
13769
|
__publicField(this, "yObserver");
|
|
13305
13770
|
__publicField(this, "_yState");
|
|
13306
13771
|
__publicField(this, "_currentHierarchy");
|
|
13307
|
-
__publicField(this, "
|
|
13772
|
+
__publicField(this, "_currentSettings");
|
|
13773
|
+
__publicField(this, "localActions", []);
|
|
13774
|
+
__publicField(this, "actionQueue");
|
|
13308
13775
|
__publicField(this, "hierarchyObservers", /* @__PURE__ */ new Set());
|
|
13776
|
+
__publicField(this, "settingsObservers", /* @__PURE__ */ new Set());
|
|
13777
|
+
__publicField(this, "errorObservers", /* @__PURE__ */ new Set());
|
|
13309
13778
|
__publicField(this, "initCallbacks", /* @__PURE__ */ new Set());
|
|
13310
|
-
this
|
|
13311
|
-
this
|
|
13312
|
-
this.
|
|
13779
|
+
__publicField(this, "transactionIdGenerator");
|
|
13780
|
+
__publicField(this, "transactionExecutor");
|
|
13781
|
+
this.userId = config.userId;
|
|
13782
|
+
this.designSystemVersionId = config.designSystemVersionId;
|
|
13783
|
+
this.yDoc = config.yDoc;
|
|
13784
|
+
this.yObserver = this.yDoc.on("update", () => this.onYUpdate());
|
|
13313
13785
|
this.onYUpdate();
|
|
13314
|
-
this.
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
// Convenience
|
|
13318
|
-
//
|
|
13319
|
-
get yState() {
|
|
13320
|
-
const yState = this._yState;
|
|
13321
|
-
if (!yState)
|
|
13322
|
-
throw SupernovaException.shouldNotHappen(`Accessing Y state before it was loaded`);
|
|
13323
|
-
return yState;
|
|
13786
|
+
this.transactionExecutor = config.transactionExecutor;
|
|
13787
|
+
this.transactionIdGenerator = config.transactionIdGenerator;
|
|
13788
|
+
this.actionQueue = new TransactionQueue((action) => this.executeInternalAction(action));
|
|
13324
13789
|
}
|
|
13325
13790
|
//
|
|
13326
13791
|
// Lifecycle
|
|
@@ -13343,10 +13808,26 @@ var DocsStructureRepository = class {
|
|
|
13343
13808
|
removeHierarchyObserver(observer) {
|
|
13344
13809
|
this.hierarchyObservers.delete(observer);
|
|
13345
13810
|
}
|
|
13811
|
+
addSettingsObserver(observer) {
|
|
13812
|
+
this.settingsObservers.add(observer);
|
|
13813
|
+
if (this._currentSettings)
|
|
13814
|
+
observer(this._currentSettings);
|
|
13815
|
+
}
|
|
13816
|
+
removeSettingsObserver(observer) {
|
|
13817
|
+
this.settingsObservers.delete(observer);
|
|
13818
|
+
}
|
|
13819
|
+
addErrorObserver(observer) {
|
|
13820
|
+
this.errorObservers.add(observer);
|
|
13821
|
+
}
|
|
13822
|
+
removeErrorObserver(observer) {
|
|
13823
|
+
this.errorObservers.delete(observer);
|
|
13824
|
+
}
|
|
13346
13825
|
dispose() {
|
|
13347
13826
|
this.yDoc.off("update", this.yObserver);
|
|
13348
13827
|
this.hierarchyObservers.clear();
|
|
13349
|
-
this.
|
|
13828
|
+
this.settingsObservers.clear();
|
|
13829
|
+
this.errorObservers.clear();
|
|
13830
|
+
this.actionQueue.clear();
|
|
13350
13831
|
}
|
|
13351
13832
|
//
|
|
13352
13833
|
// Accessors
|
|
@@ -13360,172 +13841,93 @@ var DocsStructureRepository = class {
|
|
|
13360
13841
|
//
|
|
13361
13842
|
// Actions
|
|
13362
13843
|
//
|
|
13363
|
-
|
|
13364
|
-
void this.
|
|
13365
|
-
}
|
|
13366
|
-
createPagePromise(input) {
|
|
13367
|
-
this.localState.setPage({
|
|
13368
|
-
createdAt: /* @__PURE__ */ new Date(),
|
|
13369
|
-
parentPersistentId: input.parentPersistentId,
|
|
13370
|
-
persistentId: input.persistentId,
|
|
13371
|
-
shortPersistentId: generateShortPersistentId(),
|
|
13372
|
-
slug: slugify(input.title),
|
|
13373
|
-
meta: { name: input.title },
|
|
13374
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
13375
|
-
data: { configuration: input.configuration },
|
|
13376
|
-
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13377
|
-
designSystemVersionId: ""
|
|
13378
|
-
});
|
|
13379
|
-
this.localState.setPageLiveblocksRoomId(
|
|
13380
|
-
input.persistentId,
|
|
13381
|
-
`${RoomType.DocumentationPage}:${this.designSystemVersionId}:${input.persistentId}`
|
|
13382
|
-
);
|
|
13383
|
-
this.refreshHierarchy();
|
|
13384
|
-
return this.trxQueue.enqueue({
|
|
13385
|
-
type: "DocumentationPageCreate",
|
|
13386
|
-
input: {
|
|
13387
|
-
persistentId: input.persistentId,
|
|
13388
|
-
parentPersistentId: input.parentPersistentId,
|
|
13389
|
-
title: input.title,
|
|
13390
|
-
afterPersistentId: input.afterPersistentId,
|
|
13391
|
-
configuration: input.configuration
|
|
13392
|
-
}
|
|
13393
|
-
});
|
|
13844
|
+
executeAction(action, metadata) {
|
|
13845
|
+
void this.executeActionPromise(action, metadata);
|
|
13394
13846
|
}
|
|
13395
|
-
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
updatePagePromise(update) {
|
|
13399
|
-
this.updatePageLocally(update);
|
|
13847
|
+
executeActionPromise(action, metadata) {
|
|
13848
|
+
const fullAction = { ...action, tId: this.transactionIdGenerator() };
|
|
13849
|
+
this.localActions.push(fullAction);
|
|
13400
13850
|
this.refreshHierarchy();
|
|
13401
|
-
return this.
|
|
13402
|
-
type: "DocumentationPageUpdate",
|
|
13403
|
-
input: {
|
|
13404
|
-
id: update.persistentId,
|
|
13405
|
-
configuration: update.configuration,
|
|
13406
|
-
title: update.title
|
|
13407
|
-
}
|
|
13408
|
-
});
|
|
13851
|
+
return this.actionQueue.enqueue({ action: fullAction, metadata });
|
|
13409
13852
|
}
|
|
13410
|
-
|
|
13411
|
-
const
|
|
13412
|
-
this.
|
|
13413
|
-
|
|
13414
|
-
deletePagePromise(persistentId) {
|
|
13415
|
-
this.lookupPage(persistentId);
|
|
13416
|
-
this.localState.deletePage(persistentId);
|
|
13417
|
-
this.refreshHierarchy();
|
|
13418
|
-
return this.trxQueue.enqueue({
|
|
13419
|
-
type: "DocumentationPageDelete",
|
|
13420
|
-
input: {
|
|
13421
|
-
id: persistentId
|
|
13422
|
-
}
|
|
13853
|
+
notifyPageContentUpdated(pagePersistentId, content, definitions) {
|
|
13854
|
+
const pageContentHash = generatePageContentHash(content, definitions);
|
|
13855
|
+
new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
|
|
13856
|
+
[pagePersistentId]: pageContentHash
|
|
13423
13857
|
});
|
|
13424
13858
|
}
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
if (update.configuration && Object.keys(update.configuration).length) {
|
|
13431
|
-
updatedConfiguration = { ..._nullishCoalesce(updatedConfiguration, () => ( defaultDocumentationItemConfigurationV2)) };
|
|
13432
|
-
updatedConfiguration.header = _nullishCoalesce(update.configuration.header, () => ( updatedConfiguration.header));
|
|
13433
|
-
updatedConfiguration.isHidden = _nullishCoalesce(update.configuration.isHidden, () => ( updatedConfiguration.isHidden));
|
|
13434
|
-
updatedConfiguration.isPrivate = _nullishCoalesce(update.configuration.isPrivate, () => ( updatedConfiguration.isPrivate));
|
|
13435
|
-
updatedConfiguration.showSidebar = _nullishCoalesce(update.configuration.showSidebar, () => ( updatedConfiguration.showSidebar));
|
|
13859
|
+
async executeInternalAction(action) {
|
|
13860
|
+
try {
|
|
13861
|
+
return this.transactionExecutor(action.action);
|
|
13862
|
+
} catch (e) {
|
|
13863
|
+
this.errorObservers.forEach((o) => o(e, action.metadata));
|
|
13436
13864
|
}
|
|
13437
|
-
return {
|
|
13438
|
-
createdAt: basePage.createdAt,
|
|
13439
|
-
data: {
|
|
13440
|
-
configuration: updatedConfiguration
|
|
13441
|
-
},
|
|
13442
|
-
designSystemVersionId: basePage.designSystemVersionId,
|
|
13443
|
-
meta: { name: _nullishCoalesce(update.title, () => ( basePage.meta.name)) },
|
|
13444
|
-
parentPersistentId: basePage.parentPersistentId,
|
|
13445
|
-
persistentId: basePage.persistentId,
|
|
13446
|
-
shortPersistentId: basePage.shortPersistentId,
|
|
13447
|
-
sortOrder: basePage.sortOrder,
|
|
13448
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
13449
|
-
slug: basePage.slug
|
|
13450
|
-
};
|
|
13451
|
-
}
|
|
13452
|
-
lookupPage(persistentId) {
|
|
13453
|
-
const localPageToUpdate = this.localState.tryGetPage(persistentId);
|
|
13454
|
-
if (localPageToUpdate)
|
|
13455
|
-
return localPageToUpdate;
|
|
13456
|
-
const remotePage = this.yState.pages.find((p) => p.persistentId === persistentId);
|
|
13457
|
-
if (remotePage)
|
|
13458
|
-
return remotePage;
|
|
13459
|
-
throw SupernovaException.notFound(`Page ${persistentId} was not found`);
|
|
13460
13865
|
}
|
|
13461
13866
|
//
|
|
13462
13867
|
// Reactions
|
|
13463
13868
|
//
|
|
13869
|
+
refreshState() {
|
|
13870
|
+
this.refreshHierarchy();
|
|
13871
|
+
this.refreshSettings();
|
|
13872
|
+
}
|
|
13873
|
+
refreshSettings() {
|
|
13874
|
+
const yState = this._yState;
|
|
13875
|
+
if (!yState)
|
|
13876
|
+
return;
|
|
13877
|
+
const newSettings = {
|
|
13878
|
+
isApprovalRequiredForPublishing: yState.settings.approvalRequiredForPublishing,
|
|
13879
|
+
isApprovalsFeatureEnabled: yState.settings.isApprovalFeatureEnabled,
|
|
13880
|
+
isDraftFeatureAdopted: yState.settings.isDraftFeatureAdopted
|
|
13881
|
+
};
|
|
13882
|
+
if (!this._currentSettings || newSettings.isApprovalRequiredForPublishing !== this._currentSettings.isApprovalRequiredForPublishing || newSettings.isApprovalsFeatureEnabled !== this._currentSettings.isApprovalsFeatureEnabled || newSettings.isDraftFeatureAdopted !== this._currentSettings.isDraftFeatureAdopted) {
|
|
13883
|
+
this._currentSettings = newSettings;
|
|
13884
|
+
this.settingsObservers.forEach((o) => o(newSettings));
|
|
13885
|
+
}
|
|
13886
|
+
}
|
|
13464
13887
|
refreshHierarchy() {
|
|
13465
|
-
const
|
|
13888
|
+
const yState = this._yState;
|
|
13889
|
+
if (!yState)
|
|
13890
|
+
return;
|
|
13891
|
+
const hierarchy = this.calculateHierarchy(yState);
|
|
13466
13892
|
if (!hierarchy)
|
|
13467
13893
|
return;
|
|
13468
13894
|
this._currentHierarchy = hierarchy;
|
|
13469
|
-
this.initCallbacks.forEach((f) => f());
|
|
13470
|
-
this.initCallbacks.clear();
|
|
13471
13895
|
this.hierarchyObservers.forEach((o) => o(hierarchy));
|
|
13472
13896
|
}
|
|
13473
|
-
calculateHierarchy() {
|
|
13474
|
-
const
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
const
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
const pageLiveblockRoomIds = { ...this.yState.pageLiveblockRoomIds };
|
|
13483
|
-
this.localState.getAllPageLiveblocksRoomIds().forEach((v, k) => {
|
|
13484
|
-
pageLiveblockRoomIds[k] = v;
|
|
13485
|
-
});
|
|
13486
|
-
const hierarchy = computeDocsHierarchy({
|
|
13487
|
-
approvals: yState.approvals,
|
|
13488
|
-
groups: yState.groups,
|
|
13489
|
-
groupSnapshots: yState.groupSnapshots,
|
|
13490
|
-
pageContentHashes: yState.pageContentHashes,
|
|
13491
|
-
pages: Array.from(allPagesById.values()),
|
|
13492
|
-
pageSnapshots: yState.pageSnapshots,
|
|
13493
|
-
settings: yState.settings,
|
|
13494
|
-
pageLiveblockRoomIds
|
|
13897
|
+
calculateHierarchy(yState) {
|
|
13898
|
+
const executedTransactionIds = new Set(yState.executedTransactionIds);
|
|
13899
|
+
const localActions = this.localActions.filter((a) => a.tId && !executedTransactionIds.has(a.tId));
|
|
13900
|
+
this.localActions = localActions;
|
|
13901
|
+
const { pages, groups, approvals } = applyActionsLocally({
|
|
13902
|
+
userId: this.userId,
|
|
13903
|
+
designSystemVersionId: this.designSystemVersionId,
|
|
13904
|
+
remoteState: yState,
|
|
13905
|
+
actions: localActions
|
|
13495
13906
|
});
|
|
13907
|
+
const hierarchy = computeDocsHierarchy(
|
|
13908
|
+
{
|
|
13909
|
+
pages,
|
|
13910
|
+
groups,
|
|
13911
|
+
approvals,
|
|
13912
|
+
groupSnapshots: yState.groupSnapshots,
|
|
13913
|
+
pageContentHashes: yState.pageContentHashes,
|
|
13914
|
+
pageSnapshots: yState.pageSnapshots,
|
|
13915
|
+
settings: yState.settings,
|
|
13916
|
+
pageLiveblockRoomIds: yState.pageLiveblockRoomIds
|
|
13917
|
+
},
|
|
13918
|
+
{ includeDeletedContent: true }
|
|
13919
|
+
);
|
|
13496
13920
|
return hierarchy;
|
|
13497
13921
|
}
|
|
13498
13922
|
onYUpdate() {
|
|
13499
13923
|
const newState = new VersionRoomBaseYDoc(this.yDoc).getState();
|
|
13500
13924
|
if (newState.groups.length) {
|
|
13501
13925
|
this._yState = newState;
|
|
13502
|
-
this.
|
|
13926
|
+
this.refreshState();
|
|
13927
|
+
this.initCallbacks.forEach((f) => f());
|
|
13928
|
+
this.initCallbacks.clear();
|
|
13503
13929
|
}
|
|
13504
13930
|
}
|
|
13505
|
-
//
|
|
13506
|
-
// Utils
|
|
13507
|
-
//
|
|
13508
|
-
calculateSortOrder(parentPersistentId, afterPersistentId) {
|
|
13509
|
-
const sortOrderStep = Math.pow(2, 16);
|
|
13510
|
-
const neighbours = [
|
|
13511
|
-
...this.yState.pages.filter((p) => p.parentPersistentId === parentPersistentId),
|
|
13512
|
-
...this.yState.groups.filter((g) => g.parentPersistentId === parentPersistentId)
|
|
13513
|
-
];
|
|
13514
|
-
if (!neighbours.length)
|
|
13515
|
-
return 0;
|
|
13516
|
-
neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
13517
|
-
if (afterPersistentId === null)
|
|
13518
|
-
return neighbours[0].sortOrder - sortOrderStep;
|
|
13519
|
-
if (!afterPersistentId)
|
|
13520
|
-
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13521
|
-
const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
|
|
13522
|
-
if (index < 0 || index === neighbours.length - 1) {
|
|
13523
|
-
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13524
|
-
}
|
|
13525
|
-
const left = neighbours[index].sortOrder;
|
|
13526
|
-
const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _86 => _86[index + 1], 'optionalAccess', _87 => _87.sortOrder]), () => ( left + sortOrderStep * 2));
|
|
13527
|
-
return (right + left) / 2;
|
|
13528
|
-
}
|
|
13529
13931
|
};
|
|
13530
13932
|
var TransactionQueue = class {
|
|
13531
13933
|
constructor(executor) {
|
|
@@ -13954,5 +14356,22 @@ var TransactionQueue = class {
|
|
|
13954
14356
|
|
|
13955
14357
|
|
|
13956
14358
|
|
|
13957
|
-
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoom = DTODocumentationPageRoom; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageRoomResponse = DTODocumentationPageRoomResponse; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetOutputV2 = DTOElementsGetOutputV2; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResponseLegacy = DTOExportJobResponseLegacy; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionEnumOption = DTOExporterPropertyDefinitionEnumOption; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionValue = DTOExporterPropertyDefinitionValue; exports.DTOExporterPropertyDefinitionValueMap = DTOExporterPropertyDefinitionValueMap; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; 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.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.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepo = DocsStructureRepo; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExporterJobsEndpoint = ExporterJobsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LiveblocksEndpoint = LiveblocksEndpoint; exports.LocalStorage = LocalStorage; 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.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
14359
|
+
|
|
14360
|
+
|
|
14361
|
+
|
|
14362
|
+
|
|
14363
|
+
|
|
14364
|
+
|
|
14365
|
+
|
|
14366
|
+
|
|
14367
|
+
|
|
14368
|
+
|
|
14369
|
+
|
|
14370
|
+
|
|
14371
|
+
|
|
14372
|
+
|
|
14373
|
+
|
|
14374
|
+
|
|
14375
|
+
|
|
14376
|
+
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.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.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.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.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.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.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.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.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LiveblocksEndpoint = LiveblocksEndpoint; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.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.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.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.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;
|
|
13958
14377
|
//# sourceMappingURL=index.js.map
|