livevoice-sdk-react-native 1.0.1
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/LICENSE +20 -0
- package/README.md +13 -0
- package/android/build.gradle +135 -0
- package/android/generated/java/io/livevoice/react/NativeLiveVoiceSdkSpec.java +182 -0
- package/android/generated/jni/CMakeLists.txt +36 -0
- package/android/generated/jni/RNLiveVoiceSpec-generated.cpp +229 -0
- package/android/generated/jni/RNLiveVoiceSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI-generated.cpp +238 -0
- package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +389 -0
- package/android/gradle.properties +7 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/io/livevoice/react/LiveVoiceModule.kt +293 -0
- package/android/src/main/java/io/livevoice/react/LiveVoiceSdkReactNativePackage.kt +45 -0
- package/android/src/main/java/io/livevoice/react/Mappings.kt +54 -0
- package/android/src/main/java/io/livevoice/react/NativeModels.kt +77 -0
- package/ios/LiveVoiceSdkReactNative.h +21 -0
- package/ios/LivevoiceSdkReactNative.mm +234 -0
- package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec-generated.mm +285 -0
- package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec.h +100 -0
- package/ios/generated/RNLiveVoiceSpecJSI-generated.cpp +238 -0
- package/ios/generated/RNLiveVoiceSpecJSI.h +389 -0
- package/lib/commonjs/components/AudioOutputSwitchView.js +140 -0
- package/lib/commonjs/components/AudioOutputSwitchView.js.map +1 -0
- package/lib/commonjs/components/BrandingView.js +78 -0
- package/lib/commonjs/components/BrandingView.js.map +1 -0
- package/lib/commonjs/components/ChannelView.js +117 -0
- package/lib/commonjs/components/ChannelView.js.map +1 -0
- package/lib/commonjs/components/ErrorView.js +88 -0
- package/lib/commonjs/components/ErrorView.js.map +1 -0
- package/lib/commonjs/components/LiveVoiceView.js +95 -0
- package/lib/commonjs/components/LiveVoiceView.js.map +1 -0
- package/lib/commonjs/components/PlayButtonView.js +161 -0
- package/lib/commonjs/components/PlayButtonView.js.map +1 -0
- package/lib/commonjs/components/ReconnectingView.js +109 -0
- package/lib/commonjs/components/ReconnectingView.js.map +1 -0
- package/lib/commonjs/components/WarningView.js +58 -0
- package/lib/commonjs/components/WarningView.js.map +1 -0
- package/lib/commonjs/components/index.js +94 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/icons/branding.png +0 -0
- package/lib/commonjs/icons/cpu.png +0 -0
- package/lib/commonjs/icons/headphones.png +0 -0
- package/lib/commonjs/icons/mic.png +0 -0
- package/lib/commonjs/icons/pause.png +0 -0
- package/lib/commonjs/icons/play.png +0 -0
- package/lib/commonjs/icons/speaker.png +0 -0
- package/lib/commonjs/index.js +310 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/specs/NativeLiveVoiceSdk.js +19 -0
- package/lib/commonjs/specs/NativeLiveVoiceSdk.js.map +1 -0
- package/lib/commonjs/util/Colors.js +30 -0
- package/lib/commonjs/util/Colors.js.map +1 -0
- package/lib/commonjs/util/ForegroundServiceConfig.js +33 -0
- package/lib/commonjs/util/ForegroundServiceConfig.js.map +1 -0
- package/lib/commonjs/util/PlayingState.js +24 -0
- package/lib/commonjs/util/PlayingState.js.map +1 -0
- package/lib/commonjs/util/Translations.js +47 -0
- package/lib/commonjs/util/Translations.js.map +1 -0
- package/lib/commonjs/util/UIState.js +6 -0
- package/lib/commonjs/util/UIState.js.map +1 -0
- package/lib/module/components/AudioOutputSwitchView.js +134 -0
- package/lib/module/components/AudioOutputSwitchView.js.map +1 -0
- package/lib/module/components/BrandingView.js +72 -0
- package/lib/module/components/BrandingView.js.map +1 -0
- package/lib/module/components/ChannelView.js +110 -0
- package/lib/module/components/ChannelView.js.map +1 -0
- package/lib/module/components/ErrorView.js +82 -0
- package/lib/module/components/ErrorView.js.map +1 -0
- package/lib/module/components/LiveVoiceView.js +90 -0
- package/lib/module/components/LiveVoiceView.js.map +1 -0
- package/lib/module/components/PlayButtonView.js +156 -0
- package/lib/module/components/PlayButtonView.js.map +1 -0
- package/lib/module/components/ReconnectingView.js +103 -0
- package/lib/module/components/ReconnectingView.js.map +1 -0
- package/lib/module/components/WarningView.js +52 -0
- package/lib/module/components/WarningView.js.map +1 -0
- package/lib/module/components/index.js +22 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/icons/branding.png +0 -0
- package/lib/module/icons/cpu.png +0 -0
- package/lib/module/icons/headphones.png +0 -0
- package/lib/module/icons/mic.png +0 -0
- package/lib/module/icons/pause.png +0 -0
- package/lib/module/icons/play.png +0 -0
- package/lib/module/icons/speaker.png +0 -0
- package/lib/module/index.js +215 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/specs/NativeLiveVoiceSdk.js +16 -0
- package/lib/module/specs/NativeLiveVoiceSdk.js.map +1 -0
- package/lib/module/util/Colors.js +26 -0
- package/lib/module/util/Colors.js.map +1 -0
- package/lib/module/util/ForegroundServiceConfig.js +28 -0
- package/lib/module/util/ForegroundServiceConfig.js.map +1 -0
- package/lib/module/util/PlayingState.js +21 -0
- package/lib/module/util/PlayingState.js.map +1 -0
- package/lib/module/util/Translations.js +41 -0
- package/lib/module/util/Translations.js.map +1 -0
- package/lib/module/util/UIState.js +4 -0
- package/lib/module/util/UIState.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/components/AudioOutputSwitchView.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/AudioOutputSwitchView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/BrandingView.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/BrandingView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ChannelView.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/ChannelView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ErrorView.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/ErrorView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts +146 -0
- package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ReconnectingView.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/ReconnectingView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/WarningView.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/WarningView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +129 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts +47 -0
- package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/util/Colors.d.ts +13 -0
- package/lib/typescript/commonjs/src/util/Colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts +12 -0
- package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/util/PlayingState.d.ts +7 -0
- package/lib/typescript/commonjs/src/util/PlayingState.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/util/Translations.d.ts +22 -0
- package/lib/typescript/commonjs/src/util/Translations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/util/UIState.d.ts +45 -0
- package/lib/typescript/commonjs/src/util/UIState.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts +6 -0
- package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/BrandingView.d.ts +6 -0
- package/lib/typescript/module/src/components/BrandingView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ChannelView.d.ts +13 -0
- package/lib/typescript/module/src/components/ChannelView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ErrorView.d.ts +9 -0
- package/lib/typescript/module/src/components/ErrorView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/LiveVoiceView.d.ts +6 -0
- package/lib/typescript/module/src/components/LiveVoiceView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/PlayButtonView.d.ts +146 -0
- package/lib/typescript/module/src/components/PlayButtonView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ReconnectingView.d.ts +9 -0
- package/lib/typescript/module/src/components/ReconnectingView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/WarningView.d.ts +8 -0
- package/lib/typescript/module/src/components/WarningView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/index.d.ts +9 -0
- package/lib/typescript/module/src/components/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +129 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts +47 -0
- package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -0
- package/lib/typescript/module/src/util/Colors.d.ts +13 -0
- package/lib/typescript/module/src/util/Colors.d.ts.map +1 -0
- package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts +12 -0
- package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/util/PlayingState.d.ts +7 -0
- package/lib/typescript/module/src/util/PlayingState.d.ts.map +1 -0
- package/lib/typescript/module/src/util/Translations.d.ts +22 -0
- package/lib/typescript/module/src/util/Translations.d.ts.map +1 -0
- package/lib/typescript/module/src/util/UIState.d.ts +45 -0
- package/lib/typescript/module/src/util/UIState.d.ts.map +1 -0
- package/livevoice-sdk-react-native.podspec +58 -0
- package/package.json +207 -0
- package/react-native.config.js +12 -0
- package/src/components/AudioOutputSwitchView.tsx +145 -0
- package/src/components/BrandingView.tsx +66 -0
- package/src/components/ChannelView.tsx +99 -0
- package/src/components/ErrorView.tsx +89 -0
- package/src/components/LiveVoiceView.tsx +120 -0
- package/src/components/PlayButtonView.tsx +181 -0
- package/src/components/ReconnectingView.tsx +133 -0
- package/src/components/WarningView.tsx +60 -0
- package/src/components/index.tsx +19 -0
- package/src/icons/branding.png +0 -0
- package/src/icons/cpu.png +0 -0
- package/src/icons/headphones.png +0 -0
- package/src/icons/mic.png +0 -0
- package/src/icons/pause.png +0 -0
- package/src/icons/play.png +0 -0
- package/src/icons/speaker.png +0 -0
- package/src/index.tsx +221 -0
- package/src/specs/NativeLiveVoiceSdk.ts +75 -0
- package/src/util/Colors.ts +27 -0
- package/src/util/ForegroundServiceConfig.tsx +32 -0
- package/src/util/PlayingState.ts +18 -0
- package/src/util/Translations.ts +39 -0
- package/src/util/UIState.ts +65 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { View, Text, useColorScheme, StyleSheet } from 'react-native';
|
|
16
|
+
import { COLORS } from "../util/Colors.js";
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
export const WarningView = props => {
|
|
19
|
+
const isDarkMode = props.isDarkMode ?? useColorScheme() === 'dark';
|
|
20
|
+
return /*#__PURE__*/_jsx(View, {
|
|
21
|
+
style: [styles.container, isDarkMode ? {
|
|
22
|
+
backgroundColor: COLORS.cardBgDark
|
|
23
|
+
} : {
|
|
24
|
+
backgroundColor: COLORS.cardBg
|
|
25
|
+
}],
|
|
26
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
27
|
+
style: [styles.text, isDarkMode ? styles.darkText : styles.lightText],
|
|
28
|
+
children: props.text || 'No channels found'
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
const styles = StyleSheet.create({
|
|
33
|
+
container: {
|
|
34
|
+
paddingVertical: 30,
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
borderRadius: 8,
|
|
38
|
+
width: '100%',
|
|
39
|
+
marginBottom: 10
|
|
40
|
+
},
|
|
41
|
+
text: {
|
|
42
|
+
fontSize: 14,
|
|
43
|
+
fontWeight: '500'
|
|
44
|
+
},
|
|
45
|
+
darkText: {
|
|
46
|
+
color: '#fff'
|
|
47
|
+
},
|
|
48
|
+
lightText: {
|
|
49
|
+
color: '#191919'
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=WarningView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","useColorScheme","StyleSheet","COLORS","jsx","_jsx","WarningView","props","isDarkMode","style","styles","container","backgroundColor","cardBgDark","cardBg","children","text","darkText","lightText","create","paddingVertical","alignItems","justifyContent","borderRadius","width","marginBottom","fontSize","fontWeight","color"],"sourceRoot":"../../../src","sources":["components/WarningView.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,cAAc,EAAEC,UAAU,QAAQ,cAAc;AACrE,SAASC,MAAM,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQxC,OAAO,MAAMC,WAAmC,GAAIC,KAAK,IAAK;EAC5D,MAAMC,UAAU,GAAGD,KAAK,CAACC,UAAU,IAAIP,cAAc,CAAC,CAAC,KAAK,MAAM;EAElE,oBACEI,IAAA,CAACN,IAAI;IACHU,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBH,UAAU,GAAG;MAAEI,eAAe,EAAET,MAAM,CAACU;IAAW,CAAC,GAAG;MAAED,eAAe,EAAET,MAAM,CAACW;IAAO,CAAC,CACxF;IAAAC,QAAA,eAEFV,IAAA,CAACL,IAAI;MACHS,KAAK,EAAE,CAACC,MAAM,CAACM,IAAI,EAAER,UAAU,GAAGE,MAAM,CAACO,QAAQ,GAAGP,MAAM,CAACQ,SAAS,CAAE;MAAAH,QAAA,EAErER,KAAK,CAACS,IAAI,IAAI;IAAmB,CAC9B;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAMN,MAAM,GAAGR,UAAU,CAACiB,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,eAAe,EAAE,EAAE;IACnBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB,CAAC;EACDT,IAAI,EAAE;IACJU,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDV,QAAQ,EAAE;IACRW,KAAK,EAAE;EACT,CAAC;EACDV,SAAS,EAAE;IACTU,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export * from "./AudioOutputSwitchView.js";
|
|
15
|
+
export * from "./BrandingView.js";
|
|
16
|
+
export * from "./ChannelView.js";
|
|
17
|
+
export * from "./ErrorView.js";
|
|
18
|
+
export * from "./LiveVoiceView.js";
|
|
19
|
+
export * from "./PlayButtonView.js";
|
|
20
|
+
export * from "./ReconnectingView.js";
|
|
21
|
+
export * from "./WarningView.js";
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,4BAAyB;AACvC,cAAc,mBAAgB;AAC9B,cAAc,kBAAe;AAC7B,cAAc,gBAAa;AAC3B,cAAc,oBAAiB;AAC/B,cAAc,qBAAkB;AAChC,cAAc,uBAAoB;AAClC,cAAc,kBAAe","ignoreList":[]}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import LiveVoiceSdkReactNative from "./specs/NativeLiveVoiceSdk.js";
|
|
15
|
+
import { serviceDisabled } from "./util/ForegroundServiceConfig.js";
|
|
16
|
+
export * from "./components/index.js";
|
|
17
|
+
export * from "./util/Translations.js";
|
|
18
|
+
export * from "./util/ForegroundServiceConfig.js";
|
|
19
|
+
export * from "./util/UIState.js";
|
|
20
|
+
export * from "./util/PlayingState.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Initialize the LiveVoice SDK.
|
|
24
|
+
*
|
|
25
|
+
* @param {ForegroundServiceConfig} [androidServiceConfig=serviceDisabled] - Pass the service config on Android.
|
|
26
|
+
*/
|
|
27
|
+
export function initialize(androidServiceConfig = serviceDisabled) {
|
|
28
|
+
let serviceTypeAsString;
|
|
29
|
+
switch (androidServiceConfig.type) {
|
|
30
|
+
case 'Disabled':
|
|
31
|
+
serviceTypeAsString = null;
|
|
32
|
+
break;
|
|
33
|
+
case 'Enabled':
|
|
34
|
+
if (androidServiceConfig.message == null) serviceTypeAsString = 'LV_NOTIFICATION_DEFAULT_MESSAGE';else serviceTypeAsString = androidServiceConfig.message;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Interface cannot take default-parameter, so we need to wrap it here
|
|
39
|
+
LiveVoiceSdkReactNative.initialize(serviceTypeAsString);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Join an event.
|
|
44
|
+
*
|
|
45
|
+
* @abstract By joining an event you can display the event's channels.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} joinCode - The listener code of your event. You can find it on the event page of the admin web-interface by clicking on 'Share with your audience'.
|
|
48
|
+
* @param {string | null} password - The optional password to join the event. If a password has been set for listeners in your event, it can be found in the 'Access' tab of the event page of the admin web-interface.
|
|
49
|
+
* @param {string} apiKey - Your API key. You can find your API key in the account page when logged in on the website.
|
|
50
|
+
*/
|
|
51
|
+
export function joinEvent(joinCode, password, apiKey) {
|
|
52
|
+
return LiveVoiceSdkReactNative.joinEvent(joinCode, password, apiKey);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Leave the current event.
|
|
57
|
+
*
|
|
58
|
+
* @abstract You can explicitly leave an event to tear down any network connections the SDK uses when you no longer display any channels.
|
|
59
|
+
*/
|
|
60
|
+
export function leaveEvent() {
|
|
61
|
+
return LiveVoiceSdkReactNative.leaveEvent();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Reconnect when a connection error occurred.
|
|
66
|
+
*
|
|
67
|
+
* @abstract Call this method to try to reconnect when a connection error has occurred.
|
|
68
|
+
*/
|
|
69
|
+
export function reconnect() {
|
|
70
|
+
return LiveVoiceSdkReactNative.reconnect();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get the claims for the current event.
|
|
75
|
+
*
|
|
76
|
+
* @abstract The claims determine the authorized features for an API key. Claims are available, once an event has been joined.
|
|
77
|
+
* @returns {Claims | null} The authorization claims, or `nil` if not yet joined
|
|
78
|
+
*/
|
|
79
|
+
export function getCurrentClaims() {
|
|
80
|
+
const claims = LiveVoiceSdkReactNative.getCurrentClaims();
|
|
81
|
+
if (claims == null) return null;
|
|
82
|
+
return JSON.parse(claims);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Get the current state of the LiveVoice SDK.
|
|
87
|
+
*
|
|
88
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onUiStateChanged}
|
|
89
|
+
` to be updated about the view state.
|
|
90
|
+
* @returns {UiState} The current view state
|
|
91
|
+
*/
|
|
92
|
+
export function getCurrentUiState() {
|
|
93
|
+
return JSON.parse(LiveVoiceSdkReactNative.getCurrentUiState());
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Get the current available subtitle configurations LiveVoice SDK.
|
|
98
|
+
*
|
|
99
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onAvailableSubtitleConfigsChanged}
|
|
100
|
+
` to be updated when the available subtitle configurations change.
|
|
101
|
+
* @returns {AvailableSubtitleConfigs} The current available subtitle configuration
|
|
102
|
+
*/
|
|
103
|
+
export function getCurrentSubtitleConfiguration() {
|
|
104
|
+
return JSON.parse(LiveVoiceSdkReactNative.getCurrentAvailableSubtitleConfigs());
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get the current subtitle elemens LiveVoice SDK.
|
|
109
|
+
*
|
|
110
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onSubtitlesChanged}
|
|
111
|
+
` to be updated when the new subtitles are added.
|
|
112
|
+
* @returns {[String]} The current subtitles
|
|
113
|
+
*/
|
|
114
|
+
export function getCurrentSubtitles() {
|
|
115
|
+
return JSON.parse(LiveVoiceSdkReactNative.getCurrentSubtitles());
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Get the current state of the audio output.
|
|
120
|
+
*
|
|
121
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onAudioOutputChanged}
|
|
122
|
+
` to be updated about the audio state.
|
|
123
|
+
* @returns {boolean} `true` for the speaker and `false` for the receiver.
|
|
124
|
+
*/
|
|
125
|
+
export function getCurrentAudioState() {
|
|
126
|
+
return LiveVoiceSdkReactNative.getCurrentAudioState();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Set the audio output.
|
|
131
|
+
* @param {boolean} value - Set to `true` to use the speaker, and `false` to use the receiver.
|
|
132
|
+
*/
|
|
133
|
+
export function setLiveVoiceUseSpeaker(value) {
|
|
134
|
+
return LiveVoiceSdkReactNative.setLiveVoiceUseSpeaker(value);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Start playing a channel.
|
|
139
|
+
* @abstract You can find the channel ID for a channel in the admin web-interface at the bottom when tapping *Edit Channel*.
|
|
140
|
+
* @param {number} [id] - The channel ID.
|
|
141
|
+
*/
|
|
142
|
+
export function startChannel(id) {
|
|
143
|
+
return LiveVoiceSdkReactNative.startChannel(id);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Stop playing the currently playing channel.
|
|
148
|
+
*/
|
|
149
|
+
export function stopChannel() {
|
|
150
|
+
return LiveVoiceSdkReactNative.stopChannel();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Start receiving subtitles.
|
|
155
|
+
* @abstract The SDK can receive a single stream of subtitle fragments at a time.
|
|
156
|
+
* You can stop receiving subtitles using {@link stopSubtitles()}.
|
|
157
|
+
* Whenever you call this method, any previous subtitle streams are stopped automatically and you receive the subtitles for the requested channel and language instead.
|
|
158
|
+
*
|
|
159
|
+
* Note: You have to make sure that subtitles for the given channel and language are enabled in the web-interface. You can use the {@link onAvailableSubtitleConfigsChanged} handler to check if subtitles are available for a given channel in a given language.
|
|
160
|
+
*
|
|
161
|
+
* @param {number | null} channelId - The channel to receive subtitles for. Set to `null` to always receive subtitles for the currently playing channel.
|
|
162
|
+
* @param {string | null} language - The language code for the translation, or `null` to request the transcript.
|
|
163
|
+
*/
|
|
164
|
+
export function startSubtitles(channelId, language) {
|
|
165
|
+
const nativeSafeId = channelId == null ? -1 : channelId;
|
|
166
|
+
LiveVoiceSdkReactNative.startSubtitles(nativeSafeId, language);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Stop receiving subtitles.
|
|
171
|
+
*/
|
|
172
|
+
export function stopSubtitles() {
|
|
173
|
+
return LiveVoiceSdkReactNative.stopSubtitles();
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Event handlers
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Handle changes of the audio output.
|
|
180
|
+
*/
|
|
181
|
+
export function onAudioOutputChanged(handler) {
|
|
182
|
+
LiveVoiceSdkReactNative.onAudioOutputChanged(data => {
|
|
183
|
+
handler(data);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Handle changes of the UI state.
|
|
189
|
+
*/
|
|
190
|
+
export function onUiStateChanged(handler) {
|
|
191
|
+
LiveVoiceSdkReactNative.onUiStateChanged(data => {
|
|
192
|
+
handler(JSON.parse(data));
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Handle changes of the available subtitles.
|
|
198
|
+
*/
|
|
199
|
+
export function onAvailableSubtitleConfigsChanged(handler) {
|
|
200
|
+
LiveVoiceSdkReactNative.onAvailableSubtitleConfigsChanged(data => {
|
|
201
|
+
const mapOfSubtitles = JSON.parse(data);
|
|
202
|
+
handler(mapOfSubtitles);
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Handle changes of the available subtitles.
|
|
208
|
+
*/
|
|
209
|
+
export function onSubtitlesChanged(handler) {
|
|
210
|
+
LiveVoiceSdkReactNative.onSubtitlesChanged(data => {
|
|
211
|
+
const mapOfSubtitles = JSON.parse(data);
|
|
212
|
+
handler(mapOfSubtitles);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LiveVoiceSdkReactNative","serviceDisabled","initialize","androidServiceConfig","serviceTypeAsString","type","message","joinEvent","joinCode","password","apiKey","leaveEvent","reconnect","getCurrentClaims","claims","JSON","parse","getCurrentUiState","getCurrentSubtitleConfiguration","getCurrentAvailableSubtitleConfigs","getCurrentSubtitles","getCurrentAudioState","setLiveVoiceUseSpeaker","value","startChannel","id","stopChannel","startSubtitles","channelId","language","nativeSafeId","stopSubtitles","onAudioOutputChanged","handler","data","onUiStateChanged","onAvailableSubtitleConfigsChanged","mapOfSubtitles","onSubtitlesChanged"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { TurboModuleRegistry } from 'react-native';
|
|
15
|
+
export default TurboModuleRegistry.getEnforcing('LiveVoiceModule');
|
|
16
|
+
//# sourceMappingURL=NativeLiveVoiceSdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeLiveVoiceSdk.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,mBAAmB,QAAQ,cAAc;AA8DlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export const COLORS = {
|
|
15
|
+
primary: '#F1521B',
|
|
16
|
+
primaryOutline: 'rgba(241, 82, 27, 0.2)',
|
|
17
|
+
bg: '#F5F5F5',
|
|
18
|
+
bgDark: '#1E1F23',
|
|
19
|
+
cardBg: '#fff',
|
|
20
|
+
cardBgDark: '#212429',
|
|
21
|
+
white: '#fff',
|
|
22
|
+
black: '#191919',
|
|
23
|
+
gray: '#808080',
|
|
24
|
+
'gray-300': '#E0E0E0'
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["COLORS","primary","primaryOutline","bg","bgDark","cardBg","cardBgDark","white","black","gray"],"sourceRoot":"../../../src","sources":["util/Colors.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,SAAS;EAClBC,cAAc,EAAE,wBAAwB;EAExCC,EAAE,EAAE,SAAS;EACbC,MAAM,EAAE,SAAS;EAEjBC,MAAM,EAAE,MAAM;EACdC,UAAU,EAAE,SAAS;EAErBC,KAAK,EAAE,MAAM;EACbC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE,SAAS;EAEf,UAAU,EAAE;AACd,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
// Define the union type and interfaces
|
|
15
|
+
|
|
16
|
+
// Named exports for the constants and function
|
|
17
|
+
export const serviceDisabled = {
|
|
18
|
+
type: 'Disabled'
|
|
19
|
+
};
|
|
20
|
+
export const serviceEnabledWithDefaultMessage = {
|
|
21
|
+
type: 'Enabled',
|
|
22
|
+
message: 'LV_NOTIFICATION_DEFAULT_MESSAGE'
|
|
23
|
+
};
|
|
24
|
+
export const serviceEnabledWithMessage = message => ({
|
|
25
|
+
type: 'Enabled',
|
|
26
|
+
message
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=ForegroundServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["serviceDisabled","type","serviceEnabledWithDefaultMessage","message","serviceEnabledWithMessage"],"sourceRoot":"../../../src","sources":["util/ForegroundServiceConfig.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAYA;AACA,OAAO,MAAMA,eAAyB,GAAG;EAAEC,IAAI,EAAE;AAAW,CAAC;AAE7D,OAAO,MAAMC,gCAAyC,GAAG;EAAED,IAAI,EAAE,SAAS;EAAEE,OAAO,EAAE;AAAkC,CAAC;AAExH,OAAO,MAAMC,yBAAyB,GAAID,OAAsB,KAAe;EAC7EF,IAAI,EAAE,SAAS;EACfE;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export let PlayingState = /*#__PURE__*/function (PlayingState) {
|
|
15
|
+
PlayingState["STOPPED"] = "STOPPED";
|
|
16
|
+
PlayingState["TRANSITIONING"] = "TRANSITIONING";
|
|
17
|
+
PlayingState["PLAYING"] = "PLAYING";
|
|
18
|
+
return PlayingState;
|
|
19
|
+
}({});
|
|
20
|
+
;
|
|
21
|
+
//# sourceMappingURL=PlayingState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PlayingState"],"sourceRoot":"../../../src","sources":["util/PlayingState.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAIvB","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This source file is part of the LiveVoice SDK project
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) LiveVoice GmbH
|
|
7
|
+
* Licensed under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* See LICENSE for license information
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @fileoverview Translated strings for the React Native SDK.
|
|
16
|
+
* These methods will return a translated string for the current locale.
|
|
17
|
+
* German, English, and Spanish are supported at this time.
|
|
18
|
+
*/
|
|
19
|
+
import LiveVoiceSdkReactNative from "../specs/NativeLiveVoiceSdk.js";
|
|
20
|
+
export const Translations = {
|
|
21
|
+
channelStatusOffline: () => LiveVoiceSdkReactNative.channelStatusOffline(),
|
|
22
|
+
noChannels: () => LiveVoiceSdkReactNative.noChannels(),
|
|
23
|
+
isAiChannelStatusMessage: () => LiveVoiceSdkReactNative.isAiChannelStatusMessage(),
|
|
24
|
+
sdkNoMatchingChannels: () => LiveVoiceSdkReactNative.sdkNoMatchingChannels(),
|
|
25
|
+
errorScreenRetrying: () => LiveVoiceSdkReactNative.errorScreenRetrying(),
|
|
26
|
+
errorScreenRetryingIn: seconds => LiveVoiceSdkReactNative.errorScreenRetryingIn(seconds),
|
|
27
|
+
sdkErrorGeneric: () => LiveVoiceSdkReactNative.sdkErrorGeneric(),
|
|
28
|
+
sdkErrorInactive: () => LiveVoiceSdkReactNative.sdkErrorInactive(),
|
|
29
|
+
sdkErrorInvalidApiKey: () => LiveVoiceSdkReactNative.sdkErrorInvalidApiKey(),
|
|
30
|
+
sdkErrorListenerLimitReached: () => LiveVoiceSdkReactNative.sdkErrorListenerLimitReached(),
|
|
31
|
+
sdkErrorNoNetwork: () => LiveVoiceSdkReactNative.sdkErrorNoNetwork(),
|
|
32
|
+
sdkErrorNotFound: () => LiveVoiceSdkReactNative.sdkErrorNotFound(),
|
|
33
|
+
sdkErrorRequestFailed: errorCode => LiveVoiceSdkReactNative.sdkErrorRequestFailed(errorCode),
|
|
34
|
+
sdkErrorWrongPassword: () => LiveVoiceSdkReactNative.sdkErrorWrongPassword(),
|
|
35
|
+
errorRetryNowButton: () => LiveVoiceSdkReactNative.errorRetryNowButton(),
|
|
36
|
+
streamingByTitle: () => LiveVoiceSdkReactNative.streamingByTitle(),
|
|
37
|
+
accessibilityChannelPlay: () => LiveVoiceSdkReactNative.accessibilityChannelPlay(),
|
|
38
|
+
accessibilityChannelStatusMuted: () => LiveVoiceSdkReactNative.accessibilityChannelStatusMuted(),
|
|
39
|
+
accessibilityChannelStop: () => LiveVoiceSdkReactNative.accessibilityChannelStop()
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=Translations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LiveVoiceSdkReactNative","Translations","channelStatusOffline","noChannels","isAiChannelStatusMessage","sdkNoMatchingChannels","errorScreenRetrying","errorScreenRetryingIn","seconds","sdkErrorGeneric","sdkErrorInactive","sdkErrorInvalidApiKey","sdkErrorListenerLimitReached","sdkErrorNoNetwork","sdkErrorNotFound","sdkErrorRequestFailed","errorCode","sdkErrorWrongPassword","errorRetryNowButton","streamingByTitle","accessibilityChannelPlay","accessibilityChannelStatusMuted","accessibilityChannelStop"],"sourceRoot":"../../../src","sources":["util/Translations.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAOA,uBAAuB,MAAM,gCAA6B;AAEjE,OAAO,MAAMC,YAAY,GAAG;EAC1BC,oBAAoB,EAAEA,CAAA,KAAcF,uBAAuB,CAACE,oBAAoB,CAAC,CAAC;EAClFC,UAAU,EAAEA,CAAA,KAAcH,uBAAuB,CAACG,UAAU,CAAC,CAAC;EAC9DC,wBAAwB,EAAEA,CAAA,KAAcJ,uBAAuB,CAACI,wBAAwB,CAAC,CAAC;EAC1FC,qBAAqB,EAAEA,CAAA,KAAcL,uBAAuB,CAACK,qBAAqB,CAAC,CAAC;EACpFC,mBAAmB,EAAEA,CAAA,KAAcN,uBAAuB,CAACM,mBAAmB,CAAC,CAAC;EAChFC,qBAAqB,EAAGC,OAAe,IAAaR,uBAAuB,CAACO,qBAAqB,CAACC,OAAO,CAAC;EAC1GC,eAAe,EAAEA,CAAA,KAAcT,uBAAuB,CAACS,eAAe,CAAC,CAAC;EACxEC,gBAAgB,EAAEA,CAAA,KAAcV,uBAAuB,CAACU,gBAAgB,CAAC,CAAC;EAC1EC,qBAAqB,EAAEA,CAAA,KAAcX,uBAAuB,CAACW,qBAAqB,CAAC,CAAC;EACpFC,4BAA4B,EAAEA,CAAA,KAAcZ,uBAAuB,CAACY,4BAA4B,CAAC,CAAC;EAClGC,iBAAiB,EAAEA,CAAA,KAAcb,uBAAuB,CAACa,iBAAiB,CAAC,CAAC;EAC5EC,gBAAgB,EAAEA,CAAA,KAAcd,uBAAuB,CAACc,gBAAgB,CAAC,CAAC;EAC1EC,qBAAqB,EAAGC,SAAiB,IAAahB,uBAAuB,CAACe,qBAAqB,CAACC,SAAS,CAAC;EAC9GC,qBAAqB,EAAEA,CAAA,KAAcjB,uBAAuB,CAACiB,qBAAqB,CAAC,CAAC;EACpFC,mBAAmB,EAAEA,CAAA,KAAclB,uBAAuB,CAACkB,mBAAmB,CAAC,CAAC;EAChFC,gBAAgB,EAAEA,CAAA,KAAcnB,uBAAuB,CAACmB,gBAAgB,CAAC,CAAC;EAC1EC,wBAAwB,EAAEA,CAAA,KAAcpB,uBAAuB,CAACoB,wBAAwB,CAAC,CAAC;EAC1FC,+BAA+B,EAAEA,CAAA,KAAcrB,uBAAuB,CAACqB,+BAA+B,CAAC,CAAC;EACxGC,wBAAwB,EAAEA,CAAA,KAActB,uBAAuB,CAACsB,wBAAwB,CAAC;AAC3F,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["util/UIState.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioOutputSwitchView.d.ts","sourceRoot":"","sources":["../../../../../src/components/AudioOutputSwitchView.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4ElE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/BrandingView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkBhD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PlayingState } from '../util/PlayingState';
|
|
3
|
+
export interface ChannelProps {
|
|
4
|
+
channelName: string;
|
|
5
|
+
playingState: PlayingState;
|
|
6
|
+
muted: boolean;
|
|
7
|
+
isOnline: boolean;
|
|
8
|
+
aiSpeaker: boolean;
|
|
9
|
+
isDarkMode?: boolean;
|
|
10
|
+
onPress: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ChannelView: React.FC<ChannelProps>;
|
|
13
|
+
//# sourceMappingURL=ChannelView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIzD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAiD9C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ErrorState } from '../util/UIState';
|
|
3
|
+
export interface ErrorProps {
|
|
4
|
+
isDarkMode?: boolean;
|
|
5
|
+
state: ErrorState;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ErrorView: React.FC<ErrorProps>;
|
|
9
|
+
//# sourceMappingURL=ErrorView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,UAAU,CAAA;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA6B1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveVoiceView.d.ts","sourceRoot":"","sources":["../../../../../src/components/LiveVoiceView.tsx"],"names":[],"mappings":"AAkCA,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+EtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|