@protobase/cli 0.123.6 → 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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.123.6";
2
+ var version = "0.123.7";
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.123.6",
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.6",
47
- "@protobase/layout": "0.123.6",
48
- "@protobase/query": "0.123.6",
49
- "@protobase/schema": "0.123.6",
50
- "@protobase/server": "0.123.6",
51
- "@protobase/ui": "0.123.6",
52
- "@protobase/workflows": "0.123.6",
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 keeps line breaks, without markdown, and a deleted message leaves no trace in its place.
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> <gap>A conversation page cannot show a message's markdown because rendering markdown together with mentions 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