@wix/himalaya-cli 0.1671.0 → 0.1672.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.
@@ -23,7 +23,9 @@ they decide what a phone screen looks like, and this guide decides how to compos
23
23
 
24
24
  - **The title lives in the bar, not the body.** Set the screen's `title`; the shell draws it. Do
25
25
  not open the body with the screen title, the app name or a greeting as `largeTitle`/`title1`
26
- text. `himi render` does not draw the bar, so a PNG that starts with content is correct.
26
+ text. `himi render --platform ios|android --device iphone|pixel` draws the bar the shell draws
27
+ (the iOS title, Back, the tab bar); a render without `--platform` does not, so a PNG that starts
28
+ with content is correct there.
27
29
  - **A collection is rows, not a card per item.** A schedule, a service menu, a session list or a
28
30
  settings group is `ListItem` rows — in a root `LazyList`, or in one `Section` with `inset: true`
29
31
  and a `header`. Time, price, coach or duration go in the row's `subtitle`/`trailing`; a small
package/guides/ios-ux.md CHANGED
@@ -23,7 +23,8 @@ Android). Write the `header` in sentence case. Choose one structure and say so
23
23
  in `MOBILE-UX.md`; do not plan "inset grouped on iPhone, full-bleed on Android", because no Himi
24
24
  screen can deliver it. Per-platform *look* — type face, corner radius, spacing — is a token
25
25
  overlay (see **Idiom overlay** below), not a second screen. `himi render --platform ios` changes
26
- the switch, the segmented control, and the type face. A list or a grid looks the same in the
26
+ the switch, the segmented control, and the type face, and at a phone width (`--device iphone`) draws the status bar,
27
+ navigation bar and tab bar the shell draws (`--no-frame` for the bare screen). A list or a grid looks the same in the
27
28
  Android PNG. That is one descriptor, not a failed render.
28
29
 
29
30
  ## Patterns
@@ -31,7 +32,7 @@ Android PNG. That is one descriptor, not a failed render.
31
32
  | Decision | Do this on iOS | Himi mapping | Apple source |
32
33
  | --- | --- | --- | --- |
33
34
  | Top-level destinations | Tab bar of three to five destinations; the shell draws it. | `navigation` tabs in `config.ts` (`himi docs app-config`). Never a row of buttons at the bottom of a screen. | [Tab bars](https://developer.apple.com/design/human-interface-guidelines/tab-bars) |
34
- | Screen title | Large title on a tab's root screen, collapsing as it scrolls; inline title on a pushed screen. | Set the screen's `title`; the shell makes a root screen's title large on its own. `topBar.titleDisplay: "large" \| "inline"` overrides it. Do not repeat the title, or the app name, as Text in the body in any style. A group's name is the `Section` `header`, not a heading above it. `himi render` does not draw that bar — pass `--platform ios` so the controls match iPhone, and judge the title by the `title` field. A PNG with no large heading at the top is correct when `title` is set. | [Navigation bars](https://developer.apple.com/design/human-interface-guidelines/navigation-bars) |
35
+ | Screen title | Large title on a tab's root screen, collapsing as it scrolls; inline title on a pushed screen. | Set the screen's `title`; the shell makes a root screen's title large on its own. `topBar.titleDisplay: "large" \| "inline"` overrides it. Do not repeat the title, or the app name, as Text in the body in any style. A group's name is the `Section` `header`, not a heading above it. `himi render --platform ios --device iphone` draws that bar from `title`, as the iOS shell lays it out (it does not read `titleDisplay`): a large title on a tab root or the home screen, Back and an inline title on any other screen. Without `--platform` the PNG has no bar, so judge the title by the `title` field. | [Navigation bars](https://developer.apple.com/design/human-interface-guidelines/navigation-bars) |
35
36
  | Back | Back button plus edge swipe; the system owns both. | Push with navigation actions; the shell adds Back. Only `topBar.leading: "none"` with a `stickyHeader` replaces the bar, and system back still works. | [Navigation and search](https://developer.apple.com/design/human-interface-guidelines/navigation-and-search) |
36
37
  | Completing a flow (Book, Pay, Confirm) | One prominent button at the bottom, above the home indicator. | `stickyFooter` holding one `Button` with `style: "primary"` and `fullWidth: true`, on a `surfacePrimary` background with padding. | [Buttons](https://developer.apple.com/design/human-interface-guidelines/buttons) |
37
38
  | Creating, adding, editing, saving | A bar button in the navigation bar, trailing. | `topBar.items: [{ id, placement: "trailing", label, icon, onTap, role: "confirm" }]`. It is a bar button on iPhone and a top-app-bar action on Android. | [Toolbars](https://developer.apple.com/design/human-interface-guidelines/toolbars) |
@@ -107,8 +108,9 @@ reduced motion, and right-to-left, from the first screen map.
107
108
 
108
109
  Render each primary screen with `himi render <screen> --device iphone --platform ios --png <file>`
109
110
  and again with `--scheme dark` and at `--device ipad --platform ios`. `--platform ios` draws the
110
- iPhone switch and segmented control. The navigation bar is still the shell's, so a missing title
111
- in the PNG is not a missing `title` field. Check: the screen's `title` is set, no heading and no
111
+ iPhone switch and segmented control, and on a phone the shell's status, navigation and tab bars:
112
+ the title belongs in the navigation bar, never again in the body. The iPad render draws no bars. The frame does not draw a top-bar logo, a kit tab bar (`tabBar.presentation: "kit"`), custom tab-bar colours, or labels, icons and visibility the app's nav worker sets; judge those on a simulator.
113
+ Check: the screen's `title` is set, no heading and no
112
114
  app name in the body, a schedule is `ListItem` rows rather than a `Card` per row, products,
113
115
  books and photos are image tiles with every image filled and none stretched, a rail shows part of
114
116
  its next item, a horizontal choice row still shows its last item, the primary action in the footer or the bar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1671.0",
3
+ "version": "0.1672.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": [
@@ -79,5 +79,5 @@
79
79
  "artifactId": "himalaya-cli"
80
80
  }
81
81
  },
82
- "falconPackageHash": "9f2fec7c3d522b49c7d21c67a96c5820be4950a5fd0e97030a940560"
82
+ "falconPackageHash": "a3d5a36f28454cc208edd589d57085cacf495af113493df969474a7e"
83
83
  }