@wix/himalaya-cli 0.1703.0 → 0.1704.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.
@@ -7102,14 +7102,25 @@ var screenDescriptorSchema = {
7102
7102
  then: { required: ["payload"], not: { required: ["url"] } }
7103
7103
  },
7104
7104
  {
7105
- // WebView tiers must carry a url, not a payload
7105
+ // WebView tiers must carry a url
7106
7106
  if: {
7107
7107
  properties: {
7108
7108
  renderer: { enum: ["webview_native_bridge", "webview_ds"] }
7109
7109
  },
7110
7110
  required: ["renderer"]
7111
7111
  },
7112
- then: { required: ["url"], not: { required: ["payload"] } }
7112
+ then: { required: ["url"] }
7113
+ },
7114
+ {
7115
+ // A Tier-4 screen carries no payload. A Tier-3 one may: RFC 0079 phase 3B's dual-form site screen
7116
+ // carries its node form there (every shipped binary's Tier-3 branch ignores it; a dual-form binary
7117
+ // draws it). That payload's own rules — one root primary page, the same url and config as the
7118
+ // Tier-3 fields, no logicBundle — are `webViewEmbeddedFindings` (`dual_form_*`).
7119
+ if: {
7120
+ properties: { renderer: { const: "webview_ds" } },
7121
+ required: ["renderer"]
7122
+ },
7123
+ then: { not: { required: ["payload"] } }
7113
7124
  },
7114
7125
  {
7115
7126
  // webview_ds requires SRI pinning + manifest version
@@ -8439,13 +8450,20 @@ function siteWebViewPreset(site) {
8439
8450
  };
8440
8451
  }
8441
8452
  var SITE_PAGE_NODE_ID = "site_page_view";
8442
- function primarySiteWebView(url, config, id, label2) {
8453
+ function primarySiteWebView(url, config, id, label2, capabilitiesRequired) {
8443
8454
  return {
8444
8455
  id,
8445
8456
  body: {
8446
8457
  package: "himalaya",
8447
8458
  type: "WebView",
8448
- props: { url, role: "primary", fill: true, scrollEnabled: true, ...config ? { config } : {} }
8459
+ props: {
8460
+ url,
8461
+ role: "primary",
8462
+ fill: true,
8463
+ scrollEnabled: true,
8464
+ ...capabilitiesRequired ? { capabilitiesRequired: [...capabilitiesRequired] } : {},
8465
+ ...config ? { config } : {}
8466
+ }
8449
8467
  },
8450
8468
  modifiers: { weight: 1, accessibilityLabel: label2?.trim() || hostOf(url) }
8451
8469
  };
@@ -8465,7 +8483,7 @@ function sitePageNode(site, page, opts) {
8465
8483
  throw new Error("a site page node needs a path");
8466
8484
  }
8467
8485
  const url = sitePageUrl(site.origin, page.path);
8468
- return primarySiteWebView(url, { ...siteWebViewPreset(site), ...page.webView ?? {} }, opts?.id ?? SITE_PAGE_NODE_ID, page.title);
8486
+ return primarySiteWebView(url, { ...siteWebViewPreset(site), ...page.webView ?? {} }, opts?.id ?? SITE_PAGE_NODE_ID, page.title, []);
8469
8487
  }
8470
8488
 
8471
8489
  // ../../core/ts/src/rich-content-limits.generated.ts
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2540494
5
+ "bytes": 2541658
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 23064
22
22
  },
23
23
  {
24
- "name": "preview-deferred/df0422934aaa38861fe3fc040a30a521cc958ddcc9fee01e9202b3c6c5dbf4d6.bin",
24
+ "name": "preview-deferred/f72b868102c2ba960b7736896ee03d831fbf5218e59cc153b4bb2af3cc21dbbb.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-C_t7UQ95.js",
82
+ "key": "assets/pdf-CKMiK8-D.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "df0422934aaa38861fe3fc040a30a521cc958ddcc9fee01e9202b3c6c5dbf4d6",
85
- "file": "preview-deferred/df0422934aaa38861fe3fc040a30a521cc958ddcc9fee01e9202b3c6c5dbf4d6.bin"
84
+ "sha256": "f72b868102c2ba960b7736896ee03d831fbf5218e59cc153b4bb2af3cc21dbbb",
85
+ "file": "preview-deferred/f72b868102c2ba960b7736896ee03d831fbf5218e59cc153b4bb2af3cc21dbbb.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",