@valbuild/react 0.148.1 → 0.148.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/analytics/dist/valbuild-react-analytics.browser.esm.js +950 -0
  3. package/analytics/dist/valbuild-react-analytics.cjs.d.ts +2 -0
  4. package/analytics/dist/valbuild-react-analytics.cjs.dev.js +962 -0
  5. package/analytics/dist/valbuild-react-analytics.cjs.js +7 -0
  6. package/analytics/dist/valbuild-react-analytics.cjs.prod.js +962 -0
  7. package/analytics/dist/valbuild-react-analytics.esm.js +953 -0
  8. package/analytics/dist/valbuild-react-analytics.worker.esm.js +232 -0
  9. package/analytics/package.json +7 -0
  10. package/dist/createForOfIteratorHelper-69c4a419.esm.js +52 -0
  11. package/dist/createForOfIteratorHelper-6f9dc6fa.cjs.prod.js +54 -0
  12. package/dist/createForOfIteratorHelper-73fe9a1a.worker.esm.js +52 -0
  13. package/dist/createForOfIteratorHelper-8a871dc3.cjs.dev.js +54 -0
  14. package/dist/createForOfIteratorHelper-c0be3691.browser.esm.js +52 -0
  15. package/dist/declarations/src/analytics/beacon.d.ts +80 -0
  16. package/dist/declarations/src/analytics/index.d.ts +3 -0
  17. package/dist/declarations/src/analytics/splitValPaths.d.ts +12 -0
  18. package/dist/declarations/src/analytics/tracker.d.ts +64 -0
  19. package/dist/{raw-1fce8756.cjs.dev.js → raw-c2b82a01.cjs.dev.js} +26 -74
  20. package/dist/{raw-26e85a34.esm.js → raw-cd78aea7.browser.esm.js} +11 -58
  21. package/dist/{raw-55a21edc.worker.esm.js → raw-d156d004.worker.esm.js} +11 -58
  22. package/dist/{raw-be2fd916.browser.esm.js → raw-d43ba7b8.esm.js} +11 -58
  23. package/dist/{raw-68a490e6.cjs.prod.js → raw-de29c973.cjs.prod.js} +26 -74
  24. package/dist/{slicedToArray-e9e8e991.cjs.dev.js → slicedToArray-387314c6.cjs.dev.js} +0 -11
  25. package/dist/{slicedToArray-0c0a3b4a.esm.js → slicedToArray-3d4c6640.esm.js} +1 -11
  26. package/dist/{slicedToArray-86004d59.cjs.prod.js → slicedToArray-64c83d56.cjs.prod.js} +0 -11
  27. package/dist/{slicedToArray-7d0170b6.worker.esm.js → slicedToArray-8b1a55e5.worker.esm.js} +1 -11
  28. package/dist/{slicedToArray-9cce0d9f.browser.esm.js → slicedToArray-8f9b0d84.browser.esm.js} +1 -11
  29. package/dist/toConsumableArray-203e636a.cjs.prod.js +21 -0
  30. package/dist/toConsumableArray-5335b4b0.worker.esm.js +19 -0
  31. package/dist/toConsumableArray-991f680f.browser.esm.js +19 -0
  32. package/dist/toConsumableArray-c950e394.esm.js +19 -0
  33. package/dist/toConsumableArray-d7cf1601.cjs.dev.js +21 -0
  34. package/dist/typeof-16428c61.cjs.prod.js +13 -0
  35. package/dist/typeof-9915e135.browser.esm.js +11 -0
  36. package/dist/typeof-a1531d8f.esm.js +11 -0
  37. package/dist/typeof-b568f48f.cjs.dev.js +13 -0
  38. package/dist/typeof-e0c837cc.worker.esm.js +11 -0
  39. package/internal/dist/valbuild-react-internal.browser.esm.js +5 -18
  40. package/internal/dist/valbuild-react-internal.cjs.dev.js +6 -19
  41. package/internal/dist/valbuild-react-internal.cjs.prod.js +6 -19
  42. package/internal/dist/valbuild-react-internal.esm.js +5 -18
  43. package/internal/dist/valbuild-react-internal.worker.esm.js +5 -18
  44. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +2 -1
  45. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +3 -2
  46. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +3 -2
  47. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +2 -1
  48. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +2 -1
  49. package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +2 -1
  50. package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +3 -2
  51. package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +3 -2
  52. package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +2 -1
  53. package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +2 -1
  54. package/package.json +16 -6
  55. package/stega/dist/valbuild-react-stega.browser.esm.js +8 -6
  56. package/stega/dist/valbuild-react-stega.cjs.dev.js +11 -9
  57. package/stega/dist/valbuild-react-stega.cjs.prod.js +11 -9
  58. package/stega/dist/valbuild-react-stega.esm.js +8 -6
  59. package/stega/dist/valbuild-react-stega.worker.esm.js +8 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @valbuild/react
2
2
 
3
+ ## 0.148.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#881](https://github.com/valbuild/val/pull/881) [`0139436`](https://github.com/valbuild/val/commit/0139436426142d91cbb29ec6c696dfb86f34ab9d) Thanks [@freekh](https://github.com/freekh)! - The content analytics script. With analytics on (it is off by default, and turned on in a hosted project's settings), a TanStack site counts which content each visitor's page **rendered** and which they actually **viewed** (at least half on screen for a second), and sends it to `/api/val/analytics`.
8
+
9
+ - No cookies, no storage, no visitor IDs. Each page view also says where it came from (the referring site's host and any `utm_source` / `utm_medium` / `utm_campaign`) and whether it was a phone, tablet or desktop.
10
+ - A page is sent as its route's pattern (`/posts/$postId`), never its address, so a path that holds something about one visitor (an order number, a token) is never stored. `startValAnalytics` takes this as `routeFor`; `ValProvider` passes TanStack's matched route.
11
+ - Editors are never counted: nothing is sent in draft mode, in the Studio, with Val enabled, or at a proposal's address, and nothing from automated browsers. A page the browser prerenders counts nothing until it is shown.
12
+ - The script is the new `@valbuild/react/analytics` entry, loaded only for visitors of a site with analytics on, after the page has hydrated. It imports nothing else from Val.
13
+ - Storing the counts and showing them is part of Val's hosting, which takes these beacons before they reach the site. Anywhere else, `/api/val/analytics` checks each beacon and stores nothing; in local development, with `VAL_DEBUG=1`, it logs a line per beacon, so you can see it working.
14
+ - `ValProvider`'s Studio check now matches `/val` and what is below it only, not every route starting with those letters (`/values`). The same fix is in `@valbuild/next`.
15
+
16
+ - Updated dependencies [[`0139436`](https://github.com/valbuild/val/commit/0139436426142d91cbb29ec6c696dfb86f34ab9d), [`5eff8a0`](https://github.com/valbuild/val/commit/5eff8a055a4ef50d476797c28f9c3e50deb73c89)]:
17
+ - @valbuild/shared@0.148.3
18
+ - @valbuild/ui@0.148.3
19
+
20
+ ## 0.148.2
21
+
22
+ ### Patch Changes
23
+
24
+ - [#889](https://github.com/valbuild/val/pull/889) [`dc7c8cc`](https://github.com/valbuild/val/commit/dc7c8ccd82f643e662d00225fabec411b5d39e3a) Thanks [@freekh](https://github.com/freekh)! - Val is quieter in your app's console. Errors and warnings you can act on still
25
+ print, now prefixed with `[val]` so you can filter them. Val's own debug
26
+ output, which used to reach your terminal and browser console, is now off by
27
+ default. That includes the `Invalid JWT` line that printed on every request
28
+ with an expired session cookie, the "verifying draft mode" and polling notices,
29
+ and the Studio's sync and WebSocket chatter.
30
+
31
+ To turn the debug output back on, for example when reporting a bug:
32
+
33
+ - on the server, set `VAL_DEBUG=1`
34
+ - in the browser, run `localStorage.setItem("val:debug", "1")` in the console.
35
+ It takes effect immediately, with no reload. Remove the key to turn it off
36
+ again.
37
+
38
+ - Updated dependencies [[`dc7c8cc`](https://github.com/valbuild/val/commit/dc7c8ccd82f643e662d00225fabec411b5d39e3a)]:
39
+ - @valbuild/core@0.148.2
40
+ - @valbuild/shared@0.148.2
41
+ - @valbuild/ui@0.148.2
42
+
3
43
  ## 0.148.1
4
44
 
5
45
  ### Patch Changes