@multiplayer-app/session-recorder-react-native 1.0.1-beta.3 → 1.0.1-beta.5

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 (463) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +216 -155
  3. package/SessionRecorderNative.podspec +9 -14
  4. package/android/build.gradle +21 -44
  5. package/android/gradle.properties +4 -4
  6. package/android/src/main/AndroidManifest.xml +2 -0
  7. package/android/src/main/java/com/multiplayer/sessionrecordernative/SessionRecorderNativeConfig.kt +52 -0
  8. package/android/src/main/java/com/multiplayer/sessionrecordernative/SessionRecorderNativeModule.kt +860 -0
  9. package/android/src/main/java/com/multiplayer/sessionrecordernative/SessionRecorderNativePackage.kt +33 -0
  10. package/android/src/main/java/com/multiplayer/sessionrecordernative/model/TargetInfo.kt +9 -0
  11. package/android/src/main/java/com/multiplayer/sessionrecordernative/util/ViewUtils.kt +72 -0
  12. package/ios/SessionRecorderNative.podspec +4 -2
  13. package/ios/SessionRecorderNative.swift +1 -1
  14. package/ios/SessionRecorderNativeSpec.swift +3 -3
  15. package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js +23 -0
  16. package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js.map +1 -0
  17. package/lib/module/components/ScreenRecorderView/index.js +4 -0
  18. package/lib/module/components/ScreenRecorderView/index.js.map +1 -0
  19. package/lib/module/components/SessionRecorderWidget/ErrorBanner.js +64 -0
  20. package/lib/module/components/SessionRecorderWidget/ErrorBanner.js.map +1 -0
  21. package/lib/module/components/SessionRecorderWidget/FinalPopover.js +74 -0
  22. package/lib/module/components/SessionRecorderWidget/FinalPopover.js.map +1 -0
  23. package/lib/module/components/SessionRecorderWidget/FloatingButton.js +191 -0
  24. package/lib/module/components/SessionRecorderWidget/FloatingButton.js.map +1 -0
  25. package/lib/module/components/SessionRecorderWidget/InitialPopover.js +138 -0
  26. package/lib/module/components/SessionRecorderWidget/InitialPopover.js.map +1 -0
  27. package/lib/module/components/SessionRecorderWidget/ModalContainer.js +177 -0
  28. package/lib/module/components/SessionRecorderWidget/ModalContainer.js.map +1 -0
  29. package/lib/module/components/SessionRecorderWidget/ModalHeader.js +27 -0
  30. package/lib/module/components/SessionRecorderWidget/ModalHeader.js.map +1 -0
  31. package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js +133 -0
  32. package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js.map +1 -0
  33. package/lib/module/components/SessionRecorderWidget/icons.js +93 -0
  34. package/lib/module/components/SessionRecorderWidget/icons.js.map +1 -0
  35. package/lib/module/components/SessionRecorderWidget/index.js +5 -0
  36. package/lib/module/components/SessionRecorderWidget/index.js.map +1 -0
  37. package/lib/module/components/SessionRecorderWidget/styles.js +173 -0
  38. package/lib/module/components/SessionRecorderWidget/styles.js.map +1 -0
  39. package/lib/module/components/index.js +5 -0
  40. package/lib/module/components/index.js.map +1 -0
  41. package/lib/module/config/constants.js +42 -0
  42. package/lib/module/config/constants.js.map +1 -0
  43. package/lib/module/config/defaults.js +81 -0
  44. package/lib/module/config/defaults.js.map +1 -0
  45. package/lib/module/config/index.js +9 -0
  46. package/lib/module/config/index.js.map +1 -0
  47. package/lib/module/config/masking.js +35 -0
  48. package/lib/module/config/masking.js.map +1 -0
  49. package/lib/module/config/session-recorder.js +44 -0
  50. package/lib/module/config/session-recorder.js.map +1 -0
  51. package/lib/module/config/validators.js +28 -0
  52. package/lib/module/config/validators.js.map +1 -0
  53. package/lib/module/config/widget.js +35 -0
  54. package/lib/module/config/widget.js.map +1 -0
  55. package/lib/module/context/SessionRecorderContext.js +93 -0
  56. package/lib/module/context/SessionRecorderContext.js.map +1 -0
  57. package/lib/module/context/SessionRecorderStore.js +12 -0
  58. package/lib/module/context/SessionRecorderStore.js.map +1 -0
  59. package/lib/module/context/useSessionRecorderStore.js +20 -0
  60. package/lib/module/context/useSessionRecorderStore.js.map +1 -0
  61. package/lib/module/context/useStoreSelector.js +27 -0
  62. package/lib/module/context/useStoreSelector.js.map +1 -0
  63. package/lib/module/index.js +13 -0
  64. package/lib/module/index.js.map +1 -0
  65. package/lib/module/native/SessionRecorderNative.js +74 -0
  66. package/lib/module/native/SessionRecorderNative.js.map +1 -0
  67. package/lib/module/native/index.js +4 -0
  68. package/lib/module/native/index.js.map +1 -0
  69. package/lib/module/otel/helpers.js +218 -0
  70. package/lib/module/otel/helpers.js.map +1 -0
  71. package/lib/module/otel/index.js +95 -0
  72. package/lib/module/otel/index.js.map +1 -0
  73. package/lib/module/otel/instrumentations/index.js +102 -0
  74. package/lib/module/otel/instrumentations/index.js.map +1 -0
  75. package/lib/module/package.json +1 -0
  76. package/lib/module/patch/index.js +4 -0
  77. package/lib/module/patch/index.js.map +1 -0
  78. package/lib/module/patch/xhr.js +116 -0
  79. package/lib/module/patch/xhr.js.map +1 -0
  80. package/lib/module/recorder/eventExporter.js +130 -0
  81. package/lib/module/recorder/eventExporter.js.map +1 -0
  82. package/lib/module/recorder/gestureRecorder.js +641 -0
  83. package/lib/module/recorder/gestureRecorder.js.map +1 -0
  84. package/lib/module/recorder/index.js +168 -0
  85. package/lib/module/recorder/index.js.map +1 -0
  86. package/lib/module/recorder/navigationTracker.js +228 -0
  87. package/lib/module/recorder/navigationTracker.js.map +1 -0
  88. package/lib/module/recorder/screenRecorder.js +495 -0
  89. package/lib/module/recorder/screenRecorder.js.map +1 -0
  90. package/lib/module/services/api.service.js +149 -0
  91. package/lib/module/services/api.service.js.map +1 -0
  92. package/lib/module/services/network.service.js +178 -0
  93. package/lib/module/services/network.service.js.map +1 -0
  94. package/lib/module/services/screenMaskingService.js +107 -0
  95. package/lib/module/services/screenMaskingService.js.map +1 -0
  96. package/lib/module/services/storage.service.js +179 -0
  97. package/lib/module/services/storage.service.js.map +1 -0
  98. package/lib/module/session-recorder.js +541 -0
  99. package/lib/module/session-recorder.js.map +1 -0
  100. package/lib/module/types/configs.js +4 -0
  101. package/lib/module/types/configs.js.map +1 -0
  102. package/lib/module/types/expo-constants.d.js +2 -0
  103. package/lib/module/types/expo-constants.d.js.map +1 -0
  104. package/lib/module/types/index.js +11 -0
  105. package/lib/module/types/index.js.map +1 -0
  106. package/lib/module/types/session-recorder.js +68 -0
  107. package/lib/module/types/session-recorder.js.map +1 -0
  108. package/lib/module/types/session.js +9 -0
  109. package/lib/module/types/session.js.map +1 -0
  110. package/lib/module/utils/app-metadata.js +28 -0
  111. package/lib/module/utils/app-metadata.js.map +1 -0
  112. package/lib/module/utils/constants.optional.expo.js +6 -0
  113. package/lib/module/utils/constants.optional.expo.js.map +1 -0
  114. package/lib/module/utils/constants.optional.js +8 -0
  115. package/lib/module/utils/constants.optional.js.map +1 -0
  116. package/lib/module/utils/createStore.js +27 -0
  117. package/lib/module/utils/createStore.js.map +1 -0
  118. package/lib/module/utils/index.js +11 -0
  119. package/lib/module/utils/index.js.map +1 -0
  120. package/lib/module/utils/logger.js +185 -0
  121. package/lib/module/utils/logger.js.map +1 -0
  122. package/lib/module/utils/platform.js +340 -0
  123. package/lib/module/utils/platform.js.map +1 -0
  124. package/lib/module/utils/request-utils.js +58 -0
  125. package/lib/module/utils/request-utils.js.map +1 -0
  126. package/lib/module/utils/rrweb-events.js +276 -0
  127. package/lib/module/utils/rrweb-events.js.map +1 -0
  128. package/lib/module/utils/session.js +21 -0
  129. package/lib/module/utils/session.js.map +1 -0
  130. package/lib/module/utils/shallowEqual.js +17 -0
  131. package/lib/module/utils/shallowEqual.js.map +1 -0
  132. package/lib/module/utils/time.js +17 -0
  133. package/lib/module/utils/time.js.map +1 -0
  134. package/lib/module/utils/type-utils.js +69 -0
  135. package/lib/module/utils/type-utils.js.map +1 -0
  136. package/lib/module/version.js +4 -0
  137. package/lib/module/version.js.map +1 -0
  138. package/lib/typescript/package.json +1 -0
  139. package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts +6 -0
  140. package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts.map +1 -0
  141. package/lib/typescript/src/components/ScreenRecorderView/index.d.ts +2 -0
  142. package/lib/typescript/src/components/ScreenRecorderView/index.d.ts.map +1 -0
  143. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/ErrorBanner.d.ts +1 -0
  144. package/lib/typescript/src/components/SessionRecorderWidget/ErrorBanner.d.ts.map +1 -0
  145. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/FinalPopover.d.ts +2 -1
  146. package/lib/typescript/src/components/SessionRecorderWidget/FinalPopover.d.ts.map +1 -0
  147. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/FloatingButton.d.ts +1 -0
  148. package/lib/typescript/src/components/SessionRecorderWidget/FloatingButton.d.ts.map +1 -0
  149. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/InitialPopover.d.ts +2 -1
  150. package/lib/typescript/src/components/SessionRecorderWidget/InitialPopover.d.ts.map +1 -0
  151. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/ModalContainer.d.ts +1 -0
  152. package/lib/typescript/src/components/SessionRecorderWidget/ModalContainer.d.ts.map +1 -0
  153. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/ModalHeader.d.ts +1 -0
  154. package/lib/typescript/src/components/SessionRecorderWidget/ModalHeader.d.ts.map +1 -0
  155. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/SessionRecorderWidget.d.ts +1 -0
  156. package/lib/typescript/src/components/SessionRecorderWidget/SessionRecorderWidget.d.ts.map +1 -0
  157. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/icons.d.ts +1 -0
  158. package/lib/typescript/src/components/SessionRecorderWidget/icons.d.ts.map +1 -0
  159. package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts +3 -0
  160. package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts.map +1 -0
  161. package/{dist → lib/typescript/src}/components/SessionRecorderWidget/styles.d.ts +4 -3
  162. package/lib/typescript/src/components/SessionRecorderWidget/styles.d.ts.map +1 -0
  163. package/lib/typescript/src/components/index.d.ts +3 -0
  164. package/lib/typescript/src/components/index.d.ts.map +1 -0
  165. package/{dist → lib/typescript/src}/config/constants.d.ts +1 -0
  166. package/lib/typescript/src/config/constants.d.ts.map +1 -0
  167. package/{dist → lib/typescript/src}/config/defaults.d.ts +2 -1
  168. package/lib/typescript/src/config/defaults.d.ts.map +1 -0
  169. package/{dist → lib/typescript/src}/config/index.d.ts +1 -0
  170. package/lib/typescript/src/config/index.d.ts.map +1 -0
  171. package/lib/typescript/src/config/masking.d.ts +3 -0
  172. package/lib/typescript/src/config/masking.d.ts.map +1 -0
  173. package/lib/typescript/src/config/session-recorder.d.ts +3 -0
  174. package/lib/typescript/src/config/session-recorder.d.ts.map +1 -0
  175. package/{dist → lib/typescript/src}/config/validators.d.ts +1 -0
  176. package/lib/typescript/src/config/validators.d.ts.map +1 -0
  177. package/{dist → lib/typescript/src}/config/widget.d.ts +2 -1
  178. package/lib/typescript/src/config/widget.d.ts.map +1 -0
  179. package/{dist → lib/typescript/src}/context/SessionRecorderContext.d.ts +3 -2
  180. package/lib/typescript/src/context/SessionRecorderContext.d.ts.map +1 -0
  181. package/{dist → lib/typescript/src}/context/SessionRecorderStore.d.ts +2 -1
  182. package/lib/typescript/src/context/SessionRecorderStore.d.ts.map +1 -0
  183. package/{dist → lib/typescript/src}/context/useSessionRecorderStore.d.ts +4 -3
  184. package/lib/typescript/src/context/useSessionRecorderStore.d.ts.map +1 -0
  185. package/{dist → lib/typescript/src}/context/useStoreSelector.d.ts +2 -1
  186. package/lib/typescript/src/context/useStoreSelector.d.ts.map +1 -0
  187. package/{dist → lib/typescript/src}/index.d.ts +1 -0
  188. package/lib/typescript/src/index.d.ts.map +1 -0
  189. package/{dist → lib/typescript/src}/native/SessionRecorderNative.d.ts +21 -3
  190. package/lib/typescript/src/native/SessionRecorderNative.d.ts.map +1 -0
  191. package/lib/typescript/src/native/index.d.ts +2 -0
  192. package/lib/typescript/src/native/index.d.ts.map +1 -0
  193. package/{dist → lib/typescript/src}/otel/helpers.d.ts +3 -2
  194. package/lib/typescript/src/otel/helpers.d.ts.map +1 -0
  195. package/{dist → lib/typescript/src}/otel/index.d.ts +2 -2
  196. package/lib/typescript/src/otel/index.d.ts.map +1 -0
  197. package/{dist → lib/typescript/src}/otel/instrumentations/index.d.ts +2 -1
  198. package/lib/typescript/src/otel/instrumentations/index.d.ts.map +1 -0
  199. package/lib/typescript/src/patch/index.d.ts +2 -0
  200. package/lib/typescript/src/patch/index.d.ts.map +1 -0
  201. package/{dist → lib/typescript/src}/patch/xhr.d.ts +1 -0
  202. package/lib/typescript/src/patch/xhr.d.ts.map +1 -0
  203. package/{dist → lib/typescript/src}/recorder/eventExporter.d.ts +2 -1
  204. package/lib/typescript/src/recorder/eventExporter.d.ts.map +1 -0
  205. package/{dist → lib/typescript/src}/recorder/gestureRecorder.d.ts +3 -2
  206. package/lib/typescript/src/recorder/gestureRecorder.d.ts.map +1 -0
  207. package/{dist → lib/typescript/src}/recorder/index.d.ts +3 -2
  208. package/lib/typescript/src/recorder/index.d.ts.map +1 -0
  209. package/{dist → lib/typescript/src}/recorder/navigationTracker.d.ts +2 -1
  210. package/lib/typescript/src/recorder/navigationTracker.d.ts.map +1 -0
  211. package/{dist → lib/typescript/src}/recorder/screenRecorder.d.ts +4 -4
  212. package/lib/typescript/src/recorder/screenRecorder.d.ts.map +1 -0
  213. package/{dist → lib/typescript/src}/services/api.service.d.ts +2 -1
  214. package/lib/typescript/src/services/api.service.d.ts.map +1 -0
  215. package/{dist → lib/typescript/src}/services/network.service.d.ts +1 -0
  216. package/lib/typescript/src/services/network.service.d.ts.map +1 -0
  217. package/{dist → lib/typescript/src}/services/screenMaskingService.d.ts +2 -1
  218. package/lib/typescript/src/services/screenMaskingService.d.ts.map +1 -0
  219. package/{dist → lib/typescript/src}/services/storage.service.d.ts +2 -1
  220. package/lib/typescript/src/services/storage.service.d.ts.map +1 -0
  221. package/{dist → lib/typescript/src}/session-recorder.d.ts +3 -2
  222. package/lib/typescript/src/session-recorder.d.ts.map +1 -0
  223. package/{dist → lib/typescript/src}/types/configs.d.ts +3 -2
  224. package/lib/typescript/src/types/configs.d.ts.map +1 -0
  225. package/{dist → lib/typescript/src}/types/index.d.ts +1 -0
  226. package/lib/typescript/src/types/index.d.ts.map +1 -0
  227. package/{dist → lib/typescript/src}/types/session-recorder.d.ts +7 -6
  228. package/lib/typescript/src/types/session-recorder.d.ts.map +1 -0
  229. package/{dist → lib/typescript/src}/types/session.d.ts +1 -0
  230. package/lib/typescript/src/types/session.d.ts.map +1 -0
  231. package/{dist → lib/typescript/src}/utils/app-metadata.d.ts +1 -0
  232. package/lib/typescript/src/utils/app-metadata.d.ts.map +1 -0
  233. package/{dist → lib/typescript/src}/utils/constants.optional.d.ts +1 -0
  234. package/lib/typescript/src/utils/constants.optional.d.ts.map +1 -0
  235. package/{dist → lib/typescript/src}/utils/constants.optional.expo.d.ts +1 -0
  236. package/lib/typescript/src/utils/constants.optional.expo.d.ts.map +1 -0
  237. package/{dist → lib/typescript/src}/utils/createStore.d.ts +1 -0
  238. package/lib/typescript/src/utils/createStore.d.ts.map +1 -0
  239. package/lib/typescript/src/utils/index.d.ts +8 -0
  240. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  241. package/{dist → lib/typescript/src}/utils/logger.d.ts +2 -1
  242. package/lib/typescript/src/utils/logger.d.ts.map +1 -0
  243. package/{dist → lib/typescript/src}/utils/platform.d.ts +2 -1
  244. package/lib/typescript/src/utils/platform.d.ts.map +1 -0
  245. package/{dist → lib/typescript/src}/utils/request-utils.d.ts +1 -0
  246. package/lib/typescript/src/utils/request-utils.d.ts.map +1 -0
  247. package/{dist → lib/typescript/src}/utils/rrweb-events.d.ts +2 -1
  248. package/lib/typescript/src/utils/rrweb-events.d.ts.map +1 -0
  249. package/{dist → lib/typescript/src}/utils/session.d.ts +1 -0
  250. package/lib/typescript/src/utils/session.d.ts.map +1 -0
  251. package/{dist → lib/typescript/src}/utils/shallowEqual.d.ts +1 -0
  252. package/lib/typescript/src/utils/shallowEqual.d.ts.map +1 -0
  253. package/{dist → lib/typescript/src}/utils/time.d.ts +1 -0
  254. package/lib/typescript/src/utils/time.d.ts.map +1 -0
  255. package/{dist → lib/typescript/src}/utils/type-utils.d.ts +1 -0
  256. package/lib/typescript/src/utils/type-utils.d.ts.map +1 -0
  257. package/{dist → lib/typescript/src}/version.d.ts +1 -0
  258. package/lib/typescript/src/version.d.ts.map +1 -0
  259. package/package.json +133 -44
  260. package/src/components/ScreenRecorderView/ScreenRecorderView.tsx +20 -0
  261. package/src/components/ScreenRecorderView/index.ts +1 -0
  262. package/src/components/SessionRecorderWidget/ErrorBanner.tsx +58 -0
  263. package/src/components/SessionRecorderWidget/FinalPopover.tsx +96 -0
  264. package/src/components/SessionRecorderWidget/FloatingButton.tsx +176 -0
  265. package/src/components/SessionRecorderWidget/InitialPopover.tsx +167 -0
  266. package/src/components/SessionRecorderWidget/ModalContainer.tsx +189 -0
  267. package/src/components/SessionRecorderWidget/ModalHeader.tsx +26 -0
  268. package/src/components/SessionRecorderWidget/SessionRecorderWidget.tsx +150 -0
  269. package/src/components/SessionRecorderWidget/icons.tsx +80 -0
  270. package/src/components/SessionRecorderWidget/index.ts +3 -0
  271. package/src/components/SessionRecorderWidget/styles.ts +168 -0
  272. package/src/config/constants.ts +67 -0
  273. package/src/config/defaults.ts +105 -0
  274. package/src/config/index.ts +6 -0
  275. package/src/config/masking.ts +60 -0
  276. package/src/config/session-recorder.ts +87 -0
  277. package/src/config/validators.ts +54 -0
  278. package/src/config/widget.ts +47 -0
  279. package/src/context/SessionRecorderContext.tsx +138 -0
  280. package/src/context/SessionRecorderStore.ts +22 -0
  281. package/src/context/useSessionRecorderStore.ts +34 -0
  282. package/src/context/useStoreSelector.ts +36 -0
  283. package/src/index.ts +10 -0
  284. package/src/native/SessionRecorderNative.ts +180 -0
  285. package/src/native/index.ts +5 -0
  286. package/src/otel/helpers.ts +290 -0
  287. package/src/otel/index.ts +132 -0
  288. package/src/otel/instrumentations/index.ts +118 -0
  289. package/src/patch/xhr.ts +148 -0
  290. package/src/recorder/eventExporter.ts +150 -0
  291. package/src/recorder/gestureRecorder.ts +828 -0
  292. package/src/recorder/index.ts +203 -0
  293. package/src/recorder/navigationTracker.ts +268 -0
  294. package/src/recorder/screenRecorder.ts +600 -0
  295. package/src/services/api.service.ts +216 -0
  296. package/src/services/network.service.ts +191 -0
  297. package/src/services/screenMaskingService.ts +153 -0
  298. package/src/services/storage.service.ts +248 -0
  299. package/src/session-recorder.ts +647 -0
  300. package/src/types/configs.ts +118 -0
  301. package/src/types/expo-constants.d.ts +7 -0
  302. package/src/types/index.ts +27 -0
  303. package/src/types/session-recorder.ts +381 -0
  304. package/src/types/session.ts +65 -0
  305. package/src/utils/app-metadata.ts +31 -0
  306. package/src/utils/constants.optional.expo.ts +5 -0
  307. package/src/utils/constants.optional.ts +18 -0
  308. package/src/utils/createStore.ts +32 -0
  309. package/{dist/utils/index.d.ts → src/utils/index.ts} +1 -0
  310. package/src/utils/logger.ts +245 -0
  311. package/src/utils/platform.ts +401 -0
  312. package/src/utils/request-utils.ts +61 -0
  313. package/src/utils/rrweb-events.ts +329 -0
  314. package/src/utils/session.ts +22 -0
  315. package/src/utils/shallowEqual.ts +20 -0
  316. package/src/utils/time.ts +20 -0
  317. package/src/utils/type-utils.ts +75 -0
  318. package/src/version.ts +1 -0
  319. package/REACT_NATIVE_SETUP.md +0 -91
  320. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  321. package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  322. package/android/gradlew +0 -249
  323. package/android/gradlew.bat +0 -92
  324. package/copy-react-native-dist.sh +0 -56
  325. package/dist/components/ScreenRecorderView/ScreenRecorderView.d.ts +0 -5
  326. package/dist/components/ScreenRecorderView/ScreenRecorderView.js +0 -1
  327. package/dist/components/ScreenRecorderView/ScreenRecorderView.js.map +0 -1
  328. package/dist/components/ScreenRecorderView/index.d.ts +0 -1
  329. package/dist/components/ScreenRecorderView/index.js +0 -1
  330. package/dist/components/ScreenRecorderView/index.js.map +0 -1
  331. package/dist/components/SessionRecorderWidget/ErrorBanner.js +0 -1
  332. package/dist/components/SessionRecorderWidget/ErrorBanner.js.map +0 -1
  333. package/dist/components/SessionRecorderWidget/FinalPopover.js +0 -1
  334. package/dist/components/SessionRecorderWidget/FinalPopover.js.map +0 -1
  335. package/dist/components/SessionRecorderWidget/FloatingButton.js +0 -1
  336. package/dist/components/SessionRecorderWidget/FloatingButton.js.map +0 -1
  337. package/dist/components/SessionRecorderWidget/InitialPopover.js +0 -1
  338. package/dist/components/SessionRecorderWidget/InitialPopover.js.map +0 -1
  339. package/dist/components/SessionRecorderWidget/ModalContainer.js +0 -1
  340. package/dist/components/SessionRecorderWidget/ModalContainer.js.map +0 -1
  341. package/dist/components/SessionRecorderWidget/ModalHeader.js +0 -1
  342. package/dist/components/SessionRecorderWidget/ModalHeader.js.map +0 -1
  343. package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js +0 -1
  344. package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js.map +0 -1
  345. package/dist/components/SessionRecorderWidget/icons.js +0 -1
  346. package/dist/components/SessionRecorderWidget/icons.js.map +0 -1
  347. package/dist/components/SessionRecorderWidget/index.d.ts +0 -2
  348. package/dist/components/SessionRecorderWidget/index.js +0 -1
  349. package/dist/components/SessionRecorderWidget/index.js.map +0 -1
  350. package/dist/components/SessionRecorderWidget/styles.js +0 -1
  351. package/dist/components/SessionRecorderWidget/styles.js.map +0 -1
  352. package/dist/components/index.js +0 -1
  353. package/dist/components/index.js.map +0 -1
  354. package/dist/config/constants.js +0 -1
  355. package/dist/config/constants.js.map +0 -1
  356. package/dist/config/defaults.js +0 -1
  357. package/dist/config/defaults.js.map +0 -1
  358. package/dist/config/index.js +0 -1
  359. package/dist/config/index.js.map +0 -1
  360. package/dist/config/masking.d.ts +0 -2
  361. package/dist/config/masking.js +0 -1
  362. package/dist/config/masking.js.map +0 -1
  363. package/dist/config/session-recorder.d.ts +0 -2
  364. package/dist/config/session-recorder.js +0 -1
  365. package/dist/config/session-recorder.js.map +0 -1
  366. package/dist/config/validators.js +0 -1
  367. package/dist/config/validators.js.map +0 -1
  368. package/dist/config/widget.js +0 -1
  369. package/dist/config/widget.js.map +0 -1
  370. package/dist/context/SessionRecorderContext.js +0 -1
  371. package/dist/context/SessionRecorderContext.js.map +0 -1
  372. package/dist/context/SessionRecorderStore.js +0 -1
  373. package/dist/context/SessionRecorderStore.js.map +0 -1
  374. package/dist/context/useSessionRecorderStore.js +0 -1
  375. package/dist/context/useSessionRecorderStore.js.map +0 -1
  376. package/dist/context/useStoreSelector.js +0 -1
  377. package/dist/context/useStoreSelector.js.map +0 -1
  378. package/dist/index.js +0 -1
  379. package/dist/index.js.map +0 -1
  380. package/dist/native/GestureRecorderNative.d.ts +0 -57
  381. package/dist/native/GestureRecorderNative.js +0 -1
  382. package/dist/native/GestureRecorderNative.js.map +0 -1
  383. package/dist/native/GestureRecorderNativeTurboSpec.d.ts +0 -31
  384. package/dist/native/GestureRecorderNativeTurboSpec.js +0 -1
  385. package/dist/native/GestureRecorderNativeTurboSpec.js.map +0 -1
  386. package/dist/native/SessionRecorderNative.js +0 -1
  387. package/dist/native/SessionRecorderNative.js.map +0 -1
  388. package/dist/native/SessionRecorderNativeTurboSpec.d.ts +0 -17
  389. package/dist/native/SessionRecorderNativeTurboSpec.js +0 -1
  390. package/dist/native/SessionRecorderNativeTurboSpec.js.map +0 -1
  391. package/dist/native/index.d.ts +0 -1
  392. package/dist/native/index.js +0 -1
  393. package/dist/native/index.js.map +0 -1
  394. package/dist/otel/helpers.js +0 -1
  395. package/dist/otel/helpers.js.map +0 -1
  396. package/dist/otel/index.js +0 -1
  397. package/dist/otel/index.js.map +0 -1
  398. package/dist/otel/instrumentations/index.js +0 -1
  399. package/dist/otel/instrumentations/index.js.map +0 -1
  400. package/dist/patch/index.js +0 -1
  401. package/dist/patch/index.js.map +0 -1
  402. package/dist/patch/xhr.js +0 -1
  403. package/dist/patch/xhr.js.map +0 -1
  404. package/dist/recorder/eventExporter.js +0 -1
  405. package/dist/recorder/eventExporter.js.map +0 -1
  406. package/dist/recorder/gestureRecorder.js +0 -1
  407. package/dist/recorder/gestureRecorder.js.map +0 -1
  408. package/dist/recorder/index.js +0 -1
  409. package/dist/recorder/index.js.map +0 -1
  410. package/dist/recorder/navigationTracker.js +0 -1
  411. package/dist/recorder/navigationTracker.js.map +0 -1
  412. package/dist/recorder/screenRecorder.js +0 -1
  413. package/dist/recorder/screenRecorder.js.map +0 -1
  414. package/dist/services/api.service.js +0 -1
  415. package/dist/services/api.service.js.map +0 -1
  416. package/dist/services/network.service.js +0 -1
  417. package/dist/services/network.service.js.map +0 -1
  418. package/dist/services/screenMaskingService.js +0 -1
  419. package/dist/services/screenMaskingService.js.map +0 -1
  420. package/dist/services/storage.service.js +0 -1
  421. package/dist/services/storage.service.js.map +0 -1
  422. package/dist/session-recorder.js +0 -1
  423. package/dist/session-recorder.js.map +0 -1
  424. package/dist/types/configs.js +0 -1
  425. package/dist/types/configs.js.map +0 -1
  426. package/dist/types/index.js +0 -1
  427. package/dist/types/index.js.map +0 -1
  428. package/dist/types/session-recorder.js +0 -1
  429. package/dist/types/session-recorder.js.map +0 -1
  430. package/dist/types/session.js +0 -1
  431. package/dist/types/session.js.map +0 -1
  432. package/dist/utils/app-metadata.js +0 -1
  433. package/dist/utils/app-metadata.js.map +0 -1
  434. package/dist/utils/constants.optional.expo.js +0 -1
  435. package/dist/utils/constants.optional.expo.js.map +0 -1
  436. package/dist/utils/constants.optional.js +0 -1
  437. package/dist/utils/constants.optional.js.map +0 -1
  438. package/dist/utils/createStore.js +0 -1
  439. package/dist/utils/createStore.js.map +0 -1
  440. package/dist/utils/index.js +0 -1
  441. package/dist/utils/index.js.map +0 -1
  442. package/dist/utils/logger.js +0 -1
  443. package/dist/utils/logger.js.map +0 -1
  444. package/dist/utils/platform.js +0 -1
  445. package/dist/utils/platform.js.map +0 -1
  446. package/dist/utils/request-utils.js +0 -1
  447. package/dist/utils/request-utils.js.map +0 -1
  448. package/dist/utils/rrweb-events.js +0 -1
  449. package/dist/utils/rrweb-events.js.map +0 -1
  450. package/dist/utils/session.js +0 -1
  451. package/dist/utils/session.js.map +0 -1
  452. package/dist/utils/shallowEqual.js +0 -1
  453. package/dist/utils/shallowEqual.js.map +0 -1
  454. package/dist/utils/time.js +0 -1
  455. package/dist/utils/time.js.map +0 -1
  456. package/dist/utils/type-utils.js +0 -1
  457. package/dist/utils/type-utils.js.map +0 -1
  458. package/dist/version.js +0 -1
  459. package/dist/version.js.map +0 -1
  460. package/docs/AUTO_METADATA_DETECTION.md +0 -108
  461. package/react-native.config.js +0 -13
  462. /package/{dist/components/index.d.ts → src/components/index.ts} +0 -0
  463. /package/{dist/patch/index.d.ts → src/patch/index.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import { Span } from '@opentelemetry/api';
1
+ import { type Span } from '@opentelemetry/api';
2
2
  import { SessionType } from '@multiplayer-app/session-recorder-common';
3
- import { PropagateTraceHeaderCorsUrls } from '@opentelemetry/sdk-trace-web';
3
+ import { type PropagateTraceHeaderCorsUrls } from '@opentelemetry/sdk-trace-web';
4
4
  import type { ISession } from './session';
5
5
  export declare enum SessionState {
6
6
  started = "2",
@@ -74,11 +74,11 @@ export interface SessionRecorderOptions {
74
74
  widget?: {
75
75
  /** Enables/disables the widget entirely
76
76
  * @default true
77
- */
77
+ */
78
78
  enabled?: boolean;
79
79
  /** Floating button config
80
80
  * @default visible: true, placement: 'bottom-right'
81
- */
81
+ */
82
82
  button?: {
83
83
  visible?: boolean;
84
84
  placement?: WidgetButtonPlacement;
@@ -110,11 +110,11 @@ export interface SessionRecorderOptions {
110
110
  maxCapturingHttpPayloadSize?: number;
111
111
  /** If true, captures body in traces
112
112
  * @default true
113
- */
113
+ */
114
114
  captureBody?: boolean;
115
115
  /** If true, captures headers in traces
116
116
  * @default true
117
- */
117
+ */
118
118
  captureHeaders?: boolean;
119
119
  /**
120
120
  * (Optional) Configuration for masking sensitive data in session recordings
@@ -337,3 +337,4 @@ export interface NavigationEvent {
337
337
  params?: Record<string, any>;
338
338
  metadata?: Record<string, any>;
339
339
  }
340
+ //# sourceMappingURL=session-recorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-recorder.d.ts","sourceRoot":"","sources":["../../../../src/types/session-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,oBAAY,YAAY;IACtB,OAAO,MAAM;IACb,MAAM,MAAM;IACZ,OAAO,MAAM;CACd;AAED;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,OAAO,aAAa;IACpB,QAAQ,cAAc;IACtB,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;CAC7B;AAED;;GAEG;AACH,oBAAY,QAAQ;IAClB,KAAK,IAAI;IACT,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,MAAM,CAAC,EA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,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
@@ -57,3 +57,4 @@ export declare enum DebugSessionDataType {
57
57
  OTLP_LOGS = "OTLP_LOGS",
58
58
  RRWEB_EVENTS = "RRWEB_EVENTS"
59
59
  }
60
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/types/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAEvE,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,Y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
16
  export declare function getAutoDetectedAppMetadata(): AppMetadata;
17
+ //# sourceMappingURL=app-metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-metadata.d.ts","sourceRoot":"","sources":["../../../../src/utils/app-metadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,eAAO,MAAM,YAAY,EAAE,WAM1B,CAAC;AAEF;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,WAAW,CAExD"}
@@ -19,3 +19,4 @@ export type OptionalExpoConstants = {
19
19
  } | undefined;
20
20
  declare const OptionalConstants: OptionalExpoConstants;
21
21
  export default OptionalConstants;
22
+ //# sourceMappingURL=constants.optional.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.optional.d.ts","sourceRoot":"","sources":["../../../../src/utils/constants.optional.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAC7B;IACE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAChD,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;YAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACnE,OAAO,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC/D,CAAC;CACH,GACD,SAAS,CAAC;AAEd,QAAA,MAAM,iBAAiB,EAAE,qBAAiC,CAAC;AAE3D,eAAe,iBAAiB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import type { OptionalExpoConstants } from './constants.optional';
2
2
  declare const _default: OptionalExpoConstants;
3
3
  export default _default;
4
+ //# sourceMappingURL=constants.optional.expo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.optional.expo.d.ts","sourceRoot":"","sources":["../../../../src/utils/constants.optional.expo.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;wBAEtC,qBAAqB;AAAjD,wBAAkD"}
@@ -6,3 +6,4 @@ export type Store<T> = {
6
6
  };
7
7
  export declare function createStore<T extends object>(initialState: T): Store<T>;
8
8
  export {};
9
+ //# sourceMappingURL=createStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createStore.d.ts","sourceRoot":"","sources":["../../../../src/utils/createStore.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,IAAI,CAAC;AAEpD,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;IACrB,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5E,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,CAAC;CAClD,CAAC;AAEF,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAuBvE"}
@@ -0,0 +1,8 @@
1
+ export * from './platform';
2
+ export * from './session';
3
+ export * from './time';
4
+ export * from './type-utils';
5
+ export * from './request-utils';
6
+ export * from './rrweb-events';
7
+ export * from './logger';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * Centralized logger utility for the session recorder
3
3
  * Provides consistent logging across all components
4
4
  */
5
- import { LogLevel } from "../types";
5
+ import { LogLevel } from '../types';
6
6
  export interface LoggerConfig {
7
7
  level: LogLevel;
8
8
  enabled: boolean;
@@ -105,3 +105,4 @@ export declare const logError: (component: string, message: string, data?: any)
105
105
  export declare const logSuccess: (component: string, message: string, data?: any) => void;
106
106
  export declare const logFailure: (component: string, message: string, data?: any) => void;
107
107
  export {};
108
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,cAAM,MAAM;IACV,OAAO,CAAC,MAAM,CAKZ;IAEF,OAAO,CAAC,iBAAiB,CAQtB;IAEH;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI;IAI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M,EAAE,SAAS,MAAM,EAAE,OAAO,GAAG,SAC/B,CAAC;AACxC,eAAO,MAAM,OAAO,GAAI,WAAW,MAAM,EAAE,SAAS,MAAM,EAAE,OAAO,GAAG,SAC/B,CAAC;AACxC,eAAO,MAAM,QAAQ,GAAI,WAAW,MAAM,EAAE,SAAS,MAAM,EAAE,OAAO,GAAG,SAC/B,CAAC;AACzC,eAAO,MAAM,UAAU,GAAI,WAAW,MAAM,EAAE,SAAS,MAAM,EAAE,OAAO,GAAG,SAC/B,CAAC;AAC3C,eAAO,MAAM,UAAU,GAAI,WAAW,MAAM,EAAE,SAAS,MAAM,EAAE,OAAO,GAAG,SAC/B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IResourceAttributes } from '../types';
1
+ import { type IResourceAttributes } from '../types';
2
2
  export interface PlatformInfo {
3
3
  isExpo: boolean;
4
4
  isReactNative: boolean;
@@ -55,3 +55,4 @@ export declare function getAppMetadata(): {
55
55
  bundleId?: string;
56
56
  };
57
57
  export declare const getNavigatorInfo: () => IResourceAttributes;
58
+ //# sourceMappingURL=platform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../src/utils/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAiBpD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,IAAI,YAAY,CAuC7C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAiB3D;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAED,wBAAgB,wBAAwB,IAAI,OAAO,CAElD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAEP;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAEA;AAkCD;;GAEG;AACH,wBAAgB,cAAc,IAAI;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAsBA;AAoBD,eAAO,MAAM,gBAAgB,QAAO,mBAwLnC,CAAC"}
@@ -19,3 +19,4 @@ export declare const objectToQuery: (obj: Record<string, any>) => string;
19
19
  * @returns Object with parsed parameters
20
20
  */
21
21
  export declare const queryToObject: (queryString: string) => Record<string, string>;
22
+ //# sourceMappingURL=request-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/request-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,GAAG,KAAG,MAkB/C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAUxD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CASxE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { eventWithTime, serializedNodeWithId } from '@rrweb/types';
1
+ import { type eventWithTime, type serializedNodeWithId } from '@rrweb/types';
2
2
  /**
3
3
  * Creates a meta event to mark the start of recording
4
4
  * @param sessionId - The session ID
@@ -64,3 +64,4 @@ export declare function generateScreenHash(base64Image: string, sampleSize?: num
64
64
  * @returns Hash value as string
65
65
  */
66
66
  export declare function simpleHash(str: string): string;
67
+ //# sourceMappingURL=rrweb-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rrweb-events.d.ts","sourceRoot":"","sources":["../../../../src/utils/rrweb-events.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAG1B,MAAM,cAAc,CAAC;AAGtB;;;;;;GAMG;AACH,wBAAgB,wBAAwB,IAAI,aAAa,CAcxD;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,YAAQ,EAC7B,aAAa,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAClC,SAAS,CAAC,EAAE,MAAM,GACjB,aAAa,CA2Ff;AAED;;;;;;GAMG;AACH,wBAAgB,wCAAwC,CACtD,WAAW,EAAE,MAAM,EACnB,aAAa,GAAE,MAAc,EAC7B,SAAS,CAAC,EAAE,MAAM,GACjB,aAAa,CAqBf;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,YAAQ,EAC7B,MAAM,EAAE,MAAM,GACb,oBAAoB,CAatB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,oBAAoB,EAC/B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,aAAa,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GACjC,oBAAoB,CAkEtB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,EACnB,UAAU,GAAE,MAAY,GACvB,MAAM,CAaR;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQ9C"}
@@ -4,3 +4,4 @@ import { SessionType } from '@multiplayer-app/session-recorder-common';
4
4
  */
5
5
  export declare const isSessionActive: (session: any, sessionType: SessionType | null) => boolean;
6
6
  export declare const isConsoleEvent: (event: any) => boolean;
7
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/utils/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGvE;;GAEG;AAEH,eAAO,MAAM,eAAe,GAC1B,SAAS,GAAG,EACZ,aAAa,WAAW,GAAG,IAAI,KAC9B,OAOF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,KAAG,OAE3C,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function shallowEqual<T extends Record<string, any>>(a: T, b: T): boolean;
2
+ //# sourceMappingURL=shallowEqual.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shallowEqual.d.ts","sourceRoot":"","sources":["../../../../src/utils/shallowEqual.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxD,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,GACH,OAAO,CAgBT"}
@@ -2,3 +2,4 @@
2
2
  * Time and date utility functions for React Native
3
3
  */
4
4
  export declare const getFormattedDate: (date: number | Date, options?: any) => string;
5
+ //# sourceMappingURL=time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../../src/utils/time.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,MAAM,GAAG,IAAI,EACnB,UAAU,GAAG,KACZ,MAYF,CAAC"}
@@ -14,3 +14,4 @@ export declare const isNumber: (x: unknown) => x is number;
14
14
  export declare const isBoolean: (x: unknown) => x is boolean;
15
15
  export declare const isFormData: (x: unknown) => x is FormData;
16
16
  export declare const isFile: (x: unknown) => x is File;
17
+ //# sourceMappingURL=type-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/type-utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,6BAA0B,CAAC;AAGtD,eAAO,MAAM,OAAO,4BAIjB,CAAC;AACJ,eAAO,MAAM,YAAY,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,UAEvD,CAAC;AAIF,eAAO,MAAM,UAAU,GAAa,GAAG,GAAG,KAAG,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAErE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAErE,CAAC;AACF,eAAO,MAAM,aAAa,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAU1E,CAAC;AACF,eAAO,MAAM,WAAW,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,SAEtD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,MAEnD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAa,GAAG,OAAO,KAAG,OAEnD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,IAEjD,CAAC;AAMF,eAAO,MAAM,SAAS,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,IAAI,GAAG,SAE3D,CAAC;AAEF,eAAO,MAAM,MAAM,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,IAEjD,CAAC;AACF,eAAO,MAAM,QAAQ,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,MAEnD,CAAC;AACF,eAAO,MAAM,SAAS,GAAa,GAAG,OAAO,KAAG,CAAC,IAAI,OAEpD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,QAE5C,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,IAExC,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const version = "1.0.1-beta.3";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplayer-app/session-recorder-react-native",
3
- "version": "1.0.1-beta.3",
3
+ "version": "1.0.1-beta.5",
4
4
  "description": "Multiplayer Fullstack Session Recorder for React Native",
5
5
  "author": {
6
6
  "name": "Multiplayer Software, Inc.",
@@ -14,17 +14,42 @@
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/multiplayer-app/multiplayer-session-recorder-javascript.git"
16
16
  },
17
- "main": "dist/index.js",
18
- "types": "dist/index.d.ts",
17
+ "main": "./lib/module/index.js",
18
+ "types": "./lib/typescript/src/index.d.ts",
19
19
  "exports": {
20
20
  ".": {
21
- "import": "./dist/index.js",
22
- "require": "./dist/index.js"
23
- }
21
+ "source": "./src/index.ts",
22
+ "types": "./lib/typescript/src/index.d.ts",
23
+ "default": "./lib/module/index.js"
24
+ },
25
+ "./package.json": "./package.json"
24
26
  },
25
- "engines": {
26
- "node": ">=18",
27
- "npm": ">=8"
27
+ "files": [
28
+ "src",
29
+ "lib",
30
+ "android",
31
+ "ios",
32
+ "cpp",
33
+ "*.podspec",
34
+ "react-native.config.js",
35
+ "!ios/build",
36
+ "!android/build",
37
+ "!android/gradle",
38
+ "!android/gradlew",
39
+ "!android/gradlew.bat",
40
+ "!android/local.properties",
41
+ "!**/__tests__",
42
+ "!**/__fixtures__",
43
+ "!**/__mocks__",
44
+ "!**/.*"
45
+ ],
46
+ "scripts": {
47
+ "test": "jest",
48
+ "typecheck": "tsc",
49
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
50
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
51
+ "prepare": "bob build",
52
+ "release": "release-it --only-version"
28
53
  },
29
54
  "keywords": [
30
55
  "multiplayer",
@@ -40,29 +65,37 @@
40
65
  "screen-capture",
41
66
  "gesture-recording"
42
67
  ],
43
- "scripts": {
44
- "clean": "rimraf dist",
45
- "prebuild": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version)\" > src/version.ts",
46
- "prepublishOnly": "npm run build",
47
- "build": "tsc && babel ./dist --out-dir dist --extensions '.js'",
48
- "copy:dist": "./copy-react-native-dist.sh"
68
+ "publishConfig": {
69
+ "registry": "https://registry.npmjs.org/"
49
70
  },
50
71
  "devDependencies": {
51
- "@babel/cli": "^7.19.3",
52
- "@babel/plugin-transform-class-properties": "^7.24.1",
53
- "@babel/plugin-transform-private-methods": "^7.24.1",
54
- "@babel/plugin-transform-private-property-in-object": "^7.27.1",
55
- "@babel/preset-env": "^7.24.1",
56
- "@babel/preset-react": "^7.24.1",
57
- "@babel/preset-typescript": "^7.24.1",
58
- "@react-native/babel-preset": "^0.80.1",
59
- "@types/react": "^18.2.0",
60
- "@types/react-native": "^0.72.0",
61
- "eslint": "8.48.0",
62
- "react-native-safe-area-context": "^5.6.0",
63
- "react-native-svg": "^15.12.0",
64
- "rimraf": "^5.0.5",
65
- "typescript": "5.7.3"
72
+ "@commitlint/config-conventional": "^19.8.1",
73
+ "@eslint/compat": "^1.3.2",
74
+ "@eslint/eslintrc": "^3.3.1",
75
+ "@eslint/js": "^9.35.0",
76
+ "@evilmartians/lefthook": "^1.12.3",
77
+ "@opentelemetry/api": "^1.9.0",
78
+ "@react-native-community/cli": "20.0.1",
79
+ "@react-native/babel-preset": "0.81.1",
80
+ "@react-native/eslint-config": "^0.81.1",
81
+ "@release-it/conventional-changelog": "^10.0.1",
82
+ "@types/jest": "^29.5.14",
83
+ "@types/react": "^19.1.0",
84
+ "commitlint": "^19.8.1",
85
+ "del-cli": "^6.0.0",
86
+ "eslint": "^9.35.0",
87
+ "eslint-config-prettier": "^10.1.8",
88
+ "eslint-plugin-prettier": "^5.5.4",
89
+ "jest": "^29.7.0",
90
+ "prettier": "^3.6.2",
91
+ "react": "19.1.0",
92
+ "react-native": "0.81.1",
93
+ "react-native-builder-bob": "^0.40.13",
94
+ "react-native-safe-area-context": "^5.6.1",
95
+ "react-native-svg": "^15.14.0",
96
+ "release-it": "^19.0.4",
97
+ "turbo": "^2.5.6",
98
+ "typescript": "^5.9.2"
66
99
  },
67
100
  "dependencies": {
68
101
  "@multiplayer-app/session-recorder-common": "1.2.6",
@@ -85,25 +118,81 @@
85
118
  "socket.io-client": "4.7.5"
86
119
  },
87
120
  "peerDependencies": {
88
- "@opentelemetry/api": "^1.9.0",
121
+ "@opentelemetry/api": "*",
89
122
  "expo-constants": "*",
90
- "react": ">=18.0.0 <20.0.0",
91
- "react-native": ">=0.72.0 <0.83.0",
92
- "react-native-safe-area-context": ">=4.0.0 <6.0.0 || ^5.0.0",
93
- "react-native-svg": ">=15.12.0 <16.0.0"
123
+ "react": "*",
124
+ "react-native": "*",
125
+ "react-native-safe-area-context": "*",
126
+ "react-native-svg": "*"
127
+ },
128
+ "packageManager": "yarn@3.6.1",
129
+ "jest": {
130
+ "preset": "react-native",
131
+ "modulePathIgnorePatterns": [
132
+ "<rootDir>/example/node_modules",
133
+ "<rootDir>/lib/"
134
+ ]
94
135
  },
95
- "peerDependenciesMeta": {
96
- "expo-constants": {
97
- "optional": true
136
+ "commitlint": {
137
+ "extends": [
138
+ "@commitlint/config-conventional"
139
+ ]
140
+ },
141
+ "release-it": {
142
+ "git": {
143
+ "commitMessage": "chore: release ${version}",
144
+ "tagName": "v${version}"
145
+ },
146
+ "npm": {
147
+ "publish": true
148
+ },
149
+ "github": {
150
+ "release": true
151
+ },
152
+ "plugins": {
153
+ "@release-it/conventional-changelog": {
154
+ "preset": {
155
+ "name": "angular"
156
+ }
157
+ }
98
158
  }
99
159
  },
100
- "react-native": {
160
+ "prettier": {
161
+ "quoteProps": "consistent",
162
+ "singleQuote": true,
163
+ "tabWidth": 2,
164
+ "trailingComma": "es5",
165
+ "useTabs": false
166
+ },
167
+ "react-native-builder-bob": {
168
+ "source": "src",
169
+ "output": "lib",
170
+ "targets": [
171
+ [
172
+ "module",
173
+ {
174
+ "esm": true
175
+ }
176
+ ],
177
+ [
178
+ "typescript",
179
+ {
180
+ "project": "tsconfig.build.json"
181
+ }
182
+ ]
183
+ ]
184
+ },
185
+ "codegenConfig": {
186
+ "name": "SessionRecorderNativeSpec",
187
+ "type": "modules",
188
+ "jsSrcsDir": "src",
101
189
  "android": {
102
- "sourceDir": "./android",
103
- "packageImportPath": "import com.multiplayer.sessionrecordernative.SessionRecorderNativePackage;"
104
- },
105
- "ios": {
106
- "project": "./ios/SessionRecorderNative.xcodeproj"
190
+ "javaPackageName": "com.multiplayer.sessionrecordernative"
107
191
  }
192
+ },
193
+ "create-react-native-library": {
194
+ "languages": "kotlin-objc",
195
+ "type": "turbo-module",
196
+ "version": "0.54.5"
108
197
  }
109
198
  }
@@ -0,0 +1,20 @@
1
+ import SessionRecorder from '@multiplayer-app/session-recorder-react-native';
2
+ import { type PropsWithChildren } from 'react';
3
+ import { View } from 'react-native';
4
+
5
+ interface ScreenRecorderViewProps extends PropsWithChildren {}
6
+
7
+ export const ScreenRecorderView = ({ children }: ScreenRecorderViewProps) => {
8
+ // Callback ref to set the viewshot ref immediately when available
9
+ const setViewShotRef = (ref: any | undefined) => {
10
+ if (ref) {
11
+ SessionRecorder.setViewShotRef?.(ref);
12
+ }
13
+ };
14
+
15
+ return (
16
+ <View ref={setViewShotRef} style={{ flex: 1 }}>
17
+ {children}
18
+ </View>
19
+ );
20
+ };
@@ -0,0 +1 @@
1
+ export * from './ScreenRecorderView';
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ import { View, Text, Pressable, StyleSheet } from 'react-native';
3
+
4
+ interface ErrorBannerProps {
5
+ error: string;
6
+ onDismiss: () => void;
7
+ }
8
+
9
+ const ErrorBanner: React.FC<ErrorBannerProps> = ({ error, onDismiss }) => {
10
+ return (
11
+ <View style={styles.container}>
12
+ <View style={styles.content}>
13
+ <Text style={styles.errorText}>{error}</Text>
14
+ <Pressable onPress={onDismiss} style={styles.dismissButton}>
15
+ <Text style={styles.dismissText}>✕</Text>
16
+ </Pressable>
17
+ </View>
18
+ </View>
19
+ );
20
+ };
21
+
22
+ const styles = StyleSheet.create({
23
+ container: {
24
+ backgroundColor: '#ff4444',
25
+ paddingHorizontal: 16,
26
+ paddingVertical: 12,
27
+ marginHorizontal: 16,
28
+ marginTop: 8,
29
+ borderRadius: 8,
30
+ },
31
+ content: {
32
+ flexDirection: 'row',
33
+ alignItems: 'center',
34
+ justifyContent: 'space-between',
35
+ },
36
+ errorText: {
37
+ color: 'white',
38
+ fontSize: 14,
39
+ flex: 1,
40
+ marginRight: 8,
41
+ },
42
+ dismissButton: {
43
+ padding: 4,
44
+ borderRadius: 12,
45
+ backgroundColor: 'rgba(255, 255, 255, 0.2)',
46
+ width: 24,
47
+ height: 24,
48
+ alignItems: 'center',
49
+ justifyContent: 'center',
50
+ },
51
+ dismissText: {
52
+ color: 'white',
53
+ fontSize: 12,
54
+ fontWeight: 'bold',
55
+ },
56
+ });
57
+
58
+ export default ErrorBanner;
@@ -0,0 +1,96 @@
1
+ import React, { useState } from 'react';
2
+ import {
3
+ View,
4
+ Text,
5
+ Pressable,
6
+ TextInput,
7
+ ScrollView,
8
+ Keyboard,
9
+ } from 'react-native';
10
+ import { type TextOverridesOptions } from '../../types';
11
+ import { sharedStyles } from './styles';
12
+ import ModalHeader from './ModalHeader';
13
+ import { logger } from '../../utils';
14
+
15
+ interface FinalPopoverProps extends React.PropsWithChildren {
16
+ isOnline: boolean;
17
+ textOverrides: TextOverridesOptions;
18
+ onStopRecording: (comment: string) => void;
19
+ onCancelSession: () => void;
20
+ onClose: () => void;
21
+ isSubmitting: boolean;
22
+ }
23
+
24
+ const FinalPopover: React.FC<FinalPopoverProps> = ({
25
+ isOnline,
26
+ textOverrides,
27
+ onStopRecording,
28
+ onCancelSession,
29
+ isSubmitting,
30
+ children,
31
+ }) => {
32
+ const [comment, setComment] = useState('');
33
+
34
+ const handleStopRecording = async () => {
35
+ try {
36
+ await onStopRecording(comment);
37
+ } catch (error) {
38
+ logger.error('FinalPopover', 'Failed to save session', error);
39
+ }
40
+ };
41
+
42
+ return (
43
+ <View style={sharedStyles.popoverContent}>
44
+ <ModalHeader>
45
+ <Pressable
46
+ onPress={onCancelSession}
47
+ disabled={!isOnline}
48
+ style={sharedStyles.cancelButton}
49
+ >
50
+ <Text style={sharedStyles.cancelButtonText}>
51
+ {textOverrides.cancelButtonText}
52
+ </Text>
53
+ </Pressable>
54
+ </ModalHeader>
55
+
56
+ <ScrollView
57
+ style={sharedStyles.popoverBody}
58
+ keyboardShouldPersistTaps="handled"
59
+ contentInsetAdjustmentBehavior="automatic"
60
+ >
61
+ {children}
62
+ <Text style={sharedStyles.title}>{textOverrides.finalTitle}</Text>
63
+ <Text style={sharedStyles.description}>
64
+ {textOverrides.finalDescription}
65
+ </Text>
66
+
67
+ <TextInput
68
+ style={sharedStyles.commentInput}
69
+ placeholder={textOverrides.commentPlaceholder}
70
+ placeholderTextColor={'#9CA3AF'}
71
+ value={comment}
72
+ onChangeText={setComment}
73
+ multiline
74
+ numberOfLines={3}
75
+ returnKeyType="done"
76
+ blurOnSubmit
77
+ onSubmitEditing={() => Keyboard.dismiss()}
78
+ />
79
+
80
+ <View style={sharedStyles.popoverFooter}>
81
+ <Pressable
82
+ disabled={isSubmitting || !isOnline}
83
+ style={[sharedStyles.actionButton, sharedStyles.stopButton]}
84
+ onPress={handleStopRecording}
85
+ >
86
+ <Text style={sharedStyles.actionButtonText}>
87
+ {isSubmitting ? 'Saving...' : textOverrides.saveButtonText}
88
+ </Text>
89
+ </Pressable>
90
+ </View>
91
+ </ScrollView>
92
+ </View>
93
+ );
94
+ };
95
+
96
+ export default FinalPopover;