@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.
- package/dist/browser/{DesignerIcon-DdfuH2jW.js → DesignerIcon-XKBRy_0Q.js} +640 -640
- package/dist/browser/createResourceDialog-Cf7QpXp6.js +505 -0
- package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
- package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
- package/dist/browser/{esm-C9jQK70n.js → esm-CTcBY7hh.js} +5 -6
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +2 -2
- package/dist/browser/flow-authoring.js +475 -209
- package/dist/browser/flow-change.d.ts +98 -8
- package/dist/browser/flow-change.js +319 -96
- package/dist/browser/{flowChanges-Bs-ZcJV8.js → flowChanges-BDqD_Q4G.js} +1628 -1555
- package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-DDidwd8h.js} +9 -1
- package/dist/browser/{flowWorkspace-BewofPeU.js → flowWorkspace-CPBHm14t.js} +9803 -9769
- package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → getPseudoElementBounds-5LArT6Xc.js} +494 -474
- package/dist/browser/icons-CRxvozBE.js +726 -0
- package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-_TgJ_7Oq.js} +256 -257
- package/dist/browser/{waitNotificationInputs-DtrPBwA1.js → waitNotificationInputs-lPrLDTOd.js} +2 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +573 -578
- package/dist/browser/{workbenchSelect-CX8KtT7L.js → workbenchSelect-Cf1zlVm9.js} +398 -398
- package/dist/common/control-api-conformance.js +27 -19
- package/dist/common/control-api.d.ts +4 -11
- package/dist/common/control-api.js +6 -18
- package/dist/common/flow-encoding.js +4 -0
- package/dist/common/flow-semantics.js +8 -10
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +27 -0
- package/dist/common/scheduler.d.ts +1 -1
- package/dist/common/scheduler.js +17 -18
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/icons-DRoMXL5h.js +0 -521
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
439
|
-
let
|
|
440
|
-
for (
|
|
441
|
-
if ((
|
|
442
|
-
if (
|
|
443
|
-
if (!
|
|
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],
|
|
465
|
-
if (
|
|
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
|
|
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 (
|
|
471
|
+
if (i instanceof a) {
|
|
472
472
|
if (s == e) {
|
|
473
473
|
if (s < this.safeFrom) return null;
|
|
474
|
-
let e = s +
|
|
474
|
+
let e = s + i.length;
|
|
475
475
|
if (e <= this.safeTo) {
|
|
476
|
-
let t =
|
|
477
|
-
if (!t || e + t < this.fragment.to) return
|
|
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 +
|
|
481
|
-
} else this.index[t]++, this.nextStart = s +
|
|
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
|
|
606
|
-
if (this.stoppedAt != 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(
|
|
610
|
-
let
|
|
611
|
-
if (
|
|
612
|
-
if (!(c instanceof
|
|
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
|
|
614
|
+
if (l instanceof a && c.positions[0] == 0) c = l;
|
|
615
615
|
else break;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
let c =
|
|
619
|
-
if (c > 0) return e.reduce(c), x && console.log(s + this.stackID(e) + ` (via always-reduce ${
|
|
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
|
|
623
|
-
let o = l[
|
|
624
|
-
if (f.apply(o, c, p ? p.start : f.pos, u), x && console.log(s + this.stackID(f) + ` (via ${o & 65536 ? `reduce of ${
|
|
625
|
-
f.pos >
|
|
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(),
|
|
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
|
|
687
|
-
constructor(
|
|
688
|
-
if (super(), this.wrappers = [],
|
|
689
|
-
let
|
|
690
|
-
this.minRepeatTerm =
|
|
691
|
-
for (let e = 0; e <
|
|
692
|
-
let a = Object.keys(
|
|
693
|
-
for (let e = 0; e <
|
|
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 (
|
|
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
|
|
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:
|
|
717
|
-
}))),
|
|
718
|
-
let l = d(
|
|
719
|
-
this.context =
|
|
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(
|
|
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(
|
|
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
|
|
828
|
+
return new n(e);
|
|
829
829
|
}
|
|
830
830
|
};
|
|
831
831
|
function M(e, t) {
|