@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,175 +0,0 @@
1
- // What a members-directory row shows beyond name and photo: the role line, the member's badges and the
2
- // Follow control. One call per page for each source, and none of it may fail the directory: a refused or
3
- // failed read leaves that row element out (no chip, a plain Follow), never an error in place of the list.
4
- import { query as queryBadges, queryBadgeAssignments, type WixBadge } from "@himalaya/wix-badges";
5
- import { getMyMember, listFollowedMembers, queryMemberActivity } from "@himalaya/wix-members";
6
- import { compareIso } from "./engine-intl.js";
7
- import { copyParam } from "./himi-copy.js";
8
- import { activityText } from "./member-activity.js";
9
- import type { ReadAccess } from "./member-read.js";
10
-
11
- /** The One App row draws ONE badge chip and a "+N" chip for the rest. */
12
- const MAX_BADGE_CHIPS = 1;
13
- const PAGE_LIMIT = 100;
14
- const CATALOG_PAGES = 5;
15
- const ASSIGNMENT_PAGES = 10;
16
- /** The chip's text is white (`textOnAccent`); this is the least contrast it may have against the badge colour. */
17
- const MIN_CONTRAST = 3;
18
-
19
- export interface MemberRowExtras {
20
- /** Role line, then the last-active line when there is one. The role line reads "Member" for everyone: the activity route
21
- * also answers a role (an admin's is "ADMIN"), but the One App's wording for the other roles is not recorded here,
22
- * so none is guessed. */
23
- subtitle: string;
24
- badgeTitle: string; badgeColor: string; noBadge: boolean;
25
- badgeMore: string; noBadgeMore: boolean;
26
- followLabel: string; isFollowing: boolean;
27
- /** Hidden for a Visitor (who gets the sign-in variant) and on the signed-in member's own row. */
28
- hideFollow: boolean;
29
- /** Only a Visitor sees this one: Follow needs a member, so the tap opens sign-in. */
30
- hideSignInFollow: boolean;
31
- }
32
-
33
- export function followLabel(isFollowing: boolean): string {
34
- return copyParam(isFollowing ? "members.followingCta" : "members.followCta", isFollowing ? "Following" : "Follow");
35
- }
36
-
37
- interface BadgeInfo { title: string; color: string; rank: number }
38
-
39
- function hexRgb(value: string | undefined): [number, number, number] | undefined {
40
- const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec((value ?? "").trim());
41
- if (!m) return undefined;
42
- const h = m[1].length === 3 ? m[1].split("").map(c => c + c).join("") : m[1];
43
- return [0, 2, 4].map(i => parseInt(h.slice(i, i + 2), 16)) as [number, number, number];
44
- }
45
- function luminance([r, g, b]: [number, number, number]): number {
46
- const lin = (v: number) => { const c = v / 255; return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4); };
47
- return 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b);
48
- }
49
- /** The badge colour as `#rrggbb`, darkened until white text on it reads (a pastel chip would otherwise
50
- * lose its label in one of the two themes). "" when the badge carries no usable colour, so the row's
51
- * token background shows instead. */
52
- export function chipColor(value: string | undefined): string {
53
- let rgb = hexRgb(value);
54
- if (!rgb) return "";
55
- while ((1.05 / (luminance(rgb) + 0.05)) < MIN_CONTRAST && (rgb[0] || rgb[1] || rgb[2])) {
56
- rgb = rgb.map(c => Math.floor(c * 0.9)) as [number, number, number];
57
- }
58
- return "#" + rgb.map(c => c.toString(16).padStart(2, "0")).join("");
59
- }
60
-
61
- let catalogTenant = "";
62
- let catalog: Map<string, BadgeInfo> | undefined;
63
-
64
- /** The site's badges, newest first: that is the order the One App picks a member's first chip in. */
65
- async function badgeCatalog(tenant: string): Promise<Map<string, BadgeInfo>> {
66
- if (catalog && catalogTenant === tenant) return catalog;
67
- const badges: WixBadge[] = [];
68
- let cursor: string | undefined;
69
- for (let page = 0; page < CATALOG_PAGES; page++) {
70
- const res = await queryBadges({ query: { cursorPaging: cursor ? { cursor } : { limit: PAGE_LIMIT } } });
71
- badges.push(...(res.badges ?? []));
72
- cursor = res.pagingMetadata?.hasNext ? res.pagingMetadata.cursors?.next : undefined;
73
- if (!cursor) break;
74
- }
75
- if (cursor) throw new Error("Badge catalog is longer than the pages read");
76
- const newestFirst = badges.filter(b => b.id && b.title?.trim())
77
- .sort((a, b) => compareIso(String(b.createdDate ?? ""), String(a.createdDate ?? "")));
78
- catalogTenant = tenant;
79
- return catalog = new Map(newestFirst.map((b, rank) => [b.id as string, { title: (b.title as string).trim(), color: chipColor(b.backgroundColor), rank }]));
80
- }
81
-
82
- /** memberId → badge ids, for the page's members. A cursor request carries the cursor alone: the service
83
- * refuses (400) a follow-up page that repeats the filter or the limit. A page the pages cap cuts short is refused whole: a
84
- * partial list would show the wrong first chip and a wrong "+N". */
85
- export async function badgesByMember(ids: string[]): Promise<Map<string, string[]>> {
86
- const byMember = new Map<string, string[]>();
87
- let cursor: string | undefined;
88
- for (let page = 0; page < ASSIGNMENT_PAGES; page++) {
89
- const res = await queryBadgeAssignments({ query: cursor ? { cursorPaging: { cursor } } : { filter: { memberId: { $in: ids } }, cursorPaging: { limit: PAGE_LIMIT } } });
90
- for (const a of res.badgeAssignments ?? []) {
91
- if (!a.memberId || !a.badgeId) continue;
92
- const held = byMember.get(a.memberId) ?? [];
93
- held.push(a.badgeId); byMember.set(a.memberId, held);
94
- }
95
- cursor = res.pagingMetadata?.hasNext ? res.pagingMetadata.cursors?.next : undefined;
96
- if (!cursor) return byMember;
97
- }
98
- throw new Error("Badge assignments are longer than the pages read");
99
- }
100
-
101
- async function readBadges(ids: string[], tenant: string): Promise<Map<string, BadgeInfo[]>> {
102
- const [known, held] = await Promise.all([badgeCatalog(tenant), badgesByMember(ids)]);
103
- const result = new Map<string, BadgeInfo[]>();
104
- for (const [memberId, badgeIds] of held) {
105
- const badges = badgeIds.map(id => known.get(id)).filter((b): b is BadgeInfo => !!b).sort((a, b) => a.rank - b.rank);
106
- if (badges.length) result.set(memberId, badges);
107
- }
108
- return result;
109
- }
110
-
111
- /** memberId → "Active 11h ago" etc., for the members the One App service knows and has something to say about.
112
- * An older native build refuses the route; that leaves the activity line out and nothing else. */
113
- export async function readActivity(ids: string[]): Promise<Map<string, string>> {
114
- return (await readMemberActivity(ids)).texts;
115
- }
116
-
117
- /** The same read, plus the members the service answered for: one it answered for with nothing to say (never opened the app) is
118
- * known and shows no line, which is different from one it did not answer for at all. */
119
- export async function readMemberActivity(ids: string[]): Promise<{ texts: Map<string, string>; known: Set<string> }> {
120
- const texts = new Map<string, string>();
121
- const known = new Set<string>();
122
- for (const activity of await queryMemberActivity(ids)) {
123
- known.add(activity.id);
124
- const text = activityText(activity);
125
- if (text) texts.set(activity.id, text);
126
- }
127
- return { texts, known };
128
- }
129
-
130
- async function readFollowed(ids: string[], access: ReadAccess): Promise<Set<string>> {
131
- // Follow state is the signed-in member's own; a Visitor has none to read.
132
- return access.member.email ? new Set(await listFollowedMembers(ids)) : new Set();
133
- }
134
-
135
- let selfScope = "";
136
- let selfId = "";
137
- async function ownMemberId(access: ReadAccess): Promise<string> {
138
- if (!access.member.email) return "";
139
- const scope = JSON.stringify([access.tenant, access.member.email]);
140
- if (selfScope !== scope) {
141
- const id = (await getMyMember({ fieldsets: ["PUBLIC"] })).member?.id ?? "";
142
- // An answer without a member is not a lookup to remember: the next page asks again, so the member's own row
143
- // does not keep a Follow button for the rest of the session.
144
- if (!id) return "";
145
- selfId = id;
146
- selfScope = scope;
147
- }
148
- return selfId;
149
- }
150
-
151
- const attempt = async <T>(read: Promise<T>, fallback: T): Promise<T> => { try { return await read; } catch { return fallback; } };
152
-
153
- /** The per-row extras for one page of members. Each source fails on its own. */
154
- export async function memberRowExtras(ids: string[], access: ReadAccess): Promise<(id: string) => MemberRowExtras> {
155
- const [badges, activity, followed, self] = await Promise.all([
156
- attempt(readBadges(ids, access.tenant), new Map<string, BadgeInfo[]>()),
157
- attempt(readActivity(ids), new Map<string, string>()),
158
- attempt(readFollowed(ids, access), new Set<string>()),
159
- attempt(ownMemberId(access), ""),
160
- ]);
161
- const visitor = !access.member.email;
162
- const role = copyParam("members.roleMember", "Member");
163
- return (id) => {
164
- const held = badges.get(id) ?? [];
165
- const more = held.length - MAX_BADGE_CHIPS;
166
- const isFollowing = followed.has(id);
167
- return {
168
- subtitle: [role, activity.get(id)].filter(Boolean).join(" · "),
169
- badgeTitle: held[0]?.title ?? "", badgeColor: held[0]?.color ?? "", noBadge: !held.length,
170
- badgeMore: more > 0 ? `+${more}` : "", noBadgeMore: more <= 0,
171
- followLabel: followLabel(isFollowing), isFollowing,
172
- hideFollow: visitor || id === self, hideSignInFollow: !visitor,
173
- };
174
- };
175
- }
@@ -1,39 +0,0 @@
1
- // The pure pieces of a members directory row: the activity line and a badge's theme color. No SDK imports, so they run
2
- // (and are tested) outside a worker bundle.
3
- import { copyParam, copyTemplate } from "./himi-copy.js";
4
- import { formatDateMedium } from "./engine-intl.js";
5
-
6
- const MINUTE = 60_000;
7
- const HOUR = 60 * MINUTE;
8
- const DAY = 24 * HOUR;
9
-
10
- /** Theme colors a badge's own color is matched to: the descriptor takes a token name, never a hex. */
11
- const TOKEN_COLORS: Array<[token: string, rgb: [number, number, number]]> = [
12
- ["accentPrimary", [47, 125, 225]], ["success", [46, 157, 87]], ["warning", [224, 161, 0]],
13
- ["danger", [214, 69, 69]], ["textSecondary", [107, 114, 128]],
14
- ];
15
- /** The theme color closest to a badge's hex background; a color that is not a hex is the neutral one. */
16
- export function badgeToken(hex: string | undefined): string {
17
- const match = /^#?([0-9a-f]{6})$/i.exec((hex ?? "").trim());
18
- if (!match) return "textSecondary";
19
- const value = parseInt(match[1]!, 16);
20
- const rgb = [(value >> 16) & 255, (value >> 8) & 255, value & 255];
21
- let best = TOKEN_COLORS[0]!;
22
- let bestDistance = Infinity;
23
- for (const entry of TOKEN_COLORS) {
24
- const distance = entry[1].reduce((sum, channel, i) => sum + (channel - rgb[i]!) ** 2, 0);
25
- if (distance < bestDistance) { best = entry; bestDistance = distance; }
26
- }
27
- return best[0];
28
- }
29
-
30
- /** "Active 11h ago" within a day, "Last seen <date>" after; "" with no login date (or one in the future). */
31
- export function activityLine(lastLogin: string | undefined, now: number): string {
32
- const at = lastLogin ? Date.parse(lastLogin) : NaN;
33
- if (!Number.isFinite(at) || at > now) return "";
34
- const age = now - at;
35
- if (age < MINUTE) return copyParam("members.activeNow", "Active now");
36
- if (age < HOUR) return copyTemplate("members.activeMinutes", "Active {n}m ago", { n: Math.floor(age / MINUTE) });
37
- if (age < DAY) return copyTemplate("members.activeHours", "Active {n}h ago", { n: Math.floor(age / HOUR) });
38
- return copyTemplate("members.lastSeen", "Last seen {date}", { date: formatDateMedium(new Date(at)) });
39
- }
@@ -1,271 +0,0 @@
1
- // Public site-member directory as a registrable service. Search, sorting, totals and offset paging match OneApp's
2
- // Members v1 query; no owner roster or build-time count is substituted. The One App row's extras are opt-in and each
3
- // is read defensively: the role line ("Member · Active 11h ago" / "Last seen Nov 6, 2025"), the member's badges as
4
- // colored chips with a "+N" overflow, and a Follow control. A fact the site does not return is hidden, never invented.
5
- import { defineService } from "@himalaya/state";
6
- import { queryMembers, getMyFollowing, followMember, unfollowMember, type WixMember } from "@himalaya/wix-members";
7
- import { query as queryBadges, type WixBadge } from "@himalaya/wix-badges";
8
- import { wixMediaUrl, type WixImageSize } from "@himalaya/wix-media";
9
- import { createCollectionQuery } from "./collection-query.js";
10
- import { readAccess, assertReadAccess, readAccessDenied, type ReadAccess } from "./member-read.js";
11
- import { memberAccessChanged } from "./member-access.js";
12
- // The paged badge-assignments read (POST /badges/v4/assignments/query; the generated listMembersBadgeIds route answers 404 live).
13
- import { badgesByMember, readMemberActivity } from "./member-row-extras.js";
14
- import { withEmptyFlags } from "./empty-flags.js";
15
- import { stashCopy, copyParam, copyTemplate, copyPlural } from "./himi-copy.js";
16
- import { activityLine, badgeToken } from "./members-directory-view.js";
17
-
18
- export interface MembersDirectoryOptions {
19
- /** "Member" under the name. */
20
- showRole?: boolean;
21
- /** "Active 11h ago" / "Last seen <date>", from the member's last login. */
22
- showActivity?: boolean;
23
- /** The member's badges as colored chips (the first three and a "+N"). */
24
- showBadges?: boolean;
25
- /** A Follow control on each row. */
26
- showFollow?: boolean;
27
- /** A letter heading above each initial's group. Default on. */
28
- letterBands?: boolean;
29
- }
30
-
31
- /** A 40pt row avatar, at 3x: a Wix media reference becomes a fetchable, avatar-sized URL. */
32
- const AVATAR_IMAGE: WixImageSize = { width: 120, height: 120, quality: 85 };
33
- /** One chip and a "+N" for the rest, as the original shows: three chips in the name column collapsed the third into a tall thin bar on a device. */
34
- const BADGE_SLOTS = 1;
35
- const BADGE_PAGE = 100;
36
- /** How many catalog pages are read before the catalog is refused as too long. */
37
- const BADGE_PAGES = 5;
38
- interface Chip { id: string; label: string; token: string }
39
- interface Row {
40
- id: string; name: string; subtitle: string; initial: string; photo: string; sectionTitle: string;
41
- role: string; hasRole: boolean; activity: string; hasActivity: boolean; roleLine: string; hasRoleLine: boolean; noRoleLine: boolean;
42
- badges: Chip[]; hasBadges: boolean; noBadges: boolean; badgeOverflow: string; hasOverflow: boolean; noOverflow: boolean;
43
- badge1Label: string; badge1Token: string; hasBadge1: boolean; noBadge1: boolean;
44
- canFollow: boolean; noFollow: boolean; isFollowing: boolean; followLabel: string;
45
- }
46
- interface S {
47
- status: "loading" | "ready" | "error";
48
- members: Row[]; emptyText: string;
49
- query: string; total: number | null; searchLabel: string; searchPlaceholder: string;
50
- nextCursor: string; noMore: boolean; noPageError: boolean;
51
- error: string; notErrored: boolean; notLoading: boolean; hideSearch: boolean;
52
- actionMessage: string;
53
- }
54
- const PAGE_SIZE = 50;
55
- const SEARCH_FIELDS = ["contact.firstName", "contact.lastName", "profile.nickname"];
56
-
57
- function name(m: WixMember): string {
58
- const nick = m.profile?.nickname?.trim();
59
- if (nick) return nick;
60
- const full = [m.contact?.firstName, m.contact?.lastName].filter(Boolean).join(" ").trim();
61
- return full || "Member";
62
- }
63
-
64
- /** What the page's extra reads found: unknown stays absent. */
65
- interface Extras { badges: Map<string, Chip[]>; following: Set<string> | undefined; /** "Active 4h ago" / "Last seen …" per member from the One App members service, and the members it answered for. */ activity: { texts: Map<string, string>; known: Set<string> } | undefined }
66
-
67
- export function registerMembersDirectory(serviceName: string, options: MembersDirectoryOptions = {}) {
68
- const letterBands = options.letterBands !== false;
69
- let directoryAccess: ReadAccess | undefined;
70
- // Set once the reader has typed a search: from then on the field stays mounted, even while a cleared search
71
- // reloads the full directory (no rows, no query yet), so it never unmounts and loses focus mid-edit.
72
- let searched = false;
73
- let badgeCatalog: Map<string, Chip> | undefined;
74
- // Follow state the reader has changed here, by member id.
75
- const followed = new Map<string, boolean>();
76
- let notice = "";
77
- let signedIn = false;
78
-
79
- async function badgeDefinitions(): Promise<Map<string, Chip>> {
80
- if (badgeCatalog) return badgeCatalog;
81
- // A cursor request carries the cursor alone (the service refuses one that repeats the limit). A catalog longer than the pages read is
82
- // refused whole: a partial one would drop chips from members who hold the badges past it, with no sign.
83
- const badges: WixBadge[] = [];
84
- let cursor: string | undefined;
85
- for (let page = 0; page < BADGE_PAGES; page++) {
86
- const response = await queryBadges({ query: { cursorPaging: cursor ? { cursor } : { limit: BADGE_PAGE } } });
87
- badges.push(...(response.badges ?? []));
88
- // hasNext with no next cursor is an incomplete answer, not the end: refuse it rather than accept a partial catalog.
89
- if (response.pagingMetadata?.hasNext && !response.pagingMetadata.cursors?.next) throw new Error("Badge catalog page is incomplete (hasNext without a cursor)");
90
- cursor = response.pagingMetadata?.hasNext ? response.pagingMetadata.cursors?.next : undefined;
91
- if (!cursor) break;
92
- }
93
- if (cursor) throw new Error("Badge catalog is longer than the pages read");
94
- badgeCatalog = new Map(badges.filter((b: WixBadge) => b.id && b.title).map((b: WixBadge) => [b.id as string, { id: b.id as string, label: b.title as string, token: badgeToken(b.backgroundColor) }]));
95
- return badgeCatalog;
96
- }
97
-
98
- async function extrasFor(members: WixMember[], member: boolean): Promise<Extras> {
99
- const ids = members.map((m) => m.id);
100
- const badges = new Map<string, Chip[]>();
101
- const [badgeRead, followRead, activityRead] = await Promise.allSettled([
102
- options.showBadges ? Promise.all([badgeDefinitions(), badgesByMember(ids)]) : Promise.resolve(undefined),
103
- options.showFollow && member ? getMyFollowing(ids) : Promise.resolve(undefined),
104
- options.showActivity ? readMemberActivity(ids) : Promise.resolve(undefined),
105
- ]);
106
- // A badge or follow read that fails leaves its chips off the rows; the list itself still loads.
107
- if (badgeRead.status === "rejected") console.warn("members_directory: the badges could not be read", badgeRead.reason);
108
- if (followRead.status === "rejected") console.warn("members_directory: the follow state could not be read", followRead.reason);
109
- if (activityRead.status === "rejected") console.warn("members_directory: the activity could not be read", activityRead.reason);
110
- if (badgeRead.status === "fulfilled" && badgeRead.value) {
111
- const [catalog, held] = badgeRead.value;
112
- for (const [memberId, badgeIds] of held) {
113
- const chips = badgeIds.flatMap((id) => catalog.get(id) ?? []);
114
- if (chips.length) badges.set(memberId, chips);
115
- }
116
- }
117
- return { badges, following: followRead.status === "fulfilled" ? followRead.value : undefined, activity: activityRead.status === "fulfilled" ? activityRead.value : undefined };
118
- }
119
-
120
- function row(m: WixMember, extras: Extras, now: number): Row {
121
- const n = name(m);
122
- const role = options.showRole ? copyParam("members.roleMember", "Member") : "";
123
- // The One App members service answers "Active 4h ago" / "Last seen …" for the page. A member it answered for with nothing to say shows no line;
124
- // the login date is only for a member it did not answer for (an older native build refuses the route).
125
- const activity = !options.showActivity ? "" : extras.activity?.known.has(m.id) ? extras.activity.texts.get(m.id) ?? "" : activityLine(m.lastLoginDate, now);
126
- const roleLine = [role, activity].filter(Boolean).join(" · ");
127
- const chips = extras.badges.get(m.id) ?? [];
128
- const shown = chips.slice(0, BADGE_SLOTS);
129
- const overflow = chips.length > BADGE_SLOTS ? `+${chips.length - BADGE_SLOTS}` : "";
130
- const slot = (i: number) => ({ label: shown[i]?.label ?? "", token: shown[i]?.token ?? "textSecondary", has: !!shown[i] });
131
- const b1 = slot(0);
132
- const isFollowing = followed.get(m.id) ?? extras.following?.has(m.id) ?? false;
133
- // Login emails are not directory subtitles. Only public profile content is presented.
134
- return {
135
- id: m.id, name: n, subtitle: "", initial: (n[0] || "#").toUpperCase(), photo: wixMediaUrl(m.profile?.photo?.url, AVATAR_IMAGE) || wixMediaUrl(m.profile?.photo?.id, AVATAR_IMAGE) || "", sectionTitle: "",
136
- role, hasRole: !!role, activity, hasActivity: !!activity, roleLine, hasRoleLine: !!roleLine, noRoleLine: !roleLine,
137
- badges: chips, hasBadges: chips.length > 0, noBadges: chips.length === 0, badgeOverflow: overflow, hasOverflow: !!overflow, noOverflow: !overflow,
138
- badge1Label: b1.label, badge1Token: b1.token, hasBadge1: b1.has, noBadge1: !b1.has,
139
- canFollow: !!options.showFollow, noFollow: !options.showFollow, isFollowing,
140
- followLabel: options.showFollow ? isFollowing ? copyParam("members.following", "Following") : copyParam("members.follow", "Follow") : "",
141
- };
142
- }
143
-
144
- /** A row with the reader's own follow change applied: it wins over a page read that raced the write. */
145
- const withFollow = (item: Row): Row => {
146
- const isFollowing = followed.get(item.id);
147
- if (isFollowing === undefined || !item.canFollow) return item;
148
- return { ...item, isFollowing, followLabel: isFollowing ? copyParam("members.following", "Following") : copyParam("members.follow", "Follow") };
149
- };
150
-
151
- function sections(rows: Row[]): Row[] {
152
- if (!letterBands) return rows;
153
- const groups = new Map<string, Row[]>();
154
- for (const item of rows) {
155
- const group = groups.get(item.initial) ?? [];
156
- group.push(item); groups.set(item.initial, group);
157
- }
158
- return [...groups.keys()].sort().flatMap(letter => groups.get(letter)!.map((item, index) => ({ ...item, sectionTitle: index ? "" : letter })));
159
- }
160
-
161
- const directory = createCollectionQuery<Row>({
162
- id: item => item.id,
163
- clearOnError: readAccessDenied,
164
- errorMessage: (error) => {
165
- console.warn("members_directory: the members could not be read", error);
166
- return copyParam("members.loadError", "Members couldn't be loaded.");
167
- },
168
- async fetch(criteria, cursor) {
169
- const offset = cursor ? Number(cursor) : 0;
170
- if (!Number.isSafeInteger(offset) || offset < 0) throw new Error("Invalid member page offset");
171
- const access = cursor ? directoryAccess : await readAccess();
172
- if (!access) throw memberAccessChanged();
173
- // A first-page read replaces the reader's own follow taps with what the server says: they must not outlive the session or the reader.
174
- if (!cursor) { directoryAccess = access; followed.clear(); }
175
- await assertReadAccess(access);
176
- const response = await queryMembers({ query: {
177
- filter: { status: "APPROVED", privacyStatus: "PUBLIC" },
178
- sorting: [{ fieldName: "profile.nickname", order: "ASC" }],
179
- paging: { limit: PAGE_SIZE, offset },
180
- }, ...(criteria.query ? { search: { expression: criteria.query, fields: SEARCH_FIELDS } } : {}) });
181
- await assertReadAccess(access);
182
- if (access !== directoryAccess) throw memberAccessChanged();
183
- if (!Array.isArray(response.members) || response.members.some(member => !member?.id)) throw new Error("Invalid member page");
184
- const metadata = response.metadata;
185
- if (metadata?.offset !== undefined && metadata.offset !== offset) throw new Error("Mismatched member page offset");
186
- const total = !metadata?.tooManyToCount && typeof metadata?.total === "number" && Number.isSafeInteger(metadata.total) && metadata.total >= 0
187
- ? metadata.total : undefined;
188
- const next = offset + response.members.length;
189
- if (!response.members.length && total !== undefined && total > next) throw new Error("Incomplete member page");
190
- signedIn = !!access.member.email;
191
- const extras = await extrasFor(response.members, signedIn);
192
- const now = Date.now();
193
- return {
194
- items: response.members.map(member => row(member, extras, now)), total,
195
- nextCursor: response.members.length && (total === undefined ? response.members.length === PAGE_SIZE : next < total) ? String(next) : "",
196
- };
197
- },
198
- }, () => { void svc.changed(); });
199
-
200
- function project(): S {
201
- const page = directory.getState();
202
- const loading = page.status === "idle" || page.status === "loading";
203
- const total = page.total ?? null;
204
- const failed = page.status === "error";
205
- return {
206
- status: failed ? "error" : loading ? "loading" : "ready",
207
- members: sections(page.items.map(withFollow)), query: page.criteria.query, total,
208
- searchLabel: total === null ? "" : copyPlural("members.countLabel", "{n, plural, one {# member} other {# members}}", total),
209
- searchPlaceholder: total === null ? "" : copyTemplate("members.searchWithCount", "Search {count} members", { count: total }),
210
- emptyText: page.status === "ready" && !page.items.length ? page.criteria.query ? copyParam("members.emptyNoResults", "No results") : copyParam("members.emptyTitle", "No members yet") : "",
211
- nextCursor: loading || page.loadingMore || page.pageError ? "" : page.nextCursor,
212
- noMore: !page.nextCursor || loading || page.loadingMore || page.pageError,
213
- noPageError: !page.pageError,
214
- error: page.error, notErrored: !failed,
215
- // The skeleton stands in for rows that are not there yet; a typed search keeps the previous rows on screen
216
- // while its response is in flight, so it must not paint skeletons above them.
217
- notLoading: !(loading && !page.items.length),
218
- // A successful empty SEARCH keeps its field reachable (to clear the query); a directory that is
219
- // loading or truly empty (no query, no rows) has nothing to search.
220
- hideSearch: failed || (!page.items.length && !page.criteria.query && !searched),
221
- actionMessage: notice,
222
- };
223
- }
224
-
225
- const pendingFollows = new Set<string>();
226
- const svc = defineService<S, {
227
- load: (s: S, arg?: unknown) => Promise<undefined>;
228
- filter: (s: S, arg?: unknown) => Promise<undefined>;
229
- loadMore: (s: S) => Promise<undefined>;
230
- retry: (s: S) => Promise<undefined>;
231
- follow: (s: S, arg?: unknown) => Promise<S>;
232
- changed: (s: S) => S;
233
- }>(serviceName, withEmptyFlags({
234
- state: { status: "loading", members: [], emptyText: "", query: "", total: null, searchLabel: "", searchPlaceholder: "", nextCursor: "", noMore: true, noPageError: true,
235
- error: "", notErrored: true, notLoading: false, hideSearch: true, actionMessage: "" },
236
- // A restored worker must re-read the current reader/site before showing a roster.
237
- notHydrated: ["status", "members", "emptyText", "query", "total", "searchLabel", "searchPlaceholder", "nextCursor", "noMore", "noPageError", "error", "notErrored", "notLoading", "hideSearch", "actionMessage"],
238
- actions: {
239
- // The screen's onAppear fires on every re-appear (back from a profile): a directory that already loaded keeps its pages and scroll
240
- // position. Only an empty or failed one reads; retry always does.
241
- load: async (_s, arg) => { stashCopy(arg); const loaded = directory.getState(); if (loaded.status !== "ready" || !loaded.items.length) await directory.query(loaded.criteria); return undefined; },
242
- filter: async (_s, arg) => {
243
- const value = typeof arg === "string" ? arg : (arg as { value?: unknown })?.value;
244
- if (typeof value === "string" && value.trim()) searched = true;
245
- await directory.query({ query: typeof value === "string" ? value : "" }); return undefined;
246
- },
247
- loadMore: async () => { await directory.loadMore(); return undefined; },
248
- retry: async () => { await directory.retry(); return undefined; },
249
- // The row's Follow / Following toggle. A visitor is asked to sign in; the write is confirmed before the label flips.
250
- follow: async (_s, arg) => {
251
- const id = (arg as { id?: unknown } | undefined)?.id;
252
- if (typeof id !== "string" || !id || !options.showFollow || pendingFollows.has(id)) return project();
253
- if (!signedIn) { notice = copyParam("members.followSignIn", "Sign in to follow members."); return project(); }
254
- const current = directory.getState().items.find((item) => item.id === id);
255
- const following = followed.get(id) ?? current?.isFollowing ?? false;
256
- pendingFollows.add(id);
257
- try {
258
- if (following) await unfollowMember(id); else await followMember(id);
259
- followed.set(id, !following);
260
- notice = "";
261
- } catch {
262
- notice = copyParam("members.followFailed", "Couldn't update. Try again.");
263
- } finally { pendingFollows.delete(id); }
264
- return project();
265
- },
266
- changed: () => project(),
267
- },
268
- }, { members: "noMembers" }));
269
- // No load at registration: the page's onAppear loads (with the copy pack), so a page-hosted service reads only when its section appears.
270
- return svc;
271
- }
@@ -1,87 +0,0 @@
1
- // What a pricing plan says about itself, in the viewer's language: the price cadence / validity line and the
2
- // plan-detail facts (terms, cancellation, purchase limit, start date). Shared by every worker that shows a plan
3
- // (the plans list and detail, the inline plans section) so one plan reads the same everywhere.
4
- //
5
- // Each duration phrase is ONE plural key per unit, so a translation fits the whole phrase ("por 10 años") instead of
6
- // gluing translated words around English ones. Its English fallback is the wording the workers always had.
7
- import type { WixPlan } from "@himalaya/wix-pricing-plans";
8
- import { copyParam, copyPlural, copyTemplate } from "./himi-copy.js";
9
-
10
- type PlanUnit = "day" | "week" | "month" | "year";
11
- const UNITS: readonly PlanUnit[] = ["day", "week", "month", "year"];
12
- const unitKey = (unit: PlanUnit) => unit[0]!.toUpperCase() + unit.slice(1);
13
-
14
- // The English wording per unit, as LITERALS: a pinned-language build finds a worker's translatable text by looking for the
15
- // catalog's English source as a string literal in the bundle, which a pattern assembled from the unit would never be.
16
- const VALID_FOR: Record<PlanUnit, string> = {
17
- day: "{n, plural, one {for # day} other {for # days}}",
18
- week: "{n, plural, one {for # week} other {for # weeks}}",
19
- month: "{n, plural, one {for # month} other {for # months}}",
20
- year: "{n, plural, one {for # year} other {for # years}}",
21
- };
22
- const EVERY: Record<PlanUnit, string> = {
23
- day: "{n, plural, one {per day} other {every # days}}",
24
- week: "{n, plural, one {per week} other {every # weeks}}",
25
- month: "{n, plural, one {per month} other {every # months}}",
26
- year: "{n, plural, one {per year} other {every # years}}",
27
- };
28
-
29
- /** Wix durations name their unit "DAY" / "WEEKS" …: the singular lower-case noun. */
30
- function singularUnit(unit?: string): string {
31
- return (unit || "").toLowerCase().replace(/s$/, "");
32
- }
33
-
34
- /** "for 10 years" — a one-time plan valid for a fixed duration. */
35
- function validFor(count: number, unit: string): string {
36
- const known = UNITS.find((candidate) => candidate === unit);
37
- if (!known) return `for ${count} ${unit}${count === 1 ? "" : "s"}`;
38
- return copyPlural(`plans.validFor${unitKey(known)}`, VALID_FOR[known], count);
39
- }
40
-
41
- /** "per month" / "every 3 months" — a subscription's billing cycle. */
42
- export function every(count: number, unit: string): string {
43
- const known = UNITS.find((candidate) => candidate === unit);
44
- if (!known) return count === 1 ? `per ${unit}` : `every ${count} ${unit}s`;
45
- return copyPlural(`plans.every${unitKey(known)}`, EVERY[known], count);
46
- }
47
-
48
- /** The cadence or validity line under a price; "" when the plan names none. */
49
- export function planPeriodLine(plan: WixPlan): string {
50
- const pricing = plan.pricing;
51
- if (pricing?.subscription?.cycleDuration) {
52
- const count = pricing.subscription.cycleDuration.count ?? 0;
53
- const unit = singularUnit(pricing.subscription.cycleDuration.unit);
54
- return count && unit ? every(count, unit) : copyParam("plans.periodRecurring", "recurring");
55
- }
56
- if (pricing?.singlePaymentForDuration) {
57
- const count = pricing.singlePaymentForDuration.count ?? 0;
58
- const unit = singularUnit(pricing.singlePaymentForDuration.unit);
59
- return count && unit ? validFor(count, unit) : copyParam("plans.oneTimeFact", "one-time");
60
- }
61
- if (pricing?.singlePaymentUnlimited) return copyParam("plans.oneTimeFact", "one-time");
62
- return "";
63
- }
64
-
65
- export interface PlanFacts {
66
- /** The owner's terms and conditions; collapses when the plan has none. */
67
- terms: string; noTerms: boolean;
68
- cancelLine: string; noCancelLine: boolean;
69
- limitLine: string; noLimitLine: boolean;
70
- startLine: string; noStartLine: boolean;
71
- }
72
-
73
- /** The plan-detail facts beyond name, price, pitch and benefits; every line is "" (and its `no…` flag true) when the plan
74
- * does not state it. */
75
- export function planFacts(plan: WixPlan): PlanFacts {
76
- const terms = (plan.termsAndConditions ?? "").trim();
77
- const cancelLine = plan.buyerCanCancel === true ? copyParam("plans.buyerCanCancel", "You can cancel this plan yourself.") : "";
78
- const limit = plan.maxPurchasesPerBuyer ?? 0;
79
- const limitLine = limit > 0 ? copyTemplate("plans.limitPerBuyer", "Limit: {n} per member.", { n: limit }) : "";
80
- const startLine = plan.allowFutureStartDate === true ? copyParam("plans.futureStartDate", "You can choose a later start date.") : "";
81
- return {
82
- terms, noTerms: !terms,
83
- cancelLine, noCancelLine: !cancelLine,
84
- limitLine, noLimitLine: !limitLine,
85
- startLine, noStartLine: !startLine,
86
- };
87
- }