@wix/himalaya-cli 0.1649.0 → 0.1650.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 +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/ui.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin → 6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555.bin} +1 -1
- package/dist/browser-plane/sw.js +5 -5
- package/dist/cli.mjs +45 -40
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/sdk-reference.json +8 -1
- package/package.json +2 -2
- package/templates/beauty-salon/config.ts +16 -1
- package/templates/branded-lite/config.ts +16 -1
- package/templates/branded-lite/dev/index.ts +292 -305
- package/templates/branded-lite/l10n/en.json +3 -3
- package/templates/branded-lite/tier5-src/_shared/branded-form.ts +22 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-form/index.ts +250 -74
- package/templates/community-club/config.ts +16 -1
- package/templates/events-meetups/config.ts +16 -1
- package/templates/gym-fitness/config.ts +16 -1
- package/templates/nonprofit-cause/config.ts +16 -1
- package/templates/podcast-creator/config.ts +16 -1
- package/templates/portfolio-creative/config.ts +16 -1
- package/templates/restaurant/config.ts +16 -1
- package/templates/retail-store/config.ts +16 -1
- package/templates/yoga-studio/config.ts +16 -1
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/ui/src/index.d.ts
CHANGED
|
@@ -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":
|
|
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/
|
|
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-
|
|
82
|
+
"key": "assets/pdf-DCXRMYPw.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555",
|
|
85
|
+
"file": "preview-deferred/6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|