app-v3-scripts-editor 1.22.3 → 1.23.0
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/app-v3-scripts-editor.css +1 -1
- package/dist/app-v3-scripts-editor.es.js +35264 -34291
- package/dist/app-v3-scripts-editor.umd.js +185 -185
- package/dist/src/lib/components/Blocks/Notification/types.d.ts +1 -1
- package/dist/src/lib/components/Selector/Option/variable.d.ts +8 -0
- package/dist/src/lib/components/Selector/User/variable.d.ts +7 -0
- package/dist/src/lib/components/Shared/GroupCondition/ConditionPropertySelect.d.ts +2 -2
- package/dist/src/lib/components/Shared/GroupCondition/index.css.d.ts +3 -0
- package/dist/src/lib/components/Shared/SuggestVariableNode/dropdownTypeList.d.ts +5 -7
- package/dist/src/lib/components/Shared/SuggestVariableNode/type.d.ts +1 -0
- package/dist/src/lib/components/Shared/VariableSuggestSelect/VariableTabMenu.d.ts +8 -0
- package/dist/src/lib/components/Shared/VariableSuggestSelect/constants.d.ts +9 -0
- package/dist/src/lib/components/Shared/VariableSuggestSelect/helpers.d.ts +28 -0
- package/dist/src/lib/components/Shared/VariableSuggestSelect/index.css.d.ts +11 -0
- package/dist/src/lib/components/Shared/VariableSuggestSelect/index.d.ts +4 -0
- package/dist/src/lib/components/Shared/VariableSuggestSelect/types.d.ts +22 -0
- package/dist/src/lib/hooks/use-alerts/utils/check-block-speak.d.ts +2 -1
- package/dist/src/lib/hooks/use-alerts/utils/check-block-transfer.d.ts +2 -1
- package/dist/src/lib/hooks/use-alerts/utils/check-deleted-variables.d.ts +13 -0
- package/dist/src/services/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export declare const NotificationTypeList: NOTIFICATION_ACTION_TYPE[];
|
|
|
14
14
|
export interface NotificationNodeData extends INodeBaseType, Record<string, unknown> {
|
|
15
15
|
title: string;
|
|
16
16
|
type: NOTIFICATION_ACTION_TYPE;
|
|
17
|
-
to: string;
|
|
17
|
+
to: string[];
|
|
18
18
|
subject: string;
|
|
19
19
|
content: string;
|
|
20
20
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import { IOptionValue } from '../../../../services';
|
|
3
|
+
type OptionVariableSelectorProps = {
|
|
4
|
+
dataDefault?: IOptionValue | IOptionValue[];
|
|
5
|
+
propertyId?: string;
|
|
6
|
+
} & SelectProps;
|
|
7
|
+
declare const OptionVariableSelector: React.FC<OptionVariableSelectorProps>;
|
|
8
|
+
export default OptionVariableSelector;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IProfile } from '../../../../services';
|
|
2
|
+
import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
|
|
3
|
+
type UserVariableSelectorProps = {
|
|
4
|
+
dataDefault?: IProfile | IProfile[];
|
|
5
|
+
} & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch" | "tagRender">;
|
|
6
|
+
declare const UserVariableSelector: React.FC<UserVariableSelectorProps>;
|
|
7
|
+
export default UserVariableSelector;
|
|
@@ -6,5 +6,5 @@ interface Props {
|
|
|
6
6
|
parentName?: string;
|
|
7
7
|
remove: (index: number | number[]) => void;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const _default: import('react').NamedExoticComponent<Props>;
|
|
10
|
+
export default _default;
|
|
@@ -9,3 +9,6 @@ export declare const GroupHeader: string;
|
|
|
9
9
|
export declare const AddConditionButton: string;
|
|
10
10
|
export declare const AddConditionText: string;
|
|
11
11
|
export declare const TextCenter: string;
|
|
12
|
+
export declare const ColDeleteButton: string;
|
|
13
|
+
export declare const deleteButton: string;
|
|
14
|
+
export declare const filterRow: string;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { VariableGroupOption } from './type';
|
|
2
|
-
export
|
|
2
|
+
export interface DropdownTypeListConfig {
|
|
3
|
+
enableBulkSelect?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const DropdownTypeList: (opt: VariableGroupOption, config?: DropdownTypeListConfig) => {
|
|
3
6
|
key: string;
|
|
4
7
|
popupClassName: string;
|
|
5
8
|
label: import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
children: ({
|
|
7
10
|
key: string;
|
|
8
11
|
label: import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
children: {
|
|
12
|
+
children: import('antd/es/menu/interface').ItemType[] | {
|
|
10
13
|
key: string;
|
|
11
14
|
selectable: boolean;
|
|
12
15
|
label: import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
}[];
|
|
14
|
-
popupClassName?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
key: string;
|
|
17
|
-
label: import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
children: import('antd/es/menu/interface').ItemType[];
|
|
19
17
|
popupClassName: string;
|
|
20
18
|
} | {
|
|
21
19
|
key: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuProps } from 'antd';
|
|
2
|
+
type VariableTabMenuProps = {
|
|
3
|
+
items?: MenuProps["items"];
|
|
4
|
+
onClick: MenuProps["onClick"];
|
|
5
|
+
onOpenChange: NonNullable<MenuProps["onOpenChange"]>;
|
|
6
|
+
};
|
|
7
|
+
export declare const VariableTabMenu: ({ items, onClick, onOpenChange, }: VariableTabMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DropdownTypeListConfig } from '../SuggestVariableNode/dropdownTypeList';
|
|
2
|
+
import { TabLabels } from './types';
|
|
3
|
+
export declare const TAB_KEYS: {
|
|
4
|
+
readonly DEFAULT: "default";
|
|
5
|
+
readonly VARIABLES: "variables";
|
|
6
|
+
};
|
|
7
|
+
export declare const DEFAULT_TAB_LABELS: Required<TabLabels>;
|
|
8
|
+
export declare const SEARCH_INTERACTION_GUARD_MS = 200;
|
|
9
|
+
export declare const BulkDisabledConfig: DropdownTypeListConfig;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import { DefaultOptionType } from 'antd/es/select';
|
|
3
|
+
import { DATA_TYPE_PROPERTY } from '../../../constants/common';
|
|
4
|
+
import { VariableAutoCompleteOption, VariableLeaf, VariableLeafOption } from '../SuggestVariableNode/type';
|
|
5
|
+
import { VariableSelectLabeledValue, VariableSelectValue } from './types';
|
|
6
|
+
export declare const isLabeledValue: (value: unknown) => value is VariableSelectLabeledValue;
|
|
7
|
+
export declare const extractValueString: (value: unknown) => string;
|
|
8
|
+
export declare const readDisplayTitle: (option?: DefaultOptionType | VariableSelectLabeledValue) => string;
|
|
9
|
+
export declare function filterOptionsByKeyword(opt: VariableAutoCompleteOption, keyword: string): VariableAutoCompleteOption | null;
|
|
10
|
+
export declare const normalizeValues: (value?: VariableSelectValue) => string[];
|
|
11
|
+
export declare const buildVariableValueString: (data: VariableLeaf, mode?: string) => string;
|
|
12
|
+
export declare const parseVariableValue: (value: string) => {
|
|
13
|
+
object: string;
|
|
14
|
+
mode: string;
|
|
15
|
+
fullPath: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const buildVariableMeta: (option: VariableLeafOption, value?: string, mode?: string) => VariableLeaf;
|
|
18
|
+
export declare const buildDeletedVariableMeta: (value: string) => {
|
|
19
|
+
object: string;
|
|
20
|
+
type: DATA_TYPE_PROPERTY.singlelineproperty;
|
|
21
|
+
slug: string;
|
|
22
|
+
name: string;
|
|
23
|
+
fullPath: string;
|
|
24
|
+
value: string;
|
|
25
|
+
mode: VariableLeaf["mode"];
|
|
26
|
+
isDeleted: true;
|
|
27
|
+
};
|
|
28
|
+
export declare const buildOptionMap: (options?: SelectProps["options"]) => Map<string, DefaultOptionType>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Wrapper: string;
|
|
2
|
+
export declare const DropdownContainer: string;
|
|
3
|
+
export declare const TabsWrapper: string;
|
|
4
|
+
export declare const SingleValueSelected: string;
|
|
5
|
+
export declare const SingleValueOverlay: string;
|
|
6
|
+
export declare const SearchInputWrapper: string;
|
|
7
|
+
export declare const SearchInput: string;
|
|
8
|
+
export declare const TabPaneInner: string;
|
|
9
|
+
export declare const TabDivider: string;
|
|
10
|
+
export declare const VariableMenu: string;
|
|
11
|
+
export declare const EmptyState: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { VariableSuggestSelectProps } from './types';
|
|
2
|
+
export declare const VariableSuggestSelect: ({ defaultOptions, variableFilterTypes, tabLabels, onVariableInsert, dropdownClassName, options, open: controlledOpen, onDropdownVisibleChange, onSearch: externalOnSearch, onChange: externalOnChange, getPopupContainer, showSearch, children, value: controlledValue, defaultValue, mode: selectMode, tagRender, className, labelInValue, onClear, ...restProps }: VariableSuggestSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default function VariableSuggestSelectWithProvider(props: VariableSuggestSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export type { TabKey, TabLabels, VariableSuggestSelectProps } from './types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import { DefaultOptionType } from 'antd/es/select';
|
|
3
|
+
import { DATA_TYPE_PROPERTY } from '../../../constants/common';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
export type TabKey = "default" | "variables";
|
|
6
|
+
export type TabLabels = {
|
|
7
|
+
defaultTab?: string;
|
|
8
|
+
variableTab?: string;
|
|
9
|
+
};
|
|
10
|
+
export type VariableSelectLabeledValue = {
|
|
11
|
+
key?: string;
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
title?: string;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
export type VariableSelectValue = string | string[] | VariableSelectLabeledValue | VariableSelectLabeledValue[];
|
|
17
|
+
export interface VariableSuggestSelectProps extends SelectProps<VariableSelectValue, DefaultOptionType> {
|
|
18
|
+
defaultOptions?: SelectProps["options"];
|
|
19
|
+
variableFilterTypes?: DATA_TYPE_PROPERTY[];
|
|
20
|
+
tabLabels?: TabLabels;
|
|
21
|
+
onVariableInsert?: (value: string) => void;
|
|
22
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SpeakNodeData } from '../../../components/Blocks/Speak/types';
|
|
2
|
-
|
|
2
|
+
import { AlertCheckContext } from './check-deleted-variables';
|
|
3
|
+
declare const checkBlockSpeak: (data: SpeakNodeData, context: AlertCheckContext) => {
|
|
3
4
|
errors: any[];
|
|
4
5
|
infos: any[];
|
|
5
6
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TransferNodeData } from '../../../components/Blocks/Transfer/types';
|
|
2
|
-
|
|
2
|
+
import { AlertCheckContext } from './check-deleted-variables';
|
|
3
|
+
declare const checkBlockTransfer: (data: TransferNodeData, context: AlertCheckContext) => {
|
|
3
4
|
errors: any[];
|
|
4
5
|
infos: any[];
|
|
5
6
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Edge, Node } from '@xyflow/react';
|
|
2
|
+
type AlertItem = {
|
|
3
|
+
code: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
export type AlertCheckContext = {
|
|
8
|
+
nodeId: string;
|
|
9
|
+
nodes: Node[];
|
|
10
|
+
edges: Edge[];
|
|
11
|
+
};
|
|
12
|
+
export declare const checkDeletedVariablesInNodeData: (data: unknown, context: AlertCheckContext) => AlertItem[];
|
|
13
|
+
export {};
|
|
@@ -143,7 +143,7 @@ export interface IFilter {
|
|
|
143
143
|
type?: string;
|
|
144
144
|
slug?: string;
|
|
145
145
|
name?: string;
|
|
146
|
-
value?: string | string[] | Dayjs | {
|
|
146
|
+
value?: string | string[] | Dayjs | IFilterPropertyValueObj | IFilterPropertyValueObj[] | {
|
|
147
147
|
id: string;
|
|
148
148
|
name?: string;
|
|
149
149
|
slug: string;
|