@wix/himalaya-cli 0.1867.0 → 0.1869.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/builder.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/state/src/index.d.ts +7 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +1 -44
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/overlapping-panel-header.d.ts +30 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +162 -144
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{4a8928bb82fc0db03269e14445bfc09155ceb3cde1f268162ac70b7ceb097b1f.bin → fb2b059338baac28265ef57c60a2934572de24f5f84471859dd358f474ca6d4a.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +8951 -6905
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -0
- package/guides/designing-himi-screens.md +4 -0
- package/guides/himi-json-output.md +27 -0
- package/guides/one-app-to-himi-app.md +75 -7
- package/guides/one-app-viewer.md +3 -1
- package/guides/release-notes.md +25 -0
- package/guides/sdk-reference.json +1 -22
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/beauty-salon-owner/config.ts +7 -0
- package/templates/beauty-salon-owner/dev/index.ts +618 -0
- package/templates/beauty-salon-owner/himalaya.content.json +3 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/branded-lite/tier5-src/_shared/one-app-widget-gate.ts +65 -0
- package/templates/brandy/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/community-club/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/community-club-owner/config.ts +7 -0
- package/templates/community-club-owner/dev/index.ts +618 -0
- package/templates/community-club-owner/himalaya.content.json +3 -0
- package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/conference/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/events-meetups-owner/config.ts +7 -0
- package/templates/events-meetups-owner/dev/index.ts +618 -0
- package/templates/events-meetups-owner/himalaya.content.json +3 -0
- package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/gym-fitness-owner/config.ts +7 -0
- package/templates/gym-fitness-owner/dev/index.ts +618 -0
- package/templates/gym-fitness-owner/himalaya.content.json +3 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/medical-services/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/nonprofit-cause-owner/config.ts +7 -0
- package/templates/nonprofit-cause-owner/dev/index.ts +618 -0
- package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/owner-lite/config.ts +7 -0
- package/templates/owner-lite/dev/index.ts +618 -0
- package/templates/owner-lite/himalaya.content.json +3 -0
- package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/podcast-creator-owner/config.ts +7 -0
- package/templates/podcast-creator-owner/dev/index.ts +618 -0
- package/templates/podcast-creator-owner/himalaya.content.json +3 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/portfolio-creative-owner/config.ts +7 -0
- package/templates/portfolio-creative-owner/dev/index.ts +618 -0
- package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/restaurant/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/restaurant-owner/config.ts +7 -0
- package/templates/restaurant-owner/dev/index.ts +618 -0
- package/templates/restaurant-owner/himalaya.content.json +3 -0
- package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/retail-store/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/retail-store-owner/config.ts +7 -0
- package/templates/retail-store-owner/dev/index.ts +618 -0
- package/templates/retail-store-owner/himalaya.content.json +3 -0
- package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/yoga-studio-owner/config.ts +7 -0
- package/templates/yoga-studio-owner/dev/index.ts +618 -0
- package/templates/yoga-studio-owner/himalaya.content.json +3 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
|
Binary file
|
|
@@ -66,7 +66,7 @@ with the `args` key they send (`onChange(value)`), and `+N` other optional props
|
|
|
66
66
|
|
|
67
67
|
- **Tabs** tabs!, selectedId!$, onChange(selectedId), optionsPath$, activeColorPath$, +1
|
|
68
68
|
- **SegmentedControl** options!, selectedId!$, onChange(selectedId), optionsPath$
|
|
69
|
-
- **Carousel** currentIndexPath$, items!, onChange, itemsPath$, +
|
|
69
|
+
- **Carousel** currentIndexPath$, items!, onChange, itemsPath$, +5
|
|
70
70
|
- **Pager** pages!, onChange, currentIndexPath$, pagesPath$, +3
|
|
71
71
|
- **StepIndicator** steps!, currentIndex!, +1
|
|
72
72
|
- **CollapsingHeader** title!, +7
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
"currentIndexPath",
|
|
525
525
|
"itemsPath"
|
|
526
526
|
],
|
|
527
|
-
"propsSource": "export interface CarouselProps {\n /** Opt-in paging for itemsPath; absent preserves the horizontal card rail. */\n paged?: boolean;\n /** #4673 — `$service:` path to the page index, two-way with `onChange`: a CHANGE of the resolved\n * value animates the carousel there (instantly under reduced motion); a swipe still fires\n * `onChange` with `args.index`, which the worker writes back. Out of range ⇒ clamped; not an\n * integer ⇒ ignored; equal to the current page ⇒ nothing; a move the binding made fires no\n * `onChange`. Drives literal `items` and `paged` bound ones; inside a bound row a substituted\n * literal places the page like `currentIndex`. A rail (`itemsPath` without `paged`) ignores it. */\n currentIndexPath?: string;\n items: Component[];\n currentIndex?: number;\n onChange?: Action;\n autoplayIntervalMs?: number;\n /** `$service:` binding → a live array to render as slides (overrides `items`). */\n itemsPath?: string;\n /** 0 (default) = all slides mounted; N ⇒ mount current ± N, unmount the rest. */\n liveWindow?: number;\n}"
|
|
527
|
+
"propsSource": "export interface CarouselProps {\n /** Opt-in paging for itemsPath; absent preserves the horizontal card rail. */\n paged?: boolean;\n /** #4673 — `$service:` path to the page index, two-way with `onChange`: a CHANGE of the resolved\n * value animates the carousel there (instantly under reduced motion); a swipe still fires\n * `onChange` with `args.index`, which the worker writes back. Out of range ⇒ clamped; not an\n * integer ⇒ ignored; equal to the current page ⇒ nothing; a move the binding made fires no\n * `onChange`. Drives literal `items` and `paged` bound ones; inside a bound row a substituted\n * literal places the page like `currentIndex`. A rail (`itemsPath` without `paged`) ignores it. */\n currentIndexPath?: string;\n items: Component[];\n currentIndex?: number;\n onChange?: Action;\n autoplayIntervalMs?: number;\n /** `$service:` binding → a live array to render as slides (overrides `items`). */\n itemsPath?: string;\n /** 0 (default) = all slides mounted; N ⇒ mount current ± N, unmount the rest. */\n liveWindow?: number;\n /** Page indicator: `\"auto\"` / absent (default) draws the dots; `\"hidden\"` draws none and\n * reserves no space, while paging stays accessible (VoiceOver adjustable, TalkBack position,\n * web keyboard + live position). Unknown ⇒ `\"auto\"`; an older binary keeps the dots. */\n indicator?: \"auto\" | \"hidden\";\n}"
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
530
|
"name": "Pager",
|
|
@@ -1150,6 +1150,10 @@ export interface CarouselProps {
|
|
|
1150
1150
|
itemsPath?: string;
|
|
1151
1151
|
/** 0 (default) = all slides mounted; N ⇒ mount current ± N, unmount the rest. */
|
|
1152
1152
|
liveWindow?: number;
|
|
1153
|
+
/** Page indicator: `"auto"` / absent (default) draws the dots; `"hidden"` draws none and
|
|
1154
|
+
* reserves no space, while paging stays accessible (VoiceOver adjustable, TalkBack position,
|
|
1155
|
+
* web keyboard + live position). Unknown ⇒ `"auto"`; an older binary keeps the dots. */
|
|
1156
|
+
indicator?: "auto" | "hidden";
|
|
1153
1157
|
}
|
|
1154
1158
|
```
|
|
1155
1159
|
|
|
@@ -303,6 +303,10 @@ at the screen's scroll root; a nested eager list is not an infinite-scroll imple
|
|
|
303
303
|
side padding, spacing or corner rounding; keep a fixed image height so swiping cannot move the
|
|
304
304
|
content below it. Bind `currentIndexPath` when selecting an option should select its image.
|
|
305
305
|
Omitting `paged` preserves existing horizontal card rails. Page indicators show only for multiple images.
|
|
306
|
+
`indicator: "hidden"` removes the page dots and the band they take (for a cover that slides under
|
|
307
|
+
an overlapping panel); paging stays accessible (VoiceOver adjust, TalkBack position, web arrow keys and
|
|
308
|
+
a polite live position). `autoplayIntervalMs` turns the page on its own, restarts its wait after a
|
|
309
|
+
swipe, and stops under reduced motion. A binary without `indicator` keeps the dots.
|
|
306
310
|
|
|
307
311
|
**Reveal invalid fields.** Increment a non-empty request token and bind it through the field row's
|
|
308
312
|
`modifiers.scrollIntoViewPath` to reveal the picker and its error, and move accessibility focus there.
|
|
@@ -759,6 +759,33 @@ unresolved migration finding.
|
|
|
759
759
|
(`$service:brandedLiteNav.chatBadge`, `.notificationsBadge`, `.cartBadge`) and sit on
|
|
760
760
|
the matching button (exit 1).
|
|
761
761
|
|
|
762
|
+
## `himi one-app widgets` codes
|
|
763
|
+
|
|
764
|
+
`himi one-app widgets plan|inspect|test|check` is the custom-widget stage of a One App migration. Every envelope carries
|
|
765
|
+
`stage: "custom-widgets"`; a source with no placed custom widget answers `ok: true` with `status: "not-applicable"`.
|
|
766
|
+
Failures print `ok: false` and a top-level `code` on stderr. Neither recovered widget code nor page text is printed.
|
|
767
|
+
|
|
768
|
+
- `invalid_usage`: an unknown subcommand, option or widget key, or a missing `--evidence-dir` / `--content` (exit 2).
|
|
769
|
+
- `evidence_invalid`: the collected evidence cannot be read or does not match its hashes (exit 1).
|
|
770
|
+
- `site_url_unavailable` (`inspect`): the collection recorded no public https site URL; each widget's evidence is
|
|
771
|
+
recorded as unavailable (exit 1).
|
|
772
|
+
- `browser_unavailable` (`inspect`): no Chromium could be launched; each widget's evidence is recorded as unavailable
|
|
773
|
+
(exit 1).
|
|
774
|
+
- `inspection_incomplete` (`inspect`): some widget pages could not be observed; their evidence says why, and the same
|
|
775
|
+
command retries only those (exit 1).
|
|
776
|
+
- `custom_widget_tests_failed` (`test`): a placement's required tests are missing or did not pass in the run Himi made
|
|
777
|
+
(each placement lists why); passing placements are still recorded (exit 1). `coverage_missing` (`test`):
|
|
778
|
+
`ONE-APP-COVERAGE.json` is absent (exit 1).
|
|
779
|
+
- `check` fails with the most fundamental of: `custom_widget_unidentified` (a placed widget section names no `pageUri`
|
|
780
|
+
and no owner decision is recorded), `custom_widget_invalid` (a component cannot be placed),
|
|
781
|
+
`custom_widgets_pending` (a component is not built), `custom_widgets_unplaced` (a placement is not embedded),
|
|
782
|
+
`custom_widget_evidence_missing` (no inspection evidence recorded, not even as unavailable),
|
|
783
|
+
`custom_widget_decision_required` (a placement waits for the owner's decision) and `custom_widgets_unverified`
|
|
784
|
+
(a placement's tests did not pass when `check` ran them, or no `widgets test` run names them). `failures` lists every
|
|
785
|
+
one (exit 1). `check` and `himi one-app coverage verify` run the recorded widget tests themselves; `plan` does not.
|
|
786
|
+
|
|
787
|
+
`himi one-app generate` refuses a component it cannot place with `custom_widget_invalid` and writes nothing (exit 1).
|
|
788
|
+
|
|
762
789
|
## `himi one-app header-badges` codes
|
|
763
790
|
|
|
764
791
|
Binds the source header's bell, chat and cart counts in `config.ts`. Success prints
|
|
@@ -275,6 +275,65 @@ section's settings, with no loader of their own:
|
|
|
275
275
|
message are not shown, and both are reported. A section with no event chosen (`eventId` empty), or in a scaffold without `himi_event`,
|
|
276
276
|
keeps the source's title and a **See All** link to `himi_events`.
|
|
277
277
|
|
|
278
|
+
### Custom widgets
|
|
279
|
+
|
|
280
|
+
A `mobile_app_widgets.viewer` section shows a Mobile App Builder page (a custom widget) inside the app. Its behavior is
|
|
281
|
+
that page's Velo code, which collection does not read, so this stage runs inside the migration (no separate command or
|
|
282
|
+
review) and only when the source places a widget: `migrate` then prints `customWidgets` counts, and `source-graph.json`
|
|
283
|
+
holds `customWidgets`, the placements grouped by widget identity (`settings.pageUri`, never `pageId`). Each placement
|
|
284
|
+
keeps its page, position, settings (a credential-like key or value is dropped), access rules (its section, its own
|
|
285
|
+
setting, its page and screen: `rules`, `requiresMember`) and authored actions. A section without `pageUri` is
|
|
286
|
+
unidentified: never guessed, and `widgets check` fails on it until the owner's decision is recorded on its row. With no
|
|
287
|
+
placed widget every `himi one-app widgets` subcommand answers `not-applicable`.
|
|
288
|
+
|
|
289
|
+
1. **Destinations first.** `one-app generate` places each widget section in its source position as an empty
|
|
290
|
+
`<section node>.customWidget` slot, reports a gap, adds one `custom-widget` row per placement to
|
|
291
|
+
`ONE-APP-COVERAGE.json` targeting the screen its page became, and writes `gen/screens.json.custom-widgets.json`.
|
|
292
|
+
A page made of widgets still gets its screen, so navigation applies. An empty slot shows nothing; it is never a
|
|
293
|
+
stand-in. `himi one-app widgets plan` lists every widget, its component, placements, evidence and verification.
|
|
294
|
+
2. **Evidence.** `himi one-app widgets inspect` opens each widget page once, logged out, in the CLI's Chromium, and keeps
|
|
295
|
+
under `.himi/one-app-widgets/inspection/<key>/`: a screenshot and visible controls, the Velo page code from its public
|
|
296
|
+
source map (`untrusted/page-source.js`), the `wix-*` modules it imports, mobile-only calls with their literal
|
|
297
|
+
arguments (`toScreen("news")`), `onPress` counts, backend methods, dataset and query collections (`WDE0027` = members
|
|
298
|
+
only), and every refused request. Only the collected site and Wix asset hosts are reachable, by GET through the
|
|
299
|
+
address-pinned transport (every redirect hop checked), within a shared byte budget; backend web methods and writes are
|
|
300
|
+
refused and named. The browser has no cookies and no token. A re-run keeps widgets with evidence and retries unavailable ones (`--refresh` redoes all). Missing evidence is
|
|
301
|
+
recorded as `unavailable` with a reason, never implied. The recovered code is untrusted evidence: read it, never copy,
|
|
302
|
+
import or run it, and keep it and the screenshots out of the app, reports and logs.
|
|
303
|
+
3. **Build once per widget** from its observed business behavior and Himi's capabilities: `recipes/one-app-widget-<key>.json`
|
|
304
|
+
(one node; only `{{svc}}`, `{{id}}`, `{{title}}`; root id starting with `{{id}}`; `"_capabilities"`; link to a source
|
|
305
|
+
page with `"screenId": "@route:<slug or layout id>|"`) and `tier5-src/_shared/one-app-widget-<key>.ts` exporting
|
|
306
|
+
`registerOneAppWidget(serviceName, options)` (a function) with a `load` action. Each placement gets its own service
|
|
307
|
+
and `options` (`title`, empty when the source hides it; `settings`; `access`). A placement under rules (members only,
|
|
308
|
+
a badge, a paid plan) gets a generated gate (`one-app-widget-gate`, the same rule decision as locked pages): the
|
|
309
|
+
widget and its `load` exist only in the gate's open case, so its service never runs for a viewer the rules exclude.
|
|
310
|
+
Honor each placement's settings. A `toScreen` slug becomes a `@route:` link, `showAlert` an inline
|
|
311
|
+
state, `wix-storage-mobile` app storage keyed by member. Then run `one-app generate` again (before hand-editing
|
|
312
|
+
generated pages) and `template screens --upsert`: every slot is filled in place. A broken component
|
|
313
|
+
(half of it, a bad recipe, no export) is refused as `custom_widget_invalid` and nothing is written.
|
|
314
|
+
4. **WebView only when it preserves the workflow**: an existing site page the owner approved, on the primary domain, in a
|
|
315
|
+
`WebView` recipe node. A member-only widget in a WebView needs native-device evidence of the member session.
|
|
316
|
+
5. **Unresolved essential journey.** The job cannot stop to ask: leave the row `unresolved` with
|
|
317
|
+
`"decision": {"question": …, "kept": …}`, keep the default, and list it with the affected screens in the migration
|
|
318
|
+
report. A widget on a page with no screen (`no-screen`) needs either a placement or that decision.
|
|
319
|
+
6. **Verify on the generated code.** Write automated tests that build the generated page worker, drive each placement as
|
|
320
|
+
the host does (its gate first) as a Visitor, an entitled member and, for a badge or plan rule, a member without it,
|
|
321
|
+
against controlled data (reads and writes), and render its screen. Name each test `custom-widget <requirement id>
|
|
322
|
+
<check>`: `rendering` and `visitor` always, `member` when a rule needs a member, `access` for a badge or plan rule,
|
|
323
|
+
`navigation` and `data` when they apply. Run them with `himi one-app widgets test --file <test> --release-hash <sha>`
|
|
324
|
+
(`--import <loader>` for TypeScript; `--webview <key>` and `--device <key>=<artifact>` for a WebView). Himi runs
|
|
325
|
+
node's test runner itself, with only `PATH`, locale and time zone from your environment and a private, empty `HOME`
|
|
326
|
+
and temp dir (no token, config location or `NODE_OPTIONS`). That is environment isolation, not a sandbox: the tests run
|
|
327
|
+
as you, with your file and network access. Himi records each placement whose tests passed, with the run as history. The verdict is never a stored file: `coverage verify` and `widgets check` run those
|
|
328
|
+
tests again and decide from that run's exit status and report (`plan` runs nothing and confirms nothing). A built
|
|
329
|
+
file, an inspection, a hand-written report or run record, or "passed" is not behavior. `himi one-app widgets check` passes only when every widget is built, embedded, evidenced and verified; its
|
|
330
|
+
codes are `custom_widget_unidentified`, `custom_widgets_pending`, `custom_widget_invalid`, `custom_widgets_unplaced`,
|
|
331
|
+
`custom_widget_evidence_missing`, `custom_widget_decision_required` and `custom_widgets_unverified`.
|
|
332
|
+
|
|
333
|
+
Report every widget in the migration report: what it does, approach, unsupported features with affected screens,
|
|
334
|
+
native-only interactions and access rules, and open decisions. This stage can run while other screens are authored;
|
|
335
|
+
final validation waits for it.
|
|
336
|
+
|
|
278
337
|
### Preserve section visibility across authentication
|
|
279
338
|
|
|
280
339
|
The eight member-only rows above are supported by the shared visibility recipe below;
|
|
@@ -634,10 +693,15 @@ Apply these interpretation rules:
|
|
|
634
693
|
still has the placeholders (code `placeholder_site_binding`, no `--force`). It is safe to run again.
|
|
635
694
|
- **Native navigation is the migration target.** Use the shell's native top bar
|
|
636
695
|
and, for bottom-tab navigation, `navigation.tabBar.presentation: "native"`.
|
|
637
|
-
Do not
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
696
|
+
Do not hand-author a source header, or insert a `CollapsingHeader` hero/card above a page.
|
|
697
|
+
- **The Detailed Home header is generated, on the Home only.** When the source header owning the Home page is
|
|
698
|
+
explicitly `platform_detailed_header` (top tabs: the plan's first visible page), `generate` puts one
|
|
699
|
+
`overlappingPanelHeader` first on the Home and gives it a `topBar` copied from `navigation.topBarDefault` with
|
|
700
|
+
`style: "immersive"` (`"transparent"` with no cover image), `titleDisplay: "hidden"` and `solidAfter` on the cover. Other definitions, and Detailed on any
|
|
701
|
+
other screen, are ineligible. A Detailed Home whose page opens a shared vertical screen is generated as the Home.
|
|
702
|
+
Props are the header's own: title/subtitle (explicit visibility), `showLogo` + `settings.logoImageUrl`, ordered
|
|
703
|
+
`coverImagesUrls` (empty: the global covers), `coverImageTransitionTime` (default 3000). Run `provision` after
|
|
704
|
+
`header-badges` to copy the bar again; `validate-topbar` reports drift.
|
|
641
705
|
- **Business contact is shared content.** For native contact sections
|
|
642
706
|
`platform_general_contact_section` / `platform_general_contact_section_bp`, use
|
|
643
707
|
`businessContactSection` and `createBusinessContactService` from
|
|
@@ -695,7 +759,7 @@ Apply these interpretation rules:
|
|
|
695
759
|
as ordinary page content or supported native actions, with the same runtime
|
|
696
760
|
access rules. Report unsupported avatar/logo/action behavior as a gap; do not
|
|
697
761
|
invent member data, drop a configured CTA silently, or add an in-page toolbar
|
|
698
|
-
to imitate a missing native control.
|
|
762
|
+
to imitate a missing native control. On a Detailed Home, record only the controls its header drops.
|
|
699
763
|
- **Invite is behavior, independent of the custom cover.** When the source header's
|
|
700
764
|
`settings.showInviteButton` is true, use the reusable `inviteAction`, `inviteScreen`
|
|
701
765
|
and service recipes from `@wix/himalaya/screens`. The source opens an Invite modal;
|
|
@@ -1598,7 +1662,7 @@ id is replaced in place; each new id is added and registered in
|
|
|
1598
1662
|
`navigation.linkableScreens`. One invalid entry refuses the batch and restores every
|
|
1599
1663
|
file. A screen that starts with an empty slot (a `Spacer`, a container with no children, an
|
|
1600
1664
|
`Image` with no url) is refused: when a source header is dropped, do not leave its place behind,
|
|
1601
|
-
because the slot paints a blank band under the toolbar. A builder call such as `
|
|
1665
|
+
because the slot paints a blank band under the toolbar. A builder call such as `overlappingPanelHeader(...)` written inline in `dev/index.ts`
|
|
1602
1666
|
cannot be inspected: call the builder in your generator and serialize the value it
|
|
1603
1667
|
returns. Run the generator inside the app (after `npm install`), so
|
|
1604
1668
|
`@wix/himalaya/screens` resolves to the app's own dependency.
|
|
@@ -2084,6 +2148,9 @@ himi validate --strict
|
|
|
2084
2148
|
himi test --json
|
|
2085
2149
|
```
|
|
2086
2150
|
|
|
2151
|
+
A source with custom widgets also runs `himi one-app widgets check --evidence-dir .himi/one-app --content .` (see
|
|
2152
|
+
"Custom widgets"); final validation waits for it.
|
|
2153
|
+
|
|
2087
2154
|
Add meaningful behavioral fixtures for mixed pages, repeated selectors, hidden
|
|
2088
2155
|
routes, top tabs, CTA argument context, visitor login/resume, member/plan/badge
|
|
2089
2156
|
gates, unsupported settings versions, and failed versus empty live reads. Run
|
|
@@ -2146,9 +2213,10 @@ Known web limits:
|
|
|
2146
2213
|
- `himi render --png` needs the Chromium of the Playwright that `himi` bundles. Run the
|
|
2147
2214
|
install command the render hint prints. A bare `npx playwright install chromium`
|
|
2148
2215
|
from the app directory can install another revision.
|
|
2149
|
-
- A
|
|
2216
|
+
- A `CollapsingHeader` scrolls with the page in current releases. An
|
|
2150
2217
|
older CLI drew it in a 640px scroll box, so the page scrolled inside it and
|
|
2151
2218
|
`himi render --png` showed only the first viewport; update the CLI before you compare.
|
|
2219
|
+
The generated Detailed Home header is not a `CollapsingHeader`: it scrolls with the page too.
|
|
2152
2220
|
- The One App editor preview shows demo data for member widgets ("This is a demo image
|
|
2153
2221
|
and won't appear live") and draws some vertical pages blank. It is not a live baseline:
|
|
2154
2222
|
compare against the published app or the source evidence instead.
|
package/guides/one-app-viewer.md
CHANGED
|
@@ -131,7 +131,9 @@ Translate the resolved result to Himi. Its inspected schema says a per-screen `t
|
|
|
131
131
|
|
|
132
132
|
### R09. Treat header content as conditional, configured behavior
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
> **Superseded for the Detailed Home.** A migrated Home whose own source header is explicitly `platform_detailed_header` gets a generated header and immersive top bar; the One App migration guide is authoritative. `detailedHeader` no longer exists.
|
|
135
|
+
|
|
136
|
+
The source rules below describe the original viewer. **For the current One App migration target, use native navigation bars, bottom tabs and the top bar; do not reproduce a custom Detailed cover header, except the generated one on an eligible Detailed Home (above).** This target policy supersedes this reference's older shared-header recommendation. Keep the source facts as interpretation evidence and record the target adaptation explicitly.
|
|
135
137
|
|
|
136
138
|
Relevant source behavior to preserve when applicable:
|
|
137
139
|
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,31 @@ areas, always in the same order, so you can skim for the one you care about.
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## 2026-11-24
|
|
18
|
+
|
|
19
|
+
### Getting started & the CLI
|
|
20
|
+
|
|
21
|
+
- **A One App migration now carries its custom widgets.** When the source places custom widgets, `himi one-app
|
|
22
|
+
migrate` reports how many there are, and `generate` keeps each placement in its source position with its own
|
|
23
|
+
settings and access rules, as an empty slot until you build the widget. `himi one-app widgets plan` lists every
|
|
24
|
+
widget and what is left. `widgets inspect` records what each widget page shows logged out and which Velo modules and
|
|
25
|
+
calls it uses, without changing anything on the site and without your login. You build each widget once (a recipe
|
|
26
|
+
and a worker module), run `generate` again, and every placement is filled; a placement for members only, a badge or a
|
|
27
|
+
paid plan opens only for viewers who meet that rule. `widgets test` runs your widget tests and records their result,
|
|
28
|
+
and `widgets check` passes only when every placement passed them. A source with no custom widget is unchanged.
|
|
29
|
+
See `himi docs one-app-to-himi-app`, "Custom widgets". (#6460)
|
|
30
|
+
|
|
31
|
+
### Preview, push & release
|
|
32
|
+
|
|
33
|
+
- **Your AI tool can work on an app you built elsewhere, and cancel a build.** The hosted connector (the one
|
|
34
|
+
you add to Claude, ChatGPT or Cursor) could only edit apps it had created. `himi_list_apps` now also lists
|
|
35
|
+
your other apps, and `himi_adopt` loads one into the chat from the source saved with its release, so it can be
|
|
36
|
+
read, edited and pushed from there. The connector holds text files only: if the app has images, an icon or
|
|
37
|
+
fonts, `himi_adopt` refuses and names them, because a push from the chat would publish the app without them,
|
|
38
|
+
and goes ahead only when you accept that. An app published before source was kept, or with `--no-source`,
|
|
39
|
+
has nothing to load: publish it once more first. `himi_dist_cancel` stops a build that is still running; the
|
|
40
|
+
build still counts against the daily limit. (#6461)
|
|
41
|
+
|
|
17
42
|
## 2026-11-23
|
|
18
43
|
|
|
19
44
|
### Validate & test
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"name": "StreamDirective",
|
|
44
44
|
"kind": "interface",
|
|
45
45
|
"jsdoc": "/**\n * Streaming directive (RFC 0040). An action may return its new state with a\n * transient `_stream` field; the runtime strips it from the stored state and\n * asks the native host to open the request as a Server-Sent-Events stream. For\n * every parsed `data:` event the host dispatches `onEvent(state, event)` back\n * through the normal reducer→render loop (the worker has no timers), then\n * `onDone(state)` / `onError(state, {message})` when the stream closes. Requires\n * the bundle to declare the `\"stream\"` capability; `request.url` is checked\n * against the same per-capability host allowlist as `wix_api`.\n */",
|
|
46
|
-
"decl": "export interface StreamDirective {\n /** Stable id; a new directive with the same id cancels the prior stream. */\n id: string;\n request: {\n method: \"POST\" | \"GET\";\n url: string;\n headers?: Record<string, string>;\n body?: unknown;\n /** Apply the host's Wix authorization to this request before opening the stream. */\n authorize?: boolean;\n };\n /** Reducer action name dispatched once per parsed `data:`
|
|
46
|
+
"decl": "export interface StreamDirective {\n /** Stable id; a new directive with the same id cancels the prior stream. */\n id: string;\n request: {\n method: \"POST\" | \"GET\";\n url: string;\n headers?: Record<string, string>;\n body?: unknown;\n /** Apply the host's Wix authorization to this request before opening the stream. */\n authorize?: boolean;\n /**\n * How the response body is framed. `\"sse\"` (the default) reads Server-Sent Events `data:`\n * lines; `\"ndjson\"` reads one JSON object per line (`application/x-ndjson`). Either way each\n * object reaches `onEvent`, and an object whose `type` is `\"done\"` or `\"error\"` ends the stream.\n */\n format?: \"sse\" | \"ndjson\";\n };\n /** Reducer action name dispatched once per parsed event (an SSE `data:` line, or an NDJSON line). */\n onEvent: string;\n /** Reducer action name dispatched when the stream closes cleanly. */\n onDone?: string;\n /** Reducer action name dispatched on transport/parse error. */\n onError?: string;\n}",
|
|
47
47
|
"verificationChecked": true
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -5544,27 +5544,6 @@
|
|
|
5544
5544
|
"source": "stdlib/flows/screens/src/index.ts",
|
|
5545
5545
|
"description": "@wix/himalaya/screens — ready-made screens and shared header compositions.",
|
|
5546
5546
|
"api": [
|
|
5547
|
-
{
|
|
5548
|
-
"name": "DetailedHeaderAction",
|
|
5549
|
-
"kind": "interface",
|
|
5550
|
-
"jsdoc": "/** An action shown by `detailedHeader`. */",
|
|
5551
|
-
"decl": "export interface DetailedHeaderAction {\n label: string;\n action: Node;\n style?: \"primary\" | \"secondary\" | \"plain\";\n}",
|
|
5552
|
-
"verificationChecked": true
|
|
5553
|
-
},
|
|
5554
|
-
{
|
|
5555
|
-
"name": "DetailedHeaderOptions",
|
|
5556
|
-
"kind": "interface",
|
|
5557
|
-
"jsdoc": "/** Options for the shared One App-style detailed header composition. */",
|
|
5558
|
-
"decl": "export interface DetailedHeaderOptions {\n /** Prefix for stable SDUI node IDs. Use a unique value for each header. */\n id?: string;\n /** Page nodes that scroll beneath the hero and detail card. */\n content?: Node[];\n /** Cover image selected by the migration from the source cover list. */\n imageUrl?: string;\n title: string;\n subtitle?: string;\n logoUrl?: string;\n locationLabel?: string;\n locationAction?: DetailedHeaderAction;\n memberCaption?: string;\n memberAvatars?: Array<{ imageUrl?: string; initials?: string }>;\n /** Live member rows from a service. This takes precedence over `memberAvatars`. */\n memberAvatarsPath?: string;\n inviteAction?: DetailedHeaderAction;\n primaryAction?: DetailedHeaderAction;\n aboutAction?: DetailedHeaderAction;\n /** Keep the hero at one height when the source header is not collapsible. */\n collapsible?: boolean;\n expandedHeight?: number;\n collapsedHeight?: number;\n}",
|
|
5559
|
-
"verificationChecked": true
|
|
5560
|
-
},
|
|
5561
|
-
{
|
|
5562
|
-
"name": "detailedHeader",
|
|
5563
|
-
"kind": "function",
|
|
5564
|
-
"jsdoc": "/**\n * Build an optional Detailed cover header for screens that explicitly request one.\n *\n * The header uses Himalaya's cross-platform `CollapsingHeader` and standard\n * components for the detail card, logo, member strip, and actions. The One App\n * migration workflow uses native navigation bars and does not call this builder.\n * Himalaya's hero accepts one image.\n */",
|
|
5565
|
-
"decl": "export function detailedHeader(opts: DetailedHeaderOptions): Node;",
|
|
5566
|
-
"verificationChecked": true
|
|
5567
|
-
},
|
|
5568
5547
|
{
|
|
5569
5548
|
"name": "ScreenEnvelope",
|
|
5570
5549
|
"kind": "interface",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1869.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": "0f1aa31ca876109a3cc59f3f334c652b9a5a29a80e6893a18a158fd0"
|
|
86
86
|
}
|
|
@@ -27,6 +27,15 @@ export function hasIntl(): boolean {
|
|
|
27
27
|
return typeof Intl !== "undefined";
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/** The device's IANA time zone, or "UTC" where this engine has no ECMA-402 or no zone data. */
|
|
31
|
+
export function deviceTimeZone(): string {
|
|
32
|
+
try {
|
|
33
|
+
const zone = typeof Intl !== "undefined" && Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
34
|
+
if (typeof zone === "string" && zone) return zone;
|
|
35
|
+
} catch { /* an engine with Intl but no zone data */ }
|
|
36
|
+
return "UTC";
|
|
37
|
+
}
|
|
38
|
+
|
|
30
39
|
const MONTHS_SHORT = [
|
|
31
40
|
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
|
|
32
41
|
] as const;
|
|
@@ -27,6 +27,15 @@ export function hasIntl(): boolean {
|
|
|
27
27
|
return typeof Intl !== "undefined";
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/** The device's IANA time zone, or "UTC" where this engine has no ECMA-402 or no zone data. */
|
|
31
|
+
export function deviceTimeZone(): string {
|
|
32
|
+
try {
|
|
33
|
+
const zone = typeof Intl !== "undefined" && Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
34
|
+
if (typeof zone === "string" && zone) return zone;
|
|
35
|
+
} catch { /* an engine with Intl but no zone data */ }
|
|
36
|
+
return "UTC";
|
|
37
|
+
}
|
|
38
|
+
|
|
30
39
|
const MONTHS_SHORT = [
|
|
31
40
|
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
|
|
32
41
|
] as const;
|
|
@@ -149,6 +149,13 @@ export default defineApp({
|
|
|
149
149
|
"parentScreenId": "himi_owner_lite_aria",
|
|
150
150
|
"tabId": "aria"
|
|
151
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"screenId": "himi_owner_lite_maestro",
|
|
154
|
+
"isPublic": false,
|
|
155
|
+
"paramKeys": [],
|
|
156
|
+
"parentScreenId": "himi_owner_lite_aria",
|
|
157
|
+
"tabId": "aria"
|
|
158
|
+
},
|
|
152
159
|
{
|
|
153
160
|
"screenId": "himi_owner_lite_brief",
|
|
154
161
|
"isPublic": false,
|