@oomol-lab/open-flow 0.1.0-alpha.12 → 0.1.0-alpha.14
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/{addNodeOptions-BYQXyUmQ.js → addNodeOptions-0tjmBEYS.js} +1031 -996
- package/dist/browser/{change-7rp2OZLm.js → change-BATEvjif.js} +1 -1
- package/dist/browser/{createResourceDialog-CWD62rU0.js → createResourceDialog-CRRJCp8F.js} +101 -101
- package/dist/browser/{esm-DmVDlOEJ.js → esm-CIApMBt7.js} +1 -1
- package/dist/browser/flow-authoring.js +4 -4
- package/dist/browser/flow-change.d.ts +7 -3
- package/dist/browser/flow-change.js +1 -1
- package/dist/browser/{flowRunInputEditorStore-BYxwvHZl.js → flowRunInputEditorStore-BUwR9Vbp.js} +45 -45
- package/dist/browser/{flowWorkspace-Bwqmoq-c.js → flowWorkspace-bWrxAxMV.js} +10515 -10266
- package/dist/browser/{markdownContent-0teWaxq8.js → markdownContent-CX77lBFM.js} +1 -1
- package/dist/browser/{useOpenInteractionType-CRgOHg5M.js → useOpenInteractionType-BtV5cRut.js} +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +850 -808
- package/dist/common/flow-encoding.d.ts +2 -2
- package/dist/common/flow-encoding.js +4 -1
- package/dist/common/flow-semantics.js +5 -2
- package/dist/common/scheduler.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { CodeModule, FlowDocument, Graph, InputPort, JsonValue, OutputMapping, Port, RevisionContent } from '@oomol-lab/open-flow/flow-change';
|
|
1
|
+
import type { CodeModule, FlowDocument, Graph, Group, InputPort, JsonValue, OutputMapping, Port, RevisionContent } from '@oomol-lab/open-flow/flow-change';
|
|
2
2
|
export declare const maxJsonDepth = 64;
|
|
3
3
|
export declare function canonicalJsonBytes(value: JsonValue): Uint8Array;
|
|
4
4
|
export declare function digestBytes(bytes: Uint8Array): Promise<string>;
|
|
5
|
-
export declare function canonicalPorts(value: readonly (InputPort | Port)[]): JsonValue;
|
|
5
|
+
export declare function canonicalPorts(value: readonly (InputPort | Port | Group)[]): JsonValue;
|
|
6
6
|
export declare function canonicalOutputs(value: readonly (OutputMapping & Port)[]): JsonValue;
|
|
7
7
|
export declare function canonicalGraph(value: Graph): JsonValue;
|
|
8
8
|
export declare function canonicalTask(task: FlowDocument['tasks'][string]): JsonValue;
|
|
@@ -17,12 +17,15 @@ function a(e) {
|
|
|
17
17
|
return Object.keys(e).toSorted().map((t) => [t, e[t]]);
|
|
18
18
|
}
|
|
19
19
|
function o(e) {
|
|
20
|
-
return {
|
|
20
|
+
return "handle" in e ? {
|
|
21
21
|
...e.description == null ? {} : { description: e.description },
|
|
22
22
|
handle: e.handle,
|
|
23
23
|
jsonSchema: e.jsonSchema,
|
|
24
24
|
nullable: e.nullable,
|
|
25
25
|
...Object.hasOwn(e, "value") ? { value: e.value } : {}
|
|
26
|
+
} : e.collapsed == null ? { group: e.group } : {
|
|
27
|
+
collapsed: e.collapsed,
|
|
28
|
+
group: e.group
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
function s(e) {
|
|
@@ -7867,7 +7867,7 @@ function Nn(e) {
|
|
|
7867
7867
|
return e.length <= 256 && /^[A-Za-z_][A-Za-z0-9_]*$/.test(e) && e.slice(0, 3).toUpperCase() != "OO_";
|
|
7868
7868
|
}
|
|
7869
7869
|
function U(e) {
|
|
7870
|
-
return Object.fromEntries(e.
|
|
7870
|
+
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
7871
7871
|
}
|
|
7872
7872
|
//#endregion
|
|
7873
7873
|
//#region src/flow/common/encoding.ts
|
|
@@ -7889,12 +7889,15 @@ function Rn(e) {
|
|
|
7889
7889
|
return Object.keys(e).toSorted().map((t) => [t, e[t]]);
|
|
7890
7890
|
}
|
|
7891
7891
|
function zn(e) {
|
|
7892
|
-
return {
|
|
7892
|
+
return "handle" in e ? {
|
|
7893
7893
|
...e.description == null ? {} : { description: e.description },
|
|
7894
7894
|
handle: e.handle,
|
|
7895
7895
|
jsonSchema: e.jsonSchema,
|
|
7896
7896
|
nullable: e.nullable,
|
|
7897
7897
|
...Object.hasOwn(e, "value") ? { value: e.value } : {}
|
|
7898
|
+
} : e.collapsed == null ? { group: e.group } : {
|
|
7899
|
+
collapsed: e.collapsed,
|
|
7900
|
+
group: e.group
|
|
7898
7901
|
};
|
|
7899
7902
|
}
|
|
7900
7903
|
function W(e) {
|
package/dist/common/scheduler.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as t from "effect/Exit";
|
|
|
3
3
|
import * as n from "effect/FiberSet";
|
|
4
4
|
//#region src/flow/common/change.ts
|
|
5
5
|
function r(e) {
|
|
6
|
-
return Object.fromEntries(e.
|
|
6
|
+
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/execution/common/scheduler.ts
|