uniweb 1.25.2 → 1.25.3
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/package.json +5 -5
- package/partials/agents.md +16 -7
- package/src/backend/service-request.js +12 -2
- package/src/framework-index.json +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.3",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"js-yaml": "^4.3.2",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.5.21",
|
|
44
|
-
"@uniweb/schemas": "~1.6.7",
|
|
45
44
|
"@uniweb/content-writer": "~1.3.1",
|
|
46
|
-
"@uniweb/
|
|
47
|
-
"@uniweb/core": "~1.6.
|
|
45
|
+
"@uniweb/schemas": "~1.6.7",
|
|
46
|
+
"@uniweb/core": "~1.6.1",
|
|
47
|
+
"@uniweb/semantic-parser": "~1.13.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@uniweb/semantic-parser": "~1.13.2",
|
|
51
51
|
"@uniweb/content-reader": "~1.5.8",
|
|
52
|
-
"@uniweb/build": "~1.14.
|
|
52
|
+
"@uniweb/build": "~1.14.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -2321,6 +2321,10 @@ A site may also name a vendor's own script under `services.tracking.scripts`, wh
|
|
|
2321
2321
|
runtime loads once, after consent when a gate is declared, and never in a frame
|
|
2322
2322
|
or during prerender. That is a **separate path with no connection to the stream
|
|
2323
2323
|
below** — the vendor measures its own way, and nothing you `track()` reaches it.
|
|
2324
|
+
An entry is a URL and nothing else, so a vendor whose install also runs inline
|
|
2325
|
+
lines does not work this way: Google Analytics and Google Tag Manager both do. On a
|
|
2326
|
+
site you publish, an entry with no endpoint also asks the host for its collector;
|
|
2327
|
+
`enabled: false` beside `scripts` loads the script alone.
|
|
2324
2328
|
|
|
2325
2329
|
**Some events you get for free.** These are reported for you, with no call from
|
|
2326
2330
|
your foundation and regardless of how it renders:
|
|
@@ -2330,9 +2334,12 @@ your foundation and regardless of how it renders:
|
|
|
2330
2334
|
| `page_view` | every route change, including the first |
|
|
2331
2335
|
| `outbound_click` | a visitor follows a link off the site — the destination **host** only, never the full URL |
|
|
2332
2336
|
| `section_view` | a section first becomes half-visible, on pages that ask for it (`trackSections`, below) |
|
|
2337
|
+
| `conversion` | a phone or email tap (`name: phone`, `email`), and a link or page the site lists in `services.tracking.conversions`; also a form accepted by a provider of the site's own through `useFormSubmit`, and a sign-up through `@uniweb/api` |
|
|
2338
|
+
| `engagement` | a sign-in through `@uniweb/api` (`name: sign_in`) |
|
|
2333
2339
|
|
|
2334
|
-
⛔ **So don't write your own link-click or scroll-into-view listener for these
|
|
2335
|
-
|
|
2340
|
+
⛔ **So don't write your own link-click or scroll-into-view listener for these,**
|
|
2341
|
+
and don't report a sign-up, a sign-in or an accepted form that goes through kit or
|
|
2342
|
+
`@uniweb/api`. A second report double-counts against a collector that already has them.
|
|
2336
2343
|
|
|
2337
2344
|
Everything else is yours to report:
|
|
2338
2345
|
|
|
@@ -2351,11 +2358,13 @@ const { track } = useTracker()
|
|
|
2351
2358
|
<button onClick={() => track('brochure_download', { file: 'specs.pdf' })}>…</button>
|
|
2352
2359
|
```
|
|
2353
2360
|
|
|
2354
|
-
The event name is yours — there is no list of permitted names.
|
|
2355
|
-
in use, so reach for these rather than inventing a synonym: the
|
|
2356
|
-
|
|
2357
|
-
**`video_milestone`**, which kit's `<Media>` reports for any
|
|
2358
|
-
through it, and **`read_depth`** from `useReadingDepth()` below.
|
|
2361
|
+
The event name is yours — there is no list of permitted names. Seven are already
|
|
2362
|
+
in use, so reach for these rather than inventing a synonym: the automatic ones
|
|
2363
|
+
above — **`page_view`**, **`outbound_click`**, **`section_view`**, **`conversion`**,
|
|
2364
|
+
**`engagement`** — plus **`video_milestone`**, which kit's `<Media>` reports for any
|
|
2365
|
+
video you render through it, and **`read_depth`** from `useReadingDepth()` below.
|
|
2366
|
+
What your foundation alone can see that a site counts is
|
|
2367
|
+
`block.track('conversion', { name: 'quote_requested' })`, with a short name. Put the
|
|
2359
2368
|
varying part in a **field**, never in the name — four names for one event turn a
|
|
2360
2369
|
collector's event dimension into a cardinality problem.
|
|
2361
2370
|
|
|
@@ -183,9 +183,19 @@ export function serviceNotes({ siteYml, supports = null, warn = () => {} }) {
|
|
|
183
183
|
// past that entry, is wrong: `search: yes` was "site.yml turns on `search`" (F14).
|
|
184
184
|
if (unreadableServices(siteYml?.services).length) return []
|
|
185
185
|
const asks = readServicesRequest(siteYml?.services, { warn }) || []
|
|
186
|
-
if (!Array.isArray(supports)) return []
|
|
187
186
|
const notes = []
|
|
188
|
-
|
|
187
|
+
// A site's own list replaces what its host states, key by key (`readServiceOptions`), and
|
|
188
|
+
// `services.google` reaches the page as the host's list.
|
|
189
|
+
if (siteYml?.services?.google && siteYml?.services?.tracking?.scripts) {
|
|
190
|
+
notes.push(
|
|
191
|
+
'`services.tracking.scripts` replaces the script your host loads for `services.google`, ' +
|
|
192
|
+
"so Google's tag will not load. Keep one of them."
|
|
193
|
+
)
|
|
194
|
+
}
|
|
195
|
+
if (!Array.isArray(supports)) return notes
|
|
196
|
+
// None of these is something a foundation renders: `google` and `tracking` load or report
|
|
197
|
+
// whatever the foundation is, and `records` is invisible to it.
|
|
198
|
+
const ignored = new Set(['tracking', 'records', 'google'])
|
|
189
199
|
const has = (ask) => ask.enabled !== false || typeof ask.config?.endpoint === 'string'
|
|
190
200
|
const unrendered = asks.filter((a) => has(a) && !ignored.has(a.name) && !supports.includes(a.name)).map((a) => a.name)
|
|
191
201
|
if (unrendered.length) {
|
package/src/framework-index.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-02T04:09:19.127Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/api": {
|
|
6
|
-
"version": "1.6.
|
|
6
|
+
"version": "1.6.9"
|
|
7
7
|
},
|
|
8
8
|
"@uniweb/build": {
|
|
9
|
-
"version": "1.14.
|
|
9
|
+
"version": "1.14.1"
|
|
10
10
|
},
|
|
11
11
|
"@uniweb/content-reader": {
|
|
12
12
|
"version": "1.5.8"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"version": "1.3.1"
|
|
16
16
|
},
|
|
17
17
|
"@uniweb/core": {
|
|
18
|
-
"version": "1.6.
|
|
18
|
+
"version": "1.6.1"
|
|
19
19
|
},
|
|
20
20
|
"@uniweb/frame-bridge": {
|
|
21
21
|
"version": "1.0.3"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"version": "1.0.8"
|
|
25
25
|
},
|
|
26
26
|
"@uniweb/kit": {
|
|
27
|
-
"version": "1.7.
|
|
27
|
+
"version": "1.7.1"
|
|
28
28
|
},
|
|
29
29
|
"@uniweb/loom": {
|
|
30
30
|
"version": "1.1.2"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"version": "1.2.10"
|
|
37
37
|
},
|
|
38
38
|
"@uniweb/runtime": {
|
|
39
|
-
"version": "1.3.
|
|
39
|
+
"version": "1.3.10"
|
|
40
40
|
},
|
|
41
41
|
"@uniweb/scene": {
|
|
42
42
|
"version": "1.0.1"
|