@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
@@ -0,0 +1,25 @@
1
+ {
2
+ "site": {
3
+ "origin": "https://your-account.wixsite.com/your-site",
4
+ "kind": "wix",
5
+ "pages": [
6
+ { "id": "home", "title": "Home", "path": "/", "icon": "home" },
7
+ { "id": "blog", "title": "Blog", "path": "/blog", "icon": "newspaper" },
8
+ { "id": "contact", "title": "Contact", "path": "/contact", "icon": "mail", "placement": "drawer" }
9
+ ],
10
+ "chrome": { "hideSiteHeader": true, "hideSiteFooter": true, "hideWixAds": true },
11
+ "nativePages": [
12
+ { "id": "my_account", "screenId": "himi_account", "title": "Account", "icon": "person", "placement": "drawer" },
13
+ { "id": "activity", "screenId": "himi_notifications", "title": "Notifications", "icon": "bell", "placement": "drawer", "public": true }
14
+ ],
15
+ "topBar": {
16
+ "actions": [
17
+ { "id": "notifications", "icon": "bell", "label": "Notifications", "target": { "screen": "himi_notifications" } }
18
+ ]
19
+ }
20
+ },
21
+ "wix": {
22
+ "clientId": "00000000-0000-0000-0000-000000000000",
23
+ "redirectUri": "himalaya-your-app://oauth"
24
+ }
25
+ }
@@ -0,0 +1,280 @@
1
+ // Hosted mode: ONE served Branded Lite that opens any site at runtime, inside a host app such as
2
+ // Spaces Lite, instead of one build per customer.
3
+ //
4
+ // A single-site build decides its verticals at build time from `provisioning.json`. A hosted build
5
+ // declares every vertical and decides at RUNTIME from the site the host opened it for: each
6
+ // vertical's nav row carries a fail-closed `hiddenPath` (`hiddenUntilResolved`: hidden until it resolves), and
7
+ // the app-level nav worker resolves it from the site the host hands over.
8
+ //
9
+ // WHERE THE SITE COMES FROM: the host. A hosted app's Wix capability is pinned to its site and only
10
+ // reaches www.wixapis.com, so it cannot read its own provisioning (the Member View
11
+ // lives on apps.wix.com, the display options on manage.wix.com). The host resolves it with its own
12
+ // account session (the site provisioning mapper) and core injects it into every worker's input under the
13
+ // reserved key `HOST_SITE_INPUT_KEY`, after the nav params are merged — so a deep link's query can
14
+ // never supply or replace it (WorkerPreferenceContext.inject, iOS + Android).
15
+ //
16
+ // PURE and import-free, so the nav and home workers (and the CLI templates that copy them) can
17
+ // bundle it. The app's hosted-mode module re-exports it with the app's types.
18
+
19
+ /** A Branded Lite vertical id (the app contract's `BrandedLiteVertical`). A plain
20
+ * string here: this module is copied into CLI templates, which only allow `_shared` imports. */
21
+ export type BrandedLiteVertical = string;
22
+
23
+ export type BrandedLiteMode = "single-site" | "hosted";
24
+
25
+ /** The worker-input key the host's site arrives under. Core owns it: it is set (or blanked) after
26
+ * every other input source, so nothing but the host can put a site there. */
27
+ export const HOST_SITE_INPUT_KEY = "__himiHostSite";
28
+
29
+ /** The host's site from a worker's `himalaya.input`, or null. */
30
+ export function hostSiteFromInput(input: unknown): HostedSite | null {
31
+ const raw = input && typeof input === "object" ? (input as Record<string, unknown>)[HOST_SITE_INPUT_KEY] : undefined;
32
+ return readHostedSite(raw);
33
+ }
34
+
35
+ /** What the host hands a hosted Branded Lite about the site it opened (`himalaya.input[HOST_SITE_INPUT_KEY]`). */
36
+ export interface HostedSite {
37
+ metaSiteId: string;
38
+ name: string;
39
+ installedVerticals: BrandedLiteVertical[];
40
+ /** #RRGGBB, or "" when the site has none (the build's own brand stays). */
41
+ primaryColor: string;
42
+ logoUrl: string;
43
+ }
44
+
45
+ /** Verticals a hosted build always shows: every member area has a member list, whatever the
46
+ * owner installed. (Home, its About section and Profile are not verticals — always there.) */
47
+ export const HOSTED_ALWAYS: readonly BrandedLiteVertical[] = ["members"];
48
+
49
+ /** The screen each vertical's nav rows open, so a route to an uninstalled vertical can be answered. */
50
+ export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>> = {
51
+ store: ["himi_shop"], bookings: ["himi_services", "himi_agenda"], restaurants: ["himi_menu", "himi_reserve"],
52
+ programs: ["himi_programs"], plans: ["himi_plans"], feed: ["himi_feed"], members: ["himi_members"],
53
+ forum: ["himi_forum"], coupons: ["himi_coupons"], notifications: ["himi_notifications"],
54
+ loyalty: ["himi_loyalty"], reviews: ["himi_reviews"], portfolio: ["himi_portfolio"],
55
+ reservations: ["himi_reservations"], invoices: ["himi_invoices"], badges: ["himi_badges"],
56
+ notifsettings: ["himi_notif_settings"], events: ["himi_events"], blog: ["himi_blog"],
57
+ groups: ["himi_groups"], cms: ["himi_cms"], donations: ["himi_donations"], giftCards: ["himi_gift_cards"],
58
+ videos: ["himi_videos"], podcasts: ["himi_podcasts"], forms: ["himi_forms"], galleries: ["himi_galleries"],
59
+ inbox: ["himi_business_chat"], faq: ["himi_faq"], fileShare: ["himi_file_share"],
60
+ };
61
+
62
+ /** Every screen a vertical owns, so a route to ANY of them (a child or action screen as much as the
63
+ * root) lands on `NOT_AVAILABLE_SCREEN` when the site does not have it. A screen several verticals
64
+ * share opens when any of them is shown. Pinned against the app's screen registry
65
+ * (`brandedLiteScreenOwners`, checked by the app's hosted-mode tests), so a screen added
66
+ * to a vertical without being listed here fails the build. */
67
+ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
68
+ himi_address: ["restaurants", "store"],
69
+ himi_addresses: ["restaurants", "store"],
70
+ himi_agenda: ["bookings"],
71
+ himi_badge: ["badges"],
72
+ himi_badges: ["badges"],
73
+ himi_blog: ["blog"],
74
+ himi_bookings: ["bookings"],
75
+ himi_cart: ["store"],
76
+ himi_business_chat: ["inbox"],
77
+ himi_chat_thread: ["inbox", "members"],
78
+ himi_cms: ["cms"],
79
+ himi_collection: ["store"],
80
+ himi_collections: ["store"],
81
+ himi_coupon: ["coupons"],
82
+ himi_coupons: ["coupons"],
83
+ himi_create_post: ["blog", "forum"],
84
+ himi_donation: ["donations"],
85
+ himi_donations: ["donations"],
86
+ himi_events: ["events"],
87
+ himi_faq: ["faq"],
88
+ himi_feed: ["feed"],
89
+ himi_file_share: ["fileShare"],
90
+ himi_food_order: ["restaurants"],
91
+ himi_food_orders: ["restaurants"],
92
+ himi_form: ["forms"],
93
+ himi_forms: ["forms"],
94
+ himi_forum: ["forum"],
95
+ himi_forum_post: ["forum"],
96
+ himi_galleries: ["galleries"],
97
+ himi_gallery: ["galleries"],
98
+ himi_gift_card: ["giftCards"],
99
+ himi_gift_cards: ["giftCards"],
100
+ himi_groups: ["groups"],
101
+ himi_inbox: ["inbox"],
102
+ himi_group_about: ["groups"],
103
+ himi_my_groups: ["groups"],
104
+ himi_invoice: ["invoices"],
105
+ himi_invoices: ["invoices"],
106
+ himi_loyalty: ["loyalty"],
107
+ himi_loyalty_reward: ["loyalty"],
108
+ himi_member: ["members"],
109
+ himi_members: ["members"],
110
+ himi_menu: ["restaurants"],
111
+ himi_my_events: ["events"],
112
+ himi_my_subscriptions: ["plans"],
113
+ himi_new_message: ["inbox", "members"],
114
+ himi_notifications: ["notifications"],
115
+ himi_orders: ["store"],
116
+ himi_photo_album: ["galleries"],
117
+ himi_place_summary: ["bookings", "plans"],
118
+ himi_plan: ["plans"],
119
+ himi_plans: ["plans"],
120
+ himi_podcast: ["podcasts"],
121
+ himi_podcasts: ["podcasts"],
122
+ himi_portfolio: ["portfolio"],
123
+ himi_portfolio_project: ["portfolio"],
124
+ himi_programs: ["programs"],
125
+ himi_member_programs: ["programs"],
126
+ himi_reservations: ["reservations"],
127
+ himi_reserve: ["restaurants"],
128
+ himi_review: ["reviews"],
129
+ himi_reviews: ["reviews"],
130
+ himi_saved: ["blog"],
131
+ himi_saved_products: ["store"],
132
+ himi_services: ["bookings"],
133
+ himi_shop: ["store"],
134
+ himi_subscription: ["plans"],
135
+ himi_video: ["videos"],
136
+ himi_video_channel: ["videos"],
137
+ himi_videos: ["videos"],
138
+ himi_wallet: ["bookings", "plans", "restaurants", "store"],
139
+ };
140
+
141
+ /** The templated (`<prefix>[_/]<id>`) detail routes each vertical owns, pinned the same way. */
142
+ export const HOSTED_ROUTE_PREFIXES: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
143
+ himi_order: ["store"],
144
+ himi_product: ["store"],
145
+ himi_service: ["bookings"],
146
+ himi_time: ["bookings"],
147
+ himi_menu_item: ["restaurants"],
148
+ himi_program: ["programs"],
149
+ himi_event: ["events"],
150
+ himi_rsvp: ["events"],
151
+ himi_blog_post: ["blog"],
152
+ himi_group: ["groups"],
153
+ himi_cms_collection: ["cms"],
154
+ };
155
+
156
+ /** The verticals that own [screenId], or undefined for a screen every site has (Home, Profile…). */
157
+ export function screenVerticals(screenId: string): readonly BrandedLiteVertical[] | undefined {
158
+ const exact = HOSTED_SCREEN_VERTICALS[screenId];
159
+ if (exact) return exact;
160
+ // The registry's `^<prefix>(?:[_/](.+))?$`: the bare prefix, or the prefix, a separator and an id.
161
+ for (const [prefix, verticals] of Object.entries(HOSTED_ROUTE_PREFIXES)) {
162
+ if (screenId === prefix) return verticals;
163
+ const sep = screenId.charAt(prefix.length);
164
+ if (screenId.startsWith(prefix) && (sep === "_" || sep === "/") && screenId.length > prefix.length + 1) return verticals;
165
+ }
166
+ return undefined;
167
+ }
168
+
169
+ /** The drawer's collapsible folders and the verticals in each (config.ts builds them from this).
170
+ * A folder header is hidden when none of its verticals shows, so a site never sees an empty one. */
171
+ export const HOSTED_DRAWER_FOLDERS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
172
+ drawer_sec_community: ["feed", "forum", "groups", "members", "reviews", "badges", "blog"],
173
+ drawer_sec_media: ["videos", "podcasts", "portfolio", "cms", "galleries", "faq", "fileShare"],
174
+ drawer_sec_offers: ["coupons", "giftCards", "donations", "loyalty"],
175
+ drawer_sec_activity: ["inbox", "reservations", "invoices", "forms", "notifications", "notifsettings"],
176
+ };
177
+
178
+ /** The vertical a nav row's screen belongs to, or undefined (Home, Profile, Steps…). */
179
+ export function verticalOfScreen(screenId: string | undefined): BrandedLiteVertical | undefined {
180
+ if (!screenId) return undefined;
181
+ for (const [vertical, roots] of Object.entries(VERTICAL_ROOT_SCREENS) as [string, readonly string[]][]) {
182
+ if (roots.includes(screenId)) return vertical;
183
+ }
184
+ return undefined;
185
+ }
186
+
187
+ /** The screen a route to an uninstalled vertical lands on. */
188
+ export const NOT_AVAILABLE_SCREEN = "himi_not_available";
189
+
190
+ const HEX = /^#[0-9A-Fa-f]{6}$/;
191
+ const VERTICALS = new Set(Object.keys(VERTICAL_ROOT_SCREENS));
192
+
193
+ /** The host's site, or null when it is missing or malformed — a hosted build then shows no
194
+ * vertical at all (fail closed), never every one. */
195
+ export function readHostedSite(raw: unknown): HostedSite | null {
196
+ let value = raw;
197
+ if (typeof value === "string") {
198
+ try { value = JSON.parse(value); } catch { return null; }
199
+ }
200
+ if (!value || typeof value !== "object") return null;
201
+ const v = value as Record<string, unknown>;
202
+ const metaSiteId = typeof v.metaSiteId === "string" ? v.metaSiteId.trim() : "";
203
+ if (!metaSiteId || !Array.isArray(v.installedVerticals)) return null;
204
+ const installed = v.installedVerticals.filter((x): x is BrandedLiteVertical => typeof x === "string" && VERTICALS.has(x));
205
+ const color = typeof v.primaryColor === "string" && HEX.test(v.primaryColor) ? v.primaryColor : "";
206
+ return {
207
+ metaSiteId,
208
+ name: typeof v.name === "string" ? v.name : "",
209
+ installedVerticals: [...new Set(installed)],
210
+ primaryColor: color,
211
+ logoUrl: typeof v.logoUrl === "string" && /^https:\/\//.test(v.logoUrl) ? v.logoUrl : "",
212
+ };
213
+ }
214
+
215
+ /** The verticals a hosted build shows for [site]: its installed ones plus the always-on ones.
216
+ * None at all without a site. */
217
+ export function hostedVerticals(site: HostedSite | null): Set<BrandedLiteVertical> {
218
+ if (!site) return new Set();
219
+ return new Set<BrandedLiteVertical>([...site.installedVerticals, ...HOSTED_ALWAYS]);
220
+ }
221
+
222
+ /** `hiddenPath` flags (true hides the row), for the nav worker to publish: one per vertical, and
223
+ * one per drawer folder (hidden when none of its verticals shows). */
224
+ export function hostedHiddenFlags(site: HostedSite | null): Record<string, boolean> {
225
+ const shown = hostedVerticals(site);
226
+ const out: Record<string, boolean> = {};
227
+ for (const v of Object.keys(VERTICAL_ROOT_SCREENS) as BrandedLiteVertical[]) out[v] = !shown.has(v);
228
+ for (const [folder, verticals] of Object.entries(HOSTED_DRAWER_FOLDERS)) out[folder] = !verticals.some((v) => shown.has(v));
229
+ return out;
230
+ }
231
+
232
+ /** Where a route to [screenId] lands for [site]: itself, or the "not available on this site" screen
233
+ * when every vertical that owns it is missing from the site. A screen no vertical owns (Home,
234
+ * Profile, settings) is on every site and passes through. */
235
+ export function hostedRoute(screenId: string, site: HostedSite | null): string {
236
+ const owners = screenVerticals(screenId);
237
+ if (!owners) return screenId;
238
+ const shown = hostedVerticals(site);
239
+ return owners.some((v) => shown.has(v)) ? screenId : NOT_AVAILABLE_SCREEN;
240
+ }
241
+
242
+ /** One hosted Home "Explore" card. The descriptor hands the worker the whole catalog (its copy is
243
+ * build-time localized) as `himalaya.input.hostedExplore`; the worker publishes only the site's. */
244
+ export interface HostedExploreCard {
245
+ vertical: BrandedLiteVertical;
246
+ icon: string;
247
+ title: string;
248
+ body: string;
249
+ /** Always the vertical's own root screen — never taken from the input. */
250
+ screenId: string;
251
+ }
252
+
253
+ /** The Explore cards to show for [site], in catalog order: one per catalog entry whose vertical the
254
+ * site shows. Empty without a site or a catalog, so a worker that never boots shows no card at all
255
+ * (the grid binds this list — fail closed, unlike a per-card `hiddenPath`, which native renderers
256
+ * treat as visible until it resolves). */
257
+ export function hostedExploreCards(catalog: unknown, site: HostedSite | null): HostedExploreCard[] {
258
+ if (!Array.isArray(catalog)) return [];
259
+ const shown = hostedVerticals(site);
260
+ const out: HostedExploreCard[] = [];
261
+ const seen = new Set<string>();
262
+ for (const entry of catalog) {
263
+ if (!entry || typeof entry !== "object") continue;
264
+ const e = entry as Record<string, unknown>;
265
+ const vertical = typeof e.vertical === "string" ? e.vertical : "";
266
+ const screenId = VERTICAL_ROOT_SCREENS[vertical]?.[0];
267
+ if (!screenId || !shown.has(vertical) || seen.has(vertical)) continue;
268
+ seen.add(vertical);
269
+ out.push({
270
+ vertical, screenId,
271
+ icon: typeof e.icon === "string" ? e.icon : "grid",
272
+ title: typeof e.title === "string" ? e.title : "",
273
+ body: typeof e.body === "string" ? e.body : "",
274
+ });
275
+ }
276
+ return out;
277
+ }
278
+
279
+ /** The `$service` path a hosted nav row's visibility binds to (a vertical, or a drawer folder id). */
280
+ export const hostedHiddenPath = (key: string): string => `$service:brandedLiteNav.hosted.${key}`;
@@ -0,0 +1,109 @@
1
+ // Load-state honesty for the branded-lite vertical workers.
2
+ //
3
+ // These workers used to answer every failed or empty query with representative SAMPLE
4
+ // rows — discount codes, gift-card balances, invoices, reservations, inbox messages —
5
+ // under a "Sample content" banner. On a customer build that is invented data presented
6
+ // as the customer's own: a code that does not exist, a balance in the wrong currency, an
7
+ // "Overdue" invoice, a booking labelled "tap to cancel". The banner did not make it
8
+ // honest; the rows were still the first thing a visitor read.
9
+ //
10
+ // The rule now:
11
+ // • query FAILED → status "error" with a customer sentence, a Retry, and — when
12
+ // Wix refused an anonymous visitor (401) — a Sign in path instead;
13
+ // • query was EMPTY → status "ready", no rows, the vertical's own empty sentence;
14
+ // • sample rows → ONLY when the host explicitly asked for sample data (the web
15
+ // preview's sample data mode, `__himiOwnerPreview: "sample"`).
16
+ // Never on a device, never as a fallback.
17
+ //
18
+ // Every field here is flat and boolean-gated because descriptors can only
19
+ // `hiddenWhen(<path>)` on a TRUE value: `notErrored` hides the error card, `noSignIn`
20
+ // hides the sign-in CTA, `signInRequired` hides Retry when retrying cannot help.
21
+ import { copyParam } from "./himi-copy.js";
22
+
23
+ export interface LoadFlags {
24
+ status: "loading" | "ready" | "error";
25
+ /** The customer-facing failure sentence; "" unless status is "error". */
26
+ error: string;
27
+ signInRequired: boolean;
28
+ notErrored: boolean;
29
+ /** hiddenWhen gate for a loading skeleton. */
30
+ notLoading: boolean;
31
+ /** Loading or failed — gates content that has nothing to say in either. */
32
+ busy: boolean;
33
+ noSignIn: boolean;
34
+ isMock: boolean;
35
+ notMock: boolean;
36
+ notMockEmpty: boolean;
37
+ notMockUnavailable: boolean;
38
+ /** hiddenWhen gate for the empty state: false ONLY when the site answered with no rows
39
+ * (`notMockEmpty` is true then — it gates the sample banner, not the empty state). */
40
+ hideEmpty: boolean;
41
+ }
42
+
43
+ export const LOADING: LoadFlags = {
44
+ status: "loading", error: "", signInRequired: false, notErrored: true, notLoading: false, busy: true, noSignIn: true,
45
+ isMock: false, notMock: true, notMockEmpty: true, notMockUnavailable: true, hideEmpty: true,
46
+ };
47
+
48
+ const READY: LoadFlags = { ...LOADING, status: "ready", notLoading: true, busy: false };
49
+
50
+ /** Did the HOST ask for sample data? Only the web preview's sample mode does; a native
51
+ * build, a visitor preview and a live owner preview never carry it. */
52
+ export function samplesRequested(): boolean {
53
+ const input = (globalThis as { himalaya?: { input?: Record<string, unknown> } }).himalaya?.input;
54
+ return input?.__himiOwnerPreview === "sample";
55
+ }
56
+
57
+ /** Wix refused an ANONYMOUS visitor: signing in is the fix, not retrying. A 403 is not
58
+ * this — it also answers "feature not installed" and a signed-in member without the
59
+ * permission, where a Sign in button leads nowhere — so it stays a Retry-able failure. */
60
+ export function needsSignIn(err: unknown): boolean {
61
+ const msg = String((err as { message?: unknown })?.message ?? err ?? "");
62
+ return /\b401\b|unauthori[sz]ed|unauthenticated/i.test(msg);
63
+ }
64
+
65
+ export interface LoadCopy<T> {
66
+ /** The copy namespace (`giftCards`, `coupons`, …) — keys resolve through copyParam. */
67
+ prefix: string;
68
+ /** Shown when the site genuinely has none. */
69
+ empty: string;
70
+ /** Shown when the query failed. */
71
+ error: string;
72
+ /** Shown when Wix refused the visitor (member-only data). */
73
+ signIn: string;
74
+ /** Sample rows for the explicit sample preview ONLY. */
75
+ sample: () => T[];
76
+ }
77
+
78
+ type Rows<K extends string, T> = { [P in K]: T[] } & { emptyText: string } & LoadFlags;
79
+
80
+ /** A query answered. Rows win; an empty answer is a real empty state. */
81
+ export function loaded<K extends string, T>(key: K, rows: T[], copy: LoadCopy<T>): Rows<K, T> {
82
+ if (rows.length) return { ...READY, [key]: rows, emptyText: "" } as Rows<K, T>;
83
+ if (samplesRequested()) return sampleRows(key, copy, "empty");
84
+ return { ...READY, [key]: [], emptyText: copyParam(`${copy.prefix}.emptyText`, copy.empty), hideEmpty: false } as Rows<K, T>;
85
+ }
86
+
87
+ /** A query threw. Never rows the customer did not create. */
88
+ export function loadFailed<K extends string, T>(key: K, err: unknown, copy: LoadCopy<T>): Rows<K, T> {
89
+ if (samplesRequested()) return sampleRows(key, copy, "unavailable");
90
+ const signIn = needsSignIn(err);
91
+ return {
92
+ ...READY,
93
+ status: "error",
94
+ [key]: [],
95
+ emptyText: "",
96
+ error: signIn ? copyParam(`${copy.prefix}.signInText`, copy.signIn) : copyParam(`${copy.prefix}.errorText`, copy.error),
97
+ signInRequired: signIn,
98
+ notErrored: false,
99
+ busy: true,
100
+ noSignIn: !signIn,
101
+ } as Rows<K, T>;
102
+ }
103
+
104
+ function sampleRows<K extends string, T>(key: K, copy: LoadCopy<T>, reason: "empty" | "unavailable"): Rows<K, T> {
105
+ return {
106
+ ...READY, [key]: copy.sample(), emptyText: "",
107
+ isMock: true, notMock: false, notMockEmpty: reason !== "empty", notMockUnavailable: reason !== "unavailable",
108
+ } as Rows<K, T>;
109
+ }
@@ -0,0 +1,242 @@
1
+ // How an open chat thread stays live — one helper for owner-lite's Inbox thread and
2
+ // branded-lite's member chat.
3
+ //
4
+ // Two paths, and the worker never has to choose between them by platform:
5
+ //
6
+ // 1. REALTIME. With a Wix Chat channel configured, `load` returns a `_stream` directive
7
+ // whose url is `wix-realtime://<appDefId>/<channel>?slug=<slug>&resourceId=<chatroom>`.
8
+ // The iOS and Android hosts open a Wix Duplexer channel for it and
9
+ // dispatch `onEvent` for each matching message.
10
+ // 2. FALLBACK. With no channel, or once the stream fails (`onError` — which is also what
11
+ // the web host answers, since it refuses `wix-realtime://`), a `_poll` directive asks
12
+ // the host to re-read the thread every 4 s.
13
+ //
14
+ // The fallback is a HOST timer, not a worker one: the worker sandbox has no
15
+ // `setInterval`. That is also what keeps it to the
16
+ // foreground — every host suspends a poll when the app is backgrounded or the screen is
17
+ // pooled off-view, and cancels it when the screen is torn down — so a hidden thread never
18
+ // polls. A poll has no stop verb; a thread that has its stream simply never asks for one.
19
+ //
20
+ // An event is only ever "the thread changed". Its payload is not read: its shape is
21
+ // unverified, and the host deliberately does not interpret it either. The worker re-reads
22
+ // the messages instead — one cheap call that cannot desync — and `createReloadGate`
23
+ // folds a burst of events into one read.
24
+ //
25
+ // This file is copied verbatim into every generated starter app, so it explains itself
26
+ // without pointing at anything only this repo has.
27
+
28
+ import type { PollDirective, StreamDirective } from "@himalaya/state";
29
+
30
+ /** A Wix Chat Duplexer channel: the `ns` (an app def id), the bare channel name, and the
31
+ * event slug a new message arrives under. */
32
+ export interface ChatRealtimeConfig {
33
+ appDefId: string;
34
+ channel: string;
35
+ slug: string;
36
+ }
37
+
38
+ /** The stream's id. One per screen: a new directive under the same id replaces the old
39
+ * channel instead of opening a second one. */
40
+ export const CHAT_LIVE_STREAM_ID = "chat-live";
41
+ /** The fallback poll's id. Re-arming it replaces the timer, never stacks a second one. */
42
+ export const CHAT_LIVE_POLL_ID = "chat-live-poll";
43
+ /** "A message from the other side appears within 5 s." */
44
+ export const CHAT_LIVE_POLL_MS = 4000;
45
+
46
+ /** Which path is keeping the thread live: `off` before a conversation is open, `stream`
47
+ * when a realtime channel was asked for, `poll` on the fallback. Diagnostic. */
48
+ export type ChatLiveMode = "off" | "stream" | "poll";
49
+
50
+ const GUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
51
+
52
+ /** A complete, well-formed channel, or null. A half-filled one would subscribe to
53
+ * nothing and never fire, which looks exactly like a quiet conversation. */
54
+ export function chatRealtimeConfig(value: unknown): ChatRealtimeConfig | null {
55
+ let v = value;
56
+ if (typeof v === "string") {
57
+ if (!v.trim()) return null;
58
+ try { v = JSON.parse(v); } catch { return null; }
59
+ }
60
+ if (!v || typeof v !== "object") return null;
61
+ const { appDefId, channel, slug } = v as Record<string, unknown>;
62
+ if (typeof appDefId !== "string" || !GUID.test(appDefId)) return null;
63
+ if (typeof channel !== "string" || !channel.trim()) return null;
64
+ if (typeof slug !== "string" || !slug.trim()) return null;
65
+ return { appDefId, channel, slug };
66
+ }
67
+
68
+ /** The `wix-realtime://` url for one conversation. */
69
+ export function chatRealtimeUrl(cfg: ChatRealtimeConfig, chatroomId: string): string {
70
+ return `wix-realtime://${cfg.appDefId}/${encodeURIComponent(cfg.channel)}?slug=${encodeURIComponent(cfg.slug)}&resourceId=${encodeURIComponent(chatroomId)}`;
71
+ }
72
+
73
+ /** The stream directive that keeps `chatroomId` live, or null when there is no channel
74
+ * (or no conversation) to open. `onEvent` / `onError` are action names of the calling
75
+ * service. */
76
+ export function liveThreadDirective(
77
+ cfg: ChatRealtimeConfig | null,
78
+ chatroomId: string,
79
+ actions: { onEvent: string; onError: string },
80
+ ): StreamDirective | null {
81
+ if (!cfg || !chatroomId) return null;
82
+ return {
83
+ id: CHAT_LIVE_STREAM_ID,
84
+ request: { method: "GET", url: chatRealtimeUrl(cfg, chatroomId) },
85
+ onEvent: actions.onEvent,
86
+ onError: actions.onError,
87
+ };
88
+ }
89
+
90
+ /** The 4 s foreground re-read. `action` is fully qualified (`"<service>.<action>"`). */
91
+ export function livePollDirective(action: string, intervalMs = CHAT_LIVE_POLL_MS): PollDirective {
92
+ return { id: CHAT_LIVE_POLL_ID, intervalMs, action, immediate: false };
93
+ }
94
+
95
+ /** What `load` returns beside its state to keep the conversation live: the stream when a
96
+ * channel is configured, else the poll. Nothing when there is no conversation. The
97
+ * service's actions must be named `onStreamEvent`, `onStreamError` and `refresh`. */
98
+ export function liveDirectives(
99
+ cfg: ChatRealtimeConfig | null,
100
+ chatroomId: string,
101
+ service: string,
102
+ ): { live: ChatLiveMode; _stream?: StreamDirective; _poll?: PollDirective } {
103
+ if (!chatroomId) return { live: "off" };
104
+ const stream = liveThreadDirective(cfg, chatroomId, { onEvent: "onStreamEvent", onError: "onStreamError" });
105
+ if (stream) return { live: "stream", _stream: stream };
106
+ return { live: "poll", _poll: livePollDirective(`${service}.refresh`) };
107
+ }
108
+
109
+ /** What `onStreamError` returns beside its state: the stream is gone, so poll. */
110
+ export function liveFallback(service: string): { live: ChatLiveMode; _poll: PollDirective } {
111
+ return { live: "poll", _poll: livePollDirective(`${service}.refresh`) };
112
+ }
113
+
114
+ /**
115
+ * Fold re-read requests so a burst costs one read.
116
+ *
117
+ * Requests made in the same tick share one read. A request made while a read is in
118
+ * flight gets ONE trailing read after it — never more than one, however many arrive —
119
+ * because the in-flight read may have left the server before the change that prompted
120
+ * the request, and returning its answer would drop that message.
121
+ */
122
+ export function createReloadGate<T>(read: () => Promise<T>): { request(): Promise<T> } {
123
+ let queued: Promise<T> | null = null;
124
+ let running: Promise<void> | null = null;
125
+ return {
126
+ request() {
127
+ if (queued) return queued;
128
+ const prior = running ?? Promise.resolve();
129
+ const next = prior.then(() => {
130
+ queued = null;
131
+ return read();
132
+ });
133
+ queued = next;
134
+ const settled = next.then(() => undefined, () => undefined);
135
+ running = settled;
136
+ void settled.then(() => {
137
+ if (running === settled) running = null;
138
+ });
139
+ return next;
140
+ },
141
+ };
142
+ }
143
+
144
+ /**
145
+ * One chat token per thread VISIT.
146
+ *
147
+ * Every chat-web call needs a token, and minting one is a request of its own — so a thread
148
+ * that re-reads every 4 s would otherwise mint every 4 s. `get()` mints on first use and
149
+ * shares that token with every read and send; `reset()` starts a new visit; `drop(p)`
150
+ * forgets a token after a call that used it failed (an expired token costs one failed call,
151
+ * and the next one mints again). `drop` only forgets THAT token: a late failure from an
152
+ * earlier visit must not throw away the token the current visit just minted.
153
+ */
154
+ export function createVisitToken(mint: () => Promise<string>): {
155
+ get(): Promise<string>;
156
+ drop(token: Promise<string> | null): void;
157
+ reset(): void;
158
+ } {
159
+ let current: Promise<string> | null = null;
160
+ const drop = (token: Promise<string> | null): void => {
161
+ if (token && current === token) current = null;
162
+ };
163
+ return {
164
+ get() {
165
+ if (!current) {
166
+ const minted = mint();
167
+ current = minted;
168
+ minted.catch(() => drop(minted));
169
+ }
170
+ return current;
171
+ },
172
+ drop,
173
+ reset() {
174
+ current = null;
175
+ },
176
+ };
177
+ }
178
+
179
+ /** Did a chat-web call fail because its token was refused? The status chat-web uses for an
180
+ * expired chatToken is NOT verified against a live session: 401 and 403 are both treated as
181
+ * "refused", and either way a retry with the same message id is the same send intent, so a
182
+ * wrong guess costs one extra request, never a second message. Any other failure may have
183
+ * posted the message, so it is not retried. */
184
+ export function isTokenRejected(e: unknown): boolean {
185
+ return /HTTP 40[13]\b/.test(String((e as Error)?.message ?? e ?? ""));
186
+ }
187
+
188
+ /** UUID v4 for a send's idempotency id (the worker realm has no crypto.randomUUID). */
189
+ export function uuidV4(): string {
190
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
191
+ const r = Math.floor(Math.random() * 16);
192
+ return (c === "x" ? r : (r & 0x3) | 0x8).toString(16);
193
+ });
194
+ }
195
+
196
+ /**
197
+ * Send ids that belong to the INTENT, not the tap.
198
+ *
199
+ * The same id on a retry is the same send to chat-web, so the server keeps one message. A
200
+ * send that failed ambiguously (a gateway timeout after the backend stored it) and is tapped
201
+ * again must reuse its id, or the business receives the message twice. An intent is the
202
+ * conversation plus the exact text; it is settled once the send succeeds, and any other text
203
+ * is a new intent.
204
+ */
205
+ export function createSendIntents(): { idFor(chatroomId: string, text: string): string; settle(chatroomId: string, text: string): void } {
206
+ const ids = new Map<string, string>();
207
+ const keyOf = (chatroomId: string, text: string) => `${chatroomId}\u0000${text}`;
208
+ return {
209
+ idFor(chatroomId, text) {
210
+ const key = keyOf(chatroomId, text);
211
+ let id = ids.get(key);
212
+ if (!id) { id = uuidV4(); ids.set(key, id); }
213
+ return id;
214
+ },
215
+ settle(chatroomId, text) {
216
+ ids.delete(keyOf(chatroomId, text));
217
+ },
218
+ };
219
+ }
220
+
221
+ /** Post with the visit's token, re-minting once if chat-web refused the token. Whichever
222
+ * token a failed attempt used is dropped, so a rejected token is never reused. */
223
+ export async function postWithVisitToken(
224
+ token: ReturnType<typeof createVisitToken>,
225
+ send: (chatToken: string) => Promise<void>,
226
+ ): Promise<void> {
227
+ const first = token.get();
228
+ try {
229
+ await send(await first);
230
+ return;
231
+ } catch (e) {
232
+ token.drop(first);
233
+ if (!isTokenRejected(e)) throw e;
234
+ }
235
+ const retry = token.get();
236
+ try {
237
+ await send(await retry);
238
+ } catch (e) {
239
+ token.drop(retry);
240
+ throw e;
241
+ }
242
+ }