@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,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useCallback, memo } from 'react';
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
|
+
import { SessionState } from "../../types/index.js";
|
|
6
|
+
import { SessionType } from '@multiplayer-app/session-recorder-common';
|
|
7
|
+
import { useSessionRecorder } from "../../context/SessionRecorderContext.js";
|
|
8
|
+
import FinalPopover from "./FinalPopover.js";
|
|
9
|
+
import ModalContainer from "./ModalContainer.js";
|
|
10
|
+
import InitialPopover from "./InitialPopover.js";
|
|
11
|
+
import FloatingButton from "./FloatingButton.js";
|
|
12
|
+
import ErrorBanner from "./ErrorBanner.js";
|
|
13
|
+
import { logger } from "../../utils/index.js";
|
|
14
|
+
import { useSessionRecorderStore } from "../../context/useSessionRecorderStore.js";
|
|
15
|
+
import { sessionRecorderStore } from "../../context/SessionRecorderStore.js";
|
|
16
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const SessionRecorderWidget = /*#__PURE__*/memo(() => {
|
|
18
|
+
const {
|
|
19
|
+
instance,
|
|
20
|
+
openWidgetModal,
|
|
21
|
+
closeWidgetModal
|
|
22
|
+
} = useSessionRecorder();
|
|
23
|
+
const isOnline = useSessionRecorderStore(s => s.isOnline);
|
|
24
|
+
const sessionType = useSessionRecorderStore(s => s.sessionType);
|
|
25
|
+
const isModalVisible = useSessionRecorderStore(s => s.isWidgetModalVisible);
|
|
26
|
+
const sessionState = useSessionRecorderStore(s => s.sessionState);
|
|
27
|
+
const error = useSessionRecorderStore(s => s.error);
|
|
28
|
+
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
29
|
+
|
|
30
|
+
// Get configuration from instance
|
|
31
|
+
const {
|
|
32
|
+
widget,
|
|
33
|
+
showContinuousRecording
|
|
34
|
+
} = instance.config;
|
|
35
|
+
const dismissError = useCallback(() => {
|
|
36
|
+
sessionRecorderStore.setState({
|
|
37
|
+
error: null
|
|
38
|
+
});
|
|
39
|
+
}, []);
|
|
40
|
+
const handleError = useCallback((error, message) => {
|
|
41
|
+
const errorMessage = error instanceof Error ? error.message : message;
|
|
42
|
+
logger.error('SessionRecorderWidget', message, error);
|
|
43
|
+
sessionRecorderStore.setState({
|
|
44
|
+
error: errorMessage
|
|
45
|
+
});
|
|
46
|
+
}, []);
|
|
47
|
+
const onStartRecording = useCallback(async sessionType => {
|
|
48
|
+
if (!isOnline) {
|
|
49
|
+
handleError(new Error('Cannot start recording while offline'), 'Cannot start recording while offline');
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
await instance.start(sessionType);
|
|
54
|
+
closeWidgetModal();
|
|
55
|
+
} catch (error) {
|
|
56
|
+
handleError(error, 'Failed to start recording');
|
|
57
|
+
}
|
|
58
|
+
}, [isOnline, handleError]);
|
|
59
|
+
const onStopRecording = useCallback(async comment => {
|
|
60
|
+
try {
|
|
61
|
+
setIsSubmitting(true);
|
|
62
|
+
await instance.stop(comment);
|
|
63
|
+
closeWidgetModal();
|
|
64
|
+
} catch (error) {
|
|
65
|
+
handleError(error, 'Failed to stop recording');
|
|
66
|
+
} finally {
|
|
67
|
+
setIsSubmitting(false);
|
|
68
|
+
}
|
|
69
|
+
}, [handleError]);
|
|
70
|
+
const onCancelSession = useCallback(async () => {
|
|
71
|
+
try {
|
|
72
|
+
await instance.cancel();
|
|
73
|
+
closeWidgetModal();
|
|
74
|
+
} catch (error) {
|
|
75
|
+
handleError(error, 'Failed to cancel session');
|
|
76
|
+
}
|
|
77
|
+
}, [handleError]);
|
|
78
|
+
const onSaveContinuousSession = useCallback(async () => {
|
|
79
|
+
try {
|
|
80
|
+
await instance.save();
|
|
81
|
+
} catch (error) {
|
|
82
|
+
handleError(error, 'Failed to save continuous session');
|
|
83
|
+
}
|
|
84
|
+
}, [handleError]);
|
|
85
|
+
const isStarted = sessionState === SessionState.started || sessionState === SessionState.paused;
|
|
86
|
+
const isContinuous = sessionType === SessionType.CONTINUOUS;
|
|
87
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
88
|
+
children: [widget.button?.visible && /*#__PURE__*/_jsx(View, {
|
|
89
|
+
pointerEvents: "box-none",
|
|
90
|
+
style: styles.overlayContainer,
|
|
91
|
+
children: /*#__PURE__*/_jsx(FloatingButton, {
|
|
92
|
+
sessionState: sessionState,
|
|
93
|
+
onPress: openWidgetModal
|
|
94
|
+
})
|
|
95
|
+
}), /*#__PURE__*/_jsx(ModalContainer, {
|
|
96
|
+
isVisible: isModalVisible,
|
|
97
|
+
onClose: closeWidgetModal,
|
|
98
|
+
children: isStarted && !isContinuous ? /*#__PURE__*/_jsx(FinalPopover, {
|
|
99
|
+
isOnline: isOnline,
|
|
100
|
+
isSubmitting: isSubmitting,
|
|
101
|
+
textOverrides: widget.textOverrides,
|
|
102
|
+
onClose: closeWidgetModal,
|
|
103
|
+
onStopRecording: onStopRecording,
|
|
104
|
+
onCancelSession: onCancelSession,
|
|
105
|
+
children: error && /*#__PURE__*/_jsx(ErrorBanner, {
|
|
106
|
+
error: error,
|
|
107
|
+
onDismiss: dismissError
|
|
108
|
+
})
|
|
109
|
+
}) : /*#__PURE__*/_jsx(InitialPopover, {
|
|
110
|
+
isOnline: isOnline,
|
|
111
|
+
isSubmitting: isSubmitting,
|
|
112
|
+
textOverrides: widget.textOverrides,
|
|
113
|
+
isContinuous: isStarted && isContinuous,
|
|
114
|
+
showContinuousRecording: showContinuousRecording,
|
|
115
|
+
onClose: closeWidgetModal,
|
|
116
|
+
onStopRecording: onStopRecording,
|
|
117
|
+
onStartRecording: onStartRecording,
|
|
118
|
+
onSaveContinuousSession: onSaveContinuousSession,
|
|
119
|
+
children: error && /*#__PURE__*/_jsx(ErrorBanner, {
|
|
120
|
+
error: error,
|
|
121
|
+
onDismiss: dismissError
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
})]
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
export default SessionRecorderWidget;
|
|
128
|
+
const styles = StyleSheet.create({
|
|
129
|
+
overlayContainer: {
|
|
130
|
+
...StyleSheet.absoluteFillObject
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
//# sourceMappingURL=SessionRecorderWidget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useCallback","memo","View","StyleSheet","SessionState","SessionType","useSessionRecorder","FinalPopover","ModalContainer","InitialPopover","FloatingButton","ErrorBanner","logger","useSessionRecorderStore","sessionRecorderStore","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","SessionRecorderWidget","instance","openWidgetModal","closeWidgetModal","isOnline","s","sessionType","isModalVisible","isWidgetModalVisible","sessionState","error","isSubmitting","setIsSubmitting","widget","showContinuousRecording","config","dismissError","setState","handleError","message","errorMessage","Error","onStartRecording","start","onStopRecording","comment","stop","onCancelSession","cancel","onSaveContinuousSession","save","isStarted","started","paused","isContinuous","CONTINUOUS","children","button","visible","pointerEvents","style","styles","overlayContainer","onPress","isVisible","onClose","textOverrides","onDismiss","create","absoluteFillObject"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/SessionRecorderWidget.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,WAAW,EAAEC,IAAI,QAAQ,OAAO;AAC1D,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,WAAW,QAAQ,0CAA0C;AACtE,SAASC,kBAAkB,QAAQ,yCAAsC;AAEzE,OAAOC,YAAY,MAAM,mBAAgB;AACzC,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,WAAW,MAAM,kBAAe;AACvC,SAASC,MAAM,QAAQ,sBAAa;AACpC,SAASC,uBAAuB,QAAQ,0CAAuC;AAC/E,SAASC,oBAAoB,QAAQ,uCAAoC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAIzE,MAAMC,qBAA2D,gBAAGpB,IAAI,CAAC,MAAM;EAC7E,MAAM;IAAEqB,QAAQ;IAAEC,eAAe;IAAEC;EAAiB,CAAC,GAAGlB,kBAAkB,CAAC,CAAC;EAC5E,MAAMmB,QAAQ,GAAGZ,uBAAuB,CAAWa,CAAC,IAAKA,CAAC,CAACD,QAAQ,CAAC;EACpE,MAAME,WAAW,GAAGd,uBAAuB,CAAsBa,CAAC,IAAKA,CAAC,CAACC,WAAW,CAAC;EACrF,MAAMC,cAAc,GAAGf,uBAAuB,CAAWa,CAAC,IAAKA,CAAC,CAACG,oBAAoB,CAAC;EACtF,MAAMC,YAAY,GAAGjB,uBAAuB,CAAuBa,CAA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2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Svg, { Path, Circle } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
export const RecordIcon = ({
|
|
7
|
+
size = 19,
|
|
8
|
+
color = 'white'
|
|
9
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
10
|
+
width: size,
|
|
11
|
+
height: size,
|
|
12
|
+
viewBox: "0 0 19 19",
|
|
13
|
+
fill: "none",
|
|
14
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
clipRule: "evenodd",
|
|
17
|
+
d: "M6.68926 5.30356C6.56568 5.38721 6.39976 5.37561 6.29459 5.26937L3.58782 2.53477C3.46424 2.40992 3.47196 2.20492 3.60862 2.09483C5.2319 0.786982 7.28494 0 9.51866 0C11.7535 0 13.8066 0.787042 15.4308 2.09586C15.5674 2.20596 15.5752 2.41091 15.4516 2.53577L12.7468 5.26931C12.6416 5.37558 12.4757 5.38719 12.3521 5.30353C11.5393 4.75345 10.571 4.42281 9.52066 4.42281C8.47036 4.42281 7.50203 4.75346 6.68926 5.30356ZM16.4926 3.4303C16.6163 3.30527 16.8197 3.31303 16.9288 3.45121C18.2224 5.08933 19.0001 7.15932 19.0001 9.4116C19.0001 11.6671 18.2204 13.7392 16.9238 15.3785C16.8147 15.5165 16.6114 15.5242 16.4877 15.3992L13.7872 12.6701C13.682 12.5638 13.6708 12.3962 13.7538 12.2716C14.3006 11.451 14.6291 10.4727 14.6291 9.4116C14.6291 8.35454 14.3016 7.37925 13.756 6.56083C13.6728 6.43616 13.6841 6.26857 13.7893 6.16224L16.4926 3.4303ZM5.21676 12.6712C5.322 12.5649 5.3333 12.3974 5.2502 12.2727C4.70331 11.4522 4.374 10.4737 4.374 9.41184C4.374 8.35469 4.70232 7.37949 5.24808 6.56106C5.33123 6.43637 5.31996 6.26872 5.2147 6.16241L2.50855 3.4293C2.38482 3.30434 2.18146 3.31213 2.07236 3.45028C0.77864 5.08841 0 7.15845 0 9.41184C0 11.6684 0.78066 13.7406 2.07831 15.3799C2.18749 15.5178 2.39066 15.5255 2.51429 15.4006L5.21676 12.6712ZM12.3323 13.707C12.4559 13.6231 12.6221 13.6346 12.7273 13.741L15.4277 16.4691C15.5513 16.594 15.5435 16.7991 15.4068 16.9091C13.7837 18.215 11.7327 19 9.49998 19C7.2693 19 5.21837 18.2159 3.59619 16.9102C3.45943 16.8001 3.45169 16.595 3.57533 16.4702L6.27769 13.7409C6.38296 13.6346 6.54906 13.6231 6.67267 13.707C7.48459 14.2577 8.45278 14.5883 9.50198 14.5883C10.5522 14.5883 11.5204 14.2578 12.3323 13.707Z",
|
|
18
|
+
fill: color
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
export const CapturingIcon = ({
|
|
22
|
+
size = 24,
|
|
23
|
+
color = 'white'
|
|
24
|
+
}) => /*#__PURE__*/_jsxs(Svg, {
|
|
25
|
+
width: size,
|
|
26
|
+
height: size,
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
fill: "none",
|
|
29
|
+
children: [/*#__PURE__*/_jsx(Circle, {
|
|
30
|
+
cx: "12",
|
|
31
|
+
cy: "12",
|
|
32
|
+
r: "4",
|
|
33
|
+
fill: color
|
|
34
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
35
|
+
cx: "12",
|
|
36
|
+
cy: "12",
|
|
37
|
+
r: "7.5",
|
|
38
|
+
stroke: color,
|
|
39
|
+
strokeWidth: "1"
|
|
40
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
41
|
+
cx: "12",
|
|
42
|
+
cy: "12",
|
|
43
|
+
r: "11.5",
|
|
44
|
+
stroke: color,
|
|
45
|
+
strokeWidth: "1",
|
|
46
|
+
opacity: "0.2"
|
|
47
|
+
})]
|
|
48
|
+
});
|
|
49
|
+
export const PausedIcon = ({
|
|
50
|
+
size = 24,
|
|
51
|
+
color = 'white'
|
|
52
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
53
|
+
width: size,
|
|
54
|
+
height: size,
|
|
55
|
+
viewBox: "0 0 24 24",
|
|
56
|
+
fill: "none",
|
|
57
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
58
|
+
d: "M8 5V19M16 5V19",
|
|
59
|
+
stroke: color,
|
|
60
|
+
strokeWidth: "2",
|
|
61
|
+
strokeLinecap: "round",
|
|
62
|
+
strokeLinejoin: "round"
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
export const CheckmarkIcon = ({
|
|
66
|
+
size = 24,
|
|
67
|
+
color = 'white'
|
|
68
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
69
|
+
width: size,
|
|
70
|
+
height: size,
|
|
71
|
+
viewBox: "0 0 24 24",
|
|
72
|
+
fill: "none",
|
|
73
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
clipRule: "evenodd",
|
|
76
|
+
d: "M20.0481 6.35147C20.5168 6.8201 20.5168 7.5799 20.0481 8.04853L10.4481 17.6485C9.97951 18.1172 9.21971 18.1172 8.75108 17.6485L3.95108 12.8485C3.48245 12.3799 3.48245 11.6201 3.95108 11.1515C4.41971 10.6828 5.17951 10.6828 5.64814 11.1515L9.59961 15.1029L18.3511 6.35147C18.8197 5.88284 19.5795 5.88284 20.0481 6.35147Z",
|
|
77
|
+
fill: color
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
export const LogoIcon = ({
|
|
81
|
+
size = 30,
|
|
82
|
+
color = '#473CFB'
|
|
83
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
84
|
+
width: size,
|
|
85
|
+
height: size * 0.8,
|
|
86
|
+
viewBox: "0 0 30 24",
|
|
87
|
+
fill: "none",
|
|
88
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
89
|
+
d: "M28.8324 8.83643L23.5495 6.85854L21.4856 6.08553L23.6001 0.4375L15 3.65769L6.39963 0.4375L8.51441 6.08585L6.45046 6.85885L1.16757 8.83674L0.625 9.03974L9.10095 12.0981C10.0891 12.4548 10.9201 13.1265 11.4758 13.9952C11.6632 14.2883 11.8194 14.6036 11.9398 14.9369L15 23.4076L18.0602 14.9369C18.1806 14.6036 18.3368 14.288 18.5242 13.9952C19.0802 13.1265 19.9112 12.4545 20.8991 12.0981L29.375 9.03974L28.8324 8.83674V8.83643ZM19.779 10.6434C18.2872 11.1816 17.1126 12.3563 16.5744 13.848L15.014 18.173L11.5182 8.83643L10.7776 6.85854L10.2456 5.43757L9.57367 3.64272L12.3068 4.66612L18.1631 6.85885L20.8233 7.85481L23.4457 8.83674L24.104 9.08308L19.779 10.6438V10.6434Z",
|
|
90
|
+
fill: color
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Circle","jsx","_jsx","jsxs","_jsxs","RecordIcon","size","color","width","height","viewBox","fill","children","fillRule","clipRule","d","CapturingIcon","cx","cy","r","stroke","strokeWidth","opacity","PausedIcon","strokeLinecap","strokeLinejoin","CheckmarkIcon","LogoIcon"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/icons.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,EAAEC,MAAM,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOpD,OAAO,MAAMC,UAA+B,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAQ,CAAC,kBAC5EL,IAAA,CAACJ,GAAG;EAACU,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAK;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC7DV,IAAA,CAACH,IAAI;I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OAAO;IAACC,cAAc,EAAC;EAAO,CAAE;AAAC,CACrG,CACN;AAED,OAAO,MAAMC,aAAkC,GAAGA,CAAC;EAAEpB,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAQ,CAAC,kBAC/EL,IAAA,CAACJ,GAAG;EAACU,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAK;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAC7DV,IAAA,CAACH,IAAI;IACHc,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,iUAAiU;IACnUJ,IAAI,EAAEJ;EAAM,CACb;AAAC,CACC,CACN;AAED,OAAO,MAAMoB,QAA6B,GAAGA,CAAC;EAAErB,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAU,CAAC,kBAC5EL,IAAA,CAACJ,GAAG;EAACU,KAAK,EAAEF,IAAK;EAACG,MAAM,EAAEH,IAAI,GAAG,GAAI;EAACI,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eACnEV,IAAA,CAACH,IAAI;IACHgB,CAAC,EAAC,8pBAA8pB;IAChqBJ,IAAI,EAAEJ;EAAM,CACb;AAAC,CACC,CACN","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SessionRecorderWidget"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/index.ts"],"mappings":";;AAAA,OAAOA,qBAAqB,MAAM,4BAAyB;AAE3D,eAAeA,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
export const sharedStyles = StyleSheet.create({
|
|
5
|
+
// Popover styles
|
|
6
|
+
popoverContent: {
|
|
7
|
+
flex: 1,
|
|
8
|
+
paddingHorizontal: 0
|
|
9
|
+
},
|
|
10
|
+
popoverHeader: {
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
paddingBottom: 8,
|
|
13
|
+
paddingHorizontal: 16,
|
|
14
|
+
borderTopLeftRadius: 20,
|
|
15
|
+
borderTopRightRadius: 20,
|
|
16
|
+
backgroundColor: '#f4f9ff',
|
|
17
|
+
shadowColor: '#f4f9ff',
|
|
18
|
+
shadowOffset: {
|
|
19
|
+
width: 0,
|
|
20
|
+
height: 5
|
|
21
|
+
},
|
|
22
|
+
shadowOpacity: 1,
|
|
23
|
+
shadowRadius: 5,
|
|
24
|
+
elevation: 10
|
|
25
|
+
},
|
|
26
|
+
modalHandle: {
|
|
27
|
+
marginTop: 8,
|
|
28
|
+
marginBottom: 16,
|
|
29
|
+
width: 40,
|
|
30
|
+
height: 4,
|
|
31
|
+
backgroundColor: '#D1D5DB',
|
|
32
|
+
borderRadius: 2,
|
|
33
|
+
alignSelf: 'center'
|
|
34
|
+
},
|
|
35
|
+
popoverHeaderContent: {
|
|
36
|
+
flexDirection: 'row',
|
|
37
|
+
justifyContent: 'space-between',
|
|
38
|
+
alignItems: 'flex-start'
|
|
39
|
+
},
|
|
40
|
+
cancelButton: {
|
|
41
|
+
paddingHorizontal: 12,
|
|
42
|
+
paddingVertical: 6,
|
|
43
|
+
borderRadius: 6,
|
|
44
|
+
borderWidth: 1,
|
|
45
|
+
borderColor: '#e1e8f1',
|
|
46
|
+
backgroundColor: '#fff',
|
|
47
|
+
shadowColor: '#000',
|
|
48
|
+
shadowOffset: {
|
|
49
|
+
width: 0,
|
|
50
|
+
height: 2
|
|
51
|
+
},
|
|
52
|
+
shadowOpacity: 0.06,
|
|
53
|
+
shadowRadius: 3,
|
|
54
|
+
elevation: 3
|
|
55
|
+
},
|
|
56
|
+
cancelButtonText: {
|
|
57
|
+
color: '#374151',
|
|
58
|
+
fontSize: 14,
|
|
59
|
+
fontWeight: '500'
|
|
60
|
+
},
|
|
61
|
+
popoverBody: {
|
|
62
|
+
flex: 1,
|
|
63
|
+
padding: 16,
|
|
64
|
+
paddingTop: 24
|
|
65
|
+
},
|
|
66
|
+
title: {
|
|
67
|
+
fontSize: 18,
|
|
68
|
+
fontWeight: '600',
|
|
69
|
+
color: '#2d3748',
|
|
70
|
+
marginBottom: 12
|
|
71
|
+
},
|
|
72
|
+
description: {
|
|
73
|
+
fontSize: 14,
|
|
74
|
+
color: '#718096',
|
|
75
|
+
marginBottom: 16
|
|
76
|
+
},
|
|
77
|
+
popoverFooter: {
|
|
78
|
+
marginTop: 'auto',
|
|
79
|
+
paddingTop: 16
|
|
80
|
+
},
|
|
81
|
+
actionButton: {
|
|
82
|
+
paddingVertical: 16,
|
|
83
|
+
paddingHorizontal: 24,
|
|
84
|
+
borderRadius: 12,
|
|
85
|
+
alignItems: 'center'
|
|
86
|
+
},
|
|
87
|
+
actionButtonText: {
|
|
88
|
+
color: 'white',
|
|
89
|
+
fontSize: 16,
|
|
90
|
+
fontWeight: '500'
|
|
91
|
+
},
|
|
92
|
+
// Continuous recording styles
|
|
93
|
+
continuousRecordingSection: {
|
|
94
|
+
flexDirection: 'row',
|
|
95
|
+
justifyContent: 'space-between',
|
|
96
|
+
alignItems: 'center',
|
|
97
|
+
marginBottom: 20,
|
|
98
|
+
paddingVertical: 12,
|
|
99
|
+
paddingHorizontal: 16,
|
|
100
|
+
borderWidth: 1,
|
|
101
|
+
borderColor: '#e1e8f1',
|
|
102
|
+
backgroundColor: '#fff',
|
|
103
|
+
borderRadius: 12,
|
|
104
|
+
shadowColor: '#000',
|
|
105
|
+
shadowOffset: {
|
|
106
|
+
width: 0,
|
|
107
|
+
height: 2
|
|
108
|
+
},
|
|
109
|
+
shadowOpacity: 0.06,
|
|
110
|
+
shadowRadius: 3,
|
|
111
|
+
elevation: 3
|
|
112
|
+
},
|
|
113
|
+
continuousRecordingLabel: {
|
|
114
|
+
fontSize: 16,
|
|
115
|
+
fontWeight: '500',
|
|
116
|
+
color: '#374151'
|
|
117
|
+
},
|
|
118
|
+
continuousOverlay: {
|
|
119
|
+
borderRadius: 12,
|
|
120
|
+
borderWidth: 1,
|
|
121
|
+
borderColor: '#e1e8f1',
|
|
122
|
+
backgroundColor: '#fff',
|
|
123
|
+
padding: 12,
|
|
124
|
+
shadowColor: '#000',
|
|
125
|
+
shadowOffset: {
|
|
126
|
+
width: 0,
|
|
127
|
+
height: 2
|
|
128
|
+
},
|
|
129
|
+
shadowOpacity: 0.06,
|
|
130
|
+
shadowRadius: 3,
|
|
131
|
+
elevation: 3,
|
|
132
|
+
flexDirection: 'column',
|
|
133
|
+
gap: 8
|
|
134
|
+
},
|
|
135
|
+
continuousOverlayHeader: {
|
|
136
|
+
flexDirection: 'row',
|
|
137
|
+
alignItems: 'center',
|
|
138
|
+
gap: 8
|
|
139
|
+
},
|
|
140
|
+
continuousOverlayTitle: {
|
|
141
|
+
fontSize: 14,
|
|
142
|
+
fontWeight: '500',
|
|
143
|
+
color: '#2d3748'
|
|
144
|
+
},
|
|
145
|
+
continuousOverlayDescription: {
|
|
146
|
+
fontSize: 14,
|
|
147
|
+
color: '#718096',
|
|
148
|
+
lineHeight: 20
|
|
149
|
+
},
|
|
150
|
+
// Comment input styles
|
|
151
|
+
commentInput: {
|
|
152
|
+
borderWidth: 1,
|
|
153
|
+
borderColor: '#D1D5DB',
|
|
154
|
+
borderRadius: 8,
|
|
155
|
+
padding: 12,
|
|
156
|
+
fontSize: 16,
|
|
157
|
+
color: '#374151',
|
|
158
|
+
backgroundColor: '#F9FAFB',
|
|
159
|
+
marginBottom: 24,
|
|
160
|
+
minHeight: 80
|
|
161
|
+
},
|
|
162
|
+
// Button color variants
|
|
163
|
+
startButton: {
|
|
164
|
+
backgroundColor: '#473cfb'
|
|
165
|
+
},
|
|
166
|
+
stopButton: {
|
|
167
|
+
backgroundColor: '#473cfb'
|
|
168
|
+
},
|
|
169
|
+
saveButton: {
|
|
170
|
+
backgroundColor: '#473cfb'
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","sharedStyles","create","popoverContent","flex","paddingHorizontal","popoverHeader","flexDirection","paddingBottom","borderTopLeftRadius","borderTopRightRadius","backgroundColor","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","modalHandle","marginTop","marginBottom","borderRadius","alignSelf","popoverHeaderContent","justifyContent","alignItems","cancelButton","paddingVertical","borderWidth","borderColor","cancelButtonText","color","fontSize","fontWeight","popoverBody","padding","paddingTop","title","description","popoverFooter","actionButton","actionButtonText","continuousRecordingSection","continuousRecordingLabel","continuousOverlay","gap","continuousOverlayHeader","continuousOverlayTitle","continuousOverlayDescription","lineHeight","commentInput","minHeight","startButton","stopButton","saveButton"],"sourceRoot":"../../../../src","sources":["components/SessionRecorderWidget/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,YAAY,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC5C;EACAC,cAAc,EAAE;IACdC,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE;EACrB,CAAC;EACDC,aAAa,EAAE;IACbC,aAAa,EAAE,QAAQ;IACvBC,aAAa,EAAE,CAAC;IAChBH,iBAAiB,EAAE,EAAE;IACrBI,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE,EAAE;IACxBC,eAAe,EAAE,SAAS;IAC1BC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAG,CAAC;IACtCC,aAAa,EAAE,CAAC;IAChBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDC,WAAW,EAAE;IACXC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,EAAE;IAChBP,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,CAAC;IACTJ,eAAe,EAAE,SAAS;IAC1BW,YAAY,EAAE,CAAC;IACfC,SA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EACd,CAAC;EAED;EACAC,YAAY,EAAE;IACZtB,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBR,YAAY,EAAE,CAAC;IACfc,OAAO,EAAE,EAAE;IACXH,QAAQ,EAAE,EAAE;IACZD,KAAK,EAAE,SAAS;IAChBrB,eAAe,EAAE,SAAS;IAC1BU,YAAY,EAAE,EAAE;IAChB+B,SAAS,EAAE;EACb,CAAC;EAED;EACAC,WAAW,EAAE;IACX1C,eAAe,EAAE;EACnB,CAAC;EACD2C,UAAU,EAAE;IACV3C,eAAe,EAAE;EACnB,CAAC;EACD4C,UAAU,EAAE;IACV5C,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,+BAAsB;AACpC,cAAc,kCAAyB","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const OTEL_MP_SAMPLE_TRACE_RATIO = 0.15;
|
|
4
|
+
export const SESSION_ID_PROP_NAME = 'multiplayer-session-id';
|
|
5
|
+
export const SESSION_SHORT_ID_PROP_NAME = 'multiplayer-session-short-id';
|
|
6
|
+
export const SESSION_CONTINUOUS_DEBUGGING_PROP_NAME = 'multiplayer-session-continuous-debugging';
|
|
7
|
+
export const SESSION_STATE_PROP_NAME = 'multiplayer-session-state';
|
|
8
|
+
export const SESSION_TYPE_PROP_NAME = 'multiplayer-session-type';
|
|
9
|
+
export const SESSION_PROP_NAME = 'multiplayer-session-data';
|
|
10
|
+
export const SESSION_STARTED_EVENT = 'debug-session:started';
|
|
11
|
+
export const SESSION_STOPPED_EVENT = 'debug-session:stopped';
|
|
12
|
+
export const SESSION_SUBSCRIBE_EVENT = 'debug-session:subscribe';
|
|
13
|
+
export const SESSION_UNSUBSCRIBE_EVENT = 'debug-session:unsubscribe';
|
|
14
|
+
export const SESSION_AUTO_CREATED = 'debug-session:auto-created';
|
|
15
|
+
export const SESSION_ADD_EVENT = 'debug-session:rrweb:add-event';
|
|
16
|
+
export const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000;
|
|
17
|
+
export const SESSION_RESPONSE = 'multiplayer-debug-session-response';
|
|
18
|
+
export const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
19
|
+
|
|
20
|
+
export const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
21
|
+
|
|
22
|
+
// // Package version - injected by webpack during build
|
|
23
|
+
// declare const PACKAGE_VERSION: string
|
|
24
|
+
// export const PACKAGE_VERSION_EXPORT = PACKAGE_VERSION || '1.0.0'
|
|
25
|
+
|
|
26
|
+
// Regex patterns for OpenTelemetry ignore URLs
|
|
27
|
+
export const OTEL_IGNORE_URLS = [
|
|
28
|
+
// Traces endpoint
|
|
29
|
+
/.*\/v1\/traces/,
|
|
30
|
+
// Debug sessions endpoints
|
|
31
|
+
/.*\/v0\/radar\/debug-sessions\/start\/?$/, /.*\/v0\/radar\/debug-sessions\/[^/]+\/stop\/?$/, /.*\/v0\/radar\/debug-sessions\/[^/]+\/cancel\/?$/,
|
|
32
|
+
// Continuous debug sessions endpoints
|
|
33
|
+
/.*\/v0\/radar\/continuous-debug-sessions\/start\/?$/, /.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/save\/?$/, /.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/cancel\/?$/,
|
|
34
|
+
// Remote debug session endpoint
|
|
35
|
+
/.*\/v0\/radar\/remote-debug-session\/check\/?$/,
|
|
36
|
+
// Connectivity probe endpoints (avoid noisy spans)
|
|
37
|
+
/https:\/\/clients3\.google\.com\/generate_204/, /http:\/\/clients3\.google\.com\/generate_204/, /http(s)?:\/\/www\.google\.com\/generate_204/, /http(s)?:\/\/connectivitycheck\.android\.com\/generate_204/, /http(s)?:\/\/connectivitycheck\.gstatic\.com\/generate_204/, /http(s)?:\/\/captive\.apple\.com/
|
|
38
|
+
|
|
39
|
+
// Or use a more general pattern to catch all radar API endpoints
|
|
40
|
+
// /.*\/v0\/radar\/.*/
|
|
41
|
+
];
|
|
42
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OTEL_MP_SAMPLE_TRACE_RATIO","SESSION_ID_PROP_NAME","SESSION_SHORT_ID_PROP_NAME","SESSION_CONTINUOUS_DEBUGGING_PROP_NAME","SESSION_STATE_PROP_NAME","SESSION_TYPE_PROP_NAME","SESSION_PROP_NAME","SESSION_STARTED_EVENT","SESSION_STOPPED_EVENT","SESSION_SUBSCRIBE_EVENT","SESSION_UNSUBSCRIBE_EVENT","SESSION_AUTO_CREATED","SESSION_ADD_EVENT","DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE","SESSION_RESPONSE","CONTINUOUS_DEBUGGING_TIMEOUT","DEBUG_SESSION_MAX_DURATION_SECONDS","OTEL_IGNORE_URLS"],"sourceRoot":"../../../src","sources":["config/constants.ts"],"mappings":";;AACA,OAAO,MAAMA,0BAA0B,GAAG,IAAI;AAE9C,OAAO,MAAMC,oBAAoB,GAAG,wBAAwB;AAE5D,OAAO,MAAMC,0BAA0B,GAAG,8BAA8B;AAExE,OAAO,MAAMC,sCAAsC,GAAG,0CAA0C;AAEhG,OAAO,MAAMC,uBAAuB,GAAG,2BAA2B;AAElE,OAAO,MAAMC,sBAAsB,GAAG,0BAA0B;AAEhE,OAAO,MAAMC,iBAAiB,GAAG,0BAA0B;AAE3D,OAAO,MAAMC,qBAAqB,GAAG,uBAAuB;AAE5D,OAAO,MAAMC,qBAAqB,GAAG,uBAAuB;AAE5D,OAAO,MAAMC,uBAAuB,GAAG,yBAAyB;AAEhE,OAAO,MAAMC,yBAAyB,GAAG,2BAA2B;AAEpE,OAAO,MAAMC,oBAAoB,GAAG,4BAA4B;AAEhE,OAAO,MAAMC,iBAAiB,GAAG,+BAA+B;AAEhE,OAAO,MAAMC,uCAAuC,GAAG,MAAM;AAE7D,OAAO,MAAMC,gBAAgB,GAAG,oCAAoC;AAEpE,OAAO,MAAMC,4BAA4B,GAAG,KAAK,EAAC;;AAElD,OAAO,MAAMC,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC;;AAE/D;AACA;AACA;;AAGA;AACA,OAAO,MAAMC,gBAAgB,GAAG;AAC9B;AACA,gBAAgB;AAChB;AACA,0CAA0C,EAC1C,gDAAgD,EAChD,kDAAkD;AAElD;AACA,qDAAqD,EACrD,2DAA2D,EAC3D,6DAA6D;AAE7D;AACA,gDAAgD;AAEhD;AACA,+CAA+C,EAC/C,8CAA8C,EAC9C,6CAA6C,EAC7C,4DAA4D,EAC5D,4DAA4D,EAC5D;;AAEA;AACA;AAAA,CACD","ignoreList":[]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { SessionRecorderSdk, MULTIPLAYER_BASE_API_URL, MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL } from '@multiplayer-app/session-recorder-common';
|
|
4
|
+
import { LogLevel, WidgetButtonPlacement } from "../types/index.js";
|
|
5
|
+
import { OTEL_MP_SAMPLE_TRACE_RATIO, DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE } from "./constants.js";
|
|
6
|
+
const {
|
|
7
|
+
mask,
|
|
8
|
+
sensitiveFields,
|
|
9
|
+
sensitiveHeaders
|
|
10
|
+
} = SessionRecorderSdk;
|
|
11
|
+
export const DEFAULT_MASKING_CONFIG = {
|
|
12
|
+
isContentMaskingEnabled: true,
|
|
13
|
+
maskBody: mask(sensitiveFields),
|
|
14
|
+
maskHeaders: mask(sensitiveHeaders),
|
|
15
|
+
maskBodyFieldsList: sensitiveFields,
|
|
16
|
+
maskHeadersList: sensitiveHeaders,
|
|
17
|
+
headersToInclude: [],
|
|
18
|
+
headersToExclude: [],
|
|
19
|
+
// Screen masking options
|
|
20
|
+
maskImages: false,
|
|
21
|
+
maskLabels: false,
|
|
22
|
+
maskButtons: false,
|
|
23
|
+
maskWebViews: false,
|
|
24
|
+
maskTextInputs: true,
|
|
25
|
+
maskSandboxedViews: false
|
|
26
|
+
};
|
|
27
|
+
export const DEFAULT_WIDGET_TEXT_CONFIG = {
|
|
28
|
+
initialTitleWithContinuous: 'Encountered an issue?',
|
|
29
|
+
initialTitleWithoutContinuous: 'Encountered an issue?',
|
|
30
|
+
initialDescriptionWithContinuous: 'Record your session so we can see the problem and fix it faster.',
|
|
31
|
+
initialDescriptionWithoutContinuous: 'Record your session so we can see the problem and fix it faster.',
|
|
32
|
+
continuousRecordingLabel: 'Continuous recording',
|
|
33
|
+
startRecordingButtonText: 'Start recording',
|
|
34
|
+
finalTitle: 'Done recording?',
|
|
35
|
+
finalDescription: 'You can also add a quick note with extra context, expectations, or questions. Thank you!',
|
|
36
|
+
commentPlaceholder: 'Add a message...',
|
|
37
|
+
saveButtonText: 'Submit recording',
|
|
38
|
+
cancelButtonText: 'Cancel recording',
|
|
39
|
+
continuousOverlayTitle: 'Save time, skip the reproductions',
|
|
40
|
+
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!',
|
|
41
|
+
saveLastSnapshotButtonText: 'Save recording',
|
|
42
|
+
submitDialogTitle: 'Save recording',
|
|
43
|
+
submitDialogSubtitle: 'This full-stack session recording will be saved directly to your selected Multiplayer project. All data is automatically correlated end-to-end.',
|
|
44
|
+
submitDialogCommentLabel: 'You can also add context, comments, or notes.',
|
|
45
|
+
submitDialogCommentPlaceholder: 'Add a message...',
|
|
46
|
+
submitDialogSubmitText: 'Save',
|
|
47
|
+
submitDialogCancelText: 'Cancel'
|
|
48
|
+
};
|
|
49
|
+
export const BASE_CONFIG = {
|
|
50
|
+
apiKey: '',
|
|
51
|
+
version: '',
|
|
52
|
+
application: '',
|
|
53
|
+
environment: '',
|
|
54
|
+
showContinuousRecording: true,
|
|
55
|
+
widget: {
|
|
56
|
+
enabled: true,
|
|
57
|
+
button: {
|
|
58
|
+
visible: true,
|
|
59
|
+
placement: WidgetButtonPlacement.bottomRight
|
|
60
|
+
},
|
|
61
|
+
textOverrides: DEFAULT_WIDGET_TEXT_CONFIG
|
|
62
|
+
},
|
|
63
|
+
apiBaseUrl: MULTIPLAYER_BASE_API_URL,
|
|
64
|
+
exporterEndpoint: MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,
|
|
65
|
+
schemifyDocSpanPayload: true,
|
|
66
|
+
ignoreUrls: [],
|
|
67
|
+
propagateTraceHeaderCorsUrls: [],
|
|
68
|
+
sampleTraceRatio: OTEL_MP_SAMPLE_TRACE_RATIO,
|
|
69
|
+
maxCapturingHttpPayloadSize: DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,
|
|
70
|
+
captureBody: true,
|
|
71
|
+
captureHeaders: true,
|
|
72
|
+
masking: DEFAULT_MASKING_CONFIG,
|
|
73
|
+
recordScreen: true,
|
|
74
|
+
recordGestures: true,
|
|
75
|
+
recordNavigation: true,
|
|
76
|
+
logger: {
|
|
77
|
+
enabled: false,
|
|
78
|
+
level: LogLevel.INFO
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SessionRecorderSdk","MULTIPLAYER_BASE_API_URL","MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL","LogLevel","WidgetButtonPlacement","OTEL_MP_SAMPLE_TRACE_RATIO","DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE","mask","sensitiveFields","sensitiveHeaders","DEFAULT_MASKING_CONFIG","isContentMaskingEnabled","maskBody","maskHeaders","maskBodyFieldsList","maskHeadersList","headersToInclude","headersToExclude","maskImages","maskLabels","maskButtons","maskWebViews","maskTextInputs","maskSandboxedViews","DEFAULT_WIDGET_TEXT_CONFIG","initialTitleWithContinuous","initialTitleWithoutContinuous","initialDescriptionWithContinuous","initialDescriptionWithoutContinuous","continuousRecordingLabel","startRecordingButtonText","finalTitle","finalDescription","commentPlaceholder","saveButtonText","cancelButtonText","continuousOverlayTitle","continuousOverlayDescription","saveLastSnapshotButtonText","submitDialogTitle","submitDialogSubtitle","submitDialogCommentLabel","submitDialogCommentPlaceholder","submitDialogSubmitText","submitDialogCancelText","BASE_CONFIG","apiKey","version","application","environment","showContinuousRecording","widget","enabled","button","visible","placement","bottomRight","textOverrides","apiBaseUrl","exporterEndpoint","schemifyDocSpanPayload","ignoreUrls","propagateTraceHeaderCorsUrls","sampleTraceRatio","maxCapturingHttpPayloadSize","captureBody","captureHeaders","masking","recordScreen","recordGestures","recordNavigation","logger","level","INFO"],"sourceRoot":"../../../src","sources":["config/defaults.ts"],"mappings":";;AAAA,SACEA,kBAAkB,EAClBC,wBAAwB,EACxBC,iDAAiD,QAC5C,0CAA0C;AACjD,SACEC,QAAQ,EACRC,qBAAqB,QAEhB,mBAAU;AACjB,SACEC,0BAA0B,EAC1BC,uCAAuC,QAClC,gBAAa;AAEpB,MAAM;EAAEC,IAAI;EAAEC,eAAe;EAAEC;AAAiB,CAAC,GAAGT,kBAAkB;AAEtE,OAAO,MAAMU,sBAAyD,GAAG;EACvEC,uBAAuB,EAAE,IAAI;EAC7BC,QAAQ,EAAEL,IAAI,CAACC,eAAe,CAAC;EAC/BK,WAAW,EAAEN,IAAI,CAACE,gBAAgB,CAAC;EACnCK,kBAAkB,EAAEN,eAAe;EACnCO,eAAe,EAAEN,gBAAgB;EACjCO,gBAAgB,EAAE,EAAE;EACpBC,gBAAgB,EAAE,EAAE;EACpB;EACAC,UAAU,EAAE,KAAK;EACjBC,UAAU,EAAE,KAAK;EACjBC,WAAW,EAAE,KAAK;EAClBC,YAAY,EAAE,KAAK;EACnBC,cAA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AEpE2D,WAAW,EAAE,IAAI;EACjBC,cAAc,EAAE,IAAI;EACpBC,OAAO,EAAEzD,sBAAsB;EAG/B0D,YAAY,EAAE,IAAI;EAClBC,cAAc,EAAE,IAAI;EACpBC,gBAAgB,EAAE,IAAI;EAEtBC,MAAM,EAAE;IACNnB,OAAO,EAAE,KAAK;IACdoB,KAAK,EAAErE,QAAQ,CAACsE;EAClB;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Export all config-related functions and constants
|
|
4
|
+
export * from "./constants.js";
|
|
5
|
+
export * from "./defaults.js";
|
|
6
|
+
export * from "./validators.js";
|
|
7
|
+
export * from "./masking.js";
|
|
8
|
+
export * from "./session-recorder.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["config/index.ts"],"mappings":";;AAAA;AACA,cAAc,gBAAa;AAC3B,cAAc,eAAY;AAC1B,cAAc,iBAAc;AAC5B,cAAc,cAAW;AACzB,cAAc,uBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { DEFAULT_MASKING_CONFIG } from "./defaults.js";
|
|
4
|
+
import { isValidArray, isValidBoolean, isValidFunction } from "./validators.js";
|
|
5
|
+
import { SessionRecorderSdk } from '@multiplayer-app/session-recorder-common';
|
|
6
|
+
const {
|
|
7
|
+
mask,
|
|
8
|
+
sensitiveFields,
|
|
9
|
+
sensitiveHeaders
|
|
10
|
+
} = SessionRecorderSdk;
|
|
11
|
+
export const getMaskingConfig = masking => {
|
|
12
|
+
const baseMasking = DEFAULT_MASKING_CONFIG;
|
|
13
|
+
if (typeof masking !== 'object') {
|
|
14
|
+
return baseMasking;
|
|
15
|
+
}
|
|
16
|
+
const maskHeadersList = isValidArray(masking.maskHeadersList, sensitiveHeaders);
|
|
17
|
+
const maskBodyFieldsList = isValidArray(masking.maskBodyFieldsList, sensitiveFields);
|
|
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
|
+
};
|
|
35
|
+
//# sourceMappingURL=masking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_MASKING_CONFIG","isValidArray","isValidBoolean","isValidFunction","SessionRecorderSdk","mask","sensitiveFields","sensitiveHeaders","getMaskingConfig","masking","baseMasking","maskHeadersList","maskBodyFieldsList","headersToInclude","headersToExclude","isContentMaskingEnabled","maskBody","maskHeaders","maskTextInputs","maskImages","maskButtons","maskLabels","maskWebViews","maskSandboxedViews"],"sourceRoot":"../../../src","sources":["config/masking.ts"],"mappings":";;AACA,SAASA,sBAAsB,QAAQ,eAAY;AACnD,SAAS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