@protobase/cli 0.94.36 → 0.94.38

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.36";
2
+ var version = "0.94.38";
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.36",
3
+ "version": "0.94.38",
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.36",
47
- "@protobase/layout": "0.94.36",
48
- "@protobase/query": "0.94.36",
49
- "@protobase/schema": "0.94.36",
50
- "@protobase/server": "0.94.36",
51
- "@protobase/ui": "0.94.36",
52
- "@protobase/workflows": "0.94.36",
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",
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. |
@@ -410,6 +410,8 @@ Every widget takes `secondary: true` (e.g. `w.facets(r.agent, { secondary: true
410
410
 
411
411
  A list can show a graph of how many of its records fall on each day or week, such as a daily graph of new listings. `.chart((r) => ({ field, range, granularity }))` draws the list's records per day over a date or timestamp field as bars above the list, following its filters, headed by their total and how much the second half of the bars differs from the first. `range` is how far back it reaches: `7d`, `30d`, `90d`, `1y` or `all`. A **Day** and **Week** switch changes the bars, and **Week** shows the last 12 weeks whatever the range; `granularity: 'week'` opens it on weeks. <gap>`hour` and `month` are accepted and show days, as hourly and monthly bars are not built.</gap> Its bars do not filter the list.
412
412
 
413
+ <gap>A list's chart per day or week cannot name a bar's whole period, mark the running one or be read by keyboard and screen reader because its own chart component does not draw them yet, as a trend's and a Chart block's do.</gap>
414
+
413
415
  It can show the list's records per value of a field instead, such as orders per status or revenue per customer: `.chart((r) => ({ groupBy: r.status, type: 'donut' }))`. `groupBy` is a filterable field that is no date, such as an enum, a boolean or a relation, with an index that serves it; `type` is `bar` (the default, the largest first) or `donut`; `sum: r.total` or `average: r.total` adds up a numeric field instead of counting (a donut takes no average); `limit` is how many values it shows, 10 by default. Each value links to the list filtered to it, and follows the list's filters, its own terms on `groupBy` included. A date, file or JSON `groupBy`, or a `sum` of a field that is no number, stops the server at startup, and a user who cannot read one of its fields sees no chart. A page shows the same with the [`Chart`](blocks.md#chart) block.
414
416
 
415
417
  ## List displays
@@ -785,7 +787,7 @@ view<typeof listings>('listings').recordMode('read')
785
787
  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
788
  :::
787
789
 
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).
790
+ `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
791
 
790
792
  <gap>A group's help line cannot show only while the record is edited because `helpWhen` on `l.group` is not implemented.</gap>
791
793
 
@@ -1166,7 +1168,7 @@ Each series is read through [`:aggregate`](api.md), grouped by `at` with `field
1166
1168
  <gap>A reader cannot switch a trend's range or bar length, or open the records a bar counts, because neither is implemented.</gap>
1167
1169
  :::
1168
1170
 
1169
- `l.trend(title, options)` draws bars of how many records point at the record on the page, per day, week or month of a date of theirs, as a list's [chart](#filters-and-the-chart) counts them, such as an objective's shipped tasks per week over the last 90 days. It takes the options of a list's chart, `range` and `granularity`, and counts only this record's records. Records without a value in `at`, such as tasks not shipped yet, are not counted. A line over the bars gives their total over the range, such as **4 in the last 90 days**, or **None in the last 90 days** over flat bars, and a chart that could not load offers **Try again**. Name what `at` means in the title or the help, such as "Shipped per week".
1171
+ `l.trend(title, options)` draws bars of how many records point at the record on the page, per day, week or month of a date of theirs, as a list's [chart](#filters-and-the-chart) counts them, such as an objective's shipped tasks per week over the last 90 days. It takes the options of a list's chart, `range` and `granularity`, and counts only this record's records. Records without a value in `at`, such as tasks not shipped yet, are not counted. A line over the bars gives their total over the range, such as **4 in the last 90 days**, or **None in the last 90 days** over flat bars, and a chart that could not load offers **Try again**. A bar's tooltip names its whole week or month, such as **24 – 30 Aug 2026**, and the bar still filling up is outlined with a dash and runs **to today**. The chart takes focus: the left and right arrow keys move the tooltip from bar to bar and Escape closes it, and a screen reader reads the bars as a table; a [Chart block](blocks.md#chart) over a date and `l.chart` do the same. Name what `at` means in the title or the help, such as "Shipped per week".
1170
1172
 
1171
1173
  | Option | |
1172
1174
  | --- | --- |