@wix/himalaya-cli 0.1829.0 → 0.1831.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/iap-checkout.mjs +6 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +6 -2
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{4342c013d2d1938e1fd0eb5ad8808d0a7425d67ea080f4ce615db01a7671e842.bin → 70836790496f742deee3b0e0c83394af3b9fc275d091c6497786d90201392cf4.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +1247 -1083
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/designing-himi-screens.md +46 -18
- package/guides/getting-started.md +1 -1
- package/guides/himi-skill.md +1 -1
- package/guides/index.json +6 -0
- package/guides/push-cli-onboarding.md +5 -0
- package/guides/skill.md +1 -0
- package/guides/web-ux.md +134 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +29 -2
- package/templates/beauty-salon/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +5 -2
- package/templates/branded-lite/dev/index.ts +32 -2
- package/templates/branded-lite/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +5 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +4 -4
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/branded-lite/tier5-src/himi-store-product/index.ts +5 -2
- package/templates/brandy/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/community-club/dev/index.ts +26 -2
- package/templates/community-club/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/community-club/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/conference/dev/index.ts +2 -0
- package/templates/conference/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/conference/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/events-meetups/dev/index.ts +26 -2
- package/templates/events-meetups/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/fitness-gym/dev/index.ts +2 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/fitness-gym/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +5 -2
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/gym-fitness/dev/index.ts +30 -2
- package/templates/gym-fitness/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +5 -2
- package/templates/medical-services/dev/index.ts +2 -0
- package/templates/medical-services/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/medical-services/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/medical-services/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/nonprofit-cause/dev/index.ts +27 -2
- package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/personal-fitness-trainer/dev/index.ts +27 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +4 -4
- package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/podcast-creator/dev/index.ts +27 -2
- package/templates/podcast-creator/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/portfolio-creative/dev/index.ts +27 -2
- package/templates/portfolio-creative/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +5 -2
- package/templates/restaurant/dev/index.ts +26 -2
- package/templates/restaurant/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/retail-store/dev/index.ts +26 -2
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/retail-store/tier5-src/himi-store-product/index.ts +5 -2
- package/templates/salon-spa/dev/index.ts +2 -0
- package/templates/salon-spa/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/wholesale-store/dev/index.ts +1 -0
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +49 -10
- package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +5 -2
- package/templates/yoga-studio/dev/index.ts +30 -2
- package/templates/yoga-studio/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
- package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +1 -1
- package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +4 -1
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +5 -2
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +49 -10
|
@@ -2976,7 +2976,11 @@ function iapPurchaseFields(view, state, readiness, copy) {
|
|
|
2976
2976
|
const matching = state.payments.filter((tracked) => sameItem(tracked.item, key));
|
|
2977
2977
|
const payment = matching.find((p) => p.access === "needsSupport")?.access ?? matching.find((p) => p.access === "processing")?.access ?? matching[matching.length - 1]?.access;
|
|
2978
2978
|
if (repeatable && payment === "needsSupport") return action(copy, "disabled", copy.support);
|
|
2979
|
-
|
|
2979
|
+
const processing = state.payments.filter((tracked) => tracked.access === "processing");
|
|
2980
|
+
const unknownProcessing = processing.some((tracked) => tracked.item === "payment");
|
|
2981
|
+
const othersProcessing = processing.some((tracked) => tracked.item !== "payment" && !sameItem(tracked.item, key));
|
|
2982
|
+
const selling = own || payment === "processing" || state.item === null && (unknownProcessing || !othersProcessing);
|
|
2983
|
+
if (repeatable && IN_FLIGHT.has(state.phase)) return action(copy, selling ? "busy" : "disabled", own ? copy.processing : "");
|
|
2980
2984
|
if (repeatable && payment === "processing") return action(copy, "busy", copy.processing);
|
|
2981
2985
|
if (repeatable && own && state.phase !== "accessReady" && state.phase !== "idle") {
|
|
2982
2986
|
if (state.failure === "orderClosed") return action(copy, "disabled", copy.support);
|
|
@@ -2984,7 +2988,7 @@ function iapPurchaseFields(view, state, readiness, copy) {
|
|
|
2984
2988
|
}
|
|
2985
2989
|
if (repeatable && (own && state.phase === "accessReady" || payment === "granted")) return action({ ...copy, buy: copy.buyAnother ?? copy.buy }, "enabled", "");
|
|
2986
2990
|
if (own && state.phase === "accessReady" || payment === "granted") return { ...action(copy, "disabled", ""), accessReady: true };
|
|
2987
|
-
if (IN_FLIGHT.has(state.phase)) return action(copy, "busy", own ? copy.processing : "");
|
|
2991
|
+
if (IN_FLIGHT.has(state.phase)) return action(copy, selling ? "busy" : "disabled", own ? copy.processing : "");
|
|
2988
2992
|
if (own) return outcomeAction(state, copy);
|
|
2989
2993
|
if (payment === "processing") return action(copy, "busy", copy.processing);
|
|
2990
2994
|
if (payment === "needsSupport") return action(copy, "disabled", copy.support);
|
|
@@ -6174,7 +6174,11 @@ function iapPurchaseFields(view, state, readiness, copy) {
|
|
|
6174
6174
|
const matching = state.payments.filter((tracked) => sameItem(tracked.item, key));
|
|
6175
6175
|
const payment = matching.find((p) => p.access === "needsSupport")?.access ?? matching.find((p) => p.access === "processing")?.access ?? matching[matching.length - 1]?.access;
|
|
6176
6176
|
if (repeatable && payment === "needsSupport") return action(copy, "disabled", copy.support);
|
|
6177
|
-
|
|
6177
|
+
const processing = state.payments.filter((tracked) => tracked.access === "processing");
|
|
6178
|
+
const unknownProcessing = processing.some((tracked) => tracked.item === "payment");
|
|
6179
|
+
const othersProcessing = processing.some((tracked) => tracked.item !== "payment" && !sameItem(tracked.item, key));
|
|
6180
|
+
const selling = own || payment === "processing" || state.item === null && (unknownProcessing || !othersProcessing);
|
|
6181
|
+
if (repeatable && IN_FLIGHT.has(state.phase)) return action(copy, selling ? "busy" : "disabled", own ? copy.processing : "");
|
|
6178
6182
|
if (repeatable && payment === "processing") return action(copy, "busy", copy.processing);
|
|
6179
6183
|
if (repeatable && own && state.phase !== "accessReady" && state.phase !== "idle") {
|
|
6180
6184
|
if (state.failure === "orderClosed") return action(copy, "disabled", copy.support);
|
|
@@ -6182,7 +6186,7 @@ function iapPurchaseFields(view, state, readiness, copy) {
|
|
|
6182
6186
|
}
|
|
6183
6187
|
if (repeatable && (own && state.phase === "accessReady" || payment === "granted")) return action({ ...copy, buy: copy.buyAnother ?? copy.buy }, "enabled", "");
|
|
6184
6188
|
if (own && state.phase === "accessReady" || payment === "granted") return { ...action(copy, "disabled", ""), accessReady: true };
|
|
6185
|
-
if (IN_FLIGHT.has(state.phase)) return action(copy, "busy", own ? copy.processing : "");
|
|
6189
|
+
if (IN_FLIGHT.has(state.phase)) return action(copy, selling ? "busy" : "disabled", own ? copy.processing : "");
|
|
6186
6190
|
if (own) return outcomeAction(state, copy);
|
|
6187
6191
|
if (payment === "processing") return action(copy, "busy", copy.processing);
|
|
6188
6192
|
if (payment === "needsSupport") return action(copy, "disabled", copy.support);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2682682
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 24320
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/70836790496f742deee3b0e0c83394af3b9fc275d091c6497786d90201392cf4.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-DjPMhoJD.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "70836790496f742deee3b0e0c83394af3b9fc275d091c6497786d90201392cf4",
|
|
85
|
+
"file": "preview-deferred/70836790496f742deee3b0e0c83394af3b9fc275d091c6497786d90201392cf4.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|