@linkdlab/funcnodes_react_flow 0.1.6 → 0.2.1
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/css/style.css +41 -33
- package/dist/esm/index.esm.js +4685 -0
- package/dist/types/frontend/datarenderer/data_renderer_overlay.d.ts +7 -0
- package/dist/types/frontend/datarenderer/data_renderer_overlay.d.ts.map +1 -0
- package/dist/types/frontend/datarenderer/data_renderer_preview.d.ts +7 -0
- package/dist/types/frontend/datarenderer/data_renderer_preview.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/datarenderer/default_preview_renderer.d.ts +19 -15
- package/dist/types/frontend/datarenderer/default_preview_renderer.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/datarenderer/images.d.ts +15 -11
- package/dist/types/frontend/datarenderer/images.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/datarenderer/index.d.ts +17 -16
- package/dist/types/frontend/datarenderer/index.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/datarenderer/rendermappings.d.ts +123 -122
- package/dist/types/frontend/datarenderer/rendermappings.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/dialog.d.ts +19 -18
- package/dist/types/frontend/dialog.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/edge.d.ts +6 -5
- package/dist/types/frontend/edge.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/funcnodesreactflow/index.d.ts +7 -6
- package/dist/types/frontend/funcnodesreactflow/index.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/funcnodesreactflow/react_flow_layer.d.ts +6 -5
- package/dist/types/frontend/funcnodesreactflow/react_flow_layer.d.ts.map +1 -0
- package/dist/types/frontend/header/index.d.ts +6 -0
- package/dist/types/frontend/header/index.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/index.d.ts +4 -3
- package/dist/types/frontend/index.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/lib.d.ts +11 -10
- package/dist/types/frontend/lib.d.ts.map +1 -0
- package/dist/types/frontend/node/body_data_renderer.d.ts +12 -0
- package/dist/types/frontend/node/body_data_renderer.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/index.d.ts +3 -2
- package/dist/types/frontend/node/index.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/io/default_input_renderer.d.ts +12 -11
- package/dist/types/frontend/node/io/default_input_renderer.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/io/default_output_render.d.ts +7 -6
- package/dist/types/frontend/node/io/default_output_render.d.ts.map +1 -0
- package/dist/types/frontend/node/io/handle_renderer.d.ts +12 -0
- package/dist/types/frontend/node/io/handle_renderer.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/io/index.d.ts +4 -3
- package/dist/types/frontend/node/io/index.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/io/io.d.ts +17 -16
- package/dist/types/frontend/node/io/io.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/io/nodeinput.d.ts +7 -6
- package/dist/types/frontend/node/io/nodeinput.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/io/nodeoutput.d.ts +7 -6
- package/dist/types/frontend/node/io/nodeoutput.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/node/node.d.ts +21 -20
- package/dist/types/frontend/node/node.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/utils/colorpicker.d.ts +22 -21
- package/dist/types/frontend/utils/colorpicker.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/utils/jsondata.d.ts +7 -6
- package/dist/types/frontend/utils/jsondata.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/utils/select.d.ts +15 -14
- package/dist/types/frontend/utils/select.d.ts.map +1 -0
- package/dist/{frontend → types/frontend}/utils/table.d.ts +12 -11
- package/dist/types/frontend/utils/table.d.ts.map +1 -0
- package/dist/{funcnodes → types/funcnodes}/funcnodesworker.d.ts +88 -88
- package/dist/types/funcnodes/funcnodesworker.d.ts.map +1 -0
- package/dist/{funcnodes → types/funcnodes}/index.d.ts +5 -4
- package/dist/types/funcnodes/index.d.ts.map +1 -0
- package/dist/{funcnodes → types/funcnodes}/websocketworker.d.ts +28 -27
- package/dist/types/funcnodes/websocketworker.d.ts.map +1 -0
- package/dist/{funcnodes → types/funcnodes}/workermanager.d.ts +33 -32
- package/dist/types/funcnodes/workermanager.d.ts.map +1 -0
- package/dist/{index.d.ts → types/index.d.ts} +9 -7
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/plugin/index.d.ts +12 -0
- package/dist/types/plugin/index.d.ts.map +1 -0
- package/dist/{plugin → types/plugin}/rendenderer.d.ts +21 -20
- package/dist/types/plugin/rendenderer.d.ts.map +1 -0
- package/dist/{states → types/states}/edge.d.ts +8 -7
- package/dist/types/states/edge.d.ts.map +1 -0
- package/dist/{states → types/states}/edge.t.d.ts +17 -16
- package/dist/types/states/edge.t.d.ts.map +1 -0
- package/dist/{states → types/states}/fnrfzst.d.ts +11 -10
- package/dist/types/states/fnrfzst.d.ts.map +1 -0
- package/dist/{states → types/states}/fnrfzst.t.d.ts +115 -111
- package/dist/types/states/fnrfzst.t.d.ts.map +1 -0
- package/dist/{states → types/states}/index.d.ts +8 -7
- package/dist/types/states/index.d.ts.map +1 -0
- package/dist/{states → types/states}/lib.d.ts +4 -3
- package/dist/types/states/lib.d.ts.map +1 -0
- package/dist/{states → types/states}/lib.t.d.ts +39 -38
- package/dist/types/states/lib.t.d.ts.map +1 -0
- package/dist/{states → types/states}/node.d.ts +6 -5
- package/dist/types/states/node.d.ts.map +1 -0
- package/dist/{states → types/states}/node.t.d.ts +74 -73
- package/dist/types/states/node.t.d.ts.map +1 -0
- package/dist/{states → types/states}/nodeio.t.d.ts +68 -67
- package/dist/types/states/nodeio.t.d.ts.map +1 -0
- package/dist/{states → types/states}/nodespace.d.ts +4 -3
- package/dist/types/states/nodespace.d.ts.map +1 -0
- package/dist/{states → types/states}/nodespace.t.d.ts +17 -16
- package/dist/types/states/nodespace.t.d.ts.map +1 -0
- package/dist/{states → types/states}/reactflow.d.ts +9 -8
- package/dist/types/states/reactflow.d.ts.map +1 -0
- package/dist/{states → types/states}/reactflow.t.d.ts +12 -11
- package/dist/types/states/reactflow.t.d.ts.map +1 -0
- package/dist/types/{rendering.t.d.ts → types/rendering.t.d.ts} +11 -10
- package/dist/types/types/rendering.t.d.ts.map +1 -0
- package/dist/{utils → types/utils}/autolayout/force.d.ts +3 -2
- package/dist/types/utils/autolayout/force.d.ts.map +1 -0
- package/dist/{utils → types/utils}/autolayout/index.d.ts +3 -2
- package/dist/types/utils/autolayout/index.d.ts.map +1 -0
- package/dist/types/utils/helperfunctions.d.ts +17 -0
- package/dist/types/utils/helperfunctions.d.ts.map +1 -0
- package/dist/{utils → types/utils}/index.d.ts +4 -3
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/{utils → types/utils}/objects.d.ts +20 -19
- package/dist/types/utils/objects.d.ts.map +1 -0
- package/dist/umd/index.umd.js +5221 -0
- package/package.json +36 -75
- package/README.md +0 -46
- package/dist/data_text_javascript_base64_.index.js +0 -22
- package/dist/frontend/datarenderer/data_renderer_overlay.d.ts +0 -5
- package/dist/frontend/datarenderer/data_renderer_preview.d.ts +0 -5
- package/dist/frontend/datarenderer/plotly.d.ts +0 -10
- package/dist/frontend/header/index.d.ts +0 -4
- package/dist/frontend/node/body_data_renderer.d.ts +0 -7
- package/dist/frontend/node/io/handle_renderer.d.ts +0 -7
- package/dist/index.js +0 -910
- package/dist/plugin/index.d.ts +0 -6
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import RendererPlugin from "./rendenderer";
|
|
2
|
+
interface FuncNodesReactPlugin {
|
|
3
|
+
RendererPlugin?: RendererPlugin;
|
|
4
|
+
}
|
|
5
|
+
interface PackedPlugin {
|
|
6
|
+
module: string;
|
|
7
|
+
js?: string[];
|
|
8
|
+
css?: string[];
|
|
9
|
+
}
|
|
10
|
+
export type { RendererPlugin, PackedPlugin };
|
|
11
|
+
export default FuncNodesReactPlugin;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,eAAe,CAAC;AAE3C,UAAU,oBAAoB;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;AAC7C,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { HandlePreviewRendererType, DataOverlayRendererType, DataPreviewViewRendererType, DataViewRendererType } from "../frontend/datarenderer/rendermappings";
|
|
2
|
-
import { InputRendererType } from "../states/nodeio.t";
|
|
3
|
-
interface RendererPlugin {
|
|
4
|
-
input_renderers?: {
|
|
5
|
-
[key: string]: InputRendererType;
|
|
6
|
-
};
|
|
7
|
-
handle_preview_renderers?: {
|
|
8
|
-
[key: string]: HandlePreviewRendererType;
|
|
9
|
-
};
|
|
10
|
-
data_overlay_renderers?: {
|
|
11
|
-
[key: string]: DataOverlayRendererType;
|
|
12
|
-
};
|
|
13
|
-
data_preview_renderers?: {
|
|
14
|
-
[key: string]: DataPreviewViewRendererType;
|
|
15
|
-
};
|
|
16
|
-
data_view_renderers?: {
|
|
17
|
-
[key: string]: DataViewRendererType;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export default RendererPlugin;
|
|
1
|
+
import { HandlePreviewRendererType, DataOverlayRendererType, DataPreviewViewRendererType, DataViewRendererType } from "../frontend/datarenderer/rendermappings";
|
|
2
|
+
import { InputRendererType } from "../states/nodeio.t";
|
|
3
|
+
interface RendererPlugin {
|
|
4
|
+
input_renderers?: {
|
|
5
|
+
[key: string]: InputRendererType;
|
|
6
|
+
};
|
|
7
|
+
handle_preview_renderers?: {
|
|
8
|
+
[key: string]: HandlePreviewRendererType;
|
|
9
|
+
};
|
|
10
|
+
data_overlay_renderers?: {
|
|
11
|
+
[key: string]: DataOverlayRendererType;
|
|
12
|
+
};
|
|
13
|
+
data_preview_renderers?: {
|
|
14
|
+
[key: string]: DataPreviewViewRendererType;
|
|
15
|
+
};
|
|
16
|
+
data_view_renderers?: {
|
|
17
|
+
[key: string]: DataViewRendererType;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export default RendererPlugin;
|
|
21
|
+
//# sourceMappingURL=rendenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rendenderer.d.ts","sourceRoot":"","sources":["../../../src/plugin/rendenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGvD,UAAU,cAAc;IACtB,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;KAAE,CAAC;IACvD,wBAAwB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,CAAC;IACxE,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;KAAE,CAAC;IACpE,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAA;KAAE,CAAC;IACxE,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;CAC/D;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
declare const generate_edge_id: ({ src_nid, src_ioid, trg_nid, trg_ioid, }: {
|
|
2
|
-
src_nid: string;
|
|
3
|
-
src_ioid: string;
|
|
4
|
-
trg_nid: string;
|
|
5
|
-
trg_ioid: string;
|
|
6
|
-
}) => string;
|
|
7
|
-
export { generate_edge_id };
|
|
1
|
+
declare const generate_edge_id: ({ src_nid, src_ioid, trg_nid, trg_ioid, }: {
|
|
2
|
+
src_nid: string;
|
|
3
|
+
src_ioid: string;
|
|
4
|
+
trg_nid: string;
|
|
5
|
+
trg_ioid: string;
|
|
6
|
+
}) => string;
|
|
7
|
+
export { generate_edge_id };
|
|
8
|
+
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/states/edge.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,gBAAgB,8CAKnB;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,WAEA,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
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 };
|
|
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"}
|
|
@@ -1,10 +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, FuncnodesReactFlowProps } 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: ({ useWorkerManager, default_worker, }: FuncnodesReactFlowProps) => FuncNodesReactFlowZustandInterface;
|
|
9
|
-
export default FuncNodesReactFlowZustand;
|
|
10
|
-
export { LibZustand, NodeSpaceZustand, assert_reactflow_node };
|
|
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, FuncnodesReactFlowProps } 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: ({ useWorkerManager, default_worker, }: FuncnodesReactFlowProps) => 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,CAAC;AAC/B,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAI3C,OAAO,EACL,IAAI,IAAI,MAAM,EAKf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAc,SAAS,EAAE,MAAM,UAAU,CAAC;AAMjD,OAAO,KAAK,EACV,kCAAkC,EAIlC,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AA6DzC,QAAA,MAAM,qBAAqB,SACnB,QAAQ,SACP,SAAS,kBACA,kCAAkC,KACjD,QAAQ,GAAG,MAyBb,CAAC;AAEF,QAAA,MAAM,yBAAyB,0CAG5B,uBAAuB,KAAG,kCA+T5B,CAAC;AAEF,eAAe,yBAAyB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,111 +1,115 @@
|
|
|
1
|
-
import { StoreApi, UseBoundStore } from "zustand";
|
|
2
|
-
import { FuncNodesWorker, WorkerManager } from "../funcnodes";
|
|
3
|
-
import { ExternalWorkerDependecies, 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
|
-
import FuncNodesReactPlugin from "../plugin";
|
|
10
|
-
interface RenderOptions {
|
|
11
|
-
typemap?: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
inputconverter?: {
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
interface NodeViewState {
|
|
19
|
-
pos: [number, number];
|
|
20
|
-
size: [number, number];
|
|
21
|
-
collapsed: boolean;
|
|
22
|
-
}
|
|
23
|
-
interface ViewState {
|
|
24
|
-
nodes: {
|
|
25
|
-
[key: string]: NodeViewState;
|
|
26
|
-
};
|
|
27
|
-
renderoptions?: RenderOptions;
|
|
28
|
-
}
|
|
29
|
-
interface FullNodeSpaceJSON {
|
|
30
|
-
nodes: NodeType[];
|
|
31
|
-
edges: [string, string, string, string][];
|
|
32
|
-
prop: {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
};
|
|
35
|
-
lib: LibType;
|
|
36
|
-
}
|
|
37
|
-
interface FullState {
|
|
38
|
-
backend: FullNodeSpaceJSON;
|
|
39
|
-
view: ViewState;
|
|
40
|
-
worker: {
|
|
41
|
-
[key: string]: string[];
|
|
42
|
-
};
|
|
43
|
-
worker_dependencies: ExternalWorkerDependecies[];
|
|
44
|
-
}
|
|
45
|
-
interface ProgressState {
|
|
46
|
-
message: string;
|
|
47
|
-
status: string;
|
|
48
|
-
progress: number;
|
|
49
|
-
blocking: boolean;
|
|
50
|
-
}
|
|
51
|
-
interface ProgressStateMessage extends ProgressState {
|
|
52
|
-
type: "progress";
|
|
53
|
-
}
|
|
54
|
-
interface ResultMessage {
|
|
55
|
-
type: "result";
|
|
56
|
-
id?: string;
|
|
57
|
-
result: any;
|
|
58
|
-
}
|
|
59
|
-
interface ErrorMessage {
|
|
60
|
-
type: "error";
|
|
61
|
-
error: string;
|
|
62
|
-
tb: string[];
|
|
63
|
-
id?: string;
|
|
64
|
-
}
|
|
65
|
-
interface NodeSpaceEvent {
|
|
66
|
-
type: "nsevent";
|
|
67
|
-
event: string;
|
|
68
|
-
data: {
|
|
69
|
-
[key: string]: any;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
type JSONMessage = ProgressStateMessage | ResultMessage | ErrorMessage | NodeSpaceEvent;
|
|
73
|
-
interface WorkerRepresentation {
|
|
74
|
-
uuid: string;
|
|
75
|
-
host: string;
|
|
76
|
-
port: number;
|
|
77
|
-
ssl: boolean;
|
|
78
|
-
active: boolean;
|
|
79
|
-
name: string | null;
|
|
80
|
-
}
|
|
81
|
-
interface WorkersState {
|
|
82
|
-
[key: string]: WorkerRepresentation;
|
|
83
|
-
}
|
|
84
|
-
interface
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
1
|
+
import { StoreApi, UseBoundStore } from "zustand";
|
|
2
|
+
import { FuncNodesWorker, WorkerManager } from "../funcnodes";
|
|
3
|
+
import { ExternalWorkerDependecies, 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
|
+
import FuncNodesReactPlugin from "../plugin";
|
|
10
|
+
interface RenderOptions {
|
|
11
|
+
typemap?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
inputconverter?: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
interface NodeViewState {
|
|
19
|
+
pos: [number, number];
|
|
20
|
+
size: [number, number];
|
|
21
|
+
collapsed: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface ViewState {
|
|
24
|
+
nodes: {
|
|
25
|
+
[key: string]: NodeViewState;
|
|
26
|
+
};
|
|
27
|
+
renderoptions?: RenderOptions;
|
|
28
|
+
}
|
|
29
|
+
interface FullNodeSpaceJSON {
|
|
30
|
+
nodes: NodeType[];
|
|
31
|
+
edges: [string, string, string, string][];
|
|
32
|
+
prop: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
lib: LibType;
|
|
36
|
+
}
|
|
37
|
+
interface FullState {
|
|
38
|
+
backend: FullNodeSpaceJSON;
|
|
39
|
+
view: ViewState;
|
|
40
|
+
worker: {
|
|
41
|
+
[key: string]: string[];
|
|
42
|
+
};
|
|
43
|
+
worker_dependencies: ExternalWorkerDependecies[];
|
|
44
|
+
}
|
|
45
|
+
interface ProgressState {
|
|
46
|
+
message: string;
|
|
47
|
+
status: string;
|
|
48
|
+
progress: number;
|
|
49
|
+
blocking: boolean;
|
|
50
|
+
}
|
|
51
|
+
interface ProgressStateMessage extends ProgressState {
|
|
52
|
+
type: "progress";
|
|
53
|
+
}
|
|
54
|
+
interface ResultMessage {
|
|
55
|
+
type: "result";
|
|
56
|
+
id?: string;
|
|
57
|
+
result: any;
|
|
58
|
+
}
|
|
59
|
+
interface ErrorMessage {
|
|
60
|
+
type: "error";
|
|
61
|
+
error: string;
|
|
62
|
+
tb: string[];
|
|
63
|
+
id?: string;
|
|
64
|
+
}
|
|
65
|
+
interface NodeSpaceEvent {
|
|
66
|
+
type: "nsevent";
|
|
67
|
+
event: string;
|
|
68
|
+
data: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
type JSONMessage = ProgressStateMessage | ResultMessage | ErrorMessage | NodeSpaceEvent;
|
|
73
|
+
interface WorkerRepresentation {
|
|
74
|
+
uuid: string;
|
|
75
|
+
host: string;
|
|
76
|
+
port: number;
|
|
77
|
+
ssl: boolean;
|
|
78
|
+
active: boolean;
|
|
79
|
+
name: string | null;
|
|
80
|
+
}
|
|
81
|
+
interface WorkersState {
|
|
82
|
+
[key: string]: WorkerRepresentation;
|
|
83
|
+
}
|
|
84
|
+
interface FuncnodesReactHeaderProps {
|
|
85
|
+
}
|
|
86
|
+
interface FuncnodesReactFlowProps {
|
|
87
|
+
useWorkerManager?: boolean;
|
|
88
|
+
default_worker?: FuncNodesWorker;
|
|
89
|
+
header?: FuncnodesReactHeaderProps;
|
|
90
|
+
}
|
|
91
|
+
interface FuncNodesReactFlowZustandInterface {
|
|
92
|
+
options: FuncnodesReactFlowProps;
|
|
93
|
+
lib: LibZustandInterface;
|
|
94
|
+
workermanager: WorkerManager | undefined;
|
|
95
|
+
workers: UseBoundStore<StoreApi<WorkersState>>;
|
|
96
|
+
worker: FuncNodesWorker | undefined;
|
|
97
|
+
nodespace: NodeSpaceZustandInterface;
|
|
98
|
+
useReactFlowStore: RFStore;
|
|
99
|
+
render_options: UseBoundStore<StoreApi<RenderOptions>>;
|
|
100
|
+
progress_state: UseBoundStore<StoreApi<ProgressState>>;
|
|
101
|
+
update_render_options: (options: RenderOptions) => void;
|
|
102
|
+
rf_instance?: ReturnType<typeof useReactFlow>;
|
|
103
|
+
on_node_action: (action: NodeAction) => void;
|
|
104
|
+
on_edge_action: (edge: EdgeAction) => void;
|
|
105
|
+
set_progress: (progress: ProgressState) => void;
|
|
106
|
+
auto_progress: () => void;
|
|
107
|
+
plugins: UseBoundStore<StoreApi<{
|
|
108
|
+
[key: string]: FuncNodesReactPlugin;
|
|
109
|
+
}>>;
|
|
110
|
+
add_plugin: (name: string, plugin: FuncNodesReactPlugin) => void;
|
|
111
|
+
reactflowRef: HTMLDivElement | null;
|
|
112
|
+
clear_all: () => void;
|
|
113
|
+
}
|
|
114
|
+
export type { FuncNodesReactFlowZustandInterface, WorkersState, WorkerRepresentation, JSONMessage, FullState, FullNodeSpaceJSON, ViewState, RenderOptions, ProgressState, ProgressStateMessage, ResultMessage, ErrorMessage, NodeSpaceEvent, NodeViewState, FuncnodesReactFlowProps, FuncnodesReactHeaderProps, };
|
|
115
|
+
//# 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,EACL,yBAAyB,EACzB,OAAO,EACP,mBAAmB,EACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,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ib";
|
|
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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { LibZustandInterface } from "./lib.t";
|
|
2
|
-
declare const LibZustand: () => LibZustandInterface;
|
|
3
|
-
export default LibZustand;
|
|
1
|
+
import { LibZustandInterface } from "./lib.t";
|
|
2
|
+
declare const LibZustand: () => LibZustandInterface;
|
|
3
|
+
export default LibZustand;
|
|
4
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../src/states/lib.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAY,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,UAAU,QAAO,mBAYtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,38 +1,39 @@
|
|
|
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 ExternalWorkerClassDep {
|
|
17
|
-
module: string;
|
|
18
|
-
class_name: string;
|
|
19
|
-
name: string;
|
|
20
|
-
}
|
|
21
|
-
interface ExternalWorkerDependecies {
|
|
22
|
-
module: string;
|
|
23
|
-
worker_classes: ExternalWorkerClassDep[];
|
|
24
|
-
}
|
|
25
|
-
interface LibState {
|
|
26
|
-
lib: LibType;
|
|
27
|
-
external_worker?: ExternalWorkerDependecies[];
|
|
28
|
-
set: (state: {
|
|
29
|
-
lib?: LibType;
|
|
30
|
-
external_worker?: ExternalWorkerDependecies[];
|
|
31
|
-
}) => void;
|
|
32
|
-
get_lib: () => LibType;
|
|
33
|
-
get_external_worker: () => ExternalWorkerDependecies[] | undefined;
|
|
34
|
-
}
|
|
35
|
-
interface LibZustandInterface {
|
|
36
|
-
libstate: UseBoundStore<StoreApi<LibState>>;
|
|
37
|
-
}
|
|
38
|
-
export type { LibZustandInterface, LibState, LibType, Shelf, LibNode, ExternalWorkerClassDep, ExternalWorkerDependecies, };
|
|
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 ExternalWorkerClassDep {
|
|
17
|
+
module: string;
|
|
18
|
+
class_name: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
interface ExternalWorkerDependecies {
|
|
22
|
+
module: string;
|
|
23
|
+
worker_classes: ExternalWorkerClassDep[];
|
|
24
|
+
}
|
|
25
|
+
interface LibState {
|
|
26
|
+
lib: LibType;
|
|
27
|
+
external_worker?: ExternalWorkerDependecies[];
|
|
28
|
+
set: (state: {
|
|
29
|
+
lib?: LibType;
|
|
30
|
+
external_worker?: ExternalWorkerDependecies[];
|
|
31
|
+
}) => void;
|
|
32
|
+
get_lib: () => LibType;
|
|
33
|
+
get_external_worker: () => ExternalWorkerDependecies[] | undefined;
|
|
34
|
+
}
|
|
35
|
+
interface LibZustandInterface {
|
|
36
|
+
libstate: UseBoundStore<StoreApi<LibState>>;
|
|
37
|
+
}
|
|
38
|
+
export type { LibZustandInterface, LibState, LibType, Shelf, LibNode, ExternalWorkerClassDep, ExternalWorkerDependecies, };
|
|
39
|
+
//# 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,CAAC;AAElD,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,UAAU,EAAE,KAAK,EAAE,CAAC;CACrB,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,KAAK,EAAE,CAAC;CAClB,CAAC;AAEF,UAAU,sBAAsB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AACD,UAAU,yBAAyB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C;AAED,UAAU,QAAQ;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,eAAe,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAC9C,GAAG,EAAE,CAAC,KAAK,EAAE;QACX,GAAG,CAAC,EAAE,OAAO,CAAC;QACd,eAAe,CAAC,EAAE,yBAAyB,EAAE,CAAC;KAC/C,KAAK,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,mBAAmB,EAAE,MAAM,yBAAyB,EAAE,GAAG,SAAS,CAAC;CACpE;AAED,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC7C;AAED,YAAY,EACV,mBAAmB,EACnB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,sBAAsB,EACtB,yBAAyB,GAC1B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { NodeType, PartialNodeType, NodeStore } from "./node.t";
|
|
2
|
-
declare const assert_full_node: (node: PartialNodeType) => NodeType;
|
|
3
|
-
declare const normalize_node: (node: PartialNodeType) => PartialNodeType;
|
|
4
|
-
declare const createNodeStore: (node: NodeType) => NodeStore;
|
|
5
|
-
export { createNodeStore, assert_full_node, normalize_node };
|
|
1
|
+
import { NodeType, PartialNodeType, NodeStore } from "./node.t";
|
|
2
|
+
declare const assert_full_node: (node: PartialNodeType) => NodeType;
|
|
3
|
+
declare const normalize_node: (node: PartialNodeType) => PartialNodeType;
|
|
4
|
+
declare const createNodeStore: (node: NodeType) => NodeStore;
|
|
5
|
+
export { createNodeStore, assert_full_node, normalize_node };
|
|
6
|
+
//# 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,QAyBjD,CAAC;AAEF,QAAA,MAAM,cAAc,SAAU,eAAe,KAAG,eAkC/C,CAAC;AAEF,QAAA,MAAM,eAAe,SAAU,QAAQ,KAAG,SAMzC,CAAC;AACF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC"}
|