@wix/himalaya-cli 0.1830.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.
Files changed (73) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +6 -2
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +6 -2
  3. package/dist/browser-plane/assets.json +5 -5
  4. package/dist/browser-plane/preview-deferred/{990204a4cb9e61e96206131bbaeb9401543753fd5301735b5029eb6906921329.bin → 70836790496f742deee3b0e0c83394af3b9fc275d091c6497786d90201392cf4.bin} +1 -1
  5. package/dist/browser-plane/sw.js +8 -8
  6. package/dist/cli.mjs +1219 -1072
  7. package/dist/preview-assets.generated.bin +0 -0
  8. package/guides/designing-himi-screens.md +46 -18
  9. package/guides/getting-started.md +1 -1
  10. package/guides/himi-skill.md +1 -1
  11. package/guides/index.json +6 -0
  12. package/guides/skill.md +1 -0
  13. package/guides/web-ux.md +134 -0
  14. package/package.json +2 -2
  15. package/templates/beauty-salon/dev/index.ts +4 -0
  16. package/templates/beauty-salon/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  17. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +1 -1
  18. package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  19. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +5 -2
  20. package/templates/branded-lite/dev/index.ts +7 -0
  21. package/templates/branded-lite/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  22. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +1 -1
  23. package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  24. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +5 -2
  25. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +4 -4
  26. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +5 -2
  27. package/templates/community-club/dev/index.ts +1 -0
  28. package/templates/community-club/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  29. package/templates/conference/dev/index.ts +2 -0
  30. package/templates/conference/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  31. package/templates/events-meetups/dev/index.ts +1 -0
  32. package/templates/events-meetups/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  33. package/templates/fitness-gym/dev/index.ts +2 -0
  34. package/templates/fitness-gym/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  35. package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +1 -1
  36. package/templates/fitness-gym/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  37. package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +5 -2
  38. package/templates/gym-fitness/dev/index.ts +5 -0
  39. package/templates/gym-fitness/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  40. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +1 -1
  41. package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  42. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +5 -2
  43. package/templates/medical-services/dev/index.ts +2 -0
  44. package/templates/medical-services/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  45. package/templates/medical-services/tier5-src/himi-booking-time/index.ts +1 -1
  46. package/templates/nonprofit-cause/dev/index.ts +2 -0
  47. package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  48. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  49. package/templates/personal-fitness-trainer/dev/index.ts +4 -0
  50. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  51. package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +1 -1
  52. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  53. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +4 -4
  54. package/templates/podcast-creator/dev/index.ts +2 -0
  55. package/templates/podcast-creator/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  56. package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  57. package/templates/portfolio-creative/dev/index.ts +2 -0
  58. package/templates/portfolio-creative/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  59. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +5 -2
  60. package/templates/restaurant/dev/index.ts +1 -0
  61. package/templates/restaurant/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  62. package/templates/retail-store/dev/index.ts +1 -0
  63. package/templates/retail-store/tier5-src/himi-store-product/index.ts +5 -2
  64. package/templates/salon-spa/dev/index.ts +2 -0
  65. package/templates/salon-spa/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  66. package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +1 -1
  67. package/templates/wholesale-store/dev/index.ts +1 -0
  68. package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +5 -2
  69. package/templates/yoga-studio/dev/index.ts +5 -0
  70. package/templates/yoga-studio/tier5-src/_shared/iap-attendance-purchase.ts +21 -2
  71. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +1 -1
  72. package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +4 -1
  73. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +5 -2
@@ -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
- if (repeatable && IN_FLIGHT.has(state.phase)) return action(copy, "busy", own ? copy.processing : "");
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
- if (repeatable && IN_FLIGHT.has(state.phase)) return action(copy, "busy", own ? copy.processing : "");
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": 2645764
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/990204a4cb9e61e96206131bbaeb9401543753fd5301735b5029eb6906921329.bin",
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-BcWLi349.js",
82
+ "key": "assets/pdf-DjPMhoJD.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "990204a4cb9e61e96206131bbaeb9401543753fd5301735b5029eb6906921329",
85
- "file": "preview-deferred/990204a4cb9e61e96206131bbaeb9401543753fd5301735b5029eb6906921329.bin"
84
+ "sha256": "70836790496f742deee3b0e0c83394af3b9fc275d091c6497786d90201392cf4",
85
+ "file": "preview-deferred/70836790496f742deee3b0e0c83394af3b9fc275d091c6497786d90201392cf4.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",