@linkdlab/funcnodes_react_flow 0.4.8 → 0.4.10

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.
@@ -164,7 +164,7 @@ interface FuncNodesReactFlowZustandInterface {
164
164
  progress_state: UseBoundStore<StoreApi<ProgressState>>;
165
165
  update_render_options: (options: RenderOptions) => void;
166
166
  rf_instance?: ReturnType<typeof useReactFlow>;
167
- on_node_action: (action: latest.NodeAction) => void;
167
+ on_node_action: (action: latest.NodeAction) => latest.NodeType | undefined;
168
168
  on_edge_action: (edge: EdgeAction) => void;
169
169
  set_progress: (progress: ProgressState) => void;
170
170
  auto_progress: () => void;
@@ -0,0 +1,6 @@
1
+ export interface SerializedEdge {
2
+ src_nid: string;
3
+ src_ioid: string;
4
+ trg_nid: string;
5
+ trg_ioid: string;
6
+ }
@@ -3,3 +3,4 @@ export * from './node.t';
3
3
  export * from './rendering.t';
4
4
  export * from './rendermappings.t';
5
5
  export * from './plugins.t';
6
+ export * from './edge.t';
@@ -18,6 +18,7 @@ export interface IOStore {
18
18
  valuestore: UseBoundStore<StoreApi<ValueStoreInterface>>;
19
19
  node: NodeStore;
20
20
  updateValueStore: (newData: Partial<ValueStoreInterface>) => void;
21
+ serialize: () => SerializedIOType;
21
22
  }
22
23
  export interface BasicIOType {
23
24
  connected: boolean;
@@ -61,4 +61,5 @@ export interface NodeStore {
61
61
  getState: () => NodeType;
62
62
  setState: (new_state: Partial<NodeType>) => void;
63
63
  update: (new_state: PartialSerializedNodeType) => void;
64
+ serialize: () => SerializedNodeType;
64
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdlab/funcnodes_react_flow",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "Frontend with React Flow for FuncNodes",
5
5
  "repository": {
6
6
  "type": "git",