@protobase/cli 0.117.3 → 0.117.5

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.3";
2
+ var version = "0.117.5";
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.3",
3
+ "version": "0.117.5",
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.3",
47
- "@protobase/layout": "0.117.3",
48
- "@protobase/query": "0.117.3",
49
- "@protobase/schema": "0.117.3",
50
- "@protobase/server": "0.117.3",
51
- "@protobase/ui": "0.117.3",
52
- "@protobase/workflows": "0.117.3",
46
+ "@protobase/config": "0.117.5",
47
+ "@protobase/layout": "0.117.5",
48
+ "@protobase/query": "0.117.5",
49
+ "@protobase/schema": "0.117.5",
50
+ "@protobase/server": "0.117.5",
51
+ "@protobase/ui": "0.117.5",
52
+ "@protobase/workflows": "0.117.5",
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,11 +10,12 @@ 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
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.
18
+ - [Swipe from the edge](../reference/sidebar.md#swipe-from-the-edge): On phones a swipe from the left edge goes back a step, or opens the sidebar drawer under the finger where there is no step back and no bottom bar.
18
19
  - [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.
19
20
  - [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.
20
21
  - [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.
@@ -16,6 +16,12 @@ Below the `md` breakpoint every page's top bar looks as a phone app's, with a bo
16
16
 
17
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.
18
18
 
19
+ ### Swipe from the edge
20
+
21
+ Below the `md` breakpoint a swipe from the screen's left edge does what one rule (`edgeSwipeAction`) says for the page: where the trail has a step back, it goes back to it, a round back mark coming in beside the finger; where there is neither a step back nor a [bottom bar](bottom-bar.md), it opens the sidebar drawer, which follows the finger and settles open or closed as a drag on it does; otherwise, as on a tab's page or with the drawer open, it does nothing, leaving the edge to what is around the page. The page itself never slides.
22
+
23
+ A host app around the page can take the edge whenever the page declares `none`, for a gesture of its own; it learns the page's choice ahead of every gesture: where its bridge offers a `ProtobaseEdgeSwipe` plugin, the shell calls its `set({ action })` on every navigation and change, with `back` (the app's own back swipe, asked for only where the history entry behind the page is the trail's step back), `sidebar` or `page` (the page does it), or `none` (the edge is the app's).
24
+
19
25
  ## The logo
20
26
 
21
27
  The sidebar's top shows the app's logo, Protobase's or a plugin's [`shell.logo`](custom-components.md#shell-slots). It has no action of its own. A tap on it dispatches a cancelable `protobase:logo-tap` event on `window` (`logoTapEvent` of `@protobase/ui`), so a plugin, or a host app that embeds the shell, can take the tap: it calls `preventDefault()` and does its own thing, such as opening a switcher. When the page is shown in a frame, the shell also posts `{ type: 'protobase:logo-tap' }` to the page that frames it.
@@ -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