@protobase/cli 0.94.30 → 0.94.32
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/cli/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.94.
|
|
3
|
+
"version": "0.94.32",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@better-auth/core": "^1.7.12",
|
|
45
45
|
"@hono/node-server": "^2.1.3",
|
|
46
|
-
"@protobase/config": "0.94.
|
|
47
|
-
"@protobase/layout": "0.94.
|
|
48
|
-
"@protobase/query": "0.94.
|
|
49
|
-
"@protobase/schema": "0.94.
|
|
50
|
-
"@protobase/server": "0.94.
|
|
51
|
-
"@protobase/ui": "0.94.
|
|
52
|
-
"@protobase/workflows": "0.94.
|
|
46
|
+
"@protobase/config": "0.94.32",
|
|
47
|
+
"@protobase/layout": "0.94.32",
|
|
48
|
+
"@protobase/query": "0.94.32",
|
|
49
|
+
"@protobase/schema": "0.94.32",
|
|
50
|
+
"@protobase/server": "0.94.32",
|
|
51
|
+
"@protobase/ui": "0.94.32",
|
|
52
|
+
"@protobase/workflows": "0.94.32",
|
|
53
53
|
"@react-email/render": "^2.1.0",
|
|
54
54
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
55
55
|
"@sentry/vite-plugin": "^11.10.0",
|
|
@@ -206,6 +206,7 @@ Such files download as attachments. A [viewer](#viewers) opens them in the admin
|
|
|
206
206
|
- **Public files** are served to anyone at a permanent address, `/api/files/public/<path>`, cached for a year. `publicUrl` links them from elsewhere instead, such as a CDN in front of that route.
|
|
207
207
|
- Every download is `nosniff` with `Content-Security-Policy: sandbox; default-src 'none'`. Raster images, PDF, audio and video are `inline`; everything else, SVG included, is an attachment. A private file is named as its uploader named it, with the extension matched to the type (`photo.png` holding a JPEG downloads as `photo.jpg`); a public file by its stored path. `Range` requests work.
|
|
208
208
|
- A provider in a bucket answers with a redirect to the bucket instead, after the same checks, see [S3-compatible buckets](#s3-compatible-buckets).
|
|
209
|
+
- With `?via=app` the app serves the bytes itself after the same checks, from a bucket too, so a page can read them with `fetch` without the bucket sending CORS headers. A viewer's `useFileText` reads this way, and reads a public file linked at a `publicUrl` from `/api/files/<provider>/<path>`. Such a read takes files up to 10 MB and answers a larger one with `403`.
|
|
209
210
|
|
|
210
211
|
## Viewers
|
|
211
212
|
|
|
@@ -203,7 +203,7 @@ export default definePlugin({ fileViewers: { 'application/vnd.example.report+jso
|
|
|
203
203
|
| `file` | The file: `name`, `type`, `size`, `url`, the link that downloads it, and `uri`, its stored value. |
|
|
204
204
|
| `siblings` | The other files of its record and of the records that point at the same records, see [Viewers](files.md#viewers). `fileNamed(siblings, 'shots/before.png')` finds one by the last segment of a relative reference, and gives none for an absolute address. |
|
|
205
205
|
|
|
206
|
-
`useFileText(file)` reads the file's text once, as a TanStack Query result kept while the file stays the same. The viewer draws on the page below the file's bar, which scrolls as the page does. The file's link is a download link served with a sandboxing CSP, so a viewer reads the file and draws it itself rather than framing it.
|
|
206
|
+
`useFileText(file)` reads the file's text once, as a TanStack Query result kept while the file stays the same. It reads through the API that serves the record, whatever store holds the file and wherever its link points, up to 10 MB. The viewer draws on the page below the file's bar, which scrolls as the page does. The file's link is a download link served with a sandboxing CSP, so a viewer reads the file and draws it itself rather than framing it.
|
|
207
207
|
|
|
208
208
|
## Building
|
|
209
209
|
|