@wix/himalaya-cli 0.1164.0 → 0.1166.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.
@@ -281,6 +281,8 @@ export declare function iconButton(props: {
281
281
  /** Square edge, in pt/dp/px. Defaults to 44 — the platform tap-target floor. */
282
282
  size?: number;
283
283
  disabled?: boolean;
284
+ /** `$service:`/`$item.` bool binding, OR'd with `disabled` — the same prop `button()` takes. */
285
+ disabledPath?: string;
284
286
  /** RFC 0058 §3.1 — the supplementary "what happens if I act" phrase. */
285
287
  accessibilityHint?: string;
286
288
  }, opts?: {
@@ -8578,7 +8578,8 @@ function iconButton(props, opts) {
8578
8578
  leadingIcon: props.icon,
8579
8579
  cornerRadius: Math.round(size / 2),
8580
8580
  minHeight: size,
8581
- ...props.disabled !== void 0 ? { disabled: props.disabled } : {}
8581
+ ...props.disabled !== void 0 ? { disabled: props.disabled } : {},
8582
+ ...props.disabledPath !== void 0 ? { disabledPath: props.disabledPath } : {}
8582
8583
  }
8583
8584
  },
8584
8585
  modifiers: {
package/dist/cli.mjs CHANGED
@@ -71367,7 +71367,8 @@ var crawl_look_exports = {};
71367
71367
  __export(crawl_look_exports, {
71368
71368
  PAGE_EVAL: () => PAGE_EVAL,
71369
71369
  copyFromEval: () => copyFromEval,
71370
- createPlaywrightBrowser: () => createPlaywrightBrowser
71370
+ createPlaywrightBrowser: () => createPlaywrightBrowser,
71371
+ navigated: () => navigated
71371
71372
  });
71372
71373
  function patternOf(hay) {
71373
71374
  const h = hay.toLowerCase();
@@ -71478,6 +71479,34 @@ async function toPlaywrightCookies(setCookies, url) {
71478
71479
  }
71479
71480
  return out2;
71480
71481
  }
71482
+ function isTimeout(e) {
71483
+ const err = e;
71484
+ return err?.name === "TimeoutError" || /^page\.goto: Timeout \d+ms exceeded/.test(err?.message ?? "");
71485
+ }
71486
+ async function navigated(page, url, isEntry2) {
71487
+ const committedTo = () => {
71488
+ try {
71489
+ const at2 = new URL(page.url());
71490
+ const want = new URL(url);
71491
+ return at2.origin === want.origin && at2.pathname.replace(/\/$/, "") === want.pathname.replace(/\/$/, "") && at2.search === want.search;
71492
+ } catch {
71493
+ return false;
71494
+ }
71495
+ };
71496
+ try {
71497
+ await page.goto(url, { waitUntil: "domcontentloaded", timeout: 15e3 });
71498
+ return true;
71499
+ } catch (e) {
71500
+ if (committedTo()) return true;
71501
+ if (!isEntry2 || !isTimeout(e)) return false;
71502
+ }
71503
+ try {
71504
+ await page.goto(url, { waitUntil: "commit", timeout: 3e4 });
71505
+ return true;
71506
+ } catch {
71507
+ return committedTo();
71508
+ }
71509
+ }
71481
71510
  async function createPlaywrightBrowser(load = () => import("playwright"), siteFetch = guardedSiteFetch, pin = realPin) {
71482
71511
  const screenshots = [];
71483
71512
  let pw;
@@ -71602,11 +71631,7 @@ async function createPlaywrightBrowser(load = () => import("playwright"), siteFe
71602
71631
  const url = queue.shift();
71603
71632
  if (seen.has(url)) continue;
71604
71633
  seen.add(url);
71605
- try {
71606
- await page.goto(url, { waitUntil: "domcontentloaded", timeout: 15e3 });
71607
- } catch {
71608
- continue;
71609
- }
71634
+ if (!await navigated(page, url, url === siteUrl)) continue;
71610
71635
  const title = await page.title();
71611
71636
  let evaled;
71612
71637
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1164.0",
3
+ "version": "0.1166.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": "d908299b4a56f8fd1b1cda3403c6a8ea134fffc5a3afe9de6c8b44ef"
70
+ "falconPackageHash": "c09e08d1510c7049ad59fe7c20f1f4aae86c876a6217f59d6cc9d096"
71
71
  }