@supernova-studio/client 0.19.2 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +848 -6089
- package/dist/index.d.ts +848 -6089
- package/dist/index.js +104 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1094 -1037
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-group-to-dto.ts +6 -6
- package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +2 -2
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +2 -2
- package/src/api/dto/elements/documentation/group-action.ts +26 -1
- package/src/api/dto/elements/documentation/group.ts +8 -9
- package/src/api/dto/elements/documentation/page-v2.ts +3 -3
- package/src/api/dto/elements/elements-action-v2.ts +16 -0
- package/src/yjs/design-system-content/index.ts +1 -0
- package/src/yjs/design-system-content/item-configuration.ts +5 -5
package/dist/index.js
CHANGED
|
@@ -122,6 +122,9 @@ var _zod = require('zod');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
125
128
|
|
|
126
129
|
|
|
127
130
|
|
|
@@ -886,6 +889,21 @@ var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
|
886
889
|
var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
|
|
887
890
|
var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
|
|
888
891
|
var PageBlockThemeDisplayMode = _zod.z.enum(["Split", "Override"]);
|
|
892
|
+
var PageBlockImageReference = _zod.z.object({
|
|
893
|
+
type: PageBlockImageType,
|
|
894
|
+
url: _zod.z.string(),
|
|
895
|
+
assetId: _zod.z.string().optional(),
|
|
896
|
+
size: Size.optional(),
|
|
897
|
+
figmaFile: _zod.z.object({
|
|
898
|
+
sourceId: _zod.z.string(),
|
|
899
|
+
frameId: _zod.z.string(),
|
|
900
|
+
frameReferenceId: _zod.z.string(),
|
|
901
|
+
origin: _zod.z.object({
|
|
902
|
+
title: _zod.z.string().optional(),
|
|
903
|
+
sourceFileName: _zod.z.string().optional()
|
|
904
|
+
})
|
|
905
|
+
}).optional()
|
|
906
|
+
});
|
|
889
907
|
var PageBlockColorV2 = _zod.z.object({
|
|
890
908
|
value: _zod.z.string(),
|
|
891
909
|
referencedTokenId: _zod.z.string().optional()
|
|
@@ -916,21 +934,6 @@ var PageBlockDataV2 = _zod.z.object({
|
|
|
916
934
|
appearance: PageBlockAppearanceV2.optional(),
|
|
917
935
|
items: _zod.z.array(PageBlockItemV2)
|
|
918
936
|
});
|
|
919
|
-
var PageBlockItemImageReference = _zod.z.object({
|
|
920
|
-
type: PageBlockImageType,
|
|
921
|
-
url: _zod.z.string(),
|
|
922
|
-
assetId: _zod.z.string().optional(),
|
|
923
|
-
size: Size.optional(),
|
|
924
|
-
figmaFile: _zod.z.object({
|
|
925
|
-
sourceId: _zod.z.string(),
|
|
926
|
-
frameId: _zod.z.string(),
|
|
927
|
-
frameReferenceId: _zod.z.string(),
|
|
928
|
-
origin: _zod.z.object({
|
|
929
|
-
title: _zod.z.string().optional(),
|
|
930
|
-
sourceFileName: _zod.z.string().optional()
|
|
931
|
-
})
|
|
932
|
-
}).optional()
|
|
933
|
-
});
|
|
934
937
|
var PageBlockItemAssetValue = _zod.z.object({
|
|
935
938
|
selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
|
|
936
939
|
showSearch: _zod.z.boolean().optional(),
|
|
@@ -1008,7 +1011,7 @@ var PageBlockItemImageValue = _zod.z.object({
|
|
|
1008
1011
|
alt: _zod.z.string().optional(),
|
|
1009
1012
|
caption: _zod.z.string().optional(),
|
|
1010
1013
|
alignment: PageBlockImageAlignment.optional(),
|
|
1011
|
-
value:
|
|
1014
|
+
value: PageBlockImageReference.optional()
|
|
1012
1015
|
});
|
|
1013
1016
|
var PageBlockItemMarkdownValue = _zod.z.object({
|
|
1014
1017
|
value: _zod.z.string()
|
|
@@ -1124,7 +1127,7 @@ var DocumentationItemHeaderAlignmentSchema = _zod.z.enum(["Left", "Center"]);
|
|
|
1124
1127
|
var DocumentationItemHeaderImageScaleTypeSchema = _zod.z.enum(["AspectFill", "AspectFit"]);
|
|
1125
1128
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1126
1129
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1127
|
-
var
|
|
1130
|
+
var DocumentationItemHeaderV1 = _zod.z.object({
|
|
1128
1131
|
description: _zod.z.string(),
|
|
1129
1132
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1130
1133
|
foregroundColor: ColorTokenData.nullish(),
|
|
@@ -1135,29 +1138,53 @@ var DocumentationItemHeader = _zod.z.object({
|
|
|
1135
1138
|
showCoverText: _zod.z.boolean(),
|
|
1136
1139
|
minHeight: _zod.z.number().nullish()
|
|
1137
1140
|
});
|
|
1138
|
-
var
|
|
1141
|
+
var defaultDocumentationItemHeaderV1 = {
|
|
1139
1142
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
1140
1143
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
1141
1144
|
description: "",
|
|
1142
1145
|
showBackgroundOverlay: false,
|
|
1143
1146
|
showCoverText: true
|
|
1144
1147
|
};
|
|
1145
|
-
var
|
|
1148
|
+
var DocumentationItemConfigurationV1 = _zod.z.object({
|
|
1146
1149
|
showSidebar: _zod.z.boolean(),
|
|
1147
|
-
header:
|
|
1150
|
+
header: DocumentationItemHeaderV1
|
|
1148
1151
|
});
|
|
1149
1152
|
var DocumentationPageDataV1 = _zod.z.object({
|
|
1150
1153
|
blocks: _zod.z.array(PageBlockV1),
|
|
1151
|
-
configuration: nullishToOptional(
|
|
1154
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1152
1155
|
});
|
|
1153
1156
|
var DocumentationPageElementDataV1 = _zod.z.object({
|
|
1157
|
+
dataVersion: _zod.z.literal(1).optional().default(1),
|
|
1154
1158
|
value: DocumentationPageDataV1
|
|
1155
1159
|
});
|
|
1160
|
+
var DocumentationItemHeaderV2 = _zod.z.object({
|
|
1161
|
+
description: _zod.z.string(),
|
|
1162
|
+
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1163
|
+
foregroundColor: PageBlockColorV2.nullish(),
|
|
1164
|
+
backgroundColor: PageBlockColorV2.nullish(),
|
|
1165
|
+
backgroundImageAsset: DocumentationPageAsset.nullish(),
|
|
1166
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1167
|
+
showBackgroundOverlay: _zod.z.boolean(),
|
|
1168
|
+
showCoverText: _zod.z.boolean(),
|
|
1169
|
+
minHeight: _zod.z.number().nullish()
|
|
1170
|
+
});
|
|
1171
|
+
var defaultDocumentationItemHeaderV2 = {
|
|
1172
|
+
alignment: DocumentationItemHeaderAlignment.Left,
|
|
1173
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
1174
|
+
description: "",
|
|
1175
|
+
showBackgroundOverlay: false,
|
|
1176
|
+
showCoverText: true
|
|
1177
|
+
};
|
|
1178
|
+
var DocumentationItemConfigurationV2 = _zod.z.object({
|
|
1179
|
+
showSidebar: _zod.z.boolean(),
|
|
1180
|
+
header: DocumentationItemHeaderV2
|
|
1181
|
+
});
|
|
1156
1182
|
var DocumentationPageDataV2 = _zod.z.object({
|
|
1157
|
-
configuration: nullishToOptional(
|
|
1183
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1158
1184
|
});
|
|
1159
1185
|
var DocumentationPageElementDataV2 = _zod.z.object({
|
|
1160
|
-
value:
|
|
1186
|
+
value: DocumentationPageDataV1,
|
|
1187
|
+
valueV2: DocumentationPageDataV2.optional()
|
|
1161
1188
|
});
|
|
1162
1189
|
var DurationUnit = _zod.z.enum(["Ms"]);
|
|
1163
1190
|
var DurationValue = _zod.z.object({
|
|
@@ -1228,12 +1255,17 @@ var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
|
1228
1255
|
var GradientTokenValue = _zod.z.array(GradientLayerData);
|
|
1229
1256
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1230
1257
|
var DocumentationGroupBehavior = _zod.z.enum(["Group", "Tabs"]);
|
|
1231
|
-
var
|
|
1258
|
+
var ElementGroupDataDeprecated = _zod.z.object({
|
|
1259
|
+
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1260
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1261
|
+
});
|
|
1262
|
+
var ElementGroupDataV2 = _zod.z.object({
|
|
1232
1263
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1233
|
-
configuration: nullishToOptional(
|
|
1264
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1234
1265
|
});
|
|
1235
1266
|
var ElementGroupElementData = _zod.z.object({
|
|
1236
|
-
value:
|
|
1267
|
+
value: ElementGroupDataDeprecated.optional(),
|
|
1268
|
+
valueV2: ElementGroupDataV2.optional()
|
|
1237
1269
|
});
|
|
1238
1270
|
var LetterSpacingUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
1239
1271
|
var LetterSpacingValue = _zod.z.object({
|
|
@@ -1367,7 +1399,9 @@ var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequire
|
|
|
1367
1399
|
});
|
|
1368
1400
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1369
1401
|
shortPersistentId: _zod.z.string(),
|
|
1370
|
-
data: DocumentationPageDataV2
|
|
1402
|
+
data: DocumentationPageDataV2.extend({
|
|
1403
|
+
oldBlocks: _zod.z.array(PageBlockV1).optional()
|
|
1404
|
+
})
|
|
1371
1405
|
});
|
|
1372
1406
|
var FigmaFileStructureOrigin = _zod.z.object({
|
|
1373
1407
|
sourceId: _zod.z.string(),
|
|
@@ -1387,7 +1421,7 @@ var FigmaNodeReference = DesignElementBase.extend({
|
|
|
1387
1421
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1388
1422
|
shortPersistentId: _zod.z.string().optional(),
|
|
1389
1423
|
childType: DesignElementType,
|
|
1390
|
-
data:
|
|
1424
|
+
data: ElementGroupDataV2.optional()
|
|
1391
1425
|
});
|
|
1392
1426
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
1393
1427
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
@@ -3449,7 +3483,7 @@ function documentationPagesToDTOV2(pages, groups) {
|
|
|
3449
3483
|
...documentationPageToStructureDTOV2(page, pathsMap),
|
|
3450
3484
|
configuration: _nullishCoalesce(page.data.configuration, () => ( {
|
|
3451
3485
|
showSidebar: true,
|
|
3452
|
-
header:
|
|
3486
|
+
header: defaultDocumentationItemHeaderV2
|
|
3453
3487
|
}))
|
|
3454
3488
|
};
|
|
3455
3489
|
});
|
|
@@ -3487,7 +3521,7 @@ function elementGroupsToDocumentationGroupDTO(groups, pages) {
|
|
|
3487
3521
|
...elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap),
|
|
3488
3522
|
configuration: _nullishCoalesce(_optionalChain([group, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.configuration]), () => ( {
|
|
3489
3523
|
showSidebar: true,
|
|
3490
|
-
header:
|
|
3524
|
+
header: defaultDocumentationItemHeaderV2
|
|
3491
3525
|
}))
|
|
3492
3526
|
};
|
|
3493
3527
|
});
|
|
@@ -3556,7 +3590,7 @@ function documentationPagesToDTOV1(pages, groups) {
|
|
|
3556
3590
|
userSlug: page.userSlug,
|
|
3557
3591
|
configuration: _nullishCoalesce(page.data.configuration, () => ( {
|
|
3558
3592
|
showSidebar: true,
|
|
3559
|
-
header:
|
|
3593
|
+
header: defaultDocumentationItemHeaderV1
|
|
3560
3594
|
})),
|
|
3561
3595
|
createdAt: page.createdAt,
|
|
3562
3596
|
updatedAt: page.updatedAt,
|
|
@@ -3578,7 +3612,7 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
3578
3612
|
|
|
3579
3613
|
// src/api/dto/elements/documentation/group.ts
|
|
3580
3614
|
|
|
3581
|
-
var
|
|
3615
|
+
var DTODocumentationGroupStructureV2 = ElementGroup.omit({
|
|
3582
3616
|
sortOrder: true,
|
|
3583
3617
|
parentPersistentId: true,
|
|
3584
3618
|
brandPersistentId: true,
|
|
@@ -3594,16 +3628,15 @@ var DTODocumentationGroupStructure = ElementGroup.omit({
|
|
|
3594
3628
|
shortPersistentId: _zod.z.string(),
|
|
3595
3629
|
type: _zod.z.literal("Group")
|
|
3596
3630
|
});
|
|
3597
|
-
var
|
|
3598
|
-
configuration:
|
|
3631
|
+
var DTODocumentationGroupV2 = DTODocumentationGroupStructureV2.extend({
|
|
3632
|
+
configuration: DocumentationItemConfigurationV2
|
|
3599
3633
|
});
|
|
3600
3634
|
var DTOCreateDocumentationGroupInput = _zod.z.object({
|
|
3601
3635
|
// Identifier
|
|
3602
3636
|
persistentId: _zod.z.string().uuid(),
|
|
3603
3637
|
// Group properties
|
|
3604
3638
|
title: _zod.z.string(),
|
|
3605
|
-
configuration:
|
|
3606
|
-
groupBehavior: DocumentationGroupBehavior,
|
|
3639
|
+
configuration: DocumentationItemConfigurationV2.optional(),
|
|
3607
3640
|
// Group placement properties
|
|
3608
3641
|
afterPersistentId: _zod.z.string().uuid().optional(),
|
|
3609
3642
|
parentPersistentId: _zod.z.string().uuid()
|
|
@@ -3613,7 +3646,7 @@ var DTOUpdateDocumentationGroupInput = _zod.z.object({
|
|
|
3613
3646
|
id: _zod.z.string().uuid(),
|
|
3614
3647
|
// Group properties
|
|
3615
3648
|
title: _zod.z.string().optional(),
|
|
3616
|
-
configuration:
|
|
3649
|
+
configuration: DocumentationItemConfigurationV2.optional()
|
|
3617
3650
|
});
|
|
3618
3651
|
var DTOMoveDocumentationGroupInput = _zod.z.object({
|
|
3619
3652
|
// Identifier of the group to update
|
|
@@ -3657,6 +3690,10 @@ var DTODocumentationGroupCreateActionOutputV2 = _zod.z.object({
|
|
|
3657
3690
|
type: _zod.z.literal("DocumentationGroupCreate"),
|
|
3658
3691
|
output: SuccessPayload
|
|
3659
3692
|
});
|
|
3693
|
+
var DTODocumentationTabGroupCreateActionOutputV2 = _zod.z.object({
|
|
3694
|
+
type: _zod.z.literal("DocumentationTabGroupCreate"),
|
|
3695
|
+
output: SuccessPayload
|
|
3696
|
+
});
|
|
3660
3697
|
var DTODocumentationGroupUpdateActionOutputV2 = _zod.z.object({
|
|
3661
3698
|
type: _zod.z.literal("DocumentationGroupUpdate"),
|
|
3662
3699
|
output: SuccessPayload
|
|
@@ -3673,10 +3710,18 @@ var DTODocumentationGroupDeleteActionOutputV2 = _zod.z.object({
|
|
|
3673
3710
|
type: _zod.z.literal("DocumentationGroupDelete"),
|
|
3674
3711
|
output: SuccessPayload
|
|
3675
3712
|
});
|
|
3713
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = _zod.z.object({
|
|
3714
|
+
type: _zod.z.literal("DocumentationTabGroupDelete"),
|
|
3715
|
+
output: SuccessPayload
|
|
3716
|
+
});
|
|
3676
3717
|
var DTODocumentationGroupCreateActionInputV2 = _zod.z.object({
|
|
3677
3718
|
type: _zod.z.literal("DocumentationGroupCreate"),
|
|
3678
3719
|
input: DTOCreateDocumentationGroupInput
|
|
3679
3720
|
});
|
|
3721
|
+
var DTODocumentationTabGroupCreateActionInputV2 = _zod.z.object({
|
|
3722
|
+
type: _zod.z.literal("DocumentationTabGroupCreate"),
|
|
3723
|
+
input: DTOCreateDocumentationTabGroupInput
|
|
3724
|
+
});
|
|
3680
3725
|
var DTODocumentationGroupUpdateActionInputV2 = _zod.z.object({
|
|
3681
3726
|
type: _zod.z.literal("DocumentationGroupUpdate"),
|
|
3682
3727
|
input: DTOUpdateDocumentationGroupInput
|
|
@@ -3693,6 +3738,10 @@ var DTODocumentationGroupDeleteActionInputV2 = _zod.z.object({
|
|
|
3693
3738
|
type: _zod.z.literal("DocumentationGroupDelete"),
|
|
3694
3739
|
input: DTODeleteDocumentationGroupInput
|
|
3695
3740
|
});
|
|
3741
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = _zod.z.object({
|
|
3742
|
+
type: _zod.z.literal("DocumentationTabGroupDelete"),
|
|
3743
|
+
input: DTODeleteDocumentationTabGroupInput
|
|
3744
|
+
});
|
|
3696
3745
|
|
|
3697
3746
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
3698
3747
|
|
|
@@ -3710,18 +3759,18 @@ var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
|
|
|
3710
3759
|
type: _zod.z.literal("Page")
|
|
3711
3760
|
});
|
|
3712
3761
|
var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
|
|
3713
|
-
configuration:
|
|
3762
|
+
configuration: DocumentationItemConfigurationV2
|
|
3714
3763
|
});
|
|
3715
3764
|
var DTODocumentationHierarchyV2 = _zod.z.object({
|
|
3716
3765
|
pages: _zod.z.array(DTODocumentationPageStructureV2),
|
|
3717
|
-
groups: _zod.z.array(
|
|
3766
|
+
groups: _zod.z.array(DTODocumentationGroupStructureV2)
|
|
3718
3767
|
});
|
|
3719
3768
|
var DTOCreateDocumentationPageInputV2 = _zod.z.object({
|
|
3720
3769
|
// Identifier
|
|
3721
3770
|
persistentId: _zod.z.string().uuid(),
|
|
3722
3771
|
// Page properties
|
|
3723
3772
|
title: _zod.z.string(),
|
|
3724
|
-
configuration:
|
|
3773
|
+
configuration: DocumentationItemConfigurationV2.optional(),
|
|
3725
3774
|
// Page placement properties
|
|
3726
3775
|
parentPersistentId: _zod.z.string().uuid(),
|
|
3727
3776
|
afterPersistentId: _zod.z.string().uuid().optional()
|
|
@@ -3731,7 +3780,7 @@ var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
|
|
|
3731
3780
|
id: _zod.z.string(),
|
|
3732
3781
|
// Page properties
|
|
3733
3782
|
title: _zod.z.string().optional(),
|
|
3734
|
-
configuration:
|
|
3783
|
+
configuration: DocumentationItemConfigurationV2.optional()
|
|
3735
3784
|
});
|
|
3736
3785
|
var DTOMoveDocumentationPageInputV2 = _zod.z.object({
|
|
3737
3786
|
// Identifier of the group to update
|
|
@@ -3822,10 +3871,12 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
3822
3871
|
DTODocumentationPageDeleteActionOutputV2,
|
|
3823
3872
|
// Documentation groups
|
|
3824
3873
|
DTODocumentationGroupCreateActionOutputV2,
|
|
3874
|
+
DTODocumentationTabGroupCreateActionOutputV2,
|
|
3825
3875
|
DTODocumentationGroupUpdateActionOutputV2,
|
|
3826
3876
|
DTODocumentationGroupMoveActionOutputV2,
|
|
3827
3877
|
DTODocumentationGroupDuplicateActionOutputV2,
|
|
3828
|
-
DTODocumentationGroupDeleteActionOutputV2
|
|
3878
|
+
DTODocumentationGroupDeleteActionOutputV2,
|
|
3879
|
+
DTODocumentationTabGroupDeleteActionOutputV2
|
|
3829
3880
|
]);
|
|
3830
3881
|
var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
3831
3882
|
// Documentation pages
|
|
@@ -3836,10 +3887,12 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
3836
3887
|
DTODocumentationPageDeleteActionInputV2,
|
|
3837
3888
|
// Documentation groups
|
|
3838
3889
|
DTODocumentationGroupCreateActionInputV2,
|
|
3890
|
+
DTODocumentationTabGroupCreateActionInputV2,
|
|
3839
3891
|
DTODocumentationGroupUpdateActionInputV2,
|
|
3840
3892
|
DTODocumentationGroupMoveActionInputV2,
|
|
3841
3893
|
DTODocumentationGroupDuplicateActionInputV2,
|
|
3842
|
-
DTODocumentationGroupDeleteActionInputV2
|
|
3894
|
+
DTODocumentationGroupDeleteActionInputV2,
|
|
3895
|
+
DTODocumentationTabGroupDeleteActionInputV2
|
|
3843
3896
|
]);
|
|
3844
3897
|
|
|
3845
3898
|
// src/api/payloads/documentation/block-definitions.ts
|
|
@@ -3907,11 +3960,11 @@ function getGroupsYMap(doc) {
|
|
|
3907
3960
|
|
|
3908
3961
|
var DTODocumentationPageRoomHeaderData = _zod.z.object({
|
|
3909
3962
|
title: _zod.z.string(),
|
|
3910
|
-
configuration:
|
|
3963
|
+
configuration: DocumentationItemConfigurationV2
|
|
3911
3964
|
});
|
|
3912
3965
|
var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
|
|
3913
3966
|
title: _zod.z.string().optional(),
|
|
3914
|
-
configuration:
|
|
3967
|
+
configuration: DocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
3915
3968
|
});
|
|
3916
3969
|
function itemConfigurationToYjs(yDoc, item) {
|
|
3917
3970
|
yDoc.transact((trx) => {
|
|
@@ -3960,7 +4013,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
3960
4013
|
};
|
|
3961
4014
|
return {
|
|
3962
4015
|
title: _zod.z.string().parse(title),
|
|
3963
|
-
configuration:
|
|
4016
|
+
configuration: DocumentationItemConfigurationV2.parse(rawConfig)
|
|
3964
4017
|
};
|
|
3965
4018
|
}
|
|
3966
4019
|
|
|
@@ -8157,5 +8210,9 @@ function mapByUnique2(items, keyFn) {
|
|
|
8157
8210
|
|
|
8158
8211
|
|
|
8159
8212
|
|
|
8160
|
-
|
|
8213
|
+
|
|
8214
|
+
|
|
8215
|
+
|
|
8216
|
+
|
|
8217
|
+
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.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; 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.DTODocumentationTabGroupCreateActionInputV2 = DTODocumentationTabGroupCreateActionInputV2; exports.DTODocumentationTabGroupCreateActionOutputV2 = DTODocumentationTabGroupCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; 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;
|
|
8161
8218
|
//# sourceMappingURL=index.js.map
|