@wix/himalaya-cli 0.1888.0 → 0.1889.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/bindings.d.ts +5 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +48 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +17 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +12 -2
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{d4250730f37a006c948187a7640453097348fa24695586a3d0014c041511c896.bin → 0c2266c1d7d6e00c558adf2e3706e5ae360fdb6b5ca7663ed596d683a0f39f34.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +2275 -1615
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +5 -1
- package/guides/component-reference.json +11 -4
- package/guides/component-reference.md +20 -5
- package/guides/designing-himi-screens.md +48 -0
- package/guides/index.json +1 -1
- package/guides/sdk-reference.json +12 -5
- package/package.json +2 -2
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- Generated from the component schema with the component reference. Do not edit. -->
|
|
4
4
|
|
|
5
|
-
All
|
|
5
|
+
All 91 SDUI components. Read this page once before you write screens, then run
|
|
6
6
|
**one** `himi components A B C …` with every component you need: full props, what each callback
|
|
7
7
|
sends, the shapes its props name (`FilterChip`, `Action`…) and the modifiers. Do not grep or
|
|
8
8
|
slice `himi docs component-reference`.
|
|
@@ -152,6 +152,10 @@ with the `args` key they send (`onChange(value)`), and `+N` other optional props
|
|
|
152
152
|
## Live microphone waveform
|
|
153
153
|
|
|
154
154
|
- **LiveWaveform** activePath$, +4
|
|
155
|
+
|
|
156
|
+
## A shell-drawn piece inside composed chrome
|
|
157
|
+
|
|
158
|
+
- **ChromeOutlet** outlet!, +1
|
|
155
159
|
- **Marquee** +4
|
|
156
160
|
- **Timeline** entriesPath$, +1
|
|
157
161
|
- **PageControl** onChange, countPath$, currentIndexPath$, +2
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"_comment": "GENERATED by core/web-embed/authoring/gen-reference.mjs from core/ts/src/schema.ts — do not hand-edit. The schema is the source of truth; regenerate on schema changes.",
|
|
3
3
|
"schemaSource": "core/ts/src/schema.ts",
|
|
4
4
|
"bindingGrammar": "$service:<service>.<path> (worker state) · $item.<field> (list row) · $flag:<key> (feature flag) · $env:<key> (client environment — #1056). Bindings resolve in the text/value props marked 'binding-aware' below — INCLUDING Modifiers token refs — but only `background` and `border.color`, which are the two whose token a binding actually fills: a worker can drive per-item theming (e.g. a game board's per-square color), not just text. `shadow` is NOT binding-aware on any renderer, and a gradient is driven by its own `backgroundGradientPath` prop resolving to a gradient token NAME, not by a binding inside a token ref — so `shadow: { token: \"$item.x\" }` and `backgroundGradient: { token: \"$item.x\" }` keep the sentinel and silently lose the per-item styling. Colour slots split by LEVEL, not by component: inside modifiers a colour is a TokenRef OBJECT ({ token: \"…\" }), inside props it is a bare TokenName STRING — there is no modifiers.color or modifiers.tint (see the 'Token slots' section in component-reference.md). A few input props render the LITERAL and are NOT binding-aware — notably SearchField.placeholder and Chip.label (a bound collection row may use $item. because row values are substituted before decode; $service: is still not supported there); SearchField.value is live and binding-aware like other content props. Bindings also CANNOT target strict-enum fields (style, size, alignment, severity, presentation, contentMode, …) — those fail at render, not validation. $env: is client-resolved (no worker) and valid in modifiers.hiddenPath and FragmentSlot.casePath ONLY — keys reduceMotion/colorScheme/sizeClass/isRTL/keyboardVisible, e.g. hiddenPath:\"$env:reduceMotion\" or hiddenPath:\"$env:colorScheme==light\", casePath:\"$env:colorScheme\"; unknown key fails open (shown / defaultCase).",
|
|
5
|
-
"componentCount":
|
|
5
|
+
"componentCount": 91,
|
|
6
6
|
"notImplementedComponents": [
|
|
7
7
|
"Text",
|
|
8
8
|
"Icon",
|
|
@@ -1004,16 +1004,23 @@
|
|
|
1004
1004
|
],
|
|
1005
1005
|
"propsSource": "export interface LiveWaveformProps {\n /** \"audio_record\" (default; the only source). Any other value draws the flat baseline. */\n source?: string;\n /** Visible bar count. Default 32, clamped 8..128. */\n bars?: number;\n /** Bar colour token. Default \"accentPrimary\". */\n color?: TokenName;\n /** Height in pt/dp. Default 32. */\n height?: number;\n /** `$service:` binding → boolean. Live while truthy, baseline otherwise. Empty ⇒ live whenever a recording is active. */\n activePath?: string;\n}"
|
|
1006
1006
|
},
|
|
1007
|
+
{
|
|
1008
|
+
"name": "ChromeOutlet",
|
|
1009
|
+
"category": "A shell-drawn piece inside composed chrome",
|
|
1010
|
+
"propsType": "ChromeOutletProps",
|
|
1011
|
+
"bindings": [],
|
|
1012
|
+
"propsSource": "export interface ChromeOutletProps {\n /** `\"leading\"` | `\"title\"` | `\"trailing\"` | `\"search\"` | `\"items\"` (top bar) · `\"drawer_items\"` | `\"drawer_header\"` |\n * `\"drawer_footer\"` (drawer, sidebar) · `\"tab\"` | `\"tabs\"` (tab bar, phase 3: draw nothing until then). */\n outlet: string;\n /** Outlet `\"items\"` only: the toolbar placement to draw (`\"leading\"`, `\"trailing\"`, `\"bottom\"`, `\"overflow\"`…). */\n placement?: string;\n}"
|
|
1013
|
+
},
|
|
1007
1014
|
{
|
|
1008
1015
|
"name": "Marquee",
|
|
1009
|
-
"category": "
|
|
1016
|
+
"category": "A shell-drawn piece inside composed chrome",
|
|
1010
1017
|
"propsType": "MarqueeProps",
|
|
1011
1018
|
"bindings": [],
|
|
1012
1019
|
"propsSource": "export interface MarqueeProps {\n text?: string;\n durationMs?: number;\n style?: TokenName;\n color?: TokenName;\n}"
|
|
1013
1020
|
},
|
|
1014
1021
|
{
|
|
1015
1022
|
"name": "Timeline",
|
|
1016
|
-
"category": "
|
|
1023
|
+
"category": "A shell-drawn piece inside composed chrome",
|
|
1017
1024
|
"propsType": "TimelineProps",
|
|
1018
1025
|
"bindings": [
|
|
1019
1026
|
"entriesPath"
|
|
@@ -1022,7 +1029,7 @@
|
|
|
1022
1029
|
},
|
|
1023
1030
|
{
|
|
1024
1031
|
"name": "PageControl",
|
|
1025
|
-
"category": "
|
|
1032
|
+
"category": "A shell-drawn piece inside composed chrome",
|
|
1026
1033
|
"propsType": "PageControlProps",
|
|
1027
1034
|
"bindings": [
|
|
1028
1035
|
"countPath",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> GENERATED from `core/ts/src/schema.ts` by `core/web-embed/authoring/gen-reference.mjs`.
|
|
4
4
|
> The schema is the source of truth — regenerate on schema changes; do not hand-edit.
|
|
5
5
|
|
|
6
|
-
**
|
|
6
|
+
**91 core component types.** Every component body is `{ "package": "himalaya", "type": "<Type>", "props": { … } }`.
|
|
7
7
|
Binding grammar: `$service:<service>.<path>` (worker state) · `$item.<field>` (list row template) · `$flag:<key>` (feature flag) · `$env:<key>` (client environment — #1056).
|
|
8
8
|
Bindings resolve in the text/value props marked **binding-aware** below — **including two `Modifiers` token refs**, `background` and `border.color`, which are the only two whose token a binding actually fills: a worker can drive per-item **theming** (e.g. a game board's per-square color, `background: { token: "$item.bg" }`), not just text content. `shadow` and `backgroundGradient` are `TokenRef`s but are **not** binding-aware on any renderer — `shadow: { token: "$item.x" }` keeps the sentinel as a literal token name and silently loses the per-item styling, and a gradient is driven by its own `backgroundGradientPath` prop resolving to a gradient token NAME, not by a binding inside a token ref.
|
|
9
9
|
`$env:` is **client-resolved** (no worker) and valid in `modifiers.hiddenPath` and `FragmentSlot.casePath` **only** — keys `reduceMotion` / `colorScheme` / `sizeClass` / `isRTL` / `keyboardVisible` (an on-screen keyboard is up — `hiddenPath: "$env:keyboardVisible"` hides a header while typing), with an optional `==`/`!=` comparison (e.g. `hiddenPath: "$env:reduceMotion"`, `hiddenPath: "$env:colorScheme==light"`, `casePath: "$env:colorScheme"`). An unknown key fails open (shown / `defaultCase`).
|
|
@@ -102,9 +102,10 @@ See also **[Modifiers](#modifiers)** (the `modifiers` block) and **[Actions](#ac
|
|
|
102
102
|
| `RichTextField` | Formatted multiline field | `valuePath` |
|
|
103
103
|
| `VoiceNote` | Recorded-audio bubble (messenger design G4) | `waveformPath`, `durationMsPath`, `positionMsPath`, `statePath`, `deliveryPath`, `ratePath` |
|
|
104
104
|
| `LiveWaveform` | Live microphone waveform | `activePath` |
|
|
105
|
-
| `
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
105
|
+
| `ChromeOutlet` | A shell-drawn piece inside composed chrome | — |
|
|
106
|
+
| `Marquee` | A shell-drawn piece inside composed chrome | — |
|
|
107
|
+
| `Timeline` | A shell-drawn piece inside composed chrome | `entriesPath` |
|
|
108
|
+
| `PageControl` | A shell-drawn piece inside composed chrome | `countPath`, `currentIndexPath` |
|
|
108
109
|
| `WheelPicker` | Pickers & inputs | `optionsPath`, `selectedId` |
|
|
109
110
|
| `ColorPicker` | Pickers & inputs | `valuePath` |
|
|
110
111
|
| `OtpInput` | Pickers & inputs | `valuePath` |
|
|
@@ -123,7 +124,7 @@ See also **[Modifiers](#modifiers)** (the `modifiers` block) and **[Actions](#ac
|
|
|
123
124
|
|
|
124
125
|
These props are accepted by the schema and pass validation, but the named platform's renderer never reads them — they silently do nothing (no warning, no log). Prefer a prop NOT listed here, or drive the behaviour from a worker.
|
|
125
126
|
|
|
126
|
-
**Scope: 7 of
|
|
127
|
+
**Scope: 7 of 91 components, all of them android / web / ios-only** — every other component/platform pair reads every prop it decodes. The list splits in two, and the halves mean different things:
|
|
127
128
|
|
|
128
129
|
- **`category` (2: `MediaPlayer`, `TimeGrid`)** — the prop changes the component's *kind*. These genuinely are **not implemented**: an overlay renders always-visible inline, so the component does not do the job its name implies. Check the row's note for a working alternative.
|
|
129
130
|
- **`styling` (5: `Text`, `Icon`, `WebView`, `Video`, `PdfView`)** — the component itself **works**; only the listed prop is inert. Use the component; just do not depend on that one prop.
|
|
@@ -2000,6 +2001,20 @@ export interface LiveWaveformProps {
|
|
|
2000
2001
|
}
|
|
2001
2002
|
```
|
|
2002
2003
|
|
|
2004
|
+
### A shell-drawn piece inside composed chrome
|
|
2005
|
+
|
|
2006
|
+
#### ChromeOutlet
|
|
2007
|
+
|
|
2008
|
+
```ts
|
|
2009
|
+
export interface ChromeOutletProps {
|
|
2010
|
+
/** `"leading"` | `"title"` | `"trailing"` | `"search"` | `"items"` (top bar) · `"drawer_items"` | `"drawer_header"` |
|
|
2011
|
+
* `"drawer_footer"` (drawer, sidebar) · `"tab"` | `"tabs"` (tab bar, phase 3: draw nothing until then). */
|
|
2012
|
+
outlet: string;
|
|
2013
|
+
/** Outlet `"items"` only: the toolbar placement to draw (`"leading"`, `"trailing"`, `"bottom"`, `"overflow"`…). */
|
|
2014
|
+
placement?: string;
|
|
2015
|
+
}
|
|
2016
|
+
```
|
|
2017
|
+
|
|
2003
2018
|
#### Marquee
|
|
2004
2019
|
|
|
2005
2020
|
```ts
|
|
@@ -962,6 +962,54 @@ one of the first three.
|
|
|
962
962
|
|
|
963
963
|
---
|
|
964
964
|
|
|
965
|
+
## 7c. Chrome — when to keep the native bar, when to put a view in it, when to compose it
|
|
966
|
+
|
|
967
|
+
The top bar, the drawer and the sidebar have three levels.
|
|
968
|
+
Start at the lowest level that does the job: each level up gives the author more of the look and the platform less.
|
|
969
|
+
|
|
970
|
+
| Level | What you write | Who draws the bar | Use it when |
|
|
971
|
+
| --- | --- | --- | --- |
|
|
972
|
+
| **L0 — fields** | `topBar.items`, `title`, `subtitle`, `logo`, `searchable`, `titleMenu`… | The platform's own bar | Almost always. Every rule (Back, the discard guard, More Actions, badges, large titles, glass) is applied for you |
|
|
973
|
+
| **L1 — a view in the native bar** | `topBar.accessory` (a row under the title row), a toolbar item's `content` on any placement, `navigation.topBarAccessory` | The platform's bar, with your view inside | You need one control the fields cannot express: filter chips or a segmented control under the title, a cart icon with its total |
|
|
974
|
+
| **L2 — composed** | `topBar.content` / `navigation.topBarContent` (and `drawer.content` / `sidebar.content`), with `ChromeOutlet` nodes | The shell draws the container and the outlets; your components fill the rest | The bar itself must look different: a status chip beside the title, a brand row, a two-line bar. The drawer gets an author card between its header and its rows |
|
|
975
|
+
|
|
976
|
+
**Keep the declarative fields when you compose.** An outlet draws the field it names with its L0 code:
|
|
977
|
+
`leading` draws Back / Close / Menu (rule R1, the discard guard), `title` draws the title, subtitle, logo and
|
|
978
|
+
title menu, `trailing` draws the items and More Actions, `search` the `searchable` field, `items` one placement.
|
|
979
|
+
In a drawer or rail, `drawer_header`, `drawer_items` and `drawer_footer` draw the declarative header, rows and
|
|
980
|
+
footer. A binary older than the composable-chrome release ignores `content` and draws the same fields as L0, so a
|
|
981
|
+
composed area without them is empty there (`himi validate`: `chrome_content_new_binaries_only`).
|
|
982
|
+
|
|
983
|
+
**What L2 gives up** (`himi validate` names it once per composed bar, `chrome_l2_native_tradeoffs`):
|
|
984
|
+
|
|
985
|
+
- **iOS:** the system large title and its collapse into the bar (read `$chrome:collapsed` to draw a collapsing
|
|
986
|
+
header), the system glass on the bar itself (the `material: "glass"` modifier is close, not the same), and the
|
|
987
|
+
OS-drawn title (the `title` outlet draws it with the system font and still sets the OS title for the back label
|
|
988
|
+
and the app switcher).
|
|
989
|
+
- **Android:** the Material 3 scrolled-colour change (the container keeps the scrolled fill).
|
|
990
|
+
- **macOS:** the window toolbar stays the system's. The `leading`, `title` and `trailing` outlets are drawn in the
|
|
991
|
+
toolbar, and the rest of a composed bar is a band under it; an L1 item `content` is drawn inside the toolbar item.
|
|
992
|
+
|
|
993
|
+
L1 gives up none of these.
|
|
994
|
+
|
|
995
|
+
**Shell context without a worker.** Inside chrome content, `$chrome:` reads what the shell knows, on the first
|
|
996
|
+
frame and with no worker: `selectedTab`, `depth`, `canGoBack`, `presented` (`""`, `"sheet"`, `"cover"`), `title`,
|
|
997
|
+
`subtitle`, `collapsed`, `keyboard`, `surface` and `tabBadge.<id>`. It is a Boolean, a number or a string, never a
|
|
998
|
+
scroll offset. Outside chrome content it does not resolve (`chrome_binding_outside_chrome` is an error). Live
|
|
999
|
+
values come from the screen's own worker (a screen's `topBar.content`) or the nav worker (app-wide content).
|
|
1000
|
+
|
|
1001
|
+
**Rules that keep a composed bar usable** (`himi validate`):
|
|
1002
|
+
|
|
1003
|
+
- A screen presented as a sheet or cover keeps a way out the member can see and tap: a `leading` outlet that is not
|
|
1004
|
+
hidden, or an enabled item with `role: "cancel"` and an `onTap` that the bar draws (a `trailing` outlet, or an
|
|
1005
|
+
`items` outlet of its placement) (`chrome_composed_bar_no_exit` is an error).
|
|
1006
|
+
- One `leading` and one `title` outlet per bar. An `items` outlet names its `placement`; with none it draws the
|
|
1007
|
+
trailing items, so do not add a `trailing` outlet as well.
|
|
1008
|
+
- Keep chrome content small (150 nodes). A drawer body that needs its own logic is a hosted screen
|
|
1009
|
+
(`drawer.contentScreenId`), not a large inline tree.
|
|
1010
|
+
|
|
1011
|
+
---
|
|
1012
|
+
|
|
965
1013
|
## 8. Design-kit awareness — compose so a kit can restyle you
|
|
966
1014
|
|
|
967
1015
|
Screens should look right under **any** adopted kit (`liquid-glass`, `material`, `dark-luxe`, … —
|
package/guides/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_comment": "AUTO-GENERATED by tools/authoring-kit/bundle.mjs — DO NOT EDIT. Regenerate with: npm run authoring:gen",
|
|
3
3
|
"schemaStamp": {
|
|
4
|
-
"componentCount":
|
|
4
|
+
"componentCount": 91,
|
|
5
5
|
"schemaSource": "core/ts/src/schema.ts"
|
|
6
6
|
},
|
|
7
7
|
"portalUrl": "https://apps.wix.com/_api/himi-serve/docs",
|
|
@@ -1562,7 +1562,7 @@
|
|
|
1562
1562
|
"name": "NavigationConfig",
|
|
1563
1563
|
"kind": "interface",
|
|
1564
1564
|
"jsdoc": "/** Per-app navigation/deep-link config, served OTA at GET /v1/app-config/:appName. */",
|
|
1565
|
-
"decl": "export interface NavigationConfig {\n /** Tab-bar structure (which tabs; their icons/labels/badges). */\n tabBar?: TabBarConfig;\n /** Slide-in drawer / hamburger-menu destinations. */\n drawer?: DrawerConfig;\n /** Navigation chrome the shell draws.\n * Omitted ⇒ \"bottomTabs\". The shell (not the descriptor) reads this. */\n navKind?: NavKind;\n /** Destinations for \"sidebar\" mode.\n * Absent ⇒ the shell derives the rail from `tabBar.items`. */\n sidebar?: SidebarConfig;\n /** App-level default top bar; a per-screen\n * `ScreenDescriptor.topBar` fully replaces it (override, not merge), with one exception: a screen bar with no\n * leading item (and no `leading` override) still gets this default's leading AVATAR item(s)\n * (`applyTopBarDefault`). Its `actions` and every other field stay the screen's own. */\n topBarDefault?: TopBarConfig;\n /** The post-OS-splash brand surface (see `SplashConfig`). Absent / not enabled\n * ⇒ today's behavior. Operational per (live-flippable). */\n splash?: SplashConfig;\n /** App-level default locale. Operational per so a Hebrew (or Spanish)\n * branded app can pin RTL/l10n OTA without a launch flag. `default` is a\n * BCP-47 primary subtag; clients coerce unknown tags rather than failing the\n * envelope. `pin: true` skips the device/browser language; in-app `locale.set`\n * still wins. Absent ⇒ today's device-then-en behavior. */\n locale?: LocaleConfig;\n /** Effective orientations, resolved INSIDE\n * the binary's build-time envelope (config.ts `orientationEnvelope`). The\n * envelope is the ceiling and can never be OTA (iOS reads the plist before\n * any app code runs); this narrows within it. Always intersected with the\n * envelope — it can never widen it. Absent/empty ⇒ the envelope itself. */\n orientation?: OrientationConfig;\n /** Per-surface nav projection, keyed by catalog\n * surface id (`phone` | `tablet` | `desktop` | `mac` | `watch` | `wear` | `rn`).\n * Keyed the way `orientation` is keyed by device family and narrowed the same\n * way: a key outside the app's `platforms.json` envelope is DROPPED, never\n * honored (see `resolveSurfaceNav`). Absent key ⇒ that surface uses the default\n * projection, so an app that never thinks about surfaces is unaffected. */\n surfaces?: Record<string, SurfaceNavConfig>;\n /** The APP-LEVEL nav worker\n * that feeds every `*Path` binding on `NavTabItem` / `DrawerItem` /\n * `TopBarAction`. App-level, not a screen's worker, because chrome outlives\n * every screen: a cart badge must survive leaving the cart, and a flag-hidden\n * tab must stay hidden three pushes deep in another stack. Absent ⇒ paths stay\n * unresolved and the literals render — the worker enriches, it never gates. */\n navLogicBundle?: LogicBundleRef;\n /** Which nav badges ALSO drive the OS app-icon\n * badge. Each entry is `\"<kind>:<id>\"` (`tab` | `drawer` | `topBarAction`, the\n * spelling `navKey` uses); the icon shows the SUM of those slots' resolved counts.\n * Empty/absent ⇒ no mirroring. An entry naming a slot this build does not have is\n * ignored, never a blanked badge. Requires the `push` capability — `defineApp`\n * rejects the combination, because the badge would be set and never shown. */\n appIconBadgeSources?: string[];\n /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */\n streamPolicy?: StreamPolicy;\n /** A site shell's URL space. A push tap, app link or\n * custom-scheme link whose URL is an https page on one of `site.origins` opens the\n * screen owning its path, and that screen's WebView loads the full URL. Absent ⇒\n * links resolve as before. Build it with `siteNavConfig()` from\n * `@himalaya/core/site-shell`; resolution is `resolveSiteLink()`. */\n site?: SiteNavConfig;\n /** amendment \"top-bar gap items\" — app-wide logo for tab-stack roots. */\n topBarLogo?: TopBarLogo;\n /** amendment \"Title, leading and trailing completion\" — app-wide title alignment for tab-stack roots:\n * \"\" / \"auto\" (default) | \"leading\" | \"center\". The twin of `TopBarConfig.titleAlign`, because a screen's own\n * `topBar` fully replaces `topBarDefault`. Unknown values read as \"auto\". */\n topBarTitleAlign?: string;\n /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav\n * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing\n * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);\n * identical consecutive alerts show once. An inline `AlertDialog` component never enters the\n * queue. Absent ⇒ today's behaviour. */\n presentationQueue?: boolean;\n scheme: string;\n deepLinkPatterns: DeepLinkPattern[];\n linkableScreens: LinkableScreen[];\n}",
|
|
1565
|
+
"decl": "export interface NavigationConfig {\n /** Tab-bar structure (which tabs; their icons/labels/badges). */\n tabBar?: TabBarConfig;\n /** Slide-in drawer / hamburger-menu destinations. */\n drawer?: DrawerConfig;\n /** Navigation chrome the shell draws.\n * Omitted ⇒ \"bottomTabs\". The shell (not the descriptor) reads this. */\n navKind?: NavKind;\n /** Destinations for \"sidebar\" mode.\n * Absent ⇒ the shell derives the rail from `tabBar.items`. */\n sidebar?: SidebarConfig;\n /** App-level default top bar; a per-screen\n * `ScreenDescriptor.topBar` fully replaces it (override, not merge), with one exception: a screen bar with no\n * leading item (and no `leading` override) still gets this default's leading AVATAR item(s)\n * (`applyTopBarDefault`). Its `actions` and every other field stay the screen's own. */\n topBarDefault?: TopBarConfig;\n /** The post-OS-splash brand surface (see `SplashConfig`). Absent / not enabled\n * ⇒ today's behavior. Operational per (live-flippable). */\n splash?: SplashConfig;\n /** App-level default locale. Operational per so a Hebrew (or Spanish)\n * branded app can pin RTL/l10n OTA without a launch flag. `default` is a\n * BCP-47 primary subtag; clients coerce unknown tags rather than failing the\n * envelope. `pin: true` skips the device/browser language; in-app `locale.set`\n * still wins. Absent ⇒ today's device-then-en behavior. */\n locale?: LocaleConfig;\n /** Effective orientations, resolved INSIDE\n * the binary's build-time envelope (config.ts `orientationEnvelope`). The\n * envelope is the ceiling and can never be OTA (iOS reads the plist before\n * any app code runs); this narrows within it. Always intersected with the\n * envelope — it can never widen it. Absent/empty ⇒ the envelope itself. */\n orientation?: OrientationConfig;\n /** Per-surface nav projection, keyed by catalog\n * surface id (`phone` | `tablet` | `desktop` | `mac` | `watch` | `wear` | `rn`).\n * Keyed the way `orientation` is keyed by device family and narrowed the same\n * way: a key outside the app's `platforms.json` envelope is DROPPED, never\n * honored (see `resolveSurfaceNav`). Absent key ⇒ that surface uses the default\n * projection, so an app that never thinks about surfaces is unaffected. */\n surfaces?: Record<string, SurfaceNavConfig>;\n /** The APP-LEVEL nav worker\n * that feeds every `*Path` binding on `NavTabItem` / `DrawerItem` /\n * `TopBarAction`. App-level, not a screen's worker, because chrome outlives\n * every screen: a cart badge must survive leaving the cart, and a flag-hidden\n * tab must stay hidden three pushes deep in another stack. Absent ⇒ paths stay\n * unresolved and the literals render — the worker enriches, it never gates. */\n navLogicBundle?: LogicBundleRef;\n /** Which nav badges ALSO drive the OS app-icon\n * badge. Each entry is `\"<kind>:<id>\"` (`tab` | `drawer` | `topBarAction`, the\n * spelling `navKey` uses); the icon shows the SUM of those slots' resolved counts.\n * Empty/absent ⇒ no mirroring. An entry naming a slot this build does not have is\n * ignored, never a blanked badge. Requires the `push` capability — `defineApp`\n * rejects the combination, because the badge would be set and never shown. */\n appIconBadgeSources?: string[];\n /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */\n streamPolicy?: StreamPolicy;\n /** A site shell's URL space. A push tap, app link or\n * custom-scheme link whose URL is an https page on one of `site.origins` opens the\n * screen owning its path, and that screen's WebView loads the full URL. Absent ⇒\n * links resolve as before. Build it with `siteNavConfig()` from\n * `@himalaya/core/site-shell`; resolution is `resolveSiteLink()`. */\n site?: SiteNavConfig;\n /** amendment \"top-bar gap items\" — app-wide logo for tab-stack roots. */\n topBarLogo?: TopBarLogo;\n /** amendment \"Title, leading and trailing completion\" — app-wide title alignment for tab-stack roots:\n * \"\" / \"auto\" (default) | \"leading\" | \"center\". The twin of `TopBarConfig.titleAlign`, because a screen's own\n * `topBar` fully replaces `topBarDefault`. Unknown values read as \"auto\". */\n topBarTitleAlign?: string;\n /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav\n * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing\n * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);\n * identical consecutive alerts show once. An inline `AlertDialog` component never enters the\n * queue. Absent ⇒ today's behaviour. */\n presentationQueue?: boolean;\n /** The app-wide composed top bar: the default for tab-stack roots and for screens with no\n * `topBar`. Drawn once and kept across pushes (only its outlets read the new top screen). A screen's own\n * `topBar.content` replaces it while that screen is on top. Binds to the nav worker, `$chrome:` and literals. */\n topBarContent?: Component;\n /** The app-wide accessory row under the title row. A screen's `topBar.accessory` replaces it. */\n topBarAccessory?: Component;\n scheme: string;\n deepLinkPatterns: DeepLinkPattern[];\n linkableScreens: LinkableScreen[];\n}",
|
|
1566
1566
|
"verificationChecked": true
|
|
1567
1567
|
},
|
|
1568
1568
|
{
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
"name": "DrawerConfig",
|
|
1591
1591
|
"kind": "interface",
|
|
1592
1592
|
"jsdoc": "/** Drawer / hamburger-menu structure config. */",
|
|
1593
|
-
"decl": "export interface DrawerConfig {\n items: DrawerItem[];\n /** Optional identity/branding header pinned above the items. Declarative +\n * OTA-driven; a shell MAY override its fields from live state at runtime. */\n header?: DrawerHeader;\n /** Optional bottom profile footer (avatar + name + accent pill/badge). */\n footer?: DrawerFooter;\n /** When set, the drawer panel body is a\n * Tier-5 worker-driven SDUI screen instead of `items`. Override, not merge:\n * `items`/`header`/`footer` are ignored while it renders. The shell still owns\n * the panel, scrim, swipe and open/close; the declarative parts stay the\n * fallback when the descriptor can't load. */\n contentScreenId?: string;\n}",
|
|
1593
|
+
"decl": "export interface DrawerConfig {\n items: DrawerItem[];\n /** Optional identity/branding header pinned above the items. Declarative +\n * OTA-driven; a shell MAY override its fields from live state at runtime. */\n header?: DrawerHeader;\n /** Optional bottom profile footer (avatar + name + accent pill/badge). */\n footer?: DrawerFooter;\n /** When set, the drawer panel body is a\n * Tier-5 worker-driven SDUI screen instead of `items`. Override, not merge:\n * `items`/`header`/`footer` are ignored while it renders. The shell still owns\n * the panel, scrim, swipe and open/close; the declarative parts stay the\n * fallback when the descriptor can't load. */\n contentScreenId?: string;\n /** An INLINE panel body: a component tree in the config, with no descriptor and no worker of its\n * own. Binds to the nav worker, `$chrome:` and literals; `drawer_header` / `drawer_items` / `drawer_footer`\n * outlets draw the declarative parts. Fallback chain: `contentScreenId` → `content` → `items`/`header`/`footer`. */\n content?: Component;\n}",
|
|
1594
1594
|
"verificationChecked": true
|
|
1595
1595
|
},
|
|
1596
1596
|
{
|
|
@@ -1604,14 +1604,14 @@
|
|
|
1604
1604
|
"name": "SidebarConfig",
|
|
1605
1605
|
"kind": "interface",
|
|
1606
1606
|
"jsdoc": "/** Sidebar / navigation-rail structure.\n * Reuses NavTabItem (each entry roots its own stack, like a tab). */",
|
|
1607
|
-
"decl": "export interface SidebarConfig {\n items: NavTabItem[];\n /** Optional identity/branding header pinned at the rail top (reuses the\n * drawer header shape). */\n header?: DrawerHeader;\n /** When set, the rail body is a Tier-5\n * worker-driven SDUI screen instead of `items`. Override, not merge: `items`\n * and `header` are ignored while it renders (mirroring how\n * `ScreenDescriptor.topBar` fully replaces `NavigationConfig.topBarDefault`).\n * The shell still owns the rail container, width and selection; `items` stay\n * the fallback when the descriptor can't load. */\n contentScreenId?: string;\n}",
|
|
1607
|
+
"decl": "export interface SidebarConfig {\n items: NavTabItem[];\n /** Optional identity/branding header pinned at the rail top (reuses the\n * drawer header shape). */\n header?: DrawerHeader;\n /** When set, the rail body is a Tier-5\n * worker-driven SDUI screen instead of `items`. Override, not merge: `items`\n * and `header` are ignored while it renders (mirroring how\n * `ScreenDescriptor.topBar` fully replaces `NavigationConfig.topBarDefault`).\n * The shell still owns the rail container, width and selection; `items` stay\n * the fallback when the descriptor can't load. */\n contentScreenId?: string;\n /** An INLINE rail body: a component tree in the config, with no descriptor and no worker of its\n * own. `drawer_header` / `drawer_items` outlets draw the declarative parts. Fallback chain:\n * `contentScreenId` → `content` → `items`/`header`. */\n content?: Component;\n}",
|
|
1608
1608
|
"verificationChecked": true
|
|
1609
1609
|
},
|
|
1610
1610
|
{
|
|
1611
1611
|
"name": "TopBarConfig",
|
|
1612
1612
|
"kind": "interface",
|
|
1613
1613
|
"jsdoc": "/** The shell-owned top bar. The shell paints\n * `ScreenDescriptor.title` and computes the leading slot (back XOR menu) from\n * nav depth; this adds the trailing action cluster + leading/style overrides.\n * Lives on `ScreenDescriptor.topBar` (authoritative) and\n * `NavigationConfig.topBarDefault` (app-level fallback, fully replaced — except that a screen bar with no\n * leading item keeps the default's leading avatar). */",
|
|
1614
|
-
"decl": "export interface TopBarConfig {\n /** Trailing (right-edge) actions, authored order = leading→trailing. */\n actions?: TopBarAction[];\n /** Leading override: \"\" | \"auto\" (shell-computed) | \"back\" | \"menu\" | \"none\". */\n leading?: string;\n /** Content-under-bar: \"\" | \"opaque\" (default) | \"transparent\" | \"immersive\". */\n style?: string;\n /** Toolbar items (drawn after the legacy `actions`). */\n items?: ToolbarItem[];\n /** \"\" / \"automatic\" (default) | \"large\" | \"inline\" | \"hidden\". `\"hidden\"` draws no title and keeps\n * the title as the screen name for screen readers (amendment \"Title, leading and trailing completion\"). */\n titleDisplay?: string;\n /** The literal subtitle (the fallback for `subtitlePath`). */\n subtitle?: string;\n /** \"\" / \"visible\" (default) | \"hidden\". */\n visibility?: string;\n /** Bar fill token. iOS 26 keeps the system glass (amendment R12). */\n background?: TokenRef;\n /** \"Native top-bar search\" — the screen's search, drawn by whoever draws its bar natively (an embed's host\n * today: iOS `himalayaEmbedSearch`, Android `ProvideHimalayaEmbedSearch`). Read per screen only. */\n searchable?: SearchableConfig;\n /** amendment — the screen's logo; overrides `NavigationConfig.topBarLogo`. */\n logo?: TopBarLogo;\n /** amendment — the title as a menu. */\n titleMenu?: TopBarTitleMenu;\n /** amendment — live subtitle (`$service:`); `subtitle` is the fallback. */\n subtitlePath?: string;\n /** amendment — \"\" / \"pinned\" (default) | \"hide_on_scroll\". */\n scrollBehavior?: string;\n /** amendment — truthy ⇒ leaving the presentation asks to discard. Unset/unresolved ⇒ false. */\n dirtyPath?: string;\n /** amendment — live `visibility` (`$service:`). Resolves to \"visible\" | \"hidden\";\n * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */\n visibilityPath?: string;\n /** amendment \"Title, leading and trailing completion\" — \"\" / \"auto\" (default) | \"leading\" | \"center\".\n * Unknown values read as \"auto\". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */\n titleAlign?: string;\n /** amendment \"Bar types, styles, search, save and modes\" — the tone of the cover image under an\n * `style: \"immersive\"` bar: \"\" / \"dark\" (default, white icons) | \"light\" (`#1A1B20` icons). Unknown ⇒ \"dark\". */\n coverTone?: string;\n /** amendment \"Bar types, styles, search, save and modes\" (cover to solid) — a transparent or immersive bar stays\n * clear until this edge, then fades to its fill over 24pt. Unset ⇒ the 0→8pt ramp of a transparent bar. */\n solidAfter?: TopBarScrollEdge;\n /** amendment \"Bar types, styles, search, save and modes\" — selection mode. */\n selection?: TopBarSelection;\n /** amendment \"Bar types, styles, search, save and modes\" — edit mode. Uses `dirtyPath`. */\n edit?: TopBarEdit;\n}",
|
|
1614
|
+
"decl": "export interface TopBarConfig {\n /** Trailing (right-edge) actions, authored order = leading→trailing. */\n actions?: TopBarAction[];\n /** Leading override: \"\" | \"auto\" (shell-computed) | \"back\" | \"menu\" | \"none\". */\n leading?: string;\n /** Content-under-bar: \"\" | \"opaque\" (default) | \"transparent\" | \"immersive\". */\n style?: string;\n /** Toolbar items (drawn after the legacy `actions`). */\n items?: ToolbarItem[];\n /** \"\" / \"automatic\" (default) | \"large\" | \"inline\" | \"hidden\". `\"hidden\"` draws no title and keeps\n * the title as the screen name for screen readers (amendment \"Title, leading and trailing completion\"). */\n titleDisplay?: string;\n /** The literal subtitle (the fallback for `subtitlePath`). */\n subtitle?: string;\n /** \"\" / \"visible\" (default) | \"hidden\". */\n visibility?: string;\n /** Bar fill token. iOS 26 keeps the system glass (amendment R12). */\n background?: TokenRef;\n /** \"Native top-bar search\" — the screen's search, drawn by whoever draws its bar natively (an embed's host\n * today: iOS `himalayaEmbedSearch`, Android `ProvideHimalayaEmbedSearch`). Read per screen only. */\n searchable?: SearchableConfig;\n /** amendment — the screen's logo; overrides `NavigationConfig.topBarLogo`. */\n logo?: TopBarLogo;\n /** amendment — the title as a menu. */\n titleMenu?: TopBarTitleMenu;\n /** amendment — live subtitle (`$service:`); `subtitle` is the fallback. */\n subtitlePath?: string;\n /** amendment — \"\" / \"pinned\" (default) | \"hide_on_scroll\". */\n scrollBehavior?: string;\n /** amendment — truthy ⇒ leaving the presentation asks to discard. Unset/unresolved ⇒ false. */\n dirtyPath?: string;\n /** amendment — live `visibility` (`$service:`). Resolves to \"visible\" | \"hidden\";\n * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */\n visibilityPath?: string;\n /** amendment \"Title, leading and trailing completion\" — \"\" / \"auto\" (default) | \"leading\" | \"center\".\n * Unknown values read as \"auto\". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */\n titleAlign?: string;\n /** amendment \"Bar types, styles, search, save and modes\" — the tone of the cover image under an\n * `style: \"immersive\"` bar: \"\" / \"dark\" (default, white icons) | \"light\" (`#1A1B20` icons). Unknown ⇒ \"dark\". */\n coverTone?: string;\n /** amendment \"Bar types, styles, search, save and modes\" (cover to solid) — a transparent or immersive bar stays\n * clear until this edge, then fades to its fill over 24pt. Unset ⇒ the 0→8pt ramp of a transparent bar. */\n solidAfter?: TopBarScrollEdge;\n /** amendment \"Bar types, styles, search, save and modes\" — selection mode. */\n selection?: TopBarSelection;\n /** amendment \"Bar types, styles, search, save and modes\" — edit mode. Uses `dirtyPath`. */\n edit?: TopBarEdit;\n /** The bar's composed content: components plus `ChromeOutlet` nodes (`leading`, `title`,\n * `trailing`, `search`, `items`) that draw the declarative fields above with their L0 rules. The shell keeps the\n * container, visibility, `scrollBehavior`, the push/pop transition and the reading order. Replaces\n * `NavigationConfig.topBarContent` while this screen is on top. Needs a binary with phase 2; older\n * binaries draw the L0 bar, so keep the declarative fields. */\n content?: Component;\n /** A row under the title row, inside the bar's fill and glass, hidden with the bar\n * (a segmented control, filter chips, a scope bar). */\n accessory?: Component;\n}",
|
|
1615
1615
|
"verificationChecked": true
|
|
1616
1616
|
},
|
|
1617
1617
|
{
|
|
@@ -1688,7 +1688,7 @@
|
|
|
1688
1688
|
"name": "ToolbarItem",
|
|
1689
1689
|
"kind": "interface",
|
|
1690
1690
|
"jsdoc": "/** One top-bar item. Test id `toolbar.<id>`\n * (`toolbar-<id>` on web and React Native). Every tap carries an existing `Action`\n *. Bindings are `$service:` sentinels resolved by the screen host. */",
|
|
1691
|
-
"decl": "export interface ToolbarItem {\n id: string;\n /** \"leading\" | \"trailing\" (default) | \"principal\" | \"bottom\" | \"keyboard\" | \"overflow\". */\n placement?: string;\n /** Text button when there is no icon; the accessible name always. */\n label?: string;\n icon?: IconRef;\n onTap?: Action;\n /** \"\" | \"cancel\" | \"confirm\" | \"destructive\". */\n role?: string;\n disabled?: boolean;\n /** OR'd with `disabled`. For Save, bind \"nothing to save\" (e.g. `cannotSave`), never the dirty flag. */\n disabledPath?: string;\n /** Non-empty ⇒ the item opens a menu. */\n menu?: MenuItem[];\n /** \"principal\" only
|
|
1691
|
+
"decl": "export interface ToolbarItem {\n id: string;\n /** \"leading\" | \"trailing\" (default) | \"principal\" | \"bottom\" | \"keyboard\" | \"overflow\". */\n placement?: string;\n /** Text button when there is no icon; the accessible name always. */\n label?: string;\n icon?: IconRef;\n onTap?: Action;\n /** \"\" | \"cancel\" | \"confirm\" | \"destructive\". */\n role?: string;\n disabled?: boolean;\n /** OR'd with `disabled`. For Save, bind \"nothing to save\" (e.g. `cannotSave`), never the dirty flag. */\n disabledPath?: string;\n /** Non-empty ⇒ the item opens a menu. */\n menu?: MenuItem[];\n /** L1 — a custom view on ANY placement, sized to the platform's item metrics. The item keeps its\n * `onTap`, `menu`, `role`, `disabled` and `badge`; `label` stays the accessible name. (Before :\n * `\"principal\"` only, a custom title view.) */\n content?: Component;\n /** Truthy ⇒ a progress indicator replaces the item. Unset/unresolved ⇒ false. */\n loadingPath?: string;\n /** Set ⇒ the item draws an avatar; `label` stays the accessible name (\"Profile\" by default). */\n avatar?: ToolbarAvatar;\n /** Live label; `label` is the fallback. */\n labelPath?: string;\n /** Long press (touch), secondary click (pointer) or the \"More options\" accessibility action.\n * Never also fires `onTap`; ignored while disabled or loading, in More Actions, and with a `menu`. */\n onLongPress?: Action;\n /** amendment \"Title, leading and trailing completion\" — dot or count overlay. Ignored on an\n * \"overflow\" item. `badge.countLabel` is the noun the shell speaks after the count. */\n badge?: NavBadge;\n /** amendment \"Top-bar avatar strip\" — set ⇒ the item draws overlapping circular avatars\n * instead of its icon or label: size 20 and 3 visible plus a \"+N\" bubble unless set. `label` stays the\n * accessible name (\"Members, 5\"). The strip's `caption`, `ringGradient` and `onTap` are ignored in the bar:\n * the item's `onTap` and `onLongPress` fire. `avatarsPath` resolves on the screen, like the other\n * top-bar bindings. An \"overflow\" item draws its label row instead. */\n avatarStrip?: AvatarStripProps;\n /** amendment \"Bar types, styles, search, save and modes\" — with `loadingPath` truthy for 30 s the shell\n * stops the spinner and dispatches this; the worker shows the failed state. Unset ⇒ the spinner stays.\n * \"Still saving…\" shows under the bar at 10 s either way. */\n onLoadingTimeout?: Action;\n}",
|
|
1692
1692
|
"verificationChecked": true
|
|
1693
1693
|
},
|
|
1694
1694
|
{
|
|
@@ -1705,6 +1705,13 @@
|
|
|
1705
1705
|
"decl": "export interface TopBarTitleMenu {\n items?: MenuItem[];\n selectedId?: string;\n /** `selectedId` is the fallback. */\n selectedIdPath?: string;\n /** Default \"<title>, switch\". */\n accessibilityLabel?: string;\n}",
|
|
1706
1706
|
"verificationChecked": true
|
|
1707
1707
|
},
|
|
1708
|
+
{
|
|
1709
|
+
"name": "Component",
|
|
1710
|
+
"kind": "interface",
|
|
1711
|
+
"jsdoc": "",
|
|
1712
|
+
"decl": "export interface Component {\n id: string;\n body: ComponentBody;\n modifiers?: Modifiers;\n minVersion?: number;\n}",
|
|
1713
|
+
"verificationChecked": true
|
|
1714
|
+
},
|
|
1708
1715
|
{
|
|
1709
1716
|
"name": "LocaleConfig",
|
|
1710
1717
|
"kind": "interface",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1889.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "2393826bd6be5daa3bd4864b5b2383ba1a881f45e2a1822ec456f406"
|
|
86
86
|
}
|