@stacksjs/defaults 0.74.68 → 0.74.70
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/ai/skills/stacks-analytics/SKILL.md +10 -1
- package/ide/vscode/package.json +1 -1
- package/package.json +2 -2
- package/resources/components/Dashboard/Infrastructure/LogsDashboard.stx +1 -0
- package/resources/components/Dashboard/Kanban/KanbanCardDialog.stx +1 -0
- package/resources/components/Dashboard/MobileSidebar.stx +1 -0
- package/resources/components/Dashboard/UI/Drawer.stx +1 -0
- package/resources/components/Dashboard/UI/Modal.stx +1 -0
|
@@ -122,6 +122,13 @@ interface GoogleAnalyticsConfig {
|
|
|
122
122
|
debug?: boolean // debug_mode -> DebugView
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
interface AnalyticsHqConfig {
|
|
126
|
+
siteId: string // the data-site id AnalyticsHQ minted
|
|
127
|
+
scriptUrl?: string // self-hosted instance or verified custom domain
|
|
128
|
+
respectDnt?: boolean // false counts DNT/GPC visitors (skipped by default)
|
|
129
|
+
vitals?: boolean // false stops Core Web Vitals beacons
|
|
130
|
+
}
|
|
131
|
+
|
|
125
132
|
interface SelfHostedConfig {
|
|
126
133
|
siteId: string // unique site identifier
|
|
127
134
|
apiEndpoint: string // analytics API URL
|
|
@@ -135,8 +142,9 @@ interface SelfHostedConfig {
|
|
|
135
142
|
|
|
136
143
|
```typescript
|
|
137
144
|
{
|
|
138
|
-
driver: 'fathom', // 'fathom' | 'plausible' | 'google-analytics' | 'self-hosted'
|
|
145
|
+
driver: 'fathom', // 'fathom' | 'plausible' | 'google-analytics' | 'self-hosted' | 'analyticshq'
|
|
139
146
|
drivers: {
|
|
147
|
+
analyticshq: { siteId: '' },
|
|
140
148
|
googleAnalytics: { trackingId: '' },
|
|
141
149
|
fathom: { siteId: '' },
|
|
142
150
|
plausible: { domain: '' },
|
|
@@ -167,3 +175,4 @@ Analytics dashboard at `/dashboard/analytics` displays:
|
|
|
167
175
|
- Fathom is a paid service - self-hosted is free but requires infrastructure
|
|
168
176
|
- `trackOutboundLinks` adds click handlers to external `<a>` tags
|
|
169
177
|
- `capturePageviews` is server-side and independent of `driver`
|
|
178
|
+
- AnalyticsHQ custom events need no script: `data-analyticshq-event="Ticket click"` on any element, with other `data-analyticshq-*` attributes as properties
|
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.74.
|
|
5
|
+
"version": "0.74.70",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@iconify-json/f7": "^1.2.2",
|
|
57
57
|
"@iconify-json/hugeicons": "^1.2.27",
|
|
58
|
-
"@stacksjs/mobile": "^0.74.
|
|
58
|
+
"@stacksjs/mobile": "^0.74.70",
|
|
59
59
|
"@stacksjs/sanitizer": "^0.2.113",
|
|
60
60
|
"ts-qr-codes": "^0.1.8"
|
|
61
61
|
}
|
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
DashboardLogType,
|
|
6
6
|
} from '../../../../app/Actions/Dashboard/Infrastructure/log-dashboard'
|
|
7
7
|
import { dashboardApi } from '../../../../functions/dashboard-api'
|
|
8
|
+
import { debounce } from '@stacksjs/browser/utils/debounce'
|
|
8
9
|
|
|
9
10
|
interface LogPagination {
|
|
10
11
|
page: number
|
|
@@ -17,6 +17,7 @@ const sizeClasses = {
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<script client>
|
|
20
|
+
import { useScrollLock } from '@stacksjs/composables'
|
|
20
21
|
const open = useReactiveProp('isOpen', false)
|
|
21
22
|
const liveClosable = useReactiveProp('closable', true)
|
|
22
23
|
const liveTitle = useReactiveProp('title', '')
|
|
@@ -41,6 +41,7 @@ const positionClasses = {
|
|
|
41
41
|
}
|
|
42
42
|
</script>
|
|
43
43
|
<script client>
|
|
44
|
+
import { useScrollLock } from '@stacksjs/composables'
|
|
44
45
|
const open = useReactiveProp('isOpen', false)
|
|
45
46
|
const liveClosable = useReactiveProp('closable', true)
|
|
46
47
|
const liveTitle = useReactiveProp('title', '')
|