@supernova-studio/client 0.47.70 → 0.47.71

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
@@ -2865,7 +2865,8 @@ var DesignSystemVersionRoomUpdate = z123.object({
2865
2865
  pageSnapshots: z123.array(DocumentationPageSnapshot),
2866
2866
  groupSnapshots: z123.array(ElementGroupSnapshot),
2867
2867
  pageSnapshotIdsToDelete: z123.array(z123.string()),
2868
- groupSnapshotIdsToDelete: z123.array(z123.string())
2868
+ groupSnapshotIdsToDelete: z123.array(z123.string()),
2869
+ pageHashesToUpdate: z123.record(z123.string(), z123.string())
2869
2870
  });
2870
2871
  var DocumentationPageRoom = Entity.extend({
2871
2872
  designSystemVersionId: z124.string(),
@@ -2885,6 +2886,17 @@ var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.ex
2885
2886
  pageItems: z124.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2886
2887
  blockDefinitions: z124.array(PageBlockDefinition)
2887
2888
  });
2889
+ var RestoredDocumentationPage = z124.object({
2890
+ page: DocumentationPageV2,
2891
+ pageParent: ElementGroup,
2892
+ pageContent: DocumentationPageContentData,
2893
+ contentHash: z124.string(),
2894
+ roomId: z124.string().optional()
2895
+ });
2896
+ var RestoredDocumentationGroup = z124.object({
2897
+ group: ElementGroup,
2898
+ parent: ElementGroup
2899
+ });
2888
2900
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2889
2901
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
2890
2902
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
@@ -5093,6 +5105,14 @@ var DTODeleteDocumentationPageInputV2 = z184.object({
5093
5105
  // Identifier
5094
5106
  id: z184.string()
5095
5107
  });
5108
+ var DTORestoreDocumentationPageInput = z184.object({
5109
+ persistentId: z184.string(),
5110
+ snapshotId: z184.string().optional()
5111
+ });
5112
+ var DTORestoreDocumentationGroupInput = z184.object({
5113
+ persistentId: z184.string(),
5114
+ snapshotId: z184.string().optional()
5115
+ });
5096
5116
 
5097
5117
  // src/api/dto/documentation/documentation-page-snapshot.ts
5098
5118
  var DTODocumentationPageSnapshot = z185.object({
@@ -5471,6 +5491,14 @@ var DTODocumentationPageDeleteActionOutputV2 = z196.object({
5471
5491
  type: z196.literal("DocumentationPageDelete"),
5472
5492
  output: SuccessPayload2
5473
5493
  });
5494
+ var DTODocumentationPageRestoreActionOutput = z196.object({
5495
+ type: z196.literal("DocumentationPageRestore"),
5496
+ output: SuccessPayload2
5497
+ });
5498
+ var DTODocumentationGroupRestoreActionOutput = z196.object({
5499
+ type: z196.literal("DocumentationGroupRestore"),
5500
+ output: SuccessPayload2
5501
+ });
5474
5502
  var DTODocumentationPageCreateActionInputV2 = z196.object({
5475
5503
  type: z196.literal("DocumentationPageCreate"),
5476
5504
  input: DTOCreateDocumentationPageInputV2
@@ -5491,6 +5519,14 @@ var DTODocumentationPageDeleteActionInputV2 = z196.object({
5491
5519
  type: z196.literal("DocumentationPageDelete"),
5492
5520
  input: DTODeleteDocumentationPageInputV2
5493
5521
  });
5522
+ var DTODocumentationPageRestoreActionInput = z196.object({
5523
+ type: z196.literal("DocumentationPageRestore"),
5524
+ input: DTORestoreDocumentationPageInput
5525
+ });
5526
+ var DTODocumentationGroupRestoreActionInput = z196.object({
5527
+ type: z196.literal("DocumentationGroupRestore"),
5528
+ input: DTORestoreDocumentationGroupInput
5529
+ });
5494
5530
 
5495
5531
  // src/api/dto/elements/documentation/page-content.ts
5496
5532
  import { z as z197 } from "zod";
@@ -5658,7 +5694,10 @@ var DTOElementActionOutput = z204.discriminatedUnion("type", [
5658
5694
  // Properties Definitions
5659
5695
  DTOPropertyDefinitionCreateActionOutputV2,
5660
5696
  DTOPropertyDefinitionUpdateActionOutputV2,
5661
- DTOPropertyDefinitionDeleteActionOutputV2
5697
+ DTOPropertyDefinitionDeleteActionOutputV2,
5698
+ // Restore
5699
+ DTODocumentationPageRestoreActionOutput,
5700
+ DTODocumentationGroupRestoreActionOutput
5662
5701
  ]);
5663
5702
  var DTOElementActionInput = z204.discriminatedUnion("type", [
5664
5703
  // Documentation pages
@@ -5680,7 +5719,10 @@ var DTOElementActionInput = z204.discriminatedUnion("type", [
5680
5719
  // Properties Definitions
5681
5720
  DTOPropertyDefinitionCreateActionInputV2,
5682
5721
  DTOPropertyDefinitionUpdateActionInputV2,
5683
- DTOPropertyDefinitionDeleteActionInputV2
5722
+ DTOPropertyDefinitionDeleteActionInputV2,
5723
+ // Restore
5724
+ DTODocumentationPageRestoreActionInput,
5725
+ DTODocumentationGroupRestoreActionInput
5684
5726
  ]);
5685
5727
 
5686
5728
  // src/api/dto/elements/get-elements-v2.ts
@@ -7122,6 +7164,9 @@ var ListTreeBuilder = class {
7122
7164
  };
7123
7165
 
7124
7166
  // src/yjs/docs-editor/blocks-to-prosemirror.ts
7167
+ function pageToYDoc(doc, page, definitions) {
7168
+ pageToYXmlFragment(page, definitions, doc.getXmlFragment("default"));
7169
+ }
7125
7170
  function pageToYXmlFragment(page, definitions, fragment) {
7126
7171
  const doc = pageToProsemirrorDoc(page, definitions);
7127
7172
  return prosemirrorJSONToYXmlFragment(pmSchema, doc, fragment);
@@ -10682,6 +10727,7 @@ var BackendVersionRoomYDoc = class {
10682
10727
  transaction.groupSnapshotIdsToDelete && yDoc.deleteGroupSnapshots(transaction.groupSnapshotIdsToDelete);
10683
10728
  transaction.groupSnapshots && yDoc.updateGroupSnapshots(transaction.groupSnapshots);
10684
10729
  transaction.internalSettings && yDoc.updateDocumentationInternalSettings(transaction.internalSettings);
10730
+ transaction.pageHashesToUpdate && yDoc.updateDocumentationPageContentHashes(transaction.pageHashesToUpdate);
10685
10731
  });
10686
10732
  }
10687
10733
  };
@@ -10733,6 +10779,8 @@ export {
10733
10779
  DTODocumentationGroupDuplicateActionOutputV2,
10734
10780
  DTODocumentationGroupMoveActionInputV2,
10735
10781
  DTODocumentationGroupMoveActionOutputV2,
10782
+ DTODocumentationGroupRestoreActionInput,
10783
+ DTODocumentationGroupRestoreActionOutput,
10736
10784
  DTODocumentationGroupStructureV1,
10737
10785
  DTODocumentationGroupUpdateActionInputV2,
10738
10786
  DTODocumentationGroupUpdateActionOutputV2,
@@ -10755,6 +10803,8 @@ export {
10755
10803
  DTODocumentationPageDuplicateActionOutputV2,
10756
10804
  DTODocumentationPageMoveActionInputV2,
10757
10805
  DTODocumentationPageMoveActionOutputV2,
10806
+ DTODocumentationPageRestoreActionInput,
10807
+ DTODocumentationPageRestoreActionOutput,
10758
10808
  DTODocumentationPageRoomHeaderData,
10759
10809
  DTODocumentationPageRoomHeaderDataUpdate,
10760
10810
  DTODocumentationPageSnapshot,
@@ -10839,6 +10889,8 @@ export {
10839
10889
  DTOPublishDocumentationRequest,
10840
10890
  DTOPublishDocumentationResponse,
10841
10891
  DTORenderedAssetFile,
10892
+ DTORestoreDocumentationGroupInput,
10893
+ DTORestoreDocumentationPageInput,
10842
10894
  DTOUpdateDocumentationGroupInput,
10843
10895
  DTOUpdateDocumentationPageInputV2,
10844
10896
  DTOUpdateElementPropertyDefinitionInputV2,
@@ -10895,6 +10947,7 @@ export {
10895
10947
  integrationToDto,
10896
10948
  itemConfigurationToYjs,
10897
10949
  pageToProsemirrorDoc,
10950
+ pageToYDoc,
10898
10951
  pageToYXmlFragment,
10899
10952
  pipelineToDto,
10900
10953
  pmSchema,