@protobase/cli 0.40.7 → 0.40.8
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.40.
|
|
3
|
+
"version": "0.40.8",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"@better-auth/core": "^1.7.12",
|
|
37
37
|
"@hono/node-server": "^2.1.3",
|
|
38
38
|
"@hono/vite-dev-server": "^0.26.1",
|
|
39
|
-
"@protobase/layout": "0.40.
|
|
40
|
-
"@protobase/query": "0.40.
|
|
41
|
-
"@protobase/schema": "0.40.
|
|
42
|
-
"@protobase/server": "0.40.
|
|
43
|
-
"@protobase/ui": "0.40.
|
|
39
|
+
"@protobase/layout": "0.40.8",
|
|
40
|
+
"@protobase/query": "0.40.8",
|
|
41
|
+
"@protobase/schema": "0.40.8",
|
|
42
|
+
"@protobase/server": "0.40.8",
|
|
43
|
+
"@protobase/ui": "0.40.8",
|
|
44
44
|
"@react-email/render": "^2.1.0",
|
|
45
45
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
46
46
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -238,9 +238,13 @@ It follows the resource's view as its list page does. Of a resource whose view h
|
|
|
238
238
|
|
|
239
239
|
What a filter finds as the cards of a record page's [related records as cards](ui-config.md#related-records-as-cards)), stacked full width under a heading that has no card around it, so the page shows no card inside another: each record's title linking to its page, its `fields` under their labels, a value taller than a few lines cut short with **Show more**, and a button for each of `cardActions`, run as on the record page. Below the cards, **View all** opens the list with the same filter and order, beside a note such as "The first 10 of 37." when there are more.
|
|
240
240
|
|
|
241
|
+
With `layout="carousel"` the cards sit side by side in one row that scrolls sideways, by touch, trackpad, mouse wheel or its scrollbar, and snaps each card to its left edge. Each card is `cardWidth` of the block's width, so the next one peeks in, but never narrower than 12rem, so narrow cards stay readable on a phone. The cards are top aligned and keep their fields and buttons.
|
|
242
|
+
|
|
241
243
|
| Prop | |
|
|
242
244
|
| --- | --- |
|
|
243
245
|
| `resource`, `filter`, `sort` | Which records, in which order. `resource` is required; `sort` defaults to the list's. |
|
|
246
|
+
| `layout` | `stack` (default) or `carousel`. |
|
|
247
|
+
| `cardWidth` | In a carousel, the width of each card as a share of the block's: `1/4`, `1/3`, `1/2` or `2/3` (default). |
|
|
244
248
|
| `fields` | The fields each card shows, through relations too (`task_id.title`); default the list's columns. |
|
|
245
249
|
| `cardActions` | Named actions of the resource's view, as buttons on each card. |
|
|
246
250
|
| `limit` | How many; default 10. |
|
|
@@ -251,6 +255,7 @@ What a filter finds as the cards of a record page's [related records as cards](u
|
|
|
251
255
|
|
|
252
256
|
```tsx
|
|
253
257
|
<RecordCards title="Waiting on you" resource="task_preconditions" filter="state = 'waiting'" fields={['task_id', 'plan']} cardActions={['approve', 'request_changes']} />
|
|
258
|
+
<RecordCards title="Runners" resource="runners" layout="carousel" cardWidth="1/4" fields={['state']} />
|
|
254
259
|
```
|
|
255
260
|
|
|
256
261
|
### Field
|