@supernova-studio/client 0.19.0 → 0.19.2
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 +251 -53
- package/dist/index.d.ts +251 -53
- package/dist/index.js +82 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-group-to-dto.ts +1 -0
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +1 -0
- package/src/api/dto/elements/documentation/group-action.ts +13 -0
- package/src/api/dto/elements/documentation/group.ts +9 -2
- package/src/api/dto/elements/documentation/page-actions-v2.ts +13 -0
- package/src/api/dto/elements/documentation/page-v2.ts +9 -2
- package/src/api/dto/elements/elements-action-v2.ts +8 -0
- package/src/yjs/design-system-content/documentation-hierarchy.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -135,7 +135,7 @@ var PluginOAuthRequestSchema = _zod.z.object({
|
|
|
135
135
|
readKeyConsumed: _zod.z.boolean(),
|
|
136
136
|
writeKeyConsumed: _zod.z.boolean(),
|
|
137
137
|
oAuthCode: _zod.z.string().optional(),
|
|
138
|
-
createdAt: _zod.z.date()
|
|
138
|
+
createdAt: _zod.z.coerce.date()
|
|
139
139
|
});
|
|
140
140
|
var CardSchema = _zod.z.object({
|
|
141
141
|
cardId: _zod.z.string().nullish(),
|
|
@@ -212,13 +212,13 @@ var InvoiceSchema = _zod.z.object({
|
|
|
212
212
|
id: _zod.z.string(),
|
|
213
213
|
number: _zod.z.string(),
|
|
214
214
|
amount_due: _zod.z.number(),
|
|
215
|
-
date: _zod.z.date(),
|
|
215
|
+
date: _zod.z.coerce.date(),
|
|
216
216
|
hostedUrl: _zod.z.string().url(),
|
|
217
217
|
card: CardSchema.nullish()
|
|
218
218
|
});
|
|
219
219
|
var PeriodSchema = _zod.z.object({
|
|
220
|
-
start: _zod.z.date(),
|
|
221
|
-
end: _zod.z.date()
|
|
220
|
+
start: _zod.z.coerce.date(),
|
|
221
|
+
end: _zod.z.coerce.date()
|
|
222
222
|
});
|
|
223
223
|
var InvoiceLineSchema = _zod.z.object({
|
|
224
224
|
amount: _zod.z.number(),
|
|
@@ -398,7 +398,7 @@ var DataSourceRemote = _zod.z.discriminatedUnion("type", [
|
|
|
398
398
|
]);
|
|
399
399
|
var DataSourceVersion = _zod.z.object({
|
|
400
400
|
id: _zod.z.string(),
|
|
401
|
-
createdAt: _zod.z.date(),
|
|
401
|
+
createdAt: _zod.z.coerce.date(),
|
|
402
402
|
label: _zod.z.string().nullish(),
|
|
403
403
|
description: _zod.z.string().nullish()
|
|
404
404
|
});
|
|
@@ -407,8 +407,8 @@ function zeroNumberByDefault() {
|
|
|
407
407
|
}
|
|
408
408
|
var Entity = _zod.z.object({
|
|
409
409
|
id: _zod.z.string(),
|
|
410
|
-
createdAt: _zod.z.date(),
|
|
411
|
-
updatedAt: _zod.z.date()
|
|
410
|
+
createdAt: _zod.z.coerce.date(),
|
|
411
|
+
updatedAt: _zod.z.coerce.date()
|
|
412
412
|
});
|
|
413
413
|
var ObjectMeta = _zod.z.object({
|
|
414
414
|
name: _zod.z.string(),
|
|
@@ -564,8 +564,8 @@ var DesignElement = ShallowDesignElement.extend({
|
|
|
564
564
|
meta: ObjectMeta,
|
|
565
565
|
slug: _zod.z.string().optional(),
|
|
566
566
|
userSlug: _zod.z.string().optional(),
|
|
567
|
-
createdAt: _zod.z.date(),
|
|
568
|
-
updatedAt: _zod.z.date(),
|
|
567
|
+
createdAt: _zod.z.coerce.date(),
|
|
568
|
+
updatedAt: _zod.z.coerce.date(),
|
|
569
569
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
570
570
|
data: _zod.z.record(_zod.z.any()),
|
|
571
571
|
origin: _zod.z.record(_zod.z.any()).optional()
|
|
@@ -1324,8 +1324,8 @@ var DesignElementBase = _zod.z.object({
|
|
|
1324
1324
|
persistentId: _zod.z.string(),
|
|
1325
1325
|
meta: ObjectMeta,
|
|
1326
1326
|
designSystemVersionId: _zod.z.string(),
|
|
1327
|
-
createdAt: _zod.z.date(),
|
|
1328
|
-
updatedAt: _zod.z.date()
|
|
1327
|
+
createdAt: _zod.z.coerce.date(),
|
|
1328
|
+
updatedAt: _zod.z.coerce.date()
|
|
1329
1329
|
});
|
|
1330
1330
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1331
1331
|
origin: DesignElementOrigin
|
|
@@ -2052,8 +2052,8 @@ var DocumentationPageGroup = _zod.z.object({
|
|
|
2052
2052
|
title: _zod.z.string(),
|
|
2053
2053
|
slug: _zod.z.string(),
|
|
2054
2054
|
userSlug: _zod.z.string().nullish(),
|
|
2055
|
-
createdAt: _zod.z.date(),
|
|
2056
|
-
updatedAt: _zod.z.date()
|
|
2055
|
+
createdAt: _zod.z.coerce.date(),
|
|
2056
|
+
updatedAt: _zod.z.coerce.date()
|
|
2057
2057
|
});
|
|
2058
2058
|
var DocumentationPage = _zod.z.object({
|
|
2059
2059
|
type: _zod.z.literal("DocumentationPage"),
|
|
@@ -2066,8 +2066,8 @@ var DocumentationPage = _zod.z.object({
|
|
|
2066
2066
|
title: _zod.z.string(),
|
|
2067
2067
|
slug: _zod.z.string(),
|
|
2068
2068
|
userSlug: _zod.z.string().nullish(),
|
|
2069
|
-
createdAt: _zod.z.date(),
|
|
2070
|
-
updatedAt: _zod.z.date()
|
|
2069
|
+
createdAt: _zod.z.coerce.date(),
|
|
2070
|
+
updatedAt: _zod.z.coerce.date()
|
|
2071
2071
|
});
|
|
2072
2072
|
var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2073
2073
|
var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
|
|
@@ -2179,8 +2179,8 @@ var CreateWorkspaceInput = _zod.z.object({
|
|
|
2179
2179
|
var WorkspaceInvitation = _zod.z.object({
|
|
2180
2180
|
id: _zod.z.string(),
|
|
2181
2181
|
email: _zod.z.string().email(),
|
|
2182
|
-
createdAt: _zod.z.date(),
|
|
2183
|
-
resentAt: _zod.z.date().nullish(),
|
|
2182
|
+
createdAt: _zod.z.coerce.date(),
|
|
2183
|
+
resentAt: _zod.z.coerce.date().nullish(),
|
|
2184
2184
|
role: _zod.z.nativeEnum(WorkspaceRole),
|
|
2185
2185
|
workspaceId: _zod.z.string(),
|
|
2186
2186
|
invitedBy: _zod.z.string()
|
|
@@ -2217,8 +2217,8 @@ var DesignSystem = _zod.z.object({
|
|
|
2217
2217
|
docViewUrl: nullishToOptional(_zod.z.string()),
|
|
2218
2218
|
basePrefixes: _zod.z.array(_zod.z.string()),
|
|
2219
2219
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2220
|
-
createdAt: _zod.z.date(),
|
|
2221
|
-
updatedAt: _zod.z.date()
|
|
2220
|
+
createdAt: _zod.z.coerce.date(),
|
|
2221
|
+
updatedAt: _zod.z.coerce.date()
|
|
2222
2222
|
});
|
|
2223
2223
|
var DesignSystemWithWorkspace = _zod.z.object({
|
|
2224
2224
|
designSystem: DesignSystem,
|
|
@@ -2266,9 +2266,9 @@ var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
|
|
|
2266
2266
|
var PublishedDoc = _zod.z.object({
|
|
2267
2267
|
id: _zod.z.string(),
|
|
2268
2268
|
designSystemVersionId: _zod.z.string(),
|
|
2269
|
-
createdAt: _zod.z.date(),
|
|
2270
|
-
updatedAt: _zod.z.date(),
|
|
2271
|
-
lastPublishedAt: _zod.z.date(),
|
|
2269
|
+
createdAt: _zod.z.coerce.date(),
|
|
2270
|
+
updatedAt: _zod.z.coerce.date(),
|
|
2271
|
+
lastPublishedAt: _zod.z.coerce.date(),
|
|
2272
2272
|
isDefault: _zod.z.boolean(),
|
|
2273
2273
|
isPublic: _zod.z.boolean(),
|
|
2274
2274
|
environment: PublishedDocEnvironment,
|
|
@@ -2543,11 +2543,11 @@ var User = _zod.z.object({
|
|
|
2543
2543
|
id: _zod.z.string(),
|
|
2544
2544
|
email: _zod.z.string(),
|
|
2545
2545
|
emailVerified: _zod.z.boolean(),
|
|
2546
|
-
createdAt: _zod.z.date(),
|
|
2547
|
-
trialExpiresAt: _zod.z.date().optional(),
|
|
2546
|
+
createdAt: _zod.z.coerce.date(),
|
|
2547
|
+
trialExpiresAt: _zod.z.coerce.date().optional(),
|
|
2548
2548
|
profile: UserProfile,
|
|
2549
2549
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2550
|
-
loggedOutAt: _zod.z.date().optional(),
|
|
2550
|
+
loggedOutAt: _zod.z.coerce.date().optional(),
|
|
2551
2551
|
isProtected: _zod.z.boolean()
|
|
2552
2552
|
});
|
|
2553
2553
|
var NpmProxyToken = _zod.z.object({
|
|
@@ -2560,7 +2560,7 @@ var SessionData = _zod.z.object({
|
|
|
2560
2560
|
});
|
|
2561
2561
|
var Session = _zod.z.object({
|
|
2562
2562
|
id: _zod.z.string(),
|
|
2563
|
-
expiresAt: _zod.z.date(),
|
|
2563
|
+
expiresAt: _zod.z.coerce.date(),
|
|
2564
2564
|
userId: _zod.z.string().nullable(),
|
|
2565
2565
|
data: SessionData
|
|
2566
2566
|
});
|
|
@@ -2577,7 +2577,7 @@ var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
|
|
|
2577
2577
|
var FeatureFlag = _zod.z.object({
|
|
2578
2578
|
id: _zod.z.string(),
|
|
2579
2579
|
feature: FlaggedFeature,
|
|
2580
|
-
createdAt: _zod.z.date(),
|
|
2580
|
+
createdAt: _zod.z.coerce.date(),
|
|
2581
2581
|
enabled: _zod.z.boolean()
|
|
2582
2582
|
});
|
|
2583
2583
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
@@ -2595,7 +2595,7 @@ var ExternalOAuthRequest = _zod.z.object({
|
|
|
2595
2595
|
provider: OAuthProviderSchema,
|
|
2596
2596
|
userId: _zod.z.string(),
|
|
2597
2597
|
state: _zod.z.string(),
|
|
2598
|
-
createdAt: _zod.z.date()
|
|
2598
|
+
createdAt: _zod.z.coerce.date()
|
|
2599
2599
|
});
|
|
2600
2600
|
var IntegrationTokenSchema = _zod.z.object({
|
|
2601
2601
|
id: _zod.z.string(),
|
|
@@ -2604,7 +2604,7 @@ var IntegrationTokenSchema = _zod.z.object({
|
|
|
2604
2604
|
userId: _zod.z.string(),
|
|
2605
2605
|
accessToken: _zod.z.string(),
|
|
2606
2606
|
refreshToken: _zod.z.string(),
|
|
2607
|
-
expiresAt: _zod.z.date(),
|
|
2607
|
+
expiresAt: _zod.z.coerce.date(),
|
|
2608
2608
|
externalUserId: _zod.z.string().nullish()
|
|
2609
2609
|
});
|
|
2610
2610
|
var DesignSystemVersionRoom = Entity.extend({
|
|
@@ -2672,11 +2672,11 @@ var PersonalAccessToken = _zod.z.object({
|
|
|
2672
2672
|
userId: _zod.z.string(),
|
|
2673
2673
|
name: _zod.z.string(),
|
|
2674
2674
|
token: _zod.z.string(),
|
|
2675
|
-
createdAt: _zod.z.date(),
|
|
2675
|
+
createdAt: _zod.z.coerce.date(),
|
|
2676
2676
|
hidden: _zod.z.boolean(),
|
|
2677
2677
|
workspaceId: _zod.z.string().optional(),
|
|
2678
2678
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2679
|
-
expireAt: _zod.z.date().optional(),
|
|
2679
|
+
expireAt: _zod.z.coerce.date().optional(),
|
|
2680
2680
|
scope: _zod.z.string().optional()
|
|
2681
2681
|
});
|
|
2682
2682
|
var SupernovaException = class _SupernovaException extends Error {
|
|
@@ -3470,7 +3470,8 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
|
|
|
3470
3470
|
userSlug: page.userSlug,
|
|
3471
3471
|
createdAt: page.createdAt,
|
|
3472
3472
|
updatedAt: page.updatedAt,
|
|
3473
|
-
path
|
|
3473
|
+
path,
|
|
3474
|
+
type: "Page"
|
|
3474
3475
|
};
|
|
3475
3476
|
}
|
|
3476
3477
|
|
|
@@ -3508,7 +3509,8 @@ function elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap) {
|
|
|
3508
3509
|
childrenIds,
|
|
3509
3510
|
isRoot: !group.parentPersistentId,
|
|
3510
3511
|
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.behavior]), () => ( "Group")),
|
|
3511
|
-
shortPersistentId: group.shortPersistentId
|
|
3512
|
+
shortPersistentId: group.shortPersistentId,
|
|
3513
|
+
type: "Group"
|
|
3512
3514
|
};
|
|
3513
3515
|
}
|
|
3514
3516
|
function calculateChildrenIdsMap(elements, groups) {
|
|
@@ -3589,7 +3591,8 @@ var DTODocumentationGroupStructure = ElementGroup.omit({
|
|
|
3589
3591
|
isRoot: _zod.z.boolean(),
|
|
3590
3592
|
childrenIds: _zod.z.array(_zod.z.string()),
|
|
3591
3593
|
groupBehavior: DocumentationGroupBehavior,
|
|
3592
|
-
shortPersistentId: _zod.z.string()
|
|
3594
|
+
shortPersistentId: _zod.z.string(),
|
|
3595
|
+
type: _zod.z.literal("Group")
|
|
3593
3596
|
});
|
|
3594
3597
|
var DTODocumentationGroup = DTODocumentationGroupStructure.extend({
|
|
3595
3598
|
configuration: DocumentationItemConfiguration
|
|
@@ -3610,10 +3613,14 @@ var DTOUpdateDocumentationGroupInput = _zod.z.object({
|
|
|
3610
3613
|
id: _zod.z.string().uuid(),
|
|
3611
3614
|
// Group properties
|
|
3612
3615
|
title: _zod.z.string().optional(),
|
|
3613
|
-
configuration: DocumentationItemConfiguration.optional()
|
|
3616
|
+
configuration: DocumentationItemConfiguration.optional()
|
|
3617
|
+
});
|
|
3618
|
+
var DTOMoveDocumentationGroupInput = _zod.z.object({
|
|
3619
|
+
// Identifier of the group to update
|
|
3620
|
+
id: _zod.z.string().uuid(),
|
|
3614
3621
|
// Group placement properties
|
|
3615
|
-
afterPersistentId: _zod.z.string().uuid()
|
|
3616
|
-
parentPersistentId: _zod.z.string().uuid()
|
|
3622
|
+
afterPersistentId: _zod.z.string().uuid(),
|
|
3623
|
+
parentPersistentId: _zod.z.string().uuid()
|
|
3617
3624
|
});
|
|
3618
3625
|
var DTODuplicateDocumentationGroupInput = _zod.z.object({
|
|
3619
3626
|
// Identifier of the group to duplicate from
|
|
@@ -3654,6 +3661,10 @@ var DTODocumentationGroupUpdateActionOutputV2 = _zod.z.object({
|
|
|
3654
3661
|
type: _zod.z.literal("DocumentationGroupUpdate"),
|
|
3655
3662
|
output: SuccessPayload
|
|
3656
3663
|
});
|
|
3664
|
+
var DTODocumentationGroupMoveActionOutputV2 = _zod.z.object({
|
|
3665
|
+
type: _zod.z.literal("DocumentationGroupMove"),
|
|
3666
|
+
output: SuccessPayload
|
|
3667
|
+
});
|
|
3657
3668
|
var DTODocumentationGroupDuplicateActionOutputV2 = _zod.z.object({
|
|
3658
3669
|
type: _zod.z.literal("DocumentationGroupDuplicate"),
|
|
3659
3670
|
output: SuccessPayload
|
|
@@ -3670,6 +3681,10 @@ var DTODocumentationGroupUpdateActionInputV2 = _zod.z.object({
|
|
|
3670
3681
|
type: _zod.z.literal("DocumentationGroupUpdate"),
|
|
3671
3682
|
input: DTOUpdateDocumentationGroupInput
|
|
3672
3683
|
});
|
|
3684
|
+
var DTODocumentationGroupMoveActionInputV2 = _zod.z.object({
|
|
3685
|
+
type: _zod.z.literal("DocumentationGroupMove"),
|
|
3686
|
+
input: DTOMoveDocumentationGroupInput
|
|
3687
|
+
});
|
|
3673
3688
|
var DTODocumentationGroupDuplicateActionInputV2 = _zod.z.object({
|
|
3674
3689
|
type: _zod.z.literal("DocumentationGroupDuplicate"),
|
|
3675
3690
|
input: DTODuplicateDocumentationGroupInput
|
|
@@ -3691,7 +3706,8 @@ var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
|
|
|
3691
3706
|
sortOrder: true
|
|
3692
3707
|
}).extend({
|
|
3693
3708
|
title: _zod.z.string(),
|
|
3694
|
-
path: _zod.z.string()
|
|
3709
|
+
path: _zod.z.string(),
|
|
3710
|
+
type: _zod.z.literal("Page")
|
|
3695
3711
|
});
|
|
3696
3712
|
var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
|
|
3697
3713
|
configuration: DocumentationItemConfiguration
|
|
@@ -3715,10 +3731,14 @@ var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
|
|
|
3715
3731
|
id: _zod.z.string(),
|
|
3716
3732
|
// Page properties
|
|
3717
3733
|
title: _zod.z.string().optional(),
|
|
3718
|
-
configuration: DocumentationItemConfiguration.optional()
|
|
3734
|
+
configuration: DocumentationItemConfiguration.optional()
|
|
3735
|
+
});
|
|
3736
|
+
var DTOMoveDocumentationPageInputV2 = _zod.z.object({
|
|
3737
|
+
// Identifier of the group to update
|
|
3738
|
+
id: _zod.z.string(),
|
|
3719
3739
|
// Page placement properties
|
|
3720
|
-
parentPersistentId: _zod.z.string().
|
|
3721
|
-
afterPersistentId: _zod.z.string().
|
|
3740
|
+
parentPersistentId: _zod.z.string().uuid(),
|
|
3741
|
+
afterPersistentId: _zod.z.string().uuid()
|
|
3722
3742
|
});
|
|
3723
3743
|
var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
|
|
3724
3744
|
// Identifier of the page to duplicate from
|
|
@@ -3746,6 +3766,10 @@ var DTODocumentationPageUpdateActionOutputV2 = _zod.z.object({
|
|
|
3746
3766
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
3747
3767
|
output: SuccessPayload2
|
|
3748
3768
|
});
|
|
3769
|
+
var DTODocumentationPageMoveActionOutputV2 = _zod.z.object({
|
|
3770
|
+
type: _zod.z.literal("DocumentationPageMove"),
|
|
3771
|
+
output: SuccessPayload2
|
|
3772
|
+
});
|
|
3749
3773
|
var DTODocumentationPageDuplicateActionOutputV2 = _zod.z.object({
|
|
3750
3774
|
type: _zod.z.literal("DocumentationPageDuplicate"),
|
|
3751
3775
|
output: SuccessPayload2
|
|
@@ -3762,6 +3786,10 @@ var DTODocumentationPageUpdateActionInputV2 = _zod.z.object({
|
|
|
3762
3786
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
3763
3787
|
input: DTOUpdateDocumentationPageInputV2
|
|
3764
3788
|
});
|
|
3789
|
+
var DTODocumentationPageMoveActionInputV2 = _zod.z.object({
|
|
3790
|
+
type: _zod.z.literal("DocumentationPageMove"),
|
|
3791
|
+
input: DTOMoveDocumentationPageInputV2
|
|
3792
|
+
});
|
|
3765
3793
|
var DTODocumentationPageDuplicateActionInputV2 = _zod.z.object({
|
|
3766
3794
|
type: _zod.z.literal("DocumentationPageDuplicate"),
|
|
3767
3795
|
input: DTODuplicateDocumentationPageInputV2
|
|
@@ -3789,11 +3817,13 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
3789
3817
|
// Documentation pages
|
|
3790
3818
|
DTODocumentationPageCreateActionOutputV2,
|
|
3791
3819
|
DTODocumentationPageUpdateActionOutputV2,
|
|
3820
|
+
DTODocumentationPageMoveActionOutputV2,
|
|
3792
3821
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
3793
3822
|
DTODocumentationPageDeleteActionOutputV2,
|
|
3794
3823
|
// Documentation groups
|
|
3795
3824
|
DTODocumentationGroupCreateActionOutputV2,
|
|
3796
3825
|
DTODocumentationGroupUpdateActionOutputV2,
|
|
3826
|
+
DTODocumentationGroupMoveActionOutputV2,
|
|
3797
3827
|
DTODocumentationGroupDuplicateActionOutputV2,
|
|
3798
3828
|
DTODocumentationGroupDeleteActionOutputV2
|
|
3799
3829
|
]);
|
|
@@ -3801,11 +3831,13 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
3801
3831
|
// Documentation pages
|
|
3802
3832
|
DTODocumentationPageCreateActionInputV2,
|
|
3803
3833
|
DTODocumentationPageUpdateActionInputV2,
|
|
3834
|
+
DTODocumentationPageMoveActionInputV2,
|
|
3804
3835
|
DTODocumentationPageDuplicateActionInputV2,
|
|
3805
3836
|
DTODocumentationPageDeleteActionInputV2,
|
|
3806
3837
|
// Documentation groups
|
|
3807
3838
|
DTODocumentationGroupCreateActionInputV2,
|
|
3808
3839
|
DTODocumentationGroupUpdateActionInputV2,
|
|
3840
|
+
DTODocumentationGroupMoveActionInputV2,
|
|
3809
3841
|
DTODocumentationGroupDuplicateActionInputV2,
|
|
3810
3842
|
DTODocumentationGroupDeleteActionInputV2
|
|
3811
3843
|
]);
|
|
@@ -3834,7 +3866,7 @@ function documentationHierarchyToYjs(doc, transaction) {
|
|
|
3834
3866
|
...page,
|
|
3835
3867
|
data: {}
|
|
3836
3868
|
};
|
|
3837
|
-
pagesMap.set(page.id, sanitizedPage);
|
|
3869
|
+
pagesMap.set(page.id, JSON.parse(JSON.stringify(sanitizedPage)));
|
|
3838
3870
|
});
|
|
3839
3871
|
const groupsMap = getGroupsYMap(trx.doc);
|
|
3840
3872
|
transaction.groupIdsToDelete.forEach((id) => {
|
|
@@ -3845,7 +3877,7 @@ function documentationHierarchyToYjs(doc, transaction) {
|
|
|
3845
3877
|
...group,
|
|
3846
3878
|
data: {}
|
|
3847
3879
|
};
|
|
3848
|
-
groupsMap.set(group.id,
|
|
3880
|
+
groupsMap.set(group.id, JSON.parse(JSON.stringify(sanitizedGroup)));
|
|
3849
3881
|
});
|
|
3850
3882
|
});
|
|
3851
3883
|
return doc;
|
|
@@ -8119,5 +8151,11 @@ function mapByUnique2(items, keyFn) {
|
|
|
8119
8151
|
|
|
8120
8152
|
|
|
8121
8153
|
|
|
8122
|
-
|
|
8154
|
+
|
|
8155
|
+
|
|
8156
|
+
|
|
8157
|
+
|
|
8158
|
+
|
|
8159
|
+
|
|
8160
|
+
exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabGroupInput = DTOCreateDocumentationTabGroupInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; exports.DTODocumentationGroup = DTODocumentationGroup; 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.DTODocumentationGroupStructure = DTODocumentationGroupStructure; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.PageBlockEditorModel = PageBlockEditorModel2; exports.blockDefinitionForBlock = blockDefinitionForBlock; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTO = elementGroupsToDocumentationGroupDTO; exports.elementGroupsToDocumentationGroupStructureDTO = elementGroupsToDocumentationGroupStructureDTO; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToBlock = prosemirrorNodeToBlock; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
8123
8161
|
//# sourceMappingURL=index.js.map
|