@wix/agent-skills 1.16.3 → 1.18.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 (283) hide show
  1. package/package.json +1 -1
  2. package/skills/wix-app/SKILL.md +115 -12
  3. package/skills/wix-app/references/APP_MARKET_REVIEW.md +1 -1
  4. package/skills/wix-app/references/BACKEND_API.md +18 -0
  5. package/skills/wix-app/references/CUSTOM_ELEMENT_WIDGET.md +6 -0
  6. package/skills/wix-app/references/DASHBOARD_MODAL.md +10 -2
  7. package/skills/wix-app/references/DASHBOARD_PAGE.md +32 -70
  8. package/skills/wix-app/references/EDITOR_REACT_COMPONENT.md +145 -127
  9. package/skills/wix-app/references/SITE_PLUGIN.md +14 -2
  10. package/skills/wix-app/references/WIX_PATTERNS_DOCS.md +74 -68
  11. package/skills/wix-app/references/backend-event/COMMON-EVENTS.md +2 -2
  12. package/skills/wix-app/references/dashboard-page/COLLECTION_TOOLKIT.md +79 -0
  13. package/skills/wix-app/references/dashboard-page/ENTITY_PAGE_TOOLKIT.md +73 -0
  14. package/skills/wix-app/references/dashboard-page/PATTERNS_BUNDLE_READING.md +52 -0
  15. package/skills/wix-app/references/dashboard-page/UX_SUCCESS_MODEL.md +184 -0
  16. package/skills/wix-app/references/editor-react-component/ACCESSIBILITY.md +182 -99
  17. package/skills/wix-app/references/editor-react-component/ANIMATED-COMPONENTS.md +94 -49
  18. package/skills/wix-app/references/editor-react-component/BRANDED-COMPONENTS.md +16 -6
  19. package/skills/wix-app/references/editor-react-component/BROWSER-SUPPORT.md +56 -0
  20. package/skills/wix-app/references/editor-react-component/COMPONENT-CONTRACT.md +275 -0
  21. package/skills/wix-app/references/editor-react-component/COMPONENT-PREVIEW.md +35 -40
  22. package/skills/wix-app/references/editor-react-component/CSS-GUIDELINES.md +167 -445
  23. package/skills/wix-app/references/editor-react-component/DESIGN-STATES.md +56 -29
  24. package/skills/wix-app/references/editor-react-component/DIRECTIONALITY.md +53 -158
  25. package/skills/wix-app/references/editor-react-component/EDITOR-EXTENSION-CONFIGURATION.md +78 -0
  26. package/skills/wix-app/references/editor-react-component/FUNCTION-HANDLERS.md +42 -134
  27. package/skills/wix-app/references/editor-react-component/MANIFEST-ERRORS.md +11 -3
  28. package/skills/wix-app/references/editor-react-component/PARTS.md +46 -24
  29. package/skills/wix-app/references/editor-react-component/PROPS-VS-CSS.md +63 -179
  30. package/skills/wix-app/references/editor-react-component/REACT-GUIDELINES.md +79 -163
  31. package/skills/wix-app/references/editor-react-component/SITE-CONTEXT-HOOKS.md +36 -21
  32. package/skills/wix-app/references/editor-react-component/SSR.md +30 -99
  33. package/skills/wix-base44-connector/SKILL.md +156 -50
  34. package/skills/wix-base44-connector/references/CAPABILITY_MAP.md +78 -0
  35. package/skills/wix-base44-connector/scripts/utils.js +239 -45
  36. package/skills/wix-headless/entry/bootstrap.mjs +9 -2
  37. package/skills/wix-headless/entry/skill.md +1 -1
  38. package/skills/wix-headless/references/CAPABILITIES.md +9 -1
  39. package/skills/wix-headless/references/DESIGN.md +1 -0
  40. package/skills/wix-headless/references/DISCOVERY.md +2 -1
  41. package/skills/wix-headless/references/IMAGE_GENERATION.md +1 -0
  42. package/skills/wix-headless/references/SDK_HANDOFF.md +5 -2
  43. package/skills/wix-headless/references/SEED.md +2 -1
  44. package/skills/wix-headless/references/SETUP.md +1 -0
  45. package/skills/wix-headless/references/inline-recipes/how-to-code-a-blog.md +2 -2
  46. package/skills/wix-headless/references/inline-recipes/how-to-code-a-store.md +68 -31
  47. package/skills/wix-headless/references/inline-recipes/how-to-code-forms.md +26 -10
  48. package/skills/wix-headless/references/inline-recipes/how-to-code-members-astro.md +8 -8
  49. package/skills/wix-headless/references/inline-recipes/how-to-code-members-custom-login.md +1 -1
  50. package/skills/wix-headless/references/inline-recipes/how-to-code-members-non-astro.md +1 -1
  51. package/skills/wix-headless/references/inline-recipes/how-to-code-pricing-plans.md +10 -8
  52. package/skills/wix-headless/references/inline-recipes/how-to-code-rentals.md +254 -0
  53. package/skills/wix-headless/references/inline-recipes/how-to-code-restaurant-orders.md +27 -24
  54. package/skills/wix-headless/references/inline-recipes/setup-online-store.md +13 -0
  55. package/skills/wix-headless/references/inline-recipes/setup-rentals.md +254 -0
  56. package/skills/wix-headless/references/managed/AUTHENTICATION.md +5 -0
  57. package/skills/wix-headless/references/non-astro.md +1 -1
  58. package/skills/wix-headless-fast/SKILL.md +166 -0
  59. package/skills/wix-headless-fast/entry/skill.md +99 -0
  60. package/skills/wix-headless-fast/install/deploy.mjs +433 -0
  61. package/skills/wix-headless-fast/install/fast-path.mjs +141 -0
  62. package/skills/wix-headless-fast/references/blog/INSTRUCTIONS.md +137 -0
  63. package/skills/wix-headless-fast/references/blog/app/components/blog/BlogFeedView.tsx +137 -0
  64. package/skills/wix-headless-fast/references/blog/app/components/blog/PostView.tsx +113 -0
  65. package/skills/wix-headless-fast/references/blog/app/components/blog/RichContent.tsx +42 -0
  66. package/skills/wix-headless-fast/references/blog/app/hooks/blog/useBlogFeed.ts +123 -0
  67. package/skills/wix-headless-fast/references/blog/app/hooks/blog/usePost.ts +70 -0
  68. package/skills/wix-headless-fast/references/blog/app/wix/blog/posts.ts +99 -0
  69. package/skills/wix-headless-fast/references/blog/app/wix/blog/taxonomy.ts +76 -0
  70. package/skills/wix-headless-fast/references/blog/app/wix/blog/types.ts +62 -0
  71. package/skills/wix-headless-fast/references/blog/app-astro/layouts/SiteLayout.astro +40 -0
  72. package/skills/wix-headless-fast/references/blog/app-astro/pages/blog/[...slug].astro +99 -0
  73. package/skills/wix-headless-fast/references/blog/app-astro/pages/blog.astro +24 -0
  74. package/skills/wix-headless-fast/references/blog/lock/astro/package-lock.json +16156 -0
  75. package/skills/wix-headless-fast/references/blog/seed/SEED.md +72 -0
  76. package/skills/wix-headless-fast/references/blog/seed/seed-blog.mjs +287 -0
  77. package/skills/wix-headless-fast/references/bookings/INSTRUCTIONS.md +129 -0
  78. package/skills/wix-headless-fast/references/bookings/app/components/bookings/ServiceBookingView.tsx +143 -0
  79. package/skills/wix-headless-fast/references/bookings/app/components/bookings/ServicesView.tsx +119 -0
  80. package/skills/wix-headless-fast/references/bookings/app/hooks/bookings/useBookingFlow.ts +138 -0
  81. package/skills/wix-headless-fast/references/bookings/app/hooks/bookings/useServices.ts +54 -0
  82. package/skills/wix-headless-fast/references/bookings/app/wix/bookings/booking.ts +206 -0
  83. package/skills/wix-headless-fast/references/bookings/app/wix/bookings/services.ts +96 -0
  84. package/skills/wix-headless-fast/references/bookings/app/wix/bookings/types.ts +70 -0
  85. package/skills/wix-headless-fast/references/bookings/app-astro/layouts/SiteLayout.astro +40 -0
  86. package/skills/wix-headless-fast/references/bookings/app-astro/pages/services/[slug].astro +76 -0
  87. package/skills/wix-headless-fast/references/bookings/app-astro/pages/services.astro +22 -0
  88. package/skills/wix-headless-fast/references/bookings/lock/astro/package-lock.json +11962 -0
  89. package/skills/wix-headless-fast/references/bookings/seed/SEED.md +61 -0
  90. package/skills/wix-headless-fast/references/bookings/seed/seed-bookings.mjs +302 -0
  91. package/skills/wix-headless-fast/references/cms/INSTRUCTIONS.md +179 -0
  92. package/skills/wix-headless-fast/references/cms/app/hooks/cms/useCollection.ts +83 -0
  93. package/skills/wix-headless-fast/references/cms/app/hooks/cms/useItem.ts +57 -0
  94. package/skills/wix-headless-fast/references/cms/app/wix/cms/items.ts +151 -0
  95. package/skills/wix-headless-fast/references/cms/app/wix/cms/types.ts +75 -0
  96. package/skills/wix-headless-fast/references/cms/app-astro/layouts/SiteLayout.astro +41 -0
  97. package/skills/wix-headless-fast/references/cms/lock/astro/package-lock.json +11262 -0
  98. package/skills/wix-headless-fast/references/cms/seed/SEED.md +103 -0
  99. package/skills/wix-headless-fast/references/cms/seed/seed-cms.mjs +324 -0
  100. package/skills/wix-headless-fast/references/events/INSTRUCTIONS.md +149 -0
  101. package/skills/wix-headless-fast/references/events/app/components/events/EventConfirmationView.tsx +66 -0
  102. package/skills/wix-headless-fast/references/events/app/components/events/EventRegistrationView.tsx +176 -0
  103. package/skills/wix-headless-fast/references/events/app/components/events/EventsView.tsx +118 -0
  104. package/skills/wix-headless-fast/references/events/app/hooks/events/useEventRegistration.ts +117 -0
  105. package/skills/wix-headless-fast/references/events/app/hooks/events/useEvents.ts +59 -0
  106. package/skills/wix-headless-fast/references/events/app/wix/events/events.ts +136 -0
  107. package/skills/wix-headless-fast/references/events/app/wix/events/registration.ts +128 -0
  108. package/skills/wix-headless-fast/references/events/app/wix/events/types.ts +61 -0
  109. package/skills/wix-headless-fast/references/events/app-astro/layouts/SiteLayout.astro +40 -0
  110. package/skills/wix-headless-fast/references/events/app-astro/pages/event-confirmation.astro +12 -0
  111. package/skills/wix-headless-fast/references/events/app-astro/pages/events/[slug].astro +80 -0
  112. package/skills/wix-headless-fast/references/events/app-astro/pages/events.astro +21 -0
  113. package/skills/wix-headless-fast/references/events/lock/astro/package-lock.json +11884 -0
  114. package/skills/wix-headless-fast/references/events/seed/SEED.md +86 -0
  115. package/skills/wix-headless-fast/references/events/seed/seed-events.mjs +276 -0
  116. package/skills/wix-headless-fast/references/forms/INSTRUCTIONS.md +150 -0
  117. package/skills/wix-headless-fast/references/forms/app/hooks/forms/useWixForm.ts +317 -0
  118. package/skills/wix-headless-fast/references/forms/app/wix/forms/forms.ts +269 -0
  119. package/skills/wix-headless-fast/references/forms/app/wix/forms/submissions.ts +231 -0
  120. package/skills/wix-headless-fast/references/forms/app/wix/forms/types.ts +135 -0
  121. package/skills/wix-headless-fast/references/forms/lock/astro/package-lock.json +10593 -0
  122. package/skills/wix-headless-fast/references/forms/seed/SEED.md +108 -0
  123. package/skills/wix-headless-fast/references/forms/seed/seed-forms.mjs +320 -0
  124. package/skills/wix-headless-fast/references/members/INSTRUCTIONS.md +63 -0
  125. package/skills/wix-headless-fast/references/members/app/components/members/AccountView.tsx +60 -0
  126. package/skills/wix-headless-fast/references/members/app/components/members/LoginForm.tsx +155 -0
  127. package/skills/wix-headless-fast/references/members/app/components/members/MemberMenu.tsx +78 -0
  128. package/skills/wix-headless-fast/references/members/app/components/members/RequireAuth.tsx +47 -0
  129. package/skills/wix-headless-fast/references/members/app/hooks/members/useMember.ts +66 -0
  130. package/skills/wix-headless-fast/references/members/app/wix/members/auth.ts +88 -0
  131. package/skills/wix-headless-fast/references/members/app/wix/members/client.ts +53 -0
  132. package/skills/wix-headless-fast/references/members/app/wix/members/member-store.ts +122 -0
  133. package/skills/wix-headless-fast/references/members/app/wix/members/members.ts +50 -0
  134. package/skills/wix-headless-fast/references/members/app/wix/members/types.ts +21 -0
  135. package/skills/wix-headless-fast/references/members/app-astro/layouts/SiteLayout.astro +42 -0
  136. package/skills/wix-headless-fast/references/members/app-astro/pages/account.astro +10 -0
  137. package/skills/wix-headless-fast/references/members/app-astro/pages/login.astro +11 -0
  138. package/skills/wix-headless-fast/references/members/lock/astro/package-lock.json +10329 -0
  139. package/skills/wix-headless-fast/references/members/seed/SEED.md +39 -0
  140. package/skills/wix-headless-fast/references/members/seed/seed-members.mjs +94 -0
  141. package/skills/wix-headless-fast/references/portfolio/INSTRUCTIONS.md +134 -0
  142. package/skills/wix-headless-fast/references/portfolio/app/components/portfolio/CollectionProjectsView.tsx +110 -0
  143. package/skills/wix-headless-fast/references/portfolio/app/components/portfolio/CollectionsView.tsx +90 -0
  144. package/skills/wix-headless-fast/references/portfolio/app/components/portfolio/ProjectDetailView.tsx +115 -0
  145. package/skills/wix-headless-fast/references/portfolio/app/hooks/portfolio/useCollectionProjects.ts +59 -0
  146. package/skills/wix-headless-fast/references/portfolio/app/hooks/portfolio/useCollections.ts +39 -0
  147. package/skills/wix-headless-fast/references/portfolio/app/hooks/portfolio/useProjectDetail.ts +58 -0
  148. package/skills/wix-headless-fast/references/portfolio/app/wix/portfolio/portfolio.ts +165 -0
  149. package/skills/wix-headless-fast/references/portfolio/app/wix/portfolio/types.ts +55 -0
  150. package/skills/wix-headless-fast/references/portfolio/app-astro/layouts/SiteLayout.astro +40 -0
  151. package/skills/wix-headless-fast/references/portfolio/app-astro/pages/portfolio/[slug].astro +30 -0
  152. package/skills/wix-headless-fast/references/portfolio/app-astro/pages/portfolio.astro +21 -0
  153. package/skills/wix-headless-fast/references/portfolio/app-astro/pages/projects/[slug].astro +29 -0
  154. package/skills/wix-headless-fast/references/portfolio/lock/astro/package-lock.json +10197 -0
  155. package/skills/wix-headless-fast/references/portfolio/seed/SEED.md +78 -0
  156. package/skills/wix-headless-fast/references/portfolio/seed/seed-portfolio.mjs +258 -0
  157. package/skills/wix-headless-fast/references/pricing-plans/INSTRUCTIONS.md +133 -0
  158. package/skills/wix-headless-fast/references/pricing-plans/app/components/pricing-plans/PlanDetailView.tsx +58 -0
  159. package/skills/wix-headless-fast/references/pricing-plans/app/components/pricing-plans/PlansView.tsx +126 -0
  160. package/skills/wix-headless-fast/references/pricing-plans/app/hooks/pricing-plans/usePlanPurchase.ts +37 -0
  161. package/skills/wix-headless-fast/references/pricing-plans/app/hooks/pricing-plans/usePlans.ts +39 -0
  162. package/skills/wix-headless-fast/references/pricing-plans/app/wix/pricing-plans/plans.ts +75 -0
  163. package/skills/wix-headless-fast/references/pricing-plans/app/wix/pricing-plans/purchase.ts +45 -0
  164. package/skills/wix-headless-fast/references/pricing-plans/app/wix/pricing-plans/types.ts +30 -0
  165. package/skills/wix-headless-fast/references/pricing-plans/app-astro/layouts/SiteLayout.astro +41 -0
  166. package/skills/wix-headless-fast/references/pricing-plans/app-astro/pages/plans/[slug].astro +40 -0
  167. package/skills/wix-headless-fast/references/pricing-plans/app-astro/pages/plans.astro +21 -0
  168. package/skills/wix-headless-fast/references/pricing-plans/lock/astro/package-lock.json +11226 -0
  169. package/skills/wix-headless-fast/references/pricing-plans/seed/SEED.md +71 -0
  170. package/skills/wix-headless-fast/references/pricing-plans/seed/seed-pricing-plans.mjs +279 -0
  171. package/skills/wix-headless-fast/references/restaurants/INSTRUCTIONS.md +165 -0
  172. package/skills/wix-headless-fast/references/restaurants/app/components/restaurants/MenuView.tsx +142 -0
  173. package/skills/wix-headless-fast/references/restaurants/app/components/restaurants/OrderCartButton.tsx +26 -0
  174. package/skills/wix-headless-fast/references/restaurants/app/components/restaurants/OrderCartDrawer.tsx +121 -0
  175. package/skills/wix-headless-fast/references/restaurants/app/components/restaurants/ReservationView.tsx +155 -0
  176. package/skills/wix-headless-fast/references/restaurants/app/hooks/restaurants/useMenus.ts +55 -0
  177. package/skills/wix-headless-fast/references/restaurants/app/hooks/restaurants/useOrderCart.ts +43 -0
  178. package/skills/wix-headless-fast/references/restaurants/app/hooks/restaurants/useReservation.ts +177 -0
  179. package/skills/wix-headless-fast/references/restaurants/app/wix/restaurants/menu.ts +165 -0
  180. package/skills/wix-headless-fast/references/restaurants/app/wix/restaurants/order-store.ts +103 -0
  181. package/skills/wix-headless-fast/references/restaurants/app/wix/restaurants/ordering.ts +254 -0
  182. package/skills/wix-headless-fast/references/restaurants/app/wix/restaurants/reservations.ts +146 -0
  183. package/skills/wix-headless-fast/references/restaurants/app/wix/restaurants/types.ts +168 -0
  184. package/skills/wix-headless-fast/references/restaurants/app-astro/layouts/SiteLayout.astro +47 -0
  185. package/skills/wix-headless-fast/references/restaurants/app-astro/pages/menu.astro +22 -0
  186. package/skills/wix-headless-fast/references/restaurants/app-astro/pages/reservations.astro +12 -0
  187. package/skills/wix-headless-fast/references/restaurants/lock/astro/package-lock.json +12560 -0
  188. package/skills/wix-headless-fast/references/restaurants/seed/SEED.md +81 -0
  189. package/skills/wix-headless-fast/references/restaurants/seed/seed-restaurants.mjs +479 -0
  190. package/skills/wix-headless-fast/references/shared/CONTENT.md +22 -0
  191. package/skills/wix-headless-fast/references/shared/CUSTOM_OPERATIONS.md +73 -0
  192. package/skills/wix-headless-fast/references/shared/DESIGN.md +26 -0
  193. package/skills/wix-headless-fast/references/shared/app/styles/global.css +52 -0
  194. package/skills/wix-headless-fast/references/shared/app/wix/config.ts +15 -0
  195. package/skills/wix-headless-fast/references/shared/app/wix/media.ts +27 -0
  196. package/skills/wix-headless-fast/references/shared/app/wix/money.ts +24 -0
  197. package/skills/wix-headless-fast/references/shared/app/wix/sdk.ts +76 -0
  198. package/skills/wix-headless-fast/references/shared/capabilities/media-upload/app/wix/media-upload/client.ts +46 -0
  199. package/skills/wix-headless-fast/references/shared/capabilities/media-upload/app-astro/pages/api/wix/media-upload.ts +46 -0
  200. package/skills/wix-headless-fast/references/shared/seed/images.mjs +145 -0
  201. package/skills/wix-headless-fast/references/storefront/INSTRUCTIONS.md +149 -0
  202. package/skills/wix-headless-fast/references/storefront/app/components/storefront/CartButton.tsx +26 -0
  203. package/skills/wix-headless-fast/references/storefront/app/components/storefront/CartDrawer.tsx +121 -0
  204. package/skills/wix-headless-fast/references/storefront/app/components/storefront/ProductCard.tsx +100 -0
  205. package/skills/wix-headless-fast/references/storefront/app/components/storefront/ProductDetailView.tsx +130 -0
  206. package/skills/wix-headless-fast/references/storefront/app/components/storefront/ProductGrid.tsx +48 -0
  207. package/skills/wix-headless-fast/references/storefront/app/components/storefront/ShopView.tsx +66 -0
  208. package/skills/wix-headless-fast/references/storefront/app/components/storefront/VariantPicker.tsx +103 -0
  209. package/skills/wix-headless-fast/references/storefront/app/hooks/storefront/useCart.ts +48 -0
  210. package/skills/wix-headless-fast/references/storefront/app/hooks/storefront/useProductDetail.ts +140 -0
  211. package/skills/wix-headless-fast/references/storefront/app/hooks/storefront/useShop.ts +80 -0
  212. package/skills/wix-headless-fast/references/storefront/app/wix/storefront/cart-store.ts +101 -0
  213. package/skills/wix-headless-fast/references/storefront/app/wix/storefront/cart.ts +221 -0
  214. package/skills/wix-headless-fast/references/storefront/app/wix/storefront/catalog.ts +215 -0
  215. package/skills/wix-headless-fast/references/storefront/app/wix/storefront/types.ts +109 -0
  216. package/skills/wix-headless-fast/references/storefront/app-astro/layouts/SiteLayout.astro +46 -0
  217. package/skills/wix-headless-fast/references/storefront/app-astro/pages/products/[slug].astro +56 -0
  218. package/skills/wix-headless-fast/references/storefront/app-astro/pages/shop.astro +23 -0
  219. package/skills/wix-headless-fast/references/storefront/lock/astro/package-lock.json +12247 -0
  220. package/skills/wix-headless-fast/references/storefront/seed/SEED.md +85 -0
  221. package/skills/wix-headless-fast/references/storefront/seed/seed-store.mjs +415 -0
  222. package/skills/wix-manage/SKILL.md +28 -2
  223. package/skills/wix-manage/references/bookings/booking-system-integration-gaps.md +20 -13
  224. package/skills/wix-manage/references/bookings/end-to-end-booking-flow.md +24 -11
  225. package/skills/wix-manage/references/cms/cms-ecommerce-catalog-integration.md +5 -5
  226. package/skills/wix-manage/references/google-ads/manage-campaign-success-guide.md +141 -0
  227. package/skills/wix-manage/references/google-business-profile/connect-google-business-profile.md +134 -0
  228. package/skills/wix-manage/references/google-business-profile/manage-google-business-profile-locations.md +182 -0
  229. package/skills/wix-manage/references/marketing/create-and-publish-social-post.md +3 -0
  230. package/skills/wix-manage/references/seo/manage-seo-tags.md +315 -0
  231. package/skills/wix-manage/references/seo/manage-url-redirects.md +250 -0
  232. package/skills/wix-manage/references/sites/query-sites.md +72 -161
  233. package/skills/wix-manage/references/stores/create-product-catalog-v3.md +21 -6
  234. package/skills/wix-manage/references/stores/update-product-with-options.md +83 -0
  235. package/skills/wix-replatform/resources/rp-mapper/wix-business-solutions-taxonomy.md +5 -6
  236. package/skills/wix-vibe-headless/SKILL.md +18 -4
  237. package/skills/wix-vibe-headless/install/deploy.cjs +12 -4
  238. package/skills/wix-vibe-headless/install/pin-agents-md.cjs +2 -1
  239. package/skills/wix-vibe-headless/platforms/base44-ecom-light-seed.md +16 -10
  240. package/skills/wix-vibe-headless/platforms/base44-ecom-light.md +13 -8
  241. package/skills/wix-vibe-headless/platforms/base44.md +27 -62
  242. package/skills/wix-vibe-headless/platforms/generic.md +6 -3
  243. package/skills/wix-vibe-headless/references/bookings/INSTRUCTIONS.md +45 -0
  244. package/skills/wix-vibe-headless/references/bookings/app/components/RentalDurationPicker.jsx +67 -0
  245. package/skills/wix-vibe-headless/references/bookings/app/hooks/useRentalDuration.js +128 -0
  246. package/skills/wix-vibe-headless/references/bookings/app/hooks/useServiceDetail.js +5 -3
  247. package/skills/wix-vibe-headless/references/bookings/app/rest/wix-bookings-checkout.js +9 -8
  248. package/skills/wix-vibe-headless/references/bookings/app/rest/wix-bookings-rentals.js +250 -0
  249. package/skills/wix-vibe-headless/references/bookings/app/rest/wix-bookings-services.js +12 -5
  250. package/skills/wix-vibe-headless/references/bookings/seed/SEED.md +41 -0
  251. package/skills/wix-vibe-headless/references/bookings/seed/seed-rentals.js +267 -0
  252. package/skills/wix-vibe-headless/references/cms/INSTRUCTIONS.md +6 -3
  253. package/skills/wix-vibe-headless/references/forms/INSTRUCTIONS.md +470 -0
  254. package/skills/wix-vibe-headless/references/forms/app/hooks/useWixForm.js +425 -0
  255. package/skills/wix-vibe-headless/references/forms/app/lib/wix-form-schema-utils.js +187 -0
  256. package/skills/wix-vibe-headless/references/forms/app/rest/wix-forms-submissions.js +238 -0
  257. package/skills/wix-vibe-headless/references/forms/app/rest/wix-forms.js +108 -0
  258. package/skills/wix-vibe-headless/references/forms/seed/SEED.md +1762 -0
  259. package/skills/wix-vibe-headless/references/rentals/INSTRUCTIONS.md +13 -0
  260. package/skills/wix-vibe-headless/references/restaurants/INSTRUCTIONS.md +4 -1
  261. package/skills/wix-vibe-headless/references/restaurants/app/components/OrderCartDrawer.jsx +23 -11
  262. package/skills/wix-vibe-headless/references/restaurants/app/context/OrderCartContext.jsx +1 -1
  263. package/skills/wix-vibe-headless/references/restaurants/app/rest/wix-restaurants-ordering.js +29 -31
  264. package/skills/wix-vibe-headless/references/storefront/INSTRUCTIONS.md +152 -92
  265. package/skills/wix-vibe-headless/references/storefront/app/components/CartDrawer.jsx +37 -38
  266. package/skills/wix-vibe-headless/references/storefront/app/context/CartContext.jsx +2 -2
  267. package/skills/wix-vibe-headless/references/storefront/app/hooks/useProductDetail.js +15 -8
  268. package/skills/wix-vibe-headless/references/storefront/app/lib/storeImage.js +37 -0
  269. package/skills/wix-vibe-headless/references/storefront/app/rest/wix-store-cart.js +35 -35
  270. package/skills/wix-vibe-headless/references/storefront/app/rest/wix-store-catalog.js +18 -6
  271. package/skills/wix-vibe-headless/references/storefront/seed/SEED.md +30 -7
  272. package/skills/wix-vibe-headless/references/storefront/seed/seed-store.js +46 -10
  273. package/skills/wix-app/references/editor-react-component/A11Y-REVIEW-REFERENCE.md +0 -172
  274. package/skills/wix-app/references/editor-react-component/A11Y-REVIEW.md +0 -143
  275. package/skills/wix-app/references/editor-react-component/COMPONENT-API.md +0 -516
  276. package/skills/wix-app/references/editor-react-component/COMPONENT-CONFIGURATION.md +0 -225
  277. package/skills/wix-app/references/editor-react-component/EDIT-FLOW.md +0 -6
  278. package/skills/wix-app/references/editor-react-component/REACT-PATTERNS.md +0 -95
  279. package/skills/wix-vibe-headless/references/storefront/app/components/ProductCard.jsx +0 -110
  280. package/skills/wix-vibe-headless/references/storefront/app/components/ProductGallery.jsx +0 -51
  281. package/skills/wix-vibe-headless/references/storefront/app/components/ProductGrid.jsx +0 -49
  282. package/skills/wix-vibe-headless/references/storefront/app/components/VariantPicker.jsx +0 -92
  283. package/skills/wix-vibe-headless/references/storefront/app/pages/ProductDetail.jsx +0 -139
@@ -0,0 +1,128 @@
1
+ // Ticket tiers, the reserve → hosted-checkout redirect, and RSVP. The payload shapes here
2
+ // are exact and easy to get subtly wrong — copy as-is; extend by calling these exports,
3
+ // never by editing them. Failures are loud. Everything runs as the anonymous VISITOR —
4
+ // no server route, no elevation, anywhere.
5
+ // docs: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/ticketing/orders/query-available-tickets.md
6
+ // docs: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/ticketing/ticket-reservations/create-ticket-reservation.md
7
+ // docs: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/rsvp-v2/create-rsvp.md
8
+ // docs: https://dev.wix.com/docs/api-reference/business-management/headless/redirects/create-redirect-session.md
9
+ import { orders, rsvpV2, ticketReservations } from "@wix/events";
10
+ import { redirects as redirectsModule } from "@wix/redirects";
11
+ import { wixModule } from "../sdk";
12
+ import type { EventDetail, RegistrationResult, TicketTier } from "./types";
13
+
14
+ const availableTickets = wixModule(orders);
15
+ const reservations = wixModule(ticketReservations);
16
+ const rsvps = wixModule(rsvpV2);
17
+ const redirects = wixModule(redirectsModule);
18
+
19
+ type Raw = Record<string, any>;
20
+
21
+ function formatTierPrice(price: Raw | undefined): string {
22
+ const value = price?.amount ?? price?.value;
23
+ if (value == null || value === "") return "";
24
+ try {
25
+ return new Intl.NumberFormat(undefined, { style: "currency", currency: price?.currency || "USD" }).format(Number(value));
26
+ } catch {
27
+ return `${value} ${price?.currency ?? ""}`.trim();
28
+ }
29
+ }
30
+
31
+ function toTier(raw: Raw): TicketTier {
32
+ const free = raw.free === true || Number(raw.price?.amount ?? raw.price?.value ?? 0) === 0;
33
+ return {
34
+ id: raw._id ?? "", // _id, never .id
35
+ name: raw.name ?? "",
36
+ description: raw.description ?? "",
37
+ price: free ? "Free" : formatTierPrice(raw.price),
38
+ free,
39
+ limitPerCheckout: raw.limitPerCheckout ?? 20,
40
+ saleStatus: (raw.saleStatus ?? "SALE_STARTED") as TicketTier["saleStatus"],
41
+ };
42
+ }
43
+
44
+ /**
45
+ * Ticket tiers for a TICKETING event, in display order. Reads the VISITOR-public storefront
46
+ * endpoint (orders.queryAvailableTickets) — never ticketDefinitions*.queryTicketDefinitions:
47
+ * those are the management API and 403 the anonymous visitor (auth.elevate() is the wrong
48
+ * fix — wrong axis, SSR-only).
49
+ */
50
+ export async function fetchTicketTiers(eventId: string): Promise<TicketTier[]> {
51
+ // limit is REQUIRED: it defaults to 0, which returns metadata only — zero tiers, no error.
52
+ const res: Raw = await availableTickets.queryAvailableTickets({ filter: { eventId }, limit: 100 });
53
+ return (res.definitions ?? [])
54
+ .slice()
55
+ .sort((a: Raw, b: Raw) => (a.orderIndex ?? 0) - (b.orderIndex ?? 0))
56
+ .map((d: Raw) => toTier(d))
57
+ .filter((t: TicketTier) => t.id);
58
+ }
59
+
60
+ /**
61
+ * RSVP to a free (RSVP-type) event — completes fully client-side: no reservation, no
62
+ * redirect, no payment. The registration form is BUILT-IN: exactly firstName + lastName +
63
+ * email; never fetch a form schema or add fields. Send "NO" only when the event's
64
+ * rsvpResponseType is "YES_AND_NO". Throws on closed registration / duplicate email —
65
+ * surface the message. A full event with a waitlist returns status "WAITLIST" — tell the
66
+ * guest they're waitlisted, not confirmed.
67
+ */
68
+ export async function submitRsvp(
69
+ eventId: string,
70
+ guest: { firstName: string; lastName: string; email: string },
71
+ status: "YES" | "NO" = "YES",
72
+ ): Promise<RegistrationResult> {
73
+ // rsvpV2 takes the rsvp object DIRECTLY as the first arg (never wrapped in { rsvp: … }),
74
+ // and only rsvpV2 works for visitors — the legacy v1 `rsvp` module 400s on these fields.
75
+ const res: Raw = await rsvps.createRsvp({ eventId, ...guest, status } as any);
76
+ return { kind: "rsvpConfirmed", status: (res?.status ?? status) as "YES" | "NO" | "WAITLIST" };
77
+ }
78
+
79
+ /**
80
+ * Ticketed checkout, the exact sequence: reserve the selected tiers (holds them, PENDING,
81
+ * auto-expires), then mint the Wix-hosted checkout redirect and return its URL — the caller
82
+ * navigates to it; Wix collects guest details + payment and emails the tickets. Call from
83
+ * the browser: it needs window.location.origin (the published https host — an http or
84
+ * server-derived origin isn't on the redirect allowlist and 403s the return), and
85
+ * createRedirectSession must run as the visitor (it embeds the headless OAuth client and
86
+ * rejects admin/elevated tokens). Never hand-build the checkout URL — the Wix-site
87
+ * `…/ticket-form?reservationId=` path 404s on a headless site.
88
+ */
89
+ export async function startTicketCheckout(
90
+ event: Pick<EventDetail, "id" | "slug">,
91
+ selections: { tierId: string; quantity: number }[],
92
+ ): Promise<RegistrationResult> {
93
+ const tickets = selections
94
+ .filter((s) => s.quantity > 0)
95
+ .map((s) => ({ ticketDefinitionId: s.tierId, quantity: s.quantity }));
96
+ if (!tickets.length) throw new Error("Pick at least one ticket first.");
97
+
98
+ let reservation: Raw;
99
+ try {
100
+ reservation = await reservations.createTicketReservation({ tickets } as any);
101
+ } catch (e) {
102
+ // The real gate on paid tickets: until the site has a premium plan AND a configured
103
+ // payment method, reserving fails 403 "No payment method configured". Not a permissions
104
+ // bug — don't elevate (that just creates an unpayable order); surface it softly.
105
+ const msg = e instanceof Error ? e.message : String(e);
106
+ if (/payment method|not configured|premium/i.test(msg)) {
107
+ throw new Error(
108
+ "Ticket sales aren't switched on yet — the organizer needs to connect a payment method in the dashboard.",
109
+ );
110
+ }
111
+ throw e;
112
+ }
113
+ const reservationId: string | undefined = reservation?._id; // _id, never .id
114
+ if (!reservationId) throw new Error("Those tickets couldn't be reserved — they may have just sold out.");
115
+
116
+ const origin = typeof window !== "undefined" ? window.location.origin : "";
117
+ const session: Raw = await redirects.createRedirectSession({
118
+ eventsCheckout: { reservationId, eventSlug: event.slug },
119
+ callbacks: {
120
+ // Wix appends ?orderNumber=&eventId= — the shipped /event-confirmation page reads them.
121
+ thankYouPageUrl: origin ? `${origin}/event-confirmation` : undefined,
122
+ postFlowUrl: origin ? `${origin}/events/${event.slug}` : undefined, // back here on abandon
123
+ },
124
+ });
125
+ const url = session?.redirectSession?.fullUrl;
126
+ if (!url) throw new Error("Checkout couldn't start — please try again.");
127
+ return { kind: "redirect", url };
128
+ }
@@ -0,0 +1,61 @@
1
+ // Events DTOs — the serializable shapes every hook, component, and page consumes.
2
+ // Plain JSON: safe as Astro island props or across server/client boundaries. Images are
3
+ // resolved https URLs; every displayable price is a ready formatted string.
4
+
5
+ /** The current registration flavor — every registration surface branches on this. */
6
+ export type RegistrationType = "RSVP" | "TICKETING" | "EXTERNAL" | "NONE";
7
+
8
+ /** An event as a listing/grid tile needs it. */
9
+ export interface EventSummary {
10
+ id: string;
11
+ slug: string;
12
+ title: string;
13
+ /** Plain-text teaser, safe to render directly (the rich description never leaves the data layer). */
14
+ shortDescription: string;
15
+ /** Human-formatted date/time from Wix, e.g. "Sep 26, 2026, 7:00 PM" ("" when the date is TBD). */
16
+ dateLabel: string;
17
+ /** ISO start instant for custom formatting/grouping ("" when the date is TBD). */
18
+ startDateIso: string;
19
+ locationName: string;
20
+ locationType: "VENUE" | "ONLINE" | "TBD";
21
+ /** Resolved https URL ("" when the event has no image). */
22
+ imageUrl: string;
23
+ registrationType: RegistrationType;
24
+ /** "From €25.00" (ticketed), "Free" (RSVP / free tickets), "" when nothing applies. */
25
+ priceLabel: string;
26
+ soldOut: boolean;
27
+ /** Assigned category names (the seeded format/track grouping) — filter client-side. */
28
+ categories: { id: string; name: string }[];
29
+ }
30
+
31
+ /** An event as the detail/registration page needs it. */
32
+ export interface EventDetail extends EventSummary {
33
+ /** Long description as plain paragraphs (extracted from the rich content; may be empty). */
34
+ aboutParagraphs: string[];
35
+ /** False → registration is closed (sold out / closed / ended) — show a closed state, no form. */
36
+ registrationOpen: boolean;
37
+ /** RSVP events: "YES_AND_NO" also allows a "can't make it" reply. */
38
+ rsvpResponseType: "YES_ONLY" | "YES_AND_NO";
39
+ /** EXTERNAL events: the outbound registration URL ("" otherwise). */
40
+ externalUrl: string;
41
+ addToCalendar: { google: string; ics: string };
42
+ }
43
+
44
+ /** A purchasable ticket tier (TICKETING events). */
45
+ export interface TicketTier {
46
+ id: string;
47
+ name: string;
48
+ description: string;
49
+ /** Formatted price (e.g. "€45.00"); "Free" for free tiers. */
50
+ price: string;
51
+ free: boolean;
52
+ /** Max quantity per order for this tier. */
53
+ limitPerCheckout: number;
54
+ /** Only "SALE_STARTED" is buyable — gate the picker on this. */
55
+ saleStatus: "SALE_SCHEDULED" | "SALE_STARTED" | "SALE_ENDED";
56
+ }
57
+
58
+ /** The outcome of a registration: the browser is redirecting to Wix checkout, or the RSVP is in. */
59
+ export type RegistrationResult =
60
+ | { kind: "redirect"; url: string }
61
+ | { kind: "rsvpConfirmed"; status: "YES" | "NO" | "WAITLIST" };
@@ -0,0 +1,40 @@
1
+ ---
2
+ // The site chrome for every events page — THIS file (header/footer/nav) plus the @theme
3
+ // token block in src/styles/global.css are what you brand. Keep the <slot name="seo-tags" />
4
+ // in <head> and the global.css import. (Deploy is fill-only: if another vertical is already
5
+ // deployed, its SiteLayout won — merge an Events nav link there instead.)
6
+ import "../styles/global.css";
7
+
8
+ interface Props {
9
+ title: string;
10
+ description?: string;
11
+ }
12
+ const { title, description } = Astro.props;
13
+ ---
14
+
15
+ <!doctype html>
16
+ <html lang="en">
17
+ <head>
18
+ <meta charset="UTF-8" />
19
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
20
+ <title>{title}</title>
21
+ {description && <meta name="description" content={description} />}
22
+ <slot name="seo-tags" />
23
+ </head>
24
+ <body>
25
+ <header class="sticky top-0 z-40 border-b border-border bg-background/80 backdrop-blur">
26
+ <div class="mx-auto flex h-16 max-w-6xl items-center justify-between px-6">
27
+ <a href="/" class="text-base font-bold tracking-tight text-foreground no-underline">Brand Name</a>
28
+ <nav class="flex items-center gap-6 text-sm">
29
+ <a href="/events" class="text-foreground no-underline transition-colors hover:text-muted-foreground">Events</a>
30
+ </nav>
31
+ </div>
32
+ </header>
33
+ <main class="mx-auto max-w-6xl px-6 pb-24 pt-10">
34
+ <slot />
35
+ </main>
36
+ <footer class="border-t border-border px-6 py-10 text-center text-sm text-muted-foreground">
37
+ © Brand Name
38
+ </footer>
39
+ </body>
40
+ </html>
@@ -0,0 +1,12 @@
1
+ ---
2
+ // Post-checkout thank-you page — the Wix-hosted checkout redirects here with
3
+ // ?orderNumber=&eventId=. KEEP THIS ROUTE: the data layer's checkout callbacks point at
4
+ // /event-confirmation. The island is client:only (it reads the browser URL); swap its
5
+ // import to YOUR confirmation component if you design one.
6
+ import SiteLayout from "../layouts/SiteLayout.astro";
7
+ import EventConfirmationView from "../components/events/EventConfirmationView";
8
+ ---
9
+
10
+ <SiteLayout title="Order confirmed">
11
+ <EventConfirmationView client:only="react" />
12
+ </SiteLayout>
@@ -0,0 +1,80 @@
1
+ ---
2
+ // Event detail + registration page.
3
+ //
4
+ // This is a Wix ITEM PAGE: the wixMetadata export + <SEO.Tags> below let the site owner edit
5
+ // this page's title/description/OG in the dashboard and register the route in the sitemap.
6
+ // Keep all three SEO pieces and this frontmatter; swap the island import to YOUR registration
7
+ // component. The registration island is client:only — it runs visitor-session calls and
8
+ // redirects.
9
+ import SiteLayout from "../../layouts/SiteLayout.astro";
10
+ import EventRegistrationView from "../../components/events/EventRegistrationView";
11
+ import { fetchEventBySlug } from "../../wix/events/events";
12
+ import { WIX_APPS } from "@wix/essentials";
13
+ import { SEO } from "@wix/seo/components";
14
+ import { loadSEOTagsServiceConfig } from "@wix/seo/services";
15
+ import { seoTags } from "@wix/seo";
16
+
17
+ export const wixMetadata = {
18
+ appDefId: WIX_APPS.events.id,
19
+ pageIdentifier: WIX_APPS.events.eventPageMetadata.pageIdentifier,
20
+ identifiers: {
21
+ slug: WIX_APPS.events.eventPageMetadata.identifiers.slug,
22
+ },
23
+ };
24
+
25
+ const slug = Astro.params.slug!;
26
+
27
+ // Behind Wix's proxy the request URL is internal — the real public page URL arrives on
28
+ // x-wix-forwarded-url; the SEO service needs the public one.
29
+ const forwardedUrl = Astro.request.headers.get("x-wix-forwarded-url");
30
+ const pageUrl =
31
+ forwardedUrl && URL.canParse(forwardedUrl) && /^https?:$/.test(new URL(forwardedUrl).protocol)
32
+ ? forwardedUrl
33
+ : Astro.url.href;
34
+
35
+ let event = null;
36
+ let seoTagsServiceConfig = null;
37
+ try {
38
+ [event, seoTagsServiceConfig] = await Promise.all([
39
+ fetchEventBySlug(slug),
40
+ loadSEOTagsServiceConfig({
41
+ pageUrl,
42
+ itemType: seoTags.ItemType.EVENTS_PAGE,
43
+ itemData: { slug },
44
+ }).catch(() => null),
45
+ ]);
46
+ } catch {
47
+ // Guarded: an unhandled SSR throw truncates the response mid-stream.
48
+ }
49
+
50
+ if (!event) {
51
+ return new Response(null, { status: 404 });
52
+ }
53
+ ---
54
+
55
+ <SiteLayout title={event.title}>
56
+ <SEO.Tags seoTagsServiceConfig={seoTagsServiceConfig} slot="seo-tags" />
57
+
58
+ <div class="grid gap-10 md:grid-cols-2">
59
+ <div>
60
+ {event.imageUrl && (
61
+ <div class="aspect-[3/2] overflow-hidden rounded-xl bg-secondary">
62
+ <img src={event.imageUrl} alt={event.title} class="h-full w-full object-cover" />
63
+ </div>
64
+ )}
65
+ {event.dateLabel && <p class="eyebrow mt-5">{event.dateLabel}</p>}
66
+ <h1 class="mt-1 text-2xl font-semibold tracking-tight">{event.title}</h1>
67
+ <p class="mt-1 text-sm text-muted-foreground">
68
+ {event.locationType === "ONLINE" ? "Online event" : event.locationName}
69
+ {event.priceLabel ? ` · ${event.priceLabel}` : ""}
70
+ </p>
71
+ {event.shortDescription && <p class="mt-4 text-sm leading-relaxed text-muted-foreground">{event.shortDescription}</p>}
72
+ {event.aboutParagraphs.map((p) => (
73
+ <p class="mt-3 text-sm leading-relaxed text-muted-foreground">{p}</p>
74
+ ))}
75
+ </div>
76
+ <div>
77
+ <EventRegistrationView client:only="react" event={event} />
78
+ </div>
79
+ </div>
80
+ </SiteLayout>
@@ -0,0 +1,21 @@
1
+ ---
2
+ // Events listing — data fetched SERVER-SIDE (SEO) and handed to the island as DTO props.
3
+ // Keep this frontmatter; swap the island import to YOUR listing component.
4
+ import SiteLayout from "../layouts/SiteLayout.astro";
5
+ import EventsView from "../components/events/EventsView";
6
+ import { fetchEvents } from "../wix/events/events";
7
+ import type { EventSummary } from "../wix/events/types";
8
+
9
+ let events: EventSummary[] = [];
10
+ try {
11
+ events = await fetchEvents();
12
+ } catch {
13
+ // An unguarded SSR throw truncates the response mid-stream; the island renders the
14
+ // empty state instead.
15
+ }
16
+ ---
17
+
18
+ <SiteLayout title="Events">
19
+ <h1 class="mb-8 text-2xl font-semibold tracking-tight">Events</h1>
20
+ <EventsView client:load initialEvents={events} />
21
+ </SiteLayout>