@supernova-studio/model 0.47.70 → 0.47.71
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 +4538 -1
- package/dist/index.d.ts +4538 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-page-v2.ts +0 -1
- package/src/liveblocks/rooms/design-system-version-room.ts +1 -0
- package/src/liveblocks/rooms/documentation-page-room.ts +16 -0
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { DocumentationItemConfigurationV2 } from "./documentation-v2";
|
|
3
3
|
import { nullishToOptional } from "../../../helpers";
|
|
4
|
-
import { DocumentationPageDataV1 } from "./documentation-page-v1";
|
|
5
4
|
|
|
6
5
|
export const DocumentationPageDataV2 = z.object({
|
|
7
6
|
configuration: nullishToOptional(DocumentationItemConfigurationV2),
|
|
@@ -45,6 +45,7 @@ export const DesignSystemVersionRoomUpdate = z.object({
|
|
|
45
45
|
groupSnapshots: z.array(ElementGroupSnapshot),
|
|
46
46
|
pageSnapshotIdsToDelete: z.array(z.string()),
|
|
47
47
|
groupSnapshotIdsToDelete: z.array(z.string()),
|
|
48
|
+
pageHashesToUpdate: z.record(z.string(), z.string()),
|
|
48
49
|
});
|
|
49
50
|
|
|
50
51
|
export type DesignSystemVersionRoomInternalSettings = z.infer<typeof DesignSystemVersionRoomInternalSettings>;
|
|
@@ -8,6 +8,7 @@ import { ElementGroup } from "../../dsm/elements/group";
|
|
|
8
8
|
import { PageBlockEditorModelV2 } from "../../dsm/elements/page-block-v2";
|
|
9
9
|
import { DbCreateInputOmit, DbUpdate } from "../../helpers";
|
|
10
10
|
import { OmitStrict } from "../../utils";
|
|
11
|
+
import { DocumentationPageContentData } from "../../dsm";
|
|
11
12
|
|
|
12
13
|
export const DocumentationPageRoom = Entity.extend({
|
|
13
14
|
designSystemVersionId: z.string(),
|
|
@@ -43,6 +44,21 @@ export const DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoom
|
|
|
43
44
|
blockDefinitions: z.array(PageBlockDefinition),
|
|
44
45
|
});
|
|
45
46
|
|
|
47
|
+
export const RestoredDocumentationPage = z.object({
|
|
48
|
+
page: DocumentationPageV2,
|
|
49
|
+
pageParent: ElementGroup,
|
|
50
|
+
pageContent: DocumentationPageContentData,
|
|
51
|
+
contentHash: z.string(),
|
|
52
|
+
roomId: z.string().optional(),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const RestoredDocumentationGroup = z.object({
|
|
56
|
+
group: ElementGroup,
|
|
57
|
+
parent: ElementGroup,
|
|
58
|
+
});
|
|
59
|
+
|
|
46
60
|
export type DocumentationPageRoomState = z.infer<typeof DocumentationPageRoomState>;
|
|
47
61
|
export type DocumentationPageRoomRoomUpdate = z.infer<typeof DocumentationPageRoomRoomUpdate>;
|
|
48
62
|
export type DocumentationPageRoomInitialStateUpdate = z.infer<typeof DocumentationPageRoomInitialStateUpdate>;
|
|
63
|
+
export type RestoredDocumentationPage = z.infer<typeof RestoredDocumentationPage>;
|
|
64
|
+
export type RestoredDocumentationGroup = z.infer<typeof RestoredDocumentationGroup>;
|