@supernova-studio/client 0.20.1 → 0.21.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 +1527 -5431
- package/dist/index.d.ts +1527 -5431
- package/dist/index.js +26 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/documentation/group.ts +1 -1
- package/src/api/dto/elements/documentation/page-v2.ts +1 -1
- 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(),
|
|
@@ -3652,8 +3648,8 @@ var DTOMoveDocumentationGroupInput = z129.object({
|
|
|
3652
3648
|
// Identifier of the group to update
|
|
3653
3649
|
id: z129.string().uuid(),
|
|
3654
3650
|
// Group placement properties
|
|
3655
|
-
|
|
3656
|
-
|
|
3651
|
+
parentPersistentId: z129.string().uuid(),
|
|
3652
|
+
afterPersistentId: z129.string().uuid().optional()
|
|
3657
3653
|
});
|
|
3658
3654
|
var DTODuplicateDocumentationGroupInput = z129.object({
|
|
3659
3655
|
// Identifier of the group to duplicate from
|
|
@@ -3787,7 +3783,7 @@ var DTOMoveDocumentationPageInputV2 = z131.object({
|
|
|
3787
3783
|
id: z131.string(),
|
|
3788
3784
|
// Page placement properties
|
|
3789
3785
|
parentPersistentId: z131.string().uuid(),
|
|
3790
|
-
afterPersistentId: z131.string().uuid()
|
|
3786
|
+
afterPersistentId: z131.string().uuid().optional()
|
|
3791
3787
|
});
|
|
3792
3788
|
var DTODuplicateDocumentationPageInputV2 = z131.object({
|
|
3793
3789
|
// Identifier of the page to duplicate from
|
|
@@ -5027,7 +5023,7 @@ function serializeTableNode(node) {
|
|
|
5027
5023
|
return {
|
|
5028
5024
|
type: "image",
|
|
5029
5025
|
attrs: {
|
|
5030
|
-
src: node.value?.url
|
|
5026
|
+
src: node.value?.resource?.url
|
|
5031
5027
|
}
|
|
5032
5028
|
};
|
|
5033
5029
|
}
|
|
@@ -7914,8 +7910,11 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
7914
7910
|
return {
|
|
7915
7911
|
type: "Image",
|
|
7916
7912
|
value: {
|
|
7917
|
-
type: "
|
|
7918
|
-
|
|
7913
|
+
type: "Resource",
|
|
7914
|
+
resource: {
|
|
7915
|
+
resourceId: "",
|
|
7916
|
+
url
|
|
7917
|
+
}
|
|
7919
7918
|
}
|
|
7920
7919
|
};
|
|
7921
7920
|
default:
|