@protobase/cli 0.117.2 → 0.117.4

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.117.2";
2
+ var version = "0.117.4";
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.117.2",
3
+ "version": "0.117.4",
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.117.2",
47
- "@protobase/layout": "0.117.2",
48
- "@protobase/query": "0.117.2",
49
- "@protobase/schema": "0.117.2",
50
- "@protobase/server": "0.117.2",
51
- "@protobase/ui": "0.117.2",
52
- "@protobase/workflows": "0.117.2",
46
+ "@protobase/config": "0.117.4",
47
+ "@protobase/layout": "0.117.4",
48
+ "@protobase/query": "0.117.4",
49
+ "@protobase/schema": "0.117.4",
50
+ "@protobase/server": "0.117.4",
51
+ "@protobase/ui": "0.117.4",
52
+ "@protobase/workflows": "0.117.4",
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",
@@ -10,10 +10,11 @@ The sidebar, the user menu, the bottom bar on phones and the global search.
10
10
  - [Create link](../reference/sidebar.md#create-link): A sidebar entry links to its create form, such as "New message" under Direct messages, for whoever may create.
11
11
  - [Entries for creators](../reference/sidebar.md#entries-for-creators): A sidebar entry shows only to those who may create its records, such as the tables list to those who may add tables.
12
12
  - [The current organization](../reference/sidebar.md#the-current-organization): A sidebar entry opens its list on the organization you work in, which you can clear to see every organization you are a member of.
13
- - [User menu](../reference/user-menu.md): Account pages, help links, security settings, setting a status, the theme switch and Sign out.
13
+ - [User menu](../reference/user-menu.md): Account pages, help links, security settings, setting a status, the theme switch and Sign out, which asks first and tells a host app around the page.
14
14
  - [Bottom bar](../reference/bottom-bar.md): On phones, tabs along the bottom for each role's main screens.
15
15
  - [Phone app layout](../reference/bottom-bar.md#search-and-more): With a bottom bar, More opens the sidebar as a page of its own with search at its top, the top bar takes the app's brand color, and pages that are no tab lead back to More; search can join the bar with `m.search()`.
16
16
  - [System tab bar](../reference/bottom-bar.md#in-the-phone-apps): In the iOS and Android apps the bottom bar is the system's own tab bar.
17
+ - [Phone top bar](../reference/sidebar.md#the-top-bar-on-phones): Every phone page has a phone app's top bar, with or without a bottom bar: the brand color, the way back beside the title and the account at the right.
17
18
  - [Menus as sheets](../reference/sidebar.md#menus-and-drawers-on-phones): On phones, menus, select lists and the account menu open as a sheet from the bottom, and the sidebar drawer and sheets move under the finger as a native drawer does.
18
19
  - [Global search](../reference/client.md#global-search): A search box, also on Cmd+K or Ctrl+K, finds records in every resource and jumps to pages and New forms.
19
20
  - [Breadcrumbs](../reference/ui-config.md#breadcrumbs): The top bar shows the group and list you are on, each a link back, and on a phone a back button to the one before; a record page's heading names the record.
@@ -8,9 +8,13 @@ The admin's sidebar has one entry per resource view, grouped by `nav.group` (def
8
8
 
9
9
  Below the `md` breakpoint (768px) the sidebar is a drawer, which the top bar's menu button opens, It is 88% of the screen wide, at most 384px. With a [bottom bar](bottom-bar.md#search-and-more), **More** opens the sidebar as a page of its own instead.
10
10
 
11
+ ### The top bar on phones
12
+
13
+ Below the `md` breakpoint every page's top bar looks as a phone app's, with a bottom bar or without one: it takes the app's brand color, the theme's `--primary` with its text in `--primary-foreground`, up behind the status bar, with a round back mark beside the title where the trail has a step back, and the account at the right. Without a bottom bar the menu button for the drawer leads it; with one, the bottom bar's tabs and More navigate instead.
14
+
11
15
  ### Menus and drawers on phones
12
16
 
13
- Below the `md` breakpoint every menu, select list and the account menu opens as a sheet from the bottom of the screen, its items at a phone's list size; from `md` up they open beside their button. Sheets and the sidebar drawer move under the finger as a native drawer does: a drag on them, or on the dim beside them, past a few pixels and close to their axis, moves them one to one, past open with a rubber band; let go, a fast release goes its way and a slow one past half closes them, and they settle without overshoot. Both open at the document's root, with the page's colors, wherever they open from.
17
+ Below the `md` breakpoint every menu, select list and the account menu opens as a sheet from the bottom of the screen, as a menu alone: its drag handle and its own items, as beside its button on a desktop, with no title or close button. Its rows, icons and a switch such as the theme's are sized from its text, at the sidebar drawer's items' size, so they grow with the text size; a menu's heading, such as the account menu's name and email, reads a step larger. It closes by its handle, a swipe down, a tap beside it or Escape, sliding away each time. From `md` up menus open beside their button. Sheets and the sidebar drawer move under the finger as a native drawer does: a drag on them, or on the dim beside them, past a few pixels and close to their axis, moves them one to one, past open with a rubber band; let go, a fast release goes its way and a slow one past half closes them, and they settle without overshoot. Both open at the document's root, with the page's colors, wherever they open from.
14
18
 
15
19
  ## The logo
16
20
 
@@ -6,6 +6,8 @@ The user menu at the bottom of the sidebar, with the app's own account pages and
6
6
 
7
7
  The signed-in user sits at the bottom of the sidebar, and on a phone at the top right of the top bar, where the menu opens as a sheet from the bottom. Clicking them opens a menu with their name and email, which link to their account, "Set a status" in an app with [status](status.md), the app's own pages, the theme switch, and "Sign out". Account pages (organization, billing, users) and help links belong here rather than among the working resources.
8
8
 
9
+ "Sign out" asks first, in the app's dialog, in a browser and in an app alike. Once the person has signed out, the shell dispatches a `protobase:signed-out` event on `window` (`signedOutEvent` of `@protobase/ui`), and posts `{ type: 'protobase:signed-out' }` to a page that frames it, for a host app around the page, such as one that keeps its own copy of the person's session and ends it too.
10
+
9
11
  Export one [`userMenu(...)`](https://docs.protobase.net/api/schema/functions/usermenu/) from `config/index.ts`:
10
12
 
11
13
  ```ts