@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
@@ -2,7 +2,9 @@
2
2
  // limit unset -> follow the page cursor to the last post; limit N -> N posts and a "See All" for the same category,
3
3
  // show.{author,date,readingTime,likes,views,comments} -> exactly what the section's displayOptions enable,
4
4
  // relativeTime -> "2 hours ago" instead of the date,
5
- // countOrder -> the icon counts in the source's order (default likes, views, comments).
5
+ // countOrder -> the icon counts in the source's order (default likes, views, comments),
6
+ // featuredOnly -> only the posts the owner marked featured (the Blog API's `featured` filter),
7
+ // search -> a search section: no posts until the reader types, then the latest posts whose title or excerpt hold the text.
6
8
  // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe blog-post-row.json).
7
9
  import { defineService as register } from "@himalaya/state";
8
10
  import { queryPosts, type WixPost, type WixQueryPostsRequest } from "@himalaya/wix-blog";
@@ -25,6 +27,13 @@ export interface BlogListOptions {
25
27
  countOrder?: CountKey[];
26
28
  /** The post screen a row opens. */
27
29
  detailScreenId?: string;
30
+ /** Only the posts the owner marked featured. */
31
+ featuredOnly?: boolean;
32
+ /**
33
+ * A search section instead of a list: nothing is shown (or read) until the reader types. The latest posts are read once, up to the API's
34
+ * per-query cap, and each keystroke filters them by title and excerpt; `limit` and paging do not apply.
35
+ */
36
+ search?: boolean;
28
37
  }
29
38
 
30
39
  export interface Count { key: CountKey; icon: string; value: number; text: string }
@@ -50,6 +59,8 @@ export interface BlogListState {
50
59
  loadingMore: boolean;
51
60
  total: number;
52
61
  notLoading: boolean; notErrored: boolean; noRows: boolean; notEmpty: boolean; noSeeAll: boolean;
62
+ /** True unless a search found nothing: the "no matching posts" line hides on it. */
63
+ hasMatches: boolean;
53
64
  }
54
65
 
55
66
  /** The METRICS fieldset names, across the post DTO versions. */
@@ -93,7 +104,8 @@ const slotOf = (counts: Count[], index: number): CountSlot => {
93
104
 
94
105
  export function registerBlogList(serviceName: string, options: BlogListOptions) {
95
106
  const order = (options.countOrder?.length ? options.countOrder : COUNT_KEYS).filter((key, i, all) => COUNT_KEYS.includes(key) && all.indexOf(key) === i);
96
- const limited = typeof options.limit === "number" && options.limit > 0;
107
+ const searching = options.search === true;
108
+ const limited = !searching && typeof options.limit === "number" && options.limit > 0;
97
109
  const detailScreenId = options.detailScreenId ?? "himi_blog_post";
98
110
  // Author names by member id, for this service only. A failed lookup stays unknown: no placeholder name.
99
111
  const authors = new Map<string, string>();
@@ -137,14 +149,34 @@ export function registerBlogList(serviceName: string, options: BlogListOptions)
137
149
  return {
138
150
  status, rows, loadingMore, total,
139
151
  // An unlimited list follows the cursor; a limited one stops at its authored count.
140
- nextCursor: !limited && more ? String(next) : "",
152
+ nextCursor: !limited && !searching && more ? String(next) : "",
141
153
  notLoading: status !== "loading", notErrored: status !== "error",
142
- noRows: !rows.length, notEmpty: !(status === "ready" && !rows.length),
154
+ // A search has its own "no matching posts" line; the list's "no posts yet" must not show before anything is typed.
155
+ noRows: !rows.length, notEmpty: searching || !(status === "ready" && !rows.length),
156
+ hasMatches: !searching || !typed || status !== "ready" || rows.length > 0,
143
157
  // See All only for a LIMITED list that has more posts than it shows.
144
158
  noSeeAll: !(limited && more),
145
159
  };
146
160
  }
147
161
 
162
+ /** One query of the list: the section's category and featured filter, newest first. */
163
+ async function read(offset: number, size: number) {
164
+ const result = await queryPosts({
165
+ fieldsets: ["METRICS"],
166
+ query: {
167
+ filter: {
168
+ ...(options.categoryId ? { categoryIds: { $hasSome: [options.categoryId] } } : {}),
169
+ ...(options.featuredOnly ? { featured: { $eq: true } } : {}),
170
+ },
171
+ paging: { limit: size, offset },
172
+ sort: [{ fieldName: "firstPublishedDate", order: "DESC" }],
173
+ },
174
+ } as WixQueryPostsRequest & { fieldsets: string[] });
175
+ const posts = (result.posts ?? []) as Post[];
176
+ if (options.show.author) await resolveAuthors(posts);
177
+ return { posts, total: result.pagingMetadata?.total };
178
+ }
179
+
148
180
  async function page(offset: number): Promise<{ rows: BlogRow[]; next: number; total: number; more: boolean }> {
149
181
  // A limited list reads its whole count (several queries when it is above the API's per-query cap); an unlimited one a page at a time.
150
182
  const want = limited ? options.limit as number : PAGE;
@@ -155,28 +187,42 @@ export function registerBlogList(serviceName: string, options: BlogListOptions)
155
187
  let more = false;
156
188
  while (rows.length < want) {
157
189
  const size = Math.min(want - rows.length, limited ? MAX_PAGE : PAGE);
158
- const result = await queryPosts({
159
- fieldsets: ["METRICS"],
160
- query: {
161
- filter: options.categoryId ? { categoryIds: { $hasSome: [options.categoryId] } } : {},
162
- paging: { limit: size, offset: at },
163
- sort: [{ fieldName: "firstPublishedDate", order: "DESC" }],
164
- },
165
- } as WixQueryPostsRequest & { fieldsets: string[] });
166
- const posts = (result.posts ?? []) as Post[];
167
- if (options.show.author) await resolveAuthors(posts);
190
+ const batch = await read(at, size);
168
191
  const now = Date.now();
169
- rows.push(...posts.map((post) => rowOf(post, now)));
170
- at += posts.length;
171
- total = result.pagingMetadata?.total;
192
+ rows.push(...batch.posts.map((post) => rowOf(post, now)));
193
+ at += batch.posts.length;
194
+ total = batch.total;
172
195
  // The total is optional in the response: without it, a full page means there may be more, a short or empty one means there is not.
173
- more = total !== undefined ? at < total : posts.length === size;
196
+ more = total !== undefined ? at < total : batch.posts.length === size;
174
197
  if (!more) break;
175
198
  }
176
199
  return { rows, next: offset + rows.length, total: total ?? offset + rows.length, more };
177
200
  }
178
201
 
179
- const initial = view("loading", [], 0, 0, false);
202
+ // ---- search section: the latest posts, read once, filtered by what the reader typed ----
203
+ /** The text the reader typed, trimmed and lower-cased; "" shows nothing. Read after every await, so the newest keystroke wins. */
204
+ let typed = "";
205
+ let pool: Promise<Array<{ row: BlogRow; text: string }>> | undefined;
206
+ const readPool = async () => {
207
+ const { posts } = await read(0, MAX_PAGE);
208
+ const now = Date.now();
209
+ return posts.map((post) => ({ row: rowOf(post, now), text: `${post.title ?? ""}\n${post.excerpt ?? ""}`.toLowerCase() }));
210
+ };
211
+ async function runSearch(fresh = false): Promise<BlogListState> {
212
+ if (fresh) pool = undefined;
213
+ try {
214
+ const entries = typed ? await (pool ??= readPool()) : [];
215
+ const rows = typed ? entries.filter((entry) => entry.text.includes(typed)).map((entry) => entry.row) : [];
216
+ return view("ready", rows, rows.length, rows.length, false);
217
+ } catch (error) {
218
+ pool = undefined;
219
+ console.warn("blog_list: the posts could not be read", error);
220
+ return view("error", [], 0, 0, false);
221
+ }
222
+ }
223
+
224
+ // A search section has nothing to wait for before the reader types: no skeleton.
225
+ const initial = view(searching ? "ready" : "loading", [], 0, 0, false);
180
226
  /** This run has read the posts. A cold boot restores last session's rows as "ready"; they are revalidated once, then a re-appear keeps them. */
181
227
  let loadedThisRun = false;
182
228
  const reload = async (): Promise<BlogListState> => {
@@ -186,13 +232,21 @@ export function registerBlogList(serviceName: string, options: BlogListOptions)
186
232
  const svc = register<BlogListState, {
187
233
  load: (state: BlogListState, arg?: unknown) => Promise<BlogListState>;
188
234
  retry: (state: BlogListState) => Promise<BlogListState>;
235
+ search: (state: BlogListState, arg?: unknown) => Promise<BlogListState>;
189
236
  loadMore: (state: BlogListState) => Promise<BlogListState>;
190
237
  }>(serviceName, {
191
238
  state: initial,
192
239
  actions: {
240
+ // A search section drops its post pool on every appear, so posts published while the reader was away are searched too (the pool is read again when they type).
193
241
  // The screen's onAppear fires on every re-appear (back from a post): a list that has posts keeps them and its scroll position. Only an empty (nothing yet, or a failed read) list reads, so posts added while away show on return; retry always reads.
194
- load: async (state, arg) => { stashCopy(arg); return loadedThisRun && state.status === "ready" && state.rows.length ? state : reload(); },
195
- retry: reload,
242
+ load: async (state, arg) => { stashCopy(arg); return searching ? runSearch(true) : loadedThisRun && state.status === "ready" && state.rows.length ? state : reload(); },
243
+ retry: async () => searching ? runSearch(true) : reload(),
244
+ // The search field's change (debounced by the recipe): a string, or an object carrying the text as `value`.
245
+ search: async (_state, arg) => {
246
+ const value = typeof arg === "string" ? arg : (arg as { value?: unknown } | undefined)?.value;
247
+ typed = typeof value === "string" ? value.trim().toLowerCase() : "";
248
+ return runSearch();
249
+ },
196
250
  loadMore: async (state) => {
197
251
  if (!state.nextCursor || state.loadingMore) return state;
198
252
  try {
@@ -0,0 +1,115 @@
1
+ // A page's Pro Gallery section as a registrable service: the site's first galleries, each as its cover and name, that open the gallery.
2
+ // limit -> how many galleries (the source section's `maxGalleries`); `noMore` is false when the site has more,
3
+ // which is when the section's See All button (to the galleries screen) shows.
4
+ // showName -> whether a card shows the gallery's name (the source section's `isShowName`); the accessibility label always has it.
5
+ // The read is the one the template's galleries screen makes first (`GET /progallery/v2/galleries`, one item per gallery as its cover).
6
+ // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipes galleries-carousel / galleries-list).
7
+ import { defineService } from "@himalaya/state";
8
+ import { wixMediaUrl } from "@himalaya/wix-media";
9
+ import { copyParam, stashCopy, copyTemplate } from "./himi-copy.js";
10
+
11
+ export interface GalleriesSectionOptions {
12
+ /** How many galleries to show. */
13
+ limit?: number;
14
+ /** Whether a card shows the gallery's name. */
15
+ showName?: boolean;
16
+ }
17
+
18
+ export interface GalleryRow {
19
+ id: string;
20
+ /** The name a card shows: "" when the source section hides names. */
21
+ name: string;
22
+ /** The gallery's name for screen readers and for the screen the card opens. */
23
+ label: string;
24
+ image: string; initial: string; hasImage: boolean; noImage: boolean;
25
+ /** The screen a card opens; the card binds `id`, `label` and `source` as its params. */
26
+ detailScreenId: string;
27
+ /** `himi_gallery` reads a gallery live from the Pro Gallery gateway only when the tap says the row came from there. */
28
+ source: string;
29
+ }
30
+
31
+ export interface GalleriesSectionState {
32
+ status: "loading" | "ready" | "error";
33
+ rows: GalleryRow[];
34
+ emptyText: string;
35
+ notLoading: boolean; notErrored: boolean; noRows: boolean; noEmpty: boolean;
36
+ /** false when the site has more galleries than the section shows. */
37
+ noMore: boolean;
38
+ }
39
+
40
+ const GALLERIES_PATH = "/progallery/v2/galleries";
41
+ const DEFAULT_LIMIT = 10;
42
+ /** The API's page maximum, and the most galleries a section shows (the template's galleries screen caps at 30 too). */
43
+ const PAGE_SIZE = 10, MAX_GALLERIES = 30;
44
+ /** A 240pt card at 3x: the shared list size (1000px) would ship far more pixels than a rail shows. */
45
+ const CARD_IMAGE = { width: 720, height: 540, quality: 85 };
46
+
47
+ type WixApi = { call: (method: string, path: string) => Promise<unknown> };
48
+ interface RawGallery { id?: unknown; name?: unknown; items?: Array<{ image?: { imageInfo?: unknown } }> }
49
+
50
+ /** A Pro Gallery image item's URL: `imageInfo` is a Wix media object (`{ url, id }`) or a `wix:image://` string; anything else is "". */
51
+ function coverOf(gallery: RawGallery): string {
52
+ const info = Array.isArray(gallery.items) ? gallery.items[0]?.image?.imageInfo : undefined;
53
+ if (typeof info === "string") return wixMediaUrl(info, CARD_IMAGE);
54
+ if (!info || typeof info !== "object") return "";
55
+ const media = info as { url?: unknown; id?: unknown };
56
+ return wixMediaUrl(media.url, CARD_IMAGE) || wixMediaUrl(media.id, CARD_IMAGE);
57
+ }
58
+
59
+ function rowOf(gallery: RawGallery, index: number, showName: boolean): GalleryRow {
60
+ const name = typeof gallery.name === "string" ? gallery.name.trim() : "";
61
+ const label = name || copyTemplate("galleries.untitledGallery", "Gallery {number}", { number: index + 1 });
62
+ const image = coverOf(gallery);
63
+ return {
64
+ id: gallery.id as string, name: showName ? label : "", label,
65
+ image, initial: (label[0] ?? "#").toUpperCase(), hasImage: !!image, noImage: !image,
66
+ detailScreenId: "himi_gallery", source: "gateway",
67
+ };
68
+ }
69
+
70
+ /** The first `limit` galleries, page by page, and whether the site has more. A response that is not a gallery list is a failed read. */
71
+ async function readGalleries(api: WixApi, limit: number): Promise<{ galleries: RawGallery[]; more: boolean }> {
72
+ const galleries: RawGallery[] = [];
73
+ let total: unknown;
74
+ while (galleries.length < limit) {
75
+ const size = Math.min(PAGE_SIZE, limit - galleries.length);
76
+ const res = await api.call("GET", `${GALLERIES_PATH}?itemLimit=1&offset=${galleries.length}&limit=${size}`) as { galleries?: unknown; totalGalleries?: unknown } | null;
77
+ const page = res?.galleries;
78
+ if (!Array.isArray(page)) throw new Error("Malformed Pro Gallery list response");
79
+ galleries.push(...(page as RawGallery[]));
80
+ total = res?.totalGalleries;
81
+ if (page.length < size) break;
82
+ }
83
+ // A response without a total cannot say the list ended: a section that read its full count offers View All.
84
+ return { galleries, more: typeof total === "number" ? total > galleries.length : galleries.length >= limit };
85
+ }
86
+
87
+ export function registerGalleriesSection(serviceName: string, options: GalleriesSectionOptions = {}) {
88
+ const limit = Math.min(Math.max(Math.floor(options.limit ?? DEFAULT_LIMIT), 1), MAX_GALLERIES);
89
+ const showName = options.showName !== false;
90
+ const view = (status: GalleriesSectionState["status"], rows: GalleryRow[], more: boolean): GalleriesSectionState => ({
91
+ status, rows,
92
+ emptyText: status === "ready" && !rows.length ? copyParam("galleries.sectionEmptyText", "No galleries yet.") : "",
93
+ notLoading: status !== "loading", notErrored: status !== "error",
94
+ noRows: !rows.length, noEmpty: !(status === "ready" && !rows.length),
95
+ noMore: !more,
96
+ });
97
+ return defineService<GalleriesSectionState, { load: (state: GalleriesSectionState, arg?: unknown) => Promise<GalleriesSectionState> }>(serviceName, {
98
+ state: view("loading", [], false),
99
+ actions: {
100
+ load: async (_state, arg) => {
101
+ stashCopy(arg);
102
+ try {
103
+ const api = (globalThis as { himalaya?: { wixApi?: WixApi } }).himalaya?.wixApi;
104
+ if (!api) throw new Error("Wix bridge unavailable");
105
+ const { galleries, more } = await readGalleries(api, limit);
106
+ const rows = galleries.filter((gallery) => typeof gallery.id === "string" && gallery.id).slice(0, limit).map((gallery, index) => rowOf(gallery, index, showName));
107
+ return view("ready", rows, more);
108
+ } catch (error) {
109
+ console.warn("galleries_section: the galleries could not be read", error);
110
+ return view("error", [], false);
111
+ }
112
+ },
113
+ },
114
+ });
115
+ }
@@ -0,0 +1,137 @@
1
+ // A page's single-group feed section as a registrable service: the latest posts of ONE group, driven by the source section's settings.
2
+ // groupId -> the group whose posts show,
3
+ // limit -> at most N posts (the source's "postNumber").
4
+ // A group that is not public is shown the way the group screen shows it to someone who is not a member: its name, its privacy and the
5
+ // invitation message, and the feed is never read, so no post of a private group reaches the page. A public group whose feed Wix refuses
6
+ // the viewer (401/403: the feed read is a member scope) shows the same state with its own sentence.
7
+ // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe group-feed.json).
8
+ import { defineService } from "@himalaya/state";
9
+ import { hostSessionFromGlobal } from "@himalaya/iap";
10
+ import { memberAccess } from "./member-access.js";
11
+ import { getGroup, type WixGroup } from "@himalaya/wix-groups";
12
+ import { listFeedItems, type WixFeedItem, type WixFeedProfile } from "@himalaya/wix-social-feed";
13
+ import { copyParam, stashCopy } from "./himi-copy.js";
14
+ import { initials } from "./himi-text.js";
15
+ import { groupPrivacyLabel } from "./group-privacy.js";
16
+ import { relativeTime } from "./relative-time.js";
17
+ import { descriptionBody, ROW_IMAGE_WIDTH } from "./rich-body.js";
18
+
19
+ export interface GroupFeedOptions {
20
+ /** The group whose posts show. */
21
+ groupId: string;
22
+ /** Show at most this many posts. */
23
+ limit?: number;
24
+ }
25
+
26
+ export interface GroupFeedRow {
27
+ id: string; author: string; initials: string;
28
+ avatar: string;
29
+ text: string; timeLabel: string;
30
+ }
31
+
32
+ export interface GroupFeedState {
33
+ status: "loading" | "ready" | "error";
34
+ rows: GroupFeedRow[];
35
+ /** The group's name and privacy label, shown with the restricted state. */
36
+ groupName: string; privacy: string;
37
+ /** Why the posts are not shown ("" when they are): the invitation message of a private group, or the member-only sentence. */
38
+ restrictedText: string;
39
+ emptyText: string;
40
+ notLoading: boolean; notErrored: boolean; noRows: boolean; noEmpty: boolean; noRestricted: boolean;
41
+ }
42
+
43
+ /** The most posts one section reads. */
44
+ const MAX_POSTS = 20;
45
+
46
+ /** A post's plain text. A Ricos document gives its whole text; a DraftJS post (`blocks`), a document the viewer cannot draw and the lean
47
+ * v1 read give theirs, as the feed screen reads them. */
48
+ function postText(item: WixFeedItem): string {
49
+ const shared = copyParam("feed.sharedUpdateFallback", "Shared an update.");
50
+ const blocks = (item.content?.blocks ?? []).map((b) => (b?.text ?? "").trim()).filter(Boolean).join("\n");
51
+ const nodes = (item.content?.nodes ?? []).flatMap((n) => n?.nodes ?? []).map((n) => (n?.textData?.text ?? "").trim()).filter(Boolean).join("\n");
52
+ const fallback = blocks || nodes || descriptionBody(item.entity?.body?.content, shared).bodyText;
53
+ return descriptionBody(item.content || item.entity?.body?.content, fallback, ROW_IMAGE_WIDTH).bodyText;
54
+ }
55
+
56
+ function authorOf(item: WixFeedItem, profiles: WixFeedProfile[]): { name: string; avatar: string } {
57
+ const profile = profiles.find((p) => p.id && p.id === item.author?.id);
58
+ const createdBy = item.createdBy;
59
+ const named = typeof createdBy === "string" ? createdBy : createdBy?.name || createdBy?.nickname;
60
+ const photo = profile?.profileImage;
61
+ const fromProfile = typeof photo === "string" ? photo : photo?.url;
62
+ const fromCreator = createdBy && typeof createdBy !== "string" ? createdBy.image?.url || createdBy.imageUrl : "";
63
+ return { name: profile?.userName || named || copyParam("feed.memberFallbackName", "Member"), avatar: fromProfile || fromCreator || "" };
64
+ }
65
+
66
+ function postRow(item: WixFeedItem, profiles: WixFeedProfile[], now: number): GroupFeedRow {
67
+ const { name, avatar } = authorOf(item, profiles);
68
+ return {
69
+ id: item.feedItemId || "", author: name, initials: initials(name),
70
+ avatar,
71
+ text: postText(item), timeLabel: relativeTime(item.created ?? item.createdAt, now),
72
+ };
73
+ }
74
+
75
+ /** The feed read is a member scope: Wix answers a viewer it will not show with `HTTP 401` / `HTTP 403`. */
76
+ const isRefusal = (error: unknown): boolean => /\b(401|403)\b/.test(String((error as Error | undefined)?.message ?? error));
77
+
78
+ export function registerGroupFeedSection(serviceName: string, options: GroupFeedOptions) {
79
+ const view = (status: GroupFeedState["status"], parts: { rows?: GroupFeedRow[]; groupName?: string; privacy?: string; restrictedText?: string } = {}): GroupFeedState => {
80
+ const rows = parts.rows ?? [], restrictedText = parts.restrictedText ?? "";
81
+ return {
82
+ status, rows, groupName: parts.groupName ?? "", privacy: parts.privacy ?? "", restrictedText,
83
+ emptyText: status === "ready" && !rows.length && !restrictedText ? copyParam("groupFeed.emptyText", "No posts in this group yet.") : "",
84
+ notLoading: status !== "loading", notErrored: status !== "error",
85
+ noRows: !rows.length, noEmpty: !(status === "ready" && !rows.length && !restrictedText), noRestricted: !restrictedText,
86
+ };
87
+ };
88
+ const session = hostSessionFromGlobal();
89
+ // The viewer changed: the rows already published are the previous viewer's, so they go at once, before the read for the new one finishes.
90
+ const restart = () => { void service.clear(); void service.load(); };
91
+ // Only the newest load may answer, and only for the viewer who started it: a feed read for one member is never shown to the next.
92
+ let sequence = 0;
93
+ const service = defineService<GroupFeedState, { load: (state: GroupFeedState, arg?: unknown) => Promise<GroupFeedState | undefined>; clear: () => Promise<GroupFeedState> }>(serviceName, {
94
+ state: view("loading"),
95
+ // A group's posts are member-scoped: never written to disk and restored for the next person on the device.
96
+ notHydrated: Object.keys(view("loading")) as Array<keyof GroupFeedState>,
97
+ actions: {
98
+ clear: async () => view("loading"),
99
+ load: async (_state, arg) => {
100
+ stashCopy(arg);
101
+ const seq = ++sequence;
102
+ const viewer = await memberAccess();
103
+ const sameViewer = async () => { const now = await memberAccess(); return seq === sequence && now.email === viewer.email && now.scope === viewer.scope; };
104
+ try {
105
+ const response = await getGroup(options.groupId);
106
+ if (!(await sameViewer())) { if (seq === sequence) restart(); return undefined; }
107
+ const group = ((response as unknown as { group?: WixGroup }).group ?? response) as WixGroup;
108
+ const kind = (group.privacyStatus || "UNKNOWN").toLowerCase();
109
+ const groupName = (group.name || copyParam("groups.groupFallbackName", "Group")).trim();
110
+ const privacy = groupPrivacyLabel(kind);
111
+ // The group screen lets anyone join only a public group (an unknown status counts as public there too): the rest is by invitation.
112
+ if (kind !== "public" && kind !== "unknown") {
113
+ return view("ready", { groupName, privacy, restrictedText: copyParam("group.privateInviteMessage", "Private groups are available by invitation.") });
114
+ }
115
+ try {
116
+ const feed = await listFeedItems(options.groupId, Math.min(options.limit ?? MAX_POSTS, MAX_POSTS));
117
+ if (!(await sameViewer())) { if (seq === sequence) restart(); return undefined; }
118
+ const profiles = feed.profiles ?? [], now = Date.now();
119
+ const rows = (feed.feedItems ?? []).filter((item) => item.feedItemId).map((item) => postRow(item, profiles, now));
120
+ return view("ready", { rows, groupName, privacy });
121
+ } catch (error) {
122
+ if (!(await sameViewer())) { if (seq === sequence) restart(); return undefined; }
123
+ if (!isRefusal(error)) throw error;
124
+ return view("ready", { groupName, privacy, restrictedText: copyParam("groupFeed.restrictedText", "Posts are shown to the group's members.") });
125
+ }
126
+ } catch (error) {
127
+ if (seq !== sequence) return undefined;
128
+ console.warn("group_feed_section: the group's posts could not be read", error);
129
+ return view("error");
130
+ }
131
+ },
132
+ },
133
+ });
134
+ // Signing in or out on another screen changes who the feed is read for.
135
+ session.subscribe(restart);
136
+ return service;
137
+ }
@@ -14,6 +14,8 @@ export interface GroupsSectionOptions {
14
14
  groupIds?: string[];
15
15
  /** Show at most this many groups. */
16
16
  limit?: number;
17
+ /** Read each cover at a card's size (a rail of cards) instead of a row's 72pt thumbnail. */
18
+ cards?: boolean;
17
19
  }
18
20
 
19
21
  export interface GroupRow {
@@ -35,6 +37,8 @@ export interface GroupsSectionState {
35
37
  /** The most groups one query reads. */
36
38
  /** The row's 72pt thumbnail at 3x: the shared list size (1000px) would fetch and decode far more pixels than it shows. */
37
39
  const GROUP_THUMB = { width: 216, height: 216, quality: 85 };
40
+ /** A card's 240pt-wide cover at 3x, in the 16:9 the card crops it to. */
41
+ const GROUP_CARD = { width: 720, height: 405, quality: 85 };
38
42
  const QUERY_LIMIT = 100;
39
43
  /** The most groups one section reads (10 pages): a site beyond it is shown as "has more" instead of silently cut. */
40
44
  const MAX_GROUPS = 1000;
@@ -61,10 +65,10 @@ function snippet(value: string): string {
61
65
  return text.length > 140 ? `${text.slice(0, 139).trimEnd()}…` : text;
62
66
  }
63
67
 
64
- function groupRow(group: WixGroup): GroupRow {
68
+ function groupRow(group: WixGroup, cards: boolean): GroupRow {
65
69
  const title = (group.name || copyParam("groups.groupFallbackName", "Group")).trim();
66
70
  const count = group.membersCount ?? group.memberCount;
67
- const image = groupImage(group, GROUP_THUMB);
71
+ const image = groupImage(group, cards ? GROUP_CARD : GROUP_THUMB);
68
72
  const teaser = descriptionBody(group.teaser).bodyText;
69
73
  const body = descriptionBody(group.description, teaser).bodyText;
70
74
  const meta = count == null ? "" : groupMemberCount(count);
@@ -99,7 +103,7 @@ export function registerGroupsSection(serviceName: string, options: GroupsSectio
99
103
  groups = options.groupIds.flatMap((id) => byId.get(id) ?? []);
100
104
  }
101
105
  const shown = options.limit !== undefined ? groups.slice(0, options.limit) : groups;
102
- return view("ready", shown.map(groupRow), read.truncated || shown.length < groups.length);
106
+ return view("ready", shown.map((group) => groupRow(group, options.cards === true)), read.truncated || shown.length < groups.length);
103
107
  } catch (error) {
104
108
  console.warn("groups_section: the groups could not be read", error);
105
109
  return view("error", [], false);
@@ -0,0 +1,107 @@
1
+ // The INLINE "my subscriptions" section: the signed-in member's active pricing-plan orders as cards (name, status, price, valid-until),
2
+ // hosted by any worker that wants them next to other sections. It is read-only: a card opens the order's own screen
3
+ // (`himi_subscription`) and the section's See All opens the subscriptions screen (`himi_my_subscriptions`). The `subscriptions-list`
4
+ // recipe is the card list that reads it, bound as `$service:<serviceName>.*`.
5
+ //
6
+ // The section has two things to say besides its rows, and ONE `noticeText` slot says them: a guest is asked to sign in (never shown an
7
+ // error: a visitor has no orders to fail to read, and a signed-in account the site refuses, 401/403, is not a member of it, so it is
8
+ // asked to sign in as one), and a member with no active order is told so. Only a read that failed for another reason is the error
9
+ // state, which the section-error piece shows.
10
+ // It mirrors the order mapping of the `himi_my_subscriptions` worker (wix-spaces-my-subscriptions); that worker is not changed.
11
+ import { defineService } from "@himalaya/state";
12
+ import { listMyPlanOrders, type WixPlanOrder } from "@himalaya/wix-pricing-plans";
13
+ import { hostSessionFromGlobal } from "@himalaya/iap";
14
+ import { memberAccess, assertMemberAccess, memberAccessDenied, memberChanged } from "./member-access.js";
15
+ import { orderDate, orderPrice, orderStatus } from "./pricing-plan-display.js";
16
+ import { copyParam, stashCopy } from "./himi-copy.js";
17
+
18
+ /** The most subscriptions one section shows; See All opens the rest. */
19
+ export const SUBSCRIPTIONS_SECTION_MAX = 5;
20
+ /** What the section lists: the orders the member still has. Ended and canceled ones are on the full screen's Expired tab. */
21
+ const LIVE_STATUSES = ["ACTIVE", "PENDING", "PAUSED"];
22
+
23
+ export interface SubscriptionRow {
24
+ id: string; name: string;
25
+ /** The order's status as a word ("Active"). */
26
+ status: string;
27
+ price: string; noPrice: boolean;
28
+ /** "Valid until" / "Current period ends", then the date. */
29
+ dateLabel: string; endDate: string; noEndDate: boolean;
30
+ }
31
+
32
+ export interface SubscriptionsSectionState {
33
+ status: "loading" | "ready" | "guest" | "error";
34
+ rows: SubscriptionRow[];
35
+ /** The guest / refused / no-subscription message; empty when the section has rows. */
36
+ noticeText: string;
37
+ signInLabel: string;
38
+ notLoading: boolean; notErrored: boolean; noRows: boolean; noNotice: boolean;
39
+ /** The sign-in button shows for a guest only. */
40
+ noSignIn: boolean;
41
+ /** See All shows once the member's list was read. */
42
+ noSeeAll: boolean;
43
+ }
44
+
45
+ function row(order: WixPlanOrder): SubscriptionRow {
46
+ // A subscription with no end date but a running billing cycle is "valid" until the cycle ends.
47
+ const periodEnd = !order.earliestEndDate && !order.endDate && order.status === "ACTIVE" && (order.pricing?.subscription ?? order.priceDetails?.subscription)
48
+ ? orderDate(order.currentCycle?.endedDate) : "";
49
+ const endDate = orderDate(order.earliestEndDate ?? order.endDate) || periodEnd;
50
+ const price = orderPrice(order);
51
+ return {
52
+ id: order.id, name: (order.planName || copyParam("plans.planFallbackName", "Plan")).trim(), status: orderStatus(order),
53
+ price, noPrice: !price,
54
+ dateLabel: periodEnd ? copyParam("subscriptionDetail.periodEnd", "Current period ends") : copyParam("mySubscriptions.validUntil", "Valid until"),
55
+ endDate, noEndDate: !endDate,
56
+ };
57
+ }
58
+
59
+ function view(status: SubscriptionsSectionState["status"], rows: SubscriptionRow[] = []): SubscriptionsSectionState {
60
+ const noticeText = status === "guest" ? copyParam("mySubscriptions.guestBody", "Sign in to see your subscriptions.")
61
+ : status === "ready" && !rows.length ? copyParam("mySubscriptions.activeEmpty", "No active subscriptions") : "";
62
+ return {
63
+ status, rows, noticeText, signInLabel: copyParam("account.signInCta", "Sign in"),
64
+ notLoading: status !== "loading", notErrored: status !== "error", noRows: !rows.length, noNotice: !noticeText,
65
+ noSignIn: status !== "guest", noSeeAll: status !== "ready",
66
+ };
67
+ }
68
+
69
+ export function registerSubscriptionsSection(serviceName: string, options: { limit?: number } = {}) {
70
+ const limit = options.limit !== undefined && options.limit > 0 ? options.limit : SUBSCRIPTIONS_SECTION_MAX;
71
+ const session = hostSessionFromGlobal();
72
+ let sequence = 0;
73
+ // The member changed: the orders already published are the previous member's, so they go at once.
74
+ const restart = () => { void service.clear(); void service.load(); };
75
+ const service = defineService<SubscriptionsSectionState, { load: (state: SubscriptionsSectionState, arg?: unknown) => Promise<SubscriptionsSectionState | undefined>; clear: () => Promise<SubscriptionsSectionState> }>(serviceName, {
76
+ state: view("loading"),
77
+ // The orders are one member's: never written to disk and restored for the next person on the device.
78
+ notHydrated: Object.keys(view("loading")) as Array<keyof SubscriptionsSectionState>,
79
+ actions: {
80
+ clear: async () => view("loading"),
81
+ load: async (_state, arg) => {
82
+ stashCopy(arg);
83
+ const seq = ++sequence;
84
+ const member = await memberAccess();
85
+ if (seq !== sequence) return undefined;
86
+ // No email is a visitor: there is nothing to read, and nothing to fail.
87
+ if (!member.email) return view("guest");
88
+ try {
89
+ const result = await listMyPlanOrders({ statuses: LIVE_STATUSES, limit, offset: 0 });
90
+ await assertMemberAccess(member);
91
+ if (seq !== sequence) return undefined;
92
+ return view("ready", (result.orders ?? []).filter((order) => order.id).slice(0, limit).map(row));
93
+ } catch (error) {
94
+ if (seq !== sequence) return undefined;
95
+ // The member signed out (or changed) while the read was out: read again for whoever is signed in now.
96
+ if (await memberChanged(member, error)) { restart(); return undefined; }
97
+ if (memberAccessDenied(error)) return view("guest");
98
+ console.warn("subscriptions_section: the subscriptions could not be read", error);
99
+ return view("error");
100
+ }
101
+ },
102
+ },
103
+ });
104
+ // Signing in or out on another screen changes the list this section shows.
105
+ session.subscribe(restart);
106
+ return service;
107
+ }
@@ -17,6 +17,8 @@ export interface PlansSectionOptions {
17
17
  planIds?: readonly string[];
18
18
  /** The source's "show benefits list" switch; the list is shown unless it is off. */
19
19
  showBenefits?: boolean;
20
+ /** The order of the published plans when none is selected (a selection keeps the source's own order); absent: the site's order. */
21
+ order?: "oldest-first" | "newest-first";
20
22
  }
21
23
 
22
24
  export interface PlansSectionRow {
@@ -78,9 +80,15 @@ function derive(status: PlansSectionState["status"], rows: PlansSectionRow[]): P
78
80
  }
79
81
 
80
82
  /** The selected plans in the source's order; every published plan when none is selected. Archived plans never show. */
81
- export function selectPlans(plans: readonly WixPlan[], planIds: readonly string[] = []): WixPlan[] {
83
+ export function selectPlans(plans: readonly WixPlan[], planIds: readonly string[] = [], order?: PlansSectionOptions["order"]): WixPlan[] {
82
84
  const live = plans.filter((plan) => !plan.archived && !!plan.id);
83
- if (!planIds.length) return live;
85
+ if (!planIds.length) {
86
+ if (!order) return live;
87
+ // A plan with no creation date keeps its place after the dated ones.
88
+ const created = (plan: WixPlan) => Date.parse(plan.createdDate ?? "");
89
+ const sign = order === "oldest-first" ? 1 : -1;
90
+ return [...live.filter((plan) => Number.isFinite(created(plan))).sort((a, b) => sign * (created(a) - created(b))), ...live.filter((plan) => !Number.isFinite(created(plan)))];
91
+ }
84
92
  const rank = new Map(planIds.map((id, index) => [id, index]));
85
93
  return live.filter((plan) => rank.has(plan.id)).sort((a, b) => (rank.get(a.id) ?? 0) - (rank.get(b.id) ?? 0));
86
94
  }
@@ -95,7 +103,7 @@ export function registerPlansSection(serviceName: string, options: PlansSectionO
95
103
  stashCopy(arg);
96
104
  try {
97
105
  const response = await listPublicPlans();
98
- return derive("ready", selectPlans(response.plans ?? [], planIds).map((plan) => plansSectionRow(plan, showBenefits)));
106
+ return derive("ready", selectPlans(response.plans ?? [], planIds, options.order).map((plan) => plansSectionRow(plan, showBenefits)));
99
107
  } catch (error) {
100
108
  console.warn("plans_section: the plans could not be read", error);
101
109
  return derive("error", []);
@@ -561,6 +561,8 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
561
561
  return { items: [], nextCursor: "", metadata };
562
562
  }
563
563
  const [counts, applications] = await Promise.all([statsFor(programs), applicationsFor(programs, participations, scope)]);
564
+ // The member can change while the stats and applications are read: those rows are the previous member's.
565
+ if (!sameScope(scope, await resolveScope())) throw memberAccessChanged();
564
566
  const items = programs.map((p) => programContent({ program: p, participant: participations.get(p.id), application: applications.map.get(p.id), applicationUnknown: applications.unknown.has(p.id), participationsUnknown: !participationsKnown, participants: counts.get(p.id), member: !!scope.memberId, now, display }));
565
567
  // A revalidating load publishes nothing until it settles, so page 1 records the scope its later pages
566
568
  // are read under here, not only from the published snapshot.