@wix/himalaya-cli 0.2040.0 → 0.2042.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/sdk/ui/src/index.d.ts +1 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{56260b58e6121212773ef235543107cbc9e3e88b5a5c6720e921771318f25972.bin → bfa6093b86d3106ef891a717dc0da1b1c0d9d1a456259753c25398bbafbcef8e.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +1727 -1502
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/android-ux.md +5 -1
- package/guides/designing-himi-screens.md +6 -1
- package/guides/ios-ux.md +4 -1
- package/guides/release-notes.md +14 -0
- package/guides/sdk-reference.json +1 -1
- package/package.json +2 -2
|
Binary file
|
package/guides/android-ux.md
CHANGED
|
@@ -14,7 +14,11 @@ Material 3. Three things are native without any work from you, and you should no
|
|
|
14
14
|
system and predictive Back, the search bar, bottom sheets and dialogs.
|
|
15
15
|
- **Controls the renderer draws:** `Toggle` is a Material switch, `SegmentedControl` a
|
|
16
16
|
segmented button, `Picker`/`DatePicker`/`Menu`/`BottomSheet` the Material ones, and so is the
|
|
17
|
-
`alert` presentation
|
|
17
|
+
`alert` presentation: a Material 3 basic dialog (28 dp corners on `surfaceContainerHigh`, your
|
|
18
|
+
`surfaceElevated`; a `headlineSmall` title; text buttons together at the end, the cancel one
|
|
19
|
+
first, stacked with the cancel one last when the labels do not fit one row; a destructive label
|
|
20
|
+
in your `danger` colour). An alert with `icon: "success"` shows a 24 dp check above a centred
|
|
21
|
+
title. The `AlertDialog` component is only an inline preview, and draws the same dialog content.
|
|
18
22
|
- **Your type scale:** typography tokens are emitted in `sp` and follow the user's font scale.
|
|
19
23
|
|
|
20
24
|
One thing it **cannot** do: give Android a different layout from iPhone. Lists and cards draw the
|
|
@@ -397,7 +397,12 @@ action `{ actionId: "himi.open", presentation: "alert", args: { title, message,
|
|
|
397
397
|
confirmLabel, cancelLabel, confirmActionId } }` — or with `ui.alert` from a worker (up to three
|
|
398
398
|
`buttons` — "Save / Discard / Cancel" — with roles `default` / `cancel` / `destructive`;
|
|
399
399
|
`ui.alert({ buttons })` resolves `{ buttonId }`). The confirm button calls `confirmActionId`
|
|
400
|
-
directly, so the worker needs no "dialog open" flag.
|
|
400
|
+
directly, so the worker needs no "dialog open" flag. Each platform draws the alert natively: the
|
|
401
|
+
system alert on iOS and macOS, a Material 3 dialog on Android and the web (text buttons at the end,
|
|
402
|
+
the cancel one first; stacked, cancel last, when the labels do not fit). An authored button's id
|
|
403
|
+
`alert.<id>` is the same everywhere; the confirm/cancel pair is `alert.confirm` / `alert.cancel` on
|
|
404
|
+
iOS and Android and `alert-ok` / `alert-cancel` on the web. `icon: "success"` shows a
|
|
405
|
+
check on Android and the web only, so write a title that says what happened. The `AlertDialog` COMPONENT is only an inline
|
|
401
406
|
preview: it draws where you place it, like the `Snackbar` component, and never floats over the
|
|
402
407
|
screen. Never use it for a blocking decision, and never show it behind a flag to fake a dialog. Alerts share one slot: a second one replaces what
|
|
403
408
|
is up, and a second worker `ui.alert` rejects `ui_busy`. If your app can raise alerts from several places at
|
package/guides/ios-ux.md
CHANGED
|
@@ -14,7 +14,10 @@ native on iPhone without any work from you, and you should not redraw them:
|
|
|
14
14
|
swipe, the search field in the bar, sheets and alerts.
|
|
15
15
|
- **Controls the renderer draws:** `Toggle` is a `UISwitch`, `SegmentedControl` is a segmented
|
|
16
16
|
control, `Picker`/`DatePicker`/`Menu`/`BottomSheet` are the system ones, and so is the `alert`
|
|
17
|
-
presentation
|
|
17
|
+
presentation: the system alert (on macOS too), with the system's own look, button order and
|
|
18
|
+
VoiceOver handling. It has no icon: `icon: "success"` draws nothing on iOS and macOS, so the
|
|
19
|
+
title must say what happened. The `AlertDialog` component is only an inline preview: a static
|
|
20
|
+
look-alike of the system alert (watchOS and tvOS keep the token-styled card).
|
|
18
21
|
- **Your type scale:** typography tokens scale with Dynamic Type.
|
|
19
22
|
|
|
20
23
|
One thing it **cannot** do: give iPhone a different layout from Android. Lists and cards draw the
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,20 @@ areas, always in the same order, so you can skim for the one you care about.
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## 2026-12-02
|
|
18
|
+
|
|
19
|
+
### Authoring screens
|
|
20
|
+
|
|
21
|
+
- **Alerts use each platform's own dialog.** `ui.alert`, the navigation `alert` verb and the `AlertDialog`
|
|
22
|
+
component now show the Material 3 dialog on Android and web, and the system alert on iOS and macOS, instead of
|
|
23
|
+
a card drawn from your tokens. Buttons keep their order and roles: a `destructive` button takes the error color
|
|
24
|
+
(system red on iOS). On Android and web the buttons sit in one row at the end and stack only when they do not
|
|
25
|
+
fit; the iOS and macOS alert puts two side by side and stacks three. Every
|
|
26
|
+
`alert.<id>` test id is kept, so your UI tests run unchanged. (#6574)
|
|
27
|
+
- **A pushed screen's top bar items show on macOS.** A screen opened by a push in the Mac app now draws its
|
|
28
|
+
`topBar.items` (Share, More Actions, a composed bar's trailing items) in the window toolbar, as its tab's first
|
|
29
|
+
screen does. Before, only the Back control showed there. (#6574)
|
|
30
|
+
|
|
17
31
|
## 2026-12-01
|
|
18
32
|
|
|
19
33
|
### Getting started & the CLI
|
|
@@ -6787,7 +6787,7 @@
|
|
|
6787
6787
|
"name": "AlertOptions",
|
|
6788
6788
|
"kind": "interface",
|
|
6789
6789
|
"jsdoc": "",
|
|
6790
|
-
"decl": "export interface AlertOptions {\n /** Required — the native presenters drop alerts with an empty title. */\n title: string;\n message?: string;\n /** Confirm button label. Default \"Confirm\". */\n confirmLabel?: string;\n /** Cancel button label. OMIT for a single-button alert (no cancel button). */\n cancelLabel?: string;\n /** Style the confirm button with the `danger` token. A destructive confirm is not the\n * affirmative button: its `confirm.actionId` still runs, but without gesture credit. */\n destructive?: boolean;\n /** `\"success\"`: a green checkmark above the title
|
|
6790
|
+
"decl": "export interface AlertOptions {\n /** Required — the native presenters drop alerts with an empty title. */\n title: string;\n message?: string;\n /** Confirm button label. Default \"Confirm\". */\n confirmLabel?: string;\n /** Cancel button label. OMIT for a single-button alert (no cancel button). */\n cancelLabel?: string;\n /** Style the confirm button with the `danger` token. A destructive confirm is not the\n * affirmative button: its `confirm.actionId` still runs, but without gesture credit. */\n destructive?: boolean;\n /** `\"success\"`: a green checkmark above the title (Android, web; the iOS/macOS system alert has none). Confirm / cancel only. */\n icon?: AlertIcon;\n /** The affirmative button's ACTION. Pressing it runs `actionId` as a NEW invocation\n * with user-gesture origin (so an app service's `app.<svc>.<action>` may return `_nav` and\n * navigate — the \"Ready — View\" alert). `label` replaces `confirmLabel`. The id is checked when\n * you set it, against this worker: a `capability.<id>.*` needs `<id>` allowed, an `app.*` from a\n * screen worker needs `app_services` and an exported action, a `tier5.*` must be this worker's\n * own; anything else rejects (`action_not_allowed`). Cancel and dismissal run nothing. */\n confirm?: AlertConfirm;\n /** Up to three buttons, replacing the four options above; see `AlertButtonOptions`. */\n buttons?: AlertButtonOptions[];\n /** BI id (see `BiArg`). */\n id?: string;\n /** BI args (see `BiArg`). */\n args?: Record<string, BiArg>;\n}",
|
|
6791
6791
|
"verificationChecked": true
|
|
6792
6792
|
},
|
|
6793
6793
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2042.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": "9c7a4bb654805a53e10240543be918a1a5aa7c4a77fc60de2da5a864"
|
|
86
86
|
}
|