@protobase/cli 0.99.9 → 0.99.11
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.99.
|
|
3
|
+
"version": "0.99.11",
|
|
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.99.
|
|
47
|
-
"@protobase/layout": "0.99.
|
|
48
|
-
"@protobase/query": "0.99.
|
|
49
|
-
"@protobase/schema": "0.99.
|
|
50
|
-
"@protobase/server": "0.99.
|
|
51
|
-
"@protobase/ui": "0.99.
|
|
52
|
-
"@protobase/workflows": "0.99.
|
|
46
|
+
"@protobase/config": "0.99.11",
|
|
47
|
+
"@protobase/layout": "0.99.11",
|
|
48
|
+
"@protobase/query": "0.99.11",
|
|
49
|
+
"@protobase/schema": "0.99.11",
|
|
50
|
+
"@protobase/server": "0.99.11",
|
|
51
|
+
"@protobase/ui": "0.99.11",
|
|
52
|
+
"@protobase/workflows": "0.99.11",
|
|
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",
|
|
@@ -21,7 +21,7 @@ Pages of your own, built from blocks in a JSX layout.
|
|
|
21
21
|
- [Related records](../reference/layouts.md#related-records) (beta): Layouts repeat over a record's related records, the records a JSON list of keys points at and the items of a JSON list with `ReferenceManyField`, `ReferenceArrayField`, `ArrayField`, `RecordsIterator` and `ReferenceField`, nested as deep as needed, and a table draws such a list.
|
|
22
22
|
- [Read plans](../reference/layouts.md#how-a-page-reads-its-data) (beta): The build plans one read per data block ahead of time, derives the fields each read needs, and checks every nested read's indexes. Every read of a page's records, card rows, counts and related lists starts at once when it opens, and a data block's [text form](../reference/layouts.md#a-pages-text-with-its-records) lists its records; tables, threads, charts and custom components that fetch their own data still load on their own.
|
|
23
23
|
- [Table columns on a phone](../reference/blocks.md#columns-on-a-phone): Table blocks choose which columns show at mobile width by priority, with a sensible default, and fall back to a Markdown table.
|
|
24
|
-
- [Row buttons](../reference/blocks.md#row-buttons) (experimental): A table's rows carry a button labelled by a field of the row, such as its next step; the row decides where it goes: a record tab a field names, a list with a filter built from its fields, or an outside https link a field holds. On mobile width the button sits under the row's first cell.
|
|
24
|
+
- [Row buttons](../reference/blocks.md#row-buttons) (experimental): A table's rows carry a button labelled by a field of the row, such as its next step; the row decides where it goes: a record tab a field names, a list with a filter built from its fields, a list whose resource and filter its fields hold, or an outside https link a field holds. On mobile width the button sits under the row's first cell.
|
|
25
25
|
- [Record rows](../reference/blocks.md#recordrow): A sideways row of cards for a filter, favorites or saved searches, with a count and new-record marks.
|
|
26
26
|
- [Record cards](../reference/blocks.md#recordcards): Full-width cards with fields and buttons, stacked or in a carousel.
|
|
27
27
|
- [Diff block](../reference/blocks.md#diff) (beta): A `Diff` block shows a unified patch the record holds, side by side on wide screens and in one column on a phone; it shows stored patches and does not compute them.
|
|
@@ -286,6 +286,7 @@ Each row can decide where its button goes:
|
|
|
286
286
|
|
|
287
287
|
- **A record's tab from a field**: `tab: '{{tab}}'` opens the tab the row's `tab` field names; a name the record page has no tab for opens its first tab.
|
|
288
288
|
- **A filtered list**: `{ kind: 'list', resource: 'holds', filter: 'task_id = {{task_id}} AND state = "{{state}}"' }` opens the list with a filter built from the row. A text value goes in quotes, on its own, escaped so a title with quotes in it stays one value; a `{{field}}` inside a longer quoted value, such as `'re {{verb}}'`, is refused when the config loads; a value outside quotes must be a number or `true`/`false`, and a row with any other value there shows no button. The filter's fields must be filterable, as in any address.
|
|
289
|
+
- **A list the row holds**: `{ kind: 'list', resource: '{{lever_resource}}', filter: '{{lever_filter}}' }` opens the list whose resource and whole filter, such as `status = "parked" AND repo = "web"`, the row's fields hold; a fixed resource takes a filter from the row the same way. The filter is checked as each row draws its button, against the resource as `/meta` gives it to the caller, and a row whose filter does not parse, names a field that resource lacks or names one the caller cannot filter shows no button. The list still applies its own access rules when it opens. Beside a resource from the row, the filter is that one field or none, and the address takes no order.
|
|
289
290
|
- **An outside page**: `{ label: 'Error report', href: '{{report_url}}' }` opens the page the row's `report_url` field holds, in a new tab without the referrer, and the button carries the outside-link mark, which screen readers hear as "opens in a new tab". The `href` is one field, never a URL put together from parts, and a row whose field holds no `https:` URL shows no button.
|
|
290
291
|
- **A different kind per row**: `button` takes a list of these, and each row shows the first whose fields it holds, so one list can hold items that each need a different act. A row whose first such choice leads nowhere, such as an `href` field without an `https:` URL, shows no button rather than the next choice. A caller who cannot read a choice's fields or follow its address gets the list without it.
|
|
291
292
|
|
|
@@ -444,10 +445,10 @@ A bar for `value` out of `max`, with both numbers. It turns amber from 90%.
|
|
|
444
445
|
### Diff
|
|
445
446
|
|
|
446
447
|
:::caution[Beta]
|
|
447
|
-
`Diff` may still change.
|
|
448
|
+
`Diff` may still change. It shows a patch the record already holds, and does not compare two versions itself.
|
|
448
449
|
:::
|
|
449
450
|
|
|
450
|
-
A unified patch the record holds in a text field, as `diff -u` and `git diff` write it: each file under its name with the counts of added and removed lines, then its changes, numbered by the patch's `@@` lines. From the `md` breakpoint (768px) up, the old lines stand on the left and the new ones beside them; below it, both run in one column. Text that is not a unified patch shows as it is, in a code font, and text before the first file, such as a mailed patch's message, is left out.
|
|
451
|
+
A unified patch the record holds in a text field, as `diff -u` and `git diff` write it: each file under its name, a name git quotes read as the name it stands for, with the counts of added and removed lines, then its changes, numbered by the patch's `@@` lines. From the `md` breakpoint (768px) up, the old lines stand on the left and the new ones beside them; below it, both run in one column. Text that is not a unified patch shows as it is, in a code font, and text before the first file, such as a mailed patch's message, is left out.
|
|
451
452
|
|
|
452
453
|
| Prop | |
|
|
453
454
|
| --- | --- |
|
|
@@ -464,6 +465,8 @@ In the [text form](layouts.md#text-form) it reads as the patch in a fenced `diff
|
|
|
464
465
|
|
|
465
466
|
<gap>A Diff block cannot compare two versions of a field because computing a diff is not implemented; it shows a patch the record already holds.</gap>
|
|
466
467
|
|
|
468
|
+
<gap>A Diff block cannot show a renamed file's old name because a second name in the diff view's heading is not implemented; it shows the new name.</gap>
|
|
469
|
+
|
|
467
470
|
### Image
|
|
468
471
|
|
|
469
472
|
A fixed picture at `src`, or one an [API function](../guides/api-functions.md) draws.
|