@wix/himalaya-cli 0.1718.0 → 0.1720.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.
@@ -279,13 +279,15 @@ prompt.
279
279
  | `system_intents` | the shell has to wire the system-intents host (app identity, deep-link routing, refresh) |
280
280
  | `release_control` | the shell's boot has to configure it with the app id whose releases it switches |
281
281
  | `legacy_import` | the shell's boot has to run the legacy importer before auth and feed it the signed-in principal |
282
- | `base44` | the shell's boot has to bind the Base44 app it talks to; the module links, the binding is the shell's |
283
282
  | `godot` | needs the shell's game surface view and, on Android, the shell's pick of the engine's C++ runtime |
284
283
 
285
284
  An id with no handler on both iOS and Android is refused the same way. Everything else with a
286
285
  native module is addable — `health` (the build links HealthKit and Health Connect, and
287
286
  `permissionCopy.health` is the iOS purpose string and the Health Connect rationale), `iap`,
288
- `calls` (the WebRTC engine), `animation`, `media_playback` and the rest. A shell that does not
287
+ `calls` (the WebRTC engine), `animation`, `media_playback`, `base44` (the build links the Base44
288
+ backend and bakes the Base44 app your contract binds — its `base44.appId` beside a `site` of kind
289
+ `base44` — so the site's own `/login` opens the native Account screen; a release that declares
290
+ `base44` without that binding is refused at the build) and the rest. A shell that does not
289
291
  carry a capability's usage string can crash the app at the permission prompt, which is why both
290
292
  the build and `himi validate` check before you ship.
291
293
 
@@ -403,12 +403,14 @@ An invalid manifest fails with `manifest_invalid`, like the other `store iap` co
403
403
 
404
404
  `--site-pages` (opt-in website pages beside a native app) and its `--dry-run`
405
405
  refuse an unusable combination before any network work, on stderr with `ok: false`, `code`,
406
- `error` and `usage`. Exit 2. This is not a migration of `himi site analyze`: its other failures
407
- keep their legacy envelopes.
406
+ `error` and `usage`. Exit 2. `--apply` onto a site shell with no `site` block in the overlay
407
+ refuses after the analysis, on stderr with `ok: false`, `code` and `error`, exit 2. This is not
408
+ a migration of `himi site analyze`: its other failures keep their legacy envelopes.
408
409
 
409
410
  | Code | Meaning |
410
411
  |---|---|
411
- | `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. |
412
+ | `site_pages_shell_unsupported` | `--site-pages` names a shell that hosts no website pages beside native screens, or a target that is a site shell. Only `--shell branded-lite` (the default) hosts them; a site shell (`brandy`, or any target whose contract has a `site` block, such as a website-template package) is all website pages already. Nothing was read or written. |
413
+ | `site_shell_needs_site` | `--apply` targets a site shell (the contract it writes has a `site` block: a shell such as `brandy` in the repo, or a content package whose provisioning.json names its website), and the overlay has no `site` block, usually because the page map could not be derived. Applying it would keep the previous website. Re-run `himi site analyze` to derive the page map, or write `site` into `provisioning.overlay.json` by hand. The app was not changed (the business book was still written). |
412
414
  | `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. |
413
415
 
414
416
  ## `himi store iap connect` codes
@@ -191,6 +191,29 @@ no adaptation waiver, and this checklist must not force the disabled control on.
191
191
  Data/access-dependent controls need the relevant source state; never fabricate
192
192
  participants or derive program completion from a badge title.
193
193
 
194
+ ### Sections whose screen already exists
195
+
196
+ `himi one-app generate` connects these sections to a screen the template already ships. It builds nothing for them:
197
+ a page made only of the section opens the screen as its tab, and beside other sections the page keeps the source's title
198
+ (only when the source shows it) and a **See All** button to the screen.
199
+
200
+ | Source section | Screen | What the section passes |
201
+ | --- | --- | --- |
202
+ | `upcoming_bookings_section` | `himi_bookings` | nothing |
203
+ | `memberships_packages_section` | `himi_my_subscriptions` | nothing |
204
+ | `platform_paid_plans_section` | `himi_plans` | nothing: the screen takes no plan selection |
205
+ | `groups_list_section` | `himi_groups` | nothing: no group selection or count |
206
+ | `faq_list_section` | `himi_faq` | nothing: no question count or category selection |
207
+ | `newBlog_postlist_carousel_full_section` | `himi_blog` | nothing: the screen does not open on a category |
208
+ | `stores_products_grid_section`, `stores_products_carousel_section` | `himi_shop` | `categoryId`: the section's collection (Wix's "All Products" collection is the shop's own All chip) |
209
+
210
+ A screen that cannot follow a setting would show more or other content than the source, so `generate` reports one **gap** per
211
+ such setting (a chosen plan or group list, a question or post count, a category, featured-only posts, previous bookings, an empty
212
+ text). Record each as an `adapted` row in the coverage ledger; never leave it unsaid. A scaffold without the screen reports
213
+ the section as unmapped, and `apply-navigation` keeps refusing it. A link that passes a collection opens the shop screen
214
+ instead of selecting its tab, so the collection arrives; the shop screen then carries no collection of its own.
215
+ Forum, `performance_tracker_section` and `platform_general_upcoming_section` have no screen and stay unmapped.
216
+
194
217
  ### Preserve section visibility across authentication
195
218
 
196
219
  The eight member-only rows above are supported by the shared visibility recipe below;
@@ -238,9 +238,13 @@ and allowlists every method a page can call on them (the methods each `web-sdk/<
238
238
  }
239
239
  ```
240
240
 
241
- The app's customer build writes and builds it. (Inside the Himi repository that is
242
- `npm run prepare:customer -w @apps/himi-brandy`; for a local preview,
243
- `npm run web-sdk:companion -w @apps/himi-brandy` first.) To expose
241
+ The content build writes and builds it, on any shell: when the app's `provisioning.json`
242
+ declares `webSdk`, `himi build` (and so `himi push`, `himi pack` and `himi validate`) writes
243
+ the companion's source to `tier5-src/himi-webview-page-<hash>/` and compiles it with your other
244
+ workers. The name is reserved, so do not edit that folder; it is rewritten from `webSdk` on
245
+ every build. (Inside the Himi repository Brandy's customer build does the same:
246
+ `npm run prepare:customer -w @apps/himi-brandy`, or `npm run web-sdk:companion -w @apps/himi-brandy`
247
+ for a local preview.) To expose
244
248
  fewer methods, write your own companion and name it in `bundle` — a named bundle is used as is.
245
249
 
246
250
  Brandy accepts capabilities `himi dist` can add to an extensible shell. Capabilities requiring
@@ -227,6 +227,8 @@ himi site analyze --url https://owner.wixsite.com/site --shell brandy --apply
227
227
 
228
228
  No `--client-id` is needed here: a site shell is visitor-only, its pages are the site itself, and its contract binds no Headless client. For an off-repo brandy app (`himi init --template brandy`), run the `--apply` inside the app folder: it writes the derived `site` block into the package's own `provisioning.json`, which the template's `config.ts` builds every tab and screen from.
229
229
 
230
+ What makes a target a site shell is its contract, not the shell's name: the analysis derives the page map whenever the contract `--apply` writes has a `site` block. In the repo that is the shell's committed `apps/<shell>/provisioning.json` (Brandy's has one, Branded Lite's does not); off-repo it is the content package's own `provisioning.json`, so a website template on the Branded Lite shell is a site shell with no `--shell` at all. A Branded Lite target without a `site` block stays a native app, `--site-pages` included. The drawer-only block `--site-pages` writes does not make a target a site shell.
231
+
230
232
  The map comes from what the analysis already reads without owner credentials, because Wix has no public menu API: the published page list (`look.sitePages`), the header menu the crawl saw (`look.navLinks`, label and href), and each page's role.
231
233
 
232
234
  - **Order and labels** follow the site's own menu. Links to other hosts, and repeat links to the same page, are dropped.
@@ -239,7 +241,7 @@ The map comes from what the analysis already reads without owner credentials, be
239
241
 
240
242
  Each page becomes one screen that carries two forms (`siteScreens(site)` in `@wix/himalaya/core`). The first is a Tier-3 WebView screen, which every app binary renders. The second, in the screen's `payload`, is an SDUI screen whose root is the page as a primary `WebView` node, and a binary that supports site-page nodes draws that one instead. Both are in one descriptor because the server cannot tell which binary is asking for a screen. Older binaries ignore `payload`, so nothing changes for them. `siteScreens(site, { form: "t3" })` and `{ form: "node" }` serve one form only. `sitePage(site, { path })` (`@wix/himalaya/sdui`) puts one page on a screen beside native UI. See [Designing Himi screens → a website page with native UI around it](designing-himi-screens.md#4-layout-idioms-recipes-that-read-well).
241
243
 
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.
244
+ 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 target, and the merge drops it for a shell whose committed contract has no `site`. `--apply` onto a site shell without a `site` block in the overlay is refused (`site_shell_needs_site`), because it would keep the previous website: in the repo, `--shell brandy` would ship the shell's demo site under the customer's brand; off-repo, the package would keep its last site. The one other `site` block is the `--site-pages` one below.
243
245
 
244
246
  ### Pages with no native screen: `--site-pages`
245
247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1718.0",
3
+ "version": "0.1720.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": "d9f9ddf2bf21b7e653af21f326e44ef6d0b52b0116b80a39b75816a5"
84
+ "falconPackageHash": "98987669d8a14db16afd3973512e2dc5c03bb23599118c14eeee0f24"
85
85
  }