@supernova-studio/model 0.18.0 → 0.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.18.0",
3
+ "version": "0.19.1",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +1,9 @@
1
1
  import { z } from "zod";
2
2
  import { Entity } from "../common/entity";
3
3
  import { DbCreateInputOmit, DbUpdate } from "../helpers";
4
- import { DocumentationPageV2, ElementGroup, PageBlockDefinition } from "../dsm";
5
- import { PageBlockEditorModel } from "@supernova-studio/client";
4
+ import { DocumentationPageV2, ElementGroup, PageBlockDataV2, PageBlockDefinition } from "../dsm";
5
+
6
+ export type PageBlockEditorModel = z.infer<typeof PageBlockEditorModel>;
6
7
 
7
8
  export const DocumentationPageRoom = Entity.extend({
8
9
  designSystemVersionId: z.string(),
@@ -19,6 +20,11 @@ export type UpdateDocumentationPageRoom = DbUpdate<DocumentationPageRoom>;
19
20
  // Room content
20
21
  //
21
22
 
23
+ export const PageBlockEditorModel = z.object({
24
+ id: z.string(),
25
+ data: PageBlockDataV2,
26
+ });
27
+
22
28
  export const DocumentationPageRoomRoomUpdate = z.object({
23
29
  page: DocumentationPageV2,
24
30
  pageParent: ElementGroup,