@wix/himalaya-cli 0.969.0 → 0.970.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/cli.mjs
CHANGED
|
@@ -18715,7 +18715,6 @@ function shouldRevealError(args) {
|
|
|
18715
18715
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
18716
18716
|
var init_validation = __esm({
|
|
18717
18717
|
"../../core/ts/src/validation.ts"() {
|
|
18718
|
-
"use strict";
|
|
18719
18718
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
18720
18719
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
18721
18720
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -22140,7 +22139,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
22140
22139
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
22141
22140
|
var init_worker_subtree = __esm({
|
|
22142
22141
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
22143
|
-
"use strict";
|
|
22144
22142
|
init_worker_subtree_safe_types_generated();
|
|
22145
22143
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
22146
22144
|
maxEncodedBytes: 65536,
|
|
@@ -137,6 +137,16 @@ The plane has no headless browser (`look.unavailable: no_browser_on_plane`). Own
|
|
|
137
137
|
|
|
138
138
|
`--apply` writes `appearance.homeLayout` + `navigation.navKind` plus identity/colors. It never silently overwrites committed Amit1 `apps/himi-branded-lite/provisioning.json`.
|
|
139
139
|
|
|
140
|
+
When the analysis recognized at least one vertical, `--apply` also patches the shell's baked home
|
|
141
|
+
(`dev/index.ts`) to what the site actually runs. The Explore grid keeps only the site's
|
|
142
|
+
destinations (adding a card the template baked none for, and leaving off a vertical the template
|
|
143
|
+
ships no screen for); home modules that no installed vertical can fill are dropped; and a site
|
|
144
|
+
without `store` loses the home's Shop calls to action, including the one nested in the
|
|
145
|
+
`retail-store` store-first layout. The store screens themselves are untouched — only the home
|
|
146
|
+
stops linking to them. The apply notes name every removed call to action and every installed
|
|
147
|
+
vertical left off Explore, so an intentional omission is distinguishable from a failed patch. An
|
|
148
|
+
analysis with no recognized vertical leaves the home exactly as shipped.
|
|
149
|
+
|
|
140
150
|
It also writes **`cmsCollections`** — the customer's own CMS collections, always present and possibly `[]`. The overlay used to carry no such key, and an absent key inherits the shell's, so an applied app advertised and **queried** the shell's demo collection: another tenant's data model under the customer's brand. `[]` is therefore a value, not an absence — it clears the shell's list and the CMS screen shows its own empty state.
|
|
141
151
|
|
|
142
152
|
Only a collection a shipped app can read **as a visitor** is carried, because `readCms` lists with an **owner** token and the app has no such session. An `ADMIN` read is dropped (no session the app can hold will ever satisfy it), and so is a **member-gated** one — not because the app cannot read it, but because the CMS worker caches fetched rows in the unencrypted `cms_items` store, which outlives the member's session and would be served to the next visitor on the device ([cms-collections.md](cms-collections.md)). A Wix app's own collection (`ownerAppId`) is dropped too; its vertical already renders it. So are the four other ways a collection misses the app, because they need different remedies and are indistinguishable in the artifact: **no owner token** (nothing was looked at), the listing **failing** (any status but 404 — re-authenticate, widen the Wix Data grant, or retry a 429; a 404 means the app is not on the site, which is simply "no collections"), the listing **cap** of 24 counted against the server's `pagingMetadata.total` (the rest were never read), and an **id that cannot be carried unchanged** (surrounded by whitespace, carrying a control character, or over 256 chars — normalizing it would name a different collection in a manifest that still loads). A site that simply has none says nothing — that is the ordinary state, and `--apply` leads its note with warnings.
|
|
@@ -167,11 +167,14 @@ book says which happened on the `cms collections:` line (`(skipped: no owner tok
|
|
|
167
167
|
The `clientId`-is-the-binding rule above is about the **app's** runtime site binding, not this.
|
|
168
168
|
|
|
169
169
|
`--apply` writes `provisioning.json` + token **values**, and patches the branded-lite
|
|
170
|
-
home `onAppear` params (`ownerDefaultLayout`, `brandAccent`,
|
|
171
|
-
`
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
home in `dev/index.ts`: its `onAppear` params (`ownerDefaultLayout`, `brandAccent`,
|
|
171
|
+
`verticals`) and, when the analysis recognized any vertical, the Explore grid, the home
|
|
172
|
+
modules and — on a site without `store` — the Shop calls to action, naming what it
|
|
173
|
+
removed in its notes (`himi docs wix-business-context`). It does **not** rewrite
|
|
174
|
+
`config.ts` tabBar — you still set 2–4 Hebrew/RTL tabs to the site's jobs. If home still
|
|
175
|
+
renders the English Shop/Book/Explore hub after `--apply`, the home patch missed (no
|
|
176
|
+
`dev/index.ts`, a custom home screen, or an analysis with no recognized vertical) — set
|
|
177
|
+
`ownerDefaultLayout` and the home content by hand.
|
|
175
178
|
|
|
176
179
|
**Look:** merge `--wst-*` into `tokens.json` **values only** (`himi docs tokens`), and only into
|
|
177
180
|
the **light** arm — a scraped website colour is never a dark-mode colour, so let the app's own
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.970.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": [
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"artifactId": "himalaya-cli"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"falconPackageHash": "
|
|
67
|
+
"falconPackageHash": "09b972a7f7d83ae250b4039472411e77995eaddf0767c4c09bc73558"
|
|
68
68
|
}
|