livevoice-sdk-react-native 1.0.3 → 2.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.
Files changed (231) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +119 -7
  3. package/android/build.gradle +52 -84
  4. package/android/gradle.properties +10 -6
  5. package/android/src/main/java/io/livevoice/react/LiveVoiceModule.kt +93 -126
  6. package/android/src/main/java/io/livevoice/react/LiveVoiceSdkReactNativePackage.kt +12 -13
  7. package/android/src/main/java/io/livevoice/react/__SDK.kt +16 -2
  8. package/ios/LiveVoiceSdkReactNative.h +5 -5
  9. package/ios/LiveVoiceSdkReactNative.mm +308 -0
  10. package/ios/__SDK.h +16 -2
  11. package/lib/module/components/AudioOutputSwitchView.js +13 -13
  12. package/lib/module/components/AudioOutputSwitchView.js.map +1 -1
  13. package/lib/module/components/BrandingView.js +13 -11
  14. package/lib/module/components/BrandingView.js.map +1 -1
  15. package/lib/module/components/ChannelView.js +27 -48
  16. package/lib/module/components/ChannelView.js.map +1 -1
  17. package/lib/module/components/ErrorView.js +12 -10
  18. package/lib/module/components/ErrorView.js.map +1 -1
  19. package/lib/module/components/LiveVoiceView.js +153 -61
  20. package/lib/module/components/LiveVoiceView.js.map +1 -1
  21. package/lib/module/components/PlayButtonView.js +255 -94
  22. package/lib/module/components/PlayButtonView.js.map +1 -1
  23. package/lib/module/components/ReconnectingView.js +16 -13
  24. package/lib/module/components/ReconnectingView.js.map +1 -1
  25. package/lib/module/components/WarningView.js +12 -10
  26. package/lib/module/components/WarningView.js.map +1 -1
  27. package/lib/module/components/index.js +12 -10
  28. package/lib/module/components/index.js.map +1 -1
  29. package/lib/module/icons/captions@1x.png +0 -0
  30. package/lib/module/icons/captions@2x.png +0 -0
  31. package/lib/module/icons/pause@1x.png +0 -0
  32. package/lib/module/icons/pause@2x.png +0 -0
  33. package/lib/module/icons/play@1x.png +0 -0
  34. package/lib/module/icons/play@2x.png +0 -0
  35. package/lib/module/index.js +14 -222
  36. package/lib/module/index.js.map +1 -1
  37. package/lib/module/sdk/LiveVoiceSdk.js +371 -0
  38. package/lib/module/sdk/LiveVoiceSdk.js.map +1 -0
  39. package/lib/module/sdk/LiveVoiceState.js +66 -0
  40. package/lib/module/sdk/LiveVoiceState.js.map +1 -0
  41. package/lib/module/specs/NativeLiveVoiceSdk.js +16 -10
  42. package/lib/module/specs/NativeLiveVoiceSdk.js.map +1 -1
  43. package/lib/module/util/Colors.js +14 -11
  44. package/lib/module/util/Colors.js.map +1 -1
  45. package/lib/module/util/ForegroundServiceConfig.js +21 -11
  46. package/lib/module/util/ForegroundServiceConfig.js.map +1 -1
  47. package/lib/module/util/PlayingState.js +12 -10
  48. package/lib/module/util/PlayingState.js.map +1 -1
  49. package/lib/module/util/Translations.js +12 -10
  50. package/lib/module/util/Translations.js.map +1 -1
  51. package/lib/module/util/logger.js +76 -0
  52. package/lib/module/util/logger.js.map +1 -0
  53. package/lib/typescript/package.json +1 -0
  54. package/lib/typescript/src/components/AudioOutputSwitchView.d.ts.map +1 -0
  55. package/lib/typescript/src/components/BrandingView.d.ts.map +1 -0
  56. package/lib/typescript/{commonjs/src → src}/components/ChannelView.d.ts +4 -2
  57. package/lib/typescript/src/components/ChannelView.d.ts.map +1 -0
  58. package/lib/typescript/src/components/ErrorView.d.ts.map +1 -0
  59. package/lib/typescript/src/components/LiveVoiceView.d.ts +28 -0
  60. package/lib/typescript/src/components/LiveVoiceView.d.ts.map +1 -0
  61. package/lib/typescript/src/components/PlayButtonView.d.ts +341 -0
  62. package/lib/typescript/src/components/PlayButtonView.d.ts.map +1 -0
  63. package/lib/typescript/src/components/ReconnectingView.d.ts.map +1 -0
  64. package/lib/typescript/src/components/WarningView.d.ts.map +1 -0
  65. package/lib/typescript/src/components/index.d.ts.map +1 -0
  66. package/lib/typescript/src/index.d.ts +7 -0
  67. package/lib/typescript/src/index.d.ts.map +1 -0
  68. package/lib/typescript/src/sdk/LiveVoiceSdk.d.ts +210 -0
  69. package/lib/typescript/src/sdk/LiveVoiceSdk.d.ts.map +1 -0
  70. package/lib/typescript/src/sdk/LiveVoiceState.d.ts +12 -0
  71. package/lib/typescript/src/sdk/LiveVoiceState.d.ts.map +1 -0
  72. package/lib/typescript/{module/src → src}/specs/NativeLiveVoiceSdk.d.ts +6 -3
  73. package/lib/typescript/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -0
  74. package/lib/typescript/{commonjs/src → src}/util/Colors.d.ts +2 -1
  75. package/lib/typescript/src/util/Colors.d.ts.map +1 -0
  76. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts +19 -0
  77. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts.map +1 -0
  78. package/lib/typescript/src/util/PlayingState.d.ts.map +1 -0
  79. package/lib/typescript/src/util/Translations.d.ts.map +1 -0
  80. package/lib/typescript/src/util/UIState.d.ts +86 -0
  81. package/lib/typescript/src/util/UIState.d.ts.map +1 -0
  82. package/lib/typescript/src/util/logger.d.ts +23 -0
  83. package/lib/typescript/src/util/logger.d.ts.map +1 -0
  84. package/livevoice-sdk-react-native.podspec +20 -41
  85. package/package.json +41 -122
  86. package/src/components/AudioOutputSwitchView.tsx +13 -13
  87. package/src/components/BrandingView.tsx +13 -11
  88. package/src/components/ChannelView.tsx +32 -36
  89. package/src/components/ErrorView.tsx +12 -10
  90. package/src/components/LiveVoiceView.tsx +231 -89
  91. package/src/components/PlayButtonView.tsx +293 -98
  92. package/src/components/ReconnectingView.tsx +20 -13
  93. package/src/components/WarningView.tsx +12 -10
  94. package/src/components/index.tsx +12 -10
  95. package/src/icons/captions@1x.png +0 -0
  96. package/src/icons/captions@2x.png +0 -0
  97. package/src/icons/pause@1x.png +0 -0
  98. package/src/icons/pause@2x.png +0 -0
  99. package/src/icons/play@1x.png +0 -0
  100. package/src/icons/play@2x.png +0 -0
  101. package/src/index.tsx +19 -236
  102. package/src/sdk/LiveVoiceSdk.ts +408 -0
  103. package/src/sdk/LiveVoiceState.ts +89 -0
  104. package/src/specs/NativeLiveVoiceSdk.ts +24 -16
  105. package/src/util/Colors.ts +15 -11
  106. package/src/util/ForegroundServiceConfig.tsx +21 -11
  107. package/src/util/PlayingState.ts +12 -10
  108. package/src/util/Translations.ts +12 -10
  109. package/src/util/UIState.ts +54 -13
  110. package/src/util/logger.ts +92 -0
  111. package/android/generated/java/io/livevoice/react/NativeLiveVoiceSdkSpec.java +0 -186
  112. package/android/generated/jni/CMakeLists.txt +0 -36
  113. package/android/generated/jni/RNLiveVoiceSpec-generated.cpp +0 -235
  114. package/android/generated/jni/RNLiveVoiceSpec.h +0 -31
  115. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI-generated.cpp +0 -245
  116. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +0 -398
  117. package/android/src/main/AndroidManifest.xml +0 -3
  118. package/android/src/main/java/io/livevoice/react/Mappings.kt +0 -54
  119. package/android/src/main/java/io/livevoice/react/NativeModels.kt +0 -77
  120. package/ios/LivevoiceSdkReactNative.mm +0 -250
  121. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec-generated.mm +0 -292
  122. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec.h +0 -101
  123. package/ios/generated/RNLiveVoiceSpecJSI-generated.cpp +0 -245
  124. package/ios/generated/RNLiveVoiceSpecJSI.h +0 -398
  125. package/lib/commonjs/components/AudioOutputSwitchView.js +0 -144
  126. package/lib/commonjs/components/AudioOutputSwitchView.js.map +0 -1
  127. package/lib/commonjs/components/BrandingView.js +0 -78
  128. package/lib/commonjs/components/BrandingView.js.map +0 -1
  129. package/lib/commonjs/components/ChannelView.js +0 -117
  130. package/lib/commonjs/components/ChannelView.js.map +0 -1
  131. package/lib/commonjs/components/ErrorView.js +0 -88
  132. package/lib/commonjs/components/ErrorView.js.map +0 -1
  133. package/lib/commonjs/components/LiveVoiceView.js +0 -107
  134. package/lib/commonjs/components/LiveVoiceView.js.map +0 -1
  135. package/lib/commonjs/components/PlayButtonView.js +0 -161
  136. package/lib/commonjs/components/PlayButtonView.js.map +0 -1
  137. package/lib/commonjs/components/ReconnectingView.js +0 -109
  138. package/lib/commonjs/components/ReconnectingView.js.map +0 -1
  139. package/lib/commonjs/components/WarningView.js +0 -58
  140. package/lib/commonjs/components/WarningView.js.map +0 -1
  141. package/lib/commonjs/components/index.js +0 -94
  142. package/lib/commonjs/components/index.js.map +0 -1
  143. package/lib/commonjs/icons/branding.png +0 -0
  144. package/lib/commonjs/icons/cpu.png +0 -0
  145. package/lib/commonjs/icons/headphones.png +0 -0
  146. package/lib/commonjs/icons/mic.png +0 -0
  147. package/lib/commonjs/icons/pause.png +0 -0
  148. package/lib/commonjs/icons/play.png +0 -0
  149. package/lib/commonjs/icons/speaker.png +0 -0
  150. package/lib/commonjs/index.js +0 -327
  151. package/lib/commonjs/index.js.map +0 -1
  152. package/lib/commonjs/specs/NativeLiveVoiceSdk.js +0 -19
  153. package/lib/commonjs/specs/NativeLiveVoiceSdk.js.map +0 -1
  154. package/lib/commonjs/util/Colors.js +0 -30
  155. package/lib/commonjs/util/Colors.js.map +0 -1
  156. package/lib/commonjs/util/ForegroundServiceConfig.js +0 -33
  157. package/lib/commonjs/util/ForegroundServiceConfig.js.map +0 -1
  158. package/lib/commonjs/util/PlayingState.js +0 -24
  159. package/lib/commonjs/util/PlayingState.js.map +0 -1
  160. package/lib/commonjs/util/Translations.js +0 -47
  161. package/lib/commonjs/util/Translations.js.map +0 -1
  162. package/lib/commonjs/util/UIState.js +0 -6
  163. package/lib/commonjs/util/UIState.js.map +0 -1
  164. package/lib/module/icons/pause.png +0 -0
  165. package/lib/module/icons/play.png +0 -0
  166. package/lib/typescript/commonjs/package.json +0 -1
  167. package/lib/typescript/commonjs/src/components/AudioOutputSwitchView.d.ts.map +0 -1
  168. package/lib/typescript/commonjs/src/components/BrandingView.d.ts.map +0 -1
  169. package/lib/typescript/commonjs/src/components/ChannelView.d.ts.map +0 -1
  170. package/lib/typescript/commonjs/src/components/ErrorView.d.ts.map +0 -1
  171. package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts +0 -6
  172. package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts.map +0 -1
  173. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts +0 -146
  174. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts.map +0 -1
  175. package/lib/typescript/commonjs/src/components/ReconnectingView.d.ts.map +0 -1
  176. package/lib/typescript/commonjs/src/components/WarningView.d.ts.map +0 -1
  177. package/lib/typescript/commonjs/src/components/index.d.ts.map +0 -1
  178. package/lib/typescript/commonjs/src/index.d.ts +0 -149
  179. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  180. package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts +0 -48
  181. package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts.map +0 -1
  182. package/lib/typescript/commonjs/src/util/Colors.d.ts.map +0 -1
  183. package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts +0 -12
  184. package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts.map +0 -1
  185. package/lib/typescript/commonjs/src/util/PlayingState.d.ts.map +0 -1
  186. package/lib/typescript/commonjs/src/util/Translations.d.ts.map +0 -1
  187. package/lib/typescript/commonjs/src/util/UIState.d.ts +0 -45
  188. package/lib/typescript/commonjs/src/util/UIState.d.ts.map +0 -1
  189. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts +0 -6
  190. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts.map +0 -1
  191. package/lib/typescript/module/src/components/BrandingView.d.ts +0 -6
  192. package/lib/typescript/module/src/components/BrandingView.d.ts.map +0 -1
  193. package/lib/typescript/module/src/components/ChannelView.d.ts +0 -13
  194. package/lib/typescript/module/src/components/ChannelView.d.ts.map +0 -1
  195. package/lib/typescript/module/src/components/ErrorView.d.ts +0 -9
  196. package/lib/typescript/module/src/components/ErrorView.d.ts.map +0 -1
  197. package/lib/typescript/module/src/components/LiveVoiceView.d.ts +0 -6
  198. package/lib/typescript/module/src/components/LiveVoiceView.d.ts.map +0 -1
  199. package/lib/typescript/module/src/components/PlayButtonView.d.ts +0 -146
  200. package/lib/typescript/module/src/components/PlayButtonView.d.ts.map +0 -1
  201. package/lib/typescript/module/src/components/ReconnectingView.d.ts +0 -9
  202. package/lib/typescript/module/src/components/ReconnectingView.d.ts.map +0 -1
  203. package/lib/typescript/module/src/components/WarningView.d.ts +0 -8
  204. package/lib/typescript/module/src/components/WarningView.d.ts.map +0 -1
  205. package/lib/typescript/module/src/components/index.d.ts +0 -9
  206. package/lib/typescript/module/src/components/index.d.ts.map +0 -1
  207. package/lib/typescript/module/src/index.d.ts +0 -149
  208. package/lib/typescript/module/src/index.d.ts.map +0 -1
  209. package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts.map +0 -1
  210. package/lib/typescript/module/src/util/Colors.d.ts +0 -13
  211. package/lib/typescript/module/src/util/Colors.d.ts.map +0 -1
  212. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts +0 -12
  213. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts.map +0 -1
  214. package/lib/typescript/module/src/util/PlayingState.d.ts +0 -7
  215. package/lib/typescript/module/src/util/PlayingState.d.ts.map +0 -1
  216. package/lib/typescript/module/src/util/Translations.d.ts +0 -22
  217. package/lib/typescript/module/src/util/Translations.d.ts.map +0 -1
  218. package/lib/typescript/module/src/util/UIState.d.ts +0 -45
  219. package/lib/typescript/module/src/util/UIState.d.ts.map +0 -1
  220. package/react-native.config.js +0 -12
  221. package/src/icons/pause.png +0 -0
  222. package/src/icons/play.png +0 -0
  223. /package/lib/{typescript/module → module}/package.json +0 -0
  224. /package/lib/typescript/{commonjs/src → src}/components/AudioOutputSwitchView.d.ts +0 -0
  225. /package/lib/typescript/{commonjs/src → src}/components/BrandingView.d.ts +0 -0
  226. /package/lib/typescript/{commonjs/src → src}/components/ErrorView.d.ts +0 -0
  227. /package/lib/typescript/{commonjs/src → src}/components/ReconnectingView.d.ts +0 -0
  228. /package/lib/typescript/{commonjs/src → src}/components/WarningView.d.ts +0 -0
  229. /package/lib/typescript/{commonjs/src → src}/components/index.d.ts +0 -0
  230. /package/lib/typescript/{commonjs/src → src}/util/PlayingState.d.ts +0 -0
  231. /package/lib/typescript/{commonjs/src → src}/util/Translations.d.ts +0 -0
@@ -0,0 +1,341 @@
1
+ import { PlayingState } from "../util/PlayingState";
2
+ export interface PlayButtonProps {
3
+ playingState: PlayingState;
4
+ isChannelOnline: boolean;
5
+ hasAudio?: boolean;
6
+ hasSubtitles?: boolean;
7
+ isDarkMode?: boolean;
8
+ onAudioPress?: () => void;
9
+ onSubtitlesPress?: () => void;
10
+ onPress?: () => void;
11
+ }
12
+ declare const PlayButtonView: React.FC<PlayButtonProps>;
13
+ type ButtonStyleType = "paused" | "playing" | "offline";
14
+ export declare const getButtonStyle: (type: ButtonStyleType, isDarkMode: boolean, isSplit?: boolean) => {
15
+ backgroundColor: string;
16
+ borderColor: string;
17
+ width: number;
18
+ height: number;
19
+ borderRadius: number;
20
+ borderWidth: number;
21
+ alignItems: "center";
22
+ justifyContent: "center";
23
+ };
24
+ export declare const getSplitButtonContainerStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
25
+ backgroundColor: string;
26
+ borderColor: string;
27
+ width: number;
28
+ height: number;
29
+ borderRadius: number;
30
+ borderWidth: number;
31
+ flexDirection: "row";
32
+ alignItems: "center";
33
+ justifyContent: "center";
34
+ overflow: "hidden";
35
+ } | {
36
+ backgroundColor: string;
37
+ borderColor: string;
38
+ width: number;
39
+ height: number;
40
+ borderRadius: number;
41
+ borderWidth: number;
42
+ flexDirection: "row";
43
+ alignItems: "center";
44
+ justifyContent: "center";
45
+ overflow: "hidden";
46
+ } | {
47
+ backgroundColor: string;
48
+ borderColor: string;
49
+ width: number;
50
+ height: number;
51
+ borderRadius: number;
52
+ borderWidth: number;
53
+ flexDirection: "row";
54
+ alignItems: "center";
55
+ justifyContent: "center";
56
+ overflow: "hidden";
57
+ } | {
58
+ backgroundColor: string;
59
+ borderColor: string;
60
+ width: number;
61
+ height: number;
62
+ borderRadius: number;
63
+ borderWidth: number;
64
+ flexDirection: "row";
65
+ alignItems: "center";
66
+ justifyContent: "center";
67
+ overflow: "hidden";
68
+ } | {
69
+ backgroundColor: string;
70
+ borderColor: string;
71
+ width: number;
72
+ height: number;
73
+ borderRadius: number;
74
+ borderWidth: number;
75
+ flexDirection: "row";
76
+ alignItems: "center";
77
+ justifyContent: "center";
78
+ overflow: "hidden";
79
+ } | {
80
+ backgroundColor: string;
81
+ borderColor: string;
82
+ width: number;
83
+ height: number;
84
+ borderRadius: number;
85
+ borderWidth: number;
86
+ flexDirection: "row";
87
+ alignItems: "center";
88
+ justifyContent: "center";
89
+ overflow: "hidden";
90
+ };
91
+ export declare const getSplitButtonAudioStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
92
+ flex: number;
93
+ height: number;
94
+ alignItems: "center";
95
+ justifyContent: "center";
96
+ };
97
+ export declare const getSplitButtonSubtitlesStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
98
+ flex: number;
99
+ height: number;
100
+ alignItems: "center";
101
+ justifyContent: "center";
102
+ };
103
+ export declare const getDividerStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
104
+ width: number;
105
+ height: number;
106
+ backgroundColor: string;
107
+ };
108
+ export declare const ButtonStyles: {
109
+ paused: {
110
+ light: {
111
+ backgroundColor: string;
112
+ borderColor: string;
113
+ width: number;
114
+ height: number;
115
+ borderRadius: number;
116
+ borderWidth: number;
117
+ alignItems: "center";
118
+ justifyContent: "center";
119
+ };
120
+ dark: {
121
+ backgroundColor: string;
122
+ borderColor: string;
123
+ width: number;
124
+ height: number;
125
+ borderRadius: number;
126
+ borderWidth: number;
127
+ alignItems: "center";
128
+ justifyContent: "center";
129
+ };
130
+ };
131
+ playing: {
132
+ light: {
133
+ backgroundColor: string;
134
+ borderColor: string;
135
+ width: number;
136
+ height: number;
137
+ borderRadius: number;
138
+ borderWidth: number;
139
+ alignItems: "center";
140
+ justifyContent: "center";
141
+ };
142
+ dark: {
143
+ backgroundColor: string;
144
+ borderColor: string;
145
+ width: number;
146
+ height: number;
147
+ borderRadius: number;
148
+ borderWidth: number;
149
+ alignItems: "center";
150
+ justifyContent: "center";
151
+ };
152
+ };
153
+ offline: {
154
+ light: {
155
+ backgroundColor: string;
156
+ borderColor: string;
157
+ width: number;
158
+ height: number;
159
+ borderRadius: number;
160
+ borderWidth: number;
161
+ alignItems: "center";
162
+ justifyContent: "center";
163
+ };
164
+ dark: {
165
+ backgroundColor: string;
166
+ borderColor: string;
167
+ width: number;
168
+ height: number;
169
+ borderRadius: number;
170
+ borderWidth: number;
171
+ alignItems: "center";
172
+ justifyContent: "center";
173
+ };
174
+ };
175
+ };
176
+ export declare const SplitButtonStyles: {
177
+ paused: {
178
+ light: {
179
+ container: {
180
+ backgroundColor: string;
181
+ borderColor: string;
182
+ width: number;
183
+ height: number;
184
+ borderRadius: number;
185
+ borderWidth: number;
186
+ flexDirection: "row";
187
+ alignItems: "center";
188
+ justifyContent: "center";
189
+ overflow: "hidden";
190
+ };
191
+ audio: {
192
+ flex: number;
193
+ height: number;
194
+ alignItems: "center";
195
+ justifyContent: "center";
196
+ };
197
+ subtitles: {
198
+ flex: number;
199
+ height: number;
200
+ alignItems: "center";
201
+ justifyContent: "center";
202
+ };
203
+ };
204
+ dark: {
205
+ container: {
206
+ backgroundColor: string;
207
+ borderColor: string;
208
+ width: number;
209
+ height: number;
210
+ borderRadius: number;
211
+ borderWidth: number;
212
+ flexDirection: "row";
213
+ alignItems: "center";
214
+ justifyContent: "center";
215
+ overflow: "hidden";
216
+ };
217
+ audio: {
218
+ flex: number;
219
+ height: number;
220
+ alignItems: "center";
221
+ justifyContent: "center";
222
+ };
223
+ subtitles: {
224
+ flex: number;
225
+ height: number;
226
+ alignItems: "center";
227
+ justifyContent: "center";
228
+ };
229
+ };
230
+ };
231
+ playing: {
232
+ light: {
233
+ container: {
234
+ backgroundColor: string;
235
+ borderColor: string;
236
+ width: number;
237
+ height: number;
238
+ borderRadius: number;
239
+ borderWidth: number;
240
+ flexDirection: "row";
241
+ alignItems: "center";
242
+ justifyContent: "center";
243
+ overflow: "hidden";
244
+ };
245
+ audio: {
246
+ flex: number;
247
+ height: number;
248
+ alignItems: "center";
249
+ justifyContent: "center";
250
+ };
251
+ subtitles: {
252
+ flex: number;
253
+ height: number;
254
+ alignItems: "center";
255
+ justifyContent: "center";
256
+ };
257
+ };
258
+ dark: {
259
+ container: {
260
+ backgroundColor: string;
261
+ borderColor: string;
262
+ width: number;
263
+ height: number;
264
+ borderRadius: number;
265
+ borderWidth: number;
266
+ flexDirection: "row";
267
+ alignItems: "center";
268
+ justifyContent: "center";
269
+ overflow: "hidden";
270
+ };
271
+ audio: {
272
+ flex: number;
273
+ height: number;
274
+ alignItems: "center";
275
+ justifyContent: "center";
276
+ };
277
+ subtitles: {
278
+ flex: number;
279
+ height: number;
280
+ alignItems: "center";
281
+ justifyContent: "center";
282
+ };
283
+ };
284
+ };
285
+ offline: {
286
+ light: {
287
+ container: {
288
+ backgroundColor: string;
289
+ borderColor: string;
290
+ width: number;
291
+ height: number;
292
+ borderRadius: number;
293
+ borderWidth: number;
294
+ flexDirection: "row";
295
+ alignItems: "center";
296
+ justifyContent: "center";
297
+ overflow: "hidden";
298
+ };
299
+ audio: {
300
+ flex: number;
301
+ height: number;
302
+ alignItems: "center";
303
+ justifyContent: "center";
304
+ };
305
+ subtitles: {
306
+ flex: number;
307
+ height: number;
308
+ alignItems: "center";
309
+ justifyContent: "center";
310
+ };
311
+ };
312
+ dark: {
313
+ container: {
314
+ backgroundColor: string;
315
+ borderColor: string;
316
+ width: number;
317
+ height: number;
318
+ borderRadius: number;
319
+ borderWidth: number;
320
+ flexDirection: "row";
321
+ alignItems: "center";
322
+ justifyContent: "center";
323
+ overflow: "hidden";
324
+ };
325
+ audio: {
326
+ flex: number;
327
+ height: number;
328
+ alignItems: "center";
329
+ justifyContent: "center";
330
+ };
331
+ subtitles: {
332
+ flex: number;
333
+ height: number;
334
+ alignItems: "center";
335
+ justifyContent: "center";
336
+ };
337
+ };
338
+ };
339
+ };
340
+ export default PlayButtonView;
341
+ //# sourceMappingURL=PlayButtonView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayButtonView.d.ts","sourceRoot":"","sources":["../../../../src/components/PlayButtonView.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiI7C,CAAC;AAEF,KAAK,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,eAAO,MAAM,cAAc,GACzB,MAAM,eAAe,EACrB,YAAY,OAAO,EACnB,UAAS,OAAe;;;;;;;;;CAMzB,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,MAAM,eAAe,EACrB,YAAY,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,MAAM,eAAe,EACrB,YAAY,OAAO;;;;;CAGpB,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,MAAM,eAAe,EACrB,YAAY,OAAO;;;;;CAGpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,eAAe,EAAE,YAAY,OAAO;;;;CAkBzE,CAAC;AAoDF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D7B,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReconnectingView.d.ts","sourceRoot":"","sources":["../../../../src/components/ReconnectingView.tsx"],"names":[],"mappings":"AAaA,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,CAiExD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningView.d.ts","sourceRoot":"","sources":["../../../../src/components/WarningView.tsx"],"names":[],"mappings":"AAaA,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 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAaA,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,7 @@
1
+ export * from './sdk/LiveVoiceSdk';
2
+ export * from './components';
3
+ export * from './util/Translations';
4
+ export * from './util/ForegroundServiceConfig';
5
+ export * from './util/UIState';
6
+ export * from './util/PlayingState';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAaA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,210 @@
1
+ import { type UiState, type AvailableSubtitle, type SubtitleState } from '../util/UIState';
2
+ import { type ForegroundServiceConfig } from '../util/ForegroundServiceConfig';
3
+ import { type Claims } from './LiveVoiceState';
4
+ export type { Claims } from './LiveVoiceState';
5
+ /**
6
+ * The authorization features for the joined event. Both flags are `false` until an event is joined
7
+ * and ready.
8
+ */
9
+ export type Features = {
10
+ customUiAllowed: boolean;
11
+ hideBranding: boolean;
12
+ };
13
+ /**
14
+ * Initialize the LiveVoice SDK.
15
+ *
16
+ * @param {ForegroundServiceConfig} [androidServiceConfig=serviceDisabled] - Pass the service config on Android.
17
+ */
18
+ export declare function initialize(androidServiceConfig?: ForegroundServiceConfig): void;
19
+ /**
20
+ * Join an event.
21
+ *
22
+ * @abstract By joining an event you can display the event's channels.
23
+ *
24
+ * @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'.
25
+ * @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.
26
+ * @param {string} apiKey - Your API key. You can find your API key in the account page when logged in on the website.
27
+ */
28
+ export declare function joinEvent(joinCode: string, password: string | null, apiKey: string): void;
29
+ /**
30
+ * Leave the current event.
31
+ *
32
+ * @abstract You can explicitly leave an event to tear down any network connections the SDK uses when you no longer display any channels.
33
+ */
34
+ export declare function leaveEvent(): void;
35
+ /**
36
+ * Reconnect when a connection error occurred.
37
+ *
38
+ * @abstract Call this method to try to reconnect when a connection error has occurred.
39
+ */
40
+ export declare function reconnect(): void;
41
+ /**
42
+ * Get the claims for the current event.
43
+ *
44
+ * @deprecated Use {@link getCurrentFeatures} / {@link onFeaturesChanged} to read the authorization
45
+ * features, or build your UI with the `renderChannel` prop on `LiveVoiceView` (which applies the
46
+ * customization gating for you). Scheduled for removal in a future major version.
47
+ * @returns {Claims | null} The authorization claims, or `null` if not yet joined
48
+ */
49
+ export declare function getCurrentClaims(): Claims | null;
50
+ /**
51
+ * Get the authorization features for the joined event.
52
+ *
53
+ * @abstract Reflects what the joined API key permits. Both flags are `false` until an event is
54
+ * joined and ready. You should only need this for an initial value; use {@link onFeaturesChanged}
55
+ * to observe changes.
56
+ * @returns {Features} The current features (`customUiAllowed` / `hideBranding`).
57
+ */
58
+ export declare function getCurrentFeatures(): Features;
59
+ /**
60
+ * Get the current state of the LiveVoice SDK.
61
+ *
62
+ * @deprecated Build your UI with the `renderChannel` prop on `LiveVoiceView` instead of reading the
63
+ * raw UI state. Scheduled for removal in a future major version.
64
+ * @returns {UiState} The current view state
65
+ */
66
+ export declare function getCurrentUiState(): UiState;
67
+ /**
68
+ * Get the current available subtitle configurations.
69
+ *
70
+ * @abstract Returns `null` until the SDK has joined an event and reached the `ready` state, so you
71
+ * can tell "not loaded yet" (`null`) apart from "loaded, but none available" (`[]`). You should
72
+ * only need this for an initial value; use {@link onAvailableSubtitleConfigsChanged} to observe
73
+ * changes.
74
+ * @returns {AvailableSubtitle[] | null} The available subtitles, or `null` if not yet loaded.
75
+ */
76
+ export declare function getCurrentSubtitleConfiguration(): AvailableSubtitle[] | null;
77
+ /**
78
+ * Get the current subtitle fragments.
79
+ *
80
+ * @deprecated Use {@link getCurrentSubtitleState}, which returns the full subtitle state (type +
81
+ * channel + fragments). Scheduled for removal in a future major version.
82
+ * @returns {string[]} The current subtitle fragments
83
+ */
84
+ export declare function getCurrentSubtitles(): string[];
85
+ /**
86
+ * Get the current subtitle state.
87
+ *
88
+ * @abstract Unlike {@link getCurrentSubtitles} (fragments only), this returns the full state: the
89
+ * {@link SubtitleState.type} (`disabled`/`automatic`/`specific`), the channel for `specific`, and
90
+ * the fragments. You should only need to call this for an initial value; use
91
+ * {@link onSubtitleStateChanged} to observe changes.
92
+ * @returns {SubtitleState} The current subtitle state
93
+ */
94
+ export declare function getCurrentSubtitleState(): SubtitleState;
95
+ /**
96
+ * Get the current state of the audio output.
97
+ *
98
+ * @abstract You should only need to call this method to get an initial value. Use {@link onAudioOutputChanged}
99
+ ` to be updated about the audio state.
100
+ * @returns {boolean} `true` for the speaker and `false` for the receiver.
101
+ */
102
+ export declare function getCurrentAudioState(): boolean;
103
+ /**
104
+ * Set the audio output.
105
+ * @param {boolean} value - Set to `true` to use the speaker, and `false` to use the receiver.
106
+ */
107
+ export declare function setLiveVoiceUseSpeaker(value: boolean): void;
108
+ /**
109
+ * Start playing a channel.
110
+ * @abstract You can find the channel ID for a channel in the admin web-interface at the bottom when tapping *Edit Channel*.
111
+ * @deprecated Manual audio playback control should only be driven through `LiveVoiceView` channel
112
+ * cells. Use the `onAudioPress` helper passed to `renderChannel` instead. Scheduled for removal in
113
+ * a future major version.
114
+ * @param {number} [id] - The channel ID.
115
+ */
116
+ export declare function startChannel(id: number): void;
117
+ /**
118
+ * Stop playing the currently playing channel.
119
+ *
120
+ * @deprecated Manual audio playback control should only be driven through `LiveVoiceView` channel
121
+ * cells. Use the `onAudioPress` helper passed to `renderChannel` instead. Scheduled for removal in
122
+ * a future major version.
123
+ */
124
+ export declare function stopChannel(): void;
125
+ /**
126
+ * Start receiving subtitles.
127
+ * @abstract The SDK can receive a single stream of subtitle fragments at a time.
128
+ * You can stop receiving subtitles using {@link stopSubtitles()}.
129
+ * Whenever you call this method, any previous subtitle streams are stopped automatically and you receive the subtitles for the requested channel and language instead.
130
+ *
131
+ * 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.
132
+ *
133
+ * @param {number | null} channelId - The channel to receive subtitles for. Set to `null` to always receive subtitles for the currently playing channel.
134
+ */
135
+ export declare function startSubtitles(channelId: number | null): void;
136
+ /**
137
+ * Stop receiving subtitles.
138
+ */
139
+ export declare function stopSubtitles(): void;
140
+ /**
141
+ * Handle changes of the audio output.
142
+ *
143
+ * @returns {object} - An object with a `remove` method to unsubscribe from the event.
144
+ */
145
+ export declare function onAudioOutputChanged(handler: (useSpeaker: boolean) => void): {
146
+ remove: () => void;
147
+ };
148
+ /**
149
+ * Handle changes of the UI state.
150
+ *
151
+ * @deprecated Build your UI with the `renderChannel` prop on `LiveVoiceView` instead of observing
152
+ * the raw UI state. Scheduled for removal in a future major version.
153
+ * @returns {object} - An object with a `remove` method to unsubscribe from the event.
154
+ */
155
+ export declare function onUiStateChanged(handler: (arg: UiState) => void): {
156
+ remove: () => void;
157
+ };
158
+ /**
159
+ * Handle changes of the authorization features.
160
+ *
161
+ * @abstract Re-emits whenever the joined session changes (join/leave/ready), so the
162
+ * `customUiAllowed` / `hideBranding` flags stay in sync with the current API key. Both are `false`
163
+ * while not joined.
164
+ * @returns {object} - An object with a `remove` method to unsubscribe from the event.
165
+ */
166
+ export declare function onFeaturesChanged(handler: (features: Features) => void): {
167
+ remove: () => void;
168
+ };
169
+ /**
170
+ * Handle changes of the available subtitle configurations.
171
+ *
172
+ * @abstract Reports `null` until the SDK reaches the `ready` state (see
173
+ * {@link getCurrentSubtitleConfiguration}), then the loaded array (`[]` when none are available).
174
+ * Re-emits when the configs change while ready, and when the ready state itself changes.
175
+ * @returns { object } - An object with a`remove` method to unsubscribe from the event.
176
+ */
177
+ export declare function onAvailableSubtitleConfigsChanged(handler: (arg: AvailableSubtitle[] | null) => void): {
178
+ remove: () => void;
179
+ };
180
+ /**
181
+ * Handle changes of the subtitle fragments.
182
+ *
183
+ * @deprecated Use {@link onSubtitleStateChanged}, which reports the full subtitle state (type +
184
+ * channel + fragments). Scheduled for removal in a future major version.
185
+ * @returns {object} - An object with a `remove` method to unsubscribe from the event.
186
+ */
187
+ export declare function onSubtitlesChanged(handler: (arg: string[]) => void): {
188
+ remove: () => void;
189
+ };
190
+ /**
191
+ * Handle changes of the subtitle state.
192
+ *
193
+ * @abstract Reports the full state (type + channel + fragments), unlike the fragments-only
194
+ * {@link onSubtitlesChanged}.
195
+ * @returns {object} - An object with a `remove` method to unsubscribe from the event.
196
+ */
197
+ export declare function onSubtitleStateChanged(handler: (state: SubtitleState) => void): {
198
+ remove: () => void;
199
+ };
200
+ /**
201
+ * Open the LiveVoice website in the device's default browser.
202
+ */
203
+ export declare function openLiveVoiceWebsite(): void;
204
+ /**
205
+ * Get the version of the LiveVoice React Native SDK.
206
+ *
207
+ * @returns {string} The SDK version, e.g. `"2.0.1"`.
208
+ */
209
+ export declare function getSdkVersion(): string;
210
+ //# sourceMappingURL=LiveVoiceSdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveVoiceSdk.d.ts","sourceRoot":"","sources":["../../../../src/sdk/LiveVoiceSdk.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EACL,KAAK,uBAAuB,EAG7B,MAAM,iCAA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joined event. Internal: the view uses it for branding/gating. */
3
+ export type Claims = {
4
+ hideBranding: boolean;
5
+ customUiAllowed: boolean;
6
+ };
7
+ export declare function getCurrentClaims(): Claims | null;
8
+ export declare function getCurrentUiState(): UiState;
9
+ export declare function onUiStateChanged(handler: (arg: UiState) => void): {
10
+ remove: () => void;
11
+ };
12
+ //# sourceMappingURL=LiveVoiceState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveVoiceState.d.ts","sourceRoot":"","sources":["../../../../src/sdk/LiveVoiceState.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,iBAAiB,CAAC;AAG7D,mGAAmG;AACnG,MAAM,MAAM,MAAM,GAAG;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAA;CAAE,CAAC;AAoBzE,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAIhD;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG;IACjE,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAMA"}
@@ -1,5 +1,5 @@
1
- import { type TurboModule } from 'react-native';
2
- import { type EventEmitter } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import { type TurboModule, type CodegenTypes } from 'react-native';
2
+ type EventEmitter<T> = CodegenTypes.EventEmitter<T>;
3
3
  export interface Spec extends TurboModule {
4
4
  initialize(androidServiceConfig: string | null): void;
5
5
  joinEvent(joinCode: string, password: string | null, apiKey: string): void;
@@ -9,6 +9,7 @@ export interface Spec extends TurboModule {
9
9
  getCurrentUiState(): string;
10
10
  getCurrentAudioState(): boolean;
11
11
  getCurrentSubtitles(): string;
12
+ getCurrentSubtitleState(): string;
12
13
  getCurrentAvailableSubtitleConfigs(): string;
13
14
  setLiveVoiceUseSpeaker(value: boolean): void;
14
15
  startChannel(id: number): void;
@@ -16,13 +17,15 @@ export interface Spec extends TurboModule {
16
17
  /**
17
18
  * @param channelId: -1 denotes an unspecified channel (i.e: the currently playing one)
18
19
  */
19
- startSubtitles(channelId: number, languageCode: string | null): void;
20
+ startSubtitles(channelId: number): void;
20
21
  stopSubtitles(): void;
21
22
  openLiveVoiceWebsite(): void;
23
+ getSdkVersion(): string;
22
24
  readonly onUiStateChanged: EventEmitter<string>;
23
25
  readonly onAudioOutputChanged: EventEmitter<boolean>;
24
26
  readonly onAvailableSubtitleConfigsChanged: EventEmitter<string>;
25
27
  readonly onSubtitlesChanged: EventEmitter<string>;
28
+ readonly onSubtitleStateChanged: EventEmitter<string>;
26
29
  channelStatusOffline(): string;
27
30
  noChannels(): string;
28
31
  isAiChannelStatusMessage(): string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeLiveVoiceSdk.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeLiveVoiceSdk.ts"],"names":[],"mappings":"AAaA,OAAO,EAAuB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAIxF,KAAK,YAAY,CAAC,CAAC,IAAI,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AAEpD,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,uBAAuB,IAAI,MAAM,CAAC;IAClC,kCAAk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BAAwB,IAAI,MAAM,CAAA;IAClC,+BAA+B,IAAI,MAAM,CAAA;IACzC,wBAAwB,IAAI,MAAM,CAAA;CACnC;;AAED,wBAAyE"}
@@ -1,10 +1,11 @@
1
1
  export declare const COLORS: {
2
2
  primary: string;
3
- primaryOutline: string;
4
3
  bg: string;
5
4
  bgDark: string;
6
5
  cardBg: string;
7
6
  cardBgDark: string;
7
+ divider: string;
8
+ dividerDark: string;
8
9
  white: string;
9
10
  black: string;
10
11
  gray: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["../../../../src/util/Colors.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;CAiBlB,CAAC"}
@@ -0,0 +1,19 @@
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
+ /**
10
+ * Sentinel sent to the native module to request the SDK's built-in default notification
11
+ * message. The Android native module recognizes this exact string (see
12
+ * `DEFAULT_MESSAGE_SENTINEL` in `LiveVoiceModule.kt`) and substitutes the real default — the
13
+ * two must stay in sync. iOS ignores the foreground-service config entirely.
14
+ */
15
+ export declare const DEFAULT_MESSAGE_SENTINEL = "LV_NOTIFICATION_DEFAULT_MESSAGE";
16
+ export declare const serviceDisabled: Disabled;
17
+ export declare const serviceEnabledWithDefaultMessage: Enabled;
18
+ export declare const serviceEnabledWithMessage: (message: string | null) => Enabled;
19
+ //# sourceMappingURL=ForegroundServiceConfig.d.ts.map