@wix/himalaya-cli 0.1801.0 → 0.1802.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/ts/src/schema.d.ts +24 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +22 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +20 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +48 -9
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +41 -7
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{ec390e530da7eb0a2f0efa0267b2fb63e1c4f79d4695418e4a97274d92816788.bin → fea87cf4a45bd9c7c2bc067b03e7d7a0ba320b18781d10153457cd5e2747b4b9.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +122 -70
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/release-notes.md +15 -0
- package/guides/web-page-native-sdk.md +31 -0
- package/guides/wix-business-context.md +1 -1
- package/package.json +2 -2
- package/templates/brandy/README.md +47 -8
- package/templates/brandy/provisioning.json +1 -1
|
Binary file
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,21 @@ 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-20
|
|
18
|
+
|
|
19
|
+
### Branded Lite & Owner Lite
|
|
20
|
+
|
|
21
|
+
- **A website app hides the site's own menu on every kind of site.** The native tabs and drawer already
|
|
22
|
+
list the pages, so `site.chrome.hideSiteMenu` hides the site's own menu on every page; the `brandy`
|
|
23
|
+
template and `himi site analyze` now write it out so you can see and change it. On a Wix site the app
|
|
24
|
+
hides Wix's menu itself. On a Base44 or any other site the app marks each page's `<html>` with
|
|
25
|
+
`data-himi-native-nav` (from document start on iOS and macOS, as the page is first shown on Android),
|
|
26
|
+
so one CSS rule in your site hides its menu inside the app only. For anything else, `site.chrome.hideSelectors` (and a page's
|
|
27
|
+
`webView.hideSelectors`) lists CSS selectors the app hides on every page: at most 32, each at most 200
|
|
28
|
+
characters, and like the flags it changes with a push, not a store release. All of it needs the app
|
|
29
|
+
built from this release; the web preview cannot apply it. A Wix page in the web preview now keeps its
|
|
30
|
+
mobile layout even with every Wix hider turned off. (#6257)
|
|
31
|
+
|
|
17
32
|
## 2026-11-18
|
|
18
33
|
|
|
19
34
|
### Getting started & the CLI
|
|
@@ -373,6 +373,37 @@ The same page must keep working in an ordinary browser (and in Base44 / Lovable
|
|
|
373
373
|
- **Never put secrets in the page.** The page is public web code; native calls are authorized by
|
|
374
374
|
the app, not by anything you send.
|
|
375
375
|
|
|
376
|
+
## Hide your own menu inside the app
|
|
377
|
+
|
|
378
|
+
When the app wraps your site (a Brandy app), its native tabs and drawer already list your pages, so
|
|
379
|
+
your site's own menu would be a second one. With the app's `chrome.hideSiteMenu` on (the default for
|
|
380
|
+
a Base44 site; a `web` site's owner turns it on), the app marks every page with the
|
|
381
|
+
`data-himi-native-nav` attribute on `<html>` — from document start on iOS and macOS, and as the page
|
|
382
|
+
is first shown on Android (so a menu your server renders may show for a frame there). Key one CSS
|
|
383
|
+
rule on it and the menu is hidden inside the app only — the same
|
|
384
|
+
page in a browser keeps its menu:
|
|
385
|
+
|
|
386
|
+
```css
|
|
387
|
+
[data-himi-native-nav] .site-menu,
|
|
388
|
+
[data-himi-native-nav] .menu-button { display: none; }
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
This needs no client file and no capability: it is plain CSS on an attribute. To decide in code
|
|
392
|
+
instead (a React layout that renders a different header in the app), read it once the page has
|
|
393
|
+
started:
|
|
394
|
+
|
|
395
|
+
```js
|
|
396
|
+
const appShowsNavigation = document.documentElement.hasAttribute("data-himi-native-nav");
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
- **Keep the header's other jobs.** Hide only the menu: the logo, the cart and the account button
|
|
400
|
+
usually stay useful. The app hides the site's header on inner pages itself when its owner asks.
|
|
401
|
+
- **A Wix site needs none of this.** The app hides a Wix site's own menu itself.
|
|
402
|
+
- **In the web preview the attribute is never set** (the preview cannot reach into your page), so the
|
|
403
|
+
menu shows there; check it on a phone.
|
|
404
|
+
- **A site you cannot change**: the app's owner can list the menu's CSS selectors in
|
|
405
|
+
`chrome.hideSelectors` instead, and the app hides them (the Brandy template's README has the rules).
|
|
406
|
+
|
|
376
407
|
## Errors
|
|
377
408
|
|
|
378
409
|
Every failure rejects with a `HimalayaError` that has a `code`:
|
|
@@ -283,7 +283,7 @@ A site shell can wrap a website that is not on Wix or Base44. The analysis names
|
|
|
283
283
|
|
|
284
284
|
- **Pages** come from the crawled header menu only. A web site has no published page list, so when the crawl reads no menu the map is Home only, and a note says so.
|
|
285
285
|
- **Allowed origins** are the site's own host. The `www.` twin a custom Wix domain gets is not added, because another site's `www.` host can belong to someone else.
|
|
286
|
-
- **No adapter:** no session bridge, no Wix member detection, no Base44 adapter. The Wix ads and site-menu
|
|
286
|
+
- **No adapter:** no session bridge, no Wix member detection, no Base44 adapter. The Wix ads hider is always off; `chrome.hideSiteMenu` is off by default and, turned on, hides nothing of the site itself but marks each page `data-himi-native-nav` so the site's own CSS can hide its menu. `chrome.hideSelectors` hides the CSS selectors the owner lists.
|
|
287
287
|
- **Header and footer hiding is off by default** (`chrome: { hideSiteHeader: false, hideSiteFooter: false }`). The hiders fall back to the page's first `<header>` and last `<footer>`, which on an arbitrary site can be an article's, so turn them on only after checking the site.
|
|
288
288
|
- **Visitor-only.** A `wix` or `base44` binding beside a `web` site is refused (`SiteContractError` code `web_site_member_binding` in the shells' parsers, `release_web_site_binding` from `GET /v1/dist/contract`), and so is `menuSource: "runtime"`.
|
|
289
289
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1802.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": "c4d3843d8519c6198fe21187cf79f4572c00a2abc7dc93356a2a81fa"
|
|
86
86
|
}
|
|
@@ -33,7 +33,7 @@ The whole app is the `site` block in `provisioning.json`:
|
|
|
33
33
|
{ "id": "blog", "title": "Blog", "path": "/blog", "icon": "newspaper" },
|
|
34
34
|
{ "id": "contact", "title": "Contact", "path": "/contact", "icon": "mail", "placement": "drawer" }
|
|
35
35
|
],
|
|
36
|
-
"chrome": { "hideSiteHeader": true, "hideSiteFooter": true, "hideWixAds": true }
|
|
36
|
+
"chrome": { "hideSiteHeader": true, "hideSiteMenu": true, "hideSiteFooter": true, "hideWixAds": true }
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
```
|
|
@@ -61,12 +61,49 @@ To review the map first, leave out `--apply`: the block is then only written to
|
|
|
61
61
|
`info`, `tag`, `photo`, `person`, `globe`, …).
|
|
62
62
|
- **`kind`** is the platform the site runs on: `wix`, `base44`, or `web` for any other https site
|
|
63
63
|
(see below). `himi site analyze` picks it for you.
|
|
64
|
-
- **`chrome`** hides the site's own header (on inner pages), its footer and the Wix ads
|
|
65
|
-
Every flag defaults to hidden on a Wix or Base44 site, and to shown on a `web` site.
|
|
64
|
+
- **`chrome`** hides the site's own header (on inner pages), its menu, its footer and the Wix ads
|
|
65
|
+
banner. Every flag defaults to hidden on a Wix or Base44 site, and to shown on a `web` site. See
|
|
66
|
+
[Hide the site's own menu](#hide-the-sites-own-menu).
|
|
66
67
|
|
|
67
68
|
`config.ts` validates the block whenever the app loads, so an `http` origin, a duplicate id or a map
|
|
68
69
|
with no tab fails `himi validate`, `himi render` and `himi push` rather than shipping.
|
|
69
70
|
|
|
71
|
+
## Hide the site's own menu
|
|
72
|
+
|
|
73
|
+
The native tabs and drawer already list your pages, so the site's own menu (its hamburger button and
|
|
74
|
+
its horizontal menu) would be a second one. `"hideSiteMenu": true` hides it on every page; the
|
|
75
|
+
header stays for its logo, cart and member avatar.
|
|
76
|
+
|
|
77
|
+
- **On a Wix site** the app hides Wix's own menu, with nothing for you to do.
|
|
78
|
+
- **On a Base44 or other site** the app marks every page with the `data-himi-native-nav` attribute
|
|
79
|
+
on `<html>` — from document start on iOS and macOS, and as the page is first shown on Android. Add
|
|
80
|
+
one CSS rule to your site and its menu is hidden inside the app only:
|
|
81
|
+
|
|
82
|
+
```css
|
|
83
|
+
[data-himi-native-nav] .my-site-menu { display: none; }
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
- **For an element no rule catches**, list its CSS selectors in `hideSelectors`. The app hides every
|
|
87
|
+
match on every page and keeps it hidden as the page changes:
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
"chrome": { "hideSiteMenu": true, "hideSelectors": ["header nav", "[data-testid='menu-button']"] }
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
At most 32 selectors of at most 200 characters each; a selector the page cannot read is skipped.
|
|
94
|
+
A page's own `"webView": { "hideSelectors": [...] }` replaces the list for that page, and an empty
|
|
95
|
+
list (`[]`) turns the site's selectors off there. Check each
|
|
96
|
+
selector on your site first: whatever it matches disappears.
|
|
97
|
+
|
|
98
|
+
Every one of these is configuration, so changing it reaches installed apps with your next
|
|
99
|
+
`himi push`, with no app store release.
|
|
100
|
+
|
|
101
|
+
**Pages the menu has and the app does not.** Hiding the menu hides every link in it. A page your
|
|
102
|
+
site's menu lists but `pages` does not is then reachable only through links inside other pages.
|
|
103
|
+
List it in `pages` (as a `drawer` or `overflow` page if it should not be a tab), or set
|
|
104
|
+
`"menuSource": "runtime"` on a Wix site so the app adds the site's own menu entries to the drawer on
|
|
105
|
+
the next launch. `himi site analyze --apply` builds `pages` from the menu for you.
|
|
106
|
+
|
|
70
107
|
## Top-bar icons and your own native screens
|
|
71
108
|
|
|
72
109
|
Optional parts of the `site` block add or trim native chrome, with no code:
|
|
@@ -150,7 +187,9 @@ article's, so turn them on only after checking your site.
|
|
|
150
187
|
|
|
151
188
|
A `web` site gets nothing Wix-specific: only its own host stays in the app (no `www.` twin, so use
|
|
152
189
|
the host your site actually serves from; every other link asks "Open in browser?"), and no Wix ads
|
|
153
|
-
|
|
190
|
+
hiding. `"hideSiteMenu": true` there hides nothing by itself; it marks the page so your own CSS can
|
|
191
|
+
hide the menu, and `hideSelectors` hides what you list (see
|
|
192
|
+
[Hide the site's own menu](#hide-the-sites-own-menu)). It is visitor-only: a `wix` or `base44` binding
|
|
154
193
|
beside it, or `"menuSource": "runtime"`, is refused.
|
|
155
194
|
|
|
156
195
|
**App Store review.** Apple's guideline 4.2 rejects an app that is only a website in a wrapper. The
|
|
@@ -186,10 +225,10 @@ Your colours live in `tokens.json` and your name in `config.ts`.
|
|
|
186
225
|
tabs, drawer and sidebar. A browser frame cannot reach into another site's page, so some things
|
|
187
226
|
only happen on a phone:
|
|
188
227
|
|
|
189
|
-
- **The site's own header, footer and Wix ads stay visible.** The `chrome` flags
|
|
190
|
-
native app
|
|
191
|
-
- **
|
|
192
|
-
the desktop layout inside the phone frame.
|
|
228
|
+
- **The site's own header, menu, footer and Wix ads stay visible.** The `chrome` flags and
|
|
229
|
+
`hideSelectors` are applied by the native app, and the page is not marked `data-himi-native-nav`.
|
|
230
|
+
- **A Wix site shows its mobile layout**, as on a phone. Any other site picks its desktop or mobile
|
|
231
|
+
layout from the browser, so a desktop browser can show its desktop layout inside the phone frame.
|
|
193
232
|
- **Links inside a page open inside the frame**, off-site ones included, with no prompt (a link the
|
|
194
233
|
site opens in a new tab follows the browser's popup rules). The "open in your browser?" prompt
|
|
195
234
|
for off-site links exists only in the native app.
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
{ "id": "blog", "title": "Blog", "path": "/blog", "icon": "newspaper" },
|
|
8
8
|
{ "id": "contact", "title": "Contact", "path": "/contact", "icon": "mail", "placement": "drawer" }
|
|
9
9
|
],
|
|
10
|
-
"chrome": { "hideSiteHeader": true, "hideSiteFooter": true, "hideWixAds": true }
|
|
10
|
+
"chrome": { "hideSiteHeader": true, "hideSiteMenu": true, "hideSiteFooter": true, "hideWixAds": true }
|
|
11
11
|
}
|
|
12
12
|
}
|