@wix/himalaya-cli 0.1747.0 → 0.1749.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 (381) hide show
  1. package/bin/himi +16 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +9 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +34 -8
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +45 -18
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/l10n.mjs +1 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +36 -14
  8. package/dist/browser-plane/assets.json +7 -7
  9. package/dist/browser-plane/preview-deferred/{63821bbb8f637899037252154a5587f0596e4b537173c7f50551f9e44f7c22c0.bin → b40ea5d0d6251898ff5617139fde8be008dd11e99a70b14c1052093685401700.bin} +1 -1
  10. package/dist/browser-plane/sw.js +6 -6
  11. package/dist/browser-plane/t5-frame.html +1 -1
  12. package/dist/browser-plane/t5-worker-frame.html +1 -1
  13. package/dist/cli.mjs +2616 -1883
  14. package/dist/preview-assets.generated.bin +0 -0
  15. package/guides/component-reference.json +1 -1
  16. package/guides/component-reference.md +9 -0
  17. package/guides/one-app-to-himi-app.md +11 -6
  18. package/guides/wix-business-context.md +25 -1
  19. package/guides/wix-site-to-himi-app.md +2 -1
  20. package/package.json +2 -2
  21. package/template-icons/medical-services.png +0 -0
  22. package/templates/beauty-salon/dev/index.ts +1 -0
  23. package/templates/beauty-salon/l10n/en.json +6 -0
  24. package/templates/beauty-salon/l10n/fr.json +36 -5
  25. package/templates/beauty-salon/l10n/he.json +29 -4
  26. package/templates/beauty-salon/recipes/blog-hero.json +95 -0
  27. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +177 -147
  28. package/templates/beauty-salon/recipes/blog-list.json +172 -142
  29. package/templates/beauty-salon/recipes/events-inline-list.json +30 -5
  30. package/templates/beauty-salon/recipes/events-inline.json +30 -5
  31. package/templates/beauty-salon/recipes/faq-list.json +503 -0
  32. package/templates/beauty-salon/recipes/groups-list.json +196 -0
  33. package/templates/beauty-salon/recipes/products-carousel.json +141 -0
  34. package/templates/beauty-salon/recipes/products-grid.json +143 -0
  35. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +9 -9
  36. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +7 -5
  37. package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +405 -0
  38. package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +110 -0
  39. package/templates/beauty-salon/tier5-src/_shared/member-bookings.ts +17 -4
  40. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +10 -2
  41. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +9 -5
  42. package/templates/beauty-salon/tier5-src/_shared/products-section.ts +76 -0
  43. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +2 -2
  44. package/templates/beauty-salon/tier5-src/_shared/staff-name.ts +18 -0
  45. package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +6 -2
  46. package/templates/beauty-salon/tier5-src/himi-booking-service/index.ts +7 -2
  47. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +6 -4
  48. package/templates/beauty-salon-owner/dev/index.ts +54 -0
  49. package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +30 -4
  50. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  51. package/templates/branded-lite/dev/index.ts +1 -0
  52. package/templates/branded-lite/l10n/fr.json +15 -5
  53. package/templates/branded-lite/l10n/he.json +12 -4
  54. package/templates/branded-lite/recipes/blog-hero.json +95 -0
  55. package/templates/branded-lite/recipes/blog-list-thumb-start.json +177 -147
  56. package/templates/branded-lite/recipes/blog-list.json +172 -142
  57. package/templates/branded-lite/recipes/events-inline-list.json +30 -5
  58. package/templates/branded-lite/recipes/events-inline.json +30 -5
  59. package/templates/branded-lite/recipes/faq-list.json +503 -0
  60. package/templates/branded-lite/recipes/groups-list.json +196 -0
  61. package/templates/branded-lite/recipes/products-carousel.json +141 -0
  62. package/templates/branded-lite/recipes/products-grid.json +143 -0
  63. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +9 -9
  64. package/templates/branded-lite/tier5-src/_shared/events-inline.ts +7 -5
  65. package/templates/branded-lite/tier5-src/_shared/faq-list.ts +405 -0
  66. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +110 -0
  67. package/templates/branded-lite/tier5-src/_shared/member-bookings.ts +17 -4
  68. package/templates/branded-lite/tier5-src/_shared/member-row-extras.ts +10 -2
  69. package/templates/branded-lite/tier5-src/_shared/members-directory.ts +9 -5
  70. package/templates/branded-lite/tier5-src/_shared/products-section.ts +76 -0
  71. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -2
  72. package/templates/branded-lite/tier5-src/_shared/staff-name.ts +18 -0
  73. package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +6 -2
  74. package/templates/branded-lite/tier5-src/himi-booking-service/index.ts +7 -2
  75. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +6 -4
  76. package/templates/branded-lite/tier5-src/himi-branded-lite-faq/index.ts +5 -369
  77. package/templates/brandy/README.md +46 -5
  78. package/templates/brandy/config.ts +11 -0
  79. package/templates/brandy/himalaya.template.json +1 -1
  80. package/templates/community-club/dev/index.ts +1 -0
  81. package/templates/community-club/l10n/fr.json +25 -5
  82. package/templates/community-club/l10n/he.json +20 -4
  83. package/templates/community-club/recipes/blog-hero.json +95 -0
  84. package/templates/community-club/recipes/blog-list-thumb-start.json +177 -147
  85. package/templates/community-club/recipes/blog-list.json +172 -142
  86. package/templates/community-club/recipes/events-inline-list.json +30 -5
  87. package/templates/community-club/recipes/events-inline.json +30 -5
  88. package/templates/community-club/recipes/faq-list.json +503 -0
  89. package/templates/community-club/recipes/groups-list.json +196 -0
  90. package/templates/community-club/recipes/products-carousel.json +141 -0
  91. package/templates/community-club/recipes/products-grid.json +143 -0
  92. package/templates/community-club/tier5-src/_shared/blog-list.ts +9 -9
  93. package/templates/community-club/tier5-src/_shared/events-inline.ts +7 -5
  94. package/templates/community-club/tier5-src/_shared/faq-list.ts +405 -0
  95. package/templates/community-club/tier5-src/_shared/groups-section.ts +110 -0
  96. package/templates/community-club/tier5-src/_shared/member-bookings.ts +17 -4
  97. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +10 -2
  98. package/templates/community-club/tier5-src/_shared/members-directory.ts +9 -5
  99. package/templates/community-club/tier5-src/_shared/products-section.ts +76 -0
  100. package/templates/community-club/tier5-src/_shared/programs-section.ts +2 -2
  101. package/templates/community-club-owner/dev/index.ts +54 -0
  102. package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +30 -4
  103. package/templates/community-club-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  104. package/templates/conference/dev/index.ts +1 -0
  105. package/templates/events-meetups/dev/index.ts +1 -0
  106. package/templates/events-meetups/l10n/fr.json +25 -5
  107. package/templates/events-meetups/l10n/he.json +20 -4
  108. package/templates/events-meetups/recipes/blog-hero.json +95 -0
  109. package/templates/events-meetups/recipes/blog-list-thumb-start.json +177 -147
  110. package/templates/events-meetups/recipes/blog-list.json +172 -142
  111. package/templates/events-meetups/recipes/events-inline-list.json +30 -5
  112. package/templates/events-meetups/recipes/events-inline.json +30 -5
  113. package/templates/events-meetups/recipes/faq-list.json +503 -0
  114. package/templates/events-meetups/recipes/groups-list.json +196 -0
  115. package/templates/events-meetups/recipes/products-carousel.json +141 -0
  116. package/templates/events-meetups/recipes/products-grid.json +143 -0
  117. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +9 -9
  118. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +7 -5
  119. package/templates/events-meetups/tier5-src/_shared/faq-list.ts +405 -0
  120. package/templates/events-meetups/tier5-src/_shared/groups-section.ts +110 -0
  121. package/templates/events-meetups/tier5-src/_shared/member-bookings.ts +17 -4
  122. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +10 -2
  123. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +9 -5
  124. package/templates/events-meetups/tier5-src/_shared/products-section.ts +76 -0
  125. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +2 -2
  126. package/templates/events-meetups-owner/dev/index.ts +54 -0
  127. package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +30 -4
  128. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  129. package/templates/gym-fitness/dev/index.ts +1 -0
  130. package/templates/gym-fitness/l10n/en.json +6 -0
  131. package/templates/gym-fitness/l10n/fr.json +36 -5
  132. package/templates/gym-fitness/l10n/he.json +29 -4
  133. package/templates/gym-fitness/recipes/blog-hero.json +95 -0
  134. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +177 -147
  135. package/templates/gym-fitness/recipes/blog-list.json +172 -142
  136. package/templates/gym-fitness/recipes/events-inline-list.json +30 -5
  137. package/templates/gym-fitness/recipes/events-inline.json +30 -5
  138. package/templates/gym-fitness/recipes/faq-list.json +503 -0
  139. package/templates/gym-fitness/recipes/groups-list.json +196 -0
  140. package/templates/gym-fitness/recipes/products-carousel.json +141 -0
  141. package/templates/gym-fitness/recipes/products-grid.json +143 -0
  142. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +9 -9
  143. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +7 -5
  144. package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +405 -0
  145. package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +110 -0
  146. package/templates/gym-fitness/tier5-src/_shared/member-bookings.ts +17 -4
  147. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +10 -2
  148. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +9 -5
  149. package/templates/gym-fitness/tier5-src/_shared/products-section.ts +76 -0
  150. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +2 -2
  151. package/templates/gym-fitness/tier5-src/_shared/staff-name.ts +18 -0
  152. package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +6 -2
  153. package/templates/gym-fitness/tier5-src/himi-booking-service/index.ts +7 -2
  154. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +6 -4
  155. package/templates/gym-fitness-owner/dev/index.ts +54 -0
  156. package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +30 -4
  157. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  158. package/templates/medical-services/README.md +53 -0
  159. package/templates/medical-services/config.ts +320 -0
  160. package/templates/medical-services/dev/index.ts +17783 -0
  161. package/templates/medical-services/himalaya.content.json +46 -0
  162. package/templates/medical-services/himalaya.template.json +14 -0
  163. package/templates/medical-services/icon.png +0 -0
  164. package/templates/medical-services/platforms.json +1 -0
  165. package/templates/medical-services/tier5-src/_shared/app-locale.ts +61 -0
  166. package/templates/medical-services/tier5-src/_shared/booking-location.ts +147 -0
  167. package/templates/medical-services/tier5-src/_shared/booking-session.ts +222 -0
  168. package/templates/medical-services/tier5-src/_shared/branded-lite-hosted.ts +280 -0
  169. package/templates/medical-services/tier5-src/_shared/branded-load-state.ts +109 -0
  170. package/templates/medical-services/tier5-src/_shared/business-chat-copy.ts +40 -0
  171. package/templates/medical-services/tier5-src/_shared/business-chat-history.ts +51 -0
  172. package/templates/medical-services/tier5-src/_shared/business-chat-message-model.ts +177 -0
  173. package/templates/medical-services/tier5-src/_shared/business-chat-model.ts +56 -0
  174. package/templates/medical-services/tier5-src/_shared/business-chat-presenter.ts +576 -0
  175. package/templates/medical-services/tier5-src/_shared/business-chat-transport.ts +148 -0
  176. package/templates/medical-services/tier5-src/_shared/collection-contract.ts +228 -0
  177. package/templates/medical-services/tier5-src/_shared/collection-query.ts +193 -0
  178. package/templates/medical-services/tier5-src/_shared/collection-service.ts +400 -0
  179. package/templates/medical-services/tier5-src/_shared/engine-intl.ts +523 -0
  180. package/templates/medical-services/tier5-src/_shared/faq-list.ts +405 -0
  181. package/templates/medical-services/tier5-src/_shared/himi-account.ts +194 -0
  182. package/templates/medical-services/tier5-src/_shared/himi-booking-saved.ts +88 -0
  183. package/templates/medical-services/tier5-src/_shared/himi-bookings.ts +318 -0
  184. package/templates/medical-services/tier5-src/_shared/himi-copy.ts +116 -0
  185. package/templates/medical-services/tier5-src/_shared/himi-store.ts +7 -0
  186. package/templates/medical-services/tier5-src/_shared/himi-text.ts +24 -0
  187. package/templates/medical-services/tier5-src/_shared/host-events.ts +66 -0
  188. package/templates/medical-services/tier5-src/_shared/hosted-checkout.ts +70 -0
  189. package/templates/medical-services/tier5-src/_shared/iap-attendance-form.ts +106 -0
  190. package/templates/medical-services/tier5-src/_shared/iap-attendance-purchase.ts +216 -0
  191. package/templates/medical-services/tier5-src/_shared/iap-attendance.ts +38 -0
  192. package/templates/medical-services/tier5-src/_shared/iap-worker.ts +127 -0
  193. package/templates/medical-services/tier5-src/_shared/inbox-rooms.ts +68 -0
  194. package/templates/medical-services/tier5-src/_shared/local-preferences.ts +38 -0
  195. package/templates/medical-services/tier5-src/_shared/member-access.ts +52 -0
  196. package/templates/medical-services/tier5-src/_shared/member-account-routes.ts +52 -0
  197. package/templates/medical-services/tier5-src/_shared/member-bookings.ts +107 -0
  198. package/templates/medical-services/tier5-src/_shared/member-screen.ts +99 -0
  199. package/templates/medical-services/tier5-src/_shared/notification-target.ts +141 -0
  200. package/templates/medical-services/tier5-src/_shared/offset-page.ts +10 -0
  201. package/templates/medical-services/tier5-src/_shared/online-actions.ts +76 -0
  202. package/templates/medical-services/tier5-src/_shared/owner-load-error.ts +348 -0
  203. package/templates/medical-services/tier5-src/_shared/payment-setup.ts +6 -0
  204. package/templates/medical-services/tier5-src/_shared/rich-body.ts +78 -0
  205. package/templates/medical-services/tier5-src/_shared/rich-content-link.ts +34 -0
  206. package/templates/medical-services/tier5-src/_shared/sign-in-sheet.ts +18 -0
  207. package/templates/medical-services/tier5-src/_shared/staff-name.ts +18 -0
  208. package/templates/medical-services/tier5-src/_shared/weekly-goal.ts +107 -0
  209. package/templates/medical-services/tier5-src/_shared/wix-bi.ts +85 -0
  210. package/templates/medical-services/tier5-src/_shared/wix-member-links.ts +114 -0
  211. package/templates/medical-services/tier5-src/_shared/wix-service-price.ts +146 -0
  212. package/templates/medical-services/tier5-src/business-chat/index.ts +732 -0
  213. package/templates/medical-services/tier5-src/himi-booking-account/index.ts +252 -0
  214. package/templates/medical-services/tier5-src/himi-booking-bookings/index.ts +468 -0
  215. package/templates/medical-services/tier5-src/himi-booking-service/index.ts +1190 -0
  216. package/templates/medical-services/tier5-src/himi-booking-services/index.ts +791 -0
  217. package/templates/medical-services/tier5-src/himi-booking-time/index.ts +1729 -0
  218. package/templates/medical-services/tier5-src/himi-branded-lite-faq/index.ts +6 -0
  219. package/templates/medical-services/tier5-src/himi-branded-lite-notifications/index.ts +256 -0
  220. package/templates/medical-services/tier5-src/himi-clinic-home/index.ts +389 -0
  221. package/templates/medical-services/tier5-src/himi-store-account/index.ts +998 -0
  222. package/templates/medical-services/tokens.json +418 -0
  223. package/templates/nonprofit-cause/dev/index.ts +1 -0
  224. package/templates/nonprofit-cause/l10n/fr.json +25 -5
  225. package/templates/nonprofit-cause/l10n/he.json +20 -4
  226. package/templates/nonprofit-cause/recipes/blog-hero.json +95 -0
  227. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +177 -147
  228. package/templates/nonprofit-cause/recipes/blog-list.json +172 -142
  229. package/templates/nonprofit-cause/recipes/events-inline-list.json +30 -5
  230. package/templates/nonprofit-cause/recipes/events-inline.json +30 -5
  231. package/templates/nonprofit-cause/recipes/faq-list.json +503 -0
  232. package/templates/nonprofit-cause/recipes/groups-list.json +196 -0
  233. package/templates/nonprofit-cause/recipes/products-carousel.json +141 -0
  234. package/templates/nonprofit-cause/recipes/products-grid.json +143 -0
  235. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +9 -9
  236. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +7 -5
  237. package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +405 -0
  238. package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +110 -0
  239. package/templates/nonprofit-cause/tier5-src/_shared/member-bookings.ts +17 -4
  240. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +10 -2
  241. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +9 -5
  242. package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +76 -0
  243. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +2 -2
  244. package/templates/nonprofit-cause-owner/dev/index.ts +54 -0
  245. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +30 -4
  246. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  247. package/templates/owner-lite/dev/index.ts +54 -0
  248. package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +30 -4
  249. package/templates/owner-lite/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  250. package/templates/podcast-creator/dev/index.ts +1 -0
  251. package/templates/podcast-creator/l10n/fr.json +35 -5
  252. package/templates/podcast-creator/l10n/he.json +28 -4
  253. package/templates/podcast-creator/recipes/blog-hero.json +95 -0
  254. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +177 -147
  255. package/templates/podcast-creator/recipes/blog-list.json +172 -142
  256. package/templates/podcast-creator/recipes/events-inline-list.json +30 -5
  257. package/templates/podcast-creator/recipes/events-inline.json +30 -5
  258. package/templates/podcast-creator/recipes/faq-list.json +503 -0
  259. package/templates/podcast-creator/recipes/groups-list.json +196 -0
  260. package/templates/podcast-creator/recipes/products-carousel.json +141 -0
  261. package/templates/podcast-creator/recipes/products-grid.json +143 -0
  262. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +9 -9
  263. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +7 -5
  264. package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +405 -0
  265. package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +110 -0
  266. package/templates/podcast-creator/tier5-src/_shared/member-bookings.ts +17 -4
  267. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +10 -2
  268. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +9 -5
  269. package/templates/podcast-creator/tier5-src/_shared/products-section.ts +76 -0
  270. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +2 -2
  271. package/templates/podcast-creator-owner/dev/index.ts +54 -0
  272. package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +30 -4
  273. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  274. package/templates/portfolio-creative/dev/index.ts +1 -0
  275. package/templates/portfolio-creative/l10n/fr.json +25 -5
  276. package/templates/portfolio-creative/l10n/he.json +20 -4
  277. package/templates/portfolio-creative/recipes/blog-hero.json +95 -0
  278. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +177 -147
  279. package/templates/portfolio-creative/recipes/blog-list.json +172 -142
  280. package/templates/portfolio-creative/recipes/events-inline-list.json +30 -5
  281. package/templates/portfolio-creative/recipes/events-inline.json +30 -5
  282. package/templates/portfolio-creative/recipes/faq-list.json +503 -0
  283. package/templates/portfolio-creative/recipes/groups-list.json +196 -0
  284. package/templates/portfolio-creative/recipes/products-carousel.json +141 -0
  285. package/templates/portfolio-creative/recipes/products-grid.json +143 -0
  286. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +9 -9
  287. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +7 -5
  288. package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +405 -0
  289. package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +110 -0
  290. package/templates/portfolio-creative/tier5-src/_shared/member-bookings.ts +17 -4
  291. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +10 -2
  292. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +9 -5
  293. package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +76 -0
  294. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +2 -2
  295. package/templates/portfolio-creative-owner/dev/index.ts +54 -0
  296. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +30 -4
  297. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  298. package/templates/restaurant/dev/index.ts +1 -0
  299. package/templates/restaurant/l10n/fr.json +35 -5
  300. package/templates/restaurant/l10n/he.json +28 -4
  301. package/templates/restaurant/recipes/blog-hero.json +95 -0
  302. package/templates/restaurant/recipes/blog-list-thumb-start.json +177 -147
  303. package/templates/restaurant/recipes/blog-list.json +172 -142
  304. package/templates/restaurant/recipes/events-inline-list.json +30 -5
  305. package/templates/restaurant/recipes/events-inline.json +30 -5
  306. package/templates/restaurant/recipes/faq-list.json +503 -0
  307. package/templates/restaurant/recipes/groups-list.json +196 -0
  308. package/templates/restaurant/recipes/products-carousel.json +141 -0
  309. package/templates/restaurant/recipes/products-grid.json +143 -0
  310. package/templates/restaurant/tier5-src/_shared/blog-list.ts +9 -9
  311. package/templates/restaurant/tier5-src/_shared/events-inline.ts +7 -5
  312. package/templates/restaurant/tier5-src/_shared/faq-list.ts +405 -0
  313. package/templates/restaurant/tier5-src/_shared/groups-section.ts +110 -0
  314. package/templates/restaurant/tier5-src/_shared/member-bookings.ts +17 -4
  315. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +10 -2
  316. package/templates/restaurant/tier5-src/_shared/members-directory.ts +9 -5
  317. package/templates/restaurant/tier5-src/_shared/products-section.ts +76 -0
  318. package/templates/restaurant/tier5-src/_shared/programs-section.ts +2 -2
  319. package/templates/restaurant-owner/dev/index.ts +54 -0
  320. package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +30 -4
  321. package/templates/restaurant-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  322. package/templates/retail-store/dev/index.ts +1 -0
  323. package/templates/retail-store/l10n/fr.json +25 -5
  324. package/templates/retail-store/l10n/he.json +20 -4
  325. package/templates/retail-store/recipes/blog-hero.json +95 -0
  326. package/templates/retail-store/recipes/blog-list-thumb-start.json +177 -147
  327. package/templates/retail-store/recipes/blog-list.json +172 -142
  328. package/templates/retail-store/recipes/events-inline-list.json +30 -5
  329. package/templates/retail-store/recipes/events-inline.json +30 -5
  330. package/templates/retail-store/recipes/faq-list.json +503 -0
  331. package/templates/retail-store/recipes/groups-list.json +196 -0
  332. package/templates/retail-store/recipes/products-carousel.json +141 -0
  333. package/templates/retail-store/recipes/products-grid.json +143 -0
  334. package/templates/retail-store/tier5-src/_shared/blog-list.ts +9 -9
  335. package/templates/retail-store/tier5-src/_shared/events-inline.ts +7 -5
  336. package/templates/retail-store/tier5-src/_shared/faq-list.ts +405 -0
  337. package/templates/retail-store/tier5-src/_shared/groups-section.ts +110 -0
  338. package/templates/retail-store/tier5-src/_shared/member-bookings.ts +17 -4
  339. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +10 -2
  340. package/templates/retail-store/tier5-src/_shared/members-directory.ts +9 -5
  341. package/templates/retail-store/tier5-src/_shared/products-section.ts +76 -0
  342. package/templates/retail-store/tier5-src/_shared/programs-section.ts +2 -2
  343. package/templates/retail-store-owner/dev/index.ts +54 -0
  344. package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +30 -4
  345. package/templates/retail-store-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  346. package/templates/salon-spa/dev/index.ts +1 -0
  347. package/templates/salon-spa/tier5-src/_shared/member-bookings.ts +17 -4
  348. package/templates/salon-spa/tier5-src/_shared/staff-name.ts +18 -0
  349. package/templates/salon-spa/tier5-src/himi-booking-bookings/index.ts +6 -2
  350. package/templates/salon-spa/tier5-src/himi-booking-service/index.ts +7 -2
  351. package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +6 -4
  352. package/templates/wholesale-store/dev/index.ts +1 -0
  353. package/templates/yoga-studio/dev/index.ts +1 -0
  354. package/templates/yoga-studio/l10n/en.json +6 -0
  355. package/templates/yoga-studio/l10n/fr.json +46 -5
  356. package/templates/yoga-studio/l10n/he.json +37 -4
  357. package/templates/yoga-studio/recipes/blog-hero.json +95 -0
  358. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +177 -147
  359. package/templates/yoga-studio/recipes/blog-list.json +172 -142
  360. package/templates/yoga-studio/recipes/events-inline-list.json +30 -5
  361. package/templates/yoga-studio/recipes/events-inline.json +30 -5
  362. package/templates/yoga-studio/recipes/faq-list.json +503 -0
  363. package/templates/yoga-studio/recipes/groups-list.json +196 -0
  364. package/templates/yoga-studio/recipes/products-carousel.json +141 -0
  365. package/templates/yoga-studio/recipes/products-grid.json +143 -0
  366. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +9 -9
  367. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +7 -5
  368. package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +405 -0
  369. package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +110 -0
  370. package/templates/yoga-studio/tier5-src/_shared/member-bookings.ts +17 -4
  371. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +10 -2
  372. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +9 -5
  373. package/templates/yoga-studio/tier5-src/_shared/products-section.ts +76 -0
  374. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +2 -2
  375. package/templates/yoga-studio/tier5-src/_shared/staff-name.ts +18 -0
  376. package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +6 -2
  377. package/templates/yoga-studio/tier5-src/himi-booking-service/index.ts +7 -2
  378. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +6 -4
  379. package/templates/yoga-studio-owner/dev/index.ts +54 -0
  380. package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +30 -4
  381. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
@@ -0,0 +1,76 @@
1
+ // A page's products section as a registrable service: the first products of a source collection, as tiles that open the product.
2
+ // categoryId -> the source section's collection (unset: the whole catalog, the "All Products" collection),
3
+ // limit -> how many tiles (the section is a rail or a short grid, not the shop); `noMore` is false when the collection has more,
4
+ // which is when the section's See All button (to the shop, on this collection) shows.
5
+ // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipes products-carousel / products-grid).
6
+ import { defineService } from "@himalaya/state";
7
+ import { searchStoreProducts, productImage, productPrice, type StoreProduct } from "./himi-store.js";
8
+ import { copyParam, stashCopy } from "./himi-copy.js";
9
+
10
+ export interface ProductsSectionOptions {
11
+ /** The source collection's id; unset reads the whole catalog. */
12
+ categoryId?: string;
13
+ /** How many products to show. */
14
+ limit?: number;
15
+ }
16
+
17
+ export interface ProductRow {
18
+ id: string; name: string; price: string;
19
+ image: string; initial: string; hasImage: boolean; noImage: boolean;
20
+ /** The product screen a tile opens; the tile binds `id` as its nav param. */
21
+ detailScreenId: string;
22
+ }
23
+
24
+ export interface ProductsSectionState {
25
+ status: "loading" | "ready" | "error";
26
+ rows: ProductRow[];
27
+ emptyText: string;
28
+ notLoading: boolean; notErrored: boolean; noRows: boolean; noEmpty: boolean;
29
+ /** false when the collection has more products than the section shows. */
30
+ noMore: boolean;
31
+ }
32
+
33
+ const DEFAULT_LIMIT = 8;
34
+ /** A 156pt tile at 3x: the shared list size (1000px) would ship far more pixels than a rail shows. */
35
+ const TILE_IMAGE = { width: 480, height: 480, quality: 85 };
36
+
37
+ function rowOf(product: StoreProduct): ProductRow {
38
+ const name = (product.name ?? "").trim();
39
+ const image = productImage(product, TILE_IMAGE);
40
+ return {
41
+ id: product.id ?? "", name, price: productPrice(product),
42
+ image, initial: (name[0] ?? "#").toUpperCase(), hasImage: !!image, noImage: !image,
43
+ detailScreenId: "himi_product",
44
+ };
45
+ }
46
+
47
+ export function registerProductsSection(serviceName: string, options: ProductsSectionOptions = {}) {
48
+ const limit = options.limit ?? DEFAULT_LIMIT;
49
+ const view = (status: ProductsSectionState["status"], rows: ProductRow[], more: boolean): ProductsSectionState => ({
50
+ status, rows,
51
+ emptyText: status === "ready" && !rows.length
52
+ ? options.categoryId ? copyParam("shop.emptyCategoryText", "No products in this category yet.") : copyParam("shop.emptyText", "No products are published yet.")
53
+ : "",
54
+ notLoading: status !== "loading", notErrored: status !== "error",
55
+ noRows: !rows.length, noEmpty: !(status === "ready" && !rows.length),
56
+ noMore: !more,
57
+ });
58
+ return defineService<ProductsSectionState, { load: (state: ProductsSectionState, arg?: unknown) => Promise<ProductsSectionState> }>(serviceName, {
59
+ state: view("loading", [], false),
60
+ actions: {
61
+ load: async (_state, arg) => {
62
+ stashCopy(arg);
63
+ try {
64
+ const response = await searchStoreProducts({ limit, ...(options.categoryId ? { categoryId: options.categoryId } : {}) });
65
+ const rows = (response.products ?? []).filter((product) => product.id).slice(0, limit).map(rowOf);
66
+ const total = response.pagingMetadata?.total;
67
+ const more = response.pagingMetadata?.hasNext === true || (typeof total === "number" && total > rows.length);
68
+ return view("ready", rows, more);
69
+ } catch (error) {
70
+ console.warn("products_section: the products could not be read", error);
71
+ return view("error", [], false);
72
+ }
73
+ },
74
+ },
75
+ });
76
+ }
@@ -28,7 +28,7 @@ import { descriptionBody } from "./rich-body.js";
28
28
  import { programDescription } from "./program-description.js";
29
29
  import { isNotFoundError } from "./detail-presence.js";
30
30
  import { copyParam, copyTemplate, stashCopy } from "./himi-copy.js";
31
- import { formatCurrency, formatDateMedium } from "./engine-intl.js";
31
+ import { formatCurrency, formatDateMedium, formatNumber } from "./engine-intl.js";
32
32
  import { iapPriceCopy, resetUnhydratedKeysOnOlderRuntime } from "./iap-worker.js";
33
33
 
34
34
  const PAGE_SIZE = 20;
@@ -256,7 +256,7 @@ function accessLine(p: WixProgram, participants: number | undefined): string {
256
256
  if (participants === undefined) return label;
257
257
  const count = participants === 1
258
258
  ? copyParam("memberPrograms.participantsOne", "1 participant")
259
- : copyTemplate("memberPrograms.participantsMany", "{count} participants", { count: participants });
259
+ : copyTemplate("memberPrograms.participantsMany", "{count} participants", { count: formatNumber(participants) });
260
260
  return `${label} · ${count}`;
261
261
  }
262
262
 
@@ -62656,6 +62656,60 @@ const SCREENS = runtimeSetting({
62656
62656
  "spacing": 0,
62657
62657
  "alignment": "leading",
62658
62658
  "children": [
62659
+ {
62660
+ "id": "himi_owner_lite_aria.quickReplies.bound",
62661
+ "body": {
62662
+ "package": "himalaya",
62663
+ "type": "LazyList",
62664
+ "props": {
62665
+ "itemsPath": "$service:himiOwnerLiteAria.quickReplies",
62666
+ "horizontal": true,
62667
+ "spacing": 8,
62668
+ "items": [
62669
+ {
62670
+ "id": "himi_owner_lite_aria.quickReply_$item.id",
62671
+ "body": {
62672
+ "package": "himalaya",
62673
+ "type": "Text",
62674
+ "props": {
62675
+ "text": "$item.label",
62676
+ "style": "footnote",
62677
+ "maxLines": 1
62678
+ }
62679
+ },
62680
+ "modifiers": {
62681
+ "padding": {
62682
+ "leading": 12,
62683
+ "trailing": 12,
62684
+ "top": 16,
62685
+ "bottom": 16
62686
+ },
62687
+ "background": {
62688
+ "token": "surfaceSecondary"
62689
+ },
62690
+ "cornerRadius": 16,
62691
+ "accessibilityLabel": "$item.reply",
62692
+ "onTap": {
62693
+ "actionId": "tier5.himiOwnerLiteAria.submitQuickReply",
62694
+ "params": {
62695
+ "id": "$item.id"
62696
+ }
62697
+ }
62698
+ }
62699
+ }
62700
+ ]
62701
+ }
62702
+ },
62703
+ "modifiers": {
62704
+ "hiddenPath": "$service:himiOwnerLiteAria.quickRepliesHidden",
62705
+ "padding": {
62706
+ "leading": 0,
62707
+ "trailing": 0,
62708
+ "top": 8,
62709
+ "bottom": 0
62710
+ }
62711
+ }
62712
+ },
62659
62713
  {
62660
62714
  "id": "",
62661
62715
  "body": {
@@ -1491,6 +1491,7 @@ export interface AriaChatCore {
1491
1491
  load(s: AriaChatState): Promise<AriaChatState>;
1492
1492
  submit(s: AriaChatState, arg?: AriaActionArg): Promise<AriaChatState>;
1493
1493
  submitPrompt(s: AriaChatState, arg?: AriaActionArg): Promise<AriaChatState>;
1494
+ submitQuickReply(s: AriaChatState, arg?: AriaActionArg): Promise<AriaChatState>;
1494
1495
  newChat(s: AriaChatState): Promise<AriaChatState>;
1495
1496
  /** Mirror the composer's text into state. Not cosmetic: the renderers only
1496
1497
  * clear a text field when its BOUND value transitions, so a composer whose
@@ -2799,6 +2800,7 @@ export function createAriaChat(o: AriaChatOptions): AriaChatCore {
2799
2800
  /** The quick replies last painted, so an unchanged list keeps its identity and
2800
2801
  * a reducer that changed nothing still returns the SAME state object. */
2801
2802
  let paintedReplies: AriaQuickReply[] = [];
2803
+ let quickReplyOffer = 0;
2802
2804
 
2803
2805
  /** Ask the host to open the stream for a turn that was just sent, and reset
2804
2806
  * the live model to it. `turnId` may be empty (a service that named no id);
@@ -2867,13 +2869,21 @@ export function createAriaChat(o: AriaChatOptions): AriaChatCore {
2867
2869
  return out;
2868
2870
  };
2869
2871
 
2872
+ const quickReplyLabel = (label: string): string => {
2873
+ const characters = Array.from(label);
2874
+ return characters.length > 30 ? characters.slice(0, 29).join("") + "…" : label;
2875
+ };
2876
+
2870
2877
  /** The current turn's quick replies, as rows. */
2871
2878
  const repliesFor = (s: AriaChatState): AriaQuickReply[] => {
2872
2879
  const offered = !!s._turnId && live.turnId === s._turnId && live.conversationId === s._convId
2873
2880
  ? live.quickReplies() : [];
2874
2881
  const same = offered.length === paintedReplies.length
2875
- && offered.every((r, i) => paintedReplies[i].label === r.label && paintedReplies[i].reply === r.reply);
2876
- if (!same) paintedReplies = offered.map((r, i) => ({ id: `qr${i + 1}`, label: r.label, reply: r.reply }));
2882
+ && offered.every((r, i) => paintedReplies[i].label === quickReplyLabel(r.label) && paintedReplies[i].reply === r.reply);
2883
+ if (!same) {
2884
+ quickReplyOffer += 1;
2885
+ paintedReplies = offered.map((r, i) => ({ id: `${s._convId}:${s._turnId}:${quickReplyOffer}:qr${i + 1}`, label: quickReplyLabel(r.label), reply: r.reply }));
2886
+ }
2877
2887
  return paintedReplies;
2878
2888
  };
2879
2889
 
@@ -3361,8 +3371,9 @@ export function createAriaChat(o: AriaChatOptions): AriaChatCore {
3361
3371
  : { ...actioned, attachments: chips, attachmentsHidden };
3362
3372
  if (out.mention !== mentionViewNow) out = { ...out, mention: mentionViewNow };
3363
3373
  const quickReplies = repliesFor(out);
3364
- if (out.quickReplies !== quickReplies || out.quickRepliesHidden !== (quickReplies.length === 0)) {
3365
- out = { ...out, quickReplies, quickRepliesHidden: quickReplies.length === 0 };
3374
+ const quickRepliesHidden = out.status !== "ready" || quickReplies.length === 0;
3375
+ if (out.quickReplies !== quickReplies || out.quickRepliesHidden !== quickRepliesHidden) {
3376
+ out = { ...out, quickReplies, quickRepliesHidden };
3366
3377
  }
3367
3378
  if (out._realtime !== realtime) out = { ...out, _realtime: realtime };
3368
3379
  // Every state the runtime commits passes through here (an `undefined`
@@ -3651,6 +3662,14 @@ export function createAriaChat(o: AriaChatOptions): AriaChatCore {
3651
3662
  return send(s, content, chips);
3652
3663
  },
3653
3664
 
3665
+ submitQuickReply: async (s, arg) => {
3666
+ if (s.status !== "ready" || s._siteId !== siteOf()) return s;
3667
+ const id = typeof arg === "string" ? arg : firstString(arg?.id);
3668
+ const offered = repliesFor(s).find((reply) => reply.id === id);
3669
+ if (!offered) return s;
3670
+ return impl.submitPrompt(s, { text: offered.reply });
3671
+ },
3672
+
3654
3673
  // A suggested-prompt chip submits its own text through the SAME path a typed
3655
3674
  // message takes — never by dispatching `submit` through the service handle,
3656
3675
  // which exposes actions as direct methods and has no `.actions` member on
@@ -4440,6 +4459,7 @@ export function createAriaChat(o: AriaChatOptions): AriaChatCore {
4440
4459
  // turn running, and a tick resolving around it must go on reporting that
4441
4460
  // turn normally.
4442
4461
  turnSeq += 1;
4462
+ live.reset("", "");
4443
4463
  return slow(withDraft(
4444
4464
  { ...s, status: "ready", statusText: stoppedText(), error: "", _pending: "", _abortId: "" }, typedAt));
4445
4465
  },
@@ -4599,6 +4619,12 @@ export function createAriaChat(o: AriaChatOptions): AriaChatCore {
4599
4619
  return gated(revision !== draftSeq && next.input === s.input && committed
4600
4620
  ? { ...next, input: committed.input } : next);
4601
4621
  },
4622
+ submitQuickReply: async (s, arg) => {
4623
+ const revision = draftSeq;
4624
+ const next = await impl.submitQuickReply(s, arg);
4625
+ return gated(revision !== draftSeq && next.input === s.input && committed
4626
+ ? { ...next, input: committed.input } : next);
4627
+ },
4602
4628
  newChat: (s) => impl.newChat(s).then(gated),
4603
4629
  typing: (s, arg) => gated(impl.typing(s, arg)),
4604
4630
  tick: (s) => impl.tick(s).then((r) => (r ? gated(r) : r)),
@@ -55,6 +55,8 @@ import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
55
55
  import { OWNER_MODULES, ownerModuleIds, ownerModuleScreen } from "../_shared/owner-modules.js";
56
56
 
57
57
  const SERVICE = "himiOwnerLiteAria";
58
+ /** The current turn's quick-reply row — this run's state only, never restored. */
59
+ const QUICK_REPLY_KEYS: Array<"quickReplies" | "quickRepliesHidden"> = ["quickReplies", "quickRepliesHidden"];
58
60
 
59
61
  // Cadence for the reply ladder. `fast` while a reply is outstanding; `idle`
60
62
  // afterwards, because a worker cannot CANCEL a poll — PollDirective has no stop
@@ -477,6 +479,7 @@ const svc = defineService<AriaChatState, {
477
479
  load: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
478
480
  submit: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
479
481
  submitPrompt: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
482
+ submitQuickReply: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
480
483
  newChat: (s: AriaChatState) => Promise<AriaChatState>;
481
484
  typing: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
482
485
  // `undefined` is part of the contract, not sloppiness: a tick whose read was
@@ -527,6 +530,10 @@ const svc = defineService<AriaChatState, {
527
530
  suggestionsSettled: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState | undefined;
528
531
  }>(SERVICE, {
529
532
  state: core.initialState,
533
+ // Quick replies belong to the turn that is live in THIS run's realtime model. A
534
+ // persisted row would paint (and announce) last session's offers before `load`,
535
+ // and every tap on them would be refused, because the live model starts empty.
536
+ notHydrated: QUICK_REPLY_KEYS,
530
537
  actions: {
531
538
  // `load` is the onAppear dispatch, so it is where the copy pack arrives.
532
539
  load: (s, arg) => { mentionDraftRevision += 1; mentionTriggerPrefixes = []; pendingMentionTrigger = null; previousMentionRaw = ""; adoptedMentionDraft = null; stashCopy(arg); stashTargets(arg); stashRealtimeUrl(arg); return core.load(s); },
@@ -552,6 +559,18 @@ const svc = defineService<AriaChatState, {
552
559
  }
553
560
  return next;
554
561
  },
562
+ // A server-offered quick reply sends through submitPrompt in the core, so it
563
+ // settles the mention draft exactly as a suggested-prompt tap does.
564
+ submitQuickReply: async (s, arg) => {
565
+ const previousPrefixes = mentionTriggerPrefixes; const previousTrigger = pendingMentionTrigger;
566
+ const revision = mentionDraftRevision;
567
+ const next = await core.submitQuickReply(s, arg);
568
+ if (revision === mentionDraftRevision) {
569
+ if (next.input && next.input === s.input) { mentionTriggerPrefixes = previousPrefixes; pendingMentionTrigger = previousTrigger; }
570
+ else { mentionTriggerPrefixes = []; pendingMentionTrigger = null; previousMentionRaw = ""; adoptedMentionDraft = null; }
571
+ }
572
+ return next;
573
+ },
555
574
  newChat: (s) => { mentionDraftRevision += 1; mentionTriggerPrefixes = []; pendingMentionTrigger = null; previousMentionRaw = ""; adoptedMentionDraft = null; return core.newChat(s); },
556
575
  // The composer's onChange. Mirrors the draft into state so `submit` can
557
576
  // empty it and the field actually clears.
@@ -648,6 +667,16 @@ const svc = defineService<AriaChatState, {
648
667
  },
649
668
  });
650
669
 
670
+ // A binary older than `notHydrated` restores the persisted row anyway; put those keys
671
+ // back to their declared values before any action runs (as iap-worker's
672
+ // resetUnhydratedKeysOnOlderRuntime does), so no host paints a previous run's offers.
673
+ if ((globalThis as { himalaya?: { hydrationOptOut?: unknown } }).himalaya?.hydrationOptOut !== true) {
674
+ const booted = svc.getState() as unknown as Record<string, unknown> | undefined;
675
+ if (booted && typeof booted === "object") {
676
+ for (const key of QUICK_REPLY_KEYS) booted[key] = (core.initialState as unknown as Record<string, unknown>)[key];
677
+ }
678
+ }
679
+
651
680
  // NO module-scope `svc.load()`, deliberately — the descriptor's `onAppear` is the
652
681
  // only entry point, and on Android the self-kick did not merely duplicate it, it
653
682
  // DISABLED the screen.
@@ -7,6 +7,7 @@ import config from "../config.js";
7
7
  const runtimeSetting = (value: unknown): unknown => {
8
8
  if (value === "__HIMI_PODCAST_FEED_URL__") return process.env.PODCAST_FEED_URL?.trim() || "";
9
9
  if (value === "__HIMI_MEMBER_SITE_URL__") return String((config as { auth?: { config?: { siteUrl?: unknown } } }).auth?.config?.siteUrl ?? "").trim();
10
+ if (typeof value === "string" && value.startsWith("__HIMI_MEMBER_SITE_URL__/")) return String((config as { auth?: { config?: { siteUrl?: unknown } } }).auth?.config?.siteUrl ?? "").trim().replace(/\/+$/, "") + value.slice(24);
10
11
  if (Array.isArray(value)) return value.map(runtimeSetting);
11
12
  if (!value || typeof value !== "object") return value;
12
13
  return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, runtimeSetting(child)]));
@@ -8,6 +8,7 @@ const runtimeSetting = (value: unknown): unknown => {
8
8
  if (value === "__HIMI_PODCAST_FEED_URL__") return process.env.PODCAST_FEED_URL?.trim() || "";
9
9
  if (value === "__HIMI_MEMBER_PHOTO_UPLOAD_FUNCTION__") return process.env.HIMI_BRANDED_LITE_MEMBER_PHOTO_UPLOAD_FUNCTION?.trim() || "";
10
10
  if (value === "__HIMI_MEMBER_SITE_URL__") return String((config as { auth?: { config?: { siteUrl?: unknown } } }).auth?.config?.siteUrl ?? "").trim();
11
+ if (typeof value === "string" && value.startsWith("__HIMI_MEMBER_SITE_URL__/")) return String((config as { auth?: { config?: { siteUrl?: unknown } } }).auth?.config?.siteUrl ?? "").trim().replace(/\/+$/, "") + value.slice(24);
11
12
  if (Array.isArray(value)) return value.map(runtimeSetting);
12
13
  if (!value || typeof value !== "object") return value;
13
14
  return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, runtimeSetting(child)]));
@@ -1824,6 +1824,11 @@
1824
1824
  "translation": "Impossible de charger les informations de votre compte. Réessayez.",
1825
1825
  "origin": "machine"
1826
1826
  },
1827
+ "h_6e6a6f2086bb": {
1828
+ "source": "Other",
1829
+ "translation": "Autre",
1830
+ "origin": "one-app:wix-one-app-ecom-platform:merchant.order.markPaidModal.paymentMethod.other"
1831
+ },
1827
1832
  "h_de886b7696df": {
1828
1833
  "source": "This season",
1829
1834
  "translation": "Cette saison",
@@ -2944,6 +2949,16 @@
2944
2949
  "translation": "Traitement de votre achat…",
2945
2950
  "origin": "machine"
2946
2951
  },
2952
+ "h_013147ef56fa": {
2953
+ "source": "No products in this category yet.",
2954
+ "translation": "Aucun produit dans cette catégorie pour le moment.",
2955
+ "origin": "machine"
2956
+ },
2957
+ "h_87659e19efce": {
2958
+ "source": "No products are published yet.",
2959
+ "translation": "Aucun produit n'est encore publié.",
2960
+ "origin": "machine"
2961
+ },
2947
2962
  "h_a7677e84b666": {
2948
2963
  "source": "Ticket",
2949
2964
  "translation": "Billet",
@@ -3229,11 +3244,6 @@
3229
3244
  "translation": "Vous pouvez choisir une date de début ultérieure.",
3230
3245
  "origin": "machine"
3231
3246
  },
3232
- "h_cb7c8c83bd90": {
3233
- "source": "No upcoming events.",
3234
- "translation": "Aucun événement à venir.",
3235
- "origin": "machine"
3236
- },
3237
3247
  "h_e84d8431b504": {
3238
3248
  "source": "{n, plural, one {for # day} other {for # days}}",
3239
3249
  "translation": "{n, plural, one {pendant # jour} other {pendant # jours}}",
@@ -3273,6 +3283,16 @@
3273
3283
  "source": "{n, plural, one {per year} other {every # years}}",
3274
3284
  "translation": "{n, plural, one {par an} other {tous les # ans}}",
3275
3285
  "origin": "machine"
3286
+ },
3287
+ "h_41ea36c1a2ec": {
3288
+ "source": "No Events Yet",
3289
+ "translation": "Aucun événement pour le moment",
3290
+ "origin": "machine"
3291
+ },
3292
+ "h_baa225c8b45b": {
3293
+ "source": "Once we add new events you'll be able to RSVP and buy tickets for them here.",
3294
+ "translation": "Dès que nous ajouterons de nouveaux événements, vous pourrez vous y inscrire et acheter des billets ici.",
3295
+ "origin": "machine"
3276
3296
  }
3277
3297
  }
3278
3298
  }
@@ -1514,6 +1514,10 @@
1514
1514
  "source": "Your account details could not be loaded. Try again.",
1515
1515
  "translation": "לא ניתן לטעון את פרטי החשבון שלך. יש לנסות שוב."
1516
1516
  },
1517
+ "h_6e6a6f2086bb": {
1518
+ "source": "Other",
1519
+ "translation": "אחר"
1520
+ },
1517
1521
  "h_de886b7696df": {
1518
1522
  "source": "This season",
1519
1523
  "translation": "העונה הזו"
@@ -2410,6 +2414,14 @@
2410
2414
  "source": "Processing your purchase…",
2411
2415
  "translation": "מעבד את הרכישה…"
2412
2416
  },
2417
+ "h_013147ef56fa": {
2418
+ "source": "No products in this category yet.",
2419
+ "translation": "אין עדיין מוצרים בקטגוריה הזו."
2420
+ },
2421
+ "h_87659e19efce": {
2422
+ "source": "No products are published yet.",
2423
+ "translation": "אין עדיין מוצרים שפורסמו."
2424
+ },
2413
2425
  "h_a7677e84b666": {
2414
2426
  "source": "Ticket",
2415
2427
  "translation": "כרטיס"
@@ -2638,10 +2650,6 @@
2638
2650
  "source": "You can choose a later start date.",
2639
2651
  "translation": "אפשר לבחור תאריך התחלה מאוחר יותר."
2640
2652
  },
2641
- "h_cb7c8c83bd90": {
2642
- "source": "No upcoming events.",
2643
- "translation": "אין אירועים קרובים."
2644
- },
2645
2653
  "h_e84d8431b504": {
2646
2654
  "source": "{n, plural, one {for # day} other {for # days}}",
2647
2655
  "translation": "{n, plural, one {ליום אחד} other {ל-# ימים}}"
@@ -2673,6 +2681,14 @@
2673
2681
  "h_55db55f1bd29": {
2674
2682
  "source": "{n, plural, one {per year} other {every # years}}",
2675
2683
  "translation": "{n, plural, one {לשנה} other {כל # שנים}}"
2684
+ },
2685
+ "h_41ea36c1a2ec": {
2686
+ "source": "No Events Yet",
2687
+ "translation": "עדיין אין אירועים"
2688
+ },
2689
+ "h_baa225c8b45b": {
2690
+ "source": "Once we add new events you'll be able to RSVP and buy tickets for them here.",
2691
+ "translation": "כשנוסיף אירועים חדשים תוכלו להירשם אליהם ולקנות כרטיסים כאן."
2676
2692
  }
2677
2693
  }
2678
2694
  }
@@ -0,0 +1,95 @@
1
+ {
2
+ "_recipe": "Blog hero: the latest posts as a snapping carousel (one post per page, page dots drawn by the renderer): cover image, then title and time under it. ONE node. Service: registerBlogList(svc, { limit }); the page worker's onAppear (on an always-mounted box around this node) calls tier5.<svc>.load.",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerBlogList",
5
+ "id": "unique node id prefix for this section",
6
+ "detailScreen": "blog post screen id, himi_blog_post"
7
+ },
8
+ "node": {
9
+ "id": "{{id}}.hero",
10
+ "body": {
11
+ "package": "himalaya",
12
+ "type": "Carousel",
13
+ "props": {
14
+ "itemsPath": "$service:{{svc}}.rows",
15
+ "paged": true,
16
+ "items": [
17
+ {
18
+ "id": "{{id}}.card",
19
+ "body": {
20
+ "package": "himalaya",
21
+ "type": "VStack",
22
+ "props": {
23
+ "spacing": 8,
24
+ "alignment": "leading",
25
+ "children": [
26
+ {
27
+ "id": "{{id}}.cover",
28
+ "body": {
29
+ "package": "himalaya",
30
+ "type": "Image",
31
+ "props": {
32
+ "url": "$item.cover",
33
+ "initials": "$item.initial",
34
+ "fillWidth": true,
35
+ "height": 200,
36
+ "contentMode": "fill",
37
+ "contentDescription": "$item.title",
38
+ "shape": "rect"
39
+ }
40
+ },
41
+ "modifiers": {
42
+ "fillMaxWidth": true,
43
+ "hiddenPath": "$item.noCover"
44
+ }
45
+ },
46
+ {
47
+ "id": "{{id}}.title",
48
+ "body": {
49
+ "package": "himalaya",
50
+ "type": "Text",
51
+ "props": {
52
+ "text": "$item.title",
53
+ "style": "bodyEmphasis",
54
+ "maxLines": 2
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "id": "{{id}}.meta",
60
+ "body": {
61
+ "package": "himalaya",
62
+ "type": "Text",
63
+ "props": {
64
+ "text": "$item.meta",
65
+ "style": "caption",
66
+ "maxLines": 1,
67
+ "color": "textSecondary",
68
+ "collapseWhenEmpty": true
69
+ }
70
+ }
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ "modifiers": {
76
+ "fillMaxWidth": true,
77
+ "onTap": {
78
+ "actionId": "himi.open",
79
+ "params": {
80
+ "screenId": "{{detailScreen}}",
81
+ "id": "$item.id"
82
+ }
83
+ },
84
+ "pressFeedback": "scale",
85
+ "accessibilityLabel": "$item.title"
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "modifiers": {
92
+ "hiddenPath": "$service:{{svc}}.noRows"
93
+ }
94
+ }
95
+ }