@protobase/cli 0.86.1 → 0.87.0
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.
|
|
3
|
+
"version": "0.87.0",
|
|
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.
|
|
47
|
-
"@protobase/layout": "0.
|
|
48
|
-
"@protobase/query": "0.
|
|
49
|
-
"@protobase/schema": "0.
|
|
50
|
-
"@protobase/server": "0.
|
|
51
|
-
"@protobase/ui": "0.
|
|
52
|
-
"@protobase/workflows": "0.
|
|
46
|
+
"@protobase/config": "0.87.0",
|
|
47
|
+
"@protobase/layout": "0.87.0",
|
|
48
|
+
"@protobase/query": "0.87.0",
|
|
49
|
+
"@protobase/schema": "0.87.0",
|
|
50
|
+
"@protobase/server": "0.87.0",
|
|
51
|
+
"@protobase/ui": "0.87.0",
|
|
52
|
+
"@protobase/workflows": "0.87.0",
|
|
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",
|
|
@@ -12,7 +12,7 @@ Mail the app sends, the PDF documents it makes, and forms for people without an
|
|
|
12
12
|
- [Attachments](../reference/email.md#attachments): A message carries files, such as an invoice's PDF, through the app's mail or someone's own mailbox.
|
|
13
13
|
- [PDF documents](../reference/pdf.md#documents): PDF files such as invoices and quotes are React components with typed data, rendered from jobs, hooks or functions and attached to mail as they are.
|
|
14
14
|
- [Mail from your own mailbox](../reference/email.md#from-someones-own-mailbox) (beta): People link their Gmail on the account page, and the app's functions send mail from it; an action offers to connect the mailbox right there when the link is missing or expired.
|
|
15
|
-
- [From addresses](../reference/email.md#from-addresses)
|
|
15
|
+
- [From addresses](../reference/email.md#from-addresses): People enter their mailbox's other send-as addresses once on the account page, each with a display name and a signature of its own, and the app sends from the one it names or their default.
|
|
16
16
|
- [Public forms](../reference/forms.md#what-the-visitor-sees): A form at its own address lets people without an account create a record, such as a contact request.
|
|
17
17
|
- [Bot check](../reference/forms.md#bot-check): Each submission passes a check in the browser, without a third-party service or a puzzle.
|
|
18
18
|
- [Form rate limit](../reference/forms.md#rate-limit): Each client sends only a set number of submissions per minute.
|
|
@@ -72,7 +72,7 @@ The message goes out from the linked Gmail, and shows in its Sent folder. When t
|
|
|
72
72
|
A Gmail account may send as other addresses of yours, such as a company address beside your own. To have the app send from one:
|
|
73
73
|
|
|
74
74
|
1. **Set it up in Gmail first:** Gmail's settings → Accounts → **Send mail as** → Add another email address, and confirm it as Gmail asks. An alias of a Google Workspace domain is there already.
|
|
75
|
-
2. **Enter it once in the app:** on the account page, under **Mailbox** → **From addresses**, choose **Add a From address** and type it. Give it a signature of its own if you like, and make it the default to send from it whenever the app names no address.
|
|
75
|
+
2. **Enter it once in the app:** on the account page, under **Mailbox** → **From addresses**, choose **Add a From address** and type it. Give it the name Gmail shows for it, so mail from the app carries the same name, and a signature of its own if you like, and make it the default to send from it whenever the app names no address.
|
|
76
76
|
3. **Name it when sending:** `personalMail.send({ from: 'billing@shop.example', to, subject, text })`.
|
|
77
77
|
|
|
78
78
|
Gmail sends from your primary address instead, without an error, when the address is not verified under **Send mail as**, so check the first message's From in the Sent folder. The app sends only from addresses entered this way: any other `from` is refused with a `403` before anything is sent. [From addresses](../reference/email.md#from-addresses) has the details.
|
|
@@ -265,6 +265,7 @@ export default defineFunction(async (request, { personalMail }) => {
|
|
|
265
265
|
|
|
266
266
|
A mailbox may send as more than its own address, such as Gmail's send-as addresses (Gmail's settings → Accounts → **Send mail as**). The person enters each such address once on the account page, under **Mailbox** → **From addresses**; only they can send from it. For each they choose:
|
|
267
267
|
|
|
268
|
+
- **Name:** an address may carry a display name, which the From header shows beside it, such as `From: Shop billing <billing@shop.example>`, as mail sent by hand from a send-as address shows the name set up for it; a name that is not ASCII is encoded. Left empty, the header holds the bare address. To give the mailbox's own address a name, enter it as well.
|
|
268
269
|
- **Signature:** an address may carry its own signature, which takes the place of the app's generic one; left empty, the generic one applies.
|
|
269
270
|
- **Default:** one address, theirs or their mailbox's own, is the one mail goes out from when the app names none.
|
|
270
271
|
|
|
@@ -281,7 +282,7 @@ export default defineFunction(async (request, { personalMail }) => {
|
|
|
281
282
|
```
|
|
282
283
|
|
|
283
284
|
- **`send({ from, ... })`:** sends from `from`, else the person's default address, else their mailbox's own. Gmail keeps the From header when the address is one of the account's verified send-as addresses; when it is not, Gmail sends from the account's own address instead, without an error.
|
|
284
|
-
- **`sender(from?)`:** the address a send with `from` goes out as: `address`, `signature` when it has its own, and `ownerId`, whose mailbox it goes through. It refuses as `send` does.
|
|
285
|
+
- **`sender(from?)`:** the address a send with `from` goes out as: `address`, `name` when it has one, `signature` when it has its own, and `ownerId`, whose mailbox it goes through. It refuses as `send` does.
|
|
285
286
|
- **`senders()`:** every address the caller may choose, such as for a send dialog: their mailbox's own, then those they entered.
|
|
286
287
|
- **Refused addresses:** a From address that is not the mailbox's own and not one the caller entered is refused before anything is sent, with a `MailSenderRefusedError` that answers as a `403` problem naming it; so is an address someone else entered, in the same words:
|
|
287
288
|
|
|
@@ -290,10 +291,9 @@ export default defineFunction(async (request, { personalMail }) => {
|
|
|
290
291
|
```
|
|
291
292
|
|
|
292
293
|
- **The mailbox's own address** is the one its provider's ID token names; Google gives it with the `email` scope sign-in asks for.
|
|
293
|
-
- **The account page's calls:** `GET /api/auth/account/mail-senders` lists the person's addresses with their mailbox's own `address`; `POST .../mail-senders/add { address, signature? }`, `POST .../mail-senders/update { id, signature?, isDefault? }` (`signature: null` drops its own) and `POST .../mail-senders/remove { id }` change them. Each acts on the signed-in person's own addresses only.
|
|
294
|
+
- **The account page's calls:** `GET /api/auth/account/mail-senders` lists the person's addresses with their mailbox's own `address`; `POST .../mail-senders/add { address, name?, signature? }`, `POST .../mail-senders/update { id, name?, signature?, isDefault? }` (`name: null` drops the name, `signature: null` drops its own) and `POST .../mail-senders/remove { id }` change them. Each acts on the signed-in person's own addresses only.
|
|
294
295
|
- <gap>An entered address cannot be checked to work before mail goes out from it because the test mail through the mailbox is not implemented.</gap>
|
|
295
296
|
- <gap>An address cannot be shared with others who send mail because proving that the person owns the address is not implemented.</gap>
|
|
296
|
-
- <gap>A From address cannot carry a display name, so its mail shows the bare address, because names per address are not implemented.</gap>
|
|
297
297
|
|
|
298
298
|
## In a bundle
|
|
299
299
|
|