@multiplayer-app/session-recorder-react-native 1.3.36 → 2.0.17-alpha.10

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 (289) hide show
  1. package/package.json +13 -8
  2. package/src/NativeSessionRecorderModule.ts +4 -2
  3. package/src/NativeSessionRecorderModuleSpec.ts +4 -2
  4. package/src/NativeSessionRecorderNative.ts +1 -1
  5. package/src/index.ts +0 -1
  6. package/src/native/SessionRecorderNative.ts +22 -13
  7. package/src/otel/helpers.ts +5 -1
  8. package/src/otel/index.ts +1 -1
  9. package/src/otel/instrumentations/index.ts +22 -22
  10. package/src/patch/configs.ts +15 -10
  11. package/src/patch/fetch.ts +98 -89
  12. package/src/patch/index.ts +1 -1
  13. package/src/patch/xhr.ts +3 -4
  14. package/src/services/screenRecordingService.ts +7 -2
  15. package/src/services/storage.service.ts +4 -1
  16. package/src/session-recorder.ts +4 -0
  17. package/src/types/configs.ts +1 -2
  18. package/lib/module/NativeSessionRecorderModule.js +0 -5
  19. package/lib/module/NativeSessionRecorderModule.js.map +0 -1
  20. package/lib/module/NativeSessionRecorderModuleSpec.js +0 -5
  21. package/lib/module/NativeSessionRecorderModuleSpec.js.map +0 -1
  22. package/lib/module/NativeSessionRecorderNative.js +0 -5
  23. package/lib/module/NativeSessionRecorderNative.js.map +0 -1
  24. package/lib/module/components/ErrorBoundary.js +0 -32
  25. package/lib/module/components/ErrorBoundary.js.map +0 -1
  26. package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js +0 -23
  27. package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js.map +0 -1
  28. package/lib/module/components/ScreenRecorderView/index.js +0 -4
  29. package/lib/module/components/ScreenRecorderView/index.js.map +0 -1
  30. package/lib/module/components/SessionRecorderWidget/ErrorBanner.js +0 -64
  31. package/lib/module/components/SessionRecorderWidget/ErrorBanner.js.map +0 -1
  32. package/lib/module/components/SessionRecorderWidget/FinalPopover.js +0 -74
  33. package/lib/module/components/SessionRecorderWidget/FinalPopover.js.map +0 -1
  34. package/lib/module/components/SessionRecorderWidget/FloatingButton.js +0 -191
  35. package/lib/module/components/SessionRecorderWidget/FloatingButton.js.map +0 -1
  36. package/lib/module/components/SessionRecorderWidget/InitialPopover.js +0 -138
  37. package/lib/module/components/SessionRecorderWidget/InitialPopover.js.map +0 -1
  38. package/lib/module/components/SessionRecorderWidget/ModalContainer.js +0 -177
  39. package/lib/module/components/SessionRecorderWidget/ModalContainer.js.map +0 -1
  40. package/lib/module/components/SessionRecorderWidget/ModalHeader.js +0 -27
  41. package/lib/module/components/SessionRecorderWidget/ModalHeader.js.map +0 -1
  42. package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js +0 -133
  43. package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js.map +0 -1
  44. package/lib/module/components/SessionRecorderWidget/icons.js +0 -93
  45. package/lib/module/components/SessionRecorderWidget/icons.js.map +0 -1
  46. package/lib/module/components/SessionRecorderWidget/index.js +0 -5
  47. package/lib/module/components/SessionRecorderWidget/index.js.map +0 -1
  48. package/lib/module/components/SessionRecorderWidget/styles.js +0 -173
  49. package/lib/module/components/SessionRecorderWidget/styles.js.map +0 -1
  50. package/lib/module/components/index.js +0 -6
  51. package/lib/module/components/index.js.map +0 -1
  52. package/lib/module/config/constants.js +0 -47
  53. package/lib/module/config/constants.js.map +0 -1
  54. package/lib/module/config/defaults.js +0 -87
  55. package/lib/module/config/defaults.js.map +0 -1
  56. package/lib/module/config/index.js +0 -9
  57. package/lib/module/config/index.js.map +0 -1
  58. package/lib/module/config/masking.js +0 -35
  59. package/lib/module/config/masking.js.map +0 -1
  60. package/lib/module/config/session-recorder.js +0 -50
  61. package/lib/module/config/session-recorder.js.map +0 -1
  62. package/lib/module/config/validators.js +0 -28
  63. package/lib/module/config/validators.js.map +0 -1
  64. package/lib/module/config/widget.js +0 -35
  65. package/lib/module/config/widget.js.map +0 -1
  66. package/lib/module/context/SessionRecorderContext.js +0 -100
  67. package/lib/module/context/SessionRecorderContext.js.map +0 -1
  68. package/lib/module/context/SessionRecorderStore.js +0 -12
  69. package/lib/module/context/SessionRecorderStore.js.map +0 -1
  70. package/lib/module/context/createStore.js +0 -27
  71. package/lib/module/context/createStore.js.map +0 -1
  72. package/lib/module/context/useSessionRecorderStore.js +0 -45
  73. package/lib/module/context/useSessionRecorderStore.js.map +0 -1
  74. package/lib/module/context/useStoreSelector.js +0 -27
  75. package/lib/module/context/useStoreSelector.js.map +0 -1
  76. package/lib/module/index.js +0 -14
  77. package/lib/module/index.js.map +0 -1
  78. package/lib/module/native/SessionRecorderNative.js +0 -76
  79. package/lib/module/native/SessionRecorderNative.js.map +0 -1
  80. package/lib/module/native/index.js +0 -4
  81. package/lib/module/native/index.js.map +0 -1
  82. package/lib/module/otel/CrashBufferSpanProcessor.js +0 -42
  83. package/lib/module/otel/CrashBufferSpanProcessor.js.map +0 -1
  84. package/lib/module/otel/helpers.js +0 -218
  85. package/lib/module/otel/helpers.js.map +0 -1
  86. package/lib/module/otel/index.js +0 -202
  87. package/lib/module/otel/index.js.map +0 -1
  88. package/lib/module/otel/instrumentations/index.js +0 -122
  89. package/lib/module/otel/instrumentations/index.js.map +0 -1
  90. package/lib/module/package.json +0 -1
  91. package/lib/module/patch/configs.js +0 -18
  92. package/lib/module/patch/configs.js.map +0 -1
  93. package/lib/module/patch/fetch.js +0 -224
  94. package/lib/module/patch/fetch.js.map +0 -1
  95. package/lib/module/patch/index.js +0 -6
  96. package/lib/module/patch/index.js.map +0 -1
  97. package/lib/module/patch/xhr.js +0 -100
  98. package/lib/module/patch/xhr.js.map +0 -1
  99. package/lib/module/recorder/gestureRecorder.js +0 -641
  100. package/lib/module/recorder/gestureRecorder.js.map +0 -1
  101. package/lib/module/recorder/index.js +0 -176
  102. package/lib/module/recorder/index.js.map +0 -1
  103. package/lib/module/recorder/navigationRecorder.js +0 -238
  104. package/lib/module/recorder/navigationRecorder.js.map +0 -1
  105. package/lib/module/recorder/screenRecorder.js +0 -527
  106. package/lib/module/recorder/screenRecorder.js.map +0 -1
  107. package/lib/module/services/api.service.js +0 -166
  108. package/lib/module/services/api.service.js.map +0 -1
  109. package/lib/module/services/crashBuffer.service.js +0 -280
  110. package/lib/module/services/crashBuffer.service.js.map +0 -1
  111. package/lib/module/services/network.service.js +0 -178
  112. package/lib/module/services/network.service.js.map +0 -1
  113. package/lib/module/services/screenRecordingService.js +0 -107
  114. package/lib/module/services/screenRecordingService.js.map +0 -1
  115. package/lib/module/services/socket.service.js +0 -186
  116. package/lib/module/services/socket.service.js.map +0 -1
  117. package/lib/module/services/storage.service.js +0 -178
  118. package/lib/module/services/storage.service.js.map +0 -1
  119. package/lib/module/session-recorder.js +0 -750
  120. package/lib/module/session-recorder.js.map +0 -1
  121. package/lib/module/types/configs.js +0 -4
  122. package/lib/module/types/configs.js.map +0 -1
  123. package/lib/module/types/expo-constants.d.js +0 -2
  124. package/lib/module/types/expo-constants.d.js.map +0 -1
  125. package/lib/module/types/index.js +0 -10
  126. package/lib/module/types/index.js.map +0 -1
  127. package/lib/module/types/session-recorder.js +0 -68
  128. package/lib/module/types/session-recorder.js.map +0 -1
  129. package/lib/module/utils/app-metadata.js +0 -28
  130. package/lib/module/utils/app-metadata.js.map +0 -1
  131. package/lib/module/utils/constants.optional.expo.js +0 -6
  132. package/lib/module/utils/constants.optional.expo.js.map +0 -1
  133. package/lib/module/utils/constants.optional.js +0 -8
  134. package/lib/module/utils/constants.optional.js.map +0 -1
  135. package/lib/module/utils/index.js +0 -11
  136. package/lib/module/utils/index.js.map +0 -1
  137. package/lib/module/utils/logger.js +0 -185
  138. package/lib/module/utils/logger.js.map +0 -1
  139. package/lib/module/utils/platform.js +0 -340
  140. package/lib/module/utils/platform.js.map +0 -1
  141. package/lib/module/utils/request-utils.js +0 -58
  142. package/lib/module/utils/request-utils.js.map +0 -1
  143. package/lib/module/utils/rrweb-events.js +0 -276
  144. package/lib/module/utils/rrweb-events.js.map +0 -1
  145. package/lib/module/utils/session.js +0 -21
  146. package/lib/module/utils/session.js.map +0 -1
  147. package/lib/module/utils/shallowEqual.js +0 -17
  148. package/lib/module/utils/shallowEqual.js.map +0 -1
  149. package/lib/module/utils/time.js +0 -17
  150. package/lib/module/utils/time.js.map +0 -1
  151. package/lib/module/utils/type-utils.js +0 -69
  152. package/lib/module/utils/type-utils.js.map +0 -1
  153. package/lib/module/version.js +0 -4
  154. package/lib/module/version.js.map +0 -1
  155. package/lib/typescript/package.json +0 -1
  156. package/lib/typescript/src/NativeSessionRecorderModule.d.ts +0 -25
  157. package/lib/typescript/src/NativeSessionRecorderModule.d.ts.map +0 -1
  158. package/lib/typescript/src/NativeSessionRecorderModuleSpec.d.ts +0 -25
  159. package/lib/typescript/src/NativeSessionRecorderModuleSpec.d.ts.map +0 -1
  160. package/lib/typescript/src/NativeSessionRecorderNative.d.ts +0 -25
  161. package/lib/typescript/src/NativeSessionRecorderNative.d.ts.map +0 -1
  162. package/lib/typescript/src/components/ErrorBoundary.d.ts +0 -16
  163. package/lib/typescript/src/components/ErrorBoundary.d.ts.map +0 -1
  164. package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts +0 -6
  165. package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts.map +0 -1
  166. package/lib/typescript/src/components/ScreenRecorderView/index.d.ts +0 -2
  167. package/lib/typescript/src/components/ScreenRecorderView/index.d.ts.map +0 -1
  168. package/lib/typescript/src/components/SessionRecorderWidget/ErrorBanner.d.ts +0 -8
  169. package/lib/typescript/src/components/SessionRecorderWidget/ErrorBanner.d.ts.map +0 -1
  170. package/lib/typescript/src/components/SessionRecorderWidget/FinalPopover.d.ts +0 -13
  171. package/lib/typescript/src/components/SessionRecorderWidget/FinalPopover.d.ts.map +0 -1
  172. package/lib/typescript/src/components/SessionRecorderWidget/FloatingButton.d.ts +0 -9
  173. package/lib/typescript/src/components/SessionRecorderWidget/FloatingButton.d.ts.map +0 -1
  174. package/lib/typescript/src/components/SessionRecorderWidget/InitialPopover.d.ts +0 -17
  175. package/lib/typescript/src/components/SessionRecorderWidget/InitialPopover.d.ts.map +0 -1
  176. package/lib/typescript/src/components/SessionRecorderWidget/ModalContainer.d.ts +0 -9
  177. package/lib/typescript/src/components/SessionRecorderWidget/ModalContainer.d.ts.map +0 -1
  178. package/lib/typescript/src/components/SessionRecorderWidget/ModalHeader.d.ts +0 -7
  179. package/lib/typescript/src/components/SessionRecorderWidget/ModalHeader.d.ts.map +0 -1
  180. package/lib/typescript/src/components/SessionRecorderWidget/SessionRecorderWidget.d.ts +0 -6
  181. package/lib/typescript/src/components/SessionRecorderWidget/SessionRecorderWidget.d.ts.map +0 -1
  182. package/lib/typescript/src/components/SessionRecorderWidget/icons.d.ts +0 -12
  183. package/lib/typescript/src/components/SessionRecorderWidget/icons.d.ts.map +0 -1
  184. package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts +0 -3
  185. package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts.map +0 -1
  186. package/lib/typescript/src/components/SessionRecorderWidget/styles.d.ts +0 -166
  187. package/lib/typescript/src/components/SessionRecorderWidget/styles.d.ts.map +0 -1
  188. package/lib/typescript/src/components/index.d.ts +0 -4
  189. package/lib/typescript/src/components/index.d.ts.map +0 -1
  190. package/lib/typescript/src/config/constants.d.ts +0 -22
  191. package/lib/typescript/src/config/constants.d.ts.map +0 -1
  192. package/lib/typescript/src/config/defaults.d.ts +0 -5
  193. package/lib/typescript/src/config/defaults.d.ts.map +0 -1
  194. package/lib/typescript/src/config/index.d.ts +0 -6
  195. package/lib/typescript/src/config/index.d.ts.map +0 -1
  196. package/lib/typescript/src/config/masking.d.ts +0 -3
  197. package/lib/typescript/src/config/masking.d.ts.map +0 -1
  198. package/lib/typescript/src/config/session-recorder.d.ts +0 -3
  199. package/lib/typescript/src/config/session-recorder.d.ts.map +0 -1
  200. package/lib/typescript/src/config/validators.d.ts +0 -11
  201. package/lib/typescript/src/config/validators.d.ts.map +0 -1
  202. package/lib/typescript/src/config/widget.d.ts +0 -10
  203. package/lib/typescript/src/config/widget.d.ts.map +0 -1
  204. package/lib/typescript/src/context/SessionRecorderContext.d.ts +0 -22
  205. package/lib/typescript/src/context/SessionRecorderContext.d.ts.map +0 -1
  206. package/lib/typescript/src/context/SessionRecorderStore.d.ts +0 -13
  207. package/lib/typescript/src/context/SessionRecorderStore.d.ts.map +0 -1
  208. package/lib/typescript/src/context/createStore.d.ts +0 -9
  209. package/lib/typescript/src/context/createStore.d.ts.map +0 -1
  210. package/lib/typescript/src/context/useSessionRecorderStore.d.ts +0 -29
  211. package/lib/typescript/src/context/useSessionRecorderStore.d.ts.map +0 -1
  212. package/lib/typescript/src/context/useStoreSelector.d.ts +0 -5
  213. package/lib/typescript/src/context/useStoreSelector.d.ts.map +0 -1
  214. package/lib/typescript/src/index.d.ts +0 -9
  215. package/lib/typescript/src/index.d.ts.map +0 -1
  216. package/lib/typescript/src/native/SessionRecorderNative.d.ts +0 -29
  217. package/lib/typescript/src/native/SessionRecorderNative.d.ts.map +0 -1
  218. package/lib/typescript/src/native/index.d.ts +0 -2
  219. package/lib/typescript/src/native/index.d.ts.map +0 -1
  220. package/lib/typescript/src/otel/CrashBufferSpanProcessor.d.ts +0 -17
  221. package/lib/typescript/src/otel/CrashBufferSpanProcessor.d.ts.map +0 -1
  222. package/lib/typescript/src/otel/helpers.d.ts +0 -46
  223. package/lib/typescript/src/otel/helpers.d.ts.map +0 -1
  224. package/lib/typescript/src/otel/index.d.ts +0 -33
  225. package/lib/typescript/src/otel/index.d.ts.map +0 -1
  226. package/lib/typescript/src/otel/instrumentations/index.d.ts +0 -5
  227. package/lib/typescript/src/otel/instrumentations/index.d.ts.map +0 -1
  228. package/lib/typescript/src/patch/configs.d.ts +0 -9
  229. package/lib/typescript/src/patch/configs.d.ts.map +0 -1
  230. package/lib/typescript/src/patch/fetch.d.ts +0 -2
  231. package/lib/typescript/src/patch/fetch.d.ts.map +0 -1
  232. package/lib/typescript/src/patch/index.d.ts +0 -4
  233. package/lib/typescript/src/patch/index.d.ts.map +0 -1
  234. package/lib/typescript/src/patch/xhr.d.ts +0 -2
  235. package/lib/typescript/src/patch/xhr.d.ts.map +0 -1
  236. package/lib/typescript/src/recorder/gestureRecorder.d.ts +0 -66
  237. package/lib/typescript/src/recorder/gestureRecorder.d.ts.map +0 -1
  238. package/lib/typescript/src/recorder/index.d.ts +0 -79
  239. package/lib/typescript/src/recorder/index.d.ts.map +0 -1
  240. package/lib/typescript/src/recorder/navigationRecorder.d.ts +0 -29
  241. package/lib/typescript/src/recorder/navigationRecorder.d.ts.map +0 -1
  242. package/lib/typescript/src/recorder/screenRecorder.d.ts +0 -127
  243. package/lib/typescript/src/recorder/screenRecorder.d.ts.map +0 -1
  244. package/lib/typescript/src/services/api.service.d.ts +0 -116
  245. package/lib/typescript/src/services/api.service.d.ts.map +0 -1
  246. package/lib/typescript/src/services/crashBuffer.service.d.ts +0 -27
  247. package/lib/typescript/src/services/crashBuffer.service.d.ts.map +0 -1
  248. package/lib/typescript/src/services/network.service.d.ts +0 -47
  249. package/lib/typescript/src/services/network.service.d.ts.map +0 -1
  250. package/lib/typescript/src/services/screenRecordingService.d.ts +0 -48
  251. package/lib/typescript/src/services/screenRecordingService.d.ts.map +0 -1
  252. package/lib/typescript/src/services/socket.service.d.ts +0 -44
  253. package/lib/typescript/src/services/socket.service.d.ts.map +0 -1
  254. package/lib/typescript/src/services/storage.service.d.ts +0 -47
  255. package/lib/typescript/src/services/storage.service.d.ts.map +0 -1
  256. package/lib/typescript/src/session-recorder.d.ts +0 -191
  257. package/lib/typescript/src/session-recorder.d.ts.map +0 -1
  258. package/lib/typescript/src/types/configs.d.ts +0 -92
  259. package/lib/typescript/src/types/configs.d.ts.map +0 -1
  260. package/lib/typescript/src/types/index.d.ts +0 -21
  261. package/lib/typescript/src/types/index.d.ts.map +0 -1
  262. package/lib/typescript/src/types/session-recorder.d.ts +0 -367
  263. package/lib/typescript/src/types/session-recorder.d.ts.map +0 -1
  264. package/lib/typescript/src/utils/app-metadata.d.ts +0 -17
  265. package/lib/typescript/src/utils/app-metadata.d.ts.map +0 -1
  266. package/lib/typescript/src/utils/constants.optional.d.ts +0 -22
  267. package/lib/typescript/src/utils/constants.optional.d.ts.map +0 -1
  268. package/lib/typescript/src/utils/constants.optional.expo.d.ts +0 -4
  269. package/lib/typescript/src/utils/constants.optional.expo.d.ts.map +0 -1
  270. package/lib/typescript/src/utils/index.d.ts +0 -8
  271. package/lib/typescript/src/utils/index.d.ts.map +0 -1
  272. package/lib/typescript/src/utils/logger.d.ts +0 -108
  273. package/lib/typescript/src/utils/logger.d.ts.map +0 -1
  274. package/lib/typescript/src/utils/platform.d.ts +0 -58
  275. package/lib/typescript/src/utils/platform.d.ts.map +0 -1
  276. package/lib/typescript/src/utils/request-utils.d.ts +0 -22
  277. package/lib/typescript/src/utils/request-utils.d.ts.map +0 -1
  278. package/lib/typescript/src/utils/rrweb-events.d.ts +0 -67
  279. package/lib/typescript/src/utils/rrweb-events.d.ts.map +0 -1
  280. package/lib/typescript/src/utils/session.d.ts +0 -7
  281. package/lib/typescript/src/utils/session.d.ts.map +0 -1
  282. package/lib/typescript/src/utils/shallowEqual.d.ts +0 -2
  283. package/lib/typescript/src/utils/shallowEqual.d.ts.map +0 -1
  284. package/lib/typescript/src/utils/time.d.ts +0 -5
  285. package/lib/typescript/src/utils/time.d.ts.map +0 -1
  286. package/lib/typescript/src/utils/type-utils.d.ts +0 -17
  287. package/lib/typescript/src/utils/type-utils.d.ts.map +0 -1
  288. package/lib/typescript/src/version.d.ts +0 -2
  289. package/lib/typescript/src/version.d.ts.map +0 -1
@@ -1,138 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useMemo, useState } from 'react';
4
- import { View, Text, Pressable, Switch } from 'react-native';
5
- import { SessionType } from '@multiplayer-app/session-recorder-common';
6
- import { sharedStyles } from "./styles.js";
7
- import ModalHeader from "./ModalHeader.js";
8
- import { CapturingIcon } from "./icons.js";
9
- import { logger } from "../../utils/index.js";
10
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
11
- const InitialPopover = ({
12
- isContinuous,
13
- textOverrides,
14
- showContinuousRecording,
15
- onStartRecording,
16
- onStopRecording,
17
- onSaveContinuousSession,
18
- isOnline,
19
- children
20
- }) => {
21
- const [saving, setSaving] = useState(false);
22
- const [loading, setLoading] = useState(false);
23
- const [continuousRecording, setContinuousRecording] = useState(isContinuous);
24
- const handleStartRecording = async () => {
25
- try {
26
- setLoading(true);
27
- await onStartRecording(SessionType.MANUAL);
28
- } catch (error) {
29
- logger.error('InitialPopover', 'Failed to start recording', error);
30
- } finally {
31
- setLoading(false);
32
- }
33
- };
34
- const handleToggleContinuousRecording = async value => {
35
- try {
36
- setLoading(true);
37
- setContinuousRecording(value);
38
- if (value) {
39
- await onStartRecording(SessionType.CONTINUOUS);
40
- } else {
41
- await onStopRecording();
42
- }
43
- } catch (error) {
44
- logger.error('InitialPopover', 'Failed to toggle continuous recording', error);
45
- } finally {
46
- setLoading(false);
47
- }
48
- };
49
- const handleSaveContinuousSession = async () => {
50
- try {
51
- setSaving(true);
52
- await onSaveContinuousSession();
53
- } catch (error) {
54
- logger.error('InitialPopover', 'Failed to save continuous session', error);
55
- } finally {
56
- setSaving(false);
57
- }
58
- };
59
- const textContent = useMemo(() => {
60
- return {
61
- label: textOverrides.continuousRecordingLabel,
62
- title: showContinuousRecording ? textOverrides.initialTitleWithContinuous : textOverrides.initialTitleWithoutContinuous,
63
- description: showContinuousRecording ? textOverrides.initialDescriptionWithContinuous : textOverrides.initialDescriptionWithoutContinuous
64
- };
65
- }, [showContinuousRecording, textOverrides]);
66
- return /*#__PURE__*/_jsxs(View, {
67
- style: sharedStyles.popoverContent,
68
- children: [/*#__PURE__*/_jsx(ModalHeader, {}), /*#__PURE__*/_jsxs(View, {
69
- style: sharedStyles.popoverBody,
70
- children: [children, showContinuousRecording && /*#__PURE__*/_jsxs(View, {
71
- style: sharedStyles.continuousRecordingSection,
72
- children: [/*#__PURE__*/_jsx(Text, {
73
- style: sharedStyles.continuousRecordingLabel,
74
- children: textContent.label
75
- }), /*#__PURE__*/_jsx(Switch, {
76
- disabled: loading || !isOnline,
77
- value: continuousRecording,
78
- ios_backgroundColor: "#e2e8f0",
79
- onValueChange: handleToggleContinuousRecording,
80
- trackColor: {
81
- false: '#e2e8f0',
82
- true: '#493bff'
83
- },
84
- thumbColor: '#ffffff'
85
- })]
86
- }), !continuousRecording ? /*#__PURE__*/_jsxs(_Fragment, {
87
- children: [/*#__PURE__*/_jsx(Text, {
88
- style: sharedStyles.title,
89
- children: textContent.title
90
- }), /*#__PURE__*/_jsx(Text, {
91
- style: sharedStyles.description,
92
- children: textContent.description
93
- }), /*#__PURE__*/_jsx(View, {
94
- style: sharedStyles.popoverFooter,
95
- children: /*#__PURE__*/_jsx(Pressable, {
96
- disabled: loading || !isOnline,
97
- onPress: handleStartRecording,
98
- style: [sharedStyles.actionButton, sharedStyles.startButton],
99
- children: /*#__PURE__*/_jsx(Text, {
100
- style: sharedStyles.actionButtonText,
101
- children: loading ? 'Starting to record...' : textOverrides.startRecordingButtonText
102
- })
103
- })
104
- })]
105
- }) : /*#__PURE__*/_jsxs(_Fragment, {
106
- children: [/*#__PURE__*/_jsxs(View, {
107
- style: sharedStyles.continuousOverlay,
108
- children: [/*#__PURE__*/_jsxs(View, {
109
- style: sharedStyles.continuousOverlayHeader,
110
- children: [/*#__PURE__*/_jsx(CapturingIcon, {
111
- size: 20,
112
- color: "red"
113
- }), /*#__PURE__*/_jsx(Text, {
114
- style: sharedStyles.continuousOverlayTitle,
115
- children: textOverrides.continuousOverlayTitle
116
- })]
117
- }), /*#__PURE__*/_jsx(Text, {
118
- style: sharedStyles.continuousOverlayDescription,
119
- children: textOverrides.continuousOverlayDescription
120
- })]
121
- }), /*#__PURE__*/_jsx(View, {
122
- style: sharedStyles.popoverFooter,
123
- children: /*#__PURE__*/_jsx(Pressable, {
124
- disabled: saving || !isOnline,
125
- onPress: handleSaveContinuousSession,
126
- style: [sharedStyles.actionButton, sharedStyles.saveButton],
127
- children: /*#__PURE__*/_jsx(Text, {
128
- style: sharedStyles.actionButtonText,
129
- children: saving ? 'Saving...' : textOverrides.saveLastSnapshotButtonText
130
- })
131
- })
132
- })]
133
- })]
134
- })]
135
- });
136
- };
137
- export default InitialPopover;
138
- //# sourceMappingURL=InitialPopover.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useMemo","useState","View","Text","Pressable","Switch","SessionType","sharedStyles","ModalHeader","CapturingIcon","logger","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","InitialPopover","isContinuous","textOverrides","showContinuousRecording","onStartRecording","onStopRecording","onSaveContinuousSession","isOnline","children","saving","setSaving","loading","setLoading","continuousRecording","setContinuousRecording","handleStartRecording","MANUAL","error","handleToggleContinuousRecording","value","CONTINUOUS","handleSaveContinuousSession","textContent","label","continuousRecordingLabel","title","initialTitleWithContinuous","initialTitleWithoutContinuous","description","initialDescriptionWithContinuous","initialDescriptionWithoutContinuous","style","popoverContent","popoverBody","continuousRecordingSection","disabled","ios_backgroundColor","onValueChange","trackColor","false","true","thumbColor","popoverFooter","onPress","actionButton","startButton","actionButtonText","startRecordingButtonText","continuousOverlay","continuousOverlayHeader","size","color","continuousOverlayTitle","continuousOverlayDescription","saveButton","saveLastSnapshotButtonText"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/InitialPopover.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAChD,SAASC,IAAI,EAAEC,IAAI,EAAEC,SAAS,EAAEC,MAAM,QAAQ,cAAc;AAC5D,SAASC,WAAW,QAAQ,0CAA0C;AAEtE,SAASC,YAAY,QAAQ,aAAU;AACvC,OAAOC,WAAW,MAAM,kBAAe;AACvC,SAASC,aAAa,QAAQ,YAAS;AACvC,SAASC,MAAM,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAA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cAAC6C,KAAK,EAAEzC,YAAY,CAAC8D,sBAAuB;cAAA5C,QAAA,EAC9CN,aAAa,CAACkD;YAAsB,CACjC,CAAC;UAAA,CACH,CAAC,eACPzD,IAAA,CAACT,IAAI;YAAC6C,KAAK,EAAEzC,YAAY,CAAC+D,4BAA6B;YAAA7C,QAAA,EACpDN,aAAa,CAACmD;UAA4B,CACvC,CAAC;QAAA,CACH,CAAC,eACP1D,IAAA,CAACV,IAAI;UAAC8C,KAAK,EAAEzC,YAAY,CAACoD,aAAc;UAAAlC,QAAA,eACtCb,IAAA,CAACR,SAAS;YACRgD,QAAQ,EAAE1B,MAAM,IAAI,CAACF,QAAS;YAC9BoC,OAAO,EAAEtB,2BAA4B;YACrCU,KAAK,EAAE,CAACzC,YAAY,CAACsD,YAAY,EAAEtD,YAAY,CAACgE,UAAU,CAAE;YAAA9C,QAAA,eAE5Db,IAAA,CAACT,IAAI;cAAC6C,KAAK,EAAEzC,YAAY,CAACwD,gBAAiB;cAAAtC,QAAA,EACxCC,MAAM,GACH,WAAW,GACXP,aAAa,CAACqD;YAA0B,CACxC;UAAC,CACE;QAAC,CACR,CAAC;MAAA,CACP,CACH;IAAA,CACG,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,eAAevD,cAAc","ignoreList":[]}
@@ -1,177 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useEffect, useRef, useState } from 'react';
4
- import { Animated, Pressable, StyleSheet, Dimensions, Modal, PanResponder, Platform } from 'react-native';
5
- import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
6
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- const {
8
- height: SCREEN_HEIGHT
9
- } = Dimensions.get('window');
10
- const MODAL_HEIGHT = SCREEN_HEIGHT * 0.7;
11
- const ModalContainer = ({
12
- isVisible,
13
- onClose,
14
- children
15
- }) => {
16
- const fadeAnim = useRef(new Animated.Value(0)).current;
17
- const translateY = useRef(new Animated.Value(0)).current;
18
- const [visible, setVisible] = useState(isVisible);
19
- const SWIPE_THRESHOLD = 100; // Distance to trigger close
20
-
21
- const animateClose = () => {
22
- Animated.parallel([Animated.timing(fadeAnim, {
23
- toValue: 0,
24
- duration: 250,
25
- useNativeDriver: true
26
- }), Animated.timing(translateY, {
27
- toValue: MODAL_HEIGHT,
28
- duration: 250,
29
- useNativeDriver: true
30
- })]).start(() => {
31
- setVisible(false);
32
- onClose();
33
- });
34
- };
35
- useEffect(() => {
36
- if (isVisible) {
37
- setVisible(true);
38
- // Start from bottom and animate to position
39
- translateY.setValue(MODAL_HEIGHT);
40
- Animated.parallel([Animated.timing(fadeAnim, {
41
- toValue: 1,
42
- duration: 300,
43
- useNativeDriver: true
44
- }), Animated.timing(translateY, {
45
- toValue: 0,
46
- duration: 300,
47
- useNativeDriver: true
48
- })]).start();
49
- } else if (visible) {
50
- // If external isVisible turned false, animate close then hide
51
- Animated.parallel([Animated.timing(fadeAnim, {
52
- toValue: 0,
53
- duration: 250,
54
- useNativeDriver: true
55
- }), Animated.timing(translateY, {
56
- toValue: MODAL_HEIGHT,
57
- duration: 250,
58
- useNativeDriver: true
59
- })]).start(() => {
60
- setVisible(false);
61
- });
62
- }
63
- }, [isVisible, fadeAnim, translateY, visible]);
64
-
65
- // PanResponder for swipe-to-dismiss functionality
66
- const panResponder = useRef(PanResponder.create({
67
- onStartShouldSetPanResponder: () => true,
68
- onMoveShouldSetPanResponder: (_, gestureState) => {
69
- // Only respond to downward swipes
70
- return gestureState.dy > 10;
71
- },
72
- onPanResponderGrant: () => {
73
- // Reset any ongoing animations
74
- translateY.stopAnimation();
75
- },
76
- onPanResponderMove: (_, gestureState) => {
77
- // Only allow downward movement
78
- if (gestureState.dy > 0) {
79
- translateY.setValue(gestureState.dy);
80
- }
81
- },
82
- onPanResponderRelease: (_, gestureState) => {
83
- const {
84
- dy,
85
- vy
86
- } = gestureState;
87
-
88
- // If swiped down with sufficient distance or velocity, close modal
89
- if (dy > SWIPE_THRESHOLD || vy > 500) {
90
- animateClose();
91
- } else {
92
- // Snap back to original position
93
- Animated.spring(translateY, {
94
- toValue: 0,
95
- useNativeDriver: true,
96
- tension: 100,
97
- friction: 8
98
- }).start();
99
- }
100
- }
101
- })).current;
102
- return /*#__PURE__*/_jsx(Modal, {
103
- visible: visible,
104
- transparent: true,
105
- animationType: "none",
106
- onRequestClose: onClose,
107
- children: /*#__PURE__*/_jsx(SafeAreaProvider, {
108
- children: /*#__PURE__*/_jsxs(Animated.View, {
109
- style: {
110
- ...styles.backdrop,
111
- opacity: fadeAnim
112
- },
113
- children: [/*#__PURE__*/_jsx(Pressable, {
114
- style: styles.backdropPressable,
115
- onPress: animateClose
116
- }), /*#__PURE__*/_jsx(Animated.View, {
117
- style: [styles.modal, {
118
- transform: [{
119
- translateY
120
- }]
121
- }],
122
- ...panResponder.panHandlers,
123
- children: /*#__PURE__*/_jsx(SafeAreaView, {
124
- style: styles.safeArea,
125
- edges: ['bottom'],
126
- children: children
127
- })
128
- })]
129
- })
130
- })
131
- });
132
- };
133
- const styles = StyleSheet.create({
134
- backdrop: {
135
- position: 'absolute',
136
- top: 0,
137
- left: 0,
138
- right: 0,
139
- bottom: 0,
140
- backgroundColor: 'rgba(0, 0, 0, 0.5)'
141
- },
142
- backdropPressable: {
143
- flex: 1
144
- },
145
- safeArea: {
146
- flex: 1,
147
- backgroundColor: 'white',
148
- borderTopLeftRadius: 20,
149
- borderTopRightRadius: 20
150
- },
151
- modal: {
152
- position: 'absolute',
153
- bottom: 0,
154
- left: 0,
155
- right: 0,
156
- maxHeight: MODAL_HEIGHT,
157
- backgroundColor: 'white',
158
- borderTopLeftRadius: 20,
159
- borderTopRightRadius: 20,
160
- ...Platform.select({
161
- ios: {
162
- shadowColor: '#000',
163
- shadowOffset: {
164
- width: 0,
165
- height: -2
166
- },
167
- shadowOpacity: 0.1,
168
- shadowRadius: 8
169
- },
170
- android: {
171
- elevation: 8
172
- }
173
- })
174
- }
175
- });
176
- export default ModalContainer;
177
- //# sourceMappingURL=ModalContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useEffect","useRef","useState","Animated","Pressable","StyleSheet","Dimensions","Modal","PanResponder","Platform","SafeAreaProvider","SafeAreaView","jsx","_jsx","jsxs","_jsxs","height","SCREEN_HEIGHT","get","MODAL_HEIGHT","ModalContainer","isVisible","onClose","children","fadeAnim","Value","current","translateY","visible","setVisible","SWIPE_THRESHOLD","animateClose","parallel","timing","toValue","duration","useNativeDriver","start","setValue","panResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","_","gestureState","dy","onPanResponderGrant","stopAnimation","onPanResponderMove","onPanResponderRelease","vy","spring","tension","friction","transparent","animationType","onRequestClose","View","style","styles","backdrop","opacity","backdropPressable","onPress","modal","transform","panHandlers","safeArea","edges","position","top","left","right","bottom","backgroundColor","flex","borderTopLeftRadius","borderTopRightRadius","maxHeight","select","ios","shadowColor","shadowOffset","width","shadowOpacity","shadowRadius","android","elevation"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/ModalContainer.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SACEC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,UAAU,EACVC,KAAK,EACLC,YAAY,EACZC,QAAQ,QACH,cAAc;AACrB,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,gCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhF,MAAM;EAAEC,MAAM,EAAEC;AAAc,CAAC,GAAGX,UAAU,CAACY,GAAG,CAAC,QAAQ,CAAC;AAC1D,MAAMC,YAAY,GAAGF,aAAa,GAAG,GAAG;AAQxC,MAAMG,cAA6C,GAAGA,CAAC;EACrDC,SAAS;EACTC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAMC,QAAQ,GAAGvB,MAAM,CAAC,IAAIE,QAAQ,CAACsB,KAAK,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E,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,eAAe,EAAE;EACnB,CAAC;EACDZ,iBAAiB,EAAE;IACjBa,IAAI,EAAE;EACR,CAAC;EACDR,QAAQ,EAAE;IACRQ,IAAI,EAAE,CAAC;IACPD,eAAe,EAAE,OAAO;IACxBE,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE;EACxB,CAAC;EACDb,KAAK,EAAE;IACLK,QAAQ,EAAE,UAAU;IACpBI,MAAM,EAAE,CAAC;IACTF,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRM,SAAS,EAAE3D,YAAY;IACvBuD,eAAe,EAAE,OAAO;IACxBE,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE,EAAE;IACxB,GAAGpE,QAAQ,CAACsE,MAAM,CAAC;MACjBC,GAAG,EAAE;QACHC,WAAW,EAAE,MAAM;QACnBC,YAAY,EAAE;UAAEC,KAAK,EAAE,CAAC;UAAEnE,MAAM,EAAE,CAAC;QAAE,CAAC;QACtCoE,aAAa,EAAE,GAAG;QAClBC,YAAY,EAAE;MAChB,CAAC;MACDC,OAAO,EAAE;QACPC,SAAS,EAAE;MACb;IACF,CAAC;EACH;AACF,CAAC,CAAC;AAEF,eAAenE,cAAc","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, Pressable, Linking } from 'react-native';
5
- import { sharedStyles } from "./styles.js";
6
- import { LogoIcon } from "./icons.js";
7
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
- const ModalHeader = ({
9
- children
10
- }) => {
11
- return /*#__PURE__*/_jsxs(View, {
12
- style: sharedStyles.popoverHeader,
13
- children: [/*#__PURE__*/_jsx(View, {
14
- style: sharedStyles.modalHandle
15
- }), /*#__PURE__*/_jsxs(View, {
16
- style: sharedStyles.popoverHeaderContent,
17
- children: [/*#__PURE__*/_jsx(Pressable, {
18
- onPress: () => Linking.openURL('https://www.multiplayer.app'),
19
- children: /*#__PURE__*/_jsx(LogoIcon, {
20
- size: 42
21
- })
22
- }), children]
23
- })]
24
- });
25
- };
26
- export default ModalHeader;
27
- //# sourceMappingURL=ModalHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Pressable","Linking","sharedStyles","LogoIcon","jsx","_jsx","jsxs","_jsxs","ModalHeader","children","style","popoverHeader","modalHandle","popoverHeaderContent","onPress","openURL","size"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/ModalHeader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,cAAc;AACvD,SAASC,YAAY,QAAQ,aAAU;AACvC,SAASC,QAAQ,QAAQ,YAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMnC,MAAMC,WAAuC,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EAChE,oBACEF,KAAA,CAACR,IAAI;IAACW,KAAK,EAAER,YAAY,CAACS,aAAc;IAAAF,QAAA,gBACtCJ,IAAA,CAACN,IAAI;MAACW,KAAK,EAAER,YAAY,CAACU;IAAY,CAAE,CAAC,eACzCL,KAAA,CAACR,IAAI;MAACW,KAAK,EAAER,YAAY,CAACW,oBAAqB;MAAAJ,QAAA,gBAC7CJ,IAAA,CAACL,SAAS;QACRc,OAAO,EAAEA,CAAA,KAAMb,OAAO,CAACc,OAAO,CAAC,6BAA6B,CAAE;QAAAN,QAAA,eAE9DJ,IAAA,CAACF,QAAQ;UAACa,IAAI,EAAE;QAAG,CAAE;MAAC,CACb,CAAC,EACXP,QAAQ;IAAA,CACL,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,eAAeD,WAAW","ignoreList":[]}
@@ -1,133 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useState, useCallback, memo } from 'react';
4
- import { View, StyleSheet } from 'react-native';
5
- import { SessionState } from "../../types/index.js";
6
- import { SessionType } from '@multiplayer-app/session-recorder-common';
7
- import { useSessionRecorder } from "../../context/SessionRecorderContext.js";
8
- import FinalPopover from "./FinalPopover.js";
9
- import ModalContainer from "./ModalContainer.js";
10
- import InitialPopover from "./InitialPopover.js";
11
- import FloatingButton from "./FloatingButton.js";
12
- import ErrorBanner from "./ErrorBanner.js";
13
- import { logger } from "../../utils/index.js";
14
- import { useSessionRecorderStore } from "../../context/useSessionRecorderStore.js";
15
- import { sessionRecorderStore } from "../../context/SessionRecorderStore.js";
16
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
17
- const SessionRecorderWidget = /*#__PURE__*/memo(() => {
18
- const {
19
- instance,
20
- openWidgetModal,
21
- closeWidgetModal
22
- } = useSessionRecorder();
23
- const isOnline = useSessionRecorderStore(s => s.isOnline);
24
- const sessionType = useSessionRecorderStore(s => s.sessionType);
25
- const isModalVisible = useSessionRecorderStore(s => s.isWidgetModalVisible);
26
- const sessionState = useSessionRecorderStore(s => s.sessionState);
27
- const error = useSessionRecorderStore(s => s.error);
28
- const [isSubmitting, setIsSubmitting] = useState(false);
29
-
30
- // Get configuration from instance
31
- const {
32
- widget,
33
- showContinuousRecording
34
- } = instance.config;
35
- const dismissError = useCallback(() => {
36
- sessionRecorderStore.setState({
37
- error: null
38
- });
39
- }, []);
40
- const handleError = useCallback((error, message) => {
41
- const errorMessage = error instanceof Error ? error.message : message;
42
- logger.error('SessionRecorderWidget', message, error);
43
- sessionRecorderStore.setState({
44
- error: errorMessage
45
- });
46
- }, []);
47
- const onStartRecording = useCallback(async sessionType => {
48
- if (!isOnline) {
49
- handleError(new Error('Cannot start recording while offline'), 'Cannot start recording while offline');
50
- return;
51
- }
52
- try {
53
- await instance.start(sessionType);
54
- closeWidgetModal();
55
- } catch (error) {
56
- handleError(error, 'Failed to start recording');
57
- }
58
- }, [isOnline, handleError]);
59
- const onStopRecording = useCallback(async comment => {
60
- try {
61
- setIsSubmitting(true);
62
- await instance.stop(comment);
63
- closeWidgetModal();
64
- } catch (error) {
65
- handleError(error, 'Failed to stop recording');
66
- } finally {
67
- setIsSubmitting(false);
68
- }
69
- }, [handleError]);
70
- const onCancelSession = useCallback(async () => {
71
- try {
72
- await instance.cancel();
73
- closeWidgetModal();
74
- } catch (error) {
75
- handleError(error, 'Failed to cancel session');
76
- }
77
- }, [handleError]);
78
- const onSaveContinuousSession = useCallback(async () => {
79
- try {
80
- await instance.save();
81
- } catch (error) {
82
- handleError(error, 'Failed to save continuous session');
83
- }
84
- }, [handleError]);
85
- const isStarted = sessionState === SessionState.started || sessionState === SessionState.paused;
86
- const isContinuous = sessionType === SessionType.CONTINUOUS;
87
- return /*#__PURE__*/_jsxs(_Fragment, {
88
- children: [widget.button?.visible && /*#__PURE__*/_jsx(View, {
89
- pointerEvents: "box-none",
90
- style: styles.overlayContainer,
91
- children: /*#__PURE__*/_jsx(FloatingButton, {
92
- sessionState: sessionState,
93
- onPress: openWidgetModal
94
- })
95
- }), /*#__PURE__*/_jsx(ModalContainer, {
96
- isVisible: isModalVisible,
97
- onClose: closeWidgetModal,
98
- children: isStarted && !isContinuous ? /*#__PURE__*/_jsx(FinalPopover, {
99
- isOnline: isOnline,
100
- isSubmitting: isSubmitting,
101
- textOverrides: widget.textOverrides,
102
- onClose: closeWidgetModal,
103
- onStopRecording: onStopRecording,
104
- onCancelSession: onCancelSession,
105
- children: error && /*#__PURE__*/_jsx(ErrorBanner, {
106
- error: error,
107
- onDismiss: dismissError
108
- })
109
- }) : /*#__PURE__*/_jsx(InitialPopover, {
110
- isOnline: isOnline,
111
- isSubmitting: isSubmitting,
112
- textOverrides: widget.textOverrides,
113
- isContinuous: isStarted && isContinuous,
114
- showContinuousRecording: showContinuousRecording,
115
- onClose: closeWidgetModal,
116
- onStopRecording: onStopRecording,
117
- onStartRecording: onStartRecording,
118
- onSaveContinuousSession: onSaveContinuousSession,
119
- children: error && /*#__PURE__*/_jsx(ErrorBanner, {
120
- error: error,
121
- onDismiss: dismissError
122
- })
123
- })
124
- })]
125
- });
126
- });
127
- export default SessionRecorderWidget;
128
- const styles = StyleSheet.create({
129
- overlayContainer: {
130
- ...StyleSheet.absoluteFillObject
131
- }
132
- });
133
- //# sourceMappingURL=SessionRecorderWidget.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useState","useCallback","memo","View","StyleSheet","SessionState","SessionType","useSessionRecorder","FinalPopover","ModalContainer","InitialPopover","FloatingButton","ErrorBanner","logger","useSessionRecorderStore","sessionRecorderStore","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","SessionRecorderWidget","instance","openWidgetModal","closeWidgetModal","isOnline","s","sessionType","isModalVisible","isWidgetModalVisible","sessionState","error","isSubmitting","setIsSubmitting","widget","showContinuousRecording","config","dismissError","setState","handleError","message","errorMessage","Error","onStartRecording","start","onStopRecording","comment","stop","onCancelSession","cancel","onSaveContinuousSession","save","isStarted","started","paused","isContinuous","CONTINUOUS","children","button","visible","pointerEvents","style","styles","overlayContainer","onPress","isVisible","onClose","textOverrides","onDismiss","create","absoluteFillObject"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/SessionRecorderWidget.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,WAAW,EAAEC,IAAI,QAAQ,OAAO;AAC1D,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,WAAW,QAAQ,0CAA0C;AACtE,SAASC,kBAAkB,QAAQ,yCAAsC;AAEzE,OAAOC,YAAY,MAAM,mBAAgB;AACzC,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,WAAW,MAAM,kBAAe;AACvC,SAASC,MAAM,QAAQ,sBAAa;AACpC,SAASC,uBAAuB,QAAQ,0CAAuC;AAC/E,SAASC,oBAAoB,QAAQ,uCAA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B,OAAO,EAAE1C,gBAAiB;QAC1BqB,eAAe,EAAEA,eAAgB;QACjCF,gBAAgB,EAAEA,gBAAiB;QACnCO,uBAAuB,EAAEA,uBAAwB;QAAAO,QAAA,EAEhD1B,KAAK,iBAAIf,IAAA,CAACL,WAAW;UAACoB,KAAK,EAAEA,KAAM;UAACqC,SAAS,EAAE/B;QAAa,CAAE;MAAC,CAClD;IACjB,CACa,CAAC;EAAA,CACjB,CAAC;AAEP,CAAC,CAAC;AAEF,eAAehB,qBAAqB;AAEpC,MAAMyC,MAAM,GAAG3D,UAAU,CAACkE,MAAM,CAAC;EAC/BN,gBAAgB,EAAE;IAChB,GAAG5D,UAAU,CAACmE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,93 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import Svg, { Path, Circle } from 'react-native-svg';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const RecordIcon = ({
7
- size = 19,
8
- color = 'white'
9
- }) => /*#__PURE__*/_jsx(Svg, {
10
- width: size,
11
- height: size,
12
- viewBox: "0 0 19 19",
13
- fill: "none",
14
- children: /*#__PURE__*/_jsx(Path, {
15
- fillRule: "evenodd",
16
- clipRule: "evenodd",
17
- d: "M6.68926 5.30356C6.56568 5.38721 6.39976 5.37561 6.29459 5.26937L3.58782 2.53477C3.46424 2.40992 3.47196 2.20492 3.60862 2.09483C5.2319 0.786982 7.28494 0 9.51866 0C11.7535 0 13.8066 0.787042 15.4308 2.09586C15.5674 2.20596 15.5752 2.41091 15.4516 2.53577L12.7468 5.26931C12.6416 5.37558 12.4757 5.38719 12.3521 5.30353C11.5393 4.75345 10.571 4.42281 9.52066 4.42281C8.47036 4.42281 7.50203 4.75346 6.68926 5.30356ZM16.4926 3.4303C16.6163 3.30527 16.8197 3.31303 16.9288 3.45121C18.2224 5.08933 19.0001 7.15932 19.0001 9.4116C19.0001 11.6671 18.2204 13.7392 16.9238 15.3785C16.8147 15.5165 16.6114 15.5242 16.4877 15.3992L13.7872 12.6701C13.682 12.5638 13.6708 12.3962 13.7538 12.2716C14.3006 11.451 14.6291 10.4727 14.6291 9.4116C14.6291 8.35454 14.3016 7.37925 13.756 6.56083C13.6728 6.43616 13.6841 6.26857 13.7893 6.16224L16.4926 3.4303ZM5.21676 12.6712C5.322 12.5649 5.3333 12.3974 5.2502 12.2727C4.70331 11.4522 4.374 10.4737 4.374 9.41184C4.374 8.35469 4.70232 7.37949 5.24808 6.56106C5.33123 6.43637 5.31996 6.26872 5.2147 6.16241L2.50855 3.4293C2.38482 3.30434 2.18146 3.31213 2.07236 3.45028C0.77864 5.08841 0 7.15845 0 9.41184C0 11.6684 0.78066 13.7406 2.07831 15.3799C2.18749 15.5178 2.39066 15.5255 2.51429 15.4006L5.21676 12.6712ZM12.3323 13.707C12.4559 13.6231 12.6221 13.6346 12.7273 13.741L15.4277 16.4691C15.5513 16.594 15.5435 16.7991 15.4068 16.9091C13.7837 18.215 11.7327 19 9.49998 19C7.2693 19 5.21837 18.2159 3.59619 16.9102C3.45943 16.8001 3.45169 16.595 3.57533 16.4702L6.27769 13.7409C6.38296 13.6346 6.54906 13.6231 6.67267 13.707C7.48459 14.2577 8.45278 14.5883 9.50198 14.5883C10.5522 14.5883 11.5204 14.2578 12.3323 13.707Z",
18
- fill: color
19
- })
20
- });
21
- export const CapturingIcon = ({
22
- size = 24,
23
- color = 'white'
24
- }) => /*#__PURE__*/_jsxs(Svg, {
25
- width: size,
26
- height: size,
27
- viewBox: "0 0 24 24",
28
- fill: "none",
29
- children: [/*#__PURE__*/_jsx(Circle, {
30
- cx: "12",
31
- cy: "12",
32
- r: "4",
33
- fill: color
34
- }), /*#__PURE__*/_jsx(Circle, {
35
- cx: "12",
36
- cy: "12",
37
- r: "7.5",
38
- stroke: color,
39
- strokeWidth: "1"
40
- }), /*#__PURE__*/_jsx(Circle, {
41
- cx: "12",
42
- cy: "12",
43
- r: "11.5",
44
- stroke: color,
45
- strokeWidth: "1",
46
- opacity: "0.2"
47
- })]
48
- });
49
- export const PausedIcon = ({
50
- size = 24,
51
- color = 'white'
52
- }) => /*#__PURE__*/_jsx(Svg, {
53
- width: size,
54
- height: size,
55
- viewBox: "0 0 24 24",
56
- fill: "none",
57
- children: /*#__PURE__*/_jsx(Path, {
58
- d: "M8 5V19M16 5V19",
59
- stroke: color,
60
- strokeWidth: "2",
61
- strokeLinecap: "round",
62
- strokeLinejoin: "round"
63
- })
64
- });
65
- export const CheckmarkIcon = ({
66
- size = 24,
67
- color = 'white'
68
- }) => /*#__PURE__*/_jsx(Svg, {
69
- width: size,
70
- height: size,
71
- viewBox: "0 0 24 24",
72
- fill: "none",
73
- children: /*#__PURE__*/_jsx(Path, {
74
- fillRule: "evenodd",
75
- clipRule: "evenodd",
76
- d: "M20.0481 6.35147C20.5168 6.8201 20.5168 7.5799 20.0481 8.04853L10.4481 17.6485C9.97951 18.1172 9.21971 18.1172 8.75108 17.6485L3.95108 12.8485C3.48245 12.3799 3.48245 11.6201 3.95108 11.1515C4.41971 10.6828 5.17951 10.6828 5.64814 11.1515L9.59961 15.1029L18.3511 6.35147C18.8197 5.88284 19.5795 5.88284 20.0481 6.35147Z",
77
- fill: color
78
- })
79
- });
80
- export const LogoIcon = ({
81
- size = 30,
82
- color = '#473CFB'
83
- }) => /*#__PURE__*/_jsx(Svg, {
84
- width: size,
85
- height: size * 0.8,
86
- viewBox: "0 0 30 24",
87
- fill: "none",
88
- children: /*#__PURE__*/_jsx(Path, {
89
- d: "M28.8324 8.83643L23.5495 6.85854L21.4856 6.08553L23.6001 0.4375L15 3.65769L6.39963 0.4375L8.51441 6.08585L6.45046 6.85885L1.16757 8.83674L0.625 9.03974L9.10095 12.0981C10.0891 12.4548 10.9201 13.1265 11.4758 13.9952C11.6632 14.2883 11.8194 14.6036 11.9398 14.9369L15 23.4076L18.0602 14.9369C18.1806 14.6036 18.3368 14.288 18.5242 13.9952C19.0802 13.1265 19.9112 12.4545 20.8991 12.0981L29.375 9.03974L28.8324 8.83674V8.83643ZM19.779 10.6434C18.2872 11.1816 17.1126 12.3563 16.5744 13.848L15.014 18.173L11.5182 8.83643L10.7776 6.85854L10.2456 5.43757L9.57367 3.64272L12.3068 4.66612L18.1631 6.85885L20.8233 7.85481L23.4457 8.83674L24.104 9.08308L19.779 10.6438V10.6434Z",
90
- fill: color
91
- })
92
- });
93
- //# sourceMappingURL=icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Svg","Path","Circle","jsx","_jsx","jsxs","_jsxs","RecordIcon","size","color","width","height","viewBox","fill","children","fillRule","clipRule","d","CapturingIcon","cx","cy","r","stroke","strokeWidth","opacity","PausedIcon","strokeLinecap","strokeLinejoin","CheckmarkIcon","LogoIcon"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/icons.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,EAAEC,MAAM,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOrD,OAAO,MAAMC,UAA+B,GAAGA,CAAC;EAC9CC,IAAI,GAAG,EAAE;EACTC,KAAK,GAAG;AACV,CAAC,kBACCL,IAAA,CAACJ,GAAG;EAACU,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAK;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC7DV,IAAA,CAACH,IAAI;IACHc,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,wnDAAwnD;IAC1nDJ,IAAI,EAAEJ;EAAM,CACb;AAAC,CACC,CACN;AAED,OAAO,MAAMS,aAAkC,GAAGA,CAAC;EACjDV,IAAI,GAAG,EAAE;EACTC,KAAK,GAAG;AACV,CAAC,kBACCH,KAAA,CAACN,GAAG;EAACU,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAA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IACHc,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,iUAAiU;IACnUJ,IAAI,EAAEJ;EAAM,CACb;AAAC,CACC,CACN;AAED,OAAO,MAAMoB,QAA6B,GAAGA,CAAC;EAC5CrB,IAAI,GAAG,EAAE;EACTC,KAAK,GAAG;AACV,CAAC,kBACCL,IAAA,CAACJ,GAAG;EAACU,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAI,GAAG,GAAI;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eACnEV,IAAA,CAACH,IAAI;IACHgB,CAAC,EAAC,8pBAA8pB;IAChqBJ,IAAI,EAAEJ;EAAM,CACb;AAAC,CACC,CACN","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- import SessionRecorderWidget from "./SessionRecorderWidget.js";
4
- export default SessionRecorderWidget;
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SessionRecorderWidget"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/index.ts"],"mappings":";;AAAA,OAAOA,qBAAqB,MAAM,4BAAyB;AAE3D,eAAeA,qBAAqB","ignoreList":[]}