@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.6

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 (41) hide show
  1. package/dist/browser/{DesignerIcon-DdfuH2jW.js → DesignerIcon-XKBRy_0Q.js} +640 -640
  2. package/dist/browser/createResourceDialog-Cf7QpXp6.js +505 -0
  3. package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
  4. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  5. package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
  6. package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
  7. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  8. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  9. package/dist/browser/dist-DxahK_I8.js +2688 -0
  10. package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
  11. package/dist/browser/{esm-C9jQK70n.js → esm-CTcBY7hh.js} +5 -6
  12. package/dist/browser/flow-authoring-module.d.ts +2 -2
  13. package/dist/browser/flow-authoring-node.d.ts +2 -2
  14. package/dist/browser/flow-authoring.js +475 -209
  15. package/dist/browser/flow-change.d.ts +98 -8
  16. package/dist/browser/flow-change.js +319 -96
  17. package/dist/browser/{flowChanges-Bs-ZcJV8.js → flowChanges-BDqD_Q4G.js} +1628 -1555
  18. package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-DDidwd8h.js} +9 -1
  19. package/dist/browser/{flowWorkspace-BewofPeU.js → flowWorkspace-CPBHm14t.js} +9803 -9769
  20. package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → getPseudoElementBounds-5LArT6Xc.js} +494 -474
  21. package/dist/browser/icons-CRxvozBE.js +726 -0
  22. package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-_TgJ_7Oq.js} +256 -257
  23. package/dist/browser/{waitNotificationInputs-DtrPBwA1.js → waitNotificationInputs-lPrLDTOd.js} +2 -2
  24. package/dist/browser/workbench.css +1 -1
  25. package/dist/browser/workbench.js +573 -578
  26. package/dist/browser/{workbenchSelect-CX8KtT7L.js → workbenchSelect-Cf1zlVm9.js} +398 -398
  27. package/dist/common/control-api-conformance.js +27 -19
  28. package/dist/common/control-api.d.ts +4 -11
  29. package/dist/common/control-api.js +6 -18
  30. package/dist/common/flow-encoding.js +4 -0
  31. package/dist/common/flow-semantics.js +8 -10
  32. package/dist/common/runtime-contract.d.ts +1 -1
  33. package/dist/common/runtime-contract.js +27 -0
  34. package/dist/common/scheduler.d.ts +1 -1
  35. package/dist/common/scheduler.js +17 -18
  36. package/dist/index.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
  39. package/dist/browser/dist-BpopSHwP.js +0 -1543
  40. package/dist/browser/dist-CUSrALSX.js +0 -1620
  41. package/dist/browser/icons-DRoMXL5h.js +0 -521
@@ -1,4 +1,4 @@
1
- import { c as e, d as t, f as n, h as r, l as i, m as a, u as o } from "./dist-BpopSHwP.js";
1
+ import { B as e, L as t, R as n, U as r, V as i, W as a, z as o } from "./dist-DxahK_I8.js";
2
2
  //#region ../../node_modules/.bun/@lezer+lr@1.4.10/node_modules/@lezer/lr/dist/index.js
3
3
  var s = class e {
4
4
  constructor(e, t, n, r, i, a, o, s, c, l = 0, u) {
@@ -435,12 +435,12 @@ function b(e, t, n, r) {
435
435
  return i < 0 || y(n, r, e) < i;
436
436
  }
437
437
  var x = typeof process < "u" && /\bparse\b/.test({}.LOG), S = null;
438
- function C(e, t, n) {
439
- let r = e.cursor(i.IncludeAnonymous);
440
- for (r.moveTo(t);;) if (!(n < 0 ? r.childBefore(t) : r.childAfter(t))) for (;;) {
441
- if ((n < 0 ? r.to < t : r.from > t) && !r.type.isError) return n < 0 ? Math.max(0, Math.min(r.to - 1, t - 25)) : Math.min(e.length, Math.max(r.from + 1, t + 25));
442
- if (n < 0 ? r.prevSibling() : r.nextSibling()) break;
443
- if (!r.parent()) return n < 0 ? 0 : e.length;
438
+ function C(e, t, r) {
439
+ let i = e.cursor(n.IncludeAnonymous);
440
+ for (i.moveTo(t);;) if (!(r < 0 ? i.childBefore(t) : i.childAfter(t))) for (;;) {
441
+ if ((r < 0 ? i.to < t : i.from > t) && !i.type.isError) return r < 0 ? Math.max(0, Math.min(i.to - 1, t - 25)) : Math.min(e.length, Math.max(i.from + 1, t + 25));
442
+ if (r < 0 ? i.prevSibling() : i.nextSibling()) break;
443
+ if (!i.parent()) return r < 0 ? 0 : e.length;
444
444
  }
445
445
  }
446
446
  var w = class {
@@ -461,24 +461,24 @@ var w = class {
461
461
  for (;;) {
462
462
  let t = this.trees.length - 1;
463
463
  if (t < 0) return this.nextFragment(), null;
464
- let n = this.trees[t], i = this.index[t];
465
- if (i == n.children.length) {
464
+ let n = this.trees[t], r = this.index[t];
465
+ if (r == n.children.length) {
466
466
  this.trees.pop(), this.start.pop(), this.index.pop();
467
467
  continue;
468
468
  }
469
- let a = n.children[i], s = this.start[t] + n.positions[i];
469
+ let i = n.children[r], s = this.start[t] + n.positions[r];
470
470
  if (s > e) return this.nextStart = s, null;
471
- if (a instanceof r) {
471
+ if (i instanceof a) {
472
472
  if (s == e) {
473
473
  if (s < this.safeFrom) return null;
474
- let e = s + a.length;
474
+ let e = s + i.length;
475
475
  if (e <= this.safeTo) {
476
- let t = a.prop(o.lookAhead);
477
- if (!t || e + t < this.fragment.to) return a;
476
+ let t = i.prop(o.lookAhead);
477
+ if (!t || e + t < this.fragment.to) return i;
478
478
  }
479
479
  }
480
- this.index[t]++, s + a.length >= Math.max(this.safeFrom, e) && (this.trees.push(a), this.start.push(s), this.index.push(0));
481
- } else this.index[t]++, this.nextStart = s + a.length;
480
+ this.index[t]++, s + i.length >= Math.max(this.safeFrom, e) && (this.trees.push(i), this.start.push(s), this.index.push(0));
481
+ } else this.index[t]++, this.nextStart = s + i.length;
482
482
  }
483
483
  }
484
484
  }, T = class {
@@ -602,27 +602,27 @@ var w = class {
602
602
  this.stoppedAt = e;
603
603
  }
604
604
  advanceStack(e, t, n) {
605
- let i = e.pos, { parser: a } = this, s = x ? this.stackID(e) + " -> " : "";
606
- if (this.stoppedAt != null && i > this.stoppedAt) return e.forceReduce() ? e : null;
605
+ let r = e.pos, { parser: i } = this, s = x ? this.stackID(e) + " -> " : "";
606
+ if (this.stoppedAt != null && r > this.stoppedAt) return e.forceReduce() ? e : null;
607
607
  if (this.fragments) {
608
608
  let t = e.curContext && e.curContext.tracker.strict, n = t ? e.curContext.hash : 0;
609
- for (let c = this.fragments.nodeAt(i); c;) {
610
- let i = this.parser.nodeSet.types[c.type.id] == c.type ? a.getGoto(e.state, c.type.id) : -1;
611
- if (i > -1 && c.length && (!t || (c.prop(o.contextHash) || 0) == n)) return e.useNode(c, i), x && console.log(s + this.stackID(e) + ` (via reuse of ${a.getName(c.type.id)})`), !0;
612
- if (!(c instanceof r) || c.children.length == 0 || c.positions[0] > 0) break;
609
+ for (let c = this.fragments.nodeAt(r); c;) {
610
+ let r = this.parser.nodeSet.types[c.type.id] == c.type ? i.getGoto(e.state, c.type.id) : -1;
611
+ if (r > -1 && c.length && (!t || (c.prop(o.contextHash) || 0) == n)) return e.useNode(c, r), x && console.log(s + this.stackID(e) + ` (via reuse of ${i.getName(c.type.id)})`), !0;
612
+ if (!(c instanceof a) || c.children.length == 0 || c.positions[0] > 0) break;
613
613
  let l = c.children[0];
614
- if (l instanceof r && c.positions[0] == 0) c = l;
614
+ if (l instanceof a && c.positions[0] == 0) c = l;
615
615
  else break;
616
616
  }
617
617
  }
618
- let c = a.stateSlot(e.state, 4);
619
- if (c > 0) return e.reduce(c), x && console.log(s + this.stackID(e) + ` (via always-reduce ${a.getName(c & 65535)})`), !0;
618
+ let c = i.stateSlot(e.state, 4);
619
+ if (c > 0) return e.reduce(c), x && console.log(s + this.stackID(e) + ` (via always-reduce ${i.getName(c & 65535)})`), !0;
620
620
  if (e.stack.length >= 8400) for (; e.stack.length > 6e3 && e.forceReduce(););
621
621
  let l = this.tokens.getActions(e);
622
- for (let r = 0; r < l.length;) {
623
- let o = l[r++], c = l[r++], u = l[r++], d = r == l.length || !n, f = d ? e : e.split(), p = this.tokens.mainToken;
624
- if (f.apply(o, c, p ? p.start : f.pos, u), x && console.log(s + this.stackID(f) + ` (via ${o & 65536 ? `reduce of ${a.getName(o & 65535)}` : "shift"} for ${a.getName(c)} @ ${i}${f == e ? "" : ", split"})`), d) return !0;
625
- f.pos > i ? t.push(f) : n.push(f);
622
+ for (let a = 0; a < l.length;) {
623
+ let o = l[a++], c = l[a++], u = l[a++], d = a == l.length || !n, f = d ? e : e.split(), p = this.tokens.mainToken;
624
+ if (f.apply(o, c, p ? p.start : f.pos, u), x && console.log(s + this.stackID(f) + ` (via ${o & 65536 ? `reduce of ${i.getName(o & 65535)}` : "shift"} for ${i.getName(c)} @ ${r}${f == e ? "" : ", split"})`), d) return !0;
625
+ f.pos > r ? t.push(f) : n.push(f);
626
626
  }
627
627
  return !1;
628
628
  }
@@ -646,7 +646,7 @@ var w = class {
646
646
  return r;
647
647
  }
648
648
  stackToTree(e) {
649
- return e.close(), r.build({
649
+ return e.close(), a.build({
650
650
  buffer: u.create(e),
651
651
  nodeSet: this.parser.nodeSet,
652
652
  topID: this.topTerm,
@@ -683,18 +683,18 @@ var O = class {
683
683
  constructor(e) {
684
684
  this.start = e.start, this.shift = e.shift || k, this.reduce = e.reduce || k, this.reuse = e.reuse || k, this.hash = e.hash || (() => 0), this.strict = e.strict !== !1;
685
685
  }
686
- }, j = class r extends a {
687
- constructor(r) {
688
- if (super(), this.wrappers = [], r.version != 14) throw RangeError(`Parser version (${r.version}) doesn't match runtime version (14)`);
689
- let i = r.nodeNames.split(" ");
690
- this.minRepeatTerm = i.length;
691
- for (let e = 0; e < r.repeatNodeCount; e++) i.push("");
692
- let a = Object.keys(r.topRules).map((e) => r.topRules[e][1]), s = [];
693
- for (let e = 0; e < i.length; e++) s.push([]);
686
+ }, j = class n extends r {
687
+ constructor(n) {
688
+ if (super(), this.wrappers = [], n.version != 14) throw RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);
689
+ let r = n.nodeNames.split(" ");
690
+ this.minRepeatTerm = r.length;
691
+ for (let e = 0; e < n.repeatNodeCount; e++) r.push("");
692
+ let a = Object.keys(n.topRules).map((e) => n.topRules[e][1]), s = [];
693
+ for (let e = 0; e < r.length; e++) s.push([]);
694
694
  function c(e, t, n) {
695
695
  s[e].push([t, t.deserialize(String(n))]);
696
696
  }
697
- if (r.nodeProps) for (let e of r.nodeProps) {
697
+ if (n.nodeProps) for (let e of n.nodeProps) {
698
698
  let t = e[0];
699
699
  typeof t == "string" && (t = o[t]);
700
700
  for (let n = 1; n < e.length;) {
@@ -707,18 +707,18 @@ var O = class {
707
707
  }
708
708
  }
709
709
  }
710
- this.nodeSet = new t(i.map((e, t) => n.define({
710
+ this.nodeSet = new e(r.map((e, t) => i.define({
711
711
  name: t >= this.minRepeatTerm ? void 0 : e,
712
712
  id: t,
713
713
  props: s[t],
714
714
  top: a.indexOf(t) > -1,
715
715
  error: t == 0,
716
- skipped: r.skippedNodes && r.skippedNodes.indexOf(t) > -1
717
- }))), r.propSources && (this.nodeSet = this.nodeSet.extend(...r.propSources)), this.strict = !1, this.bufferLength = e;
718
- let l = d(r.tokenData);
719
- this.context = r.context, this.specializerSpecs = r.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
716
+ skipped: n.skippedNodes && n.skippedNodes.indexOf(t) > -1
717
+ }))), n.propSources && (this.nodeSet = this.nodeSet.extend(...n.propSources)), this.strict = !1, this.bufferLength = t;
718
+ let l = d(n.tokenData);
719
+ this.context = n.context, this.specializerSpecs = n.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
720
720
  for (let e = 0; e < this.specializerSpecs.length; e++) this.specialized[e] = this.specializerSpecs[e].term;
721
- this.specializers = this.specializerSpecs.map(P), this.states = d(r.states, Uint32Array), this.data = d(r.stateData), this.goto = d(r.goto), this.maxTerm = r.maxTerm, this.tokenizers = r.tokenizers.map((e) => typeof e == "number" ? new h(l, e) : e), this.topRules = r.topRules, this.dialects = r.dialects || {}, this.dynamicPrecedences = r.dynamicPrecedences || null, this.tokenPrecTable = r.tokenPrec, this.termNames = r.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
721
+ this.specializers = this.specializerSpecs.map(P), this.states = d(n.states, Uint32Array), this.data = d(n.stateData), this.goto = d(n.goto), this.maxTerm = n.maxTerm, this.tokenizers = n.tokenizers.map((e) => typeof e == "number" ? new h(l, e) : e), this.topRules = n.topRules, this.dialects = n.dialects || {}, this.dynamicPrecedences = n.dynamicPrecedences || null, this.tokenPrecTable = n.tokenPrec, this.termNames = n.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
722
722
  }
723
723
  createParse(e, t, n) {
724
724
  let r = new E(this, e, t, n);
@@ -782,7 +782,7 @@ var O = class {
782
782
  return t;
783
783
  }
784
784
  configure(e) {
785
- let t = Object.assign(Object.create(r.prototype), this);
785
+ let t = Object.assign(Object.create(n.prototype), this);
786
786
  if (e.props && (t.nodeSet = this.nodeSet.extend(...e.props)), e.top) {
787
787
  let n = this.topRules[e.top];
788
788
  if (!n) throw RangeError(`Invalid top rule name ${e.top}`);
@@ -825,7 +825,7 @@ var O = class {
825
825
  return new O(e, n, r);
826
826
  }
827
827
  static deserialize(e) {
828
- return new r(e);
828
+ return new n(e);
829
829
  }
830
830
  };
831
831
  function M(e, t) {