@wix/himalaya-cli 0.1762.0 → 0.1764.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (693) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-client.d.ts +115 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-screen.d.ts +57 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-service.d.ts +441 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +1032 -117
  6. package/dist/cli.mjs +73447 -72087
  7. package/guides/base44-app-to-himi-app.md +56 -0
  8. package/guides/getting-started.md +2 -0
  9. package/guides/himi-json-output.md +35 -0
  10. package/guides/himi-skill.md +2 -0
  11. package/guides/index.json +6 -0
  12. package/guides/one-app-section-mappings.md +6 -6
  13. package/guides/one-app-to-himi-app.md +27 -4
  14. package/guides/push-cli-onboarding.md +25 -14
  15. package/guides/wix-file-share.md +168 -0
  16. package/guides/wix-site-to-himi-app.md +1 -0
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/l10n/ar.json +9 -420
  19. package/templates/beauty-salon/l10n/cs.json +9 -420
  20. package/templates/beauty-salon/l10n/da.json +9 -420
  21. package/templates/beauty-salon/l10n/de.json +9 -420
  22. package/templates/beauty-salon/l10n/el.json +9 -420
  23. package/templates/beauty-salon/l10n/en.json +8 -61
  24. package/templates/beauty-salon/l10n/es.json +9 -420
  25. package/templates/beauty-salon/l10n/fi.json +9 -420
  26. package/templates/beauty-salon/l10n/fr.json +9 -420
  27. package/templates/beauty-salon/l10n/he.json +9 -338
  28. package/templates/beauty-salon/l10n/hu.json +9 -420
  29. package/templates/beauty-salon/l10n/id.json +9 -420
  30. package/templates/beauty-salon/l10n/it.json +9 -420
  31. package/templates/beauty-salon/l10n/ja.json +9 -420
  32. package/templates/beauty-salon/l10n/ko.json +9 -420
  33. package/templates/beauty-salon/l10n/lt.json +9 -420
  34. package/templates/beauty-salon/l10n/nl.json +9 -420
  35. package/templates/beauty-salon/l10n/no.json +9 -420
  36. package/templates/beauty-salon/l10n/pl.json +9 -420
  37. package/templates/beauty-salon/l10n/pt.json +9 -420
  38. package/templates/beauty-salon/l10n/ru.json +9 -420
  39. package/templates/beauty-salon/l10n/sv.json +9 -420
  40. package/templates/beauty-salon/l10n/th.json +9 -420
  41. package/templates/beauty-salon/l10n/tr.json +9 -420
  42. package/templates/beauty-salon/l10n/uk.json +9 -420
  43. package/templates/beauty-salon/l10n/vi.json +9 -420
  44. package/templates/beauty-salon/l10n/zh.json +9 -420
  45. package/templates/branded-lite/l10n/ar.json +31 -140
  46. package/templates/branded-lite/l10n/cs.json +31 -140
  47. package/templates/branded-lite/l10n/da.json +31 -140
  48. package/templates/branded-lite/l10n/de.json +31 -140
  49. package/templates/branded-lite/l10n/el.json +31 -140
  50. package/templates/branded-lite/l10n/en.json +8 -6
  51. package/templates/branded-lite/l10n/es.json +31 -140
  52. package/templates/branded-lite/l10n/fi.json +31 -140
  53. package/templates/branded-lite/l10n/fr.json +31 -140
  54. package/templates/branded-lite/l10n/he.json +27 -112
  55. package/templates/branded-lite/l10n/hu.json +31 -140
  56. package/templates/branded-lite/l10n/id.json +31 -140
  57. package/templates/branded-lite/l10n/it.json +31 -140
  58. package/templates/branded-lite/l10n/ja.json +31 -140
  59. package/templates/branded-lite/l10n/ko.json +31 -140
  60. package/templates/branded-lite/l10n/lt.json +31 -140
  61. package/templates/branded-lite/l10n/nl.json +31 -140
  62. package/templates/branded-lite/l10n/no.json +31 -140
  63. package/templates/branded-lite/l10n/pl.json +31 -140
  64. package/templates/branded-lite/l10n/pt.json +31 -140
  65. package/templates/branded-lite/l10n/ru.json +31 -140
  66. package/templates/branded-lite/l10n/sv.json +31 -140
  67. package/templates/branded-lite/l10n/th.json +31 -140
  68. package/templates/branded-lite/l10n/tr.json +31 -140
  69. package/templates/branded-lite/l10n/uk.json +31 -140
  70. package/templates/branded-lite/l10n/vi.json +31 -140
  71. package/templates/branded-lite/l10n/zh.json +31 -140
  72. package/templates/branded-lite/recipes/blog-search.json +45 -0
  73. package/templates/{beauty-salon/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-carousel.json} +39 -118
  74. package/templates/{gym-fitness/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-list.json} +43 -121
  75. package/templates/{beauty-salon/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
  76. package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
  77. package/templates/{events-meetups/recipes/groups-list.json → branded-lite/recipes/services-list.json} +33 -9
  78. package/templates/{community-club/recipes/groups-list.json → branded-lite/recipes/subscriptions-list.json} +124 -60
  79. package/templates/branded-lite/recipes/upcoming-bookings.json +350 -0
  80. package/templates/branded-lite/recipes/videos-carousel.json +248 -0
  81. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +75 -21
  82. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +115 -0
  83. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +137 -0
  84. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -3
  85. package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +107 -0
  86. package/templates/branded-lite/tier5-src/_shared/plans-section.ts +11 -3
  87. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -0
  88. package/templates/branded-lite/tier5-src/_shared/services-section.ts +122 -0
  89. package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +102 -0
  90. package/templates/branded-lite/tier5-src/_shared/videos-section.ts +91 -0
  91. package/templates/branded-lite/tier5-src/himi-branded-lite-file-share/index.ts +8 -631
  92. package/templates/community-club/l10n/ar.json +0 -412
  93. package/templates/community-club/l10n/cs.json +0 -412
  94. package/templates/community-club/l10n/da.json +0 -412
  95. package/templates/community-club/l10n/de.json +0 -412
  96. package/templates/community-club/l10n/el.json +0 -412
  97. package/templates/community-club/l10n/en.json +1 -46
  98. package/templates/community-club/l10n/es.json +0 -412
  99. package/templates/community-club/l10n/fi.json +0 -412
  100. package/templates/community-club/l10n/fr.json +0 -412
  101. package/templates/community-club/l10n/he.json +0 -331
  102. package/templates/community-club/l10n/hu.json +0 -412
  103. package/templates/community-club/l10n/id.json +0 -412
  104. package/templates/community-club/l10n/it.json +0 -412
  105. package/templates/community-club/l10n/ja.json +0 -412
  106. package/templates/community-club/l10n/ko.json +0 -412
  107. package/templates/community-club/l10n/lt.json +0 -412
  108. package/templates/community-club/l10n/nl.json +0 -412
  109. package/templates/community-club/l10n/no.json +0 -412
  110. package/templates/community-club/l10n/pl.json +0 -412
  111. package/templates/community-club/l10n/pt.json +0 -412
  112. package/templates/community-club/l10n/ru.json +0 -412
  113. package/templates/community-club/l10n/sv.json +0 -412
  114. package/templates/community-club/l10n/th.json +0 -412
  115. package/templates/community-club/l10n/tr.json +0 -412
  116. package/templates/community-club/l10n/uk.json +0 -412
  117. package/templates/community-club/l10n/vi.json +0 -412
  118. package/templates/community-club/l10n/zh.json +0 -412
  119. package/templates/events-meetups/l10n/ar.json +0 -412
  120. package/templates/events-meetups/l10n/cs.json +0 -412
  121. package/templates/events-meetups/l10n/da.json +0 -412
  122. package/templates/events-meetups/l10n/de.json +0 -412
  123. package/templates/events-meetups/l10n/el.json +0 -412
  124. package/templates/events-meetups/l10n/en.json +1 -46
  125. package/templates/events-meetups/l10n/es.json +0 -412
  126. package/templates/events-meetups/l10n/fi.json +0 -412
  127. package/templates/events-meetups/l10n/fr.json +0 -412
  128. package/templates/events-meetups/l10n/he.json +0 -331
  129. package/templates/events-meetups/l10n/hu.json +0 -412
  130. package/templates/events-meetups/l10n/id.json +0 -412
  131. package/templates/events-meetups/l10n/it.json +0 -412
  132. package/templates/events-meetups/l10n/ja.json +0 -412
  133. package/templates/events-meetups/l10n/ko.json +0 -412
  134. package/templates/events-meetups/l10n/lt.json +0 -412
  135. package/templates/events-meetups/l10n/nl.json +0 -412
  136. package/templates/events-meetups/l10n/no.json +0 -412
  137. package/templates/events-meetups/l10n/pl.json +0 -412
  138. package/templates/events-meetups/l10n/pt.json +0 -412
  139. package/templates/events-meetups/l10n/ru.json +0 -412
  140. package/templates/events-meetups/l10n/sv.json +0 -412
  141. package/templates/events-meetups/l10n/th.json +0 -412
  142. package/templates/events-meetups/l10n/tr.json +0 -412
  143. package/templates/events-meetups/l10n/uk.json +0 -412
  144. package/templates/events-meetups/l10n/vi.json +0 -412
  145. package/templates/events-meetups/l10n/zh.json +0 -412
  146. package/templates/gym-fitness/l10n/ar.json +9 -405
  147. package/templates/gym-fitness/l10n/cs.json +9 -405
  148. package/templates/gym-fitness/l10n/da.json +9 -405
  149. package/templates/gym-fitness/l10n/de.json +9 -405
  150. package/templates/gym-fitness/l10n/el.json +9 -405
  151. package/templates/gym-fitness/l10n/en.json +8 -51
  152. package/templates/gym-fitness/l10n/es.json +9 -405
  153. package/templates/gym-fitness/l10n/fi.json +9 -405
  154. package/templates/gym-fitness/l10n/fr.json +9 -405
  155. package/templates/gym-fitness/l10n/he.json +9 -326
  156. package/templates/gym-fitness/l10n/hu.json +9 -405
  157. package/templates/gym-fitness/l10n/id.json +9 -405
  158. package/templates/gym-fitness/l10n/it.json +9 -405
  159. package/templates/gym-fitness/l10n/ja.json +9 -405
  160. package/templates/gym-fitness/l10n/ko.json +9 -405
  161. package/templates/gym-fitness/l10n/lt.json +9 -405
  162. package/templates/gym-fitness/l10n/nl.json +9 -405
  163. package/templates/gym-fitness/l10n/no.json +9 -405
  164. package/templates/gym-fitness/l10n/pl.json +9 -405
  165. package/templates/gym-fitness/l10n/pt.json +9 -405
  166. package/templates/gym-fitness/l10n/ru.json +9 -405
  167. package/templates/gym-fitness/l10n/sv.json +9 -405
  168. package/templates/gym-fitness/l10n/th.json +9 -405
  169. package/templates/gym-fitness/l10n/tr.json +9 -405
  170. package/templates/gym-fitness/l10n/uk.json +9 -405
  171. package/templates/gym-fitness/l10n/vi.json +9 -405
  172. package/templates/gym-fitness/l10n/zh.json +9 -405
  173. package/templates/nonprofit-cause/l10n/ar.json +0 -387
  174. package/templates/nonprofit-cause/l10n/cs.json +0 -387
  175. package/templates/nonprofit-cause/l10n/da.json +0 -387
  176. package/templates/nonprofit-cause/l10n/de.json +0 -387
  177. package/templates/nonprofit-cause/l10n/el.json +0 -387
  178. package/templates/nonprofit-cause/l10n/en.json +1 -46
  179. package/templates/nonprofit-cause/l10n/es.json +0 -387
  180. package/templates/nonprofit-cause/l10n/fi.json +0 -387
  181. package/templates/nonprofit-cause/l10n/fr.json +0 -387
  182. package/templates/nonprofit-cause/l10n/he.json +0 -311
  183. package/templates/nonprofit-cause/l10n/hu.json +0 -387
  184. package/templates/nonprofit-cause/l10n/id.json +0 -387
  185. package/templates/nonprofit-cause/l10n/it.json +0 -387
  186. package/templates/nonprofit-cause/l10n/ja.json +0 -387
  187. package/templates/nonprofit-cause/l10n/ko.json +0 -387
  188. package/templates/nonprofit-cause/l10n/lt.json +0 -387
  189. package/templates/nonprofit-cause/l10n/nl.json +0 -387
  190. package/templates/nonprofit-cause/l10n/no.json +0 -387
  191. package/templates/nonprofit-cause/l10n/pl.json +0 -387
  192. package/templates/nonprofit-cause/l10n/pt.json +0 -387
  193. package/templates/nonprofit-cause/l10n/ru.json +0 -387
  194. package/templates/nonprofit-cause/l10n/sv.json +0 -387
  195. package/templates/nonprofit-cause/l10n/th.json +0 -387
  196. package/templates/nonprofit-cause/l10n/tr.json +0 -387
  197. package/templates/nonprofit-cause/l10n/uk.json +0 -387
  198. package/templates/nonprofit-cause/l10n/vi.json +0 -387
  199. package/templates/nonprofit-cause/l10n/zh.json +0 -387
  200. package/templates/podcast-creator/l10n/ar.json +0 -417
  201. package/templates/podcast-creator/l10n/cs.json +0 -417
  202. package/templates/podcast-creator/l10n/da.json +0 -417
  203. package/templates/podcast-creator/l10n/de.json +0 -417
  204. package/templates/podcast-creator/l10n/el.json +0 -417
  205. package/templates/podcast-creator/l10n/en.json +1 -46
  206. package/templates/podcast-creator/l10n/es.json +0 -417
  207. package/templates/podcast-creator/l10n/fi.json +0 -417
  208. package/templates/podcast-creator/l10n/fr.json +0 -417
  209. package/templates/podcast-creator/l10n/he.json +0 -335
  210. package/templates/podcast-creator/l10n/hu.json +0 -417
  211. package/templates/podcast-creator/l10n/id.json +0 -417
  212. package/templates/podcast-creator/l10n/it.json +0 -417
  213. package/templates/podcast-creator/l10n/ja.json +0 -417
  214. package/templates/podcast-creator/l10n/ko.json +0 -417
  215. package/templates/podcast-creator/l10n/lt.json +0 -417
  216. package/templates/podcast-creator/l10n/nl.json +0 -417
  217. package/templates/podcast-creator/l10n/no.json +0 -417
  218. package/templates/podcast-creator/l10n/pl.json +0 -417
  219. package/templates/podcast-creator/l10n/pt.json +0 -417
  220. package/templates/podcast-creator/l10n/ru.json +0 -417
  221. package/templates/podcast-creator/l10n/sv.json +0 -417
  222. package/templates/podcast-creator/l10n/th.json +0 -417
  223. package/templates/podcast-creator/l10n/tr.json +0 -417
  224. package/templates/podcast-creator/l10n/uk.json +0 -417
  225. package/templates/podcast-creator/l10n/vi.json +0 -417
  226. package/templates/podcast-creator/l10n/zh.json +0 -417
  227. package/templates/portfolio-creative/l10n/ar.json +0 -437
  228. package/templates/portfolio-creative/l10n/cs.json +0 -437
  229. package/templates/portfolio-creative/l10n/da.json +0 -437
  230. package/templates/portfolio-creative/l10n/de.json +0 -437
  231. package/templates/portfolio-creative/l10n/el.json +0 -437
  232. package/templates/portfolio-creative/l10n/en.json +1 -46
  233. package/templates/portfolio-creative/l10n/es.json +0 -437
  234. package/templates/portfolio-creative/l10n/fi.json +0 -437
  235. package/templates/portfolio-creative/l10n/fr.json +0 -437
  236. package/templates/portfolio-creative/l10n/he.json +0 -351
  237. package/templates/portfolio-creative/l10n/hu.json +0 -437
  238. package/templates/portfolio-creative/l10n/id.json +0 -437
  239. package/templates/portfolio-creative/l10n/it.json +0 -437
  240. package/templates/portfolio-creative/l10n/ja.json +0 -437
  241. package/templates/portfolio-creative/l10n/ko.json +0 -437
  242. package/templates/portfolio-creative/l10n/lt.json +0 -437
  243. package/templates/portfolio-creative/l10n/nl.json +0 -437
  244. package/templates/portfolio-creative/l10n/no.json +0 -437
  245. package/templates/portfolio-creative/l10n/pl.json +0 -437
  246. package/templates/portfolio-creative/l10n/pt.json +0 -437
  247. package/templates/portfolio-creative/l10n/ru.json +0 -437
  248. package/templates/portfolio-creative/l10n/sv.json +0 -437
  249. package/templates/portfolio-creative/l10n/th.json +0 -437
  250. package/templates/portfolio-creative/l10n/tr.json +0 -437
  251. package/templates/portfolio-creative/l10n/uk.json +0 -437
  252. package/templates/portfolio-creative/l10n/vi.json +0 -437
  253. package/templates/portfolio-creative/l10n/zh.json +0 -437
  254. package/templates/restaurant/l10n/ar.json +0 -447
  255. package/templates/restaurant/l10n/cs.json +0 -447
  256. package/templates/restaurant/l10n/da.json +0 -447
  257. package/templates/restaurant/l10n/de.json +0 -447
  258. package/templates/restaurant/l10n/el.json +0 -447
  259. package/templates/restaurant/l10n/en.json +1 -46
  260. package/templates/restaurant/l10n/es.json +0 -447
  261. package/templates/restaurant/l10n/fi.json +0 -447
  262. package/templates/restaurant/l10n/fr.json +0 -447
  263. package/templates/restaurant/l10n/he.json +0 -359
  264. package/templates/restaurant/l10n/hu.json +0 -447
  265. package/templates/restaurant/l10n/id.json +0 -447
  266. package/templates/restaurant/l10n/it.json +0 -447
  267. package/templates/restaurant/l10n/ja.json +0 -447
  268. package/templates/restaurant/l10n/ko.json +0 -447
  269. package/templates/restaurant/l10n/lt.json +0 -447
  270. package/templates/restaurant/l10n/nl.json +0 -447
  271. package/templates/restaurant/l10n/no.json +0 -447
  272. package/templates/restaurant/l10n/pl.json +0 -447
  273. package/templates/restaurant/l10n/pt.json +0 -447
  274. package/templates/restaurant/l10n/ru.json +0 -447
  275. package/templates/restaurant/l10n/sv.json +0 -447
  276. package/templates/restaurant/l10n/th.json +0 -447
  277. package/templates/restaurant/l10n/tr.json +0 -447
  278. package/templates/restaurant/l10n/uk.json +0 -447
  279. package/templates/restaurant/l10n/vi.json +0 -447
  280. package/templates/restaurant/l10n/zh.json +0 -447
  281. package/templates/retail-store/l10n/ar.json +0 -462
  282. package/templates/retail-store/l10n/cs.json +0 -462
  283. package/templates/retail-store/l10n/da.json +0 -462
  284. package/templates/retail-store/l10n/de.json +0 -462
  285. package/templates/retail-store/l10n/el.json +0 -462
  286. package/templates/retail-store/l10n/en.json +1 -61
  287. package/templates/retail-store/l10n/es.json +0 -462
  288. package/templates/retail-store/l10n/fi.json +0 -462
  289. package/templates/retail-store/l10n/fr.json +0 -462
  290. package/templates/retail-store/l10n/he.json +0 -371
  291. package/templates/retail-store/l10n/hu.json +0 -462
  292. package/templates/retail-store/l10n/id.json +0 -462
  293. package/templates/retail-store/l10n/it.json +0 -462
  294. package/templates/retail-store/l10n/ja.json +0 -462
  295. package/templates/retail-store/l10n/ko.json +0 -462
  296. package/templates/retail-store/l10n/lt.json +0 -462
  297. package/templates/retail-store/l10n/nl.json +0 -462
  298. package/templates/retail-store/l10n/no.json +0 -462
  299. package/templates/retail-store/l10n/pl.json +0 -462
  300. package/templates/retail-store/l10n/pt.json +0 -462
  301. package/templates/retail-store/l10n/ru.json +0 -462
  302. package/templates/retail-store/l10n/sv.json +0 -462
  303. package/templates/retail-store/l10n/th.json +0 -462
  304. package/templates/retail-store/l10n/tr.json +0 -462
  305. package/templates/retail-store/l10n/uk.json +0 -462
  306. package/templates/retail-store/l10n/vi.json +0 -462
  307. package/templates/retail-store/l10n/zh.json +0 -462
  308. package/templates/yoga-studio/l10n/ar.json +9 -197
  309. package/templates/yoga-studio/l10n/cs.json +9 -197
  310. package/templates/yoga-studio/l10n/da.json +9 -197
  311. package/templates/yoga-studio/l10n/de.json +9 -197
  312. package/templates/yoga-studio/l10n/el.json +9 -197
  313. package/templates/yoga-studio/l10n/en.json +8 -30
  314. package/templates/yoga-studio/l10n/es.json +9 -197
  315. package/templates/yoga-studio/l10n/fi.json +9 -197
  316. package/templates/yoga-studio/l10n/fr.json +9 -197
  317. package/templates/yoga-studio/l10n/he.json +9 -159
  318. package/templates/yoga-studio/l10n/hu.json +9 -197
  319. package/templates/yoga-studio/l10n/id.json +9 -197
  320. package/templates/yoga-studio/l10n/it.json +9 -197
  321. package/templates/yoga-studio/l10n/ja.json +9 -197
  322. package/templates/yoga-studio/l10n/ko.json +9 -197
  323. package/templates/yoga-studio/l10n/lt.json +9 -197
  324. package/templates/yoga-studio/l10n/nl.json +9 -197
  325. package/templates/yoga-studio/l10n/no.json +9 -197
  326. package/templates/yoga-studio/l10n/pl.json +9 -197
  327. package/templates/yoga-studio/l10n/pt.json +9 -197
  328. package/templates/yoga-studio/l10n/ru.json +9 -197
  329. package/templates/yoga-studio/l10n/sv.json +9 -197
  330. package/templates/yoga-studio/l10n/th.json +9 -197
  331. package/templates/yoga-studio/l10n/tr.json +9 -197
  332. package/templates/yoga-studio/l10n/uk.json +9 -197
  333. package/templates/yoga-studio/l10n/vi.json +9 -197
  334. package/templates/yoga-studio/l10n/zh.json +9 -197
  335. package/templates/beauty-salon/recipes/announcement-card.json +0 -72
  336. package/templates/beauty-salon/recipes/blog-hero.json +0 -95
  337. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +0 -394
  338. package/templates/beauty-salon/recipes/blog-list.json +0 -394
  339. package/templates/beauty-salon/recipes/blog-see-all.json +0 -50
  340. package/templates/beauty-salon/recipes/events-inline.json +0 -309
  341. package/templates/beauty-salon/recipes/faq-list.json +0 -503
  342. package/templates/beauty-salon/recipes/groups-list.json +0 -196
  343. package/templates/beauty-salon/recipes/members-list.json +0 -445
  344. package/templates/beauty-salon/recipes/plans-card.json +0 -811
  345. package/templates/beauty-salon/recipes/products-carousel.json +0 -141
  346. package/templates/beauty-salon/recipes/products-grid.json +0 -143
  347. package/templates/beauty-salon/recipes/programs-card.json +0 -254
  348. package/templates/beauty-salon/recipes/programs-carousel.json +0 -234
  349. package/templates/beauty-salon/recipes/programs-filters.json +0 -94
  350. package/templates/beauty-salon/recipes/programs-see-all.json +0 -43
  351. package/templates/beauty-salon/recipes/section-error.json +0 -58
  352. package/templates/beauty-salon/tier5-src/_shared/announcement-section.ts +0 -122
  353. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +0 -207
  354. package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +0 -86
  355. package/templates/beauty-salon/tier5-src/_shared/events-card.ts +0 -33
  356. package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +0 -25
  357. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +0 -84
  358. package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +0 -405
  359. package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +0 -110
  360. package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +0 -34
  361. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +0 -175
  362. package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +0 -39
  363. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +0 -271
  364. package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +0 -87
  365. package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +0 -106
  366. package/templates/beauty-salon/tier5-src/_shared/products-section.ts +0 -76
  367. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +0 -16
  368. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +0 -740
  369. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +0 -21
  370. package/templates/branded-lite/tier5-src/_shared/wix-file-share.ts +0 -332
  371. package/templates/community-club/recipes/announcement-card.json +0 -72
  372. package/templates/community-club/recipes/blog-hero.json +0 -95
  373. package/templates/community-club/recipes/blog-list-thumb-start.json +0 -394
  374. package/templates/community-club/recipes/blog-list.json +0 -394
  375. package/templates/community-club/recipes/blog-see-all.json +0 -50
  376. package/templates/community-club/recipes/events-inline-list.json +0 -228
  377. package/templates/community-club/recipes/events-inline.json +0 -309
  378. package/templates/community-club/recipes/faq-list.json +0 -503
  379. package/templates/community-club/recipes/members-list.json +0 -445
  380. package/templates/community-club/recipes/plans-card.json +0 -811
  381. package/templates/community-club/recipes/products-carousel.json +0 -141
  382. package/templates/community-club/recipes/products-grid.json +0 -143
  383. package/templates/community-club/recipes/programs-card.json +0 -254
  384. package/templates/community-club/recipes/programs-carousel.json +0 -234
  385. package/templates/community-club/recipes/programs-filters.json +0 -94
  386. package/templates/community-club/recipes/programs-participant-carousel.json +0 -257
  387. package/templates/community-club/recipes/programs-see-all.json +0 -43
  388. package/templates/community-club/recipes/section-error.json +0 -58
  389. package/templates/community-club/tier5-src/_shared/announcement-section.ts +0 -122
  390. package/templates/community-club/tier5-src/_shared/blog-list.ts +0 -207
  391. package/templates/community-club/tier5-src/_shared/detail-presence.ts +0 -51
  392. package/templates/community-club/tier5-src/_shared/events-card.ts +0 -33
  393. package/templates/community-club/tier5-src/_shared/events-inline-options.ts +0 -25
  394. package/templates/community-club/tier5-src/_shared/events-inline.ts +0 -84
  395. package/templates/community-club/tier5-src/_shared/faq-list.ts +0 -405
  396. package/templates/community-club/tier5-src/_shared/groups-section.ts +0 -110
  397. package/templates/community-club/tier5-src/_shared/member-activity.ts +0 -34
  398. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +0 -175
  399. package/templates/community-club/tier5-src/_shared/members-directory-view.ts +0 -39
  400. package/templates/community-club/tier5-src/_shared/members-directory.ts +0 -271
  401. package/templates/community-club/tier5-src/_shared/plan-facts.ts +0 -87
  402. package/templates/community-club/tier5-src/_shared/plans-section.ts +0 -106
  403. package/templates/community-club/tier5-src/_shared/products-section.ts +0 -76
  404. package/templates/community-club/tier5-src/_shared/program-fields.ts +0 -16
  405. package/templates/community-club/tier5-src/_shared/programs-section.ts +0 -740
  406. package/templates/community-club/tier5-src/_shared/relative-time.ts +0 -21
  407. package/templates/events-meetups/recipes/announcement-card.json +0 -72
  408. package/templates/events-meetups/recipes/blog-hero.json +0 -95
  409. package/templates/events-meetups/recipes/blog-list-thumb-start.json +0 -394
  410. package/templates/events-meetups/recipes/blog-list.json +0 -394
  411. package/templates/events-meetups/recipes/blog-see-all.json +0 -50
  412. package/templates/events-meetups/recipes/events-inline-list.json +0 -228
  413. package/templates/events-meetups/recipes/events-inline.json +0 -309
  414. package/templates/events-meetups/recipes/faq-list.json +0 -503
  415. package/templates/events-meetups/recipes/members-list.json +0 -445
  416. package/templates/events-meetups/recipes/plans-card.json +0 -811
  417. package/templates/events-meetups/recipes/products-carousel.json +0 -141
  418. package/templates/events-meetups/recipes/products-grid.json +0 -143
  419. package/templates/events-meetups/recipes/programs-card.json +0 -254
  420. package/templates/events-meetups/recipes/programs-carousel.json +0 -234
  421. package/templates/events-meetups/recipes/programs-filters.json +0 -94
  422. package/templates/events-meetups/recipes/programs-see-all.json +0 -43
  423. package/templates/events-meetups/recipes/section-error.json +0 -58
  424. package/templates/events-meetups/tier5-src/_shared/announcement-section.ts +0 -122
  425. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +0 -207
  426. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +0 -51
  427. package/templates/events-meetups/tier5-src/_shared/events-card.ts +0 -33
  428. package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +0 -25
  429. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +0 -84
  430. package/templates/events-meetups/tier5-src/_shared/faq-list.ts +0 -405
  431. package/templates/events-meetups/tier5-src/_shared/groups-section.ts +0 -110
  432. package/templates/events-meetups/tier5-src/_shared/member-activity.ts +0 -34
  433. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +0 -175
  434. package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +0 -39
  435. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +0 -271
  436. package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +0 -87
  437. package/templates/events-meetups/tier5-src/_shared/plans-section.ts +0 -106
  438. package/templates/events-meetups/tier5-src/_shared/products-section.ts +0 -76
  439. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +0 -16
  440. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +0 -740
  441. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +0 -21
  442. package/templates/gym-fitness/recipes/announcement-card.json +0 -72
  443. package/templates/gym-fitness/recipes/blog-hero.json +0 -95
  444. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +0 -394
  445. package/templates/gym-fitness/recipes/blog-list.json +0 -394
  446. package/templates/gym-fitness/recipes/blog-see-all.json +0 -50
  447. package/templates/gym-fitness/recipes/events-inline-list.json +0 -228
  448. package/templates/gym-fitness/recipes/events-inline.json +0 -309
  449. package/templates/gym-fitness/recipes/faq-list.json +0 -503
  450. package/templates/gym-fitness/recipes/groups-list.json +0 -196
  451. package/templates/gym-fitness/recipes/members-list.json +0 -445
  452. package/templates/gym-fitness/recipes/plans-card.json +0 -811
  453. package/templates/gym-fitness/recipes/products-carousel.json +0 -141
  454. package/templates/gym-fitness/recipes/products-grid.json +0 -143
  455. package/templates/gym-fitness/recipes/programs-card.json +0 -254
  456. package/templates/gym-fitness/recipes/programs-carousel.json +0 -234
  457. package/templates/gym-fitness/recipes/programs-filters.json +0 -94
  458. package/templates/gym-fitness/recipes/programs-see-all.json +0 -43
  459. package/templates/gym-fitness/recipes/section-error.json +0 -58
  460. package/templates/gym-fitness/tier5-src/_shared/announcement-section.ts +0 -122
  461. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +0 -207
  462. package/templates/gym-fitness/tier5-src/_shared/events-card.ts +0 -33
  463. package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +0 -25
  464. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +0 -84
  465. package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +0 -405
  466. package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +0 -110
  467. package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +0 -34
  468. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +0 -175
  469. package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +0 -39
  470. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +0 -271
  471. package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +0 -87
  472. package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +0 -106
  473. package/templates/gym-fitness/tier5-src/_shared/products-section.ts +0 -76
  474. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +0 -16
  475. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +0 -740
  476. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +0 -21
  477. package/templates/nonprofit-cause/recipes/announcement-card.json +0 -72
  478. package/templates/nonprofit-cause/recipes/blog-hero.json +0 -95
  479. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +0 -394
  480. package/templates/nonprofit-cause/recipes/blog-list.json +0 -394
  481. package/templates/nonprofit-cause/recipes/blog-see-all.json +0 -50
  482. package/templates/nonprofit-cause/recipes/events-inline-list.json +0 -228
  483. package/templates/nonprofit-cause/recipes/events-inline.json +0 -309
  484. package/templates/nonprofit-cause/recipes/faq-list.json +0 -503
  485. package/templates/nonprofit-cause/recipes/groups-list.json +0 -196
  486. package/templates/nonprofit-cause/recipes/members-list.json +0 -445
  487. package/templates/nonprofit-cause/recipes/plans-card.json +0 -811
  488. package/templates/nonprofit-cause/recipes/products-carousel.json +0 -141
  489. package/templates/nonprofit-cause/recipes/products-grid.json +0 -143
  490. package/templates/nonprofit-cause/recipes/programs-card.json +0 -254
  491. package/templates/nonprofit-cause/recipes/programs-carousel.json +0 -234
  492. package/templates/nonprofit-cause/recipes/programs-filters.json +0 -94
  493. package/templates/nonprofit-cause/recipes/programs-participant-carousel.json +0 -257
  494. package/templates/nonprofit-cause/recipes/programs-see-all.json +0 -43
  495. package/templates/nonprofit-cause/recipes/section-error.json +0 -58
  496. package/templates/nonprofit-cause/tier5-src/_shared/announcement-section.ts +0 -122
  497. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +0 -207
  498. package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +0 -33
  499. package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +0 -25
  500. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +0 -84
  501. package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +0 -405
  502. package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +0 -110
  503. package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +0 -34
  504. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +0 -175
  505. package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +0 -39
  506. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +0 -271
  507. package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +0 -87
  508. package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +0 -106
  509. package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +0 -76
  510. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +0 -16
  511. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +0 -740
  512. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +0 -21
  513. package/templates/podcast-creator/recipes/announcement-card.json +0 -72
  514. package/templates/podcast-creator/recipes/blog-hero.json +0 -95
  515. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +0 -394
  516. package/templates/podcast-creator/recipes/blog-list.json +0 -394
  517. package/templates/podcast-creator/recipes/blog-see-all.json +0 -50
  518. package/templates/podcast-creator/recipes/events-inline-list.json +0 -228
  519. package/templates/podcast-creator/recipes/events-inline.json +0 -309
  520. package/templates/podcast-creator/recipes/faq-list.json +0 -503
  521. package/templates/podcast-creator/recipes/groups-list.json +0 -196
  522. package/templates/podcast-creator/recipes/members-list.json +0 -445
  523. package/templates/podcast-creator/recipes/plans-card.json +0 -811
  524. package/templates/podcast-creator/recipes/products-carousel.json +0 -141
  525. package/templates/podcast-creator/recipes/products-grid.json +0 -143
  526. package/templates/podcast-creator/recipes/programs-card.json +0 -254
  527. package/templates/podcast-creator/recipes/programs-carousel.json +0 -234
  528. package/templates/podcast-creator/recipes/programs-filters.json +0 -94
  529. package/templates/podcast-creator/recipes/programs-participant-carousel.json +0 -257
  530. package/templates/podcast-creator/recipes/programs-see-all.json +0 -43
  531. package/templates/podcast-creator/recipes/section-error.json +0 -58
  532. package/templates/podcast-creator/tier5-src/_shared/announcement-section.ts +0 -122
  533. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +0 -207
  534. package/templates/podcast-creator/tier5-src/_shared/events-card.ts +0 -33
  535. package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +0 -25
  536. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +0 -84
  537. package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +0 -405
  538. package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +0 -110
  539. package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +0 -34
  540. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +0 -175
  541. package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +0 -39
  542. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +0 -271
  543. package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +0 -87
  544. package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +0 -106
  545. package/templates/podcast-creator/tier5-src/_shared/products-section.ts +0 -76
  546. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +0 -16
  547. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +0 -740
  548. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +0 -21
  549. package/templates/portfolio-creative/recipes/announcement-card.json +0 -72
  550. package/templates/portfolio-creative/recipes/blog-hero.json +0 -95
  551. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +0 -394
  552. package/templates/portfolio-creative/recipes/blog-list.json +0 -394
  553. package/templates/portfolio-creative/recipes/blog-see-all.json +0 -50
  554. package/templates/portfolio-creative/recipes/events-inline-list.json +0 -228
  555. package/templates/portfolio-creative/recipes/events-inline.json +0 -309
  556. package/templates/portfolio-creative/recipes/faq-list.json +0 -503
  557. package/templates/portfolio-creative/recipes/groups-list.json +0 -196
  558. package/templates/portfolio-creative/recipes/members-list.json +0 -445
  559. package/templates/portfolio-creative/recipes/plans-card.json +0 -811
  560. package/templates/portfolio-creative/recipes/products-carousel.json +0 -141
  561. package/templates/portfolio-creative/recipes/products-grid.json +0 -143
  562. package/templates/portfolio-creative/recipes/programs-card.json +0 -254
  563. package/templates/portfolio-creative/recipes/programs-carousel.json +0 -234
  564. package/templates/portfolio-creative/recipes/programs-filters.json +0 -94
  565. package/templates/portfolio-creative/recipes/programs-participant-carousel.json +0 -257
  566. package/templates/portfolio-creative/recipes/programs-see-all.json +0 -43
  567. package/templates/portfolio-creative/recipes/section-error.json +0 -58
  568. package/templates/portfolio-creative/tier5-src/_shared/announcement-section.ts +0 -122
  569. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +0 -207
  570. package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +0 -33
  571. package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +0 -25
  572. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +0 -84
  573. package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +0 -405
  574. package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +0 -110
  575. package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +0 -34
  576. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +0 -175
  577. package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +0 -39
  578. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +0 -271
  579. package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +0 -87
  580. package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +0 -106
  581. package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +0 -76
  582. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +0 -16
  583. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +0 -740
  584. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +0 -21
  585. package/templates/restaurant/recipes/announcement-card.json +0 -72
  586. package/templates/restaurant/recipes/blog-hero.json +0 -95
  587. package/templates/restaurant/recipes/blog-list-thumb-start.json +0 -394
  588. package/templates/restaurant/recipes/blog-list.json +0 -394
  589. package/templates/restaurant/recipes/blog-see-all.json +0 -50
  590. package/templates/restaurant/recipes/events-inline-list.json +0 -228
  591. package/templates/restaurant/recipes/events-inline.json +0 -309
  592. package/templates/restaurant/recipes/faq-list.json +0 -503
  593. package/templates/restaurant/recipes/groups-list.json +0 -196
  594. package/templates/restaurant/recipes/members-list.json +0 -445
  595. package/templates/restaurant/recipes/plans-card.json +0 -811
  596. package/templates/restaurant/recipes/products-carousel.json +0 -141
  597. package/templates/restaurant/recipes/products-grid.json +0 -143
  598. package/templates/restaurant/recipes/programs-card.json +0 -254
  599. package/templates/restaurant/recipes/programs-carousel.json +0 -234
  600. package/templates/restaurant/recipes/programs-filters.json +0 -94
  601. package/templates/restaurant/recipes/programs-participant-carousel.json +0 -257
  602. package/templates/restaurant/recipes/programs-see-all.json +0 -43
  603. package/templates/restaurant/recipes/section-error.json +0 -58
  604. package/templates/restaurant/tier5-src/_shared/announcement-section.ts +0 -122
  605. package/templates/restaurant/tier5-src/_shared/blog-list.ts +0 -207
  606. package/templates/restaurant/tier5-src/_shared/events-card.ts +0 -33
  607. package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +0 -25
  608. package/templates/restaurant/tier5-src/_shared/events-inline.ts +0 -84
  609. package/templates/restaurant/tier5-src/_shared/faq-list.ts +0 -405
  610. package/templates/restaurant/tier5-src/_shared/groups-section.ts +0 -110
  611. package/templates/restaurant/tier5-src/_shared/member-activity.ts +0 -34
  612. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +0 -175
  613. package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +0 -39
  614. package/templates/restaurant/tier5-src/_shared/members-directory.ts +0 -271
  615. package/templates/restaurant/tier5-src/_shared/plan-facts.ts +0 -87
  616. package/templates/restaurant/tier5-src/_shared/plans-section.ts +0 -106
  617. package/templates/restaurant/tier5-src/_shared/products-section.ts +0 -76
  618. package/templates/restaurant/tier5-src/_shared/program-fields.ts +0 -16
  619. package/templates/restaurant/tier5-src/_shared/programs-section.ts +0 -740
  620. package/templates/restaurant/tier5-src/_shared/relative-time.ts +0 -21
  621. package/templates/retail-store/recipes/announcement-card.json +0 -72
  622. package/templates/retail-store/recipes/blog-hero.json +0 -95
  623. package/templates/retail-store/recipes/blog-list-thumb-start.json +0 -394
  624. package/templates/retail-store/recipes/blog-list.json +0 -394
  625. package/templates/retail-store/recipes/blog-see-all.json +0 -50
  626. package/templates/retail-store/recipes/events-inline-list.json +0 -228
  627. package/templates/retail-store/recipes/events-inline.json +0 -309
  628. package/templates/retail-store/recipes/faq-list.json +0 -503
  629. package/templates/retail-store/recipes/groups-list.json +0 -196
  630. package/templates/retail-store/recipes/members-list.json +0 -445
  631. package/templates/retail-store/recipes/plans-card.json +0 -811
  632. package/templates/retail-store/recipes/products-carousel.json +0 -141
  633. package/templates/retail-store/recipes/products-grid.json +0 -143
  634. package/templates/retail-store/recipes/programs-card.json +0 -254
  635. package/templates/retail-store/recipes/programs-carousel.json +0 -234
  636. package/templates/retail-store/recipes/programs-filters.json +0 -94
  637. package/templates/retail-store/recipes/programs-participant-carousel.json +0 -257
  638. package/templates/retail-store/recipes/programs-see-all.json +0 -43
  639. package/templates/retail-store/recipes/section-error.json +0 -58
  640. package/templates/retail-store/tier5-src/_shared/announcement-section.ts +0 -122
  641. package/templates/retail-store/tier5-src/_shared/blog-list.ts +0 -207
  642. package/templates/retail-store/tier5-src/_shared/event-registration.ts +0 -86
  643. package/templates/retail-store/tier5-src/_shared/events-card.ts +0 -33
  644. package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +0 -25
  645. package/templates/retail-store/tier5-src/_shared/events-inline.ts +0 -84
  646. package/templates/retail-store/tier5-src/_shared/faq-list.ts +0 -405
  647. package/templates/retail-store/tier5-src/_shared/groups-section.ts +0 -110
  648. package/templates/retail-store/tier5-src/_shared/member-activity.ts +0 -34
  649. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +0 -175
  650. package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +0 -39
  651. package/templates/retail-store/tier5-src/_shared/members-directory.ts +0 -271
  652. package/templates/retail-store/tier5-src/_shared/plan-facts.ts +0 -87
  653. package/templates/retail-store/tier5-src/_shared/plans-section.ts +0 -106
  654. package/templates/retail-store/tier5-src/_shared/products-section.ts +0 -76
  655. package/templates/retail-store/tier5-src/_shared/program-fields.ts +0 -16
  656. package/templates/retail-store/tier5-src/_shared/programs-section.ts +0 -740
  657. package/templates/retail-store/tier5-src/_shared/relative-time.ts +0 -21
  658. package/templates/yoga-studio/recipes/announcement-card.json +0 -72
  659. package/templates/yoga-studio/recipes/blog-hero.json +0 -95
  660. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +0 -394
  661. package/templates/yoga-studio/recipes/blog-list.json +0 -394
  662. package/templates/yoga-studio/recipes/blog-see-all.json +0 -50
  663. package/templates/yoga-studio/recipes/events-inline-list.json +0 -228
  664. package/templates/yoga-studio/recipes/events-inline.json +0 -309
  665. package/templates/yoga-studio/recipes/faq-list.json +0 -503
  666. package/templates/yoga-studio/recipes/groups-list.json +0 -196
  667. package/templates/yoga-studio/recipes/members-list.json +0 -445
  668. package/templates/yoga-studio/recipes/plans-card.json +0 -811
  669. package/templates/yoga-studio/recipes/products-carousel.json +0 -141
  670. package/templates/yoga-studio/recipes/products-grid.json +0 -143
  671. package/templates/yoga-studio/recipes/programs-card.json +0 -254
  672. package/templates/yoga-studio/recipes/programs-carousel.json +0 -234
  673. package/templates/yoga-studio/recipes/programs-filters.json +0 -94
  674. package/templates/yoga-studio/recipes/programs-participant-carousel.json +0 -257
  675. package/templates/yoga-studio/recipes/programs-see-all.json +0 -43
  676. package/templates/yoga-studio/recipes/section-error.json +0 -58
  677. package/templates/yoga-studio/tier5-src/_shared/announcement-section.ts +0 -122
  678. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +0 -207
  679. package/templates/yoga-studio/tier5-src/_shared/events-card.ts +0 -33
  680. package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +0 -25
  681. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +0 -84
  682. package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +0 -405
  683. package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +0 -110
  684. package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +0 -34
  685. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +0 -175
  686. package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +0 -39
  687. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +0 -271
  688. package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +0 -87
  689. package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +0 -106
  690. package/templates/yoga-studio/tier5-src/_shared/products-section.ts +0 -76
  691. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +0 -16
  692. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +0 -740
  693. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +0 -21
@@ -1,58 +0,0 @@
1
- {
2
- "_recipe": "A section's failed read: a message and a retry button, shown only while the service is in its error state. ONE node. Placed beside a section recipe whose list hides on `noRows`, so a failure never leaves a blank section. Service: any section module that publishes `notErrored` and the action named by `action`.",
3
- "_placeholders": {
4
- "svc": "service name the page worker registered",
5
- "id": "unique node id prefix for this section",
6
- "action": "the service action that reads again: load, or retry"
7
- },
8
- "node": {
9
- "id": "{{id}}.error",
10
- "body": {
11
- "package": "himalaya",
12
- "type": "VStack",
13
- "props": {
14
- "spacing": 8,
15
- "alignment": "leading",
16
- "children": [
17
- {
18
- "id": "{{id}}.error.text",
19
- "body": {
20
- "package": "himalaya",
21
- "type": "Text",
22
- "props": {
23
- "text": "This couldn't be loaded. Check your connection and try again.",
24
- "style": "body",
25
- "color": "textSecondary"
26
- }
27
- }
28
- },
29
- {
30
- "id": "{{id}}.error.retry",
31
- "body": {
32
- "package": "himalaya",
33
- "type": "Button",
34
- "props": {
35
- "title": "Try again",
36
- "style": "secondary",
37
- "size": "md",
38
- "action": {
39
- "actionId": "tier5.{{svc}}.{{action}}",
40
- "params": {}
41
- }
42
- }
43
- }
44
- }
45
- ]
46
- }
47
- },
48
- "modifiers": {
49
- "hiddenPath": "$service:{{svc}}.notErrored",
50
- "padding": {
51
- "leading": 0,
52
- "trailing": 0,
53
- "top": 0,
54
- "bottom": 0
55
- }
56
- }
57
- }
58
- }
@@ -1,122 +0,0 @@
1
- // The INLINE announcement section: the business's latest announcement, read at RUNTIME (never baked at migration time) and
2
- // shown next to other sections. It is the call the native Branded app's announcement section makes
3
- // (wix-one-app-member-view, Announcement/serverApiService.ts `fetchLatestAnnouncement`): one GET of the latest announcement with the
4
- // app's own signed instance (Member when signed in, else Visitor), which the `wixApi` bridge attaches.
5
- //
6
- // READ-ONLY, ALWAYS: `includeReaderData` stays false (true needs the One App manage permission and answers 403), and nothing here
7
- // ever marks an announcement as seen (`AddCurrentMemberAsReader` is a write). Known server behaviour, shared with the native app: a
8
- // site that has no announcement yet gets its default welcome text saved once, by this very read.
9
- // A phone sends the signed instance to this URL only because the native hosts (Android and Swift `WixApiCapability`) allow exactly this
10
- // GET (host, path, method and the reader-data-off query) for the consumer providers; a build without that entry refuses the read and the
11
- // section shows nothing. The local web preview has no such list.
12
- // The `announcement-card` recipe is the card that reads it, bound as `$service:<serviceName>.*`.
13
- import { defineService } from "@himalaya/state";
14
- import { richBody } from "./rich-body.js";
15
- import { formatDateMedium } from "./engine-intl.js";
16
- import { openRichLink } from "./rich-content-link.js";
17
-
18
- /** The one call: the latest announcement, without the reader data. */
19
- export const LATEST_ANNOUNCEMENT_URL = "https://manage.wix.com/_api/mobile-apps-announcements/v1/announcements/latest?includeReaderData=false";
20
-
21
- interface LatestAnnouncementResponse {
22
- announcement?: {
23
- title?: unknown;
24
- /** The announcement's content: a DraftJS raw state for announcements written in the app, or a Ricos document (as a Struct). */
25
- content?: unknown;
26
- createdDate?: unknown;
27
- creatorMemberProfileData?: { nickname?: unknown; imageUrl?: unknown };
28
- };
29
- }
30
-
31
- export interface AnnouncementState {
32
- status: "loading" | "ready" | "error";
33
- hasAnnouncement: boolean; noAnnouncement: boolean;
34
- title: string; noTitle: boolean;
35
- /** The rich body as one document string (RichContent draws nothing for ""), and its plain text, shown when there is no document. */
36
- bodyJson: string; hasBodyJson: boolean; noBodyJson: boolean;
37
- body: string; noBody: boolean;
38
- created: string; noCreated: boolean;
39
- creator: string; noCreator: boolean;
40
- creatorImage: string; noCreatorImage: boolean;
41
- isLoading: boolean; notLoading: boolean;
42
- isErrored: boolean; notErrored: boolean;
43
- }
44
-
45
- const text = (value: unknown): string => (typeof value === "string" ? value.trim() : "");
46
-
47
- /** The plain text of a DraftJS raw state (`{ blocks: [{ text }], entityMap }`), which is what the service's `content` really is for
48
- * announcements written in the app (observed on a live site, 2026-11-11), or undefined when `content` is not one. Only the blocks' own
49
- * text is read: the entity map (links, images) is never followed. */
50
- function draftPlainText(content: unknown): string | undefined {
51
- let doc = content;
52
- if (typeof doc === "string") { try { doc = JSON.parse(doc); } catch { return undefined; } }
53
- const blocks = (doc as { blocks?: unknown } | null | undefined)?.blocks;
54
- if (!Array.isArray(blocks)) return undefined;
55
- return blocks.map((block) => text((block as { text?: unknown } | null)?.text)).filter(Boolean).join("\n\n");
56
- }
57
-
58
- function derive(status: AnnouncementState["status"], fields: { title?: string; bodyJson?: string; body?: string; created?: string; creator?: string; creatorImage?: string } = {}): AnnouncementState {
59
- const title = fields.title ?? "", bodyJson = fields.bodyJson ?? "", body = fields.body ?? "", created = fields.created ?? "";
60
- const creator = fields.creator ?? "", creatorImage = fields.creatorImage ?? "";
61
- const hasAnnouncement = status === "ready" && !!(title || bodyJson || body);
62
- return {
63
- status, hasAnnouncement, noAnnouncement: !hasAnnouncement,
64
- title, noTitle: !title,
65
- bodyJson, hasBodyJson: !!bodyJson, noBodyJson: !bodyJson,
66
- body, noBody: !body,
67
- created, noCreated: !created,
68
- creator, noCreator: !creator,
69
- creatorImage, noCreatorImage: !creatorImage,
70
- isLoading: status === "loading", notLoading: status !== "loading",
71
- isErrored: status === "error", notErrored: status !== "error",
72
- };
73
- }
74
-
75
- /** The state for a latest-announcement response: an empty or missing announcement shows nothing, never a placeholder. */
76
- export function announcementState(response: unknown): AnnouncementState {
77
- const announcement = (response as LatestAnnouncementResponse | undefined)?.announcement;
78
- if (!announcement || typeof announcement !== "object") return derive("ready");
79
- // A DraftJS body shows as its plain text; a Ricos body keeps its rich document.
80
- const draft = draftPlainText(announcement.content);
81
- const rich = draft !== undefined ? { bodyJson: "", bodyText: draft } : richBody(announcement.content);
82
- const when = typeof announcement.createdDate === "string" ? new Date(announcement.createdDate) : undefined;
83
- const image = text(announcement.creatorMemberProfileData?.imageUrl);
84
- return derive("ready", {
85
- title: text(announcement.title),
86
- bodyJson: rich.bodyJson, body: rich.bodyText,
87
- created: when && !Number.isNaN(when.getTime()) ? formatDateMedium(when) : "",
88
- creator: text(announcement.creatorMemberProfileData?.nickname),
89
- // An avatar is shown only from an https URL.
90
- creatorImage: /^https:\/\//i.test(image) ? image : "",
91
- });
92
- }
93
-
94
- /** `options` is the generator's uniform second argument; the section has no settings of its own, so nothing is read from it. */
95
- export function registerAnnouncementSection(serviceName: string, _options: object = {}) {
96
- // The failure path reads the CURRENT state, not the snapshot the call began with: a refresh that fails after another load already
97
- // showed an announcement must not erase it.
98
- let current: () => AnnouncementState = () => derive("loading");
99
- const handle = defineService<AnnouncementState, { load: (state: AnnouncementState) => Promise<AnnouncementState>; openLink: (state: AnnouncementState, arg?: unknown) => Promise<AnnouncementState> }>(serviceName, {
100
- state: derive("loading"),
101
- actions: {
102
- load: async () => {
103
- // A failed refresh (offline, a 5xx) keeps an announcement that is already showing: only a screen with nothing to show goes to error.
104
- const failed = (): AnnouncementState => { const now = current(); return now.hasAnnouncement ? now : derive("error"); };
105
- try {
106
- const api = (globalThis as { himalaya?: { wixApi?: { call: (method: string, path: string) => Promise<unknown> } } }).himalaya?.wixApi;
107
- if (!api) return failed();
108
- return announcementState(await api.call("GET", LATEST_ANNOUNCEMENT_URL));
109
- } catch {
110
- return failed();
111
- }
112
- },
113
- // A link tapped inside the rich body: only http(s), mailto and tel links open (the shared rich-link rule).
114
- openLink: async (state, arg) => {
115
- await openRichLink(arg);
116
- return state;
117
- },
118
- },
119
- });
120
- current = () => handle.getState() as AnnouncementState;
121
- return handle;
122
- }
@@ -1,207 +0,0 @@
1
- // A blog post list as a registrable service: the One App compact post list, driven by the source section's settings.
2
- // limit unset -> follow the page cursor to the last post; limit N -> N posts and a "See All" for the same category,
3
- // show.{author,date,readingTime,likes,views,comments} -> exactly what the section's displayOptions enable,
4
- // relativeTime -> "2 hours ago" instead of the date,
5
- // countOrder -> the icon counts in the source's order (default likes, views, comments).
6
- // A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe blog-post-row.json).
7
- import { defineService as register } from "@himalaya/state";
8
- import { queryPosts, type WixPost, type WixQueryPostsRequest } from "@himalaya/wix-blog";
9
- import { getPublicMember } from "@himalaya/wix-members";
10
- import { stashCopy, copyParam, copyPlural } from "./himi-copy.js";
11
- import { formatDateMedium, formatNumber } from "./engine-intl.js";
12
- import { relativeTime } from "./relative-time.js";
13
- import { coverOf } from "./himi-blog-post-row.js";
14
-
15
- export type CountKey = "likes" | "views" | "comments";
16
- const COUNT_KEYS: readonly CountKey[] = ["likes", "views", "comments"];
17
- const ICON: Record<CountKey, string> = { likes: "heart", views: "eye", comments: "message" };
18
-
19
- export interface BlogListOptions {
20
- categoryId?: string;
21
- /** Posts shown; unset follows the cursor to the last post. */
22
- limit?: number;
23
- show: { author?: boolean; cover?: boolean; date?: boolean; readingTime?: boolean; likes?: boolean; views?: boolean; comments?: boolean };
24
- relativeTime?: boolean;
25
- countOrder?: CountKey[];
26
- /** The post screen a row opens. */
27
- detailScreenId?: string;
28
- }
29
-
30
- export interface Count { key: CountKey; icon: string; value: number; text: string }
31
- interface CountSlot { Icon: string; Text: string; Num: string; has: boolean; no: boolean }
32
-
33
- export interface BlogRow {
34
- id: string; title: string; cover: string; hasCover: boolean; noCover: boolean; initial: string;
35
- /** Time and reading time ("2 hours ago · 4 min read"). */
36
- meta: string; hasMeta: boolean; noMeta: boolean;
37
- authorName: string; hasAuthor: boolean; noAuthor: boolean;
38
- counts: Count[]; hasCounts: boolean; noCounts: boolean;
39
- count1Icon: string; count1Text: string; count1Num: string; hasCount1: boolean; noCount1: boolean;
40
- count2Icon: string; count2Text: string; count2Num: string; hasCount2: boolean; noCount2: boolean;
41
- count3Icon: string; count3Text: string; count3Num: string; hasCount3: boolean; noCount3: boolean;
42
- detailScreenId: string;
43
- }
44
-
45
- export interface BlogListState {
46
- status: "loading" | "ready" | "error";
47
- rows: BlogRow[];
48
- /** Offset of the next page as a string; "" once the last post has loaded (scroll load-more). */
49
- nextCursor: string;
50
- loadingMore: boolean;
51
- total: number;
52
- notLoading: boolean; notErrored: boolean; noRows: boolean; notEmpty: boolean; noSeeAll: boolean;
53
- }
54
-
55
- /** The METRICS fieldset names, across the post DTO versions. */
56
- type Post = WixPost & {
57
- metrics?: { likes?: number; comments?: number; views?: number; likeCount?: number; totalComments?: number; commentCount?: number; viewCount?: number };
58
- memberId?: string;
59
- };
60
-
61
- const PAGE = 20;
62
- /** The most posts one query returns. A limited list asks for its whole count at once, up to this. */
63
- const MAX_PAGE = 100;
64
- const SLOTS = 3;
65
-
66
- function metric(post: Post, key: CountKey): number | undefined {
67
- const m = post.metrics ?? {};
68
- const value = key === "likes" ? m.likes ?? m.likeCount : key === "views" ? m.views ?? m.viewCount : m.comments ?? m.totalComments ?? m.commentCount;
69
- return typeof value === "number" ? value : undefined;
70
- }
71
-
72
- function countText(key: CountKey, value: number): string {
73
- return key === "likes" ? copyPlural("blogList.likesCount", "{n, plural, one {# like} other {# likes}}", value)
74
- : key === "views" ? copyPlural("blogList.viewsCount", "{n, plural, one {# view} other {# views}}", value)
75
- : copyPlural("blogList.commentsCount", "{n, plural, one {# comment} other {# comments}}", value);
76
- }
77
-
78
- /** The icon counts a section shows, in `order`. A count the API did not return is unknown, not zero: it is left out. */
79
- export function countsOf(post: Post, show: BlogListOptions["show"], order: readonly CountKey[]): Count[] {
80
- const out: Count[] = [];
81
- for (const key of order) {
82
- if (!show[key]) continue;
83
- const value = metric(post, key);
84
- if (value !== undefined) out.push({ key, icon: ICON[key], value, text: countText(key, value) });
85
- }
86
- return out;
87
- }
88
-
89
- const slotOf = (counts: Count[], index: number): CountSlot => {
90
- const count = counts[index];
91
- return { Icon: count?.icon ?? "", Text: count?.text ?? "", Num: count ? formatNumber(count.value) : "", has: !!count, no: !count };
92
- };
93
-
94
- export function registerBlogList(serviceName: string, options: BlogListOptions) {
95
- 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;
97
- const detailScreenId = options.detailScreenId ?? "himi_blog_post";
98
- // Author names by member id, for this service only. A failed lookup stays unknown: no placeholder name.
99
- const authors = new Map<string, string>();
100
-
101
- async function resolveAuthors(posts: Post[]): Promise<void> {
102
- const ids = [...new Set(posts.map((p) => p.memberId).filter((id): id is string => !!id && !authors.has(id)))];
103
- await Promise.all(ids.map(async (id) => {
104
- // The PUBLIC profile only: a visitor can read it, and it carries the nickname without the login email or contact data.
105
- try { authors.set(id, (await getPublicMember(id)).member.profile?.nickname ?? ""); } catch { authors.set(id, ""); }
106
- }));
107
- }
108
-
109
- function rowOf(post: Post, now: number): BlogRow {
110
- const show = options.show;
111
- const bits: string[] = [];
112
- if (show.date && post.firstPublishedDate) {
113
- bits.push(options.relativeTime ? relativeTime(post.firstPublishedDate, now) : formatDateMedium(new Date(post.firstPublishedDate)));
114
- }
115
- if (show.readingTime && post.minutesToRead) bits.push(copyPlural("blogList.readingTime", "{n, plural, one {# min read} other {# min read}}", post.minutesToRead));
116
- const counts = countsOf(post, show, order);
117
- const [one, two, three] = [slotOf(counts, 0), slotOf(counts, 1), slotOf(counts, 2)];
118
- // A Wix media reference becomes a fetchable, list-sized URL; the owner turning the cover off (media.displayed) leaves none.
119
- const cover = show.cover === false ? "" : coverOf(post);
120
- const authorName = show.author && post.memberId ? authors.get(post.memberId) ?? "" : "";
121
- const title = post.title || copyParam("blogList.untitled", "Untitled post");
122
- const meta = bits.filter(Boolean).join(" · ");
123
- return {
124
- id: post.id, title, cover, hasCover: !!cover, noCover: !cover, initial: (title[0] ?? "#").toUpperCase(),
125
- meta, hasMeta: !!meta, noMeta: !meta,
126
- authorName, hasAuthor: !!authorName, noAuthor: !authorName,
127
- counts, hasCounts: counts.length > 0, noCounts: counts.length === 0,
128
- count1Icon: one.Icon, count1Text: one.Text, count1Num: one.Num, hasCount1: one.has, noCount1: one.no,
129
- count2Icon: two.Icon, count2Text: two.Text, count2Num: two.Num, hasCount2: two.has, noCount2: two.no,
130
- count3Icon: three.Icon, count3Text: three.Text, count3Num: three.Num, hasCount3: three.has, noCount3: three.no,
131
- detailScreenId,
132
- };
133
- }
134
-
135
- /** `more`: there are posts past `rows`. It is the page read's answer, not `next < total`: the API may omit the total. */
136
- function view(status: BlogListState["status"], rows: BlogRow[], next: number, total: number, more: boolean, loadingMore = false): BlogListState {
137
- return {
138
- status, rows, loadingMore, total,
139
- // An unlimited list follows the cursor; a limited one stops at its authored count.
140
- nextCursor: !limited && more ? String(next) : "",
141
- notLoading: status !== "loading", notErrored: status !== "error",
142
- noRows: !rows.length, notEmpty: !(status === "ready" && !rows.length),
143
- // See All only for a LIMITED list that has more posts than it shows.
144
- noSeeAll: !(limited && more),
145
- };
146
- }
147
-
148
- async function page(offset: number): Promise<{ rows: BlogRow[]; next: number; total: number; more: boolean }> {
149
- // 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
- const want = limited ? options.limit as number : PAGE;
151
- const rows: BlogRow[] = [];
152
- let at = offset;
153
- let total: number | undefined;
154
- /** Posts exist past what was read: by the total when the API gives one, else because the last page came back full. */
155
- let more = false;
156
- while (rows.length < want) {
157
- 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);
168
- const now = Date.now();
169
- rows.push(...posts.map((post) => rowOf(post, now)));
170
- at += posts.length;
171
- total = result.pagingMetadata?.total;
172
- // 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;
174
- if (!more) break;
175
- }
176
- return { rows, next: offset + rows.length, total: total ?? offset + rows.length, more };
177
- }
178
-
179
- const initial = view("loading", [], 0, 0, false);
180
- /** 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
- let loadedThisRun = false;
182
- const reload = async (): Promise<BlogListState> => {
183
- try { const p = await page(0); loadedThisRun = true; return view("ready", p.rows, p.next, p.total, p.more); }
184
- catch (error) { console.warn("blog_list: the posts could not be read", error); return view("error", [], 0, 0, false); }
185
- };
186
- const svc = register<BlogListState, {
187
- load: (state: BlogListState, arg?: unknown) => Promise<BlogListState>;
188
- retry: (state: BlogListState) => Promise<BlogListState>;
189
- loadMore: (state: BlogListState) => Promise<BlogListState>;
190
- }>(serviceName, {
191
- state: initial,
192
- actions: {
193
- // 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,
196
- loadMore: async (state) => {
197
- if (!state.nextCursor || state.loadingMore) return state;
198
- try {
199
- const p = await page(Number(state.nextCursor));
200
- return view("ready", [...state.rows, ...p.rows], p.next, p.total, p.more);
201
- } catch (error) { console.warn("blog_list: the next page of posts could not be read", error); return { ...state, loadingMore: false }; }
202
- },
203
- },
204
- });
205
- // No load at registration: the page's onAppear loads (with the copy pack), so a page-hosted service reads only when its section appears.
206
- return svc;
207
- }
@@ -1,51 +0,0 @@
1
- // Whether a detail screen's entity is there — the worker half of the shared not-found
2
- // state (the `detailNotFound` descriptor builder).
3
- //
4
- // A detail screen's descriptor asks two questions, both as `hiddenWhen` flags:
5
- // • `noEntity` → hide the entity's content AND its actions (Like, Follow, Send…)
6
- // • `hideNotFound` → hide the not-found state
7
- // Four answers exist, and only one of them shows the not-found state:
8
- // loading — a loading line (`hideLoading` false); no content, no actions, no verdict
9
- // found — content + actions shown
10
- // missing — not-found shown, content + actions hidden
11
- // failed — a load-error line (`hideLoadError` false); no content, no actions
12
- // A load that FAILS for any reason other than "not found" is `failed`, never `missing`:
13
- // an offline device must not tell the user their invoice was deleted.
14
-
15
- export type Presence = "loading" | "found" | "missing" | "failed";
16
-
17
- export interface PresenceFlags {
18
- found: boolean;
19
- notFound: boolean;
20
- noEntity: boolean;
21
- hideNotFound: boolean;
22
- hideLoading: boolean;
23
- hideLoadError: boolean;
24
- }
25
-
26
- export function presence(p: Presence): PresenceFlags {
27
- return {
28
- found: p === "found", notFound: p === "missing", noEntity: p !== "found", hideNotFound: p !== "missing",
29
- hideLoading: p !== "loading", hideLoadError: p !== "failed",
30
- };
31
- }
32
-
33
- /** The entity id the host baked into this detail screen (`himi.open` params). */
34
- export function detailInputId(): string {
35
- const v = (globalThis as { himalaya?: { input?: { id?: unknown } } }).himalaya?.input?.id;
36
- return typeof v === "string" ? v.trim() : "";
37
- }
38
-
39
- /** True when a Wix read failed because the record does not exist: the SDK rejects
40
- * with "HTTP <code>: <body>", so an HTTP 404, or Wix's `NOT_FOUND` error code. A bare
41
- * "not found" in a message is NOT enough — "capability wix_api not found" or "Method
42
- * not found" is a broken integration, and must not tell the user the record is gone. */
43
- export function isNotFoundError(error: unknown): boolean {
44
- const msg = String((error as { message?: unknown } | null)?.message ?? error ?? "");
45
- return /\bHTTP\s*404\b/.test(msg) || /\bNOT_FOUND\b/.test(msg);
46
- }
47
-
48
- /** `missing` for a not-found failure, `failed` (claim nothing) otherwise. */
49
- export function presenceAfterError(error: unknown): PresenceFlags {
50
- return presence(isNotFoundError(error) ? "missing" : "failed");
51
- }
@@ -1,33 +0,0 @@
1
- // The event CARD facts shared by the events list and the inline events section: the date badge, the registration verb and
2
- // the page URL for Share. One copy, so a card on a page and a card in the list never disagree about what an event offers.
3
- import type { WixEvent } from "@himalaya/wix-events";
4
- import type { EventRow } from "./himi-events";
5
- import { eventPageUrlOf, registrationUi } from "./event-registration.js";
6
-
7
- export interface ListEventRow extends EventRow {
8
- /** "10\nNOV" for an event with a calendar date; "" for an undated one (the card then shows the day monogram). */
9
- dateBadge: string; noDateBadge: boolean;
10
- /** This card's verb (Register / RSVP / Buy Tickets / Join Waitlist / Free Event) from the SAME rule the detail uses; hidden when none applies. */
11
- actionLabel: string; noAction: boolean;
12
- /** The event page URL (when the payload carries one) for Share. */
13
- shareUrl: string;
14
- }
15
-
16
- /** The month must be the three-letter abbreviation: rows cached by an older worker on an Intl-less engine can hold a
17
- * whole "11/10/2030, 12:00:00 PM" there. Only an actual calendar date becomes a badge. */
18
- export function withDateBadge(row: EventRow): ListEventRow {
19
- const dated = typeof row.month === "string" && /^[A-Z]{3}$/.test(row.month)
20
- && /^(?:[1-9]|[12]\d|3[01])$/.test(row.day);
21
- const known = row as Partial<ListEventRow>;
22
- // Rows cached by an older build carry no registration data: they show no verb until a refresh, never a wrong one.
23
- return { ...row, dateBadge: dated ? `${row.day}\n${row.month}` : "", noDateBadge: !dated,
24
- actionLabel: known.actionLabel ?? "", noAction: known.noAction ?? true, shareUrl: known.shareUrl ?? "" };
25
- }
26
-
27
- /** The card's action, from the event's own registration (REGISTRATION + URLS fieldsets). Cancelled, ended, closed, sold-out and
28
- * registration-less events offer none, so a card never promises "Register" where the detail refuses. */
29
- export function withRegistration(raw: WixEvent, row: ListEventRow): ListEventRow {
30
- const ui = registrationUi(raw, Date.now());
31
- const offers = ui.state !== "notice" && ui.state !== "none" && ui.state !== "scheduled" && !!ui.label;
32
- return { ...row, actionLabel: offers ? ui.label : "", noAction: !offers, shareUrl: eventPageUrlOf(raw) };
33
- }
@@ -1,25 +0,0 @@
1
- // The pure options of the inline events section. No imports: Node tests read it directly, and the worker bundle shares it.
2
-
3
- export interface EventsInlineOptions {
4
- /** How many events the section shows. Clamped to 1..10; default 3. */
5
- limit?: number;
6
- }
7
-
8
- export const EVENTS_INLINE_DEFAULT_LIMIT = 3;
9
- export const EVENTS_INLINE_MAX_LIMIT = 10;
10
-
11
- /** A bad or missing limit is the default, never an error: the value arrives from a generated recipe. */
12
- export function eventsInlineLimit(value: unknown): number {
13
- const n = typeof value === "number" ? value : Number(value);
14
- if (!Number.isFinite(n)) return EVENTS_INLINE_DEFAULT_LIMIT;
15
- return Math.min(EVENTS_INLINE_MAX_LIMIT, Math.max(1, Math.trunc(n)));
16
- }
17
-
18
- /** Events that have not finished: not started yet, or still running (a festival on its second day is still on). */
19
- export function upcomingFilter(nowIso: string): Record<string, unknown> {
20
- return {
21
- status: { $ne: "DRAFT" },
22
- $or: [{ "dateAndTimeSettings.startDate": { $gte: nowIso } }, { "dateAndTimeSettings.endDate": { $gte: nowIso } }],
23
- };
24
- }
25
-
@@ -1,84 +0,0 @@
1
- // The INLINE events section: the next few events as cards, hosted by any worker that wants them next to other sections
2
- // (a page that mixes text, a button and an events list), or on its own through `himi-events-inline`. The section is data only:
3
- // `eventsInlineSection(...)` in the app's events-inline section builder is the card that reads it, bound as
4
- // `$service:<serviceName>.*`.
5
- //
6
- // What it does NOT show, on purpose: attendees. Neither a Visitor nor a Member can read an event's guest list (probed: the owner
7
- // guest list 404s, the guests and rsvps queries 403), so an avatar stack would be invented. Nothing here claims otherwise.
8
- import { defineService } from "@himalaya/state";
9
- import { queryEvents, type WixEvent } from "@himalaya/wix-events";
10
- import { share as shareSheet } from "@himalaya/share";
11
- import { normalizeEvent } from "./himi-events";
12
- import { copyParam, stashCopy } from "./himi-copy.js";
13
- import { withDateBadge, withRegistration, type ListEventRow } from "./events-card.js";
14
- import { eventsInlineLimit, upcomingFilter, type EventsInlineOptions } from "./events-inline-options.js";
15
-
16
- export { EVENTS_INLINE_DEFAULT_LIMIT, EVENTS_INLINE_MAX_LIMIT, eventsInlineLimit, upcomingFilter, type EventsInlineOptions } from "./events-inline-options.js";
17
-
18
- export interface EventsInlineState {
19
- status: "loading" | "ready" | "error";
20
- rows: ListEventRow[];
21
- /** More upcoming events exist than the section shows: the See-all link is meaningful. */
22
- hasMore: boolean;
23
- isLoading: boolean; notLoading: boolean;
24
- isErrored: boolean; notErrored: boolean;
25
- hasRows: boolean; noRows: boolean;
26
- /** The empty state's title and the line under it, "" while there are rows (the section collapses them). */
27
- emptyText: string; emptyBody: string; noEmpty: boolean;
28
- noMore: boolean;
29
- }
30
-
31
- function derive(state: Omit<EventsInlineState, "isLoading" | "notLoading" | "isErrored" | "notErrored" | "hasRows" | "noRows" | "noEmpty" | "noMore">): EventsInlineState {
32
- const ready = state.status === "ready";
33
- return {
34
- ...state,
35
- isLoading: state.status === "loading", notLoading: state.status !== "loading",
36
- isErrored: state.status === "error", notErrored: state.status !== "error",
37
- hasRows: state.rows.length > 0, noRows: state.rows.length === 0,
38
- noEmpty: !(ready && state.rows.length === 0),
39
- noMore: !state.hasMore,
40
- };
41
- }
42
-
43
- export function registerEventsInline(serviceName: string, options: EventsInlineOptions = {}) {
44
- const limit = eventsInlineLimit(options.limit);
45
- const initial = derive({ status: "loading", rows: [], hasMore: false, emptyText: "", emptyBody: "" });
46
- return defineService<EventsInlineState, {
47
- load: (state: EventsInlineState, arg?: unknown) => Promise<EventsInlineState>;
48
- share: (state: EventsInlineState, arg?: unknown) => Promise<EventsInlineState>;
49
- }>(serviceName, {
50
- state: initial,
51
- actions: {
52
- load: async (state, arg) => {
53
- stashCopy(arg);
54
- try {
55
- const res = await queryEvents({
56
- limit, offset: 0, fields: ["DETAILS", "REGISTRATION", "URLS"],
57
- query: { filter: upcomingFilter(new Date().toISOString()),
58
- sort: [{ fieldName: "dateAndTimeSettings.startDate", order: "ASC" }, { fieldName: "id", order: "ASC" }] },
59
- });
60
- const raw: WixEvent[] = (res.events ?? []).filter((event) => !!event.id);
61
- const rows = raw.map((event) => withRegistration(event, withDateBadge(normalizeEvent(event))));
62
- const total = (res as { pagingMetadata?: { total?: number } }).pagingMetadata?.total;
63
- return derive({
64
- status: "ready", rows, hasMore: typeof total === "number" ? total > rows.length : false,
65
- // The original One App's own empty state: a title and what the section will offer once there are events.
66
- emptyText: rows.length ? "" : copyParam("eventsInline.emptyTitle", "No Events Yet"),
67
- emptyBody: rows.length ? "" : copyParam("eventsInline.emptyBody", "Once we add new events you'll be able to RSVP and buy tickets for them here."),
68
- });
69
- } catch (error) {
70
- console.warn("events_inline: the events could not be read", error);
71
- return derive({ ...state, status: "error", rows: [], hasMore: false, emptyText: "", emptyBody: "" });
72
- }
73
- },
74
- // Share one card's event: its title and date line, plus the event page when the payload carried one.
75
- share: async (state, arg) => {
76
- const id = typeof arg === "string" ? arg : String((arg as { id?: unknown } | undefined)?.id ?? "");
77
- const row = state.rows.find((item) => item.id === id);
78
- if (!row) return state;
79
- try { await shareSheet({ subject: row.title, text: [row.title, row.dateLine].filter(Boolean).join(" — "), ...(row.shareUrl ? { url: row.shareUrl } : {}) }); } catch { /* the sheet is best-effort */ }
80
- return state;
81
- },
82
- },
83
- });
84
- }