@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
@@ -1,405 +0,0 @@
1
- // The FAQ as a registrable service: one worker for the himi_faq screen and for a migrated page's FAQ section.
2
- // registerFaqList(name) -> the screen: every question, search, categories (the himi_faq bundle is this call);
3
- // registerFaqList(name, options) -> a section: `limit` (the source's NumberOfFAQs), `showCategories`, `firstOpen`, `oneAtATime`, `showSearch`.
4
- // State and flags are the screen's own (`loadingHidden`, `errorHidden`, ...), so the faq-list recipe and the himi_faq descriptor bind the same names.
5
- import { defineService } from "@himalaya/state";
6
- import {
7
- queryCategories,
8
- queryQuestionEntries,
9
- type WixCategory,
10
- type WixQuestionEntry,
11
- } from "@himalaya/wix-faq";
12
- import { openRichLink } from "../_shared/rich-content-link.js";
13
- import { richBody, ROW_IMAGE_WIDTH } from "../_shared/rich-body.js";
14
-
15
- interface FaqQuestion {
16
- id: string;
17
- categoryId: string;
18
- question: string;
19
- /** The PLAIN_TEXT answer: the RichContent fallback, and what shows with no trusted document. */
20
- answer: string;
21
- /** [rico] #3372 — the RICH_CONTENT answer as ONE document string, used ONLY when its text matches the plain
22
- * answer (a legacy DraftJS record converts unreliably); "" otherwise. */
23
- answerJson: string;
24
- /** answerJson !== "" — gates the plain answer, because RichContent draws nothing for "". */
25
- hasAnswerJson: boolean;
26
- sortOrder?: number;
27
- status: string;
28
- }
29
-
30
- interface FaqCategory {
31
- id: string;
32
- title: string;
33
- sortOrder?: number;
34
- }
35
-
36
- interface QuestionRow {
37
- id: string;
38
- title: string;
39
- answer: string;
40
- answerJson: string;
41
- hasAnswerJson: boolean;
42
- expanded: boolean;
43
- }
44
-
45
- interface CategorySection {
46
- id: string;
47
- title: string;
48
- questions: QuestionRow[];
49
- }
50
-
51
- interface FaqDisplayRow extends QuestionRow {
52
- categoryTitle: string;
53
- categoryHeaderHidden: boolean;
54
- }
55
-
56
- interface FaqState {
57
- status: "loading" | "ready" | "error" | "forbidden" | "notInstalled";
58
- categories: FaqCategory[];
59
- questions: FaqQuestion[];
60
- sections: CategorySection[];
61
- rows: FaqDisplayRow[];
62
- query: string;
63
- expandedIds: string[];
64
- otherTitle: string;
65
- loadingHidden: boolean;
66
- contentHidden: boolean;
67
- emptyHidden: boolean;
68
- errorHidden: boolean;
69
- forbiddenHidden: boolean;
70
- notInstalledHidden: boolean;
71
- /** The section's search field is off (the source's showSearchBar is false). */
72
- searchHidden: boolean;
73
- }
74
-
75
- /** What a source FAQ section sets. Every option defaults to what the himi_faq screen does. */
76
- export interface FaqListOptions {
77
- /** Show at most this many questions (the source's NumberOfFAQs). */
78
- limit?: number;
79
- /** false: no category headers. */
80
- showCategories?: boolean;
81
- /** Open the first question when the list first loads. */
82
- firstOpen?: boolean;
83
- /** Opening a question closes the others. */
84
- oneAtATime?: boolean;
85
- /** false: no search field. */
86
- showSearch?: boolean;
87
- }
88
-
89
- const PAGE_SIZE = 100;
90
-
91
- /** Caps on the static pairs, matching `BRANDED_LITE_FAQ_LIMITS` in the app contract. The
92
- * param is re-bounded here because a worker must not trust a descriptor it did not build. */
93
- const STATIC_LIMITS = { pairs: 20, question: 200, answer: 1500 } as const;
94
- const STATIC_CATEGORY: FaqCategory = { id: "himi-static-faq", title: "" };
95
-
96
- /** The site's own FAQ pairs — questions it publishes as page sections rather than
97
- * through the Wix FAQ app, carried in by `site analyze --apply` as the `staticFaq` onAppear
98
- * param (a JSON string: action params are string-valued). They are the FALLBACK: shown only
99
- * when the FAQ app yields no visible question, so an owner-edited Wix FAQ always wins. */
100
-
101
- function parseStaticFaq(raw: unknown): FaqQuestion[] {
102
- let pairs: unknown = raw;
103
- if (typeof raw === "string") {
104
- try {
105
- pairs = JSON.parse(raw);
106
- } catch {
107
- // A malformed param is a DESCRIPTOR bug, not an empty FAQ: there is no fallback to
108
- // offer, so the screen shows exactly what the Wix FAQ read says — its content, its
109
- // empty card, or its error card — rather than pretending the site has no questions.
110
- pairs = undefined;
111
- }
112
- }
113
- if (!Array.isArray(pairs)) return [];
114
- const out: FaqQuestion[] = [];
115
- for (const pair of pairs) {
116
- if (out.length >= STATIC_LIMITS.pairs) break;
117
- const row = pair && typeof pair === "object" ? pair as { q?: unknown; a?: unknown } : {};
118
- const question = typeof row.q === "string" ? row.q.trim().slice(0, STATIC_LIMITS.question) : "";
119
- const answer = typeof row.a === "string" ? row.a.trim().slice(0, STATIC_LIMITS.answer) : "";
120
- if (!question || !answer) continue;
121
- out.push({
122
- id: `himi-static-faq-${out.length}`,
123
- categoryId: STATIC_CATEGORY.id,
124
- question,
125
- answer,
126
- // The site's own pairs are plain strings: there is no document to render.
127
- answerJson: "",
128
- hasAnswerJson: false,
129
- sortOrder: out.length,
130
- status: "VISIBLE",
131
- });
132
- }
133
- return out;
134
- }
135
-
136
- function sortByWixOrder<T extends { id: string; sortOrder?: number }>(left: T, right: T): number {
137
- const a = Number.isFinite(left.sortOrder) ? left.sortOrder! : Number.POSITIVE_INFINITY;
138
- const b = Number.isFinite(right.sortOrder) ? right.sortOrder! : Number.POSITIVE_INFINITY;
139
- return a - b || (left.id < right.id ? -1 : left.id > right.id ? 1 : 0);
140
- }
141
-
142
- function uniqueById<T extends { id: string }>(rows: T[]): T[] {
143
- return [...new Map(rows.filter((row) => row.id).map((row) => [row.id, row])).values()];
144
- }
145
-
146
- function sectionsFor(state: Pick<FaqState, "categories" | "questions" | "query" | "expandedIds" | "otherTitle">, limit?: number): CategorySection[] {
147
- const needle = state.query.trim().toLowerCase();
148
- const visible = state.questions
149
- .filter((row) => row.status.toUpperCase() !== "HIDDEN")
150
- .filter((row) => !needle || `${row.question}\n${row.answer}`.toLowerCase().includes(needle))
151
- .sort(sortByWixOrder)
152
- .slice(0, limit ?? Number.POSITIVE_INFINITY);
153
- const expanded = new Set(state.expandedIds);
154
- const known = new Set(state.categories.map((category) => category.id));
155
- const row = (question: FaqQuestion): QuestionRow => ({
156
- id: question.id,
157
- title: question.question,
158
- answer: question.answer,
159
- answerJson: question.answerJson,
160
- hasAnswerJson: question.hasAnswerJson,
161
- expanded: expanded.has(question.id),
162
- });
163
- const sections = state.categories
164
- .slice()
165
- .sort(sortByWixOrder)
166
- .map((category) => ({
167
- id: category.id,
168
- title: category.title,
169
- questions: visible.filter((question) => question.categoryId === category.id).map(row),
170
- }))
171
- .filter((section) => section.questions.length > 0);
172
- const orphaned = visible.filter((question) => !known.has(question.categoryId));
173
- if (orphaned.length) sections.push({ id: "other", title: state.otherTitle, questions: orphaned.map(row) });
174
- return sections;
175
- }
176
-
177
- function ready(state: FaqState, options: FaqListOptions = {}): FaqState {
178
- const sections = sectionsFor(state, options.limit);
179
- const rows = sections.flatMap((section) => section.questions.map((question, index) => ({
180
- ...question,
181
- categoryTitle: section.title,
182
- // An untitled section (the static fallback's) has no header to show.
183
- categoryHeaderHidden: options.showCategories === false || index !== 0 || !section.title,
184
- })));
185
- return {
186
- ...state,
187
- status: "ready",
188
- sections,
189
- rows,
190
- loadingHidden: true,
191
- contentHidden: sections.length === 0,
192
- emptyHidden: sections.length > 0,
193
- errorHidden: true,
194
- forbiddenHidden: true,
195
- notInstalledHidden: true,
196
- };
197
- }
198
-
199
- function failure(state: FaqState, status: FaqState["status"]): FaqState {
200
- return {
201
- ...state,
202
- status,
203
- categories: [],
204
- questions: [],
205
- sections: [],
206
- rows: [],
207
- loadingHidden: true,
208
- contentHidden: true,
209
- emptyHidden: true,
210
- errorHidden: status !== "error",
211
- forbiddenHidden: status !== "forbidden",
212
- notInstalledHidden: status !== "notInstalled",
213
- };
214
- }
215
-
216
- function httpStatus(error: unknown): number | undefined {
217
- if (!error || typeof error !== "object") return undefined;
218
- const row = error as { status?: unknown; statusCode?: unknown; response?: { status?: unknown }; message?: unknown };
219
- for (const value of [row.status, row.statusCode, row.response?.status]) {
220
- if (typeof value === "number") return value;
221
- }
222
- const match = typeof row.message === "string" ? row.message.match(/\b(403|428)\b/) : null;
223
- return match ? Number(match[1]) : undefined;
224
- }
225
-
226
- async function allCategories(): Promise<FaqCategory[]> {
227
- const rows: FaqCategory[] = [];
228
- const seen = new Set<string>();
229
- let cursor = "";
230
- do {
231
- const response = await queryCategories({ query: { cursorPaging: { limit: PAGE_SIZE, ...(cursor ? { cursor } : {}) } } });
232
- rows.push(...(response.categories ?? []).map((category: WixCategory) => ({
233
- id: category.id ?? "",
234
- title: (category.title ?? "").trim() || "Other",
235
- ...(typeof category.sortOrder === "number" ? { sortOrder: category.sortOrder } : {}),
236
- })));
237
- const next = response.pagingMetadata?.cursors?.next ?? "";
238
- if (!next || seen.has(next)) break;
239
- seen.add(next);
240
- cursor = next;
241
- } while (cursor);
242
- return uniqueById(rows);
243
- }
244
-
245
- /** The answer's text with every whitespace run collapsed to one space: PLAIN_TEXT and a document's plain text
246
- * may separate blocks differently ("\n" vs "\n\n"), and that is not a garbled conversion, but a space inside
247
- * the text is content ("New York" is not "NewYork"). */
248
- const normalizeSpace = (text: string): string => text.replace(/\s+/g, " ").trim();
249
-
250
- /** [rico] #3372 — the RICH_CONTENT answer as a document string, trusted ONLY when its text matches the
251
- * PLAIN_TEXT answer. Wix converts a legacy DraftJS answer to Ricos unreliably, and the plain answer is
252
- * the one a visitor has always been shown, so a document that disagrees with it is dropped. */
253
- function richAnswer(plain: string, rich: unknown): string {
254
- // richBody encodes FIRST, so a document past the viewer's limits (too deep included) is rejected without an
255
- // unbounded plain-text walk, and gives "". Answers render in a list, so their media are list-sized.
256
- const { bodyJson, bodyText } = richBody(rich, "", ROW_IMAGE_WIDTH);
257
- return bodyJson && normalizeSpace(bodyText) === normalizeSpace(plain) ? bodyJson : "";
258
- }
259
-
260
- /** Every question entry in one content format, following THAT query's own cursors: a cursor belongs to the
261
- * request that returned it, so the two formats never share one. */
262
- async function entriesIn(contentFormat: "PLAIN_TEXT" | "RICH_CONTENT"): Promise<WixQuestionEntry[]> {
263
- const rows: WixQuestionEntry[] = [];
264
- const seen = new Set<string>();
265
- let cursor = "";
266
- do {
267
- const response = await queryQuestionEntries({
268
- query: {
269
- cursorPaging: { limit: PAGE_SIZE, ...(cursor ? { cursor } : {}) },
270
- filter: { status: { $in: ["VISIBLE", "UNKNOWN"] } },
271
- },
272
- contentFormat,
273
- });
274
- rows.push(...(response.questionEntries ?? []));
275
- const next = response.pagingMetadata?.cursors?.next ?? "";
276
- if (!next || seen.has(next)) break;
277
- seen.add(next);
278
- cursor = next;
279
- } while (cursor);
280
- return rows;
281
- }
282
-
283
- async function allQuestions(): Promise<FaqQuestion[]> {
284
- // Both formats are read in parallel, each paged on its own. PLAIN_TEXT is the list; a RICH_CONTENT read
285
- // that fails only costs the documents — every answer keeps its plain text.
286
- const [plain, rich] = await Promise.all([
287
- entriesIn("PLAIN_TEXT"),
288
- entriesIn("RICH_CONTENT").catch(() => [] as WixQuestionEntry[]),
289
- ]);
290
- const richById = new Map(rich.map((question: WixQuestionEntry) => [question.id ?? "", question.richContent]));
291
- const rows = plain.map((question: WixQuestionEntry) => {
292
- const answer = (question.plainText ?? "").trim();
293
- const answerJson = richAnswer(answer, richById.get(question.id ?? ""));
294
- return {
295
- id: question.id ?? "",
296
- categoryId: question.categoryId ?? "",
297
- question: (question.question ?? "").trim(),
298
- answer,
299
- answerJson,
300
- hasAnswerJson: answerJson !== "",
301
- ...(typeof question.sortOrder === "number" ? { sortOrder: question.sortOrder } : {}),
302
- status: question.status ?? "UNKNOWN",
303
- };
304
- }).filter((question) =>
305
- question.id && question.question && question.status.toUpperCase() !== "HIDDEN",
306
- );
307
- return uniqueById(rows);
308
- }
309
-
310
- const INITIAL: FaqState = {
311
- status: "loading",
312
- categories: [],
313
- questions: [],
314
- sections: [],
315
- rows: [],
316
- query: "",
317
- expandedIds: [],
318
- otherTitle: "Other",
319
- loadingHidden: false,
320
- contentHidden: true,
321
- emptyHidden: true,
322
- errorHidden: true,
323
- forbiddenHidden: true,
324
- notInstalledHidden: true,
325
- searchHidden: false,
326
- };
327
-
328
- export function registerFaqList(serviceName: string, options: FaqListOptions = {}) {
329
- /** The site's own FAQ pairs: the FALLBACK shown only when the FAQ app yields no visible question (see parseStaticFaq). */
330
- let staticQuestions: FaqQuestion[] = [];
331
- const initial: FaqState = { ...INITIAL, searchHidden: options.showSearch === false };
332
- let latestState = initial;
333
- let loadGeneration = 0;
334
- /** The reader opened or closed a question: `firstOpen` then stops deciding what is open. */
335
- let touched = false;
336
-
337
- const settle = (state: FaqState): FaqState => ready(state, options);
338
-
339
- /** The site's pairs as a ready state, or undefined when there are none to fall back to. */
340
- function staticFallback(state: FaqState): FaqState | undefined {
341
- if (!staticQuestions.length) return undefined;
342
- return settle({ ...state, categories: [STATIC_CATEGORY], questions: staticQuestions });
343
- }
344
-
345
- function commit(state: FaqState): FaqState {
346
- latestState = state;
347
- return state;
348
- }
349
-
350
- async function loadFaq(state: FaqState, arg?: { otherCategory?: string; staticFaq?: unknown }): Promise<FaqState> {
351
- latestState = state;
352
- // Only when the caller passed the param: `retry` is dispatched with no params and must keep
353
- // the pairs the screen's onAppear delivered.
354
- if (arg && "staticFaq" in arg) staticQuestions = parseStaticFaq(arg.staticFaq);
355
- const generation = ++loadGeneration;
356
- try {
357
- const [categories, questions] = await Promise.all([allCategories(), allQuestions()]);
358
- if (generation !== loadGeneration) return latestState;
359
- const otherTitle = String(arg?.otherCategory ?? latestState.otherTitle).trim() || latestState.otherTitle;
360
- let live = settle({ ...latestState, categories, questions, otherTitle });
361
- const first = live.sections[0]?.questions[0]?.id;
362
- if (options.firstOpen && !touched && !live.expandedIds.length && first) live = settle({ ...live, expandedIds: [first] });
363
- // The Wix FAQ app answered but holds nothing a visitor can see — the site's own pairs,
364
- // when it has any, instead of an empty state over a site whose FAQ is right there.
365
- if (questions.length === 0) return commit(staticFallback(live) ?? live);
366
- return commit(live);
367
- } catch (error) {
368
- if (generation !== loadGeneration) return latestState;
369
- console.warn("faq_list: the questions could not be read", error);
370
- const status = httpStatus(error);
371
- // No FAQ app (428), no visitor access (403) or a failed read: a site whose FAQ is page
372
- // content still has an FAQ to show, so its pairs replace the failure card.
373
- const fallback = staticFallback(latestState);
374
- if (fallback) return commit(fallback);
375
- return commit(failure(latestState, status === 403 ? "forbidden" : status === 428 ? "notInstalled" : "error"));
376
- }
377
- }
378
-
379
- return defineService(serviceName, {
380
- state: initial,
381
- actions: {
382
- load: loadFaq,
383
- retry: loadFaq,
384
- search: (state: FaqState, arg?: { value?: string }) => commit(settle({ ...state, query: String(arg?.value ?? "").slice(0, 256) })),
385
- toggle: (state: FaqState, arg?: { id?: string }) => {
386
- const id = String(arg?.id ?? "");
387
- if (!id || !state.questions.some((question) => question.id === id)) return state;
388
- touched = true;
389
- const open = state.expandedIds.includes(id);
390
- const expandedIds = open
391
- ? state.expandedIds.filter((candidate) => candidate !== id)
392
- : options.oneAtATime ? [id] : [...state.expandedIds, id];
393
- return commit(settle({ ...state, expandedIds }));
394
- },
395
- // [rico] #3372 — an answer RichContent's on_link: `{ url }` of the tapped link. Only http(s), mailto and
396
- // tel links reach open_url; the FAQ has no message line, so a refused link simply does nothing.
397
- openLink: async (state: FaqState, arg?: unknown) => {
398
- await openRichLink(arg);
399
- return state;
400
- },
401
- },
402
- });
403
- }
404
-
405
- export { sectionsFor, httpStatus, parseStaticFaq };
@@ -1,110 +0,0 @@
1
- // A page's groups section as a registrable service: the One App groups list, driven by the source section's settings.
2
- // groupIds -> only those groups, in that order (unset: every group the site publishes),
3
- // limit -> at most N groups, and `noMore` is false when there are more (the section's "View All" button shows then).
4
- // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe groups-list.json).
5
- import { defineService } from "@himalaya/state";
6
- import { queryGroups, type WixGroup } from "@himalaya/wix-groups";
7
- import { groupImage } from "./himi-media.js";
8
- import { copyParam, stashCopy } from "./himi-copy.js";
9
- import { groupMemberCount } from "./group-member-count.js";
10
- import { descriptionBody } from "./rich-body.js";
11
-
12
- export interface GroupsSectionOptions {
13
- /** Show only these groups, in this order. */
14
- groupIds?: string[];
15
- /** Show at most this many groups. */
16
- limit?: number;
17
- }
18
-
19
- export interface GroupRow {
20
- id: string; title: string; subtitle: string; meta: string; hasMeta: boolean; noMeta: boolean;
21
- image: string; initial: string; hasImage: boolean; noImage: boolean;
22
- /** The group screen a row opens; the row binds `id` as its nav param. */
23
- detailScreenId: string;
24
- }
25
-
26
- export interface GroupsSectionState {
27
- status: "loading" | "ready" | "error";
28
- rows: GroupRow[];
29
- emptyText: string;
30
- notLoading: boolean; notErrored: boolean; noRows: boolean; noEmpty: boolean;
31
- /** false when the site has more groups than the section shows. */
32
- noMore: boolean;
33
- }
34
-
35
- /** The most groups one query reads. */
36
- /** The row's 72pt thumbnail at 3x: the shared list size (1000px) would fetch and decode far more pixels than it shows. */
37
- const GROUP_THUMB = { width: 216, height: 216, quality: 85 };
38
- const QUERY_LIMIT = 100;
39
- /** The most groups one section reads (10 pages): a site beyond it is shown as "has more" instead of silently cut. */
40
- const MAX_GROUPS = 1000;
41
-
42
- /**
43
- * Pages of groups, read by offset until the section has what it needs: every chosen group, one more than its limit (enough to know
44
- * there is more), or the end of the site's groups. `truncated` is true only when the cap stopped the read with groups left.
45
- */
46
- async function readGroups(chosen: string[] | undefined, limit: number | undefined): Promise<{ groups: WixGroup[]; truncated: boolean }> {
47
- const groups: WixGroup[] = [];
48
- for (let offset = 0; ; offset = groups.length) {
49
- const response = await queryGroups({ paging: { limit: QUERY_LIMIT, offset } });
50
- const page = (response.groups ?? []) as WixGroup[];
51
- groups.push(...page);
52
- const total = response.metaData?.total;
53
- if (page.length < QUERY_LIMIT || (typeof total === "number" && groups.length >= total)) return { groups, truncated: false };
54
- if (chosen?.length ? chosen.every((id) => groups.some((group) => group.id === id)) : limit !== undefined && groups.length > limit) return { groups, truncated: false };
55
- if (groups.length >= MAX_GROUPS) return { groups, truncated: true };
56
- }
57
- }
58
-
59
- function snippet(value: string): string {
60
- const text = value.replace(/\s+/g, " ");
61
- return text.length > 140 ? `${text.slice(0, 139).trimEnd()}…` : text;
62
- }
63
-
64
- function groupRow(group: WixGroup): GroupRow {
65
- const title = (group.name || copyParam("groups.groupFallbackName", "Group")).trim();
66
- const count = group.membersCount ?? group.memberCount;
67
- const image = groupImage(group, GROUP_THUMB);
68
- const teaser = descriptionBody(group.teaser).bodyText;
69
- const body = descriptionBody(group.description, teaser).bodyText;
70
- const meta = count == null ? "" : groupMemberCount(count);
71
- return {
72
- id: group.id || title, title,
73
- subtitle: snippet(teaser) || snippet(body) || copyParam("groups.subtitleFallback", "Join the conversation."),
74
- meta, hasMeta: !!meta, noMeta: !meta,
75
- image, initial: (title[0] || "G").toUpperCase(), hasImage: Boolean(image), noImage: !image,
76
- detailScreenId: "himi_group",
77
- };
78
- }
79
-
80
- export function registerGroupsSection(serviceName: string, options: GroupsSectionOptions = {}) {
81
- const view = (status: GroupsSectionState["status"], rows: GroupRow[], more: boolean): GroupsSectionState => ({
82
- status, rows,
83
- emptyText: status === "ready" && !rows.length ? copyParam("groups.emptyText", "No groups are published yet.") : "",
84
- notLoading: status !== "loading", notErrored: status !== "error",
85
- noRows: !rows.length, noEmpty: !(status === "ready" && !rows.length),
86
- noMore: !more,
87
- });
88
- return defineService<GroupsSectionState, { load: (state: GroupsSectionState, arg?: unknown) => Promise<GroupsSectionState> }>(serviceName, {
89
- state: view("loading", [], false),
90
- actions: {
91
- load: async (_state, arg) => {
92
- stashCopy(arg);
93
- try {
94
- const read = await readGroups(options.groupIds, options.limit);
95
- let groups = read.groups;
96
- if (options.groupIds?.length) {
97
- // The chosen groups, in the source's order; one that no longer exists is simply absent.
98
- const byId = new Map(groups.map((group) => [group.id, group]));
99
- groups = options.groupIds.flatMap((id) => byId.get(id) ?? []);
100
- }
101
- const shown = options.limit !== undefined ? groups.slice(0, options.limit) : groups;
102
- return view("ready", shown.map(groupRow), read.truncated || shown.length < groups.length);
103
- } catch (error) {
104
- console.warn("groups_section: the groups could not be read", error);
105
- return view("error", [], false);
106
- }
107
- },
108
- },
109
- });
110
- }
@@ -1,34 +0,0 @@
1
- // The One App's "Active 11h ago" / "Last seen Apr 5, 2023" line for a member, from the same inputs and by
2
- // the same rule as its member list (wix-one-app-members-area getActiveSinceText).
3
- import type { WixMemberActivity } from "@himalaya/wix-members";
4
- import { copyParam, copyTemplate } from "./himi-copy.js";
5
- import { appLocale } from "./app-locale.js";
6
- import { formatDateMedium } from "./engine-intl.js";
7
-
8
- /** Less than this many days reads as "Active Nd ago"; from here the One App prints the date instead. */
9
- const DAYS_AS_COUNT = 30;
10
-
11
- /** "" when there is nothing to say: a member who never opened the app shows no line. */
12
- export function activityText(activity: Pick<WixMemberActivity, "online" | "lastOpenApp"> | undefined): string {
13
- if (!activity) return "";
14
- const activeNow = () => copyParam("members.activeNow", "Active now");
15
- if (activity.online) return activeNow();
16
- const last = activity.lastOpenApp;
17
- if (!last) return "";
18
- const amount = typeof last.amount === "number" ? last.amount : 0;
19
- switch (last.unit) {
20
- case "min":
21
- return amount === 0 ? activeNow() : copyTemplate("members.activeMinutesAgo", "Active {amount}m ago", { amount });
22
- case "hour":
23
- return copyTemplate("members.activeHoursAgo", "Active {amount}h ago", { amount });
24
- case "day": {
25
- const daysAgo = () => copyTemplate("members.activeDaysAgo", "Active {amount}d ago", { amount });
26
- if ((amount && amount < DAYS_AS_COUNT) || !last.ts) return daysAgo();
27
- const at = Number(last.ts);
28
- if (!Number.isFinite(at)) return daysAgo();
29
- return copyTemplate("members.lastSeen", "Last seen {date}", { date: formatDateMedium(new Date(at), appLocale()) });
30
- }
31
- default:
32
- return "";
33
- }
34
- }