@supernova-studio/client 0.20.0 → 0.21.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 +1662 -5399
- package/dist/index.d.ts +1662 -5399
- package/dist/index.js +50 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/documentation/group-action.ts +26 -1
- package/src/api/dto/elements/documentation/group.ts +0 -1
- package/src/api/dto/elements/elements-action-v2.ts +16 -0
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +5 -2
package/dist/index.mjs
CHANGED
|
@@ -884,24 +884,20 @@ var PageBlockV1 = PageBlockBaseV1.extend({
|
|
|
884
884
|
)
|
|
885
885
|
});
|
|
886
886
|
var PageBlockLinkType = z34.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
887
|
-
var PageBlockImageType = z34.enum(["
|
|
887
|
+
var PageBlockImageType = z34.enum(["Resource", "FigmaNode"]);
|
|
888
888
|
var PageBlockImageAlignment = z34.enum(["Left", "Center", "Stretch"]);
|
|
889
889
|
var PageBlockTableCellAlignment = z34.enum(["Left", "Center", "Right"]);
|
|
890
890
|
var PageBlockPreviewContainerSize = z34.enum(["Centered", "NaturalHeight"]);
|
|
891
891
|
var PageBlockThemeDisplayMode = z34.enum(["Split", "Override"]);
|
|
892
892
|
var PageBlockImageReference = z34.object({
|
|
893
893
|
type: PageBlockImageType,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
894
|
+
resource: z34.object({
|
|
895
|
+
url: z34.string(),
|
|
896
|
+
resourceId: z34.string()
|
|
897
|
+
}).optional(),
|
|
897
898
|
figmaFile: z34.object({
|
|
898
899
|
sourceId: z34.string(),
|
|
899
|
-
|
|
900
|
-
frameReferenceId: z34.string(),
|
|
901
|
-
origin: z34.object({
|
|
902
|
-
title: z34.string().optional(),
|
|
903
|
-
sourceFileName: z34.string().optional()
|
|
904
|
-
})
|
|
900
|
+
frameReferenceId: z34.string()
|
|
905
901
|
}).optional()
|
|
906
902
|
});
|
|
907
903
|
var PageBlockColorV2 = z34.object({
|
|
@@ -1162,7 +1158,7 @@ var DocumentationItemHeaderV2 = z41.object({
|
|
|
1162
1158
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1163
1159
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
1164
1160
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
1165
|
-
backgroundImageAsset:
|
|
1161
|
+
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
1166
1162
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1167
1163
|
showBackgroundOverlay: z41.boolean(),
|
|
1168
1164
|
showCoverText: z41.boolean(),
|
|
@@ -3637,7 +3633,6 @@ var DTOCreateDocumentationGroupInput = z129.object({
|
|
|
3637
3633
|
// Group properties
|
|
3638
3634
|
title: z129.string(),
|
|
3639
3635
|
configuration: DocumentationItemConfigurationV2.optional(),
|
|
3640
|
-
groupBehavior: DocumentationGroupBehavior,
|
|
3641
3636
|
// Group placement properties
|
|
3642
3637
|
afterPersistentId: z129.string().uuid().optional(),
|
|
3643
3638
|
parentPersistentId: z129.string().uuid()
|
|
@@ -3691,6 +3686,10 @@ var DTODocumentationGroupCreateActionOutputV2 = z130.object({
|
|
|
3691
3686
|
type: z130.literal("DocumentationGroupCreate"),
|
|
3692
3687
|
output: SuccessPayload
|
|
3693
3688
|
});
|
|
3689
|
+
var DTODocumentationTabGroupCreateActionOutputV2 = z130.object({
|
|
3690
|
+
type: z130.literal("DocumentationTabGroupCreate"),
|
|
3691
|
+
output: SuccessPayload
|
|
3692
|
+
});
|
|
3694
3693
|
var DTODocumentationGroupUpdateActionOutputV2 = z130.object({
|
|
3695
3694
|
type: z130.literal("DocumentationGroupUpdate"),
|
|
3696
3695
|
output: SuccessPayload
|
|
@@ -3707,10 +3706,18 @@ var DTODocumentationGroupDeleteActionOutputV2 = z130.object({
|
|
|
3707
3706
|
type: z130.literal("DocumentationGroupDelete"),
|
|
3708
3707
|
output: SuccessPayload
|
|
3709
3708
|
});
|
|
3709
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z130.object({
|
|
3710
|
+
type: z130.literal("DocumentationTabGroupDelete"),
|
|
3711
|
+
output: SuccessPayload
|
|
3712
|
+
});
|
|
3710
3713
|
var DTODocumentationGroupCreateActionInputV2 = z130.object({
|
|
3711
3714
|
type: z130.literal("DocumentationGroupCreate"),
|
|
3712
3715
|
input: DTOCreateDocumentationGroupInput
|
|
3713
3716
|
});
|
|
3717
|
+
var DTODocumentationTabGroupCreateActionInputV2 = z130.object({
|
|
3718
|
+
type: z130.literal("DocumentationTabGroupCreate"),
|
|
3719
|
+
input: DTOCreateDocumentationTabGroupInput
|
|
3720
|
+
});
|
|
3714
3721
|
var DTODocumentationGroupUpdateActionInputV2 = z130.object({
|
|
3715
3722
|
type: z130.literal("DocumentationGroupUpdate"),
|
|
3716
3723
|
input: DTOUpdateDocumentationGroupInput
|
|
@@ -3727,6 +3734,10 @@ var DTODocumentationGroupDeleteActionInputV2 = z130.object({
|
|
|
3727
3734
|
type: z130.literal("DocumentationGroupDelete"),
|
|
3728
3735
|
input: DTODeleteDocumentationGroupInput
|
|
3729
3736
|
});
|
|
3737
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z130.object({
|
|
3738
|
+
type: z130.literal("DocumentationTabGroupDelete"),
|
|
3739
|
+
input: DTODeleteDocumentationTabGroupInput
|
|
3740
|
+
});
|
|
3730
3741
|
|
|
3731
3742
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
3732
3743
|
import { z as z132 } from "zod";
|
|
@@ -3856,10 +3867,12 @@ var DTOElementActionOutput = z134.discriminatedUnion("type", [
|
|
|
3856
3867
|
DTODocumentationPageDeleteActionOutputV2,
|
|
3857
3868
|
// Documentation groups
|
|
3858
3869
|
DTODocumentationGroupCreateActionOutputV2,
|
|
3870
|
+
DTODocumentationTabGroupCreateActionOutputV2,
|
|
3859
3871
|
DTODocumentationGroupUpdateActionOutputV2,
|
|
3860
3872
|
DTODocumentationGroupMoveActionOutputV2,
|
|
3861
3873
|
DTODocumentationGroupDuplicateActionOutputV2,
|
|
3862
|
-
DTODocumentationGroupDeleteActionOutputV2
|
|
3874
|
+
DTODocumentationGroupDeleteActionOutputV2,
|
|
3875
|
+
DTODocumentationTabGroupDeleteActionOutputV2
|
|
3863
3876
|
]);
|
|
3864
3877
|
var DTOElementActionInput = z134.discriminatedUnion("type", [
|
|
3865
3878
|
// Documentation pages
|
|
@@ -3870,10 +3883,12 @@ var DTOElementActionInput = z134.discriminatedUnion("type", [
|
|
|
3870
3883
|
DTODocumentationPageDeleteActionInputV2,
|
|
3871
3884
|
// Documentation groups
|
|
3872
3885
|
DTODocumentationGroupCreateActionInputV2,
|
|
3886
|
+
DTODocumentationTabGroupCreateActionInputV2,
|
|
3873
3887
|
DTODocumentationGroupUpdateActionInputV2,
|
|
3874
3888
|
DTODocumentationGroupMoveActionInputV2,
|
|
3875
3889
|
DTODocumentationGroupDuplicateActionInputV2,
|
|
3876
|
-
DTODocumentationGroupDeleteActionInputV2
|
|
3890
|
+
DTODocumentationGroupDeleteActionInputV2,
|
|
3891
|
+
DTODocumentationTabGroupDeleteActionInputV2
|
|
3877
3892
|
]);
|
|
3878
3893
|
|
|
3879
3894
|
// src/api/payloads/documentation/block-definitions.ts
|
|
@@ -5008,7 +5023,7 @@ function serializeTableNode(node) {
|
|
|
5008
5023
|
return {
|
|
5009
5024
|
type: "image",
|
|
5010
5025
|
attrs: {
|
|
5011
|
-
src: node.value?.url
|
|
5026
|
+
src: node.value?.resource?.url
|
|
5012
5027
|
}
|
|
5013
5028
|
};
|
|
5014
5029
|
}
|
|
@@ -7895,8 +7910,11 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
7895
7910
|
return {
|
|
7896
7911
|
type: "Image",
|
|
7897
7912
|
value: {
|
|
7898
|
-
type: "
|
|
7899
|
-
|
|
7913
|
+
type: "Resource",
|
|
7914
|
+
resource: {
|
|
7915
|
+
resourceId: "",
|
|
7916
|
+
url
|
|
7917
|
+
}
|
|
7900
7918
|
}
|
|
7901
7919
|
};
|
|
7902
7920
|
default:
|
|
@@ -8155,6 +8173,10 @@ export {
|
|
|
8155
8173
|
DTODocumentationPageUpdateActionInputV2,
|
|
8156
8174
|
DTODocumentationPageUpdateActionOutputV2,
|
|
8157
8175
|
DTODocumentationPageV2,
|
|
8176
|
+
DTODocumentationTabGroupCreateActionInputV2,
|
|
8177
|
+
DTODocumentationTabGroupCreateActionOutputV2,
|
|
8178
|
+
DTODocumentationTabGroupDeleteActionInputV2,
|
|
8179
|
+
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
8158
8180
|
DTODuplicateDocumentationGroupInput,
|
|
8159
8181
|
DTODuplicateDocumentationPageInputV2,
|
|
8160
8182
|
DTOElementActionInput,
|