@wix/himalaya-cli 0.1689.0 → 0.1691.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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{ecd0318450055d47467996fb81c979e6d067dafd7f726b0d5965625090eac3b1.bin → abe1a6a83f7be608db2b245996b6e96df786b9eaa6a7f78169a44341ee57ed14.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +1545 -1402
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/branded-lite-site-binding.md +34 -2
- package/package.json +2 -2
- package/templates/brandy/README.md +17 -0
|
Binary file
|
|
@@ -107,7 +107,38 @@ auth: WixConsumerAuthProvider({
|
|
|
107
107
|
| `HIMI_BRANDED_LITE_WIX_REDIRECT_URI` | `WIX_REDIRECT_URI` | OAuth callback (default: `himalaya-demo-app://oauth/callback` for shared amit1) |
|
|
108
108
|
| `HIMI_BRANDED_LITE_WIX_BOOT_VISITOR` | — | `"1"` (default) boots as anonymous visitor |
|
|
109
109
|
|
|
110
|
-
Defaults today = shared Amit1 Headless (`clientId` `4f58d461-…`, site `shayco5.wixsite.com/amit1`)
|
|
110
|
+
Defaults today = shared Amit1 Headless (`clientId` `4f58d461-…`, site `shayco5.wixsite.com/amit1`) —
|
|
111
|
+
**for the committed reference contract only.** Any other build binds what it names or nothing:
|
|
112
|
+
see [Visitor-only builds](#visitor-only-builds-no-wix-binding) below.
|
|
113
|
+
|
|
114
|
+
### Visitor-only builds (no Wix binding)
|
|
115
|
+
|
|
116
|
+
A build whose contract binds no Wix client is **visitor-only**: `config.ts` bakes
|
|
117
|
+
`auth: { providerId: "none", config: {} }` — no provider, no visitor token, no sign-in — the
|
|
118
|
+
same shape Brandy bakes for a website-only app. The shared Amit1 client is used **only** when
|
|
119
|
+
the contract being built is the committed `provisioning.json` itself, i.e. none of these hold:
|
|
120
|
+
|
|
121
|
+
| Marks the build as a customer build | Set by |
|
|
122
|
+
|---|---|
|
|
123
|
+
| `.himi/provisioning.local.json` present (usable or not) | `site analyze --apply`, `prepare:customer --contract` |
|
|
124
|
+
| `HIMI_DIST_CALLBACK_TOKEN` | every brokered `himi dist` job |
|
|
125
|
+
| `HIMALAYA_SEED_APP` naming another app | `himi dist` / a `[dist]` build carrying another app's release |
|
|
126
|
+
|
|
127
|
+
`HIMI_BRANDED_LITE_PROVISIONING_JSON` on its own is not a mark: it is also the dev and test seam
|
|
128
|
+
(template generation, fixture manifests), and every customer path that sets it carries a mark above.
|
|
129
|
+
|
|
130
|
+
A customer build binds the env override (`HIMI_BRANDED_LITE_WIX_CLIENT_ID` / `WIX_CLIENT_ID`), else its
|
|
131
|
+
contract's `wix.clientId`, else — for a build carrying another app's release — that release's own
|
|
132
|
+
`wix-consumer` client from the seed's app-config, else nothing. A `himi dist` build gets the release's
|
|
133
|
+
binding from `GET /v1/dist/contract`, which projects it from the release's served `authConfig`
|
|
134
|
+
(`wix` + `siteId`), or `wix: null` when the release has none. The rule and its reasons are on
|
|
135
|
+
`resolveBrandedLiteWixBinding` ([`wix-binding.ts`](../apps/himi-branded-lite/wix-binding.ts)).
|
|
136
|
+
|
|
137
|
+
A `siteUrl` that came from a release (a dist build, or one carrying another app's release) is
|
|
138
|
+
baked for sign-in but **never** turns on the member-site route that sends a member's token to that
|
|
139
|
+
URL: nothing verifies a release's `siteUrl` belongs to its client. Only a `siteUrl` you set yourself
|
|
140
|
+
(env, or a manifest written on your machine) does. The auth `siteId` is baked only when it is a real
|
|
141
|
+
metaSiteId, never the `development-site` placeholder.
|
|
111
142
|
|
|
112
143
|
### How to run
|
|
113
144
|
|
|
@@ -231,7 +262,8 @@ it will not *create* a manifest, because the contract also needs
|
|
|
231
262
|
|
|
232
263
|
**The `clientId` is a manifest field now too** (`wix.clientId`), which is what removes the
|
|
233
264
|
last manual step: `config.ts` resolves it as **env > `provisioning.wix` > the committed
|
|
234
|
-
amit1 default
|
|
265
|
+
amit1 default — that last tier for the reference contract only; a customer build with neither is
|
|
266
|
+
visitor-only** (see above), so a provisioned package needs no `export` at all. That middle tier is the
|
|
235
267
|
whole point — previously the minted id reached a build only through the environment, so one
|
|
236
268
|
forgotten `export` silently bound a customer app to the SHARED dev site. It worked, against
|
|
237
269
|
the wrong site. `wix.siteUrl` is written only when you pass `--site-url`, because a freshly
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1691.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": "a64fa689020b7d5cd31b590753177e5ff85cbacfb79083063d73bd9b"
|
|
85
85
|
}
|
|
@@ -60,3 +60,20 @@ himi push --draft # publish a draft release and open the we
|
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
Your colours live in `tokens.json` and your name in `config.ts`.
|
|
63
|
+
|
|
64
|
+
## In the web preview
|
|
65
|
+
|
|
66
|
+
`himi run`, the build board and the published web preview show each page in a frame under the same
|
|
67
|
+
tabs, drawer and sidebar. A browser frame cannot reach into another site's page, so some things
|
|
68
|
+
only happen on a phone:
|
|
69
|
+
|
|
70
|
+
- **The site's own header, footer and Wix ads stay visible.** The `chrome` flags are applied by the
|
|
71
|
+
native app.
|
|
72
|
+
- **Your site picks its desktop or mobile layout from the browser**, so a desktop browser can show
|
|
73
|
+
the desktop layout inside the phone frame.
|
|
74
|
+
- **Links inside a page open inside the frame**, off-site ones included, with no prompt (a link the
|
|
75
|
+
site opens in a new tab follows the browser's popup rules). The "open in your browser?" prompt
|
|
76
|
+
for off-site links exists only in the native app.
|
|
77
|
+
- **Native sign-in does not reach the website**, and the site cannot talk to the app.
|
|
78
|
+
- **A page whose site refuses to be framed stays blank.** Wix sites allow framing. For a page that
|
|
79
|
+
does not, use **Open ↗** above the frame to open it in a new tab.
|