Skip to content

Commit 4276a9b

Browse files
committed
feat(User Interaction): Capture page data
- Capture page (document) title and URL
1 parent 0c8c25c commit 4276a9b

File tree

12 files changed

+24
-79
lines changed

12 files changed

+24
-79
lines changed

README.md

-45
Original file line numberDiff line numberDiff line change
@@ -264,49 +264,4 @@ In-case you have both in your application, the data context passed via props wil
264264
| `track` | Yes | Callback that runs when above event occurs | `(e, interactionResource: UserInteractionResource) => void` |
265265
| `data` | Optional | Can be used to provide some custom data. Accessible within `UserInteractionResource.data` | `Object<any>` |
266266

267-
### Interfaces
268-
269-
- #### `UserInteractionResource`
270-
The `UserInteractionResource` object contains all properties from `BaseResource`, along with the following:
271-
272-
```typescript
273-
type: typeof UserInteraction.TYPE; // "UserInteraction"
274-
action: UserInteraction.Action; // Type of the event, such as "onClick", "onChange"
275-
source: {
276-
context: string; // To capture a "global" context of the event, such as "Landing page" or "Login form"
277-
origin?: string;
278-
component: string; // Name of the React component
279-
element: {
280-
currentTarget: string;
281-
target: string;
282-
innerHTML?: string;
283-
innerText?: string;
284-
value?: string;
285-
};
286-
};
287-
data?: Object<any>; // Additional custom data that needs to be captured
288-
```
289-
290-
- #### `BaseResource`
291-
292-
```typescript
293-
app: {
294-
version: string,
295-
};
296-
date: Date;
297-
browser: {
298-
name: string,
299-
version: string,
300-
userAgent: string,
301-
platform: string,
302-
window: {
303-
width: number,
304-
height: number,
305-
}
306-
};
307-
os: {
308-
name: string,
309-
version: string,
310-
};
311-
312267
```

dist/assets/index-BGLEp_jH.js renamed to dist/assets/index-DrAk8iSL.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/docs/assets/highlight.css

-14
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
--dark-hl-5: #C586C0;
1414
--light-hl-6: #267F99;
1515
--dark-hl-6: #4EC9B0;
16-
--light-hl-7: #000000;
17-
--dark-hl-7: #C8C8C8;
18-
--light-hl-8: #008000;
19-
--dark-hl-8: #6A9955;
2016
--light-code-background: #FFFFFF;
2117
--dark-code-background: #1E1E1E;
2218
}
@@ -29,8 +25,6 @@
2925
--hl-4: var(--light-hl-4);
3026
--hl-5: var(--light-hl-5);
3127
--hl-6: var(--light-hl-6);
32-
--hl-7: var(--light-hl-7);
33-
--hl-8: var(--light-hl-8);
3428
--code-background: var(--light-code-background);
3529
} }
3630

@@ -42,8 +36,6 @@
4236
--hl-4: var(--dark-hl-4);
4337
--hl-5: var(--dark-hl-5);
4438
--hl-6: var(--dark-hl-6);
45-
--hl-7: var(--dark-hl-7);
46-
--hl-8: var(--dark-hl-8);
4739
--code-background: var(--dark-code-background);
4840
} }
4941

@@ -55,8 +47,6 @@
5547
--hl-4: var(--light-hl-4);
5648
--hl-5: var(--light-hl-5);
5749
--hl-6: var(--light-hl-6);
58-
--hl-7: var(--light-hl-7);
59-
--hl-8: var(--light-hl-8);
6050
--code-background: var(--light-code-background);
6151
}
6252

@@ -68,8 +58,6 @@
6858
--hl-4: var(--dark-hl-4);
6959
--hl-5: var(--dark-hl-5);
7060
--hl-6: var(--dark-hl-6);
71-
--hl-7: var(--dark-hl-7);
72-
--hl-8: var(--dark-hl-8);
7361
--code-background: var(--dark-code-background);
7462
}
7563

@@ -80,6 +68,4 @@
8068
.hl-4 { color: var(--hl-4); }
8169
.hl-5 { color: var(--hl-5); }
8270
.hl-6 { color: var(--hl-6); }
83-
.hl-7 { color: var(--hl-7); }
84-
.hl-8 { color: var(--hl-8); }
8571
pre, code { background: var(--code-background); }

dist/docs/assets/search.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)