@supernova-studio/client 0.47.45 → 0.47.47
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 +15 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- 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
|
@@ -2401,7 +2401,8 @@ var ThemeUpdateImportModelInput = z101.object({
|
|
|
2401
2401
|
overrides: z101.array(ThemeOverrideImportModelInput)
|
|
2402
2402
|
});
|
|
2403
2403
|
var DesignTokenImportModelPart = z102.object({
|
|
2404
|
-
collection: z102.string().optional()
|
|
2404
|
+
collection: z102.string().optional(),
|
|
2405
|
+
codeSyntax: z102.record(z102.coerce.string()).optional()
|
|
2405
2406
|
});
|
|
2406
2407
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
2407
2408
|
origin: DesignTokenOrigin
|
|
@@ -2825,7 +2826,11 @@ var DesignSystemVersionRoomUpdate = z122.object({
|
|
|
2825
2826
|
pages: z122.array(DocumentationPageV2),
|
|
2826
2827
|
groups: z122.array(ElementGroup),
|
|
2827
2828
|
deletedPageIds: z122.array(z122.string()),
|
|
2828
|
-
deletedGroupIds: z122.array(z122.string())
|
|
2829
|
+
deletedGroupIds: z122.array(z122.string()),
|
|
2830
|
+
publishedPageSnapshots: z122.array(DocumentationPageSnapshot),
|
|
2831
|
+
publishedGroupSnapshots: z122.array(ElementGroupSnapshot),
|
|
2832
|
+
deletedPageSnapshots: z122.array(DocumentationPageSnapshot),
|
|
2833
|
+
deletedGroupSnapshots: z122.array(ElementGroupSnapshot)
|
|
2829
2834
|
});
|
|
2830
2835
|
var DocumentationPageRoom = Entity.extend({
|
|
2831
2836
|
designSystemVersionId: z123.string(),
|
|
@@ -6185,7 +6190,7 @@ var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
|
6185
6190
|
// src/yjs/docs-editor/model/page.ts
|
|
6186
6191
|
import { z as z211 } from "zod";
|
|
6187
6192
|
var DocumentationPageEditorModel = z211.object({
|
|
6188
|
-
blocks: z211.array(
|
|
6193
|
+
blocks: z211.array(DocumentationPageContentItem)
|
|
6189
6194
|
});
|
|
6190
6195
|
|
|
6191
6196
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -9804,6 +9809,11 @@ var BackendVersionRoomYDoc = class {
|
|
|
9804
9809
|
});
|
|
9805
9810
|
}
|
|
9806
9811
|
};
|
|
9812
|
+
|
|
9813
|
+
// src/yjs/version-room/utils.ts
|
|
9814
|
+
function generatePageContentHash(content) {
|
|
9815
|
+
return generateHash(content);
|
|
9816
|
+
}
|
|
9807
9817
|
export {
|
|
9808
9818
|
BackendVersionRoomYDoc,
|
|
9809
9819
|
BlockDefinitionUtils,
|
|
@@ -9993,6 +10003,7 @@ export {
|
|
|
9993
10003
|
elementGroupsToDocumentationGroupFixedConfigurationDTOV2,
|
|
9994
10004
|
elementGroupsToDocumentationGroupStructureDTOV1,
|
|
9995
10005
|
generateHash,
|
|
10006
|
+
generatePageContentHash,
|
|
9996
10007
|
getDtoDefaultItemConfigurationV1,
|
|
9997
10008
|
getDtoDefaultItemConfigurationV2,
|
|
9998
10009
|
getMockPageBlockDefinitions,
|