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,146 @@
|
|
|
1
|
+
import { PlayingState } from '../util/PlayingState';
|
|
2
|
+
export interface PlayButtonProps {
|
|
3
|
+
playingState: PlayingState;
|
|
4
|
+
isChannelOnline: boolean;
|
|
5
|
+
isDarkMode?: boolean;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PlayButtonView: React.FC<PlayButtonProps>;
|
|
9
|
+
type ButtonStyleType = 'paused' | 'playing' | 'offline';
|
|
10
|
+
export declare const getButtonStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
outlineColor: string;
|
|
14
|
+
paddingVertical: number;
|
|
15
|
+
paddingHorizontal: number;
|
|
16
|
+
borderRadius: number;
|
|
17
|
+
borderWidth: number;
|
|
18
|
+
outlineStyle: "solid";
|
|
19
|
+
outlineWidth: number;
|
|
20
|
+
} | {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
outlineColor: string;
|
|
24
|
+
paddingVertical: number;
|
|
25
|
+
paddingHorizontal: number;
|
|
26
|
+
borderRadius: number;
|
|
27
|
+
borderWidth: number;
|
|
28
|
+
outlineStyle: "solid";
|
|
29
|
+
outlineWidth: number;
|
|
30
|
+
} | {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
outlineColor: string;
|
|
34
|
+
paddingVertical: number;
|
|
35
|
+
paddingHorizontal: number;
|
|
36
|
+
borderRadius: number;
|
|
37
|
+
borderWidth: number;
|
|
38
|
+
outlineStyle: "solid";
|
|
39
|
+
outlineWidth: number;
|
|
40
|
+
} | {
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
borderColor: string;
|
|
43
|
+
outlineColor: string;
|
|
44
|
+
paddingVertical: number;
|
|
45
|
+
paddingHorizontal: number;
|
|
46
|
+
borderRadius: number;
|
|
47
|
+
borderWidth: number;
|
|
48
|
+
outlineStyle: "solid";
|
|
49
|
+
outlineWidth: number;
|
|
50
|
+
} | {
|
|
51
|
+
backgroundColor: string;
|
|
52
|
+
borderColor: string;
|
|
53
|
+
outlineColor: string;
|
|
54
|
+
paddingVertical: number;
|
|
55
|
+
paddingHorizontal: number;
|
|
56
|
+
borderRadius: number;
|
|
57
|
+
borderWidth: number;
|
|
58
|
+
outlineStyle: "solid";
|
|
59
|
+
outlineWidth: number;
|
|
60
|
+
} | {
|
|
61
|
+
backgroundColor: string;
|
|
62
|
+
borderColor: string;
|
|
63
|
+
outlineColor: string;
|
|
64
|
+
paddingVertical: number;
|
|
65
|
+
paddingHorizontal: number;
|
|
66
|
+
borderRadius: number;
|
|
67
|
+
borderWidth: number;
|
|
68
|
+
outlineStyle: "solid";
|
|
69
|
+
outlineWidth: number;
|
|
70
|
+
};
|
|
71
|
+
export declare const ButtonStyles: {
|
|
72
|
+
paused: {
|
|
73
|
+
light: {
|
|
74
|
+
backgroundColor: string;
|
|
75
|
+
borderColor: string;
|
|
76
|
+
outlineColor: string;
|
|
77
|
+
paddingVertical: number;
|
|
78
|
+
paddingHorizontal: number;
|
|
79
|
+
borderRadius: number;
|
|
80
|
+
borderWidth: number;
|
|
81
|
+
outlineStyle: "solid";
|
|
82
|
+
outlineWidth: number;
|
|
83
|
+
};
|
|
84
|
+
dark: {
|
|
85
|
+
backgroundColor: string;
|
|
86
|
+
borderColor: string;
|
|
87
|
+
outlineColor: string;
|
|
88
|
+
paddingVertical: number;
|
|
89
|
+
paddingHorizontal: number;
|
|
90
|
+
borderRadius: number;
|
|
91
|
+
borderWidth: number;
|
|
92
|
+
outlineStyle: "solid";
|
|
93
|
+
outlineWidth: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
playing: {
|
|
97
|
+
light: {
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
borderColor: string;
|
|
100
|
+
outlineColor: string;
|
|
101
|
+
paddingVertical: number;
|
|
102
|
+
paddingHorizontal: number;
|
|
103
|
+
borderRadius: number;
|
|
104
|
+
borderWidth: number;
|
|
105
|
+
outlineStyle: "solid";
|
|
106
|
+
outlineWidth: number;
|
|
107
|
+
};
|
|
108
|
+
dark: {
|
|
109
|
+
backgroundColor: string;
|
|
110
|
+
borderColor: string;
|
|
111
|
+
outlineColor: string;
|
|
112
|
+
paddingVertical: number;
|
|
113
|
+
paddingHorizontal: number;
|
|
114
|
+
borderRadius: number;
|
|
115
|
+
borderWidth: number;
|
|
116
|
+
outlineStyle: "solid";
|
|
117
|
+
outlineWidth: number;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
offline: {
|
|
121
|
+
light: {
|
|
122
|
+
backgroundColor: string;
|
|
123
|
+
borderColor: string;
|
|
124
|
+
outlineColor: string;
|
|
125
|
+
paddingVertical: number;
|
|
126
|
+
paddingHorizontal: number;
|
|
127
|
+
borderRadius: number;
|
|
128
|
+
borderWidth: number;
|
|
129
|
+
outlineStyle: "solid";
|
|
130
|
+
outlineWidth: number;
|
|
131
|
+
};
|
|
132
|
+
dark: {
|
|
133
|
+
backgroundColor: string;
|
|
134
|
+
borderColor: string;
|
|
135
|
+
outlineColor: string;
|
|
136
|
+
paddingVertical: number;
|
|
137
|
+
paddingHorizontal: number;
|
|
138
|
+
borderRadius: number;
|
|
139
|
+
borderWidth: number;
|
|
140
|
+
outlineStyle: "solid";
|
|
141
|
+
outlineWidth: number;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export default PlayButtonView;
|
|
146
|
+
//# sourceMappingURL=PlayButtonView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayButtonView.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlayButtonView.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiD7C,CAAC;AAEF,KAAK,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,eAAO,MAAM,cAAc,GACzB,MAAM,eAAe,EACrB,YAAY,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAC;AAqDF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CxB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Reconnecting } from '../util/UIState';
|
|
3
|
+
export interface ReconnectingProps {
|
|
4
|
+
isDarkMode?: boolean;
|
|
5
|
+
state: Reconnecting;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ReconnectingView: React.FC<ReconnectingProps>;
|
|
9
|
+
//# sourceMappingURL=ReconnectingView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReconnectingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ReconnectingView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,YAAY,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmExD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WarningView.d.ts","sourceRoot":"","sources":["../../../../../src/components/WarningView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAiB9C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AudioOutputSwitchView';
|
|
2
|
+
export * from './BrandingView';
|
|
3
|
+
export * from './ChannelView';
|
|
4
|
+
export * from './ErrorView';
|
|
5
|
+
export * from './LiveVoiceView';
|
|
6
|
+
export * from './PlayButtonView';
|
|
7
|
+
export * from './ReconnectingView';
|
|
8
|
+
export * from './WarningView';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.tsx"],"names":[],"mappings":"AAWA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { type UiState } from './util/UIState';
|
|
2
|
+
import { type ForegroundServiceConfig } from './util/ForegroundServiceConfig';
|
|
3
|
+
export type AvailableSubtitleConfigs = {
|
|
4
|
+
[key: string]: (string | null)[];
|
|
5
|
+
};
|
|
6
|
+
export type Claims = {
|
|
7
|
+
hideBranding: boolean;
|
|
8
|
+
customUiAllowed: boolean;
|
|
9
|
+
};
|
|
10
|
+
export * from './components';
|
|
11
|
+
export * from './util/Translations';
|
|
12
|
+
export * from './util/ForegroundServiceConfig';
|
|
13
|
+
export * from './util/UIState';
|
|
14
|
+
export * from './util/PlayingState';
|
|
15
|
+
/**
|
|
16
|
+
* Initialize the LiveVoice SDK.
|
|
17
|
+
*
|
|
18
|
+
* @param {ForegroundServiceConfig} [androidServiceConfig=serviceDisabled] - Pass the service config on Android.
|
|
19
|
+
*/
|
|
20
|
+
export declare function initialize(androidServiceConfig?: ForegroundServiceConfig): void;
|
|
21
|
+
/**
|
|
22
|
+
* Join an event.
|
|
23
|
+
*
|
|
24
|
+
* @abstract By joining an event you can display the event's channels.
|
|
25
|
+
*
|
|
26
|
+
* @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'.
|
|
27
|
+
* @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.
|
|
28
|
+
* @param {string} apiKey - Your API key. You can find your API key in the account page when logged in on the website.
|
|
29
|
+
*/
|
|
30
|
+
export declare function joinEvent(joinCode: string, password: string | null, apiKey: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* Leave the current event.
|
|
33
|
+
*
|
|
34
|
+
* @abstract You can explicitly leave an event to tear down any network connections the SDK uses when you no longer display any channels.
|
|
35
|
+
*/
|
|
36
|
+
export declare function leaveEvent(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Reconnect when a connection error occurred.
|
|
39
|
+
*
|
|
40
|
+
* @abstract Call this method to try to reconnect when a connection error has occurred.
|
|
41
|
+
*/
|
|
42
|
+
export declare function reconnect(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Get the claims for the current event.
|
|
45
|
+
*
|
|
46
|
+
* @abstract The claims determine the authorized features for an API key. Claims are available, once an event has been joined.
|
|
47
|
+
* @returns {Claims | null} The authorization claims, or `nil` if not yet joined
|
|
48
|
+
*/
|
|
49
|
+
export declare function getCurrentClaims(): Claims | null;
|
|
50
|
+
/**
|
|
51
|
+
* Get the current state of the LiveVoice SDK.
|
|
52
|
+
*
|
|
53
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onUiStateChanged}
|
|
54
|
+
` to be updated about the view state.
|
|
55
|
+
* @returns {UiState} The current view state
|
|
56
|
+
*/
|
|
57
|
+
export declare function getCurrentUiState(): UiState;
|
|
58
|
+
/**
|
|
59
|
+
* Get the current available subtitle configurations LiveVoice SDK.
|
|
60
|
+
*
|
|
61
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onAvailableSubtitleConfigsChanged}
|
|
62
|
+
` to be updated when the available subtitle configurations change.
|
|
63
|
+
* @returns {AvailableSubtitleConfigs} The current available subtitle configuration
|
|
64
|
+
*/
|
|
65
|
+
export declare function getCurrentSubtitleConfiguration(): AvailableSubtitleConfigs;
|
|
66
|
+
/**
|
|
67
|
+
* Get the current subtitle elemens LiveVoice SDK.
|
|
68
|
+
*
|
|
69
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onSubtitlesChanged}
|
|
70
|
+
` to be updated when the new subtitles are added.
|
|
71
|
+
* @returns {[String]} The current subtitles
|
|
72
|
+
*/
|
|
73
|
+
export declare function getCurrentSubtitles(): [String];
|
|
74
|
+
/**
|
|
75
|
+
* Get the current state of the audio output.
|
|
76
|
+
*
|
|
77
|
+
* @abstract You should only need to call this method to get an initial value. Use {@link onAudioOutputChanged}
|
|
78
|
+
` to be updated about the audio state.
|
|
79
|
+
* @returns {boolean} `true` for the speaker and `false` for the receiver.
|
|
80
|
+
*/
|
|
81
|
+
export declare function getCurrentAudioState(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Set the audio output.
|
|
84
|
+
* @param {boolean} value - Set to `true` to use the speaker, and `false` to use the receiver.
|
|
85
|
+
*/
|
|
86
|
+
export declare function setLiveVoiceUseSpeaker(value: boolean): void;
|
|
87
|
+
/**
|
|
88
|
+
* Start playing a channel.
|
|
89
|
+
* @abstract You can find the channel ID for a channel in the admin web-interface at the bottom when tapping *Edit Channel*.
|
|
90
|
+
* @param {number} [id] - The channel ID.
|
|
91
|
+
*/
|
|
92
|
+
export declare function startChannel(id: number): void;
|
|
93
|
+
/**
|
|
94
|
+
* Stop playing the currently playing channel.
|
|
95
|
+
*/
|
|
96
|
+
export declare function stopChannel(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Start receiving subtitles.
|
|
99
|
+
* @abstract The SDK can receive a single stream of subtitle fragments at a time.
|
|
100
|
+
* You can stop receiving subtitles using {@link stopSubtitles()}.
|
|
101
|
+
* Whenever you call this method, any previous subtitle streams are stopped automatically and you receive the subtitles for the requested channel and language instead.
|
|
102
|
+
*
|
|
103
|
+
* 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.
|
|
104
|
+
*
|
|
105
|
+
* @param {number | null} channelId - The channel to receive subtitles for. Set to `null` to always receive subtitles for the currently playing channel.
|
|
106
|
+
* @param {string | null} language - The language code for the translation, or `null` to request the transcript.
|
|
107
|
+
*/
|
|
108
|
+
export declare function startSubtitles(channelId: number | null, language: string | null): void;
|
|
109
|
+
/**
|
|
110
|
+
* Stop receiving subtitles.
|
|
111
|
+
*/
|
|
112
|
+
export declare function stopSubtitles(): void;
|
|
113
|
+
/**
|
|
114
|
+
* Handle changes of the audio output.
|
|
115
|
+
*/
|
|
116
|
+
export declare function onAudioOutputChanged(handler: (useSpeaker: boolean) => void): void;
|
|
117
|
+
/**
|
|
118
|
+
* Handle changes of the UI state.
|
|
119
|
+
*/
|
|
120
|
+
export declare function onUiStateChanged(handler: (arg: UiState) => void): void;
|
|
121
|
+
/**
|
|
122
|
+
* Handle changes of the available subtitles.
|
|
123
|
+
*/
|
|
124
|
+
export declare function onAvailableSubtitleConfigsChanged(handler: (arg: AvailableSubtitleConfigs) => void): void;
|
|
125
|
+
/**
|
|
126
|
+
* Handle changes of the available subtitles.
|
|
127
|
+
*/
|
|
128
|
+
export declare function onSubtitlesChanged(handler: (arg: [String]) => void): void;
|
|
129
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,uBAAuB,EAAmB,MAAM,gCAAgC,CAAC;AAE/F,MAAM,MAAM,wBAAwB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;CAAE,CAAA;AAC3E,MAAM,MAAM,MAAM,GAAG;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAA;CAAE,CAAA;AAExE,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AAEnC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,oBAAoB,GAAE,uBAAyC,GAAG,IAAI,CAgBhG;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAEzF;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,IAAI,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAIhD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,IAAI,wBAAwB,CAE1E;AAGD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,CAAC,MAAM,CAAC,CAE9C;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,QAG/E;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAID;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAIjF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAItE;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,wBAAwB,KAAK,IAAI,GAAG,IAAI,CAKxG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,IAAI,CAKzE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type TurboModule } from 'react-native';
|
|
2
|
+
import { type EventEmitter } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
export interface Spec extends TurboModule {
|
|
4
|
+
initialize(androidServiceConfig: string | null): void;
|
|
5
|
+
joinEvent(joinCode: string, password: string | null, apiKey: string): void;
|
|
6
|
+
leaveEvent(): void;
|
|
7
|
+
reconnect(): void;
|
|
8
|
+
getCurrentClaims(): string | null;
|
|
9
|
+
getCurrentUiState(): string;
|
|
10
|
+
getCurrentAudioState(): boolean;
|
|
11
|
+
getCurrentSubtitles(): string;
|
|
12
|
+
getCurrentAvailableSubtitleConfigs(): string;
|
|
13
|
+
setLiveVoiceUseSpeaker(value: boolean): void;
|
|
14
|
+
startChannel(id: number): void;
|
|
15
|
+
stopChannel(): void;
|
|
16
|
+
/**
|
|
17
|
+
* @param channelId: -1 denotes an unspecified channel (i.e: the currently playing one)
|
|
18
|
+
*/
|
|
19
|
+
startSubtitles(channelId: number, languageCode: string | null): void;
|
|
20
|
+
stopSubtitles(): void;
|
|
21
|
+
readonly onUiStateChanged: EventEmitter<string>;
|
|
22
|
+
readonly onAudioOutputChanged: EventEmitter<boolean>;
|
|
23
|
+
readonly onAvailableSubtitleConfigsChanged: EventEmitter<string>;
|
|
24
|
+
readonly onSubtitlesChanged: EventEmitter<string>;
|
|
25
|
+
channelStatusOffline(): string;
|
|
26
|
+
noChannels(): string;
|
|
27
|
+
isAiChannelStatusMessage(): string;
|
|
28
|
+
sdkNoMatchingChannels(): string;
|
|
29
|
+
errorScreenRetrying(): string;
|
|
30
|
+
errorScreenRetryingIn(seconds: number): string;
|
|
31
|
+
sdkErrorGeneric(): string;
|
|
32
|
+
sdkErrorInactive(): string;
|
|
33
|
+
sdkErrorInvalidApiKey(): string;
|
|
34
|
+
sdkErrorListenerLimitReached(): string;
|
|
35
|
+
sdkErrorNoNetwork(): string;
|
|
36
|
+
sdkErrorNotFound(): string;
|
|
37
|
+
sdkErrorRequestFailed(errorCode: number): string;
|
|
38
|
+
sdkErrorWrongPassword(): string;
|
|
39
|
+
streamingByTitle(): string;
|
|
40
|
+
errorRetryNowButton(): string;
|
|
41
|
+
accessibilityChannelPlay(): string;
|
|
42
|
+
accessibilityChannelStatusMuted(): string;
|
|
43
|
+
accessibilityChannelStop(): string;
|
|
44
|
+
}
|
|
45
|
+
declare const _default: Spec;
|
|
46
|
+
export default _default;
|
|
47
|
+
//# sourceMappingURL=NativeLiveVoiceSdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeLiveVoiceSdk.d.ts","sourceRoot":"","sources":["../../../../../src/specs/NativeLiveVoiceSdk.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,UAAU,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IACrD,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3E,UAAU,IAAI,IAAI,CAAC;IACnB,SAAS,IAAI,IAAI,CAAC;IAElB,gBAAgB,IAAI,MAAM,GAAC,IAAI,CAAC;IAGhC,iBAAiB,IAAI,MAAM,CAAC;IAC5B,oBAAoB,IAAI,OAAO,CAAC;IAChC,mBAAmB,IAAI,MAAM,CAAC;IAC9B,kCAAkC,IAAI,MAAM,CAAC;IAG7C,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IAE5C,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,IAAI,IAAI,CAAA;IAEnB;;OAEG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IACpE,aAAa,IAAI,IAAI,CAAA;IAIrB,QAAQ,CAAC,gBAAgB,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IAC/C,QAAQ,CAAC,oBAAoB,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,iCAAiC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IAChE,QAAQ,CAAC,kBAAkB,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IAIjD,oBAAoB,IAAI,MAAM,CAAA;IAC9B,UAAU,IAAI,MAAM,CAAA;IACpB,wBAAwB,IAAI,MAAM,CAAA;IAClC,qBAAqB,IAAI,MAAM,CAAA;IAE/B,mBAAmB,IAAI,MAAM,CAAA;IAC7B,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9C,eAAe,IAAI,MAAM,CAAA;IACzB,gBAAgB,IAAI,MAAM,CAAA;IAC1B,qBAAqB,IAAI,MAAM,CAAA;IAC/B,4BAA4B,IAAI,MAAM,CAAA;IACtC,iBAAiB,IAAI,MAAM,CAAA;IAC3B,gBAAgB,IAAI,MAAM,CAAA;IAC1B,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;IAChD,qBAAqB,IAAI,MAAM,CAAA;IAC/B,gBAAgB,IAAI,MAAM,CAAA;IAC1B,mBAAmB,IAAI,MAAM,CAAA;IAE7B,wBAAwB,IAAI,MAAM,CAAA;IAClC,+BAA+B,IAAI,MAAM,CAAA;IACzC,wBAAwB,IAAI,MAAM,CAAA;CACnC;;AAED,wBAAyE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const COLORS: {
|
|
2
|
+
primary: string;
|
|
3
|
+
primaryOutline: string;
|
|
4
|
+
bg: string;
|
|
5
|
+
bgDark: string;
|
|
6
|
+
cardBg: string;
|
|
7
|
+
cardBgDark: string;
|
|
8
|
+
white: string;
|
|
9
|
+
black: string;
|
|
10
|
+
gray: string;
|
|
11
|
+
'gray-300': string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["../../../../../src/util/Colors.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM;;;;;;;;;;;CAelB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ForegroundServiceConfig = Disabled | Enabled;
|
|
2
|
+
export interface Disabled {
|
|
3
|
+
type: 'Disabled';
|
|
4
|
+
}
|
|
5
|
+
export interface Enabled {
|
|
6
|
+
type: 'Enabled';
|
|
7
|
+
message: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const serviceDisabled: Disabled;
|
|
10
|
+
export declare const serviceEnabledWithDefaultMessage: Enabled;
|
|
11
|
+
export declare const serviceEnabledWithMessage: (message: string | null) => Enabled;
|
|
12
|
+
//# sourceMappingURL=ForegroundServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForegroundServiceConfig.d.ts","sourceRoot":"","sources":["../../../../../src/util/ForegroundServiceConfig.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAGD,eAAO,MAAM,eAAe,EAAE,QAA+B,CAAC;AAE9D,eAAO,MAAM,gCAAgC,EAAE,OAAyE,CAAC;AAEzH,eAAO,MAAM,yBAAyB,GAAI,SAAS,MAAM,GAAG,IAAI,KAAG,OAGjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayingState.d.ts","sourceRoot":"","sources":["../../../../../src/util/PlayingState.ts"],"names":[],"mappings":"AAWA,oBAAY,YAAY;IACpB,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACtB;AAED,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const Translations: {
|
|
2
|
+
channelStatusOffline: () => string;
|
|
3
|
+
noChannels: () => string;
|
|
4
|
+
isAiChannelStatusMessage: () => string;
|
|
5
|
+
sdkNoMatchingChannels: () => string;
|
|
6
|
+
errorScreenRetrying: () => string;
|
|
7
|
+
errorScreenRetryingIn: (seconds: number) => string;
|
|
8
|
+
sdkErrorGeneric: () => string;
|
|
9
|
+
sdkErrorInactive: () => string;
|
|
10
|
+
sdkErrorInvalidApiKey: () => string;
|
|
11
|
+
sdkErrorListenerLimitReached: () => string;
|
|
12
|
+
sdkErrorNoNetwork: () => string;
|
|
13
|
+
sdkErrorNotFound: () => string;
|
|
14
|
+
sdkErrorRequestFailed: (errorCode: number) => string;
|
|
15
|
+
sdkErrorWrongPassword: () => string;
|
|
16
|
+
errorRetryNowButton: () => string;
|
|
17
|
+
streamingByTitle: () => string;
|
|
18
|
+
accessibilityChannelPlay: () => string;
|
|
19
|
+
accessibilityChannelStatusMuted: () => string;
|
|
20
|
+
accessibilityChannelStop: () => string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Translations.d.ts","sourceRoot":"","sources":["../../../../../src/util/Translations.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,YAAY;gCACG,MAAM;sBAChB,MAAM;oCACQ,MAAM;iCACT,MAAM;+BACR,MAAM;qCACE,MAAM,KAAG,MAAM;2BAC3B,MAAM;4BACL,MAAM;iCACD,MAAM;wCACC,MAAM;6BACjB,MAAM;4BACP,MAAM;uCACO,MAAM,KAAG,MAAM;iCACvB,MAAM;+BACR,MAAM;4BACT,MAAM;oCACE,MAAM;2CACC,MAAM;oCACb,MAAM;CACrC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type PlayingState } from './PlayingState';
|
|
2
|
+
export type UiState = Ready | ErrorState | Loading | Reconnecting;
|
|
3
|
+
/**
|
|
4
|
+
* UI state top-level types
|
|
5
|
+
*/
|
|
6
|
+
export interface Ready {
|
|
7
|
+
type: 'ready';
|
|
8
|
+
channels: Channel[];
|
|
9
|
+
isHeadphonesOnly: boolean;
|
|
10
|
+
outputMode: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Loading {
|
|
13
|
+
type: 'loading';
|
|
14
|
+
}
|
|
15
|
+
export interface ErrorState {
|
|
16
|
+
type: 'error';
|
|
17
|
+
message: string;
|
|
18
|
+
canBeRetried: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface RetryInProgress {
|
|
21
|
+
type: 'inProgress';
|
|
22
|
+
}
|
|
23
|
+
export interface AwaitingRetry {
|
|
24
|
+
type: 'awaitingRetry';
|
|
25
|
+
atTimestamp: number;
|
|
26
|
+
}
|
|
27
|
+
export type RetryState = RetryInProgress | AwaitingRetry;
|
|
28
|
+
export interface Reconnecting {
|
|
29
|
+
type: 'reconnecting';
|
|
30
|
+
state: RetryState;
|
|
31
|
+
}
|
|
32
|
+
export type ErrorOrReconnecting = ErrorState | Reconnecting;
|
|
33
|
+
/**
|
|
34
|
+
* Other types
|
|
35
|
+
*/
|
|
36
|
+
export interface Channel {
|
|
37
|
+
type: 'channel';
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
isOnline: boolean;
|
|
41
|
+
isAudioMuted: boolean;
|
|
42
|
+
isAiSpeaker: boolean;
|
|
43
|
+
playingState: PlayingState;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=UIState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UIState.d.ts","sourceRoot":"","sources":["../../../../../src/util/UIState.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,aAAa,CAAC;AAEzD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -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"}
|