@wix/himalaya-cli 0.1887.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.
Files changed (60) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +2 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +10 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/bindings.d.ts +5 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +48 -1
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +17 -2
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +12 -2
  8. package/dist/browser-plane/assets.json +5 -5
  9. package/dist/browser-plane/preview-deferred/{d4250730f37a006c948187a7640453097348fa24695586a3d0014c041511c896.bin → 0c2266c1d7d6e00c558adf2e3706e5ae360fdb6b5ca7663ed596d683a0f39f34.bin} +1 -1
  10. package/dist/browser-plane/sw.js +7 -7
  11. package/dist/cli.mjs +60571 -59752
  12. package/dist/preview-assets.generated.bin +0 -0
  13. package/guides/component-index.md +5 -1
  14. package/guides/component-reference.json +11 -4
  15. package/guides/component-reference.md +20 -5
  16. package/guides/designing-himi-screens.md +48 -0
  17. package/guides/himi-json-output.md +23 -0
  18. package/guides/index.json +1 -1
  19. package/guides/sdk-reference.json +12 -5
  20. package/package.json +2 -2
  21. package/templates/bare-fashion/tier5-src/_shared/member-account-routes.ts +26 -3
  22. package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  23. package/templates/beauty-salon/tier5-src/_shared/member-account-routes.ts +26 -3
  24. package/templates/beauty-salon/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  25. package/templates/branded-lite/tier5-src/_shared/member-account-routes.ts +26 -3
  26. package/templates/branded-lite/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  27. package/templates/brandy/tier5-src/_shared/member-account-routes.ts +26 -3
  28. package/templates/brandy/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  29. package/templates/community-club/tier5-src/_shared/member-account-routes.ts +26 -3
  30. package/templates/community-club/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  31. package/templates/conference/tier5-src/_shared/member-account-routes.ts +26 -3
  32. package/templates/conference/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  33. package/templates/events-meetups/tier5-src/_shared/member-account-routes.ts +26 -3
  34. package/templates/events-meetups/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  35. package/templates/fitness-gym/tier5-src/_shared/member-account-routes.ts +26 -3
  36. package/templates/fitness-gym/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  37. package/templates/gym-fitness/tier5-src/_shared/member-account-routes.ts +26 -3
  38. package/templates/gym-fitness/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  39. package/templates/medical-services/tier5-src/_shared/member-account-routes.ts +26 -3
  40. package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  41. package/templates/nonprofit-cause/tier5-src/_shared/member-account-routes.ts +26 -3
  42. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  43. package/templates/personal-fitness-trainer/tier5-src/_shared/member-account-routes.ts +26 -3
  44. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  45. package/templates/podcast-creator/tier5-src/_shared/member-account-routes.ts +26 -3
  46. package/templates/podcast-creator/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  47. package/templates/portfolio-creative/tier5-src/_shared/member-account-routes.ts +26 -3
  48. package/templates/portfolio-creative/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  49. package/templates/professional-services/tier5-src/_shared/member-account-routes.ts +26 -3
  50. package/templates/professional-services/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  51. package/templates/restaurant/tier5-src/_shared/member-account-routes.ts +26 -3
  52. package/templates/restaurant/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  53. package/templates/retail-store/tier5-src/_shared/member-account-routes.ts +26 -3
  54. package/templates/retail-store/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  55. package/templates/salon-spa/tier5-src/_shared/member-account-routes.ts +26 -3
  56. package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  57. package/templates/wholesale-store/tier5-src/_shared/member-account-routes.ts +26 -3
  58. package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
  59. package/templates/yoga-studio/tier5-src/_shared/member-account-routes.ts +26 -3
  60. package/templates/yoga-studio/tier5-src/himi-branded-lite-account-settings/personal-info.ts +21 -7
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 90 SDUI components. Read this page once before you write screens, then run
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": 90,
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": "Live microphone waveform",
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": "Live microphone waveform",
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": "Live microphone waveform",
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
- **90 core component types.** Every component body is `{ "package": "himalaya", "type": "<Type>", "props": { … } }`.
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
- | `Marquee` | Live microphone waveform | — |
106
- | `Timeline` | Live microphone waveform | `entriesPath` |
107
- | `PageControl` | Live microphone waveform | `countPath`, `currentIndexPath` |
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 90 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
+ **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`, … —
@@ -385,6 +385,17 @@ signed in without Wix: `federated_not_allowed`, `federated_disabled`, `federated
385
385
  codes. Their other fields (`status`, the plane's body) are unchanged, and any other refusal keeps the
386
386
  command's existing envelope.
387
387
 
388
+ ### One App navigation warnings
389
+
390
+ For a One App migration (its `.himi/one-app/manifest.json` or `ONE-APP-COVERAGE.json` is present), `himi test` lists these in `oneAppWarnings`
391
+ and records them in its attestation, and `himi push` adds them to its `warnings` when the release it publishes has a test run. They are
392
+ warnings only: they never change `ok`, the exit code or `--strict`. Match on `code`, never on `message`.
393
+
394
+ | Code | Meaning |
395
+ |---|---|
396
+ | `one_app_nav_target_missing` | A link opens a screen the app does not have (neither a screen nor a linkable route). The tap opens nothing. |
397
+ | `one_app_screen_unreachable` | A page the migration generated is not reachable from the tabs, the top bar, Profile or any link, and no link the test could not resolve is left to open it. While a reachable screen has link sites the test cannot resolve (list rows bound to a service, computed targets), a page nothing else opens is `unknown`, not unreachable, and nothing is warned: the attestation records it under `nav.unknown`. |
398
+
388
399
  The `ux_evidence_*` codes map to the existing typed `uxEvidence.state`; a successful
389
400
  `recorded` state has no refusal code. Successful pushes and warnings do not gain
390
401
  failure codes. A forced push still follows the existing override rules.
@@ -396,6 +407,18 @@ then carries a `ring_pinned` entry in `warnings` (also printed to stderr) and
396
407
  that moves the ring to the new release. When the push passed `--control-url`, `promote` repeats it. It stays `ok: true`. When the rings cannot be read, push
397
408
  prints neither.
398
409
 
410
+ ### One App shell warnings
411
+
412
+ For an app that declares `app: { newApp: true }`, `himi push` (an app with One App evidence) adds these entries to its `warnings`,
413
+ and `himi validate` lists them in `oneAppWarnings` and in `warnings` as `<code>: <message>`. They are warnings only: they never change
414
+ `ok`, the exit code, or `--strict`. Match on `code`, never on `message`.
415
+
416
+ | Code | Meaning |
417
+ |---|---|
418
+ | `one_app_side_menu_present` | `navigation.drawer.items` still has rows. A new app has the profile avatar instead of the hamburger and serves an empty drawer. The message says why the migration left it, when `retireSideMenu` reported `kept`. |
419
+ | `one_app_top_bar_hamburger` | The default top bar, or a screen's own bar, has a hamburger / drawer toggle (`leading: "menu"`, or a leading item or action that names the drawer). |
420
+ | `one_app_profile_avatar_missing` | The default top bar has no leading profile avatar that opens `himi_account`. |
421
+
399
422
  ## `himi notify` owner-login codes
400
423
 
401
424
  `himi notify setup|status` and `himi notify send --provider ping` carry `code` on these refusals
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": 90,
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: 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}",
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.1887.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": "58b387ddf72d242a5e993c8521801f0fe64ba7ec3204c9d1d74279bd"
85
+ "falconPackageHash": "2393826bd6be5daa3bd4864b5b2383ba1a881f45e2a1822ec456f406"
86
86
  }
@@ -17,6 +17,20 @@ import { isHostedWorker } from "./hosted-checkout.js";
17
17
  export const MEMBER_ACCOUNT_ROUTES_MIN_BINARY = "1.4.0";
18
18
  export const MEMBER_MEDIA_FIELD_MIN_BINARY = "1.5.0";
19
19
  export const MEMBER_PASSWORD_ACTIONS_MIN_BINARY = "1.5.0";
20
+ /** The HimalayaCore version whose MediaField answers the member-photo upload target (`MEMBER_PHOTO_UPLOAD_TARGET`). */
21
+ export const MEMBER_PHOTO_ROUTE_MIN_BINARY = "1.11.0";
22
+
23
+ // The upload target a MediaField worker publishes to say "send the picked photo to the app's member-photo route as me".
24
+ // It is a placeholder, not a URL: the HOST answers it with the member credential it already holds (web host, Android, iOS), and the
25
+ // shared presigned-upload policy (`*.wixmp.com`, credential-free) is untouched. A `?n=<nonce>` suffix keeps a retry's value different
26
+ // from the last one (every renderer requires the target to be minted for THIS pick). Held identical to the hosts' constants by
27
+ // the member-photo target parity test.
28
+ export const MEMBER_PHOTO_UPLOAD_TARGET = "himalaya-member-photo://upload";
29
+
30
+ /** Whether [value] is the placeholder: the bare target, or with a `?` suffix. */
31
+ export function isMemberPhotoUploadTarget(value: unknown): value is string {
32
+ return typeof value === "string" && (value === MEMBER_PHOTO_UPLOAD_TARGET || value.startsWith(`${MEMBER_PHOTO_UPLOAD_TARGET}?`));
33
+ }
20
34
 
21
35
  /** `version` (a HimalayaCore binary version, pre-release suffix ignored) is `floor` or later. */
22
36
  export function atLeast(version: string, floor: string): boolean {
@@ -38,6 +52,9 @@ export interface MemberAccountRoutes {
38
52
  mediaField: boolean;
39
53
  /** Password credential actions introduced in HimalayaCore 1.5.0. */
40
54
  passwordCredentials: boolean;
55
+ /** The host sends a picked profile photo to the app's member-photo route as the member (HimalayaCore 1.11.0 and later on native; the web
56
+ * host when that route is mounted; native also needs a server address). No site function is needed. A host without it keeps the "change your photo on the website" line. */
57
+ memberPhotoRoute: boolean;
41
58
  /** The web host: a preview of the app, never a member's real device. Account settings say
42
59
  * "in preview mode" there, and "here" in every other case it cannot change a password. */
43
60
  webPreview: boolean;
@@ -46,11 +63,17 @@ export interface MemberAccountRoutes {
46
63
  export async function memberAccountRoutes(): Promise<MemberAccountRoutes> {
47
64
  const info = await getAppInfo().catch(() => undefined);
48
65
  // A hosted app reaches none of these routes, but a hosted web build is still a preview.
49
- if (isHostedWorker()) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, webPreview: info?.platform === "web" };
50
- if (!info) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, webPreview: false };
66
+ if (isHostedWorker()) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, memberPhotoRoute: false, webPreview: info?.platform === "web" };
67
+ if (!info) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, memberPhotoRoute: false, webPreview: false };
51
68
  const native = info.platform === "ios" || info.platform === "android" || info.platform === "macos";
52
69
  const addresses = native && atLeast(info.binaryVersion ?? "", MEMBER_ACCOUNT_ROUTES_MIN_BINARY);
53
70
  const mediaField = native && atLeast(info.binaryVersion ?? "", MEMBER_MEDIA_FIELD_MIN_BINARY);
54
71
  const passwordCredentials = native && atLeast(info.binaryVersion ?? "", MEMBER_PASSWORD_ACTIONS_MIN_BINARY);
55
- return { addresses, wallet: addresses && info.memberSiteBound === true, mediaField, passwordCredentials, webPreview: info.platform === "web" };
72
+ // A host can answer the placeholder only where there is a member-photo route to send the photo to. Web says so itself (`memberPhotoUpload`: the
73
+ // route is mounted; the server address alone is not enough, a standalone build reports its baked address without the same-origin route).
74
+ // Native needs HimalayaCore 1.11.0 and a server address (an empty one means the local preview, where the picker would only fail).
75
+ const memberPhotoRoute = info.platform === "web"
76
+ ? info.memberPhotoUpload === true
77
+ : native && atLeast(info.binaryVersion ?? "", MEMBER_PHOTO_ROUTE_MIN_BINARY) && !!info.serveBaseUrl;
78
+ return { addresses, wallet: addresses && info.memberSiteBound === true, mediaField, passwordCredentials, memberPhotoRoute, webPreview: info.platform === "web" };
56
79
  }
@@ -13,7 +13,7 @@ import { snackbar } from "@himalaya/ui";
13
13
  import { deleteMemberPhones, getMyMember, listCustomFields, updateMember } from "@himalaya/wix-members";
14
14
  import { generateMemberPhotoUploadUrl } from "@himalaya/wix-site-media";
15
15
  import { memberAccess } from "../_shared/member-access.js";
16
- import { memberAccountRoutes } from "../_shared/member-account-routes.js";
16
+ import { MEMBER_PHOTO_UPLOAD_TARGET, isMemberPhotoUploadTarget, memberAccountRoutes } from "../_shared/member-account-routes.js";
17
17
  import { copyParam, stashCopy } from "../_shared/himi-copy.js";
18
18
  import {
19
19
  clean, currentMemberRecordMatches, fetchMember, isSignedOut, loadErrorVariant, memberInitials, rawText,
@@ -84,6 +84,8 @@ interface S extends ProfileValues {
84
84
  photoUploadAvailable: boolean;
85
85
  noPhotoUploadAvailable: boolean;
86
86
  photoUploadFunctionName: string;
87
+ /** The photo goes to the app's member-photo route as the member (no site function): the host answers the placeholder target. */
88
+ photoUploadViaRoute: boolean;
87
89
  photoDisplayUrl: string;
88
90
  uploadUrl: string;
89
91
  photoDraftUrl: string;
@@ -132,6 +134,7 @@ const EMPTY: S = {
132
134
  photoUploadAvailable: false,
133
135
  noPhotoUploadAvailable: true,
134
136
  photoUploadFunctionName: "",
137
+ photoUploadViaRoute: false,
135
138
  photoDisplayUrl: "",
136
139
  uploadUrl: "",
137
140
  photoDraftUrl: "",
@@ -373,9 +376,12 @@ function photoUploadFunctionName(value: unknown): string {
373
376
  const name = clean(value);
374
377
  return /^[A-Za-z][A-Za-z0-9_]{0,63}$/.test(name) ? name : "";
375
378
  }
376
- function validUploadUrl(value: unknown): string {
379
+ function validUploadUrl(value: unknown, viaRoute: boolean): string {
377
380
  if (typeof value !== "string") return "";
378
381
  // Hand-parsed: JSC (iOS) has no `URL` global. Host is plain letters/digits/dots, so userinfo and ports never match.
382
+ // The member-photo placeholder is the host's to answer with the member's credential; it names no host at all. Only the worker's own
383
+ // route path may publish it: a site function that returns it must not steer the host off the function's Wix Media upload.
384
+ if (isMemberPhotoUploadTarget(value)) return viaRoute && /^[A-Za-z0-9?=&.-]{0,64}$/.test(value.slice(MEMBER_PHOTO_UPLOAD_TARGET.length)) ? value : "";
379
385
  const m = /^https:\/\/([A-Za-z0-9.-]+)(?:[/?][^#\s\\]*)?$/.exec(value);
380
386
  const host = m ? m[1].toLowerCase() : "";
381
387
  return host === "wixmp.com" || host.endsWith(".wixmp.com") ? value : "";
@@ -401,6 +407,8 @@ function canonicalPhotoMediaId(value: unknown): string {
401
407
  let profileMutationInFlight = false;
402
408
  let photoUploadMintInFlight = false;
403
409
  let photoUploadVersion = 0;
410
+ /** Makes each pick's placeholder differ from the last (a retry must not look like the value left from a failed pick). */
411
+ let photoRouteNonce = 0;
404
412
  let loadVersion = 0;
405
413
  // The native picker uploads the file itself and never reports a failed PUT back to the worker, so a minted
406
414
  // upload URL counts as "upload in progress" only for a bounded window. Save waits inside it, then recovers.
@@ -570,8 +578,11 @@ const svc = defineService<S, {
570
578
  if (!(await currentMemberRecordMatches(email, scope, clean(member.id)))) throw signedOutError();
571
579
  if (version !== loadVersion) return svc.getState() as S;
572
580
  const functionName = photoUploadFunctionName((arg as { photoUploadFunctionName?: unknown } | undefined)?.photoUploadFunctionName);
573
- const available = !!functionName && routes.mediaField;
574
- return derive({ ...loaded(member, email, scope, site.fields, site.hasPhone), photoUploadFunctionName: functionName, photoUploadAvailable: available });
581
+ // The site's own upload function wins (it works on every binary that has MediaField). Without one, a host that sends the photo
582
+ // to the app's member-photo route as the member does the upload, with no site code: migrated apps have none.
583
+ const viaRoute = !functionName && routes.memberPhotoRoute;
584
+ const available = (!!functionName && routes.mediaField) || viaRoute;
585
+ return derive({ ...loaded(member, email, scope, site.fields, site.hasPhone), photoUploadFunctionName: functionName, photoUploadViaRoute: viaRoute, photoUploadAvailable: available });
575
586
  } catch (error) {
576
587
  if (version !== loadVersion) return svc.getState() as S;
577
588
  return loadFailed(error);
@@ -607,7 +618,7 @@ const svc = defineService<S, {
607
618
  return derive({ ...s, custom: { ...s.custom, [id]: value }, customErrors: { ...s.customErrors, [id]: "" }, saveError: "" });
608
619
  },
609
620
  genUpload: async (s, arg): Promise<Polled> => {
610
- if (photoUploadMintInFlight || s.phase !== "ready" || !s.memberId || !s.photoUploadAvailable || !s.photoUploadFunctionName) {
621
+ if (photoUploadMintInFlight || s.phase !== "ready" || !s.memberId || !s.photoUploadAvailable || (!s.photoUploadFunctionName && !s.photoUploadViaRoute)) {
611
622
  return derive({ ...s, uploadUrl: "", photoUploadError: copyParam("accountSettings.profilePhotoUnavailable", "Profile photo changes are not available in this session."), photoUploading: false });
612
623
  }
613
624
  photoUploadMintInFlight = true;
@@ -628,7 +639,10 @@ const svc = defineService<S, {
628
639
  if (version !== photoUploadVersion) return latest;
629
640
  return derive(clearPhotoUploadAttempt(latest, copyParam("accountSettings.profilePhotoUploadError", "The photo could not be prepared. Choose another image.")));
630
641
  }
631
- const minted = await generateMemberPhotoUploadUrl(s.photoUploadFunctionName, mimeType, fileName);
642
+ // Through the member-photo route there is nothing to mint: the placeholder says "send it as the member", and the host does.
643
+ const minted = s.photoUploadViaRoute
644
+ ? { uploadUrl: `${MEMBER_PHOTO_UPLOAD_TARGET}?n=${++photoRouteNonce}` }
645
+ : await generateMemberPhotoUploadUrl(s.photoUploadFunctionName, mimeType, fileName);
632
646
  if (version !== photoUploadVersion) return svc.getState() as S;
633
647
  if (!(await currentMemberRecordMatches(s.memberEmail, s.memberScope, s.memberId))) {
634
648
  const latest = svc.getState() as S;
@@ -636,7 +650,7 @@ const svc = defineService<S, {
636
650
  return derive(clearPhotoUploadAttempt(latest, accountChanged()));
637
651
  }
638
652
  if (version !== photoUploadVersion) return svc.getState() as S;
639
- const uploadUrl = validUploadUrl(minted.uploadUrl);
653
+ const uploadUrl = validUploadUrl(minted.uploadUrl, s.photoUploadViaRoute);
640
654
  if (!uploadUrl) return derive(clearPhotoUploadAttempt(svc.getState() as S, copyParam("accountSettings.profilePhotoUploadError", "The photo could not be prepared. Choose another image.")));
641
655
  const latest = svc.getState() as S;
642
656
  if (!sameMember(latest)) return latest;
@@ -17,6 +17,20 @@ import { isHostedWorker } from "./hosted-checkout.js";
17
17
  export const MEMBER_ACCOUNT_ROUTES_MIN_BINARY = "1.4.0";
18
18
  export const MEMBER_MEDIA_FIELD_MIN_BINARY = "1.5.0";
19
19
  export const MEMBER_PASSWORD_ACTIONS_MIN_BINARY = "1.5.0";
20
+ /** The HimalayaCore version whose MediaField answers the member-photo upload target (`MEMBER_PHOTO_UPLOAD_TARGET`). */
21
+ export const MEMBER_PHOTO_ROUTE_MIN_BINARY = "1.11.0";
22
+
23
+ // The upload target a MediaField worker publishes to say "send the picked photo to the app's member-photo route as me".
24
+ // It is a placeholder, not a URL: the HOST answers it with the member credential it already holds (web host, Android, iOS), and the
25
+ // shared presigned-upload policy (`*.wixmp.com`, credential-free) is untouched. A `?n=<nonce>` suffix keeps a retry's value different
26
+ // from the last one (every renderer requires the target to be minted for THIS pick). Held identical to the hosts' constants by
27
+ // the member-photo target parity test.
28
+ export const MEMBER_PHOTO_UPLOAD_TARGET = "himalaya-member-photo://upload";
29
+
30
+ /** Whether [value] is the placeholder: the bare target, or with a `?` suffix. */
31
+ export function isMemberPhotoUploadTarget(value: unknown): value is string {
32
+ return typeof value === "string" && (value === MEMBER_PHOTO_UPLOAD_TARGET || value.startsWith(`${MEMBER_PHOTO_UPLOAD_TARGET}?`));
33
+ }
20
34
 
21
35
  /** `version` (a HimalayaCore binary version, pre-release suffix ignored) is `floor` or later. */
22
36
  export function atLeast(version: string, floor: string): boolean {
@@ -38,6 +52,9 @@ export interface MemberAccountRoutes {
38
52
  mediaField: boolean;
39
53
  /** Password credential actions introduced in HimalayaCore 1.5.0. */
40
54
  passwordCredentials: boolean;
55
+ /** The host sends a picked profile photo to the app's member-photo route as the member (HimalayaCore 1.11.0 and later on native; the web
56
+ * host when that route is mounted; native also needs a server address). No site function is needed. A host without it keeps the "change your photo on the website" line. */
57
+ memberPhotoRoute: boolean;
41
58
  /** The web host: a preview of the app, never a member's real device. Account settings say
42
59
  * "in preview mode" there, and "here" in every other case it cannot change a password. */
43
60
  webPreview: boolean;
@@ -46,11 +63,17 @@ export interface MemberAccountRoutes {
46
63
  export async function memberAccountRoutes(): Promise<MemberAccountRoutes> {
47
64
  const info = await getAppInfo().catch(() => undefined);
48
65
  // A hosted app reaches none of these routes, but a hosted web build is still a preview.
49
- if (isHostedWorker()) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, webPreview: info?.platform === "web" };
50
- if (!info) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, webPreview: false };
66
+ if (isHostedWorker()) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, memberPhotoRoute: false, webPreview: info?.platform === "web" };
67
+ if (!info) return { addresses: false, wallet: false, mediaField: false, passwordCredentials: false, memberPhotoRoute: false, webPreview: false };
51
68
  const native = info.platform === "ios" || info.platform === "android" || info.platform === "macos";
52
69
  const addresses = native && atLeast(info.binaryVersion ?? "", MEMBER_ACCOUNT_ROUTES_MIN_BINARY);
53
70
  const mediaField = native && atLeast(info.binaryVersion ?? "", MEMBER_MEDIA_FIELD_MIN_BINARY);
54
71
  const passwordCredentials = native && atLeast(info.binaryVersion ?? "", MEMBER_PASSWORD_ACTIONS_MIN_BINARY);
55
- return { addresses, wallet: addresses && info.memberSiteBound === true, mediaField, passwordCredentials, webPreview: info.platform === "web" };
72
+ // A host can answer the placeholder only where there is a member-photo route to send the photo to. Web says so itself (`memberPhotoUpload`: the
73
+ // route is mounted; the server address alone is not enough, a standalone build reports its baked address without the same-origin route).
74
+ // Native needs HimalayaCore 1.11.0 and a server address (an empty one means the local preview, where the picker would only fail).
75
+ const memberPhotoRoute = info.platform === "web"
76
+ ? info.memberPhotoUpload === true
77
+ : native && atLeast(info.binaryVersion ?? "", MEMBER_PHOTO_ROUTE_MIN_BINARY) && !!info.serveBaseUrl;
78
+ return { addresses, wallet: addresses && info.memberSiteBound === true, mediaField, passwordCredentials, memberPhotoRoute, webPreview: info.platform === "web" };
56
79
  }