@linkdlab/funcnodes_react_flow 2.0.0 → 2.1.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/index.cjs.js +129 -129
- package/dist/index.d.ts +7 -4
- package/dist/index.es.js +5438 -5430
- package/dist/index.umd.js +137 -137
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { NodePositionChange } from '@xyflow/react';
|
|
|
9
9
|
import { OnConnect } from '@xyflow/react';
|
|
10
10
|
import { OnEdgesChange } from '@xyflow/react';
|
|
11
11
|
import { OnNodesChange } from '@xyflow/react';
|
|
12
|
+
import * as React_2 from 'react';
|
|
12
13
|
import { ReactFlowInstance } from '@xyflow/react';
|
|
13
14
|
import { RJSFSchema } from '@rjsf/utils';
|
|
14
15
|
import { StoreApi } from 'zustand';
|
|
@@ -414,6 +415,8 @@ declare interface ExternalWorkerInstance {
|
|
|
414
415
|
name: string;
|
|
415
416
|
}
|
|
416
417
|
|
|
418
|
+
export declare const FuncNodes: (props: LimitedDeepPartial<FuncnodesReactFlowProps>) => React_2.JSX.Element;
|
|
419
|
+
|
|
417
420
|
declare class FuncNodesReactFlow implements FuncNodesReactFlowZustandInterface {
|
|
418
421
|
options: FuncnodesReactFlowProps;
|
|
419
422
|
reactflowRef: HTMLDivElement | null;
|
|
@@ -484,7 +487,7 @@ declare interface FuncnodesReactFlowLocalState {
|
|
|
484
487
|
funcnodescontainerRef: HTMLDivElement | null;
|
|
485
488
|
}
|
|
486
489
|
|
|
487
|
-
declare interface FuncnodesReactFlowProps {
|
|
490
|
+
export declare interface FuncnodesReactFlowProps {
|
|
488
491
|
id: string;
|
|
489
492
|
debug: boolean;
|
|
490
493
|
on_sync_complete?: (worker: FuncNodesWorker) => Promise<void>;
|
|
@@ -553,7 +556,7 @@ export declare type FuncNodesReactPlugin = VersionedFuncNodesReactPlugin<typeof
|
|
|
553
556
|
|
|
554
557
|
export declare const FuncNodesRenderer: (id_or_element: string | HTMLElement, options?: Partial<FuncnodesReactFlowProps>) => void;
|
|
555
558
|
|
|
556
|
-
declare class FuncNodesWorker {
|
|
559
|
+
export declare class FuncNodesWorker {
|
|
557
560
|
_zustand?: FuncNodesReactFlow;
|
|
558
561
|
uuid: string;
|
|
559
562
|
private _connectionhealthManager;
|
|
@@ -1525,7 +1528,7 @@ declare class WorkerCommunicationManager extends AbstractWorkerHandler {
|
|
|
1525
1528
|
unique?: boolean;
|
|
1526
1529
|
}): Promise<any>;
|
|
1527
1530
|
receive(data: JSONMessage): Promise<any>;
|
|
1528
|
-
|
|
1531
|
+
receive_bytes(headerObj: {
|
|
1529
1532
|
[key: string]: string | undefined;
|
|
1530
1533
|
}, bytes: Uint8Array): Promise<void>;
|
|
1531
1534
|
onbytes(data: Uint8Array): Promise<void>;
|
|
@@ -1801,7 +1804,7 @@ declare interface WorkerNodeManagerAPI {
|
|
|
1801
1804
|
get_remote_node_state: (nid: string) => Promise<void>;
|
|
1802
1805
|
}
|
|
1803
1806
|
|
|
1804
|
-
declare interface WorkerProps {
|
|
1807
|
+
export declare interface WorkerProps {
|
|
1805
1808
|
zustand?: FuncNodesReactFlow;
|
|
1806
1809
|
uuid: string;
|
|
1807
1810
|
on_error?: (error: string | Error) => void;
|