app-v3-scripts-editor 1.35.3 → 1.36.1
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.es.js +21162 -21067
- package/dist/app-v3-scripts-editor.umd.js +166 -166
- package/dist/src/lib/components/Blocks/Speak/settings/AudioPlayback.d.ts +1 -0
- package/dist/src/lib/components/Blocks/Speak/settings/PersonalizeTranscriptField.d.ts +1 -0
- package/dist/src/lib/components/Shared/AudioRecorder/index.d.ts +1 -0
- package/dist/src/lib/components/Shared/SuggestVariableNode/dropdownTypeList.d.ts +4 -1
- package/dist/src/lib/components/Shared/SuggestVariableNode/type.d.ts +1 -1
- package/dist/src/lib/components/Shared/VariableSuggestSelect/helpers.d.ts +3 -1
- package/dist/src/lib/provider/node-base/index.d.ts +3 -1
- package/dist/src/lib/provider/settings-modal-provider/components/SettingsModal/index.css.d.ts +1 -0
- package/dist/src/lib/provider/settings-modal-provider/components/SettingsModal/index.d.ts +1 -0
- package/dist/src/lib/provider/settings-modal-provider/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
interface PersonalizeTranscriptFieldProps {
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
rows?: number;
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const PersonalizeTranscriptField: React.FC<PersonalizeTranscriptFieldProps>;
|
|
7
8
|
export default PersonalizeTranscriptField;
|
|
@@ -3,6 +3,7 @@ import { IUploadAudioResponse } from '../../../../services';
|
|
|
3
3
|
interface AudioRecorderProps {
|
|
4
4
|
onFinishRecord?: (response: IUploadAudioResponse) => void;
|
|
5
5
|
onStartRecord?: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const AudioRecorder: React.FC<AudioRecorderProps>;
|
|
8
9
|
export default AudioRecorder;
|
|
@@ -10,14 +10,17 @@ type BuildOutputModeItemsParams = {
|
|
|
10
10
|
allowedModes?: readonly OutputMode[];
|
|
11
11
|
buildChildren?: (mode: OutputMode) => MenuProps["items"];
|
|
12
12
|
groupKey: string;
|
|
13
|
+
groupValue?: string;
|
|
13
14
|
outputMode?: string[];
|
|
14
15
|
};
|
|
15
|
-
export declare const buildOutputModeItems: ({ allowedModes, buildChildren, groupKey, outputMode, }: BuildOutputModeItemsParams) => {
|
|
16
|
+
export declare const buildOutputModeItems: ({ allowedModes, buildChildren, groupKey, groupValue, outputMode, }: BuildOutputModeItemsParams) => {
|
|
16
17
|
key: string;
|
|
17
18
|
label: import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
children: import('antd/es/menu/interface').ItemType[];
|
|
19
20
|
popupClassName: string;
|
|
20
21
|
}[];
|
|
22
|
+
export declare const getSelectedMenuMode: (menuKey: string, keyPath?: string[]) => OutputMode | undefined;
|
|
23
|
+
export declare const getSelectedMenuValueKey: (menuKey: string) => string;
|
|
21
24
|
export declare const DropdownTypeList: (opt: VariableGroupOption, config?: DropdownTypeListConfig, onSelectValue?: (menuKey: string) => void, onSelectActionMouseDown?: (menuKey: string) => void) => {
|
|
22
25
|
key: string;
|
|
23
26
|
popupClassName: string;
|
|
@@ -6,7 +6,7 @@ import { VariableSelectLabeledValue, VariableSelectValue } from './types';
|
|
|
6
6
|
export declare const isLabeledValue: (value: unknown) => value is VariableSelectLabeledValue;
|
|
7
7
|
export declare const extractValueString: (value: unknown) => string;
|
|
8
8
|
export declare const readDisplayTitle: (option?: DefaultOptionType | VariableSelectLabeledValue) => string;
|
|
9
|
-
type VariableLabelSource = Pick<VariableLeaf, "fullname" | "fullPath" | "slug">;
|
|
9
|
+
type VariableLabelSource = Pick<VariableLeaf, "fullname" | "fullPath" | "object" | "slug">;
|
|
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;
|
|
@@ -18,6 +18,8 @@ export declare const parseVariableValue: (value: string) => {
|
|
|
18
18
|
mode: "ALL_MATCHES" | "FIRST_MATCH" | "SPECIFIC_FIELD" | "COUNT";
|
|
19
19
|
fullPath: string;
|
|
20
20
|
};
|
|
21
|
+
export declare const buildVariableBaseKey: ({ object, fullPath, }: Pick<NonNullable<ReturnType<typeof parseVariableValue>>, "object" | "fullPath">) => string;
|
|
22
|
+
export declare const resolveVariableOption: (optionMap: Map<string, VariableAutoCompleteOption | undefined>, value: string) => VariableAutoCompleteOption;
|
|
21
23
|
export declare const buildVariableMeta: (option: VariableLeafOption, value?: string, mode?: OutputMode) => VariableLeaf;
|
|
22
24
|
export declare const buildVariableOptionValue: (option: VariableAutoCompleteOption, mode?: OutputMode) => string;
|
|
23
25
|
export declare const buildVariableGroupMeta: (option: VariableGroupOption, value?: string) => VariableLeaf | undefined;
|
|
@@ -3,9 +3,11 @@ interface NodeBaseContextValue {
|
|
|
3
3
|
setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
|
|
4
4
|
isPopupDeleteOpen: boolean;
|
|
5
5
|
setIsPopupDeleteOption: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
isReadOnly: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare const NodeBaseProvider: ({ children, }: {
|
|
8
|
+
export declare const NodeBaseProvider: ({ children, isReadOnly, }: {
|
|
8
9
|
children: React.ReactNode;
|
|
10
|
+
isReadOnly?: boolean;
|
|
9
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export declare const useNodeBase: () => NodeBaseContextValue;
|
|
11
13
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
2
|
interface SettingsModalContextType {
|
|
3
3
|
isOpen: boolean;
|
|
4
|
+
isReadOnly: boolean;
|
|
4
5
|
currentComponent: ReactNode | null;
|
|
5
6
|
currentTitle: string;
|
|
6
7
|
displayComponent: (component: ReactNode, title?: string, onClose?: () => void, id?: string) => void;
|