@digitalsee-ai/rcs 1.0.1 → 1.0.2

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.
@@ -1,6 +1,6 @@
1
- import { ReactFlowInstance } from '@xyflow/react';
2
1
  import { AppDispatch } from '../../store';
3
2
  import { CanvasAPI } from '../../types/engine';
3
+ import { ReactFlowInstance } from '@xyflow/react';
4
4
  interface UseCanvasApiParams {
5
5
  dispatch: AppDispatch;
6
6
  reactFlow: ReactFlowInstance;
@@ -5,7 +5,7 @@ interface AccountSelectProps {
5
5
  value?: string | null;
6
6
  onChange?: (value: string | undefined) => void;
7
7
  linkApp: LinkApp;
8
- actionAccountSchemaId?: string;
8
+ actionAccountSchemaId?: string | number;
9
9
  credentialRequirements?: CredentialRequirementLike[];
10
10
  disabled?: boolean;
11
11
  placeholder?: string;
@@ -146,7 +146,7 @@ export declare function apiRemoveEdges(flowId: string, edges: string[]): Promise
146
146
  export declare function apiGetSelectOptions(type: string): Promise<unknown>;
147
147
  export declare function updateFlowOpStatus(paramsId: any, opStatus: any): Promise<unknown>;
148
148
  export declare function onlineFlow(id: any): Promise<unknown>;
149
- export declare const apiGetAccountInstanceV2: (linkId?: string | null, actionAccountSchemaId?: string) => Promise<unknown>;
149
+ export declare const apiGetAccountInstanceV2: (linkId?: string | null, actionAccountSchemaId?: string | number) => Promise<unknown>;
150
150
  export declare const getAppList: (params: any, formData?: any) => Promise<unknown>;
151
151
  export declare const fetchSubFlowList: (name: any, formData?: any) => Promise<unknown>;
152
152
  export {};
@@ -1,8 +1,8 @@
1
1
  import { default as defaultCanvasEngineConfig } from './config/defaultCanvasEngineConfig';
2
- import { CanvasEngineConfig, DeepPartial, HistoryNavigator, HttpClient, CanvasAPI } from './types/engine';
2
+ import { CanvasEngineConfig, DeepPartial, CanvasAPI, HistoryNavigator, HttpClient } from './types/engine';
3
3
  import { mergeConfig } from './utils/mergeConfig';
4
- import { LocaleType } from '../../../locales';
5
4
  import { EngineMode } from './enums/workflow';
5
+ import { LocaleType } from '../../../locales';
6
6
  /**
7
7
  * DigitalseeWorkFlow 组件对外暴露的属性定义
8
8
  *
@@ -101,24 +101,23 @@ export interface DigitalseeWorkFlowProps {
101
101
  * @param props 组件参数
102
102
  */
103
103
  declare const DigitalseeWorkFlow: (props: DigitalseeWorkFlowProps) => any;
104
- export { DigitalseeWorkFlow };
105
104
  export type { WorkflowHttpClient } from './api';
106
- export type { CanvasAPI, CanvasEngineConfig, DeepPartial, HistoryNavigator, HttpClient, } from './types/engine';
107
- export { EngineMode, WorkflowOpStatus } from './enums/workflow';
108
- export { NodeStatus, NodeType } from './enums/node';
109
- export { useCanvasApi } from './context/canvasApiContext';
110
- export { useCanvasConfig } from './context/canvasConfig';
111
- export { defaultCanvasEngineConfig, mergeConfig };
112
- export type { LocaleType as WorkflowLocale, TranslateFn as WorkflowTranslateFn, } from '../../../locales';
113
- export { createTranslator } from '../../../locales';
114
105
  export { configureWorkflow, getGlobalWorkflowConfig, resetGlobalWorkflowConfig, } from './config/globalConfig';
115
106
  export * from './config/themeConfig';
107
+ export { useCanvasApi } from './context/canvasApiContext';
108
+ export { useCanvasConfig } from './context/canvasConfig';
116
109
  export { default as EdgeFactory } from './Edges/EdgeFactory';
110
+ export { NodeStatus, NodeType } from './enums/node';
111
+ export { EngineMode, WorkflowOpStatus } from './enums/workflow';
117
112
  export { default as HandleFactory } from './Handles/HandleFactory';
118
113
  export { useCanvasLayout } from './hooks/useCanvasLayout';
119
114
  export { useUndo } from './hooks/useUndo';
120
115
  export { useWorkflow } from './hooks/useWorkflow';
121
116
  export { default as NodeFactory } from './Nodes/NodeFactory';
122
117
  export * from './types/Edge';
118
+ export type { CanvasAPI, CanvasEngineConfig, DeepPartial, HistoryNavigator, HttpClient, } from './types/engine';
123
119
  export * from './types/Node';
124
120
  export * from './types/Workflow';
121
+ export type { LocaleType as WorkflowLocale, TranslateFn as WorkflowTranslateFn, } from '../../../locales';
122
+ export { createTranslator } from '../../../locales';
123
+ export { DigitalseeWorkFlow, defaultCanvasEngineConfig, mergeConfig };
@@ -1,6 +1,6 @@
1
1
  import { ReactFlow } from '@xyflow/react';
2
- import { ComponentProps, ReactNode } from 'react';
3
2
  import { Rule } from 'antd/es/form';
3
+ import { ComponentProps, ReactNode } from 'react';
4
4
  import { EngineMode, WorkflowOpStatus } from '../enums/workflow';
5
5
  export type HttpClient = <T = any>(url: string, config: any) => Promise<T>;
6
6
  export interface HistoryNavigator {
@@ -1 +1,2 @@
1
- export declare const ArrayObjectField: import('../../types/field-component').FieldComponentDefinition<import('../../types/form-schema').FieldDef>;
1
+ import { FieldDef } from '../../types/form-schema';
2
+ export declare const ArrayObjectField: import('../../types/field-component').FieldComponentDefinition<FieldDef>;
@@ -1,5 +1,5 @@
1
- import { ValidationRule } from './validation';
2
1
  import { EventConfig } from './events';
2
+ import { ValidationRule } from './validation';
3
3
  export type Option = {
4
4
  label: string;
5
5
  value: string | number;
@@ -17,7 +17,7 @@ export type OptionsSource = {
17
17
  params?: Record<string, unknown>;
18
18
  fallbackOptions?: Option[];
19
19
  };
20
- export type OperatorType = 'EQ' | 'NOT' | 'GT' | 'LT' | 'GE' | 'LE' | 'ISEVEN' | 'ISODD' | 'IC' | 'NIC' | 'IN' | 'NIN' | 'EXISTS' | 'EMPTY' | 'NOT_EMPTY';
20
+ export type OperatorType = 'EQ' | 'NOT' | 'GT' | 'LT' | 'GE' | 'LE' | 'ISEVEN' | 'ISODD' | 'IC' | 'NIC' | 'IN' | 'NIN' | 'NOT_IN' | 'EXISTS' | 'EMPTY' | 'NOT_EMPTY';
21
21
  export type ConditionNode = {
22
22
  AND?: ConditionNode[];
23
23
  OR?: ConditionNode[];
@@ -270,6 +270,18 @@ export type ArrayObjectField = BaseField & {
270
270
  allowCopy?: boolean;
271
271
  minItems?: number;
272
272
  maxItems?: number;
273
+ /** 子字段布局。grid 会按 columnCount 横向排列,超出自动换行。 */
274
+ columnLayout?: 'vertical' | 'grid';
275
+ /** grid 布局每行列数,默认 3。 */
276
+ columnCount?: number;
277
+ /** 是否允许编辑每一项的标题。开启后默认保存到 title 字段。 */
278
+ titleEditable?: boolean;
279
+ /** 每一项标题保存到行对象内的字段名。设置后会自动开启标题编辑。 */
280
+ titleFieldName?: string;
281
+ /** 当前层每一项卡片的背景色。 */
282
+ backgroundColor?: string;
283
+ /** 多层 ARRAY_OBJECT 背景色列表。嵌套层会按深度自动取色。 */
284
+ levelBackgroundColors?: string[];
273
285
  };
274
286
  /** 字段定义联合类型 */
275
287
  export type FieldDef = BaseField | TextareaField | SelectField | RadioField | CheckboxGroupField | DateField | DateRangeField | TimeField | TimeRangeField | NumberField | UploadField | SliderField | RateField | CascaderField | TreeSelectField | AutoCompleteField | SwitchField | InfoCardField | ArrayField | ObjectField | KeyValueField | ArrayObjectField;