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.
Files changed (191) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +13 -0
  3. package/android/build.gradle +135 -0
  4. package/android/generated/java/io/livevoice/react/NativeLiveVoiceSdkSpec.java +182 -0
  5. package/android/generated/jni/CMakeLists.txt +36 -0
  6. package/android/generated/jni/RNLiveVoiceSpec-generated.cpp +229 -0
  7. package/android/generated/jni/RNLiveVoiceSpec.h +31 -0
  8. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI-generated.cpp +238 -0
  9. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +389 -0
  10. package/android/gradle.properties +7 -0
  11. package/android/src/main/AndroidManifest.xml +3 -0
  12. package/android/src/main/java/io/livevoice/react/LiveVoiceModule.kt +293 -0
  13. package/android/src/main/java/io/livevoice/react/LiveVoiceSdkReactNativePackage.kt +45 -0
  14. package/android/src/main/java/io/livevoice/react/Mappings.kt +54 -0
  15. package/android/src/main/java/io/livevoice/react/NativeModels.kt +77 -0
  16. package/ios/LiveVoiceSdkReactNative.h +21 -0
  17. package/ios/LivevoiceSdkReactNative.mm +234 -0
  18. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec-generated.mm +285 -0
  19. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec.h +100 -0
  20. package/ios/generated/RNLiveVoiceSpecJSI-generated.cpp +238 -0
  21. package/ios/generated/RNLiveVoiceSpecJSI.h +389 -0
  22. package/lib/commonjs/components/AudioOutputSwitchView.js +140 -0
  23. package/lib/commonjs/components/AudioOutputSwitchView.js.map +1 -0
  24. package/lib/commonjs/components/BrandingView.js +78 -0
  25. package/lib/commonjs/components/BrandingView.js.map +1 -0
  26. package/lib/commonjs/components/ChannelView.js +117 -0
  27. package/lib/commonjs/components/ChannelView.js.map +1 -0
  28. package/lib/commonjs/components/ErrorView.js +88 -0
  29. package/lib/commonjs/components/ErrorView.js.map +1 -0
  30. package/lib/commonjs/components/LiveVoiceView.js +95 -0
  31. package/lib/commonjs/components/LiveVoiceView.js.map +1 -0
  32. package/lib/commonjs/components/PlayButtonView.js +161 -0
  33. package/lib/commonjs/components/PlayButtonView.js.map +1 -0
  34. package/lib/commonjs/components/ReconnectingView.js +109 -0
  35. package/lib/commonjs/components/ReconnectingView.js.map +1 -0
  36. package/lib/commonjs/components/WarningView.js +58 -0
  37. package/lib/commonjs/components/WarningView.js.map +1 -0
  38. package/lib/commonjs/components/index.js +94 -0
  39. package/lib/commonjs/components/index.js.map +1 -0
  40. package/lib/commonjs/icons/branding.png +0 -0
  41. package/lib/commonjs/icons/cpu.png +0 -0
  42. package/lib/commonjs/icons/headphones.png +0 -0
  43. package/lib/commonjs/icons/mic.png +0 -0
  44. package/lib/commonjs/icons/pause.png +0 -0
  45. package/lib/commonjs/icons/play.png +0 -0
  46. package/lib/commonjs/icons/speaker.png +0 -0
  47. package/lib/commonjs/index.js +310 -0
  48. package/lib/commonjs/index.js.map +1 -0
  49. package/lib/commonjs/specs/NativeLiveVoiceSdk.js +19 -0
  50. package/lib/commonjs/specs/NativeLiveVoiceSdk.js.map +1 -0
  51. package/lib/commonjs/util/Colors.js +30 -0
  52. package/lib/commonjs/util/Colors.js.map +1 -0
  53. package/lib/commonjs/util/ForegroundServiceConfig.js +33 -0
  54. package/lib/commonjs/util/ForegroundServiceConfig.js.map +1 -0
  55. package/lib/commonjs/util/PlayingState.js +24 -0
  56. package/lib/commonjs/util/PlayingState.js.map +1 -0
  57. package/lib/commonjs/util/Translations.js +47 -0
  58. package/lib/commonjs/util/Translations.js.map +1 -0
  59. package/lib/commonjs/util/UIState.js +6 -0
  60. package/lib/commonjs/util/UIState.js.map +1 -0
  61. package/lib/module/components/AudioOutputSwitchView.js +134 -0
  62. package/lib/module/components/AudioOutputSwitchView.js.map +1 -0
  63. package/lib/module/components/BrandingView.js +72 -0
  64. package/lib/module/components/BrandingView.js.map +1 -0
  65. package/lib/module/components/ChannelView.js +110 -0
  66. package/lib/module/components/ChannelView.js.map +1 -0
  67. package/lib/module/components/ErrorView.js +82 -0
  68. package/lib/module/components/ErrorView.js.map +1 -0
  69. package/lib/module/components/LiveVoiceView.js +90 -0
  70. package/lib/module/components/LiveVoiceView.js.map +1 -0
  71. package/lib/module/components/PlayButtonView.js +156 -0
  72. package/lib/module/components/PlayButtonView.js.map +1 -0
  73. package/lib/module/components/ReconnectingView.js +103 -0
  74. package/lib/module/components/ReconnectingView.js.map +1 -0
  75. package/lib/module/components/WarningView.js +52 -0
  76. package/lib/module/components/WarningView.js.map +1 -0
  77. package/lib/module/components/index.js +22 -0
  78. package/lib/module/components/index.js.map +1 -0
  79. package/lib/module/icons/branding.png +0 -0
  80. package/lib/module/icons/cpu.png +0 -0
  81. package/lib/module/icons/headphones.png +0 -0
  82. package/lib/module/icons/mic.png +0 -0
  83. package/lib/module/icons/pause.png +0 -0
  84. package/lib/module/icons/play.png +0 -0
  85. package/lib/module/icons/speaker.png +0 -0
  86. package/lib/module/index.js +215 -0
  87. package/lib/module/index.js.map +1 -0
  88. package/lib/module/specs/NativeLiveVoiceSdk.js +16 -0
  89. package/lib/module/specs/NativeLiveVoiceSdk.js.map +1 -0
  90. package/lib/module/util/Colors.js +26 -0
  91. package/lib/module/util/Colors.js.map +1 -0
  92. package/lib/module/util/ForegroundServiceConfig.js +28 -0
  93. package/lib/module/util/ForegroundServiceConfig.js.map +1 -0
  94. package/lib/module/util/PlayingState.js +21 -0
  95. package/lib/module/util/PlayingState.js.map +1 -0
  96. package/lib/module/util/Translations.js +41 -0
  97. package/lib/module/util/Translations.js.map +1 -0
  98. package/lib/module/util/UIState.js +4 -0
  99. package/lib/module/util/UIState.js.map +1 -0
  100. package/lib/typescript/commonjs/package.json +1 -0
  101. package/lib/typescript/commonjs/src/components/AudioOutputSwitchView.d.ts +6 -0
  102. package/lib/typescript/commonjs/src/components/AudioOutputSwitchView.d.ts.map +1 -0
  103. package/lib/typescript/commonjs/src/components/BrandingView.d.ts +6 -0
  104. package/lib/typescript/commonjs/src/components/BrandingView.d.ts.map +1 -0
  105. package/lib/typescript/commonjs/src/components/ChannelView.d.ts +13 -0
  106. package/lib/typescript/commonjs/src/components/ChannelView.d.ts.map +1 -0
  107. package/lib/typescript/commonjs/src/components/ErrorView.d.ts +9 -0
  108. package/lib/typescript/commonjs/src/components/ErrorView.d.ts.map +1 -0
  109. package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts +6 -0
  110. package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts +146 -0
  112. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/components/ReconnectingView.d.ts +9 -0
  114. package/lib/typescript/commonjs/src/components/ReconnectingView.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/components/WarningView.d.ts +8 -0
  116. package/lib/typescript/commonjs/src/components/WarningView.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/src/components/index.d.ts +9 -0
  118. package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -0
  119. package/lib/typescript/commonjs/src/index.d.ts +129 -0
  120. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  121. package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts +47 -0
  122. package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -0
  123. package/lib/typescript/commonjs/src/util/Colors.d.ts +13 -0
  124. package/lib/typescript/commonjs/src/util/Colors.d.ts.map +1 -0
  125. package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts +12 -0
  126. package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts.map +1 -0
  127. package/lib/typescript/commonjs/src/util/PlayingState.d.ts +7 -0
  128. package/lib/typescript/commonjs/src/util/PlayingState.d.ts.map +1 -0
  129. package/lib/typescript/commonjs/src/util/Translations.d.ts +22 -0
  130. package/lib/typescript/commonjs/src/util/Translations.d.ts.map +1 -0
  131. package/lib/typescript/commonjs/src/util/UIState.d.ts +45 -0
  132. package/lib/typescript/commonjs/src/util/UIState.d.ts.map +1 -0
  133. package/lib/typescript/module/package.json +1 -0
  134. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts +6 -0
  135. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts.map +1 -0
  136. package/lib/typescript/module/src/components/BrandingView.d.ts +6 -0
  137. package/lib/typescript/module/src/components/BrandingView.d.ts.map +1 -0
  138. package/lib/typescript/module/src/components/ChannelView.d.ts +13 -0
  139. package/lib/typescript/module/src/components/ChannelView.d.ts.map +1 -0
  140. package/lib/typescript/module/src/components/ErrorView.d.ts +9 -0
  141. package/lib/typescript/module/src/components/ErrorView.d.ts.map +1 -0
  142. package/lib/typescript/module/src/components/LiveVoiceView.d.ts +6 -0
  143. package/lib/typescript/module/src/components/LiveVoiceView.d.ts.map +1 -0
  144. package/lib/typescript/module/src/components/PlayButtonView.d.ts +146 -0
  145. package/lib/typescript/module/src/components/PlayButtonView.d.ts.map +1 -0
  146. package/lib/typescript/module/src/components/ReconnectingView.d.ts +9 -0
  147. package/lib/typescript/module/src/components/ReconnectingView.d.ts.map +1 -0
  148. package/lib/typescript/module/src/components/WarningView.d.ts +8 -0
  149. package/lib/typescript/module/src/components/WarningView.d.ts.map +1 -0
  150. package/lib/typescript/module/src/components/index.d.ts +9 -0
  151. package/lib/typescript/module/src/components/index.d.ts.map +1 -0
  152. package/lib/typescript/module/src/index.d.ts +129 -0
  153. package/lib/typescript/module/src/index.d.ts.map +1 -0
  154. package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts +47 -0
  155. package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -0
  156. package/lib/typescript/module/src/util/Colors.d.ts +13 -0
  157. package/lib/typescript/module/src/util/Colors.d.ts.map +1 -0
  158. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts +12 -0
  159. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts.map +1 -0
  160. package/lib/typescript/module/src/util/PlayingState.d.ts +7 -0
  161. package/lib/typescript/module/src/util/PlayingState.d.ts.map +1 -0
  162. package/lib/typescript/module/src/util/Translations.d.ts +22 -0
  163. package/lib/typescript/module/src/util/Translations.d.ts.map +1 -0
  164. package/lib/typescript/module/src/util/UIState.d.ts +45 -0
  165. package/lib/typescript/module/src/util/UIState.d.ts.map +1 -0
  166. package/livevoice-sdk-react-native.podspec +58 -0
  167. package/package.json +207 -0
  168. package/react-native.config.js +12 -0
  169. package/src/components/AudioOutputSwitchView.tsx +145 -0
  170. package/src/components/BrandingView.tsx +66 -0
  171. package/src/components/ChannelView.tsx +99 -0
  172. package/src/components/ErrorView.tsx +89 -0
  173. package/src/components/LiveVoiceView.tsx +120 -0
  174. package/src/components/PlayButtonView.tsx +181 -0
  175. package/src/components/ReconnectingView.tsx +133 -0
  176. package/src/components/WarningView.tsx +60 -0
  177. package/src/components/index.tsx +19 -0
  178. package/src/icons/branding.png +0 -0
  179. package/src/icons/cpu.png +0 -0
  180. package/src/icons/headphones.png +0 -0
  181. package/src/icons/mic.png +0 -0
  182. package/src/icons/pause.png +0 -0
  183. package/src/icons/play.png +0 -0
  184. package/src/icons/speaker.png +0 -0
  185. package/src/index.tsx +221 -0
  186. package/src/specs/NativeLiveVoiceSdk.ts +75 -0
  187. package/src/util/Colors.ts +27 -0
  188. package/src/util/ForegroundServiceConfig.tsx +32 -0
  189. package/src/util/PlayingState.ts +18 -0
  190. package/src/util/Translations.ts +39 -0
  191. package/src/util/UIState.ts +65 -0
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getButtonStyle = exports.default = exports.ButtonStyles = void 0;
7
+ var _Colors = require("../util/Colors.js");
8
+ var _reactNative = require("react-native");
9
+ var _PlayingState = require("../util/PlayingState.js");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ /*
12
+ * This source file is part of the LiveVoice SDK project
13
+ *
14
+ * Copyright (c) LiveVoice GmbH
15
+ * Licensed under the MIT license
16
+ *
17
+ * See LICENSE for license information
18
+ *
19
+ * SPDX-License-Identifier: MIT
20
+ */
21
+
22
+ const PlayButtonView = ({
23
+ playingState,
24
+ isChannelOnline,
25
+ isDarkMode = (0, _reactNative.useColorScheme)() === 'dark',
26
+ onPress
27
+ }) => {
28
+ const isPlaying = playingState === _PlayingState.PlayingState.PLAYING;
29
+ const isTransitioning = playingState === _PlayingState.PlayingState.TRANSITIONING;
30
+ const iconColor = !isChannelOnline ? isDarkMode ? '#585858' : '#dee2e6' : isPlaying ? _Colors.COLORS.primary : _Colors.COLORS.white;
31
+ const opacity = isChannelOnline ? 1 : 0.8;
32
+ const getButtonIcon = () => {
33
+ if (isTransitioning) {
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
35
+ size: 20,
36
+ color: iconColor,
37
+ style: {
38
+ opacity
39
+ }
40
+ });
41
+ }
42
+ return isPlaying ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
43
+ source: require('../icons/pause.png'),
44
+ style: [{
45
+ tintColor: iconColor,
46
+ width: 20,
47
+ height: 20
48
+ }]
49
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
50
+ source: require('../icons/play.png'),
51
+ style: [{
52
+ tintColor: iconColor,
53
+ width: 20,
54
+ height: 20
55
+ }]
56
+ });
57
+ };
58
+ const getStyleType = () => {
59
+ if (!isChannelOnline) return 'offline';
60
+ if (isPlaying) return 'playing';
61
+ return 'paused';
62
+ };
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
64
+ style: [getButtonStyle(getStyleType(), isDarkMode), {
65
+ opacity
66
+ }],
67
+ onPress: onPress,
68
+ activeOpacity: 0.8,
69
+ children: getButtonIcon()
70
+ });
71
+ };
72
+ const getButtonStyle = (type, isDarkMode) => {
73
+ return ButtonStyles[type][isDarkMode ? 'dark' : 'light'];
74
+ };
75
+ exports.getButtonStyle = getButtonStyle;
76
+ const baseButtonStyle = {
77
+ paddingVertical: 8,
78
+ paddingHorizontal: 18,
79
+ borderRadius: 10,
80
+ borderWidth: 2,
81
+ outlineStyle: 'solid',
82
+ outlineWidth: 3
83
+ };
84
+ const ButtonColorLight = {
85
+ orange: '#f56230',
86
+ orange_light: '#f67b51',
87
+ orange_dark: '#b93305',
88
+ errorBackground: '#f1f1f1',
89
+ playButtonBorderThinOffline: '#d1d1d6',
90
+ playButtonBorderThickOffline: '#f2f2f7',
91
+ playButtonIconOffline: '#dee2e6',
92
+ playButtonBorderThickOnline: '#f5623021',
93
+ playButtonIconOnline: '#ffffff',
94
+ playButtonFillOnline: '#f56230',
95
+ playButtonGlowPlaying: '#f56230b3',
96
+ playButtonBorderThickPlaying: '#f56230',
97
+ playButtonIconPlaying: '#f56230',
98
+ playButtonFillPlaying: '#ffffff'
99
+ };
100
+ const ButtonColorDark = {
101
+ orange: '#f56230',
102
+ orange_light: '#f67b51',
103
+ orange_dark: '#b93305',
104
+ errorBackground: '#111111',
105
+ playButtonBorderThinOffline: '#212121',
106
+ playButtonBorderThickOffline: '#585858',
107
+ playButtonIconOffline: '#585858',
108
+ playButtonBorderThickOnline: '#77392421',
109
+ playButtonIconOnline: '#ffffff',
110
+ playButtonFillOnline: '#f56230',
111
+ playButtonGlowPlaying: '#f56230',
112
+ playButtonBorderThickPlaying: '#ff7433',
113
+ playButtonIconPlaying: '#f56230',
114
+ playButtonFillPlaying: '#ffffff'
115
+ };
116
+ const ButtonStyles = exports.ButtonStyles = {
117
+ paused: {
118
+ light: {
119
+ ...baseButtonStyle,
120
+ backgroundColor: ButtonColorLight.playButtonFillOnline,
121
+ borderColor: 'transparent',
122
+ outlineColor: ButtonColorLight.playButtonBorderThickOnline
123
+ },
124
+ dark: {
125
+ ...baseButtonStyle,
126
+ backgroundColor: ButtonColorDark.playButtonFillOnline,
127
+ borderColor: 'transparent',
128
+ outlineColor: ButtonColorDark.playButtonBorderThickOnline
129
+ }
130
+ },
131
+ playing: {
132
+ light: {
133
+ ...baseButtonStyle,
134
+ backgroundColor: ButtonColorLight.playButtonFillPlaying,
135
+ borderColor: ButtonColorLight.playButtonFillPlaying,
136
+ outlineColor: ButtonColorLight.playButtonBorderThickPlaying
137
+ },
138
+ dark: {
139
+ ...baseButtonStyle,
140
+ backgroundColor: ButtonColorDark.playButtonFillPlaying,
141
+ borderColor: ButtonColorDark.playButtonFillPlaying,
142
+ outlineColor: ButtonColorDark.playButtonBorderThickPlaying
143
+ }
144
+ },
145
+ offline: {
146
+ light: {
147
+ ...baseButtonStyle,
148
+ backgroundColor: 'transparent',
149
+ borderColor: ButtonColorLight.playButtonBorderThinOffline,
150
+ outlineColor: ButtonColorLight.playButtonBorderThickOffline
151
+ },
152
+ dark: {
153
+ ...baseButtonStyle,
154
+ backgroundColor: 'transparent',
155
+ borderColor: ButtonColorDark.playButtonBorderThinOffline,
156
+ outlineColor: ButtonColorDark.playButtonBorderThickOffline
157
+ }
158
+ }
159
+ };
160
+ var _default = exports.default = PlayButtonView;
161
+ //# sourceMappingURL=PlayButtonView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Colors","require","_reactNative","_PlayingState","_jsxRuntime","PlayButtonView","playingState","isChannelOnline","isDarkMode","useColorScheme","onPress","isPlaying","PlayingState","PLAYING","isTransitioning","TRANSITIONING","iconColor","COLORS","primary","white","opacity","getButtonIcon","jsx","ActivityIndicator","size","color","style","Image","source","tintColor","width","height","getStyleType","TouchableOpacity","getButtonStyle","activeOpacity","children","type","ButtonStyles","exports","baseButtonStyle","paddingVertical","paddingHorizontal","borderRadius","borderWidth","outlineStyle","outlineWidth","ButtonColorLight","orange","orange_light","orange_dark","errorBackground","playButtonBorderThinOffline","playButtonBorderThickOffline","playButtonIconOffline","playButtonBorderThickOnline","playButtonIconOnline","playButtonFillOnline","playButtonGlowPlaying","playButtonBorderThickPlaying","playButtonIconPlaying","playButtonFillPlaying","ButtonColorDark","paused","light","backgroundColor","borderColor","outlineColor","dark","playing","offline","_default","default"],"sourceRoot":"../../../src","sources":["components/PlayButtonView.tsx"],"mappings":";;;;;;AAWA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAAoD,IAAAG,WAAA,GAAAH,OAAA;AAbpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaA,MAAMI,cAAyC,GAAGA,CAAC;EACjDC,YAAY;EACZC,eAAe;EACfC,UAAU,GAAG,IAAAC,2BAAc,EAAC,CAAC,KAAK,MAAM;EACxCC;AAEF,CAAC,KAAK;EACJ,MAAMC,SAAS,GAAGL,YAAY,KAAKM,0BAAY,CAACC,OAAO;EACvD,MAAMC,eAAe,GAAGR,YAAY,KAAKM,0BAAY,CAACG,aAAa;EAEnE,MAAMC,SAAS,GAAG,CAACT,eAAe,GAC7BC,UAAU,GAAG,SAAS,GAAG,SAAS,GACnCG,SAAS,GACPM,cAAM,CAACC,OAAO,GACdD,cAAM,CAACE,KAAK;EAElB,MAAMC,OAAO,GAAGb,eAAe,GAAG,CAAC,GAAG,GAAG;EAEzC,MAAMc,aAAa,GAAGA,CAAA,KAAM;IAC1B,IAAIP,eAAe,EAAE;MACnB,oBAAO,IAAAV,WAAA,CAAAkB,GAAA,EAACpB,YAAA,CAAAqB,iBAAiB;QAACC,IAAI,EAAE,EAAG;QAACC,KAAK,EAAET,SAAU;QAACU,KAAK,EAAE;UAAEN;QAAQ;MAAE,CAAE,CAAC;IAC9E;IACA,OAAOT,SAAS,gBACd,IAAAP,WAAA,CAAAkB,GAAA,EAACpB,YAAA,CAAAyB,KAAK;MACJC,MAAM,EAAE3B,OAAO,CAAC,oBAAoB,CAAE;M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eAAe;MAClByB,eAAe,EAAElB,gBAAgB,CAACc,qBAAqB;MACvDK,WAAW,EAAEnB,gBAAgB,CAACc,qBAAqB;MACnDM,YAAY,EAAEpB,gBAAgB,CAACY;IACjC,CAAC;IACDS,IAAI,EAAE;MACJ,GAAG5B,eAAe;MAClByB,eAAe,EAAEH,eAAe,CAACD,qBAAqB;MACtDK,WAAW,EAAEJ,eAAe,CAACD,qBAAqB;MAClDM,YAAY,EAAEL,eAAe,CAACH;IAChC;EACF,CAAC;EAEDW,OAAO,EAAE;IACPN,KAAK,EAAE;MACL,GAAGxB,eAAe;MAClByB,eAAe,EAAE,aAAa;MAC9BC,WAAW,EAAEnB,gBAAgB,CAACK,2BAA2B;MACzDe,YAAY,EAAEpB,gBAAgB,CAACM;IACjC,CAAC;IACDe,IAAI,EAAE;MACJ,GAAG5B,eAAe;MAClByB,eAAe,EAAE,aAAa;MAC9BC,WAAW,EAAEJ,eAAe,CAACV,2BAA2B;MACxDe,YAAY,EAAEL,eAAe,CAACT;IAChC;EACF;AACF,CAAC;AAAC,IAAAkB,QAAA,GAAAhC,OAAA,CAAAiC,OAAA,GAEanE,cAAc","ignoreList":[]}
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ReconnectingView = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _Colors = require("../util/Colors.js");
10
+ var _Translations = require("../util/Translations.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ /*
14
+ * This source file is part of the LiveVoice SDK project
15
+ *
16
+ * Copyright (c) LiveVoice GmbH
17
+ * Licensed under the MIT license
18
+ *
19
+ * See LICENSE for license information
20
+ *
21
+ * SPDX-License-Identifier: MIT
22
+ */
23
+
24
+ const ReconnectingView = props => {
25
+ const isDarkMode = props.isDarkMode ?? (0, _reactNative.useColorScheme)() === 'dark';
26
+ const reconnectingState = props.state;
27
+ const isAttemptOngoing = reconnectingState.state.type === 'inProgress';
28
+ const [secUntilRetry, setSecUntilRetry] = _react.default.useState(0);
29
+
30
+ //updated the countdown every second!
31
+ (0, _react.useEffect)(() => {
32
+ const newValue = calculateSecondsUntilRetry(reconnectingState);
33
+ console.log('Updated seconds' + newValue);
34
+ setSecUntilRetry(newValue);
35
+ const interval = setInterval(() => {
36
+ const newValue = calculateSecondsUntilRetry(reconnectingState);
37
+ console.log('Updated seconds' + newValue);
38
+ setSecUntilRetry(newValue);
39
+ }, 1000);
40
+ return () => clearInterval(interval); // Clean up when unmounted
41
+ }, [reconnectingState]);
42
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
43
+ style: [styles.container, isDarkMode ? {
44
+ backgroundColor: _Colors.COLORS.cardBgDark
45
+ } : {
46
+ backgroundColor: _Colors.COLORS.cardBg
47
+ }],
48
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
49
+ style: [styles.text, isDarkMode ? styles.darkText : styles.lightText],
50
+ children: reconnectingState.state.type === 'awaitingRetry' ? _Translations.Translations.errorScreenRetryingIn(secUntilRetry) : _Translations.Translations.errorScreenRetrying()
51
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
52
+ onPress: props.onPress,
53
+ activeOpacity: 0.9,
54
+ style: [styles.button, {
55
+ minWidth: 100,
56
+ // fixed width, so it doesn't change size when showing the ActivityIndicator
57
+ backgroundColor: isDarkMode ? '#fff' : '#191919'
58
+ }],
59
+ children: isAttemptOngoing ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
60
+ size: "small",
61
+ color: isDarkMode ? '#191919' : '#fff'
62
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
63
+ style: [styles.buttonText, isDarkMode ? styles.lightText : styles.darkText],
64
+ children: _Translations.Translations.errorRetryNowButton()
65
+ })
66
+ })]
67
+ });
68
+ };
69
+ exports.ReconnectingView = ReconnectingView;
70
+ function calculateSecondsUntilRetry(reconnectingState) {
71
+ return reconnectingState.state.type == 'awaitingRetry' ? Math.max(0, reconnectingState.state.atTimestamp - Date.now() / 1000) : 0;
72
+ }
73
+ const styles = _reactNative.StyleSheet.create({
74
+ container: {
75
+ paddingVertical: 30,
76
+ alignItems: 'center',
77
+ justifyContent: 'center',
78
+ borderRadius: 8,
79
+ width: '100%',
80
+ marginBottom: 10
81
+ },
82
+ text: {
83
+ fontSize: 14,
84
+ fontWeight: '500',
85
+ textAlign: 'center'
86
+ },
87
+ dangerText: {
88
+ color: '#F1521B'
89
+ },
90
+ darkText: {
91
+ color: '#fff'
92
+ },
93
+ lightText: {
94
+ color: '#191919'
95
+ },
96
+ button: {
97
+ paddingHorizontal: 10,
98
+ paddingVertical: 8,
99
+ borderRadius: 8,
100
+ marginTop: 10
101
+ },
102
+ buttonText: {
103
+ color: '#fff',
104
+ fontSize: 14,
105
+ fontWeight: '500',
106
+ textAlign: 'center'
107
+ }
108
+ });
109
+ //# sourceMappingURL=ReconnectingView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Colors","_Translations","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ReconnectingView","props","isDarkMode","useColorScheme","reconnectingState","state","isAttemptOngoing","type","secUntilRetry","setSecUntilRetry","React","useState","useEffect","newValue","calculateSecondsUntilRetry","console","log","interval","setInterval","clearInterval","jsxs","View","style","styles","container","backgroundColor","COLORS","cardBgDark","cardBg","children","jsx","Text","text","darkText","lightText","Translations","errorScreenRetryingIn","errorScreenRetrying","TouchableOpacity","onPress","activeOpacity","button","minWidth","ActivityIndicator","size","color","buttonText","errorRetryNowButton","exports","Math","max","atTimestamp","Date","now","StyleSheet","create","paddingVertical","alignItems","justifyContent","borderRadius","width","marginBottom","fontSize","fontWeight","textAlign","dangerText","paddingHorizontal","marginTop"],"sourceRoot":"../../../src","sources":["components/ReconnectingView.tsx"],"mappings":";;;;;;AAWA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAGA,IAAAG,aAAA,GAAAH,OAAA;AAAoD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EA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Module", {
4
+ value: true
5
+ });
6
+ exports.WarningView = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _Colors = require("../util/Colors.js");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ /*
13
+ * This source file is part of the LiveVoice SDK project
14
+ *
15
+ * Copyright (c) LiveVoice GmbH
16
+ * Licensed under the MIT license
17
+ *
18
+ * See LICENSE for license information
19
+ *
20
+ * SPDX-License-Identifier: MIT
21
+ */
22
+
23
+ const WarningView = props => {
24
+ const isDarkMode = props.isDarkMode ?? (0, _reactNative.useColorScheme)() === 'dark';
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
26
+ style: [styles.container, isDarkMode ? {
27
+ backgroundColor: _Colors.COLORS.cardBgDark
28
+ } : {
29
+ backgroundColor: _Colors.COLORS.cardBg
30
+ }],
31
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
32
+ style: [styles.text, isDarkMode ? styles.darkText : styles.lightText],
33
+ children: props.text || 'No channels found'
34
+ })
35
+ });
36
+ };
37
+ exports.WarningView = WarningView;
38
+ const styles = _reactNative.StyleSheet.create({
39
+ container: {
40
+ paddingVertical: 30,
41
+ alignItems: 'center',
42
+ justifyContent: 'center',
43
+ borderRadius: 8,
44
+ width: '100%',
45
+ marginBottom: 10
46
+ },
47
+ text: {
48
+ fontSize: 14,
49
+ fontWeight: '500'
50
+ },
51
+ darkText: {
52
+ color: '#fff'
53
+ },
54
+ lightText: {
55
+ color: '#191919'
56
+ }
57
+ });
58
+ //# sourceMappingURL=WarningView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Colors","_jsxRuntime","e","__esModule","default","WarningView","props","isDarkMode","useColorScheme","jsx","View","style","styles","container","backgroundColor","COLORS","cardBgDark","cardBg","children","Text","text","darkText","lightText","exports","StyleSheet","create","paddingVertical","alignItems","justifyContent","borderRadius","width","marginBottom","fontSize","fontWeight","color"],"sourceRoot":"../../../src","sources":["components/WarningView.tsx"],"mappings":";;;;;;AAWA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAAwC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAbxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYO,MAAMG,WAAmC,GAAIC,KAAK,IAAK;EAC5D,MAAMC,UAAU,GAAGD,KAAK,CAACC,UAAU,IAAI,IAAAC,2BAAc,EAAC,CAAC,KAAK,MAAM;EAElE,oBACE,IAAAP,WAAA,CAAAQ,GAAA,EAACV,YAAA,CAAAW,IAAI;IACHC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBN,UAAU,GAAG;MAAEO,eAAe,EAAEC,cAAM,CAACC;IAAW,CAAC,GAAG;MAAEF,eAAe,EAAEC,cAAM,CAACE;IAAO,CAAC,CACxF;IAAAC,QAAA,eAEF,IAAAjB,WAAA,CAAAQ,GAAA,EAACV,YAAA,CAAAoB,IAAI;MACHR,KAAK,EAAE,CAACC,MAAM,CAACQ,IAAI,EAAEb,UAAU,GAAGK,MAAM,CAACS,QAAQ,GAAGT,MAAM,CAACU,SAAS,CAAE;MAAAJ,QAAA,EAErEZ,KAAK,CAACc,IAAI,IAAI;IAAmB,CAC9B;EAAC,CACH,CAAC;AAEX,CAAC;AAACG,OAAA,CAAAlB,WAAA,GAAAA,WAAA;AAEF,MAAMO,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,eAAe,EAAE,EAAE;IACnBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB,CAAC;EACDX,IAAI,EAAE;IACJY,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDZ,QAAQ,EAAE;IACRa,KAAK,EAAE;EACT,CAAC;EACDZ,SAAS,EAAE;IACTY,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _AudioOutputSwitchView = require("./AudioOutputSwitchView.js");
7
+ Object.keys(_AudioOutputSwitchView).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _AudioOutputSwitchView[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _AudioOutputSwitchView[key];
14
+ }
15
+ });
16
+ });
17
+ var _BrandingView = require("./BrandingView.js");
18
+ Object.keys(_BrandingView).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _BrandingView[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _BrandingView[key];
25
+ }
26
+ });
27
+ });
28
+ var _ChannelView = require("./ChannelView.js");
29
+ Object.keys(_ChannelView).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _ChannelView[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _ChannelView[key];
36
+ }
37
+ });
38
+ });
39
+ var _ErrorView = require("./ErrorView.js");
40
+ Object.keys(_ErrorView).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _ErrorView[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _ErrorView[key];
47
+ }
48
+ });
49
+ });
50
+ var _LiveVoiceView = require("./LiveVoiceView.js");
51
+ Object.keys(_LiveVoiceView).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _LiveVoiceView[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _LiveVoiceView[key];
58
+ }
59
+ });
60
+ });
61
+ var _PlayButtonView = require("./PlayButtonView.js");
62
+ Object.keys(_PlayButtonView).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _PlayButtonView[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _PlayButtonView[key];
69
+ }
70
+ });
71
+ });
72
+ var _ReconnectingView = require("./ReconnectingView.js");
73
+ Object.keys(_ReconnectingView).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _ReconnectingView[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _ReconnectingView[key];
80
+ }
81
+ });
82
+ });
83
+ var _WarningView = require("./WarningView.js");
84
+ Object.keys(_WarningView).forEach(function (key) {
85
+ if (key === "default" || key === "__esModule") return;
86
+ if (key in exports && exports[key] === _WarningView[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function () {
90
+ return _WarningView[key];
91
+ }
92
+ });
93
+ });
94
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_AudioOutputSwitchView","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_BrandingView","_ChannelView","_ErrorView","_LiveVoiceView","_PlayButtonView","_ReconnectingView","_WarningView"],"sourceRoot":"../../../src","sources":["components/index.tsx"],"mappings":";;;;;AAWA,IAAAA,sBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,sBAAA,EAAAI,OA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