app-v3-scripts-editor 1.35.0 → 1.35.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.
@@ -3,10 +3,11 @@ type ReconnectEdge = Connection & {
3
3
  type: string;
4
4
  };
5
5
  type DeletedNode = Pick<Node, "id">;
6
- declare const useCreateReconnectEdge: () => ({ deletedNodeId, deletedNodeIds, edges, defaultEdgeType, }: {
6
+ declare const useCreateReconnectEdge: () => ({ deletedNodeId, deletedNodeIds, edges, nodes, defaultEdgeType, }: {
7
7
  deletedNodeId: string;
8
8
  deletedNodeIds: Set<string>;
9
9
  edges: Edge[];
10
+ nodes: Node[];
10
11
  defaultEdgeType: string;
11
12
  }) => ReconnectEdge | null;
12
13
  export type { DeletedNode, ReconnectEdge };
@@ -1,8 +1,9 @@
1
- import { Edge } from '@xyflow/react';
1
+ import { Edge, Node } from '@xyflow/react';
2
2
  import { DeletedNode, ReconnectEdge } from '../use-create-reconnect-edge';
3
- declare const useReconnectEdges: () => ({ deletedNodes, edges, defaultEdgeType, }: {
3
+ declare const useReconnectEdges: () => ({ deletedNodes, edges, nodes, defaultEdgeType, }: {
4
4
  deletedNodes: DeletedNode[];
5
5
  edges: Edge[];
6
+ nodes: Node[];
6
7
  defaultEdgeType: string;
7
8
  }) => ReconnectEdge[];
8
9
  export default useReconnectEdges;
@@ -5,5 +5,5 @@ type SyncNodeDataArrayItemByIdParams<TItem extends NodeDataArrayItemWithId> = {
5
5
  dataKey: string;
6
6
  item: TItem;
7
7
  };
8
- export declare function useSyncNodeDataArrayItemById(): <TItem extends NodeDataArrayItemWithId>({ dataKey, item }: SyncNodeDataArrayItemByIdParams<TItem>) => void;
8
+ export declare function useSyncNodeDataArrayItemById(): <TItem extends NodeDataArrayItemWithId>({ dataKey, item, }: SyncNodeDataArrayItemByIdParams<TItem>) => void;
9
9
  export default useSyncNodeDataArrayItemById;
@@ -1,6 +1,7 @@
1
1
  import { IIntent } from '../../services';
2
2
  export type NodeIntentCondition = Pick<IIntent, "id" | "slug" | "label" | "description" | "keywords" | "is_conversion">;
3
3
  export declare const pickNodeIntentCondition: (intent: IIntent) => NodeIntentCondition;
4
+ export declare const pickSyncedNodeIntentCondition: (intent: IIntent) => Omit<NodeIntentCondition, "slug">;
4
5
  export declare const getNodeIntentConditionHandleId: (intent: Pick<IIntent, "id" | "slug">) => string;
5
6
  export declare const isSilenceNodeIntentCondition: (condition?: Pick<IIntent, "id" | "label">) => boolean;
6
7
  export declare const isNoResponseNodeIntentCondition: (condition?: Pick<IIntent, "id" | "label">) => boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.35.0",
4
+ "version": "1.35.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"