@valbuild/server 0.150.14 → 0.150.17
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/CHANGELOG.md +37 -0
- package/browser/dist/valbuild-server-browser.cjs.dev.js +1 -1
- package/browser/dist/valbuild-server-browser.cjs.prod.js +1 -1
- package/browser/dist/valbuild-server-browser.esm.js +1 -1
- package/dist/{ValRouterCore-83973a50.cjs.prod.js → ValRouterCore-6cae8ef3.cjs.prod.js} +601 -7
- package/dist/{ValRouterCore-c4b07665.cjs.dev.js → ValRouterCore-71b88a4c.cjs.dev.js} +601 -7
- package/dist/{ValRouterCore-26bf9ed9.esm.js → ValRouterCore-8ec75007.esm.js} +596 -9
- package/dist/declarations/src/ValOps.d.ts +6 -0
- package/dist/declarations/src/ValOpsFS.d.ts +3 -0
- package/dist/declarations/src/ValOpsHttp.d.ts +3 -0
- package/dist/declarations/src/ValOpsMemory.d.ts +3 -0
- package/dist/declarations/src/ValRouter.d.ts +12 -0
- package/dist/declarations/src/ValServer.d.ts +7 -0
- package/dist/declarations/src/sketchpads/SketchpadStore.d.ts +76 -0
- package/dist/declarations/src/valServerConfig.d.ts +5 -4
- package/dist/{getJsonEntryAtCommit-64632fba.cjs.prod.js → getJsonEntryAtCommit-4649bb37.cjs.prod.js} +1 -1
- package/dist/{getJsonEntryAtCommit-7d550e7f.cjs.dev.js → getJsonEntryAtCommit-54478fa6.cjs.dev.js} +1 -1
- package/dist/{getJsonEntryAtCommit-28be5ffd.esm.js → getJsonEntryAtCommit-a5932dc3.esm.js} +1 -1
- package/dist/valbuild-server.cjs.dev.js +234 -7
- package/dist/valbuild-server.cjs.prod.js +234 -7
- package/dist/valbuild-server.esm.js +236 -9
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @valbuild/server
|
|
2
2
|
|
|
3
|
+
## 0.150.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#992](https://github.com/valbuild/val/pull/992) [`ea3bf9b`](https://github.com/valbuild/val/commit/ea3bf9bbacd22bbb5485fd798d6b3a2d5916be81) Thanks [@freekh](https://github.com/freekh)! - Content analytics now counts on self-hosted sites (Custom hosting), not only on sites Val hosts.
|
|
8
|
+
|
|
9
|
+
A self-hosted app's own Val server now hands each analytics beacon on to Val's ingest, which counts it. To turn it on:
|
|
10
|
+
|
|
11
|
+
- Run the app with Val's content service: `VAL_API_KEY`, `VAL_SECRET` and `VAL_PROJECT` set. Most deployed apps already do.
|
|
12
|
+
- Set `VAL_ANALYTICS=true`. In TanStack Start, read it in your layout's loader (`{ enabled: process.env.VAL_ANALYTICS === "true" }`) and pass the result to `<ValProvider analytics>`. A self-hosted site has no platform to pass it for you.
|
|
13
|
+
- Switch analytics on for the project in Val's admin. While it is off there, the script on your pages is told so and stops sending.
|
|
14
|
+
|
|
15
|
+
The server forwards only same-origin beacons from a browser. It passes on the visitor's User-Agent and, where your host provides one (Vercel, Cloudflare or CloudFront), their country. It never passes on their IP address. If the api key is not accepted, the server logs one warning naming `VAL_API_KEY` and `VAL_PROJECT`. Local development (fs mode) works as before and counts nothing.
|
|
16
|
+
|
|
17
|
+
`VAL_ANALYTICS_INGEST_URL` overrides where beacons are sent. You will normally not need it.
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`ea3bf9b`](https://github.com/valbuild/val/commit/ea3bf9bbacd22bbb5485fd798d6b3a2d5916be81)]:
|
|
20
|
+
- @valbuild/shared@0.150.17
|
|
21
|
+
- @valbuild/ui@0.150.16
|
|
22
|
+
|
|
23
|
+
## 0.150.16
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#969](https://github.com/valbuild/val/pull/969) [`7db39ef`](https://github.com/valbuild/val/commit/7db39ef722b4f743e6974effd5fedfadc76e6544) Thanks [@freekh](https://github.com/freekh)! - **Sketchpad**: work out a page's content and rough layout with the assistant before anyone builds it.
|
|
28
|
+
|
|
29
|
+
A sketchpad is a document of headings, text, boxes and columns, where you edit the text in place. A box can show an image or a video from a link: paste one, or drag an image in from a web page. The assistant sees the same sketch as text in one strict format, so what it reads is what is on screen. It has tools to list, create, read and write sketchpads, and **Send to AI** asks it to read the one you are on.
|
|
30
|
+
|
|
31
|
+
- Sketchpads live on the server, apart from any chat or page. They outlast the chat they started in, and the page a sketchpad is about can be changed. A sketchpad can be archived and reopened.
|
|
32
|
+
- Open one from a page's menu (**Sketch changes**), from the top bar, or when the assistant offers one.
|
|
33
|
+
- On a desktop the page, the sketchpad and the chat sit side by side, the chat docked beside them. On a phone a sketchpad can go full screen, with the page one tap away and the buttons at the bottom.
|
|
34
|
+
- In local development sketchpads are stored in `.val/sketchpads/`. A hosted project needs the content host's sketchpad API; without it the Studio does not offer sketchpads.
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [[`c0abcde`](https://github.com/valbuild/val/commit/c0abcde887fa61edb2dd542b9cfd707237a74daf), [`3ac24d4`](https://github.com/valbuild/val/commit/3ac24d46691c646dd5d2789cf2e1d6e2734195d3), [`7db39ef`](https://github.com/valbuild/val/commit/7db39ef722b4f743e6974effd5fedfadc76e6544)]:
|
|
37
|
+
- @valbuild/ui@0.150.16
|
|
38
|
+
- @valbuild/shared@0.150.16
|
|
39
|
+
|
|
3
40
|
## 0.150.14
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var core = require('@valbuild/core');
|
|
6
|
-
var ValRouterCore = require('../../dist/ValRouterCore-
|
|
6
|
+
var ValRouterCore = require('../../dist/ValRouterCore-71b88a4c.cjs.dev.js');
|
|
7
7
|
require('@valbuild/shared/internal');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('zod-validation-error');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var core = require('@valbuild/core');
|
|
6
|
-
var ValRouterCore = require('../../dist/ValRouterCore-
|
|
6
|
+
var ValRouterCore = require('../../dist/ValRouterCore-6cae8ef3.cjs.prod.js');
|
|
7
7
|
require('@valbuild/shared/internal');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('zod-validation-error');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_CONTENT_HOST } from '@valbuild/core';
|
|
2
|
-
import {
|
|
2
|
+
import { o as ValOpsMemory, M as bytesToBase64, F as ValServer, G as createValRequestHandler } from '../../dist/ValRouterCore-8ec75007.esm.js';
|
|
3
3
|
import '@valbuild/shared/internal';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'zod-validation-error';
|