@wix/himalaya-cli 0.1687.0 → 0.1689.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.
Binary file
@@ -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/guides/hhp.md CHANGED
@@ -218,7 +218,7 @@ himi fidelity --content <dir> [--screen a,b] [--variant light,dark,rtl,tablet] [
218
218
  For each screen and variant (`light`, `dark`, `rtl`, `tablet`), the command does four things:
219
219
 
220
220
  1. **Captures the mockup.** It draws the page in Chromium at the variant's width. Dark mode is drawn by emulating `prefers-color-scheme`. RTL is drawn by setting `dir=rtl` on the page.
221
- 2. **Captures the web render** from the app's recorded data, as `himi render` does by default. Native frames come from Himi Player on the devices you pass: `--ios <udid>` and `--android <serial>`, plus `--ios-tablet` and `--android-tablet` for the tablet variant. Only those devices are touched. For each variant the command sets dark or light appearance and, for `rtl`, the app's right-to-left language (iOS `AppleLanguages`, Android per-app locale, API 33+). It opens `himi://app/<app>/screen/<screen>` and captures once two frames match, the frame is not a blank or loading page, and, on Android, the Player is the app in front rather than the launcher. A screen that has not settled that way after 30 seconds is reported `skipped` as `capture_unsettled`, never judged. Every setting it changed is restored afterwards, also on Ctrl-C. A variant with no device is reported `skipped`, never passed. Without `--release <id>` or `--serve <port>` the Player shows the app's **live** release, not your working copy. `--serve <port>` serves the working copy on `127.0.0.1:<port>` as `himi run` does, so native and web render the same release. The Player reads a local origin only from a Debug build that compiled it in (see [View your package on a device](himi-player-implementation.md#view-your-package-on-a-device)): build it with `HIMALAYA_API_BASE_URL_INFO=http://127.0.0.1:<port>` on iOS and `-PhimalayaDevServeBaseUrl=http://10.0.2.2:<port>` on Android. An iOS device whose Player reads another origin is skipped with the rebuild to run. Android's origin cannot be read back from the installed app, so check that build yourself. A screen that declares `params` is skipped natively for now, because the Player's deep link does not carry them yet. On a fresh iOS simulator, open one `himi://` link by hand first and accept iOS's "Open in Himi Player?" prompt: the command cannot answer it, and until it is accepted every iOS capture shows the prompt.
221
+ 2. **Captures the web render** from the app's recorded data, as `himi render` does by default. Native frames come from Himi Player on the devices you pass: `--ios <udid>` and `--android <serial>`, plus `--ios-tablet` and `--android-tablet` for the tablet variant. Only those devices are touched. For each variant the command sets dark or light appearance and, for `rtl`, the app's right-to-left language (iOS `AppleLanguages`, Android per-app locale, API 33+). It opens `himi://app/<app>/screen/<screen>` and captures once two frames match, the frame is not a blank or loading page, and, on Android, the Player is the app in front rather than the launcher. A screen that has not settled that way after 30 seconds is reported `skipped` as `capture_unsettled`, never judged. Every setting it changed is restored afterwards, also on Ctrl-C. A variant with no device is reported `skipped`, never passed. Without `--release <id>` or `--serve <port>` the Player shows the app's **live** release, not your working copy. `--serve <port>` serves the working copy on `127.0.0.1:<port>` as `himi run` does, so native and web render the same release. The Player reads a local origin only from a Debug build that compiled it in (see [View your package on a device](himi-player-implementation.md#view-your-package-on-a-device)): build it with `HIMALAYA_API_BASE_URL_INFO=http://127.0.0.1:<port>` on iOS and `-PhimalayaDevServeBaseUrl=http://10.0.2.2:<port>` on Android. An iOS device whose Player reads another origin is skipped with the rebuild to run. Android's origin cannot be read back from the installed app, so check that build yourself. A screen that declares `params` is skipped natively for now, because the Player's deep link does not carry them yet. With `--serve`, a screen a link cannot open is skipped natively too, with the reason: when config.ts declares `navigation.linkableScreens`, the Player opens only a tab root, the home screen, or a linkable screen marked `isPublic: true`, and stays on home for any other. On a fresh iOS simulator, open one `himi://` link by hand first and accept iOS's "Open in Himi Player?" prompt: the command cannot answer it, and until it is accepted every iOS capture shows the prompt.
222
222
  3. **Scores mockup↔web** with ImageMagick SSIM, globally and per tile. The worst tile says where the screens differ most.
223
223
  4. **Asks a fresh model** two questions, using the repo's fidelity judge prompt. The model never ran in the session that wrote the app.
224
224
  - **Design:** does WEB look like the MOCKUP? This judges the port.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1687.0",
3
+ "version": "0.1689.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": "e061a08ef9ff1a948677e0bc655d65e090a452c105f1920e9fabfc0f"
84
+ "falconPackageHash": "238a5ef81781b466d06f2a11b283be89efb9accb4fbda097e017ea00"
85
85
  }