@elyx-code/project-logic-tree 0.0.6654 → 0.0.6655

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.ts CHANGED
@@ -29060,11 +29060,15 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29060
29060
  onPersistChangeSetSequentially(callback: (changeSet: ChangeSet) => Promise<{
29061
29061
  success: boolean;
29062
29062
  }>): Promise<void>;
29063
+ offPersistChangeSetSequentially(): void;
29063
29064
  onPersistChangeSetInParallel(callback: (changeSet: ChangeSet) => Promise<{
29064
29065
  success: boolean;
29065
29066
  }>): Promise<void>;
29067
+ offPersistChangeSetInParallel(): void;
29066
29068
  onAddChangeSet(callback: (changeSet: ChangeSet, undoableStackValueIndex: number) => void): void;
29069
+ offAddChangeSet(): void;
29067
29070
  onDiscardChangeSet(callback: (changeSet: ChangeSet) => void): void;
29071
+ offDiscardChangeSet(): void;
29068
29072
  persistChangeSetSequentially(changeSet: ChangeSet): Promise<void>;
29069
29073
  persistChangeSetInParallel(changeSet: ChangeSet): Promise<void>;
29070
29074
  toLatestChangeSet(author: string, timestamp: string, // ISO 8601 format
package/dist/index.js CHANGED
@@ -195145,6 +195145,9 @@ const lZ = {
195145
195145
  "[ProjectState.onPersistChangeSetSequentially] onPersistChangeSetSequentiallyCallback has been set. Checking for pending change-sets."
195146
195146
  ), await this.closePersistChangeSetsSequentially();
195147
195147
  }
195148
+ offPersistChangeSetSequentially() {
195149
+ this.onPersistChangeSetSequentiallyCallback = null;
195150
+ }
195148
195151
  async onPersistChangeSetInParallel(i) {
195149
195152
  this.onPersistChangeSetInParallelCallback = i, ie.log(
195150
195153
  "[ProjectState.onPersistChangeSetInParallel] onPersistChangeSetInParallelCallback has been set. Checking for pending change-sets."
@@ -195152,12 +195155,21 @@ const lZ = {
195152
195155
  for (const n of this.history)
195153
195156
  this.persistChangeSetInParallel(n), await new Promise((l) => setTimeout(l, 27));
195154
195157
  }
195158
+ offPersistChangeSetInParallel() {
195159
+ this.onPersistChangeSetInParallelCallback = null;
195160
+ }
195155
195161
  onAddChangeSet(i) {
195156
195162
  this.onAddChangeSetCallback = i;
195157
195163
  }
195164
+ offAddChangeSet() {
195165
+ this.onAddChangeSetCallback = null;
195166
+ }
195158
195167
  onDiscardChangeSet(i) {
195159
195168
  this.onDiscardChangeSetCallback = i;
195160
195169
  }
195170
+ offDiscardChangeSet() {
195171
+ this.onDiscardChangeSetCallback = null;
195172
+ }
195161
195173
  async persistChangeSetSequentially(i) {
195162
195174
  if (ie.log(
195163
195175
  `[ProjectState.persistChangeSetSequentially] called for change-set ${i.id} - ${i.autoCloseActionName}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6654",
3
+ "version": "0.0.6655",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",