@multiplayer-app/session-recorder-react-native 0.0.1-alpha.9 → 0.0.1-beta.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/SessionRecorderNative.podspec +29 -0
- package/android/build.gradle +32 -0
- package/app.plugin.js +42 -0
- package/copy-react-native-dist.sh +4 -10
- package/dist/components/GestureCaptureWrapper/GestureCaptureWrapper.js +1 -0
- package/dist/components/GestureCaptureWrapper/GestureCaptureWrapper.js.map +1 -0
- package/dist/components/GestureCaptureWrapper/index.d.ts +1 -0
- package/dist/components/GestureCaptureWrapper/index.js +1 -0
- package/dist/components/GestureCaptureWrapper/index.js.map +1 -0
- package/dist/components/MaskableComponent.d.ts +22 -0
- package/dist/components/MaskableComponent.js +1 -0
- package/dist/components/MaskableComponent.js.map +1 -0
- package/dist/components/MaskableTextInput.d.ts +14 -0
- package/dist/components/MaskableTextInput.js +1 -0
- package/dist/components/MaskableTextInput.js.map +1 -0
- package/dist/components/ScreenRecorderView/ScreenRecorderView.d.ts +5 -0
- package/dist/components/ScreenRecorderView/ScreenRecorderView.js +1 -0
- package/dist/components/ScreenRecorderView/ScreenRecorderView.js.map +1 -0
- package/dist/components/ScreenRecorderView/index.d.ts +1 -0
- package/dist/components/ScreenRecorderView/index.js +1 -0
- package/dist/components/ScreenRecorderView/index.js.map +1 -0
- package/dist/components/SessionRecorderWidget/FinalPopover.d.ts +11 -0
- package/dist/components/SessionRecorderWidget/FinalPopover.js +1 -0
- package/dist/components/SessionRecorderWidget/FinalPopover.js.map +1 -0
- package/dist/components/SessionRecorderWidget/FloatingButton.d.ts +8 -0
- package/dist/components/SessionRecorderWidget/FloatingButton.js +1 -0
- package/dist/components/SessionRecorderWidget/FloatingButton.js.map +1 -0
- package/dist/components/SessionRecorderWidget/InitialPopover.d.ts +13 -0
- package/dist/components/SessionRecorderWidget/InitialPopover.js +1 -0
- package/dist/components/SessionRecorderWidget/InitialPopover.js.map +1 -0
- package/dist/components/SessionRecorderWidget/ModalContainer.d.ts +8 -0
- package/dist/components/SessionRecorderWidget/ModalContainer.js +1 -0
- package/dist/components/SessionRecorderWidget/ModalContainer.js.map +1 -0
- package/dist/components/SessionRecorderWidget/ModalHeader.d.ts +6 -0
- package/dist/components/SessionRecorderWidget/ModalHeader.js +1 -0
- package/dist/components/SessionRecorderWidget/ModalHeader.js.map +1 -0
- package/dist/components/SessionRecorderWidget/SessionRecorderWidget.d.ts +5 -0
- package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js +1 -0
- package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js.map +1 -0
- package/dist/components/SessionRecorderWidget/icons.d.ts +11 -0
- package/dist/components/SessionRecorderWidget/icons.js +1 -0
- package/dist/components/SessionRecorderWidget/icons.js.map +1 -0
- package/dist/components/SessionRecorderWidget/index.d.ts +2 -0
- package/dist/components/SessionRecorderWidget/index.js +1 -0
- package/dist/components/SessionRecorderWidget/index.js.map +1 -0
- package/dist/components/SessionRecorderWidget/styles.d.ts +145 -0
- package/dist/components/SessionRecorderWidget/styles.js +1 -0
- package/dist/components/SessionRecorderWidget/styles.js.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -0
- package/dist/config/defaults.js +1 -1
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/masking.js +1 -1
- package/dist/config/masking.js.map +1 -1
- package/dist/context/SessionRecorderContext.d.ts +5 -3
- package/dist/context/SessionRecorderContext.js +1 -1
- package/dist/context/SessionRecorderContext.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/native/ScreenMasking.d.ts +21 -0
- package/dist/native/ScreenMasking.js +1 -0
- package/dist/native/ScreenMasking.js.map +1 -0
- package/dist/native/SessionRecorderNative.d.ts +21 -0
- package/dist/native/SessionRecorderNative.js +1 -0
- package/dist/native/SessionRecorderNative.js.map +1 -0
- package/dist/otel/index.d.ts +0 -2
- package/dist/otel/index.js.map +1 -1
- package/dist/otel/instrumentations/index.d.ts +0 -3
- package/dist/otel/instrumentations/index.js +1 -1
- package/dist/otel/instrumentations/index.js.map +1 -1
- package/dist/patch/xhr.js +1 -1
- package/dist/patch/xhr.js.map +1 -1
- package/dist/recorder/gestureRecorder.d.ts +0 -9
- package/dist/recorder/gestureRecorder.js +1 -1
- package/dist/recorder/gestureRecorder.js.map +1 -1
- package/dist/recorder/index.d.ts +4 -3
- package/dist/recorder/index.js.map +1 -1
- package/dist/recorder/screenRecorder.d.ts +2 -6
- package/dist/recorder/screenRecorder.js +1 -1
- package/dist/recorder/screenRecorder.js.map +1 -1
- package/dist/recorder/screenshotManager.d.ts +10 -0
- package/dist/recorder/screenshotManager.js +1 -0
- package/dist/recorder/screenshotManager.js.map +1 -0
- package/dist/services/screenMaskingService.d.ts +39 -0
- package/dist/services/screenMaskingService.js +1 -0
- package/dist/services/screenMaskingService.js.map +1 -0
- package/dist/services/storage.service.d.ts +18 -2
- package/dist/services/storage.service.js +1 -1
- package/dist/services/storage.service.js.map +1 -1
- package/dist/session-recorder.d.ts +4 -2
- package/dist/session-recorder.js +1 -1
- package/dist/session-recorder.js.map +1 -1
- package/dist/types/index.d.ts +2 -16
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/session-recorder.d.ts +6 -0
- package/dist/types/session-recorder.js.map +1 -1
- package/dist/utils/app-metadata.d.ts +16 -0
- package/dist/utils/app-metadata.js +1 -0
- package/dist/utils/app-metadata.js.map +1 -0
- package/dist/utils/componentRegistry.d.ts +64 -0
- package/dist/utils/componentRegistry.js +1 -0
- package/dist/utils/componentRegistry.js.map +1 -0
- package/dist/utils/nativeModuleTest.d.ts +8 -0
- package/dist/utils/nativeModuleTest.js +1 -0
- package/dist/utils/nativeModuleTest.js.map +1 -0
- package/dist/utils/platform.d.ts +35 -0
- package/dist/utils/platform.js +1 -1
- package/dist/utils/platform.js.map +1 -1
- package/dist/utils/reactNativeHierarchyExtractor.d.ts +38 -0
- package/dist/utils/reactNativeHierarchyExtractor.js +1 -0
- package/dist/utils/reactNativeHierarchyExtractor.js.map +1 -0
- package/dist/utils/rrweb-events.d.ts +1 -1
- package/dist/utils/rrweb-events.js +1 -1
- package/dist/utils/rrweb-events.js.map +1 -1
- package/dist/utils/screenshotMasker.d.ts +96 -0
- package/dist/utils/screenshotMasker.js +1 -0
- package/dist/utils/screenshotMasker.js.map +1 -0
- package/dist/utils/viewHierarchyTracker.d.ts +89 -0
- package/dist/utils/viewHierarchyTracker.js +1 -0
- package/dist/utils/viewHierarchyTracker.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/docs/NATIVE_MODULE_SETUP.md +177 -0
- package/ios/SessionRecorderNative.m +17 -0
- package/ios/SessionRecorderNative.podspec +26 -0
- package/ios/SessionRecorderNative.swift +205 -0
- package/package.json +25 -14
- package/plugin/package.json +20 -0
- package/plugin/src/index.js +42 -0
- package/react-native.config.js +15 -0
- package/RRWEB_INTEGRATION.md +0 -336
- package/VIEWSHOT_INTEGRATION_TEST.md +0 -123
- package/babel.config.js +0 -13
- package/dist/components/GestureCaptureWrapper.js +0 -1
- package/dist/components/GestureCaptureWrapper.js.map +0 -1
- package/dist/expo.d.ts +0 -7
- package/dist/expo.js +0 -1
- package/dist/expo.js.map +0 -1
- package/dist/otel/instrumentations/gestureInstrumentation.d.ts +0 -15
- package/dist/otel/instrumentations/gestureInstrumentation.js +0 -1
- package/dist/otel/instrumentations/gestureInstrumentation.js.map +0 -1
- package/dist/otel/instrumentations/reactNativeInstrumentation.d.ts +0 -8
- package/dist/otel/instrumentations/reactNativeInstrumentation.js +0 -1
- package/dist/otel/instrumentations/reactNativeInstrumentation.js.map +0 -1
- package/dist/otel/instrumentations/reactNavigationInstrumentation.d.ts +0 -13
- package/dist/otel/instrumentations/reactNavigationInstrumentation.js +0 -1
- package/dist/otel/instrumentations/reactNavigationInstrumentation.js.map +0 -1
- package/dist/recorder/gestureHandlerRecorder.d.ts +0 -19
- package/dist/recorder/gestureHandlerRecorder.js +0 -1
- package/dist/recorder/gestureHandlerRecorder.js.map +0 -1
- package/dist/types/rrweb.d.ts +0 -118
- package/dist/types/rrweb.js +0 -1
- package/dist/types/rrweb.js.map +0 -1
- package/src/components/GestureCaptureWrapper.tsx +0 -110
- package/src/config/constants.ts +0 -60
- package/src/config/defaults.ts +0 -82
- package/src/config/index.ts +0 -6
- package/src/config/masking.ts +0 -27
- package/src/config/session-recorder.ts +0 -55
- package/src/config/validators.ts +0 -31
- package/src/context/SessionRecorderContext.tsx +0 -143
- package/src/expo.ts +0 -11
- package/src/index.ts +0 -9
- package/src/otel/helpers.ts +0 -275
- package/src/otel/index.ts +0 -149
- package/src/otel/instrumentations/gestureInstrumentation.ts +0 -141
- package/src/otel/instrumentations/index.ts +0 -120
- package/src/otel/instrumentations/reactNativeInstrumentation.ts +0 -77
- package/src/otel/instrumentations/reactNavigationInstrumentation.ts +0 -119
- package/src/patch/index.ts +0 -1
- package/src/patch/xhr.ts +0 -142
- package/src/recorder/eventExporter.ts +0 -141
- package/src/recorder/gestureHandlerRecorder.ts +0 -157
- package/src/recorder/gestureRecorder.ts +0 -622
- package/src/recorder/index.ts +0 -178
- package/src/recorder/navigationTracker.ts +0 -449
- package/src/recorder/screenRecorder.ts +0 -506
- package/src/services/api.service.ts +0 -203
- package/src/services/storage.service.ts +0 -158
- package/src/session-recorder.ts +0 -601
- package/src/types/expo.d.ts +0 -23
- package/src/types/index.ts +0 -46
- package/src/types/session-recorder.ts +0 -423
- package/src/types/session.ts +0 -65
- package/src/utils/index.ts +0 -8
- package/src/utils/logger.ts +0 -225
- package/src/utils/platform.ts +0 -87
- package/src/utils/request-utils.ts +0 -61
- package/src/utils/rrweb-events.ts +0 -311
- package/src/utils/session.ts +0 -18
- package/src/utils/time.ts +0 -17
- package/src/utils/type-utils.ts +0 -75
- package/src/version.ts +0 -1
- package/tsconfig.json +0 -24
- /package/dist/components/{GestureCaptureWrapper.d.ts → GestureCaptureWrapper/GestureCaptureWrapper.d.ts} +0 -0
package/src/utils/time.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Time and date utility functions for React Native
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export const getFormattedDate = (date: number | Date, options?: any): string => {
|
|
6
|
-
return new Date(date).toLocaleDateString(
|
|
7
|
-
'en-US',
|
|
8
|
-
options || {
|
|
9
|
-
month: 'short',
|
|
10
|
-
year: 'numeric',
|
|
11
|
-
day: 'numeric',
|
|
12
|
-
hour: 'numeric',
|
|
13
|
-
minute: '2-digit',
|
|
14
|
-
second: '2-digit',
|
|
15
|
-
},
|
|
16
|
-
)
|
|
17
|
-
}
|
package/src/utils/type-utils.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
const nativeIsArray = Array.isArray
|
|
2
|
-
const ObjProto = Object.prototype
|
|
3
|
-
export const hasOwnProperty = ObjProto.hasOwnProperty
|
|
4
|
-
const toString = ObjProto.toString
|
|
5
|
-
|
|
6
|
-
export const isArray =
|
|
7
|
-
nativeIsArray ||
|
|
8
|
-
function (obj: any): obj is any[] {
|
|
9
|
-
return toString.call(obj) === '[object Array]'
|
|
10
|
-
}
|
|
11
|
-
export const isUint8Array = function (x: unknown): x is Uint8Array {
|
|
12
|
-
return toString.call(x) === '[object Uint8Array]'
|
|
13
|
-
}
|
|
14
|
-
// from a comment on http://dbj.org/dbj/?p=286
|
|
15
|
-
// fails on only one very rare and deliberate custom object:
|
|
16
|
-
// let bomb = { toString : undefined, valueOf: function(o) { return "function BOMBA!"; }};
|
|
17
|
-
export const isFunction = function (f: any): f is (...args: any[]) => any {
|
|
18
|
-
return typeof f === 'function'
|
|
19
|
-
}
|
|
20
|
-
// Underscore Addons
|
|
21
|
-
export const isObject = function (x: unknown): x is Record<string, any> {
|
|
22
|
-
return x === Object(x) && !isArray(x)
|
|
23
|
-
}
|
|
24
|
-
export const isEmptyObject = function (x: unknown): x is Record<string, any> {
|
|
25
|
-
if (isObject(x)) {
|
|
26
|
-
for (const key in x) {
|
|
27
|
-
if (hasOwnProperty.call(x, key)) {
|
|
28
|
-
return false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return true
|
|
32
|
-
}
|
|
33
|
-
return false
|
|
34
|
-
}
|
|
35
|
-
export const isUndefined = function (x: unknown): x is undefined {
|
|
36
|
-
return x === void 0
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export const isString = function (x: unknown): x is string {
|
|
40
|
-
return toString.call(x) == '[object String]'
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const isEmptyString = function (x: unknown): boolean {
|
|
44
|
-
return isString(x) && x.trim().length === 0
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export const isNull = function (x: unknown): x is null {
|
|
48
|
-
return x === null
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/*
|
|
52
|
-
sometimes you want to check if something is null or undefined
|
|
53
|
-
that's what this is for
|
|
54
|
-
*/
|
|
55
|
-
export const isNullish = function (x: unknown): x is null | undefined {
|
|
56
|
-
return isUndefined(x) || isNull(x)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export const isDate = function (x: unknown): x is Date {
|
|
60
|
-
return toString.call(x) == '[object Date]'
|
|
61
|
-
}
|
|
62
|
-
export const isNumber = function (x: unknown): x is number {
|
|
63
|
-
return toString.call(x) == '[object Number]'
|
|
64
|
-
}
|
|
65
|
-
export const isBoolean = function (x: unknown): x is boolean {
|
|
66
|
-
return toString.call(x) === '[object Boolean]'
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export const isFormData = (x: unknown): x is FormData => {
|
|
70
|
-
return x instanceof FormData
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export const isFile = (x: unknown): x is File => {
|
|
74
|
-
return x instanceof File
|
|
75
|
-
}
|
package/src/version.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const version = "0.0.1-alpha.9"
|
package/tsconfig.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"rootDir": "./src",
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"jsx": "react-native",
|
|
7
|
-
"incremental": false,
|
|
8
|
-
"lib": ["ESNext"],
|
|
9
|
-
"module": "ES2015",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"noEmitOnError": true,
|
|
12
|
-
"outDir": "./dist",
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
"sourceMap": true,
|
|
15
|
-
"strict": true,
|
|
16
|
-
"target": "ES2018",
|
|
17
|
-
"allowSyntheticDefaultImports": true,
|
|
18
|
-
"resolveJsonModule": true,
|
|
19
|
-
"isolatedModules": true
|
|
20
|
-
},
|
|
21
|
-
"include": ["src/**/*.ts", "src/**/*.tsx"],
|
|
22
|
-
"exclude": ["node_modules", "dist", "examples"],
|
|
23
|
-
"files": ["src/index.ts", "src/expo.ts"]
|
|
24
|
-
}
|
|
File without changes
|