@wix/himalaya-cli 0.1780.0 → 0.1782.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.
@@ -3418,6 +3418,10 @@ export interface TopBarAction {
3418
3418
  /** "screen" opts into screen-worker visibility. Unset/unknown retains navigation ownership.
3419
3419
  * App-level topBarDefault actions always retain navigation ownership when inherited. */
3420
3420
  hiddenPathScope?: string;
3421
+ /** RFC 0070 §1.2 — fail-closed `hiddenPath`, as on `NavTabItem`: hidden until the nav worker
3422
+ * resolves the path to a scalar, and hidden if it never does. Older runtimes ignore it and
3423
+ * fail open. */
3424
+ hiddenUntilResolved?: boolean;
3421
3425
  }
3422
3426
  /** Splash layout discriminator. Single-line string-literal union (house style,
3423
3427
  * like `NavKind`); unknown values coalesce to "centered" in the shell. */
@@ -470,7 +470,12 @@ export interface SiteShellCheckOptions {
470
470
  /** Throws with a legible message on a site description no shell can build from. */
471
471
  export declare function assertSiteShellConfig(site: SiteShellConfig, opts?: SiteShellCheckOptions): void;
472
472
  /** A rewriter for one contract's site: rewrites every dead tap in a descriptor, in place on a copy. */
473
- export declare function siteShellLinks(site: SiteShellConfig): (descriptor: ScreenDescriptor) => ScreenDescriptor;
473
+ export interface SiteShellLinkOptions {
474
+ /** The shell serves the native MEMBER cart (`himi_cart`, RFC 0079 §10 amendment 2026-11-16b): a tap into
475
+ * it, and an order's Reorder that fills it, are kept rather than removed. */
476
+ nativeCart?: boolean;
477
+ }
478
+ export declare function siteShellLinks(site: SiteShellConfig, options?: SiteShellLinkOptions): (descriptor: ScreenDescriptor) => ScreenDescriptor;
474
479
  /**
475
480
  * Where a tapped Wix member notification opens in a site shell: on the customer's own site. Wix Ping
476
481
  * delivers Wix MOBILE links (`wix:/my-account/<msid>/stores/orders/<id>`, `https://m-<msid>.branded.wix.app/…`),
@@ -798,6 +798,9 @@ export declare const screenDescriptorSchema: {
798
798
  readonly hiddenPathScope: {
799
799
  readonly type: "string";
800
800
  };
801
+ readonly hiddenUntilResolved: {
802
+ readonly type: "boolean";
803
+ };
801
804
  };
802
805
  };
803
806
  readonly navBadge: {
@@ -2377,6 +2380,9 @@ export declare const widgetSnapshotSchema: {
2377
2380
  readonly hiddenPathScope: {
2378
2381
  readonly type: "string";
2379
2382
  };
2383
+ readonly hiddenUntilResolved: {
2384
+ readonly type: "boolean";
2385
+ };
2380
2386
  };
2381
2387
  };
2382
2388
  readonly navBadge: {
@@ -9408,7 +9408,9 @@ var screenDescriptorSchema = {
9408
9408
  hiddenPath: { type: "string" },
9409
9409
  labelPath: { type: "string" },
9410
9410
  iconPath: { type: "string" },
9411
- hiddenPathScope: { type: "string" }
9411
+ hiddenPathScope: { type: "string" },
9412
+ // Hidden until hiddenPath first resolves (fail closed): the Brandy cart icon pair.
9413
+ hiddenUntilResolved: { type: "boolean" }
9412
9414
  }
9413
9415
  },
9414
9416
  navBadge: {
@@ -16063,6 +16065,7 @@ var SITE_STAND_INS = {
16063
16065
  };
16064
16066
  var ALWAYS_HIDDEN_TARGETS = ["himi_cart", "himi_new_message"];
16065
16067
  var HIDDEN_ACTIONS = ["tier5.himiBrandedOrder.reorder"];
16068
+ var UNTAPPED_TARGETS = ["himi_product"];
16066
16069
  var LABEL_FOR = { action: "actionLabel", cta: "ctaLabel" };
16067
16070
  function standInActions(site) {
16068
16071
  const tapFor = (id, target) => siteTopBarDefault({ ...site, topBar: { actions: [{ id, icon: "globe", label: id, target }] } })?.actions?.[0]?.onTap;
@@ -16078,17 +16081,19 @@ function standInActions(site) {
16078
16081
  }
16079
16082
  return taps;
16080
16083
  }
16081
- function siteShellLinks(site) {
16084
+ function siteShellLinks(site, options = {}) {
16082
16085
  const standIns = standInActions(site);
16086
+ const hiddenTargets = options.nativeCart ? ALWAYS_HIDDEN_TARGETS.filter((id) => id !== "himi_cart") : ALWAYS_HIDDEN_TARGETS;
16087
+ const hiddenActions = options.nativeCart ? [] : HIDDEN_ACTIONS;
16083
16088
  const verdict = (action) => {
16084
16089
  if (!action || typeof action !== "object") return "keep";
16085
16090
  const a = action;
16086
- if (HIDDEN_ACTIONS.includes(a.actionId)) return "hide";
16091
+ if (hiddenActions.includes(a.actionId)) return "hide";
16087
16092
  if (a.actionId !== "himi.open") return "keep";
16088
16093
  const target = a.params?.screenId;
16089
16094
  if (!target) return "keep";
16090
16095
  if (standIns.has(target)) return standIns.get(target);
16091
- if (ALWAYS_HIDDEN_TARGETS.includes(target) || target in SITE_STAND_INS) return "hide";
16096
+ if (hiddenTargets.includes(target) || target in SITE_STAND_INS) return "hide";
16092
16097
  return "keep";
16093
16098
  };
16094
16099
  const visit = (node) => {
@@ -16112,6 +16117,8 @@ function siteShellLinks(site) {
16112
16117
  }
16113
16118
  const modifiers = n.modifiers;
16114
16119
  if (modifiers) {
16120
+ const tapTarget = modifiers.onTap?.params?.screenId;
16121
+ if (modifiers.onTap?.actionId === "himi.open" && tapTarget && UNTAPPED_TARGETS.includes(tapTarget)) delete modifiers.onTap;
16115
16122
  const v = verdict(modifiers.onTap);
16116
16123
  if (v === "hide") return false;
16117
16124
  if (v !== "keep") modifiers.onTap = { ...v };
@@ -7420,7 +7420,9 @@ var screenDescriptorSchema = {
7420
7420
  hiddenPath: { type: "string" },
7421
7421
  labelPath: { type: "string" },
7422
7422
  iconPath: { type: "string" },
7423
- hiddenPathScope: { type: "string" }
7423
+ hiddenPathScope: { type: "string" },
7424
+ // Hidden until hiddenPath first resolves (fail closed): the Brandy cart icon pair.
7425
+ hiddenUntilResolved: { type: "boolean" }
7424
7426
  }
7425
7427
  },
7426
7428
  navBadge: {
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2601532
5
+ "bytes": 2601844
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/81b0921a25bdf01f44c9cc524e12b9ae379c49ec12d6238f114bc9f5e82faebf.bin",
24
+ "name": "preview-deferred/d71e5b22a5ff1965fd887118ee8b2a74497b48a88f4459c9800569457e1fb547.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-wdJ1_6-Z.js",
82
+ "key": "assets/pdf-D-4TEGX8.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "81b0921a25bdf01f44c9cc524e12b9ae379c49ec12d6238f114bc9f5e82faebf",
85
- "file": "preview-deferred/81b0921a25bdf01f44c9cc524e12b9ae379c49ec12d6238f114bc9f5e82faebf.bin"
84
+ "sha256": "d71e5b22a5ff1965fd887118ee8b2a74497b48a88f4459c9800569457e1fb547",
85
+ "file": "preview-deferred/d71e5b22a5ff1965fd887118ee8b2a74497b48a88f4459c9800569457e1fb547.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",