@protobase/cli 0.123.5 → 0.123.7
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 +1 -1
- package/package.json +8 -8
- package/skills/protobase/references/features/your-own-code.md +1 -1
- package/skills/protobase/references/reference/custom-components.md +1 -1
- package/skills/protobase/references/reference/ui-config.md +3 -3
- package/skills/protobase/references/reference/workflows.md +1 -0
package/dist/cli/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.123.
|
|
3
|
+
"version": "0.123.7",
|
|
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.123.
|
|
47
|
-
"@protobase/layout": "0.123.
|
|
48
|
-
"@protobase/query": "0.123.
|
|
49
|
-
"@protobase/schema": "0.123.
|
|
50
|
-
"@protobase/server": "0.123.
|
|
51
|
-
"@protobase/ui": "0.123.
|
|
52
|
-
"@protobase/workflows": "0.123.
|
|
46
|
+
"@protobase/config": "0.123.7",
|
|
47
|
+
"@protobase/layout": "0.123.7",
|
|
48
|
+
"@protobase/query": "0.123.7",
|
|
49
|
+
"@protobase/schema": "0.123.7",
|
|
50
|
+
"@protobase/server": "0.123.7",
|
|
51
|
+
"@protobase/ui": "0.123.7",
|
|
52
|
+
"@protobase/workflows": "0.123.7",
|
|
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",
|
|
@@ -13,7 +13,7 @@ React components, field types, pages and handlers of your own, loaded as plugins
|
|
|
13
13
|
- [Custom create pages](../reference/custom-components.md#create-pages): Replace a resource's create form with your own page, such as a booking flow.
|
|
14
14
|
- [Form parts](../reference/custom-components.md#form-parts): Build your own forms from the app's fields, pickers, switches, buttons and dialogs.
|
|
15
15
|
- [Menus and toasts](../reference/custom-components.md#form-parts): Build your own menus that open beside their button on a desktop and as a sheet on a phone, with rows like the app's menus, and confirm an action with a toast.
|
|
16
|
-
- [Markdown](../reference/custom-components.md#components): Show markdown in your own components, such as a chat message, as the app's markdown fields draw it.
|
|
16
|
+
- [Markdown](../reference/custom-components.md#components): Show markdown in your own components, such as a chat message, as the app's markdown fields draw it, and wait for its renderer so a message does not change size as it formats.
|
|
17
17
|
- [Polling lists](../reference/custom-components.md#record-sections): A list your own component reads can refetch on an interval you set, to stay current.
|
|
18
18
|
- [Image carousel](../reference/custom-components.md#image-carousel): Step through screenshots or a record's files in your own components by swiping or with arrows, as cards step through photos.
|
|
19
19
|
- [Assistant parts](../reference/assistant.md#in-the-ui): The assistant's panel, chat messages, composer and action cards for your own components, with a frameless action card for a page that is already framed.
|
|
@@ -426,7 +426,7 @@ A chat between people, such as a team's channels, is built from the parts the [a
|
|
|
426
426
|
| `ChatMessage` | One message. `author` (`{ id, name }`) draws it on the left beside the author's avatar, under their name and `time`, an ISO timestamp shown on the viewer's clock; `avatar` replaces the initials, such as with a photo, and `continued` leaves out avatar, name and time for a message that follows the same author's. `from: 'user' \| 'assistant'` draws an assistant chat's sides instead. `footer` adds a small line under either, such as whether it was read. |
|
|
427
427
|
| `ChatDivider` | A line across the chat with a label: `label` for a day, such as `chatDayLabel(time)` ("Today", "Yesterday" or the date, on the viewer's calendar) between two messages for which `sameChatDay(a, b)` is false; `tone="new"` for the red **New messages** line. |
|
|
428
428
|
| `Composer` | The box under the chat, which grows with its text: Enter or the button sends, Shift+Enter starts a new line. `onSend` gets the trimmed text and the ids of the people it mentions. With `searchPeople`, a function that returns the `{ id, name }` people whose name matches the text typed after `@`, such as a channel's members, typing `@` lists them above the box: the arrows move, Enter or Tab picks, Escape closes. `busy` keeps the text from being sent. For a message that carries files, `actions` draws an attach button left of the box and `attachments` a tray of the picked files above it, `canSendEmpty` lets Enter and the button send with no text, `onSend('', [])`, and `onFiles` gets the files pasted into the box or dropped on the composer, which uploads nothing itself; a paste that holds text stays text. `onDraft` gets the box's text each time it changes, such as for [typing](#typing). |
|
|
429
|
-
| `MentionBox`, `MentionedText` | The text box with `@` mentions that the composer and [comments](comments.md) are built from, for a box of your own: `value` and `onChange` hold the text and the people picked (`emptyDraft` to start), and `mentionedIds(text, picked)` the ids still mentioned. `MentionedText` shows a message's `text` with comments' [formatting](comments.md#formatting): bold, italic, strikethrough, code, code blocks, lists, quotes and web addresses as links, each `@name` of its `mentions` picked out. |
|
|
429
|
+
| `MentionBox`, `MentionedText` | The text box with `@` mentions that the composer and [comments](comments.md) are built from, for a box of your own: `value` and `onChange` hold the text and the people picked (`emptyDraft` to start), and `mentionedIds(text, picked)` the ids still mentioned. `MentionedText` shows a message's `text` with comments' [formatting](comments.md#formatting): bold, italic, strikethrough, code, code blocks, lists, quotes and web addresses as links, each `@name` of its `mentions` picked out. Until its renderer has loaded, it shows the text as typed, its lines and paragraphs taking the same room; `MentionedText.useLoaded()` is true once the renderer has loaded or failed to, for a page that shows its messages only then, so none changes as it formats. <gap>Text with lists, code blocks or quotes cannot take the same room before its renderer loads because drawing block markdown without the renderer is not implemented.</gap> |
|
|
430
430
|
|
|
431
431
|
The messages' author comes from the server: give the resource [`.author()`](data-config.md#resource), and each create stores the signed-in user's id, never a value the client sends.
|
|
432
432
|
|
|
@@ -792,10 +792,10 @@ The standard record page, with the layout's sections, the related records, Edit
|
|
|
792
792
|
### Conversation pages
|
|
793
793
|
|
|
794
794
|
:::caution[Beta]
|
|
795
|
-
A conversation page shows each message's text with its mentions and
|
|
795
|
+
A conversation page shows each message's text with its mentions and markdown, and a deleted message leaves no trace in its place.
|
|
796
796
|
:::
|
|
797
797
|
|
|
798
|
-
`.record({ conversation })` makes the record page the record's conversation, for a record that holds one, such as a chat channel, a direct message or a support case, with no component of the app's own. It fills the content area as a [full-area record page](#full-area-record-pages) does, on the web and at mobile width: a header row, the messages that point at the record, and a box that sends one, which stays in view while the messages scroll above it.
|
|
798
|
+
`.record({ conversation })` makes the record page the record's conversation, for a record that holds one, such as a chat channel, a direct message or a support case, with no component of the app's own. It fills the content area as a [full-area record page](#full-area-record-pages) does, on the web and at mobile width: a header row, the messages that point at the record, and a box that sends one, which stays in view while the messages scroll above it. The messages it opens on, and a thread's, show once their reactions, files and formatted text are ready, and an image whose `width` and `height` are stored keeps its room while it loads, so nothing moves under the reader while the page loads. <gap>An image without a stored `width` and `height` cannot keep its room while it loads because reading an image's size before it loads is not implemented.</gap>
|
|
799
799
|
|
|
800
800
|
```ts
|
|
801
801
|
view<typeof channels>('channels').record({
|
|
@@ -896,7 +896,7 @@ The header shows *Start call* while no call goes on, and "Call in progress · 3
|
|
|
896
896
|
|
|
897
897
|
<gap>A conversation page cannot offer *Edit* when its `sender` is a relation because matching a related record to the reader is not implemented; a `sender` of user ids, such as the resource's `.author()`, gets it.</gap>
|
|
898
898
|
|
|
899
|
-
<gap>A conversation page cannot open at a given message, such as a search result, because opening a conversation at a message is not implemented.</gap>
|
|
899
|
+
<gap>A conversation page cannot open at a given message, such as a search result, because opening a conversation at a message is not implemented.</gap>
|
|
900
900
|
|
|
901
901
|
### Focus pages
|
|
902
902
|
|
|
@@ -201,6 +201,7 @@ Starts one run for each record of `resource` that becomes ready, with `{ resourc
|
|
|
201
201
|
- **One run per ready key:** the record's key, plus the values of the `key` fields. A record that stays ready over later writes starts no second run; one whose `due_at` changes is ready again under a new key.
|
|
202
202
|
- **Who reads it:** the record is read through the API as the user who saved the enabled version, in the workflow's tenant, and `when` is checked on what they may read, so a record they cannot read, or a field they cannot see, never reaches a run. A saver who holds no role any more, or whom the API refuses, marks the trigger `failing`; the next write it reads a record on makes it active again, and it then passes over the records it missed. A key field the saver cannot read marks it `failing` too.
|
|
203
203
|
- **When it looks:** a write to the resource, through the API or the database, reaches the trigger through [events](events.md), so the resource must declare some; turning a workflow on also starts runs for the records ready already, 100 per job. No periodic sweep runs.
|
|
204
|
+
- **Tenants:** a tenant's workflow reaches only the records of its tenant, so its resource needs a tenant field, [`.tenant(...)`](data-config.md#resource). A save of a tenant's workflow on a resource without one is refused, naming the resource; a trigger saved before its resource lost its tenant field is marked `failing` with that message within a minute, or as soon as a write reaches the resource, and turns active again once a write reaches it with the tenant field back.
|
|
204
205
|
|
|
205
206
|
<gap>A workflow cannot start on every write of a record because an every-change trigger is not implemented; a record trigger starts once per ready key.</gap> <gap>An owner is not told when a trigger starts failing because trigger alerts are not implemented.</gap>
|
|
206
207
|
|