@wix/himalaya-cli 0.1684.0 → 0.1685.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
@@ -16019,6 +16019,7 @@ function webViewOriginAllowed(url, origins) {
16019
16019
  }
16020
16020
  var init_webview_origin = __esm({
16021
16021
  "../../core/ts/src/webview-origin.ts"() {
16022
+ "use strict";
16022
16023
  init_define_HHP_CATALOG();
16023
16024
  }
16024
16025
  });
@@ -31540,7 +31541,6 @@ function resolveIdiom(tokens2, ctx = {}) {
31540
31541
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
31541
31542
  var init_idiom = __esm({
31542
31543
  "../../core/ts/src/idiom.ts"() {
31543
- "use strict";
31544
31544
  init_define_HHP_CATALOG();
31545
31545
  IDIOM_CONTEXTS = {
31546
31546
  ios: { native: ["ios"] },
@@ -723,6 +723,35 @@ shipped with the CLI). To stay kit-clean:
723
723
  The screen owns *composition*; the kit owns *look*. Keep that seam clean and one restyle re-skins every
724
724
  screen for free.
725
725
 
726
+ ## 8b. Design first in HTML, then build to it (optional)
727
+
728
+ For a screen whose quality rests on its look (an editorial home, a playful or illustrated screen,
729
+ a product page, a hero-led dashboard), you may draft it first as one free HTML page at phone width
730
+ and build the Himi screen to match it. You compose most freely in plain HTML, and a screen built to
731
+ a finished picture keeps more of it than one designed inside the component vocabulary from the
732
+ start. In a blind comparison of five such screens, a page drafted in HTML and then built to it
733
+ scored as well as the HTML itself. Screens designed directly in a Himi format scored 1.5 to 2
734
+ points lower (of 10). They lost most on imagery, delight and type.
735
+
736
+ 1. **Draft** `.himi/mockup/<screen>.html`: one self-contained page at 390 points wide, light mode. Keep it
737
+ under `.himi/`, which `himi push` leaves out of the source archive, so the draft never ships. Do not
738
+ draw a status bar or a tab bar, because the shell draws its own. Use real copy and data.
739
+ 2. **Critique it** from a screenshot as you would a finished screen. Run the self-check in §9 on the
740
+ picture: one primary action, hierarchy, rhythm. Fix the design here, where changes are cheapest.
741
+ 3. **Build the Himi screen to it**, with the usual authoring path and the rules in this guide
742
+ (tokens, components chosen for their job, states, accessibility). The mockup sets the target.
743
+ It is not code to copy: absolute positions, pseudo-elements and inline SVG have no one-to-one
744
+ equivalent.
745
+ 4. **Compare** `himi render <screenId> --width 390 --png` with a screenshot of the mockup, side by
746
+ side, and close the gaps that matter.
747
+ 5. **When a part cannot be expressed**, choose the closest native idiom (a token gradient, a
748
+ component, an icon), not a picture of it. A rasterized illustration or a hard-coded pixel offset
749
+ looks right at 390 points and breaks in dark mode, on tablets and with live data. Keep a short
750
+ list of what you gave up, so a reviewer sees the trade.
751
+
752
+ Skip it for routine screens (settings, forms, plain lists), where the component catalog in §3
753
+ already gives the design.
754
+
726
755
  ---
727
756
 
728
757
  ## 9. Self-check before "done"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1684.0",
3
+ "version": "0.1685.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "9149d8f42df0480f788f7d5b2c91fcfd9c3eb684b78911cfe7964125"
84
+ "falconPackageHash": "06ae60f052ab8e90d833b523fdc05645b7cf0cbcb554d39a92435bda"
85
85
  }