@supernova-studio/client 0.47.68 → 0.47.70

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
@@ -1274,13 +1274,13 @@ var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTyp
1274
1274
  var DocumentationItemHeaderV1 = z41.object({
1275
1275
  description: z41.string(),
1276
1276
  alignment: DocumentationItemHeaderAlignmentSchema,
1277
- foregroundColor: ColorTokenData.nullish(),
1278
- backgroundColor: ColorTokenData.nullish(),
1279
- backgroundImageAsset: PageBlockAsset.nullish(),
1277
+ foregroundColor: nullishToOptional(ColorTokenData),
1278
+ backgroundColor: nullishToOptional(ColorTokenData),
1279
+ backgroundImageAsset: nullishToOptional(PageBlockAsset),
1280
1280
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1281
1281
  showBackgroundOverlay: z41.boolean(),
1282
1282
  showCoverText: z41.boolean(),
1283
- minHeight: z41.number().nullish()
1283
+ minHeight: nullishToOptional(z41.number())
1284
1284
  });
1285
1285
  var defaultDocumentationItemHeaderV1 = {
1286
1286
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1302,13 +1302,13 @@ var DocumentationPageDataV1 = z43.object({
1302
1302
  var DocumentationItemHeaderV2 = z44.object({
1303
1303
  description: z44.string(),
1304
1304
  alignment: DocumentationItemHeaderAlignmentSchema,
1305
- foregroundColor: PageBlockColorV2.nullish(),
1306
- backgroundColor: PageBlockColorV2.nullish(),
1307
- backgroundImageAsset: PageBlockImageReference.nullish(),
1305
+ foregroundColor: nullishToOptional(PageBlockColorV2),
1306
+ backgroundColor: nullishToOptional(PageBlockColorV2),
1307
+ backgroundImageAsset: nullishToOptional(PageBlockImageReference),
1308
1308
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1309
1309
  showBackgroundOverlay: z44.boolean(),
1310
1310
  showCoverText: z44.boolean(),
1311
- minHeight: z44.number().nullish()
1311
+ minHeight: nullishToOptional(z44.number())
1312
1312
  });
1313
1313
  var defaultDocumentationItemHeaderV2 = {
1314
1314
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -2737,7 +2737,8 @@ var DesignSystemVersion = z119.object({
2737
2737
  comment: z119.string(),
2738
2738
  isReadonly: z119.boolean(),
2739
2739
  changeLog: z119.string(),
2740
- parentId: z119.string().optional()
2740
+ parentId: z119.string().optional(),
2741
+ isDraftsFeatureAdopted: z119.boolean()
2741
2742
  });
2742
2743
  var VersionCreationJobStatus = z119.enum(["Success", "InProgress", "Error"]);
2743
2744
  var VersionCreationJob = z119.object({
@@ -5892,9 +5893,6 @@ function generateHash(input, debug = false) {
5892
5893
  // src/yjs/design-system-content/documentation-hierarchy.ts
5893
5894
  import { z as z214 } from "zod";
5894
5895
 
5895
- // src/yjs/version-room/frontend.ts
5896
- import deepEqual from "deep-equal";
5897
-
5898
5896
  // src/yjs/version-room/base.ts
5899
5897
  var VersionRoomBaseYDoc = class {
5900
5898
  constructor(yDoc) {
@@ -6176,7 +6174,9 @@ var FrontendVersionRoomYDoc = class {
6176
6174
  }
6177
6175
  updatedDraftState.changes.previousTitle = publishedState.title;
6178
6176
  }
6179
- if (!deepEqual(currentState.configuration, publishedState.configuration)) {
6177
+ const currentStateConfigHash = currentState.configuration ? generateHash(currentState.configuration) : "default";
6178
+ const publishedStateConfigHash = publishedState.configuration ? generateHash(publishedState.configuration) : "default";
6179
+ if (currentStateConfigHash !== publishedStateConfigHash) {
6180
6180
  if (this.debug) {
6181
6181
  console.log(`Item ${itemPersistentId} (${currentState.title}): updated configuration`);
6182
6182
  }