footprintjs 9.40.1 → 9.41.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.
Files changed (57) hide show
  1. package/dist/esm/lib/builder/FlowChartBuilder.d.ts +10 -3
  2. package/dist/esm/lib/builder/FlowChartBuilder.js +93 -86
  3. package/dist/esm/lib/capture/freeze.d.ts +1 -1
  4. package/dist/esm/lib/capture/freeze.js +2 -2
  5. package/dist/esm/lib/engine/traversal/FlowchartTraverser.js +3 -3
  6. package/dist/esm/lib/memory/StageContext.d.ts +16 -0
  7. package/dist/esm/lib/memory/StageContext.js +35 -40
  8. package/dist/esm/lib/reactive/types.js +4 -4
  9. package/dist/esm/lib/recorder/hooks.d.ts +2 -2
  10. package/dist/esm/lib/recorder/hooks.js +2 -2
  11. package/dist/esm/lib/recorder/snapshot.d.ts +1 -1
  12. package/dist/esm/lib/recorder/snapshot.js +2 -2
  13. package/dist/esm/lib/runner/FlowChartExecutor.d.ts +93 -377
  14. package/dist/esm/lib/runner/FlowChartExecutor.js +184 -1059
  15. package/dist/esm/lib/runner/attach.d.ts +95 -0
  16. package/dist/esm/lib/runner/attach.js +247 -0
  17. package/dist/esm/lib/runner/checkpoint.d.ts +69 -0
  18. package/dist/esm/lib/runner/checkpoint.js +254 -0
  19. package/dist/esm/lib/runner/index.d.ts +1 -1
  20. package/dist/esm/lib/runner/index.js +1 -1
  21. package/dist/esm/lib/runner/options.d.ts +79 -0
  22. package/dist/esm/lib/runner/options.js +31 -0
  23. package/dist/esm/lib/runner/resume.d.ts +73 -0
  24. package/dist/esm/lib/runner/resume.js +301 -0
  25. package/dist/esm/lib/runner/snapshot.d.ts +41 -0
  26. package/dist/esm/lib/runner/snapshot.js +93 -0
  27. package/dist/lib/builder/FlowChartBuilder.js +93 -86
  28. package/dist/lib/capture/freeze.js +2 -2
  29. package/dist/lib/engine/traversal/FlowchartTraverser.js +3 -3
  30. package/dist/lib/memory/StageContext.js +35 -40
  31. package/dist/lib/reactive/types.js +4 -4
  32. package/dist/lib/recorder/hooks.js +2 -2
  33. package/dist/lib/recorder/snapshot.js +2 -2
  34. package/dist/lib/runner/FlowChartExecutor.js +182 -1057
  35. package/dist/lib/runner/attach.js +251 -0
  36. package/dist/lib/runner/checkpoint.js +258 -0
  37. package/dist/lib/runner/index.js +1 -1
  38. package/dist/lib/runner/options.js +35 -0
  39. package/dist/lib/runner/resume.js +307 -0
  40. package/dist/lib/runner/snapshot.js +98 -0
  41. package/dist/types/lib/builder/FlowChartBuilder.d.ts +10 -3
  42. package/dist/types/lib/capture/freeze.d.ts +1 -1
  43. package/dist/types/lib/memory/StageContext.d.ts +16 -0
  44. package/dist/types/lib/recorder/hooks.d.ts +2 -2
  45. package/dist/types/lib/recorder/snapshot.d.ts +1 -1
  46. package/dist/types/lib/runner/FlowChartExecutor.d.ts +93 -377
  47. package/dist/types/lib/runner/attach.d.ts +95 -0
  48. package/dist/types/lib/runner/checkpoint.d.ts +69 -0
  49. package/dist/types/lib/runner/index.d.ts +1 -1
  50. package/dist/types/lib/runner/options.d.ts +79 -0
  51. package/dist/types/lib/runner/resume.d.ts +73 -0
  52. package/dist/types/lib/runner/snapshot.d.ts +41 -0
  53. package/package.json +1 -1
  54. package/dist/esm/lib/runner/checkpointSanitize.d.ts +0 -44
  55. package/dist/esm/lib/runner/checkpointSanitize.js +0 -133
  56. package/dist/lib/runner/checkpointSanitize.js +0 -138
  57. package/dist/types/lib/runner/checkpointSanitize.d.ts +0 -44
@@ -664,9 +664,16 @@ export declare class FlowChartBuilder<TOut = any, TScope = any> {
664
664
  * function at RUN time). Kept as the builder's door for its mount sites.
665
665
  */
666
666
  _prefixNodeTree(node: StageNode<TOut, TScope>, prefix: string): StageNode<TOut, TScope>;
667
- _mergeSubflows(subflows: Record<string, {
668
- root: StageNode<TOut, TScope>;
669
- }> | undefined, prefix: string): void;
667
+ /**
668
+ * THE mount of a subflow chart under `id` (F10) — every eager mount site
669
+ * (`addSubFlowChart`, `addSubFlowChartNext`, a decider/selector
670
+ * `addSubFlowChartBranch`) goes through it, and it is the one caller of the
671
+ * prefixer. In order: register the chart's prefixed root under `id`;
672
+ * `place` the mount's own node + spec and fire its structure events; merge
673
+ * the chart's stage map under `id`; register its nested subflows under
674
+ * `id/<key>` (a key already registered is kept).
675
+ */
676
+ _mountSubflow(id: string, subflow: FlowChart<any, any>, place: () => void): void;
670
677
  }
671
678
  /**
672
679
  * Start a flowchart with its first stage; returns a fluent builder.