@wix/himalaya-cli 0.1688.0 → 0.1690.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.
@@ -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**, so a provisioned package needs no `export` at all. That middle tier is the
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
@@ -595,24 +595,37 @@
595
595
  "category": "Embeddable WebView (web-in-SDUI)",
596
596
  "propsType": "WebViewProps",
597
597
  "bindings": [],
598
- "notImplemented": {
599
- "props": [
600
- "bridge",
601
- "instanceId",
602
- "activePath",
603
- "mutedPath",
604
- "reloadKeyPath",
605
- "heightPath",
606
- "fill"
607
- ],
608
- "platforms": [
609
- "ios",
610
- "android"
611
- ],
612
- "severity": "styling",
613
- "note": "The embedded worker-bridged WebView contract is declared ahead of its runtime on these platforms: no channel, instance identity, fill layout, bound height or active/muted/reload binding until their hosts implement it. On web all of them work for a cross-origin url page listed in allowedOrigins; an inlineHtml page is not bridged on web yet."
614
- },
615
- "propsSource": "export interface WebViewProps {\n url?: string;\n /** Inline HTML to load instead of `url` (mutually exclusive). */\n inlineHtml?: string;\n /** Fixed height in points/dp; set this OR `aspectRatio`. */\n height?: number;\n /** width:height ratio; used when `height` is unset. */\n aspectRatio?: number;\n /** Keep the WebView's own scrolling (default false). */\n scrollEnabled?: boolean;\n config?: WebViewConfig;\n capabilitiesRequired?: string[];\n // Embedded worker-bridged WebViews\n /** `\"\"` (default, no channel) | `\"worker\"` — channel to the owning screen's worker. */\n bridge?: \"\" | \"worker\";\n /** Channel + storage identity; default `<screenId>?<args>/<Component.id>` (§4.1, `effectiveWebViewInstanceId`). */\n instanceId?: string;\n /** `$service:` bool — false ⇒ inactive (§5.4); unset ⇒ active. */\n activePath?: string;\n /** `$service:` bool — true ⇒ all page media muted. */\n mutedPath?: string;\n /** `$service:` scalar — any change remounts the document. */\n reloadKeyPath?: string;\n /** Take the parent's proposed size (works with weight); beats `height` / `aspectRatio`. */\n fill?: boolean;\n /** `$service:` number — live height in points/dp; beats `height`. */\n heightPath?: string;\n}"
598
+ "notImplemented": [
599
+ {
600
+ "props": [
601
+ "bridge",
602
+ "instanceId",
603
+ "activePath",
604
+ "mutedPath",
605
+ "reloadKeyPath",
606
+ "heightPath",
607
+ "fill",
608
+ "role"
609
+ ],
610
+ "platforms": [
611
+ "ios",
612
+ "android"
613
+ ],
614
+ "severity": "styling",
615
+ "note": "The embedded worker-bridged WebView contract is declared ahead of its runtime on these platforms: no channel, instance identity, fill layout, bound height or active/muted/reload binding until their hosts implement it. On web all of them work for a cross-origin url page listed in allowedOrigins; an inlineHtml page is not bridged on web yet. `role` is declared ahead of its runtime: a `\"primary\"` WebView renders as an ordinary embedded WebView, without the screen's identity, back handling, splash readiness or site chrome, until the hosts implement the primary role."
616
+ },
617
+ {
618
+ "props": [
619
+ "role"
620
+ ],
621
+ "platforms": [
622
+ "web"
623
+ ],
624
+ "severity": "styling",
625
+ "note": "`role` is declared ahead of its runtime: a `\"primary\"` WebView renders as an ordinary embedded WebView, without the screen's identity, back handling, splash readiness or site chrome, until the hosts implement the primary role."
626
+ }
627
+ ],
628
+ "propsSource": "export interface WebViewProps {\n url?: string;\n /** Inline HTML to load instead of `url` (mutually exclusive). */\n inlineHtml?: string;\n /** Fixed height in points/dp; set this OR `aspectRatio`. */\n height?: number;\n /** width:height ratio; used when `height` is unset. */\n aspectRatio?: number;\n /** Keep the WebView's own scrolling (default false). */\n scrollEnabled?: boolean;\n config?: WebViewConfig;\n capabilitiesRequired?: string[];\n // Embedded worker-bridged WebViews\n /** `\"\"` (default, no channel) | `\"worker\"` — channel to the owning screen's worker. */\n bridge?: \"\" | \"worker\";\n /** Channel + storage identity; default `<screenId>?<args>/<Component.id>` (§4.1, `effectiveWebViewInstanceId`). */\n instanceId?: string;\n /** `$service:` bool — false ⇒ inactive (§5.4); unset ⇒ active. */\n activePath?: string;\n /** `$service:` bool — true ⇒ all page media muted. */\n mutedPath?: string;\n /** `$service:` scalar — any change remounts the document. */\n reloadKeyPath?: string;\n /** Take the parent's proposed size (works with weight); beats `height` / `aspectRatio`. */\n fill?: boolean;\n /** `$service:` number — live height in points/dp; beats `height`. */\n heightPath?: string;\n // Site pages as SDUI nodes\n /** `\"\"` (default, an embedded widget — today's behaviour) | `\"primary\"` — the screen's one site page,\n * which takes the screen's identity and duties. At most one per screen; it fills and\n * owns its scrolling, so it never sits inside a LazyList, Pager or Carousel. */\n role?: \"\" | \"primary\";\n}"
616
629
  },
617
630
  {
618
631
  "name": "ListItem",
@@ -132,7 +132,8 @@ These props are accepted by the schema and pass validation, but the named platfo
132
132
  |---|---|---|---|---|
133
133
  | `Text` | `minimumScaleFactor`, `truncation` | android, web | styling | Compose 1.7.5 and web retain tail truncation and their existing text size. Monospaced digits work; Apple supports shrinking and head/middle truncation. React Native maps its native text API, with Android multiline ellipsis limited to tail. |
134
134
  | `Icon` | `renderingMode`, `weight`, `variableValue` | android, web | styling | Fixed catalog vectors have no SF layers, font-weight axis or variable fills. Bounce and pulse animate the whole glyph; variableColor remains static. React Native uses the same catalog fallback. |
135
- | `WebView` | `bridge`, `instanceId`, `activePath`, `mutedPath`, `reloadKeyPath`, `heightPath`, `fill` | ios, android | styling | The embedded worker-bridged WebView contract is declared ahead of its runtime on these platforms: no channel, instance identity, fill layout, bound height or active/muted/reload binding until their hosts implement it. On web all of them work for a cross-origin url page listed in allowedOrigins; an inlineHtml page is not bridged on web yet. |
135
+ | `WebView` | `bridge`, `instanceId`, `activePath`, `mutedPath`, `reloadKeyPath`, `heightPath`, `fill`, `role` | ios, android | styling | The embedded worker-bridged WebView contract is declared ahead of its runtime on these platforms: no channel, instance identity, fill layout, bound height or active/muted/reload binding until their hosts implement it. On web all of them work for a cross-origin url page listed in allowedOrigins; an inlineHtml page is not bridged on web yet. `role` is declared ahead of its runtime: a `"primary"` WebView renders as an ordinary embedded WebView, without the screen's identity, back handling, splash readiness or site chrome, until the hosts implement the primary role. |
136
+ | `WebView` | `role` | web | styling | `role` is declared ahead of its runtime: a `"primary"` WebView renders as an ordinary embedded WebView, without the screen's identity, back handling, splash readiness or site chrome, until the hosts implement the primary role. |
136
137
  | `Video` | `poster` | ios | styling | `poster` is not shown. |
137
138
  | `PdfView` | `showPageControls`, `zoomable`, `allowShare` | web | styling | Interactive PDF.js canvas rendering honours the reader’s page, zoom and export controls. Static previews and PDF.js loading/rendering failures use a native browser-viewer fallback. In that fallback, hiding page or zoom controls is only a viewer hint and cannot reliably hide browser chrome; allowShare hides the reader’s export controls but cannot prevent browser save/print. These props are UI controls, not document access restrictions. |
138
139
  | `MediaPlayer` | `autoplayVisibilityThreshold`, `preload`, `playbackRates`, `showQueue`, `showChapters`, `showTranscript` | ios | category | `autoplayVisibilityThreshold` is ignored (whenVisible = once on appear). `preload` is ignored. `playbackRates` is ignored, and the queue/chapters/transcript panels never render. |
@@ -1301,10 +1302,17 @@ export interface WebViewProps {
1301
1302
  fill?: boolean;
1302
1303
  /** `$service:` number — live height in points/dp; beats `height`. */
1303
1304
  heightPath?: string;
1305
+ // Site pages as SDUI nodes
1306
+ /** `""` (default, an embedded widget — today's behaviour) | `"primary"` — the screen's one site page,
1307
+ * which takes the screen's identity and duties. At most one per screen; it fills and
1308
+ * owns its scrolling, so it never sits inside a LazyList, Pager or Carousel. */
1309
+ role?: "" | "primary";
1304
1310
  }
1305
1311
  ```
1306
1312
 
1307
- > ⚠️ **Implemented, but these props are inert on ios, android:** `bridge`, `instanceId`, `activePath`, `mutedPath`, `reloadKeyPath`, `heightPath`, `fill` — The embedded worker-bridged WebView contract is declared ahead of its runtime on these platforms: no channel, instance identity, fill layout, bound height or active/muted/reload binding until their hosts implement it. On web all of them work for a cross-origin url page listed in allowedOrigins; an inlineHtml page is not bridged on web yet.
1313
+ > ⚠️ **Implemented, but these props are inert on ios, android:** `bridge`, `instanceId`, `activePath`, `mutedPath`, `reloadKeyPath`, `heightPath`, `fill`, `role` — The embedded worker-bridged WebView contract is declared ahead of its runtime on these platforms: no channel, instance identity, fill layout, bound height or active/muted/reload binding until their hosts implement it. On web all of them work for a cross-origin url page listed in allowedOrigins; an inlineHtml page is not bridged on web yet. `role` is declared ahead of its runtime: a `"primary"` WebView renders as an ordinary embedded WebView, without the screen's identity, back handling, splash readiness or site chrome, until the hosts implement the primary role.
1314
+
1315
+ > ⚠️ **Implemented, but these props are inert on web:** `role` — `role` is declared ahead of its runtime: a `"primary"` WebView renders as an ordinary embedded WebView, without the screen's identity, back handling, splash readiness or site chrome, until the hosts implement the primary role.
1308
1316
 
1309
1317
  ### Controls & cells
1310
1318
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1688.0",
3
+ "version": "0.1690.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": "471d5c7197bc21b1d437b2c4367c046318006125cc3d270167644e6b"
84
+ "falconPackageHash": "51de924ae33fabbeafa812104334b6107a2cf388f3573d7e7828234a"
85
85
  }