@wix/himalaya-cli 0.1762.0 → 0.1764.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 (693) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-client.d.ts +115 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-screen.d.ts +57 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-service.d.ts +441 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +1032 -117
  6. package/dist/cli.mjs +73447 -72087
  7. package/guides/base44-app-to-himi-app.md +56 -0
  8. package/guides/getting-started.md +2 -0
  9. package/guides/himi-json-output.md +35 -0
  10. package/guides/himi-skill.md +2 -0
  11. package/guides/index.json +6 -0
  12. package/guides/one-app-section-mappings.md +6 -6
  13. package/guides/one-app-to-himi-app.md +27 -4
  14. package/guides/push-cli-onboarding.md +25 -14
  15. package/guides/wix-file-share.md +168 -0
  16. package/guides/wix-site-to-himi-app.md +1 -0
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/l10n/ar.json +9 -420
  19. package/templates/beauty-salon/l10n/cs.json +9 -420
  20. package/templates/beauty-salon/l10n/da.json +9 -420
  21. package/templates/beauty-salon/l10n/de.json +9 -420
  22. package/templates/beauty-salon/l10n/el.json +9 -420
  23. package/templates/beauty-salon/l10n/en.json +8 -61
  24. package/templates/beauty-salon/l10n/es.json +9 -420
  25. package/templates/beauty-salon/l10n/fi.json +9 -420
  26. package/templates/beauty-salon/l10n/fr.json +9 -420
  27. package/templates/beauty-salon/l10n/he.json +9 -338
  28. package/templates/beauty-salon/l10n/hu.json +9 -420
  29. package/templates/beauty-salon/l10n/id.json +9 -420
  30. package/templates/beauty-salon/l10n/it.json +9 -420
  31. package/templates/beauty-salon/l10n/ja.json +9 -420
  32. package/templates/beauty-salon/l10n/ko.json +9 -420
  33. package/templates/beauty-salon/l10n/lt.json +9 -420
  34. package/templates/beauty-salon/l10n/nl.json +9 -420
  35. package/templates/beauty-salon/l10n/no.json +9 -420
  36. package/templates/beauty-salon/l10n/pl.json +9 -420
  37. package/templates/beauty-salon/l10n/pt.json +9 -420
  38. package/templates/beauty-salon/l10n/ru.json +9 -420
  39. package/templates/beauty-salon/l10n/sv.json +9 -420
  40. package/templates/beauty-salon/l10n/th.json +9 -420
  41. package/templates/beauty-salon/l10n/tr.json +9 -420
  42. package/templates/beauty-salon/l10n/uk.json +9 -420
  43. package/templates/beauty-salon/l10n/vi.json +9 -420
  44. package/templates/beauty-salon/l10n/zh.json +9 -420
  45. package/templates/branded-lite/l10n/ar.json +31 -140
  46. package/templates/branded-lite/l10n/cs.json +31 -140
  47. package/templates/branded-lite/l10n/da.json +31 -140
  48. package/templates/branded-lite/l10n/de.json +31 -140
  49. package/templates/branded-lite/l10n/el.json +31 -140
  50. package/templates/branded-lite/l10n/en.json +8 -6
  51. package/templates/branded-lite/l10n/es.json +31 -140
  52. package/templates/branded-lite/l10n/fi.json +31 -140
  53. package/templates/branded-lite/l10n/fr.json +31 -140
  54. package/templates/branded-lite/l10n/he.json +27 -112
  55. package/templates/branded-lite/l10n/hu.json +31 -140
  56. package/templates/branded-lite/l10n/id.json +31 -140
  57. package/templates/branded-lite/l10n/it.json +31 -140
  58. package/templates/branded-lite/l10n/ja.json +31 -140
  59. package/templates/branded-lite/l10n/ko.json +31 -140
  60. package/templates/branded-lite/l10n/lt.json +31 -140
  61. package/templates/branded-lite/l10n/nl.json +31 -140
  62. package/templates/branded-lite/l10n/no.json +31 -140
  63. package/templates/branded-lite/l10n/pl.json +31 -140
  64. package/templates/branded-lite/l10n/pt.json +31 -140
  65. package/templates/branded-lite/l10n/ru.json +31 -140
  66. package/templates/branded-lite/l10n/sv.json +31 -140
  67. package/templates/branded-lite/l10n/th.json +31 -140
  68. package/templates/branded-lite/l10n/tr.json +31 -140
  69. package/templates/branded-lite/l10n/uk.json +31 -140
  70. package/templates/branded-lite/l10n/vi.json +31 -140
  71. package/templates/branded-lite/l10n/zh.json +31 -140
  72. package/templates/branded-lite/recipes/blog-search.json +45 -0
  73. package/templates/{beauty-salon/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-carousel.json} +39 -118
  74. package/templates/{gym-fitness/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-list.json} +43 -121
  75. package/templates/{beauty-salon/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
  76. package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
  77. package/templates/{events-meetups/recipes/groups-list.json → branded-lite/recipes/services-list.json} +33 -9
  78. package/templates/{community-club/recipes/groups-list.json → branded-lite/recipes/subscriptions-list.json} +124 -60
  79. package/templates/branded-lite/recipes/upcoming-bookings.json +350 -0
  80. package/templates/branded-lite/recipes/videos-carousel.json +248 -0
  81. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +75 -21
  82. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +115 -0
  83. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +137 -0
  84. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -3
  85. package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +107 -0
  86. package/templates/branded-lite/tier5-src/_shared/plans-section.ts +11 -3
  87. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -0
  88. package/templates/branded-lite/tier5-src/_shared/services-section.ts +122 -0
  89. package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +102 -0
  90. package/templates/branded-lite/tier5-src/_shared/videos-section.ts +91 -0
  91. package/templates/branded-lite/tier5-src/himi-branded-lite-file-share/index.ts +8 -631
  92. package/templates/community-club/l10n/ar.json +0 -412
  93. package/templates/community-club/l10n/cs.json +0 -412
  94. package/templates/community-club/l10n/da.json +0 -412
  95. package/templates/community-club/l10n/de.json +0 -412
  96. package/templates/community-club/l10n/el.json +0 -412
  97. package/templates/community-club/l10n/en.json +1 -46
  98. package/templates/community-club/l10n/es.json +0 -412
  99. package/templates/community-club/l10n/fi.json +0 -412
  100. package/templates/community-club/l10n/fr.json +0 -412
  101. package/templates/community-club/l10n/he.json +0 -331
  102. package/templates/community-club/l10n/hu.json +0 -412
  103. package/templates/community-club/l10n/id.json +0 -412
  104. package/templates/community-club/l10n/it.json +0 -412
  105. package/templates/community-club/l10n/ja.json +0 -412
  106. package/templates/community-club/l10n/ko.json +0 -412
  107. package/templates/community-club/l10n/lt.json +0 -412
  108. package/templates/community-club/l10n/nl.json +0 -412
  109. package/templates/community-club/l10n/no.json +0 -412
  110. package/templates/community-club/l10n/pl.json +0 -412
  111. package/templates/community-club/l10n/pt.json +0 -412
  112. package/templates/community-club/l10n/ru.json +0 -412
  113. package/templates/community-club/l10n/sv.json +0 -412
  114. package/templates/community-club/l10n/th.json +0 -412
  115. package/templates/community-club/l10n/tr.json +0 -412
  116. package/templates/community-club/l10n/uk.json +0 -412
  117. package/templates/community-club/l10n/vi.json +0 -412
  118. package/templates/community-club/l10n/zh.json +0 -412
  119. package/templates/events-meetups/l10n/ar.json +0 -412
  120. package/templates/events-meetups/l10n/cs.json +0 -412
  121. package/templates/events-meetups/l10n/da.json +0 -412
  122. package/templates/events-meetups/l10n/de.json +0 -412
  123. package/templates/events-meetups/l10n/el.json +0 -412
  124. package/templates/events-meetups/l10n/en.json +1 -46
  125. package/templates/events-meetups/l10n/es.json +0 -412
  126. package/templates/events-meetups/l10n/fi.json +0 -412
  127. package/templates/events-meetups/l10n/fr.json +0 -412
  128. package/templates/events-meetups/l10n/he.json +0 -331
  129. package/templates/events-meetups/l10n/hu.json +0 -412
  130. package/templates/events-meetups/l10n/id.json +0 -412
  131. package/templates/events-meetups/l10n/it.json +0 -412
  132. package/templates/events-meetups/l10n/ja.json +0 -412
  133. package/templates/events-meetups/l10n/ko.json +0 -412
  134. package/templates/events-meetups/l10n/lt.json +0 -412
  135. package/templates/events-meetups/l10n/nl.json +0 -412
  136. package/templates/events-meetups/l10n/no.json +0 -412
  137. package/templates/events-meetups/l10n/pl.json +0 -412
  138. package/templates/events-meetups/l10n/pt.json +0 -412
  139. package/templates/events-meetups/l10n/ru.json +0 -412
  140. package/templates/events-meetups/l10n/sv.json +0 -412
  141. package/templates/events-meetups/l10n/th.json +0 -412
  142. package/templates/events-meetups/l10n/tr.json +0 -412
  143. package/templates/events-meetups/l10n/uk.json +0 -412
  144. package/templates/events-meetups/l10n/vi.json +0 -412
  145. package/templates/events-meetups/l10n/zh.json +0 -412
  146. package/templates/gym-fitness/l10n/ar.json +9 -405
  147. package/templates/gym-fitness/l10n/cs.json +9 -405
  148. package/templates/gym-fitness/l10n/da.json +9 -405
  149. package/templates/gym-fitness/l10n/de.json +9 -405
  150. package/templates/gym-fitness/l10n/el.json +9 -405
  151. package/templates/gym-fitness/l10n/en.json +8 -51
  152. package/templates/gym-fitness/l10n/es.json +9 -405
  153. package/templates/gym-fitness/l10n/fi.json +9 -405
  154. package/templates/gym-fitness/l10n/fr.json +9 -405
  155. package/templates/gym-fitness/l10n/he.json +9 -326
  156. package/templates/gym-fitness/l10n/hu.json +9 -405
  157. package/templates/gym-fitness/l10n/id.json +9 -405
  158. package/templates/gym-fitness/l10n/it.json +9 -405
  159. package/templates/gym-fitness/l10n/ja.json +9 -405
  160. package/templates/gym-fitness/l10n/ko.json +9 -405
  161. package/templates/gym-fitness/l10n/lt.json +9 -405
  162. package/templates/gym-fitness/l10n/nl.json +9 -405
  163. package/templates/gym-fitness/l10n/no.json +9 -405
  164. package/templates/gym-fitness/l10n/pl.json +9 -405
  165. package/templates/gym-fitness/l10n/pt.json +9 -405
  166. package/templates/gym-fitness/l10n/ru.json +9 -405
  167. package/templates/gym-fitness/l10n/sv.json +9 -405
  168. package/templates/gym-fitness/l10n/th.json +9 -405
  169. package/templates/gym-fitness/l10n/tr.json +9 -405
  170. package/templates/gym-fitness/l10n/uk.json +9 -405
  171. package/templates/gym-fitness/l10n/vi.json +9 -405
  172. package/templates/gym-fitness/l10n/zh.json +9 -405
  173. package/templates/nonprofit-cause/l10n/ar.json +0 -387
  174. package/templates/nonprofit-cause/l10n/cs.json +0 -387
  175. package/templates/nonprofit-cause/l10n/da.json +0 -387
  176. package/templates/nonprofit-cause/l10n/de.json +0 -387
  177. package/templates/nonprofit-cause/l10n/el.json +0 -387
  178. package/templates/nonprofit-cause/l10n/en.json +1 -46
  179. package/templates/nonprofit-cause/l10n/es.json +0 -387
  180. package/templates/nonprofit-cause/l10n/fi.json +0 -387
  181. package/templates/nonprofit-cause/l10n/fr.json +0 -387
  182. package/templates/nonprofit-cause/l10n/he.json +0 -311
  183. package/templates/nonprofit-cause/l10n/hu.json +0 -387
  184. package/templates/nonprofit-cause/l10n/id.json +0 -387
  185. package/templates/nonprofit-cause/l10n/it.json +0 -387
  186. package/templates/nonprofit-cause/l10n/ja.json +0 -387
  187. package/templates/nonprofit-cause/l10n/ko.json +0 -387
  188. package/templates/nonprofit-cause/l10n/lt.json +0 -387
  189. package/templates/nonprofit-cause/l10n/nl.json +0 -387
  190. package/templates/nonprofit-cause/l10n/no.json +0 -387
  191. package/templates/nonprofit-cause/l10n/pl.json +0 -387
  192. package/templates/nonprofit-cause/l10n/pt.json +0 -387
  193. package/templates/nonprofit-cause/l10n/ru.json +0 -387
  194. package/templates/nonprofit-cause/l10n/sv.json +0 -387
  195. package/templates/nonprofit-cause/l10n/th.json +0 -387
  196. package/templates/nonprofit-cause/l10n/tr.json +0 -387
  197. package/templates/nonprofit-cause/l10n/uk.json +0 -387
  198. package/templates/nonprofit-cause/l10n/vi.json +0 -387
  199. package/templates/nonprofit-cause/l10n/zh.json +0 -387
  200. package/templates/podcast-creator/l10n/ar.json +0 -417
  201. package/templates/podcast-creator/l10n/cs.json +0 -417
  202. package/templates/podcast-creator/l10n/da.json +0 -417
  203. package/templates/podcast-creator/l10n/de.json +0 -417
  204. package/templates/podcast-creator/l10n/el.json +0 -417
  205. package/templates/podcast-creator/l10n/en.json +1 -46
  206. package/templates/podcast-creator/l10n/es.json +0 -417
  207. package/templates/podcast-creator/l10n/fi.json +0 -417
  208. package/templates/podcast-creator/l10n/fr.json +0 -417
  209. package/templates/podcast-creator/l10n/he.json +0 -335
  210. package/templates/podcast-creator/l10n/hu.json +0 -417
  211. package/templates/podcast-creator/l10n/id.json +0 -417
  212. package/templates/podcast-creator/l10n/it.json +0 -417
  213. package/templates/podcast-creator/l10n/ja.json +0 -417
  214. package/templates/podcast-creator/l10n/ko.json +0 -417
  215. package/templates/podcast-creator/l10n/lt.json +0 -417
  216. package/templates/podcast-creator/l10n/nl.json +0 -417
  217. package/templates/podcast-creator/l10n/no.json +0 -417
  218. package/templates/podcast-creator/l10n/pl.json +0 -417
  219. package/templates/podcast-creator/l10n/pt.json +0 -417
  220. package/templates/podcast-creator/l10n/ru.json +0 -417
  221. package/templates/podcast-creator/l10n/sv.json +0 -417
  222. package/templates/podcast-creator/l10n/th.json +0 -417
  223. package/templates/podcast-creator/l10n/tr.json +0 -417
  224. package/templates/podcast-creator/l10n/uk.json +0 -417
  225. package/templates/podcast-creator/l10n/vi.json +0 -417
  226. package/templates/podcast-creator/l10n/zh.json +0 -417
  227. package/templates/portfolio-creative/l10n/ar.json +0 -437
  228. package/templates/portfolio-creative/l10n/cs.json +0 -437
  229. package/templates/portfolio-creative/l10n/da.json +0 -437
  230. package/templates/portfolio-creative/l10n/de.json +0 -437
  231. package/templates/portfolio-creative/l10n/el.json +0 -437
  232. package/templates/portfolio-creative/l10n/en.json +1 -46
  233. package/templates/portfolio-creative/l10n/es.json +0 -437
  234. package/templates/portfolio-creative/l10n/fi.json +0 -437
  235. package/templates/portfolio-creative/l10n/fr.json +0 -437
  236. package/templates/portfolio-creative/l10n/he.json +0 -351
  237. package/templates/portfolio-creative/l10n/hu.json +0 -437
  238. package/templates/portfolio-creative/l10n/id.json +0 -437
  239. package/templates/portfolio-creative/l10n/it.json +0 -437
  240. package/templates/portfolio-creative/l10n/ja.json +0 -437
  241. package/templates/portfolio-creative/l10n/ko.json +0 -437
  242. package/templates/portfolio-creative/l10n/lt.json +0 -437
  243. package/templates/portfolio-creative/l10n/nl.json +0 -437
  244. package/templates/portfolio-creative/l10n/no.json +0 -437
  245. package/templates/portfolio-creative/l10n/pl.json +0 -437
  246. package/templates/portfolio-creative/l10n/pt.json +0 -437
  247. package/templates/portfolio-creative/l10n/ru.json +0 -437
  248. package/templates/portfolio-creative/l10n/sv.json +0 -437
  249. package/templates/portfolio-creative/l10n/th.json +0 -437
  250. package/templates/portfolio-creative/l10n/tr.json +0 -437
  251. package/templates/portfolio-creative/l10n/uk.json +0 -437
  252. package/templates/portfolio-creative/l10n/vi.json +0 -437
  253. package/templates/portfolio-creative/l10n/zh.json +0 -437
  254. package/templates/restaurant/l10n/ar.json +0 -447
  255. package/templates/restaurant/l10n/cs.json +0 -447
  256. package/templates/restaurant/l10n/da.json +0 -447
  257. package/templates/restaurant/l10n/de.json +0 -447
  258. package/templates/restaurant/l10n/el.json +0 -447
  259. package/templates/restaurant/l10n/en.json +1 -46
  260. package/templates/restaurant/l10n/es.json +0 -447
  261. package/templates/restaurant/l10n/fi.json +0 -447
  262. package/templates/restaurant/l10n/fr.json +0 -447
  263. package/templates/restaurant/l10n/he.json +0 -359
  264. package/templates/restaurant/l10n/hu.json +0 -447
  265. package/templates/restaurant/l10n/id.json +0 -447
  266. package/templates/restaurant/l10n/it.json +0 -447
  267. package/templates/restaurant/l10n/ja.json +0 -447
  268. package/templates/restaurant/l10n/ko.json +0 -447
  269. package/templates/restaurant/l10n/lt.json +0 -447
  270. package/templates/restaurant/l10n/nl.json +0 -447
  271. package/templates/restaurant/l10n/no.json +0 -447
  272. package/templates/restaurant/l10n/pl.json +0 -447
  273. package/templates/restaurant/l10n/pt.json +0 -447
  274. package/templates/restaurant/l10n/ru.json +0 -447
  275. package/templates/restaurant/l10n/sv.json +0 -447
  276. package/templates/restaurant/l10n/th.json +0 -447
  277. package/templates/restaurant/l10n/tr.json +0 -447
  278. package/templates/restaurant/l10n/uk.json +0 -447
  279. package/templates/restaurant/l10n/vi.json +0 -447
  280. package/templates/restaurant/l10n/zh.json +0 -447
  281. package/templates/retail-store/l10n/ar.json +0 -462
  282. package/templates/retail-store/l10n/cs.json +0 -462
  283. package/templates/retail-store/l10n/da.json +0 -462
  284. package/templates/retail-store/l10n/de.json +0 -462
  285. package/templates/retail-store/l10n/el.json +0 -462
  286. package/templates/retail-store/l10n/en.json +1 -61
  287. package/templates/retail-store/l10n/es.json +0 -462
  288. package/templates/retail-store/l10n/fi.json +0 -462
  289. package/templates/retail-store/l10n/fr.json +0 -462
  290. package/templates/retail-store/l10n/he.json +0 -371
  291. package/templates/retail-store/l10n/hu.json +0 -462
  292. package/templates/retail-store/l10n/id.json +0 -462
  293. package/templates/retail-store/l10n/it.json +0 -462
  294. package/templates/retail-store/l10n/ja.json +0 -462
  295. package/templates/retail-store/l10n/ko.json +0 -462
  296. package/templates/retail-store/l10n/lt.json +0 -462
  297. package/templates/retail-store/l10n/nl.json +0 -462
  298. package/templates/retail-store/l10n/no.json +0 -462
  299. package/templates/retail-store/l10n/pl.json +0 -462
  300. package/templates/retail-store/l10n/pt.json +0 -462
  301. package/templates/retail-store/l10n/ru.json +0 -462
  302. package/templates/retail-store/l10n/sv.json +0 -462
  303. package/templates/retail-store/l10n/th.json +0 -462
  304. package/templates/retail-store/l10n/tr.json +0 -462
  305. package/templates/retail-store/l10n/uk.json +0 -462
  306. package/templates/retail-store/l10n/vi.json +0 -462
  307. package/templates/retail-store/l10n/zh.json +0 -462
  308. package/templates/yoga-studio/l10n/ar.json +9 -197
  309. package/templates/yoga-studio/l10n/cs.json +9 -197
  310. package/templates/yoga-studio/l10n/da.json +9 -197
  311. package/templates/yoga-studio/l10n/de.json +9 -197
  312. package/templates/yoga-studio/l10n/el.json +9 -197
  313. package/templates/yoga-studio/l10n/en.json +8 -30
  314. package/templates/yoga-studio/l10n/es.json +9 -197
  315. package/templates/yoga-studio/l10n/fi.json +9 -197
  316. package/templates/yoga-studio/l10n/fr.json +9 -197
  317. package/templates/yoga-studio/l10n/he.json +9 -159
  318. package/templates/yoga-studio/l10n/hu.json +9 -197
  319. package/templates/yoga-studio/l10n/id.json +9 -197
  320. package/templates/yoga-studio/l10n/it.json +9 -197
  321. package/templates/yoga-studio/l10n/ja.json +9 -197
  322. package/templates/yoga-studio/l10n/ko.json +9 -197
  323. package/templates/yoga-studio/l10n/lt.json +9 -197
  324. package/templates/yoga-studio/l10n/nl.json +9 -197
  325. package/templates/yoga-studio/l10n/no.json +9 -197
  326. package/templates/yoga-studio/l10n/pl.json +9 -197
  327. package/templates/yoga-studio/l10n/pt.json +9 -197
  328. package/templates/yoga-studio/l10n/ru.json +9 -197
  329. package/templates/yoga-studio/l10n/sv.json +9 -197
  330. package/templates/yoga-studio/l10n/th.json +9 -197
  331. package/templates/yoga-studio/l10n/tr.json +9 -197
  332. package/templates/yoga-studio/l10n/uk.json +9 -197
  333. package/templates/yoga-studio/l10n/vi.json +9 -197
  334. package/templates/yoga-studio/l10n/zh.json +9 -197
  335. package/templates/beauty-salon/recipes/announcement-card.json +0 -72
  336. package/templates/beauty-salon/recipes/blog-hero.json +0 -95
  337. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +0 -394
  338. package/templates/beauty-salon/recipes/blog-list.json +0 -394
  339. package/templates/beauty-salon/recipes/blog-see-all.json +0 -50
  340. package/templates/beauty-salon/recipes/events-inline.json +0 -309
  341. package/templates/beauty-salon/recipes/faq-list.json +0 -503
  342. package/templates/beauty-salon/recipes/groups-list.json +0 -196
  343. package/templates/beauty-salon/recipes/members-list.json +0 -445
  344. package/templates/beauty-salon/recipes/plans-card.json +0 -811
  345. package/templates/beauty-salon/recipes/products-carousel.json +0 -141
  346. package/templates/beauty-salon/recipes/products-grid.json +0 -143
  347. package/templates/beauty-salon/recipes/programs-card.json +0 -254
  348. package/templates/beauty-salon/recipes/programs-carousel.json +0 -234
  349. package/templates/beauty-salon/recipes/programs-filters.json +0 -94
  350. package/templates/beauty-salon/recipes/programs-see-all.json +0 -43
  351. package/templates/beauty-salon/recipes/section-error.json +0 -58
  352. package/templates/beauty-salon/tier5-src/_shared/announcement-section.ts +0 -122
  353. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +0 -207
  354. package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +0 -86
  355. package/templates/beauty-salon/tier5-src/_shared/events-card.ts +0 -33
  356. package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +0 -25
  357. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +0 -84
  358. package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +0 -405
  359. package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +0 -110
  360. package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +0 -34
  361. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +0 -175
  362. package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +0 -39
  363. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +0 -271
  364. package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +0 -87
  365. package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +0 -106
  366. package/templates/beauty-salon/tier5-src/_shared/products-section.ts +0 -76
  367. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +0 -16
  368. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +0 -740
  369. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +0 -21
  370. package/templates/branded-lite/tier5-src/_shared/wix-file-share.ts +0 -332
  371. package/templates/community-club/recipes/announcement-card.json +0 -72
  372. package/templates/community-club/recipes/blog-hero.json +0 -95
  373. package/templates/community-club/recipes/blog-list-thumb-start.json +0 -394
  374. package/templates/community-club/recipes/blog-list.json +0 -394
  375. package/templates/community-club/recipes/blog-see-all.json +0 -50
  376. package/templates/community-club/recipes/events-inline-list.json +0 -228
  377. package/templates/community-club/recipes/events-inline.json +0 -309
  378. package/templates/community-club/recipes/faq-list.json +0 -503
  379. package/templates/community-club/recipes/members-list.json +0 -445
  380. package/templates/community-club/recipes/plans-card.json +0 -811
  381. package/templates/community-club/recipes/products-carousel.json +0 -141
  382. package/templates/community-club/recipes/products-grid.json +0 -143
  383. package/templates/community-club/recipes/programs-card.json +0 -254
  384. package/templates/community-club/recipes/programs-carousel.json +0 -234
  385. package/templates/community-club/recipes/programs-filters.json +0 -94
  386. package/templates/community-club/recipes/programs-participant-carousel.json +0 -257
  387. package/templates/community-club/recipes/programs-see-all.json +0 -43
  388. package/templates/community-club/recipes/section-error.json +0 -58
  389. package/templates/community-club/tier5-src/_shared/announcement-section.ts +0 -122
  390. package/templates/community-club/tier5-src/_shared/blog-list.ts +0 -207
  391. package/templates/community-club/tier5-src/_shared/detail-presence.ts +0 -51
  392. package/templates/community-club/tier5-src/_shared/events-card.ts +0 -33
  393. package/templates/community-club/tier5-src/_shared/events-inline-options.ts +0 -25
  394. package/templates/community-club/tier5-src/_shared/events-inline.ts +0 -84
  395. package/templates/community-club/tier5-src/_shared/faq-list.ts +0 -405
  396. package/templates/community-club/tier5-src/_shared/groups-section.ts +0 -110
  397. package/templates/community-club/tier5-src/_shared/member-activity.ts +0 -34
  398. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +0 -175
  399. package/templates/community-club/tier5-src/_shared/members-directory-view.ts +0 -39
  400. package/templates/community-club/tier5-src/_shared/members-directory.ts +0 -271
  401. package/templates/community-club/tier5-src/_shared/plan-facts.ts +0 -87
  402. package/templates/community-club/tier5-src/_shared/plans-section.ts +0 -106
  403. package/templates/community-club/tier5-src/_shared/products-section.ts +0 -76
  404. package/templates/community-club/tier5-src/_shared/program-fields.ts +0 -16
  405. package/templates/community-club/tier5-src/_shared/programs-section.ts +0 -740
  406. package/templates/community-club/tier5-src/_shared/relative-time.ts +0 -21
  407. package/templates/events-meetups/recipes/announcement-card.json +0 -72
  408. package/templates/events-meetups/recipes/blog-hero.json +0 -95
  409. package/templates/events-meetups/recipes/blog-list-thumb-start.json +0 -394
  410. package/templates/events-meetups/recipes/blog-list.json +0 -394
  411. package/templates/events-meetups/recipes/blog-see-all.json +0 -50
  412. package/templates/events-meetups/recipes/events-inline-list.json +0 -228
  413. package/templates/events-meetups/recipes/events-inline.json +0 -309
  414. package/templates/events-meetups/recipes/faq-list.json +0 -503
  415. package/templates/events-meetups/recipes/members-list.json +0 -445
  416. package/templates/events-meetups/recipes/plans-card.json +0 -811
  417. package/templates/events-meetups/recipes/products-carousel.json +0 -141
  418. package/templates/events-meetups/recipes/products-grid.json +0 -143
  419. package/templates/events-meetups/recipes/programs-card.json +0 -254
  420. package/templates/events-meetups/recipes/programs-carousel.json +0 -234
  421. package/templates/events-meetups/recipes/programs-filters.json +0 -94
  422. package/templates/events-meetups/recipes/programs-see-all.json +0 -43
  423. package/templates/events-meetups/recipes/section-error.json +0 -58
  424. package/templates/events-meetups/tier5-src/_shared/announcement-section.ts +0 -122
  425. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +0 -207
  426. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +0 -51
  427. package/templates/events-meetups/tier5-src/_shared/events-card.ts +0 -33
  428. package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +0 -25
  429. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +0 -84
  430. package/templates/events-meetups/tier5-src/_shared/faq-list.ts +0 -405
  431. package/templates/events-meetups/tier5-src/_shared/groups-section.ts +0 -110
  432. package/templates/events-meetups/tier5-src/_shared/member-activity.ts +0 -34
  433. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +0 -175
  434. package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +0 -39
  435. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +0 -271
  436. package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +0 -87
  437. package/templates/events-meetups/tier5-src/_shared/plans-section.ts +0 -106
  438. package/templates/events-meetups/tier5-src/_shared/products-section.ts +0 -76
  439. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +0 -16
  440. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +0 -740
  441. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +0 -21
  442. package/templates/gym-fitness/recipes/announcement-card.json +0 -72
  443. package/templates/gym-fitness/recipes/blog-hero.json +0 -95
  444. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +0 -394
  445. package/templates/gym-fitness/recipes/blog-list.json +0 -394
  446. package/templates/gym-fitness/recipes/blog-see-all.json +0 -50
  447. package/templates/gym-fitness/recipes/events-inline-list.json +0 -228
  448. package/templates/gym-fitness/recipes/events-inline.json +0 -309
  449. package/templates/gym-fitness/recipes/faq-list.json +0 -503
  450. package/templates/gym-fitness/recipes/groups-list.json +0 -196
  451. package/templates/gym-fitness/recipes/members-list.json +0 -445
  452. package/templates/gym-fitness/recipes/plans-card.json +0 -811
  453. package/templates/gym-fitness/recipes/products-carousel.json +0 -141
  454. package/templates/gym-fitness/recipes/products-grid.json +0 -143
  455. package/templates/gym-fitness/recipes/programs-card.json +0 -254
  456. package/templates/gym-fitness/recipes/programs-carousel.json +0 -234
  457. package/templates/gym-fitness/recipes/programs-filters.json +0 -94
  458. package/templates/gym-fitness/recipes/programs-see-all.json +0 -43
  459. package/templates/gym-fitness/recipes/section-error.json +0 -58
  460. package/templates/gym-fitness/tier5-src/_shared/announcement-section.ts +0 -122
  461. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +0 -207
  462. package/templates/gym-fitness/tier5-src/_shared/events-card.ts +0 -33
  463. package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +0 -25
  464. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +0 -84
  465. package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +0 -405
  466. package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +0 -110
  467. package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +0 -34
  468. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +0 -175
  469. package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +0 -39
  470. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +0 -271
  471. package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +0 -87
  472. package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +0 -106
  473. package/templates/gym-fitness/tier5-src/_shared/products-section.ts +0 -76
  474. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +0 -16
  475. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +0 -740
  476. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +0 -21
  477. package/templates/nonprofit-cause/recipes/announcement-card.json +0 -72
  478. package/templates/nonprofit-cause/recipes/blog-hero.json +0 -95
  479. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +0 -394
  480. package/templates/nonprofit-cause/recipes/blog-list.json +0 -394
  481. package/templates/nonprofit-cause/recipes/blog-see-all.json +0 -50
  482. package/templates/nonprofit-cause/recipes/events-inline-list.json +0 -228
  483. package/templates/nonprofit-cause/recipes/events-inline.json +0 -309
  484. package/templates/nonprofit-cause/recipes/faq-list.json +0 -503
  485. package/templates/nonprofit-cause/recipes/groups-list.json +0 -196
  486. package/templates/nonprofit-cause/recipes/members-list.json +0 -445
  487. package/templates/nonprofit-cause/recipes/plans-card.json +0 -811
  488. package/templates/nonprofit-cause/recipes/products-carousel.json +0 -141
  489. package/templates/nonprofit-cause/recipes/products-grid.json +0 -143
  490. package/templates/nonprofit-cause/recipes/programs-card.json +0 -254
  491. package/templates/nonprofit-cause/recipes/programs-carousel.json +0 -234
  492. package/templates/nonprofit-cause/recipes/programs-filters.json +0 -94
  493. package/templates/nonprofit-cause/recipes/programs-participant-carousel.json +0 -257
  494. package/templates/nonprofit-cause/recipes/programs-see-all.json +0 -43
  495. package/templates/nonprofit-cause/recipes/section-error.json +0 -58
  496. package/templates/nonprofit-cause/tier5-src/_shared/announcement-section.ts +0 -122
  497. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +0 -207
  498. package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +0 -33
  499. package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +0 -25
  500. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +0 -84
  501. package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +0 -405
  502. package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +0 -110
  503. package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +0 -34
  504. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +0 -175
  505. package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +0 -39
  506. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +0 -271
  507. package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +0 -87
  508. package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +0 -106
  509. package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +0 -76
  510. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +0 -16
  511. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +0 -740
  512. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +0 -21
  513. package/templates/podcast-creator/recipes/announcement-card.json +0 -72
  514. package/templates/podcast-creator/recipes/blog-hero.json +0 -95
  515. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +0 -394
  516. package/templates/podcast-creator/recipes/blog-list.json +0 -394
  517. package/templates/podcast-creator/recipes/blog-see-all.json +0 -50
  518. package/templates/podcast-creator/recipes/events-inline-list.json +0 -228
  519. package/templates/podcast-creator/recipes/events-inline.json +0 -309
  520. package/templates/podcast-creator/recipes/faq-list.json +0 -503
  521. package/templates/podcast-creator/recipes/groups-list.json +0 -196
  522. package/templates/podcast-creator/recipes/members-list.json +0 -445
  523. package/templates/podcast-creator/recipes/plans-card.json +0 -811
  524. package/templates/podcast-creator/recipes/products-carousel.json +0 -141
  525. package/templates/podcast-creator/recipes/products-grid.json +0 -143
  526. package/templates/podcast-creator/recipes/programs-card.json +0 -254
  527. package/templates/podcast-creator/recipes/programs-carousel.json +0 -234
  528. package/templates/podcast-creator/recipes/programs-filters.json +0 -94
  529. package/templates/podcast-creator/recipes/programs-participant-carousel.json +0 -257
  530. package/templates/podcast-creator/recipes/programs-see-all.json +0 -43
  531. package/templates/podcast-creator/recipes/section-error.json +0 -58
  532. package/templates/podcast-creator/tier5-src/_shared/announcement-section.ts +0 -122
  533. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +0 -207
  534. package/templates/podcast-creator/tier5-src/_shared/events-card.ts +0 -33
  535. package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +0 -25
  536. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +0 -84
  537. package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +0 -405
  538. package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +0 -110
  539. package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +0 -34
  540. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +0 -175
  541. package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +0 -39
  542. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +0 -271
  543. package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +0 -87
  544. package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +0 -106
  545. package/templates/podcast-creator/tier5-src/_shared/products-section.ts +0 -76
  546. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +0 -16
  547. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +0 -740
  548. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +0 -21
  549. package/templates/portfolio-creative/recipes/announcement-card.json +0 -72
  550. package/templates/portfolio-creative/recipes/blog-hero.json +0 -95
  551. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +0 -394
  552. package/templates/portfolio-creative/recipes/blog-list.json +0 -394
  553. package/templates/portfolio-creative/recipes/blog-see-all.json +0 -50
  554. package/templates/portfolio-creative/recipes/events-inline-list.json +0 -228
  555. package/templates/portfolio-creative/recipes/events-inline.json +0 -309
  556. package/templates/portfolio-creative/recipes/faq-list.json +0 -503
  557. package/templates/portfolio-creative/recipes/groups-list.json +0 -196
  558. package/templates/portfolio-creative/recipes/members-list.json +0 -445
  559. package/templates/portfolio-creative/recipes/plans-card.json +0 -811
  560. package/templates/portfolio-creative/recipes/products-carousel.json +0 -141
  561. package/templates/portfolio-creative/recipes/products-grid.json +0 -143
  562. package/templates/portfolio-creative/recipes/programs-card.json +0 -254
  563. package/templates/portfolio-creative/recipes/programs-carousel.json +0 -234
  564. package/templates/portfolio-creative/recipes/programs-filters.json +0 -94
  565. package/templates/portfolio-creative/recipes/programs-participant-carousel.json +0 -257
  566. package/templates/portfolio-creative/recipes/programs-see-all.json +0 -43
  567. package/templates/portfolio-creative/recipes/section-error.json +0 -58
  568. package/templates/portfolio-creative/tier5-src/_shared/announcement-section.ts +0 -122
  569. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +0 -207
  570. package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +0 -33
  571. package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +0 -25
  572. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +0 -84
  573. package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +0 -405
  574. package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +0 -110
  575. package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +0 -34
  576. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +0 -175
  577. package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +0 -39
  578. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +0 -271
  579. package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +0 -87
  580. package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +0 -106
  581. package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +0 -76
  582. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +0 -16
  583. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +0 -740
  584. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +0 -21
  585. package/templates/restaurant/recipes/announcement-card.json +0 -72
  586. package/templates/restaurant/recipes/blog-hero.json +0 -95
  587. package/templates/restaurant/recipes/blog-list-thumb-start.json +0 -394
  588. package/templates/restaurant/recipes/blog-list.json +0 -394
  589. package/templates/restaurant/recipes/blog-see-all.json +0 -50
  590. package/templates/restaurant/recipes/events-inline-list.json +0 -228
  591. package/templates/restaurant/recipes/events-inline.json +0 -309
  592. package/templates/restaurant/recipes/faq-list.json +0 -503
  593. package/templates/restaurant/recipes/groups-list.json +0 -196
  594. package/templates/restaurant/recipes/members-list.json +0 -445
  595. package/templates/restaurant/recipes/plans-card.json +0 -811
  596. package/templates/restaurant/recipes/products-carousel.json +0 -141
  597. package/templates/restaurant/recipes/products-grid.json +0 -143
  598. package/templates/restaurant/recipes/programs-card.json +0 -254
  599. package/templates/restaurant/recipes/programs-carousel.json +0 -234
  600. package/templates/restaurant/recipes/programs-filters.json +0 -94
  601. package/templates/restaurant/recipes/programs-participant-carousel.json +0 -257
  602. package/templates/restaurant/recipes/programs-see-all.json +0 -43
  603. package/templates/restaurant/recipes/section-error.json +0 -58
  604. package/templates/restaurant/tier5-src/_shared/announcement-section.ts +0 -122
  605. package/templates/restaurant/tier5-src/_shared/blog-list.ts +0 -207
  606. package/templates/restaurant/tier5-src/_shared/events-card.ts +0 -33
  607. package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +0 -25
  608. package/templates/restaurant/tier5-src/_shared/events-inline.ts +0 -84
  609. package/templates/restaurant/tier5-src/_shared/faq-list.ts +0 -405
  610. package/templates/restaurant/tier5-src/_shared/groups-section.ts +0 -110
  611. package/templates/restaurant/tier5-src/_shared/member-activity.ts +0 -34
  612. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +0 -175
  613. package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +0 -39
  614. package/templates/restaurant/tier5-src/_shared/members-directory.ts +0 -271
  615. package/templates/restaurant/tier5-src/_shared/plan-facts.ts +0 -87
  616. package/templates/restaurant/tier5-src/_shared/plans-section.ts +0 -106
  617. package/templates/restaurant/tier5-src/_shared/products-section.ts +0 -76
  618. package/templates/restaurant/tier5-src/_shared/program-fields.ts +0 -16
  619. package/templates/restaurant/tier5-src/_shared/programs-section.ts +0 -740
  620. package/templates/restaurant/tier5-src/_shared/relative-time.ts +0 -21
  621. package/templates/retail-store/recipes/announcement-card.json +0 -72
  622. package/templates/retail-store/recipes/blog-hero.json +0 -95
  623. package/templates/retail-store/recipes/blog-list-thumb-start.json +0 -394
  624. package/templates/retail-store/recipes/blog-list.json +0 -394
  625. package/templates/retail-store/recipes/blog-see-all.json +0 -50
  626. package/templates/retail-store/recipes/events-inline-list.json +0 -228
  627. package/templates/retail-store/recipes/events-inline.json +0 -309
  628. package/templates/retail-store/recipes/faq-list.json +0 -503
  629. package/templates/retail-store/recipes/groups-list.json +0 -196
  630. package/templates/retail-store/recipes/members-list.json +0 -445
  631. package/templates/retail-store/recipes/plans-card.json +0 -811
  632. package/templates/retail-store/recipes/products-carousel.json +0 -141
  633. package/templates/retail-store/recipes/products-grid.json +0 -143
  634. package/templates/retail-store/recipes/programs-card.json +0 -254
  635. package/templates/retail-store/recipes/programs-carousel.json +0 -234
  636. package/templates/retail-store/recipes/programs-filters.json +0 -94
  637. package/templates/retail-store/recipes/programs-participant-carousel.json +0 -257
  638. package/templates/retail-store/recipes/programs-see-all.json +0 -43
  639. package/templates/retail-store/recipes/section-error.json +0 -58
  640. package/templates/retail-store/tier5-src/_shared/announcement-section.ts +0 -122
  641. package/templates/retail-store/tier5-src/_shared/blog-list.ts +0 -207
  642. package/templates/retail-store/tier5-src/_shared/event-registration.ts +0 -86
  643. package/templates/retail-store/tier5-src/_shared/events-card.ts +0 -33
  644. package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +0 -25
  645. package/templates/retail-store/tier5-src/_shared/events-inline.ts +0 -84
  646. package/templates/retail-store/tier5-src/_shared/faq-list.ts +0 -405
  647. package/templates/retail-store/tier5-src/_shared/groups-section.ts +0 -110
  648. package/templates/retail-store/tier5-src/_shared/member-activity.ts +0 -34
  649. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +0 -175
  650. package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +0 -39
  651. package/templates/retail-store/tier5-src/_shared/members-directory.ts +0 -271
  652. package/templates/retail-store/tier5-src/_shared/plan-facts.ts +0 -87
  653. package/templates/retail-store/tier5-src/_shared/plans-section.ts +0 -106
  654. package/templates/retail-store/tier5-src/_shared/products-section.ts +0 -76
  655. package/templates/retail-store/tier5-src/_shared/program-fields.ts +0 -16
  656. package/templates/retail-store/tier5-src/_shared/programs-section.ts +0 -740
  657. package/templates/retail-store/tier5-src/_shared/relative-time.ts +0 -21
  658. package/templates/yoga-studio/recipes/announcement-card.json +0 -72
  659. package/templates/yoga-studio/recipes/blog-hero.json +0 -95
  660. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +0 -394
  661. package/templates/yoga-studio/recipes/blog-list.json +0 -394
  662. package/templates/yoga-studio/recipes/blog-see-all.json +0 -50
  663. package/templates/yoga-studio/recipes/events-inline-list.json +0 -228
  664. package/templates/yoga-studio/recipes/events-inline.json +0 -309
  665. package/templates/yoga-studio/recipes/faq-list.json +0 -503
  666. package/templates/yoga-studio/recipes/groups-list.json +0 -196
  667. package/templates/yoga-studio/recipes/members-list.json +0 -445
  668. package/templates/yoga-studio/recipes/plans-card.json +0 -811
  669. package/templates/yoga-studio/recipes/products-carousel.json +0 -141
  670. package/templates/yoga-studio/recipes/products-grid.json +0 -143
  671. package/templates/yoga-studio/recipes/programs-card.json +0 -254
  672. package/templates/yoga-studio/recipes/programs-carousel.json +0 -234
  673. package/templates/yoga-studio/recipes/programs-filters.json +0 -94
  674. package/templates/yoga-studio/recipes/programs-participant-carousel.json +0 -257
  675. package/templates/yoga-studio/recipes/programs-see-all.json +0 -43
  676. package/templates/yoga-studio/recipes/section-error.json +0 -58
  677. package/templates/yoga-studio/tier5-src/_shared/announcement-section.ts +0 -122
  678. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +0 -207
  679. package/templates/yoga-studio/tier5-src/_shared/events-card.ts +0 -33
  680. package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +0 -25
  681. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +0 -84
  682. package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +0 -405
  683. package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +0 -110
  684. package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +0 -34
  685. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +0 -175
  686. package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +0 -39
  687. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +0 -271
  688. package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +0 -87
  689. package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +0 -106
  690. package/templates/yoga-studio/tier5-src/_shared/products-section.ts +0 -76
  691. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +0 -16
  692. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +0 -740
  693. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +0 -21
@@ -0,0 +1,137 @@
1
+ // A page's single-group feed section as a registrable service: the latest posts of ONE group, driven by the source section's settings.
2
+ // groupId -> the group whose posts show,
3
+ // limit -> at most N posts (the source's "postNumber").
4
+ // A group that is not public is shown the way the group screen shows it to someone who is not a member: its name, its privacy and the
5
+ // invitation message, and the feed is never read, so no post of a private group reaches the page. A public group whose feed Wix refuses
6
+ // the viewer (401/403: the feed read is a member scope) shows the same state with its own sentence.
7
+ // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe group-feed.json).
8
+ import { defineService } from "@himalaya/state";
9
+ import { hostSessionFromGlobal } from "@himalaya/iap";
10
+ import { memberAccess } from "./member-access.js";
11
+ import { getGroup, type WixGroup } from "@himalaya/wix-groups";
12
+ import { listFeedItems, type WixFeedItem, type WixFeedProfile } from "@himalaya/wix-social-feed";
13
+ import { copyParam, stashCopy } from "./himi-copy.js";
14
+ import { initials } from "./himi-text.js";
15
+ import { groupPrivacyLabel } from "./group-privacy.js";
16
+ import { relativeTime } from "./relative-time.js";
17
+ import { descriptionBody, ROW_IMAGE_WIDTH } from "./rich-body.js";
18
+
19
+ export interface GroupFeedOptions {
20
+ /** The group whose posts show. */
21
+ groupId: string;
22
+ /** Show at most this many posts. */
23
+ limit?: number;
24
+ }
25
+
26
+ export interface GroupFeedRow {
27
+ id: string; author: string; initials: string;
28
+ avatar: string;
29
+ text: string; timeLabel: string;
30
+ }
31
+
32
+ export interface GroupFeedState {
33
+ status: "loading" | "ready" | "error";
34
+ rows: GroupFeedRow[];
35
+ /** The group's name and privacy label, shown with the restricted state. */
36
+ groupName: string; privacy: string;
37
+ /** Why the posts are not shown ("" when they are): the invitation message of a private group, or the member-only sentence. */
38
+ restrictedText: string;
39
+ emptyText: string;
40
+ notLoading: boolean; notErrored: boolean; noRows: boolean; noEmpty: boolean; noRestricted: boolean;
41
+ }
42
+
43
+ /** The most posts one section reads. */
44
+ const MAX_POSTS = 20;
45
+
46
+ /** A post's plain text. A Ricos document gives its whole text; a DraftJS post (`blocks`), a document the viewer cannot draw and the lean
47
+ * v1 read give theirs, as the feed screen reads them. */
48
+ function postText(item: WixFeedItem): string {
49
+ const shared = copyParam("feed.sharedUpdateFallback", "Shared an update.");
50
+ const blocks = (item.content?.blocks ?? []).map((b) => (b?.text ?? "").trim()).filter(Boolean).join("\n");
51
+ const nodes = (item.content?.nodes ?? []).flatMap((n) => n?.nodes ?? []).map((n) => (n?.textData?.text ?? "").trim()).filter(Boolean).join("\n");
52
+ const fallback = blocks || nodes || descriptionBody(item.entity?.body?.content, shared).bodyText;
53
+ return descriptionBody(item.content || item.entity?.body?.content, fallback, ROW_IMAGE_WIDTH).bodyText;
54
+ }
55
+
56
+ function authorOf(item: WixFeedItem, profiles: WixFeedProfile[]): { name: string; avatar: string } {
57
+ const profile = profiles.find((p) => p.id && p.id === item.author?.id);
58
+ const createdBy = item.createdBy;
59
+ const named = typeof createdBy === "string" ? createdBy : createdBy?.name || createdBy?.nickname;
60
+ const photo = profile?.profileImage;
61
+ const fromProfile = typeof photo === "string" ? photo : photo?.url;
62
+ const fromCreator = createdBy && typeof createdBy !== "string" ? createdBy.image?.url || createdBy.imageUrl : "";
63
+ return { name: profile?.userName || named || copyParam("feed.memberFallbackName", "Member"), avatar: fromProfile || fromCreator || "" };
64
+ }
65
+
66
+ function postRow(item: WixFeedItem, profiles: WixFeedProfile[], now: number): GroupFeedRow {
67
+ const { name, avatar } = authorOf(item, profiles);
68
+ return {
69
+ id: item.feedItemId || "", author: name, initials: initials(name),
70
+ avatar,
71
+ text: postText(item), timeLabel: relativeTime(item.created ?? item.createdAt, now),
72
+ };
73
+ }
74
+
75
+ /** The feed read is a member scope: Wix answers a viewer it will not show with `HTTP 401` / `HTTP 403`. */
76
+ const isRefusal = (error: unknown): boolean => /\b(401|403)\b/.test(String((error as Error | undefined)?.message ?? error));
77
+
78
+ export function registerGroupFeedSection(serviceName: string, options: GroupFeedOptions) {
79
+ const view = (status: GroupFeedState["status"], parts: { rows?: GroupFeedRow[]; groupName?: string; privacy?: string; restrictedText?: string } = {}): GroupFeedState => {
80
+ const rows = parts.rows ?? [], restrictedText = parts.restrictedText ?? "";
81
+ return {
82
+ status, rows, groupName: parts.groupName ?? "", privacy: parts.privacy ?? "", restrictedText,
83
+ emptyText: status === "ready" && !rows.length && !restrictedText ? copyParam("groupFeed.emptyText", "No posts in this group yet.") : "",
84
+ notLoading: status !== "loading", notErrored: status !== "error",
85
+ noRows: !rows.length, noEmpty: !(status === "ready" && !rows.length && !restrictedText), noRestricted: !restrictedText,
86
+ };
87
+ };
88
+ const session = hostSessionFromGlobal();
89
+ // The viewer changed: the rows already published are the previous viewer's, so they go at once, before the read for the new one finishes.
90
+ const restart = () => { void service.clear(); void service.load(); };
91
+ // Only the newest load may answer, and only for the viewer who started it: a feed read for one member is never shown to the next.
92
+ let sequence = 0;
93
+ const service = defineService<GroupFeedState, { load: (state: GroupFeedState, arg?: unknown) => Promise<GroupFeedState | undefined>; clear: () => Promise<GroupFeedState> }>(serviceName, {
94
+ state: view("loading"),
95
+ // A group's posts are member-scoped: never written to disk and restored for the next person on the device.
96
+ notHydrated: Object.keys(view("loading")) as Array<keyof GroupFeedState>,
97
+ actions: {
98
+ clear: async () => view("loading"),
99
+ load: async (_state, arg) => {
100
+ stashCopy(arg);
101
+ const seq = ++sequence;
102
+ const viewer = await memberAccess();
103
+ const sameViewer = async () => { const now = await memberAccess(); return seq === sequence && now.email === viewer.email && now.scope === viewer.scope; };
104
+ try {
105
+ const response = await getGroup(options.groupId);
106
+ if (!(await sameViewer())) { if (seq === sequence) restart(); return undefined; }
107
+ const group = ((response as unknown as { group?: WixGroup }).group ?? response) as WixGroup;
108
+ const kind = (group.privacyStatus || "UNKNOWN").toLowerCase();
109
+ const groupName = (group.name || copyParam("groups.groupFallbackName", "Group")).trim();
110
+ const privacy = groupPrivacyLabel(kind);
111
+ // The group screen lets anyone join only a public group (an unknown status counts as public there too): the rest is by invitation.
112
+ if (kind !== "public" && kind !== "unknown") {
113
+ return view("ready", { groupName, privacy, restrictedText: copyParam("group.privateInviteMessage", "Private groups are available by invitation.") });
114
+ }
115
+ try {
116
+ const feed = await listFeedItems(options.groupId, Math.min(options.limit ?? MAX_POSTS, MAX_POSTS));
117
+ if (!(await sameViewer())) { if (seq === sequence) restart(); return undefined; }
118
+ const profiles = feed.profiles ?? [], now = Date.now();
119
+ const rows = (feed.feedItems ?? []).filter((item) => item.feedItemId).map((item) => postRow(item, profiles, now));
120
+ return view("ready", { rows, groupName, privacy });
121
+ } catch (error) {
122
+ if (!(await sameViewer())) { if (seq === sequence) restart(); return undefined; }
123
+ if (!isRefusal(error)) throw error;
124
+ return view("ready", { groupName, privacy, restrictedText: copyParam("groupFeed.restrictedText", "Posts are shown to the group's members.") });
125
+ }
126
+ } catch (error) {
127
+ if (seq !== sequence) return undefined;
128
+ console.warn("group_feed_section: the group's posts could not be read", error);
129
+ return view("error");
130
+ }
131
+ },
132
+ },
133
+ });
134
+ // Signing in or out on another screen changes who the feed is read for.
135
+ session.subscribe(restart);
136
+ return service;
137
+ }
@@ -14,6 +14,8 @@ export interface GroupsSectionOptions {
14
14
  groupIds?: string[];
15
15
  /** Show at most this many groups. */
16
16
  limit?: number;
17
+ /** Read each cover at a card's size (a rail of cards) instead of a row's 72pt thumbnail. */
18
+ cards?: boolean;
17
19
  }
18
20
 
19
21
  export interface GroupRow {
@@ -35,6 +37,8 @@ export interface GroupsSectionState {
35
37
  /** The most groups one query reads. */
36
38
  /** The row's 72pt thumbnail at 3x: the shared list size (1000px) would fetch and decode far more pixels than it shows. */
37
39
  const GROUP_THUMB = { width: 216, height: 216, quality: 85 };
40
+ /** A card's 240pt-wide cover at 3x, in the 16:9 the card crops it to. */
41
+ const GROUP_CARD = { width: 720, height: 405, quality: 85 };
38
42
  const QUERY_LIMIT = 100;
39
43
  /** The most groups one section reads (10 pages): a site beyond it is shown as "has more" instead of silently cut. */
40
44
  const MAX_GROUPS = 1000;
@@ -61,10 +65,10 @@ function snippet(value: string): string {
61
65
  return text.length > 140 ? `${text.slice(0, 139).trimEnd()}…` : text;
62
66
  }
63
67
 
64
- function groupRow(group: WixGroup): GroupRow {
68
+ function groupRow(group: WixGroup, cards: boolean): GroupRow {
65
69
  const title = (group.name || copyParam("groups.groupFallbackName", "Group")).trim();
66
70
  const count = group.membersCount ?? group.memberCount;
67
- const image = groupImage(group, GROUP_THUMB);
71
+ const image = groupImage(group, cards ? GROUP_CARD : GROUP_THUMB);
68
72
  const teaser = descriptionBody(group.teaser).bodyText;
69
73
  const body = descriptionBody(group.description, teaser).bodyText;
70
74
  const meta = count == null ? "" : groupMemberCount(count);
@@ -99,7 +103,7 @@ export function registerGroupsSection(serviceName: string, options: GroupsSectio
99
103
  groups = options.groupIds.flatMap((id) => byId.get(id) ?? []);
100
104
  }
101
105
  const shown = options.limit !== undefined ? groups.slice(0, options.limit) : groups;
102
- return view("ready", shown.map(groupRow), read.truncated || shown.length < groups.length);
106
+ return view("ready", shown.map((group) => groupRow(group, options.cards === true)), read.truncated || shown.length < groups.length);
103
107
  } catch (error) {
104
108
  console.warn("groups_section: the groups could not be read", error);
105
109
  return view("error", [], false);
@@ -0,0 +1,107 @@
1
+ // The INLINE "my subscriptions" section: the signed-in member's active pricing-plan orders as cards (name, status, price, valid-until),
2
+ // hosted by any worker that wants them next to other sections. It is read-only: a card opens the order's own screen
3
+ // (`himi_subscription`) and the section's See All opens the subscriptions screen (`himi_my_subscriptions`). The `subscriptions-list`
4
+ // recipe is the card list that reads it, bound as `$service:<serviceName>.*`.
5
+ //
6
+ // The section has two things to say besides its rows, and ONE `noticeText` slot says them: a guest is asked to sign in (never shown an
7
+ // error: a visitor has no orders to fail to read, and a signed-in account the site refuses, 401/403, is not a member of it, so it is
8
+ // asked to sign in as one), and a member with no active order is told so. Only a read that failed for another reason is the error
9
+ // state, which the section-error piece shows.
10
+ // It mirrors the order mapping of the `himi_my_subscriptions` worker (wix-spaces-my-subscriptions); that worker is not changed.
11
+ import { defineService } from "@himalaya/state";
12
+ import { listMyPlanOrders, type WixPlanOrder } from "@himalaya/wix-pricing-plans";
13
+ import { hostSessionFromGlobal } from "@himalaya/iap";
14
+ import { memberAccess, assertMemberAccess, memberAccessDenied, memberChanged } from "./member-access.js";
15
+ import { orderDate, orderPrice, orderStatus } from "./pricing-plan-display.js";
16
+ import { copyParam, stashCopy } from "./himi-copy.js";
17
+
18
+ /** The most subscriptions one section shows; See All opens the rest. */
19
+ export const SUBSCRIPTIONS_SECTION_MAX = 5;
20
+ /** What the section lists: the orders the member still has. Ended and canceled ones are on the full screen's Expired tab. */
21
+ const LIVE_STATUSES = ["ACTIVE", "PENDING", "PAUSED"];
22
+
23
+ export interface SubscriptionRow {
24
+ id: string; name: string;
25
+ /** The order's status as a word ("Active"). */
26
+ status: string;
27
+ price: string; noPrice: boolean;
28
+ /** "Valid until" / "Current period ends", then the date. */
29
+ dateLabel: string; endDate: string; noEndDate: boolean;
30
+ }
31
+
32
+ export interface SubscriptionsSectionState {
33
+ status: "loading" | "ready" | "guest" | "error";
34
+ rows: SubscriptionRow[];
35
+ /** The guest / refused / no-subscription message; empty when the section has rows. */
36
+ noticeText: string;
37
+ signInLabel: string;
38
+ notLoading: boolean; notErrored: boolean; noRows: boolean; noNotice: boolean;
39
+ /** The sign-in button shows for a guest only. */
40
+ noSignIn: boolean;
41
+ /** See All shows once the member's list was read. */
42
+ noSeeAll: boolean;
43
+ }
44
+
45
+ function row(order: WixPlanOrder): SubscriptionRow {
46
+ // A subscription with no end date but a running billing cycle is "valid" until the cycle ends.
47
+ const periodEnd = !order.earliestEndDate && !order.endDate && order.status === "ACTIVE" && (order.pricing?.subscription ?? order.priceDetails?.subscription)
48
+ ? orderDate(order.currentCycle?.endedDate) : "";
49
+ const endDate = orderDate(order.earliestEndDate ?? order.endDate) || periodEnd;
50
+ const price = orderPrice(order);
51
+ return {
52
+ id: order.id, name: (order.planName || copyParam("plans.planFallbackName", "Plan")).trim(), status: orderStatus(order),
53
+ price, noPrice: !price,
54
+ dateLabel: periodEnd ? copyParam("subscriptionDetail.periodEnd", "Current period ends") : copyParam("mySubscriptions.validUntil", "Valid until"),
55
+ endDate, noEndDate: !endDate,
56
+ };
57
+ }
58
+
59
+ function view(status: SubscriptionsSectionState["status"], rows: SubscriptionRow[] = []): SubscriptionsSectionState {
60
+ const noticeText = status === "guest" ? copyParam("mySubscriptions.guestBody", "Sign in to see your subscriptions.")
61
+ : status === "ready" && !rows.length ? copyParam("mySubscriptions.activeEmpty", "No active subscriptions") : "";
62
+ return {
63
+ status, rows, noticeText, signInLabel: copyParam("account.signInCta", "Sign in"),
64
+ notLoading: status !== "loading", notErrored: status !== "error", noRows: !rows.length, noNotice: !noticeText,
65
+ noSignIn: status !== "guest", noSeeAll: status !== "ready",
66
+ };
67
+ }
68
+
69
+ export function registerSubscriptionsSection(serviceName: string, options: { limit?: number } = {}) {
70
+ const limit = options.limit !== undefined && options.limit > 0 ? options.limit : SUBSCRIPTIONS_SECTION_MAX;
71
+ const session = hostSessionFromGlobal();
72
+ let sequence = 0;
73
+ // The member changed: the orders already published are the previous member's, so they go at once.
74
+ const restart = () => { void service.clear(); void service.load(); };
75
+ const service = defineService<SubscriptionsSectionState, { load: (state: SubscriptionsSectionState, arg?: unknown) => Promise<SubscriptionsSectionState | undefined>; clear: () => Promise<SubscriptionsSectionState> }>(serviceName, {
76
+ state: view("loading"),
77
+ // The orders are one member's: never written to disk and restored for the next person on the device.
78
+ notHydrated: Object.keys(view("loading")) as Array<keyof SubscriptionsSectionState>,
79
+ actions: {
80
+ clear: async () => view("loading"),
81
+ load: async (_state, arg) => {
82
+ stashCopy(arg);
83
+ const seq = ++sequence;
84
+ const member = await memberAccess();
85
+ if (seq !== sequence) return undefined;
86
+ // No email is a visitor: there is nothing to read, and nothing to fail.
87
+ if (!member.email) return view("guest");
88
+ try {
89
+ const result = await listMyPlanOrders({ statuses: LIVE_STATUSES, limit, offset: 0 });
90
+ await assertMemberAccess(member);
91
+ if (seq !== sequence) return undefined;
92
+ return view("ready", (result.orders ?? []).filter((order) => order.id).slice(0, limit).map(row));
93
+ } catch (error) {
94
+ if (seq !== sequence) return undefined;
95
+ // The member signed out (or changed) while the read was out: read again for whoever is signed in now.
96
+ if (await memberChanged(member, error)) { restart(); return undefined; }
97
+ if (memberAccessDenied(error)) return view("guest");
98
+ console.warn("subscriptions_section: the subscriptions could not be read", error);
99
+ return view("error");
100
+ }
101
+ },
102
+ },
103
+ });
104
+ // Signing in or out on another screen changes the list this section shows.
105
+ session.subscribe(restart);
106
+ return service;
107
+ }
@@ -17,6 +17,8 @@ export interface PlansSectionOptions {
17
17
  planIds?: readonly string[];
18
18
  /** The source's "show benefits list" switch; the list is shown unless it is off. */
19
19
  showBenefits?: boolean;
20
+ /** The order of the published plans when none is selected (a selection keeps the source's own order); absent: the site's order. */
21
+ order?: "oldest-first" | "newest-first";
20
22
  }
21
23
 
22
24
  export interface PlansSectionRow {
@@ -78,9 +80,15 @@ function derive(status: PlansSectionState["status"], rows: PlansSectionRow[]): P
78
80
  }
79
81
 
80
82
  /** The selected plans in the source's order; every published plan when none is selected. Archived plans never show. */
81
- export function selectPlans(plans: readonly WixPlan[], planIds: readonly string[] = []): WixPlan[] {
83
+ export function selectPlans(plans: readonly WixPlan[], planIds: readonly string[] = [], order?: PlansSectionOptions["order"]): WixPlan[] {
82
84
  const live = plans.filter((plan) => !plan.archived && !!plan.id);
83
- if (!planIds.length) return live;
85
+ if (!planIds.length) {
86
+ if (!order) return live;
87
+ // A plan with no creation date keeps its place after the dated ones.
88
+ const created = (plan: WixPlan) => Date.parse(plan.createdDate ?? "");
89
+ const sign = order === "oldest-first" ? 1 : -1;
90
+ return [...live.filter((plan) => Number.isFinite(created(plan))).sort((a, b) => sign * (created(a) - created(b))), ...live.filter((plan) => !Number.isFinite(created(plan)))];
91
+ }
84
92
  const rank = new Map(planIds.map((id, index) => [id, index]));
85
93
  return live.filter((plan) => rank.has(plan.id)).sort((a, b) => (rank.get(a.id) ?? 0) - (rank.get(b.id) ?? 0));
86
94
  }
@@ -95,7 +103,7 @@ export function registerPlansSection(serviceName: string, options: PlansSectionO
95
103
  stashCopy(arg);
96
104
  try {
97
105
  const response = await listPublicPlans();
98
- return derive("ready", selectPlans(response.plans ?? [], planIds).map((plan) => plansSectionRow(plan, showBenefits)));
106
+ return derive("ready", selectPlans(response.plans ?? [], planIds, options.order).map((plan) => plansSectionRow(plan, showBenefits)));
99
107
  } catch (error) {
100
108
  console.warn("plans_section: the plans could not be read", error);
101
109
  return derive("error", []);
@@ -561,6 +561,8 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
561
561
  return { items: [], nextCursor: "", metadata };
562
562
  }
563
563
  const [counts, applications] = await Promise.all([statsFor(programs), applicationsFor(programs, participations, scope)]);
564
+ // The member can change while the stats and applications are read: those rows are the previous member's.
565
+ if (!sameScope(scope, await resolveScope())) throw memberAccessChanged();
564
566
  const items = programs.map((p) => programContent({ program: p, participant: participations.get(p.id), application: applications.map.get(p.id), applicationUnknown: applications.unknown.has(p.id), participationsUnknown: !participationsKnown, participants: counts.get(p.id), member: !!scope.memberId, now, display }));
565
567
  // A revalidating load publishes nothing until it settles, so page 1 records the scope its later pages
566
568
  // are read under here, not only from the published snapshot.
@@ -0,0 +1,122 @@
1
+ // A page's services section as a registrable service: the site's Wix Bookings services in the business's own order (the order of its
2
+ // Book Online page), as rows that open the service. The services screen (himi_services) keeps search, category chips and the location pin;
3
+ // this is its short form for a page, driven by the source section's settings:
4
+ // limit -> at most N services, and `noMore` is false when the site has more (the section's See All button shows then).
5
+ // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe services-list.json).
6
+ import { defineService } from "@himalaya/state";
7
+ import { queryServices, type WixService } from "@himalaya/wix-bookings";
8
+ import { wixMediaUrl } from "@himalaya/wix-media";
9
+ import { businessTimeZone } from "./app-locale.js";
10
+ import { courseDatesText, courseHasEnded, courseNeedsZone, serviceDurationText, servicePriceLine, type BookingLabel } from "./himi-bookings.js";
11
+ import { copyParam, copyTemplate, stashCopy } from "./himi-copy.js";
12
+ import { initials } from "./himi-text.js";
13
+
14
+ export interface ServicesSectionOptions {
15
+ /** Show at most this many services. */
16
+ limit: number;
17
+ }
18
+
19
+ export interface ServiceRow {
20
+ id: string; title: string;
21
+ tagline: string; noTagline: boolean;
22
+ /** Duration and price, or a course's dates and price: "1 hr · $70". */
23
+ meta: string; noMeta: boolean;
24
+ /** "Class" or "Course", then "Ended" for a course that is over; "" for an appointment. */
25
+ tag: string; noTag: boolean;
26
+ image: string; initial: string; hasImage: boolean; noImage: boolean;
27
+ /** The service screen a row opens; the row binds `id` as its nav param. */
28
+ detailScreenId: string;
29
+ }
30
+
31
+ export interface ServicesSectionState {
32
+ status: "loading" | "ready" | "error";
33
+ rows: ServiceRow[];
34
+ emptyText: string;
35
+ notLoading: boolean; notErrored: boolean; noRows: boolean; noEmpty: boolean;
36
+ /** false when the site has more services than the section shows. */
37
+ noMore: boolean;
38
+ }
39
+
40
+ /** The row's 72pt thumbnail at 3x: the shared list size (1000px) would fetch and decode far more pixels than it shows. */
41
+ const THUMB = { width: 216, height: 216, quality: 85 };
42
+
43
+ /** The services screen's own lines for a duration, a price and a course's dates, so a row reads the same in both places. */
44
+ const label: BookingLabel = (key, fallback, values) =>
45
+ values ? copyTemplate(`services.${key}`, fallback, values) : copyParam(`services.${key}`, fallback);
46
+
47
+ /** A cover URL from any shape Wix Bookings returns (a URL, a bare media id, or nested media records), as the services screen's worker reads it. */
48
+ function mediaUrl(value: unknown): string {
49
+ if (typeof value === "string") return wixMediaUrl(value, THUMB);
50
+ if (!value || typeof value !== "object") return "";
51
+ if (Array.isArray(value)) {
52
+ for (const item of value) { const url = mediaUrl(item); if (url) return url; }
53
+ return "";
54
+ }
55
+ const node = value as Record<string, unknown>;
56
+ for (const direct of [node.url, node.src, node.imageUrl, node.imageSrc]) {
57
+ const url = wixMediaUrl(direct, THUMB);
58
+ if (url) return url;
59
+ }
60
+ for (const nested of [node.image, node.thumbnail, node.mediaItem, node.mainMedia, node.main, node.media, node.items, node.photos, node.gallery, node.coverImage, node.coverMedia]) {
61
+ const url = mediaUrl(nested);
62
+ if (url) return url;
63
+ }
64
+ return "";
65
+ }
66
+
67
+ const serviceImage = (service: WixService): string => mediaUrl(service.media);
68
+
69
+ function typeTagOf(type: unknown): string {
70
+ if (type === "CLASS") return copyParam("services.tagClass", "Class");
71
+ if (type === "COURSE") return copyParam("agenda.courseTag", "Course");
72
+ return "";
73
+ }
74
+
75
+ function serviceRow(service: WixService): ServiceRow {
76
+ const title = service.name || label("untitled", "Service");
77
+ const isCourse = service.type === "COURSE";
78
+ // A session time Wix lists without an offset is the business's wall time: the zone the app was provisioned with places it
79
+ // (none provisioned: the course is not Ended, never a guess).
80
+ const schedule = isCourse ? {
81
+ firstSessionStart: service.schedule?.firstSessionStart,
82
+ lastSessionEnd: service.schedule?.lastSessionEnd,
83
+ ...(businessTimeZone() && courseNeedsZone(service.schedule) ? { timeZone: businessTimeZone() } : {}),
84
+ } : undefined;
85
+ const ended = schedule && courseHasEnded({ schedule }, Date.now()) ? copyParam("services.ended", "Ended") : "";
86
+ const meta = [isCourse ? courseDatesText(service) : serviceDurationText(service, label), servicePriceLine(service, label).text].filter(Boolean).join(" · ");
87
+ const tag = [typeTagOf(service.type), ended].filter(Boolean).join(" · ");
88
+ const tagline = typeof service.tagLine === "string" ? service.tagLine.trim() : "";
89
+ const image = serviceImage(service);
90
+ return {
91
+ id: service.id, title, tagline, noTagline: !tagline, meta, noMeta: !meta, tag, noTag: !tag,
92
+ image, initial: initials(title), hasImage: !!image, noImage: !image, detailScreenId: "himi_service",
93
+ };
94
+ }
95
+
96
+ export function registerServicesSection(serviceName: string, options: ServicesSectionOptions) {
97
+ const view = (status: ServicesSectionState["status"], rows: ServiceRow[], more: boolean): ServicesSectionState => ({
98
+ status, rows,
99
+ emptyText: status === "ready" && !rows.length ? copyParam("services.emptyText", "There are no services to book yet.") : "",
100
+ notLoading: status !== "loading", notErrored: status !== "error",
101
+ noRows: !rows.length, noEmpty: !(status === "ready" && !rows.length),
102
+ noMore: !more,
103
+ });
104
+ return defineService<ServicesSectionState, { load: (state: ServicesSectionState, arg?: unknown) => Promise<ServicesSectionState> }>(serviceName, {
105
+ state: view("loading", [], false),
106
+ actions: {
107
+ load: async (_state, arg) => {
108
+ stashCopy(arg);
109
+ try {
110
+ // One more than the section shows is enough to know there is more. The order is the business's own, as on the services screen.
111
+ const response = await queryServices({ query: { filter: { hidden: { $ne: true } }, paging: { limit: options.limit + 1 },
112
+ sort: [{ fieldName: "category.sortOrder", order: "ASC" }, { fieldName: "sortOrder", order: "ASC" }, { fieldName: "id", order: "ASC" }] } });
113
+ const services = (response.services ?? []).filter((service) => !!service.id);
114
+ return view("ready", services.slice(0, options.limit).map(serviceRow), services.length > options.limit);
115
+ } catch (error) {
116
+ console.warn("services_section: the services could not be read", error);
117
+ return view("error", [], false);
118
+ }
119
+ },
120
+ },
121
+ });
122
+ }
@@ -0,0 +1,102 @@
1
+ // A page's upcoming-bookings section as a registrable service: the signed-in member's next bookings, and, when the source section
2
+ // shows them, their latest past ones. It reads through the same member-scoped read as My Bookings (himi_bookings), so a booking
3
+ // shows only for the member whose email it carries, and a guest or a refused member gets the sign-in state instead of a read.
4
+ // limit -> at most N bookings per list, and `noMore` is false when the member has more upcoming ones (See All shows then),
5
+ // showPast -> also the latest past bookings (the source's `previousBookings.enabled`),
6
+ // emptyText-> the source's own empty line (unset: the stock one).
7
+ // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe upcoming-bookings.json).
8
+ import { defineService } from "@himalaya/state";
9
+ import { hostSessionFromGlobal } from "@himalaya/iap";
10
+ import { copyParam, stashCopy } from "./himi-copy.js";
11
+ import { fetchMemberBookings, type MemberBookingRow } from "./member-bookings.js";
12
+ import { memberAccess, memberAccessDenied, memberChanged } from "./member-access.js";
13
+
14
+ export interface UpcomingBookingsOptions {
15
+ /** Show at most this many bookings in each list. */
16
+ limit: number;
17
+ /** Also show the member's latest past bookings. */
18
+ showPast?: boolean;
19
+ /** The source section's own text for "no upcoming bookings". */
20
+ emptyText?: string;
21
+ }
22
+
23
+ export interface BookingCard {
24
+ id: string; title: string;
25
+ /** "Mon, Nov 17, 2:00 PM". */
26
+ when: string;
27
+ /** The staff member and the place, "" when the booking names neither. */
28
+ detail: string; noDetail: boolean;
29
+ a11y: string;
30
+ }
31
+
32
+ export interface UpcomingBookingsState {
33
+ status: "loading" | "ready" | "error";
34
+ /** A guest, or a member Wix refused: the section asks to sign in instead of reading. */
35
+ signedOut: boolean;
36
+ upcoming: BookingCard[];
37
+ past: BookingCard[];
38
+ emptyText: string;
39
+ notLoading: boolean; notErrored: boolean; notSignedOut: boolean;
40
+ noUpcoming: boolean; noPast: boolean;
41
+ /** The member has no upcoming booking (shown only once the read answered for a signed-in member). */
42
+ noEmpty: boolean;
43
+ /** false when the member has more upcoming bookings than the section shows. */
44
+ noMore: boolean;
45
+ }
46
+
47
+ const card = (row: MemberBookingRow): BookingCard => {
48
+ const detail = [row.staff, row.placeName].filter(Boolean).join(" · ");
49
+ return { id: row.id, title: row.title, when: row.subtitle, detail, noDetail: !detail, a11y: [row.title, row.subtitle, detail].filter(Boolean).join(", ") };
50
+ };
51
+
52
+ export function registerUpcomingBookingsSection(serviceName: string, options: UpcomingBookingsOptions) {
53
+ const view = (status: UpcomingBookingsState["status"], signedOut: boolean, upcoming: BookingCard[], past: BookingCard[], more: boolean): UpcomingBookingsState => ({
54
+ status, signedOut, upcoming, past,
55
+ emptyText: options.emptyText?.trim() || copyParam("upcomingBookings.emptyText", "You don't have any upcoming bookings."),
56
+ notLoading: status !== "loading", notErrored: status !== "error", notSignedOut: !signedOut,
57
+ noUpcoming: !upcoming.length, noPast: !past.length,
58
+ noEmpty: !(status === "ready" && !signedOut && !upcoming.length),
59
+ noMore: !more,
60
+ });
61
+ const session = hostSessionFromGlobal();
62
+ // Only the newest load may answer: a guest read that finishes after the member signed in must not overwrite the member's list.
63
+ let sequence = 0;
64
+ const initial = view("loading", false, [], [], false);
65
+ // The member changed: the bookings already published are the previous member's, so they go at once.
66
+ const restart = () => { void service.clear(); void service.load(); };
67
+ const service = defineService<UpcomingBookingsState, { load: (state: UpcomingBookingsState, arg?: unknown) => Promise<UpcomingBookingsState | undefined>; clear: () => Promise<UpcomingBookingsState> }>(serviceName, {
68
+ state: initial,
69
+ // The bookings are one member's: never written to disk and restored for the next person on the device.
70
+ notHydrated: Object.keys(initial) as Array<keyof UpcomingBookingsState>,
71
+ actions: {
72
+ clear: async () => initial,
73
+ load: async (_state, arg) => {
74
+ stashCopy(arg);
75
+ const seq = ++sequence;
76
+ let member: Awaited<ReturnType<typeof memberAccess>> | undefined;
77
+ try {
78
+ member = await memberAccess();
79
+ if (seq !== sequence) return undefined;
80
+ if (!member.email) return view("ready", true, [], [], false);
81
+ const now = new Date().toISOString();
82
+ const read = (filter: string, sort: "default" | "za") => fetchMemberBookings({ query: "", filter, sort, savedIds: [] }, "", now, member);
83
+ const [next, previous] = await Promise.all([read("value:Upcoming", "default"), options.showPast ? read("value:Past", "za") : undefined]);
84
+ if (seq !== sequence) return undefined;
85
+ return view("ready", false, next.items.slice(0, options.limit).map(card), (previous?.items ?? []).slice(0, options.limit).map(card),
86
+ next.items.length > options.limit || !!next.nextCursor);
87
+ } catch (error) {
88
+ if (seq !== sequence) return undefined;
89
+ // The member signed out (or changed) while the read was out: read again for whoever is signed in now.
90
+ if (await memberChanged(member, error)) { restart(); return undefined; }
91
+ // Wix refusing the member is a sign-in state, as on My Bookings; anything else is a failed read.
92
+ if (memberAccessDenied(error)) return view("ready", true, [], [], false);
93
+ console.warn("upcoming_bookings_section: the bookings could not be read", error);
94
+ return view("error", false, [], [], false);
95
+ }
96
+ },
97
+ },
98
+ });
99
+ // Signing in or out on another screen changes the list this section shows.
100
+ session.subscribe(restart);
101
+ return service;
102
+ }
@@ -0,0 +1,91 @@
1
+ // A page's Wix Video section as a registrable service: the first videos of a source channel (or of every channel), as cards that open
2
+ // the video's own screen, which plays it, asks for the sign-in, or sells it.
3
+ // channelId -> the source section's channel (unset: the latest videos across every channel, the channels taking turns),
4
+ // limit -> how many cards (the section is a rail; the channel is one See All away); `noMore` is false when there are more,
5
+ // which is when the section's See All button (to the channel, or to the videos screen) shows,
6
+ // showTitle -> the source's `titleEnabled`: the title under the cover,
7
+ // showDuration -> the source's `durationEnabled`: the length on the cover.
8
+ // Reads the same Wix Video gateway as the `himi_videos` screen's worker (`@himalaya/wix-video`), with the same ready-to-play rule: a
9
+ // video still processing, or unpublished, is not shown. A page worker registers it under a service name; the descriptor binds
10
+ // `$service:<serviceName>.*` (recipe videos-carousel).
11
+ import { defineService } from "@himalaya/state";
12
+ import { latestVideos, listChannels, videoCard, type WixVideoChannel } from "@himalaya/wix-video";
13
+ import { copyParam, stashCopy } from "./himi-copy.js";
14
+
15
+ export interface VideosSectionOptions {
16
+ /** The source channel's id; unset reads every channel. */
17
+ channelId?: string;
18
+ /** How many videos to show. */
19
+ limit?: number;
20
+ /** The title under each cover (default on). */
21
+ showTitle?: boolean;
22
+ /** The length on each cover (default on). */
23
+ showDuration?: boolean;
24
+ }
25
+
26
+ export interface VideoRow {
27
+ id: string; channelId: string; title: string; duration: string;
28
+ coverUrl: string; hasCover: boolean; noCover: boolean;
29
+ /** hiddenWhen gates (they hide on TRUE) for the parts the source switches off or the video has none of. */
30
+ noTitle: boolean; noDuration: boolean;
31
+ /** One spoken label for the card: title, length and channel. */
32
+ accessibilityLabel: string;
33
+ }
34
+
35
+ export interface VideosSectionState {
36
+ status: "loading" | "ready" | "error";
37
+ rows: VideoRow[];
38
+ notLoading: boolean; notErrored: boolean; noRows: boolean;
39
+ /** false only when the read answered and the channel has no ready video: the heading and See All have nothing to introduce. */
40
+ noEmpty: boolean;
41
+ /** false when the channel has more videos than the section shows. */
42
+ noMore: boolean;
43
+ }
44
+
45
+ const DEFAULT_LIMIT = 8;
46
+ /** A 260pt card at 3x, 16:9: the shared list size (1000px) would ship far more pixels than a rail shows. */
47
+ const CARD_IMAGE = { width: 780, height: 440, quality: 85 };
48
+
49
+ /** How many videos the gateway says exist for the channels that were read (every channel when no channel was chosen). */
50
+ function totalOf(channels: WixVideoChannel[]): number {
51
+ return channels.reduce((sum, channel) => sum + (channel.videos?.total ?? channel.videos?.entities?.length ?? 0), 0);
52
+ }
53
+
54
+ export function registerVideosSection(serviceName: string, options: VideosSectionOptions = {}) {
55
+ const limit = options.limit ?? DEFAULT_LIMIT;
56
+ const showTitle = options.showTitle !== false;
57
+ const showDuration = options.showDuration !== false;
58
+ const view = (status: VideosSectionState["status"], rows: VideoRow[], more: boolean): VideosSectionState => ({
59
+ status, rows,
60
+ notLoading: status !== "loading", notErrored: status !== "error", noRows: !rows.length,
61
+ noEmpty: !(status === "ready" && !rows.length),
62
+ noMore: !more,
63
+ });
64
+ return defineService<VideosSectionState, { load: (state: VideosSectionState, arg?: unknown) => Promise<VideosSectionState> }>(serviceName, {
65
+ state: view("loading", [], false),
66
+ actions: {
67
+ load: async (_state, arg) => {
68
+ stashCopy(arg);
69
+ try {
70
+ const all = await listChannels({ videosPerChannel: limit });
71
+ // A chosen channel that no longer exists leaves the section empty, never another channel's videos.
72
+ const channels = options.channelId ? all.filter((channel) => channel.id === options.channelId) : all;
73
+ const untitled = copyParam("videos.untitledVideo", "Video");
74
+ const rows = latestVideos(channels, limit).map((entry): VideoRow => {
75
+ const card = videoCard(entry, untitled, CARD_IMAGE);
76
+ return {
77
+ id: card.id, channelId: card.channelId, title: card.title, duration: showDuration ? card.duration : "",
78
+ coverUrl: card.coverUrl, hasCover: card.hasCover, noCover: card.noCover,
79
+ noTitle: !showTitle, noDuration: !showDuration || !card.duration,
80
+ accessibilityLabel: card.accessibilityLabel,
81
+ };
82
+ });
83
+ return view("ready", rows, totalOf(channels) > rows.length);
84
+ } catch (error) {
85
+ console.warn("videos_section: the videos could not be read", error);
86
+ return view("error", [], false);
87
+ }
88
+ },
89
+ },
90
+ });
91
+ }