@linkdlab/funcnodes_react_flow 0.4.10 → 1.0.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/funcnodes_react_flow.css +1 -1
- package/dist/index.cjs.js +625 -371
- package/dist/index.d.ts +1810 -17
- package/dist/index.es.js +66732 -37883
- package/dist/index.umd.js +625 -371
- package/package.json +29 -10
- package/dist/browser_index.d.ts +0 -8
- package/dist/frontend/assets/fontawsome.d.ts +0 -21
- package/dist/frontend/assets/mui.d.ts +0 -8
- package/dist/frontend/datarenderer/data_renderer_overlay.d.ts +0 -3
- package/dist/frontend/datarenderer/default_data_overlay_views.d.ts +0 -6
- package/dist/frontend/datarenderer/default_data_preview_renderer.d.ts +0 -5
- package/dist/frontend/datarenderer/default_data_view_renderer.d.ts +0 -13
- package/dist/frontend/datarenderer/default_handle_previews.d.ts +0 -4
- package/dist/frontend/datarenderer/default_inline_renderer.d.ts +0 -5
- package/dist/frontend/datarenderer/default_input_renderer.d.ts +0 -17
- package/dist/frontend/datarenderer/default_output_renderer.d.ts +0 -9
- package/dist/frontend/datarenderer/images.d.ts +0 -19
- package/dist/frontend/datarenderer/rendermappings.d.ts +0 -204
- package/dist/frontend/dialog.d.ts +0 -20
- package/dist/frontend/edge.d.ts +0 -4
- package/dist/frontend/funcnodesreactflow/index.d.ts +0 -8
- package/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts +0 -7
- package/dist/frontend/header/index.d.ts +0 -4
- package/dist/frontend/index.d.ts +0 -0
- package/dist/frontend/layout/components.d.ts +0 -36
- package/dist/frontend/layout/fullscreenelement.d.ts +0 -17
- package/dist/frontend/layout/smoothexpand.d.ts +0 -22
- package/dist/frontend/lib.d.ts +0 -10
- package/dist/frontend/node/body_data_renderer.d.ts +0 -3
- package/dist/frontend/node/index.d.ts +0 -4
- package/dist/frontend/node/io/handle_renderer.d.ts +0 -3
- package/dist/frontend/node/io/index.d.ts +0 -3
- package/dist/frontend/node/io/io.d.ts +0 -15
- package/dist/frontend/node/io/iodataoverlay.d.ts +0 -10
- package/dist/frontend/node/io/nodeinput.d.ts +0 -10
- package/dist/frontend/node/io/nodeoutput.d.ts +0 -6
- package/dist/frontend/node/node.d.ts +0 -25
- package/dist/frontend/node/nodesettings.d.ts +0 -3
- package/dist/frontend/utils/colorpicker.d.ts +0 -22
- package/dist/frontend/utils/jsondata.d.ts +0 -5
- package/dist/frontend/utils/progressbar.d.ts +0 -46
- package/dist/frontend/utils/select.d.ts +0 -17
- package/dist/frontend/utils/table.d.ts +0 -10
- package/dist/funcnodes/datastructures.d.ts +0 -51
- package/dist/funcnodes/funcnodesworker.d.ts +0 -147
- package/dist/funcnodes/index.d.ts +0 -4
- package/dist/funcnodes/websocketworker.d.ts +0 -45
- package/dist/funcnodes/workermanager.d.ts +0 -34
- package/dist/plugin/helper.d.ts +0 -2
- package/dist/plugin/index.d.ts +0 -7
- package/dist/plugin/v0/index.d.ts +0 -2
- package/dist/plugin/v1/index.d.ts +0 -2
- package/dist/plugin/v1/upgrader.d.ts +0 -34
- package/dist/states/edge.d.ts +0 -7
- package/dist/states/edge.t.d.ts +0 -16
- package/dist/states/fnrfzst.d.ts +0 -9
- package/dist/states/fnrfzst.t.d.ts +0 -182
- package/dist/states/index.d.ts +0 -7
- package/dist/states/lib.d.ts +0 -3
- package/dist/states/lib.t.d.ts +0 -45
- package/dist/states/node/newnode.d.ts +0 -4
- package/dist/states/node/update_funcs.d.ts +0 -9
- package/dist/states/node/update_io.d.ts +0 -3
- package/dist/states/node/update_node.d.ts +0 -6
- package/dist/states/nodespace.d.ts +0 -3
- package/dist/states/nodespace.t.d.ts +0 -16
- package/dist/states/reactflow.d.ts +0 -8
- package/dist/states/reactflow.t.d.ts +0 -11
- package/dist/types/versioned/v0/index.d.ts +0 -5
- package/dist/types/versioned/v0/io.t.d.ts +0 -29
- package/dist/types/versioned/v0/node.t.d.ts +0 -75
- package/dist/types/versioned/v0/plugins.t.d.ts +0 -37
- package/dist/types/versioned/v0/rendering.t.d.ts +0 -42
- package/dist/types/versioned/v0/rendermappings.t.d.ts +0 -27
- package/dist/types/versioned/v1/edge.t.d.ts +0 -6
- package/dist/types/versioned/v1/index.d.ts +0 -6
- package/dist/types/versioned/v1/io.t.d.ts +0 -52
- package/dist/types/versioned/v1/node.t.d.ts +0 -65
- package/dist/types/versioned/v1/plugins.t.d.ts +0 -39
- package/dist/types/versioned/v1/rendering.t.d.ts +0 -1
- package/dist/types/versioned/v1/rendermappings.t.d.ts +0 -53
- package/dist/types/versioned/versions.t.d.ts +0 -3
- package/dist/utils/autolayout/force.d.ts +0 -2
- package/dist/utils/autolayout/index.d.ts +0 -2
- package/dist/utils/autolayout/txt.d.ts +0 -15
- package/dist/utils/data.d.ts +0 -12
- package/dist/utils/debugger.d.ts +0 -5
- package/dist/utils/helperfunctions.d.ts +0 -16
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/logger.d.ts +0 -26
- package/dist/utils/objects.d.ts +0 -142
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { latest } from '../../types/versioned/versions.t';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const NodeName: React.MemoExoticComponent<({ node_data }: {
|
|
4
|
-
node_data: latest.NodeType;
|
|
5
|
-
}) => React.JSX.Element>;
|
|
6
|
-
export declare const useDefaultNodeInjection: (storedata: latest.NodeType) => {
|
|
7
|
-
visualTrigger: boolean;
|
|
8
|
-
nodecontext: {
|
|
9
|
-
node_data: latest.NodeType;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
interface NodeContextType {
|
|
13
|
-
node_data: latest.NodeType;
|
|
14
|
-
[key: string]: any | undefined;
|
|
15
|
-
}
|
|
16
|
-
interface RFNodeDataPass extends Record<string, unknown> {
|
|
17
|
-
nodestore: latest.NodeStore;
|
|
18
|
-
}
|
|
19
|
-
declare const NodeContext: React.Context<NodeContextType | null>;
|
|
20
|
-
declare const DefaultNode: ({ data }: {
|
|
21
|
-
data: RFNodeDataPass;
|
|
22
|
-
}) => React.JSX.Element;
|
|
23
|
-
export default DefaultNode;
|
|
24
|
-
export { NodeName, NodeContext };
|
|
25
|
-
export type { NodeContextType, RFNodeDataPass };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const HSLColorPicker: ({ onChange, colorconverter, allow_null, }: {
|
|
3
|
-
onChange: (colorconverter: {
|
|
4
|
-
[key: string]: () => number[] | string;
|
|
5
|
-
} | null) => void;
|
|
6
|
-
colorconverter: {
|
|
7
|
-
[key: string]: () => number[] | string;
|
|
8
|
-
} | null;
|
|
9
|
-
allow_null?: boolean;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
interface CustomColorPickerProps {
|
|
12
|
-
inicolordata?: number[] | string | string[];
|
|
13
|
-
inicolorspace?: string;
|
|
14
|
-
allow_null?: boolean;
|
|
15
|
-
delay?: number;
|
|
16
|
-
onChange?: (converter: {
|
|
17
|
-
[key: string]: () => number[] | string;
|
|
18
|
-
} | null) => void;
|
|
19
|
-
}
|
|
20
|
-
declare const CustomColorPicker: React.FC<CustomColorPickerProps>;
|
|
21
|
-
export default CustomColorPicker;
|
|
22
|
-
export { HSLColorPicker };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Interface representing the state of a tqdm progress bar.
|
|
4
|
-
*
|
|
5
|
-
* Notes on each field:
|
|
6
|
-
* - `n`: Current iteration count.
|
|
7
|
-
* - `total`: Total number of iterations if known, `null` otherwise.
|
|
8
|
-
* - `elapsed`: Time elapsed in seconds since the start of iteration.
|
|
9
|
-
* - `ncols`: Number of columns for the progress bar. If `null`, not dynamically determined.
|
|
10
|
-
* - `nrows`: Number of rows. Usually `null` as `tqdm` typically focuses on columns.
|
|
11
|
-
* - `prefix`: Description string provided to `tqdm` via `desc`.
|
|
12
|
-
* - `ascii`: Whether to use ASCII characters for the bar or a custom set of ASCII characters.
|
|
13
|
-
* Can be `true`, `false`, or a string specifying the characters.
|
|
14
|
-
* - `unit`: Iteration unit (e.g., 'it', 'steps', 'items').
|
|
15
|
-
* - `unit_scale`: If `true`, `tqdm` scales the iteration values.
|
|
16
|
-
* If a number, `tqdm` uses it as a scaling factor.
|
|
17
|
-
* - `rate`: Current rate of iteration (iterations/second). `null` if rate cannot be computed.
|
|
18
|
-
* - `bar_format`: Custom format string for the bar. If `null`, the default format is used.
|
|
19
|
-
* - `postfix`: Additional data appended to the bar. Could be a string or an object passed via `set_postfix()`.
|
|
20
|
-
* - `unit_divisor`: Divisor used when scaling units (e.g., 1000 or 1024).
|
|
21
|
-
* - `initial`: Initial counter value if specified, else `null`.
|
|
22
|
-
* - `colour`: Colour for the progress bar if supported, else `null`.
|
|
23
|
-
*/
|
|
24
|
-
export interface TqdmState {
|
|
25
|
-
n: number;
|
|
26
|
-
total?: number;
|
|
27
|
-
elapsed: number;
|
|
28
|
-
ncols?: number;
|
|
29
|
-
nrows?: number;
|
|
30
|
-
prefix?: string;
|
|
31
|
-
ascii: boolean | string;
|
|
32
|
-
unit: string;
|
|
33
|
-
unit_scale: boolean | number;
|
|
34
|
-
rate?: number;
|
|
35
|
-
bar_format?: string;
|
|
36
|
-
postfix?: string | Record<string, unknown>;
|
|
37
|
-
unit_divisor: number;
|
|
38
|
-
initial?: number;
|
|
39
|
-
colour?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface ProgressBarProps {
|
|
42
|
-
state: TqdmState;
|
|
43
|
-
className?: string;
|
|
44
|
-
}
|
|
45
|
-
declare const ProgressBar: React.FC<ProgressBarProps & React.HTMLAttributes<HTMLDivElement>>;
|
|
46
|
-
export default ProgressBar;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ActionMeta, SingleValue } from 'react-select';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export interface CustomSelectProps<Option extends {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
}> {
|
|
7
|
-
options: Option[];
|
|
8
|
-
items_per_page?: number;
|
|
9
|
-
className?: string;
|
|
10
|
-
defaultValue?: Option;
|
|
11
|
-
onChange: (newValue: SingleValue<Option>, actionMeta: ActionMeta<Option>) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const CustomSelect: <Option extends {
|
|
14
|
-
value: string;
|
|
15
|
-
label: string;
|
|
16
|
-
}>({ options, items_per_page, className, defaultValue, onChange, }: CustomSelectProps<Option>) => React.JSX.Element;
|
|
17
|
-
export default CustomSelect;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export type DataStructureProps<D> = {
|
|
2
|
-
data: D;
|
|
3
|
-
mime: string;
|
|
4
|
-
};
|
|
5
|
-
export declare class DataStructure<D, R> {
|
|
6
|
-
private _data;
|
|
7
|
-
private _mime;
|
|
8
|
-
constructor({ data, mime }: DataStructureProps<D>);
|
|
9
|
-
get data(): D;
|
|
10
|
-
get value(): R;
|
|
11
|
-
get mime(): string;
|
|
12
|
-
toString(): string;
|
|
13
|
-
toJSON(): string;
|
|
14
|
-
dispose(): void;
|
|
15
|
-
}
|
|
16
|
-
export declare class ArrayBufferDataStructure extends DataStructure<ArrayBuffer, string> {
|
|
17
|
-
private _objectUrl;
|
|
18
|
-
get objectUrl(): string;
|
|
19
|
-
dispose(): void;
|
|
20
|
-
get value(): string;
|
|
21
|
-
}
|
|
22
|
-
export declare class CTypeStructure extends DataStructure<ArrayBufferLike, string | number | boolean | null> {
|
|
23
|
-
private _cType;
|
|
24
|
-
private _value;
|
|
25
|
-
constructor({ data, mime }: DataStructureProps<ArrayBufferLike>);
|
|
26
|
-
parse_value(): string | number | boolean | null;
|
|
27
|
-
get value(): string | number | boolean | null;
|
|
28
|
-
toString(): string;
|
|
29
|
-
}
|
|
30
|
-
interface JSONObject {
|
|
31
|
-
[key: string]: JSONType;
|
|
32
|
-
}
|
|
33
|
-
type JSONType = string | number | boolean | null | JSONObject | JSONType[];
|
|
34
|
-
export declare class JSONStructure extends DataStructure<ArrayBufferLike, JSONType | undefined> {
|
|
35
|
-
private _json;
|
|
36
|
-
constructor({ data, mime }: DataStructureProps<any>);
|
|
37
|
-
get value(): JSONType | undefined;
|
|
38
|
-
static fromObject(obj: JSONType): JSONStructure;
|
|
39
|
-
toString(): string;
|
|
40
|
-
}
|
|
41
|
-
export declare class TextStructure extends DataStructure<ArrayBufferLike, string> {
|
|
42
|
-
private _value;
|
|
43
|
-
constructor({ data, mime }: DataStructureProps<ArrayBufferLike>);
|
|
44
|
-
get value(): string;
|
|
45
|
-
toString(): string;
|
|
46
|
-
}
|
|
47
|
-
export declare const interfereDataStructure: ({ data, mime, }: {
|
|
48
|
-
data: any;
|
|
49
|
-
mime: string;
|
|
50
|
-
}) => DataStructure<any, unknown>;
|
|
51
|
-
export {};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { FuncNodesReactFlowZustandInterface, JSONMessage, LargeMessageHint, NodeSpaceEvent, WorkerEvent } from '../states/fnrfzst.t';
|
|
2
|
-
import { StoreApi, UseBoundStore } from 'zustand';
|
|
3
|
-
import { latest } from '../types/versioned/versions.t';
|
|
4
|
-
interface WorkerProps {
|
|
5
|
-
zustand?: FuncNodesReactFlowZustandInterface;
|
|
6
|
-
uuid: string;
|
|
7
|
-
on_error?: (error: string | Error) => void;
|
|
8
|
-
on_sync_complete?: (worker: FuncNodesWorker) => Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
interface FuncNodesWorkerState {
|
|
11
|
-
is_open: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface HookProperties {
|
|
14
|
-
worker: FuncNodesWorker;
|
|
15
|
-
data: any;
|
|
16
|
-
}
|
|
17
|
-
declare class FuncNodesWorker {
|
|
18
|
-
messagePromises: Map<string, any>;
|
|
19
|
-
_zustand?: FuncNodesReactFlowZustandInterface;
|
|
20
|
-
_local_nodeupdates: Map<string, latest.PartialSerializedNodeType>;
|
|
21
|
-
_nodeupdatetimer: ReturnType<typeof setTimeout>;
|
|
22
|
-
uuid: string;
|
|
23
|
-
_responsive: boolean;
|
|
24
|
-
private CHUNK_TIMEOUT;
|
|
25
|
-
private PONGDELAY;
|
|
26
|
-
private blobChunks;
|
|
27
|
-
state: UseBoundStore<StoreApi<FuncNodesWorkerState>>;
|
|
28
|
-
on_sync_complete: (worker: FuncNodesWorker) => Promise<void>;
|
|
29
|
-
_hooks: Map<string, ((p: HookProperties) => Promise<void>)[]>;
|
|
30
|
-
_ns_event_intercepts: Map<string, ((event: NodeSpaceEvent) => Promise<NodeSpaceEvent>)[]>;
|
|
31
|
-
_last_pong: number;
|
|
32
|
-
_unique_cmd_outs: {
|
|
33
|
-
[key: string]: Promise<any> | undefined;
|
|
34
|
-
};
|
|
35
|
-
on_error: (error: any) => void;
|
|
36
|
-
constructor(data: WorkerProps);
|
|
37
|
-
_receive_pong(): void;
|
|
38
|
-
set_zustand(zustand: FuncNodesReactFlowZustandInterface): void;
|
|
39
|
-
add_hook(hook: string, callback: (p: HookProperties) => Promise<void>): () => void;
|
|
40
|
-
call_hooks(hook: string, data?: any): Promise<void>;
|
|
41
|
-
add_ns_event_intercept(hook: string, callback: (event: NodeSpaceEvent) => Promise<NodeSpaceEvent>): () => void;
|
|
42
|
-
intercept_ns_event(event: NodeSpaceEvent): Promise<NodeSpaceEvent>;
|
|
43
|
-
get is_open(): boolean;
|
|
44
|
-
set is_open(v: boolean);
|
|
45
|
-
stepwise_fullsync(): Promise<void>;
|
|
46
|
-
sync_lib(): Promise<void>;
|
|
47
|
-
sync_external_worker(): Promise<void>;
|
|
48
|
-
sync_funcnodes_plugins(): Promise<void>;
|
|
49
|
-
sync_view_state(): Promise<void>;
|
|
50
|
-
sync_nodespace(): Promise<void>;
|
|
51
|
-
fullsync(): Promise<void>;
|
|
52
|
-
_receive_edge_added(src_nid: string, src_ioid: string, trg_nid: string, trg_ioid: string): Promise<void>;
|
|
53
|
-
trigger_node(node_id: string): Promise<void>;
|
|
54
|
-
add_node(node_id: string): Promise<latest.NodeType | undefined>;
|
|
55
|
-
remove_node(node_id: string): Promise<void>;
|
|
56
|
-
_receive_node_added(data: latest.SerializedNodeType): Promise<latest.NodeType | undefined>;
|
|
57
|
-
add_edge({ src_nid, src_ioid, trg_nid, trg_ioid, replace, }: {
|
|
58
|
-
src_nid: string;
|
|
59
|
-
src_ioid: string;
|
|
60
|
-
trg_nid: string;
|
|
61
|
-
trg_ioid: string;
|
|
62
|
-
replace?: boolean;
|
|
63
|
-
}): Promise<any>;
|
|
64
|
-
remove_edge({ src_nid, src_ioid, trg_nid, trg_ioid, }: {
|
|
65
|
-
src_nid: string;
|
|
66
|
-
src_ioid: string;
|
|
67
|
-
trg_nid: string;
|
|
68
|
-
trg_ioid: string;
|
|
69
|
-
}): Promise<any>;
|
|
70
|
-
add_external_worker({ module, cls_module, cls_name, }: {
|
|
71
|
-
module: string;
|
|
72
|
-
cls_module: string;
|
|
73
|
-
cls_name: string;
|
|
74
|
-
}): Promise<any>;
|
|
75
|
-
sync_local_node_updates(): void;
|
|
76
|
-
locally_update_node(action: latest.NodeActionUpdate): void;
|
|
77
|
-
get_remote_node_state(nid: string): Promise<void>;
|
|
78
|
-
set_io_value({ nid, ioid, value, set_default, }: {
|
|
79
|
-
nid: string;
|
|
80
|
-
ioid: string;
|
|
81
|
-
value: any;
|
|
82
|
-
set_default: boolean;
|
|
83
|
-
}): Promise<any>;
|
|
84
|
-
clear(): Promise<any>;
|
|
85
|
-
save(): Promise<any>;
|
|
86
|
-
load(data: any): Promise<void>;
|
|
87
|
-
get_io_value({ nid, ioid }: {
|
|
88
|
-
nid: string;
|
|
89
|
-
ioid: string;
|
|
90
|
-
}): Promise<any>;
|
|
91
|
-
get_ios_values({ nid }: {
|
|
92
|
-
nid: string;
|
|
93
|
-
}): Promise<{
|
|
94
|
-
[ioid: string]: any;
|
|
95
|
-
}>;
|
|
96
|
-
get_runstate(): Promise<any>;
|
|
97
|
-
_send_cmd({ cmd, kwargs, as_bytes, wait_for_response, response_timeout, retries, unique, }: {
|
|
98
|
-
cmd: string;
|
|
99
|
-
kwargs?: any;
|
|
100
|
-
wait_for_response?: boolean;
|
|
101
|
-
response_timeout?: number;
|
|
102
|
-
as_bytes?: boolean;
|
|
103
|
-
retries?: number;
|
|
104
|
-
unique?: boolean;
|
|
105
|
-
}): Promise<any>;
|
|
106
|
-
send(_data: any): Promise<void>;
|
|
107
|
-
upload_file({ files: _files, onProgressCallback: _onProgressCallback, root: _root, }: {
|
|
108
|
-
files: File[] | FileList;
|
|
109
|
-
onProgressCallback?: (loaded: number, total?: number) => void;
|
|
110
|
-
root?: string;
|
|
111
|
-
}): Promise<string>;
|
|
112
|
-
handle_large_message_hint({}: LargeMessageHint): Promise<void>;
|
|
113
|
-
receive_workerevent({ event, data }: WorkerEvent): Promise<void>;
|
|
114
|
-
receive_nodespace_event(ns_event: NodeSpaceEvent): Promise<void | latest.NodeType>;
|
|
115
|
-
add_lib(lib: string, release: string): Promise<any>;
|
|
116
|
-
remove_lib(lib: string): Promise<any>;
|
|
117
|
-
receive(data: JSONMessage): Promise<any>;
|
|
118
|
-
onbytes(data: Uint8Array): Promise<void>;
|
|
119
|
-
recieve_bytes(headerObj: {
|
|
120
|
-
[key: string]: string | undefined;
|
|
121
|
-
}, bytes: Uint8Array): Promise<void>;
|
|
122
|
-
disconnect(): void;
|
|
123
|
-
onclose(): void;
|
|
124
|
-
reconnect(): Promise<void>;
|
|
125
|
-
stop(): Promise<void>;
|
|
126
|
-
get_io_full_value({ nid, ioid }: {
|
|
127
|
-
nid: string;
|
|
128
|
-
ioid: string;
|
|
129
|
-
}): Promise<any>;
|
|
130
|
-
update_io_options({ nid, ioid, options, }: {
|
|
131
|
-
nid: string;
|
|
132
|
-
ioid: string;
|
|
133
|
-
options: latest.UpdateableIOOptions;
|
|
134
|
-
}): Promise<any>;
|
|
135
|
-
get_node_status(nid: string): Promise<any>;
|
|
136
|
-
get_available_modules(): Promise<any>;
|
|
137
|
-
update_external_worker(worker_id: string, class_id: string, data: {
|
|
138
|
-
name?: string;
|
|
139
|
-
}): Promise<any>;
|
|
140
|
-
remove_external_worker(worker_id: string, class_id: string): Promise<any>;
|
|
141
|
-
export({ withFiles }: {
|
|
142
|
-
withFiles: boolean;
|
|
143
|
-
}): Promise<any>;
|
|
144
|
-
update_from_export(data: string): Promise<any>;
|
|
145
|
-
}
|
|
146
|
-
export default FuncNodesWorker;
|
|
147
|
-
export type { WorkerProps, FuncNodesWorkerState };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { LargeMessageHint } from '../states/fnrfzst.t';
|
|
2
|
-
import { default as FuncNodesWorker, WorkerProps } from './funcnodesworker';
|
|
3
|
-
interface WebSocketWorkerProps extends WorkerProps {
|
|
4
|
-
url: string;
|
|
5
|
-
}
|
|
6
|
-
declare class WebSocketWorker extends FuncNodesWorker {
|
|
7
|
-
private _url;
|
|
8
|
-
private _websocket;
|
|
9
|
-
private reconnectAttempts;
|
|
10
|
-
private maxReconnectAttempts;
|
|
11
|
-
private initialTimeout;
|
|
12
|
-
private maxTimeout;
|
|
13
|
-
private _reconnect;
|
|
14
|
-
private _reconnect_timeout;
|
|
15
|
-
constructor(data: WebSocketWorkerProps);
|
|
16
|
-
private connect;
|
|
17
|
-
private calculateReconnectTimeout;
|
|
18
|
-
private auto_reconnect;
|
|
19
|
-
onmessage(data: string): Promise<void>;
|
|
20
|
-
get http_protocol(): string;
|
|
21
|
-
get secure_url(): boolean;
|
|
22
|
-
get url_wo_protocol(): string;
|
|
23
|
-
get http_url(): string;
|
|
24
|
-
get_io_subscription_url({ node_id, io_id, stream, }: {
|
|
25
|
-
node_id: string;
|
|
26
|
-
io_id: string;
|
|
27
|
-
stream: boolean;
|
|
28
|
-
}): string;
|
|
29
|
-
upload_file({ files, onProgressCallback, root, }: {
|
|
30
|
-
files: File[] | FileList;
|
|
31
|
-
onProgressCallback?: (loaded: number, total?: number) => void;
|
|
32
|
-
root?: string;
|
|
33
|
-
}): Promise<string>;
|
|
34
|
-
handle_large_message_hint({ msg_id }: LargeMessageHint): Promise<void>;
|
|
35
|
-
onopen(): void;
|
|
36
|
-
onclose(): void;
|
|
37
|
-
on_ws_error(): void;
|
|
38
|
-
send_large_message(jsondata: string): Promise<void>;
|
|
39
|
-
send(data: any): Promise<void>;
|
|
40
|
-
stop(): Promise<void>;
|
|
41
|
-
close(): void;
|
|
42
|
-
disconnect(): void;
|
|
43
|
-
reconnect(): Promise<void>;
|
|
44
|
-
}
|
|
45
|
-
export default WebSocketWorker;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { FuncNodesReactFlowZustandInterface } from '../states/fnrfzst.t';
|
|
2
|
-
import { default as 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
|
-
get open(): boolean;
|
|
16
|
-
private connect;
|
|
17
|
-
on_ws_error(): void;
|
|
18
|
-
onopen(): void;
|
|
19
|
-
onmessage(event: string): void;
|
|
20
|
-
setWorker(worker: FuncNodesWorker | undefined): void;
|
|
21
|
-
restart_worker(workerid: string): Promise<void>;
|
|
22
|
-
private calculateReconnectTimeout;
|
|
23
|
-
private reconnect;
|
|
24
|
-
onclose(): void;
|
|
25
|
-
set_active(workerid: string): void;
|
|
26
|
-
new_worker({ name, reference, copyLib, copyNS, }: {
|
|
27
|
-
name?: string;
|
|
28
|
-
reference?: string;
|
|
29
|
-
copyLib?: boolean;
|
|
30
|
-
copyNS?: boolean;
|
|
31
|
-
}): void;
|
|
32
|
-
remove(): void;
|
|
33
|
-
}
|
|
34
|
-
export default WorkerManager;
|
package/dist/plugin/helper.d.ts
DELETED
package/dist/plugin/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { latest as latest_types } from '../types/versioned/versions.t';
|
|
2
|
-
export interface PackedPlugin {
|
|
3
|
-
module: string;
|
|
4
|
-
js?: string[];
|
|
5
|
-
css?: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare const upgradeFuncNodesReactPlugin: (plugin: latest_types.AnyFuncNodesReactPlugin) => latest_types.FuncNodesReactPlugin;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { v1 as v1_types, v0 as v0_types } from '../../types/versioned/versions.t';
|
|
2
|
-
type olderPlugins_v1 = v0_types.FuncNodesReactPlugin;
|
|
3
|
-
export declare class IOHelperClass implements v0_types.IOType {
|
|
4
|
-
constructor(iostore: v1_types.IOStore);
|
|
5
|
-
iostore: v1_types.IOStore;
|
|
6
|
-
get connected(): boolean;
|
|
7
|
-
set connected(v: boolean);
|
|
8
|
-
get does_trigger(): boolean;
|
|
9
|
-
set does_trigger(v: boolean);
|
|
10
|
-
get full_id(): string;
|
|
11
|
-
set full_id(v: string);
|
|
12
|
-
get id(): string;
|
|
13
|
-
set id(v: string);
|
|
14
|
-
get is_input(): boolean;
|
|
15
|
-
set is_input(v: boolean);
|
|
16
|
-
get name(): string;
|
|
17
|
-
set name(v: string);
|
|
18
|
-
get node(): string;
|
|
19
|
-
set node(v: string);
|
|
20
|
-
get type(): v0_types.SerializedType;
|
|
21
|
-
set type(v: v0_types.SerializedType);
|
|
22
|
-
get value(): any;
|
|
23
|
-
set value(v: any);
|
|
24
|
-
get fullvalue(): any;
|
|
25
|
-
set fullvalue(v: any);
|
|
26
|
-
get render_options(): v0_types.IORenderOptions;
|
|
27
|
-
set render_options(v: v0_types.IORenderOptions);
|
|
28
|
-
get hidden(): boolean;
|
|
29
|
-
set hidden(v: boolean);
|
|
30
|
-
get try_get_full_value(): undefined | (() => void);
|
|
31
|
-
get set_hidden(): undefined | ((v: boolean) => void);
|
|
32
|
-
}
|
|
33
|
-
declare const upgradePlugin_v1: (plugin: olderPlugins_v1 | v1_types.FuncNodesReactPlugin) => v1_types.FuncNodesReactPlugin;
|
|
34
|
-
export { upgradePlugin_v1 };
|
package/dist/states/edge.d.ts
DELETED
package/dist/states/edge.t.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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 };
|
package/dist/states/fnrfzst.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as LibZustand } from './lib';
|
|
2
|
-
import { default as NodeSpaceZustand } from './nodespace';
|
|
3
|
-
import { Node as RFNode } from '@xyflow/react';
|
|
4
|
-
import { FuncNodesReactFlowZustandInterface, FuncnodesReactFlowProps } from './fnrfzst.t';
|
|
5
|
-
import { latest } from '../types/versioned/versions.t';
|
|
6
|
-
declare const assert_reactflow_node: (store: latest.NodeStore, fnrf_instance?: FuncNodesReactFlowZustandInterface) => latest.NodeType & RFNode;
|
|
7
|
-
declare const FuncNodesReactFlowZustand: (props: FuncnodesReactFlowProps) => FuncNodesReactFlowZustandInterface;
|
|
8
|
-
export default FuncNodesReactFlowZustand;
|
|
9
|
-
export { LibZustand, NodeSpaceZustand, assert_reactflow_node };
|