@supernova-studio/model 0.47.70 → 0.47.72

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
@@ -1286,13 +1286,13 @@ var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTyp
1286
1286
  var DocumentationItemHeaderV1 = z41.object({
1287
1287
  description: z41.string(),
1288
1288
  alignment: DocumentationItemHeaderAlignmentSchema,
1289
- foregroundColor: nullishToOptional(ColorTokenData),
1290
- backgroundColor: nullishToOptional(ColorTokenData),
1291
- backgroundImageAsset: nullishToOptional(PageBlockAsset),
1289
+ foregroundColor: ColorTokenData.nullish(),
1290
+ backgroundColor: ColorTokenData.nullish(),
1291
+ backgroundImageAsset: PageBlockAsset.nullish(),
1292
1292
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1293
1293
  showBackgroundOverlay: z41.boolean(),
1294
1294
  showCoverText: z41.boolean(),
1295
- minHeight: nullishToOptional(z41.number())
1295
+ minHeight: z41.number().nullish()
1296
1296
  });
1297
1297
  var defaultDocumentationItemHeaderV1 = {
1298
1298
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1331,13 +1331,13 @@ import { z as z44 } from "zod";
1331
1331
  var DocumentationItemHeaderV2 = z44.object({
1332
1332
  description: z44.string(),
1333
1333
  alignment: DocumentationItemHeaderAlignmentSchema,
1334
- foregroundColor: nullishToOptional(PageBlockColorV2),
1335
- backgroundColor: nullishToOptional(PageBlockColorV2),
1336
- backgroundImageAsset: nullishToOptional(PageBlockImageReference),
1334
+ foregroundColor: PageBlockColorV2.nullish(),
1335
+ backgroundColor: PageBlockColorV2.nullish(),
1336
+ backgroundImageAsset: PageBlockImageReference.nullish(),
1337
1337
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1338
1338
  showBackgroundOverlay: z44.boolean(),
1339
1339
  showCoverText: z44.boolean(),
1340
- minHeight: nullishToOptional(z44.number())
1340
+ minHeight: z44.number().nullish()
1341
1341
  });
1342
1342
  var defaultDocumentationItemHeaderV2 = {
1343
1343
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -3299,7 +3299,8 @@ var DesignSystemVersionRoomUpdate = z123.object({
3299
3299
  pageSnapshots: z123.array(DocumentationPageSnapshot),
3300
3300
  groupSnapshots: z123.array(ElementGroupSnapshot),
3301
3301
  pageSnapshotIdsToDelete: z123.array(z123.string()),
3302
- groupSnapshotIdsToDelete: z123.array(z123.string())
3302
+ groupSnapshotIdsToDelete: z123.array(z123.string()),
3303
+ pageHashesToUpdate: z123.record(z123.string(), z123.string())
3303
3304
  });
3304
3305
 
3305
3306
  // src/liveblocks/rooms/documentation-page-room.ts
@@ -3322,6 +3323,17 @@ var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.ex
3322
3323
  pageItems: z124.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3323
3324
  blockDefinitions: z124.array(PageBlockDefinition)
3324
3325
  });
3326
+ var RestoredDocumentationPage = z124.object({
3327
+ page: DocumentationPageV2,
3328
+ pageParent: ElementGroup,
3329
+ pageContent: DocumentationPageContentData,
3330
+ contentHash: z124.string(),
3331
+ roomId: z124.string().optional()
3332
+ });
3333
+ var RestoredDocumentationGroup = z124.object({
3334
+ group: ElementGroup,
3335
+ parent: ElementGroup
3336
+ });
3325
3337
 
3326
3338
  // src/liveblocks/rooms/room-type.ts
3327
3339
  import { z as z125 } from "zod";
@@ -5357,6 +5369,8 @@ export {
5357
5369
  RESERVED_SLUG_PREFIX,
5358
5370
  RenderedAssetFile,
5359
5371
  ResolvedAsset,
5372
+ RestoredDocumentationGroup,
5373
+ RestoredDocumentationPage,
5360
5374
  RoomType,
5361
5375
  RoomTypeEnum,
5362
5376
  RoomTypeSchema,