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.
@@ -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;
@@ -20,6 +20,7 @@ type AudioOptions = Partial<{
20
20
  wsTimeout: number;
21
21
  }>;
22
22
  export default class AudioSDK {
23
+ private plugins;
23
24
  private static instance;
24
25
  private recorder;
25
26
  private webSocket;
@@ -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 = [];
@@ -1,2 +1,3 @@
1
1
  import Recorder from './recorder';
2
+ export declare function loadRecorderPlugins(): any[];
2
3
  export default Recorder;
@@ -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
- useMP3(Recorder);
9
- useMP3Engine(Recorder);
10
- useFFT(Recorder);
11
- useWave(Recorder);
8
+ function loadRecorderPlugins() {
9
+ return [useMP3(Recorder), useMP3Engine(Recorder), useFFT(Recorder), useWave(Recorder)];
10
+ }
11
+
12
+ export { loadRecorderPlugins };
@@ -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';
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.3.1-beta.56";
2
+ var version = "3.3.1-beta.57";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.3.1-beta.56",
3
+ "version": "3.3.1-beta.57",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",