app-v3-scripts-editor 1.36.0 → 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;
@@ -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.36.0",
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"