cnhis-design-vue 3.3.1-beta.56 → 3.3.1-beta.57
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/es/components/ai-chat/src/hooks/useChartAudioContext.js +0 -1
- package/es/components/audio-sdk/index.js +0 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +1 -0
- package/es/components/audio-sdk/src/audioSDK.js +2 -1
- package/es/components/audio-sdk/src/utils/recorder/index.d.ts +1 -0
- package/es/components/audio-sdk/src/utils/recorder/index.js +5 -4
- package/es/components/index.js +0 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +1 -1
@@ -4,7 +4,6 @@ import { useData } from './useData.js';
|
|
4
4
|
import { $message } from '../utils/index.js';
|
5
5
|
import '../../../audio-sdk/index.js';
|
6
6
|
import AudioSDK from '../../../audio-sdk/src/audioSDK.js';
|
7
|
-
import '../../../audio-sdk/src/utils/recorder/index.js';
|
8
7
|
import Recorder from '../../../audio-sdk/src/utils/recorder/recorder.js';
|
9
8
|
|
10
9
|
function useChartAudioContext(props, emit, options) {
|
@@ -2,7 +2,6 @@ import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
3
3
|
import script from './src/Index.vue.js';
|
4
4
|
export { default as CAudioSDK } from './src/audioSDK.js';
|
5
|
-
import './src/utils/recorder/index.js';
|
6
5
|
export { default as CRecorder } from './src/utils/recorder/recorder.js';
|
7
6
|
|
8
7
|
const AudioSdk = script;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { uuidGenerator } from '../../../shared/utils/index.js';
|
2
2
|
import axios from 'axios';
|
3
3
|
import { isString, isObject } from 'lodash-es';
|
4
|
-
import './utils/recorder/index.js';
|
4
|
+
import { loadRecorderPlugins } from './utils/recorder/index.js';
|
5
5
|
import { ref } from 'vue';
|
6
6
|
import { $message } from './utils/index.js';
|
7
7
|
import { RecordingModal } from './utils/recordingModal.js';
|
@@ -22,6 +22,7 @@ const DEFAULT_OPTIONS = {
|
|
22
22
|
};
|
23
23
|
const _AudioSDK = class {
|
24
24
|
constructor() {
|
25
|
+
this.plugins = loadRecorderPlugins();
|
25
26
|
this.recorder = null;
|
26
27
|
this.webSocket = null;
|
27
28
|
this.messageQueue = [];
|
@@ -5,7 +5,8 @@ import { useWave } from './wave.js';
|
|
5
5
|
import Recorder from './recorder.js';
|
6
6
|
export { default } from './recorder.js';
|
7
7
|
|
8
|
-
|
9
|
-
useMP3Engine(Recorder);
|
10
|
-
|
11
|
-
|
8
|
+
function loadRecorderPlugins() {
|
9
|
+
return [useMP3(Recorder), useMP3Engine(Recorder), useFFT(Recorder), useWave(Recorder)];
|
10
|
+
}
|
11
|
+
|
12
|
+
export { loadRecorderPlugins };
|
package/es/components/index.js
CHANGED
@@ -105,7 +105,6 @@ export { useScrollLoading } from '../shared/hooks/useScrollLoading.js';
|
|
105
105
|
export { vFlexibleResize } from '../shared/directive/flexibleResize.js';
|
106
106
|
export { useGuide } from './guide/src/useGuide.js';
|
107
107
|
export { DragScroll, useDragScroll } from './drag-scroll/src/index.js';
|
108
|
-
import './audio-sdk/src/utils/recorder/index.js';
|
109
108
|
export { default as CRecorder } from './audio-sdk/src/utils/recorder/recorder.js';
|
110
109
|
export { useAnchor } from './form-render/src/hooks/useAnchor.js';
|
111
110
|
export { BusinessCollector, useBusinessBinding } from './form-render/src/hooks/useBusinessBinding.js';
|