@linkdlab/funcnodes_react_flow 0.1.1 → 0.1.3
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/module/dist/css/style.css +43 -0
- package/module/dist/frontend/datarenderer/images.d.ts +12 -0
- package/module/dist/frontend/datarenderer/images.d.ts.map +1 -0
- package/module/dist/frontend/datarenderer/index.d.ts +17 -0
- package/module/dist/frontend/datarenderer/index.d.ts.map +1 -0
- package/module/dist/frontend/datarenderer/plotly.d.ts +15 -0
- package/module/dist/frontend/datarenderer/plotly.d.ts.map +1 -0
- package/module/dist/frontend/dialog.d.ts +18 -0
- package/module/dist/frontend/dialog.d.ts.map +1 -0
- package/module/dist/frontend/edge.d.ts +6 -0
- package/module/dist/frontend/edge.d.ts.map +1 -0
- package/module/dist/frontend/funcnodesreactflow/index.d.ts +7 -0
- package/module/dist/frontend/funcnodesreactflow/index.d.ts.map +1 -0
- package/module/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts +6 -0
- package/module/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts.map +1 -0
- package/module/dist/frontend/header/index.d.ts +5 -0
- package/module/dist/frontend/header/index.d.ts.map +1 -0
- package/module/dist/frontend/index.d.ts +4 -0
- package/module/dist/frontend/index.d.ts.map +1 -0
- package/module/dist/frontend/lib.d.ts +11 -0
- package/module/dist/frontend/lib.d.ts.map +1 -0
- package/module/{src/frontend/node/index.tsx → dist/frontend/node/index.d.ts} +3 -3
- package/module/dist/frontend/node/index.d.ts.map +1 -0
- package/module/dist/frontend/node/io/default_input_renderer.d.ts +12 -0
- package/module/dist/frontend/node/io/default_input_renderer.d.ts.map +1 -0
- package/module/dist/frontend/node/io/default_output_render.d.ts +7 -0
- package/module/dist/frontend/node/io/default_output_render.d.ts.map +1 -0
- package/module/dist/frontend/node/io/handle_renderer.d.ts +6 -0
- package/module/dist/frontend/node/io/handle_renderer.d.ts.map +1 -0
- package/module/{src/frontend/node/io/index.tsx → dist/frontend/node/io/index.d.ts} +4 -4
- package/module/dist/frontend/node/io/index.d.ts.map +1 -0
- package/module/dist/frontend/node/io/io.d.ts +17 -0
- package/module/dist/frontend/node/io/io.d.ts.map +1 -0
- package/module/dist/frontend/node/io/nodeinput.d.ts +7 -0
- package/module/dist/frontend/node/io/nodeinput.d.ts.map +1 -0
- package/module/dist/frontend/node/io/nodeoutput.d.ts +7 -0
- package/module/dist/frontend/node/io/nodeoutput.d.ts.map +1 -0
- package/module/dist/frontend/node/node.d.ts +21 -0
- package/module/dist/frontend/node/node.d.ts.map +1 -0
- package/module/dist/frontend/utils/colorpicker.d.ts +20 -0
- package/module/dist/frontend/utils/colorpicker.d.ts.map +1 -0
- package/module/dist/frontend/utils/jsondata.d.ts +7 -0
- package/module/dist/frontend/utils/jsondata.d.ts.map +1 -0
- package/module/dist/frontend/utils/table.d.ts +12 -0
- package/module/dist/frontend/utils/table.d.ts.map +1 -0
- package/module/dist/funcnodes/funcnodesworker.d.ts +73 -0
- package/module/dist/funcnodes/funcnodesworker.d.ts.map +1 -0
- package/module/{src/funcnodes/index.ts → dist/funcnodes/index.d.ts} +5 -4
- package/module/dist/funcnodes/index.d.ts.map +1 -0
- package/module/dist/funcnodes/websocketworker.d.ts +28 -0
- package/module/dist/funcnodes/websocketworker.d.ts.map +1 -0
- package/module/dist/funcnodes/workermanager.d.ts +33 -0
- package/module/dist/funcnodes/workermanager.d.ts.map +1 -0
- package/module/dist/index.d.ts +3 -0
- package/module/dist/index.d.ts.map +1 -0
- package/module/dist/index.js +4673 -0
- package/module/dist/states/edge.d.ts +8 -0
- package/module/dist/states/edge.d.ts.map +1 -0
- package/module/{src/states/edge.t.ts → dist/states/edge.t.d.ts} +17 -20
- package/module/dist/states/edge.t.d.ts.map +1 -0
- package/module/dist/states/fnrfzst.d.ts +11 -0
- package/module/dist/states/fnrfzst.d.ts.map +1 -0
- package/module/dist/states/fnrfzst.t.d.ts +101 -0
- package/module/dist/states/fnrfzst.t.d.ts.map +1 -0
- package/module/{src/states/index.ts → dist/states/index.d.ts} +8 -7
- package/module/dist/states/index.d.ts.map +1 -0
- package/module/dist/states/lib.d.ts +4 -0
- package/module/dist/states/lib.d.ts.map +1 -0
- package/module/dist/states/lib.t.d.ts +25 -0
- package/module/dist/states/lib.t.d.ts.map +1 -0
- package/module/dist/states/node.d.ts +5 -0
- package/module/dist/states/node.d.ts.map +1 -0
- package/module/{src/states/node.t.ts → dist/states/node.t.d.ts} +74 -98
- package/module/dist/states/node.t.d.ts.map +1 -0
- package/module/dist/states/nodeio.t.d.ts +68 -0
- package/module/dist/states/nodeio.t.d.ts.map +1 -0
- package/module/dist/states/nodespace.d.ts +4 -0
- package/module/dist/states/nodespace.d.ts.map +1 -0
- package/module/dist/states/nodespace.t.d.ts +17 -0
- package/module/dist/states/nodespace.t.d.ts.map +1 -0
- package/module/dist/states/reactflow.d.ts +9 -0
- package/module/dist/states/reactflow.d.ts.map +1 -0
- package/module/dist/states/reactflow.t.d.ts +12 -0
- package/module/dist/states/reactflow.t.d.ts.map +1 -0
- package/module/{src/types/rendering.t.ts → dist/types/rendering.t.d.ts} +11 -13
- package/module/dist/types/rendering.t.d.ts.map +1 -0
- package/module/{src/utils/index.ts → dist/utils/index.d.ts} +4 -4
- package/module/dist/utils/index.d.ts.map +1 -0
- package/module/dist/utils/objects.d.ts +20 -0
- package/module/dist/utils/objects.d.ts.map +1 -0
- package/package.json +32 -23
- package/app/public/favicon.ico +0 -0
- package/app/public/index.html +0 -43
- package/app/public/logo192.png +0 -0
- package/app/public/logo512.png +0 -0
- package/app/public/manifest.json +0 -25
- package/app/public/robots.txt +0 -3
- package/app/public/worker_manager +0 -1
- package/app/src/App.css +0 -38
- package/app/src/App.test.tsx +0 -9
- package/app/src/App.tsx +0 -22
- package/app/src/index.css +0 -13
- package/app/src/index.tsx +0 -19
- package/app/src/react-app-env.d.ts +0 -1
- package/app/src/reportWebVitals.ts +0 -15
- package/app/src/setupTests.ts +0 -5
- package/app/tsconfig.app.json +0 -10
- package/app/webpack.config.js +0 -143
- package/module/src/frontend/datarenderer/images.tsx +0 -28
- package/module/src/frontend/datarenderer/index.tsx +0 -54
- package/module/src/frontend/datarenderer/plotly.tsx +0 -82
- package/module/src/frontend/dialog.scss +0 -88
- package/module/src/frontend/dialog.tsx +0 -71
- package/module/src/frontend/edge.scss +0 -15
- package/module/src/frontend/edge.tsx +0 -32
- package/module/src/frontend/funcnodesreactflow/funcnodesreactflow.scss +0 -63
- package/module/src/frontend/funcnodesreactflow/index.tsx +0 -68
- package/module/src/frontend/funcnodesreactflow/react_flow_layer.tsx +0 -212
- package/module/src/frontend/header/header.scss +0 -48
- package/module/src/frontend/header/index.tsx +0 -269
- package/module/src/frontend/index.tsx +0 -4
- package/module/src/frontend/layout/htmlelements.scss +0 -63
- package/module/src/frontend/lib.scss +0 -157
- package/module/src/frontend/lib.tsx +0 -199
- package/module/src/frontend/node/io/default_input_renderer.tsx +0 -329
- package/module/src/frontend/node/io/default_output_render.tsx +0 -25
- package/module/src/frontend/node/io/handle_renderer.tsx +0 -94
- package/module/src/frontend/node/io/io.scss +0 -91
- package/module/src/frontend/node/io/io.tsx +0 -115
- package/module/src/frontend/node/io/nodeinput.tsx +0 -127
- package/module/src/frontend/node/io/nodeoutput.tsx +0 -43
- package/module/src/frontend/node/node.scss +0 -265
- package/module/src/frontend/node/node.tsx +0 -209
- package/module/src/frontend/utils/colorpicker.scss +0 -37
- package/module/src/frontend/utils/colorpicker.tsx +0 -342
- package/module/src/frontend/utils/jsondata.tsx +0 -19
- package/module/src/frontend/utils/table.scss +0 -22
- package/module/src/frontend/utils/table.tsx +0 -160
- package/module/src/funcnodes/funcnodesworker.ts +0 -456
- package/module/src/funcnodes/websocketworker.ts +0 -152
- package/module/src/funcnodes/workermanager.ts +0 -233
- package/module/src/index.tsx +0 -4
- package/module/src/states/edge.ts +0 -15
- package/module/src/states/fnrfzst.t.ts +0 -117
- package/module/src/states/fnrfzst.ts +0 -415
- package/module/src/states/lib.t.ts +0 -30
- package/module/src/states/lib.ts +0 -16
- package/module/src/states/node.ts +0 -46
- package/module/src/states/nodeio.t.ts +0 -103
- package/module/src/states/nodespace.t.ts +0 -57
- package/module/src/states/nodespace.ts +0 -90
- package/module/src/states/reactflow.t.ts +0 -27
- package/module/src/states/reactflow.ts +0 -49
- package/module/src/types/funcnodesreactflow.d.ts +0 -1
- package/module/src/utils/objects.ts +0 -131
- package/module/tsconfig.module.json +0 -15
- package/module/webpack.config.js +0 -140
- package/tsconfig.json +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../src/states/edge.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,gBAAgB;aAMX,MAAM;cACL,MAAM;aACP,MAAM;cACL,MAAM;YAGjB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
interface BaseEdgeAction {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type EdgeAction = EdgeActionAdd | EdgeActionDelete;
|
|
19
|
-
|
|
20
|
-
export type { EdgeAction, EdgeActionAdd, EdgeActionDelete };
|
|
1
|
+
interface BaseEdgeAction {
|
|
2
|
+
type: string;
|
|
3
|
+
src_nid: string;
|
|
4
|
+
src_ioid: string;
|
|
5
|
+
trg_nid: string;
|
|
6
|
+
trg_ioid: string;
|
|
7
|
+
from_remote: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface EdgeActionAdd extends BaseEdgeAction {
|
|
10
|
+
type: "add";
|
|
11
|
+
}
|
|
12
|
+
interface EdgeActionDelete extends BaseEdgeAction {
|
|
13
|
+
type: "delete";
|
|
14
|
+
}
|
|
15
|
+
type EdgeAction = EdgeActionAdd | EdgeActionDelete;
|
|
16
|
+
export type { EdgeAction, EdgeActionAdd, EdgeActionDelete };
|
|
17
|
+
//# sourceMappingURL=edge.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.t.d.ts","sourceRoot":"","sources":["../../src/states/edge.t.ts"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,aAAc,SAAQ,cAAc;IAC5C,IAAI,EAAE,KAAK,CAAC;CACb;AAED,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,KAAK,UAAU,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEnD,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import LibZustand from './lib';
|
|
2
|
+
import NodeSpaceZustand from './nodespace';
|
|
3
|
+
import { Node as RFNode } from 'reactflow';
|
|
4
|
+
import { NodeStore } from './node.t';
|
|
5
|
+
import type { FuncNodesReactFlowZustandInterface } from './fnrfzst.t';
|
|
6
|
+
import type { NodeType } from './node.t';
|
|
7
|
+
declare const assert_reactflow_node: (node: NodeType, store: NodeStore, fnrf_instance?: FuncNodesReactFlowZustandInterface) => NodeType & RFNode;
|
|
8
|
+
declare const FuncNodesReactFlowZustand: () => FuncNodesReactFlowZustandInterface;
|
|
9
|
+
export default FuncNodesReactFlowZustand;
|
|
10
|
+
export { LibZustand, NodeSpaceZustand, assert_reactflow_node };
|
|
11
|
+
//# sourceMappingURL=fnrfzst.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fnrfzst.d.ts","sourceRoot":"","sources":["../../src/states/fnrfzst.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,OAAO,CAAA;AAC9B,OAAO,gBAAgB,MAAM,aAAa,CAAA;AAI1C,OAAO,EACL,IAAI,IAAI,MAAM,EAKf,MAAM,WAAW,CAAA;AAClB,OAAO,EAAc,SAAS,EAAE,MAAM,UAAU,CAAA;AAMhD,OAAO,KAAK,EACV,kCAAkC,EAInC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AA4DxC,QAAA,MAAM,qBAAqB,SACnB,QAAQ,SACP,SAAS,kBACA,kCAAkC,KACjD,QAAQ,GAAG,MAyBb,CAAA;AAED,QAAA,MAAM,yBAAyB,QAAO,kCAwSrC,CAAA;AAED,eAAe,yBAAyB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { StoreApi, UseBoundStore } from "zustand";
|
|
2
|
+
import { FuncNodesWorker, WorkerManager } from "../funcnodes";
|
|
3
|
+
import { LibType, LibZustandInterface } from "./lib.t";
|
|
4
|
+
import { NodeSpaceZustandInterface } from "./nodespace.t";
|
|
5
|
+
import { NodeAction, NodeType } from "./node.t";
|
|
6
|
+
import { RFStore } from "./reactflow.t";
|
|
7
|
+
import { EdgeAction } from "./edge.t";
|
|
8
|
+
import { useReactFlow } from "reactflow";
|
|
9
|
+
interface RenderOptions {
|
|
10
|
+
typemap?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
inputconverter?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
interface NodeViewState {
|
|
18
|
+
pos: [number, number];
|
|
19
|
+
size: [number, number];
|
|
20
|
+
collapsed: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface ViewState {
|
|
23
|
+
nodes: {
|
|
24
|
+
[key: string]: NodeViewState;
|
|
25
|
+
};
|
|
26
|
+
renderoptions?: RenderOptions;
|
|
27
|
+
}
|
|
28
|
+
interface FullNodeSpaceJSON {
|
|
29
|
+
nodes: NodeType[];
|
|
30
|
+
edges: [string, string, string, string][];
|
|
31
|
+
prop: {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
lib: LibType;
|
|
35
|
+
}
|
|
36
|
+
interface FullState {
|
|
37
|
+
backend: FullNodeSpaceJSON;
|
|
38
|
+
view: ViewState;
|
|
39
|
+
worker: {
|
|
40
|
+
[key: string]: string[];
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
interface ProgressState {
|
|
44
|
+
message: string;
|
|
45
|
+
status: string;
|
|
46
|
+
progress: number;
|
|
47
|
+
blocking: boolean;
|
|
48
|
+
}
|
|
49
|
+
interface ProgressStateMessage extends ProgressState {
|
|
50
|
+
type: "progress";
|
|
51
|
+
}
|
|
52
|
+
interface ResultMessage {
|
|
53
|
+
type: "result";
|
|
54
|
+
id?: string;
|
|
55
|
+
result: any;
|
|
56
|
+
}
|
|
57
|
+
interface ErrorMessage {
|
|
58
|
+
type: "error";
|
|
59
|
+
error: string;
|
|
60
|
+
tb: string[];
|
|
61
|
+
id?: string;
|
|
62
|
+
}
|
|
63
|
+
interface NodeSpaceEvent {
|
|
64
|
+
type: "nsevent";
|
|
65
|
+
event: string;
|
|
66
|
+
data: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
type JSONMessage = ProgressStateMessage | ResultMessage | ErrorMessage | NodeSpaceEvent;
|
|
71
|
+
interface WorkerRepresentation {
|
|
72
|
+
uuid: string;
|
|
73
|
+
host: string;
|
|
74
|
+
port: number;
|
|
75
|
+
ssl: boolean;
|
|
76
|
+
active: boolean;
|
|
77
|
+
name: string | null;
|
|
78
|
+
}
|
|
79
|
+
interface WorkersState {
|
|
80
|
+
[key: string]: WorkerRepresentation;
|
|
81
|
+
}
|
|
82
|
+
interface FuncNodesReactFlowZustandInterface {
|
|
83
|
+
lib: LibZustandInterface;
|
|
84
|
+
workermanager: WorkerManager | undefined;
|
|
85
|
+
workers: UseBoundStore<StoreApi<WorkersState>>;
|
|
86
|
+
worker: FuncNodesWorker | undefined;
|
|
87
|
+
nodespace: NodeSpaceZustandInterface;
|
|
88
|
+
useReactFlowStore: RFStore;
|
|
89
|
+
render_options: UseBoundStore<StoreApi<RenderOptions>>;
|
|
90
|
+
progress_state: UseBoundStore<StoreApi<ProgressState>>;
|
|
91
|
+
update_render_options: (options: RenderOptions) => void;
|
|
92
|
+
rf_instance?: ReturnType<typeof useReactFlow>;
|
|
93
|
+
on_node_action: (action: NodeAction) => void;
|
|
94
|
+
on_edge_action: (edge: EdgeAction) => void;
|
|
95
|
+
set_progress: (progress: ProgressState) => void;
|
|
96
|
+
auto_progress: () => void;
|
|
97
|
+
reactflowRef: HTMLDivElement | null;
|
|
98
|
+
clear_all: () => void;
|
|
99
|
+
}
|
|
100
|
+
export type { FuncNodesReactFlowZustandInterface, WorkersState, WorkerRepresentation, JSONMessage, FullState, FullNodeSpaceJSON, ViewState, RenderOptions, ProgressState, ProgressStateMessage, ResultMessage, ErrorMessage, NodeSpaceEvent, NodeViewState, };
|
|
101
|
+
//# sourceMappingURL=fnrfzst.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fnrfzst.t.d.ts","sourceRoot":"","sources":["../../src/states/fnrfzst.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OA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ACvD,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IACvD,qBAAqB,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IACxD,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAC9C,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,cAAc,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,YAAY,EACV,kCAAkC,EAClC,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,GACd,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import LibZustand from "./lib";
|
|
2
|
-
import NodeSpaceZustand from "./nodespace";
|
|
3
|
-
import { FuncNodesReactFlowZustandInterface, WorkersState } from "./fnrfzst.t";
|
|
4
|
-
import FuncNodesReactFlowZustand from "./fnrfzst";
|
|
5
|
-
export default FuncNodesReactFlowZustand;
|
|
6
|
-
export { LibZustand, NodeSpaceZustand };
|
|
7
|
-
export type { FuncNodesReactFlowZustandInterface, WorkersState };
|
|
1
|
+
import LibZustand from "./lib";
|
|
2
|
+
import NodeSpaceZustand from "./nodespace";
|
|
3
|
+
import { FuncNodesReactFlowZustandInterface, WorkersState } from "./fnrfzst.t";
|
|
4
|
+
import FuncNodesReactFlowZustand from "./fnrfzst";
|
|
5
|
+
export default FuncNodesReactFlowZustand;
|
|
6
|
+
export { LibZustand, NodeSpaceZustand };
|
|
7
|
+
export type { FuncNodesReactFlowZustandInterface, WorkersState };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/states/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kCAAkC,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,yBAAyB,MAAM,WAAW,CAAC;AAClD,eAAe,yBAAyB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC;AACxC,YAAY,EAAE,kCAAkC,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/states/lib.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,mBAAmB,EAAY,MAAM,SAAS,CAAC;AAEjE,QAAA,MAAM,UAAU,QAAO,mBAUtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseBoundStore, StoreApi } from 'zustand';
|
|
2
|
+
type LibNode = {
|
|
3
|
+
node_id: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
node_name?: string;
|
|
6
|
+
};
|
|
7
|
+
type Shelf = {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
nodes: LibNode[];
|
|
11
|
+
subshelves: Shelf[];
|
|
12
|
+
};
|
|
13
|
+
type LibType = {
|
|
14
|
+
shelves: Shelf[];
|
|
15
|
+
};
|
|
16
|
+
interface LibState {
|
|
17
|
+
state: LibType;
|
|
18
|
+
set: (state: LibType) => void;
|
|
19
|
+
get: () => LibType;
|
|
20
|
+
}
|
|
21
|
+
interface LibZustandInterface {
|
|
22
|
+
libstate: UseBoundStore<StoreApi<LibState>>;
|
|
23
|
+
}
|
|
24
|
+
export type { LibZustandInterface, LibState, LibType, Shelf, LibNode };
|
|
25
|
+
//# sourceMappingURL=lib.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.t.d.ts","sourceRoot":"","sources":["../../src/states/lib.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEjD,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,UAAU,EAAE,KAAK,EAAE,CAAA;CACpB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,KAAK,EAAE,CAAA;CACjB,CAAA;AAED,UAAU,QAAQ;IAChB,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7B,GAAG,EAAE,MAAM,OAAO,CAAA;CACnB;AAED,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAA;CAC5C;AAED,YAAY,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NodeType, PartialNodeType, NodeStore } from "./node.t";
|
|
2
|
+
declare const assert_full_node: (node: PartialNodeType) => NodeType;
|
|
3
|
+
declare const createNodeStore: (node: NodeType) => NodeStore;
|
|
4
|
+
export { createNodeStore, assert_full_node };
|
|
5
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/states/node.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAehE,QAAA,MAAM,gBAAgB,SAAU,eAAe,KAAG,QAOjD,CAAC;AAEF,QAAA,MAAM,eAAe,SAAU,QAAQ,KAAG,SAkBzC,CAAC;AACF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,98 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DeepPartial
|
|
3
|
-
import { IOType } from "./nodeio.t";
|
|
4
|
-
import { DataRenderOptions } from "../types/rendering.t";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
frontend: {
|
|
76
|
-
pos: [number, number];
|
|
77
|
-
size: [number, number];
|
|
78
|
-
collapsed: boolean;
|
|
79
|
-
};
|
|
80
|
-
name: string;
|
|
81
|
-
in_trigger: boolean;
|
|
82
|
-
error?: string;
|
|
83
|
-
render_options?: NodeRenderOptions;
|
|
84
|
-
io_order: string[];
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
type PartialNodeType = DeepPartial<NodeType>;
|
|
88
|
-
|
|
89
|
-
export type {
|
|
90
|
-
NodeStore,
|
|
91
|
-
NodeAction,
|
|
92
|
-
NodeActionUpdate,
|
|
93
|
-
NodeActionDelete,
|
|
94
|
-
NodeActionAdd,
|
|
95
|
-
NodeActionError,
|
|
96
|
-
PartialNodeType,
|
|
97
|
-
NodeType,
|
|
98
|
-
};
|
|
1
|
+
import { UseBoundStore, StoreApi } from "zustand";
|
|
2
|
+
import { DeepPartial } from "../utils";
|
|
3
|
+
import { IOType } from "./nodeio.t";
|
|
4
|
+
import { DataRenderOptions } from "../types/rendering.t";
|
|
5
|
+
/**
|
|
6
|
+
* Interface for the NodeActionAdd.
|
|
7
|
+
* This interface is used when a new node is being added.
|
|
8
|
+
* It has a type property set to "add" and a node property of NodeType.
|
|
9
|
+
*/
|
|
10
|
+
interface BaseNodeAction {
|
|
11
|
+
type: string;
|
|
12
|
+
from_remote: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
immediate?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface NodeActionAdd extends BaseNodeAction {
|
|
17
|
+
type: "add";
|
|
18
|
+
node: NodeType;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Interface for the NodeActionUpdate.
|
|
22
|
+
* This interface is used when an existing node is being updated.
|
|
23
|
+
* It has a type property set to "update", an id property for the node to be updated,
|
|
24
|
+
* and a node property of PartialNodeType which contains the properties to be updated.
|
|
25
|
+
*/
|
|
26
|
+
interface NodeActionUpdate extends BaseNodeAction {
|
|
27
|
+
type: "update";
|
|
28
|
+
node: PartialNodeType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Interface for the NodeActionDelete.
|
|
32
|
+
* This interface is used when a node is being deleted.
|
|
33
|
+
* It has a type property set to "delete" and an id property for the node to be deleted.
|
|
34
|
+
*/
|
|
35
|
+
interface NodeActionDelete extends BaseNodeAction {
|
|
36
|
+
type: "delete";
|
|
37
|
+
}
|
|
38
|
+
interface NodeActionError extends BaseNodeAction {
|
|
39
|
+
type: "error";
|
|
40
|
+
errortype: string;
|
|
41
|
+
error: string;
|
|
42
|
+
}
|
|
43
|
+
interface NodeTrigger extends BaseNodeAction {
|
|
44
|
+
type: "trigger";
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Type alias for NodeAction.
|
|
48
|
+
* A NodeAction can be either a NodeActionAdd, NodeActionUpdate, or NodeActionDelete.
|
|
49
|
+
*/
|
|
50
|
+
type NodeAction = NodeActionAdd | NodeActionUpdate | NodeActionDelete | NodeActionError | NodeTrigger;
|
|
51
|
+
type NodeStore = UseBoundStore<StoreApi<NodeType>>;
|
|
52
|
+
interface NodeRenderOptions {
|
|
53
|
+
data?: DataRenderOptions;
|
|
54
|
+
}
|
|
55
|
+
interface NodeType {
|
|
56
|
+
id: string;
|
|
57
|
+
node_name: string;
|
|
58
|
+
io: {
|
|
59
|
+
[key: string]: IOType;
|
|
60
|
+
};
|
|
61
|
+
frontend: {
|
|
62
|
+
pos: [number, number];
|
|
63
|
+
size: [number, number];
|
|
64
|
+
collapsed: boolean;
|
|
65
|
+
};
|
|
66
|
+
name: string;
|
|
67
|
+
in_trigger: boolean;
|
|
68
|
+
error?: string;
|
|
69
|
+
render_options?: NodeRenderOptions;
|
|
70
|
+
io_order: string[];
|
|
71
|
+
}
|
|
72
|
+
type PartialNodeType = DeepPartial<NodeType>;
|
|
73
|
+
export type { NodeStore, NodeAction, NodeActionUpdate, NodeActionDelete, NodeActionAdd, NodeActionError, PartialNodeType, NodeType, };
|
|
74
|
+
//# sourceMappingURL=node.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.t.d.ts","sourceRoot":"","sources":["../../src/states/node.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;GAIG;AAEH,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,aAAc,SAAQ,cAAc;IAC5C,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;;;;GAKG;AACH,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;GAIG;AACH,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,UAAU,eAAgB,SAAQ,cAAc;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,WAAY,SAAQ,cAAc;IAC1C,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;GAGG;AACH,KAAK,UAAU,GACX,aAAa,GACb,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,WAAW,CAAC;AAEhB,KAAK,SAAS,GAAG,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEnD,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC9B,QAAQ,EAAE;QACR,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACtB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACvB,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,KAAK,eAAe,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;AAE7C,YAAY,EACV,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,eAAe,EACf,QAAQ,GACT,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseRenderOptions } from "../types/rendering.t";
|
|
3
|
+
import { DeepPartial } from "../utils";
|
|
4
|
+
interface AllOf {
|
|
5
|
+
allOf: SerializedType[];
|
|
6
|
+
}
|
|
7
|
+
interface AnyOf {
|
|
8
|
+
anyOf: SerializedType[];
|
|
9
|
+
}
|
|
10
|
+
interface ArrayOf {
|
|
11
|
+
type: "array";
|
|
12
|
+
items: SerializedType;
|
|
13
|
+
uniqueItems: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface DictOf {
|
|
16
|
+
type: "object";
|
|
17
|
+
keys: SerializedType;
|
|
18
|
+
values: SerializedType;
|
|
19
|
+
}
|
|
20
|
+
interface EnumOf {
|
|
21
|
+
type: "enum";
|
|
22
|
+
values: (number | string | boolean | null)[];
|
|
23
|
+
keys: string[];
|
|
24
|
+
nullable: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface TypeOf {
|
|
27
|
+
type: "type";
|
|
28
|
+
value: SerializedType;
|
|
29
|
+
}
|
|
30
|
+
type SerializedType = string | AllOf | AnyOf | ArrayOf | DictOf | EnumOf | TypeOf;
|
|
31
|
+
interface IORenderOptions extends BaseRenderOptions {
|
|
32
|
+
step?: number;
|
|
33
|
+
set_default?: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface IOValueOptions {
|
|
36
|
+
min?: number;
|
|
37
|
+
max?: number;
|
|
38
|
+
step?: number;
|
|
39
|
+
options?: (string | number)[] | EnumOf;
|
|
40
|
+
colorspace?: string;
|
|
41
|
+
}
|
|
42
|
+
interface IOType {
|
|
43
|
+
connected: boolean;
|
|
44
|
+
does_trigger: boolean;
|
|
45
|
+
full_id: string;
|
|
46
|
+
id: string;
|
|
47
|
+
is_input: boolean;
|
|
48
|
+
name: string;
|
|
49
|
+
node: string;
|
|
50
|
+
type: SerializedType;
|
|
51
|
+
value: any;
|
|
52
|
+
fullvalue?: any;
|
|
53
|
+
render_options?: IORenderOptions;
|
|
54
|
+
value_options?: IOValueOptions;
|
|
55
|
+
valuepreview_type?: string;
|
|
56
|
+
try_get_full_value: () => void;
|
|
57
|
+
}
|
|
58
|
+
type OutputRendererType = ({ io }: {
|
|
59
|
+
io: IOType;
|
|
60
|
+
}) => JSX.Element;
|
|
61
|
+
interface InputRendererProps {
|
|
62
|
+
io: IOType;
|
|
63
|
+
inputconverter: (v: any) => any;
|
|
64
|
+
}
|
|
65
|
+
type InputRendererType = ({ io, inputconverter, }: InputRendererProps) => JSX.Element;
|
|
66
|
+
type PartialIOType = DeepPartial<IOType>;
|
|
67
|
+
export type { AllOf, AnyOf, ArrayOf, DictOf, EnumOf, TypeOf, SerializedType, IORenderOptions, IOValueOptions, IOType, OutputRendererType, InputRendererProps, InputRendererType, PartialIOType, };
|
|
68
|
+
//# sourceMappingURL=nodeio.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeio.t.d.ts","sourceRoot":"","sources":["../../src/states/nodeio.t.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,UAAU,KAAK;IACb,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,UAAU,KAAK;IACb,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,UAAU,OAAO;IACf,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,cAAc,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,MAAM;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;IAC7C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,cAAc,CAAC;CACvB;AAGD,KAAK,cAAc,GACf,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX,UAAU,eAAgB,SAAQ,iBAAiB;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,I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|
|
|
1
|
+
{"version":3,"file":"nodespace.d.ts","sourceRoot":"","sources":["../../src/states/nodespace.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,eAAe,CAAC;AACvB,QAAA,MAAM,gBAAgB,OACf,qBAAqB,KAAG,yBAiF5B,CAAC;AAEJ,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NodeStore } from "./node.t";
|
|
2
|
+
/**
|
|
3
|
+
* Interface for the NodeSpaceZustand state management.
|
|
4
|
+
* This interface is used to define the shape of the state and the actions that can be performed on it.
|
|
5
|
+
*/
|
|
6
|
+
interface NodeSpaceZustandInterface {
|
|
7
|
+
nodesstates: Map<string, NodeStore>;
|
|
8
|
+
get_node: (nid: string, raise?: boolean) => NodeStore | undefined;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Interface for the NodeSpaceZustandProps.
|
|
12
|
+
* This interface is used to define the properties that can be passed to the NodeSpaceZustand component.
|
|
13
|
+
*/
|
|
14
|
+
interface NodeSpaceZustandProps {
|
|
15
|
+
}
|
|
16
|
+
export type { NodeSpaceZustandProps, NodeSpaceZustandInterface };
|
|
17
|
+
//# sourceMappingURL=nodespace.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodespace.t.d.ts","sourceRoot":"","sources":["../../src/states/nodespace.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC;;;GAGG;AACH,UAAU,yBAAyB;IAEjC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAEpC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,SAAS,GAAG,SAAS,CAAC;CAkCnE;AAED;;;GAGG;AACH,UAAU,qBAAqB;CAI9B;AAED,YAAY,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Connection, EdgeChange, NodeChange } from 'reactflow';
|
|
2
|
+
import { RFStore } from './reactflow.t';
|
|
3
|
+
declare const reactflowstore: ({ on_node_change, on_edge_change, on_connect }: {
|
|
4
|
+
on_node_change?: ((changes: NodeChange[]) => void) | undefined;
|
|
5
|
+
on_edge_change?: ((changes: EdgeChange[]) => void) | undefined;
|
|
6
|
+
on_connect?: ((connection: Connection) => void) | undefined;
|
|
7
|
+
}) => RFStore;
|
|
8
|
+
export default reactflowstore;
|
|
9
|
+
//# sourceMappingURL=reactflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactflow.d.ts","sourceRoot":"","sources":["../../src/states/reactflow.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EAGX,MAAM,WAAW,CAAA;AAClB,OAAO,EAAW,OAAO,EAAE,MAAM,eAAe,CAAA;AAEhD,QAAA,MAAM,cAAc;gCAKS,UAAU,EAAE,KAAK,IAAI;gCACrB,UAAU,EAAE,KAAK,IAAI;+BACtB,UAAU,KAAK,IAAI;MAC3C,OA4BH,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseBoundStore, StoreApi } from 'zustand';
|
|
2
|
+
import { Edge, Node, OnNodesChange, OnEdgesChange, OnConnect } from 'reactflow';
|
|
3
|
+
type RFState = {
|
|
4
|
+
nodes: Node[];
|
|
5
|
+
edges: Edge[];
|
|
6
|
+
onNodesChange: OnNodesChange;
|
|
7
|
+
onEdgesChange: OnEdgesChange;
|
|
8
|
+
onConnect: OnConnect;
|
|
9
|
+
};
|
|
10
|
+
type RFStore = UseBoundStore<StoreApi<RFState>>;
|
|
11
|
+
export type { RFState, RFStore };
|
|
12
|
+
//# sourceMappingURL=reactflow.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactflow.t.d.ts","sourceRoot":"","sources":["../../src/states/reactflow.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE/E,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,aAAa,EAAE,aAAa,CAAA;IAC5B,aAAa,EAAE,aAAa,CAAA;IAC5B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;AAGD,KAAK,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAA;AAE/C,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
type RenderType = "string" | "number" | "boolean" | "image";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export type { DataRenderOptions, RenderType, BaseRenderOptions };
|
|
1
|
+
type RenderType = "string" | "number" | "boolean" | "image";
|
|
2
|
+
interface BaseRenderOptions {
|
|
3
|
+
type?: RenderType;
|
|
4
|
+
}
|
|
5
|
+
interface DataRenderOptions extends BaseRenderOptions {
|
|
6
|
+
src?: string;
|
|
7
|
+
type?: RenderType;
|
|
8
|
+
preview_type?: string;
|
|
9
|
+
}
|
|
10
|
+
export type { DataRenderOptions, RenderType, BaseRenderOptions };
|
|
11
|
+
//# sourceMappingURL=rendering.t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rendering.t.d.ts","sourceRoot":"","sources":["../../src/types/rendering.t.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE5D,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,UAAU,iBAAkB,SAAQ,iBAAiB;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { deep_merge, deep_compare_objects, DeepPartial } from "./objects";
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
1
|
+
import { deep_merge, deep_compare_objects, DeepPartial } from "./objects";
|
|
2
|
+
export { deep_merge, deep_compare_objects };
|
|
3
|
+
export type { DeepPartial };
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type DeepPartial<T> = T extends object ? {
|
|
2
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
3
|
+
} : T;
|
|
4
|
+
declare function deep_compare_objects(a: any, b: any): boolean;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* function to deeply merge two objects of type T.
|
|
8
|
+
*
|
|
9
|
+
* @param {T} target - The target object to be merged.
|
|
10
|
+
* @param {DeepPartial<T>} source - The source object to merge into the target. All properties of this object are optional.
|
|
11
|
+
*
|
|
12
|
+
* @returns {T} An object containing the merged object (new_obj) and a boolean indicating if there was a change (change).
|
|
13
|
+
*/
|
|
14
|
+
declare const deep_merge: <T extends {}>(target: T, source: DeepPartial<T>) => {
|
|
15
|
+
new_obj: T;
|
|
16
|
+
change: boolean;
|
|
17
|
+
};
|
|
18
|
+
export { deep_merge, deep_compare_objects };
|
|
19
|
+
export type { DeepPartial };
|
|
20
|
+
//# sourceMappingURL=objects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/utils/objects.ts"],"names":[],"mappings":"AACA,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAClC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC;AAWN,iBAAS,oBAAoB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,OAAO,CAoCrD;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU;;YAKN,OAAO;CA4DhB,CAAC;AACF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,CAAC"}
|