@wix/himalaya-cli 0.1925.0 → 0.1927.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/dev-server/src/builder.d.ts +5 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +12 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/tokens.d.ts +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba.bin → 95a3ae045bad903e458ea7a5800e60e1044f0f754a65d7127de66ba62e897068.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +299 -144
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +3 -3
- package/guides/component-reference.json +3 -3
- package/guides/component-reference.md +16 -1
- package/guides/tokens.md +2 -1
- package/package.json +2 -2
|
Binary file
|
|
@@ -13,7 +13,7 @@ with the `args` key they send (`onChange(value)`), and `+N` other optional props
|
|
|
13
13
|
## Core
|
|
14
14
|
|
|
15
15
|
- **VStack** children!, +2
|
|
16
|
-
- **HStack** children!, +
|
|
16
|
+
- **HStack** children!, +5
|
|
17
17
|
- **ZStack** children!, +2
|
|
18
18
|
- **LazyList** items!, onPullToRefresh, itemsPath$, scrollToItemPath$, onTopItemChange, +13
|
|
19
19
|
- **Grid** items!, columns!, itemsPath$, onPullToRefresh, +8
|
|
@@ -27,9 +27,9 @@ with the `args` key they send (`onChange(value)`), and `+N` other optional props
|
|
|
27
27
|
- **Text** text$, +17
|
|
28
28
|
- **Image** url$, initials$, contentDescription$, +12
|
|
29
29
|
- **Icon** name!, +7
|
|
30
|
-
- **Button** title!$, action!, disabledPath$, loadingPath$, +
|
|
30
|
+
- **Button** title!$, action!, disabledPath$, loadingPath$, +12
|
|
31
31
|
- **TextField** valuePath$, onChange(value), onSubmit(value), focusPath$, errorPath$, +23
|
|
32
|
-
- **Toggle** value!, valuePath$, onChange(value), +
|
|
32
|
+
- **Toggle** value!, valuePath$, onChange(value), +7
|
|
33
33
|
- **Stepper** value!, valuePath$, maxPath$, onChange(value), +3
|
|
34
34
|
- **Avatar** imageUrl$, initials$, +1
|
|
35
35
|
- **Badge** text!$, tokenPath$, +2
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"category": "Core",
|
|
26
26
|
"propsType": "HStackProps",
|
|
27
27
|
"bindings": [],
|
|
28
|
-
"propsSource": "export interface HStackProps {\n children: Component[];\n /** Cross-axis (vertical) alignment of the row's children: `leading` = top,\n * `center` (default) = vertically centered, `trailing` = bottom — the shared\n * `Alignment` enum read on the HStack's cross axis, mirroring how VStack reads it\n * on ITS (horizontal) cross axis. Use `leading` to pin a trailing element to the\n * FIRST line of a multi-line text block instead of the block's centre. */\n alignment?: Alignment;\n spacing?: number;\n /** Align the children on their first text baseline (a title beside a smaller date), in place of `alignment`; a\n * child with no text aligns by its bottom, as CSS synthesizes a baseline. */\n alignBaseline?: boolean;\n}"
|
|
28
|
+
"propsSource": "export interface HStackProps {\n children: Component[];\n /** Cross-axis (vertical) alignment of the row's children: `leading` = top,\n * `center` (default) = vertically centered, `trailing` = bottom — the shared\n * `Alignment` enum read on the HStack's cross axis, mirroring how VStack reads it\n * on ITS (horizontal) cross axis. Use `leading` to pin a trailing element to the\n * FIRST line of a multi-line text block instead of the block's centre. */\n alignment?: Alignment;\n spacing?: number;\n /** Align the children on their first text baseline (a title beside a smaller date), in place of `alignment`; a\n * child with no text aligns by its bottom, as CSS synthesizes a baseline. */\n alignBaseline?: boolean;\n /** Lay the children out at their own width and wrap onto the next line when the row runs out of room (label chips,\n * mode chips), as CSS `flex-wrap` does. A wrapping row fills its container's width and its children keep their own\n * width; weights and Spacers are for rows that do not wrap. */\n wrap?: boolean;\n /** The gap between a wrapping row's lines, in points/px (NOT a multiple of the line height); absent = `spacing`. */\n lineSpacing?: number;\n}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "ZStack",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"loadingPath",
|
|
168
168
|
"title"
|
|
169
169
|
],
|
|
170
|
-
"propsSource": "export interface ButtonProps {\n /** Destructive/cancel role independent of style; unknown values warn and behave as absent. */\n role?: string;\n /** Button label — binding-aware (\"$item.\"/\"$service:\") on web, iOS and Android. */\n title: string;\n action: Action;\n style?: string;\n /** LITERAL disabled state. A `\"$service:…\"` string here fails `validate` (the wire type is\n * bool) — bind `disabledPath` instead. */\n disabled?: boolean;\n /** #3117 — `$service:`/`$item.` binding → a live bool that disables the button while true\n * (e.g. a submit while a request is in flight). Binding-aware. OR'd with `disabled`,\n * `loading` and an enclosing Form's validity: a bound `false` never re-enables a button one\n * of those disabled, and an unresolved binding leaves the literal in charge. */\n disabledPath?: string;\n /** Capability enrichments. */\n leadingIcon?: IconRef;\n trailingIcon?: IconRef;\n loading?: boolean;\n size?: \"sm\" | \"md\" | \"lg\";\n fullWidth?: boolean;\n iconOnly?: boolean;\n /** #1049 — corner radius; reshapes the button (overrides the forced pill). */\n cornerRadius?: number;\n /** #1049 — minimum height (pt/dp/px). */\n minHeight?: number;\n /** Live loading bool; OR with literal loading. */\n loadingPath?: string;\n}"
|
|
170
|
+
"propsSource": "export interface ButtonProps {\n /** Destructive/cancel role independent of style; unknown values warn and behave as absent. */\n role?: string;\n /** Button label — binding-aware (\"$item.\"/\"$service:\") on web, iOS and Android. */\n title: string;\n action: Action;\n style?: string;\n /** LITERAL disabled state. A `\"$service:…\"` string here fails `validate` (the wire type is\n * bool) — bind `disabledPath` instead. */\n disabled?: boolean;\n /** #3117 — `$service:`/`$item.` binding → a live bool that disables the button while true\n * (e.g. a submit while a request is in flight). Binding-aware. OR'd with `disabled`,\n * `loading` and an enclosing Form's validity: a bound `false` never re-enables a button one\n * of those disabled, and an unresolved binding leaves the literal in charge. */\n disabledPath?: string;\n /** Capability enrichments. */\n leadingIcon?: IconRef;\n trailingIcon?: IconRef;\n loading?: boolean;\n size?: \"sm\" | \"md\" | \"lg\";\n fullWidth?: boolean;\n iconOnly?: boolean;\n /** #1049 — corner radius; reshapes the button (overrides the forced pill). */\n cornerRadius?: number;\n /** #1049 — minimum height (pt/dp/px). */\n minHeight?: number;\n /** Live loading bool; OR with literal loading. */\n loadingPath?: string;\n /** The visible minimum width of a button that keeps its own width, in place of the floor it has without one (web 64,\n * Android Material's 58; iOS draws none). 0 = no floor: the label and its padding. A share of a row wins over it. */\n minWidth?: number;\n}"
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"name": "TextField",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
]
|
|
243
243
|
}
|
|
244
244
|
],
|
|
245
|
-
"propsSource": "export interface ToggleProps {\n label?: string;\n value: boolean;\n /** `$service:`/`$item.` binding → a live bool (overrides `value`). */\n valuePath?: string;\n onChange?: Action;\n /** #1047 — ON-state track color token (default: `accentPrimary`). Setting any\n * appearance prop switches to a custom-drawn control so a host can match its own\n * switch and keep the screen OTA (vs the `intents:` escape hatch). */\n trackOn?: TokenName;\n /** #1047 — OFF-state track color token (default: system/`surfaceTertiary`). */\n trackOff?: TokenName;\n /** #1047 — thumb color token (default: white). */\n thumb?: TokenName;\n /** #1047 — track width (pt/dp/px). Absent = system size. */\n width?: number;\n /** #1047 — track height (pt/dp/px). Absent = system size. */\n height?: number;\n}"
|
|
245
|
+
"propsSource": "export interface ToggleProps {\n label?: string;\n value: boolean;\n /** `$service:`/`$item.` binding → a live bool (overrides `value`). */\n valuePath?: string;\n onChange?: Action;\n /** #1047 — ON-state track color token (default: `accentPrimary`). Setting any\n * appearance prop switches to a custom-drawn control so a host can match its own\n * switch and keep the screen OTA (vs the `intents:` escape hatch). */\n trackOn?: TokenName;\n /** #1047 — OFF-state track color token (default: system/`surfaceTertiary`). */\n trackOff?: TokenName;\n /** #1047 — thumb color token (default: white). */\n thumb?: TokenName;\n /** #1047 — track width (pt/dp/px). Absent = system size. */\n width?: number;\n /** #1047 — track height (pt/dp/px). Absent = system size. */\n height?: number;\n /** `false`: the toggle keeps its own width (the switch, and its label beside it), never a share of a row or the\n * width of its column. Absent or `true`: a label and a switch spread across the width. Button's `fullWidth` twin. */\n fullWidth?: boolean;\n}"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"name": "Stepper",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
**91 core component types.** Every component body is `{ "package": "himalaya", "type": "<Type>", "props": { … } }`.
|
|
7
7
|
Binding grammar: `$service:<service>.<path>` (worker state) · `$item.<field>` (list row template) · `$flag:<key>` (feature flag) · `$env:<key>` (client environment — #1056).
|
|
8
8
|
Bindings resolve in the text/value props marked **binding-aware** below — **including two `Modifiers` token refs**, `background` and `border.color`, which are the only two whose token a binding actually fills: a worker can drive per-item **theming** (e.g. a game board's per-square color, `background: { token: "$item.bg" }`), not just text content. `shadow` and `backgroundGradient` are `TokenRef`s but are **not** binding-aware on any renderer — `shadow: { token: "$item.x" }` keeps the sentinel as a literal token name and silently loses the per-item styling, and a gradient is driven by its own `backgroundGradientPath` prop resolving to a gradient token NAME, not by a binding inside a token ref.
|
|
9
|
-
`$env:` is **client-resolved** (no worker) and valid in `modifiers.hiddenPath` and `FragmentSlot.casePath` **only** — keys `reduceMotion` / `colorScheme` / `sizeClass` / `isRTL` / `keyboardVisible` (an on-screen keyboard is up — `hiddenPath: "$env:keyboardVisible"` hides a header while typing), with an optional `==`/`!=` comparison (e.g. `hiddenPath: "$env:reduceMotion"`, `hiddenPath: "$env:colorScheme==light"`, `casePath: "$env:colorScheme"`). An unknown key fails open (shown / `defaultCase`).
|
|
9
|
+
`$env:` is **client-resolved** (no worker) and valid in `modifiers.hiddenPath` and `FragmentSlot.casePath` **only** — keys `reduceMotion` / `colorScheme` / `sizeClass` (`compact` / `medium` / `expanded`, from the window's width unless the host names its card's) / `isRTL` / `keyboardVisible` (an on-screen keyboard is up — `hiddenPath: "$env:keyboardVisible"` hides a header while typing), with an optional `==`/`!=` comparison (e.g. `hiddenPath: "$env:reduceMotion"`, `hiddenPath: "$env:colorScheme==light"`, `casePath: "$env:colorScheme"`). An unknown key fails open (shown / `defaultCase`).
|
|
10
10
|
A few input props render the **literal** and are **not** binding-aware — notably `SearchField.placeholder` and `Chip.label`. `SearchField.value` is live/binding-aware like other content props.
|
|
11
11
|
Within a bound collection's item template, `$item.` values are substituted before decoding, so a row's `Chip.label: "$item.title"` works. This does not make these props subscribe to `$service:`, and an item binding outside a row still renders literally.
|
|
12
12
|
They **cannot target strict-enum fields** (`style`, `size`, `alignment`, `severity`, `presentation`, `contentMode`, …) — those fail at render time, not validation.
|
|
@@ -174,6 +174,9 @@ element interface (printed below) rather than extrapolating from the level.
|
|
|
174
174
|
- Modifier-level (`TokenRef` object): `modifiers.background`, `modifiers.shadow`, `modifiers.backgroundGradient`, `modifiers.appear`, `modifiers.material`, `modifiers.pressMotion`, `modifiers.border.color`.
|
|
175
175
|
- Component-prop-level (bare `TokenName` string): `Card.background`, `Text.style`, `Text.color`, `Image.placeholder`, `Image.tint`, `Icon.tint`, `Toggle.trackOn`, `Toggle.trackOff`, `Toggle.thumb`, `Badge.token`, `Tag.token`, `ProgressBar.tint`, `ProgressBar.trackColor`, `AvatarStrip.ringGradient`, `ListItem.titleStyle`, `ListItem.subtitleStyle`, `ListItem.titleColor`, `ListItem.subtitleColor`, `ListItem.overlineColor`, `Slider.tint`, `ActivityIndicator.tint`, `Chip.token`, `Label.style`, `Label.color`, `Gauge.tint`, `Rating.color`, `Chart.color`, `DonutChart.color`, `VoiceNote.tint`, `LiveWaveform.color`, `Marquee.style`, `Marquee.color`, `Fab.tint`.
|
|
176
176
|
|
|
177
|
+
**A see-through colour** names a share of a colour token: `success@12` draws `success` at 12% (a tinted row fill),
|
|
178
|
+
in any colour slot of either shape, unless the palette defines a token of that exact name.
|
|
179
|
+
|
|
177
180
|
There is **no `modifiers.color` and no `modifiers.tint`** — a `tint` is always a component
|
|
178
181
|
prop. Of the two nested slots spelled `color`, `modifiers.border.color` is a `TokenRef`
|
|
179
182
|
and `modifiers.boxShadow.color` is a bare `TokenName`.
|
|
@@ -244,6 +247,12 @@ export interface HStackProps {
|
|
|
244
247
|
/** Align the children on their first text baseline (a title beside a smaller date), in place of `alignment`; a
|
|
245
248
|
* child with no text aligns by its bottom, as CSS synthesizes a baseline. */
|
|
246
249
|
alignBaseline?: boolean;
|
|
250
|
+
/** Lay the children out at their own width and wrap onto the next line when the row runs out of room (label chips,
|
|
251
|
+
* mode chips), as CSS `flex-wrap` does. A wrapping row fills its container's width and its children keep their own
|
|
252
|
+
* width; weights and Spacers are for rows that do not wrap. */
|
|
253
|
+
wrap?: boolean;
|
|
254
|
+
/** The gap between a wrapping row's lines, in points/px (NOT a multiple of the line height); absent = `spacing`. */
|
|
255
|
+
lineSpacing?: number;
|
|
247
256
|
}
|
|
248
257
|
```
|
|
249
258
|
|
|
@@ -640,6 +649,9 @@ export interface ButtonProps {
|
|
|
640
649
|
minHeight?: number;
|
|
641
650
|
/** Live loading bool; OR with literal loading. */
|
|
642
651
|
loadingPath?: string;
|
|
652
|
+
/** The visible minimum width of a button that keeps its own width, in place of the floor it has without one (web 64,
|
|
653
|
+
* Android Material's 58; iOS draws none). 0 = no floor: the label and its padding. A share of a row wins over it. */
|
|
654
|
+
minWidth?: number;
|
|
643
655
|
}
|
|
644
656
|
```
|
|
645
657
|
|
|
@@ -752,6 +764,9 @@ export interface ToggleProps {
|
|
|
752
764
|
width?: number;
|
|
753
765
|
/** #1047 — track height (pt/dp/px). Absent = system size. */
|
|
754
766
|
height?: number;
|
|
767
|
+
/** `false`: the toggle keeps its own width (the switch, and its label beside it), never a share of a row or the
|
|
768
|
+
* width of its column. Absent or `true`: a label and a switch spread across the width. Button's `fullWidth` twin. */
|
|
769
|
+
fullWidth?: boolean;
|
|
755
770
|
}
|
|
756
771
|
```
|
|
757
772
|
|
package/guides/tokens.md
CHANGED
|
@@ -136,7 +136,8 @@ Restyle every `Button` of one size or one style from the design system — no pe
|
|
|
136
136
|
`paddingV`, `text` (a `typography` token), `icon` (glyph size), `radius`.
|
|
137
137
|
- **Per variant** (`variants.<style>`, e.g. `primary`, `secondary`, `tertiary`, `destructive`):
|
|
138
138
|
`fill`, `label`, `border` (colour tokens or `#hex`), `borderWidth` (0 = no outline), `radius`
|
|
139
|
-
(wins over the size's)
|
|
139
|
+
(wins over the size's), `borderOutside` (`true`: the outline takes room outside the padding, as a CSS
|
|
140
|
+
border does, so the button is `borderWidth` wider on each side).
|
|
140
141
|
- Every field is optional. An absent field keeps the built-in Button, so a tokens.json without
|
|
141
142
|
`controls` renders exactly as before. `Button.cornerRadius` / `Button.minHeight` on a node
|
|
142
143
|
still win over the tokens.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1927.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": "
|
|
85
|
+
"falconPackageHash": "744efa4673ffc15ae2c2b536a46550e8b9c0a7a9d732c9962ed5f436"
|
|
86
86
|
}
|