@multiplayer-app/session-recorder-react-native 1.0.1-beta.2 → 1.0.1-beta.4
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.
- package/LICENSE +1 -2
- package/README.md +216 -155
- package/SessionRecorderNative.podspec +9 -14
- package/android/build.gradle +21 -41
- package/android/gradle.properties +4 -4
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/multiplayer/sessionrecordernative/SessionRecorderNativeConfig.kt +52 -0
- package/android/src/main/java/com/multiplayer/sessionrecordernative/SessionRecorderNativeModule.kt +860 -0
- package/android/src/main/java/com/multiplayer/sessionrecordernative/SessionRecorderNativeModuleSpec.kt +51 -0
- package/android/src/main/java/com/multiplayer/sessionrecordernative/SessionRecorderNativePackage.kt +33 -0
- package/android/src/main/java/com/multiplayer/sessionrecordernative/model/TargetInfo.kt +9 -0
- package/android/src/main/java/com/multiplayer/sessionrecordernative/util/ViewUtils.kt +72 -0
- package/android/src/main/java/com/xxx/XxxModule.kt +23 -0
- package/ios/GestureTargetFinder.swift +50 -0
- package/ios/SessionRecorderNative.podspec +4 -2
- package/ios/SessionRecorderNative.swift +10 -1
- package/ios/SessionRecorderNativeSpec.swift +55 -0
- package/ios/Xxx.h +5 -0
- package/ios/Xxx.mm +21 -0
- package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js +23 -0
- package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js.map +1 -0
- package/lib/module/components/ScreenRecorderView/index.js +4 -0
- package/lib/module/components/ScreenRecorderView/index.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/ErrorBanner.js +64 -0
- package/lib/module/components/SessionRecorderWidget/ErrorBanner.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/FinalPopover.js +74 -0
- package/lib/module/components/SessionRecorderWidget/FinalPopover.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/FloatingButton.js +191 -0
- package/lib/module/components/SessionRecorderWidget/FloatingButton.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/InitialPopover.js +138 -0
- package/lib/module/components/SessionRecorderWidget/InitialPopover.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/ModalContainer.js +177 -0
- package/lib/module/components/SessionRecorderWidget/ModalContainer.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/ModalHeader.js +27 -0
- package/lib/module/components/SessionRecorderWidget/ModalHeader.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js +133 -0
- package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/icons.js +93 -0
- package/lib/module/components/SessionRecorderWidget/icons.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/index.js +5 -0
- package/lib/module/components/SessionRecorderWidget/index.js.map +1 -0
- package/lib/module/components/SessionRecorderWidget/styles.js +173 -0
- package/lib/module/components/SessionRecorderWidget/styles.js.map +1 -0
- package/lib/module/components/index.js +5 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/config/constants.js +42 -0
- package/lib/module/config/constants.js.map +1 -0
- package/lib/module/config/defaults.js +81 -0
- package/lib/module/config/defaults.js.map +1 -0
- package/lib/module/config/index.js +9 -0
- package/lib/module/config/index.js.map +1 -0
- package/lib/module/config/masking.js +35 -0
- package/lib/module/config/masking.js.map +1 -0
- package/lib/module/config/session-recorder.js +44 -0
- package/lib/module/config/session-recorder.js.map +1 -0
- package/lib/module/config/validators.js +28 -0
- package/lib/module/config/validators.js.map +1 -0
- package/lib/module/config/widget.js +35 -0
- package/lib/module/config/widget.js.map +1 -0
- package/lib/module/context/SessionRecorderContext.js +93 -0
- package/lib/module/context/SessionRecorderContext.js.map +1 -0
- package/lib/module/context/SessionRecorderStore.js +12 -0
- package/lib/module/context/SessionRecorderStore.js.map +1 -0
- package/lib/module/context/useSessionRecorderStore.js +20 -0
- package/lib/module/context/useSessionRecorderStore.js.map +1 -0
- package/lib/module/context/useStoreSelector.js +27 -0
- package/lib/module/context/useStoreSelector.js.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/native/SessionRecorderNative.js +74 -0
- package/lib/module/native/SessionRecorderNative.js.map +1 -0
- package/lib/module/native/index.js +4 -0
- package/lib/module/native/index.js.map +1 -0
- package/lib/module/otel/helpers.js +218 -0
- package/lib/module/otel/helpers.js.map +1 -0
- package/lib/module/otel/index.js +95 -0
- package/lib/module/otel/index.js.map +1 -0
- package/lib/module/otel/instrumentations/index.js +102 -0
- package/lib/module/otel/instrumentations/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/patch/index.js +4 -0
- package/lib/module/patch/index.js.map +1 -0
- package/lib/module/patch/xhr.js +116 -0
- package/lib/module/patch/xhr.js.map +1 -0
- package/lib/module/recorder/eventExporter.js +130 -0
- package/lib/module/recorder/eventExporter.js.map +1 -0
- package/lib/module/recorder/gestureRecorder.js +641 -0
- package/lib/module/recorder/gestureRecorder.js.map +1 -0
- package/lib/module/recorder/index.js +168 -0
- package/lib/module/recorder/index.js.map +1 -0
- package/lib/module/recorder/navigationTracker.js +228 -0
- package/lib/module/recorder/navigationTracker.js.map +1 -0
- package/lib/module/recorder/screenRecorder.js +495 -0
- package/lib/module/recorder/screenRecorder.js.map +1 -0
- package/lib/module/services/api.service.js +149 -0
- package/lib/module/services/api.service.js.map +1 -0
- package/lib/module/services/network.service.js +178 -0
- package/lib/module/services/network.service.js.map +1 -0
- package/lib/module/services/screenMaskingService.js +107 -0
- package/lib/module/services/screenMaskingService.js.map +1 -0
- package/lib/module/services/storage.service.js +179 -0
- package/lib/module/services/storage.service.js.map +1 -0
- package/lib/module/session-recorder.js +541 -0
- package/lib/module/session-recorder.js.map +1 -0
- package/lib/module/types/configs.js +4 -0
- package/lib/module/types/configs.js.map +1 -0
- package/lib/module/types/expo-constants.d.js +2 -0
- package/lib/module/types/expo-constants.d.js.map +1 -0
- package/lib/module/types/index.js +11 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/session-recorder.js +68 -0
- package/lib/module/types/session-recorder.js.map +1 -0
- package/lib/module/types/session.js +9 -0
- package/lib/module/types/session.js.map +1 -0
- package/lib/module/utils/app-metadata.js +28 -0
- package/lib/module/utils/app-metadata.js.map +1 -0
- package/lib/module/utils/constants.optional.expo.js +6 -0
- package/lib/module/utils/constants.optional.expo.js.map +1 -0
- package/lib/module/utils/constants.optional.js +8 -0
- package/lib/module/utils/constants.optional.js.map +1 -0
- package/lib/module/utils/createStore.js +27 -0
- package/lib/module/utils/createStore.js.map +1 -0
- package/lib/module/utils/index.js +11 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/logger.js +193 -0
- package/lib/module/utils/logger.js.map +1 -0
- package/lib/module/utils/platform.js +340 -0
- package/lib/module/utils/platform.js.map +1 -0
- package/lib/module/utils/request-utils.js +58 -0
- package/lib/module/utils/request-utils.js.map +1 -0
- package/lib/module/utils/rrweb-events.js +276 -0
- package/lib/module/utils/rrweb-events.js.map +1 -0
- package/lib/module/utils/session.js +21 -0
- package/lib/module/utils/session.js.map +1 -0
- package/lib/module/utils/shallowEqual.js +17 -0
- package/lib/module/utils/shallowEqual.js.map +1 -0
- package/lib/module/utils/time.js +17 -0
- package/lib/module/utils/time.js.map +1 -0
- package/lib/module/utils/type-utils.js +69 -0
- package/lib/module/utils/type-utils.js.map +1 -0
- package/lib/module/version.js +4 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts +6 -0
- package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts.map +1 -0
- package/lib/typescript/src/components/ScreenRecorderView/index.d.ts +2 -0
- package/lib/typescript/src/components/ScreenRecorderView/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/ErrorBanner.d.ts +1 -0
- package/lib/typescript/src/components/SessionRecorderWidget/ErrorBanner.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/FinalPopover.d.ts +2 -1
- package/lib/typescript/src/components/SessionRecorderWidget/FinalPopover.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/FloatingButton.d.ts +1 -0
- package/lib/typescript/src/components/SessionRecorderWidget/FloatingButton.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/InitialPopover.d.ts +2 -1
- package/lib/typescript/src/components/SessionRecorderWidget/InitialPopover.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/ModalContainer.d.ts +1 -0
- package/lib/typescript/src/components/SessionRecorderWidget/ModalContainer.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/ModalHeader.d.ts +1 -0
- package/lib/typescript/src/components/SessionRecorderWidget/ModalHeader.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/SessionRecorderWidget.d.ts +1 -0
- package/lib/typescript/src/components/SessionRecorderWidget/SessionRecorderWidget.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/icons.d.ts +1 -0
- package/lib/typescript/src/components/SessionRecorderWidget/icons.d.ts.map +1 -0
- package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts +3 -0
- package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/SessionRecorderWidget/styles.d.ts +4 -3
- package/lib/typescript/src/components/SessionRecorderWidget/styles.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/config/constants.d.ts +1 -0
- package/lib/typescript/src/config/constants.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/config/defaults.d.ts +2 -1
- package/lib/typescript/src/config/defaults.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/config/index.d.ts +1 -0
- package/lib/typescript/src/config/index.d.ts.map +1 -0
- package/lib/typescript/src/config/masking.d.ts +3 -0
- package/lib/typescript/src/config/masking.d.ts.map +1 -0
- package/lib/typescript/src/config/session-recorder.d.ts +3 -0
- package/lib/typescript/src/config/session-recorder.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/config/validators.d.ts +1 -0
- package/lib/typescript/src/config/validators.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/config/widget.d.ts +2 -1
- package/lib/typescript/src/config/widget.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/context/SessionRecorderContext.d.ts +3 -2
- package/lib/typescript/src/context/SessionRecorderContext.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/context/SessionRecorderStore.d.ts +2 -1
- package/lib/typescript/src/context/SessionRecorderStore.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/context/useSessionRecorderStore.d.ts +2 -1
- package/lib/typescript/src/context/useSessionRecorderStore.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/context/useStoreSelector.d.ts +2 -1
- package/lib/typescript/src/context/useStoreSelector.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/native/SessionRecorderNative.d.ts +21 -3
- package/lib/typescript/src/native/SessionRecorderNative.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/native/index.d.ts +1 -0
- package/lib/typescript/src/native/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/otel/helpers.d.ts +3 -2
- package/lib/typescript/src/otel/helpers.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/otel/index.d.ts +2 -2
- package/lib/typescript/src/otel/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/otel/instrumentations/index.d.ts +2 -1
- package/lib/typescript/src/otel/instrumentations/index.d.ts.map +1 -0
- package/lib/typescript/src/patch/index.d.ts +2 -0
- package/lib/typescript/src/patch/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/patch/xhr.d.ts +1 -0
- package/lib/typescript/src/patch/xhr.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/recorder/eventExporter.d.ts +2 -1
- package/lib/typescript/src/recorder/eventExporter.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/recorder/gestureRecorder.d.ts +3 -2
- package/lib/typescript/src/recorder/gestureRecorder.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/recorder/index.d.ts +3 -2
- package/lib/typescript/src/recorder/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/recorder/navigationTracker.d.ts +2 -1
- package/lib/typescript/src/recorder/navigationTracker.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/recorder/screenRecorder.d.ts +4 -4
- package/lib/typescript/src/recorder/screenRecorder.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/services/api.service.d.ts +2 -1
- package/lib/typescript/src/services/api.service.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/services/network.service.d.ts +1 -0
- package/lib/typescript/src/services/network.service.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/services/screenMaskingService.d.ts +2 -1
- package/lib/typescript/src/services/screenMaskingService.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/services/storage.service.d.ts +2 -1
- package/lib/typescript/src/services/storage.service.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/session-recorder.d.ts +3 -2
- package/lib/typescript/src/session-recorder.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/types/configs.d.ts +3 -2
- package/lib/typescript/src/types/configs.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/types/index.d.ts +1 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/types/session-recorder.d.ts +3 -2
- package/lib/typescript/src/types/session-recorder.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/types/session.d.ts +1 -0
- package/lib/typescript/src/types/session.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/app-metadata.d.ts +1 -0
- package/lib/typescript/src/utils/app-metadata.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/constants.optional.d.ts +1 -0
- package/lib/typescript/src/utils/constants.optional.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/constants.optional.expo.d.ts +1 -0
- package/lib/typescript/src/utils/constants.optional.expo.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/createStore.d.ts +1 -0
- package/lib/typescript/src/utils/createStore.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/index.d.ts +1 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/logger.d.ts +1 -0
- package/lib/typescript/src/utils/logger.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/platform.d.ts +2 -1
- package/lib/typescript/src/utils/platform.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/request-utils.d.ts +1 -0
- package/lib/typescript/src/utils/request-utils.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/rrweb-events.d.ts +2 -1
- package/lib/typescript/src/utils/rrweb-events.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/session.d.ts +1 -0
- package/lib/typescript/src/utils/session.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/shallowEqual.d.ts +1 -0
- package/lib/typescript/src/utils/shallowEqual.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/time.d.ts +1 -0
- package/lib/typescript/src/utils/time.d.ts.map +1 -0
- package/{dist → lib/typescript/src}/utils/type-utils.d.ts +1 -0
- package/lib/typescript/src/utils/type-utils.d.ts.map +1 -0
- package/lib/typescript/src/version.d.ts +2 -0
- package/lib/typescript/src/version.d.ts.map +1 -0
- package/package.json +140 -39
- package/src/components/ScreenRecorderView/ScreenRecorderView.tsx +20 -0
- package/src/components/SessionRecorderWidget/ErrorBanner.tsx +58 -0
- package/src/components/SessionRecorderWidget/FinalPopover.tsx +96 -0
- package/src/components/SessionRecorderWidget/FloatingButton.tsx +176 -0
- package/src/components/SessionRecorderWidget/InitialPopover.tsx +167 -0
- package/src/components/SessionRecorderWidget/ModalContainer.tsx +189 -0
- package/src/components/SessionRecorderWidget/ModalHeader.tsx +24 -0
- package/src/components/SessionRecorderWidget/SessionRecorderWidget.tsx +136 -0
- package/src/components/SessionRecorderWidget/icons.tsx +52 -0
- package/{dist/components/SessionRecorderWidget/index.d.ts → src/components/SessionRecorderWidget/index.ts} +1 -0
- package/src/components/SessionRecorderWidget/styles.ts +169 -0
- package/src/components/index.ts +2 -0
- package/src/config/constants.ts +68 -0
- package/src/config/defaults.ts +101 -0
- package/src/config/index.ts +6 -0
- package/src/config/masking.ts +34 -0
- package/src/config/session-recorder.ts +59 -0
- package/src/config/validators.ts +31 -0
- package/src/config/widget.ts +38 -0
- package/src/context/SessionRecorderContext.tsx +138 -0
- package/src/context/SessionRecorderStore.ts +21 -0
- package/src/context/useSessionRecorderStore.ts +27 -0
- package/src/context/useStoreSelector.ts +34 -0
- package/src/index.ts +10 -0
- package/src/native/SessionRecorderNative.ts +164 -0
- package/src/native/index.ts +1 -0
- package/src/otel/helpers.ts +274 -0
- package/src/otel/index.ts +135 -0
- package/src/otel/instrumentations/index.ts +115 -0
- package/src/patch/index.ts +1 -0
- package/src/patch/xhr.ts +149 -0
- package/src/recorder/eventExporter.ts +155 -0
- package/src/recorder/gestureRecorder.ts +681 -0
- package/src/recorder/index.ts +190 -0
- package/src/recorder/navigationTracker.ts +245 -0
- package/src/recorder/screenRecorder.ts +549 -0
- package/src/services/api.service.ts +215 -0
- package/src/services/network.service.ts +182 -0
- package/src/services/screenMaskingService.ts +122 -0
- package/src/services/storage.service.ts +219 -0
- package/src/session-recorder.ts +591 -0
- package/src/types/configs.ts +96 -0
- package/src/types/expo-constants.d.ts +7 -0
- package/src/types/index.ts +29 -0
- package/src/types/session-recorder.ts +386 -0
- package/src/types/session.ts +65 -0
- package/src/utils/app-metadata.ts +31 -0
- package/src/utils/constants.optional.expo.ts +5 -0
- package/src/utils/constants.optional.ts +16 -0
- package/src/utils/createStore.ts +29 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/logger.ts +216 -0
- package/src/utils/platform.ts +370 -0
- package/src/utils/request-utils.ts +61 -0
- package/src/utils/rrweb-events.ts +316 -0
- package/src/utils/session.ts +19 -0
- package/src/utils/shallowEqual.ts +14 -0
- package/src/utils/time.ts +17 -0
- package/src/utils/type-utils.ts +75 -0
- package/src/version.ts +1 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/android/gradlew +0 -249
- package/android/gradlew.bat +0 -92
- package/copy-react-native-dist.sh +0 -56
- package/dist/components/ScreenRecorderView/ScreenRecorderView.d.ts +0 -5
- package/dist/components/ScreenRecorderView/ScreenRecorderView.js +0 -1
- package/dist/components/ScreenRecorderView/ScreenRecorderView.js.map +0 -1
- package/dist/components/ScreenRecorderView/index.js +0 -1
- package/dist/components/ScreenRecorderView/index.js.map +0 -1
- package/dist/components/SessionRecorderWidget/ErrorBanner.js +0 -1
- package/dist/components/SessionRecorderWidget/ErrorBanner.js.map +0 -1
- package/dist/components/SessionRecorderWidget/FinalPopover.js +0 -1
- package/dist/components/SessionRecorderWidget/FinalPopover.js.map +0 -1
- package/dist/components/SessionRecorderWidget/FloatingButton.js +0 -1
- package/dist/components/SessionRecorderWidget/FloatingButton.js.map +0 -1
- package/dist/components/SessionRecorderWidget/InitialPopover.js +0 -1
- package/dist/components/SessionRecorderWidget/InitialPopover.js.map +0 -1
- package/dist/components/SessionRecorderWidget/ModalContainer.js +0 -1
- package/dist/components/SessionRecorderWidget/ModalContainer.js.map +0 -1
- package/dist/components/SessionRecorderWidget/ModalHeader.js +0 -1
- package/dist/components/SessionRecorderWidget/ModalHeader.js.map +0 -1
- package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js +0 -1
- package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js.map +0 -1
- package/dist/components/SessionRecorderWidget/icons.js +0 -1
- package/dist/components/SessionRecorderWidget/icons.js.map +0 -1
- package/dist/components/SessionRecorderWidget/index.js +0 -1
- package/dist/components/SessionRecorderWidget/index.js.map +0 -1
- package/dist/components/SessionRecorderWidget/styles.js +0 -1
- package/dist/components/SessionRecorderWidget/styles.js.map +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/config/constants.js +0 -1
- package/dist/config/constants.js.map +0 -1
- package/dist/config/defaults.js +0 -1
- package/dist/config/defaults.js.map +0 -1
- package/dist/config/index.js +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/masking.d.ts +0 -2
- package/dist/config/masking.js +0 -1
- package/dist/config/masking.js.map +0 -1
- package/dist/config/session-recorder.d.ts +0 -2
- package/dist/config/session-recorder.js +0 -1
- package/dist/config/session-recorder.js.map +0 -1
- package/dist/config/validators.js +0 -1
- package/dist/config/validators.js.map +0 -1
- package/dist/config/widget.js +0 -1
- package/dist/config/widget.js.map +0 -1
- package/dist/context/SessionRecorderContext.js +0 -1
- package/dist/context/SessionRecorderContext.js.map +0 -1
- package/dist/context/SessionRecorderStore.js +0 -1
- package/dist/context/SessionRecorderStore.js.map +0 -1
- package/dist/context/useSessionRecorderStore.js +0 -1
- package/dist/context/useSessionRecorderStore.js.map +0 -1
- package/dist/context/useStoreSelector.js +0 -1
- package/dist/context/useStoreSelector.js.map +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +0 -1
- package/dist/native/GestureRecorderNative.d.ts +0 -57
- package/dist/native/GestureRecorderNative.js +0 -1
- package/dist/native/GestureRecorderNative.js.map +0 -1
- package/dist/native/GestureRecorderNativeTurboSpec.d.ts +0 -31
- package/dist/native/GestureRecorderNativeTurboSpec.js +0 -1
- package/dist/native/GestureRecorderNativeTurboSpec.js.map +0 -1
- package/dist/native/SessionRecorderNative.js +0 -1
- package/dist/native/SessionRecorderNative.js.map +0 -1
- package/dist/native/SessionRecorderNativeTurboSpec.d.ts +0 -17
- package/dist/native/SessionRecorderNativeTurboSpec.js +0 -1
- package/dist/native/SessionRecorderNativeTurboSpec.js.map +0 -1
- package/dist/native/index.js +0 -1
- package/dist/native/index.js.map +0 -1
- package/dist/otel/helpers.js +0 -1
- package/dist/otel/helpers.js.map +0 -1
- package/dist/otel/index.js +0 -1
- package/dist/otel/index.js.map +0 -1
- package/dist/otel/instrumentations/index.js +0 -1
- package/dist/otel/instrumentations/index.js.map +0 -1
- package/dist/patch/index.d.ts +0 -1
- package/dist/patch/index.js +0 -1
- package/dist/patch/index.js.map +0 -1
- package/dist/patch/xhr.js +0 -1
- package/dist/patch/xhr.js.map +0 -1
- package/dist/recorder/eventExporter.js +0 -1
- package/dist/recorder/eventExporter.js.map +0 -1
- package/dist/recorder/gestureRecorder.js +0 -1
- package/dist/recorder/gestureRecorder.js.map +0 -1
- package/dist/recorder/index.js +0 -1
- package/dist/recorder/index.js.map +0 -1
- package/dist/recorder/navigationTracker.js +0 -1
- package/dist/recorder/navigationTracker.js.map +0 -1
- package/dist/recorder/screenRecorder.js +0 -1
- package/dist/recorder/screenRecorder.js.map +0 -1
- package/dist/services/api.service.js +0 -1
- package/dist/services/api.service.js.map +0 -1
- package/dist/services/network.service.js +0 -1
- package/dist/services/network.service.js.map +0 -1
- package/dist/services/screenMaskingService.js +0 -1
- package/dist/services/screenMaskingService.js.map +0 -1
- package/dist/services/storage.service.js +0 -1
- package/dist/services/storage.service.js.map +0 -1
- package/dist/session-recorder.js +0 -1
- package/dist/session-recorder.js.map +0 -1
- package/dist/types/configs.js +0 -1
- package/dist/types/configs.js.map +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/session-recorder.js +0 -1
- package/dist/types/session-recorder.js.map +0 -1
- package/dist/types/session.js +0 -1
- package/dist/types/session.js.map +0 -1
- package/dist/utils/app-metadata.js +0 -1
- package/dist/utils/app-metadata.js.map +0 -1
- package/dist/utils/constants.optional.expo.js +0 -1
- package/dist/utils/constants.optional.expo.js.map +0 -1
- package/dist/utils/constants.optional.js +0 -1
- package/dist/utils/constants.optional.js.map +0 -1
- package/dist/utils/createStore.js +0 -1
- package/dist/utils/createStore.js.map +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.js +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/platform.js +0 -1
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/request-utils.js +0 -1
- package/dist/utils/request-utils.js.map +0 -1
- package/dist/utils/rrweb-events.js +0 -1
- package/dist/utils/rrweb-events.js.map +0 -1
- package/dist/utils/session.js +0 -1
- package/dist/utils/session.js.map +0 -1
- package/dist/utils/shallowEqual.js +0 -1
- package/dist/utils/shallowEqual.js.map +0 -1
- package/dist/utils/time.js +0 -1
- package/dist/utils/time.js.map +0 -1
- package/dist/utils/type-utils.js +0 -1
- package/dist/utils/type-utils.js.map +0 -1
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -1
- package/dist/version.js.map +0 -1
- package/docs/AUTO_METADATA_DETECTION.md +0 -108
- /package/{dist/components/ScreenRecorderView/index.d.ts → src/components/ScreenRecorderView/index.ts} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path, Circle } from 'react-native-svg'
|
|
3
|
+
|
|
4
|
+
interface IconProps {
|
|
5
|
+
size?: number
|
|
6
|
+
color?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const RecordIcon: React.FC<IconProps> = ({ size = 19, color = 'white' }) => (
|
|
10
|
+
<Svg width={size} height={size} viewBox='0 0 19 19' fill='none'>
|
|
11
|
+
<Path
|
|
12
|
+
fillRule='evenodd'
|
|
13
|
+
clipRule='evenodd'
|
|
14
|
+
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'
|
|
15
|
+
fill={color}
|
|
16
|
+
/>
|
|
17
|
+
</Svg>
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
export const CapturingIcon: React.FC<IconProps> = ({ size = 24, color = 'white' }) => (
|
|
21
|
+
<Svg width={size} height={size} viewBox='0 0 24 24' fill='none'>
|
|
22
|
+
<Circle cx='12' cy='12' r='4' fill={color} />
|
|
23
|
+
<Circle cx='12' cy='12' r='7.5' stroke={color} strokeWidth='1' />
|
|
24
|
+
<Circle cx='12' cy='12' r='11.5' stroke={color} strokeWidth='1' opacity='0.2' />
|
|
25
|
+
</Svg>
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
export const PausedIcon: React.FC<IconProps> = ({ size = 24, color = 'white' }) => (
|
|
29
|
+
<Svg width={size} height={size} viewBox='0 0 24 24' fill='none'>
|
|
30
|
+
<Path d='M8 5V19M16 5V19' stroke={color} strokeWidth='2' strokeLinecap='round' strokeLinejoin='round' />
|
|
31
|
+
</Svg>
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
export const CheckmarkIcon: React.FC<IconProps> = ({ size = 24, color = 'white' }) => (
|
|
35
|
+
<Svg width={size} height={size} viewBox='0 0 24 24' fill='none'>
|
|
36
|
+
<Path
|
|
37
|
+
fillRule='evenodd'
|
|
38
|
+
clipRule='evenodd'
|
|
39
|
+
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'
|
|
40
|
+
fill={color}
|
|
41
|
+
/>
|
|
42
|
+
</Svg>
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
export const LogoIcon: React.FC<IconProps> = ({ size = 30, color = '#473CFB' }) => (
|
|
46
|
+
<Svg width={size} height={size * 0.8} viewBox='0 0 30 24' fill='none'>
|
|
47
|
+
<Path
|
|
48
|
+
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'
|
|
49
|
+
fill={color}
|
|
50
|
+
/>
|
|
51
|
+
</Svg>
|
|
52
|
+
)
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native'
|
|
2
|
+
|
|
3
|
+
export const sharedStyles = StyleSheet.create({
|
|
4
|
+
// Popover styles
|
|
5
|
+
popoverContent: {
|
|
6
|
+
flex: 1,
|
|
7
|
+
paddingHorizontal: 0
|
|
8
|
+
},
|
|
9
|
+
popoverHeader: {
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
paddingBottom: 8,
|
|
12
|
+
paddingHorizontal: 16,
|
|
13
|
+
borderTopLeftRadius: 20,
|
|
14
|
+
borderTopRightRadius: 20,
|
|
15
|
+
backgroundColor: '#f4f9ff',
|
|
16
|
+
shadowColor: '#f4f9ff',
|
|
17
|
+
shadowOffset: { width: 0, height: 5, },
|
|
18
|
+
shadowOpacity: 1,
|
|
19
|
+
shadowRadius: 5,
|
|
20
|
+
elevation: 10,
|
|
21
|
+
},
|
|
22
|
+
modalHandle: {
|
|
23
|
+
marginTop: 8,
|
|
24
|
+
marginBottom: 16,
|
|
25
|
+
width: 40,
|
|
26
|
+
height: 4,
|
|
27
|
+
backgroundColor: '#D1D5DB',
|
|
28
|
+
borderRadius: 2,
|
|
29
|
+
alignSelf: 'center',
|
|
30
|
+
},
|
|
31
|
+
popoverHeaderContent: {
|
|
32
|
+
flexDirection: 'row',
|
|
33
|
+
justifyContent: 'space-between',
|
|
34
|
+
alignItems: 'flex-start',
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
cancelButton: {
|
|
39
|
+
paddingHorizontal: 12,
|
|
40
|
+
paddingVertical: 6,
|
|
41
|
+
borderRadius: 6,
|
|
42
|
+
borderWidth: 1,
|
|
43
|
+
borderColor: '#e1e8f1',
|
|
44
|
+
backgroundColor: '#fff',
|
|
45
|
+
shadowColor: '#000',
|
|
46
|
+
shadowOffset: { width: 0, height: 2 },
|
|
47
|
+
shadowOpacity: 0.06,
|
|
48
|
+
shadowRadius: 3,
|
|
49
|
+
elevation: 3,
|
|
50
|
+
},
|
|
51
|
+
cancelButtonText: {
|
|
52
|
+
color: '#374151',
|
|
53
|
+
fontSize: 14,
|
|
54
|
+
fontWeight: '500'
|
|
55
|
+
},
|
|
56
|
+
popoverBody: {
|
|
57
|
+
flex: 1,
|
|
58
|
+
padding: 16,
|
|
59
|
+
paddingTop: 24,
|
|
60
|
+
},
|
|
61
|
+
title: {
|
|
62
|
+
fontSize: 18,
|
|
63
|
+
fontWeight: '600',
|
|
64
|
+
color: '#2d3748',
|
|
65
|
+
marginBottom: 12
|
|
66
|
+
},
|
|
67
|
+
description: {
|
|
68
|
+
fontSize: 14,
|
|
69
|
+
color: '#718096',
|
|
70
|
+
marginBottom: 16
|
|
71
|
+
},
|
|
72
|
+
popoverFooter: {
|
|
73
|
+
marginTop: 'auto',
|
|
74
|
+
paddingTop: 16
|
|
75
|
+
},
|
|
76
|
+
actionButton: {
|
|
77
|
+
paddingVertical: 16,
|
|
78
|
+
paddingHorizontal: 24,
|
|
79
|
+
borderRadius: 12,
|
|
80
|
+
alignItems: 'center'
|
|
81
|
+
},
|
|
82
|
+
actionButtonText: {
|
|
83
|
+
color: 'white',
|
|
84
|
+
fontSize: 16,
|
|
85
|
+
fontWeight: '500'
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
// Continuous recording styles
|
|
89
|
+
continuousRecordingSection: {
|
|
90
|
+
flexDirection: 'row',
|
|
91
|
+
justifyContent: 'space-between',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
marginBottom: 20,
|
|
94
|
+
paddingVertical: 12,
|
|
95
|
+
paddingHorizontal: 16,
|
|
96
|
+
borderWidth: 1,
|
|
97
|
+
borderColor: '#e1e8f1',
|
|
98
|
+
backgroundColor: '#fff',
|
|
99
|
+
borderRadius: 12,
|
|
100
|
+
shadowColor: '#000',
|
|
101
|
+
shadowOffset: { width: 0, height: 2 },
|
|
102
|
+
shadowOpacity: 0.06,
|
|
103
|
+
shadowRadius: 3,
|
|
104
|
+
elevation: 3,
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
continuousRecordingLabel: {
|
|
108
|
+
fontSize: 16,
|
|
109
|
+
fontWeight: '500',
|
|
110
|
+
color: '#374151'
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
continuousOverlay: {
|
|
114
|
+
borderRadius: 12,
|
|
115
|
+
borderWidth: 1,
|
|
116
|
+
borderColor: '#e1e8f1',
|
|
117
|
+
backgroundColor: '#fff',
|
|
118
|
+
padding: 12,
|
|
119
|
+
shadowColor: '#000',
|
|
120
|
+
shadowOffset: { width: 0, height: 2 },
|
|
121
|
+
shadowOpacity: 0.06,
|
|
122
|
+
shadowRadius: 3,
|
|
123
|
+
elevation: 3,
|
|
124
|
+
flexDirection: 'column',
|
|
125
|
+
gap: 8,
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
continuousOverlayHeader: {
|
|
129
|
+
flexDirection: 'row',
|
|
130
|
+
alignItems: 'center',
|
|
131
|
+
gap: 8,
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
continuousOverlayTitle: {
|
|
135
|
+
fontSize: 14,
|
|
136
|
+
fontWeight: '500',
|
|
137
|
+
color: '#2d3748',
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
continuousOverlayDescription: {
|
|
141
|
+
fontSize: 14,
|
|
142
|
+
color: '#718096',
|
|
143
|
+
lineHeight: 20
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
// Comment input styles
|
|
147
|
+
commentInput: {
|
|
148
|
+
borderWidth: 1,
|
|
149
|
+
borderColor: '#D1D5DB',
|
|
150
|
+
borderRadius: 8,
|
|
151
|
+
padding: 12,
|
|
152
|
+
fontSize: 16,
|
|
153
|
+
color: '#374151',
|
|
154
|
+
backgroundColor: '#F9FAFB',
|
|
155
|
+
marginBottom: 24,
|
|
156
|
+
minHeight: 80
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
// Button color variants
|
|
160
|
+
startButton: {
|
|
161
|
+
backgroundColor: '#473cfb'
|
|
162
|
+
},
|
|
163
|
+
stopButton: {
|
|
164
|
+
backgroundColor: '#473cfb'
|
|
165
|
+
},
|
|
166
|
+
saveButton: {
|
|
167
|
+
backgroundColor: '#473cfb'
|
|
168
|
+
}
|
|
169
|
+
})
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
|
|
2
|
+
export const OTEL_MP_SAMPLE_TRACE_RATIO = 0.15
|
|
3
|
+
|
|
4
|
+
export const SESSION_ID_PROP_NAME = 'multiplayer-session-id'
|
|
5
|
+
|
|
6
|
+
export const SESSION_SHORT_ID_PROP_NAME = 'multiplayer-session-short-id'
|
|
7
|
+
|
|
8
|
+
export const SESSION_CONTINUOUS_DEBUGGING_PROP_NAME = 'multiplayer-session-continuous-debugging'
|
|
9
|
+
|
|
10
|
+
export const SESSION_STATE_PROP_NAME = 'multiplayer-session-state'
|
|
11
|
+
|
|
12
|
+
export const SESSION_TYPE_PROP_NAME = 'multiplayer-session-type'
|
|
13
|
+
|
|
14
|
+
export const SESSION_PROP_NAME = 'multiplayer-session-data'
|
|
15
|
+
|
|
16
|
+
export const SESSION_STARTED_EVENT = 'debug-session:started'
|
|
17
|
+
|
|
18
|
+
export const SESSION_STOPPED_EVENT = 'debug-session:stopped'
|
|
19
|
+
|
|
20
|
+
export const SESSION_SUBSCRIBE_EVENT = 'debug-session:subscribe'
|
|
21
|
+
|
|
22
|
+
export const SESSION_UNSUBSCRIBE_EVENT = 'debug-session:unsubscribe'
|
|
23
|
+
|
|
24
|
+
export const SESSION_AUTO_CREATED = 'debug-session:auto-created'
|
|
25
|
+
|
|
26
|
+
export const SESSION_ADD_EVENT = 'debug-session:rrweb:add-event'
|
|
27
|
+
|
|
28
|
+
export const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000
|
|
29
|
+
|
|
30
|
+
export const SESSION_RESPONSE = 'multiplayer-debug-session-response'
|
|
31
|
+
|
|
32
|
+
export const CONTINUOUS_DEBUGGING_TIMEOUT = 60000 // 1 minutes
|
|
33
|
+
|
|
34
|
+
export const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30 // TODO: move to shared config otel core
|
|
35
|
+
|
|
36
|
+
// // Package version - injected by webpack during build
|
|
37
|
+
// declare const PACKAGE_VERSION: string
|
|
38
|
+
// export const PACKAGE_VERSION_EXPORT = PACKAGE_VERSION || '1.0.0'
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
// Regex patterns for OpenTelemetry ignore URLs
|
|
42
|
+
export const OTEL_IGNORE_URLS = [
|
|
43
|
+
// Traces endpoint
|
|
44
|
+
/.*\/v1\/traces/,
|
|
45
|
+
// Debug sessions endpoints
|
|
46
|
+
/.*\/v0\/radar\/debug-sessions\/start\/?$/,
|
|
47
|
+
/.*\/v0\/radar\/debug-sessions\/[^/]+\/stop\/?$/,
|
|
48
|
+
/.*\/v0\/radar\/debug-sessions\/[^/]+\/cancel\/?$/,
|
|
49
|
+
|
|
50
|
+
// Continuous debug sessions endpoints
|
|
51
|
+
/.*\/v0\/radar\/continuous-debug-sessions\/start\/?$/,
|
|
52
|
+
/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/save\/?$/,
|
|
53
|
+
/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/cancel\/?$/,
|
|
54
|
+
|
|
55
|
+
// Remote debug session endpoint
|
|
56
|
+
/.*\/v0\/radar\/remote-debug-session\/check\/?$/,
|
|
57
|
+
|
|
58
|
+
// Connectivity probe endpoints (avoid noisy spans)
|
|
59
|
+
/https:\/\/clients3\.google\.com\/generate_204/,
|
|
60
|
+
/http:\/\/clients3\.google\.com\/generate_204/,
|
|
61
|
+
/http(s)?:\/\/www\.google\.com\/generate_204/,
|
|
62
|
+
/http(s)?:\/\/connectivitycheck\.android\.com\/generate_204/,
|
|
63
|
+
/http(s)?:\/\/connectivitycheck\.gstatic\.com\/generate_204/,
|
|
64
|
+
/http(s)?:\/\/captive\.apple\.com/,
|
|
65
|
+
|
|
66
|
+
// Or use a more general pattern to catch all radar API endpoints
|
|
67
|
+
// /.*\/v0\/radar\/.*/
|
|
68
|
+
]
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SessionRecorderSdk,
|
|
3
|
+
MULTIPLAYER_BASE_API_URL,
|
|
4
|
+
MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,
|
|
5
|
+
} from '@multiplayer-app/session-recorder-common'
|
|
6
|
+
import {
|
|
7
|
+
LogLevel,
|
|
8
|
+
WidgetButtonPlacement,
|
|
9
|
+
type SessionRecorderConfigs,
|
|
10
|
+
} from '../types'
|
|
11
|
+
import {
|
|
12
|
+
OTEL_MP_SAMPLE_TRACE_RATIO,
|
|
13
|
+
DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,
|
|
14
|
+
} from './constants'
|
|
15
|
+
|
|
16
|
+
const { mask, sensitiveFields, sensitiveHeaders } = SessionRecorderSdk
|
|
17
|
+
|
|
18
|
+
export const DEFAULT_MASKING_CONFIG: SessionRecorderConfigs['masking'] = {
|
|
19
|
+
isContentMaskingEnabled: true,
|
|
20
|
+
maskBody: mask(sensitiveFields),
|
|
21
|
+
maskHeaders: mask(sensitiveHeaders),
|
|
22
|
+
maskBodyFieldsList: sensitiveFields,
|
|
23
|
+
maskHeadersList: sensitiveHeaders,
|
|
24
|
+
headersToInclude: [],
|
|
25
|
+
headersToExclude: [],
|
|
26
|
+
// Screen masking options
|
|
27
|
+
maskImages: false,
|
|
28
|
+
maskLabels: false,
|
|
29
|
+
maskButtons: false,
|
|
30
|
+
maskWebViews: false,
|
|
31
|
+
maskTextInputs: true,
|
|
32
|
+
maskSandboxedViews: false,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const DEFAULT_WIDGET_TEXT_CONFIG: SessionRecorderConfigs['widget']['textOverrides'] = {
|
|
36
|
+
initialTitleWithContinuous: 'Encountered an issue?',
|
|
37
|
+
initialTitleWithoutContinuous: 'Encountered an issue?',
|
|
38
|
+
initialDescriptionWithContinuous: 'Record your session so we can see the problem and fix it faster.',
|
|
39
|
+
initialDescriptionWithoutContinuous: 'Record your session so we can see the problem and fix it faster.',
|
|
40
|
+
continuousRecordingLabel: 'Continuous recording',
|
|
41
|
+
startRecordingButtonText: 'Start recording',
|
|
42
|
+
finalTitle: 'Done recording?',
|
|
43
|
+
finalDescription: 'You can also add a quick note with extra context, expectations, or questions. Thank you!',
|
|
44
|
+
commentPlaceholder: 'Add a message...',
|
|
45
|
+
saveButtonText: 'Submit recording',
|
|
46
|
+
cancelButtonText: 'Cancel recording',
|
|
47
|
+
continuousOverlayTitle: 'Save time, skip the reproductions',
|
|
48
|
+
continuousOverlayDescription: 'We keep a rolling record of your recent activity. If something doesn’t work as expected, just save the recording and continue working. No need to worry about exceptions and errors - we automatically save recordings for those!',
|
|
49
|
+
saveLastSnapshotButtonText: 'Save recording',
|
|
50
|
+
submitDialogTitle: 'Save recording',
|
|
51
|
+
submitDialogSubtitle: 'This full-stack session recording will be saved directly to your selected Multiplayer project. All data is automatically correlated end-to-end.',
|
|
52
|
+
submitDialogCommentLabel: 'You can also add context, comments, or notes.',
|
|
53
|
+
submitDialogCommentPlaceholder: 'Add a message...',
|
|
54
|
+
submitDialogSubmitText: 'Save',
|
|
55
|
+
submitDialogCancelText: 'Cancel',
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const BASE_CONFIG: SessionRecorderConfigs = {
|
|
59
|
+
apiKey: '',
|
|
60
|
+
|
|
61
|
+
version: '',
|
|
62
|
+
application: '',
|
|
63
|
+
environment: '',
|
|
64
|
+
|
|
65
|
+
showContinuousRecording: true,
|
|
66
|
+
|
|
67
|
+
widget: {
|
|
68
|
+
enabled: true,
|
|
69
|
+
button: {
|
|
70
|
+
visible: true,
|
|
71
|
+
placement: WidgetButtonPlacement.bottomRight,
|
|
72
|
+
},
|
|
73
|
+
textOverrides: DEFAULT_WIDGET_TEXT_CONFIG,
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
apiBaseUrl: MULTIPLAYER_BASE_API_URL,
|
|
78
|
+
exporterEndpoint: MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,
|
|
79
|
+
|
|
80
|
+
schemifyDocSpanPayload: true,
|
|
81
|
+
|
|
82
|
+
ignoreUrls: [],
|
|
83
|
+
propagateTraceHeaderCorsUrls: [],
|
|
84
|
+
|
|
85
|
+
sampleTraceRatio: OTEL_MP_SAMPLE_TRACE_RATIO,
|
|
86
|
+
maxCapturingHttpPayloadSize: DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,
|
|
87
|
+
|
|
88
|
+
captureBody: true,
|
|
89
|
+
captureHeaders: true,
|
|
90
|
+
masking: DEFAULT_MASKING_CONFIG,
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
recordScreen: true,
|
|
94
|
+
recordGestures: true,
|
|
95
|
+
recordNavigation: true,
|
|
96
|
+
|
|
97
|
+
logger: {
|
|
98
|
+
enabled: false,
|
|
99
|
+
level: LogLevel.INFO,
|
|
100
|
+
},
|
|
101
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type MaskingOptions, type SessionRecorderConfigs } from '../types'
|
|
2
|
+
import { DEFAULT_MASKING_CONFIG } from './defaults'
|
|
3
|
+
import { isValidArray, isValidBoolean, isValidFunction } from './validators'
|
|
4
|
+
import { SessionRecorderSdk } from '@multiplayer-app/session-recorder-common'
|
|
5
|
+
|
|
6
|
+
const { mask, sensitiveFields, sensitiveHeaders } = SessionRecorderSdk
|
|
7
|
+
|
|
8
|
+
export const getMaskingConfig = (masking?: MaskingOptions): SessionRecorderConfigs['masking'] => {
|
|
9
|
+
const baseMasking = DEFAULT_MASKING_CONFIG
|
|
10
|
+
|
|
11
|
+
if (typeof masking !== 'object') {
|
|
12
|
+
return baseMasking
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const maskHeadersList = isValidArray(masking.maskHeadersList, sensitiveHeaders)
|
|
16
|
+
const maskBodyFieldsList = isValidArray(masking.maskBodyFieldsList, sensitiveFields)
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
maskHeadersList,
|
|
20
|
+
maskBodyFieldsList,
|
|
21
|
+
headersToInclude: isValidArray(masking.headersToInclude, baseMasking.headersToInclude),
|
|
22
|
+
headersToExclude: isValidArray(masking.headersToExclude, baseMasking.headersToExclude),
|
|
23
|
+
isContentMaskingEnabled: isValidBoolean(masking.isContentMaskingEnabled, baseMasking.isContentMaskingEnabled),
|
|
24
|
+
maskBody: isValidFunction(masking.maskBody, mask(maskBodyFieldsList)),
|
|
25
|
+
maskHeaders: isValidFunction(masking.maskHeaders, mask(maskHeadersList)),
|
|
26
|
+
// Screen masking options
|
|
27
|
+
maskTextInputs: isValidBoolean(masking.maskTextInputs, baseMasking.maskTextInputs),
|
|
28
|
+
maskImages: isValidBoolean(masking.maskImages, baseMasking.maskImages),
|
|
29
|
+
maskButtons: isValidBoolean(masking.maskButtons, baseMasking.maskButtons),
|
|
30
|
+
maskLabels: isValidBoolean(masking.maskLabels, baseMasking.maskLabels),
|
|
31
|
+
maskWebViews: isValidBoolean(masking.maskWebViews, baseMasking.maskWebViews),
|
|
32
|
+
maskSandboxedViews: isValidBoolean(masking.maskSandboxedViews, baseMasking.maskSandboxedViews),
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { LogLevel, type SessionRecorderConfigs, type SessionRecorderOptions } from '../types'
|
|
2
|
+
|
|
3
|
+
import { BASE_CONFIG } from './defaults'
|
|
4
|
+
import { getMaskingConfig } from './masking'
|
|
5
|
+
import {
|
|
6
|
+
isValidString,
|
|
7
|
+
isValidNumber,
|
|
8
|
+
isValidBoolean,
|
|
9
|
+
isValidArray
|
|
10
|
+
} from './validators'
|
|
11
|
+
import { getWidgetConfig } from './widget'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const getLoggerConfig = (config: any) => {
|
|
15
|
+
if (!config || typeof config !== 'object') {
|
|
16
|
+
return BASE_CONFIG.logger
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
level: isValidNumber(config.level, LogLevel.INFO),
|
|
20
|
+
enabled: isValidBoolean(config.enabled, false),
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export const getSessionRecorderConfig = (c: SessionRecorderOptions): SessionRecorderConfigs => {
|
|
26
|
+
if (!c) {
|
|
27
|
+
return BASE_CONFIG
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return {
|
|
31
|
+
apiKey: isValidString(c.apiKey, BASE_CONFIG.apiKey),
|
|
32
|
+
version: isValidString(c.version, BASE_CONFIG.version),
|
|
33
|
+
application: isValidString(c.application, BASE_CONFIG.application),
|
|
34
|
+
environment: isValidString(c.environment, BASE_CONFIG.environment),
|
|
35
|
+
|
|
36
|
+
exporterEndpoint: isValidString(c.exporterEndpoint, BASE_CONFIG.exporterEndpoint),
|
|
37
|
+
apiBaseUrl: isValidString(c.apiBaseUrl, BASE_CONFIG.apiBaseUrl),
|
|
38
|
+
|
|
39
|
+
showContinuousRecording: isValidBoolean(c.showContinuousRecording, BASE_CONFIG.showContinuousRecording),
|
|
40
|
+
ignoreUrls: isValidArray(c.ignoreUrls, BASE_CONFIG.ignoreUrls),
|
|
41
|
+
sampleTraceRatio: isValidNumber(c.sampleTraceRatio, BASE_CONFIG.sampleTraceRatio),
|
|
42
|
+
propagateTraceHeaderCorsUrls: c.propagateTraceHeaderCorsUrls || BASE_CONFIG.propagateTraceHeaderCorsUrls,
|
|
43
|
+
schemifyDocSpanPayload: isValidBoolean(c.schemifyDocSpanPayload, BASE_CONFIG.schemifyDocSpanPayload),
|
|
44
|
+
maxCapturingHttpPayloadSize: isValidNumber(c.maxCapturingHttpPayloadSize, BASE_CONFIG.maxCapturingHttpPayloadSize),
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
captureBody: isValidBoolean(c.captureBody, BASE_CONFIG.captureBody),
|
|
48
|
+
captureHeaders: isValidBoolean(c.captureHeaders, BASE_CONFIG.captureHeaders),
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
recordScreen: isValidBoolean(c.recordScreen, BASE_CONFIG.recordScreen),
|
|
52
|
+
recordGestures: isValidBoolean(c.recordGestures, BASE_CONFIG.recordGestures),
|
|
53
|
+
recordNavigation: isValidBoolean(c.recordNavigation, BASE_CONFIG.recordNavigation),
|
|
54
|
+
|
|
55
|
+
masking: getMaskingConfig(c.masking),
|
|
56
|
+
widget: getWidgetConfig(c.widget),
|
|
57
|
+
logger: getLoggerConfig(c.logger),
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validation helper functions for configuration objects
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export const isValidStringOrRegExp = (value: string | RegExp | undefined, defaultValue: string | RegExp) => {
|
|
6
|
+
return typeof value === 'string' || value instanceof RegExp ? value : defaultValue
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const isValidString = <T extends string>(value: string | undefined | T, defaultValue: string) => {
|
|
10
|
+
return typeof value === 'string' ? value.trim() : defaultValue
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const isValidNumber = (value: number | undefined, defaultValue: number) => {
|
|
14
|
+
return typeof value === 'number' ? value : defaultValue
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const isValidBoolean = (value: boolean | undefined, defaultValue: boolean) => {
|
|
18
|
+
return typeof value === 'boolean' ? value : defaultValue
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const isValidArray = <T>(value: ReadonlyArray<T> | undefined, defaultValue: ReadonlyArray<T>): T[] => {
|
|
22
|
+
return Array.isArray(value) ? [...value] as T[] : [...defaultValue] as T[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const isValidEnum = <T>(value: any | T, defaultValue: T, enumValues: T[]): T => {
|
|
26
|
+
return enumValues.includes(value as T) ? value as T : defaultValue
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const isValidFunction = (value: any, defaultValue: any) => {
|
|
30
|
+
return typeof value === 'function' ? value : defaultValue
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type SessionRecorderOptions, WidgetButtonPlacement } from "../types"
|
|
2
|
+
import { BASE_CONFIG } from "./defaults"
|
|
3
|
+
import { isValidBoolean, isValidEnum, isValidString } from "./validators"
|
|
4
|
+
|
|
5
|
+
export const getWidgetConfig = (config: SessionRecorderOptions['widget']) => {
|
|
6
|
+
const textOverrides = getTextOverridesConfig(config?.textOverrides, BASE_CONFIG.widget.textOverrides)
|
|
7
|
+
|
|
8
|
+
const def = {
|
|
9
|
+
enabled: true,
|
|
10
|
+
button: { visible: true, placement: WidgetButtonPlacement.bottomRight },
|
|
11
|
+
textOverrides,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const placementCandidate = config?.button?.placement || def.button.placement
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
textOverrides,
|
|
18
|
+
enabled: isValidBoolean(config && config.enabled, def.enabled),
|
|
19
|
+
button: {
|
|
20
|
+
visible: isValidBoolean(config && config.button && config.button.visible, def.button.visible),
|
|
21
|
+
placement: isValidEnum<WidgetButtonPlacement>(
|
|
22
|
+
placementCandidate,
|
|
23
|
+
def.button.placement,
|
|
24
|
+
Object.values(WidgetButtonPlacement)
|
|
25
|
+
),
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const getTextOverridesConfig = (config: any, defaultConfig: any) => {
|
|
31
|
+
if (!config || typeof config !== 'object') {
|
|
32
|
+
return defaultConfig
|
|
33
|
+
}
|
|
34
|
+
return Object.keys(defaultConfig).reduce((acc, key) => {
|
|
35
|
+
acc[key] = isValidString(config[key], defaultConfig[key])
|
|
36
|
+
return acc
|
|
37
|
+
}, {} as Record<string, unknown>)
|
|
38
|
+
}
|