@nocobase/plugin-workflow 2.2.0-alpha.2 → 2.2.0-alpha.3
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/client/index.js +1 -1
- package/dist/client-v2/canvas/WorkflowVariableSelect.d.ts +29 -0
- package/dist/client-v2/canvas/WorkflowVariableTag.d.ts +22 -0
- package/dist/client-v2/index.d.ts +4 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +13 -13
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { type UseWorkflowVariableOptions } from './useWorkflowVariableOptions';
|
|
11
|
+
import { type WorkflowVariableTagProps } from './WorkflowVariableTag';
|
|
12
|
+
export type WorkflowVariableSelectProps = {
|
|
13
|
+
value?: string | null;
|
|
14
|
+
onChange?: (value: string | null) => void;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
status?: WorkflowVariableTagProps['status'];
|
|
20
|
+
variableOptions?: UseWorkflowVariableOptions;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Pure workflow variable selector: the left side is read-only and only shows
|
|
24
|
+
* the selected variable tag (with clear) or an empty placeholder input. Users
|
|
25
|
+
* must select from the workflow variable cascader and cannot type freeform
|
|
26
|
+
* content after choosing a variable.
|
|
27
|
+
*/
|
|
28
|
+
export declare function WorkflowVariableSelect(props: WorkflowVariableSelectProps): React.JSX.Element;
|
|
29
|
+
export default WorkflowVariableSelect;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { type MetaTreeNode } from '@nocobase/flow-engine';
|
|
11
|
+
export type WorkflowVariableTagProps = {
|
|
12
|
+
value?: string | null;
|
|
13
|
+
metaTree: MetaTreeNode[];
|
|
14
|
+
onClear?: () => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
status?: 'error' | 'warning';
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare function isWorkflowVariableValue(value: unknown): value is string;
|
|
21
|
+
export declare function WorkflowVariableTag({ value, metaTree, onClear, className, style, status, disabled, }: WorkflowVariableTagProps): React.JSX.Element;
|
|
22
|
+
export default WorkflowVariableTag;
|
|
@@ -17,6 +17,10 @@ export type { CanvasNode } from './canvas/contexts';
|
|
|
17
17
|
export { default as useStyles } from './canvas/style';
|
|
18
18
|
export { WorkflowVariableInput } from './canvas/WorkflowVariableInput';
|
|
19
19
|
export type { WorkflowVariableInputProps } from './canvas/WorkflowVariableInput';
|
|
20
|
+
export { WorkflowVariableSelect } from './canvas/WorkflowVariableSelect';
|
|
21
|
+
export type { WorkflowVariableSelectProps } from './canvas/WorkflowVariableSelect';
|
|
22
|
+
export { WorkflowVariableTag } from './canvas/WorkflowVariableTag';
|
|
23
|
+
export type { WorkflowVariableTagProps } from './canvas/WorkflowVariableTag';
|
|
20
24
|
export { WorkflowVariableTextArea } from './canvas/WorkflowVariableTextArea';
|
|
21
25
|
export type { WorkflowVariableTextAreaProps } from './canvas/WorkflowVariableTextArea';
|
|
22
26
|
export { WorkflowVariableJsonTextArea } from './canvas/WorkflowVariableJsonTextArea';
|