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.
@@ -5,6 +5,7 @@ interface AudioPlaybackProps {
5
5
  formPath?: string[][];
6
6
  onDelete?: () => void;
7
7
  style?: React.CSSProperties;
8
+ disabled?: boolean;
8
9
  }
9
10
  declare const AudioPlayback: React.FC<AudioPlaybackProps>;
10
11
  export default AudioPlayback;
@@ -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;
@@ -8,7 +8,7 @@ export interface VariableLeaf {
8
8
  type: DATA_TYPE_PROPERTY;
9
9
  slug: string;
10
10
  fullname?: string[];
11
- fullPath: string;
11
+ fullPath?: string;
12
12
  value: string;
13
13
  order?: number;
14
14
  node_type?: BlockType;
@@ -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 {};
@@ -2,3 +2,4 @@ export declare const header: string;
2
2
  export declare const dragHandle: string;
3
3
  export declare const title: string;
4
4
  export declare const content: string;
5
+ export declare const readOnlyContent: string;
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  interface SettingsModalProps {
3
3
  isOpen: boolean;
4
+ isReadOnly: boolean;
4
5
  title: string;
5
6
  onClose: () => void;
6
7
  children: React.ReactNode;
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.35.3",
4
+ "version": "1.36.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"