@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 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groundcover/browser",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "groundcover browser SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",