@wix/himalaya-cli 0.1761.0 → 0.1763.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (741) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +5 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +10 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +23 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +136 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +112 -0
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{7c3c05d452efd3f1e1e81b47dde7d9fa870c1e5217b00b253661a22b571fdbef.bin → a96903bb457796ee606fe986078d9629ba53b5ba4013bdb94e8afba3288284ed.bin} +1 -1
  8. package/dist/browser-plane/sw.js +7 -7
  9. package/dist/cli.mjs +51413 -50002
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/base44-app-to-himi-app.md +56 -0
  12. package/guides/component-reference.json +1 -1
  13. package/guides/component-reference.md +10 -0
  14. package/guides/himi-json-output.md +35 -0
  15. package/guides/one-app-section-mappings.md +6 -6
  16. package/guides/one-app-to-himi-app.md +33 -4
  17. package/guides/push-cli-onboarding.md +25 -14
  18. package/guides/recipe-dynamic-list.md +4 -2
  19. package/guides/wix-business-context.md +1 -1
  20. package/package.json +2 -2
  21. package/templates/beauty-salon/l10n/ar.json +9 -420
  22. package/templates/beauty-salon/l10n/cs.json +9 -420
  23. package/templates/beauty-salon/l10n/da.json +9 -420
  24. package/templates/beauty-salon/l10n/de.json +9 -420
  25. package/templates/beauty-salon/l10n/el.json +9 -420
  26. package/templates/beauty-salon/l10n/en.json +8 -61
  27. package/templates/beauty-salon/l10n/es.json +9 -420
  28. package/templates/beauty-salon/l10n/fi.json +9 -420
  29. package/templates/beauty-salon/l10n/fr.json +9 -420
  30. package/templates/beauty-salon/l10n/he.json +9 -338
  31. package/templates/beauty-salon/l10n/hu.json +9 -420
  32. package/templates/beauty-salon/l10n/id.json +9 -420
  33. package/templates/beauty-salon/l10n/it.json +9 -420
  34. package/templates/beauty-salon/l10n/ja.json +9 -420
  35. package/templates/beauty-salon/l10n/ko.json +9 -420
  36. package/templates/beauty-salon/l10n/lt.json +9 -420
  37. package/templates/beauty-salon/l10n/nl.json +9 -420
  38. package/templates/beauty-salon/l10n/no.json +9 -420
  39. package/templates/beauty-salon/l10n/pl.json +9 -420
  40. package/templates/beauty-salon/l10n/pt.json +9 -420
  41. package/templates/beauty-salon/l10n/ru.json +9 -420
  42. package/templates/beauty-salon/l10n/sv.json +9 -420
  43. package/templates/beauty-salon/l10n/th.json +9 -420
  44. package/templates/beauty-salon/l10n/tr.json +9 -420
  45. package/templates/beauty-salon/l10n/uk.json +9 -420
  46. package/templates/beauty-salon/l10n/vi.json +9 -420
  47. package/templates/beauty-salon/l10n/zh.json +9 -420
  48. package/templates/branded-lite/l10n/ar.json +31 -5
  49. package/templates/branded-lite/l10n/cs.json +31 -5
  50. package/templates/branded-lite/l10n/da.json +31 -5
  51. package/templates/branded-lite/l10n/de.json +31 -5
  52. package/templates/branded-lite/l10n/el.json +31 -5
  53. package/templates/branded-lite/l10n/en.json +8 -6
  54. package/templates/branded-lite/l10n/es.json +31 -5
  55. package/templates/branded-lite/l10n/fi.json +31 -5
  56. package/templates/branded-lite/l10n/fr.json +31 -5
  57. package/templates/branded-lite/l10n/he.json +27 -4
  58. package/templates/branded-lite/l10n/hu.json +31 -5
  59. package/templates/branded-lite/l10n/id.json +31 -5
  60. package/templates/branded-lite/l10n/it.json +31 -5
  61. package/templates/branded-lite/l10n/ja.json +31 -5
  62. package/templates/branded-lite/l10n/ko.json +31 -5
  63. package/templates/branded-lite/l10n/lt.json +31 -5
  64. package/templates/branded-lite/l10n/nl.json +31 -5
  65. package/templates/branded-lite/l10n/no.json +31 -5
  66. package/templates/branded-lite/l10n/pl.json +31 -5
  67. package/templates/branded-lite/l10n/pt.json +31 -5
  68. package/templates/branded-lite/l10n/ru.json +31 -5
  69. package/templates/branded-lite/l10n/sv.json +31 -5
  70. package/templates/branded-lite/l10n/th.json +31 -5
  71. package/templates/branded-lite/l10n/tr.json +31 -5
  72. package/templates/branded-lite/l10n/uk.json +31 -5
  73. package/templates/branded-lite/l10n/vi.json +31 -5
  74. package/templates/branded-lite/l10n/zh.json +31 -5
  75. package/templates/branded-lite/recipes/blog-search.json +45 -0
  76. package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-carousel.json} +39 -118
  77. package/templates/{gym-fitness/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-list.json} +43 -121
  78. package/templates/{community-club/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
  79. package/templates/{beauty-salon/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
  80. package/templates/{beauty-salon/recipes/groups-list.json → branded-lite/recipes/services-list.json} +33 -9
  81. package/templates/{community-club/recipes/groups-list.json → branded-lite/recipes/subscriptions-list.json} +124 -60
  82. package/templates/branded-lite/recipes/upcoming-bookings.json +350 -0
  83. package/templates/branded-lite/recipes/videos-carousel.json +248 -0
  84. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +75 -21
  85. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +115 -0
  86. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +137 -0
  87. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -3
  88. package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +107 -0
  89. package/templates/branded-lite/tier5-src/_shared/plans-section.ts +11 -3
  90. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -0
  91. package/templates/branded-lite/tier5-src/_shared/services-section.ts +122 -0
  92. package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +102 -0
  93. package/templates/branded-lite/tier5-src/_shared/videos-section.ts +91 -0
  94. package/templates/brandy/README.md +21 -3
  95. package/templates/brandy/config.ts +131 -14
  96. package/templates/brandy/dev/index.ts +41 -5
  97. package/templates/brandy/dev/member-screens.ts +14412 -0
  98. package/templates/brandy/provisioning.member.example.json +25 -0
  99. package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +280 -0
  100. package/templates/brandy/tier5-src/_shared/branded-load-state.ts +109 -0
  101. package/templates/brandy/tier5-src/_shared/chat-live.ts +242 -0
  102. package/templates/brandy/tier5-src/_shared/collection-contract.ts +228 -0
  103. package/templates/brandy/tier5-src/_shared/collection-query-legacy.ts +194 -0
  104. package/templates/brandy/tier5-src/_shared/collection-query.ts +252 -0
  105. package/templates/brandy/tier5-src/_shared/collection-service.ts +423 -0
  106. package/templates/brandy/tier5-src/_shared/engine-intl.ts +523 -0
  107. package/templates/brandy/tier5-src/_shared/himi-account.ts +194 -0
  108. package/templates/brandy/tier5-src/_shared/himi-store.ts +7 -0
  109. package/templates/brandy/tier5-src/_shared/himi-text.ts +24 -0
  110. package/templates/brandy/tier5-src/_shared/hosted-checkout.ts +70 -0
  111. package/templates/brandy/tier5-src/_shared/iap-worker.ts +127 -0
  112. package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +68 -0
  113. package/templates/brandy/tier5-src/_shared/live-session.ts +172 -0
  114. package/templates/brandy/tier5-src/_shared/local-preferences.ts +38 -0
  115. package/templates/brandy/tier5-src/_shared/member-access.ts +63 -0
  116. package/templates/brandy/tier5-src/_shared/member-account-routes.ts +52 -0
  117. package/templates/brandy/tier5-src/_shared/member-orders.ts +8 -0
  118. package/templates/brandy/tier5-src/_shared/member-read.ts +82 -0
  119. package/templates/brandy/tier5-src/_shared/member-screen.ts +99 -0
  120. package/templates/brandy/tier5-src/_shared/notification-target.ts +141 -0
  121. package/templates/brandy/tier5-src/_shared/online-actions.ts +76 -0
  122. package/templates/brandy/tier5-src/_shared/owner-load-error.ts +348 -0
  123. package/templates/brandy/tier5-src/_shared/payment-setup.ts +6 -0
  124. package/templates/brandy/tier5-src/_shared/pricing-plan-display.ts +64 -0
  125. package/templates/brandy/tier5-src/_shared/rich-body.ts +78 -0
  126. package/templates/brandy/tier5-src/_shared/rich-content-link.ts +34 -0
  127. package/templates/brandy/tier5-src/_shared/sign-in-sheet.ts +18 -0
  128. package/templates/brandy/tier5-src/_shared/store-order-presentation.ts +56 -0
  129. package/templates/brandy/tier5-src/_shared/wix-bi.ts +85 -0
  130. package/templates/brandy/tier5-src/_shared/wix-member-links.ts +114 -0
  131. package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +92 -0
  132. package/templates/brandy/tier5-src/himi-branded-lite-notifications/index.ts +256 -0
  133. package/templates/brandy/tier5-src/himi-branded-lite-order/index.ts +477 -0
  134. package/templates/brandy/tier5-src/himi-branded-lite-orders/index.ts +327 -0
  135. package/templates/brandy/tier5-src/himi-store-account/index.ts +1007 -0
  136. package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +350 -0
  137. package/templates/brandy/tier5-src/wix-spaces-delete-account/index.ts +59 -0
  138. package/templates/brandy/tier5-src/wix-spaces-my-subscriptions/index.ts +89 -0
  139. package/templates/brandy/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
  140. package/templates/brandy/tokens.json +25 -0
  141. package/templates/community-club/l10n/ar.json +0 -412
  142. package/templates/community-club/l10n/cs.json +0 -412
  143. package/templates/community-club/l10n/da.json +0 -412
  144. package/templates/community-club/l10n/de.json +0 -412
  145. package/templates/community-club/l10n/el.json +0 -412
  146. package/templates/community-club/l10n/en.json +1 -46
  147. package/templates/community-club/l10n/es.json +0 -412
  148. package/templates/community-club/l10n/fi.json +0 -412
  149. package/templates/community-club/l10n/fr.json +0 -412
  150. package/templates/community-club/l10n/he.json +0 -331
  151. package/templates/community-club/l10n/hu.json +0 -412
  152. package/templates/community-club/l10n/id.json +0 -412
  153. package/templates/community-club/l10n/it.json +0 -412
  154. package/templates/community-club/l10n/ja.json +0 -412
  155. package/templates/community-club/l10n/ko.json +0 -412
  156. package/templates/community-club/l10n/lt.json +0 -412
  157. package/templates/community-club/l10n/nl.json +0 -412
  158. package/templates/community-club/l10n/no.json +0 -412
  159. package/templates/community-club/l10n/pl.json +0 -412
  160. package/templates/community-club/l10n/pt.json +0 -412
  161. package/templates/community-club/l10n/ru.json +0 -412
  162. package/templates/community-club/l10n/sv.json +0 -412
  163. package/templates/community-club/l10n/th.json +0 -412
  164. package/templates/community-club/l10n/tr.json +0 -412
  165. package/templates/community-club/l10n/uk.json +0 -412
  166. package/templates/community-club/l10n/vi.json +0 -412
  167. package/templates/community-club/l10n/zh.json +0 -412
  168. package/templates/events-meetups/l10n/ar.json +0 -412
  169. package/templates/events-meetups/l10n/cs.json +0 -412
  170. package/templates/events-meetups/l10n/da.json +0 -412
  171. package/templates/events-meetups/l10n/de.json +0 -412
  172. package/templates/events-meetups/l10n/el.json +0 -412
  173. package/templates/events-meetups/l10n/en.json +1 -46
  174. package/templates/events-meetups/l10n/es.json +0 -412
  175. package/templates/events-meetups/l10n/fi.json +0 -412
  176. package/templates/events-meetups/l10n/fr.json +0 -412
  177. package/templates/events-meetups/l10n/he.json +0 -331
  178. package/templates/events-meetups/l10n/hu.json +0 -412
  179. package/templates/events-meetups/l10n/id.json +0 -412
  180. package/templates/events-meetups/l10n/it.json +0 -412
  181. package/templates/events-meetups/l10n/ja.json +0 -412
  182. package/templates/events-meetups/l10n/ko.json +0 -412
  183. package/templates/events-meetups/l10n/lt.json +0 -412
  184. package/templates/events-meetups/l10n/nl.json +0 -412
  185. package/templates/events-meetups/l10n/no.json +0 -412
  186. package/templates/events-meetups/l10n/pl.json +0 -412
  187. package/templates/events-meetups/l10n/pt.json +0 -412
  188. package/templates/events-meetups/l10n/ru.json +0 -412
  189. package/templates/events-meetups/l10n/sv.json +0 -412
  190. package/templates/events-meetups/l10n/th.json +0 -412
  191. package/templates/events-meetups/l10n/tr.json +0 -412
  192. package/templates/events-meetups/l10n/uk.json +0 -412
  193. package/templates/events-meetups/l10n/vi.json +0 -412
  194. package/templates/events-meetups/l10n/zh.json +0 -412
  195. package/templates/gym-fitness/l10n/ar.json +9 -405
  196. package/templates/gym-fitness/l10n/cs.json +9 -405
  197. package/templates/gym-fitness/l10n/da.json +9 -405
  198. package/templates/gym-fitness/l10n/de.json +9 -405
  199. package/templates/gym-fitness/l10n/el.json +9 -405
  200. package/templates/gym-fitness/l10n/en.json +8 -51
  201. package/templates/gym-fitness/l10n/es.json +9 -405
  202. package/templates/gym-fitness/l10n/fi.json +9 -405
  203. package/templates/gym-fitness/l10n/fr.json +9 -405
  204. package/templates/gym-fitness/l10n/he.json +9 -326
  205. package/templates/gym-fitness/l10n/hu.json +9 -405
  206. package/templates/gym-fitness/l10n/id.json +9 -405
  207. package/templates/gym-fitness/l10n/it.json +9 -405
  208. package/templates/gym-fitness/l10n/ja.json +9 -405
  209. package/templates/gym-fitness/l10n/ko.json +9 -405
  210. package/templates/gym-fitness/l10n/lt.json +9 -405
  211. package/templates/gym-fitness/l10n/nl.json +9 -405
  212. package/templates/gym-fitness/l10n/no.json +9 -405
  213. package/templates/gym-fitness/l10n/pl.json +9 -405
  214. package/templates/gym-fitness/l10n/pt.json +9 -405
  215. package/templates/gym-fitness/l10n/ru.json +9 -405
  216. package/templates/gym-fitness/l10n/sv.json +9 -405
  217. package/templates/gym-fitness/l10n/th.json +9 -405
  218. package/templates/gym-fitness/l10n/tr.json +9 -405
  219. package/templates/gym-fitness/l10n/uk.json +9 -405
  220. package/templates/gym-fitness/l10n/vi.json +9 -405
  221. package/templates/gym-fitness/l10n/zh.json +9 -405
  222. package/templates/nonprofit-cause/l10n/ar.json +0 -387
  223. package/templates/nonprofit-cause/l10n/cs.json +0 -387
  224. package/templates/nonprofit-cause/l10n/da.json +0 -387
  225. package/templates/nonprofit-cause/l10n/de.json +0 -387
  226. package/templates/nonprofit-cause/l10n/el.json +0 -387
  227. package/templates/nonprofit-cause/l10n/en.json +1 -46
  228. package/templates/nonprofit-cause/l10n/es.json +0 -387
  229. package/templates/nonprofit-cause/l10n/fi.json +0 -387
  230. package/templates/nonprofit-cause/l10n/fr.json +0 -387
  231. package/templates/nonprofit-cause/l10n/he.json +0 -311
  232. package/templates/nonprofit-cause/l10n/hu.json +0 -387
  233. package/templates/nonprofit-cause/l10n/id.json +0 -387
  234. package/templates/nonprofit-cause/l10n/it.json +0 -387
  235. package/templates/nonprofit-cause/l10n/ja.json +0 -387
  236. package/templates/nonprofit-cause/l10n/ko.json +0 -387
  237. package/templates/nonprofit-cause/l10n/lt.json +0 -387
  238. package/templates/nonprofit-cause/l10n/nl.json +0 -387
  239. package/templates/nonprofit-cause/l10n/no.json +0 -387
  240. package/templates/nonprofit-cause/l10n/pl.json +0 -387
  241. package/templates/nonprofit-cause/l10n/pt.json +0 -387
  242. package/templates/nonprofit-cause/l10n/ru.json +0 -387
  243. package/templates/nonprofit-cause/l10n/sv.json +0 -387
  244. package/templates/nonprofit-cause/l10n/th.json +0 -387
  245. package/templates/nonprofit-cause/l10n/tr.json +0 -387
  246. package/templates/nonprofit-cause/l10n/uk.json +0 -387
  247. package/templates/nonprofit-cause/l10n/vi.json +0 -387
  248. package/templates/nonprofit-cause/l10n/zh.json +0 -387
  249. package/templates/podcast-creator/l10n/ar.json +0 -417
  250. package/templates/podcast-creator/l10n/cs.json +0 -417
  251. package/templates/podcast-creator/l10n/da.json +0 -417
  252. package/templates/podcast-creator/l10n/de.json +0 -417
  253. package/templates/podcast-creator/l10n/el.json +0 -417
  254. package/templates/podcast-creator/l10n/en.json +1 -46
  255. package/templates/podcast-creator/l10n/es.json +0 -417
  256. package/templates/podcast-creator/l10n/fi.json +0 -417
  257. package/templates/podcast-creator/l10n/fr.json +0 -417
  258. package/templates/podcast-creator/l10n/he.json +0 -335
  259. package/templates/podcast-creator/l10n/hu.json +0 -417
  260. package/templates/podcast-creator/l10n/id.json +0 -417
  261. package/templates/podcast-creator/l10n/it.json +0 -417
  262. package/templates/podcast-creator/l10n/ja.json +0 -417
  263. package/templates/podcast-creator/l10n/ko.json +0 -417
  264. package/templates/podcast-creator/l10n/lt.json +0 -417
  265. package/templates/podcast-creator/l10n/nl.json +0 -417
  266. package/templates/podcast-creator/l10n/no.json +0 -417
  267. package/templates/podcast-creator/l10n/pl.json +0 -417
  268. package/templates/podcast-creator/l10n/pt.json +0 -417
  269. package/templates/podcast-creator/l10n/ru.json +0 -417
  270. package/templates/podcast-creator/l10n/sv.json +0 -417
  271. package/templates/podcast-creator/l10n/th.json +0 -417
  272. package/templates/podcast-creator/l10n/tr.json +0 -417
  273. package/templates/podcast-creator/l10n/uk.json +0 -417
  274. package/templates/podcast-creator/l10n/vi.json +0 -417
  275. package/templates/podcast-creator/l10n/zh.json +0 -417
  276. package/templates/portfolio-creative/l10n/ar.json +0 -437
  277. package/templates/portfolio-creative/l10n/cs.json +0 -437
  278. package/templates/portfolio-creative/l10n/da.json +0 -437
  279. package/templates/portfolio-creative/l10n/de.json +0 -437
  280. package/templates/portfolio-creative/l10n/el.json +0 -437
  281. package/templates/portfolio-creative/l10n/en.json +1 -46
  282. package/templates/portfolio-creative/l10n/es.json +0 -437
  283. package/templates/portfolio-creative/l10n/fi.json +0 -437
  284. package/templates/portfolio-creative/l10n/fr.json +0 -437
  285. package/templates/portfolio-creative/l10n/he.json +0 -351
  286. package/templates/portfolio-creative/l10n/hu.json +0 -437
  287. package/templates/portfolio-creative/l10n/id.json +0 -437
  288. package/templates/portfolio-creative/l10n/it.json +0 -437
  289. package/templates/portfolio-creative/l10n/ja.json +0 -437
  290. package/templates/portfolio-creative/l10n/ko.json +0 -437
  291. package/templates/portfolio-creative/l10n/lt.json +0 -437
  292. package/templates/portfolio-creative/l10n/nl.json +0 -437
  293. package/templates/portfolio-creative/l10n/no.json +0 -437
  294. package/templates/portfolio-creative/l10n/pl.json +0 -437
  295. package/templates/portfolio-creative/l10n/pt.json +0 -437
  296. package/templates/portfolio-creative/l10n/ru.json +0 -437
  297. package/templates/portfolio-creative/l10n/sv.json +0 -437
  298. package/templates/portfolio-creative/l10n/th.json +0 -437
  299. package/templates/portfolio-creative/l10n/tr.json +0 -437
  300. package/templates/portfolio-creative/l10n/uk.json +0 -437
  301. package/templates/portfolio-creative/l10n/vi.json +0 -437
  302. package/templates/portfolio-creative/l10n/zh.json +0 -437
  303. package/templates/restaurant/l10n/ar.json +0 -447
  304. package/templates/restaurant/l10n/cs.json +0 -447
  305. package/templates/restaurant/l10n/da.json +0 -447
  306. package/templates/restaurant/l10n/de.json +0 -447
  307. package/templates/restaurant/l10n/el.json +0 -447
  308. package/templates/restaurant/l10n/en.json +1 -46
  309. package/templates/restaurant/l10n/es.json +0 -447
  310. package/templates/restaurant/l10n/fi.json +0 -447
  311. package/templates/restaurant/l10n/fr.json +0 -447
  312. package/templates/restaurant/l10n/he.json +0 -359
  313. package/templates/restaurant/l10n/hu.json +0 -447
  314. package/templates/restaurant/l10n/id.json +0 -447
  315. package/templates/restaurant/l10n/it.json +0 -447
  316. package/templates/restaurant/l10n/ja.json +0 -447
  317. package/templates/restaurant/l10n/ko.json +0 -447
  318. package/templates/restaurant/l10n/lt.json +0 -447
  319. package/templates/restaurant/l10n/nl.json +0 -447
  320. package/templates/restaurant/l10n/no.json +0 -447
  321. package/templates/restaurant/l10n/pl.json +0 -447
  322. package/templates/restaurant/l10n/pt.json +0 -447
  323. package/templates/restaurant/l10n/ru.json +0 -447
  324. package/templates/restaurant/l10n/sv.json +0 -447
  325. package/templates/restaurant/l10n/th.json +0 -447
  326. package/templates/restaurant/l10n/tr.json +0 -447
  327. package/templates/restaurant/l10n/uk.json +0 -447
  328. package/templates/restaurant/l10n/vi.json +0 -447
  329. package/templates/restaurant/l10n/zh.json +0 -447
  330. package/templates/retail-store/l10n/ar.json +0 -462
  331. package/templates/retail-store/l10n/cs.json +0 -462
  332. package/templates/retail-store/l10n/da.json +0 -462
  333. package/templates/retail-store/l10n/de.json +0 -462
  334. package/templates/retail-store/l10n/el.json +0 -462
  335. package/templates/retail-store/l10n/en.json +1 -61
  336. package/templates/retail-store/l10n/es.json +0 -462
  337. package/templates/retail-store/l10n/fi.json +0 -462
  338. package/templates/retail-store/l10n/fr.json +0 -462
  339. package/templates/retail-store/l10n/he.json +0 -371
  340. package/templates/retail-store/l10n/hu.json +0 -462
  341. package/templates/retail-store/l10n/id.json +0 -462
  342. package/templates/retail-store/l10n/it.json +0 -462
  343. package/templates/retail-store/l10n/ja.json +0 -462
  344. package/templates/retail-store/l10n/ko.json +0 -462
  345. package/templates/retail-store/l10n/lt.json +0 -462
  346. package/templates/retail-store/l10n/nl.json +0 -462
  347. package/templates/retail-store/l10n/no.json +0 -462
  348. package/templates/retail-store/l10n/pl.json +0 -462
  349. package/templates/retail-store/l10n/pt.json +0 -462
  350. package/templates/retail-store/l10n/ru.json +0 -462
  351. package/templates/retail-store/l10n/sv.json +0 -462
  352. package/templates/retail-store/l10n/th.json +0 -462
  353. package/templates/retail-store/l10n/tr.json +0 -462
  354. package/templates/retail-store/l10n/uk.json +0 -462
  355. package/templates/retail-store/l10n/vi.json +0 -462
  356. package/templates/retail-store/l10n/zh.json +0 -462
  357. package/templates/yoga-studio/l10n/ar.json +9 -197
  358. package/templates/yoga-studio/l10n/cs.json +9 -197
  359. package/templates/yoga-studio/l10n/da.json +9 -197
  360. package/templates/yoga-studio/l10n/de.json +9 -197
  361. package/templates/yoga-studio/l10n/el.json +9 -197
  362. package/templates/yoga-studio/l10n/en.json +8 -30
  363. package/templates/yoga-studio/l10n/es.json +9 -197
  364. package/templates/yoga-studio/l10n/fi.json +9 -197
  365. package/templates/yoga-studio/l10n/fr.json +9 -197
  366. package/templates/yoga-studio/l10n/he.json +9 -159
  367. package/templates/yoga-studio/l10n/hu.json +9 -197
  368. package/templates/yoga-studio/l10n/id.json +9 -197
  369. package/templates/yoga-studio/l10n/it.json +9 -197
  370. package/templates/yoga-studio/l10n/ja.json +9 -197
  371. package/templates/yoga-studio/l10n/ko.json +9 -197
  372. package/templates/yoga-studio/l10n/lt.json +9 -197
  373. package/templates/yoga-studio/l10n/nl.json +9 -197
  374. package/templates/yoga-studio/l10n/no.json +9 -197
  375. package/templates/yoga-studio/l10n/pl.json +9 -197
  376. package/templates/yoga-studio/l10n/pt.json +9 -197
  377. package/templates/yoga-studio/l10n/ru.json +9 -197
  378. package/templates/yoga-studio/l10n/sv.json +9 -197
  379. package/templates/yoga-studio/l10n/th.json +9 -197
  380. package/templates/yoga-studio/l10n/tr.json +9 -197
  381. package/templates/yoga-studio/l10n/uk.json +9 -197
  382. package/templates/yoga-studio/l10n/vi.json +9 -197
  383. package/templates/yoga-studio/l10n/zh.json +9 -197
  384. package/templates/beauty-salon/recipes/announcement-card.json +0 -72
  385. package/templates/beauty-salon/recipes/blog-hero.json +0 -95
  386. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +0 -394
  387. package/templates/beauty-salon/recipes/blog-list.json +0 -394
  388. package/templates/beauty-salon/recipes/blog-see-all.json +0 -50
  389. package/templates/beauty-salon/recipes/events-inline-list.json +0 -228
  390. package/templates/beauty-salon/recipes/events-inline.json +0 -309
  391. package/templates/beauty-salon/recipes/faq-list.json +0 -503
  392. package/templates/beauty-salon/recipes/members-list.json +0 -445
  393. package/templates/beauty-salon/recipes/plans-card.json +0 -811
  394. package/templates/beauty-salon/recipes/products-carousel.json +0 -141
  395. package/templates/beauty-salon/recipes/products-grid.json +0 -143
  396. package/templates/beauty-salon/recipes/programs-card.json +0 -254
  397. package/templates/beauty-salon/recipes/programs-carousel.json +0 -234
  398. package/templates/beauty-salon/recipes/programs-filters.json +0 -94
  399. package/templates/beauty-salon/recipes/programs-see-all.json +0 -43
  400. package/templates/beauty-salon/recipes/section-error.json +0 -58
  401. package/templates/beauty-salon/tier5-src/_shared/announcement-section.ts +0 -122
  402. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +0 -207
  403. package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +0 -86
  404. package/templates/beauty-salon/tier5-src/_shared/events-card.ts +0 -33
  405. package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +0 -25
  406. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +0 -84
  407. package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +0 -405
  408. package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +0 -110
  409. package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +0 -34
  410. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +0 -175
  411. package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +0 -39
  412. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +0 -271
  413. package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +0 -87
  414. package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +0 -106
  415. package/templates/beauty-salon/tier5-src/_shared/products-section.ts +0 -76
  416. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +0 -16
  417. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +0 -740
  418. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +0 -21
  419. package/templates/community-club/recipes/announcement-card.json +0 -72
  420. package/templates/community-club/recipes/blog-hero.json +0 -95
  421. package/templates/community-club/recipes/blog-list-thumb-start.json +0 -394
  422. package/templates/community-club/recipes/blog-list.json +0 -394
  423. package/templates/community-club/recipes/blog-see-all.json +0 -50
  424. package/templates/community-club/recipes/events-inline.json +0 -309
  425. package/templates/community-club/recipes/faq-list.json +0 -503
  426. package/templates/community-club/recipes/members-list.json +0 -445
  427. package/templates/community-club/recipes/plans-card.json +0 -811
  428. package/templates/community-club/recipes/products-carousel.json +0 -141
  429. package/templates/community-club/recipes/products-grid.json +0 -143
  430. package/templates/community-club/recipes/programs-card.json +0 -254
  431. package/templates/community-club/recipes/programs-carousel.json +0 -234
  432. package/templates/community-club/recipes/programs-filters.json +0 -94
  433. package/templates/community-club/recipes/programs-participant-carousel.json +0 -257
  434. package/templates/community-club/recipes/programs-see-all.json +0 -43
  435. package/templates/community-club/recipes/section-error.json +0 -58
  436. package/templates/community-club/tier5-src/_shared/announcement-section.ts +0 -122
  437. package/templates/community-club/tier5-src/_shared/blog-list.ts +0 -207
  438. package/templates/community-club/tier5-src/_shared/events-card.ts +0 -33
  439. package/templates/community-club/tier5-src/_shared/events-inline-options.ts +0 -25
  440. package/templates/community-club/tier5-src/_shared/events-inline.ts +0 -84
  441. package/templates/community-club/tier5-src/_shared/faq-list.ts +0 -405
  442. package/templates/community-club/tier5-src/_shared/groups-section.ts +0 -110
  443. package/templates/community-club/tier5-src/_shared/member-activity.ts +0 -34
  444. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +0 -175
  445. package/templates/community-club/tier5-src/_shared/members-directory-view.ts +0 -39
  446. package/templates/community-club/tier5-src/_shared/members-directory.ts +0 -271
  447. package/templates/community-club/tier5-src/_shared/plan-facts.ts +0 -87
  448. package/templates/community-club/tier5-src/_shared/plans-section.ts +0 -106
  449. package/templates/community-club/tier5-src/_shared/products-section.ts +0 -76
  450. package/templates/community-club/tier5-src/_shared/program-fields.ts +0 -16
  451. package/templates/community-club/tier5-src/_shared/programs-section.ts +0 -740
  452. package/templates/community-club/tier5-src/_shared/relative-time.ts +0 -21
  453. package/templates/events-meetups/recipes/announcement-card.json +0 -72
  454. package/templates/events-meetups/recipes/blog-hero.json +0 -95
  455. package/templates/events-meetups/recipes/blog-list-thumb-start.json +0 -394
  456. package/templates/events-meetups/recipes/blog-list.json +0 -394
  457. package/templates/events-meetups/recipes/blog-see-all.json +0 -50
  458. package/templates/events-meetups/recipes/events-inline-list.json +0 -228
  459. package/templates/events-meetups/recipes/events-inline.json +0 -309
  460. package/templates/events-meetups/recipes/faq-list.json +0 -503
  461. package/templates/events-meetups/recipes/groups-list.json +0 -196
  462. package/templates/events-meetups/recipes/members-list.json +0 -445
  463. package/templates/events-meetups/recipes/plans-card.json +0 -811
  464. package/templates/events-meetups/recipes/products-carousel.json +0 -141
  465. package/templates/events-meetups/recipes/products-grid.json +0 -143
  466. package/templates/events-meetups/recipes/programs-card.json +0 -254
  467. package/templates/events-meetups/recipes/programs-carousel.json +0 -234
  468. package/templates/events-meetups/recipes/programs-filters.json +0 -94
  469. package/templates/events-meetups/recipes/programs-see-all.json +0 -43
  470. package/templates/events-meetups/recipes/section-error.json +0 -58
  471. package/templates/events-meetups/tier5-src/_shared/announcement-section.ts +0 -122
  472. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +0 -207
  473. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +0 -51
  474. package/templates/events-meetups/tier5-src/_shared/events-card.ts +0 -33
  475. package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +0 -25
  476. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +0 -84
  477. package/templates/events-meetups/tier5-src/_shared/faq-list.ts +0 -405
  478. package/templates/events-meetups/tier5-src/_shared/groups-section.ts +0 -110
  479. package/templates/events-meetups/tier5-src/_shared/member-activity.ts +0 -34
  480. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +0 -175
  481. package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +0 -39
  482. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +0 -271
  483. package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +0 -87
  484. package/templates/events-meetups/tier5-src/_shared/plans-section.ts +0 -106
  485. package/templates/events-meetups/tier5-src/_shared/products-section.ts +0 -76
  486. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +0 -16
  487. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +0 -740
  488. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +0 -21
  489. package/templates/gym-fitness/recipes/announcement-card.json +0 -72
  490. package/templates/gym-fitness/recipes/blog-hero.json +0 -95
  491. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +0 -394
  492. package/templates/gym-fitness/recipes/blog-list.json +0 -394
  493. package/templates/gym-fitness/recipes/blog-see-all.json +0 -50
  494. package/templates/gym-fitness/recipes/events-inline-list.json +0 -228
  495. package/templates/gym-fitness/recipes/events-inline.json +0 -309
  496. package/templates/gym-fitness/recipes/faq-list.json +0 -503
  497. package/templates/gym-fitness/recipes/groups-list.json +0 -196
  498. package/templates/gym-fitness/recipes/members-list.json +0 -445
  499. package/templates/gym-fitness/recipes/plans-card.json +0 -811
  500. package/templates/gym-fitness/recipes/products-carousel.json +0 -141
  501. package/templates/gym-fitness/recipes/products-grid.json +0 -143
  502. package/templates/gym-fitness/recipes/programs-card.json +0 -254
  503. package/templates/gym-fitness/recipes/programs-carousel.json +0 -234
  504. package/templates/gym-fitness/recipes/programs-filters.json +0 -94
  505. package/templates/gym-fitness/recipes/programs-see-all.json +0 -43
  506. package/templates/gym-fitness/recipes/section-error.json +0 -58
  507. package/templates/gym-fitness/tier5-src/_shared/announcement-section.ts +0 -122
  508. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +0 -207
  509. package/templates/gym-fitness/tier5-src/_shared/events-card.ts +0 -33
  510. package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +0 -25
  511. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +0 -84
  512. package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +0 -405
  513. package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +0 -110
  514. package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +0 -34
  515. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +0 -175
  516. package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +0 -39
  517. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +0 -271
  518. package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +0 -87
  519. package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +0 -106
  520. package/templates/gym-fitness/tier5-src/_shared/products-section.ts +0 -76
  521. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +0 -16
  522. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +0 -740
  523. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +0 -21
  524. package/templates/nonprofit-cause/recipes/announcement-card.json +0 -72
  525. package/templates/nonprofit-cause/recipes/blog-hero.json +0 -95
  526. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +0 -394
  527. package/templates/nonprofit-cause/recipes/blog-list.json +0 -394
  528. package/templates/nonprofit-cause/recipes/blog-see-all.json +0 -50
  529. package/templates/nonprofit-cause/recipes/events-inline-list.json +0 -228
  530. package/templates/nonprofit-cause/recipes/events-inline.json +0 -309
  531. package/templates/nonprofit-cause/recipes/faq-list.json +0 -503
  532. package/templates/nonprofit-cause/recipes/groups-list.json +0 -196
  533. package/templates/nonprofit-cause/recipes/members-list.json +0 -445
  534. package/templates/nonprofit-cause/recipes/plans-card.json +0 -811
  535. package/templates/nonprofit-cause/recipes/products-carousel.json +0 -141
  536. package/templates/nonprofit-cause/recipes/products-grid.json +0 -143
  537. package/templates/nonprofit-cause/recipes/programs-card.json +0 -254
  538. package/templates/nonprofit-cause/recipes/programs-carousel.json +0 -234
  539. package/templates/nonprofit-cause/recipes/programs-filters.json +0 -94
  540. package/templates/nonprofit-cause/recipes/programs-participant-carousel.json +0 -257
  541. package/templates/nonprofit-cause/recipes/programs-see-all.json +0 -43
  542. package/templates/nonprofit-cause/recipes/section-error.json +0 -58
  543. package/templates/nonprofit-cause/tier5-src/_shared/announcement-section.ts +0 -122
  544. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +0 -207
  545. package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +0 -33
  546. package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +0 -25
  547. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +0 -84
  548. package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +0 -405
  549. package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +0 -110
  550. package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +0 -34
  551. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +0 -175
  552. package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +0 -39
  553. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +0 -271
  554. package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +0 -87
  555. package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +0 -106
  556. package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +0 -76
  557. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +0 -16
  558. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +0 -740
  559. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +0 -21
  560. package/templates/podcast-creator/recipes/announcement-card.json +0 -72
  561. package/templates/podcast-creator/recipes/blog-hero.json +0 -95
  562. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +0 -394
  563. package/templates/podcast-creator/recipes/blog-list.json +0 -394
  564. package/templates/podcast-creator/recipes/blog-see-all.json +0 -50
  565. package/templates/podcast-creator/recipes/events-inline-list.json +0 -228
  566. package/templates/podcast-creator/recipes/events-inline.json +0 -309
  567. package/templates/podcast-creator/recipes/faq-list.json +0 -503
  568. package/templates/podcast-creator/recipes/groups-list.json +0 -196
  569. package/templates/podcast-creator/recipes/members-list.json +0 -445
  570. package/templates/podcast-creator/recipes/plans-card.json +0 -811
  571. package/templates/podcast-creator/recipes/products-carousel.json +0 -141
  572. package/templates/podcast-creator/recipes/products-grid.json +0 -143
  573. package/templates/podcast-creator/recipes/programs-card.json +0 -254
  574. package/templates/podcast-creator/recipes/programs-carousel.json +0 -234
  575. package/templates/podcast-creator/recipes/programs-filters.json +0 -94
  576. package/templates/podcast-creator/recipes/programs-participant-carousel.json +0 -257
  577. package/templates/podcast-creator/recipes/programs-see-all.json +0 -43
  578. package/templates/podcast-creator/recipes/section-error.json +0 -58
  579. package/templates/podcast-creator/tier5-src/_shared/announcement-section.ts +0 -122
  580. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +0 -207
  581. package/templates/podcast-creator/tier5-src/_shared/events-card.ts +0 -33
  582. package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +0 -25
  583. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +0 -84
  584. package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +0 -405
  585. package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +0 -110
  586. package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +0 -34
  587. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +0 -175
  588. package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +0 -39
  589. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +0 -271
  590. package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +0 -87
  591. package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +0 -106
  592. package/templates/podcast-creator/tier5-src/_shared/products-section.ts +0 -76
  593. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +0 -16
  594. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +0 -740
  595. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +0 -21
  596. package/templates/portfolio-creative/recipes/announcement-card.json +0 -72
  597. package/templates/portfolio-creative/recipes/blog-hero.json +0 -95
  598. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +0 -394
  599. package/templates/portfolio-creative/recipes/blog-list.json +0 -394
  600. package/templates/portfolio-creative/recipes/blog-see-all.json +0 -50
  601. package/templates/portfolio-creative/recipes/events-inline-list.json +0 -228
  602. package/templates/portfolio-creative/recipes/events-inline.json +0 -309
  603. package/templates/portfolio-creative/recipes/faq-list.json +0 -503
  604. package/templates/portfolio-creative/recipes/groups-list.json +0 -196
  605. package/templates/portfolio-creative/recipes/members-list.json +0 -445
  606. package/templates/portfolio-creative/recipes/plans-card.json +0 -811
  607. package/templates/portfolio-creative/recipes/products-carousel.json +0 -141
  608. package/templates/portfolio-creative/recipes/products-grid.json +0 -143
  609. package/templates/portfolio-creative/recipes/programs-card.json +0 -254
  610. package/templates/portfolio-creative/recipes/programs-carousel.json +0 -234
  611. package/templates/portfolio-creative/recipes/programs-filters.json +0 -94
  612. package/templates/portfolio-creative/recipes/programs-participant-carousel.json +0 -257
  613. package/templates/portfolio-creative/recipes/programs-see-all.json +0 -43
  614. package/templates/portfolio-creative/recipes/section-error.json +0 -58
  615. package/templates/portfolio-creative/tier5-src/_shared/announcement-section.ts +0 -122
  616. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +0 -207
  617. package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +0 -33
  618. package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +0 -25
  619. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +0 -84
  620. package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +0 -405
  621. package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +0 -110
  622. package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +0 -34
  623. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +0 -175
  624. package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +0 -39
  625. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +0 -271
  626. package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +0 -87
  627. package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +0 -106
  628. package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +0 -76
  629. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +0 -16
  630. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +0 -740
  631. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +0 -21
  632. package/templates/restaurant/recipes/announcement-card.json +0 -72
  633. package/templates/restaurant/recipes/blog-hero.json +0 -95
  634. package/templates/restaurant/recipes/blog-list-thumb-start.json +0 -394
  635. package/templates/restaurant/recipes/blog-list.json +0 -394
  636. package/templates/restaurant/recipes/blog-see-all.json +0 -50
  637. package/templates/restaurant/recipes/events-inline-list.json +0 -228
  638. package/templates/restaurant/recipes/events-inline.json +0 -309
  639. package/templates/restaurant/recipes/faq-list.json +0 -503
  640. package/templates/restaurant/recipes/groups-list.json +0 -196
  641. package/templates/restaurant/recipes/members-list.json +0 -445
  642. package/templates/restaurant/recipes/plans-card.json +0 -811
  643. package/templates/restaurant/recipes/products-carousel.json +0 -141
  644. package/templates/restaurant/recipes/products-grid.json +0 -143
  645. package/templates/restaurant/recipes/programs-card.json +0 -254
  646. package/templates/restaurant/recipes/programs-carousel.json +0 -234
  647. package/templates/restaurant/recipes/programs-filters.json +0 -94
  648. package/templates/restaurant/recipes/programs-participant-carousel.json +0 -257
  649. package/templates/restaurant/recipes/programs-see-all.json +0 -43
  650. package/templates/restaurant/recipes/section-error.json +0 -58
  651. package/templates/restaurant/tier5-src/_shared/announcement-section.ts +0 -122
  652. package/templates/restaurant/tier5-src/_shared/blog-list.ts +0 -207
  653. package/templates/restaurant/tier5-src/_shared/events-card.ts +0 -33
  654. package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +0 -25
  655. package/templates/restaurant/tier5-src/_shared/events-inline.ts +0 -84
  656. package/templates/restaurant/tier5-src/_shared/faq-list.ts +0 -405
  657. package/templates/restaurant/tier5-src/_shared/groups-section.ts +0 -110
  658. package/templates/restaurant/tier5-src/_shared/member-activity.ts +0 -34
  659. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +0 -175
  660. package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +0 -39
  661. package/templates/restaurant/tier5-src/_shared/members-directory.ts +0 -271
  662. package/templates/restaurant/tier5-src/_shared/plan-facts.ts +0 -87
  663. package/templates/restaurant/tier5-src/_shared/plans-section.ts +0 -106
  664. package/templates/restaurant/tier5-src/_shared/products-section.ts +0 -76
  665. package/templates/restaurant/tier5-src/_shared/program-fields.ts +0 -16
  666. package/templates/restaurant/tier5-src/_shared/programs-section.ts +0 -740
  667. package/templates/restaurant/tier5-src/_shared/relative-time.ts +0 -21
  668. package/templates/retail-store/recipes/announcement-card.json +0 -72
  669. package/templates/retail-store/recipes/blog-hero.json +0 -95
  670. package/templates/retail-store/recipes/blog-list-thumb-start.json +0 -394
  671. package/templates/retail-store/recipes/blog-list.json +0 -394
  672. package/templates/retail-store/recipes/blog-see-all.json +0 -50
  673. package/templates/retail-store/recipes/events-inline-list.json +0 -228
  674. package/templates/retail-store/recipes/events-inline.json +0 -309
  675. package/templates/retail-store/recipes/faq-list.json +0 -503
  676. package/templates/retail-store/recipes/groups-list.json +0 -196
  677. package/templates/retail-store/recipes/members-list.json +0 -445
  678. package/templates/retail-store/recipes/plans-card.json +0 -811
  679. package/templates/retail-store/recipes/products-carousel.json +0 -141
  680. package/templates/retail-store/recipes/products-grid.json +0 -143
  681. package/templates/retail-store/recipes/programs-card.json +0 -254
  682. package/templates/retail-store/recipes/programs-carousel.json +0 -234
  683. package/templates/retail-store/recipes/programs-filters.json +0 -94
  684. package/templates/retail-store/recipes/programs-participant-carousel.json +0 -257
  685. package/templates/retail-store/recipes/programs-see-all.json +0 -43
  686. package/templates/retail-store/recipes/section-error.json +0 -58
  687. package/templates/retail-store/tier5-src/_shared/announcement-section.ts +0 -122
  688. package/templates/retail-store/tier5-src/_shared/blog-list.ts +0 -207
  689. package/templates/retail-store/tier5-src/_shared/event-registration.ts +0 -86
  690. package/templates/retail-store/tier5-src/_shared/events-card.ts +0 -33
  691. package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +0 -25
  692. package/templates/retail-store/tier5-src/_shared/events-inline.ts +0 -84
  693. package/templates/retail-store/tier5-src/_shared/faq-list.ts +0 -405
  694. package/templates/retail-store/tier5-src/_shared/groups-section.ts +0 -110
  695. package/templates/retail-store/tier5-src/_shared/member-activity.ts +0 -34
  696. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +0 -175
  697. package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +0 -39
  698. package/templates/retail-store/tier5-src/_shared/members-directory.ts +0 -271
  699. package/templates/retail-store/tier5-src/_shared/plan-facts.ts +0 -87
  700. package/templates/retail-store/tier5-src/_shared/plans-section.ts +0 -106
  701. package/templates/retail-store/tier5-src/_shared/products-section.ts +0 -76
  702. package/templates/retail-store/tier5-src/_shared/program-fields.ts +0 -16
  703. package/templates/retail-store/tier5-src/_shared/programs-section.ts +0 -740
  704. package/templates/retail-store/tier5-src/_shared/relative-time.ts +0 -21
  705. package/templates/yoga-studio/recipes/announcement-card.json +0 -72
  706. package/templates/yoga-studio/recipes/blog-hero.json +0 -95
  707. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +0 -394
  708. package/templates/yoga-studio/recipes/blog-list.json +0 -394
  709. package/templates/yoga-studio/recipes/blog-see-all.json +0 -50
  710. package/templates/yoga-studio/recipes/events-inline-list.json +0 -228
  711. package/templates/yoga-studio/recipes/events-inline.json +0 -309
  712. package/templates/yoga-studio/recipes/faq-list.json +0 -503
  713. package/templates/yoga-studio/recipes/groups-list.json +0 -196
  714. package/templates/yoga-studio/recipes/members-list.json +0 -445
  715. package/templates/yoga-studio/recipes/plans-card.json +0 -811
  716. package/templates/yoga-studio/recipes/products-carousel.json +0 -141
  717. package/templates/yoga-studio/recipes/products-grid.json +0 -143
  718. package/templates/yoga-studio/recipes/programs-card.json +0 -254
  719. package/templates/yoga-studio/recipes/programs-carousel.json +0 -234
  720. package/templates/yoga-studio/recipes/programs-filters.json +0 -94
  721. package/templates/yoga-studio/recipes/programs-participant-carousel.json +0 -257
  722. package/templates/yoga-studio/recipes/programs-see-all.json +0 -43
  723. package/templates/yoga-studio/recipes/section-error.json +0 -58
  724. package/templates/yoga-studio/tier5-src/_shared/announcement-section.ts +0 -122
  725. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +0 -207
  726. package/templates/yoga-studio/tier5-src/_shared/events-card.ts +0 -33
  727. package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +0 -25
  728. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +0 -84
  729. package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +0 -405
  730. package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +0 -110
  731. package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +0 -34
  732. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +0 -175
  733. package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +0 -39
  734. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +0 -271
  735. package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +0 -87
  736. package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +0 -106
  737. package/templates/yoga-studio/tier5-src/_shared/products-section.ts +0 -76
  738. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +0 -16
  739. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +0 -740
  740. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +0 -21
  741. /package/templates/{community-club → brandy}/tier5-src/_shared/detail-presence.ts +0 -0
@@ -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
- }