@protobase/cli 0.117.4 → 0.117.6
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/dist/mobile/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.117.
|
|
3
|
+
"version": "0.117.6",
|
|
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.
|
|
47
|
-
"@protobase/layout": "0.117.
|
|
48
|
-
"@protobase/query": "0.117.
|
|
49
|
-
"@protobase/schema": "0.117.
|
|
50
|
-
"@protobase/server": "0.117.
|
|
51
|
-
"@protobase/ui": "0.117.
|
|
52
|
-
"@protobase/workflows": "0.117.
|
|
46
|
+
"@protobase/config": "0.117.6",
|
|
47
|
+
"@protobase/layout": "0.117.6",
|
|
48
|
+
"@protobase/query": "0.117.6",
|
|
49
|
+
"@protobase/schema": "0.117.6",
|
|
50
|
+
"@protobase/server": "0.117.6",
|
|
51
|
+
"@protobase/ui": "0.117.6",
|
|
52
|
+
"@protobase/workflows": "0.117.6",
|
|
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",
|
|
@@ -15,6 +15,7 @@ The sidebar, the user menu, the bottom bar on phones and the global search.
|
|
|
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.
|
|
@@ -186,6 +186,25 @@ mobile: {
|
|
|
186
186
|
|
|
187
187
|
Build the binary again. Each deploy of the app then reaches it: it downloads the files that changed in the background and runs them at its next start, or when it comes back to the foreground after 5 minutes or more away, on the page it showed and still signed in, behind its splash screen. Right after someone signs in, it switches before the app opens. It never switches while in use, within 5 minutes of leaving it, or over unsaved changes on the page, and it asks nobody to reload. A release that fails to start goes back to the files the binary carries. Releases come from a server of the same Protobase minor as the binary (below 1.0) and the same native code; a newer minor, or a Protobase release that changes the native code, needs a store release. See [the live updater](../reference/cli.md#the-live-updater).
|
|
188
188
|
|
|
189
|
+
### In a host app's own views
|
|
190
|
+
|
|
191
|
+
A native host app that embeds the shell and serves its files in its own views, rather than through the Capacitor web view, takes the same releases through the same checks with `HostedReleases` from `@protobase/mobile`'s iOS package. The host decides when a new release takes over:
|
|
192
|
+
|
|
193
|
+
```swift
|
|
194
|
+
let releases = try HostedReleases.make(
|
|
195
|
+
HostedReleaseSettings(apiOrigin: "https://shop.example.com", publicKey: publicKey, fingerprint: fingerprint, shellVersion: shellVersion, builtInOrder: builtInOrder),
|
|
196
|
+
builtInFiles: Bundle.main.url(forResource: "shell", withExtension: nil)!
|
|
197
|
+
).get()
|
|
198
|
+
|
|
199
|
+
serve(releases.currentFiles) // the release swapped in earlier, or the binary's own files
|
|
200
|
+
releases.check { outcome in // downloads and checks a new release in the background
|
|
201
|
+
if case .ready = outcome { /* swap it in when nothing is open */ }
|
|
202
|
+
}
|
|
203
|
+
if releases.swap() { serve(releases.currentFiles) }
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Each set of files a host serves takes its own `name`, so their releases stay apart. A swapped-in release that no longer passes its checks, or that an update of the app made older than the files it carries, gives way to the binary's own files at the next start.
|
|
207
|
+
|
|
189
208
|
## 8. What the stores accept
|
|
190
209
|
|
|
191
210
|
You submit the app under your own developer account, on both stores: Apple rejects apps from a template or app generation service unless the provider of the app's content submits them ([App Review Guidelines](https://developer.apple.com/app-store/review/guidelines/) 4.2.6).
|
|
@@ -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.
|