@merittdev/horus-lens 0.1.1 → 0.2.0
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/dist/browser.cjs +1261 -194
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +2 -2
- package/dist/{chunk-UB7YYHI4.js → chunk-JXSK4JG4.js} +245 -27
- package/dist/chunk-JXSK4JG4.js.map +1 -0
- package/dist/{chunk-CRV65EEY.js → chunk-UT7E5LCG.js} +1016 -167
- package/dist/chunk-UT7E5LCG.js.map +1 -0
- package/dist/index.cjs +244 -26
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-DeLYS02n.d.ts → index.d-BtnbCqUx.d.ts} +26 -1
- package/dist/index.d-Cyvb07sp.d.cts +301 -0
- package/dist/index.d-Cyvb07sp.d.ts +301 -0
- package/dist/{index.d-sNoEEgRg.d.cts → index.d-QzZn4EMM.d.cts} +26 -1
- package/dist/index.d.cts +342 -37
- package/dist/index.d.ts +342 -37
- package/dist/index.js +1 -1
- package/dist/lens.min.js +163 -43
- package/dist/lens.min.js.map +1 -1
- package/dist/react.cjs +1261 -194
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-CRV65EEY.js.map +0 -1
- package/dist/chunk-UB7YYHI4.js.map +0 -1
- package/dist/index.d-Bzgtl7-B.d.cts +0 -161
- package/dist/index.d-Bzgtl7-B.d.ts +0 -161
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const AppContextSchema: z.ZodObject<{
|
|
4
|
-
release: z.ZodOptional<z.ZodString>;
|
|
5
|
-
gitSha: z.ZodOptional<z.ZodString>;
|
|
6
|
-
environment: z.ZodOptional<z.ZodString>;
|
|
7
|
-
featureFlags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>>;
|
|
8
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
id: z.ZodOptional<z.ZodString>;
|
|
10
|
-
email: z.ZodOptional<z.ZodString>;
|
|
11
|
-
name: z.ZodOptional<z.ZodString>;
|
|
12
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
type AppContext = z.infer<typeof AppContextSchema>;
|
|
17
|
-
/** DOM path + React fiber path of the element the reporter targeted. */
|
|
18
|
-
declare const TargetElementSchema: z.ZodObject<{
|
|
19
|
-
domPath: z.ZodOptional<z.ZodString>;
|
|
20
|
-
tagName: z.ZodOptional<z.ZodString>;
|
|
21
|
-
text: z.ZodOptional<z.ZodString>;
|
|
22
|
-
boundingRect: z.ZodOptional<z.ZodObject<{
|
|
23
|
-
x: z.ZodNumber;
|
|
24
|
-
y: z.ZodNumber;
|
|
25
|
-
width: z.ZodNumber;
|
|
26
|
-
height: z.ZodNumber;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
reactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
type TargetElement = z.infer<typeof TargetElementSchema>;
|
|
31
|
-
declare const AnnotationSchema: z.ZodObject<{
|
|
32
|
-
kind: z.ZodEnum<{
|
|
33
|
-
rect: "rect";
|
|
34
|
-
ellipse: "ellipse";
|
|
35
|
-
arrow: "arrow";
|
|
36
|
-
}>;
|
|
37
|
-
x: z.ZodNumber;
|
|
38
|
-
y: z.ZodNumber;
|
|
39
|
-
width: z.ZodNumber;
|
|
40
|
-
height: z.ZodNumber;
|
|
41
|
-
viewport: z.ZodObject<{
|
|
42
|
-
width: z.ZodNumber;
|
|
43
|
-
height: z.ZodNumber;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
type Annotation = z.infer<typeof AnnotationSchema>;
|
|
47
|
-
declare const ReportMetadataSchema: z.ZodObject<{
|
|
48
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
49
|
-
annotations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
50
|
-
kind: z.ZodEnum<{
|
|
51
|
-
rect: "rect";
|
|
52
|
-
ellipse: "ellipse";
|
|
53
|
-
arrow: "arrow";
|
|
54
|
-
}>;
|
|
55
|
-
x: z.ZodNumber;
|
|
56
|
-
y: z.ZodNumber;
|
|
57
|
-
width: z.ZodNumber;
|
|
58
|
-
height: z.ZodNumber;
|
|
59
|
-
viewport: z.ZodObject<{
|
|
60
|
-
width: z.ZodNumber;
|
|
61
|
-
height: z.ZodNumber;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
}, z.core.$strip>>>;
|
|
64
|
-
target: z.ZodOptional<z.ZodObject<{
|
|
65
|
-
domPath: z.ZodOptional<z.ZodString>;
|
|
66
|
-
tagName: z.ZodOptional<z.ZodString>;
|
|
67
|
-
text: z.ZodOptional<z.ZodString>;
|
|
68
|
-
boundingRect: z.ZodOptional<z.ZodObject<{
|
|
69
|
-
x: z.ZodNumber;
|
|
70
|
-
y: z.ZodNumber;
|
|
71
|
-
width: z.ZodNumber;
|
|
72
|
-
height: z.ZodNumber;
|
|
73
|
-
}, z.core.$strip>>;
|
|
74
|
-
reactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
env: z.ZodObject<{
|
|
77
|
-
url: z.ZodString;
|
|
78
|
-
route: z.ZodOptional<z.ZodString>;
|
|
79
|
-
referrer: z.ZodOptional<z.ZodString>;
|
|
80
|
-
userAgent: z.ZodString;
|
|
81
|
-
browser: z.ZodOptional<z.ZodString>;
|
|
82
|
-
os: z.ZodOptional<z.ZodString>;
|
|
83
|
-
device: z.ZodOptional<z.ZodEnum<{
|
|
84
|
-
desktop: "desktop";
|
|
85
|
-
tablet: "tablet";
|
|
86
|
-
mobile: "mobile";
|
|
87
|
-
}>>;
|
|
88
|
-
viewport: z.ZodObject<{
|
|
89
|
-
width: z.ZodNumber;
|
|
90
|
-
height: z.ZodNumber;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
screen: z.ZodObject<{
|
|
93
|
-
width: z.ZodNumber;
|
|
94
|
-
height: z.ZodNumber;
|
|
95
|
-
}, z.core.$strip>;
|
|
96
|
-
devicePixelRatio: z.ZodNumber;
|
|
97
|
-
language: z.ZodString;
|
|
98
|
-
timezone: z.ZodString;
|
|
99
|
-
theme: z.ZodOptional<z.ZodEnum<{
|
|
100
|
-
light: "light";
|
|
101
|
-
dark: "dark";
|
|
102
|
-
}>>;
|
|
103
|
-
online: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
-
capturedAt: z.ZodNumber;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
app: z.ZodOptional<z.ZodObject<{
|
|
107
|
-
release: z.ZodOptional<z.ZodString>;
|
|
108
|
-
gitSha: z.ZodOptional<z.ZodString>;
|
|
109
|
-
environment: z.ZodOptional<z.ZodString>;
|
|
110
|
-
featureFlags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>>;
|
|
111
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
112
|
-
id: z.ZodOptional<z.ZodString>;
|
|
113
|
-
email: z.ZodOptional<z.ZodString>;
|
|
114
|
-
name: z.ZodOptional<z.ZodString>;
|
|
115
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
118
|
-
}, z.core.$strip>>;
|
|
119
|
-
errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
120
|
-
message: z.ZodString;
|
|
121
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
122
|
-
source: z.ZodEnum<{
|
|
123
|
-
"window.onerror": "window.onerror";
|
|
124
|
-
unhandledrejection: "unhandledrejection";
|
|
125
|
-
"console.error": "console.error";
|
|
126
|
-
"react-boundary": "react-boundary";
|
|
127
|
-
}>;
|
|
128
|
-
timestamp: z.ZodNumber;
|
|
129
|
-
}, z.core.$strip>>>;
|
|
130
|
-
consoleTail: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
|
-
level: z.ZodEnum<{
|
|
132
|
-
log: "log";
|
|
133
|
-
info: "info";
|
|
134
|
-
warn: "warn";
|
|
135
|
-
error: "error";
|
|
136
|
-
debug: "debug";
|
|
137
|
-
}>;
|
|
138
|
-
args: z.ZodArray<z.ZodString>;
|
|
139
|
-
timestamp: z.ZodNumber;
|
|
140
|
-
}, z.core.$strip>>>;
|
|
141
|
-
networkTail: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
142
|
-
method: z.ZodString;
|
|
143
|
-
url: z.ZodString;
|
|
144
|
-
status: z.ZodNullable<z.ZodNumber>;
|
|
145
|
-
ok: z.ZodNullable<z.ZodBoolean>;
|
|
146
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
147
|
-
requestType: z.ZodEnum<{
|
|
148
|
-
fetch: "fetch";
|
|
149
|
-
xhr: "xhr";
|
|
150
|
-
}>;
|
|
151
|
-
startedAt: z.ZodNumber;
|
|
152
|
-
error: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, z.core.$strip>>>;
|
|
154
|
-
sdk: z.ZodObject<{
|
|
155
|
-
name: z.ZodString;
|
|
156
|
-
version: z.ZodString;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
}, z.core.$strip>;
|
|
159
|
-
type ReportMetadata = z.infer<typeof ReportMetadataSchema>;
|
|
160
|
-
|
|
161
|
-
export type { AppContext as A, ReportMetadata as R, TargetElement as T, Annotation as a };
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const AppContextSchema: z.ZodObject<{
|
|
4
|
-
release: z.ZodOptional<z.ZodString>;
|
|
5
|
-
gitSha: z.ZodOptional<z.ZodString>;
|
|
6
|
-
environment: z.ZodOptional<z.ZodString>;
|
|
7
|
-
featureFlags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>>;
|
|
8
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
id: z.ZodOptional<z.ZodString>;
|
|
10
|
-
email: z.ZodOptional<z.ZodString>;
|
|
11
|
-
name: z.ZodOptional<z.ZodString>;
|
|
12
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
type AppContext = z.infer<typeof AppContextSchema>;
|
|
17
|
-
/** DOM path + React fiber path of the element the reporter targeted. */
|
|
18
|
-
declare const TargetElementSchema: z.ZodObject<{
|
|
19
|
-
domPath: z.ZodOptional<z.ZodString>;
|
|
20
|
-
tagName: z.ZodOptional<z.ZodString>;
|
|
21
|
-
text: z.ZodOptional<z.ZodString>;
|
|
22
|
-
boundingRect: z.ZodOptional<z.ZodObject<{
|
|
23
|
-
x: z.ZodNumber;
|
|
24
|
-
y: z.ZodNumber;
|
|
25
|
-
width: z.ZodNumber;
|
|
26
|
-
height: z.ZodNumber;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
reactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
type TargetElement = z.infer<typeof TargetElementSchema>;
|
|
31
|
-
declare const AnnotationSchema: z.ZodObject<{
|
|
32
|
-
kind: z.ZodEnum<{
|
|
33
|
-
rect: "rect";
|
|
34
|
-
ellipse: "ellipse";
|
|
35
|
-
arrow: "arrow";
|
|
36
|
-
}>;
|
|
37
|
-
x: z.ZodNumber;
|
|
38
|
-
y: z.ZodNumber;
|
|
39
|
-
width: z.ZodNumber;
|
|
40
|
-
height: z.ZodNumber;
|
|
41
|
-
viewport: z.ZodObject<{
|
|
42
|
-
width: z.ZodNumber;
|
|
43
|
-
height: z.ZodNumber;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
type Annotation = z.infer<typeof AnnotationSchema>;
|
|
47
|
-
declare const ReportMetadataSchema: z.ZodObject<{
|
|
48
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
49
|
-
annotations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
50
|
-
kind: z.ZodEnum<{
|
|
51
|
-
rect: "rect";
|
|
52
|
-
ellipse: "ellipse";
|
|
53
|
-
arrow: "arrow";
|
|
54
|
-
}>;
|
|
55
|
-
x: z.ZodNumber;
|
|
56
|
-
y: z.ZodNumber;
|
|
57
|
-
width: z.ZodNumber;
|
|
58
|
-
height: z.ZodNumber;
|
|
59
|
-
viewport: z.ZodObject<{
|
|
60
|
-
width: z.ZodNumber;
|
|
61
|
-
height: z.ZodNumber;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
}, z.core.$strip>>>;
|
|
64
|
-
target: z.ZodOptional<z.ZodObject<{
|
|
65
|
-
domPath: z.ZodOptional<z.ZodString>;
|
|
66
|
-
tagName: z.ZodOptional<z.ZodString>;
|
|
67
|
-
text: z.ZodOptional<z.ZodString>;
|
|
68
|
-
boundingRect: z.ZodOptional<z.ZodObject<{
|
|
69
|
-
x: z.ZodNumber;
|
|
70
|
-
y: z.ZodNumber;
|
|
71
|
-
width: z.ZodNumber;
|
|
72
|
-
height: z.ZodNumber;
|
|
73
|
-
}, z.core.$strip>>;
|
|
74
|
-
reactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
env: z.ZodObject<{
|
|
77
|
-
url: z.ZodString;
|
|
78
|
-
route: z.ZodOptional<z.ZodString>;
|
|
79
|
-
referrer: z.ZodOptional<z.ZodString>;
|
|
80
|
-
userAgent: z.ZodString;
|
|
81
|
-
browser: z.ZodOptional<z.ZodString>;
|
|
82
|
-
os: z.ZodOptional<z.ZodString>;
|
|
83
|
-
device: z.ZodOptional<z.ZodEnum<{
|
|
84
|
-
desktop: "desktop";
|
|
85
|
-
tablet: "tablet";
|
|
86
|
-
mobile: "mobile";
|
|
87
|
-
}>>;
|
|
88
|
-
viewport: z.ZodObject<{
|
|
89
|
-
width: z.ZodNumber;
|
|
90
|
-
height: z.ZodNumber;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
screen: z.ZodObject<{
|
|
93
|
-
width: z.ZodNumber;
|
|
94
|
-
height: z.ZodNumber;
|
|
95
|
-
}, z.core.$strip>;
|
|
96
|
-
devicePixelRatio: z.ZodNumber;
|
|
97
|
-
language: z.ZodString;
|
|
98
|
-
timezone: z.ZodString;
|
|
99
|
-
theme: z.ZodOptional<z.ZodEnum<{
|
|
100
|
-
light: "light";
|
|
101
|
-
dark: "dark";
|
|
102
|
-
}>>;
|
|
103
|
-
online: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
-
capturedAt: z.ZodNumber;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
app: z.ZodOptional<z.ZodObject<{
|
|
107
|
-
release: z.ZodOptional<z.ZodString>;
|
|
108
|
-
gitSha: z.ZodOptional<z.ZodString>;
|
|
109
|
-
environment: z.ZodOptional<z.ZodString>;
|
|
110
|
-
featureFlags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>>;
|
|
111
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
112
|
-
id: z.ZodOptional<z.ZodString>;
|
|
113
|
-
email: z.ZodOptional<z.ZodString>;
|
|
114
|
-
name: z.ZodOptional<z.ZodString>;
|
|
115
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
118
|
-
}, z.core.$strip>>;
|
|
119
|
-
errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
120
|
-
message: z.ZodString;
|
|
121
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
122
|
-
source: z.ZodEnum<{
|
|
123
|
-
"window.onerror": "window.onerror";
|
|
124
|
-
unhandledrejection: "unhandledrejection";
|
|
125
|
-
"console.error": "console.error";
|
|
126
|
-
"react-boundary": "react-boundary";
|
|
127
|
-
}>;
|
|
128
|
-
timestamp: z.ZodNumber;
|
|
129
|
-
}, z.core.$strip>>>;
|
|
130
|
-
consoleTail: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
|
-
level: z.ZodEnum<{
|
|
132
|
-
log: "log";
|
|
133
|
-
info: "info";
|
|
134
|
-
warn: "warn";
|
|
135
|
-
error: "error";
|
|
136
|
-
debug: "debug";
|
|
137
|
-
}>;
|
|
138
|
-
args: z.ZodArray<z.ZodString>;
|
|
139
|
-
timestamp: z.ZodNumber;
|
|
140
|
-
}, z.core.$strip>>>;
|
|
141
|
-
networkTail: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
142
|
-
method: z.ZodString;
|
|
143
|
-
url: z.ZodString;
|
|
144
|
-
status: z.ZodNullable<z.ZodNumber>;
|
|
145
|
-
ok: z.ZodNullable<z.ZodBoolean>;
|
|
146
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
147
|
-
requestType: z.ZodEnum<{
|
|
148
|
-
fetch: "fetch";
|
|
149
|
-
xhr: "xhr";
|
|
150
|
-
}>;
|
|
151
|
-
startedAt: z.ZodNumber;
|
|
152
|
-
error: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, z.core.$strip>>>;
|
|
154
|
-
sdk: z.ZodObject<{
|
|
155
|
-
name: z.ZodString;
|
|
156
|
-
version: z.ZodString;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
}, z.core.$strip>;
|
|
159
|
-
type ReportMetadata = z.infer<typeof ReportMetadataSchema>;
|
|
160
|
-
|
|
161
|
-
export type { AppContext as A, ReportMetadata as R, TargetElement as T, Annotation as a };
|