@wix/himalaya-cli 0.1762.0 → 0.1763.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 (681) hide show
  1. package/dist/cli.mjs +73210 -72009
  2. package/guides/base44-app-to-himi-app.md +56 -0
  3. package/guides/himi-json-output.md +35 -0
  4. package/guides/one-app-section-mappings.md +6 -6
  5. package/guides/one-app-to-himi-app.md +27 -4
  6. package/guides/push-cli-onboarding.md +25 -14
  7. package/package.json +2 -2
  8. package/templates/beauty-salon/l10n/ar.json +9 -420
  9. package/templates/beauty-salon/l10n/cs.json +9 -420
  10. package/templates/beauty-salon/l10n/da.json +9 -420
  11. package/templates/beauty-salon/l10n/de.json +9 -420
  12. package/templates/beauty-salon/l10n/el.json +9 -420
  13. package/templates/beauty-salon/l10n/en.json +8 -61
  14. package/templates/beauty-salon/l10n/es.json +9 -420
  15. package/templates/beauty-salon/l10n/fi.json +9 -420
  16. package/templates/beauty-salon/l10n/fr.json +9 -420
  17. package/templates/beauty-salon/l10n/he.json +9 -338
  18. package/templates/beauty-salon/l10n/hu.json +9 -420
  19. package/templates/beauty-salon/l10n/id.json +9 -420
  20. package/templates/beauty-salon/l10n/it.json +9 -420
  21. package/templates/beauty-salon/l10n/ja.json +9 -420
  22. package/templates/beauty-salon/l10n/ko.json +9 -420
  23. package/templates/beauty-salon/l10n/lt.json +9 -420
  24. package/templates/beauty-salon/l10n/nl.json +9 -420
  25. package/templates/beauty-salon/l10n/no.json +9 -420
  26. package/templates/beauty-salon/l10n/pl.json +9 -420
  27. package/templates/beauty-salon/l10n/pt.json +9 -420
  28. package/templates/beauty-salon/l10n/ru.json +9 -420
  29. package/templates/beauty-salon/l10n/sv.json +9 -420
  30. package/templates/beauty-salon/l10n/th.json +9 -420
  31. package/templates/beauty-salon/l10n/tr.json +9 -420
  32. package/templates/beauty-salon/l10n/uk.json +9 -420
  33. package/templates/beauty-salon/l10n/vi.json +9 -420
  34. package/templates/beauty-salon/l10n/zh.json +9 -420
  35. package/templates/branded-lite/l10n/ar.json +31 -5
  36. package/templates/branded-lite/l10n/cs.json +31 -5
  37. package/templates/branded-lite/l10n/da.json +31 -5
  38. package/templates/branded-lite/l10n/de.json +31 -5
  39. package/templates/branded-lite/l10n/el.json +31 -5
  40. package/templates/branded-lite/l10n/en.json +8 -6
  41. package/templates/branded-lite/l10n/es.json +31 -5
  42. package/templates/branded-lite/l10n/fi.json +31 -5
  43. package/templates/branded-lite/l10n/fr.json +31 -5
  44. package/templates/branded-lite/l10n/he.json +27 -4
  45. package/templates/branded-lite/l10n/hu.json +31 -5
  46. package/templates/branded-lite/l10n/id.json +31 -5
  47. package/templates/branded-lite/l10n/it.json +31 -5
  48. package/templates/branded-lite/l10n/ja.json +31 -5
  49. package/templates/branded-lite/l10n/ko.json +31 -5
  50. package/templates/branded-lite/l10n/lt.json +31 -5
  51. package/templates/branded-lite/l10n/nl.json +31 -5
  52. package/templates/branded-lite/l10n/no.json +31 -5
  53. package/templates/branded-lite/l10n/pl.json +31 -5
  54. package/templates/branded-lite/l10n/pt.json +31 -5
  55. package/templates/branded-lite/l10n/ru.json +31 -5
  56. package/templates/branded-lite/l10n/sv.json +31 -5
  57. package/templates/branded-lite/l10n/th.json +31 -5
  58. package/templates/branded-lite/l10n/tr.json +31 -5
  59. package/templates/branded-lite/l10n/uk.json +31 -5
  60. package/templates/branded-lite/l10n/vi.json +31 -5
  61. package/templates/branded-lite/l10n/zh.json +31 -5
  62. package/templates/branded-lite/recipes/blog-search.json +45 -0
  63. package/templates/{beauty-salon/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-carousel.json} +39 -118
  64. package/templates/{gym-fitness/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-list.json} +43 -121
  65. package/templates/{beauty-salon/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
  66. package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
  67. package/templates/{events-meetups/recipes/groups-list.json → branded-lite/recipes/services-list.json} +33 -9
  68. package/templates/{community-club/recipes/groups-list.json → branded-lite/recipes/subscriptions-list.json} +124 -60
  69. package/templates/branded-lite/recipes/upcoming-bookings.json +350 -0
  70. package/templates/branded-lite/recipes/videos-carousel.json +248 -0
  71. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +75 -21
  72. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +115 -0
  73. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +137 -0
  74. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -3
  75. package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +107 -0
  76. package/templates/branded-lite/tier5-src/_shared/plans-section.ts +11 -3
  77. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -0
  78. package/templates/branded-lite/tier5-src/_shared/services-section.ts +122 -0
  79. package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +102 -0
  80. package/templates/branded-lite/tier5-src/_shared/videos-section.ts +91 -0
  81. package/templates/community-club/l10n/ar.json +0 -412
  82. package/templates/community-club/l10n/cs.json +0 -412
  83. package/templates/community-club/l10n/da.json +0 -412
  84. package/templates/community-club/l10n/de.json +0 -412
  85. package/templates/community-club/l10n/el.json +0 -412
  86. package/templates/community-club/l10n/en.json +1 -46
  87. package/templates/community-club/l10n/es.json +0 -412
  88. package/templates/community-club/l10n/fi.json +0 -412
  89. package/templates/community-club/l10n/fr.json +0 -412
  90. package/templates/community-club/l10n/he.json +0 -331
  91. package/templates/community-club/l10n/hu.json +0 -412
  92. package/templates/community-club/l10n/id.json +0 -412
  93. package/templates/community-club/l10n/it.json +0 -412
  94. package/templates/community-club/l10n/ja.json +0 -412
  95. package/templates/community-club/l10n/ko.json +0 -412
  96. package/templates/community-club/l10n/lt.json +0 -412
  97. package/templates/community-club/l10n/nl.json +0 -412
  98. package/templates/community-club/l10n/no.json +0 -412
  99. package/templates/community-club/l10n/pl.json +0 -412
  100. package/templates/community-club/l10n/pt.json +0 -412
  101. package/templates/community-club/l10n/ru.json +0 -412
  102. package/templates/community-club/l10n/sv.json +0 -412
  103. package/templates/community-club/l10n/th.json +0 -412
  104. package/templates/community-club/l10n/tr.json +0 -412
  105. package/templates/community-club/l10n/uk.json +0 -412
  106. package/templates/community-club/l10n/vi.json +0 -412
  107. package/templates/community-club/l10n/zh.json +0 -412
  108. package/templates/events-meetups/l10n/ar.json +0 -412
  109. package/templates/events-meetups/l10n/cs.json +0 -412
  110. package/templates/events-meetups/l10n/da.json +0 -412
  111. package/templates/events-meetups/l10n/de.json +0 -412
  112. package/templates/events-meetups/l10n/el.json +0 -412
  113. package/templates/events-meetups/l10n/en.json +1 -46
  114. package/templates/events-meetups/l10n/es.json +0 -412
  115. package/templates/events-meetups/l10n/fi.json +0 -412
  116. package/templates/events-meetups/l10n/fr.json +0 -412
  117. package/templates/events-meetups/l10n/he.json +0 -331
  118. package/templates/events-meetups/l10n/hu.json +0 -412
  119. package/templates/events-meetups/l10n/id.json +0 -412
  120. package/templates/events-meetups/l10n/it.json +0 -412
  121. package/templates/events-meetups/l10n/ja.json +0 -412
  122. package/templates/events-meetups/l10n/ko.json +0 -412
  123. package/templates/events-meetups/l10n/lt.json +0 -412
  124. package/templates/events-meetups/l10n/nl.json +0 -412
  125. package/templates/events-meetups/l10n/no.json +0 -412
  126. package/templates/events-meetups/l10n/pl.json +0 -412
  127. package/templates/events-meetups/l10n/pt.json +0 -412
  128. package/templates/events-meetups/l10n/ru.json +0 -412
  129. package/templates/events-meetups/l10n/sv.json +0 -412
  130. package/templates/events-meetups/l10n/th.json +0 -412
  131. package/templates/events-meetups/l10n/tr.json +0 -412
  132. package/templates/events-meetups/l10n/uk.json +0 -412
  133. package/templates/events-meetups/l10n/vi.json +0 -412
  134. package/templates/events-meetups/l10n/zh.json +0 -412
  135. package/templates/gym-fitness/l10n/ar.json +9 -405
  136. package/templates/gym-fitness/l10n/cs.json +9 -405
  137. package/templates/gym-fitness/l10n/da.json +9 -405
  138. package/templates/gym-fitness/l10n/de.json +9 -405
  139. package/templates/gym-fitness/l10n/el.json +9 -405
  140. package/templates/gym-fitness/l10n/en.json +8 -51
  141. package/templates/gym-fitness/l10n/es.json +9 -405
  142. package/templates/gym-fitness/l10n/fi.json +9 -405
  143. package/templates/gym-fitness/l10n/fr.json +9 -405
  144. package/templates/gym-fitness/l10n/he.json +9 -326
  145. package/templates/gym-fitness/l10n/hu.json +9 -405
  146. package/templates/gym-fitness/l10n/id.json +9 -405
  147. package/templates/gym-fitness/l10n/it.json +9 -405
  148. package/templates/gym-fitness/l10n/ja.json +9 -405
  149. package/templates/gym-fitness/l10n/ko.json +9 -405
  150. package/templates/gym-fitness/l10n/lt.json +9 -405
  151. package/templates/gym-fitness/l10n/nl.json +9 -405
  152. package/templates/gym-fitness/l10n/no.json +9 -405
  153. package/templates/gym-fitness/l10n/pl.json +9 -405
  154. package/templates/gym-fitness/l10n/pt.json +9 -405
  155. package/templates/gym-fitness/l10n/ru.json +9 -405
  156. package/templates/gym-fitness/l10n/sv.json +9 -405
  157. package/templates/gym-fitness/l10n/th.json +9 -405
  158. package/templates/gym-fitness/l10n/tr.json +9 -405
  159. package/templates/gym-fitness/l10n/uk.json +9 -405
  160. package/templates/gym-fitness/l10n/vi.json +9 -405
  161. package/templates/gym-fitness/l10n/zh.json +9 -405
  162. package/templates/nonprofit-cause/l10n/ar.json +0 -387
  163. package/templates/nonprofit-cause/l10n/cs.json +0 -387
  164. package/templates/nonprofit-cause/l10n/da.json +0 -387
  165. package/templates/nonprofit-cause/l10n/de.json +0 -387
  166. package/templates/nonprofit-cause/l10n/el.json +0 -387
  167. package/templates/nonprofit-cause/l10n/en.json +1 -46
  168. package/templates/nonprofit-cause/l10n/es.json +0 -387
  169. package/templates/nonprofit-cause/l10n/fi.json +0 -387
  170. package/templates/nonprofit-cause/l10n/fr.json +0 -387
  171. package/templates/nonprofit-cause/l10n/he.json +0 -311
  172. package/templates/nonprofit-cause/l10n/hu.json +0 -387
  173. package/templates/nonprofit-cause/l10n/id.json +0 -387
  174. package/templates/nonprofit-cause/l10n/it.json +0 -387
  175. package/templates/nonprofit-cause/l10n/ja.json +0 -387
  176. package/templates/nonprofit-cause/l10n/ko.json +0 -387
  177. package/templates/nonprofit-cause/l10n/lt.json +0 -387
  178. package/templates/nonprofit-cause/l10n/nl.json +0 -387
  179. package/templates/nonprofit-cause/l10n/no.json +0 -387
  180. package/templates/nonprofit-cause/l10n/pl.json +0 -387
  181. package/templates/nonprofit-cause/l10n/pt.json +0 -387
  182. package/templates/nonprofit-cause/l10n/ru.json +0 -387
  183. package/templates/nonprofit-cause/l10n/sv.json +0 -387
  184. package/templates/nonprofit-cause/l10n/th.json +0 -387
  185. package/templates/nonprofit-cause/l10n/tr.json +0 -387
  186. package/templates/nonprofit-cause/l10n/uk.json +0 -387
  187. package/templates/nonprofit-cause/l10n/vi.json +0 -387
  188. package/templates/nonprofit-cause/l10n/zh.json +0 -387
  189. package/templates/podcast-creator/l10n/ar.json +0 -417
  190. package/templates/podcast-creator/l10n/cs.json +0 -417
  191. package/templates/podcast-creator/l10n/da.json +0 -417
  192. package/templates/podcast-creator/l10n/de.json +0 -417
  193. package/templates/podcast-creator/l10n/el.json +0 -417
  194. package/templates/podcast-creator/l10n/en.json +1 -46
  195. package/templates/podcast-creator/l10n/es.json +0 -417
  196. package/templates/podcast-creator/l10n/fi.json +0 -417
  197. package/templates/podcast-creator/l10n/fr.json +0 -417
  198. package/templates/podcast-creator/l10n/he.json +0 -335
  199. package/templates/podcast-creator/l10n/hu.json +0 -417
  200. package/templates/podcast-creator/l10n/id.json +0 -417
  201. package/templates/podcast-creator/l10n/it.json +0 -417
  202. package/templates/podcast-creator/l10n/ja.json +0 -417
  203. package/templates/podcast-creator/l10n/ko.json +0 -417
  204. package/templates/podcast-creator/l10n/lt.json +0 -417
  205. package/templates/podcast-creator/l10n/nl.json +0 -417
  206. package/templates/podcast-creator/l10n/no.json +0 -417
  207. package/templates/podcast-creator/l10n/pl.json +0 -417
  208. package/templates/podcast-creator/l10n/pt.json +0 -417
  209. package/templates/podcast-creator/l10n/ru.json +0 -417
  210. package/templates/podcast-creator/l10n/sv.json +0 -417
  211. package/templates/podcast-creator/l10n/th.json +0 -417
  212. package/templates/podcast-creator/l10n/tr.json +0 -417
  213. package/templates/podcast-creator/l10n/uk.json +0 -417
  214. package/templates/podcast-creator/l10n/vi.json +0 -417
  215. package/templates/podcast-creator/l10n/zh.json +0 -417
  216. package/templates/portfolio-creative/l10n/ar.json +0 -437
  217. package/templates/portfolio-creative/l10n/cs.json +0 -437
  218. package/templates/portfolio-creative/l10n/da.json +0 -437
  219. package/templates/portfolio-creative/l10n/de.json +0 -437
  220. package/templates/portfolio-creative/l10n/el.json +0 -437
  221. package/templates/portfolio-creative/l10n/en.json +1 -46
  222. package/templates/portfolio-creative/l10n/es.json +0 -437
  223. package/templates/portfolio-creative/l10n/fi.json +0 -437
  224. package/templates/portfolio-creative/l10n/fr.json +0 -437
  225. package/templates/portfolio-creative/l10n/he.json +0 -351
  226. package/templates/portfolio-creative/l10n/hu.json +0 -437
  227. package/templates/portfolio-creative/l10n/id.json +0 -437
  228. package/templates/portfolio-creative/l10n/it.json +0 -437
  229. package/templates/portfolio-creative/l10n/ja.json +0 -437
  230. package/templates/portfolio-creative/l10n/ko.json +0 -437
  231. package/templates/portfolio-creative/l10n/lt.json +0 -437
  232. package/templates/portfolio-creative/l10n/nl.json +0 -437
  233. package/templates/portfolio-creative/l10n/no.json +0 -437
  234. package/templates/portfolio-creative/l10n/pl.json +0 -437
  235. package/templates/portfolio-creative/l10n/pt.json +0 -437
  236. package/templates/portfolio-creative/l10n/ru.json +0 -437
  237. package/templates/portfolio-creative/l10n/sv.json +0 -437
  238. package/templates/portfolio-creative/l10n/th.json +0 -437
  239. package/templates/portfolio-creative/l10n/tr.json +0 -437
  240. package/templates/portfolio-creative/l10n/uk.json +0 -437
  241. package/templates/portfolio-creative/l10n/vi.json +0 -437
  242. package/templates/portfolio-creative/l10n/zh.json +0 -437
  243. package/templates/restaurant/l10n/ar.json +0 -447
  244. package/templates/restaurant/l10n/cs.json +0 -447
  245. package/templates/restaurant/l10n/da.json +0 -447
  246. package/templates/restaurant/l10n/de.json +0 -447
  247. package/templates/restaurant/l10n/el.json +0 -447
  248. package/templates/restaurant/l10n/en.json +1 -46
  249. package/templates/restaurant/l10n/es.json +0 -447
  250. package/templates/restaurant/l10n/fi.json +0 -447
  251. package/templates/restaurant/l10n/fr.json +0 -447
  252. package/templates/restaurant/l10n/he.json +0 -359
  253. package/templates/restaurant/l10n/hu.json +0 -447
  254. package/templates/restaurant/l10n/id.json +0 -447
  255. package/templates/restaurant/l10n/it.json +0 -447
  256. package/templates/restaurant/l10n/ja.json +0 -447
  257. package/templates/restaurant/l10n/ko.json +0 -447
  258. package/templates/restaurant/l10n/lt.json +0 -447
  259. package/templates/restaurant/l10n/nl.json +0 -447
  260. package/templates/restaurant/l10n/no.json +0 -447
  261. package/templates/restaurant/l10n/pl.json +0 -447
  262. package/templates/restaurant/l10n/pt.json +0 -447
  263. package/templates/restaurant/l10n/ru.json +0 -447
  264. package/templates/restaurant/l10n/sv.json +0 -447
  265. package/templates/restaurant/l10n/th.json +0 -447
  266. package/templates/restaurant/l10n/tr.json +0 -447
  267. package/templates/restaurant/l10n/uk.json +0 -447
  268. package/templates/restaurant/l10n/vi.json +0 -447
  269. package/templates/restaurant/l10n/zh.json +0 -447
  270. package/templates/retail-store/l10n/ar.json +0 -462
  271. package/templates/retail-store/l10n/cs.json +0 -462
  272. package/templates/retail-store/l10n/da.json +0 -462
  273. package/templates/retail-store/l10n/de.json +0 -462
  274. package/templates/retail-store/l10n/el.json +0 -462
  275. package/templates/retail-store/l10n/en.json +1 -61
  276. package/templates/retail-store/l10n/es.json +0 -462
  277. package/templates/retail-store/l10n/fi.json +0 -462
  278. package/templates/retail-store/l10n/fr.json +0 -462
  279. package/templates/retail-store/l10n/he.json +0 -371
  280. package/templates/retail-store/l10n/hu.json +0 -462
  281. package/templates/retail-store/l10n/id.json +0 -462
  282. package/templates/retail-store/l10n/it.json +0 -462
  283. package/templates/retail-store/l10n/ja.json +0 -462
  284. package/templates/retail-store/l10n/ko.json +0 -462
  285. package/templates/retail-store/l10n/lt.json +0 -462
  286. package/templates/retail-store/l10n/nl.json +0 -462
  287. package/templates/retail-store/l10n/no.json +0 -462
  288. package/templates/retail-store/l10n/pl.json +0 -462
  289. package/templates/retail-store/l10n/pt.json +0 -462
  290. package/templates/retail-store/l10n/ru.json +0 -462
  291. package/templates/retail-store/l10n/sv.json +0 -462
  292. package/templates/retail-store/l10n/th.json +0 -462
  293. package/templates/retail-store/l10n/tr.json +0 -462
  294. package/templates/retail-store/l10n/uk.json +0 -462
  295. package/templates/retail-store/l10n/vi.json +0 -462
  296. package/templates/retail-store/l10n/zh.json +0 -462
  297. package/templates/yoga-studio/l10n/ar.json +9 -197
  298. package/templates/yoga-studio/l10n/cs.json +9 -197
  299. package/templates/yoga-studio/l10n/da.json +9 -197
  300. package/templates/yoga-studio/l10n/de.json +9 -197
  301. package/templates/yoga-studio/l10n/el.json +9 -197
  302. package/templates/yoga-studio/l10n/en.json +8 -30
  303. package/templates/yoga-studio/l10n/es.json +9 -197
  304. package/templates/yoga-studio/l10n/fi.json +9 -197
  305. package/templates/yoga-studio/l10n/fr.json +9 -197
  306. package/templates/yoga-studio/l10n/he.json +9 -159
  307. package/templates/yoga-studio/l10n/hu.json +9 -197
  308. package/templates/yoga-studio/l10n/id.json +9 -197
  309. package/templates/yoga-studio/l10n/it.json +9 -197
  310. package/templates/yoga-studio/l10n/ja.json +9 -197
  311. package/templates/yoga-studio/l10n/ko.json +9 -197
  312. package/templates/yoga-studio/l10n/lt.json +9 -197
  313. package/templates/yoga-studio/l10n/nl.json +9 -197
  314. package/templates/yoga-studio/l10n/no.json +9 -197
  315. package/templates/yoga-studio/l10n/pl.json +9 -197
  316. package/templates/yoga-studio/l10n/pt.json +9 -197
  317. package/templates/yoga-studio/l10n/ru.json +9 -197
  318. package/templates/yoga-studio/l10n/sv.json +9 -197
  319. package/templates/yoga-studio/l10n/th.json +9 -197
  320. package/templates/yoga-studio/l10n/tr.json +9 -197
  321. package/templates/yoga-studio/l10n/uk.json +9 -197
  322. package/templates/yoga-studio/l10n/vi.json +9 -197
  323. package/templates/yoga-studio/l10n/zh.json +9 -197
  324. package/templates/beauty-salon/recipes/announcement-card.json +0 -72
  325. package/templates/beauty-salon/recipes/blog-hero.json +0 -95
  326. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +0 -394
  327. package/templates/beauty-salon/recipes/blog-list.json +0 -394
  328. package/templates/beauty-salon/recipes/blog-see-all.json +0 -50
  329. package/templates/beauty-salon/recipes/events-inline.json +0 -309
  330. package/templates/beauty-salon/recipes/faq-list.json +0 -503
  331. package/templates/beauty-salon/recipes/groups-list.json +0 -196
  332. package/templates/beauty-salon/recipes/members-list.json +0 -445
  333. package/templates/beauty-salon/recipes/plans-card.json +0 -811
  334. package/templates/beauty-salon/recipes/products-carousel.json +0 -141
  335. package/templates/beauty-salon/recipes/products-grid.json +0 -143
  336. package/templates/beauty-salon/recipes/programs-card.json +0 -254
  337. package/templates/beauty-salon/recipes/programs-carousel.json +0 -234
  338. package/templates/beauty-salon/recipes/programs-filters.json +0 -94
  339. package/templates/beauty-salon/recipes/programs-see-all.json +0 -43
  340. package/templates/beauty-salon/recipes/section-error.json +0 -58
  341. package/templates/beauty-salon/tier5-src/_shared/announcement-section.ts +0 -122
  342. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +0 -207
  343. package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +0 -86
  344. package/templates/beauty-salon/tier5-src/_shared/events-card.ts +0 -33
  345. package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +0 -25
  346. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +0 -84
  347. package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +0 -405
  348. package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +0 -110
  349. package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +0 -34
  350. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +0 -175
  351. package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +0 -39
  352. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +0 -271
  353. package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +0 -87
  354. package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +0 -106
  355. package/templates/beauty-salon/tier5-src/_shared/products-section.ts +0 -76
  356. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +0 -16
  357. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +0 -740
  358. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +0 -21
  359. package/templates/community-club/recipes/announcement-card.json +0 -72
  360. package/templates/community-club/recipes/blog-hero.json +0 -95
  361. package/templates/community-club/recipes/blog-list-thumb-start.json +0 -394
  362. package/templates/community-club/recipes/blog-list.json +0 -394
  363. package/templates/community-club/recipes/blog-see-all.json +0 -50
  364. package/templates/community-club/recipes/events-inline-list.json +0 -228
  365. package/templates/community-club/recipes/events-inline.json +0 -309
  366. package/templates/community-club/recipes/faq-list.json +0 -503
  367. package/templates/community-club/recipes/members-list.json +0 -445
  368. package/templates/community-club/recipes/plans-card.json +0 -811
  369. package/templates/community-club/recipes/products-carousel.json +0 -141
  370. package/templates/community-club/recipes/products-grid.json +0 -143
  371. package/templates/community-club/recipes/programs-card.json +0 -254
  372. package/templates/community-club/recipes/programs-carousel.json +0 -234
  373. package/templates/community-club/recipes/programs-filters.json +0 -94
  374. package/templates/community-club/recipes/programs-participant-carousel.json +0 -257
  375. package/templates/community-club/recipes/programs-see-all.json +0 -43
  376. package/templates/community-club/recipes/section-error.json +0 -58
  377. package/templates/community-club/tier5-src/_shared/announcement-section.ts +0 -122
  378. package/templates/community-club/tier5-src/_shared/blog-list.ts +0 -207
  379. package/templates/community-club/tier5-src/_shared/detail-presence.ts +0 -51
  380. package/templates/community-club/tier5-src/_shared/events-card.ts +0 -33
  381. package/templates/community-club/tier5-src/_shared/events-inline-options.ts +0 -25
  382. package/templates/community-club/tier5-src/_shared/events-inline.ts +0 -84
  383. package/templates/community-club/tier5-src/_shared/faq-list.ts +0 -405
  384. package/templates/community-club/tier5-src/_shared/groups-section.ts +0 -110
  385. package/templates/community-club/tier5-src/_shared/member-activity.ts +0 -34
  386. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +0 -175
  387. package/templates/community-club/tier5-src/_shared/members-directory-view.ts +0 -39
  388. package/templates/community-club/tier5-src/_shared/members-directory.ts +0 -271
  389. package/templates/community-club/tier5-src/_shared/plan-facts.ts +0 -87
  390. package/templates/community-club/tier5-src/_shared/plans-section.ts +0 -106
  391. package/templates/community-club/tier5-src/_shared/products-section.ts +0 -76
  392. package/templates/community-club/tier5-src/_shared/program-fields.ts +0 -16
  393. package/templates/community-club/tier5-src/_shared/programs-section.ts +0 -740
  394. package/templates/community-club/tier5-src/_shared/relative-time.ts +0 -21
  395. package/templates/events-meetups/recipes/announcement-card.json +0 -72
  396. package/templates/events-meetups/recipes/blog-hero.json +0 -95
  397. package/templates/events-meetups/recipes/blog-list-thumb-start.json +0 -394
  398. package/templates/events-meetups/recipes/blog-list.json +0 -394
  399. package/templates/events-meetups/recipes/blog-see-all.json +0 -50
  400. package/templates/events-meetups/recipes/events-inline-list.json +0 -228
  401. package/templates/events-meetups/recipes/events-inline.json +0 -309
  402. package/templates/events-meetups/recipes/faq-list.json +0 -503
  403. package/templates/events-meetups/recipes/members-list.json +0 -445
  404. package/templates/events-meetups/recipes/plans-card.json +0 -811
  405. package/templates/events-meetups/recipes/products-carousel.json +0 -141
  406. package/templates/events-meetups/recipes/products-grid.json +0 -143
  407. package/templates/events-meetups/recipes/programs-card.json +0 -254
  408. package/templates/events-meetups/recipes/programs-carousel.json +0 -234
  409. package/templates/events-meetups/recipes/programs-filters.json +0 -94
  410. package/templates/events-meetups/recipes/programs-see-all.json +0 -43
  411. package/templates/events-meetups/recipes/section-error.json +0 -58
  412. package/templates/events-meetups/tier5-src/_shared/announcement-section.ts +0 -122
  413. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +0 -207
  414. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +0 -51
  415. package/templates/events-meetups/tier5-src/_shared/events-card.ts +0 -33
  416. package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +0 -25
  417. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +0 -84
  418. package/templates/events-meetups/tier5-src/_shared/faq-list.ts +0 -405
  419. package/templates/events-meetups/tier5-src/_shared/groups-section.ts +0 -110
  420. package/templates/events-meetups/tier5-src/_shared/member-activity.ts +0 -34
  421. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +0 -175
  422. package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +0 -39
  423. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +0 -271
  424. package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +0 -87
  425. package/templates/events-meetups/tier5-src/_shared/plans-section.ts +0 -106
  426. package/templates/events-meetups/tier5-src/_shared/products-section.ts +0 -76
  427. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +0 -16
  428. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +0 -740
  429. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +0 -21
  430. package/templates/gym-fitness/recipes/announcement-card.json +0 -72
  431. package/templates/gym-fitness/recipes/blog-hero.json +0 -95
  432. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +0 -394
  433. package/templates/gym-fitness/recipes/blog-list.json +0 -394
  434. package/templates/gym-fitness/recipes/blog-see-all.json +0 -50
  435. package/templates/gym-fitness/recipes/events-inline-list.json +0 -228
  436. package/templates/gym-fitness/recipes/events-inline.json +0 -309
  437. package/templates/gym-fitness/recipes/faq-list.json +0 -503
  438. package/templates/gym-fitness/recipes/groups-list.json +0 -196
  439. package/templates/gym-fitness/recipes/members-list.json +0 -445
  440. package/templates/gym-fitness/recipes/plans-card.json +0 -811
  441. package/templates/gym-fitness/recipes/products-carousel.json +0 -141
  442. package/templates/gym-fitness/recipes/products-grid.json +0 -143
  443. package/templates/gym-fitness/recipes/programs-card.json +0 -254
  444. package/templates/gym-fitness/recipes/programs-carousel.json +0 -234
  445. package/templates/gym-fitness/recipes/programs-filters.json +0 -94
  446. package/templates/gym-fitness/recipes/programs-see-all.json +0 -43
  447. package/templates/gym-fitness/recipes/section-error.json +0 -58
  448. package/templates/gym-fitness/tier5-src/_shared/announcement-section.ts +0 -122
  449. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +0 -207
  450. package/templates/gym-fitness/tier5-src/_shared/events-card.ts +0 -33
  451. package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +0 -25
  452. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +0 -84
  453. package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +0 -405
  454. package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +0 -110
  455. package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +0 -34
  456. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +0 -175
  457. package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +0 -39
  458. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +0 -271
  459. package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +0 -87
  460. package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +0 -106
  461. package/templates/gym-fitness/tier5-src/_shared/products-section.ts +0 -76
  462. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +0 -16
  463. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +0 -740
  464. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +0 -21
  465. package/templates/nonprofit-cause/recipes/announcement-card.json +0 -72
  466. package/templates/nonprofit-cause/recipes/blog-hero.json +0 -95
  467. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +0 -394
  468. package/templates/nonprofit-cause/recipes/blog-list.json +0 -394
  469. package/templates/nonprofit-cause/recipes/blog-see-all.json +0 -50
  470. package/templates/nonprofit-cause/recipes/events-inline-list.json +0 -228
  471. package/templates/nonprofit-cause/recipes/events-inline.json +0 -309
  472. package/templates/nonprofit-cause/recipes/faq-list.json +0 -503
  473. package/templates/nonprofit-cause/recipes/groups-list.json +0 -196
  474. package/templates/nonprofit-cause/recipes/members-list.json +0 -445
  475. package/templates/nonprofit-cause/recipes/plans-card.json +0 -811
  476. package/templates/nonprofit-cause/recipes/products-carousel.json +0 -141
  477. package/templates/nonprofit-cause/recipes/products-grid.json +0 -143
  478. package/templates/nonprofit-cause/recipes/programs-card.json +0 -254
  479. package/templates/nonprofit-cause/recipes/programs-carousel.json +0 -234
  480. package/templates/nonprofit-cause/recipes/programs-filters.json +0 -94
  481. package/templates/nonprofit-cause/recipes/programs-participant-carousel.json +0 -257
  482. package/templates/nonprofit-cause/recipes/programs-see-all.json +0 -43
  483. package/templates/nonprofit-cause/recipes/section-error.json +0 -58
  484. package/templates/nonprofit-cause/tier5-src/_shared/announcement-section.ts +0 -122
  485. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +0 -207
  486. package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +0 -33
  487. package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +0 -25
  488. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +0 -84
  489. package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +0 -405
  490. package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +0 -110
  491. package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +0 -34
  492. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +0 -175
  493. package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +0 -39
  494. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +0 -271
  495. package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +0 -87
  496. package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +0 -106
  497. package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +0 -76
  498. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +0 -16
  499. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +0 -740
  500. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +0 -21
  501. package/templates/podcast-creator/recipes/announcement-card.json +0 -72
  502. package/templates/podcast-creator/recipes/blog-hero.json +0 -95
  503. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +0 -394
  504. package/templates/podcast-creator/recipes/blog-list.json +0 -394
  505. package/templates/podcast-creator/recipes/blog-see-all.json +0 -50
  506. package/templates/podcast-creator/recipes/events-inline-list.json +0 -228
  507. package/templates/podcast-creator/recipes/events-inline.json +0 -309
  508. package/templates/podcast-creator/recipes/faq-list.json +0 -503
  509. package/templates/podcast-creator/recipes/groups-list.json +0 -196
  510. package/templates/podcast-creator/recipes/members-list.json +0 -445
  511. package/templates/podcast-creator/recipes/plans-card.json +0 -811
  512. package/templates/podcast-creator/recipes/products-carousel.json +0 -141
  513. package/templates/podcast-creator/recipes/products-grid.json +0 -143
  514. package/templates/podcast-creator/recipes/programs-card.json +0 -254
  515. package/templates/podcast-creator/recipes/programs-carousel.json +0 -234
  516. package/templates/podcast-creator/recipes/programs-filters.json +0 -94
  517. package/templates/podcast-creator/recipes/programs-participant-carousel.json +0 -257
  518. package/templates/podcast-creator/recipes/programs-see-all.json +0 -43
  519. package/templates/podcast-creator/recipes/section-error.json +0 -58
  520. package/templates/podcast-creator/tier5-src/_shared/announcement-section.ts +0 -122
  521. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +0 -207
  522. package/templates/podcast-creator/tier5-src/_shared/events-card.ts +0 -33
  523. package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +0 -25
  524. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +0 -84
  525. package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +0 -405
  526. package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +0 -110
  527. package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +0 -34
  528. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +0 -175
  529. package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +0 -39
  530. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +0 -271
  531. package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +0 -87
  532. package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +0 -106
  533. package/templates/podcast-creator/tier5-src/_shared/products-section.ts +0 -76
  534. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +0 -16
  535. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +0 -740
  536. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +0 -21
  537. package/templates/portfolio-creative/recipes/announcement-card.json +0 -72
  538. package/templates/portfolio-creative/recipes/blog-hero.json +0 -95
  539. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +0 -394
  540. package/templates/portfolio-creative/recipes/blog-list.json +0 -394
  541. package/templates/portfolio-creative/recipes/blog-see-all.json +0 -50
  542. package/templates/portfolio-creative/recipes/events-inline-list.json +0 -228
  543. package/templates/portfolio-creative/recipes/events-inline.json +0 -309
  544. package/templates/portfolio-creative/recipes/faq-list.json +0 -503
  545. package/templates/portfolio-creative/recipes/groups-list.json +0 -196
  546. package/templates/portfolio-creative/recipes/members-list.json +0 -445
  547. package/templates/portfolio-creative/recipes/plans-card.json +0 -811
  548. package/templates/portfolio-creative/recipes/products-carousel.json +0 -141
  549. package/templates/portfolio-creative/recipes/products-grid.json +0 -143
  550. package/templates/portfolio-creative/recipes/programs-card.json +0 -254
  551. package/templates/portfolio-creative/recipes/programs-carousel.json +0 -234
  552. package/templates/portfolio-creative/recipes/programs-filters.json +0 -94
  553. package/templates/portfolio-creative/recipes/programs-participant-carousel.json +0 -257
  554. package/templates/portfolio-creative/recipes/programs-see-all.json +0 -43
  555. package/templates/portfolio-creative/recipes/section-error.json +0 -58
  556. package/templates/portfolio-creative/tier5-src/_shared/announcement-section.ts +0 -122
  557. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +0 -207
  558. package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +0 -33
  559. package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +0 -25
  560. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +0 -84
  561. package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +0 -405
  562. package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +0 -110
  563. package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +0 -34
  564. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +0 -175
  565. package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +0 -39
  566. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +0 -271
  567. package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +0 -87
  568. package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +0 -106
  569. package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +0 -76
  570. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +0 -16
  571. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +0 -740
  572. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +0 -21
  573. package/templates/restaurant/recipes/announcement-card.json +0 -72
  574. package/templates/restaurant/recipes/blog-hero.json +0 -95
  575. package/templates/restaurant/recipes/blog-list-thumb-start.json +0 -394
  576. package/templates/restaurant/recipes/blog-list.json +0 -394
  577. package/templates/restaurant/recipes/blog-see-all.json +0 -50
  578. package/templates/restaurant/recipes/events-inline-list.json +0 -228
  579. package/templates/restaurant/recipes/events-inline.json +0 -309
  580. package/templates/restaurant/recipes/faq-list.json +0 -503
  581. package/templates/restaurant/recipes/groups-list.json +0 -196
  582. package/templates/restaurant/recipes/members-list.json +0 -445
  583. package/templates/restaurant/recipes/plans-card.json +0 -811
  584. package/templates/restaurant/recipes/products-carousel.json +0 -141
  585. package/templates/restaurant/recipes/products-grid.json +0 -143
  586. package/templates/restaurant/recipes/programs-card.json +0 -254
  587. package/templates/restaurant/recipes/programs-carousel.json +0 -234
  588. package/templates/restaurant/recipes/programs-filters.json +0 -94
  589. package/templates/restaurant/recipes/programs-participant-carousel.json +0 -257
  590. package/templates/restaurant/recipes/programs-see-all.json +0 -43
  591. package/templates/restaurant/recipes/section-error.json +0 -58
  592. package/templates/restaurant/tier5-src/_shared/announcement-section.ts +0 -122
  593. package/templates/restaurant/tier5-src/_shared/blog-list.ts +0 -207
  594. package/templates/restaurant/tier5-src/_shared/events-card.ts +0 -33
  595. package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +0 -25
  596. package/templates/restaurant/tier5-src/_shared/events-inline.ts +0 -84
  597. package/templates/restaurant/tier5-src/_shared/faq-list.ts +0 -405
  598. package/templates/restaurant/tier5-src/_shared/groups-section.ts +0 -110
  599. package/templates/restaurant/tier5-src/_shared/member-activity.ts +0 -34
  600. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +0 -175
  601. package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +0 -39
  602. package/templates/restaurant/tier5-src/_shared/members-directory.ts +0 -271
  603. package/templates/restaurant/tier5-src/_shared/plan-facts.ts +0 -87
  604. package/templates/restaurant/tier5-src/_shared/plans-section.ts +0 -106
  605. package/templates/restaurant/tier5-src/_shared/products-section.ts +0 -76
  606. package/templates/restaurant/tier5-src/_shared/program-fields.ts +0 -16
  607. package/templates/restaurant/tier5-src/_shared/programs-section.ts +0 -740
  608. package/templates/restaurant/tier5-src/_shared/relative-time.ts +0 -21
  609. package/templates/retail-store/recipes/announcement-card.json +0 -72
  610. package/templates/retail-store/recipes/blog-hero.json +0 -95
  611. package/templates/retail-store/recipes/blog-list-thumb-start.json +0 -394
  612. package/templates/retail-store/recipes/blog-list.json +0 -394
  613. package/templates/retail-store/recipes/blog-see-all.json +0 -50
  614. package/templates/retail-store/recipes/events-inline-list.json +0 -228
  615. package/templates/retail-store/recipes/events-inline.json +0 -309
  616. package/templates/retail-store/recipes/faq-list.json +0 -503
  617. package/templates/retail-store/recipes/groups-list.json +0 -196
  618. package/templates/retail-store/recipes/members-list.json +0 -445
  619. package/templates/retail-store/recipes/plans-card.json +0 -811
  620. package/templates/retail-store/recipes/products-carousel.json +0 -141
  621. package/templates/retail-store/recipes/products-grid.json +0 -143
  622. package/templates/retail-store/recipes/programs-card.json +0 -254
  623. package/templates/retail-store/recipes/programs-carousel.json +0 -234
  624. package/templates/retail-store/recipes/programs-filters.json +0 -94
  625. package/templates/retail-store/recipes/programs-participant-carousel.json +0 -257
  626. package/templates/retail-store/recipes/programs-see-all.json +0 -43
  627. package/templates/retail-store/recipes/section-error.json +0 -58
  628. package/templates/retail-store/tier5-src/_shared/announcement-section.ts +0 -122
  629. package/templates/retail-store/tier5-src/_shared/blog-list.ts +0 -207
  630. package/templates/retail-store/tier5-src/_shared/event-registration.ts +0 -86
  631. package/templates/retail-store/tier5-src/_shared/events-card.ts +0 -33
  632. package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +0 -25
  633. package/templates/retail-store/tier5-src/_shared/events-inline.ts +0 -84
  634. package/templates/retail-store/tier5-src/_shared/faq-list.ts +0 -405
  635. package/templates/retail-store/tier5-src/_shared/groups-section.ts +0 -110
  636. package/templates/retail-store/tier5-src/_shared/member-activity.ts +0 -34
  637. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +0 -175
  638. package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +0 -39
  639. package/templates/retail-store/tier5-src/_shared/members-directory.ts +0 -271
  640. package/templates/retail-store/tier5-src/_shared/plan-facts.ts +0 -87
  641. package/templates/retail-store/tier5-src/_shared/plans-section.ts +0 -106
  642. package/templates/retail-store/tier5-src/_shared/products-section.ts +0 -76
  643. package/templates/retail-store/tier5-src/_shared/program-fields.ts +0 -16
  644. package/templates/retail-store/tier5-src/_shared/programs-section.ts +0 -740
  645. package/templates/retail-store/tier5-src/_shared/relative-time.ts +0 -21
  646. package/templates/yoga-studio/recipes/announcement-card.json +0 -72
  647. package/templates/yoga-studio/recipes/blog-hero.json +0 -95
  648. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +0 -394
  649. package/templates/yoga-studio/recipes/blog-list.json +0 -394
  650. package/templates/yoga-studio/recipes/blog-see-all.json +0 -50
  651. package/templates/yoga-studio/recipes/events-inline-list.json +0 -228
  652. package/templates/yoga-studio/recipes/events-inline.json +0 -309
  653. package/templates/yoga-studio/recipes/faq-list.json +0 -503
  654. package/templates/yoga-studio/recipes/groups-list.json +0 -196
  655. package/templates/yoga-studio/recipes/members-list.json +0 -445
  656. package/templates/yoga-studio/recipes/plans-card.json +0 -811
  657. package/templates/yoga-studio/recipes/products-carousel.json +0 -141
  658. package/templates/yoga-studio/recipes/products-grid.json +0 -143
  659. package/templates/yoga-studio/recipes/programs-card.json +0 -254
  660. package/templates/yoga-studio/recipes/programs-carousel.json +0 -234
  661. package/templates/yoga-studio/recipes/programs-filters.json +0 -94
  662. package/templates/yoga-studio/recipes/programs-participant-carousel.json +0 -257
  663. package/templates/yoga-studio/recipes/programs-see-all.json +0 -43
  664. package/templates/yoga-studio/recipes/section-error.json +0 -58
  665. package/templates/yoga-studio/tier5-src/_shared/announcement-section.ts +0 -122
  666. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +0 -207
  667. package/templates/yoga-studio/tier5-src/_shared/events-card.ts +0 -33
  668. package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +0 -25
  669. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +0 -84
  670. package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +0 -405
  671. package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +0 -110
  672. package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +0 -34
  673. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +0 -175
  674. package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +0 -39
  675. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +0 -271
  676. package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +0 -87
  677. package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +0 -106
  678. package/templates/yoga-studio/tier5-src/_shared/products-section.ts +0 -76
  679. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +0 -16
  680. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +0 -740
  681. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +0 -21
@@ -1,58 +0,0 @@
1
- {
2
- "_recipe": "A section's failed read: a message and a retry button, shown only while the service is in its error state. ONE node. Placed beside a section recipe whose list hides on `noRows`, so a failure never leaves a blank section. Service: any section module that publishes `notErrored` and the action named by `action`.",
3
- "_placeholders": {
4
- "svc": "service name the page worker registered",
5
- "id": "unique node id prefix for this section",
6
- "action": "the service action that reads again: load, or retry"
7
- },
8
- "node": {
9
- "id": "{{id}}.error",
10
- "body": {
11
- "package": "himalaya",
12
- "type": "VStack",
13
- "props": {
14
- "spacing": 8,
15
- "alignment": "leading",
16
- "children": [
17
- {
18
- "id": "{{id}}.error.text",
19
- "body": {
20
- "package": "himalaya",
21
- "type": "Text",
22
- "props": {
23
- "text": "This couldn't be loaded. Check your connection and try again.",
24
- "style": "body",
25
- "color": "textSecondary"
26
- }
27
- }
28
- },
29
- {
30
- "id": "{{id}}.error.retry",
31
- "body": {
32
- "package": "himalaya",
33
- "type": "Button",
34
- "props": {
35
- "title": "Try again",
36
- "style": "secondary",
37
- "size": "md",
38
- "action": {
39
- "actionId": "tier5.{{svc}}.{{action}}",
40
- "params": {}
41
- }
42
- }
43
- }
44
- }
45
- ]
46
- }
47
- },
48
- "modifiers": {
49
- "hiddenPath": "$service:{{svc}}.notErrored",
50
- "padding": {
51
- "leading": 0,
52
- "trailing": 0,
53
- "top": 0,
54
- "bottom": 0
55
- }
56
- }
57
- }
58
- }
@@ -1,122 +0,0 @@
1
- // The INLINE announcement section: the business's latest announcement, read at RUNTIME (never baked at migration time) and
2
- // shown next to other sections. It is the call the native Branded app's announcement section makes
3
- // (wix-one-app-member-view, Announcement/serverApiService.ts `fetchLatestAnnouncement`): one GET of the latest announcement with the
4
- // app's own signed instance (Member when signed in, else Visitor), which the `wixApi` bridge attaches.
5
- //
6
- // READ-ONLY, ALWAYS: `includeReaderData` stays false (true needs the One App manage permission and answers 403), and nothing here
7
- // ever marks an announcement as seen (`AddCurrentMemberAsReader` is a write). Known server behaviour, shared with the native app: a
8
- // site that has no announcement yet gets its default welcome text saved once, by this very read.
9
- // A phone sends the signed instance to this URL only because the native hosts (Android and Swift `WixApiCapability`) allow exactly this
10
- // GET (host, path, method and the reader-data-off query) for the consumer providers; a build without that entry refuses the read and the
11
- // section shows nothing. The local web preview has no such list.
12
- // The `announcement-card` recipe is the card that reads it, bound as `$service:<serviceName>.*`.
13
- import { defineService } from "@himalaya/state";
14
- import { richBody } from "./rich-body.js";
15
- import { formatDateMedium } from "./engine-intl.js";
16
- import { openRichLink } from "./rich-content-link.js";
17
-
18
- /** The one call: the latest announcement, without the reader data. */
19
- export const LATEST_ANNOUNCEMENT_URL = "https://manage.wix.com/_api/mobile-apps-announcements/v1/announcements/latest?includeReaderData=false";
20
-
21
- interface LatestAnnouncementResponse {
22
- announcement?: {
23
- title?: unknown;
24
- /** The announcement's content: a DraftJS raw state for announcements written in the app, or a Ricos document (as a Struct). */
25
- content?: unknown;
26
- createdDate?: unknown;
27
- creatorMemberProfileData?: { nickname?: unknown; imageUrl?: unknown };
28
- };
29
- }
30
-
31
- export interface AnnouncementState {
32
- status: "loading" | "ready" | "error";
33
- hasAnnouncement: boolean; noAnnouncement: boolean;
34
- title: string; noTitle: boolean;
35
- /** The rich body as one document string (RichContent draws nothing for ""), and its plain text, shown when there is no document. */
36
- bodyJson: string; hasBodyJson: boolean; noBodyJson: boolean;
37
- body: string; noBody: boolean;
38
- created: string; noCreated: boolean;
39
- creator: string; noCreator: boolean;
40
- creatorImage: string; noCreatorImage: boolean;
41
- isLoading: boolean; notLoading: boolean;
42
- isErrored: boolean; notErrored: boolean;
43
- }
44
-
45
- const text = (value: unknown): string => (typeof value === "string" ? value.trim() : "");
46
-
47
- /** The plain text of a DraftJS raw state (`{ blocks: [{ text }], entityMap }`), which is what the service's `content` really is for
48
- * announcements written in the app (observed on a live site, 2026-11-11), or undefined when `content` is not one. Only the blocks' own
49
- * text is read: the entity map (links, images) is never followed. */
50
- function draftPlainText(content: unknown): string | undefined {
51
- let doc = content;
52
- if (typeof doc === "string") { try { doc = JSON.parse(doc); } catch { return undefined; } }
53
- const blocks = (doc as { blocks?: unknown } | null | undefined)?.blocks;
54
- if (!Array.isArray(blocks)) return undefined;
55
- return blocks.map((block) => text((block as { text?: unknown } | null)?.text)).filter(Boolean).join("\n\n");
56
- }
57
-
58
- function derive(status: AnnouncementState["status"], fields: { title?: string; bodyJson?: string; body?: string; created?: string; creator?: string; creatorImage?: string } = {}): AnnouncementState {
59
- const title = fields.title ?? "", bodyJson = fields.bodyJson ?? "", body = fields.body ?? "", created = fields.created ?? "";
60
- const creator = fields.creator ?? "", creatorImage = fields.creatorImage ?? "";
61
- const hasAnnouncement = status === "ready" && !!(title || bodyJson || body);
62
- return {
63
- status, hasAnnouncement, noAnnouncement: !hasAnnouncement,
64
- title, noTitle: !title,
65
- bodyJson, hasBodyJson: !!bodyJson, noBodyJson: !bodyJson,
66
- body, noBody: !body,
67
- created, noCreated: !created,
68
- creator, noCreator: !creator,
69
- creatorImage, noCreatorImage: !creatorImage,
70
- isLoading: status === "loading", notLoading: status !== "loading",
71
- isErrored: status === "error", notErrored: status !== "error",
72
- };
73
- }
74
-
75
- /** The state for a latest-announcement response: an empty or missing announcement shows nothing, never a placeholder. */
76
- export function announcementState(response: unknown): AnnouncementState {
77
- const announcement = (response as LatestAnnouncementResponse | undefined)?.announcement;
78
- if (!announcement || typeof announcement !== "object") return derive("ready");
79
- // A DraftJS body shows as its plain text; a Ricos body keeps its rich document.
80
- const draft = draftPlainText(announcement.content);
81
- const rich = draft !== undefined ? { bodyJson: "", bodyText: draft } : richBody(announcement.content);
82
- const when = typeof announcement.createdDate === "string" ? new Date(announcement.createdDate) : undefined;
83
- const image = text(announcement.creatorMemberProfileData?.imageUrl);
84
- return derive("ready", {
85
- title: text(announcement.title),
86
- bodyJson: rich.bodyJson, body: rich.bodyText,
87
- created: when && !Number.isNaN(when.getTime()) ? formatDateMedium(when) : "",
88
- creator: text(announcement.creatorMemberProfileData?.nickname),
89
- // An avatar is shown only from an https URL.
90
- creatorImage: /^https:\/\//i.test(image) ? image : "",
91
- });
92
- }
93
-
94
- /** `options` is the generator's uniform second argument; the section has no settings of its own, so nothing is read from it. */
95
- export function registerAnnouncementSection(serviceName: string, _options: object = {}) {
96
- // The failure path reads the CURRENT state, not the snapshot the call began with: a refresh that fails after another load already
97
- // showed an announcement must not erase it.
98
- let current: () => AnnouncementState = () => derive("loading");
99
- const handle = defineService<AnnouncementState, { load: (state: AnnouncementState) => Promise<AnnouncementState>; openLink: (state: AnnouncementState, arg?: unknown) => Promise<AnnouncementState> }>(serviceName, {
100
- state: derive("loading"),
101
- actions: {
102
- load: async () => {
103
- // A failed refresh (offline, a 5xx) keeps an announcement that is already showing: only a screen with nothing to show goes to error.
104
- const failed = (): AnnouncementState => { const now = current(); return now.hasAnnouncement ? now : derive("error"); };
105
- try {
106
- const api = (globalThis as { himalaya?: { wixApi?: { call: (method: string, path: string) => Promise<unknown> } } }).himalaya?.wixApi;
107
- if (!api) return failed();
108
- return announcementState(await api.call("GET", LATEST_ANNOUNCEMENT_URL));
109
- } catch {
110
- return failed();
111
- }
112
- },
113
- // A link tapped inside the rich body: only http(s), mailto and tel links open (the shared rich-link rule).
114
- openLink: async (state, arg) => {
115
- await openRichLink(arg);
116
- return state;
117
- },
118
- },
119
- });
120
- current = () => handle.getState() as AnnouncementState;
121
- return handle;
122
- }
@@ -1,207 +0,0 @@
1
- // A blog post list as a registrable service: the One App compact post list, driven by the source section's settings.
2
- // limit unset -> follow the page cursor to the last post; limit N -> N posts and a "See All" for the same category,
3
- // show.{author,date,readingTime,likes,views,comments} -> exactly what the section's displayOptions enable,
4
- // relativeTime -> "2 hours ago" instead of the date,
5
- // countOrder -> the icon counts in the source's order (default likes, views, comments).
6
- // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe blog-post-row.json).
7
- import { defineService as register } from "@himalaya/state";
8
- import { queryPosts, type WixPost, type WixQueryPostsRequest } from "@himalaya/wix-blog";
9
- import { getPublicMember } from "@himalaya/wix-members";
10
- import { stashCopy, copyParam, copyPlural } from "./himi-copy.js";
11
- import { formatDateMedium, formatNumber } from "./engine-intl.js";
12
- import { relativeTime } from "./relative-time.js";
13
- import { coverOf } from "./himi-blog-post-row.js";
14
-
15
- export type CountKey = "likes" | "views" | "comments";
16
- const COUNT_KEYS: readonly CountKey[] = ["likes", "views", "comments"];
17
- const ICON: Record<CountKey, string> = { likes: "heart", views: "eye", comments: "message" };
18
-
19
- export interface BlogListOptions {
20
- categoryId?: string;
21
- /** Posts shown; unset follows the cursor to the last post. */
22
- limit?: number;
23
- show: { author?: boolean; cover?: boolean; date?: boolean; readingTime?: boolean; likes?: boolean; views?: boolean; comments?: boolean };
24
- relativeTime?: boolean;
25
- countOrder?: CountKey[];
26
- /** The post screen a row opens. */
27
- detailScreenId?: string;
28
- }
29
-
30
- export interface Count { key: CountKey; icon: string; value: number; text: string }
31
- interface CountSlot { Icon: string; Text: string; Num: string; has: boolean; no: boolean }
32
-
33
- export interface BlogRow {
34
- id: string; title: string; cover: string; hasCover: boolean; noCover: boolean; initial: string;
35
- /** Time and reading time ("2 hours ago · 4 min read"). */
36
- meta: string; hasMeta: boolean; noMeta: boolean;
37
- authorName: string; hasAuthor: boolean; noAuthor: boolean;
38
- counts: Count[]; hasCounts: boolean; noCounts: boolean;
39
- count1Icon: string; count1Text: string; count1Num: string; hasCount1: boolean; noCount1: boolean;
40
- count2Icon: string; count2Text: string; count2Num: string; hasCount2: boolean; noCount2: boolean;
41
- count3Icon: string; count3Text: string; count3Num: string; hasCount3: boolean; noCount3: boolean;
42
- detailScreenId: string;
43
- }
44
-
45
- export interface BlogListState {
46
- status: "loading" | "ready" | "error";
47
- rows: BlogRow[];
48
- /** Offset of the next page as a string; "" once the last post has loaded (scroll load-more). */
49
- nextCursor: string;
50
- loadingMore: boolean;
51
- total: number;
52
- notLoading: boolean; notErrored: boolean; noRows: boolean; notEmpty: boolean; noSeeAll: boolean;
53
- }
54
-
55
- /** The METRICS fieldset names, across the post DTO versions. */
56
- type Post = WixPost & {
57
- metrics?: { likes?: number; comments?: number; views?: number; likeCount?: number; totalComments?: number; commentCount?: number; viewCount?: number };
58
- memberId?: string;
59
- };
60
-
61
- const PAGE = 20;
62
- /** The most posts one query returns. A limited list asks for its whole count at once, up to this. */
63
- const MAX_PAGE = 100;
64
- const SLOTS = 3;
65
-
66
- function metric(post: Post, key: CountKey): number | undefined {
67
- const m = post.metrics ?? {};
68
- const value = key === "likes" ? m.likes ?? m.likeCount : key === "views" ? m.views ?? m.viewCount : m.comments ?? m.totalComments ?? m.commentCount;
69
- return typeof value === "number" ? value : undefined;
70
- }
71
-
72
- function countText(key: CountKey, value: number): string {
73
- return key === "likes" ? copyPlural("blogList.likesCount", "{n, plural, one {# like} other {# likes}}", value)
74
- : key === "views" ? copyPlural("blogList.viewsCount", "{n, plural, one {# view} other {# views}}", value)
75
- : copyPlural("blogList.commentsCount", "{n, plural, one {# comment} other {# comments}}", value);
76
- }
77
-
78
- /** The icon counts a section shows, in `order`. A count the API did not return is unknown, not zero: it is left out. */
79
- export function countsOf(post: Post, show: BlogListOptions["show"], order: readonly CountKey[]): Count[] {
80
- const out: Count[] = [];
81
- for (const key of order) {
82
- if (!show[key]) continue;
83
- const value = metric(post, key);
84
- if (value !== undefined) out.push({ key, icon: ICON[key], value, text: countText(key, value) });
85
- }
86
- return out;
87
- }
88
-
89
- const slotOf = (counts: Count[], index: number): CountSlot => {
90
- const count = counts[index];
91
- return { Icon: count?.icon ?? "", Text: count?.text ?? "", Num: count ? formatNumber(count.value) : "", has: !!count, no: !count };
92
- };
93
-
94
- export function registerBlogList(serviceName: string, options: BlogListOptions) {
95
- const order = (options.countOrder?.length ? options.countOrder : COUNT_KEYS).filter((key, i, all) => COUNT_KEYS.includes(key) && all.indexOf(key) === i);
96
- const limited = typeof options.limit === "number" && options.limit > 0;
97
- const detailScreenId = options.detailScreenId ?? "himi_blog_post";
98
- // Author names by member id, for this service only. A failed lookup stays unknown: no placeholder name.
99
- const authors = new Map<string, string>();
100
-
101
- async function resolveAuthors(posts: Post[]): Promise<void> {
102
- const ids = [...new Set(posts.map((p) => p.memberId).filter((id): id is string => !!id && !authors.has(id)))];
103
- await Promise.all(ids.map(async (id) => {
104
- // The PUBLIC profile only: a visitor can read it, and it carries the nickname without the login email or contact data.
105
- try { authors.set(id, (await getPublicMember(id)).member.profile?.nickname ?? ""); } catch { authors.set(id, ""); }
106
- }));
107
- }
108
-
109
- function rowOf(post: Post, now: number): BlogRow {
110
- const show = options.show;
111
- const bits: string[] = [];
112
- if (show.date && post.firstPublishedDate) {
113
- bits.push(options.relativeTime ? relativeTime(post.firstPublishedDate, now) : formatDateMedium(new Date(post.firstPublishedDate)));
114
- }
115
- if (show.readingTime && post.minutesToRead) bits.push(copyPlural("blogList.readingTime", "{n, plural, one {# min read} other {# min read}}", post.minutesToRead));
116
- const counts = countsOf(post, show, order);
117
- const [one, two, three] = [slotOf(counts, 0), slotOf(counts, 1), slotOf(counts, 2)];
118
- // A Wix media reference becomes a fetchable, list-sized URL; the owner turning the cover off (media.displayed) leaves none.
119
- const cover = show.cover === false ? "" : coverOf(post);
120
- const authorName = show.author && post.memberId ? authors.get(post.memberId) ?? "" : "";
121
- const title = post.title || copyParam("blogList.untitled", "Untitled post");
122
- const meta = bits.filter(Boolean).join(" · ");
123
- return {
124
- id: post.id, title, cover, hasCover: !!cover, noCover: !cover, initial: (title[0] ?? "#").toUpperCase(),
125
- meta, hasMeta: !!meta, noMeta: !meta,
126
- authorName, hasAuthor: !!authorName, noAuthor: !authorName,
127
- counts, hasCounts: counts.length > 0, noCounts: counts.length === 0,
128
- count1Icon: one.Icon, count1Text: one.Text, count1Num: one.Num, hasCount1: one.has, noCount1: one.no,
129
- count2Icon: two.Icon, count2Text: two.Text, count2Num: two.Num, hasCount2: two.has, noCount2: two.no,
130
- count3Icon: three.Icon, count3Text: three.Text, count3Num: three.Num, hasCount3: three.has, noCount3: three.no,
131
- detailScreenId,
132
- };
133
- }
134
-
135
- /** `more`: there are posts past `rows`. It is the page read's answer, not `next < total`: the API may omit the total. */
136
- function view(status: BlogListState["status"], rows: BlogRow[], next: number, total: number, more: boolean, loadingMore = false): BlogListState {
137
- return {
138
- status, rows, loadingMore, total,
139
- // An unlimited list follows the cursor; a limited one stops at its authored count.
140
- nextCursor: !limited && more ? String(next) : "",
141
- notLoading: status !== "loading", notErrored: status !== "error",
142
- noRows: !rows.length, notEmpty: !(status === "ready" && !rows.length),
143
- // See All only for a LIMITED list that has more posts than it shows.
144
- noSeeAll: !(limited && more),
145
- };
146
- }
147
-
148
- async function page(offset: number): Promise<{ rows: BlogRow[]; next: number; total: number; more: boolean }> {
149
- // A limited list reads its whole count (several queries when it is above the API's per-query cap); an unlimited one a page at a time.
150
- const want = limited ? options.limit as number : PAGE;
151
- const rows: BlogRow[] = [];
152
- let at = offset;
153
- let total: number | undefined;
154
- /** Posts exist past what was read: by the total when the API gives one, else because the last page came back full. */
155
- let more = false;
156
- while (rows.length < want) {
157
- const size = Math.min(want - rows.length, limited ? MAX_PAGE : PAGE);
158
- const result = await queryPosts({
159
- fieldsets: ["METRICS"],
160
- query: {
161
- filter: options.categoryId ? { categoryIds: { $hasSome: [options.categoryId] } } : {},
162
- paging: { limit: size, offset: at },
163
- sort: [{ fieldName: "firstPublishedDate", order: "DESC" }],
164
- },
165
- } as WixQueryPostsRequest & { fieldsets: string[] });
166
- const posts = (result.posts ?? []) as Post[];
167
- if (options.show.author) await resolveAuthors(posts);
168
- const now = Date.now();
169
- rows.push(...posts.map((post) => rowOf(post, now)));
170
- at += posts.length;
171
- total = result.pagingMetadata?.total;
172
- // The total is optional in the response: without it, a full page means there may be more, a short or empty one means there is not.
173
- more = total !== undefined ? at < total : posts.length === size;
174
- if (!more) break;
175
- }
176
- return { rows, next: offset + rows.length, total: total ?? offset + rows.length, more };
177
- }
178
-
179
- const initial = view("loading", [], 0, 0, false);
180
- /** This run has read the posts. A cold boot restores last session's rows as "ready"; they are revalidated once, then a re-appear keeps them. */
181
- let loadedThisRun = false;
182
- const reload = async (): Promise<BlogListState> => {
183
- try { const p = await page(0); loadedThisRun = true; return view("ready", p.rows, p.next, p.total, p.more); }
184
- catch (error) { console.warn("blog_list: the posts could not be read", error); return view("error", [], 0, 0, false); }
185
- };
186
- const svc = register<BlogListState, {
187
- load: (state: BlogListState, arg?: unknown) => Promise<BlogListState>;
188
- retry: (state: BlogListState) => Promise<BlogListState>;
189
- loadMore: (state: BlogListState) => Promise<BlogListState>;
190
- }>(serviceName, {
191
- state: initial,
192
- actions: {
193
- // The screen's onAppear fires on every re-appear (back from a post): a list that has posts keeps them and its scroll position. Only an empty (nothing yet, or a failed read) list reads, so posts added while away show on return; retry always reads.
194
- load: async (state, arg) => { stashCopy(arg); return loadedThisRun && state.status === "ready" && state.rows.length ? state : reload(); },
195
- retry: reload,
196
- loadMore: async (state) => {
197
- if (!state.nextCursor || state.loadingMore) return state;
198
- try {
199
- const p = await page(Number(state.nextCursor));
200
- return view("ready", [...state.rows, ...p.rows], p.next, p.total, p.more);
201
- } catch (error) { console.warn("blog_list: the next page of posts could not be read", error); return { ...state, loadingMore: false }; }
202
- },
203
- },
204
- });
205
- // No load at registration: the page's onAppear loads (with the copy pack), so a page-hosted service reads only when its section appears.
206
- return svc;
207
- }
@@ -1,86 +0,0 @@
1
- // Pure Events registration helpers shared by the event detail and the event list: which action an
2
- // event offers, its label, and the URLs behind it. One copy, so a card and the detail screen never
3
- // disagree about whether an event can be registered for.
4
- import type { WixEvent } from "@himalaya/wix-events";
5
- import { formatWeekdayDateTime } from "./engine-intl.js";
6
- import { copyParam } from "./himi-copy.js";
7
-
8
- function detailCopy(key: string, fallback: string): string { return copyParam(key, fallback); }
9
-
10
- /** Registration CTA kind derived from the event's registration/eventType. */
11
- export type RegistrationKind = "rsvp" | "tickets" | "external" | "none";
12
-
13
- /** Map registration status and decoded eventType onto the CTA variant. The decoded
14
- * `eventType` already folds registration.type / registration.initialType /
15
- * the legacy flat `type` (decodeEvent, #478). Without a recognized type or
16
- * status there is no registration action to offer. */
17
- export function registrationKindOf(e: WixEvent): RegistrationKind {
18
- const raw = e as unknown as { registration?: { type?: string; initialType?: string; status?: string } };
19
- const value = (raw.registration?.type ?? e.eventType ?? raw.registration?.initialType ?? "").toUpperCase();
20
- if (value === "NONE" || value.includes("NO_REGISTRATION")) return "none";
21
- // Open statuses select the footer action, so they must also select the
22
- // inventory read and action guards when type metadata is absent or stale.
23
- switch (raw.registration?.status?.toUpperCase()) {
24
- case "OPEN_TICKETS": return "tickets";
25
- case "OPEN_EXTERNAL": return "external";
26
- case "OPEN_RSVP":
27
- case "OPEN_RSVP_WAITLIST_ONLY":
28
- case "SCHEDULED_RSVP": return "rsvp";
29
- }
30
- if (value.includes("EXTERNAL")) return "external";
31
- if (value.includes("TICKET")) return "tickets";
32
- if (value.includes("RSVP")) return "rsvp";
33
- return "none";
34
- }
35
-
36
- export function eventStatus(e: WixEvent): string {
37
- const raw = e as unknown as { status?: string };
38
- return (raw.status ?? e.eventStatus ?? "").toUpperCase();
39
- }
40
-
41
- export function registrationUi(e: WixEvent, now: number): { state: string; label: string; action: string; caption: string; notice: string } {
42
- const raw = e as unknown as { registration?: { status?: string; registrationPaused?: boolean; registrationDisabled?: boolean; allowedGuestTypes?: string; rsvp?: { startDate?: string }; tickets?: { soldOut?: boolean }; external?: { url?: string } }; form?: { messages?: { registrationClosed?: { message?: string; exploreEventsActionLabel?: string }; ticketsUnavailable?: { message?: string; exploreEventsActionLabel?: string } } } };
43
- const r = raw.registration ?? {};
44
- const status = eventStatus(e);
45
- const type = registrationKindOf(e);
46
- if (status === "CANCELED") return { state: "notice", label: "", action: "", caption: "", notice: detailCopy("event.canceledNotice", "This event was canceled.") };
47
- if (status === "ENDED") return { state: "notice", label: "", action: "", caption: "", notice: detailCopy("event.endedNotice", "This event has ended.") };
48
- if (type === "none" || r.registrationDisabled) return { state: "none", label: "", action: "", caption: "", notice: "" };
49
- const ownerClosed = raw.form?.messages?.registrationClosed?.message;
50
- const ownerSold = raw.form?.messages?.ticketsUnavailable?.message;
51
- if (["CLOSED_AUTOMATICALLY", "CLOSED_MANUALLY"].includes(r.status || "") || r.registrationPaused) return { state: "notice", label: "", action: "", caption: "", notice: ownerClosed || detailCopy("event.closedNotice", "Registration is closed.") };
52
- if (type === "tickets" && r.tickets?.soldOut) return { state: "notice", label: "", action: "", caption: "", notice: ownerSold || detailCopy("event.soldOutNotice", "Tickets are sold out.") };
53
- if (r.status === "SCHEDULED_RSVP") return { state: "scheduled", label: detailCopy("event.rsvpCta", "RSVP"), action: "", caption: detailCopy("event.opensCaption", "RSVP opens {date}.").replace("{date}", r.rsvp?.startDate ? formatWeekdayDateTime(new Date(r.rsvp.startDate)) : ""), notice: "" };
54
- if (r.status === "OPEN_RSVP_WAITLIST_ONLY") return { state: "waitlist", label: detailCopy("event.waitlistCta", "Join Waitlist"), action: "himi.open", caption: detailCopy("event.fullCaption", "This event is full."), notice: "" };
55
- if (r.status === "OPEN_TICKETS" || type === "tickets") return { state: "tickets", label: detailCopy("event.ticketsCta", "Buy Tickets"), action: "openTickets", caption: "", notice: "" };
56
- if (r.status === "OPEN_EXTERNAL" || type === "external") return registrationUrlOf(e)
57
- ? { state: "external", label: detailCopy("event.externalCta", "Register"), action: "openRegistration", caption: "", notice: "" }
58
- : { state: "none", label: "", action: "", caption: "", notice: "" };
59
- if (type === "rsvp" && r.status === "OPEN_RSVP") return { state: "rsvp", label: detailCopy("event.rsvpCta", "RSVP"), action: "himi.open", caption: "", notice: "" };
60
- if (r.status === "OPEN_RSVP" || (type === "rsvp" && !r.status)) return { state: "rsvp", label: detailCopy("event.rsvpCta", "RSVP"), action: "himi.open", caption: "", notice: "" };
61
- void now;
62
- return { state: "none", label: "", action: "", caption: "", notice: "" };
63
- }
64
-
65
- /** External registration URL / event page URL from the raw payload ("" when absent). */
66
- export function registrationUrlOf(e: WixEvent): string {
67
- const raw = e as unknown as {
68
- registration?: { external?: { registration?: string; url?: string } };
69
- eventPageUrl?: { base?: string; path?: string } | string;
70
- };
71
- const external = raw.registration?.external?.registration ?? raw.registration?.external?.url;
72
- if (typeof external === "string" && /^https?:\/\//i.test(external)) return external;
73
- return eventPageUrlOf(e);
74
- }
75
-
76
- /** The event's public page URL when the payload carries one ("" otherwise). */
77
- export function eventPageUrlOf(e: WixEvent): string {
78
- const raw = e as unknown as { eventPageUrl?: { base?: string; path?: string } | string };
79
- const page = raw.eventPageUrl;
80
- if (typeof page === "string" && /^https?:\/\//i.test(page)) return page;
81
- if (page && typeof page === "object" && typeof page.base === "string" && page.base) {
82
- const path = typeof page.path === "string" ? page.path : "";
83
- return `${page.base.replace(/\/$/, "")}${path && !path.startsWith("/") ? "/" : ""}${path}`;
84
- }
85
- return "";
86
- }
@@ -1,33 +0,0 @@
1
- // The event CARD facts shared by the events list and the inline events section: the date badge, the registration verb and
2
- // the page URL for Share. One copy, so a card on a page and a card in the list never disagree about what an event offers.
3
- import type { WixEvent } from "@himalaya/wix-events";
4
- import type { EventRow } from "./himi-events";
5
- import { eventPageUrlOf, registrationUi } from "./event-registration.js";
6
-
7
- export interface ListEventRow extends EventRow {
8
- /** "10\nNOV" for an event with a calendar date; "" for an undated one (the card then shows the day monogram). */
9
- dateBadge: string; noDateBadge: boolean;
10
- /** This card's verb (Register / RSVP / Buy Tickets / Join Waitlist / Free Event) from the SAME rule the detail uses; hidden when none applies. */
11
- actionLabel: string; noAction: boolean;
12
- /** The event page URL (when the payload carries one) for Share. */
13
- shareUrl: string;
14
- }
15
-
16
- /** The month must be the three-letter abbreviation: rows cached by an older worker on an Intl-less engine can hold a
17
- * whole "11/10/2030, 12:00:00 PM" there. Only an actual calendar date becomes a badge. */
18
- export function withDateBadge(row: EventRow): ListEventRow {
19
- const dated = typeof row.month === "string" && /^[A-Z]{3}$/.test(row.month)
20
- && /^(?:[1-9]|[12]\d|3[01])$/.test(row.day);
21
- const known = row as Partial<ListEventRow>;
22
- // Rows cached by an older build carry no registration data: they show no verb until a refresh, never a wrong one.
23
- return { ...row, dateBadge: dated ? `${row.day}\n${row.month}` : "", noDateBadge: !dated,
24
- actionLabel: known.actionLabel ?? "", noAction: known.noAction ?? true, shareUrl: known.shareUrl ?? "" };
25
- }
26
-
27
- /** The card's action, from the event's own registration (REGISTRATION + URLS fieldsets). Cancelled, ended, closed, sold-out and
28
- * registration-less events offer none, so a card never promises "Register" where the detail refuses. */
29
- export function withRegistration(raw: WixEvent, row: ListEventRow): ListEventRow {
30
- const ui = registrationUi(raw, Date.now());
31
- const offers = ui.state !== "notice" && ui.state !== "none" && ui.state !== "scheduled" && !!ui.label;
32
- return { ...row, actionLabel: offers ? ui.label : "", noAction: !offers, shareUrl: eventPageUrlOf(raw) };
33
- }
@@ -1,25 +0,0 @@
1
- // The pure options of the inline events section. No imports: Node tests read it directly, and the worker bundle shares it.
2
-
3
- export interface EventsInlineOptions {
4
- /** How many events the section shows. Clamped to 1..10; default 3. */
5
- limit?: number;
6
- }
7
-
8
- export const EVENTS_INLINE_DEFAULT_LIMIT = 3;
9
- export const EVENTS_INLINE_MAX_LIMIT = 10;
10
-
11
- /** A bad or missing limit is the default, never an error: the value arrives from a generated recipe. */
12
- export function eventsInlineLimit(value: unknown): number {
13
- const n = typeof value === "number" ? value : Number(value);
14
- if (!Number.isFinite(n)) return EVENTS_INLINE_DEFAULT_LIMIT;
15
- return Math.min(EVENTS_INLINE_MAX_LIMIT, Math.max(1, Math.trunc(n)));
16
- }
17
-
18
- /** Events that have not finished: not started yet, or still running (a festival on its second day is still on). */
19
- export function upcomingFilter(nowIso: string): Record<string, unknown> {
20
- return {
21
- status: { $ne: "DRAFT" },
22
- $or: [{ "dateAndTimeSettings.startDate": { $gte: nowIso } }, { "dateAndTimeSettings.endDate": { $gte: nowIso } }],
23
- };
24
- }
25
-
@@ -1,84 +0,0 @@
1
- // The INLINE events section: the next few events as cards, hosted by any worker that wants them next to other sections
2
- // (a page that mixes text, a button and an events list), or on its own through `himi-events-inline`. The section is data only:
3
- // `eventsInlineSection(...)` in the app's events-inline section builder is the card that reads it, bound as
4
- // `$service:<serviceName>.*`.
5
- //
6
- // What it does NOT show, on purpose: attendees. Neither a Visitor nor a Member can read an event's guest list (probed: the owner
7
- // guest list 404s, the guests and rsvps queries 403), so an avatar stack would be invented. Nothing here claims otherwise.
8
- import { defineService } from "@himalaya/state";
9
- import { queryEvents, type WixEvent } from "@himalaya/wix-events";
10
- import { share as shareSheet } from "@himalaya/share";
11
- import { normalizeEvent } from "./himi-events";
12
- import { copyParam, stashCopy } from "./himi-copy.js";
13
- import { withDateBadge, withRegistration, type ListEventRow } from "./events-card.js";
14
- import { eventsInlineLimit, upcomingFilter, type EventsInlineOptions } from "./events-inline-options.js";
15
-
16
- export { EVENTS_INLINE_DEFAULT_LIMIT, EVENTS_INLINE_MAX_LIMIT, eventsInlineLimit, upcomingFilter, type EventsInlineOptions } from "./events-inline-options.js";
17
-
18
- export interface EventsInlineState {
19
- status: "loading" | "ready" | "error";
20
- rows: ListEventRow[];
21
- /** More upcoming events exist than the section shows: the See-all link is meaningful. */
22
- hasMore: boolean;
23
- isLoading: boolean; notLoading: boolean;
24
- isErrored: boolean; notErrored: boolean;
25
- hasRows: boolean; noRows: boolean;
26
- /** The empty state's title and the line under it, "" while there are rows (the section collapses them). */
27
- emptyText: string; emptyBody: string; noEmpty: boolean;
28
- noMore: boolean;
29
- }
30
-
31
- function derive(state: Omit<EventsInlineState, "isLoading" | "notLoading" | "isErrored" | "notErrored" | "hasRows" | "noRows" | "noEmpty" | "noMore">): EventsInlineState {
32
- const ready = state.status === "ready";
33
- return {
34
- ...state,
35
- isLoading: state.status === "loading", notLoading: state.status !== "loading",
36
- isErrored: state.status === "error", notErrored: state.status !== "error",
37
- hasRows: state.rows.length > 0, noRows: state.rows.length === 0,
38
- noEmpty: !(ready && state.rows.length === 0),
39
- noMore: !state.hasMore,
40
- };
41
- }
42
-
43
- export function registerEventsInline(serviceName: string, options: EventsInlineOptions = {}) {
44
- const limit = eventsInlineLimit(options.limit);
45
- const initial = derive({ status: "loading", rows: [], hasMore: false, emptyText: "", emptyBody: "" });
46
- return defineService<EventsInlineState, {
47
- load: (state: EventsInlineState, arg?: unknown) => Promise<EventsInlineState>;
48
- share: (state: EventsInlineState, arg?: unknown) => Promise<EventsInlineState>;
49
- }>(serviceName, {
50
- state: initial,
51
- actions: {
52
- load: async (state, arg) => {
53
- stashCopy(arg);
54
- try {
55
- const res = await queryEvents({
56
- limit, offset: 0, fields: ["DETAILS", "REGISTRATION", "URLS"],
57
- query: { filter: upcomingFilter(new Date().toISOString()),
58
- sort: [{ fieldName: "dateAndTimeSettings.startDate", order: "ASC" }, { fieldName: "id", order: "ASC" }] },
59
- });
60
- const raw: WixEvent[] = (res.events ?? []).filter((event) => !!event.id);
61
- const rows = raw.map((event) => withRegistration(event, withDateBadge(normalizeEvent(event))));
62
- const total = (res as { pagingMetadata?: { total?: number } }).pagingMetadata?.total;
63
- return derive({
64
- status: "ready", rows, hasMore: typeof total === "number" ? total > rows.length : false,
65
- // The original One App's own empty state: a title and what the section will offer once there are events.
66
- emptyText: rows.length ? "" : copyParam("eventsInline.emptyTitle", "No Events Yet"),
67
- emptyBody: rows.length ? "" : copyParam("eventsInline.emptyBody", "Once we add new events you'll be able to RSVP and buy tickets for them here."),
68
- });
69
- } catch (error) {
70
- console.warn("events_inline: the events could not be read", error);
71
- return derive({ ...state, status: "error", rows: [], hasMore: false, emptyText: "", emptyBody: "" });
72
- }
73
- },
74
- // Share one card's event: its title and date line, plus the event page when the payload carried one.
75
- share: async (state, arg) => {
76
- const id = typeof arg === "string" ? arg : String((arg as { id?: unknown } | undefined)?.id ?? "");
77
- const row = state.rows.find((item) => item.id === id);
78
- if (!row) return state;
79
- try { await shareSheet({ subject: row.title, text: [row.title, row.dateLine].filter(Boolean).join(" — "), ...(row.shareUrl ? { url: row.shareUrl } : {}) }); } catch { /* the sheet is best-effort */ }
80
- return state;
81
- },
82
- },
83
- });
84
- }