@openreplay/tracker 15.0.0 → 15.0.2

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 (52) hide show
  1. package/dist/cjs/index.js +9058 -68
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/lib/index.js +4 -4
  4. package/dist/lib/index.js.map +1 -1
  5. package/dist/types/common/interaction.d.ts +37 -0
  6. package/dist/types/common/messages.gen.d.ts +567 -0
  7. package/dist/types/main/app/canvas.d.ts +28 -0
  8. package/dist/types/main/app/guards.d.ts +22 -0
  9. package/dist/types/main/app/index.d.ts +322 -0
  10. package/dist/types/main/app/logger.d.ts +17 -0
  11. package/dist/types/main/app/messages.gen.d.ts +81 -0
  12. package/dist/types/main/app/nodes/index.d.ts +31 -0
  13. package/dist/types/main/app/nodes/maintainer.d.ts +28 -0
  14. package/dist/types/main/app/observer/iframe_observer.d.ts +6 -0
  15. package/dist/types/main/app/observer/iframe_offsets.d.ts +8 -0
  16. package/dist/types/main/app/observer/observer.d.ts +29 -0
  17. package/dist/types/main/app/observer/shadow_root_observer.d.ts +4 -0
  18. package/dist/types/main/app/observer/top_observer.d.ts +31 -0
  19. package/dist/types/main/app/sanitizer.d.ts +48 -0
  20. package/dist/types/main/app/session.d.ts +57 -0
  21. package/dist/types/main/app/ticker.d.ts +18 -0
  22. package/dist/types/main/index.d.ts +111 -0
  23. package/dist/types/main/modules/attributeSender.d.ts +23 -0
  24. package/dist/types/main/modules/axiosSpy.d.ts +54 -0
  25. package/dist/types/main/modules/conditionsManager.d.ts +84 -0
  26. package/dist/types/main/modules/connection.d.ts +2 -0
  27. package/dist/types/main/modules/console.d.ts +6 -0
  28. package/dist/types/main/modules/constructedStyleSheets.d.ts +4 -0
  29. package/dist/types/main/modules/cssrules.d.ts +2 -0
  30. package/dist/types/main/modules/exception.d.ts +16 -0
  31. package/dist/types/main/modules/featureFlags.d.ts +25 -0
  32. package/dist/types/main/modules/focus.d.ts +2 -0
  33. package/dist/types/main/modules/fonts.d.ts +2 -0
  34. package/dist/types/main/modules/img.d.ts +2 -0
  35. package/dist/types/main/modules/input.d.ts +34 -0
  36. package/dist/types/main/modules/mouse.d.ts +31 -0
  37. package/dist/types/main/modules/network.d.ts +31 -0
  38. package/dist/types/main/modules/performance.d.ts +7 -0
  39. package/dist/types/main/modules/scroll.d.ts +2 -0
  40. package/dist/types/main/modules/selection.d.ts +7 -0
  41. package/dist/types/main/modules/tabs.d.ts +2 -0
  42. package/dist/types/main/modules/tagWatcher.d.ts +25 -0
  43. package/dist/types/main/modules/timing.d.ts +8 -0
  44. package/dist/types/main/modules/userTesting/SignalManager.d.ts +29 -0
  45. package/dist/types/main/modules/userTesting/dnd.d.ts +1 -0
  46. package/dist/types/main/modules/userTesting/index.d.ts +45 -0
  47. package/dist/types/main/modules/userTesting/recorder.d.ts +24 -0
  48. package/dist/types/main/modules/userTesting/styles.d.ts +277 -0
  49. package/dist/types/main/modules/userTesting/utils.d.ts +9 -0
  50. package/dist/types/main/modules/viewport.d.ts +2 -0
  51. package/dist/types/main/utils.d.ts +30 -0
  52. package/package.json +9 -5
@@ -0,0 +1,277 @@
1
+ export declare const bgStyle: {
2
+ position: string;
3
+ top: number;
4
+ left: number;
5
+ width: string;
6
+ height: string;
7
+ background: string;
8
+ display: string;
9
+ alignItems: string;
10
+ justifyContent: string;
11
+ zIndex: number;
12
+ fontFamily: string;
13
+ };
14
+ export declare const containerStyle: {
15
+ display: string;
16
+ flexDirection: string;
17
+ gap: string;
18
+ alignItems: string;
19
+ padding: string;
20
+ borderRadius: string;
21
+ border: string;
22
+ background: string;
23
+ width: string;
24
+ };
25
+ export declare const containerWidgetStyle: {
26
+ display: string;
27
+ 'flex-direction': string;
28
+ gap: string;
29
+ 'align-items': string;
30
+ padding: string;
31
+ fontFamily: string;
32
+ 'border-radius': string;
33
+ border: string;
34
+ background: string;
35
+ width: string;
36
+ };
37
+ export declare const titleStyle: {
38
+ fontFamily: string;
39
+ fontSize: string;
40
+ fontStyle: string;
41
+ fontWeight: string;
42
+ lineHeight: string;
43
+ color: string;
44
+ };
45
+ export declare const descriptionStyle: {
46
+ borderTop: string;
47
+ borderBottom: string;
48
+ padding: string;
49
+ color: string;
50
+ fontFamily: string;
51
+ fontSize: string;
52
+ fontStyle: string;
53
+ fontWeight: string;
54
+ lineHeight: string;
55
+ whiteSpace: string;
56
+ };
57
+ export declare const noticeStyle: {
58
+ color: string;
59
+ fontFamily: string;
60
+ fontSize: string;
61
+ fontStyle: string;
62
+ fontWeight: string;
63
+ lineHeight: string;
64
+ };
65
+ export declare const buttonStyle: {
66
+ display: string;
67
+ padding: string;
68
+ justifyContent: string;
69
+ alignItems: string;
70
+ gap: string;
71
+ borderRadius: string;
72
+ border: string;
73
+ background: string;
74
+ boxShadow: string;
75
+ color: string;
76
+ textAlign: string;
77
+ fontFamily: string;
78
+ fontSize: string;
79
+ fontStyle: string;
80
+ fontWeight: string;
81
+ lineHeight: string;
82
+ cursor: string;
83
+ };
84
+ export declare const sectionTitleStyle: {
85
+ fontFamily: string;
86
+ fontSize: string;
87
+ fontWeight: string;
88
+ lineHeight: string;
89
+ display: string;
90
+ justifyContent: string;
91
+ width: string;
92
+ cursor: string;
93
+ };
94
+ export declare const contentStyle: {
95
+ display: string;
96
+ flexDirection: string;
97
+ alignItems: string;
98
+ gap: string;
99
+ fontSize: string;
100
+ lineHeight: string;
101
+ };
102
+ export declare const titleWidgetStyle: {
103
+ padding: string;
104
+ gap: string;
105
+ fontFamily: string;
106
+ fontSize: string;
107
+ fontStyle: string;
108
+ fontWeight: string;
109
+ lineHeight: string;
110
+ color: string;
111
+ display: string;
112
+ alignItems: string;
113
+ width: string;
114
+ borderRadius: string;
115
+ background: string;
116
+ boxSizing: string;
117
+ };
118
+ export declare const descriptionWidgetStyle: {
119
+ boxSizing: string;
120
+ display: string;
121
+ width: string;
122
+ borderBottom: string;
123
+ background: string;
124
+ padding: string;
125
+ alignSelf: string;
126
+ color: string;
127
+ fontFamily: string;
128
+ fontStyle: string;
129
+ fontWeight: string;
130
+ };
131
+ export declare const endSectionStyle: {
132
+ display: string;
133
+ flexDirection: string;
134
+ alignItems: string;
135
+ gap: string;
136
+ boxSizing: string;
137
+ width: string;
138
+ borderBottom: string;
139
+ background: string;
140
+ padding: string;
141
+ alignSelf: string;
142
+ color: string;
143
+ fontFamily: string;
144
+ fontStyle: string;
145
+ fontWeight: string;
146
+ };
147
+ export declare const symbolIcon: {
148
+ fontSize: string;
149
+ fontWeight: string;
150
+ cursor: string;
151
+ color: string;
152
+ };
153
+ export declare const buttonWidgetStyle: {
154
+ display: string;
155
+ padding: string;
156
+ justifyContent: string;
157
+ alignItems: string;
158
+ gap: string;
159
+ borderRadius: string;
160
+ border: string;
161
+ background: string;
162
+ boxShadow: string;
163
+ color: string;
164
+ textAlign: string;
165
+ fontFamily: string;
166
+ fontSize: string;
167
+ fontStyle: string;
168
+ fontWeight: string;
169
+ lineHeight: string;
170
+ width: string;
171
+ boxSizing: string;
172
+ cursor: string;
173
+ };
174
+ export declare const stopWidgetStyle: {
175
+ marginTop: string;
176
+ marginBottom: string;
177
+ cursor: string;
178
+ display: string;
179
+ fontWeight: string;
180
+ fontSize: string;
181
+ lineHeight: string;
182
+ };
183
+ export declare const paginationStyle: {
184
+ display: string;
185
+ justifyContent: string;
186
+ alignItems: string;
187
+ gap: string;
188
+ padding: string;
189
+ width: string;
190
+ boxSizing: string;
191
+ };
192
+ export declare const taskNumberActive: {
193
+ display: string;
194
+ flexDirection: string;
195
+ alignItems: string;
196
+ justifyContent: string;
197
+ borderRadius: string;
198
+ outline: string;
199
+ fontSize: string;
200
+ height: string;
201
+ width: string;
202
+ };
203
+ export declare const taskNumberDone: {
204
+ display: string;
205
+ flexDirection: string;
206
+ alignItems: string;
207
+ justifyContent: string;
208
+ borderRadius: string;
209
+ outline: string;
210
+ boxShadow: string;
211
+ background: string;
212
+ fontSize: string;
213
+ height: string;
214
+ width: string;
215
+ };
216
+ export declare const taskDescriptionCard: {
217
+ borderRadius: string;
218
+ border: string;
219
+ background: string;
220
+ boxShadow: string;
221
+ display: string;
222
+ flexDirection: string;
223
+ padding: string;
224
+ gap: string;
225
+ alignSelf: string;
226
+ };
227
+ export declare const taskTextStyle: {
228
+ fontWeight: string;
229
+ };
230
+ export declare const taskDescriptionStyle: {
231
+ fontSize: string;
232
+ lineHeight: string;
233
+ };
234
+ export declare const taskButtonStyle: {
235
+ marginRight: string;
236
+ cursor: string;
237
+ color: string;
238
+ textAlign: string;
239
+ fontFamily: string;
240
+ fontSize: string;
241
+ fontStyle: string;
242
+ fontWeight: string;
243
+ lineHeight: string;
244
+ };
245
+ export declare const taskButtonBorderedStyle: {
246
+ display: string;
247
+ padding: string;
248
+ justifyContent: string;
249
+ alignItems: string;
250
+ gap: string;
251
+ borderRadius: string;
252
+ border: string;
253
+ marginRight: string;
254
+ cursor: string;
255
+ color: string;
256
+ textAlign: string;
257
+ fontFamily: string;
258
+ fontSize: string;
259
+ fontStyle: string;
260
+ fontWeight: string;
261
+ lineHeight: string;
262
+ };
263
+ export declare const taskButtonsRow: {
264
+ display: string;
265
+ justifyContent: string;
266
+ alignItems: string;
267
+ width: string;
268
+ boxSizing: string;
269
+ };
270
+ export declare const spinnerStyles: {
271
+ border: string;
272
+ width: string;
273
+ height: string;
274
+ borderRadius: string;
275
+ borderLeftColor: string;
276
+ animation: string;
277
+ };
@@ -0,0 +1,9 @@
1
+ export declare function generateGrid(): HTMLDivElement;
2
+ export declare function generateChevron(): HTMLDivElement;
3
+ export declare function addKeyframes(): void;
4
+ export declare function createSpinner(): HTMLDivElement;
5
+ export declare function createElement(tag: string, className: string, styles: any, textContent?: string, id?: string): HTMLElement;
6
+ export declare const TEST_START = "or_uxt_test_start";
7
+ export declare const TASK_IND = "or_uxt_task_index";
8
+ export declare const SESSION_ID = "or_uxt_session_id";
9
+ export declare const TEST_ID = "or_uxt_test_id";
@@ -0,0 +1,2 @@
1
+ import type App from '../app/index.js';
2
+ export default function (app: App): void;
@@ -0,0 +1,30 @@
1
+ export declare const IN_BROWSER: boolean;
2
+ export declare const IS_FIREFOX: false | RegExpMatchArray | null;
3
+ export declare const MAX_STR_LEN = 100000;
4
+ export declare function adjustTimeOrigin(): void;
5
+ export declare function getTimeOrigin(): number;
6
+ export declare const now: () => number;
7
+ export declare const stars: (str: string) => string;
8
+ export declare function normSpaces(str: string): string;
9
+ export declare function isURL(s: string): boolean;
10
+ export declare const DOCS_HOST = "https://docs.openreplay.com";
11
+ export declare function deprecationWarn(nameOfFeature: string, useInstead: string, docsPath?: string): void;
12
+ export declare function getLabelAttribute(e: Element): string | null;
13
+ export declare function hasOpenreplayAttribute(e: Element, attr: string): boolean;
14
+ /**
15
+ * checks if iframe is accessible
16
+ **/
17
+ export declare function canAccessIframe(iframe: HTMLIFrameElement): boolean;
18
+ export declare function canAccessTarget(target: EventTarget): boolean;
19
+ export declare function generateRandomId(len?: number): string;
20
+ export declare function inIframe(): boolean | null;
21
+ /**
22
+ * Because angular devs decided that its a good idea to override a browser apis
23
+ * we need to use this to achieve safe behavior
24
+ * */
25
+ export declare function ngSafeBrowserMethod(method: string): string;
26
+ export declare function createMutationObserver(cb: MutationCallback, forceNgOff?: boolean): MutationObserver;
27
+ export declare function createEventListener(target: EventTarget, event: string, cb: EventListenerOrEventListenerObject, capture?: boolean, forceNgOff?: boolean): void;
28
+ export declare function deleteEventListener(target: EventTarget, event: string, cb: EventListenerOrEventListenerObject, capture?: boolean, forceNgOff?: boolean): void;
29
+ export declare function requestIdleCb(callback: () => void): void;
30
+ export declare function simpleMerge<T>(defaultObj: T, givenObj: Partial<T>): T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "15.0.0",
4
+ "version": "15.0.2",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"
@@ -26,16 +26,19 @@
26
26
  },
27
27
  "files": [
28
28
  "dist/lib/**/*",
29
- "dist/cjs/**/*"
29
+ "dist/cjs/**/*",
30
+ "dist/types/**/*"
30
31
  ],
31
32
  "main": "./dist/cjs/index.js",
32
33
  "module": "./dist/lib/index.js",
33
34
  "types": "./dist/lib/main/index.d.ts",
34
35
  "scripts": {
35
36
  "lint": "eslint src --ext .ts,.js --fix --quiet",
36
- "clean": "rm -Rf build && rm -Rf lib && rm -Rf cjs",
37
+ "clean": "rm -Rf build && rm -Rf dist",
37
38
  "build:common": "tsc -b src/common",
38
- "build": "yarn run clean && rollup --config rollup.config.js",
39
+ "compile": "tsc --project src/main/tsconfig.json",
40
+ "create-types": "mkdir dist/lib/ dist/cjs && cp -r dist/types/* dist/lib/ && cp -r dist/types/* dist/cjs/",
41
+ "build": "yarn run clean && yarn compile && yarn create-types && rollup --config rollup.config.js",
39
42
  "lint-front": "lint-staged",
40
43
  "test": "jest --coverage=false",
41
44
  "test:ci": "jest --coverage=true",
@@ -46,6 +49,7 @@
46
49
  "@babel/core": "^7.26.0",
47
50
  "@jest/globals": "^29.7.0",
48
51
  "@rollup/plugin-babel": "^6.0.4",
52
+ "@rollup/plugin-commonjs": "^28.0.1",
49
53
  "@rollup/plugin-node-resolve": "^15.3.0",
50
54
  "@rollup/plugin-replace": "^6.0.1",
51
55
  "@rollup/plugin-terser": "0.4.4",
@@ -67,7 +71,7 @@
67
71
  },
68
72
  "dependencies": {
69
73
  "@medv/finder": "^3.2.0",
70
- "@openreplay/network-proxy": "^1.0.4",
74
+ "@openreplay/network-proxy": "^1.0.5",
71
75
  "error-stack-parser": "^2.0.6",
72
76
  "error-stack-parser-es": "^0.1.5",
73
77
  "fflate": "^0.8.2",