@protobase/cli 0.94.35 → 0.94.37

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.35";
2
+ var version = "0.94.37";
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.35",
3
+ "version": "0.94.37",
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.35",
47
- "@protobase/layout": "0.94.35",
48
- "@protobase/query": "0.94.35",
49
- "@protobase/schema": "0.94.35",
50
- "@protobase/server": "0.94.35",
51
- "@protobase/ui": "0.94.35",
52
- "@protobase/workflows": "0.94.35",
46
+ "@protobase/config": "0.94.37",
47
+ "@protobase/layout": "0.94.37",
48
+ "@protobase/query": "0.94.37",
49
+ "@protobase/schema": "0.94.37",
50
+ "@protobase/server": "0.94.37",
51
+ "@protobase/ui": "0.94.37",
52
+ "@protobase/workflows": "0.94.37",
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",
@@ -105,7 +105,7 @@ Field hints:
105
105
  | `.confirm(question)` | Asks `question` before a person changes the value in a form or a list cell, and Cancel keeps it. See [Confirming a change](#confirming-a-change). |
106
106
  | `.format(format)` | `badge` shows statuses as coloured badges, `code` sets identifiers in monospace, as the list's identifier column too, `percent` adds a % sign, and `signed` shows a whole number in a list with its sign, green above zero and red below, such as a stock change of `+12` or `−3`; it needs an integer field. On a text field, `email`, `phone` and `url` show the value as a link that writes to it (`mailto:`), calls it (`tel:`, its digits and a leading +) or opens it in a new tab (only an `http` or `https` address; anything else stays text), and `.format('url', { text })` gives the link [its own text](#json-fields-and-link-text), on the record page, in its sidebar and in the list's cells but the title's, which links to the record; forms edit it in an email, phone or web address input, which brings up the keyboard for it on a mobile screen and offers the browser's autofill. Another field type with one of them stops the server at startup. `relative` on a timestamp shows it as "5 minutes ago" or "in 2 hours" in lists and on the record page, with the exact time on hover; `absolute` and `compact` are accepted and carried in `/meta` for apps that render their own lists. <gap>The admin does not use the `absolute` and `compact` formats yet.</gap> |
107
107
  | `.multiline()` | A text of several lines, such as a description: forms edit it in a box that grows with the text, so the page scrolls rather than the box, and the record page's sections, a page's field blocks and a card's subtitle keep its line breaks (a card shows the first three lines); the record's sidebar shows it on one line. On the record page and the create form it takes the whole width of its section. Only a text field takes it; the list's table shows the text on one line. |
108
- | `.markdown()` | Markdown, such as a task's notes: forms edit its source in a box that grows with it, with a Write and Preview switch above it, and store it exactly as typed. The record page's sections, a page's field blocks and a conversation's messages show it rendered as GitHub does, line breaks kept, a heading in a section one level under the section's title and no larger than the text, so `#` and `##` show as h3, `###` as h4 and so on to h6 (<gap>A value whose first heading is `###` cannot start at h3 because numbering from the value's own top heading is not implemented.</gap>); raw HTML shows as text, links and images keep only http(s), mailto, tel and relative addresses, and links open in a new tab. A card's subtitle shows its first three lines rendered, its links as text; the list's table, the record's sidebar and a card's other lines show its text on one line without the marks. On the record page and the create form it takes the whole width of its section. Only a text field takes it, and the renderer loads with the first markdown shown. |
108
+ | `.markdown()` | Markdown, such as a task's notes: forms edit its source in a box that grows with it, with a Write and Preview switch above it, and store it exactly as typed. The record page's sections, a page's field blocks and a conversation's messages show it rendered as GitHub does, line breaks kept, a heading in a section one level under the section's title and no larger than the text, so `#` and `##` show as h3, `###` as h4 and so on to h6, one level lower in a section inside a group (<gap>A value whose first heading is `###` cannot start at h3 because numbering from the value's own top heading is not implemented.</gap>); raw HTML shows as text, links and images keep only http(s), mailto, tel and relative addresses, and links open in a new tab. A card's subtitle shows its first three lines rendered, its links as text; the list's table, the record's sidebar and a card's other lines show its text on one line without the marks. On the record page and the create form it takes the whole width of its section. Only a text field takes it, and the renderer loads with the first markdown shown. |
109
109
  | `.prefix(text)`, `.suffix(text)`, `.decimals(n)` | Text around a number and its decimals: `€` and `2` show `€1,234.50`, `.suffix(' m²')` shows `120 m²`. They show wherever the number does: records, cards, table cells, forms and the range filter. A prefix is plain text, so a list does not show `€` as money; `.currency()` does. |
110
110
  | `.currency(code)` | The currency a decimal is an amount of, as an ISO 4217 code such as `EUR`: the list shows it as money in that currency, in its table and its range filter. See [Value tones and currencies](#value-tones-and-currencies). |
111
111
  | `.icon(name)` | An icon before the value on a card's meta row: one of the names [actions](layouts.md#named-actions) take, such as `bed`, `calendar` or `cpu`, and above the value in a section of [key facts](#key-facts). Nowhere else shows it. |
@@ -785,7 +785,7 @@ view<typeof listings>('listings').recordMode('read')
785
785
  A group's `help` and `count` options may change in any release. A group's help line takes no `helpWhen`, so it shows on the read view and the form alike, and the create form, which shows a group's sections as plain sections, leaves it out.
786
786
  :::
787
787
 
788
- `l.group(title, items, { help?, count?, collapsed?, when? })` puts a heading over sections and related tables, so a long record page shows what matters first and tucks rarely needed parts away. A group holds only `l.section` and `l.related` items, and not another group. With `collapsed: true` it shows only its heading until the person clicks it; clicking again closes it. A closed group draws nothing, so its related tables load nothing until it opens. Without `collapsed` it is a plain heading over its items. `help` is a line under the heading, shown while the group is closed too, and `count: true` shows beside the heading how many records its related tables hold together; see [Counts in headings](#counts-in-headings).
788
+ `l.group(title, items, { help?, count?, collapsed?, when? })` puts a heading over sections and related tables, so a long record page shows what matters first and tucks rarely needed parts away. A group holds only `l.section` and `l.related` items, and not another group. With `collapsed: true` it shows only its heading until the person clicks it; clicking again closes it. A closed group draws nothing, so its related tables load nothing until it opens. Without `collapsed` it is a plain heading over its items. Its heading is an h2 and its items' titles are h3, so a screen reader lists them inside the group. `help` is a line under the heading, shown while the group is closed too, and `count: true` shows beside the heading how many records its related tables hold together; see [Counts in headings](#counts-in-headings).
789
789
 
790
790
  <gap>A group's help line cannot show only while the record is edited because `helpWhen` on `l.group` is not implemented.</gap>
791
791
 
@@ -1089,6 +1089,8 @@ With `presentation: 'compact'` each card takes a line or two, for a short list w
1089
1089
 
1090
1090
  With `tone`, each card's left edge takes the colour its value has in the view's `valueColors`, a tone or a hex colour as its badge does, and the value's badge shows first among the card's values, unless `columns` places it elsewhere, so the colour is never all that says it. An action that changes the value changes the edge as the section loads again. `tone` works on `presentation: 'cards'` too.
1091
1091
 
1092
+ When an action takes its card out of the section, such as Mark clear under `filter: 'state != "clear"'`, focus moves to the next card's first action, else the previous card's, else the section's heading, and a screen reader hears `Done: Mark clear, <title>. It has left this list.` This holds for `presentation: 'cards'` too. A section with `hideEmpty: true` goes away with its last card, so then focus has no heading to go to and nothing is announced.
1093
+
1092
1094
  ```ts
1093
1095
  l.related('Holding it up', {
1094
1096
  resource: 'objective_causes',