@kairosis/browser-events
import { Badge } from ‘@astrojs/starlight/components’;
npm install @kairosis/browser-eventsEvent types
Section titled “Event types”| Constant | Routing key |
|---|---|
PAGE_VISITED | browser.page.visited |
TAB_OPENED | browser.tab.opened |
TAB_CLOSED | browser.tab.closed |
TAB_ACTIVATED | browser.tab.activated |
Payload schemas
Section titled “Payload schemas”BrowserPageVisitedPayload
Section titled “BrowserPageVisitedPayload”Used by: browser.page.visited
| Field | Type | Required | Default |
|---|---|---|---|
url | string (URL) | Yes | — |
title | string | Yes | — |
tabId | integer | Yes | — |
windowId | integer | No | — |
transitionType | string | No | — |
BrowserTabEventPayload
Section titled “BrowserTabEventPayload”| Field | Type | Required | Default |
|---|---|---|---|
tabId | integer | Yes | — |
windowId | integer | No | — |
url | string (URL) | No | — |
title | string | No | — |