@supernova-studio/client 0.47.45 → 0.47.46
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/model/page.ts +2 -2
- package/src/yjs/version-room/index.ts +1 -0
- package/src/yjs/version-room/utils.ts +6 -0
package/dist/index.mjs
CHANGED
|
@@ -2825,7 +2825,11 @@ var DesignSystemVersionRoomUpdate = z122.object({
|
|
|
2825
2825
|
pages: z122.array(DocumentationPageV2),
|
|
2826
2826
|
groups: z122.array(ElementGroup),
|
|
2827
2827
|
deletedPageIds: z122.array(z122.string()),
|
|
2828
|
-
deletedGroupIds: z122.array(z122.string())
|
|
2828
|
+
deletedGroupIds: z122.array(z122.string()),
|
|
2829
|
+
publishedPageSnapshots: z122.array(DocumentationPageSnapshot),
|
|
2830
|
+
publishedGroupSnapshots: z122.array(ElementGroupSnapshot),
|
|
2831
|
+
deletedPageSnapshots: z122.array(DocumentationPageSnapshot),
|
|
2832
|
+
deletedGroupSnapshots: z122.array(ElementGroupSnapshot)
|
|
2829
2833
|
});
|
|
2830
2834
|
var DocumentationPageRoom = Entity.extend({
|
|
2831
2835
|
designSystemVersionId: z123.string(),
|
|
@@ -6185,7 +6189,7 @@ var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
|
6185
6189
|
// src/yjs/docs-editor/model/page.ts
|
|
6186
6190
|
import { z as z211 } from "zod";
|
|
6187
6191
|
var DocumentationPageEditorModel = z211.object({
|
|
6188
|
-
blocks: z211.array(
|
|
6192
|
+
blocks: z211.array(DocumentationPageContentItem)
|
|
6189
6193
|
});
|
|
6190
6194
|
|
|
6191
6195
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -9804,6 +9808,11 @@ var BackendVersionRoomYDoc = class {
|
|
|
9804
9808
|
});
|
|
9805
9809
|
}
|
|
9806
9810
|
};
|
|
9811
|
+
|
|
9812
|
+
// src/yjs/version-room/utils.ts
|
|
9813
|
+
function generatePageContentHash(content) {
|
|
9814
|
+
return generateHash(content);
|
|
9815
|
+
}
|
|
9807
9816
|
export {
|
|
9808
9817
|
BackendVersionRoomYDoc,
|
|
9809
9818
|
BlockDefinitionUtils,
|
|
@@ -9993,6 +10002,7 @@ export {
|
|
|
9993
10002
|
elementGroupsToDocumentationGroupFixedConfigurationDTOV2,
|
|
9994
10003
|
elementGroupsToDocumentationGroupStructureDTOV1,
|
|
9995
10004
|
generateHash,
|
|
10005
|
+
generatePageContentHash,
|
|
9996
10006
|
getDtoDefaultItemConfigurationV1,
|
|
9997
10007
|
getDtoDefaultItemConfigurationV2,
|
|
9998
10008
|
getMockPageBlockDefinitions,
|