@groundcover/browser 0.0.39 → 0.0.40
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/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,11 @@ type BaseEvent = {
|
|
|
10
10
|
traceId: string | undefined;
|
|
11
11
|
attributes?: Record<string, unknown>;
|
|
12
12
|
};
|
|
13
|
+
type LocationAttributes = {
|
|
14
|
+
path: string;
|
|
15
|
+
url: string;
|
|
16
|
+
title: string;
|
|
17
|
+
};
|
|
13
18
|
type UserIdentifiers = {
|
|
14
19
|
id: string;
|
|
15
20
|
email: string;
|
|
@@ -125,7 +130,9 @@ type PerformanceEventAttributes = {
|
|
|
125
130
|
|
|
126
131
|
type Event<T extends BaseEvent["type"], A> = Omit<BaseEvent, "attributes"> & {
|
|
127
132
|
type: T;
|
|
128
|
-
attributes: A
|
|
133
|
+
attributes: A & {
|
|
134
|
+
location?: LocationAttributes;
|
|
135
|
+
};
|
|
129
136
|
};
|
|
130
137
|
type EventTypes = {
|
|
131
138
|
"dom.event": Event<"dom.event", DomEventAttributes>;
|
|
@@ -202,4 +209,4 @@ declare const _default: {
|
|
|
202
209
|
updateConfig: typeof updateConfig;
|
|
203
210
|
};
|
|
204
211
|
|
|
205
|
-
export { _default as default };
|
|
212
|
+
export { type EventTypes, _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ type BaseEvent = {
|
|
|
10
10
|
traceId: string | undefined;
|
|
11
11
|
attributes?: Record<string, unknown>;
|
|
12
12
|
};
|
|
13
|
+
type LocationAttributes = {
|
|
14
|
+
path: string;
|
|
15
|
+
url: string;
|
|
16
|
+
title: string;
|
|
17
|
+
};
|
|
13
18
|
type UserIdentifiers = {
|
|
14
19
|
id: string;
|
|
15
20
|
email: string;
|
|
@@ -125,7 +130,9 @@ type PerformanceEventAttributes = {
|
|
|
125
130
|
|
|
126
131
|
type Event<T extends BaseEvent["type"], A> = Omit<BaseEvent, "attributes"> & {
|
|
127
132
|
type: T;
|
|
128
|
-
attributes: A
|
|
133
|
+
attributes: A & {
|
|
134
|
+
location?: LocationAttributes;
|
|
135
|
+
};
|
|
129
136
|
};
|
|
130
137
|
type EventTypes = {
|
|
131
138
|
"dom.event": Event<"dom.event", DomEventAttributes>;
|
|
@@ -202,4 +209,4 @@ declare const _default: {
|
|
|
202
209
|
updateConfig: typeof updateConfig;
|
|
203
210
|
};
|
|
204
211
|
|
|
205
|
-
export { _default as default };
|
|
212
|
+
export { type EventTypes, _default as default };
|