@cloudflare/realtimekit-react-native 0.3.1-staging.2 → 0.3.2-staging.0
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/lib/commonjs/AGENTS.md +58 -0
- package/lib/commonjs/AudioSampleHandler.js +4 -2
- package/lib/commonjs/AudioSampleHandler.js.map +1 -1
- package/lib/commonjs/BackgroundHandler.js +3 -3
- package/lib/commonjs/BackgroundHandler.js.map +1 -1
- package/lib/commonjs/LocalMediaHandler.js +75 -30
- package/lib/commonjs/LocalMediaHandler.js.map +1 -1
- package/lib/commonjs/LocalMediaUtils.js +3 -2
- package/lib/commonjs/LocalMediaUtils.js.map +1 -1
- package/lib/commonjs/ReactHooks.js +26 -0
- package/lib/commonjs/ReactHooks.js.map +1 -1
- package/lib/commonjs/utils/version.js +1 -1
- package/lib/commonjs/utils/version.js.map +1 -1
- package/lib/module/AGENTS.md +58 -0
- package/lib/module/AudioSampleHandler.js +3 -1
- package/lib/module/AudioSampleHandler.js.map +1 -1
- package/lib/module/BackgroundHandler.js +2 -2
- package/lib/module/BackgroundHandler.js.map +1 -1
- package/lib/module/LocalMediaHandler.js +74 -29
- package/lib/module/LocalMediaHandler.js.map +1 -1
- package/lib/module/LocalMediaUtils.js +2 -1
- package/lib/module/LocalMediaUtils.js.map +1 -1
- package/lib/module/ReactHooks.js +26 -0
- package/lib/module/ReactHooks.js.map +1 -1
- package/lib/module/utils/version.js +1 -1
- package/lib/module/utils/version.js.map +1 -1
- package/lib/typescript/AudioSampleHandler.d.ts +2 -0
- package/lib/typescript/BackgroundHandler.d.ts +2 -0
- package/lib/typescript/LocalMediaHandler.d.ts +2 -0
- package/lib/typescript/LocalMediaUtils.d.ts +2 -0
- package/lib/typescript/ReactHooks.d.ts +1 -1
- package/lib/typescript/utils/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NativeEventEmitter } from 'react-native';
|
|
1
2
|
import { ConstrainDouble, RealtimeKitMediaStreamConstraints, RealtimeKitMediaTrackConstraints, MediaDeviceInfo } from './LocalMediaInterfaces';
|
|
2
3
|
export interface LocalAudioOptions {
|
|
3
4
|
disableAP?: boolean;
|
|
@@ -40,6 +41,7 @@ export declare const VIDEO_CONSTRAINTS: {
|
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
};
|
|
44
|
+
export declare const deviceChangeListener: NativeEventEmitter;
|
|
43
45
|
/**
|
|
44
46
|
* To initialize an instance of this class, use the
|
|
45
47
|
* `.init()` static method.
|
|
@@ -2,7 +2,7 @@ import RealtimeKitClient, { RealtimeKitClientOptions } from '@cloudflare/realtim
|
|
|
2
2
|
/**
|
|
3
3
|
* Hook which manages a RealtimeKitClient instance
|
|
4
4
|
*/
|
|
5
|
-
export declare const useRealtimeKitClient: () => [RealtimeKitClient | undefined, (options: RealtimeKitClientOptions) =>
|
|
5
|
+
export declare const useRealtimeKitClient: () => [RealtimeKitClient | undefined, (options: RealtimeKitClientOptions) => Promise<RealtimeKitClient>];
|
|
6
6
|
type StateSelector<T extends object, U> = (state: T) => U;
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use `useRealtimeKitSelector` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.3.
|
|
1
|
+
export declare const SDK_VERSION = "0.3.2";
|