@linkdlab/funcnodes_react_flow 0.1.5 → 0.2.0
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 +4724 -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 -111
- 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 -81
- 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} +8 -7
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{plugin → types/plugin}/index.d.ts +7 -6
- 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 -106
- 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/{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 +5265 -0
- package/package.json +36 -84
- package/README.md +0 -46
- package/dist/frontend/datarenderer/data_renderer_overlay.d.ts +0 -6
- package/dist/frontend/datarenderer/data_renderer_preview.d.ts +0 -6
- 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 -8
- package/dist/frontend/node/io/handle_renderer.d.ts +0 -8
- package/dist/index.js +0 -870
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle_renderer.d.ts","sourceRoot":"","sources":["../../../../../src/frontend/node/io/handle_renderer.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAOlD,QAAA,MAAM,8BAA8B,OAC9B,MAAM,KACT;IACD,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,WAAW;IACvC,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,WAAW;CA6BxC,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import NodeInput from "./nodeinput";
|
|
2
|
-
import NodeOutput from "./nodeoutput";
|
|
3
|
-
export { NodeInput, NodeOutput };
|
|
1
|
+
import NodeInput from "./nodeinput";
|
|
2
|
+
import NodeOutput from "./nodeoutput";
|
|
3
|
+
export { NodeInput, NodeOutput };
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/frontend/node/io/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import "./io.scss";
|
|
2
|
-
import { HandleProps } from "reactflow";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { IOType, SerializedType } from "../../../states/nodeio.t";
|
|
5
|
-
declare const pick_best_io_type: (iot: SerializedType, typemap: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
}) => [string | undefined, string | undefined];
|
|
8
|
-
type HandleWithPreviewProps = {
|
|
9
|
-
io: IOType;
|
|
10
|
-
typestring: string | undefined;
|
|
11
|
-
preview?: React.FC<{
|
|
12
|
-
io: IOType;
|
|
13
|
-
}>;
|
|
14
|
-
} & HandleProps;
|
|
15
|
-
declare const HandleWithPreview: ({ io, typestring, preview, ...props }: HandleWithPreviewProps) => React.JSX.Element;
|
|
16
|
-
export { pick_best_io_type, HandleWithPreview };
|
|
1
|
+
import "./io.scss";
|
|
2
|
+
import { HandleProps } from "reactflow";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { IOType, SerializedType } from "../../../states/nodeio.t";
|
|
5
|
+
declare const pick_best_io_type: (iot: SerializedType, typemap: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}) => [string | undefined, string | undefined];
|
|
8
|
+
type HandleWithPreviewProps = {
|
|
9
|
+
io: IOType;
|
|
10
|
+
typestring: string | undefined;
|
|
11
|
+
preview?: React.FC<{
|
|
12
|
+
io: IOType;
|
|
13
|
+
}>;
|
|
14
|
+
} & HandleProps;
|
|
15
|
+
declare const HandleWithPreview: ({ io, typestring, preview, ...props }: HandleWithPreviewProps) => React.JSX.Element;
|
|
16
|
+
export { pick_best_io_type, HandleWithPreview };
|
|
17
|
+
//# sourceMappingURL=io.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../../../../src/frontend/node/io/io.tsx"],"names":[],"mappings":"AAKA,OAAO,WAAW,CAAC;AACnB,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAElE,QAAA,MAAM,iBAAiB,QAChB,cAAc,WACV;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,KACjC,CAAC,MAAM,GAAG,SAAS,EAAE,MAAM,GAAG,SAAS,CAwCzC,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpC,GAAG,WAAW,CAAC;AAEhB,QAAA,MAAM,iBAAiB,0CAKpB,sBAAsB,sBAsDxB,CAAC;AACF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IOType } from "../../../states/nodeio.t";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare const NodeInput: ({ io }: {
|
|
4
|
-
io: IOType;
|
|
5
|
-
}) => React.JSX.Element;
|
|
6
|
-
export default NodeInput;
|
|
1
|
+
import { IOType } from "../../../states/nodeio.t";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const NodeInput: ({ io }: {
|
|
4
|
+
io: IOType;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default NodeInput;
|
|
7
|
+
//# sourceMappingURL=nodeinput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeinput.d.ts","sourceRoot":"","sources":["../../../../../src/frontend/node/io/nodeinput.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAkC1B,QAAA,MAAM,SAAS,WAAY;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,sBAkCxC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IOType } from "../../../states/nodeio.t";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare const NodeOutput: ({ io }: {
|
|
4
|
-
io: IOType;
|
|
5
|
-
}) => React.JSX.Element;
|
|
6
|
-
export default NodeOutput;
|
|
1
|
+
import { IOType } from "../../../states/nodeio.t";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const NodeOutput: ({ io }: {
|
|
4
|
+
io: IOType;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default NodeOutput;
|
|
7
|
+
//# sourceMappingURL=nodeoutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeoutput.d.ts","sourceRoot":"","sources":["../../../../../src/frontend/node/io/nodeoutput.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,UAAU,WAAY;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,sBAuBzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NodeStore } from "../../states/node.t";
|
|
3
|
-
import "./node.scss";
|
|
4
|
-
/**
|
|
5
|
-
* A generic function to deeply merge two objects of type T.
|
|
6
|
-
*
|
|
7
|
-
* @param {T} target - The target object to be merged.
|
|
8
|
-
* @param {DeepPartial<T>} source - The source object to merge into the target. All properties of this object are optional.
|
|
9
|
-
*
|
|
10
|
-
* @returns {Object} An object containing the merged object (new_obj) and a boolean indicating if there was a change (change).
|
|
11
|
-
*
|
|
12
|
-
* @throws {Type 'string' cannot be used to index type 'T'} This error is ignored using the @ts-ignore directive because we are dynamically accessing properties of a generic type T.
|
|
13
|
-
*/
|
|
14
|
-
declare const DefaultNode: ({ data }: {
|
|
15
|
-
data: {
|
|
16
|
-
UseNodeStore: NodeStore;
|
|
17
|
-
};
|
|
18
|
-
}) => React.JSX.Element;
|
|
19
|
-
export default DefaultNode;
|
|
20
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NodeStore } from "../../states/node.t";
|
|
3
|
+
import "./node.scss";
|
|
4
|
+
/**
|
|
5
|
+
* A generic function to deeply merge two objects of type T.
|
|
6
|
+
*
|
|
7
|
+
* @param {T} target - The target object to be merged.
|
|
8
|
+
* @param {DeepPartial<T>} source - The source object to merge into the target. All properties of this object are optional.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Object} An object containing the merged object (new_obj) and a boolean indicating if there was a change (change).
|
|
11
|
+
*
|
|
12
|
+
* @throws {Type 'string' cannot be used to index type 'T'} This error is ignored using the @ts-ignore directive because we are dynamically accessing properties of a generic type T.
|
|
13
|
+
*/
|
|
14
|
+
declare const DefaultNode: ({ data }: {
|
|
15
|
+
data: {
|
|
16
|
+
UseNodeStore: NodeStore;
|
|
17
|
+
};
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
|
+
export default DefaultNode;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/frontend/node/node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAY,MAAM,qBAAqB,CAAC;AAI1D,OAAO,aAAa,CAAC;AAkJrB;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,aAAc;IAAE,IAAI,EAAE;QAAE,YAAY,EAAE,SAAS,CAAA;KAAE,CAAA;CAAE,sBA4CnE,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./colorpicker.scss";
|
|
3
|
-
declare const HSLColorPicker: ({ onChange, colorconverter, allow_null, }: {
|
|
4
|
-
onChange: (colorconverter: {
|
|
5
|
-
[key: string]: () => number[] | string;
|
|
6
|
-
} | null) => void;
|
|
7
|
-
colorconverter: {
|
|
8
|
-
[key: string]: () => number[] | string;
|
|
9
|
-
} | null;
|
|
10
|
-
allow_null?: boolean
|
|
11
|
-
}) => React.JSX.Element;
|
|
12
|
-
declare const CustomColorPicker: ({ inicolordata, inicolorspace, allow_null, onChange, }: {
|
|
13
|
-
inicolordata?:
|
|
14
|
-
inicolorspace?: string
|
|
15
|
-
allow_null?: boolean
|
|
16
|
-
onChange?: (
|
|
17
|
-
[key: string]: () => number[] | string;
|
|
18
|
-
} | null) => void
|
|
19
|
-
}) => React.JSX.Element;
|
|
20
|
-
export default CustomColorPicker;
|
|
21
|
-
export { HSLColorPicker };
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./colorpicker.scss";
|
|
3
|
+
declare const HSLColorPicker: ({ onChange, colorconverter, allow_null, }: {
|
|
4
|
+
onChange: (colorconverter: {
|
|
5
|
+
[key: string]: () => number[] | string;
|
|
6
|
+
} | null) => void;
|
|
7
|
+
colorconverter: {
|
|
8
|
+
[key: string]: () => number[] | string;
|
|
9
|
+
} | null;
|
|
10
|
+
allow_null?: boolean;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
declare const CustomColorPicker: ({ inicolordata, inicolorspace, allow_null, onChange, }: {
|
|
13
|
+
inicolordata?: number[] | string | string[];
|
|
14
|
+
inicolorspace?: string;
|
|
15
|
+
allow_null?: boolean;
|
|
16
|
+
onChange?: (colorconverter: {
|
|
17
|
+
[key: string]: () => number[] | string;
|
|
18
|
+
} | null) => void;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
|
+
export default CustomColorPicker;
|
|
21
|
+
export { HSLColorPicker };
|
|
22
|
+
//# sourceMappingURL=colorpicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorpicker.d.ts","sourceRoot":"","sources":["../../../../src/frontend/utils/colorpicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,oBAAoB,CAAC;AAsC5B,QAAA,MAAM,cAAc,8CAIjB;IACD,QAAQ,EAAE,CACR,cAAc,EAAE;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC;KACxC,GAAG,IAAI,KACL,IAAI,CAAC;IACV,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,MAAM,EAAE,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAClE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,sBA0NA,CAAC;AAEF,QAAA,MAAM,iBAAiB,2DAKpB;IACD,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CACT,cAAc,EAAE;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC;KACxC,GAAG,IAAI,KACL,IAAI,CAAC;CACX,sBA8CA,CAAC;AAEF,eAAe,iBAAiB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "react-json-view-lite/dist/index.css";
|
|
3
|
-
declare const JSONDataDisplay: ({ data }: {
|
|
4
|
-
data: any;
|
|
5
|
-
}) => React.JSX.Element;
|
|
6
|
-
export default JSONDataDisplay;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "react-json-view-lite/dist/index.css";
|
|
3
|
+
declare const JSONDataDisplay: ({ data }: {
|
|
4
|
+
data: any;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default JSONDataDisplay;
|
|
7
|
+
//# sourceMappingURL=jsondata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsondata.d.ts","sourceRoot":"","sources":["../../../../src/frontend/utils/jsondata.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,qCAAqC,CAAC;AAC7C,QAAA,MAAM,eAAe,aAAc;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,sBAQ/C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ActionMeta, SingleValue } from "react-select";
|
|
3
|
-
import "./select.scss";
|
|
4
|
-
declare const CustomSelect: <Option extends {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
}>({ options, items_per_page, className, defaultValue, onChange, }: {
|
|
8
|
-
options: Option[];
|
|
9
|
-
items_per_page?: number
|
|
10
|
-
className?: string
|
|
11
|
-
defaultValue?: Option
|
|
12
|
-
onChange: (newValue: SingleValue<Option>, actionMeta: ActionMeta<Option>) => void;
|
|
13
|
-
}) => React.JSX.Element;
|
|
14
|
-
export default CustomSelect;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActionMeta, SingleValue } from "react-select";
|
|
3
|
+
import "./select.scss";
|
|
4
|
+
declare const CustomSelect: <Option extends {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}>({ options, items_per_page, className, defaultValue, onChange, }: {
|
|
8
|
+
options: Option[];
|
|
9
|
+
items_per_page?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
defaultValue?: Option;
|
|
12
|
+
onChange: (newValue: SingleValue<Option>, actionMeta: ActionMeta<Option>) => void;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
export default CustomSelect;
|
|
15
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/frontend/utils/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,eAAe,CAAC;AAEvB,QAAA,MAAM,YAAY;WAA4B,MAAM;WAAS,MAAM;oEAMhE;IACD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CACR,QAAQ,EAAE,YAAY,MAAM,CAAC,EAC7B,UAAU,EAAE,WAAW,MAAM,CAAC,KAC3B,IAAI,CAAC;CACX,sBA4CA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "./table.scss";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface TableData {
|
|
4
|
-
columns: string[];
|
|
5
|
-
index: string[];
|
|
6
|
-
data: any[][];
|
|
7
|
-
}
|
|
8
|
-
declare const SortableTable: ({ tabledata }: {
|
|
9
|
-
tabledata: TableData;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
export { SortableTable };
|
|
1
|
+
import "./table.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface TableData {
|
|
4
|
+
columns: string[];
|
|
5
|
+
index: string[];
|
|
6
|
+
data: any[][];
|
|
7
|
+
}
|
|
8
|
+
declare const SortableTable: ({ tabledata }: {
|
|
9
|
+
tabledata: TableData;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export { SortableTable };
|
|
12
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/frontend/utils/table.tsx"],"names":[],"mappings":"AAUA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC;CACf;AAqDD,QAAA,MAAM,aAAa,kBAAmB;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,sBAuF7D,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,81 +1,88 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
}): Promise<any>;
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
1
|
+
import { FuncNodesReactFlowZustandInterface, JSONMessage, NodeSpaceEvent } from "../states/fnrfzst.t";
|
|
2
|
+
import { NodeActionUpdate, NodeType, PartialNodeType } from "../states/node.t";
|
|
3
|
+
interface WorkerProps {
|
|
4
|
+
zustand?: FuncNodesReactFlowZustandInterface;
|
|
5
|
+
uuid: string;
|
|
6
|
+
on_error?: (error: string | Error) => void;
|
|
7
|
+
}
|
|
8
|
+
declare class FuncNodesWorker {
|
|
9
|
+
messagePromises: Map<string, any>;
|
|
10
|
+
_zustand?: FuncNodesReactFlowZustandInterface;
|
|
11
|
+
_local_nodeupdates: Map<string, PartialNodeType>;
|
|
12
|
+
_nodeupdatetimer: ReturnType<typeof setTimeout>;
|
|
13
|
+
uuid: string;
|
|
14
|
+
is_open: boolean;
|
|
15
|
+
on_error: (error: any) => void;
|
|
16
|
+
constructor(data: WorkerProps);
|
|
17
|
+
set_zustand(zustand: FuncNodesReactFlowZustandInterface): void;
|
|
18
|
+
stepwise_fullsync(): Promise<void>;
|
|
19
|
+
sync_lib(): Promise<void>;
|
|
20
|
+
sync_external_worker(): Promise<void>;
|
|
21
|
+
sync_funcnodes_plugins(): Promise<void>;
|
|
22
|
+
sync_view_state(): Promise<void>;
|
|
23
|
+
sync_nodespace(): Promise<void>;
|
|
24
|
+
fullsync(): Promise<void>;
|
|
25
|
+
_recieve_edge_added(src_nid: string, src_ioid: string, trg_nid: string, trg_ioid: string): Promise<void>;
|
|
26
|
+
trigger_node(node_id: string): Promise<void>;
|
|
27
|
+
add_node(node_id: string): Promise<void>;
|
|
28
|
+
remove_node(node_id: string): Promise<void>;
|
|
29
|
+
_recieve_node_added(data: NodeType): Promise<void>;
|
|
30
|
+
add_edge({ src_nid, src_ioid, trg_nid, trg_ioid, replace, }: {
|
|
31
|
+
src_nid: string;
|
|
32
|
+
src_ioid: string;
|
|
33
|
+
trg_nid: string;
|
|
34
|
+
trg_ioid: string;
|
|
35
|
+
replace?: boolean;
|
|
36
|
+
}): Promise<any>;
|
|
37
|
+
remove_edge({ src_nid, src_ioid, trg_nid, trg_ioid, }: {
|
|
38
|
+
src_nid: string;
|
|
39
|
+
src_ioid: string;
|
|
40
|
+
trg_nid: string;
|
|
41
|
+
trg_ioid: string;
|
|
42
|
+
}): Promise<any>;
|
|
43
|
+
add_external_worker({ module, cls_module, cls_name, }: {
|
|
44
|
+
module: string;
|
|
45
|
+
cls_module: string;
|
|
46
|
+
cls_name: string;
|
|
47
|
+
}): Promise<any>;
|
|
48
|
+
sync_local_node_updates(): void;
|
|
49
|
+
locally_update_node(action: NodeActionUpdate): void;
|
|
50
|
+
get_remote_node_state(nid: string): Promise<void>;
|
|
51
|
+
set_io_value({ nid, ioid, value, set_default, }: {
|
|
52
|
+
nid: string;
|
|
53
|
+
ioid: string;
|
|
54
|
+
value: any;
|
|
55
|
+
set_default: boolean;
|
|
56
|
+
}): Promise<any>;
|
|
57
|
+
clear(): Promise<any>;
|
|
58
|
+
save(): Promise<any>;
|
|
59
|
+
load(data: any): Promise<void>;
|
|
60
|
+
get_io_value({ nid, ioid }: {
|
|
61
|
+
nid: string;
|
|
62
|
+
ioid: string;
|
|
63
|
+
}): Promise<any>;
|
|
64
|
+
_send_cmd({ cmd, kwargs, wait_for_response, response_timeout, retries, }: {
|
|
65
|
+
cmd: string;
|
|
66
|
+
kwargs?: any;
|
|
67
|
+
wait_for_response?: boolean;
|
|
68
|
+
response_timeout?: number;
|
|
69
|
+
retries?: number;
|
|
70
|
+
}): Promise<any>;
|
|
71
|
+
send(_data: any): Promise<void>;
|
|
72
|
+
recieve_nodespace_event({ event, data }: NodeSpaceEvent): Promise<void>;
|
|
73
|
+
add_lib(lib: string): Promise<any>;
|
|
74
|
+
add_worker_package(pkg: string): Promise<any>;
|
|
75
|
+
recieve(data: JSONMessage): Promise<any>;
|
|
76
|
+
disconnect(): void;
|
|
77
|
+
onclose(): void;
|
|
78
|
+
reconnect(): Promise<void>;
|
|
79
|
+
stop(): Promise<void>;
|
|
80
|
+
get_io_full_value({ nid, ioid }: {
|
|
81
|
+
nid: string;
|
|
82
|
+
ioid: string;
|
|
83
|
+
}): Promise<any>;
|
|
84
|
+
get_node_status(nid: string): Promise<any>;
|
|
85
|
+
}
|
|
86
|
+
export default FuncNodesWorker;
|
|
87
|
+
export type { WorkerProps };
|
|
88
|
+
//# sourceMappingURL=funcnodesworker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcnodesworker.d.ts","sourceRoot":"","sources":["../../../src/funcnodes/funcnodesworker.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import WebSocketWorker from "./websocketworker";
|
|
2
|
-
import FuncNodesWorker from "./funcnodesworker";
|
|
3
|
-
import WorkerManager from "./workermanager";
|
|
4
|
-
export { WebSocketWorker, FuncNodesWorker, WorkerManager };
|
|
1
|
+
import WebSocketWorker from "./websocketworker";
|
|
2
|
+
import FuncNodesWorker from "./funcnodesworker";
|
|
3
|
+
import WorkerManager from "./workermanager";
|
|
4
|
+
export { WebSocketWorker, FuncNodesWorker, WorkerManager };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/funcnodes/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import FuncNodesWorker, { WorkerProps } from "./funcnodesworker";
|
|
2
|
-
interface WebSocketWorkerProps extends WorkerProps {
|
|
3
|
-
url: string;
|
|
4
|
-
}
|
|
5
|
-
declare class WebSocketWorker extends FuncNodesWorker {
|
|
6
|
-
private _url;
|
|
7
|
-
private _websocket;
|
|
8
|
-
private reconnectAttempts;
|
|
9
|
-
private maxReconnectAttempts;
|
|
10
|
-
private initialTimeout;
|
|
11
|
-
private maxTimeout;
|
|
12
|
-
private _reconnect;
|
|
13
|
-
constructor(data: WebSocketWorkerProps);
|
|
14
|
-
private connect;
|
|
15
|
-
private calculateReconnectTimeout;
|
|
16
|
-
private auto_reconnect;
|
|
17
|
-
onmessage(data: string): Promise<void>;
|
|
18
|
-
onopen(): void;
|
|
19
|
-
onclose(): void;
|
|
20
|
-
on_ws_error(): void;
|
|
21
|
-
send(data: any): Promise<void>;
|
|
22
|
-
stop(): Promise<void>;
|
|
23
|
-
close(): void;
|
|
24
|
-
disconnect(): void;
|
|
25
|
-
reconnect(): Promise<void>;
|
|
26
|
-
}
|
|
27
|
-
export default WebSocketWorker;
|
|
1
|
+
import FuncNodesWorker, { WorkerProps } from "./funcnodesworker";
|
|
2
|
+
interface WebSocketWorkerProps extends WorkerProps {
|
|
3
|
+
url: string;
|
|
4
|
+
}
|
|
5
|
+
declare class WebSocketWorker extends FuncNodesWorker {
|
|
6
|
+
private _url;
|
|
7
|
+
private _websocket;
|
|
8
|
+
private reconnectAttempts;
|
|
9
|
+
private maxReconnectAttempts;
|
|
10
|
+
private initialTimeout;
|
|
11
|
+
private maxTimeout;
|
|
12
|
+
private _reconnect;
|
|
13
|
+
constructor(data: WebSocketWorkerProps);
|
|
14
|
+
private connect;
|
|
15
|
+
private calculateReconnectTimeout;
|
|
16
|
+
private auto_reconnect;
|
|
17
|
+
onmessage(data: string): Promise<void>;
|
|
18
|
+
onopen(): void;
|
|
19
|
+
onclose(): void;
|
|
20
|
+
on_ws_error(): void;
|
|
21
|
+
send(data: any): Promise<void>;
|
|
22
|
+
stop(): Promise<void>;
|
|
23
|
+
close(): void;
|
|
24
|
+
disconnect(): void;
|
|
25
|
+
reconnect(): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export default WebSocketWorker;
|
|
28
|
+
//# sourceMappingURL=websocketworker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websocketworker.d.ts","sourceRoot":"","sources":["../../../src/funcnodes/websocketworker.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEjE,UAAU,oBAAqB,SAAQ,WAAW;IAChD,GAAG,EAAE,MAAM,CAAC;CACb;AACD,cAAM,eAAgB,SAAQ,eAAe;IAC3C,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,iBAAiB,CAAa;IACtC,OAAO,CAAC,oBAAoB,CAAe;IAC3C,OAAO,CAAC,cAAc,CAAe;IACrC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,UAAU,CAAiB;gBACvB,IAAI,EAAE,oBAAoB;IAOtC,OAAO,CAAC,OAAO;IAsBf,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,cAAc;IAmBhB,SAAS,CAAC,IAAI,EAAE,MAAM;IAI5B,MAAM;IAON,OAAO;IASP,WAAW;IASL,IAAI,CAAC,IAAI,EAAE,GAAG;IASd,IAAI;IAKV,KAAK;IAGL,UAAU;IAMJ,SAAS;CAsChB;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { FuncNodesReactFlowZustandInterface } from "../states/fnrfzst.t";
|
|
2
|
-
import FuncNodesWorker from "./funcnodesworker";
|
|
3
|
-
declare class WorkerManager {
|
|
4
|
-
private wsuri;
|
|
5
|
-
private workers;
|
|
6
|
-
private ws;
|
|
7
|
-
private reconnectAttempts;
|
|
8
|
-
private maxReconnectAttempts;
|
|
9
|
-
private initialTimeout;
|
|
10
|
-
private maxTimeout;
|
|
11
|
-
private zustand;
|
|
12
|
-
private connectionTimeout?;
|
|
13
|
-
on_setWorker: (worker: FuncNodesWorker | undefined) => void;
|
|
14
|
-
constructor(wsuri: string, zustand: FuncNodesReactFlowZustandInterface);
|
|
15
|
-
private connect;
|
|
16
|
-
on_ws_error(): void;
|
|
17
|
-
onopen(): void;
|
|
18
|
-
onmessage(event: string): void;
|
|
19
|
-
setWorker(worker: FuncNodesWorker | undefined): void;
|
|
20
|
-
restart_worker(workerid: string): Promise<void>;
|
|
21
|
-
private calculateReconnectTimeout;
|
|
22
|
-
private reconnect;
|
|
23
|
-
onclose(): void;
|
|
24
|
-
set_active(workerid: string): void;
|
|
25
|
-
new_worker({ name, reference, copyLib, copyNS, }: {
|
|
26
|
-
name?: string;
|
|
27
|
-
reference?: string;
|
|
28
|
-
copyLib?: boolean;
|
|
29
|
-
copyNS?: boolean;
|
|
30
|
-
}): void;
|
|
31
|
-
}
|
|
32
|
-
export default WorkerManager;
|
|
1
|
+
import { FuncNodesReactFlowZustandInterface } from "../states/fnrfzst.t";
|
|
2
|
+
import FuncNodesWorker from "./funcnodesworker";
|
|
3
|
+
declare class WorkerManager {
|
|
4
|
+
private wsuri;
|
|
5
|
+
private workers;
|
|
6
|
+
private ws;
|
|
7
|
+
private reconnectAttempts;
|
|
8
|
+
private maxReconnectAttempts;
|
|
9
|
+
private initialTimeout;
|
|
10
|
+
private maxTimeout;
|
|
11
|
+
private zustand;
|
|
12
|
+
private connectionTimeout?;
|
|
13
|
+
on_setWorker: (worker: FuncNodesWorker | undefined) => void;
|
|
14
|
+
constructor(wsuri: string, zustand: FuncNodesReactFlowZustandInterface);
|
|
15
|
+
private connect;
|
|
16
|
+
on_ws_error(): void;
|
|
17
|
+
onopen(): void;
|
|
18
|
+
onmessage(event: string): void;
|
|
19
|
+
setWorker(worker: FuncNodesWorker | undefined): void;
|
|
20
|
+
restart_worker(workerid: string): Promise<void>;
|
|
21
|
+
private calculateReconnectTimeout;
|
|
22
|
+
private reconnect;
|
|
23
|
+
onclose(): void;
|
|
24
|
+
set_active(workerid: string): void;
|
|
25
|
+
new_worker({ name, reference, copyLib, copyNS, }: {
|
|
26
|
+
name?: string;
|
|
27
|
+
reference?: string;
|
|
28
|
+
copyLib?: boolean;
|
|
29
|
+
copyNS?: boolean;
|
|
30
|
+
}): void;
|
|
31
|
+
}
|
|
32
|
+
export default WorkerManager;
|
|
33
|
+
//# sourceMappingURL=workermanager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workermanager.d.ts","sourceRoot":"","sources":["../../../src/funcnodes/workermanager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAGnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,cAAM,aAAa;IACjB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,EAAE,CAA0B;IACpC,OAAO,CAAC,iBAAiB,CAAa;IACtC,OAAO,CAAC,oBAAoB,CAAe;IAC3C,OAAO,CAAC,cAAc,CAAe;IACrC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,OAAO,CAAqC;IACpD,OAAO,CAAC,iBAAiB,CAAC,CAAgC;IAC1D,YAAY,EAAE,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,KAAK,IAAI,CAAC;gBAChD,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,kCAAkC;IAUtE,OAAO,CAAC,OAAO;IAiCf,WAAW;IASX,MAAM;IAmBN,SAAS,CAAC,KAAK,EAAE,MAAM;IA8CvB,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS;IAkBvC,cAAc,CAAC,QAAQ,EAAE,MAAM;IAIrC,OAAO,CAAC,yBAAyB;IASjC,OAAO,CAAC,SAAS;IAmBjB,OAAO;IAKP,UAAU,CAAC,QAAQ,EAAE,MAAM;IAK3B,UAAU,CAAC,EACT,IAAI,EACJ,SAAS,EACT,OAAO,EACP,MAAM,GACP,EAAE;QACD,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;CAwBF;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import FuncnodesReactFlow from "./frontend";
|
|
2
|
-
import WebSocketWorker from "./funcnodes/websocketworker";
|
|
3
|
-
import FuncNodesReactPlugin, { RendererPlugin } from "./plugin";
|
|
4
|
-
import { IOType } from "./states/nodeio.t";
|
|
5
|
-
export default FuncnodesReactFlow;
|
|
6
|
-
export { WebSocketWorker };
|
|
7
|
-
export type { IOType, FuncNodesReactPlugin, RendererPlugin };
|
|
1
|
+
import FuncnodesReactFlow from "./frontend";
|
|
2
|
+
import WebSocketWorker from "./funcnodes/websocketworker";
|
|
3
|
+
import FuncNodesReactPlugin, { RendererPlugin } from "./plugin";
|
|
4
|
+
import { IOType } from "./states/nodeio.t";
|
|
5
|
+
export default FuncnodesReactFlow;
|
|
6
|
+
export { WebSocketWorker };
|
|
7
|
+
export type { IOType, FuncNodesReactPlugin, RendererPlugin };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAC5C,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,oBAAoB,EAAE,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,eAAe,kBAAkB,CAAC;AAYlC,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,MAAM,EAAE,oBAAoB,EAAE,cAAc,EAAE,CAAC"}
|