@synopackageland/ui 0.25.15 → 0.25.16
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/CHANGELOG.md +12 -1
- package/dist/components/app/app-layout/pageTitle.d.ts +6 -0
- package/dist/components/app/app-layout/shellBack.d.ts +4 -4
- package/dist/grid.js +97 -97
- package/dist/i18n/text.d.ts +1 -1
- package/dist/index.js +6060 -6046
- package/dist/json-preview/preview.js +4818 -4789
- package/dist/lib/nativeShell.d.ts +37 -5
- package/dist/reka-runtime.json +1 -1
- package/docs/adaptive-layout.md +40 -10
- package/package.json +97 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.25.16 (2026-11-14)
|
|
4
|
+
|
|
5
|
+
### Phone shell
|
|
6
|
+
|
|
7
|
+
- **Home in the browser launcher too, and drawn as Home.** Inside the Package Land launcher, the button now shows in the browser build as well as in the phone app.
|
|
8
|
+
- The browser launcher names the App's frame `synopkg-shell:1:close`, and a tap posts `{ v: 1, type: 'close' }` to the parent at the page's own origin.
|
|
9
|
+
- The button is now a home icon labelled Home, matching the launcher's own bars. It was a back arrow labelled "Back to apps".
|
|
10
|
+
- **Inside the launcher, every page leads with Home; Back is the system one.**
|
|
11
|
+
- A sub-page (AppLayout `back`, a `PageHeader` with `back`, a pushed page) shows Home before its title instead of the Back arrow.
|
|
12
|
+
- Each sub-page is a history entry of the App, so the system Back steps through sub-pages before the launcher leaves the App. Android's back and the browser's back or swipe both work this way.
|
|
13
|
+
- A pushed page keeps its single entry.
|
|
14
|
+
- Outside the launcher, sub-pages keep their Back arrow and take no entry.
|
|
4
15
|
|
|
5
16
|
## 0.25.15 (2026-11-13)
|
|
6
17
|
|
|
@@ -15,6 +15,11 @@ interface PageTitleEntry {
|
|
|
15
15
|
* AppLayout's own `title` says: the page and its way back are one row.
|
|
16
16
|
*/
|
|
17
17
|
back?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* The sub-page already owns a history entry (a pushed page), so the
|
|
20
|
+
* browser's Back reaches it without another one from the layout.
|
|
21
|
+
*/
|
|
22
|
+
history?: boolean;
|
|
18
23
|
}
|
|
19
24
|
/**
|
|
20
25
|
* The bar's page title (the phone bar, or the bar of a short screen). A
|
|
@@ -75,6 +80,7 @@ export declare function createPageTitleHost(main: Readonly<Ref<HTMLElement | nul
|
|
|
75
80
|
export declare function usePageTitle(element: Readonly<Ref<HTMLElement | null>>, title: () => string, options?: {
|
|
76
81
|
back?: () => (() => void) | undefined;
|
|
77
82
|
when?: () => boolean;
|
|
83
|
+
history?: boolean;
|
|
78
84
|
}): ComputedRef<boolean>;
|
|
79
85
|
/**
|
|
80
86
|
* Where a component's actions render on a phone: the phone bar or the FAB
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Home in the Package Land launcher, the phone app or its browser build
|
|
4
|
+
* (docs/adaptive-layout.md). On a root page AppLayout leads its phone bar with it. When that bar
|
|
5
5
|
* is not drawn (a tab page with `phone-bar-title="none"` and nothing else in
|
|
6
6
|
* the bar), the page's first row takes it instead: the first PageToolbar,
|
|
7
7
|
* SectionTabs row or PageHeader in the page, in document order, so it costs
|
|
8
8
|
* no row of its own. With no such row the bar is drawn for it.
|
|
9
9
|
*/
|
|
10
10
|
export interface ShellBackHost {
|
|
11
|
-
/** The page's first row should lead with
|
|
11
|
+
/** The page's first row should lead with Home. */
|
|
12
12
|
readonly wanted: Readonly<Ref<boolean>>;
|
|
13
13
|
/** The row that holds Back now (its registration), if any. */
|
|
14
14
|
readonly owner: Readonly<Ref<symbol | undefined>>;
|
|
@@ -19,5 +19,5 @@ export interface ShellBackHost {
|
|
|
19
19
|
export declare const APP_SHELL_BACK_KEY: InjectionKey<ShellBackHost>;
|
|
20
20
|
/** AppLayout's side: the rows that could hold Back, and the one that does. */
|
|
21
21
|
export declare function createShellBackHost(wanted: Readonly<Ref<boolean>>): ShellBackHost;
|
|
22
|
-
/** A row's side: true while this row leads with
|
|
22
|
+
/** A row's side: true while this row leads with Home. */
|
|
23
23
|
export declare function useShellBackRow(element: () => HTMLElement | null | undefined): ComputedRef<boolean>;
|