@wix/himalaya-cli 0.1649.0 → 0.1651.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.
@@ -9,6 +9,8 @@ export interface AlertOptions {
9
9
  /** Style the confirm button with the `danger` token. A destructive confirm is not the
10
10
  * affirmative button: its `confirm.actionId` still runs, but without gesture credit. */
11
11
  destructive?: boolean;
12
+ /** `"success"`: a green checkmark above the title. Confirm / cancel alerts only; older hosts ignore it. */
13
+ icon?: AlertIcon;
12
14
  /** The affirmative button's ACTION. Pressing it runs `actionId` as a NEW invocation
13
15
  * with user-gesture origin (so an app service's `app.<svc>.<action>` may return `_nav` and
14
16
  * navigate — the "Ready — View" alert). `label` replaces `confirmLabel`. The id is checked when
@@ -38,6 +40,8 @@ export interface AlertButtonOptions {
38
40
  /** Passed to the action (JSON types kept). */
39
41
  args?: Record<string, unknown>;
40
42
  }
43
+ /** The glyphs an alert can show above its title. */
44
+ export type AlertIcon = "success";
41
45
  /** The affirmative button of an `alert()`: its label and the action its press runs. */
42
46
  export interface AlertConfirm {
43
47
  label: string;
@@ -32,6 +32,7 @@ async function alert(options) {
32
32
  if (options.confirmLabel) params.confirmLabel = options.confirmLabel;
33
33
  if (options.cancelLabel) params.cancelLabel = options.cancelLabel;
34
34
  if (options.destructive) params.destructive = true;
35
+ if (options.icon) params.icon = options.icon;
35
36
  if (options.confirm) {
36
37
  const { label, actionId, args } = options.confirm;
37
38
  params.confirm = JSON.stringify(args === void 0 ? { label, actionId } : { label, actionId, args });
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2500666
5
+ "bytes": 2501962
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 23064
22
22
  },
23
23
  {
24
- "name": "preview-deferred/4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin",
24
+ "name": "preview-deferred/6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-D8JQa8ez.js",
82
+ "key": "assets/pdf-DCXRMYPw.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb",
85
- "file": "preview-deferred/4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin"
84
+ "sha256": "6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555",
85
+ "file": "preview-deferred/6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",