@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.d.mts CHANGED
@@ -42866,7 +42866,7 @@ type DocumentationHierarchyTransaction = {
42866
42866
  pageSnapshotIdsToDelete?: string[];
42867
42867
  groupSnapshots?: ElementGroupSnapshot[];
42868
42868
  groupSnapshotIdsToDelete?: string[];
42869
- internalSettings?: DocumentationHierarchySettings;
42869
+ internalSettings?: Partial<DocumentationHierarchySettings>;
42870
42870
  pageHashesToUpdate?: Record<string, string>;
42871
42871
  pageApprovals?: DocumentationPageApproval[];
42872
42872
  pageApprovalIdsToDelete?: string[];
@@ -42889,7 +42889,7 @@ declare class VersionRoomBaseYDoc {
42889
42889
  deleteGroups(ids: string[]): void;
42890
42890
  private get groupsYMap();
42891
42891
  getDocumentationInternalSettings(): DocumentationHierarchySettings;
42892
- updateDocumentationInternalSettings(settings: DocumentationHierarchySettings): void;
42892
+ updateDocumentationInternalSettings(settings: Partial<DocumentationHierarchySettings>): void;
42893
42893
  private get internalSettingsYMap();
42894
42894
  getPageSnapshots(): DocumentationPageSnapshot[];
42895
42895
  updatePageSnapshots(snapshots: DocumentationPageSnapshot[]): void;
package/dist/index.d.ts CHANGED
@@ -42866,7 +42866,7 @@ type DocumentationHierarchyTransaction = {
42866
42866
  pageSnapshotIdsToDelete?: string[];
42867
42867
  groupSnapshots?: ElementGroupSnapshot[];
42868
42868
  groupSnapshotIdsToDelete?: string[];
42869
- internalSettings?: DocumentationHierarchySettings;
42869
+ internalSettings?: Partial<DocumentationHierarchySettings>;
42870
42870
  pageHashesToUpdate?: Record<string, string>;
42871
42871
  pageApprovals?: DocumentationPageApproval[];
42872
42872
  pageApprovalIdsToDelete?: string[];
@@ -42889,7 +42889,7 @@ declare class VersionRoomBaseYDoc {
42889
42889
  deleteGroups(ids: string[]): void;
42890
42890
  private get groupsYMap();
42891
42891
  getDocumentationInternalSettings(): DocumentationHierarchySettings;
42892
- updateDocumentationInternalSettings(settings: DocumentationHierarchySettings): void;
42892
+ updateDocumentationInternalSettings(settings: Partial<DocumentationHierarchySettings>): void;
42893
42893
  private get internalSettingsYMap();
42894
42894
  getPageSnapshots(): DocumentationPageSnapshot[];
42895
42895
  updatePageSnapshots(snapshots: DocumentationPageSnapshot[]): void;
package/dist/index.js 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", _nullishCoalesce(settings.routingVersion, () => ( map.get("routingVersion"))));
6332
+ map.set("isDraftFeatureAdopted", _nullishCoalesce(settings.isDraftFeatureAdopted, () => ( map.get("isDraftFeatureAdopted"))));
6333
+ map.set("isApprovalFeatureEnabled", _nullishCoalesce(settings.isApprovalFeatureEnabled, () => ( map.get("isApprovalFeatureEnabled"))));
6334
6334
  }
6335
6335
  get internalSettingsYMap() {
6336
6336
  return this.yDoc.getMap("documentationInternalSettings");