@supernova-studio/client 0.47.44 → 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 +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -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/frontend.ts +10 -0
- 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(),
|
|
@@ -6096,6 +6100,14 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6096
6100
|
[pageId]: pageContentHash
|
|
6097
6101
|
});
|
|
6098
6102
|
}
|
|
6103
|
+
//
|
|
6104
|
+
// Misc
|
|
6105
|
+
//
|
|
6106
|
+
isDraftFeatureAdopted() {
|
|
6107
|
+
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6108
|
+
const settings = doc.getDocumentationInternalSettings();
|
|
6109
|
+
return settings.isDraftFeatureAdopted;
|
|
6110
|
+
}
|
|
6099
6111
|
};
|
|
6100
6112
|
|
|
6101
6113
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
@@ -6177,7 +6189,7 @@ var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
|
6177
6189
|
// src/yjs/docs-editor/model/page.ts
|
|
6178
6190
|
import { z as z211 } from "zod";
|
|
6179
6191
|
var DocumentationPageEditorModel = z211.object({
|
|
6180
|
-
blocks: z211.array(
|
|
6192
|
+
blocks: z211.array(DocumentationPageContentItem)
|
|
6181
6193
|
});
|
|
6182
6194
|
|
|
6183
6195
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -9796,6 +9808,11 @@ var BackendVersionRoomYDoc = class {
|
|
|
9796
9808
|
});
|
|
9797
9809
|
}
|
|
9798
9810
|
};
|
|
9811
|
+
|
|
9812
|
+
// src/yjs/version-room/utils.ts
|
|
9813
|
+
function generatePageContentHash(content) {
|
|
9814
|
+
return generateHash(content);
|
|
9815
|
+
}
|
|
9799
9816
|
export {
|
|
9800
9817
|
BackendVersionRoomYDoc,
|
|
9801
9818
|
BlockDefinitionUtils,
|
|
@@ -9985,6 +10002,7 @@ export {
|
|
|
9985
10002
|
elementGroupsToDocumentationGroupFixedConfigurationDTOV2,
|
|
9986
10003
|
elementGroupsToDocumentationGroupStructureDTOV1,
|
|
9987
10004
|
generateHash,
|
|
10005
|
+
generatePageContentHash,
|
|
9988
10006
|
getDtoDefaultItemConfigurationV1,
|
|
9989
10007
|
getDtoDefaultItemConfigurationV2,
|
|
9990
10008
|
getMockPageBlockDefinitions,
|