@protobase/cli 0.99.2 → 0.99.3
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.3",
|
|
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.3",
|
|
47
|
+
"@protobase/layout": "0.99.3",
|
|
48
|
+
"@protobase/query": "0.99.3",
|
|
49
|
+
"@protobase/schema": "0.99.3",
|
|
50
|
+
"@protobase/server": "0.99.3",
|
|
51
|
+
"@protobase/ui": "0.99.3",
|
|
52
|
+
"@protobase/workflows": "0.99.3",
|
|
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",
|
|
@@ -150,7 +150,7 @@ A link in text: `to` an address in the app, or an `href` that leaves it (`https:
|
|
|
150
150
|
|
|
151
151
|
| Prop | |
|
|
152
152
|
| --- | --- |
|
|
153
|
-
| `to` | An [address](layouts.md#addresses). `{{path}}` in it is the value of that [path](layouts.md#paths-and-scopes) through the records around the link. |
|
|
153
|
+
| `to` | An [address](layouts.md#addresses). `{{path}}` in it is the value of that [path](layouts.md#paths-and-scopes) through the records around the link, and `{{@params.window}}` a [page parameter](layouts.md#page-parameters), so `{ kind: 'page', page: 'payouts', params: { window: '{{@params.window}}' } }` carries the choice to another page. |
|
|
154
154
|
| `href` | A link that leaves the app. A path in the app is refused when the config loads: give it as `to`. |
|
|
155
155
|
| `variant` | `primary`, `secondary`, `danger` or `ghost`: drawn as a button of that variant, still a link. `className` adds to it, such as `w-full`. |
|
|
156
156
|
|
|
@@ -138,7 +138,7 @@ A record's related records repeat under it as a list: a `ReferenceManyField` hol
|
|
|
138
138
|
</RecordCard>
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
Each entry is a record of the stack while its children draw, so `Field`, `Show`, `{{path}}` placeholders and nested lists inside it read it, and `@index`, `@first` and `@last` count its place in the list. A text item of an `ArrayField`, such as a label, is read as `this`; an object item by its keys, which no model describes, so the build does not check them, and it warns when an item's key could shadow a field of a record further out. A list ties itself to the record around it by a field of that record, its `source`; a `ReferenceManyField`'s is `id` of the nearest record by default. `filter` and `sort` take AIP-160 and AIP-132 text, or the objects react-admin writes: `{ status: 'open' }` is `status = "open"`, its fields ANDed, and `{ field: 'claimed_at', order: 'DESC' }` is `claimed_at desc`. Without `sort`, a list is in its key's order, descending, as react-admin's is. `pagination="more"` adds a button that reads the next `perPage` records into the same list. The [blocks reference](blocks.md#related-records) lists every prop.
|
|
141
|
+
Each entry is a record of the stack while its children draw, so `Field`, `Show`, `{{path}}` placeholders and nested lists inside it read it, and `@index`, `@first` and `@last` count its place in the list. A text item of an `ArrayField`, such as a label, is read as `this`; an object item by its keys, which no model describes, so the build does not check them, and it warns when an item's key could shadow a field of a record further out. A list ties itself to the record around it by a field of that record, its `source`; a `ReferenceManyField`'s is `id` of the nearest record by default. A `ReferenceManyField`'s and a `ReferenceArrayField`'s `filter` and `sort` take AIP-160 and AIP-132 text, or the objects react-admin writes: `{ status: 'open' }` is `status = "open"`, its fields ANDed, and `{ field: 'claimed_at', order: 'DESC' }` is `claimed_at desc`. Without `sort`, such a list is in its key's order, descending, as react-admin's is. A `ReferenceManyField`'s `pagination="more"` adds a button that reads the next `perPage` records into the same list. The [blocks reference](blocks.md#related-records) lists every prop.
|
|
142
142
|
|
|
143
143
|
<gap>A list block cannot read its records at page load, beside the records around it, because planning a page's reads is not implemented; each reads once the record around it has drawn.</gap>
|
|
144
144
|
|
|
@@ -239,7 +239,7 @@ A page holds a choice in its own address: `SelectInput` draws a select whose cho
|
|
|
239
239
|
|
|
240
240
|
A value in the address that is none of the choices reads as `defaultValue`, and as empty without one. A filter that reads `@params` is checked once for each choice, and for the empty value when there is no `defaultValue`, so a choice that makes the filter invalid fails the build: `filter with window = "soon": …`. A `SelectInput` without `choices` shows the value its address gives as text; a `filter`, `recordKey` or `values` cannot read it, which fails the build, as any text in the address would reach the read.
|
|
241
241
|
|
|
242
|
-
A `Table` with `select` chooses one of its rows: each row links to the page with its key in the parameter `select` names, `?claim=11`, and the table's children draw under it inside that row's record, as inside a `RecordCard`. While no row is chosen they draw nothing, and Back clears the choice. A table with `select` shows its rows as a table, never in another display. Each parameter name is used once on a page, by one `SelectInput` or one `select`.
|
|
242
|
+
A `Table` with `select` chooses one of its rows: each row links to the page with its key in the parameter `select` names, `?claim=11`, and the table's children draw under it inside that row's record, as inside a `RecordCard`. While no row is chosen they draw nothing, and Back clears the choice. A table with `select` shows its rows as a table, never in another display. Each parameter name is used once on a page, by one `SelectInput` or one `select`. A name is letters, digits and `_`, other than `__proto__`, and each choice's `id` is one the address can hold, never empty. A form under the chosen row asks before another row, or Back, replaces it, as before leaving the page.
|
|
243
243
|
|
|
244
244
|
In the [text form](#text-form), a `SelectInput` reads as its label and its choice's name, `**Window**: Last 30 days`, from the `params` you pass, and a `select` table's children as the row `records` gives for it.
|
|
245
245
|
|