app-v3-scripts-editor 1.2.4 → 1.2.6
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 +41675 -33325
- package/dist/app-v3-scripts-editor.umd.js +98 -100
- package/dist/index.d.ts +2 -2
- package/dist/lib/components/Blocks/Speak/settings/AudioPlayback.d.ts +8 -0
- package/dist/lib/components/Blocks/Speak/settings/UploadAudioButton.d.ts +8 -0
- package/dist/lib/components/Scripts/index.d.ts +2 -0
- package/dist/{components → lib/components}/Scripts/scripts.css.d.ts +0 -1
- package/dist/lib/components/Shared/AudioRecorder/AudioVisualizer.d.ts +7 -0
- package/dist/lib/components/Shared/AudioRecorder/index.d.ts +6 -0
- package/dist/{constants → lib/constants}/initial-script.d.ts +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/provider/instance-context/index.d.ts +18 -0
- package/dist/{provider → lib/provider}/settings-modal-provider/components/SettingsModal/index.css.d.ts +0 -1
- package/dist/{styles → lib/styles}/colors.d.ts +4 -1
- package/dist/services/client.d.ts +2 -0
- package/dist/services/upload-audio/useUploadAudio.d.ts +5 -0
- package/package.json +1 -1
- package/dist/components/Scripts/index.d.ts +0 -1
- /package/dist/{components → lib/components}/Blocks/Listen/block.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Listen/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Listen/node.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/block.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/index.css.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/index.settings.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/node.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/settings/MachineFields.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/settings/PromptFields.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/settings/RecordFields.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/settings/index.css.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/types.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Speak/use-alerts/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Start/block.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Start/index.css.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Start/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Blocks/Start/node.d.ts +0 -0
- /package/dist/{components → lib/components}/Scripts/types.d.ts +0 -0
- /package/dist/{components → lib/components}/Shared/ConfirmDeleteButton/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Shared/EditBlockTitleButton/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Sidebar/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Sidebar/sidebar.css.d.ts +0 -0
- /package/dist/{components → lib/components}/index.d.ts +0 -0
- /package/dist/{constants → lib/constants}/block-types.d.ts +0 -0
- /package/dist/{constants → lib/constants}/index.d.ts +0 -0
- /package/dist/{constants → lib/constants}/node-types.d.ts +0 -0
- /package/dist/{constants → lib/constants}/sidebar-buttons.d.ts +0 -0
- /package/dist/{hooks → lib/hooks}/use-disclosure/index.d.ts +0 -0
- /package/dist/{hooks → lib/hooks}/use-selected-node/index.d.ts +0 -0
- /package/dist/{hooks → lib/hooks}/use-update-node/index.d.ts +0 -0
- /package/dist/{provider → lib/provider}/DnDContext.d.ts +0 -0
- /package/dist/{provider → lib/provider}/settings-modal-provider/components/SettingsModal/index.d.ts +0 -0
- /package/dist/{provider → lib/provider}/settings-modal-provider/index.css.d.ts +0 -0
- /package/dist/{provider → lib/provider}/settings-modal-provider/index.d.ts +0 -0
- /package/dist/{storybook-utils.d.ts → lib/storybook-utils.d.ts} +0 -0
- /package/dist/{styles → lib/styles}/borders.d.ts +0 -0
- /package/dist/{styles → lib/styles}/paddings.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export
|
|
1
|
+
export * from './lib/index'
|
|
2
|
+
export {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface UploadAudioButtonProps {
|
|
3
|
+
onUploadSuccess?: (audioUrl: string, transcript: string) => void;
|
|
4
|
+
fieldName?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const UploadAudioButton: React.FC<UploadAudioButtonProps>;
|
|
8
|
+
export default UploadAudioButton;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { default as React, ReactNode } from 'react';
|
|
3
|
+
interface InstanceContextProps {
|
|
4
|
+
axiosInstance: AxiosInstance;
|
|
5
|
+
speechApiAxiosInstance: AxiosInstance;
|
|
6
|
+
}
|
|
7
|
+
export interface InstanceScriptEditorProps {
|
|
8
|
+
BASE_URL: string;
|
|
9
|
+
AUTHORIZATION_HEADER: string;
|
|
10
|
+
SPEECH_API_URL: string;
|
|
11
|
+
}
|
|
12
|
+
interface InstanceContextProviderProps extends InstanceScriptEditorProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const InstanceContext: React.Context<InstanceContextProps>;
|
|
16
|
+
export declare const InstanceContextProvider: React.FC<InstanceContextProviderProps>;
|
|
17
|
+
export declare const useInstanceContext: () => InstanceContextProps;
|
|
18
|
+
export default InstanceContext;
|
|
@@ -16,8 +16,11 @@ declare const colors: {
|
|
|
16
16
|
};
|
|
17
17
|
listenBlock: {
|
|
18
18
|
indicator: string;
|
|
19
|
+
background: string;
|
|
20
|
+
border: string;
|
|
19
21
|
};
|
|
20
22
|
icon: {
|
|
23
|
+
speak: string;
|
|
21
24
|
listen: string;
|
|
22
25
|
transferCall: string;
|
|
23
26
|
getData: string;
|
|
@@ -25,7 +28,7 @@ declare const colors: {
|
|
|
25
28
|
addData: string;
|
|
26
29
|
httpRequest: string;
|
|
27
30
|
condition: string;
|
|
28
|
-
|
|
31
|
+
assignVariable: string;
|
|
29
32
|
};
|
|
30
33
|
speakBlock: {
|
|
31
34
|
background: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ScriptEditor: () => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{provider → lib/provider}/settings-modal-provider/components/SettingsModal/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|