@wix/himalaya-cli 0.1552.0 → 0.1553.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.
package/dist/cli.mjs CHANGED
@@ -23888,6 +23888,7 @@ function resolveIdiom(tokens2, ctx = {}) {
23888
23888
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
23889
23889
  var init_idiom = __esm({
23890
23890
  "../../core/ts/src/idiom.ts"() {
23891
+ "use strict";
23891
23892
  IDIOM_CONTEXTS = {
23892
23893
  ios: { native: ["ios"] },
23893
23894
  android: { native: ["material"] },
@@ -33112,6 +33113,21 @@ function encodeToggleFieldValue(raw, fallback = false) {
33112
33113
  const s2 = String(raw);
33113
33114
  return s2 === "true" || s2 === "1" ? "true" : "false";
33114
33115
  }
33116
+ function serviceToggleBool(raw) {
33117
+ if (typeof raw === "boolean") return raw;
33118
+ if (typeof raw === "number") return Number.isFinite(raw) ? raw !== 0 : void 0;
33119
+ if (typeof raw !== "string") return void 0;
33120
+ switch (raw.trim().toLowerCase()) {
33121
+ case "true":
33122
+ case "1":
33123
+ return true;
33124
+ case "false":
33125
+ case "0":
33126
+ return false;
33127
+ default:
33128
+ return void 0;
33129
+ }
33130
+ }
33115
33131
  function encodeStepperFieldValue(raw, bounds = {}) {
33116
33132
  const n2 = stepperInt(raw);
33117
33133
  if (n2 == null) return "";
@@ -35045,10 +35061,11 @@ var init_controls = __esm({
35045
35061
  A11ySwitch = ({ props, ctx, wrap }) => {
35046
35062
  const C2 = ctx.color;
35047
35063
  const bound2 = useResolvedScalar(props.valuePath, ctx);
35048
- const resolved2 = ctx.empty ? false : props.valuePath != null ? encodeToggleFieldValue(bound2) === "true" : encodeToggleFieldValue(props.value, props.on === true) === "true";
35049
35064
  const bag = React9.useContext(FormValuesContext);
35050
35065
  const fieldId = props.__formFieldId;
35051
35066
  const inForm = Boolean(bag && fieldId);
35067
+ const standaloneService = fieldId == null && ctx.provider != null && typeof props.valuePath === "string" && props.valuePath.startsWith("$service:");
35068
+ const resolved2 = ctx.empty ? false : standaloneService ? serviceToggleBool(bound2) ?? encodeToggleFieldValue(props.value) === "true" : props.valuePath != null ? encodeToggleFieldValue(bound2) === "true" : encodeToggleFieldValue(props.value, props.on === true) === "true";
35052
35069
  const [formOn, setFormOn] = React9.useState(null);
35053
35070
  const touchedField = React9.useRef(void 0);
35054
35071
  React9.useEffect(() => {
@@ -35062,7 +35079,12 @@ var init_controls = __esm({
35062
35079
  if (!toggleReady && !hasContributed(bag, fieldId)) return;
35063
35080
  bag.set(fieldId, encodeToggleFieldValue(resolved2));
35064
35081
  }, [toggleReady, resolved2, fieldId, bag]);
35065
- const on4 = inForm && touchedField.current === fieldId && formOn !== null ? formOn : resolved2;
35082
+ const [tapped, setTapped] = React9.useState(null);
35083
+ React9.useEffect(() => {
35084
+ setTapped(null);
35085
+ }, [bound2, props.valuePath, ctx.provider]);
35086
+ const live3 = standaloneService && tapped && tapped.path === props.valuePath && Object.is(tapped.over, bound2) && tapped.provider === ctx.provider ? tapped.on : null;
35087
+ const on4 = inForm && touchedField.current === fieldId && formOn !== null ? formOn : live3 ?? resolved2;
35066
35088
  const ruleKey = props.validation ? JSON.stringify(props.validation) : "";
35067
35089
  React9.useEffect(() => {
35068
35090
  if (!bag || !fieldId) return;
@@ -35085,6 +35107,7 @@ var init_controls = __esm({
35085
35107
  const canFire = !props.disabled && Boolean(ctx.onAction) && (inForm || Boolean(act));
35086
35108
  const fire = canFire ? () => {
35087
35109
  const next = !on4;
35110
+ if (standaloneService) setTapped({ path: props.valuePath, over: bound2, provider: ctx.provider, on: next });
35088
35111
  if (inForm) {
35089
35112
  touchedField.current = fieldId;
35090
35113
  setFormOn(next);
@@ -170948,40 +170971,40 @@ var init_preview_assets_generated = __esm({
170948
170971
  "../../packages/serve/src/preview-assets.generated.ts"() {
170949
170972
  init_preview_assets_format();
170950
170973
  PREVIEW_ASSET_MANIFEST = [
170951
- { key: "assets/DashboardHost-rdBDzAM2.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2955, sha256: "3519614a07656ab65c0d330b0d3a8dc968e4066dbb052128c7fc5f4b4404522e" },
170952
- { key: "assets/DevDrawer-CcH9jWAT.js", contentType: "application/javascript; charset=utf-8", offset: 2963, length: 16783, sha256: "60f8e7ab7dc27f019c8ad899dbf94577a3e43bfcd2792d861e1c2fe60a8db520" },
170953
- { key: "assets/IdiomCompare-B4sxKA2P.js", contentType: "application/javascript; charset=utf-8", offset: 19746, length: 1926, sha256: "2b74bb81a1452bb498e0d0cededb7ecb1e27fd7e6784dfc8870e7477457837d3" },
170954
- { key: "assets/LightboxViewer-B0QI2Mqg.js", contentType: "application/javascript; charset=utf-8", offset: 21672, length: 8171, sha256: "9818b1c81abd53d3f45a67c16e364332621a501421d81a1fda5e0533696b0fdb" },
170955
- { key: "assets/OfflineReadingBar-BYakn_07.js", contentType: "application/javascript; charset=utf-8", offset: 29843, length: 1707, sha256: "464666d894d333b4c7e78064a559b5869400959d3d7b0389a057da065cc60afb" },
170956
- { key: "assets/PhonePreviewControl-CLba6rxn.js", contentType: "application/javascript; charset=utf-8", offset: 31550, length: 37768, sha256: "f6b87932bfd1c8cafb489d062a2110b9762ef3e6d89d562d90dae2495deac73b" },
170957
- { key: "assets/SchemeCompare-DGDoj1o4.js", contentType: "application/javascript; charset=utf-8", offset: 69318, length: 1858, sha256: "678360dc7f4a4a606d87f3b85db9c912deca5ce7ba209ae90d71173af9f6c824" },
170974
+ { key: "assets/DashboardHost-fh1sjHP1.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2955, sha256: "497e9254be3c34fa0a192b8dc0bee9d34dc635c08494a1854a4b685265e21fbc" },
170975
+ { key: "assets/DevDrawer-BXKlhK3d.js", contentType: "application/javascript; charset=utf-8", offset: 2963, length: 16783, sha256: "5369946a57c32f6144267d43c4e9217e1239c341b1321d388e679e899ec57729" },
170976
+ { key: "assets/IdiomCompare-Cts1tXrv.js", contentType: "application/javascript; charset=utf-8", offset: 19746, length: 1926, sha256: "396d00b9fa08bbd6f8d62f303bcb5f28a826f64540a25ad5ce2daf0a2f2fea5c" },
170977
+ { key: "assets/LightboxViewer-ClFRK5up.js", contentType: "application/javascript; charset=utf-8", offset: 21672, length: 8171, sha256: "a68b08d689ac4c24c3972f10523ca7356f94ed75b158e94d78ed8a929119a343" },
170978
+ { key: "assets/OfflineReadingBar-CvmBnNwx.js", contentType: "application/javascript; charset=utf-8", offset: 29843, length: 1707, sha256: "fb4853f2005aac7e3e79509ff63fc831d5211e7fd9c8238ca7eae7204fdd4dac" },
170979
+ { key: "assets/PhonePreviewControl-CPUm-31t.js", contentType: "application/javascript; charset=utf-8", offset: 31550, length: 37768, sha256: "ea8719ac497c79f84a2d0993226378f96bca265aa9250becb7ac87711e7a62f5" },
170980
+ { key: "assets/SchemeCompare-BLituisx.js", contentType: "application/javascript; charset=utf-8", offset: 69318, length: 1858, sha256: "27b15d8a2acf5987997e081ba04d2a8eccb2c5c4d02a3ce7dfc50487aae1ac05" },
170958
170981
  { key: "assets/glassPreviewBrowser-Bt5ZFmG4.js", contentType: "application/javascript; charset=utf-8", offset: 71176, length: 342, sha256: "20d73f97d38f6d9a0b79e68e24954cd6bbfe66833a6e6aecae00a9102e64cab3" },
170959
- { key: "assets/index-Czn2ytPo.js", contentType: "application/javascript; charset=utf-8", offset: 71518, length: 1352756, sha256: "878ee8b5f6343974b3ae07c11e0cd7f99049e6625693b9301d03ff081c23221c" },
170960
- { key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset: 1424274, length: 7624, sha256: "29dfba5b56f79a0b84d6b04d84d87617454baeba03c225f682ab2ab7ae2d5016" },
170961
- { key: "assets/pdf-CdAPlkOy.js", contentType: "application/javascript; charset=utf-8", offset: 1431898, length: 488199, sha256: "9ac9bc5971130073f2a64130ec625ad6ffae78ba434f1dd92e8c503fe7e7d99d" },
170962
- { key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1920097, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
170963
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1920170, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
170964
- { key: "assets/pdfDocument-Hf1kWrFd.js", contentType: "application/javascript; charset=utf-8", offset: 3237204, length: 3453, sha256: "9c21de79a7770deb5258beb5040f8a0fee924e7d138e7b98a41a020d77398291" },
170965
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3240657, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
170966
- { key: "assets/webviewBridgeHost-ukMGIH6t.js", contentType: "application/javascript; charset=utf-8", offset: 3242923, length: 9888, sha256: "ef0687b1b2606ccdba9e607fe303abd57926aee1e180a7252ebcd3171660a64d" },
170967
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3252811, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
170968
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3257421, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
170969
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3746005, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
170970
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3836929, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
170971
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3927913, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
170972
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4018893, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
170973
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4109765, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
170974
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4200745, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
170975
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4309381, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
170976
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4418465, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
170977
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4527513, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
170978
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4635213, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
170979
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4723321, length: 6748, sha256: "4a92459977d7cefa1a6a7e020c3a63509737f083b3f2773557c1a5771665811a" },
170980
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4730069, length: 5037, sha256: "8079829eb0f8a07b9aff6b6cfd91d0890ad16737d42badd58d5c486a4dab379f" },
170981
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4735106, length: 7193, sha256: "a482f4796147c2a3893942e10ab225bd3b6f749f7125fe0330680d4c20ea0212" },
170982
- { key: "ios-glass-preview.svg", contentType: "image/svg+xml", offset: 4742299, length: 423, sha256: "b9cd5989d31464a0422f260a332af6be5add0b04de2148944de35158f3b75efc" },
170983
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4742722, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
170984
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4743893, length: 19459, sha256: "760d3263ea56776e60a4808558b32ae20ea2c667c0634573b9fdc5c7694a4f20" }
170982
+ { key: "assets/index-BQUB49kY.js", contentType: "application/javascript; charset=utf-8", offset: 71518, length: 1353444, sha256: "940388569e8bb468cf6cf1aa0f50e44ce2ce8b03b163ea0412099b35aae303c8" },
170983
+ { key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset: 1424962, length: 7624, sha256: "29dfba5b56f79a0b84d6b04d84d87617454baeba03c225f682ab2ab7ae2d5016" },
170984
+ { key: "assets/pdf-qXulLsro.js", contentType: "application/javascript; charset=utf-8", offset: 1432586, length: 488199, sha256: "9ebf306df00bc8fd5f21ef84f7e4c0f631fb028f3e7aca869d0e2fffdb4ad1e1" },
170985
+ { key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1920785, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
170986
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1920858, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
170987
+ { key: "assets/pdfDocument-D5oKKWwg.js", contentType: "application/javascript; charset=utf-8", offset: 3237892, length: 3453, sha256: "63c5a1560a085b52226bf72a08e6bbf04361a0d2175f1d7f242ce68b22e46419" },
170988
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3241345, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
170989
+ { key: "assets/webviewBridgeHost-CJonXrXh.js", contentType: "application/javascript; charset=utf-8", offset: 3243611, length: 9888, sha256: "f6013e329925fcf06ea82b81a1fca623d2bed923e13ea311ecc98901bdc99d1e" },
170990
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3253499, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
170991
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3258109, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
170992
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3746693, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
170993
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3837617, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
170994
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3928601, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
170995
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4019581, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
170996
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4110453, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
170997
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4201433, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
170998
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4310069, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
170999
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4419153, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
171000
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4528201, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
171001
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4635901, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
171002
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4724009, length: 6748, sha256: "4a92459977d7cefa1a6a7e020c3a63509737f083b3f2773557c1a5771665811a" },
171003
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4730757, length: 5037, sha256: "4ee607adc8f81f1d0b5d7ff4e55e18d5990889921f8f8a8b3bfae934e3750885" },
171004
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4735794, length: 7193, sha256: "a482f4796147c2a3893942e10ab225bd3b6f749f7125fe0330680d4c20ea0212" },
171005
+ { key: "ios-glass-preview.svg", contentType: "image/svg+xml", offset: 4742987, length: 423, sha256: "b9cd5989d31464a0422f260a332af6be5add0b04de2148944de35158f3b75efc" },
171006
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4743410, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
171007
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4744581, length: 19459, sha256: "760d3263ea56776e60a4808558b32ae20ea2c667c0634573b9fdc5c7694a4f20" }
170985
171008
  ];
170986
171009
  }
170987
171010
  });
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1552.0",
3
+ "version": "0.1553.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": [
@@ -71,5 +71,5 @@
71
71
  "artifactId": "himalaya-cli"
72
72
  }
73
73
  },
74
- "falconPackageHash": "b9822a3110e27476ac695d7f413c94757dbd398b177dbac2b34852ed"
74
+ "falconPackageHash": "ee2f110806585c60f44a31bf2c0b91f293f271b8a4d530f11d223d42"
75
75
  }