@wix/himalaya-cli 0.1015.0 → 0.1016.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 (89) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +67 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/state/src/index.d.ts +45 -3
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +18 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +7 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/genie-chat/src/index.d.ts +51 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +21 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +79 -6
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-genie-chat.mjs +23 -0
  9. package/dist/cli.mjs +1225 -645
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/component-reference.json +1 -1
  12. package/guides/component-reference.md +25 -9
  13. package/guides/designing-himi-screens.md +6 -4
  14. package/guides/headless-loop.md +1 -0
  15. package/guides/sdk-reference.json +47 -5
  16. package/guides/tier-5-add-a-screen.md +40 -13
  17. package/guides/wix-api-usage.md +9 -0
  18. package/package.json +2 -2
  19. package/templates/beauty-salon/dev/index.ts +252 -7
  20. package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +5 -2
  21. package/templates/beauty-salon-owner/config.ts +1 -1
  22. package/templates/beauty-salon-owner/dev/index.ts +419 -2
  23. package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +226 -9
  24. package/templates/beauty-salon-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  25. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  26. package/templates/branded-lite/dev/index.ts +487 -14
  27. package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +5 -2
  28. package/templates/community-club/dev/index.ts +196 -13
  29. package/templates/community-club-owner/config.ts +1 -1
  30. package/templates/community-club-owner/dev/index.ts +402 -2
  31. package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +226 -9
  32. package/templates/community-club-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  33. package/templates/community-club-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  34. package/templates/events-meetups/dev/index.ts +196 -13
  35. package/templates/events-meetups-owner/config.ts +1 -1
  36. package/templates/events-meetups-owner/dev/index.ts +348 -2
  37. package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +226 -9
  38. package/templates/events-meetups-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  39. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  40. package/templates/gym-fitness/dev/index.ts +324 -12
  41. package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +5 -2
  42. package/templates/gym-fitness-owner/config.ts +1 -1
  43. package/templates/gym-fitness-owner/dev/index.ts +440 -2
  44. package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +226 -9
  45. package/templates/gym-fitness-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  46. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  47. package/templates/himi-chat/dev/index.ts +2 -2
  48. package/templates/nonprofit-cause/dev/index.ts +212 -13
  49. package/templates/nonprofit-cause-owner/config.ts +1 -1
  50. package/templates/nonprofit-cause-owner/dev/index.ts +386 -2
  51. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +226 -9
  52. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  53. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  54. package/templates/owner-lite/config.ts +1 -1
  55. package/templates/owner-lite/dev/index.ts +446 -2
  56. package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +226 -9
  57. package/templates/owner-lite/tier5-src/_shared/aria-client-tools.ts +234 -0
  58. package/templates/owner-lite/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  59. package/templates/podcast-creator/dev/index.ts +206 -13
  60. package/templates/podcast-creator-owner/config.ts +1 -1
  61. package/templates/podcast-creator-owner/dev/index.ts +402 -2
  62. package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +226 -9
  63. package/templates/podcast-creator-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  64. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  65. package/templates/portfolio-creative/dev/index.ts +249 -11
  66. package/templates/portfolio-creative-owner/config.ts +1 -1
  67. package/templates/portfolio-creative-owner/dev/index.ts +419 -2
  68. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +226 -9
  69. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  70. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  71. package/templates/restaurant/dev/index.ts +219 -11
  72. package/templates/restaurant-owner/config.ts +1 -1
  73. package/templates/restaurant-owner/dev/index.ts +440 -2
  74. package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +226 -9
  75. package/templates/restaurant-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  76. package/templates/restaurant-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  77. package/templates/retail-store/dev/index.ts +159 -6
  78. package/templates/retail-store-owner/config.ts +1 -1
  79. package/templates/retail-store-owner/dev/index.ts +381 -2
  80. package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +226 -9
  81. package/templates/retail-store-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  82. package/templates/retail-store-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
  83. package/templates/yoga-studio/dev/index.ts +284 -12
  84. package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +5 -2
  85. package/templates/yoga-studio-owner/config.ts +1 -1
  86. package/templates/yoga-studio-owner/dev/index.ts +386 -2
  87. package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +226 -9
  88. package/templates/yoga-studio-owner/tier5-src/_shared/aria-client-tools.ts +234 -0
  89. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -0
@@ -1,6 +1,6 @@
1
1
  import { defineBackendCollection } from "../_shared/collection-service.js";
2
2
  import { cancelBookingAsMember, isBookingPolicyViolation } from "@himalaya/wix-bookings";
3
- import { dispatch } from "@himalaya/dispatch";
3
+ import { navigate } from "@himalaya/state";
4
4
  import { copyParam } from "../_shared/himi-copy.js";
5
5
  import { memberAccess, assertMemberAccess, memberAccessChanged, memberAccessDenied, type MemberAccess } from "../_shared/member-access.js";
6
6
  import { fetchMemberBookings, type MemberBookingRow } from "../_shared/member-bookings.js";
@@ -70,7 +70,10 @@ const svc = defineBackendCollection<S, MemberBookingRow>("himiBookingBookings",
70
70
  async rebook(s, arg) {
71
71
  const member = pageMember, row = s.rows.find(row => row.id === (arg as { id?: string })?.id);
72
72
  if (!member || !row?.serviceId) return s;
73
- try { await assertMemberAccess(member); await dispatch("himi.open", { screenId: "himi_service", id: row.serviceId }); return s; }
73
+ // A returned `_nav`, not `dispatch("himi.open")`: a worker's nav dispatch went to the flat
74
+ // native ActionDispatcher, which has no `himi.open` handler, so Rebook silently refreshed on
75
+ // every binary shipped before #3116. `_nav` routes through each host's nav router on all of them.
76
+ try { await assertMemberAccess(member); return navigate(s, { screenId: "himi_service", args: { id: row.serviceId } }); }
74
77
  catch { await svc.refresh(); return undefined; }
75
78
  },
76
79
  // The visible row and swipe/menu review paths prepare the SAME confirmation.