@multiplayer-app/session-recorder-react-native 0.0.1-beta.2 → 0.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.
Files changed (79) hide show
  1. package/copy-react-native-dist.sh +1 -7
  2. package/dist/components/SessionRecorderWidget/FinalPopover.d.ts +11 -0
  3. package/dist/components/SessionRecorderWidget/FinalPopover.js +1 -0
  4. package/dist/components/SessionRecorderWidget/FinalPopover.js.map +1 -0
  5. package/dist/components/SessionRecorderWidget/FloatingButton.d.ts +8 -0
  6. package/dist/components/SessionRecorderWidget/FloatingButton.js +1 -0
  7. package/dist/components/SessionRecorderWidget/FloatingButton.js.map +1 -0
  8. package/dist/components/SessionRecorderWidget/InitialPopover.d.ts +13 -0
  9. package/dist/components/SessionRecorderWidget/InitialPopover.js +1 -0
  10. package/dist/components/SessionRecorderWidget/InitialPopover.js.map +1 -0
  11. package/dist/components/SessionRecorderWidget/ModalContainer.d.ts +8 -0
  12. package/dist/components/SessionRecorderWidget/ModalContainer.js +1 -0
  13. package/dist/components/SessionRecorderWidget/ModalContainer.js.map +1 -0
  14. package/dist/components/SessionRecorderWidget/SessionRecorderWidget.d.ts +5 -0
  15. package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js +1 -0
  16. package/dist/components/SessionRecorderWidget/SessionRecorderWidget.js.map +1 -0
  17. package/dist/components/SessionRecorderWidget/icons.d.ts +10 -0
  18. package/dist/components/SessionRecorderWidget/icons.js +1 -0
  19. package/dist/components/SessionRecorderWidget/icons.js.map +1 -0
  20. package/dist/components/SessionRecorderWidget/index.d.ts +2 -0
  21. package/dist/components/SessionRecorderWidget/index.js +1 -0
  22. package/dist/components/SessionRecorderWidget/index.js.map +1 -0
  23. package/dist/components/SessionRecorderWidget/styles.d.ts +128 -0
  24. package/dist/components/SessionRecorderWidget/styles.js +1 -0
  25. package/dist/components/SessionRecorderWidget/styles.js.map +1 -0
  26. package/dist/context/SessionRecorderContext.d.ts +5 -3
  27. package/dist/context/SessionRecorderContext.js +1 -1
  28. package/dist/context/SessionRecorderContext.js.map +1 -1
  29. package/dist/index.d.ts +0 -1
  30. package/dist/index.js +1 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/patch/xhr.js +1 -1
  33. package/dist/patch/xhr.js.map +1 -1
  34. package/dist/services/storage.service.d.ts +18 -2
  35. package/dist/services/storage.service.js +1 -1
  36. package/dist/services/storage.service.js.map +1 -1
  37. package/dist/session-recorder.d.ts +2 -1
  38. package/dist/session-recorder.js +1 -1
  39. package/dist/session-recorder.js.map +1 -1
  40. package/dist/utils/platform.d.ts +3 -0
  41. package/package.json +3 -6
  42. package/src/components/SessionRecorderWidget/FinalPopover.tsx +73 -0
  43. package/src/components/SessionRecorderWidget/FloatingButton.tsx +149 -0
  44. package/src/components/SessionRecorderWidget/InitialPopover.tsx +95 -0
  45. package/src/components/SessionRecorderWidget/ModalContainer.tsx +80 -0
  46. package/src/components/SessionRecorderWidget/SessionRecorderWidget.tsx +109 -0
  47. package/src/components/SessionRecorderWidget/icons.tsx +43 -0
  48. package/src/components/SessionRecorderWidget/index.ts +3 -0
  49. package/src/components/SessionRecorderWidget/styles.ts +137 -0
  50. package/src/context/SessionRecorderContext.tsx +12 -34
  51. package/src/index.ts +1 -9
  52. package/src/patch/xhr.ts +6 -7
  53. package/src/services/storage.service.ts +45 -4
  54. package/src/session-recorder.ts +9 -3
  55. package/tsconfig.json +1 -1
  56. package/RRWEB_INTEGRATION.md +0 -336
  57. package/VIEWSHOT_INTEGRATION_TEST.md +0 -123
  58. package/dist/components/GestureCaptureWrapper.d.ts +0 -6
  59. package/dist/components/GestureCaptureWrapper.js +0 -1
  60. package/dist/components/GestureCaptureWrapper.js.map +0 -1
  61. package/dist/expo.d.ts +0 -7
  62. package/dist/expo.js +0 -1
  63. package/dist/expo.js.map +0 -1
  64. package/dist/otel/instrumentations/gestureInstrumentation.d.ts +0 -15
  65. package/dist/otel/instrumentations/gestureInstrumentation.js +0 -1
  66. package/dist/otel/instrumentations/gestureInstrumentation.js.map +0 -1
  67. package/dist/otel/instrumentations/reactNativeInstrumentation.d.ts +0 -8
  68. package/dist/otel/instrumentations/reactNativeInstrumentation.js +0 -1
  69. package/dist/otel/instrumentations/reactNativeInstrumentation.js.map +0 -1
  70. package/dist/otel/instrumentations/reactNavigationInstrumentation.d.ts +0 -13
  71. package/dist/otel/instrumentations/reactNavigationInstrumentation.js +0 -1
  72. package/dist/otel/instrumentations/reactNavigationInstrumentation.js.map +0 -1
  73. package/dist/recorder/gestureHandlerRecorder.d.ts +0 -19
  74. package/dist/recorder/gestureHandlerRecorder.js +0 -1
  75. package/dist/recorder/gestureHandlerRecorder.js.map +0 -1
  76. package/dist/types/rrweb.d.ts +0 -118
  77. package/dist/types/rrweb.js +0 -1
  78. package/dist/types/rrweb.js.map +0 -1
  79. package/src/expo.ts +0 -11
@@ -1,118 +0,0 @@
1
- /**
2
- * RRWeb event types for React Native session recording
3
- * Based on rrweb specification: https://github.com/rrweb-io/rrweb
4
- */
5
- export declare enum EventType {
6
- DomContentLoaded = 0,
7
- Load = 1,
8
- FullSnapshot = 2,
9
- IncrementalSnapshot = 3,
10
- Meta = 4,
11
- Custom = 5,
12
- Plugin = 6
13
- }
14
- export declare enum IncrementalSource {
15
- Mutation = 0,
16
- MouseMove = 1,
17
- MouseInteraction = 2,
18
- Scroll = 3,
19
- ViewportResize = 4,
20
- Input = 5,
21
- TouchMove = 6,
22
- MediaInteraction = 7,
23
- StyleSheetRule = 8,
24
- CanvasMutation = 9,
25
- Font = 10,
26
- Selection = 11,
27
- AdoptedStyleSheet = 12
28
- }
29
- export declare enum MouseInteractionType {
30
- MouseUp = 0,
31
- MouseDown = 1,
32
- Click = 2,
33
- ContextMenu = 3,
34
- DblClick = 4,
35
- Focus = 5,
36
- Blur = 6,
37
- TouchStart = 7,
38
- TouchMove = 8,
39
- TouchEnd = 9,
40
- TouchCancel = 10
41
- }
42
- export interface MouseInteractionData {
43
- type: MouseInteractionType;
44
- id: number;
45
- x: number;
46
- y: number;
47
- }
48
- export interface TouchInteractionData {
49
- type: MouseInteractionType;
50
- id: number;
51
- x: number;
52
- y: number;
53
- pressure?: number;
54
- target?: string;
55
- }
56
- export interface FullSnapshotEvent {
57
- type: EventType.FullSnapshot;
58
- data: {
59
- node: SerializedNodeWithId;
60
- initialOffset: {
61
- left: number;
62
- top: number;
63
- };
64
- };
65
- timestamp: number;
66
- }
67
- export interface IncrementalSnapshotEvent {
68
- type: EventType.IncrementalSnapshot;
69
- data: {
70
- source: IncrementalSource;
71
- id?: number;
72
- x?: number;
73
- y?: number;
74
- type?: MouseInteractionType;
75
- } & Partial<MouseInteractionData> & Partial<TouchInteractionData>;
76
- timestamp: number;
77
- }
78
- export interface SerializedNodeWithId {
79
- type: number;
80
- id: number;
81
- tagName?: string;
82
- attributes?: Record<string, string>;
83
- childNodes?: SerializedNodeWithId[];
84
- textContent?: string;
85
- style?: Record<string, string>;
86
- }
87
- export interface MetaEvent {
88
- type: EventType.Meta;
89
- data: {
90
- href?: string;
91
- width?: number;
92
- height?: number;
93
- [key: string]: any;
94
- };
95
- timestamp: number;
96
- }
97
- export interface RRWebEvent {
98
- type: EventType;
99
- data: any;
100
- timestamp: number;
101
- }
102
- export interface ReactNativeScreenData {
103
- width: number;
104
- height: number;
105
- base64Image: string;
106
- timestamp: number;
107
- screenName?: string;
108
- }
109
- export interface ReactNativeTouchData {
110
- pageX: number;
111
- pageY: number;
112
- target?: string;
113
- pressure?: number;
114
- timestamp: number;
115
- }
116
- export interface EventRecorder {
117
- recordEvent(event: RRWebEvent): void;
118
- }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.MouseInteractionType=exports.IncrementalSource=exports.EventType=void 0;var EventType;(function(EventType){EventType[EventType["DomContentLoaded"]=0]="DomContentLoaded";EventType[EventType["Load"]=1]="Load";EventType[EventType["FullSnapshot"]=2]="FullSnapshot";EventType[EventType["IncrementalSnapshot"]=3]="IncrementalSnapshot";EventType[EventType["Meta"]=4]="Meta";EventType[EventType["Custom"]=5]="Custom";EventType[EventType["Plugin"]=6]="Plugin";})(EventType||(exports.EventType=EventType={}));var IncrementalSource;(function(IncrementalSource){IncrementalSource[IncrementalSource["Mutation"]=0]="Mutation";IncrementalSource[IncrementalSource["MouseMove"]=1]="MouseMove";IncrementalSource[IncrementalSource["MouseInteraction"]=2]="MouseInteraction";IncrementalSource[IncrementalSource["Scroll"]=3]="Scroll";IncrementalSource[IncrementalSource["ViewportResize"]=4]="ViewportResize";IncrementalSource[IncrementalSource["Input"]=5]="Input";IncrementalSource[IncrementalSource["TouchMove"]=6]="TouchMove";IncrementalSource[IncrementalSource["MediaInteraction"]=7]="MediaInteraction";IncrementalSource[IncrementalSource["StyleSheetRule"]=8]="StyleSheetRule";IncrementalSource[IncrementalSource["CanvasMutation"]=9]="CanvasMutation";IncrementalSource[IncrementalSource["Font"]=10]="Font";IncrementalSource[IncrementalSource["Selection"]=11]="Selection";IncrementalSource[IncrementalSource["AdoptedStyleSheet"]=12]="AdoptedStyleSheet";})(IncrementalSource||(exports.IncrementalSource=IncrementalSource={}));var MouseInteractionType;(function(MouseInteractionType){MouseInteractionType[MouseInteractionType["MouseUp"]=0]="MouseUp";MouseInteractionType[MouseInteractionType["MouseDown"]=1]="MouseDown";MouseInteractionType[MouseInteractionType["Click"]=2]="Click";MouseInteractionType[MouseInteractionType["ContextMenu"]=3]="ContextMenu";MouseInteractionType[MouseInteractionType["DblClick"]=4]="DblClick";MouseInteractionType[MouseInteractionType["Focus"]=5]="Focus";MouseInteractionType[MouseInteractionType["Blur"]=6]="Blur";MouseInteractionType[MouseInteractionType["TouchStart"]=7]="TouchStart";MouseInteractionType[MouseInteractionType["TouchMove"]=8]="TouchMove";MouseInteractionType[MouseInteractionType["TouchEnd"]=9]="TouchEnd";MouseInteractionType[MouseInteractionType["TouchCancel"]=10]="TouchCancel";})(MouseInteractionType||(exports.MouseInteractionType=MouseInteractionType={}));
@@ -1 +0,0 @@
1
- {"version":3,"file":"rrweb.js","sourceRoot":"","sources":["../../src/types/rrweb.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,iEAAoB,CAAA;IACpB,yCAAQ,CAAA;IACR,yDAAgB,CAAA;IAChB,uEAAuB,CAAA;IACvB,yCAAQ,CAAA;IACR,6CAAU,CAAA;IACV,6CAAU,CAAA;AACZ,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB;AAED,MAAM,CAAN,IAAY,iBAcX;AAdD,WAAY,iBAAiB;IAC3B,iEAAY,CAAA;IACZ,mEAAa,CAAA;IACb,iFAAoB,CAAA;IACpB,6DAAU,CAAA;IACV,6EAAkB,CAAA;IAClB,2DAAS,CAAA;IACT,mEAAa,CAAA;IACb,iFAAoB,CAAA;IACpB,6EAAkB,CAAA;IAClB,6EAAkB,CAAA;IAClB,0DAAS,CAAA;IACT,oEAAc,CAAA;IACd,oFAAsB,CAAA;AACxB,CAAC,EAdW,iBAAiB,KAAjB,iBAAiB,QAc5B;AAED,MAAM,CAAN,IAAY,oBAYX;AAZD,WAAY,oBAAoB;IAC9B,qEAAW,CAAA;IACX,yEAAa,CAAA;IACb,iEAAS,CAAA;IACT,6EAAe,CAAA;IACf,uEAAY,CAAA;IACZ,iEAAS,CAAA;IACT,+DAAQ,CAAA;IACR,2EAAc,CAAA;IACd,yEAAa,CAAA;IACb,uEAAY,CAAA;IACZ,8EAAgB,CAAA;AAClB,CAAC,EAZW,oBAAoB,KAApB,oBAAoB,QAY/B"}
package/src/expo.ts DELETED
@@ -1,11 +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
-
6
- export { SessionRecorder }
7
- // Export the instance as default
8
- export default SessionRecorder
9
-
10
- // Export Expo-specific utilities
11
- export { isExpoEnvironment, getPlatformAttributes } from './utils/platform'