@wix/himalaya-cli 0.1170.0 → 0.1172.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.
@@ -137,6 +137,7 @@ export interface WebViewConfig {
137
137
  coverBandColor?: string;
138
138
  hideWixAds?: boolean;
139
139
  hideHostedSiteFooter?: boolean;
140
+ hideHostedSiteMenu?: boolean;
140
141
  sessionBridge?: boolean;
141
142
  hostedSiteAdapter?: "" | "wix" | "base44";
142
143
  }
@@ -3044,6 +3044,13 @@ export interface WebViewConfig {
3044
3044
  sessionBridge?: boolean;
3045
3045
  /** RFC 0062 §5.8 — which site adapter the host runs: `""` (none) | `"wix"` | `"base44"`. */
3046
3046
  hostedSiteAdapter?: "" | "wix" | "base44";
3047
+ /**
3048
+ * RFC 0062 — hide the hosted site's OWN menu (its mobile menu button and horizontal menu) on
3049
+ * every page, a tab's root page included, while the header itself stays for its logo, cart and
3050
+ * member avatar: the native tabs and drawer already carry the site's pages. Binary-shipped
3051
+ * script, like {@link hideWixAds}. No-op on web (cross-origin iframe).
3052
+ */
3053
+ hideHostedSiteMenu?: boolean;
3047
3054
  }
3048
3055
  /**
3049
3056
  * Embeddable WebView component (web-in-SDUI). WebViews have no intrinsic height,
@@ -26,9 +26,13 @@ export interface SitePage {
26
26
  /** What the shell hides from the hosted site so the native chrome is the only chrome.
27
27
  * Every flag defaults to `true` (hidden). */
28
28
  export interface SiteChrome {
29
- /** The site's own header on inner pages (the home page keeps it — its menu is the
30
- * site's primary nav). */
29
+ /** The site's own header on inner pages. A tab's root page keeps it, for its logo, cart and
30
+ * member avatar — see {@link hideSiteMenu} for its menu. */
31
31
  hideSiteHeader?: boolean;
32
+ /** The site's own menu (mobile menu button + horizontal menu) on EVERY page, root included:
33
+ * the native tabs and drawer already list the site's pages, so it would be a second menu.
34
+ * Wix sites only (the selectors are Wix's). */
35
+ hideSiteMenu?: boolean;
32
36
  /** The site's footer. */
33
37
  hideSiteFooter?: boolean;
34
38
  /** The Wix ads banner shown on non-premium Wix sites. Configurable on purpose: the
@@ -1058,6 +1058,9 @@ export declare const screenDescriptorSchema: {
1058
1058
  readonly type: "string";
1059
1059
  readonly enum: readonly ["", "wix", "base44"];
1060
1060
  };
1061
+ readonly hideHostedSiteMenu: {
1062
+ readonly type: "boolean";
1063
+ };
1061
1064
  };
1062
1065
  };
1063
1066
  };
@@ -2026,6 +2029,9 @@ export declare const widgetSnapshotSchema: {
2026
2029
  readonly type: "string";
2027
2030
  readonly enum: readonly ["", "wix", "base44"];
2028
2031
  };
2032
+ readonly hideHostedSiteMenu: {
2033
+ readonly type: "boolean";
2034
+ };
2029
2035
  };
2030
2036
  };
2031
2037
  };
@@ -8637,7 +8637,8 @@ var screenDescriptorSchema = {
8637
8637
  hideHostedSiteFooter: { type: "boolean" },
8638
8638
  // RFC 0062 §5.8 — the native session bridge (fields 47/48).
8639
8639
  sessionBridge: { type: "boolean" },
8640
- hostedSiteAdapter: { type: "string", enum: ["", "wix", "base44"] }
8640
+ hostedSiteAdapter: { type: "string", enum: ["", "wix", "base44"] },
8641
+ hideHostedSiteMenu: { type: "boolean" }
8641
8642
  }
8642
8643
  }
8643
8644
  }
@@ -13158,6 +13159,7 @@ function siteScreenId(page) {
13158
13159
  function resolveSiteChrome(chrome) {
13159
13160
  return {
13160
13161
  hideSiteHeader: chrome?.hideSiteHeader ?? true,
13162
+ hideSiteMenu: chrome?.hideSiteMenu ?? true,
13161
13163
  hideSiteFooter: chrome?.hideSiteFooter ?? true,
13162
13164
  hideWixAds: chrome?.hideWixAds ?? true
13163
13165
  };
@@ -13173,6 +13175,8 @@ function siteWebViewPreset(site) {
13173
13175
  hideHostedSiteFooter: chrome.hideSiteFooter,
13174
13176
  // Wix ads only exist on Wix free sites; a Base44 site never gets the Wix selectors.
13175
13177
  hideWixAds: site.kind === "wix" && chrome.hideWixAds,
13178
+ // The site's own menu duplicates the native tabs/drawer. Wix markers only, like the ads.
13179
+ hideHostedSiteMenu: site.kind === "wix" && chrome.hideSiteMenu,
13176
13180
  // RFC 0062 §5.8 — a Base44 app is signed in natively and its session carried into the page.
13177
13181
  // The host still refuses unless the app declares the `base44` capability. Wix keeps its
13178
13182
  // item-2 bridge (not built yet), so a Wix site carries neither field.
@@ -7590,7 +7590,8 @@ var screenDescriptorSchema = {
7590
7590
  hideHostedSiteFooter: { type: "boolean" },
7591
7591
  // RFC 0062 §5.8 — the native session bridge (fields 47/48).
7592
7592
  sessionBridge: { type: "boolean" },
7593
- hostedSiteAdapter: { type: "string", enum: ["", "wix", "base44"] }
7593
+ hostedSiteAdapter: { type: "string", enum: ["", "wix", "base44"] },
7594
+ hideHostedSiteMenu: { type: "boolean" }
7594
7595
  }
7595
7596
  }
7596
7597
  }
package/dist/cli.mjs CHANGED
@@ -6834,7 +6834,6 @@ function resolveTranslation(value, catalog, sourceCatalog) {
6834
6834
  var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
6835
6835
  var init_bindings = __esm({
6836
6836
  "../../core/ts/src/bindings.ts"() {
6837
- "use strict";
6838
6837
  BINDING_SIGILS = ["service", "flag", "item", "t"];
6839
6838
  BINDING_SIGIL_RE = new RegExp(
6840
6839
  `^\\$(?:${BINDING_SIGILS.filter((s) => s !== "t").join("|")})\\b|^\\$t:`
@@ -7676,7 +7675,8 @@ var init_validator = __esm({
7676
7675
  hideHostedSiteFooter: { type: "boolean" },
7677
7676
  // RFC 0062 §5.8 — the native session bridge (fields 47/48).
7678
7677
  sessionBridge: { type: "boolean" },
7679
- hostedSiteAdapter: { type: "string", enum: ["", "wix", "base44"] }
7678
+ hostedSiteAdapter: { type: "string", enum: ["", "wix", "base44"] },
7679
+ hideHostedSiteMenu: { type: "boolean" }
7680
7680
  }
7681
7681
  }
7682
7682
  }
@@ -24518,7 +24518,6 @@ function shouldRevealError(args) {
24518
24518
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
24519
24519
  var init_validation = __esm({
24520
24520
  "../../core/ts/src/validation.ts"() {
24521
- "use strict";
24522
24521
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
24523
24522
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
24524
24523
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -25178,7 +25177,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
25178
25177
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
25179
25178
  var init_worker_subtree = __esm({
25180
25179
  "../../core/ts/src/worker-subtree.ts"() {
25181
- "use strict";
25182
25180
  init_worker_subtree_safe_types_generated();
25183
25181
  WORKER_SUBTREE_CEILINGS = Object.freeze({
25184
25182
  maxEncodedBytes: 65536,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1170.0",
3
+ "version": "0.1172.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": [
@@ -67,5 +67,5 @@
67
67
  "artifactId": "himalaya-cli"
68
68
  }
69
69
  },
70
- "falconPackageHash": "68b88e1ad1077ca4a4f9d350be48994badfe53c05b51f48166935150"
70
+ "falconPackageHash": "299f3f3ea1e5e7f326fbe1125c2d75bc08ecd649a548a3078aec094f"
71
71
  }