@supernova-studio/client 1.3.6 → 1.3.8

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
@@ -13604,10 +13604,9 @@ var LocalDocsElementActionExecutor = class {
13604
13604
  return this.documentationGroupCreate(trx);
13605
13605
  case "DocumentationGroupUpdate":
13606
13606
  return this.documentationGroupUpdate(trx);
13607
- case "DocumentationGroupDelete":
13608
- return this.documentationGroupDelete(trx);
13609
13607
  case "DocumentationGroupMove":
13610
13608
  return this.documentationGroupMove(trx);
13609
+ case "DocumentationGroupDelete":
13611
13610
  case "DocumentationGroupDuplicate":
13612
13611
  case "DocumentationGroupRestore":
13613
13612
  throw new Error(`Transaction type ${trx.type} is not yet implemented`);
@@ -13774,12 +13773,6 @@ var LocalDocsElementActionExecutor = class {
13774
13773
  };
13775
13774
  this.groups.set(localGroup.persistentId, localGroup);
13776
13775
  }
13777
- documentationGroupDelete(trx) {
13778
- const { input } = trx;
13779
- if (!this.groups.delete(trx.input.id)) {
13780
- throw new Error(`Cannot delete group: group id ${input.id} was not found`);
13781
- }
13782
- }
13783
13776
  //
13784
13777
  // Tabs
13785
13778
  //
@@ -13959,6 +13952,8 @@ var DocsStructureRepository = class {
13959
13952
  try {
13960
13953
  return await this.transactionExecutor(action.action);
13961
13954
  } catch (e) {
13955
+ this.localActions = this.localActions.filter((a) => a.tId !== action.action.tId);
13956
+ this.refreshHierarchy();
13962
13957
  this.errorObservers.forEach((o) => o(e, action.metadata));
13963
13958
  }
13964
13959
  }