livevoice-sdk-react-native 1.0.3 → 2.0.0

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 (185) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +5 -5
  3. package/android/{generated/java/io/livevoice/react → app/build/generated/source/codegen/java/com/facebook/fbreact/specs}/NativeLiveVoiceSdkSpec.java +2 -2
  4. package/android/{generated → app/build/generated/source/codegen}/jni/CMakeLists.txt +1 -9
  5. package/android/{generated → app/build/generated/source/codegen}/jni/RNLiveVoiceSpec-generated.cpp +3 -3
  6. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +341 -0
  7. package/android/build.gradle +41 -84
  8. package/android/gradle.properties +10 -6
  9. package/android/src/main/java/io/livevoice/react/LiveVoiceModule.kt +17 -16
  10. package/android/src/main/java/io/livevoice/react/LiveVoiceSdkReactNativePackage.kt +12 -13
  11. package/android/src/main/java/io/livevoice/react/Mappings.kt +36 -5
  12. package/android/src/main/java/io/livevoice/react/NativeModels.kt +2 -0
  13. package/android/src/main/java/io/livevoice/react/__SDK.kt +1 -1
  14. package/ios/LiveVoiceSdkReactNative.h +5 -5
  15. package/ios/{LivevoiceSdkReactNative.mm → LiveVoiceSdkReactNative.mm} +59 -74
  16. package/ios/__SDK.h +1 -1
  17. package/lib/module/components/ChannelView.js +14 -38
  18. package/lib/module/components/ChannelView.js.map +1 -1
  19. package/lib/module/components/LiveVoiceView.js +46 -23
  20. package/lib/module/components/LiveVoiceView.js.map +1 -1
  21. package/lib/module/components/PlayButtonView.js +243 -84
  22. package/lib/module/components/PlayButtonView.js.map +1 -1
  23. package/lib/module/icons/captions@1x.png +0 -0
  24. package/lib/module/icons/captions@2x.png +0 -0
  25. package/lib/module/icons/pause@1x.png +0 -0
  26. package/lib/module/icons/pause@2x.png +0 -0
  27. package/lib/module/icons/play@1x.png +0 -0
  28. package/lib/module/icons/play@2x.png +0 -0
  29. package/lib/module/index.js +19 -21
  30. package/lib/module/index.js.map +1 -1
  31. package/lib/module/specs/NativeLiveVoiceSdk.js +4 -0
  32. package/lib/module/specs/NativeLiveVoiceSdk.js.map +1 -1
  33. package/lib/module/util/Colors.js +2 -1
  34. package/lib/module/util/Colors.js.map +1 -1
  35. package/lib/typescript/package.json +1 -0
  36. package/lib/typescript/src/components/AudioOutputSwitchView.d.ts.map +1 -0
  37. package/lib/typescript/src/components/BrandingView.d.ts.map +1 -0
  38. package/lib/typescript/{commonjs/src → src}/components/ChannelView.d.ts +4 -2
  39. package/lib/typescript/src/components/ChannelView.d.ts.map +1 -0
  40. package/lib/typescript/src/components/ErrorView.d.ts.map +1 -0
  41. package/lib/typescript/src/components/LiveVoiceView.d.ts.map +1 -0
  42. package/lib/typescript/src/components/PlayButtonView.d.ts +341 -0
  43. package/lib/typescript/src/components/PlayButtonView.d.ts.map +1 -0
  44. package/lib/typescript/src/components/ReconnectingView.d.ts.map +1 -0
  45. package/lib/typescript/src/components/WarningView.d.ts.map +1 -0
  46. package/lib/typescript/src/components/index.d.ts.map +1 -0
  47. package/lib/typescript/{commonjs/src → src}/index.d.ts +11 -15
  48. package/lib/typescript/src/index.d.ts.map +1 -0
  49. package/lib/typescript/{commonjs/src → src}/specs/NativeLiveVoiceSdk.d.ts +3 -3
  50. package/lib/typescript/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -0
  51. package/lib/typescript/{commonjs/src → src}/util/Colors.d.ts +2 -1
  52. package/lib/typescript/src/util/Colors.d.ts.map +1 -0
  53. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts.map +1 -0
  54. package/lib/typescript/src/util/PlayingState.d.ts.map +1 -0
  55. package/lib/typescript/src/util/Translations.d.ts.map +1 -0
  56. package/lib/typescript/{module/src → src}/util/UIState.d.ts +22 -1
  57. package/lib/typescript/src/util/UIState.d.ts.map +1 -0
  58. package/livevoice-sdk-react-native.podspec +6 -27
  59. package/package.json +33 -123
  60. package/src/components/ChannelView.tsx +18 -25
  61. package/src/components/LiveVoiceView.tsx +110 -59
  62. package/src/components/PlayButtonView.tsx +280 -87
  63. package/src/icons/captions@1x.png +0 -0
  64. package/src/icons/captions@2x.png +0 -0
  65. package/src/icons/pause@1x.png +0 -0
  66. package/src/icons/pause@2x.png +0 -0
  67. package/src/icons/play@1x.png +0 -0
  68. package/src/icons/play@2x.png +0 -0
  69. package/src/index.tsx +95 -79
  70. package/src/specs/NativeLiveVoiceSdk.ts +7 -5
  71. package/src/util/Colors.ts +3 -1
  72. package/src/util/UIState.ts +25 -1
  73. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI-generated.cpp +0 -245
  74. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +0 -398
  75. package/android/src/main/AndroidManifest.xml +0 -3
  76. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec-generated.mm +0 -292
  77. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec.h +0 -101
  78. package/ios/generated/RNLiveVoiceSpecJSI-generated.cpp +0 -245
  79. package/ios/generated/RNLiveVoiceSpecJSI.h +0 -398
  80. package/lib/commonjs/components/AudioOutputSwitchView.js +0 -144
  81. package/lib/commonjs/components/AudioOutputSwitchView.js.map +0 -1
  82. package/lib/commonjs/components/BrandingView.js +0 -78
  83. package/lib/commonjs/components/BrandingView.js.map +0 -1
  84. package/lib/commonjs/components/ChannelView.js +0 -117
  85. package/lib/commonjs/components/ChannelView.js.map +0 -1
  86. package/lib/commonjs/components/ErrorView.js +0 -88
  87. package/lib/commonjs/components/ErrorView.js.map +0 -1
  88. package/lib/commonjs/components/LiveVoiceView.js +0 -107
  89. package/lib/commonjs/components/LiveVoiceView.js.map +0 -1
  90. package/lib/commonjs/components/PlayButtonView.js +0 -161
  91. package/lib/commonjs/components/PlayButtonView.js.map +0 -1
  92. package/lib/commonjs/components/ReconnectingView.js +0 -109
  93. package/lib/commonjs/components/ReconnectingView.js.map +0 -1
  94. package/lib/commonjs/components/WarningView.js +0 -58
  95. package/lib/commonjs/components/WarningView.js.map +0 -1
  96. package/lib/commonjs/components/index.js +0 -94
  97. package/lib/commonjs/components/index.js.map +0 -1
  98. package/lib/commonjs/icons/branding.png +0 -0
  99. package/lib/commonjs/icons/cpu.png +0 -0
  100. package/lib/commonjs/icons/headphones.png +0 -0
  101. package/lib/commonjs/icons/mic.png +0 -0
  102. package/lib/commonjs/icons/pause.png +0 -0
  103. package/lib/commonjs/icons/play.png +0 -0
  104. package/lib/commonjs/icons/speaker.png +0 -0
  105. package/lib/commonjs/index.js +0 -327
  106. package/lib/commonjs/index.js.map +0 -1
  107. package/lib/commonjs/specs/NativeLiveVoiceSdk.js +0 -19
  108. package/lib/commonjs/specs/NativeLiveVoiceSdk.js.map +0 -1
  109. package/lib/commonjs/util/Colors.js +0 -30
  110. package/lib/commonjs/util/Colors.js.map +0 -1
  111. package/lib/commonjs/util/ForegroundServiceConfig.js +0 -33
  112. package/lib/commonjs/util/ForegroundServiceConfig.js.map +0 -1
  113. package/lib/commonjs/util/PlayingState.js +0 -24
  114. package/lib/commonjs/util/PlayingState.js.map +0 -1
  115. package/lib/commonjs/util/Translations.js +0 -47
  116. package/lib/commonjs/util/Translations.js.map +0 -1
  117. package/lib/commonjs/util/UIState.js +0 -6
  118. package/lib/commonjs/util/UIState.js.map +0 -1
  119. package/lib/module/icons/pause.png +0 -0
  120. package/lib/module/icons/play.png +0 -0
  121. package/lib/typescript/commonjs/package.json +0 -1
  122. package/lib/typescript/commonjs/src/components/AudioOutputSwitchView.d.ts.map +0 -1
  123. package/lib/typescript/commonjs/src/components/BrandingView.d.ts.map +0 -1
  124. package/lib/typescript/commonjs/src/components/ChannelView.d.ts.map +0 -1
  125. package/lib/typescript/commonjs/src/components/ErrorView.d.ts.map +0 -1
  126. package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts.map +0 -1
  127. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts +0 -146
  128. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts.map +0 -1
  129. package/lib/typescript/commonjs/src/components/ReconnectingView.d.ts.map +0 -1
  130. package/lib/typescript/commonjs/src/components/WarningView.d.ts.map +0 -1
  131. package/lib/typescript/commonjs/src/components/index.d.ts.map +0 -1
  132. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  133. package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts.map +0 -1
  134. package/lib/typescript/commonjs/src/util/Colors.d.ts.map +0 -1
  135. package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts.map +0 -1
  136. package/lib/typescript/commonjs/src/util/PlayingState.d.ts.map +0 -1
  137. package/lib/typescript/commonjs/src/util/Translations.d.ts.map +0 -1
  138. package/lib/typescript/commonjs/src/util/UIState.d.ts +0 -45
  139. package/lib/typescript/commonjs/src/util/UIState.d.ts.map +0 -1
  140. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts +0 -6
  141. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts.map +0 -1
  142. package/lib/typescript/module/src/components/BrandingView.d.ts +0 -6
  143. package/lib/typescript/module/src/components/BrandingView.d.ts.map +0 -1
  144. package/lib/typescript/module/src/components/ChannelView.d.ts +0 -13
  145. package/lib/typescript/module/src/components/ChannelView.d.ts.map +0 -1
  146. package/lib/typescript/module/src/components/ErrorView.d.ts +0 -9
  147. package/lib/typescript/module/src/components/ErrorView.d.ts.map +0 -1
  148. package/lib/typescript/module/src/components/LiveVoiceView.d.ts +0 -6
  149. package/lib/typescript/module/src/components/LiveVoiceView.d.ts.map +0 -1
  150. package/lib/typescript/module/src/components/PlayButtonView.d.ts +0 -146
  151. package/lib/typescript/module/src/components/PlayButtonView.d.ts.map +0 -1
  152. package/lib/typescript/module/src/components/ReconnectingView.d.ts +0 -9
  153. package/lib/typescript/module/src/components/ReconnectingView.d.ts.map +0 -1
  154. package/lib/typescript/module/src/components/WarningView.d.ts +0 -8
  155. package/lib/typescript/module/src/components/WarningView.d.ts.map +0 -1
  156. package/lib/typescript/module/src/components/index.d.ts +0 -9
  157. package/lib/typescript/module/src/components/index.d.ts.map +0 -1
  158. package/lib/typescript/module/src/index.d.ts +0 -149
  159. package/lib/typescript/module/src/index.d.ts.map +0 -1
  160. package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts +0 -48
  161. package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts.map +0 -1
  162. package/lib/typescript/module/src/util/Colors.d.ts +0 -13
  163. package/lib/typescript/module/src/util/Colors.d.ts.map +0 -1
  164. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts +0 -12
  165. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts.map +0 -1
  166. package/lib/typescript/module/src/util/PlayingState.d.ts +0 -7
  167. package/lib/typescript/module/src/util/PlayingState.d.ts.map +0 -1
  168. package/lib/typescript/module/src/util/Translations.d.ts +0 -22
  169. package/lib/typescript/module/src/util/Translations.d.ts.map +0 -1
  170. package/lib/typescript/module/src/util/UIState.d.ts.map +0 -1
  171. package/react-native.config.js +0 -12
  172. package/src/icons/pause.png +0 -0
  173. package/src/icons/play.png +0 -0
  174. /package/android/{generated → app/build/generated/source/codegen}/jni/RNLiveVoiceSpec.h +0 -0
  175. /package/lib/{typescript/module → module}/package.json +0 -0
  176. /package/lib/typescript/{commonjs/src → src}/components/AudioOutputSwitchView.d.ts +0 -0
  177. /package/lib/typescript/{commonjs/src → src}/components/BrandingView.d.ts +0 -0
  178. /package/lib/typescript/{commonjs/src → src}/components/ErrorView.d.ts +0 -0
  179. /package/lib/typescript/{commonjs/src → src}/components/LiveVoiceView.d.ts +0 -0
  180. /package/lib/typescript/{commonjs/src → src}/components/ReconnectingView.d.ts +0 -0
  181. /package/lib/typescript/{commonjs/src → src}/components/WarningView.d.ts +0 -0
  182. /package/lib/typescript/{commonjs/src → src}/components/index.d.ts +0 -0
  183. /package/lib/typescript/{commonjs/src → src}/util/ForegroundServiceConfig.d.ts +0 -0
  184. /package/lib/typescript/{commonjs/src → src}/util/PlayingState.d.ts +0 -0
  185. /package/lib/typescript/{commonjs/src → src}/util/Translations.d.ts +0 -0
@@ -1,117 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ChannelView = 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 _PlayButtonView = _interopRequireDefault(require("./PlayButtonView.js"));
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- 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); }
15
- /*
16
- * This source file is part of the LiveVoice SDK project
17
- *
18
- * Copyright (c) LiveVoice GmbH
19
- * Licensed under the MIT license
20
- *
21
- * See LICENSE for license information
22
- *
23
- * SPDX-License-Identifier: MIT
24
- */
25
-
26
- const ChannelView = ({
27
- channelName,
28
- playingState,
29
- muted,
30
- isOnline,
31
- aiSpeaker,
32
- isDarkMode = (0, _reactNative.useColorScheme)() === 'dark',
33
- onPress
34
- }) => {
35
- const [collapsed, setCollapsed] = (0, _react.useState)(true);
36
- const backgroundColor = isDarkMode ? _Colors.COLORS.cardBgDark : _Colors.COLORS.cardBg;
37
- const secondaryColor = isDarkMode ? _Colors.COLORS['gray-300'] : _Colors.COLORS.gray;
38
- const iconColor = isDarkMode ? _Colors.COLORS.white : _Colors.COLORS.black;
39
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
40
- style: [styles.container, {
41
- backgroundColor
42
- }],
43
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PlayButtonView.default, {
44
- playingState: playingState,
45
- onPress: onPress,
46
- isDarkMode: isDarkMode,
47
- isChannelOnline: isOnline
48
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
49
- style: {
50
- flex: 1,
51
- marginLeft: 10
52
- },
53
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
54
- onPress: () => setCollapsed(!collapsed),
55
- activeOpacity: 1,
56
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
57
- numberOfLines: collapsed ? 1 : undefined,
58
- ellipsizeMode: "tail",
59
- style: [styles.text, {
60
- color: isDarkMode ? _Colors.COLORS.white : _Colors.COLORS.black
61
- }],
62
- children: channelName
63
- })
64
- }), /* Ai-Speaker status message */
65
- aiSpeaker && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
66
- style: {
67
- flex: 1,
68
- flexDirection: 'row',
69
- alignItems: 'center'
70
- },
71
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
72
- source: require('../icons/cpu.png'),
73
- style: {
74
- width: 16,
75
- height: 16,
76
- tintColor: secondaryColor,
77
- resizeMode: 'contain'
78
- }
79
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
80
- style: [styles.aiText, {
81
- color: secondaryColor
82
- }],
83
- children: _Translations.Translations.isAiChannelStatusMessage()
84
- })]
85
- })]
86
- }), muted && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
87
- source: require('../icons/mic.png'),
88
- style: {
89
- tintColor: iconColor,
90
- width: 20,
91
- height: 20,
92
- resizeMode: 'contain'
93
- }
94
- })]
95
- });
96
- };
97
- exports.ChannelView = ChannelView;
98
- const styles = _reactNative.StyleSheet.create({
99
- container: {
100
- flexDirection: 'row',
101
- alignItems: 'center',
102
- padding: 10,
103
- backgroundColor: '#fff',
104
- borderRadius: 8,
105
- marginBottom: 10
106
- },
107
- text: {
108
- fontSize: 16,
109
- fontWeight: '500'
110
- },
111
- aiText: {
112
- fontSize: 12,
113
- fontWeight: '400',
114
- marginLeft: 4
115
- }
116
- });
117
- //# sourceMappingURL=ChannelView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Colors","_Translations","_PlayButtonView","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChannelView","channelName","playingState","muted","isOnline","aiSpeaker","isDarkMode","useColorScheme","onPress","collapsed","setCollapsed","useState","backgroundColor","COLORS","cardBgDark","cardBg","secondaryColor","gray","iconColor","white","black","jsxs","View","style","styles","container","children","jsx","isChannelOnline","flex","marginLeft","TouchableOpacity","activeOpacity","Text","numberOfLines","undefined","ellipsizeMode","text","color","flexDirection","alignItems","Image","source","width","height","tintColor","resizeMode","aiText","Translations","isAiChannelStatusMessage","exports","StyleSheet","create","padding","borderRadius","marginBottom","fontSize","fontWeight"],"sourceRoot":"../../../src","sources":["components/ChannelView.tsx"],"mappings":";;;;;;AAWA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAC,sBAAA,CAAAL,OAAA;AAA8C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAK,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,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AE,MAAM;IACvB0C,YAAY,EAAE,CAAC;IACfC,YAAY,EAAE;EAChB,CAAC;EACDlB,IAAI,EAAE;IACJmB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDV,MAAM,EAAE;IACNS,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjB3B,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,88 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ErrorView = void 0;
7
- var _react = _interopRequireDefault(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 _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
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 ErrorView = props => {
25
- const isDarkMode = props.isDarkMode ?? (0, _reactNative.useColorScheme)() === 'dark';
26
- const state = props.state;
27
- const canBeRetried = state.type === 'error' && state.canBeRetried;
28
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
29
- style: [styles.container, isDarkMode ? {
30
- backgroundColor: _Colors.COLORS.cardBgDark
31
- } : {
32
- backgroundColor: _Colors.COLORS.cardBg
33
- }],
34
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
35
- style: [styles.text, state.type === 'error' ? styles.dangerText : isDarkMode ? styles.darkText : styles.lightText],
36
- children: state.message
37
- }), canBeRetried && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
38
- onPress: props.onPress,
39
- activeOpacity: 0.9,
40
- style: [styles.button, isDarkMode ? {
41
- backgroundColor: '#fff'
42
- } : {
43
- backgroundColor: '#191919'
44
- }],
45
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
46
- style: [styles.buttonText, isDarkMode ? styles.lightText : styles.darkText],
47
- children: _Translations.Translations.errorRetryNowButton()
48
- })
49
- })]
50
- });
51
- };
52
- exports.ErrorView = ErrorView;
53
- const styles = _reactNative.StyleSheet.create({
54
- container: {
55
- paddingVertical: 30,
56
- alignItems: 'center',
57
- justifyContent: 'center',
58
- borderRadius: 8,
59
- width: '100%',
60
- marginBottom: 10
61
- },
62
- text: {
63
- fontSize: 14,
64
- fontWeight: '500',
65
- textAlign: 'center'
66
- },
67
- dangerText: {
68
- color: '#F1521B'
69
- },
70
- darkText: {
71
- color: '#fff'
72
- },
73
- lightText: {
74
- color: '#191919'
75
- },
76
- button: {
77
- paddingHorizontal: 10,
78
- paddingVertical: 8,
79
- borderRadius: 8,
80
- marginTop: 10
81
- },
82
- buttonText: {
83
- color: '#fff',
84
- fontSize: 14,
85
- fontWeight: '500'
86
- }
87
- });
88
- //# sourceMappingURL=ErrorView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Colors","_Translations","_jsxRuntime","e","__esModule","default","ErrorView","props","isDarkMode","useColorScheme","state","canBeRetried","type","jsxs","View","style","styles","container","backgroundColor","COLORS","cardBgDark","cardBg","children","jsx","Text","text","dangerText","darkText","lightText","message","TouchableOpacity","onPress","activeOpacity","button","buttonText","Translations","errorRetryNowButton","exports","StyleSheet","create","paddingVertical","alignItems","justifyContent","borderRadius","width","marginBottom","fontSize","fontWeight","textAlign","color","paddingHorizontal","marginTop"],"sourceRoot":"../../../src","sources":["components/ErrorView.tsx"],"mappings":";;;;;;AAWA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAAoD,IAAAI,WA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U,CAAC,CAAE;MAAAI,QAAA,eAE9J,IAAApB,WAAA,CAAAqB,GAAA,EAACxB,YAAA,CAAAyB,IAAI;QAACT,KAAK,EAAE,CAACC,MAAM,CAACkB,UAAU,EAAE1B,UAAU,GAAGQ,MAAM,CAACY,SAAS,GAAGZ,MAAM,CAACW,QAAQ,CAAE;QAAAL,QAAA,EAC/Ea,0BAAY,CAACC,mBAAmB,CAAC;MAAC,CAC/B;IAAC,CACS,CACnB;EAAA,CACG,CAAC;AAEX,CAAC;AAACC,OAAA,CAAA/B,SAAA,GAAAA,SAAA;AAEF,MAAMU,MAAM,GAAGsB,uBAAU,CAACC,MAAM,CAAC;EAC/BtB,SAAS,EAAE;IACTuB,eAAe,EAAE,EAAE;IACnBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB,CAAC;EACDpB,IAAI,EAAE;IACJqB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE;EACb,CAAC;EACDtB,UAAU,EAAE;IACVuB,KAAK,EAAE;EACT,CAAC;EACDtB,QAAQ,EAAE;IACRsB,KAAK,EAAE;EACT,CAAC;EACDrB,SAAS,EAAE;IACTqB,KAAK,EAAE;EACT,CAAC;EACDhB,MAAM,EAAE;IACNiB,iBAAiB,EAAE,EAAE;IACrBV,eAAe,EAAE,CAAC;IAClBG,YAAY,EAAE,CAAC;IACfQ,SAAS,EAAE;EACb,CAAC;EACDjB,UAAU,EAAE;IACVe,KAAK,EAAE,MAAM;IACbH,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,107 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.LiveVoiceView = void 0;
7
- var _livevoiceSdkReactNative = require("livevoice-sdk-react-native");
8
- var _react = require("react");
9
- var _reactNative = require("react-native");
10
- var _Colors = require("../util/Colors.js");
11
- var _ChannelView = require("./ChannelView.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
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 LiveVoiceView = ({
25
- isDarkMode
26
- }) => {
27
- const [uiState, setUiState] = (0, _react.useState)(() => (0, _livevoiceSdkReactNative.getCurrentUiState)());
28
- (0, _react.useEffect)(() => {
29
- let subscription = (0, _livevoiceSdkReactNative.onUiStateChanged)(data => {
30
- setUiState(data);
31
- });
32
- return () => {
33
- subscription?.remove();
34
- subscription = undefined;
35
- };
36
- }, []);
37
- (0, _react.useEffect)(() => {
38
- let subscription = (0, _livevoiceSdkReactNative.onAvailableSubtitleConfigsChanged)(data => {
39
- console.log('available subtitles changed!' + JSON.stringify(data));
40
- });
41
- return () => {
42
- subscription?.remove();
43
- subscription = undefined;
44
- };
45
- }, []);
46
- (0, _react.useEffect)(() => {
47
- let subscription = (0, _livevoiceSdkReactNative.onSubtitlesChanged)(data => {
48
- console.log('subtitles changed!' + JSON.stringify(data));
49
- });
50
- return () => {
51
- subscription?.remove();
52
- subscription = undefined;
53
- };
54
- }, []);
55
- const claims = (0, _livevoiceSdkReactNative.getCurrentClaims)();
56
- switch (uiState.type) {
57
- case 'ready':
58
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
59
- children: [uiState.channels.map((channel, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChannelView.ChannelView, {
60
- playingState: channel.playingState,
61
- isDarkMode: isDarkMode,
62
- muted: channel.isAudioMuted,
63
- isOnline: channel.isOnline,
64
- aiSpeaker: channel.isAiSpeaker,
65
- channelName: channel.name,
66
- onPress: () => channel.playingState === 'PLAYING' ? (0, _livevoiceSdkReactNative.stopChannel)() : (0, _livevoiceSdkReactNative.startChannel)(channel.id)
67
- }, index)), (claims === null || !claims.hideBranding) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_livevoiceSdkReactNative.BrandingView, {
68
- isDarkMode: isDarkMode
69
- })]
70
- });
71
- case 'loading':
72
- const backgroundColor = isDarkMode ? _Colors.COLORS.cardBgDark : _Colors.COLORS.cardBg;
73
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
74
- style: {
75
- width: '100%',
76
- padding: 10,
77
- borderRadius: 8,
78
- justifyContent: 'center',
79
- alignItems: 'center',
80
- backgroundColor: backgroundColor
81
- },
82
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
83
- size: 40,
84
- color: _Colors.COLORS.primary
85
- })
86
- });
87
- case 'error':
88
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_livevoiceSdkReactNative.ErrorView, {
89
- state: uiState,
90
- onPress: () => {
91
- (0, _livevoiceSdkReactNative.reconnect)();
92
- }
93
- });
94
- case 'reconnecting':
95
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_livevoiceSdkReactNative.ReconnectingView, {
96
- state: uiState,
97
- onPress: () => {
98
- (0, _livevoiceSdkReactNative.reconnect)();
99
- }
100
- });
101
- default:
102
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {});
103
- }
104
- };
105
- exports.LiveVoiceView = LiveVoiceView;
106
- var _default = exports.default = LiveVoiceView;
107
- //# sourceMappingURL=LiveVoiceView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_livevoiceSdkReactNative","require","_react","_reactNative","_Colors","_ChannelView","_jsxRuntime","LiveVoiceView","isDarkMode","uiState","setUiState","useState","getCurrentUiState","useEffect","subscription","onUiStateChanged","data","remove","undefined","onAvailableSubtitleConfigsChanged","console","log","JSON","stringify","onSubtitlesChanged","claims","getCurrentClaims","type","jsxs","View","children","channels","map","channel","index","jsx","ChannelView","playingState","muted","isAudioMuted","isOnline","aiSpeaker","isAiSpeaker","channelName","name","onPress","stopChannel","startChannel","id","hideBranding","BrandingView","backgroundColor","COLORS","cardBgDark","cardBg","style","width","padding","borderRadius","justifyContent","alignItems","ActivityIndicator","size","color","primary","ErrorView","state","reconnect","ReconnectingView","exports","_default","default"],"sourceRoot":"../../../src","sources":["components/LiveVoiceView.tsx"],"mappings":";;;;;;AAWA,IAAAA,wBAAA,GAAAC,OAAA;AAgBA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,YAAA,GAAAJ,OAAA;AAA4C,IAAAK,WAAA,GAAAL,OAAA;AAhC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6BO,MAAMM,aAA2C,GAAGA,CAAC;EAAEC;AAAW,CAAC,KAAK;EAC7E,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAAW,MAAM,IAAAC,0CAAiB,EAAC,CAAE,CAAC;EAE5E,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIC,YAAiD,GACnD,IAAAC,yCAAgB,EAAEC,IAAa,IAAK;MAClCN,UAAU,CAACM,IAAI,CAAC;IAClB,CAAC,CAAC;IACJ,OAAO,MAAM;MACXF,YAAY,EAAEG,MAAM,CAAC,CAAC;MACtBH,YAAY,GAAGI,SAAS;IAC1B,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,IAAAL,gBAAS,EAAC,MAAM;IACd,IAAIC,YAAiD,GACnD,IAAAK,0DAAiC,EAAEH,IAA8B,IAAK;MACpEI,OAAO,CAACC,GAAG,CAAC,8BAA8B,GAAGC,IAAI,CAACC,SAAS,CAACP,IAAI,CAAC,CAAC;IACpE,CAAC,CAAC;IACJ,OAAO,MAAM;MACXF,YAAY,EAAEG,MAAM,CAAC,CAAC;MACtBH,YAAY,GAAGI,SAAS;IAC1B,CAAC;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Module", {
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
@@ -1 +0,0 @@
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;MACtCyB,KAAK,EAAE,CAAC;QAACG,SAAS,EAAEb,SAAS;QAAEc,KAAK,EAAE,EAAE;QAAEC,MAAM,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AqB;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":[]}
@@ -1,109 +0,0 @@
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
@@ -1 +0,0 @@
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,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM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