@digitalsee-ai/rcs 2.0.3-alpha → 2.0.4-alpha
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/NodesConfig/components/EditInOnlineIDE/index.d.ts +2 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/title/index.d.ts +3 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/index.d.ts +2 -1
- package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +5 -1
- package/dist/components/dynamic-form/types/form-schema.d.ts +2 -0
- package/dist/{index-CoqSxNxj.mjs → index-CrFbT2mm.mjs} +9377 -9366
- package/dist/{index-1gz2DhNv.mjs → index-Cx8t3uUz.mjs} +23 -21
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +1 -1
- package/dist/rcs.umd.js +70 -70
- package/package.json +3 -3
package/dist/components/digitalsee/workflow/NodesConfig/components/EditInOnlineIDE/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CodeEditorLanguage } from '../online-ide/components/title';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
3
|
interface IEditInOnlineIDEProps extends PropsWithChildren<any> {
|
|
3
4
|
canEditInEditor?: boolean;
|
|
@@ -6,7 +7,7 @@ interface IEditInOnlineIDEProps extends PropsWithChildren<any> {
|
|
|
6
7
|
id: string;
|
|
7
8
|
nodeId: string;
|
|
8
9
|
value?: string;
|
|
9
|
-
language?:
|
|
10
|
+
language?: CodeEditorLanguage;
|
|
10
11
|
showVariableSidebar?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const EditInOnlineIDE: (props: IEditInOnlineIDEProps) => any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IFieldSuperProps } from '../super';
|
|
2
|
+
import { CodeEditorLanguage } from '../../../online-ide/components/title';
|
|
2
3
|
import { CSSProperties } from 'react';
|
|
3
4
|
interface TextFieldProps extends IFieldSuperProps {
|
|
4
5
|
valueType: string;
|
|
@@ -9,6 +10,9 @@ interface TextFieldProps extends IFieldSuperProps {
|
|
|
9
10
|
textAreaMode?: boolean;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
disableIDE?: boolean;
|
|
13
|
+
disableSwitch?: boolean;
|
|
14
|
+
type?: CodeEditorLanguage;
|
|
15
|
+
lang?: CodeEditorLanguage;
|
|
12
16
|
onFocus?: () => void;
|
|
13
17
|
onBlur?: () => void;
|
|
14
18
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { CodeEditorLanguage } from '../../../../../../../dynamic-form/types/form-schema';
|
|
2
|
+
export type { CodeEditorLanguage };
|
|
1
3
|
interface TitleControlProps {
|
|
2
|
-
language?:
|
|
4
|
+
language?: CodeEditorLanguage;
|
|
3
5
|
}
|
|
4
6
|
export declare function TitleControl({ language }: TitleControlProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CodeEditorLanguage } from './components/title';
|
|
1
2
|
export interface IOnlineIDEProps {
|
|
2
3
|
initialValue?: string;
|
|
3
4
|
nodeId?: string;
|
|
@@ -5,7 +6,7 @@ export interface IOnlineIDEProps {
|
|
|
5
6
|
onFinish: (value: string) => void;
|
|
6
7
|
onCancel: () => void;
|
|
7
8
|
open?: boolean;
|
|
8
|
-
language?:
|
|
9
|
+
language?: CodeEditorLanguage;
|
|
9
10
|
showVariableSidebar?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export default function OnlineIDE(props: IOnlineIDEProps): import('react').ReactPortal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValueMode } from './valueModeConfig';
|
|
2
|
-
import { ValueModePolicy } from '../../types/form-schema';
|
|
2
|
+
import { CodeEditorLanguage, ValueModePolicy } from '../../types/form-schema';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export { ValueModeFieldScope, withInheritedValueModePolicy, } from './ValueModeFieldScope';
|
|
5
5
|
export { useValueModePolicyOptional, type ValueModePolicyContextValue, ValueModePolicyScope, type ValueModePolicyScopeProps, } from './ValueModePolicyContext';
|
|
@@ -80,6 +80,10 @@ export interface ValueModeWrapperProps {
|
|
|
80
80
|
modeSwitchPosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
81
81
|
/** 紧凑布局:模式切换器参与文档流,用于表格/键值对等单行容器 */
|
|
82
82
|
compact?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* 代码编辑器语言(json / javascript)
|
|
85
|
+
*/
|
|
86
|
+
lang?: CodeEditorLanguage;
|
|
83
87
|
}
|
|
84
88
|
export declare const ValueModeWrapper: React.FC<ValueModeWrapperProps>;
|
|
85
89
|
export default ValueModeWrapper;
|
|
@@ -9,6 +9,8 @@ export type Option = {
|
|
|
9
9
|
export type ValueMode = 'string' | 'jsExpr' | 'code' | 'variable';
|
|
10
10
|
/** 字段值输入策略 */
|
|
11
11
|
export type ValueModePolicy = 'TEXT' | 'EXPRESSION' | 'BOTH';
|
|
12
|
+
/** 代码编辑器支持的语言 */
|
|
13
|
+
export type CodeEditorLanguage = 'javascript' | 'json';
|
|
12
14
|
export type OptionsSource = {
|
|
13
15
|
kind: 'static';
|
|
14
16
|
items: Option[];
|