@protobase/cli 0.94.38 → 0.94.40

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.94.38";
2
+ var version = "0.94.40";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.94.38",
3
+ "version": "0.94.40",
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.38",
47
- "@protobase/layout": "0.94.38",
48
- "@protobase/query": "0.94.38",
49
- "@protobase/schema": "0.94.38",
50
- "@protobase/server": "0.94.38",
51
- "@protobase/ui": "0.94.38",
52
- "@protobase/workflows": "0.94.38",
46
+ "@protobase/config": "0.94.40",
47
+ "@protobase/layout": "0.94.40",
48
+ "@protobase/query": "0.94.40",
49
+ "@protobase/schema": "0.94.40",
50
+ "@protobase/server": "0.94.40",
51
+ "@protobase/ui": "0.94.40",
52
+ "@protobase/workflows": "0.94.40",
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",
@@ -14,7 +14,7 @@ Pages of your own, built from blocks in a JSX layout.
14
14
  - [Tailwind classes](../reference/layouts.md#tailwind-classes) (experimental): Layouts can carry Tailwind classes, on plain elements and on blocks, for pages too custom for blocks.
15
15
  - [Full-width pages](../reference/blocks.md#page): A page fills the whole area beside the sidebar instead of a centred column, for a dashboard with many blocks.
16
16
  - [Data blocks](../reference/blocks.md#data): Counts, tables, single records, rows of cards, field values and progress bars.
17
- - [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.
17
+ - [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.
18
18
  - [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.
19
19
  - [Record cards](../reference/blocks.md#recordcards): Full-width cards with fields and buttons, stacked or in a carousel.
20
20
  - [Image block](../reference/blocks.md#image): A picture one of the app's API functions draws for the reader, such as a system map, at the size and theme the client asks, refreshed on a timer; a client that draws no images shows its alt text, or nothing.
@@ -241,10 +241,10 @@ The first records of a list, drawn the way the resource's list page draws them:
241
241
  #### Row buttons
242
242
 
243
243
  :::caution[Experimental]
244
- Row buttons may change in any release. They do not show when a table switches to a list display such as cards, and on a mobile screen they sit at the end of the row, out of view until the table scrolls sideways.
244
+ Row buttons may change in any release. They do not show when a table switches to a list display such as cards.
245
245
  :::
246
246
 
247
- `button: { label, to }` adds a last column with a button on each row: a link, drawn as a button, to `to`, an [address](layouts.md#addresses) in the app, such as a record on one of its [tabs](ui-config.md#tabs). `{field}` in the address or the label is replaced by the row's value, the label's as the record page shows it (an enum value by its label), so each row can name its own next step. A row with no value for a field the button names shows no button. The button is checked when the config loads, and `/meta` gives it, on the block or the related section, to callers who can read the fields it names and follow its address, and leaves it out for the others. A [related section](ui-config.md#related-records) takes the same `button`, on its table's rows or its cards.
247
+ `button: { label, to }` adds a last column with a button on each row: a link, drawn as a button, to `to`, an [address](layouts.md#addresses) in the app, such as a record on one of its [tabs](ui-config.md#tabs). `{field}` in the address or the label is replaced by the row's value, the label's as the record page shows it (an enum value by its label), so each row can name its own next step. Below the `md` breakpoint (768px), where a table keeps its columns whole and scrolls sideways, the button sits under the text of the row's first cell instead, so it is on screen without scrolling. A row with no value for a field the button names shows no button. The button is checked when the config loads, and `/meta` gives it, on the block or the related section, to callers who can read the fields it names and follow its address, and leaves it out for the others. A [related section](ui-config.md#related-records) takes the same `button`, on its table's rows or its cards.
248
248
 
249
249
  ```tsx
250
250
  <Table
@@ -278,8 +278,6 @@ Each row can decide where its button goes:
278
278
 
279
279
  <gap>A row button cannot show when the table switches to a list display such as cards because drawing it on a display is not implemented.</gap>
280
280
 
281
- <gap>A row button cannot show beside its row's first cell on a phone, where the table scrolls sideways to reach it, because a mobile layout for table rows is not implemented.</gap>
282
-
283
281
  #### Signing several records off
284
282
 
285
283
  :::caution[Experimental]
@@ -1397,6 +1397,6 @@ Any action whose handler fails with a function's [mailbox problem](email.md#from
1397
1397
  ])
1398
1398
  ```
1399
1399
 
1400
- Besides the record page, the list's row menu offers each named action without `inputs` on the rows it applies to, disabled where it is disabled on the record page, and in red when it is a delete or a danger action; a link is a link there, or a disabled item without one where it is disabled. An `a.update` or `a.action` with `bulk` is also offered for the selected rows, as **Start (2)**, while one of them applies: it asks its `confirm` or its inputs once, with the count in the dialog's title; an inputs dialog for two or more records also lists their titles, while the `confirm` question and a dialog for one record show the count alone. <gap>A bulk `confirm` question cannot list the records it runs on because passing their titles to the confirm dialog is not implemented.</gap> It runs on each row it applies to, one after another, and its toast says how many it ran on, skipped, refused and failed on. An `a.action`'s handler is called once per row. A row the person may not change is refused, by its record's permissions or by the API's `403`, while the others run, and the toast names each refused record by its title. <gap>The list page cannot offer bulk actions on a phone because selecting its mobile rows is not implemented; a [`Table`](blocks.md#signing-several-records-off) with `bulk` offers them there.</gap>
1400
+ Besides the record page, the list's row menu offers each named action without `inputs` on the rows it applies to, disabled where it is disabled on the record page, and in red when it is a delete or a danger action; a link is a link there, or a disabled item without one where it is disabled. An `a.update` or `a.action` with `bulk` is also offered for the selected rows, as **Start (2)**, while one of them applies: it asks its `confirm` or its inputs once, with the count in the dialog's title; an inputs dialog for two or more records also lists their titles, while the `confirm` question and a dialog for one record show the count alone. <gap>A bulk `confirm` question cannot list the records it runs on because passing their titles to the confirm dialog is not implemented.</gap> It runs on each row it applies to, one after another, and its toast says how many it ran on, skipped, refused and failed on. An `a.action`'s handler is called once per row. A row the person may not change is refused, by its record's permissions or by the API's `403`, while the others run, and the toast names each refused record by its title. The rows stay selected while the dialog is open, and all of them when it is cancelled; once the run ends, only the rows it refused or skipped stay selected, showing what is still open. <gap>**Delete N** and **Export N** cannot keep the selection when their dialog is cancelled because telling the list how their dialog ended is not implemented.</gap> <gap>The list page cannot offer bulk actions on a phone because selecting its mobile rows is not implemented; a [`Table`](blocks.md#signing-several-records-off) with `bulk` offers them there.</gap>
1401
1401
 
1402
1402
  A condition reads only the record's own fields, so the list decides it for each row from the row itself: `protobase build` refuses one that names a relation's field (`host_id.name`), counts records (`hosts.count`) or names a field the resource does not have, a disabled button without a `reason`, and a `reason` or `otherwise` without `when`. In `/api/meta`, a user who cannot read a field the condition reads does not get the action. The condition only decides what the buttons show: the resource's [access rules](access.md) decide what the API lets the user do.