@flowgram.ai/variable-core 0.3.0 → 0.3.2

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/esm/index.js CHANGED
@@ -414,7 +414,6 @@ var ASTNode = class _ASTNode {
414
414
  this.opts = opts;
415
415
  this.key = key || nanoid();
416
416
  this.fromJSON = this.withBatchUpdate(this.fromJSON.bind(this));
417
- this.dispatchGlobalEvent({ type: "NewAST" });
418
417
  }
419
418
  /**
420
419
  * AST 节点的类型
@@ -1497,6 +1496,7 @@ var ASTRegisters = class {
1497
1496
  node.changeLocked = true;
1498
1497
  node.fromJSON(omit(json, ["key", "kind"]));
1499
1498
  node.changeLocked = false;
1499
+ node.dispatchGlobalEvent({ type: "NewAST" });
1500
1500
  if (Reflect.hasMetadata(POST_CONSTRUCT_AST_SYMBOL, node)) {
1501
1501
  const postConstructKey = Reflect.getMetadata(POST_CONSTRUCT_AST_SYMBOL, node);
1502
1502
  node[postConstructKey]?.();