@supernova-studio/client 0.49.2 → 0.50.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
@@ -6328,9 +6328,9 @@ var VersionRoomBaseYDoc = class {
6328
6328
  }
6329
6329
  updateDocumentationInternalSettings(settings) {
6330
6330
  const map = this.internalSettingsYMap;
6331
- map.set("routingVersion", settings.routingVersion);
6332
- map.set("isDraftFeatureAdopted", settings.isDraftFeatureAdopted);
6333
- map.set("isApprovalFeatureEnabled", settings.isApprovalFeatureEnabled);
6331
+ map.set("routingVersion", settings.routingVersion ?? map.get("routingVersion"));
6332
+ map.set("isDraftFeatureAdopted", settings.isDraftFeatureAdopted ?? map.get("isDraftFeatureAdopted"));
6333
+ map.set("isApprovalFeatureEnabled", settings.isApprovalFeatureEnabled ?? map.get("isApprovalFeatureEnabled"));
6334
6334
  }
6335
6335
  get internalSettingsYMap() {
6336
6336
  return this.yDoc.getMap("documentationInternalSettings");