@supernova-studio/model 0.17.0 → 0.18.0

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.mjs CHANGED
@@ -983,7 +983,12 @@ var PageBlockItemDividerValue = z34.object({});
983
983
  var PageBlockItemEmbedValue = z34.object({
984
984
  value: z34.string().optional(),
985
985
  caption: z34.string().optional(),
986
- height: z34.number().optional()
986
+ height: z34.number().optional(),
987
+ openGraph: z34.object({
988
+ title: z34.string().optional(),
989
+ description: z34.string().optional(),
990
+ imageUrl: z34.string().optional()
991
+ }).optional()
987
992
  });
988
993
  var PageBlockItemFigmaNodeValue = z34.object({
989
994
  selectedPropertyIds: z34.array(z34.string()).optional(),
@@ -2973,30 +2978,29 @@ var DesignSystemVersionRoom = Entity.extend({
2973
2978
  });
2974
2979
  var DesignSystemVersionRoomInitialState = z119.object({
2975
2980
  pages: z119.array(DocumentationPageV2),
2976
- groups: z119.array(ElementGroup),
2977
- deletedPagePersistentIds: z119.array(z119.string()),
2978
- deletedGroupPersistentIds: z119.array(z119.string())
2981
+ groups: z119.array(ElementGroup)
2979
2982
  });
2980
2983
  var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
2981
- deletedPagePersistentIds: z119.array(z119.string()),
2982
- deletedGroupPersistentIds: z119.array(z119.string())
2984
+ deletedPageIds: z119.array(z119.string()),
2985
+ deletedGroupIds: z119.array(z119.string())
2983
2986
  });
2984
- function mergeDesignSystemVersionRoomUpdates(lhs, rhs) {
2985
- return {
2986
- pages: [...lhs.pages, ...rhs.pages],
2987
- groups: [...lhs.groups, ...rhs.groups],
2988
- deletedPagePersistentIds: [...lhs.deletedPagePersistentIds, ...rhs.deletedPagePersistentIds],
2989
- deletedGroupPersistentIds: [...lhs.deletedGroupPersistentIds, ...rhs.deletedGroupPersistentIds]
2990
- };
2991
- }
2992
2987
 
2993
2988
  // src/multiplayer/documentation-page-room.ts
2994
2989
  import { z as z120 } from "zod";
2990
+ import { PageBlockEditorModel } from "@supernova-studio/client";
2995
2991
  var DocumentationPageRoom = Entity.extend({
2996
2992
  designSystemVersionId: z120.string(),
2997
2993
  documentationPageId: z120.string(),
2998
2994
  liveblocksId: z120.string()
2999
2995
  });
2996
+ var DocumentationPageRoomRoomUpdate = z120.object({
2997
+ page: DocumentationPageV2,
2998
+ pageParent: ElementGroup
2999
+ });
3000
+ var DocumentationPageRoomInitialState = DocumentationPageRoomRoomUpdate.extend({
3001
+ pageBlocks: z120.array(PageBlockEditorModel),
3002
+ blockDefinitions: z120.array(PageBlockDefinition)
3003
+ });
3000
3004
 
3001
3005
  // src/multiplayer/room-type.ts
3002
3006
  import { z as z121 } from "zod";
@@ -3946,6 +3950,8 @@ export {
3946
3950
  DocumentationPageGroup,
3947
3951
  DocumentationPageImageAsset,
3948
3952
  DocumentationPageRoom,
3953
+ DocumentationPageRoomInitialState,
3954
+ DocumentationPageRoomRoomUpdate,
3949
3955
  DocumentationPageV1,
3950
3956
  DocumentationPageV2,
3951
3957
  DurationTokenData,
@@ -4323,7 +4329,6 @@ export {
4323
4329
  isSlugReserved,
4324
4330
  isTokenType,
4325
4331
  mapByUnique,
4326
- mergeDesignSystemVersionRoomUpdates,
4327
4332
  nonNullFilter,
4328
4333
  nonNullishFilter,
4329
4334
  nullishToOptional,