@wix/himalaya-cli 0.1525.0 → 0.1526.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 +14 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +22 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/worker-subtree-safe-types.generated.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +13 -0
- package/dist/cli.mjs +137 -39
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/designing-himi-screens.md +43 -18
- package/guides/recipe-dynamic-list.md +7 -7
- package/guides/recipe-four-state.md +47 -41
- package/guides/recipe-search.md +1 -1
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +69 -40
- package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
- package/templates/beauty-salon/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/branded-lite/dev/index.ts +165 -88
- package/templates/branded-lite/tier5-src/business-chat/index.ts +4 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/community-club/dev/index.ts +40 -21
- package/templates/community-club/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/events-meetups/dev/index.ts +36 -19
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/gym-fitness/dev/index.ts +73 -42
- package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
- package/templates/gym-fitness/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/nonprofit-cause/dev/index.ts +47 -29
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/podcast-creator/dev/index.ts +47 -29
- package/templates/podcast-creator/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/portfolio-creative/dev/index.ts +52 -27
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/restaurant/dev/index.ts +48 -25
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/retail-store/dev/index.ts +44 -23
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +69 -10
- package/templates/yoga-studio/dev/index.ts +57 -34
- package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
- package/templates/yoga-studio/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +69 -10
|
@@ -226,6 +226,20 @@ export declare function emptyState(props: {
|
|
|
226
226
|
actionStyle?: "primary" | "secondary" | "plain";
|
|
227
227
|
actionSize?: "sm" | "md";
|
|
228
228
|
}): Component;
|
|
229
|
+
/** #4349 — the ONE standard load-error layout. Every prop is optional: an absent
|
|
230
|
+
* title/body/ctaLabel falls back to the variant's default copy. */
|
|
231
|
+
export declare function errorState(props?: {
|
|
232
|
+
variant?: "server" | "offline" | "permission" | "signIn";
|
|
233
|
+
variantPath?: string;
|
|
234
|
+
title?: string;
|
|
235
|
+
body?: string;
|
|
236
|
+
cta?: {
|
|
237
|
+
actionId: string;
|
|
238
|
+
params?: Record<string, string>;
|
|
239
|
+
};
|
|
240
|
+
ctaLabel?: string;
|
|
241
|
+
placement?: "screen" | "section";
|
|
242
|
+
}): Component;
|
|
229
243
|
export declare function appIntent(pkg: string, type: string, props: unknown, opts?: {
|
|
230
244
|
id?: string;
|
|
231
245
|
}): Component;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -625,6 +625,24 @@ export interface EmptyStateProps {
|
|
|
625
625
|
/** The CTA's Button `size`. Default `"sm"`. */
|
|
626
626
|
actionSize?: "sm" | "md";
|
|
627
627
|
}
|
|
628
|
+
/**
|
|
629
|
+
* The ONE standard load-error layout (#4349): a centred stack of a 20px glyph, title,
|
|
630
|
+
* body and one pill CTA. No icon tile, no card. Every prop is optional: an absent
|
|
631
|
+
* `title` / `body` / `ctaLabel` falls back to the variant's default copy.
|
|
632
|
+
*/
|
|
633
|
+
export interface ErrorStateProps {
|
|
634
|
+
/** Default `"server"`. An unknown value is treated as `"server"`. */
|
|
635
|
+
variant?: "server" | "offline" | "permission" | "signIn";
|
|
636
|
+
/** `$service:` binding that selects the variant at runtime; wins over `variant`. */
|
|
637
|
+
variantPath?: string;
|
|
638
|
+
title?: string;
|
|
639
|
+
body?: string;
|
|
640
|
+
/** The CTA's action. Absent → no button. */
|
|
641
|
+
cta?: Action;
|
|
642
|
+
ctaLabel?: string;
|
|
643
|
+
/** `"screen"` (default, ~96px from the top) or `"section"` (~24px). */
|
|
644
|
+
placement?: "screen" | "section";
|
|
645
|
+
}
|
|
628
646
|
export interface InterpolatedText {
|
|
629
647
|
template: string;
|
|
630
648
|
params?: Record<string, string>;
|
|
@@ -2417,6 +2435,10 @@ export type CoreComponentBody = {
|
|
|
2417
2435
|
package: "himalaya";
|
|
2418
2436
|
type: "EmptyState";
|
|
2419
2437
|
props: EmptyStateProps;
|
|
2438
|
+
} | {
|
|
2439
|
+
package: "himalaya";
|
|
2440
|
+
type: "ErrorState";
|
|
2441
|
+
props: ErrorStateProps;
|
|
2420
2442
|
} | {
|
|
2421
2443
|
package: "himalaya";
|
|
2422
2444
|
type: "Text";
|
|
@@ -83,6 +83,10 @@ export declare const WORKER_SUBTREE_SAFE_TYPE_RULES: {
|
|
|
83
83
|
readonly children: readonly [];
|
|
84
84
|
readonly actions: readonly ["action"];
|
|
85
85
|
};
|
|
86
|
+
readonly ErrorState: {
|
|
87
|
+
readonly children: readonly [];
|
|
88
|
+
readonly actions: readonly ["cta"];
|
|
89
|
+
};
|
|
86
90
|
readonly Banner: {
|
|
87
91
|
readonly children: readonly [];
|
|
88
92
|
readonly actions: readonly ["action"];
|
|
@@ -9313,6 +9313,7 @@ var CORE_COMPONENTS = /* @__PURE__ */ new Set([
|
|
|
9313
9313
|
"himalaya.Divider",
|
|
9314
9314
|
"himalaya.Spacer",
|
|
9315
9315
|
"himalaya.EmptyState",
|
|
9316
|
+
"himalaya.ErrorState",
|
|
9316
9317
|
"himalaya.Text",
|
|
9317
9318
|
"himalaya.Image",
|
|
9318
9319
|
"himalaya.Icon",
|
|
@@ -10744,6 +10745,12 @@ var WORKER_SUBTREE_SAFE_TYPE_RULES = {
|
|
|
10744
10745
|
"action"
|
|
10745
10746
|
]
|
|
10746
10747
|
},
|
|
10748
|
+
"ErrorState": {
|
|
10749
|
+
"children": [],
|
|
10750
|
+
"actions": [
|
|
10751
|
+
"cta"
|
|
10752
|
+
]
|
|
10753
|
+
},
|
|
10747
10754
|
"Banner": {
|
|
10748
10755
|
"children": [],
|
|
10749
10756
|
"actions": [
|
|
@@ -8206,6 +8206,12 @@ var WORKER_SUBTREE_SAFE_TYPE_RULES = {
|
|
|
8206
8206
|
"action"
|
|
8207
8207
|
]
|
|
8208
8208
|
},
|
|
8209
|
+
"ErrorState": {
|
|
8210
|
+
"children": [],
|
|
8211
|
+
"actions": [
|
|
8212
|
+
"cta"
|
|
8213
|
+
]
|
|
8214
|
+
},
|
|
8209
8215
|
"Banner": {
|
|
8210
8216
|
"children": [],
|
|
8211
8217
|
"actions": [
|
|
@@ -8743,6 +8749,12 @@ function emptyState(props) {
|
|
|
8743
8749
|
body: { package: "himalaya", type: "EmptyState", props }
|
|
8744
8750
|
};
|
|
8745
8751
|
}
|
|
8752
|
+
function errorState(props = {}) {
|
|
8753
|
+
return {
|
|
8754
|
+
id: auto("error_state"),
|
|
8755
|
+
body: { package: "himalaya", type: "ErrorState", props }
|
|
8756
|
+
};
|
|
8757
|
+
}
|
|
8746
8758
|
function appIntent(pkg, type, props, opts) {
|
|
8747
8759
|
return {
|
|
8748
8760
|
id: opts?.id ?? auto(type.toLowerCase()),
|
|
@@ -9414,6 +9426,7 @@ export {
|
|
|
9414
9426
|
donutChart,
|
|
9415
9427
|
emptyBlock,
|
|
9416
9428
|
emptyState,
|
|
9429
|
+
errorState,
|
|
9417
9430
|
fab,
|
|
9418
9431
|
fieldError,
|
|
9419
9432
|
filterChips,
|