@idealyst/microphone 1.2.29 → 1.2.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/microphone",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "description": "Cross-platform microphone streaming for React and React Native",
5
5
  "documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/microphone#readme",
6
6
  "readme": "README.md",
@@ -37,7 +37,7 @@
37
37
  "publish:npm": "npm publish"
38
38
  },
39
39
  "peerDependencies": {
40
- "@idealyst/components": "^1.2.29",
40
+ "@idealyst/components": "^1.2.31",
41
41
  "react": ">=16.8.0",
42
42
  "react-native": ">=0.60.0",
43
43
  "react-native-live-audio-stream": ">=1.1.0"
@@ -466,7 +466,7 @@ export class WebMicrophone implements IMicrophone {
466
466
  );
467
467
  }
468
468
 
469
- this.updateStatus({ state: 'error', error: micError });
469
+ this.updateStatus({ state: 'danger', error: micError });
470
470
  this.cleanup();
471
471
 
472
472
  // Notify error listeners
package/src/types.ts CHANGED
@@ -105,7 +105,7 @@ export type MicrophoneState =
105
105
  | 'recording' // Actively capturing
106
106
  | 'paused' // Paused (native only - web must stop/start)
107
107
  | 'stopping' // Cleaning up
108
- | 'error'; // Error state
108
+ | 'danger'; // Error state
109
109
 
110
110
  export interface MicrophoneStatus {
111
111
  state: MicrophoneState;