@wix/himalaya-cli 0.1670.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -2
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{6eef5856f65113cbc7504d7f926fe7039c48f614b3b0daf20c0e6eea0315c923.bin → cf2ac6865a1e6be5cccec4f2538bf18bbbf121a5f5971ad46212bf3a848ec35c.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +240 -55
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/android-ux.md +3 -1
- package/guides/component-reference.json +2 -2
- package/guides/component-reference.md +2 -2
- package/guides/designing-himi-screens.md +3 -1
- package/guides/ios-ux.md +6 -4
- package/package.json +2 -2
|
@@ -758,7 +758,7 @@ export interface BadgeProps {
|
|
|
758
758
|
style?: string;
|
|
759
759
|
/** #1055 — explicit color token (overrides `style`). #2286.4a — this names the
|
|
760
760
|
* **FOREGROUND** (text) colour; the pill's fill is derived from it, a **16% tint of
|
|
761
|
-
* this same token**
|
|
761
|
+
* this same token** mixed into an opaque `surfacePrimary`, so a badge on a photo keeps its pill. One token drives both, so
|
|
762
762
|
* choose one with contrast **against `surfacePrimary`**, not against the fill:
|
|
763
763
|
* `accentPrimary` / `success` / `danger` read; an already-pale token such as
|
|
764
764
|
* `accentSoft` paints pale-on-pale and is effectively invisible. The same 16% on web,
|
|
@@ -784,7 +784,7 @@ export interface TagProps {
|
|
|
784
784
|
text: string;
|
|
785
785
|
/** #2286.4a — the tag's **FOREGROUND** (text) colour token; default `accentPrimary`.
|
|
786
786
|
* The pill is not a separate colour: its fill is a **14% tint of this same token**
|
|
787
|
-
*
|
|
787
|
+
* mixed into an opaque `surfacePrimary`, with a 30% border of it. One token drives all three,
|
|
788
788
|
* so choose one with contrast **against `surfacePrimary`**, not against the fill.
|
|
789
789
|
* That is the whole trap: `accentSoft` (and any other already-pale token) renders
|
|
790
790
|
* near-invisible — pale text on a 14% wash of the same pale colour — while
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
111
|
-
in the
|
|
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.
|
|
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": "
|
|
82
|
+
"falconPackageHash": "a3d5a36f28454cc208edd589d57085cacf495af113493df969474a7e"
|
|
83
83
|
}
|