@fishjam-cloud/react-native-client 0.25.0-rc.2 → 0.25.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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/webrtc-polyfill.js +1 -1
- package/package.json +5 -8
- package/plugin/build/withFishjamIos.js +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export { useForegroundService, type ForegroundServiceConfig } from './useForegro
|
|
|
8
8
|
export { useCamera, useInitializeDevices, InitializeDevicesSettings, useConnection, useCustomSource, useLivestreamStreamer, useLivestreamViewer, usePeers, useSandbox, useScreenShare, useUpdatePeerMetadata, useVAD, Variant, } from '@fishjam-cloud/react-client';
|
|
9
9
|
export declare const useMicrophone: () => Omit<ReturnType<typeof useMicrophoneReactClient>, "toggleMicrophoneMute">;
|
|
10
10
|
export type { UseInitializeDevicesParams, JoinRoomConfig, ConnectStreamerConfig, StreamerInputs, UseLivestreamStreamerResult, ConnectViewerConfig, UseLivestreamViewerResult, PeerWithTracks, RoomType, UseSandboxProps, BandwidthLimits, Brand, CustomSource, DeviceError, DeviceItem, InitializeDevicesResult, InitializeDevicesStatus, MiddlewareResult, PeerId, PeerStatus, PersistLastDeviceHandlers, SimulcastBandwidthLimits, StreamConfig, Track, TrackId, TrackMiddleware, TracksMiddleware, TracksMiddlewareResult, AuthErrorReason, JoinErrorReason, Metadata, ReconnectConfig, ReconnectionStatus, SimulcastBandwidthLimit, SimulcastConfig, TrackBandwidthLimit, } from '@fishjam-cloud/react-client';
|
|
11
|
-
export type FishjamProviderProps = Omit<ReactClientFishjamProviderProps, 'persistLastDevice'>;
|
|
11
|
+
export type FishjamProviderProps = Omit<ReactClientFishjamProviderProps, 'persistLastDevice' | 'fishjamClient'>;
|
|
12
12
|
export declare function FishjamProvider(props: FishjamProviderProps): React.FunctionComponentElement<ReactClientFishjamProviderProps>;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,oBAAoB,IAAI,+BAA+B,EAC5D,aAAa,IAAI,wBAAwB,EAC1C,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,oBAAoB,IAAI,+BAA+B,EAC5D,aAAa,IAAI,wBAAwB,EAC1C,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxG,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,OAAO,EACP,UAAU,EACV,eAAe,EACf,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEpG,OAAO,EAAE,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,MAAM,EACN,OAAO,GACR,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,aAAa,EAA+B,MAAM,IAAI,CACjE,UAAU,CAAC,OAAO,wBAAwB,CAAC,EAC3C,sBAAsB,CACvB,CAAC;AAEF,YAAY,EACV,0BAA0B,EAC1B,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,yBAAyB,EACzB,cAAc,EACd,QAAQ,EACR,eAAe,EACf,eAAe,EACf,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EACZ,KAAK,EACL,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,+BAA+B,EAAE,mBAAmB,GAAG,eAAe,CAAC,CAAC;AAChH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,mEAO1D"}
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,18 @@
|
|
|
5
5
|
// TODO: FCE-2464 Investigate order
|
|
6
6
|
import './webrtc-polyfill';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { FishjamProvider as ReactClientFishjamProvider, useMicrophone as useMicrophoneReactClient } from '@fishjam-cloud/react-client';
|
|
8
|
+
import { FishjamProvider as ReactClientFishjamProvider, useMicrophone as useMicrophoneReactClient, } from '@fishjam-cloud/react-client';
|
|
9
|
+
import { FishjamClient } from '@fishjam-cloud/ts-client';
|
|
9
10
|
export { RTCView, RTCPIPView } from './overrides/RTCView';
|
|
10
11
|
export { ScreenCapturePickerView, startPIP, stopPIP, useCallKit, useCallKitEvent, useCallKitService, } from '@fishjam-cloud/react-native-webrtc';
|
|
11
12
|
export { useForegroundService } from './useForegroundService';
|
|
12
13
|
export { useCamera, useInitializeDevices, useConnection, useCustomSource, useLivestreamStreamer, useLivestreamViewer, usePeers, useSandbox, useScreenShare, useUpdatePeerMetadata, useVAD, Variant, } from '@fishjam-cloud/react-client';
|
|
13
14
|
export const useMicrophone = useMicrophoneReactClient;
|
|
14
15
|
export function FishjamProvider(props) {
|
|
16
|
+
const fishjamClient = new FishjamClient({ reconnect: props.reconnect, debug: props.debug, clientType: 'mobile' });
|
|
15
17
|
return React.createElement(ReactClientFishjamProvider, {
|
|
16
18
|
...props,
|
|
17
19
|
persistLastDevice: false,
|
|
20
|
+
fishjamClient,
|
|
18
21
|
});
|
|
19
22
|
}
|
package/dist/webrtc-polyfill.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react-native-get-random-values';
|
|
2
|
+
import { registerGlobals } from '@fishjam-cloud/react-native-webrtc';
|
|
2
3
|
// @ts-ignore - event-target-shim types not properly exported via package.json exports
|
|
3
4
|
import { EventTarget } from 'event-target-shim';
|
|
4
|
-
import { registerGlobals } from '@fishjam-cloud/react-native-webrtc';
|
|
5
5
|
import { RTCPeerConnection } from './overrides/RTCPeerConnection';
|
|
6
6
|
import { LocalStoragePolyfill } from './polyfills/local-storage';
|
|
7
7
|
const registerGlobalsPolyfill = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishjam-cloud/react-native-client",
|
|
3
|
-
"version": "0.25.0
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "React Native client library for Fishjam",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Fishjam Team",
|
|
@@ -45,17 +45,14 @@
|
|
|
45
45
|
"react-native": "*"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@fishjam-cloud/react-client": "0.25.0
|
|
49
|
-
"@fishjam-cloud/react-native-webrtc": "
|
|
48
|
+
"@fishjam-cloud/react-client": "0.25.0",
|
|
49
|
+
"@fishjam-cloud/react-native-webrtc": "0.25.0",
|
|
50
50
|
"react-native-get-random-values": "^1.11.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/promise-fs": "^2.1.2",
|
|
54
53
|
"eslint-config-expo": "~9.2.0",
|
|
55
54
|
"eslint-plugin-prettier": "^5.5.1",
|
|
56
|
-
"expo-module-scripts": "^5.0.7"
|
|
57
|
-
"promise-fs": "^2.1.1"
|
|
55
|
+
"expo-module-scripts": "^5.0.7"
|
|
58
56
|
},
|
|
59
|
-
"packageManager": "yarn@4.12.0"
|
|
60
|
-
"stableVersion": "0.23.0"
|
|
57
|
+
"packageManager": "yarn@4.12.0"
|
|
61
58
|
}
|
|
@@ -35,8 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.withFishjamIos = void 0;
|
|
37
37
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
38
|
+
const fs = __importStar(require("fs/promises"));
|
|
38
39
|
const path = __importStar(require("path"));
|
|
39
|
-
const fs = __importStar(require("promise-fs"));
|
|
40
40
|
function getSbeTargetName(props) {
|
|
41
41
|
return props?.ios?.broadcastExtensionTargetName || 'ScreenBroadcastExtension';
|
|
42
42
|
}
|