@happyvertical/smrt-analytics 0.32.0 → 0.32.1
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/collections/AnalyticsEventCollection.d.ts +76 -3
- package/dist/collections/AnalyticsEventCollection.d.ts.map +1 -1
- package/dist/index.js +156 -35
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +14 -2
- package/dist/smrt-knowledge.json +4 -4
- package/dist/svelte/AnalyticsSummary.svelte +2 -2
- package/dist/svelte/EventsTable.svelte +36 -22
- package/dist/svelte/EventsTable.svelte.d.ts.map +1 -1
- package/dist/svelte/PropertyInfo.svelte +7 -7
- package/dist/svelte/PropertyStatusBadge.svelte +10 -10
- package/dist/svelte/StatCard.svelte +8 -6
- package/dist/svelte/StatCard.svelte.d.ts +1 -1
- package/dist/svelte/StatCard.svelte.d.ts.map +1 -1
- package/dist/svelte/TrendBadge.svelte +13 -9
- package/dist/svelte/TrendBadge.svelte.d.ts +1 -1
- package/dist/svelte/TrendBadge.svelte.d.ts.map +1 -1
- package/dist/svelte/i18n.d.ts +1 -0
- package/dist/svelte/i18n.d.ts.map +1 -1
- package/dist/svelte/i18n.js +1 -0
- package/dist/types/index.d.ts +6 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -40,13 +40,14 @@ function statusClass(status: string): string {
|
|
|
40
40
|
<p class="events-empty">{t(M['analytics.events_table.empty'])}</p>
|
|
41
41
|
{:else}
|
|
42
42
|
<table class="events-table">
|
|
43
|
+
<caption class="events-caption">{t(M['analytics.events_table.caption'])}</caption>
|
|
43
44
|
<thead>
|
|
44
45
|
<tr>
|
|
45
|
-
<th>Event</th>
|
|
46
|
-
<th>Page</th>
|
|
47
|
-
<th>Client</th>
|
|
48
|
-
<th>Time</th>
|
|
49
|
-
<th>Status</th>
|
|
46
|
+
<th scope="col">Event</th>
|
|
47
|
+
<th scope="col">Page</th>
|
|
48
|
+
<th scope="col">Client</th>
|
|
49
|
+
<th scope="col">Time</th>
|
|
50
|
+
<th scope="col">Status</th>
|
|
50
51
|
</tr>
|
|
51
52
|
</thead>
|
|
52
53
|
<tbody>
|
|
@@ -54,7 +55,7 @@ function statusClass(status: string): string {
|
|
|
54
55
|
<tr>
|
|
55
56
|
<td class="event-name">{event.eventName}</td>
|
|
56
57
|
<td class="event-page">{event.pagePath ?? '-'}</td>
|
|
57
|
-
<td class="event-client" title={event.clientId}>{event.clientId.slice(0, 8)}</td>
|
|
58
|
+
<td class="event-client" title={event.clientId}>{(event.clientId ?? '').slice(0, 8)}</td>
|
|
58
59
|
<td class="event-time">{formatTimestamp(event.eventTimestamp)}</td>
|
|
59
60
|
<td><span class="status-pill {statusClass(event.status)}">{event.status}</span></td>
|
|
60
61
|
</tr>
|
|
@@ -78,12 +79,25 @@ function statusClass(status: string): string {
|
|
|
78
79
|
font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
|
|
79
80
|
}
|
|
80
81
|
|
|
82
|
+
/* Visually hidden but available to assistive tech (table accessible name). */
|
|
83
|
+
.events-caption {
|
|
84
|
+
position: absolute;
|
|
85
|
+
width: 1px;
|
|
86
|
+
height: 1px;
|
|
87
|
+
padding: 0;
|
|
88
|
+
margin: -1px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
clip: rect(0, 0, 0, 0);
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
border: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
81
95
|
.events-table th {
|
|
82
96
|
text-align: left;
|
|
83
97
|
padding: 0.5rem 0.75rem;
|
|
84
98
|
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
85
|
-
color: var(--color-
|
|
86
|
-
border-bottom: 2px solid var(--color-
|
|
99
|
+
color: var(--smrt-color-on-surface-variant);
|
|
100
|
+
border-bottom: 2px solid var(--smrt-color-outline-variant);
|
|
87
101
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
88
102
|
text-transform: uppercase;
|
|
89
103
|
letter-spacing: var(--smrt-typography-label-medium-tracking, 0.05em);
|
|
@@ -91,12 +105,12 @@ function statusClass(status: string): string {
|
|
|
91
105
|
|
|
92
106
|
.events-table td {
|
|
93
107
|
padding: 0.5rem 0.75rem;
|
|
94
|
-
border-bottom: 1px solid var(--color-
|
|
95
|
-
color: var(--color-
|
|
108
|
+
border-bottom: 1px solid var(--smrt-color-outline-variant);
|
|
109
|
+
color: var(--smrt-color-on-surface);
|
|
96
110
|
}
|
|
97
111
|
|
|
98
112
|
.events-table tbody tr:hover {
|
|
99
|
-
background: var(--color-
|
|
113
|
+
background: var(--smrt-color-surface-container);
|
|
100
114
|
}
|
|
101
115
|
|
|
102
116
|
.event-name {
|
|
@@ -108,18 +122,18 @@ function statusClass(status: string): string {
|
|
|
108
122
|
overflow: hidden;
|
|
109
123
|
text-overflow: ellipsis;
|
|
110
124
|
white-space: nowrap;
|
|
111
|
-
color: var(--color-
|
|
125
|
+
color: var(--smrt-color-on-surface-variant);
|
|
112
126
|
}
|
|
113
127
|
|
|
114
128
|
.event-client {
|
|
115
129
|
font-family: var(--smrt-font-family-mono, monospace);
|
|
116
130
|
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
117
|
-
color: var(--color-
|
|
131
|
+
color: var(--smrt-color-on-surface-variant);
|
|
118
132
|
}
|
|
119
133
|
|
|
120
134
|
.event-time {
|
|
121
135
|
white-space: nowrap;
|
|
122
|
-
color: var(--color-
|
|
136
|
+
color: var(--smrt-color-on-surface-variant);
|
|
123
137
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
124
138
|
}
|
|
125
139
|
|
|
@@ -132,30 +146,30 @@ function statusClass(status: string): string {
|
|
|
132
146
|
}
|
|
133
147
|
|
|
134
148
|
.status-sent {
|
|
135
|
-
background: var(--color-success-
|
|
136
|
-
color: var(--color-success-
|
|
149
|
+
background: var(--smrt-color-success-container);
|
|
150
|
+
color: var(--smrt-color-on-success-container);
|
|
137
151
|
}
|
|
138
152
|
|
|
139
153
|
.status-failed {
|
|
140
|
-
background: var(--color-error-
|
|
141
|
-
color: var(--color-error-
|
|
154
|
+
background: var(--smrt-color-error-container);
|
|
155
|
+
color: var(--smrt-color-on-error-container);
|
|
142
156
|
}
|
|
143
157
|
|
|
144
158
|
.status-pending {
|
|
145
|
-
background: var(--color-warning-
|
|
146
|
-
color: var(--color-warning-
|
|
159
|
+
background: var(--smrt-color-warning-container);
|
|
160
|
+
color: var(--smrt-color-on-warning-container);
|
|
147
161
|
}
|
|
148
162
|
|
|
149
163
|
.events-empty {
|
|
150
164
|
text-align: center;
|
|
151
165
|
padding: 2rem;
|
|
152
|
-
color: var(--color-
|
|
166
|
+
color: var(--smrt-color-on-surface-variant);
|
|
153
167
|
}
|
|
154
168
|
|
|
155
169
|
.events-overflow {
|
|
156
170
|
text-align: center;
|
|
157
171
|
padding: 0.5rem;
|
|
158
|
-
color: var(--color-
|
|
172
|
+
color: var(--smrt-color-on-surface-variant);
|
|
159
173
|
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
160
174
|
}
|
|
161
175
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventsTable.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/EventsTable.svelte.ts"],"names":[],"mappings":"AAOA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,KAAK;IACb,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"EventsTable.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/EventsTable.svelte.ts"],"names":[],"mappings":"AAOA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,KAAK;IACb,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA+DD,QAAA,MAAM,WAAW,2CAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -78,8 +78,8 @@ const lastSyncFormatted = $derived.by(() => {
|
|
|
78
78
|
<style>
|
|
79
79
|
.property-info {
|
|
80
80
|
padding: 1rem;
|
|
81
|
-
background: var(--color-surface
|
|
82
|
-
border: 1px solid var(--color-
|
|
81
|
+
background: var(--smrt-color-surface);
|
|
82
|
+
border: 1px solid var(--smrt-color-outline-variant);
|
|
83
83
|
border-radius: 0.5rem;
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -104,7 +104,7 @@ const lastSyncFormatted = $derived.by(() => {
|
|
|
104
104
|
display: flex;
|
|
105
105
|
justify-content: space-between;
|
|
106
106
|
padding: 0.375rem 0;
|
|
107
|
-
border-bottom: 1px solid var(--color-
|
|
107
|
+
border-bottom: 1px solid var(--smrt-color-outline-variant);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.detail-row:last-child {
|
|
@@ -113,27 +113,27 @@ const lastSyncFormatted = $derived.by(() => {
|
|
|
113
113
|
|
|
114
114
|
dt {
|
|
115
115
|
font-size: var(--smrt-typography-label-large-size, 0.8125rem);
|
|
116
|
-
color: var(--color-
|
|
116
|
+
color: var(--smrt-color-on-surface-variant);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
dd {
|
|
120
120
|
margin: 0;
|
|
121
121
|
font-size: var(--smrt-typography-body-medium-size, 0.8125rem);
|
|
122
122
|
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
123
|
-
color: var(--color-
|
|
123
|
+
color: var(--smrt-color-on-surface);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
code {
|
|
127
127
|
font-family: var(--smrt-font-family-mono, monospace);
|
|
128
128
|
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
129
129
|
padding: 0.125rem 0.25rem;
|
|
130
|
-
background: var(--color-
|
|
130
|
+
background: var(--smrt-color-surface-container);
|
|
131
131
|
border-radius: 0.25rem;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.no-property {
|
|
135
135
|
margin: 0;
|
|
136
|
-
color: var(--color-
|
|
136
|
+
color: var(--smrt-color-on-surface-variant);
|
|
137
137
|
font-size: var(--smrt-typography-body-medium-size, 0.875rem);
|
|
138
138
|
}
|
|
139
139
|
</style>
|
|
@@ -15,7 +15,7 @@ const label = $derived(
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<span class="status-badge" class:connected={status === 'active'} class:pending={status === 'pending'} class:disconnected={status === 'inactive'}>
|
|
18
|
-
<span class="status-dot"></span>
|
|
18
|
+
<span class="status-dot" aria-hidden="true"></span>
|
|
19
19
|
{label}
|
|
20
20
|
</span>
|
|
21
21
|
|
|
@@ -37,29 +37,29 @@ const label = $derived(
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.connected {
|
|
40
|
-
background: var(--color-success-
|
|
41
|
-
color: var(--color-success-
|
|
40
|
+
background: var(--smrt-color-success-container);
|
|
41
|
+
color: var(--smrt-color-on-success-container);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.connected .status-dot {
|
|
45
|
-
background: var(--color-success
|
|
45
|
+
background: var(--smrt-color-success);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.pending {
|
|
49
|
-
background: var(--color-warning-
|
|
50
|
-
color: var(--color-warning-
|
|
49
|
+
background: var(--smrt-color-warning-container);
|
|
50
|
+
color: var(--smrt-color-on-warning-container);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.pending .status-dot {
|
|
54
|
-
background: var(--color-warning
|
|
54
|
+
background: var(--smrt-color-warning);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.disconnected {
|
|
58
|
-
background: var(--color-
|
|
59
|
-
color: var(--color-
|
|
58
|
+
background: var(--smrt-color-surface-container);
|
|
59
|
+
color: var(--smrt-color-on-surface-variant);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.disconnected .status-dot {
|
|
63
|
-
background: var(--color-
|
|
63
|
+
background: var(--smrt-color-outline);
|
|
64
64
|
}
|
|
65
65
|
</style>
|
|
@@ -5,7 +5,9 @@ interface Props {
|
|
|
5
5
|
label: string;
|
|
6
6
|
value: number | string;
|
|
7
7
|
trend?: 'up' | 'down' | 'flat';
|
|
8
|
-
|
|
8
|
+
// `null` is a valid value (growth from a zero baseline — TrendBadge shows
|
|
9
|
+
// "new"); only `undefined` suppresses the trend badge.
|
|
10
|
+
trendPercent?: number | null;
|
|
9
11
|
subtitle?: string;
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -28,15 +30,15 @@ const { label, value, trend, trendPercent, subtitle }: Props = $props();
|
|
|
28
30
|
<style>
|
|
29
31
|
.stat-card {
|
|
30
32
|
padding: 1rem;
|
|
31
|
-
background: var(--color-surface
|
|
32
|
-
border: 1px solid var(--color-
|
|
33
|
+
background: var(--smrt-color-surface);
|
|
34
|
+
border: 1px solid var(--smrt-color-outline-variant);
|
|
33
35
|
border-radius: 0.5rem;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
.stat-label {
|
|
37
39
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
38
40
|
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
39
|
-
color: var(--color-
|
|
41
|
+
color: var(--smrt-color-on-surface-variant);
|
|
40
42
|
text-transform: uppercase;
|
|
41
43
|
letter-spacing: var(--smrt-typography-label-medium-tracking, 0.05em);
|
|
42
44
|
margin-bottom: 0.25rem;
|
|
@@ -51,13 +53,13 @@ const { label, value, trend, trendPercent, subtitle }: Props = $props();
|
|
|
51
53
|
.stat-value {
|
|
52
54
|
font-size: var(--smrt-typography-headline-small-size, 1.5rem);
|
|
53
55
|
font-weight: var(--smrt-typography-weight-bold, 700);
|
|
54
|
-
color: var(--color-
|
|
56
|
+
color: var(--smrt-color-on-surface);
|
|
55
57
|
line-height: var(--smrt-typography-headline-small-line-height, 1.2);
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.stat-subtitle {
|
|
59
61
|
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
60
|
-
color: var(--color-
|
|
62
|
+
color: var(--smrt-color-on-surface-variant);
|
|
61
63
|
margin-top: 0.25rem;
|
|
62
64
|
}
|
|
63
65
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatCard.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/StatCard.svelte.ts"],"names":[],"mappings":"AAMA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"StatCard.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/StatCard.svelte.ts"],"names":[],"mappings":"AAMA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAG/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAyBD,QAAA,MAAM,QAAQ,2CAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
interface Props {
|
|
3
3
|
trend: 'up' | 'down' | 'flat';
|
|
4
|
-
|
|
4
|
+
// `null` means growth from a zero baseline \u2014 no finite percentage exists, so
|
|
5
|
+
// the badge shows "new" instead of a misleading 0%.
|
|
6
|
+
percent: number | null;
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
const { trend, percent }: Props = $props();
|
|
@@ -9,11 +11,13 @@ const { trend, percent }: Props = $props();
|
|
|
9
11
|
const arrow = $derived(
|
|
10
12
|
trend === 'up' ? '\u2191' : trend === 'down' ? '\u2193' : '\u2192',
|
|
11
13
|
);
|
|
14
|
+
|
|
15
|
+
const display = $derived(percent === null ? 'new' : `${Math.abs(percent)}%`);
|
|
12
16
|
</script>
|
|
13
17
|
|
|
14
18
|
<span class="trend-badge" class:up={trend === 'up'} class:down={trend === 'down'} class:flat={trend === 'flat'}>
|
|
15
|
-
<span class="trend-arrow">{arrow}</span>
|
|
16
|
-
<span class="trend-percent">{
|
|
19
|
+
<span class="trend-arrow" aria-hidden="true">{arrow}</span>
|
|
20
|
+
<span class="trend-percent">{display}</span>
|
|
17
21
|
</span>
|
|
18
22
|
|
|
19
23
|
<style>
|
|
@@ -29,18 +33,18 @@ const arrow = $derived(
|
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
.trend-badge.up {
|
|
32
|
-
background: var(--color-success-
|
|
33
|
-
color: var(--color-success-
|
|
36
|
+
background: var(--smrt-color-success-container);
|
|
37
|
+
color: var(--smrt-color-on-success-container);
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
.trend-badge.down {
|
|
37
|
-
background: var(--color-error-
|
|
38
|
-
color: var(--color-error-
|
|
41
|
+
background: var(--smrt-color-error-container);
|
|
42
|
+
color: var(--smrt-color-on-error-container);
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
.trend-badge.flat {
|
|
42
|
-
background: var(--color-
|
|
43
|
-
color: var(--color-
|
|
46
|
+
background: var(--smrt-color-surface-container);
|
|
47
|
+
color: var(--smrt-color-on-surface-variant);
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
.trend-arrow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrendBadge.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/TrendBadge.svelte.ts"],"names":[],"mappings":"AAGA,UAAU,KAAK;IACb,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"TrendBadge.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/TrendBadge.svelte.ts"],"names":[],"mappings":"AAGA,UAAU,KAAK;IACb,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAG9B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAsBD,QAAA,MAAM,UAAU,2CAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
package/dist/svelte/i18n.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const M: {
|
|
2
2
|
readonly 'analytics.analytics_summary.empty': "analytics.analytics_summary.empty";
|
|
3
3
|
readonly 'analytics.events_table.empty': "analytics.events_table.empty";
|
|
4
|
+
readonly 'analytics.events_table.caption': "analytics.events_table.caption";
|
|
4
5
|
readonly 'analytics.events_table.showing': "analytics.events_table.showing";
|
|
5
6
|
readonly 'analytics.property_info.title': "analytics.property_info.title";
|
|
6
7
|
readonly 'analytics.property_info.measurement_id': "analytics.property_info.measurement_id";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/svelte/i18n.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/svelte/i18n.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC;;;;;;;;;CAUZ,CAAC"}
|
package/dist/svelte/i18n.js
CHANGED
|
@@ -2,6 +2,7 @@ import { defineMessages } from '@happyvertical/smrt-ui/i18n';
|
|
|
2
2
|
export const M = defineMessages({
|
|
3
3
|
'analytics.analytics_summary.empty': 'No analytics data available yet.',
|
|
4
4
|
'analytics.events_table.empty': 'No recent events.',
|
|
5
|
+
'analytics.events_table.caption': 'Recent analytics events',
|
|
5
6
|
'analytics.events_table.showing': 'Showing {maxRows} of {total} events',
|
|
6
7
|
'analytics.property_info.title': 'Analytics Property',
|
|
7
8
|
'analytics.property_info.measurement_id': 'Measurement ID',
|
package/dist/types/index.d.ts
CHANGED
|
@@ -83,7 +83,12 @@ export interface PropertyStatsWithTrend {
|
|
|
83
83
|
yesterdayPageviews: number;
|
|
84
84
|
yesterdayUsers: number;
|
|
85
85
|
trend: 'up' | 'down' | 'flat';
|
|
86
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Day-over-day percentage change. `null` when today grew from a zero
|
|
88
|
+
* yesterday-baseline (a "new" surge with no finite percentage); the UI
|
|
89
|
+
* renders this as "new" rather than 0%.
|
|
90
|
+
*/
|
|
91
|
+
trendPercent: number | null;
|
|
87
92
|
}
|
|
88
93
|
/**
|
|
89
94
|
* Analytics property/site representation (SDK-compatible)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,GAAG,oBAAoB;IACvB,OAAO,4BAA4B;IACnC,GAAG,wBAAwB;CAC5B;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;CACtC;AAMD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,GAAG,oBAAoB;IACvB,OAAO,4BAA4B;IACnC,GAAG,wBAAwB;CAC5B;AAED;;GAE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AE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACzB,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACzC,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACtD,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAC7D,SAAS,CACP,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5B,KAAK,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,aAAa,CAAC,QAAQ,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,eAAe,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACnD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-analytics",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"description": "Analytics integration models for SMRT framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@happyvertical/smrt-core": "0.32.
|
|
36
|
-
"@happyvertical/smrt-
|
|
37
|
-
"@happyvertical/smrt-
|
|
38
|
-
"@happyvertical/smrt-types": "0.32.
|
|
39
|
-
"@happyvertical/smrt-ui": "0.32.
|
|
35
|
+
"@happyvertical/smrt-core": "0.32.1",
|
|
36
|
+
"@happyvertical/smrt-prompts": "0.32.1",
|
|
37
|
+
"@happyvertical/smrt-tenancy": "0.32.1",
|
|
38
|
+
"@happyvertical/smrt-types": "0.32.1",
|
|
39
|
+
"@happyvertical/smrt-ui": "0.32.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"svelte": "^5.18.0"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"typescript": "^5.9.3",
|
|
57
57
|
"vite": "^7.3.1",
|
|
58
58
|
"vitest": "^4.0.17",
|
|
59
|
-
"@happyvertical/smrt-vitest": "0.32.
|
|
59
|
+
"@happyvertical/smrt-vitest": "0.32.1"
|
|
60
60
|
},
|
|
61
61
|
"keywords": [
|
|
62
62
|
"ai",
|