@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.d.mts +2424 -2501
- package/dist/index.d.ts +2424 -2501
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/version-room/frontend.ts +7 -2
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
|
|
1278
|
-
backgroundColor: ColorTokenData
|
|
1279
|
-
backgroundImageAsset: PageBlockAsset
|
|
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()
|
|
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
|
|
1306
|
-
backgroundColor: PageBlockColorV2
|
|
1307
|
-
backgroundImageAsset: PageBlockImageReference
|
|
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()
|
|
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
|
-
|
|
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
|
}
|