@digitalsee-ai/rcs 2.0.0-beta8 → 2.0.0-beta9
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/digitalsee/workflow/Nodes/DeclaredNode.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/context.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/useClearVariableTargetOnFormMouseDown.d.ts +15 -0
- package/dist/components/digitalsee/workflow/NodesConfig/useVariableActiveTarget.d.ts +13 -0
- package/dist/components/dynamic-form/index.d.ts +0 -3
- package/dist/{index-DBoa8kIP.mjs → index-JIsi-COV.mjs} +2 -2
- package/dist/{index-DJvNGsCf.mjs → index-lzMv91zu.mjs} +38643 -39110
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +53 -56
- package/dist/rcs.umd.js +75 -82
- package/package.json +1 -1
- package/dist/components/dynamic-form/components/SelectWithExpression/index.d.ts +0 -25
- package/dist/components/dynamic-form/components/VariableInput/index.d.ts +0 -26
- package/dist/components/dynamic-form/components/VariableInput/utils.d.ts +0 -38
- package/dist/components/dynamic-form/components/VariableTextarea/index.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SelectProps as AntSelectProps } from 'antd/es/select';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
export type SelectValueMode = 'select' | 'expression';
|
|
4
|
-
export interface SelectWithExpressionProps extends Omit<AntSelectProps, 'value' | 'onChange'> {
|
|
5
|
-
/** 当前值 */
|
|
6
|
-
value?: string | string[] | number | number[];
|
|
7
|
-
/** 值变化回调 */
|
|
8
|
-
onChange?: (value: string | string[] | number | number[] | undefined) => void;
|
|
9
|
-
/** 是否允许表达式模式 */
|
|
10
|
-
allowExpression?: boolean;
|
|
11
|
-
/** 初始值模式 */
|
|
12
|
-
defaultValueMode?: SelectValueMode;
|
|
13
|
-
/** 当前值模式(受控) */
|
|
14
|
-
valueMode?: SelectValueMode;
|
|
15
|
-
/** 值模式变化回调 */
|
|
16
|
-
onValueModeChange?: (mode: SelectValueMode) => void;
|
|
17
|
-
/** 变量验证函数 */
|
|
18
|
-
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
19
|
-
/** 表达式模式的占位符 */
|
|
20
|
-
expressionPlaceholder?: string;
|
|
21
|
-
/** 隐藏模式切换器 */
|
|
22
|
-
hideModeSwitch?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare const SelectWithExpression: React.FC<SelectWithExpressionProps>;
|
|
25
|
-
export default SelectWithExpression;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface VariableInputProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
onChange?: (value: string) => void;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
readOnly?: boolean;
|
|
9
|
-
multiline?: boolean;
|
|
10
|
-
minRows?: number;
|
|
11
|
-
maxRows?: number;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
capturePattern?: RegExp;
|
|
15
|
-
onVariableClick?: (variable: string) => void;
|
|
16
|
-
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
17
|
-
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
18
|
-
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
19
|
-
showRemoveButton?: boolean;
|
|
20
|
-
/** 获得焦点时的回调 */
|
|
21
|
-
onFocus?: () => void;
|
|
22
|
-
/** 失去焦点时的回调 */
|
|
23
|
-
onBlur?: () => void;
|
|
24
|
-
}
|
|
25
|
-
export declare const VariableInput: React.FC<VariableInputProps>;
|
|
26
|
-
export { insertVariable } from './utils';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export type ParagraphElement = {
|
|
2
|
-
type: 'paragraph';
|
|
3
|
-
children: CustomText[];
|
|
4
|
-
};
|
|
5
|
-
export type VariableTagElement = {
|
|
6
|
-
type: 'variable-tag';
|
|
7
|
-
value: string;
|
|
8
|
-
children: CustomText[];
|
|
9
|
-
};
|
|
10
|
-
export type CustomElement = ParagraphElement | VariableTagElement;
|
|
11
|
-
export type CustomText = {
|
|
12
|
-
text: string;
|
|
13
|
-
};
|
|
14
|
-
export type CustomDescendant = CustomElement | CustomText;
|
|
15
|
-
export declare const DEFAULT_CAPTURE_PATTERN: RegExp;
|
|
16
|
-
/**
|
|
17
|
-
* 将字符串解析为 Slate 文档
|
|
18
|
-
* @param text 输入字符串
|
|
19
|
-
* @param pattern 变量捕获正则
|
|
20
|
-
* @returns Slate 文档结构
|
|
21
|
-
*/
|
|
22
|
-
export declare function parseInitValue(text: string, pattern?: RegExp): CustomElement[];
|
|
23
|
-
/**
|
|
24
|
-
* 将 Slate 文档序列化为字符串
|
|
25
|
-
* @param nodes Slate 文档节点
|
|
26
|
-
* @returns 字符串
|
|
27
|
-
*/
|
|
28
|
-
export declare function serializeToString(nodes: CustomElement[]): string;
|
|
29
|
-
/**
|
|
30
|
-
* 在 Slate 编辑器中插入变量标签
|
|
31
|
-
* @param editor Slate 编辑器实例
|
|
32
|
-
* @param variable 变量值(包含 {{}})
|
|
33
|
-
*/
|
|
34
|
-
export declare function insertVariable(editor: any, variable: string): void;
|
|
35
|
-
/**
|
|
36
|
-
* 检查元素是否为变量标签
|
|
37
|
-
*/
|
|
38
|
-
export declare function isVariableTagElement(element: any): element is VariableTagElement;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariableInputProps } from '../VariableInput';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
export type VariableTextareaProps = Omit<VariableInputProps, 'multiline'> & {
|
|
4
|
-
rows?: number;
|
|
5
|
-
autoSize?: boolean | {
|
|
6
|
-
minRows?: number;
|
|
7
|
-
maxRows?: number;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const VariableTextarea: React.FC<VariableTextareaProps>;
|