@protobase/cli 0.102.8 → 0.103.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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.102.8";
2
+ var version = "0.103.0";
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.102.8",
3
+ "version": "0.103.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.102.8",
47
- "@protobase/layout": "0.102.8",
48
- "@protobase/query": "0.102.8",
49
- "@protobase/schema": "0.102.8",
50
- "@protobase/server": "0.102.8",
51
- "@protobase/ui": "0.102.8",
52
- "@protobase/workflows": "0.102.8",
46
+ "@protobase/config": "0.103.0",
47
+ "@protobase/layout": "0.103.0",
48
+ "@protobase/query": "0.103.0",
49
+ "@protobase/schema": "0.103.0",
50
+ "@protobase/server": "0.103.0",
51
+ "@protobase/ui": "0.103.0",
52
+ "@protobase/workflows": "0.103.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",
@@ -524,6 +524,7 @@ These work for every provider, the project's own and the [platform's](#platform-
524
524
  - **Connected accounts:** the [account page](#account-page)'s **Sign-in & security** tab lists the providers and offers "Connect GitHub" for one the account is not linked to. Connecting signs in at the provider and links that account whatever its address (`accountLinking.allowDifferentEmails`, which applies only to this explicit link by someone signed in). A provider account linked to another person already is refused (`account_already_linked_to_different_user`); a [staff session](#staff-sign-in) cannot link.
525
525
  - **Linked up front:** `protobase users create <email> --github-id <id>`, or `createUser(auth, { ..., accounts: [{ providerId: 'github', accountId }] })`, links a new user to a GitHub user id, so GitHub finds them by it whatever address it reports.
526
526
  - Without a link, a provider finds someone by address only when it vouches for the address (`email_verified`) and the account's address is verified; accounts created by an admin or on the host are.
527
+ - **Through the provider's pages only:** signing in or connecting with an ID token a client posts instead (`idToken` on `/api/auth/sign-in/social` or `/api/auth/link-social`, as `signIn.social({ provider, idToken })` of Better Auth's client sends it) is refused with `403 TOKEN_SIGN_IN_OFF`, for every provider: such a token would sign in without the nonce of a sign-in the app started, as often as it is posted, and without the app's [second step](#two-factor-authentication).
527
528
 
528
529
  ## Sign-in with SAML
529
530
 
@@ -53,7 +53,7 @@ The app's `index.html` links `/protobase.theme.css` after its own stylesheets, s
53
53
 
54
54
  Each user picks light, dark or "System" with the theme switch in the profile menu, a visitor who is not signed in with the one above "Sign in" at the bottom of the sidebar, and the app follows their system's setting until they pick one. The choice is kept in their browser (`localStorage`, under `protobase:theme`), so it holds on every visit and in every tab; with storage blocked the app follows the system.
55
55
 
56
- The app draws dark by setting `data-theme="dark"` on the `<html>` element, and `data-theme="light"` for light. The app's `index.html` sets it with a small script in its `<head>`, before the first paint, so a dark page never flashes white while the app loads, the sign-in page included. Native parts of the page, such as scrollbars and date pickers, follow it too (`color-scheme`).
56
+ The app draws dark by setting `data-theme="dark"` on the `<html>` element, and `data-theme="light"` for light. The app's `index.html` sets it with a small script in its `<head>`, before the first paint, and draws the app's background in that theme, with the app's spinner after a moment, until the app has drawn its first page, the sign-in page or the home page, over it: from the first paint on, the page never flashes or changes its background while the app loads. The background is the `--background` token of your `protobase.theme.css`, or the default without one. Native parts of the page, such as scrollbars and date pickers, follow it too (`color-scheme`). <gap>A start whose script does not load or that fails before its first page cannot say so because a start failure message is not implemented, so the spinner keeps turning.</gap>
57
57
 
58
58
  Pictures, file previews and maps keep their own colors in dark: a map draws in the style the project names for it. A theme's `[data-theme="dark"]` values win over the app's dark ones, as its `:root` values win over the app's light ones, and a `:root` value without a dark one holds in dark too.
59
59