@wix/himalaya-cli 0.1700.0 → 0.1702.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 +20 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +82 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +62 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +134 -0
- package/dist/cli.mjs +841 -254
- package/guides/designing-himi-screens.md +3 -1
- package/guides/himi-json-output.md +12 -0
- package/guides/release-notes.md +16 -0
- package/guides/wix-business-context.md +29 -2
- package/guides/wix-site-to-himi-app.md +2 -1
- package/package.json +2 -2
|
@@ -370,7 +370,8 @@ a single dial metric. *Use a `Badge` for a count, a `Tag` for a category — the
|
|
|
370
370
|
**Media** — `Image` (`fillWidth`, `height`, always `contentDescription`); `Video`/`Lottie`/`Rive` for
|
|
371
371
|
motion media; `Map` for location; `Avatar` for a person; `QrCode` to share a link, ticket or invite
|
|
372
372
|
as a code generated on the device (bind `valuePath`; keep the payload short, since a literal over the
|
|
373
|
-
level's capacity fails validation); `WebView` only when native can't express it.
|
|
373
|
+
level's capacity fails validation); `WebView` only when native can't express it. For a page of the
|
|
374
|
+
customer's own website, use `sitePage(site, { path })` (see §4), not a hand-built `WebView`.
|
|
374
375
|
*Fill-width media gets a `cornerRadius` so it doesn't fight the card edges.*
|
|
375
376
|
Images preview by default: a tap opens one full screen and pages through the screen's other images.
|
|
376
377
|
Opt out with `modifiers.imagePreview: "off"` on an image or subtree that should not open; use `"view"`
|
|
@@ -396,6 +397,7 @@ Concrete patterns lifted from real usage:
|
|
|
396
397
|
- **A screen that owns its top bar (search beside back)** — set `topBar: { leading: "none" }` and put the row in `stickyHeader`: `hstack([ iconButton({ icon: "arrow_left", accessibilityLabel: "Back", action: { actionId: "nav.back", presentation: "back" } }), withModifiers(textField({ placeholder: "Search", … }), { weight: 1 }) ])`. With **both** set, every shell draws no bar and no back control of its own (iOS hides the system bar, Android floats no chevron and reserves no band, web hides its bar on every look), so the row is the only top bar. `leading: "none"` without a `stickyHeader` keeps the bar's title and trailing actions but drops the back control (and the hamburger, for that screen). System back — hardware, gesture, edge swipe, browser — still pops. Any other `leading` value keeps today's chrome; demo: `gallery_search_topbar`, linked from the gallery's "Lists & data".
|
|
397
398
|
- **Cell list** — one `Section` with `inset: true` and a `header`, its children the `ListItem` cells; the cells own their own dividers and padding. A schedule, a service menu and a session list are this shape too, not a `Card` around each item.
|
|
398
399
|
- **Photo tile** — `vstack({ spacing: 6, alignment: "leading", children: [ image({ url, fillWidth: true, aspectRatio: 0.8, contentMode: "fill", placeholder: "surfaceSecondary", contentDescription }) + cornerRadius 8, text(name, "body"), text(price, "callout", { color: "textSecondary" }) ] })` with `modifiers.onTap` on the stack, inside `grid({ columns: 2, columnsMedium: 3, columnsExpanded: 4, spacing: 12 })`. A shelf is the same tile at a fixed `width` (about 110) in `lazyList({ horizontal: true, spacing: 12 })`.
|
|
400
|
+
- **A website page with native UI around it** — `vstack({ children: [ header, sitePage(site, { path: "/book-online" }), stickyBar ] })`, where `site` is the app's `site` block (a `SiteShellConfig`) and `sitePage` comes from `@wix/himalaya/sdui`. It emits a `WebView` with `role: "primary"`, `fill`, its own scrolling, `modifiers.weight: 1` and the site preset as its config (the same URL and behaviour a site-shell tab gets; `webView: { … }` overrides it). `title` becomes the page's accessible name (`modifiers.accessibilityLabel`, which every `WebView` needs); without one the site's host is used. The weight gives the page only the height the header and bar leave. Put it at the screen root or directly in a root `VStack`, `HStack` or `ZStack`, and use one per screen. The validator rejects it inside a `LazyList`, `Pager`, `Carousel` or `CollapsingHeader`, or with its weight removed. To serve a whole site-shell app in this form, use `siteScreens(site, { form: "node" })`; `desugarSiteScreen(descriptor)` converts one Tier-3 site screen.
|
|
399
401
|
- **Overlay** — `zstack({ alignment: "center", children: [ backdropImage(cornerRadius 12), withModifiers(label, { padding, background: { token: "accentPrimary" }, cornerRadius: 10 }) ] })`.
|
|
400
402
|
- **Responsive** — `grid({ columns: 1, columnsMedium: 2, spacing: 12 })` for wide cards, 1-up on phone / 2-up on tablet (photo tiles start at 2 on a phone); `splitView({ primary, detail, primaryMaxWidth: 280 })` for master/detail that stacks on a phone; set `contentMaxWidth` in tokens so wide surfaces keep a readable column instead of running edge-to-edge.
|
|
401
403
|
- **Centered separator, not a flanked divider** — the classic "—— or ——" needs each `divider()` to take equal remaining width, and the HStack row-share only kicks in for controls with an intrinsic fill. **A bare `divider()` inside an HStack is a column separator, not a flanking line**: iOS, macOS, Android, web and React Native all draw it as a thin vertical rule the height of the row that takes no share of the width, which is right for a stats row (`12 | 340 | 87`) and wrong for "—— or ——". For "—— or ——", use a **centered caption**: `hstack({ children: [spacer(), text("or continue with", "caption", { color: "textSecondary" }), spacer()] })`, optionally over a single full-width `divider()`.
|
|
@@ -364,6 +364,18 @@ An invalid manifest fails with `manifest_invalid`, like the other `store iap` co
|
|
|
364
364
|
|---|---|
|
|
365
365
|
| `browser_unavailable` | `himi site analyze` needs Playwright and its Chromium for the crawl, the page screenshots and the theme, and one of them is not installed. It refuses before any network work, on stderr with `ok: false`, `error`, the fix in `fix` (text to print: one command, or on Windows the steps on separate lines because PowerShell 5.1 has no `&&`) and as separate commands in `fixSteps`, and the readiness in `browser` (`playwright.installed`, `chromium.installed`). Exit 2. `--no-browser` runs the static-HTML-only pass on purpose instead. `himi doctor --json` reports the same readiness under `browser`, with the same `code`, `fix` and `fixSteps` when the browser is missing; that does not make doctor's `ok` false, because build, validate, test and push run without a browser. `himi doctor --install-browser` downloads the Chromium the CLI's own Playwright launches and then re-checks; it exits 1 when no browser is left installed. |
|
|
366
366
|
|
|
367
|
+
## `himi site analyze --site-pages` codes
|
|
368
|
+
|
|
369
|
+
`--site-pages` (opt-in website pages beside a native app) and its `--dry-run`
|
|
370
|
+
refuse an unusable combination before any network work, on stderr with `ok: false`, `code`,
|
|
371
|
+
`error` and `usage`. Exit 2. This is not a migration of `himi site analyze`: its other failures
|
|
372
|
+
keep their legacy envelopes.
|
|
373
|
+
|
|
374
|
+
| Code | Meaning |
|
|
375
|
+
|---|---|
|
|
376
|
+
| `site_pages_shell_unsupported` | `--site-pages` names a shell that hosts no website pages beside native screens. Only `--shell branded-lite` (the default) does; a site shell (`brandy`) is all website pages already. Nothing was read or written. |
|
|
377
|
+
| `dry_run_needs_site_pages` | `--dry-run` was passed without both `--apply` and `--site-pages`. It previews `--apply --site-pages` only; plain analyze already writes nothing into the app, and `book.md` → `## Site pages` shows what `--site-pages` would add. Nothing was read or written. |
|
|
378
|
+
|
|
367
379
|
## `himi store iap connect` codes
|
|
368
380
|
|
|
369
381
|
`connect` prints one envelope with the whole report. When the setup is not complete it is
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,22 @@ 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-13
|
|
18
|
+
|
|
19
|
+
### Getting started & the CLI
|
|
20
|
+
|
|
21
|
+
- **`himi site analyze --apply --site-pages` adds the site's pages that Branded Lite has no screen
|
|
22
|
+
for, as website pages.** About, Our Story, a news page on a site without Wix Blog, or a shop page
|
|
23
|
+
on a site that does not run Wix Stores each open the live website from one drawer section, "From
|
|
24
|
+
our website". Pages a native screen covers (Book Online, a Wix Blog) stay native, and Home, flow
|
|
25
|
+
pages and members pages are left out, at most 10 pages in the site's menu order. It is opt-in: a
|
|
26
|
+
plain `--apply` adds none. The tab bar does not change, and site links keep opening their native
|
|
27
|
+
screens. `book.md` gains a `## Site pages` section that lists what the flag would add, and
|
|
28
|
+
`--apply --site-pages --dry-run` shows the same plan in `apply.sitePages` and writes nothing into
|
|
29
|
+
the app. In a package from `himi init --template branded-lite`, the pages are `site_*` screens in
|
|
30
|
+
`dev/index.ts` with rows in `config.ts`'s drawer. A re-apply removes the pages the site no longer
|
|
31
|
+
lists. (#5779)
|
|
32
|
+
|
|
17
33
|
## 2026-11-09
|
|
18
34
|
|
|
19
35
|
### Logic, data & SDKs
|
|
@@ -150,7 +150,7 @@ RFC 0048 refused a **content dump** on the runtime facade. The dump lives here,
|
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
152
|
himi site analyze --url https://… --out .himi/business-book # visitor-only pass
|
|
153
|
-
himi site analyze --url https://… --client-id <id> [--site <msid>] --out .himi/business-book [--apply]
|
|
153
|
+
himi site analyze --url https://… --client-id <id> [--site <msid>] --out .himi/business-book [--apply [--site-pages] [--dry-run]]
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
`--url` alone is the **visitor-only pass**: the published pages, their look (screenshots,
|
|
@@ -237,7 +237,34 @@ The map comes from what the analysis already reads without owner credentials, be
|
|
|
237
237
|
- **Size:** at most 10 pages, with titles capped at 40 characters.
|
|
238
238
|
- **Chrome:** the site's own header, footer and Wix ads are hidden (the site shell's default).
|
|
239
239
|
|
|
240
|
-
|
|
240
|
+
Each page becomes a Tier-3 WebView screen today (`siteScreens(site)` in `@wix/himalaya/core`). A second form of the same pages exists: `siteScreens(site, { form: "node" })` serves each one as an SDUI screen whose root is the page as a primary `WebView` node, and `sitePage(site, { path })` (`@wix/himalaya/sdui`) puts one page on a screen beside native UI. The default stays the Tier-3 form, because an app binary built before site-page nodes would draw the node form as a plain embedded WebView. See [Designing Himi screens → a website page with native UI around it](designing-himi-screens.md#4-layout-idioms-recipes-that-read-well).
|
|
241
|
+
|
|
242
|
+
The block is validated with the shell's own rules before it is written. Only a site shell ever receives it: the analysis leaves it out for any other `--shell`, and the merge drops it for a shell whose committed contract has no `site`. `--apply --shell brandy` without a `site` block in the overlay is refused, because baking would ship the shell's demo site under the customer's brand. The one other `site` block is the `--site-pages` one below.
|
|
243
|
+
|
|
244
|
+
### Pages with no native screen: `--site-pages`
|
|
245
|
+
|
|
246
|
+
Branded Lite renders the site with its own screens, so by default `--apply` adds no website page. `--site-pages` is the opt-in for the site's pages that have no native screen: each one opens the website, as a website page in the drawer.
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
himi site analyze --url https://… --client-id <id> # book.md → ## Site pages shows the plan
|
|
250
|
+
himi site analyze --url https://… --client-id <id> --apply --site-pages --dry-run # mode: "dry", writes nothing into the app
|
|
251
|
+
himi site analyze --url https://… --client-id <id> --apply --site-pages
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
Which pages: the site's menu in its own order (the published page list when no menu was crawled), with Home, flow pages (thank-you, checkout, item templates) and members pages left out. A page becomes a website page when no native screen covers it:
|
|
255
|
+
|
|
256
|
+
- **Native:** a vertical's page whose vertical the site runs and the app has a screen for (Book Online with Wix Bookings, a Wix Blog). Also an FAQ page when the app has FAQ pairs, a gallery page when it has the gallery photos, and a contact page when it has the business contact.
|
|
257
|
+
- **Website page:** About, Our Story and other custom pages; a news page on a site without Wix Blog; a shop or booking page whose vertical the site does not run; a vertical page whose screen this app does not ship (a trimmed package).
|
|
258
|
+
- **Cap:** at most 10 website pages, in menu order. The rest are listed as left out.
|
|
259
|
+
|
|
260
|
+
Where they go: one drawer section, **From our website**, after the main rows (Home, the core verticals, Profile, Contact) and before the folders. Each page is a row labelled with the site's own title, opening a `site_<id>` site screen (the same Tier-3 screen a site shell serves). The section starts expanded with four rows or fewer and folded above that. The tab bar does not change, and the app declares no `navigation.site`, so site links keep today's routing: a product or booking link still opens its native screen. A link inside a website page stays in that page's WebView.
|
|
261
|
+
|
|
262
|
+
What it writes:
|
|
263
|
+
|
|
264
|
+
- **In the repo:** the drawer-only `site` block goes into the merged contract, and the Branded Lite shell builds the section and the screens from it. A later plain `--apply` for the same site keeps those pages (for another site it drops them).
|
|
265
|
+
- **Off-repo** (a package from `himi init --template branded-lite`): the `site_*` screens are written into `dev/index.ts` (with their linkable rows and view names), and the section is spliced into `config.ts`'s `navigation.drawer.items`. The package's `provisioning.json` records the block. These ids belong to `--site-pages`: `site_*` screens, `drawer_site_*` rows and `drawer_sec_website`. A re-apply removes the ones the site no longer lists and rewrites the rest, so applying twice changes nothing, and a hand edit to one of them is overwritten. If `config.ts` or `dev/index.ts` is not in the plain-JSON shape `himi init` writes, nothing is added and the note says why.
|
|
266
|
+
|
|
267
|
+
`apply.sitePages` reports `{ site, native, skipped }` (and, off-repo, `screens: { added, replaced, removed, rows }`), and the note's first line after any warnings counts them. `--dry-run` needs `--apply --site-pages`: it returns `mode: "dry"`, `wouldWrite` and the same `sitePages`, and writes nothing into the app (the business book is still written). `--site-pages` works only with Branded Lite (`--shell branded-lite`, the default); other shells are refused with `site_pages_shell_unsupported` ([himi-json-output.md](himi-json-output.md)). A plain `--apply` never adds, removes or changes a website page; only `--site-pages` does.
|
|
241
268
|
|
|
242
269
|
When the analysis recognized at least one vertical, `--apply` also patches the shell's baked home
|
|
243
270
|
(`dev/index.ts`) to what the site actually runs. The Explore grid keeps only the site's
|
|
@@ -153,6 +153,7 @@ for **behavior** is the website; design authority for **layout** is
|
|
|
153
153
|
| Duplicate slug encodings | Dedupe |
|
|
154
154
|
| Website mega-nav | 2–4 `bottomTabs` for primary jobs; overflow to a menu — unless `book.mobileApp` is a Branded app, whose tab count and order win |
|
|
155
155
|
| Section names, tab labels, CTA text, empty states | `book.copy` — the site's own words, never a generic default |
|
|
156
|
+
| A page no native screen covers (About, a custom page, a vertical the app has no screen for) | Write a native screen for it when it is a real job. If the operator opts in, `himi site analyze --apply --site-pages` adds it as a website page instead, in the drawer section "From our website" (`book.md` → `## Site pages` lists them). That is a labelled fallback, never the default, and each one is a candidate to replace with a native screen later |
|
|
156
157
|
|
|
157
158
|
v1 cap: **home + each installed vertical that has visitor content + every published
|
|
158
159
|
custom form/content page that is not 404.** Do not clone every Thunderbolt URL.
|
|
@@ -279,7 +280,7 @@ state), and pass `himi test`. Then run
|
|
|
279
280
|
- Never invoke Velo HTTP functions **from analyze** (or as a substitute for rewriting Velo *pages*). To create/update/publish the site's HTTP API use `himi site function` (`himi docs wix-site-http-functions`).
|
|
280
281
|
- Never log contact PII; never paste `secrets-backend`.
|
|
281
282
|
- Never invent CMS schemas when the book’s CMS chapter is empty but the site has forms.
|
|
282
|
-
- Never pixel-clone the website; never wrap it in a WebView (the WebView product is the separate site shell, `--shell brandy` — not this guide's output).
|
|
283
|
+
- Never pixel-clone the website; never wrap it in a WebView (the WebView product is the separate site shell, `--shell brandy` — not this guide's output). The one exception is opt-in: `--apply --site-pages` adds the site's pages that have **no native screen** as website pages in one drawer section, and only when the operator passes the flag. Never use it for a page a native screen covers, and say in the screen plan which pages it added.
|
|
283
284
|
- Never edit the Himalaya monorepo’s committed `apps/himi-branded-lite/provisioning.json`.
|
|
284
285
|
|
|
285
286
|
## See also
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1702.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": [
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"artifactId": "himalaya-cli"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
"falconPackageHash": "
|
|
84
|
+
"falconPackageHash": "99051fcab5b172398de9f526dd94392d7a20ec6a51479160e85b6491"
|
|
85
85
|
}
|