@wix/himalaya-cli 0.1740.0 → 0.1742.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 (318) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/locale.d.ts +3 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +7 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +6 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +57 -3
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/l10n.mjs +51 -2
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +6 -0
  7. package/dist/browser-plane/assets.json +5 -5
  8. package/dist/browser-plane/preview-deferred/{4235535ddd6e62ae867fd4d3588054909040428cffec9bea2807693a68e297d9.bin → d13ef703cc8f4d7eaa9b12967b618314b75002b5d4441dedbcc65e3601c4750d.bin} +1 -1
  9. package/dist/browser-plane/sw.js +6 -6
  10. package/dist/cli.mjs +497 -226
  11. package/dist/preview-assets.generated.bin +0 -0
  12. package/guides/getting-started.md +18 -7
  13. package/guides/himi-json-output.md +12 -1
  14. package/guides/himi-skill.md +18 -7
  15. package/guides/one-app-to-himi-app.md +11 -2
  16. package/guides/sdk-reference.json +11 -2
  17. package/guides/skill.md +24 -13
  18. package/package.json +2 -2
  19. package/templates/beauty-salon/l10n/en.json +55 -0
  20. package/templates/beauty-salon/l10n/fr.json +5103 -0
  21. package/templates/beauty-salon/l10n/he.json +319 -0
  22. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +364 -0
  23. package/templates/beauty-salon/recipes/blog-list.json +364 -0
  24. package/templates/beauty-salon/recipes/blog-see-all.json +50 -0
  25. package/templates/beauty-salon/recipes/events-inline-list.json +203 -0
  26. package/templates/beauty-salon/recipes/events-inline.json +284 -0
  27. package/templates/beauty-salon/recipes/members-list.json +445 -0
  28. package/templates/beauty-salon/recipes/plans-card.json +811 -0
  29. package/templates/beauty-salon/recipes/programs-card.json +254 -0
  30. package/templates/beauty-salon/recipes/programs-carousel.json +234 -0
  31. package/templates/beauty-salon/recipes/section-error.json +58 -0
  32. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +207 -0
  33. package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +86 -0
  34. package/templates/beauty-salon/tier5-src/_shared/events-card.ts +33 -0
  35. package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +25 -0
  36. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +82 -0
  37. package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +34 -0
  38. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +167 -0
  39. package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +39 -0
  40. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +267 -0
  41. package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +87 -0
  42. package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +106 -0
  43. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +728 -0
  44. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +21 -0
  45. package/templates/beauty-salon/tier5-src/wix-spaces-app-language/index.ts +18 -3
  46. package/templates/branded-lite/l10n/fr.json +9098 -0
  47. package/templates/branded-lite/l10n/he.json +92 -0
  48. package/templates/branded-lite/recipes/blog-list-thumb-start.json +364 -0
  49. package/templates/branded-lite/recipes/blog-list.json +364 -0
  50. package/templates/branded-lite/recipes/blog-see-all.json +50 -0
  51. package/templates/branded-lite/recipes/events-inline-list.json +203 -0
  52. package/templates/branded-lite/recipes/events-inline.json +284 -0
  53. package/templates/branded-lite/recipes/members-list.json +445 -0
  54. package/templates/branded-lite/recipes/plans-card.json +811 -0
  55. package/templates/branded-lite/recipes/programs-card.json +254 -0
  56. package/templates/branded-lite/recipes/programs-carousel.json +234 -0
  57. package/templates/branded-lite/recipes/section-error.json +58 -0
  58. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +207 -0
  59. package/templates/branded-lite/tier5-src/_shared/events-card.ts +33 -0
  60. package/templates/branded-lite/tier5-src/_shared/events-inline-options.ts +25 -0
  61. package/templates/branded-lite/tier5-src/_shared/events-inline.ts +82 -0
  62. package/templates/branded-lite/tier5-src/_shared/group-privacy.ts +14 -0
  63. package/templates/branded-lite/tier5-src/_shared/member-row-extras.ts +1 -1
  64. package/templates/branded-lite/tier5-src/_shared/members-directory-view.ts +39 -0
  65. package/templates/branded-lite/tier5-src/_shared/members-directory.ts +267 -0
  66. package/templates/branded-lite/tier5-src/_shared/plan-facts.ts +87 -0
  67. package/templates/branded-lite/tier5-src/_shared/plans-section.ts +106 -0
  68. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +728 -0
  69. package/templates/branded-lite/tier5-src/_shared/relative-time.ts +21 -0
  70. package/templates/branded-lite/tier5-src/himi-branded-lite-group/index.ts +11 -4
  71. package/templates/branded-lite/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
  72. package/templates/branded-lite/tier5-src/wix-spaces-app-language/index.ts +18 -3
  73. package/templates/community-club/l10n/en.json +45 -0
  74. package/templates/community-club/l10n/fr.json +3318 -0
  75. package/templates/community-club/l10n/he.json +327 -0
  76. package/templates/community-club/recipes/blog-list-thumb-start.json +364 -0
  77. package/templates/community-club/recipes/blog-list.json +364 -0
  78. package/templates/community-club/recipes/blog-see-all.json +50 -0
  79. package/templates/community-club/recipes/events-inline-list.json +203 -0
  80. package/templates/community-club/recipes/events-inline.json +284 -0
  81. package/templates/community-club/recipes/members-list.json +445 -0
  82. package/templates/community-club/recipes/plans-card.json +811 -0
  83. package/templates/community-club/recipes/programs-card.json +254 -0
  84. package/templates/community-club/recipes/programs-carousel.json +234 -0
  85. package/templates/community-club/recipes/section-error.json +58 -0
  86. package/templates/community-club/tier5-src/_shared/blog-list.ts +207 -0
  87. package/templates/community-club/tier5-src/_shared/detail-presence.ts +51 -0
  88. package/templates/community-club/tier5-src/_shared/events-card.ts +33 -0
  89. package/templates/community-club/tier5-src/_shared/events-inline-options.ts +25 -0
  90. package/templates/community-club/tier5-src/_shared/events-inline.ts +82 -0
  91. package/templates/community-club/tier5-src/_shared/group-privacy.ts +14 -0
  92. package/templates/community-club/tier5-src/_shared/member-activity.ts +34 -0
  93. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +167 -0
  94. package/templates/community-club/tier5-src/_shared/members-directory-view.ts +39 -0
  95. package/templates/community-club/tier5-src/_shared/members-directory.ts +267 -0
  96. package/templates/community-club/tier5-src/_shared/plan-facts.ts +87 -0
  97. package/templates/community-club/tier5-src/_shared/plans-section.ts +106 -0
  98. package/templates/community-club/tier5-src/_shared/programs-section.ts +728 -0
  99. package/templates/community-club/tier5-src/_shared/relative-time.ts +21 -0
  100. package/templates/community-club/tier5-src/himi-branded-lite-group/index.ts +11 -4
  101. package/templates/community-club/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
  102. package/templates/community-club/tier5-src/wix-spaces-app-language/index.ts +18 -3
  103. package/templates/events-meetups/l10n/en.json +45 -0
  104. package/templates/events-meetups/l10n/fr.json +3178 -0
  105. package/templates/events-meetups/l10n/he.json +327 -0
  106. package/templates/events-meetups/recipes/blog-list-thumb-start.json +364 -0
  107. package/templates/events-meetups/recipes/blog-list.json +364 -0
  108. package/templates/events-meetups/recipes/blog-see-all.json +50 -0
  109. package/templates/events-meetups/recipes/events-inline-list.json +203 -0
  110. package/templates/events-meetups/recipes/events-inline.json +284 -0
  111. package/templates/events-meetups/recipes/members-list.json +445 -0
  112. package/templates/events-meetups/recipes/plans-card.json +811 -0
  113. package/templates/events-meetups/recipes/programs-card.json +254 -0
  114. package/templates/events-meetups/recipes/programs-carousel.json +234 -0
  115. package/templates/events-meetups/recipes/section-error.json +58 -0
  116. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +207 -0
  117. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +51 -0
  118. package/templates/events-meetups/tier5-src/_shared/events-card.ts +33 -0
  119. package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +25 -0
  120. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +82 -0
  121. package/templates/events-meetups/tier5-src/_shared/group-privacy.ts +14 -0
  122. package/templates/events-meetups/tier5-src/_shared/member-activity.ts +34 -0
  123. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +167 -0
  124. package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +39 -0
  125. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +267 -0
  126. package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +87 -0
  127. package/templates/events-meetups/tier5-src/_shared/plans-section.ts +106 -0
  128. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +728 -0
  129. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +21 -0
  130. package/templates/events-meetups/tier5-src/himi-branded-lite-group/index.ts +11 -4
  131. package/templates/events-meetups/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
  132. package/templates/events-meetups/tier5-src/wix-spaces-app-language/index.ts +18 -3
  133. package/templates/gym-fitness/l10n/en.json +45 -0
  134. package/templates/gym-fitness/l10n/fr.json +5694 -0
  135. package/templates/gym-fitness/l10n/he.json +307 -0
  136. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +364 -0
  137. package/templates/gym-fitness/recipes/blog-list.json +364 -0
  138. package/templates/gym-fitness/recipes/blog-see-all.json +50 -0
  139. package/templates/gym-fitness/recipes/events-inline-list.json +203 -0
  140. package/templates/gym-fitness/recipes/events-inline.json +284 -0
  141. package/templates/gym-fitness/recipes/members-list.json +445 -0
  142. package/templates/gym-fitness/recipes/plans-card.json +811 -0
  143. package/templates/gym-fitness/recipes/programs-card.json +254 -0
  144. package/templates/gym-fitness/recipes/programs-carousel.json +234 -0
  145. package/templates/gym-fitness/recipes/section-error.json +58 -0
  146. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +207 -0
  147. package/templates/gym-fitness/tier5-src/_shared/events-card.ts +33 -0
  148. package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +25 -0
  149. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +82 -0
  150. package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +34 -0
  151. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +167 -0
  152. package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +39 -0
  153. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +267 -0
  154. package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +87 -0
  155. package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +106 -0
  156. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +728 -0
  157. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +21 -0
  158. package/templates/gym-fitness/tier5-src/wix-spaces-app-language/index.ts +18 -3
  159. package/templates/nonprofit-cause/l10n/en.json +45 -0
  160. package/templates/nonprofit-cause/l10n/fr.json +3766 -0
  161. package/templates/nonprofit-cause/l10n/he.json +307 -0
  162. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +364 -0
  163. package/templates/nonprofit-cause/recipes/blog-list.json +364 -0
  164. package/templates/nonprofit-cause/recipes/blog-see-all.json +50 -0
  165. package/templates/nonprofit-cause/recipes/events-inline-list.json +203 -0
  166. package/templates/nonprofit-cause/recipes/events-inline.json +284 -0
  167. package/templates/nonprofit-cause/recipes/members-list.json +445 -0
  168. package/templates/nonprofit-cause/recipes/plans-card.json +811 -0
  169. package/templates/nonprofit-cause/recipes/programs-card.json +254 -0
  170. package/templates/nonprofit-cause/recipes/programs-carousel.json +234 -0
  171. package/templates/nonprofit-cause/recipes/section-error.json +58 -0
  172. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +207 -0
  173. package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +33 -0
  174. package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +25 -0
  175. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +82 -0
  176. package/templates/nonprofit-cause/tier5-src/_shared/group-privacy.ts +14 -0
  177. package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +34 -0
  178. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +167 -0
  179. package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +39 -0
  180. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +267 -0
  181. package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +87 -0
  182. package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +106 -0
  183. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +728 -0
  184. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +21 -0
  185. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group/index.ts +11 -4
  186. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
  187. package/templates/nonprofit-cause/tier5-src/wix-spaces-app-language/index.ts +18 -3
  188. package/templates/podcast-creator/l10n/en.json +45 -0
  189. package/templates/podcast-creator/l10n/fr.json +3608 -0
  190. package/templates/podcast-creator/l10n/he.json +311 -0
  191. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +364 -0
  192. package/templates/podcast-creator/recipes/blog-list.json +364 -0
  193. package/templates/podcast-creator/recipes/blog-see-all.json +50 -0
  194. package/templates/podcast-creator/recipes/events-inline-list.json +203 -0
  195. package/templates/podcast-creator/recipes/events-inline.json +284 -0
  196. package/templates/podcast-creator/recipes/members-list.json +445 -0
  197. package/templates/podcast-creator/recipes/plans-card.json +811 -0
  198. package/templates/podcast-creator/recipes/programs-card.json +254 -0
  199. package/templates/podcast-creator/recipes/programs-carousel.json +234 -0
  200. package/templates/podcast-creator/recipes/section-error.json +58 -0
  201. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +207 -0
  202. package/templates/podcast-creator/tier5-src/_shared/events-card.ts +33 -0
  203. package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +25 -0
  204. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +82 -0
  205. package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +34 -0
  206. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +167 -0
  207. package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +39 -0
  208. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +267 -0
  209. package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +87 -0
  210. package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +106 -0
  211. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +728 -0
  212. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +21 -0
  213. package/templates/podcast-creator/tier5-src/wix-spaces-app-language/index.ts +18 -3
  214. package/templates/portfolio-creative/l10n/en.json +45 -0
  215. package/templates/portfolio-creative/l10n/fr.json +4197 -0
  216. package/templates/portfolio-creative/l10n/he.json +335 -0
  217. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +364 -0
  218. package/templates/portfolio-creative/recipes/blog-list.json +364 -0
  219. package/templates/portfolio-creative/recipes/blog-see-all.json +50 -0
  220. package/templates/portfolio-creative/recipes/events-inline-list.json +203 -0
  221. package/templates/portfolio-creative/recipes/events-inline.json +284 -0
  222. package/templates/portfolio-creative/recipes/members-list.json +445 -0
  223. package/templates/portfolio-creative/recipes/plans-card.json +811 -0
  224. package/templates/portfolio-creative/recipes/programs-card.json +254 -0
  225. package/templates/portfolio-creative/recipes/programs-carousel.json +234 -0
  226. package/templates/portfolio-creative/recipes/section-error.json +58 -0
  227. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +207 -0
  228. package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +33 -0
  229. package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +25 -0
  230. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +82 -0
  231. package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +34 -0
  232. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +167 -0
  233. package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +39 -0
  234. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +267 -0
  235. package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +87 -0
  236. package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +106 -0
  237. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +728 -0
  238. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +21 -0
  239. package/templates/portfolio-creative/tier5-src/wix-spaces-app-language/index.ts +18 -3
  240. package/templates/restaurant/l10n/en.json +45 -0
  241. package/templates/restaurant/l10n/fr.json +3845 -0
  242. package/templates/restaurant/l10n/he.json +335 -0
  243. package/templates/restaurant/recipes/blog-list-thumb-start.json +364 -0
  244. package/templates/restaurant/recipes/blog-list.json +364 -0
  245. package/templates/restaurant/recipes/blog-see-all.json +50 -0
  246. package/templates/restaurant/recipes/events-inline-list.json +203 -0
  247. package/templates/restaurant/recipes/events-inline.json +284 -0
  248. package/templates/restaurant/recipes/members-list.json +445 -0
  249. package/templates/restaurant/recipes/plans-card.json +811 -0
  250. package/templates/restaurant/recipes/programs-card.json +254 -0
  251. package/templates/restaurant/recipes/programs-carousel.json +234 -0
  252. package/templates/restaurant/recipes/section-error.json +58 -0
  253. package/templates/restaurant/tier5-src/_shared/blog-list.ts +207 -0
  254. package/templates/restaurant/tier5-src/_shared/events-card.ts +33 -0
  255. package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +25 -0
  256. package/templates/restaurant/tier5-src/_shared/events-inline.ts +82 -0
  257. package/templates/restaurant/tier5-src/_shared/member-activity.ts +34 -0
  258. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +167 -0
  259. package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +39 -0
  260. package/templates/restaurant/tier5-src/_shared/members-directory.ts +267 -0
  261. package/templates/restaurant/tier5-src/_shared/plan-facts.ts +87 -0
  262. package/templates/restaurant/tier5-src/_shared/plans-section.ts +106 -0
  263. package/templates/restaurant/tier5-src/_shared/programs-section.ts +728 -0
  264. package/templates/restaurant/tier5-src/_shared/relative-time.ts +21 -0
  265. package/templates/restaurant/tier5-src/wix-spaces-app-language/index.ts +18 -3
  266. package/templates/retail-store/l10n/en.json +60 -0
  267. package/templates/retail-store/l10n/fr.json +3621 -0
  268. package/templates/retail-store/l10n/he.json +355 -0
  269. package/templates/retail-store/recipes/blog-list-thumb-start.json +364 -0
  270. package/templates/retail-store/recipes/blog-list.json +364 -0
  271. package/templates/retail-store/recipes/blog-see-all.json +50 -0
  272. package/templates/retail-store/recipes/events-inline-list.json +203 -0
  273. package/templates/retail-store/recipes/events-inline.json +284 -0
  274. package/templates/retail-store/recipes/members-list.json +445 -0
  275. package/templates/retail-store/recipes/plans-card.json +811 -0
  276. package/templates/retail-store/recipes/programs-card.json +254 -0
  277. package/templates/retail-store/recipes/programs-carousel.json +234 -0
  278. package/templates/retail-store/recipes/section-error.json +58 -0
  279. package/templates/retail-store/tier5-src/_shared/blog-list.ts +207 -0
  280. package/templates/retail-store/tier5-src/_shared/event-registration.ts +86 -0
  281. package/templates/retail-store/tier5-src/_shared/events-card.ts +33 -0
  282. package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +25 -0
  283. package/templates/retail-store/tier5-src/_shared/events-inline.ts +82 -0
  284. package/templates/retail-store/tier5-src/_shared/member-activity.ts +34 -0
  285. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +167 -0
  286. package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +39 -0
  287. package/templates/retail-store/tier5-src/_shared/members-directory.ts +267 -0
  288. package/templates/retail-store/tier5-src/_shared/plan-facts.ts +87 -0
  289. package/templates/retail-store/tier5-src/_shared/plans-section.ts +106 -0
  290. package/templates/retail-store/tier5-src/_shared/programs-section.ts +728 -0
  291. package/templates/retail-store/tier5-src/_shared/relative-time.ts +21 -0
  292. package/templates/retail-store/tier5-src/wix-spaces-app-language/index.ts +18 -3
  293. package/templates/yoga-studio/l10n/en.json +24 -0
  294. package/templates/yoga-studio/l10n/fr.json +4595 -0
  295. package/templates/yoga-studio/l10n/he.json +132 -0
  296. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +364 -0
  297. package/templates/yoga-studio/recipes/blog-list.json +364 -0
  298. package/templates/yoga-studio/recipes/blog-see-all.json +50 -0
  299. package/templates/yoga-studio/recipes/events-inline-list.json +203 -0
  300. package/templates/yoga-studio/recipes/events-inline.json +284 -0
  301. package/templates/yoga-studio/recipes/members-list.json +445 -0
  302. package/templates/yoga-studio/recipes/plans-card.json +811 -0
  303. package/templates/yoga-studio/recipes/programs-card.json +254 -0
  304. package/templates/yoga-studio/recipes/programs-carousel.json +234 -0
  305. package/templates/yoga-studio/recipes/section-error.json +58 -0
  306. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +207 -0
  307. package/templates/yoga-studio/tier5-src/_shared/events-card.ts +33 -0
  308. package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +25 -0
  309. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +82 -0
  310. package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +34 -0
  311. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +167 -0
  312. package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +39 -0
  313. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +267 -0
  314. package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +87 -0
  315. package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +106 -0
  316. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +728 -0
  317. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +21 -0
  318. package/templates/yoga-studio/tier5-src/wix-spaces-app-language/index.ts +18 -3
@@ -0,0 +1,21 @@
1
+ // "2 hours ago" for a recent timestamp, the plain date once it is a week old (the One App blog list and cards).
2
+ // Pure and Intl-free: the absolute date comes from engine-intl, whose fallback never throws on the wrist engines.
3
+ import { copyParam, copyPlural } from "./himi-copy.js";
4
+ import { formatDateMedium } from "./engine-intl.js";
5
+
6
+ const MINUTE = 60_000;
7
+ const HOUR = 60 * MINUTE;
8
+ const DAY = 24 * HOUR;
9
+ const RELATIVE_DAYS = 7;
10
+
11
+ /** "" when `iso` is missing or not a date. A time in the future (a clock skew) reads as the date, never "-3 minutes ago". */
12
+ export function relativeTime(iso: string | undefined, now: number): string {
13
+ const at = iso ? Date.parse(iso) : NaN;
14
+ if (!Number.isFinite(at)) return "";
15
+ const age = now - at;
16
+ if (age < 0 || age >= RELATIVE_DAYS * DAY) return formatDateMedium(new Date(at));
17
+ if (age < MINUTE) return copyParam("relativeTime.justNow", "Just now");
18
+ if (age < HOUR) return copyPlural("relativeTime.minutesAgo", "{n, plural, one {# minute ago} other {# minutes ago}}", Math.floor(age / MINUTE));
19
+ if (age < DAY) return copyPlural("relativeTime.hoursAgo", "{n, plural, one {# hour ago} other {# hours ago}}", Math.floor(age / HOUR));
20
+ return copyPlural("relativeTime.daysAgo", "{n, plural, one {# day ago} other {# days ago}}", Math.floor(age / DAY));
21
+ }
@@ -9,13 +9,25 @@ import { dispatch } from "@himalaya/dispatch";
9
9
  interface Row { id: string; name: string; subtitle: string; selected: boolean }
10
10
  interface S { status: "ready"; options: Row[] }
11
11
 
12
- /** Locales with catalogs (`tools/l10n/catalog.<tag>.json`) + LocaleStore support. */
13
- const LOCALE_OPTIONS: Omit<Row, "subtitle" | "selected">[] = [
12
+ /** What a host that cannot say which languages the app ships offers: the three the template's first catalogs cover. A host
13
+ * that answers `locale.get` with its `available` list (every current one) replaces this with the real list. */
14
+ const DEFAULT_OPTIONS: Omit<Row, "subtitle" | "selected">[] = [
14
15
  { id: "en", name: "English" },
15
16
  { id: "es", name: "Español" },
16
17
  { id: "he", name: "עברית" },
17
18
  ];
18
19
 
20
+ let LOCALE_OPTIONS = DEFAULT_OPTIONS;
21
+
22
+ /** The host's `available` list (`{ tag, nativeName }[]`), or undefined when it sent none that can be used. */
23
+ function optionsFrom(payload: { available?: unknown } | null): Omit<Row, "subtitle" | "selected">[] | undefined {
24
+ if (!Array.isArray(payload?.available)) return undefined;
25
+ const rows = (payload.available as { tag?: unknown; nativeName?: unknown }[])
26
+ .filter((a) => typeof a?.tag === "string" && a.tag !== "")
27
+ .map((a) => ({ id: a.tag as string, name: typeof a.nativeName === "string" && a.nativeName ? a.nativeName : (a.tag as string) }));
28
+ return rows.length ? rows : undefined;
29
+ }
30
+
19
31
  function withSelected(selected: string): Row[] {
20
32
  return LOCALE_OPTIONS.map((o) => ({
21
33
  ...o,
@@ -43,11 +55,14 @@ const svc = defineService<S, {
43
55
  },
44
56
  hydrate: async (s) => {
45
57
  try {
46
- const payload = (await dispatch("locale.get")) as { tag?: string } | null;
58
+ const payload = (await dispatch("locale.get")) as { tag?: string; available?: unknown } | null;
59
+ // The app's own languages, as its host reports them: a catalog added to the app is selectable with no change here.
60
+ LOCALE_OPTIONS = optionsFrom(payload) ?? DEFAULT_OPTIONS;
47
61
  const tag = typeof payload?.tag === "string" ? payload.tag : "en";
48
62
  if (LOCALE_OPTIONS.some((o) => o.id === tag)) {
49
63
  return { ...s, options: withSelected(tag) };
50
64
  }
65
+ return { ...s, options: withSelected("") };
51
66
  } catch {
52
67
  // ignore — leave default Selected
53
68
  }