@agentscope-ai/flow 0.0.19 → 0.0.21
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/components/custom-inputs-control/index.js +1 -1
- package/dist/components/flow-icon/index.d.ts +1 -1
- package/dist/components/variable-tree-select/index.d.ts +1 -1
- package/dist/hooks/use-flow-interaction.d.ts +2 -1
- package/dist/hooks/use-flow-interaction.js +2 -1
- package/package.json +1 -1
|
@@ -185,7 +185,7 @@ export var VariableFormComp = /*#__PURE__*/memo(function (props) {
|
|
|
185
185
|
if (props.data.valueFrom === 'input') {
|
|
186
186
|
if (props.typeSwitchDisabled) {
|
|
187
187
|
return /*#__PURE__*/React.createElement("div", {
|
|
188
|
-
className: "flex-1"
|
|
188
|
+
className: "flex-1 h-full"
|
|
189
189
|
}, /*#__PURE__*/React.createElement(VariableBaseInput, {
|
|
190
190
|
isCompact: props.isCompact,
|
|
191
191
|
disabled: props.disabled,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare const _default: React.NamedExoticComponent<{
|
|
4
4
|
nodeType: string;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "small" | "default" | undefined;
|
|
6
6
|
showBg?: boolean | undefined;
|
|
7
7
|
noWidth?: boolean | undefined;
|
|
8
8
|
}>;
|
|
@@ -29,5 +29,5 @@ export declare const VariableTreeNodeItem: React.MemoExoticComponent<(props: IVa
|
|
|
29
29
|
value?: string | undefined;
|
|
30
30
|
onChange?: ((value: Pick<IVarItem, 'type' | 'value'>) => void) | undefined;
|
|
31
31
|
}) => React.JSX.Element>;
|
|
32
|
-
declare const VariableTreeSelect: React.MemoExoticComponent<(props: IVariableTreeSelectProps) => string | number | boolean |
|
|
32
|
+
declare const VariableTreeSelect: React.MemoExoticComponent<(props: IVariableTreeSelectProps) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined>;
|
|
33
33
|
export default VariableTreeSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnSelectionChangeFunc } from '@xyflow/react';
|
|
1
|
+
import { Node, OnSelectionChangeFunc } from '@xyflow/react';
|
|
2
2
|
export declare const useFlowInteraction: () => {
|
|
3
3
|
onSelectionChange: OnSelectionChangeFunc;
|
|
4
4
|
onFlowClearState: (options: {
|
|
@@ -9,4 +9,5 @@ export declare const useFlowInteraction: () => {
|
|
|
9
9
|
nodeId: string;
|
|
10
10
|
}) => void;
|
|
11
11
|
onLayout: () => Promise<void>;
|
|
12
|
+
setNodes: (payload: Node[] | ((nodes: Node[]) => Node[])) => void;
|
|
12
13
|
};
|
|
@@ -168,6 +168,7 @@ export var useFlowInteraction = function useFlowInteraction() {
|
|
|
168
168
|
onFlowClearState: onFlowClearState,
|
|
169
169
|
autoFitView: autoFitView,
|
|
170
170
|
focusElement: focusElement,
|
|
171
|
-
onLayout: onLayout
|
|
171
|
+
onLayout: onLayout,
|
|
172
|
+
setNodes: reactFlow.setNodes
|
|
172
173
|
};
|
|
173
174
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentscope-ai/flow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "A powerful and flexible flow canvas rendering engine designed for AI applications. Provides comprehensive workflow visualization and interaction capabilities for platforms like Bailian and AgentScope, enabling seamless creation and management of complex AI agent workflows with an intuitive drag-and-drop interface.",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|