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
@@ -1,327 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- initialize: true,
8
- joinEvent: true,
9
- leaveEvent: true,
10
- reconnect: true,
11
- getCurrentClaims: true,
12
- getCurrentUiState: true,
13
- getCurrentSubtitleConfiguration: true,
14
- getCurrentSubtitles: true,
15
- getCurrentAudioState: true,
16
- setLiveVoiceUseSpeaker: true,
17
- startChannel: true,
18
- stopChannel: true,
19
- startSubtitles: true,
20
- stopSubtitles: true,
21
- onAudioOutputChanged: true,
22
- onUiStateChanged: true,
23
- onAvailableSubtitleConfigsChanged: true,
24
- onSubtitlesChanged: true,
25
- openLiveVoiceWebsite: true
26
- };
27
- exports.getCurrentAudioState = getCurrentAudioState;
28
- exports.getCurrentClaims = getCurrentClaims;
29
- exports.getCurrentSubtitleConfiguration = getCurrentSubtitleConfiguration;
30
- exports.getCurrentSubtitles = getCurrentSubtitles;
31
- exports.getCurrentUiState = getCurrentUiState;
32
- exports.initialize = initialize;
33
- exports.joinEvent = joinEvent;
34
- exports.leaveEvent = leaveEvent;
35
- exports.onAudioOutputChanged = onAudioOutputChanged;
36
- exports.onAvailableSubtitleConfigsChanged = onAvailableSubtitleConfigsChanged;
37
- exports.onSubtitlesChanged = onSubtitlesChanged;
38
- exports.onUiStateChanged = onUiStateChanged;
39
- exports.openLiveVoiceWebsite = openLiveVoiceWebsite;
40
- exports.reconnect = reconnect;
41
- exports.setLiveVoiceUseSpeaker = setLiveVoiceUseSpeaker;
42
- exports.startChannel = startChannel;
43
- exports.startSubtitles = startSubtitles;
44
- exports.stopChannel = stopChannel;
45
- exports.stopSubtitles = stopSubtitles;
46
- var _NativeLiveVoiceSdk = _interopRequireDefault(require("./specs/NativeLiveVoiceSdk.js"));
47
- var _ForegroundServiceConfig = require("./util/ForegroundServiceConfig.js");
48
- Object.keys(_ForegroundServiceConfig).forEach(function (key) {
49
- if (key === "default" || key === "__esModule") return;
50
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
51
- if (key in exports && exports[key] === _ForegroundServiceConfig[key]) return;
52
- Object.defineProperty(exports, key, {
53
- enumerable: true,
54
- get: function () {
55
- return _ForegroundServiceConfig[key];
56
- }
57
- });
58
- });
59
- var _index = require("./components/index.js");
60
- Object.keys(_index).forEach(function (key) {
61
- if (key === "default" || key === "__esModule") return;
62
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
63
- if (key in exports && exports[key] === _index[key]) return;
64
- Object.defineProperty(exports, key, {
65
- enumerable: true,
66
- get: function () {
67
- return _index[key];
68
- }
69
- });
70
- });
71
- var _Translations = require("./util/Translations.js");
72
- Object.keys(_Translations).forEach(function (key) {
73
- if (key === "default" || key === "__esModule") return;
74
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
75
- if (key in exports && exports[key] === _Translations[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function () {
79
- return _Translations[key];
80
- }
81
- });
82
- });
83
- var _UIState = require("./util/UIState.js");
84
- Object.keys(_UIState).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
87
- if (key in exports && exports[key] === _UIState[key]) return;
88
- Object.defineProperty(exports, key, {
89
- enumerable: true,
90
- get: function () {
91
- return _UIState[key];
92
- }
93
- });
94
- });
95
- var _PlayingState = require("./util/PlayingState.js");
96
- Object.keys(_PlayingState).forEach(function (key) {
97
- if (key === "default" || key === "__esModule") return;
98
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
99
- if (key in exports && exports[key] === _PlayingState[key]) return;
100
- Object.defineProperty(exports, key, {
101
- enumerable: true,
102
- get: function () {
103
- return _PlayingState[key];
104
- }
105
- });
106
- });
107
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
108
- /*
109
- * This source file is part of the LiveVoice SDK project
110
- *
111
- * Copyright (c) LiveVoice GmbH
112
- * Licensed under the MIT license
113
- *
114
- * See LICENSE for license information
115
- *
116
- * SPDX-License-Identifier: MIT
117
- */
118
-
119
- /**
120
- * Initialize the LiveVoice SDK.
121
- *
122
- * @param {ForegroundServiceConfig} [androidServiceConfig=serviceDisabled] - Pass the service config on Android.
123
- */
124
- function initialize(androidServiceConfig = _ForegroundServiceConfig.serviceDisabled) {
125
- let serviceTypeAsString;
126
- switch (androidServiceConfig.type) {
127
- case 'Disabled':
128
- serviceTypeAsString = null;
129
- break;
130
- case 'Enabled':
131
- if (androidServiceConfig.message == null) serviceTypeAsString = 'LV_NOTIFICATION_DEFAULT_MESSAGE';else serviceTypeAsString = androidServiceConfig.message;
132
- break;
133
- }
134
-
135
- // Interface cannot take default-parameter, so we need to wrap it here
136
- _NativeLiveVoiceSdk.default.initialize(serviceTypeAsString);
137
- }
138
-
139
- /**
140
- * Join an event.
141
- *
142
- * @abstract By joining an event you can display the event's channels.
143
- *
144
- * @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'.
145
- * @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.
146
- * @param {string} apiKey - Your API key. You can find your API key in the account page when logged in on the website.
147
- */
148
- function joinEvent(joinCode, password, apiKey) {
149
- return _NativeLiveVoiceSdk.default.joinEvent(joinCode, password, apiKey);
150
- }
151
-
152
- /**
153
- * Leave the current event.
154
- *
155
- * @abstract You can explicitly leave an event to tear down any network connections the SDK uses when you no longer display any channels.
156
- */
157
- function leaveEvent() {
158
- return _NativeLiveVoiceSdk.default.leaveEvent();
159
- }
160
-
161
- /**
162
- * Reconnect when a connection error occurred.
163
- *
164
- * @abstract Call this method to try to reconnect when a connection error has occurred.
165
- */
166
- function reconnect() {
167
- return _NativeLiveVoiceSdk.default.reconnect();
168
- }
169
-
170
- /**
171
- * Get the claims for the current event.
172
- *
173
- * @abstract The claims determine the authorized features for an API key. Claims are available, once an event has been joined.
174
- * @returns {Claims | null} The authorization claims, or `nil` if not yet joined
175
- */
176
- function getCurrentClaims() {
177
- const claims = _NativeLiveVoiceSdk.default.getCurrentClaims();
178
- if (claims == null) return null;
179
- return JSON.parse(claims);
180
- }
181
-
182
- /**
183
- * Get the current state of the LiveVoice SDK.
184
- *
185
- * @abstract You should only need to call this method to get an initial value. Use {@link onUiStateChanged}
186
- ` to be updated about the view state.
187
- * @returns {UiState} The current view state
188
- */
189
- function getCurrentUiState() {
190
- return JSON.parse(_NativeLiveVoiceSdk.default.getCurrentUiState());
191
- }
192
-
193
- /**
194
- * Get the current available subtitle configurations LiveVoice SDK.
195
- *
196
- * @abstract You should only need to call this method to get an initial value. Use {@link onAvailableSubtitleConfigsChanged}
197
- ` to be updated when the available subtitle configurations change.
198
- * @returns {AvailableSubtitleConfigs} The current available subtitle configuration
199
- */
200
- function getCurrentSubtitleConfiguration() {
201
- return JSON.parse(_NativeLiveVoiceSdk.default.getCurrentAvailableSubtitleConfigs());
202
- }
203
-
204
- /**
205
- * Get the current subtitle elemens LiveVoice SDK.
206
- *
207
- * @abstract You should only need to call this method to get an initial value. Use {@link onSubtitlesChanged}
208
- ` to be updated when the new subtitles are added.
209
- * @returns {[String]} The current subtitles
210
- */
211
- function getCurrentSubtitles() {
212
- return JSON.parse(_NativeLiveVoiceSdk.default.getCurrentSubtitles());
213
- }
214
-
215
- /**
216
- * Get the current state of the audio output.
217
- *
218
- * @abstract You should only need to call this method to get an initial value. Use {@link onAudioOutputChanged}
219
- ` to be updated about the audio state.
220
- * @returns {boolean} `true` for the speaker and `false` for the receiver.
221
- */
222
- function getCurrentAudioState() {
223
- return _NativeLiveVoiceSdk.default.getCurrentAudioState();
224
- }
225
-
226
- /**
227
- * Set the audio output.
228
- * @param {boolean} value - Set to `true` to use the speaker, and `false` to use the receiver.
229
- */
230
- function setLiveVoiceUseSpeaker(value) {
231
- return _NativeLiveVoiceSdk.default.setLiveVoiceUseSpeaker(value);
232
- }
233
-
234
- /**
235
- * Start playing a channel.
236
- * @abstract You can find the channel ID for a channel in the admin web-interface at the bottom when tapping *Edit Channel*.
237
- * @param {number} [id] - The channel ID.
238
- */
239
- function startChannel(id) {
240
- return _NativeLiveVoiceSdk.default.startChannel(id);
241
- }
242
-
243
- /**
244
- * Stop playing the currently playing channel.
245
- */
246
- function stopChannel() {
247
- return _NativeLiveVoiceSdk.default.stopChannel();
248
- }
249
-
250
- /**
251
- * Start receiving subtitles.
252
- * @abstract The SDK can receive a single stream of subtitle fragments at a time.
253
- * You can stop receiving subtitles using {@link stopSubtitles()}.
254
- * Whenever you call this method, any previous subtitle streams are stopped automatically and you receive the subtitles for the requested channel and language instead.
255
- *
256
- * 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.
257
- *
258
- * @param {number | null} channelId - The channel to receive subtitles for. Set to `null` to always receive subtitles for the currently playing channel.
259
- * @param {string | null} language - The language code for the translation, or `null` to request the transcript.
260
- */
261
- function startSubtitles(channelId, language) {
262
- const nativeSafeId = channelId == null ? -1 : channelId;
263
- _NativeLiveVoiceSdk.default.startSubtitles(nativeSafeId, language);
264
- }
265
-
266
- /**
267
- * Stop receiving subtitles.
268
- */
269
- function stopSubtitles() {
270
- return _NativeLiveVoiceSdk.default.stopSubtitles();
271
- }
272
-
273
- // Event handlers
274
-
275
- /**
276
- * Handle changes of the audio output.
277
- *
278
- * @returns {object} - An object with a `remove` method to unsubscribe from the event.
279
- */
280
- function onAudioOutputChanged(handler) {
281
- return _NativeLiveVoiceSdk.default.onAudioOutputChanged(data => {
282
- handler(data);
283
- });
284
- }
285
-
286
- /**
287
- * Handle changes of the UI state.
288
- *
289
- * @returns {object} - An object with a `remove` method to unsubscribe from the event.
290
- */
291
- function onUiStateChanged(handler) {
292
- return _NativeLiveVoiceSdk.default.onUiStateChanged(data => {
293
- handler(JSON.parse(data));
294
- });
295
- }
296
-
297
- /**
298
- * Handle changes of the available subtitles.
299
- *
300
- * @returns { object } - An object with a`remove` method to unsubscribe from the event.
301
- */
302
- function onAvailableSubtitleConfigsChanged(handler) {
303
- return _NativeLiveVoiceSdk.default.onAvailableSubtitleConfigsChanged(data => {
304
- const mapOfSubtitles = JSON.parse(data);
305
- handler(mapOfSubtitles);
306
- });
307
- }
308
-
309
- /**
310
- * Handle changes of the available subtitles.
311
- *
312
- * @returns {object} - An object with a `remove` method to unsubscribe from the event.
313
- */
314
- function onSubtitlesChanged(handler) {
315
- return _NativeLiveVoiceSdk.default.onSubtitlesChanged(data => {
316
- const mapOfSubtitles = JSON.parse(data);
317
- handler(mapOfSubtitles);
318
- });
319
- }
320
-
321
- /**
322
- * Open the LiveVoice website in the device's default browser.
323
- */
324
- function openLiveVoiceWebsite() {
325
- return _NativeLiveVoiceSdk.default.openLiveVoiceWebsite();
326
- }
327
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_NativeLiveVoiceSdk","_interopRequireDefault","require","_ForegroundServiceConfig","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index","_Translations","_UIState","_PlayingState","e","__esModule","default","initialize","androidServiceConfig","serviceDisabled","serviceTypeAsString","type","message","LiveVoiceSdkReactNative","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","openLiveVoiceWebsite"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,wBAAA,GAAAD,OAAA;AAOAE,MAAA,CAAAC,IAAA,CAAAF,wBAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,wBAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,wBAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAFA,IAAAS,MAAA,GAAAd,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAW,MAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,MAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,MAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,aAAA,GAAAf,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAY,aAAA,EAAAX,OAAA,WAAAC,G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AS;EAClC,OAAOzB,2BAAuB,CAACyB,aAAa,CAAC,CAAC;AAClD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,oBAAoBA,CAACC,OAAsC,EAA2B;EAClG,OAAO3B,2BAAuB,CAAC0B,oBAAoB,CAAEE,IAAa,IAAK;IACnED,OAAO,CAACC,IAAI,CAAC;EACjB,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,gBAAgBA,CAACF,OAA+B,EAA2B;EACvF,OAAO3B,2BAAuB,CAAC6B,gBAAgB,CAAED,IAAY,IAAK;IAC9DD,OAAO,CAAClB,IAAI,CAACC,KAAK,CAACkB,IAAI,CAAC,CAAC;EAC7B,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASE,iCAAiCA,CAACH,OAAgD,EAA2B;EACzH,OAAO3B,2BAAuB,CAAC8B,iCAAiC,CAAEF,IAAY,IAAK;IAC/E,MAAMG,cAAwC,GAAGtB,IAAI,CAACC,KAAK,CAACkB,IAAI,CAAC;IACjED,OAAO,CAACI,cAAc,CAAC;EAC3B,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,kBAAkBA,CAACL,OAAgC,EAA2B;EAC1F,OAAO3B,2BAAuB,CAACgC,kBAAkB,CAAEJ,IAAY,IAAK;IAChE,MAAMG,cAAwB,GAAGtB,IAAI,CAACC,KAAK,CAACkB,IAAI,CAAC;IACjDD,OAAO,CAACI,cAAc,CAAC;EAC3B,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACO,SAASE,oBAAoBA,CAAA,EAAS;EACzC,OAAOjC,2BAAuB,CAACiC,oBAAoB,CAAC,CAAC;AACzD","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- /*
9
- * This source file is part of the LiveVoice SDK project
10
- *
11
- * Copyright (c) LiveVoice GmbH
12
- * Licensed under the MIT license
13
- *
14
- * See LICENSE for license information
15
- *
16
- * SPDX-License-Identifier: MIT
17
- */
18
- var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('LiveVoiceModule');
19
- //# sourceMappingURL=NativeLiveVoiceSdk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeLiveVoiceSdk.ts"],"mappings":";;;;;;AAYA,IAAAA,YAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GA4EeC,gCAAmB,CAACC,YAAY,CAAO,iBAAiB,CAAC","ignoreList":[]}
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.COLORS = void 0;
7
- /*
8
- * This source file is part of the LiveVoice SDK project
9
- *
10
- * Copyright (c) LiveVoice GmbH
11
- * Licensed under the MIT license
12
- *
13
- * See LICENSE for license information
14
- *
15
- * SPDX-License-Identifier: MIT
16
- */
17
-
18
- const COLORS = exports.COLORS = {
19
- primary: '#F1521B',
20
- primaryOutline: 'rgba(241, 82, 27, 0.2)',
21
- bg: '#F5F5F5',
22
- bgDark: '#1E1F23',
23
- cardBg: '#fff',
24
- cardBgDark: '#212429',
25
- white: '#fff',
26
- black: '#191919',
27
- gray: '#808080',
28
- 'gray-300': '#E0E0E0'
29
- };
30
- //# sourceMappingURL=Colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["COLORS","exports","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;;AAEO,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpBE,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":[]}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.serviceEnabledWithMessage = exports.serviceEnabledWithDefaultMessage = exports.serviceDisabled = void 0;
7
- /*
8
- * This source file is part of the LiveVoice SDK project
9
- *
10
- * Copyright (c) LiveVoice GmbH
11
- * Licensed under the MIT license
12
- *
13
- * See LICENSE for license information
14
- *
15
- * SPDX-License-Identifier: MIT
16
- */
17
-
18
- // Define the union type and interfaces
19
-
20
- // Named exports for the constants and function
21
- const serviceDisabled = exports.serviceDisabled = {
22
- type: 'Disabled'
23
- };
24
- const serviceEnabledWithDefaultMessage = exports.serviceEnabledWithDefaultMessage = {
25
- type: 'Enabled',
26
- message: 'LV_NOTIFICATION_DEFAULT_MESSAGE'
27
- };
28
- const serviceEnabledWithMessage = message => ({
29
- type: 'Enabled',
30
- message
31
- });
32
- exports.serviceEnabledWithMessage = serviceEnabledWithMessage;
33
- //# sourceMappingURL=ForegroundServiceConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["serviceDisabled","exports","type","serviceEnabledWithDefaultMessage","message","serviceEnabledWithMessage"],"sourceRoot":"../../../src","sources":["util/ForegroundServiceConfig.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAYA;AACO,MAAMA,eAAyB,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAAEE,IAAI,EAAE;AAAW,CAAC;AAEtD,MAAMC,gCAAyC,GAAAF,OAAA,CAAAE,gCAAA,GAAG;EAAED,IAAI,EAAE,SAAS;EAAEE,OAAO,EAAE;AAAkC,CAAC;AAEjH,MAAMC,yBAAyB,GAAID,OAAsB,KAAe;EAC7EF,IAAI,EAAE,SAAS;EACfE;AACF,CAAC,CAAC;AAACH,OAAA,CAAAI,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PlayingState = void 0;
7
- /*
8
- * This source file is part of the LiveVoice SDK project
9
- *
10
- * Copyright (c) LiveVoice GmbH
11
- * Licensed under the MIT license
12
- *
13
- * See LICENSE for license information
14
- *
15
- * SPDX-License-Identifier: MIT
16
- */
17
- let PlayingState = exports.PlayingState = /*#__PURE__*/function (PlayingState) {
18
- PlayingState["STOPPED"] = "STOPPED";
19
- PlayingState["TRANSITIONING"] = "TRANSITIONING";
20
- PlayingState["PLAYING"] = "PLAYING";
21
- return PlayingState;
22
- }({});
23
- ;
24
- //# sourceMappingURL=PlayingState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["PlayingState","exports"],"sourceRoot":"../../../src","sources":["util/PlayingState.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA,IAWYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAIvB","ignoreList":[]}
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Translations = void 0;
7
- var _NativeLiveVoiceSdk = _interopRequireDefault(require("../specs/NativeLiveVoiceSdk.js"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- /*
10
- * This source file is part of the LiveVoice SDK project
11
- *
12
- * Copyright (c) LiveVoice GmbH
13
- * Licensed under the MIT license
14
- *
15
- * See LICENSE for license information
16
- *
17
- * SPDX-License-Identifier: MIT
18
- */
19
-
20
- /**
21
- * @fileoverview Translated strings for the React Native SDK.
22
- * These methods will return a translated string for the current locale.
23
- * German, English, and Spanish are supported at this time.
24
- */
25
-
26
- const Translations = exports.Translations = {
27
- channelStatusOffline: () => _NativeLiveVoiceSdk.default.channelStatusOffline(),
28
- noChannels: () => _NativeLiveVoiceSdk.default.noChannels(),
29
- isAiChannelStatusMessage: () => _NativeLiveVoiceSdk.default.isAiChannelStatusMessage(),
30
- sdkNoMatchingChannels: () => _NativeLiveVoiceSdk.default.sdkNoMatchingChannels(),
31
- errorScreenRetrying: () => _NativeLiveVoiceSdk.default.errorScreenRetrying(),
32
- errorScreenRetryingIn: seconds => _NativeLiveVoiceSdk.default.errorScreenRetryingIn(seconds),
33
- sdkErrorGeneric: () => _NativeLiveVoiceSdk.default.sdkErrorGeneric(),
34
- sdkErrorInactive: () => _NativeLiveVoiceSdk.default.sdkErrorInactive(),
35
- sdkErrorInvalidApiKey: () => _NativeLiveVoiceSdk.default.sdkErrorInvalidApiKey(),
36
- sdkErrorListenerLimitReached: () => _NativeLiveVoiceSdk.default.sdkErrorListenerLimitReached(),
37
- sdkErrorNoNetwork: () => _NativeLiveVoiceSdk.default.sdkErrorNoNetwork(),
38
- sdkErrorNotFound: () => _NativeLiveVoiceSdk.default.sdkErrorNotFound(),
39
- sdkErrorRequestFailed: errorCode => _NativeLiveVoiceSdk.default.sdkErrorRequestFailed(errorCode),
40
- sdkErrorWrongPassword: () => _NativeLiveVoiceSdk.default.sdkErrorWrongPassword(),
41
- errorRetryNowButton: () => _NativeLiveVoiceSdk.default.errorRetryNowButton(),
42
- streamingByTitle: () => _NativeLiveVoiceSdk.default.streamingByTitle(),
43
- accessibilityChannelPlay: () => _NativeLiveVoiceSdk.default.accessibilityChannelPlay(),
44
- accessibilityChannelStatusMuted: () => _NativeLiveVoiceSdk.default.accessibilityChannelStatusMuted(),
45
- accessibilityChannelStop: () => _NativeLiveVoiceSdk.default.accessibilityChannelStop()
46
- };
47
- //# sourceMappingURL=Translations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_NativeLiveVoiceSdk","_interopRequireDefault","require","e","__esModule","default","Translations","exports","channelStatusOffline","LiveVoiceSdkReactNative","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":";;;;;;AAgBA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAhBlE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAGO,MAAMG,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,oBAAoB,EAAEA,CAAA,KAAcC,2BAAuB,CAACD,oBAAoB,CAAC,CAAC;EAClFE,UAAU,EAAEA,CAAA,KAAcD,2BAAuB,CAACC,UAAU,CAAC,CAAC;EAC9DC,wBAAwB,EAAEA,CAAA,KAAcF,2BAAuB,CAACE,wBAAwB,CAAC,CAAC;EAC1FC,qBAAqB,EAAEA,CAAA,KAAcH,2BAAuB,CAACG,qBAAqB,CAAC,CAAC;EACpFC,mBAAmB,EAAEA,CAAA,KAAcJ,2BAAuB,CAACI,mBAAmB,CAAC,CAAC;EAChFC,qBAAqB,EAAGC,OAAe,IAAaN,2BAAuB,CAACK,qBAAqB,CAACC,OAAO,CAAC;EAC1GC,eAAe,EAAEA,CAAA,KAAcP,2BAAuB,CAACO,eAAe,CAAC,CAAC;EACxEC,gBAAgB,EAAEA,CAAA,KAAcR,2BAAuB,CAACQ,gBAAgB,CAAC,CAAC;EAC1EC,qBAAqB,EAAEA,CAAA,KAAcT,2BAAuB,CAACS,qBAAqB,CAAC,CAAC;EACpFC,4BAA4B,EAAEA,CAAA,KAAcV,2BAAuB,CAACU,4BAA4B,CAAC,CAAC;EAClGC,iBAAiB,EAAEA,CAAA,KAAcX,2BAAuB,CAACW,iBAAiB,CAAC,CAAC;EAC5EC,gBAAgB,EAAEA,CAAA,KAAcZ,2BAAuB,CAACY,gBAAgB,CAAC,CAAC;EAC1EC,qBAAqB,EAAGC,SAAiB,IAAad,2BAAuB,CAACa,qBAAqB,CAACC,SAAS,CAAC;EAC9GC,qBAAqB,EAAEA,CAAA,KAAcf,2BAAuB,CAACe,qBAAqB,CAAC,CAAC;EACpFC,mBAAmB,EAAEA,CAAA,KAAchB,2BAAuB,CAACgB,mBAAmB,CAAC,CAAC;EAChFC,gBAAgB,EAAEA,CAAA,KAAcjB,2BAAuB,CAACiB,gBAAgB,CAAC,CAAC;EAC1EC,wBAAwB,EAAEA,CAAA,KAAclB,2BAAuB,CAACkB,wBAAwB,CAAC,CAAC;EAC1FC,+BAA+B,EAAEA,CAAA,KAAcnB,2BAAuB,CAACmB,+BAA+B,CAAC,CAAC;EACxGC,wBAAwB,EAAEA,CAAA,KAAcpB,2BAAuB,CAACoB,wBAAwB,CAAC;AAC3F,CAAC","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=UIState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["util/UIState.ts"],"mappings":"","ignoreList":[]}
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"type":"commonjs"}
@@ -1 +0,0 @@
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,CA6ElE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrandingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/BrandingView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyBhD,CAAC"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
1
- export interface LiveVoiceViewProps {
2
- isDarkMode?: boolean;
3
- }
4
- export declare const LiveVoiceView: React.FC<LiveVoiceViewProps>;
5
- export default LiveVoiceView;
6
- //# sourceMappingURL=LiveVoiceView.d.ts.map
@@ -1 +0,0 @@
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,CAwFtD,CAAC;AAEF,eAAe,aAAa,CAAC"}