@wix/himalaya-cli 0.1880.0 → 0.1881.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.
@@ -1925,9 +1925,9 @@ var OVERLAPPING_PANEL_COVER_RATIO = 1.6;
1925
1925
  var OVERLAPPING_PANEL_OVERLAP = 20;
1926
1926
  var DEFAULT_COVER_TRANSITION_MS = 3e3;
1927
1927
  var RADIUS = 24;
1928
- var LOGO = 50;
1928
+ var LOGO = 64;
1929
1929
  var LOGO_RING = 2;
1930
- var LOGO_BELOW_SEAM = LOGO / 2;
1930
+ var LOGO_HANG = (LOGO + LOGO_RING * 2) / 2 - OVERLAPPING_PANEL_OVERLAP;
1931
1931
  var LOGO_GAP = 12;
1932
1932
  var TEXT_GAP = 4;
1933
1933
  var GUTTER = 20;
@@ -1958,8 +1958,22 @@ function overlappingPanelHeader(options) {
1958
1958
  const urls = (options.coverUrls ?? []).map((url) => clean2(url)).filter(Boolean);
1959
1959
  const hasLogo = logoUrl !== "";
1960
1960
  const hasPanel = hasLogo || title !== "" || subtitle !== "";
1961
- const stage = [cover(id2, urls, options.coverTransitionMs, clean2(options.coverLabel) || "Cover images")];
1962
- const hang = hasLogo ? LOGO_BELOW_SEAM - OVERLAPPING_PANEL_OVERLAP : 0;
1961
+ const coverNode = cover(id2, urls, options.coverTransitionMs, clean2(options.coverLabel) || "Cover images");
1962
+ const ratioBox = (boxId, content, extra = {}) => node3(
1963
+ boxId,
1964
+ "VStack",
1965
+ { spacing: 0, alignment: "leading", children: [node3(`${boxId}.fill`, "Spacer", {}, { weight: 1 }), content] },
1966
+ { fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO, hitTestable: false, ...extra }
1967
+ );
1968
+ const hang = hasLogo ? LOGO_HANG : 0;
1969
+ const layer = (layerId, child, tail, extra = {}) => node3(layerId, "VStack", { spacing: 0, alignment: "leading", children: [child, tail] }, { fillMaxWidth: true, ...extra });
1970
+ const spacerTail = (layerId) => node3(`${layerId}.tail`, "VStack", { spacing: 0, alignment: "leading", children: [] }, { height: hang });
1971
+ const stage = [hasLogo ? layer(`${id2}.cover.layer`, coverNode, node3(
1972
+ `${id2}.cover.tail`,
1973
+ "Shape",
1974
+ { kind: "rectangle", fill: { token: "surfacePrimary" } },
1975
+ { fillMaxWidth: true, height: hang, accessibilityHidden: true }
1976
+ )) : coverNode];
1963
1977
  if (hasPanel) {
1964
1978
  const cap = node3(
1965
1979
  `${id2}.cap`,
@@ -1967,42 +1981,42 @@ function overlappingPanelHeader(options) {
1967
1981
  { kind: "roundedRectangle", cornerRadii: { topLeading: RADIUS, topTrailing: RADIUS }, fill: { token: "surfacePrimary" } },
1968
1982
  { fillMaxWidth: true, height: CAP, accessibilityHidden: true }
1969
1983
  );
1970
- const moved = { fillMaxWidth: true, offsetY: CAP - OVERLAPPING_PANEL_OVERLAP };
1971
- let seam = node3(`${id2}.seam`, "VStack", { spacing: 0, alignment: "leading", children: [cap] }, moved);
1972
- if (hasLogo) {
1973
- const ring = LOGO - LOGO_RING * 2;
1974
- const logo = node3(`${id2}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
1975
- node3(`${id2}.logo`, "Image", { url: logoUrl, width: ring, height: ring, contentMode: "fill", contentDescription: clean2(options.logoLabel) || title || "Logo" }, { cornerRadius: 13 })
1976
- ] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
1977
- const above = LOGO - LOGO_BELOW_SEAM;
1978
- seam = node3(`${id2}.seam`, "ZStack", { alignment: "leading", children: [
1979
- node3(`${id2}.cap.box`, "VStack", { spacing: 0, alignment: "leading", children: [cap] }, { fillMaxWidth: true, padding: { top: above } }),
1980
- node3(`${id2}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER, bottom: above + CAP - LOGO } })
1981
- ] }, moved);
1982
- }
1983
- stage.push(node3(
1984
- `${id2}.overlay`,
1984
+ const capBox = ratioBox(`${id2}.overlay`, node3(
1985
+ `${id2}.seam`,
1985
1986
  "VStack",
1986
- { spacing: 0, alignment: "leading", children: [node3(`${id2}.overlay.fill`, "Spacer", {}, { weight: 1 }), seam] },
1987
- { fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO, hitTestable: false }
1988
- ));
1987
+ { spacing: 0, alignment: "leading", children: [cap] },
1988
+ { fillMaxWidth: true, offsetY: CAP - OVERLAPPING_PANEL_OVERLAP }
1989
+ ), { clipShape: "rectangle" });
1990
+ stage.push(hasLogo ? layer(`${id2}.overlay.layer`, capBox, spacerTail(`${id2}.overlay.layer`), { hitTestable: false }) : capBox);
1991
+ }
1992
+ if (hasLogo) {
1993
+ const logo = node3(`${id2}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
1994
+ node3(`${id2}.logo`, "Image", {
1995
+ url: logoUrl,
1996
+ width: LOGO,
1997
+ height: LOGO,
1998
+ contentMode: "fill",
1999
+ contentDescription: clean2(options.logoLabel) || title || "Logo"
2000
+ }, { cornerRadius: 13 })
2001
+ ] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
2002
+ const logoBox = ratioBox(
2003
+ `${id2}.logo.box`,
2004
+ node3(`${id2}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER } }),
2005
+ { offsetY: hang }
2006
+ );
2007
+ stage.push(layer(`${id2}.logo.layer`, logoBox, spacerTail(`${id2}.logo.layer`), { hitTestable: false, zIndex: 1 }));
1989
2008
  }
1990
2009
  const children = [node3(`${id2}.stage`, "ZStack", { alignment: "leading", children: stage }, { fillMaxWidth: true })];
1991
- if (hasPanel) {
1992
- const texts = [];
1993
- if (title) texts.push(node3(`${id2}.title`, "Text", { text: title, style: "title1", color: "textPrimary", textAlign: "leading" }, { headingLevel: 1 }));
1994
- if (subtitle) texts.push(node3(`${id2}.subtitle`, "Text", { text: subtitle, style: "body", color: "textSecondary", textAlign: "leading" }));
2010
+ const texts = [];
2011
+ if (title) texts.push(node3(`${id2}.title`, "Text", { text: title, style: "title1", color: "textPrimary", textAlign: "leading" }, { headingLevel: 1 }));
2012
+ if (subtitle) texts.push(node3(`${id2}.subtitle`, "Text", { text: subtitle, style: "body", color: "textSecondary", textAlign: "leading" }));
2013
+ if (texts.length) {
1995
2014
  const surface = node3(`${id2}.panel.surface`, "VStack", { spacing: TEXT_GAP, alignment: "leading", children: texts }, {
1996
2015
  fillMaxWidth: true,
1997
2016
  background: { token: "surfacePrimary" },
1998
- ...texts.length ? { padding: { leading: GUTTER, trailing: GUTTER, top: hasLogo ? LOGO_GAP : 0, bottom: BOTTOM } } : { height: BOTTOM }
2017
+ padding: { leading: GUTTER, trailing: GUTTER, top: hasLogo ? LOGO_GAP : 0, bottom: BOTTOM }
1999
2018
  });
2000
- children.push(node3(
2001
- `${id2}.panel`,
2002
- "VStack",
2003
- { spacing: 0, alignment: "leading", children: [surface] },
2004
- { fillMaxWidth: true, zIndex: 1, ...hang ? { padding: { top: hang } } : {} }
2005
- ));
2019
+ children.push(node3(`${id2}.panel`, "VStack", { spacing: 0, alignment: "leading", children: [surface] }, { fillMaxWidth: true }));
2006
2020
  }
2007
2021
  return node3(id2, "VStack", { spacing: 0, alignment: "leading", children }, { fillMaxWidth: true, imagePreview: "off" });
2008
2022
  }
package/dist/cli.mjs CHANGED
@@ -41737,7 +41737,6 @@ function resolveIdiom(tokens2, ctx = {}) {
41737
41737
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
41738
41738
  var init_idiom = __esm({
41739
41739
  "../../core/ts/src/idiom.ts"() {
41740
- "use strict";
41741
41740
  init_define_HHP_CATALOG();
41742
41741
  IDIOM_CONTEXTS = {
41743
41742
  ios: { native: ["ios"] },
@@ -252990,8 +252989,22 @@ function overlappingPanelHeader(options2) {
252990
252989
  const urls2 = (options2.coverUrls ?? []).map((url) => clean(url)).filter(Boolean);
252991
252990
  const hasLogo = logoUrl !== "";
252992
252991
  const hasPanel = hasLogo || title !== "" || subtitle !== "";
252993
- const stage = [cover(id, urls2, options2.coverTransitionMs, clean(options2.coverLabel) || "Cover images")];
252994
- const hang = hasLogo ? LOGO_BELOW_SEAM - OVERLAPPING_PANEL_OVERLAP : 0;
252992
+ const coverNode = cover(id, urls2, options2.coverTransitionMs, clean(options2.coverLabel) || "Cover images");
252993
+ const ratioBox = (boxId, content, extra = {}) => node2(
252994
+ boxId,
252995
+ "VStack",
252996
+ { spacing: 0, alignment: "leading", children: [node2(`${boxId}.fill`, "Spacer", {}, { weight: 1 }), content] },
252997
+ { fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO, hitTestable: false, ...extra }
252998
+ );
252999
+ const hang = hasLogo ? LOGO_HANG : 0;
253000
+ const layer = (layerId, child3, tail, extra = {}) => node2(layerId, "VStack", { spacing: 0, alignment: "leading", children: [child3, tail] }, { fillMaxWidth: true, ...extra });
253001
+ const spacerTail = (layerId) => node2(`${layerId}.tail`, "VStack", { spacing: 0, alignment: "leading", children: [] }, { height: hang });
253002
+ const stage = [hasLogo ? layer(`${id}.cover.layer`, coverNode, node2(
253003
+ `${id}.cover.tail`,
253004
+ "Shape",
253005
+ { kind: "rectangle", fill: { token: "surfacePrimary" } },
253006
+ { fillMaxWidth: true, height: hang, accessibilityHidden: true }
253007
+ )) : coverNode];
252995
253008
  if (hasPanel) {
252996
253009
  const cap2 = node2(
252997
253010
  `${id}.cap`,
@@ -252999,46 +253012,46 @@ function overlappingPanelHeader(options2) {
252999
253012
  { kind: "roundedRectangle", cornerRadii: { topLeading: RADIUS, topTrailing: RADIUS }, fill: { token: "surfacePrimary" } },
253000
253013
  { fillMaxWidth: true, height: CAP2, accessibilityHidden: true }
253001
253014
  );
253002
- const moved = { fillMaxWidth: true, offsetY: CAP2 - OVERLAPPING_PANEL_OVERLAP };
253003
- let seam = node2(`${id}.seam`, "VStack", { spacing: 0, alignment: "leading", children: [cap2] }, moved);
253004
- if (hasLogo) {
253005
- const ring = LOGO - LOGO_RING * 2;
253006
- const logo = node2(`${id}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
253007
- node2(`${id}.logo`, "Image", { url: logoUrl, width: ring, height: ring, contentMode: "fill", contentDescription: clean(options2.logoLabel) || title || "Logo" }, { cornerRadius: 13 })
253008
- ] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
253009
- const above2 = LOGO - LOGO_BELOW_SEAM;
253010
- seam = node2(`${id}.seam`, "ZStack", { alignment: "leading", children: [
253011
- node2(`${id}.cap.box`, "VStack", { spacing: 0, alignment: "leading", children: [cap2] }, { fillMaxWidth: true, padding: { top: above2 } }),
253012
- node2(`${id}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER2, bottom: above2 + CAP2 - LOGO } })
253013
- ] }, moved);
253014
- }
253015
- stage.push(node2(
253016
- `${id}.overlay`,
253015
+ const capBox = ratioBox(`${id}.overlay`, node2(
253016
+ `${id}.seam`,
253017
253017
  "VStack",
253018
- { spacing: 0, alignment: "leading", children: [node2(`${id}.overlay.fill`, "Spacer", {}, { weight: 1 }), seam] },
253019
- { fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO, hitTestable: false }
253020
- ));
253018
+ { spacing: 0, alignment: "leading", children: [cap2] },
253019
+ { fillMaxWidth: true, offsetY: CAP2 - OVERLAPPING_PANEL_OVERLAP }
253020
+ ), { clipShape: "rectangle" });
253021
+ stage.push(hasLogo ? layer(`${id}.overlay.layer`, capBox, spacerTail(`${id}.overlay.layer`), { hitTestable: false }) : capBox);
253022
+ }
253023
+ if (hasLogo) {
253024
+ const logo = node2(`${id}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
253025
+ node2(`${id}.logo`, "Image", {
253026
+ url: logoUrl,
253027
+ width: LOGO,
253028
+ height: LOGO,
253029
+ contentMode: "fill",
253030
+ contentDescription: clean(options2.logoLabel) || title || "Logo"
253031
+ }, { cornerRadius: 13 })
253032
+ ] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
253033
+ const logoBox = ratioBox(
253034
+ `${id}.logo.box`,
253035
+ node2(`${id}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER2 } }),
253036
+ { offsetY: hang }
253037
+ );
253038
+ stage.push(layer(`${id}.logo.layer`, logoBox, spacerTail(`${id}.logo.layer`), { hitTestable: false, zIndex: 1 }));
253021
253039
  }
253022
253040
  const children2 = [node2(`${id}.stage`, "ZStack", { alignment: "leading", children: stage }, { fillMaxWidth: true })];
253023
- if (hasPanel) {
253024
- const texts = [];
253025
- if (title) texts.push(node2(`${id}.title`, "Text", { text: title, style: "title1", color: "textPrimary", textAlign: "leading" }, { headingLevel: 1 }));
253026
- if (subtitle) texts.push(node2(`${id}.subtitle`, "Text", { text: subtitle, style: "body", color: "textSecondary", textAlign: "leading" }));
253041
+ const texts = [];
253042
+ if (title) texts.push(node2(`${id}.title`, "Text", { text: title, style: "title1", color: "textPrimary", textAlign: "leading" }, { headingLevel: 1 }));
253043
+ if (subtitle) texts.push(node2(`${id}.subtitle`, "Text", { text: subtitle, style: "body", color: "textSecondary", textAlign: "leading" }));
253044
+ if (texts.length) {
253027
253045
  const surface = node2(`${id}.panel.surface`, "VStack", { spacing: TEXT_GAP, alignment: "leading", children: texts }, {
253028
253046
  fillMaxWidth: true,
253029
253047
  background: { token: "surfacePrimary" },
253030
- ...texts.length ? { padding: { leading: GUTTER2, trailing: GUTTER2, top: hasLogo ? LOGO_GAP : 0, bottom: BOTTOM } } : { height: BOTTOM }
253048
+ padding: { leading: GUTTER2, trailing: GUTTER2, top: hasLogo ? LOGO_GAP : 0, bottom: BOTTOM }
253031
253049
  });
253032
- children2.push(node2(
253033
- `${id}.panel`,
253034
- "VStack",
253035
- { spacing: 0, alignment: "leading", children: [surface] },
253036
- { fillMaxWidth: true, zIndex: 1, ...hang ? { padding: { top: hang } } : {} }
253037
- ));
253050
+ children2.push(node2(`${id}.panel`, "VStack", { spacing: 0, alignment: "leading", children: [surface] }, { fillMaxWidth: true }));
253038
253051
  }
253039
253052
  return node2(id, "VStack", { spacing: 0, alignment: "leading", children: children2 }, { fillMaxWidth: true, imagePreview: "off" });
253040
253053
  }
253041
- var node2, OVERLAPPING_PANEL_COVER_RATIO, OVERLAPPING_PANEL_OVERLAP, DEFAULT_COVER_TRANSITION_MS, RADIUS, LOGO, LOGO_RING, LOGO_BELOW_SEAM, LOGO_GAP, TEXT_GAP, GUTTER2, BOTTOM, CAP2, overlappingPanelCoverId, clean;
253054
+ var node2, OVERLAPPING_PANEL_COVER_RATIO, OVERLAPPING_PANEL_OVERLAP, DEFAULT_COVER_TRANSITION_MS, RADIUS, LOGO, LOGO_RING, LOGO_HANG, LOGO_GAP, TEXT_GAP, GUTTER2, BOTTOM, CAP2, overlappingPanelCoverId, clean;
253042
253055
  var init_overlapping_panel_header = __esm({
253043
253056
  "../../stdlib/flows/screens/src/overlapping-panel-header.ts"() {
253044
253057
  init_define_HHP_CATALOG();
@@ -253047,9 +253060,9 @@ var init_overlapping_panel_header = __esm({
253047
253060
  OVERLAPPING_PANEL_OVERLAP = 20;
253048
253061
  DEFAULT_COVER_TRANSITION_MS = 3e3;
253049
253062
  RADIUS = 24;
253050
- LOGO = 50;
253063
+ LOGO = 64;
253051
253064
  LOGO_RING = 2;
253052
- LOGO_BELOW_SEAM = LOGO / 2;
253065
+ LOGO_HANG = (LOGO + LOGO_RING * 2) / 2 - OVERLAPPING_PANEL_OVERLAP;
253053
253066
  LOGO_GAP = 12;
253054
253067
  TEXT_GAP = 4;
253055
253068
  GUTTER2 = 20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1880.0",
3
+ "version": "0.1881.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": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "98e2d25162e2488a622c9cc3dc76706365531e4951a333c524672d60"
85
+ "falconPackageHash": "4c99e9aa9c3bc31c5cc92b09c8d1410a40000a2e8b23d3bd023703aa"
86
86
  }