@multiplayer-app/session-recorder-react-native 1.3.36 → 2.0.17-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -8
- package/src/NativeSessionRecorderModule.ts +4 -2
- package/src/NativeSessionRecorderModuleSpec.ts +4 -2
- package/src/NativeSessionRecorderNative.ts +1 -1
- package/src/index.ts +0 -1
- package/src/native/SessionRecorderNative.ts +22 -13
- package/src/otel/helpers.ts +5 -1
- package/src/otel/index.ts +1 -1
- package/src/otel/instrumentations/index.ts +22 -22
- package/src/patch/configs.ts +15 -10
- package/src/patch/fetch.ts +98 -89
- package/src/patch/index.ts +1 -1
- package/src/patch/xhr.ts +3 -4
- package/src/services/screenRecordingService.ts +7 -2
- package/src/services/storage.service.ts +4 -1
- package/src/session-recorder.ts +4 -0
- package/src/types/configs.ts +1 -2
- package/lib/module/NativeSessionRecorderModule.js +0 -5
- package/lib/module/NativeSessionRecorderModule.js.map +0 -1
- package/lib/module/NativeSessionRecorderModuleSpec.js +0 -5
- package/lib/module/NativeSessionRecorderModuleSpec.js.map +0 -1
- package/lib/module/NativeSessionRecorderNative.js +0 -5
- package/lib/module/NativeSessionRecorderNative.js.map +0 -1
- package/lib/module/components/ErrorBoundary.js +0 -32
- package/lib/module/components/ErrorBoundary.js.map +0 -1
- package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js +0 -23
- package/lib/module/components/ScreenRecorderView/ScreenRecorderView.js.map +0 -1
- package/lib/module/components/ScreenRecorderView/index.js +0 -4
- package/lib/module/components/ScreenRecorderView/index.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/ErrorBanner.js +0 -64
- package/lib/module/components/SessionRecorderWidget/ErrorBanner.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/FinalPopover.js +0 -74
- package/lib/module/components/SessionRecorderWidget/FinalPopover.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/FloatingButton.js +0 -191
- package/lib/module/components/SessionRecorderWidget/FloatingButton.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/InitialPopover.js +0 -138
- package/lib/module/components/SessionRecorderWidget/InitialPopover.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/ModalContainer.js +0 -177
- package/lib/module/components/SessionRecorderWidget/ModalContainer.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/ModalHeader.js +0 -27
- package/lib/module/components/SessionRecorderWidget/ModalHeader.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js +0 -133
- package/lib/module/components/SessionRecorderWidget/SessionRecorderWidget.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/icons.js +0 -93
- package/lib/module/components/SessionRecorderWidget/icons.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/index.js +0 -5
- package/lib/module/components/SessionRecorderWidget/index.js.map +0 -1
- package/lib/module/components/SessionRecorderWidget/styles.js +0 -173
- package/lib/module/components/SessionRecorderWidget/styles.js.map +0 -1
- package/lib/module/components/index.js +0 -6
- package/lib/module/components/index.js.map +0 -1
- package/lib/module/config/constants.js +0 -47
- package/lib/module/config/constants.js.map +0 -1
- package/lib/module/config/defaults.js +0 -87
- package/lib/module/config/defaults.js.map +0 -1
- package/lib/module/config/index.js +0 -9
- package/lib/module/config/index.js.map +0 -1
- package/lib/module/config/masking.js +0 -35
- package/lib/module/config/masking.js.map +0 -1
- package/lib/module/config/session-recorder.js +0 -50
- package/lib/module/config/session-recorder.js.map +0 -1
- package/lib/module/config/validators.js +0 -28
- package/lib/module/config/validators.js.map +0 -1
- package/lib/module/config/widget.js +0 -35
- package/lib/module/config/widget.js.map +0 -1
- package/lib/module/context/SessionRecorderContext.js +0 -100
- package/lib/module/context/SessionRecorderContext.js.map +0 -1
- package/lib/module/context/SessionRecorderStore.js +0 -12
- package/lib/module/context/SessionRecorderStore.js.map +0 -1
- package/lib/module/context/createStore.js +0 -27
- package/lib/module/context/createStore.js.map +0 -1
- package/lib/module/context/useSessionRecorderStore.js +0 -45
- package/lib/module/context/useSessionRecorderStore.js.map +0 -1
- package/lib/module/context/useStoreSelector.js +0 -27
- package/lib/module/context/useStoreSelector.js.map +0 -1
- package/lib/module/index.js +0 -14
- package/lib/module/index.js.map +0 -1
- package/lib/module/native/SessionRecorderNative.js +0 -76
- package/lib/module/native/SessionRecorderNative.js.map +0 -1
- package/lib/module/native/index.js +0 -4
- package/lib/module/native/index.js.map +0 -1
- package/lib/module/otel/CrashBufferSpanProcessor.js +0 -42
- package/lib/module/otel/CrashBufferSpanProcessor.js.map +0 -1
- package/lib/module/otel/helpers.js +0 -218
- package/lib/module/otel/helpers.js.map +0 -1
- package/lib/module/otel/index.js +0 -202
- package/lib/module/otel/index.js.map +0 -1
- package/lib/module/otel/instrumentations/index.js +0 -122
- package/lib/module/otel/instrumentations/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/patch/configs.js +0 -18
- package/lib/module/patch/configs.js.map +0 -1
- package/lib/module/patch/fetch.js +0 -224
- package/lib/module/patch/fetch.js.map +0 -1
- package/lib/module/patch/index.js +0 -6
- package/lib/module/patch/index.js.map +0 -1
- package/lib/module/patch/xhr.js +0 -100
- package/lib/module/patch/xhr.js.map +0 -1
- package/lib/module/recorder/gestureRecorder.js +0 -641
- package/lib/module/recorder/gestureRecorder.js.map +0 -1
- package/lib/module/recorder/index.js +0 -176
- package/lib/module/recorder/index.js.map +0 -1
- package/lib/module/recorder/navigationRecorder.js +0 -238
- package/lib/module/recorder/navigationRecorder.js.map +0 -1
- package/lib/module/recorder/screenRecorder.js +0 -527
- package/lib/module/recorder/screenRecorder.js.map +0 -1
- package/lib/module/services/api.service.js +0 -166
- package/lib/module/services/api.service.js.map +0 -1
- package/lib/module/services/crashBuffer.service.js +0 -280
- package/lib/module/services/crashBuffer.service.js.map +0 -1
- package/lib/module/services/network.service.js +0 -178
- package/lib/module/services/network.service.js.map +0 -1
- package/lib/module/services/screenRecordingService.js +0 -107
- package/lib/module/services/screenRecordingService.js.map +0 -1
- package/lib/module/services/socket.service.js +0 -186
- package/lib/module/services/socket.service.js.map +0 -1
- package/lib/module/services/storage.service.js +0 -178
- package/lib/module/services/storage.service.js.map +0 -1
- package/lib/module/session-recorder.js +0 -750
- package/lib/module/session-recorder.js.map +0 -1
- package/lib/module/types/configs.js +0 -4
- package/lib/module/types/configs.js.map +0 -1
- package/lib/module/types/expo-constants.d.js +0 -2
- package/lib/module/types/expo-constants.d.js.map +0 -1
- package/lib/module/types/index.js +0 -10
- package/lib/module/types/index.js.map +0 -1
- package/lib/module/types/session-recorder.js +0 -68
- package/lib/module/types/session-recorder.js.map +0 -1
- package/lib/module/utils/app-metadata.js +0 -28
- package/lib/module/utils/app-metadata.js.map +0 -1
- package/lib/module/utils/constants.optional.expo.js +0 -6
- package/lib/module/utils/constants.optional.expo.js.map +0 -1
- package/lib/module/utils/constants.optional.js +0 -8
- package/lib/module/utils/constants.optional.js.map +0 -1
- package/lib/module/utils/index.js +0 -11
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/logger.js +0 -185
- package/lib/module/utils/logger.js.map +0 -1
- package/lib/module/utils/platform.js +0 -340
- package/lib/module/utils/platform.js.map +0 -1
- package/lib/module/utils/request-utils.js +0 -58
- package/lib/module/utils/request-utils.js.map +0 -1
- package/lib/module/utils/rrweb-events.js +0 -276
- package/lib/module/utils/rrweb-events.js.map +0 -1
- package/lib/module/utils/session.js +0 -21
- package/lib/module/utils/session.js.map +0 -1
- package/lib/module/utils/shallowEqual.js +0 -17
- package/lib/module/utils/shallowEqual.js.map +0 -1
- package/lib/module/utils/time.js +0 -17
- package/lib/module/utils/time.js.map +0 -1
- package/lib/module/utils/type-utils.js +0 -69
- package/lib/module/utils/type-utils.js.map +0 -1
- package/lib/module/version.js +0 -4
- package/lib/module/version.js.map +0 -1
- package/lib/typescript/package.json +0 -1
- package/lib/typescript/src/NativeSessionRecorderModule.d.ts +0 -25
- package/lib/typescript/src/NativeSessionRecorderModule.d.ts.map +0 -1
- package/lib/typescript/src/NativeSessionRecorderModuleSpec.d.ts +0 -25
- package/lib/typescript/src/NativeSessionRecorderModuleSpec.d.ts.map +0 -1
- package/lib/typescript/src/NativeSessionRecorderNative.d.ts +0 -25
- package/lib/typescript/src/NativeSessionRecorderNative.d.ts.map +0 -1
- package/lib/typescript/src/components/ErrorBoundary.d.ts +0 -16
- package/lib/typescript/src/components/ErrorBoundary.d.ts.map +0 -1
- package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts +0 -6
- package/lib/typescript/src/components/ScreenRecorderView/ScreenRecorderView.d.ts.map +0 -1
- package/lib/typescript/src/components/ScreenRecorderView/index.d.ts +0 -2
- package/lib/typescript/src/components/ScreenRecorderView/index.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/ErrorBanner.d.ts +0 -8
- package/lib/typescript/src/components/SessionRecorderWidget/ErrorBanner.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/FinalPopover.d.ts +0 -13
- package/lib/typescript/src/components/SessionRecorderWidget/FinalPopover.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/FloatingButton.d.ts +0 -9
- package/lib/typescript/src/components/SessionRecorderWidget/FloatingButton.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/InitialPopover.d.ts +0 -17
- package/lib/typescript/src/components/SessionRecorderWidget/InitialPopover.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/ModalContainer.d.ts +0 -9
- package/lib/typescript/src/components/SessionRecorderWidget/ModalContainer.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/ModalHeader.d.ts +0 -7
- package/lib/typescript/src/components/SessionRecorderWidget/ModalHeader.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/SessionRecorderWidget.d.ts +0 -6
- package/lib/typescript/src/components/SessionRecorderWidget/SessionRecorderWidget.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/icons.d.ts +0 -12
- package/lib/typescript/src/components/SessionRecorderWidget/icons.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts +0 -3
- package/lib/typescript/src/components/SessionRecorderWidget/index.d.ts.map +0 -1
- package/lib/typescript/src/components/SessionRecorderWidget/styles.d.ts +0 -166
- package/lib/typescript/src/components/SessionRecorderWidget/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/index.d.ts +0 -4
- package/lib/typescript/src/components/index.d.ts.map +0 -1
- package/lib/typescript/src/config/constants.d.ts +0 -22
- package/lib/typescript/src/config/constants.d.ts.map +0 -1
- package/lib/typescript/src/config/defaults.d.ts +0 -5
- package/lib/typescript/src/config/defaults.d.ts.map +0 -1
- package/lib/typescript/src/config/index.d.ts +0 -6
- package/lib/typescript/src/config/index.d.ts.map +0 -1
- package/lib/typescript/src/config/masking.d.ts +0 -3
- package/lib/typescript/src/config/masking.d.ts.map +0 -1
- package/lib/typescript/src/config/session-recorder.d.ts +0 -3
- package/lib/typescript/src/config/session-recorder.d.ts.map +0 -1
- package/lib/typescript/src/config/validators.d.ts +0 -11
- package/lib/typescript/src/config/validators.d.ts.map +0 -1
- package/lib/typescript/src/config/widget.d.ts +0 -10
- package/lib/typescript/src/config/widget.d.ts.map +0 -1
- package/lib/typescript/src/context/SessionRecorderContext.d.ts +0 -22
- package/lib/typescript/src/context/SessionRecorderContext.d.ts.map +0 -1
- package/lib/typescript/src/context/SessionRecorderStore.d.ts +0 -13
- package/lib/typescript/src/context/SessionRecorderStore.d.ts.map +0 -1
- package/lib/typescript/src/context/createStore.d.ts +0 -9
- package/lib/typescript/src/context/createStore.d.ts.map +0 -1
- package/lib/typescript/src/context/useSessionRecorderStore.d.ts +0 -29
- package/lib/typescript/src/context/useSessionRecorderStore.d.ts.map +0 -1
- package/lib/typescript/src/context/useStoreSelector.d.ts +0 -5
- package/lib/typescript/src/context/useStoreSelector.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts +0 -9
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/native/SessionRecorderNative.d.ts +0 -29
- package/lib/typescript/src/native/SessionRecorderNative.d.ts.map +0 -1
- package/lib/typescript/src/native/index.d.ts +0 -2
- package/lib/typescript/src/native/index.d.ts.map +0 -1
- package/lib/typescript/src/otel/CrashBufferSpanProcessor.d.ts +0 -17
- package/lib/typescript/src/otel/CrashBufferSpanProcessor.d.ts.map +0 -1
- package/lib/typescript/src/otel/helpers.d.ts +0 -46
- package/lib/typescript/src/otel/helpers.d.ts.map +0 -1
- package/lib/typescript/src/otel/index.d.ts +0 -33
- package/lib/typescript/src/otel/index.d.ts.map +0 -1
- package/lib/typescript/src/otel/instrumentations/index.d.ts +0 -5
- package/lib/typescript/src/otel/instrumentations/index.d.ts.map +0 -1
- package/lib/typescript/src/patch/configs.d.ts +0 -9
- package/lib/typescript/src/patch/configs.d.ts.map +0 -1
- package/lib/typescript/src/patch/fetch.d.ts +0 -2
- package/lib/typescript/src/patch/fetch.d.ts.map +0 -1
- package/lib/typescript/src/patch/index.d.ts +0 -4
- package/lib/typescript/src/patch/index.d.ts.map +0 -1
- package/lib/typescript/src/patch/xhr.d.ts +0 -2
- package/lib/typescript/src/patch/xhr.d.ts.map +0 -1
- package/lib/typescript/src/recorder/gestureRecorder.d.ts +0 -66
- package/lib/typescript/src/recorder/gestureRecorder.d.ts.map +0 -1
- package/lib/typescript/src/recorder/index.d.ts +0 -79
- package/lib/typescript/src/recorder/index.d.ts.map +0 -1
- package/lib/typescript/src/recorder/navigationRecorder.d.ts +0 -29
- package/lib/typescript/src/recorder/navigationRecorder.d.ts.map +0 -1
- package/lib/typescript/src/recorder/screenRecorder.d.ts +0 -127
- package/lib/typescript/src/recorder/screenRecorder.d.ts.map +0 -1
- package/lib/typescript/src/services/api.service.d.ts +0 -116
- package/lib/typescript/src/services/api.service.d.ts.map +0 -1
- package/lib/typescript/src/services/crashBuffer.service.d.ts +0 -27
- package/lib/typescript/src/services/crashBuffer.service.d.ts.map +0 -1
- package/lib/typescript/src/services/network.service.d.ts +0 -47
- package/lib/typescript/src/services/network.service.d.ts.map +0 -1
- package/lib/typescript/src/services/screenRecordingService.d.ts +0 -48
- package/lib/typescript/src/services/screenRecordingService.d.ts.map +0 -1
- package/lib/typescript/src/services/socket.service.d.ts +0 -44
- package/lib/typescript/src/services/socket.service.d.ts.map +0 -1
- package/lib/typescript/src/services/storage.service.d.ts +0 -47
- package/lib/typescript/src/services/storage.service.d.ts.map +0 -1
- package/lib/typescript/src/session-recorder.d.ts +0 -191
- package/lib/typescript/src/session-recorder.d.ts.map +0 -1
- package/lib/typescript/src/types/configs.d.ts +0 -92
- package/lib/typescript/src/types/configs.d.ts.map +0 -1
- package/lib/typescript/src/types/index.d.ts +0 -21
- package/lib/typescript/src/types/index.d.ts.map +0 -1
- package/lib/typescript/src/types/session-recorder.d.ts +0 -367
- package/lib/typescript/src/types/session-recorder.d.ts.map +0 -1
- package/lib/typescript/src/utils/app-metadata.d.ts +0 -17
- package/lib/typescript/src/utils/app-metadata.d.ts.map +0 -1
- package/lib/typescript/src/utils/constants.optional.d.ts +0 -22
- package/lib/typescript/src/utils/constants.optional.d.ts.map +0 -1
- package/lib/typescript/src/utils/constants.optional.expo.d.ts +0 -4
- package/lib/typescript/src/utils/constants.optional.expo.d.ts.map +0 -1
- package/lib/typescript/src/utils/index.d.ts +0 -8
- package/lib/typescript/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/logger.d.ts +0 -108
- package/lib/typescript/src/utils/logger.d.ts.map +0 -1
- package/lib/typescript/src/utils/platform.d.ts +0 -58
- package/lib/typescript/src/utils/platform.d.ts.map +0 -1
- package/lib/typescript/src/utils/request-utils.d.ts +0 -22
- package/lib/typescript/src/utils/request-utils.d.ts.map +0 -1
- package/lib/typescript/src/utils/rrweb-events.d.ts +0 -67
- package/lib/typescript/src/utils/rrweb-events.d.ts.map +0 -1
- package/lib/typescript/src/utils/session.d.ts +0 -7
- package/lib/typescript/src/utils/session.d.ts.map +0 -1
- package/lib/typescript/src/utils/shallowEqual.d.ts +0 -2
- package/lib/typescript/src/utils/shallowEqual.d.ts.map +0 -1
- package/lib/typescript/src/utils/time.d.ts +0 -5
- package/lib/typescript/src/utils/time.d.ts.map +0 -1
- package/lib/typescript/src/utils/type-utils.d.ts +0 -17
- package/lib/typescript/src/utils/type-utils.d.ts.map +0 -1
- package/lib/typescript/src/version.d.ts +0 -2
- package/lib/typescript/src/version.d.ts.map +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const OTEL_MP_SAMPLE_TRACE_RATIO = 0.15;
|
|
2
|
-
export declare const SESSION_ID_PROP_NAME = "multiplayer-session-id";
|
|
3
|
-
export declare const SESSION_SHORT_ID_PROP_NAME = "multiplayer-session-short-id";
|
|
4
|
-
export declare const SESSION_STATE_PROP_NAME = "multiplayer-session-state";
|
|
5
|
-
export declare const SESSION_TYPE_PROP_NAME = "multiplayer-session-type";
|
|
6
|
-
export declare const SESSION_PROP_NAME = "multiplayer-session-data";
|
|
7
|
-
export declare const SESSION_STARTED_EVENT = "debug-session:started";
|
|
8
|
-
export declare const SESSION_STOPPED_EVENT = "debug-session:stopped";
|
|
9
|
-
export declare const SESSION_SUBSCRIBE_EVENT = "debug-session:subscribe";
|
|
10
|
-
export declare const SESSION_UNSUBSCRIBE_EVENT = "debug-session:unsubscribe";
|
|
11
|
-
export declare const SESSION_AUTO_CREATED = "debug-session:auto-created";
|
|
12
|
-
export declare const SESSION_ADD_EVENT = "debug-session:rrweb:add-event";
|
|
13
|
-
export declare const SESSION_SAVE_BUFFER_EVENT = "debug-session:save-buffer";
|
|
14
|
-
export declare const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000;
|
|
15
|
-
export declare const SESSION_RESPONSE = "multiplayer-debug-session-response";
|
|
16
|
-
export declare const REMOTE_SESSION_RECORDING_START = "remote-session-recording:start";
|
|
17
|
-
export declare const REMOTE_SESSION_RECORDING_STOP = "remote-session-recording:stop";
|
|
18
|
-
export declare const SOCKET_SET_USER_EVENT = "socket:set-user";
|
|
19
|
-
export declare const CONTINUOUS_DEBUGGING_TIMEOUT = 60000;
|
|
20
|
-
export declare const DEBUG_SESSION_MAX_DURATION_SECONDS: number;
|
|
21
|
-
export declare const OTEL_IGNORE_URLS: RegExp[];
|
|
22
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/config/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAE7D,eAAO,MAAM,0BAA0B,iCAAiC,CAAC;AAEzE,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AAEnE,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAE5D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,oBAAoB,+BAA+B,CAAC;AAEjE,eAAO,MAAM,iBAAiB,kCAAkC,CAAC;AAGjE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,uCAAuC,SAAS,CAAC;AAE9D,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAEvD,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAElD,eAAO,MAAM,kCAAkC,QAAe,CAAC;AAO/D,eAAO,MAAM,gBAAgB,UA0B5B,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type SessionRecorderConfigs } from '../types';
|
|
2
|
-
export declare const DEFAULT_MASKING_CONFIG: SessionRecorderConfigs['masking'];
|
|
3
|
-
export declare const DEFAULT_WIDGET_TEXT_CONFIG: SessionRecorderConfigs['widget']['textOverrides'];
|
|
4
|
-
export declare const BASE_CONFIG: SessionRecorderConfigs;
|
|
5
|
-
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/config/defaults.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,UAAU,CAAC;AAQlB,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CAAC,SAAS,CAepE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC,eAAe,CA2BtF,CAAC;AAEJ,eAAO,MAAM,WAAW,EAAE,sBAiDzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masking.d.ts","sourceRoot":"","sources":["../../../../src/config/masking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAO5E,eAAO,MAAM,gBAAgB,GAC3B,UAAU,cAAc,KACvB,sBAAsB,CAAC,SAAS,CAkDlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-recorder.d.ts","sourceRoot":"","sources":["../../../../src/config/session-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC5B,MAAM,UAAU,CAAC;AAsBlB,eAAO,MAAM,wBAAwB,GACnC,GAAG,sBAAsB,KACxB,sBA2EF,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validation helper functions for configuration objects
|
|
3
|
-
*/
|
|
4
|
-
export declare const isValidStringOrRegExp: (value: string | RegExp | undefined, defaultValue: string | RegExp) => string | RegExp;
|
|
5
|
-
export declare const isValidString: <T extends string>(value: string | undefined | T, defaultValue: string) => string;
|
|
6
|
-
export declare const isValidNumber: (value: number | undefined, defaultValue: number) => number;
|
|
7
|
-
export declare const isValidBoolean: (value: boolean | undefined, defaultValue: boolean) => boolean;
|
|
8
|
-
export declare const isValidArray: <T>(value: ReadonlyArray<T> | undefined, defaultValue: ReadonlyArray<T>) => T[];
|
|
9
|
-
export declare const isValidEnum: <T>(value: any | T, defaultValue: T, enumValues: T[]) => T;
|
|
10
|
-
export declare const isValidFunction: (value: any, defaultValue: any) => any;
|
|
11
|
-
//# sourceMappingURL=validators.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/config/validators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,qBAAqB,GAChC,OAAO,MAAM,GAAG,MAAM,GAAG,SAAS,EAClC,cAAc,MAAM,GAAG,MAAM,oBAK9B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,EAC5C,OAAO,MAAM,GAAG,SAAS,GAAG,CAAC,EAC7B,cAAc,MAAM,WAGrB,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,GAAG,SAAS,EACzB,cAAc,MAAM,WAGrB,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,OAAO,OAAO,GAAG,SAAS,EAC1B,cAAc,OAAO,YAGtB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,EAC5B,OAAO,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,EACnC,cAAc,aAAa,CAAC,CAAC,CAAC,KAC7B,CAAC,EAIH,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,CAAC,EAC3B,OAAO,GAAG,GAAG,CAAC,EACd,cAAc,CAAC,EACf,YAAY,CAAC,EAAE,KACd,CAEF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,GAAG,EAAE,cAAc,GAAG,QAE5D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type SessionRecorderOptions, WidgetButtonPlacement } from '../types';
|
|
2
|
-
export declare const getWidgetConfig: (config: SessionRecorderOptions["widget"]) => {
|
|
3
|
-
textOverrides: any;
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
button: {
|
|
6
|
-
visible: boolean;
|
|
7
|
-
placement: WidgetButtonPlacement;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../../../src/config/widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI9E,eAAO,MAAM,eAAe,GAAI,QAAQ,sBAAsB,CAAC,QAAQ,CAAC;;;;;;;CA6BvE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type SessionRecorderOptions } from '../types';
|
|
3
|
-
import sessionRecorder from '../session-recorder';
|
|
4
|
-
import { SessionType } from '@multiplayer-app/session-recorder-common';
|
|
5
|
-
interface SessionRecorderContextType {
|
|
6
|
-
instance: typeof sessionRecorder;
|
|
7
|
-
openWidgetModal: () => void;
|
|
8
|
-
closeWidgetModal: () => void;
|
|
9
|
-
startSession: (sessionType?: SessionType) => Promise<void>;
|
|
10
|
-
stopSession: (comment?: string) => Promise<void>;
|
|
11
|
-
pauseSession: () => Promise<void>;
|
|
12
|
-
resumeSession: () => Promise<void>;
|
|
13
|
-
cancelSession: () => Promise<void>;
|
|
14
|
-
saveSession: () => Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export interface SessionRecorderProviderProps extends PropsWithChildren {
|
|
17
|
-
options?: SessionRecorderOptions;
|
|
18
|
-
}
|
|
19
|
-
export declare const SessionRecorderProvider: React.FC<SessionRecorderProviderProps>;
|
|
20
|
-
export declare const useSessionRecorder: () => SessionRecorderContextType;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=SessionRecorderContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRecorderContext.d.ts","sourceRoot":"","sources":["../../../../src/context/SessionRecorderContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKZ,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,KAAK,sBAAsB,EAAgB,MAAM,UAAU,CAAC;AACrE,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAOvE,UAAU,0BAA0B;IAClC,QAAQ,EAAE,OAAO,eAAe,CAAC;IACjC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,YAAY,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAClC;AAMD,MAAM,WAAW,4BAA6B,SAAQ,iBAAiB;IACrE,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAC5C,4BAA4B,CA6F7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAO,0BAQrC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Store } from './createStore';
|
|
2
|
-
import { SessionType } from '@multiplayer-app/session-recorder-common';
|
|
3
|
-
import { SessionState } from '../types';
|
|
4
|
-
export type SessionRecorderState = {
|
|
5
|
-
isInitialized: boolean;
|
|
6
|
-
sessionType: SessionType | null;
|
|
7
|
-
sessionState: SessionState | null;
|
|
8
|
-
isWidgetModalVisible: boolean;
|
|
9
|
-
isOnline: boolean;
|
|
10
|
-
error: string | null;
|
|
11
|
-
};
|
|
12
|
-
export declare const sessionRecorderStore: Store<SessionRecorderState>;
|
|
13
|
-
//# sourceMappingURL=SessionRecorderStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRecorderStore.d.ts","sourceRoot":"","sources":["../../../../src/context/SessionRecorderStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAQzD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type Listener<T> = (state: T, prevState: T) => void;
|
|
2
|
-
export type Store<T> = {
|
|
3
|
-
getState: () => T;
|
|
4
|
-
setState: (partial: Partial<T> | ((prev: T) => T), action?: string) => void;
|
|
5
|
-
subscribe: (listener: Listener<T>) => () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare function createStore<T extends object>(initialState: T): Store<T>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=createStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createStore.d.ts","sourceRoot":"","sources":["../../../../src/context/createStore.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,IAAI,CAAC;AAEpD,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;IACrB,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5E,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,CAAC;CAClD,CAAC;AAEF,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAuBvE"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SessionType } from '@multiplayer-app/session-recorder-common';
|
|
2
|
-
import { SessionState } from '../types';
|
|
3
|
-
import { type SessionRecorderState } from './SessionRecorderStore';
|
|
4
|
-
/**
|
|
5
|
-
* Select a derived slice from the shared Session Recorder store.
|
|
6
|
-
* Works in both React (web) and React Native since the store shape is identical.
|
|
7
|
-
*
|
|
8
|
-
* @param selector - Function that maps the full store state to the slice you need
|
|
9
|
-
* @param equalityFn - Optional comparator to avoid unnecessary re-renders
|
|
10
|
-
* @returns The selected slice of state
|
|
11
|
-
*/
|
|
12
|
-
export declare function useSessionRecorderStore<TSlice>(selector: (s: SessionRecorderState) => TSlice, equalityFn?: (a: TSlice, b: TSlice) => boolean): TSlice;
|
|
13
|
-
/**
|
|
14
|
-
* Read the current session recording state (started, paused, stopped).
|
|
15
|
-
*/
|
|
16
|
-
export declare function useSessionRecordingState(): SessionState | null;
|
|
17
|
-
/**
|
|
18
|
-
* Read the current session type (MANUAL/CONTINUOUS).
|
|
19
|
-
*/
|
|
20
|
-
export declare function useSessionType(): SessionType | null;
|
|
21
|
-
/**
|
|
22
|
-
* Check whether the Session Recorder has been initialized.
|
|
23
|
-
*/
|
|
24
|
-
export declare function useIsInitialized(): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Read the current widget modal visibility.
|
|
27
|
-
*/
|
|
28
|
-
export declare function useWidgetModalVisible(): boolean;
|
|
29
|
-
//# sourceMappingURL=useSessionRecorderStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSessionRecorderStore.d.ts","sourceRoot":"","sources":["../../../../src/context/useSessionRecorderStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAC5C,QAAQ,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,MAAM,EAC7C,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,GAC7C,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,wBAAwB,wBAEvC;AAED;;GAEG;AACH,wBAAgB,cAAc,uBAE7B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,YAE/B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,YAEpC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type Store } from './createStore';
|
|
2
|
-
import { shallowEqual } from '../utils/shallowEqual';
|
|
3
|
-
export declare function useStoreSelector<TState extends object, TSlice>(store: Store<TState>, selector: (state: TState) => TSlice, equalityFn?: (a: TSlice, b: TSlice) => boolean): TSlice;
|
|
4
|
-
export declare const shallow: typeof shallowEqual;
|
|
5
|
-
//# sourceMappingURL=useStoreSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStoreSelector.d.ts","sourceRoot":"","sources":["../../../../src/context/useStoreSelector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,MAAM,EAAE,MAAM,EAC5D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACnC,UAAU,GAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAmB,GACxD,MAAM,CAyBR;AAED,eAAO,MAAM,OAAO,qBAAe,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import './patch';
|
|
2
|
-
import SessionRecorder from './session-recorder';
|
|
3
|
-
export * from '@multiplayer-app/session-recorder-common';
|
|
4
|
-
export * from './context/SessionRecorderContext';
|
|
5
|
-
export * from './context/useSessionRecorderStore';
|
|
6
|
-
export { ErrorBoundary } from './components';
|
|
7
|
-
export { SessionRecorder };
|
|
8
|
-
export default SessionRecorder;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AACjB,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,eAAe,eAAe,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter } from 'react-native';
|
|
2
|
-
import { type MaskingOptions, type Spec } from '../NativeSessionRecorderModule';
|
|
3
|
-
declare const SafeSessionRecorderNative: Spec;
|
|
4
|
-
export interface NativeGestureEvent {
|
|
5
|
-
type: 'tap' | 'pan_start' | 'pan_move' | 'pan_end' | 'long_press' | 'pinch' | 'swipe';
|
|
6
|
-
timestamp: number;
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
target?: string;
|
|
10
|
-
targetInfo?: {
|
|
11
|
-
identifier: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
role?: string;
|
|
14
|
-
testId?: string;
|
|
15
|
-
text?: string;
|
|
16
|
-
};
|
|
17
|
-
metadata?: {
|
|
18
|
-
pressure?: number;
|
|
19
|
-
velocity?: number;
|
|
20
|
-
scale?: number;
|
|
21
|
-
direction?: string;
|
|
22
|
-
distance?: number;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export declare function setGestureCallback(callback: (event: NativeGestureEvent) => void): void;
|
|
26
|
-
export default SafeSessionRecorderNative;
|
|
27
|
-
export declare const gestureEventEmitter: NativeEventEmitter<Readonly<Record<string, readonly Object[]>>>;
|
|
28
|
-
export type { MaskingOptions };
|
|
29
|
-
//# sourceMappingURL=SessionRecorderNative.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRecorderNative.d.ts","sourceRoot":"","sources":["../../../../src/native/SessionRecorderNative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAA8B,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAsBvG,QAAA,MAAM,yBAAyB,EAAE,IAkDhC,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EACF,KAAK,GACL,WAAW,GACX,UAAU,GACV,SAAS,GACT,YAAY,GACZ,OAAO,GACP,OAAO,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAGD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,GAAG,IAAI,CAMtF;AAED,eAAe,yBAAyB,CAAC;AAGzC,eAAO,MAAM,mBAAmB,iEAAe,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/native/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,qBAAqB,EAChC,mBAAmB,EACnB,KAAK,kBAAkB,GACxB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Context } from '@opentelemetry/api';
|
|
2
|
-
import { type ReadableSpan, type SpanProcessor, type Span } from '@opentelemetry/sdk-trace-base';
|
|
3
|
-
import type { CrashBuffer } from '@multiplayer-app/session-recorder-common';
|
|
4
|
-
/**
|
|
5
|
-
* Implementation of the {@link SpanProcessor} that batches spans exported by
|
|
6
|
-
* the SDK then pushes them to the exporter pipeline.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CrashBufferSpanProcessor implements SpanProcessor {
|
|
9
|
-
private readonly _crashBuffer;
|
|
10
|
-
private readonly _serializeSpan;
|
|
11
|
-
constructor(_crashBuffer: CrashBuffer | undefined, _serializeSpan: (span: ReadableSpan) => any);
|
|
12
|
-
forceFlush(): Promise<void>;
|
|
13
|
-
onStart(_span: Span, _parentContext: Context): void;
|
|
14
|
-
onEnd(span: ReadableSpan): void;
|
|
15
|
-
shutdown(): Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=CrashBufferSpanProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CrashBufferSpanProcessor.d.ts","sourceRoot":"","sources":["../../../../src/otel/CrashBufferSpanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,IAAI,EACV,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAE5E;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,aAAa;IAE1D,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBADd,YAAY,EAAE,WAAW,GAAG,SAAS,EACrC,cAAc,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG;IAG9D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,GAAG,IAAI;IAInD,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI;IAuB/B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAG1B"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type Span } from '@opentelemetry/api';
|
|
2
|
-
import { type TracerReactNativeConfig } from '../types';
|
|
3
|
-
export interface HttpPayloadData {
|
|
4
|
-
requestBody?: any;
|
|
5
|
-
responseBody?: any;
|
|
6
|
-
requestHeaders?: Record<string, string>;
|
|
7
|
-
responseHeaders?: Record<string, string>;
|
|
8
|
-
}
|
|
9
|
-
export interface ProcessedHttpPayload {
|
|
10
|
-
requestBody?: string;
|
|
11
|
-
responseBody?: string;
|
|
12
|
-
requestHeaders?: string;
|
|
13
|
-
responseHeaders?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Checks if the trace should be processed based on trace ID prefixes
|
|
17
|
-
*/
|
|
18
|
-
export declare function shouldProcessTrace(traceId: string): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Processes request and response body based on trace type and configuration
|
|
21
|
-
*/
|
|
22
|
-
export declare function processBody(payload: HttpPayloadData, config: TracerReactNativeConfig, span: Span): {
|
|
23
|
-
requestBody?: string;
|
|
24
|
-
responseBody?: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Processes request and response headers based on configuration
|
|
28
|
-
*/
|
|
29
|
-
export declare function processHeaders(payload: HttpPayloadData, config: TracerReactNativeConfig, span: Span): {
|
|
30
|
-
requestHeaders?: string;
|
|
31
|
-
responseHeaders?: string;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Processes HTTP payload (body and headers) and sets span attributes
|
|
35
|
-
*/
|
|
36
|
-
export declare function processHttpPayload(payload: HttpPayloadData, config: TracerReactNativeConfig, span: Span): void;
|
|
37
|
-
/**
|
|
38
|
-
* Converts Headers object to plain object
|
|
39
|
-
*/
|
|
40
|
-
export declare function headersToObject(headers: Headers | Record<string, string> | Record<string, string | string[]> | string[][] | undefined): Record<string, string>;
|
|
41
|
-
/**
|
|
42
|
-
* Extracts response body as string from Response object
|
|
43
|
-
*/
|
|
44
|
-
export declare function extractResponseBody(response: Response): Promise<string | null>;
|
|
45
|
-
export declare const getExporterEndpoint: (exporterEndpoint: string) => string;
|
|
46
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/otel/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAU/C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAK3D;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,uBAAuB,EAC/B,IAAI,EAAE,IAAI,GACT;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAyCjD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,uBAAuB,EAC/B,IAAI,EAAE,IAAI,GACT;IAAE,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,CAmEvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,uBAAuB,EAC/B,IAAI,EAAE,IAAI,GACT,IAAI,CA8BN;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EACH,OAAO,GACP,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,GACjC,MAAM,EAAE,EAAE,GACV,SAAS,GACZ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA2BxB;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAuBxB;AAED,eAAO,MAAM,mBAAmB,GAAI,kBAAkB,MAAM,KAAG,MAmB9D,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type ExportResult } from '@opentelemetry/core';
|
|
2
|
-
import { type ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
3
|
-
import { SessionType } from '@multiplayer-app/session-recorder-common';
|
|
4
|
-
import { type TracerReactNativeConfig } from '../types';
|
|
5
|
-
import { CrashBufferService } from '../services/crashBuffer.service';
|
|
6
|
-
export declare class TracerReactNativeSDK {
|
|
7
|
-
clientId: string;
|
|
8
|
-
private tracerProvider?;
|
|
9
|
-
private config?;
|
|
10
|
-
private sessionId;
|
|
11
|
-
private idGenerator?;
|
|
12
|
-
private exporter?;
|
|
13
|
-
private globalErrorHandlerRegistered;
|
|
14
|
-
private crashBuffer?;
|
|
15
|
-
constructor();
|
|
16
|
-
private _setSessionId;
|
|
17
|
-
init(options: TracerReactNativeConfig): void;
|
|
18
|
-
setCrashBuffer(crashBuffer: CrashBufferService | undefined, windowMs?: number): void;
|
|
19
|
-
exportTraces(spans: ReadableSpan[]): Promise<ExportResult | undefined | void>;
|
|
20
|
-
start(sessionId: string, sessionType: SessionType): void;
|
|
21
|
-
stop(): void;
|
|
22
|
-
setApiKey(apiKey: string): void;
|
|
23
|
-
/**
|
|
24
|
-
* Capture an exception as an error span/event.
|
|
25
|
-
* If there is an active span, the exception will be recorded on it.
|
|
26
|
-
* Otherwise, a short-lived span will be created to hold the exception event.
|
|
27
|
-
*/
|
|
28
|
-
captureException(error: Error, errorInfo?: Record<string, any>): void;
|
|
29
|
-
private _getSpanSessionIdProcessor;
|
|
30
|
-
private _registerGlobalErrorHandlers;
|
|
31
|
-
private static _toReadableSpanLike;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/otel/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,WAAW,EAOZ,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAMxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAOrE,qBAAa,oBAAoB;IAC/B,QAAQ,SAAM;IACd,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,MAAM,CAAC,CAA0B;IAEzC,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,WAAW,CAAC,CAA6B;IACjD,OAAO,CAAC,QAAQ,CAAC,CAAsC;IACvD,OAAO,CAAC,4BAA4B,CAAS;IAC7C,OAAO,CAAC,WAAW,CAAC,CAAqB;;IAIzC,OAAO,CAAC,aAAa;IAarB,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IAqD5C,cAAc,CACZ,WAAW,EAAE,kBAAkB,GAAG,SAAS,EAC3C,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI;IAWD,YAAY,CAChB,KAAK,EAAE,YAAY,EAAE,GACpB,OAAO,CAAC,YAAY,GAAG,SAAS,GAAG,IAAI,CAAC;IAmB3C,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IAUxD,IAAI,IAAI,IAAI;IAUZ,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAU/B;;;;OAIG;IACH,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IAKrE,OAAO,CAAC,0BAA0B;IAalC,OAAO,CAAC,4BAA4B;IA6BpC,OAAO,CAAC,MAAM,CAAC,mBAAmB;CAsEnC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
|
|
2
|
-
import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request';
|
|
3
|
-
import { type TracerReactNativeConfig } from '../../types';
|
|
4
|
-
export declare function getInstrumentations(config: TracerReactNativeConfig): (FetchInstrumentation | XMLHttpRequestInstrumentation)[];
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/otel/instrumentations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAIhG,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAO3D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,uBAAuB,4DA+HlE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const configs: {
|
|
2
|
-
recordRequestHeaders: boolean;
|
|
3
|
-
recordResponseHeaders: boolean;
|
|
4
|
-
shouldRecordBody: boolean;
|
|
5
|
-
maxCapturingHttpPayloadSize: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const setMaxCapturingHttpPayloadSize: (_maxCapturingHttpPayloadSize: number) => void;
|
|
8
|
-
export declare const setShouldRecordHttpData: (shouldRecordBody: boolean, shouldRecordHeaders: boolean) => void;
|
|
9
|
-
//# sourceMappingURL=configs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../../src/patch/configs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,8BAA8B,MAAM,SAElF,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,kBAAkB,OAAO,EAAE,qBAAqB,OAAO,SAI9F,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/patch/fetch.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/patch/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,SAAS,CAAC;AAEjB,cAAc,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../../../../src/patch/xhr.ts"],"names":[],"mappings":""}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { type GestureEvent, type RecorderConfig, type EventRecorder } from '../types';
|
|
2
|
-
export declare class GestureRecorder implements EventRecorder {
|
|
3
|
-
private config?;
|
|
4
|
-
private isRecording;
|
|
5
|
-
private events;
|
|
6
|
-
private screenDimensions;
|
|
7
|
-
private lastGestureTime;
|
|
8
|
-
private gestureThrottleMs;
|
|
9
|
-
private lastTouchTime;
|
|
10
|
-
private touchThrottleMs;
|
|
11
|
-
private eventRecorder?;
|
|
12
|
-
private imageNodeId;
|
|
13
|
-
private screenRecorder?;
|
|
14
|
-
private gestureEventListener?;
|
|
15
|
-
private currentPanSpan?;
|
|
16
|
-
private panMoveCount;
|
|
17
|
-
init(config: RecorderConfig, eventRecorder?: EventRecorder, screenRecorder?: any): void;
|
|
18
|
-
start(): void;
|
|
19
|
-
stop(): void;
|
|
20
|
-
private _getScreenDimensions;
|
|
21
|
-
private _setupGestureEventListener;
|
|
22
|
-
private _removeGestureEventListener;
|
|
23
|
-
private _handleNativeGesture;
|
|
24
|
-
private _handleTapGesture;
|
|
25
|
-
private _handlePanStartGesture;
|
|
26
|
-
private _handlePanMoveGesture;
|
|
27
|
-
private _handlePanEndGesture;
|
|
28
|
-
private _handleLongPressGesture;
|
|
29
|
-
private _handlePinchGesture;
|
|
30
|
-
private _handleSwipeGesture;
|
|
31
|
-
private _sendEvent;
|
|
32
|
-
private _recordOpenTelemetrySpan;
|
|
33
|
-
recordTap(x: number, y: number, target?: string, pressure?: number, timestamp?: number): void;
|
|
34
|
-
recordSwipe(direction: string, target?: string, velocity?: number, distance?: number): void;
|
|
35
|
-
recordPinch(scale: number, target?: string, velocity?: number): void;
|
|
36
|
-
recordPan(deltaX: number, deltaY: number, target?: string, velocity?: number): void;
|
|
37
|
-
recordLongPress(duration: number, target?: string, pressure?: number): void;
|
|
38
|
-
recordDoubleTap(x: number, y: number, target?: string): void;
|
|
39
|
-
recordRotate(rotation: number, target?: string, velocity?: number): void;
|
|
40
|
-
recordFling(direction: string, velocity: number, target?: string): void;
|
|
41
|
-
recordMultiTouch(touchCount: number, target?: string): void;
|
|
42
|
-
recordScroll(direction: string, distance: number, velocity: number, target?: string): void;
|
|
43
|
-
recordZoom(scale: number, target?: string, velocity?: number): void;
|
|
44
|
-
recordTouchStart(x: number, y: number, target?: string, pressure?: number): void;
|
|
45
|
-
recordTouchMove(x: number, y: number, target?: string, pressure?: number): void;
|
|
46
|
-
recordTouchEnd(x: number, y: number, target?: string, pressure?: number): void;
|
|
47
|
-
recordTouchCancel(x: number, y: number, _target?: string): void;
|
|
48
|
-
setImageNodeId(nodeId: number): void;
|
|
49
|
-
private _recordEvent;
|
|
50
|
-
private _createMouseInteractionEvent;
|
|
51
|
-
private _createMouseMoveEvent;
|
|
52
|
-
recordEvent(event: any): void;
|
|
53
|
-
getEvents(): GestureEvent[];
|
|
54
|
-
clearEvents(): void;
|
|
55
|
-
getEventStats(): Record<string, number>;
|
|
56
|
-
setGestureThrottle(throttleMs: number): void;
|
|
57
|
-
isRecordingEnabled(): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Truncate text to prevent large span attributes
|
|
60
|
-
* @param text - Text to truncate
|
|
61
|
-
* @param maxLength - Maximum length (default: 100)
|
|
62
|
-
* @returns Truncated text with ellipsis if needed
|
|
63
|
-
*/
|
|
64
|
-
private _truncateText;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=gestureRecorder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gestureRecorder.d.ts","sourceRoot":"","sources":["../../../../src/recorder/gestureRecorder.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { type eventWithTime } from '@rrweb/types';
|
|
2
|
-
import { SessionType } from '@multiplayer-app/session-recorder-common';
|
|
3
|
-
import { type RecorderConfig, type EventRecorder } from '../types';
|
|
4
|
-
import { SocketService } from '../services/socket.service';
|
|
5
|
-
import { CrashBufferService } from '../services/crashBuffer.service';
|
|
6
|
-
export declare class RecorderReactNativeSDK implements EventRecorder {
|
|
7
|
-
private isRecording;
|
|
8
|
-
private config?;
|
|
9
|
-
private screenRecorder;
|
|
10
|
-
private gestureRecorder;
|
|
11
|
-
private navigationRecorder;
|
|
12
|
-
private recordedEvents;
|
|
13
|
-
private socketService;
|
|
14
|
-
private crashBuffer?;
|
|
15
|
-
private bufferingEnabled;
|
|
16
|
-
private bufferWindowMs;
|
|
17
|
-
private sessionId;
|
|
18
|
-
private sessionType;
|
|
19
|
-
constructor();
|
|
20
|
-
init(config: RecorderConfig, socketService: SocketService, crashBuffer?: CrashBufferService, buffering?: {
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
windowMs: number;
|
|
23
|
-
}): void;
|
|
24
|
-
start(sessionId: string | null, sessionType: SessionType): void;
|
|
25
|
-
stop(): void;
|
|
26
|
-
setNavigationRef(ref: any): void;
|
|
27
|
-
/**
|
|
28
|
-
* Set the viewshot ref for screen capture
|
|
29
|
-
* @param ref - React Native View ref for screen capture
|
|
30
|
-
*/
|
|
31
|
-
setViewShotRef(ref: any): void;
|
|
32
|
-
/**
|
|
33
|
-
* Record an rrweb event
|
|
34
|
-
* @param event - The rrweb event to record
|
|
35
|
-
*/
|
|
36
|
-
recordEvent(event: eventWithTime): void;
|
|
37
|
-
/**
|
|
38
|
-
* Record touch start event
|
|
39
|
-
* @param x - X coordinate
|
|
40
|
-
* @param y - Y coordinate
|
|
41
|
-
* @param target - Target element identifier
|
|
42
|
-
* @param pressure - Touch pressure
|
|
43
|
-
*/
|
|
44
|
-
recordTouchStart(x: number, y: number, target?: string, pressure?: number): void;
|
|
45
|
-
/**
|
|
46
|
-
* Record touch move event
|
|
47
|
-
* @param x - X coordinate
|
|
48
|
-
* @param y - Y coordinate
|
|
49
|
-
* @param target - Target element identifier
|
|
50
|
-
* @param pressure - Touch pressure
|
|
51
|
-
*/
|
|
52
|
-
recordTouchMove(x: number, y: number, target?: string, pressure?: number): void;
|
|
53
|
-
/**
|
|
54
|
-
* Record touch end event
|
|
55
|
-
* @param x - X coordinate
|
|
56
|
-
* @param y - Y coordinate
|
|
57
|
-
* @param target - Target element identifier
|
|
58
|
-
* @param pressure - Touch pressure
|
|
59
|
-
*/
|
|
60
|
-
recordTouchEnd(x: number, y: number, target?: string, pressure?: number): void;
|
|
61
|
-
/**
|
|
62
|
-
* Get all recorded events
|
|
63
|
-
* @returns Array of recorded rrweb events
|
|
64
|
-
*/
|
|
65
|
-
getRecordedEvents(): eventWithTime[];
|
|
66
|
-
/**
|
|
67
|
-
* Clear all recorded events
|
|
68
|
-
*/
|
|
69
|
-
clearRecordedEvents(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Get recording statistics
|
|
72
|
-
* @returns Recording statistics
|
|
73
|
-
*/
|
|
74
|
-
getRecordingStats(): {
|
|
75
|
-
totalEvents: number;
|
|
76
|
-
isRecording: boolean;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/recorder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGvE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAMrE,qBAAa,sBAAuB,YAAW,aAAa;IAC1D,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAC,CAAiB;IAChC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,cAAc,CAAuB;IAC7C,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,WAAW,CAAC,CAAqB;IACzC,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,cAAc,CAAyB;IAC/C,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,WAAW,CAAmC;;IAQtD,IAAI,CACF,MAAM,EAAE,cAAc,EACtB,aAAa,EAAE,aAAa,EAC5B,WAAW,CAAC,EAAE,kBAAkB,EAChC,SAAS,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GACjD,IAAI;IAcP,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IA6B/D,IAAI,IAAI,IAAI;IAQZ,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAIhC;;;OAGG;IACH,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAI9B;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAwCvC;;;;;;OAMG;IACH,gBAAgB,CACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI;IAQP;;;;;;OAMG;IACH,eAAe,CACb,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI;IAQP;;;;;;OAMG;IACH,cAAc,CACZ,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI;IAQP;;;OAGG;IACH,iBAAiB,IAAI,aAAa,EAAE;IAIpC;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAI3B;;;OAGG;IACH,iBAAiB,IAAI;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,OAAO,CAAA;KAAE;CAMnE"}
|