@supernova-studio/client 0.49.1 → 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
@@ -19531,6 +19531,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
19531
19531
  } | null | undefined;
19532
19532
  } | null | undefined;
19533
19533
  } | null | undefined;
19534
+ imageAlt?: string | null | undefined;
19535
+ imageCaption?: string | null | undefined;
19534
19536
  }[] | null | undefined;
19535
19537
  customBlockKey?: string | null | undefined;
19536
19538
  customBlockProperties?: {
@@ -20094,6 +20096,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20094
20096
  } | null | undefined;
20095
20097
  } | null | undefined;
20096
20098
  } | null | undefined;
20099
+ imageAlt?: string | null | undefined;
20100
+ imageCaption?: string | null | undefined;
20097
20101
  }[] | null | undefined;
20098
20102
  customBlockKey?: string | null | undefined;
20099
20103
  customBlockProperties?: {
@@ -20881,6 +20885,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20881
20885
  } | null | undefined;
20882
20886
  } | null | undefined;
20883
20887
  } | null | undefined;
20888
+ imageAlt?: string | null | undefined;
20889
+ imageCaption?: string | null | undefined;
20884
20890
  }[] | null | undefined;
20885
20891
  customBlockKey?: string | null | undefined;
20886
20892
  customBlockProperties?: {
@@ -21097,6 +21103,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21097
21103
  } | null | undefined;
21098
21104
  } | null | undefined;
21099
21105
  } | null | undefined;
21106
+ imageAlt?: string | null | undefined;
21107
+ imageCaption?: string | null | undefined;
21100
21108
  }[] | null | undefined;
21101
21109
  customBlockKey?: string | null | undefined;
21102
21110
  customBlockProperties?: {
@@ -21431,6 +21439,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21431
21439
  } | null | undefined;
21432
21440
  } | null | undefined;
21433
21441
  } | null | undefined;
21442
+ imageAlt?: string | null | undefined;
21443
+ imageCaption?: string | null | undefined;
21434
21444
  }[] | null | undefined;
21435
21445
  customBlockKey?: string | null | undefined;
21436
21446
  customBlockProperties?: {
@@ -21647,6 +21657,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21647
21657
  } | null | undefined;
21648
21658
  } | null | undefined;
21649
21659
  } | null | undefined;
21660
+ imageAlt?: string | null | undefined;
21661
+ imageCaption?: string | null | undefined;
21650
21662
  }[] | null | undefined;
21651
21663
  customBlockKey?: string | null | undefined;
21652
21664
  customBlockProperties?: {
@@ -42854,7 +42866,7 @@ type DocumentationHierarchyTransaction = {
42854
42866
  pageSnapshotIdsToDelete?: string[];
42855
42867
  groupSnapshots?: ElementGroupSnapshot[];
42856
42868
  groupSnapshotIdsToDelete?: string[];
42857
- internalSettings?: DocumentationHierarchySettings;
42869
+ internalSettings?: Partial<DocumentationHierarchySettings>;
42858
42870
  pageHashesToUpdate?: Record<string, string>;
42859
42871
  pageApprovals?: DocumentationPageApproval[];
42860
42872
  pageApprovalIdsToDelete?: string[];
@@ -42877,7 +42889,7 @@ declare class VersionRoomBaseYDoc {
42877
42889
  deleteGroups(ids: string[]): void;
42878
42890
  private get groupsYMap();
42879
42891
  getDocumentationInternalSettings(): DocumentationHierarchySettings;
42880
- updateDocumentationInternalSettings(settings: DocumentationHierarchySettings): void;
42892
+ updateDocumentationInternalSettings(settings: Partial<DocumentationHierarchySettings>): void;
42881
42893
  private get internalSettingsYMap();
42882
42894
  getPageSnapshots(): DocumentationPageSnapshot[];
42883
42895
  updatePageSnapshots(snapshots: DocumentationPageSnapshot[]): void;
package/dist/index.d.ts CHANGED
@@ -19531,6 +19531,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
19531
19531
  } | null | undefined;
19532
19532
  } | null | undefined;
19533
19533
  } | null | undefined;
19534
+ imageAlt?: string | null | undefined;
19535
+ imageCaption?: string | null | undefined;
19534
19536
  }[] | null | undefined;
19535
19537
  customBlockKey?: string | null | undefined;
19536
19538
  customBlockProperties?: {
@@ -20094,6 +20096,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20094
20096
  } | null | undefined;
20095
20097
  } | null | undefined;
20096
20098
  } | null | undefined;
20099
+ imageAlt?: string | null | undefined;
20100
+ imageCaption?: string | null | undefined;
20097
20101
  }[] | null | undefined;
20098
20102
  customBlockKey?: string | null | undefined;
20099
20103
  customBlockProperties?: {
@@ -20881,6 +20885,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20881
20885
  } | null | undefined;
20882
20886
  } | null | undefined;
20883
20887
  } | null | undefined;
20888
+ imageAlt?: string | null | undefined;
20889
+ imageCaption?: string | null | undefined;
20884
20890
  }[] | null | undefined;
20885
20891
  customBlockKey?: string | null | undefined;
20886
20892
  customBlockProperties?: {
@@ -21097,6 +21103,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21097
21103
  } | null | undefined;
21098
21104
  } | null | undefined;
21099
21105
  } | null | undefined;
21106
+ imageAlt?: string | null | undefined;
21107
+ imageCaption?: string | null | undefined;
21100
21108
  }[] | null | undefined;
21101
21109
  customBlockKey?: string | null | undefined;
21102
21110
  customBlockProperties?: {
@@ -21431,6 +21439,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21431
21439
  } | null | undefined;
21432
21440
  } | null | undefined;
21433
21441
  } | null | undefined;
21442
+ imageAlt?: string | null | undefined;
21443
+ imageCaption?: string | null | undefined;
21434
21444
  }[] | null | undefined;
21435
21445
  customBlockKey?: string | null | undefined;
21436
21446
  customBlockProperties?: {
@@ -21647,6 +21657,8 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21647
21657
  } | null | undefined;
21648
21658
  } | null | undefined;
21649
21659
  } | null | undefined;
21660
+ imageAlt?: string | null | undefined;
21661
+ imageCaption?: string | null | undefined;
21650
21662
  }[] | null | undefined;
21651
21663
  customBlockKey?: string | null | undefined;
21652
21664
  customBlockProperties?: {
@@ -42854,7 +42866,7 @@ type DocumentationHierarchyTransaction = {
42854
42866
  pageSnapshotIdsToDelete?: string[];
42855
42867
  groupSnapshots?: ElementGroupSnapshot[];
42856
42868
  groupSnapshotIdsToDelete?: string[];
42857
- internalSettings?: DocumentationHierarchySettings;
42869
+ internalSettings?: Partial<DocumentationHierarchySettings>;
42858
42870
  pageHashesToUpdate?: Record<string, string>;
42859
42871
  pageApprovals?: DocumentationPageApproval[];
42860
42872
  pageApprovalIdsToDelete?: string[];
@@ -42877,7 +42889,7 @@ declare class VersionRoomBaseYDoc {
42877
42889
  deleteGroups(ids: string[]): void;
42878
42890
  private get groupsYMap();
42879
42891
  getDocumentationInternalSettings(): DocumentationHierarchySettings;
42880
- updateDocumentationInternalSettings(settings: DocumentationHierarchySettings): void;
42892
+ updateDocumentationInternalSettings(settings: Partial<DocumentationHierarchySettings>): void;
42881
42893
  private get internalSettingsYMap();
42882
42894
  getPageSnapshots(): DocumentationPageSnapshot[];
42883
42895
  updatePageSnapshots(snapshots: DocumentationPageSnapshot[]): void;
package/dist/index.js CHANGED
@@ -1738,7 +1738,9 @@ var PageBlockText = _zod.z.object({
1738
1738
  var PageBlockGuideline = _zod.z.object({
1739
1739
  description: nullishToOptional(_zod.z.string()),
1740
1740
  asset: nullishToOptional(PageBlockAsset),
1741
- type: _zod.z.string()
1741
+ type: _zod.z.string(),
1742
+ imageAlt: nullishToOptional(_zod.z.string()),
1743
+ imageCaption: nullishToOptional(_zod.z.string())
1742
1744
  });
1743
1745
  var PageBlockBaseV1 = _zod.z.object({
1744
1746
  persistentId: _zod.z.string(),
@@ -6326,9 +6328,9 @@ var VersionRoomBaseYDoc = class {
6326
6328
  }
6327
6329
  updateDocumentationInternalSettings(settings) {
6328
6330
  const map = this.internalSettingsYMap;
6329
- map.set("routingVersion", settings.routingVersion);
6330
- map.set("isDraftFeatureAdopted", settings.isDraftFeatureAdopted);
6331
- 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"))));
6332
6334
  }
6333
6335
  get internalSettingsYMap() {
6334
6336
  return this.yDoc.getMap("documentationInternalSettings");