app-v3-scripts-editor 1.36.6 → 1.37.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 +23458 -23367
- package/dist/app-v3-scripts-editor.umd.js +187 -187
- package/dist/src/lib/components/Blocks/Contact/trigger/types.d.ts +2 -2
- package/dist/src/lib/components/Shared/SuggestVariableNode/dropdownTypeList.d.ts +2 -0
- package/dist/src/lib/components/Shared/SuggestVariableNode/index.css.d.ts +4 -0
- package/dist/src/lib/components/Shared/SuggestVariableNode/utils.d.ts +11 -2
- package/dist/src/lib/components/Shared/VariableSuggestSelect/helpers.d.ts +0 -1
- package/package.json +1 -1
|
@@ -21,15 +21,15 @@ export declare enum TRIGGER_TIME_OPTION {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const ContactTriggerTypeLabel: {
|
|
23
23
|
created: string;
|
|
24
|
-
updated: string;
|
|
25
24
|
updated_by_condition: string;
|
|
25
|
+
updated: string;
|
|
26
26
|
deleted: string;
|
|
27
27
|
TIME: string;
|
|
28
28
|
};
|
|
29
29
|
export declare const ContactTriggerTypeDescription: {
|
|
30
30
|
created: string;
|
|
31
|
-
updated: string;
|
|
32
31
|
updated_by_condition: string;
|
|
32
|
+
updated: string;
|
|
33
33
|
deleted: string;
|
|
34
34
|
TIME: string;
|
|
35
35
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { MenuProps } from 'antd';
|
|
2
2
|
import { OutputMode } from '../../../constants/common';
|
|
3
3
|
import { VariableGroupOption } from './type';
|
|
4
|
+
import { VariableMenuSearchConfig } from './utils';
|
|
4
5
|
export interface DropdownTypeListConfig {
|
|
5
6
|
enableBulkSelect?: boolean;
|
|
7
|
+
search?: VariableMenuSearchConfig;
|
|
6
8
|
}
|
|
7
9
|
export declare const AVAILABLE_OUTPUT_MODES: readonly ["ALL_MATCHES", "FIRST_MATCH", "SPECIFIC_FIELD", "COUNT"];
|
|
8
10
|
export declare const getSupportedOutputModes: (outputMode?: string[], allowedModes?: readonly OutputMode[]) => ("ALL_MATCHES" | "FIRST_MATCH" | "SPECIFIC_FIELD" | "COUNT")[];
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const AutoCompleteStyled: string;
|
|
2
2
|
export declare const MenuStyled: string;
|
|
3
|
+
export declare const SearchInputWrapper: string;
|
|
4
|
+
export declare const SearchInput: string;
|
|
5
|
+
export declare const SearchMenuItem: string;
|
|
6
|
+
export declare const SearchDivider: string;
|
|
3
7
|
export declare const labelTextStyle: string;
|
|
4
8
|
export declare const slugLabelStyle: string;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { MenuProps } from 'antd';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
3
3
|
import { DATA_TYPE_PROPERTY } from '../../../constants/common';
|
|
4
4
|
import { VariableAutoCompleteOption, VariableGroupOption } from './type';
|
|
5
5
|
export declare const MENU_SELECT_ACTION_ATTR = "data-menu-select-action";
|
|
6
|
+
export type VariableMenuSearchConfig = {
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
onInteract?: (event: SyntheticEvent) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
6
12
|
export declare function filterOptionTree(opt: VariableAutoCompleteOption, filterTypes?: DATA_TYPE_PROPERTY[]): VariableAutoCompleteOption | null;
|
|
13
|
+
export declare function filterOptionsByKeyword(opt: VariableAutoCompleteOption, keyword: string): VariableAutoCompleteOption | null;
|
|
14
|
+
export declare const buildSearchMenuItem: (groupKey: string, search?: VariableMenuSearchConfig) => MenuProps["items"][number] | undefined;
|
|
15
|
+
export declare const buildSearchDividerMenuItem: (groupKey: string) => MenuProps["items"][number];
|
|
7
16
|
export declare const buildGroupMenuLabel: (opt: Pick<VariableGroupOption, "label" | "node_type" | "order" | "type">, action?: ReactNode, useNodeSummary?: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const buildMenuItem: (opt: VariableAutoCompleteOption, parentKey?: string, onSelectValue?: (menuKey: string) => void, onSelectActionMouseDown?: (menuKey: string) => void) => MenuProps["items"][number];
|
|
17
|
+
export declare const buildMenuItem: (opt: VariableAutoCompleteOption, parentKey?: string, onSelectValue?: (menuKey: string) => void, onSelectActionMouseDown?: (menuKey: string) => void, search?: VariableMenuSearchConfig) => MenuProps["items"][number];
|
|
9
18
|
export declare function collectLeafOptions(opt: VariableAutoCompleteOption, map: Map<string, VariableAutoCompleteOption>): void;
|
|
@@ -10,7 +10,6 @@ type VariableLabelSource = Pick<VariableLeaf, "fullname" | "fullPath" | "object"
|
|
|
10
10
|
export declare const readVariableLeafLabel: (data?: VariableLabelSource) => string;
|
|
11
11
|
export declare const readVariableDisplayLabel: (data?: VariableLabelSource, separator?: string) => string;
|
|
12
12
|
export declare const readVariableSearchTarget: (data: VariableLabelSource) => string;
|
|
13
|
-
export declare function filterOptionsByKeyword(opt: VariableAutoCompleteOption, keyword: string): VariableAutoCompleteOption | null;
|
|
14
13
|
export declare const normalizeValues: (value?: VariableSelectValue) => string[];
|
|
15
14
|
export declare const buildVariableValueString: (data: VariableLeaf, mode?: OutputMode) => string;
|
|
16
15
|
export declare const parseVariableValue: (value: string) => {
|