@wix/himalaya-cli 0.1776.0 → 0.1778.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 (358) hide show
  1. package/dist/cli.mjs +456 -69
  2. package/guides/himi-json-output.md +4 -1
  3. package/guides/one-app-section-mappings.md +5 -8
  4. package/guides/one-app-to-himi-app.md +29 -10
  5. package/package.json +2 -2
  6. package/templates/beauty-salon/dev/index.ts +2 -2
  7. package/templates/beauty-salon/l10n/ar.json +5 -0
  8. package/templates/beauty-salon/l10n/cs.json +5 -0
  9. package/templates/beauty-salon/l10n/da.json +5 -0
  10. package/templates/beauty-salon/l10n/de.json +5 -0
  11. package/templates/beauty-salon/l10n/el.json +5 -0
  12. package/templates/beauty-salon/l10n/es.json +5 -0
  13. package/templates/beauty-salon/l10n/fi.json +5 -0
  14. package/templates/beauty-salon/l10n/fr.json +5 -0
  15. package/templates/beauty-salon/l10n/he.json +4 -0
  16. package/templates/beauty-salon/l10n/hu.json +5 -0
  17. package/templates/beauty-salon/l10n/id.json +5 -0
  18. package/templates/beauty-salon/l10n/it.json +5 -0
  19. package/templates/beauty-salon/l10n/ja.json +5 -0
  20. package/templates/beauty-salon/l10n/ko.json +5 -0
  21. package/templates/beauty-salon/l10n/lt.json +5 -0
  22. package/templates/beauty-salon/l10n/nl.json +5 -0
  23. package/templates/beauty-salon/l10n/no.json +5 -0
  24. package/templates/beauty-salon/l10n/pl.json +5 -0
  25. package/templates/beauty-salon/l10n/pt.json +5 -0
  26. package/templates/beauty-salon/l10n/ru.json +5 -0
  27. package/templates/beauty-salon/l10n/sv.json +5 -0
  28. package/templates/beauty-salon/l10n/th.json +5 -0
  29. package/templates/beauty-salon/l10n/tr.json +5 -0
  30. package/templates/beauty-salon/l10n/uk.json +5 -0
  31. package/templates/beauty-salon/l10n/vi.json +5 -0
  32. package/templates/beauty-salon/l10n/zh.json +5 -0
  33. package/templates/beauty-salon/tier5-src/_shared/weekly-goal.ts +7 -3
  34. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +55 -3
  35. package/templates/branded-lite/dev/index.ts +2 -2
  36. package/templates/branded-lite/l10n/ar.json +15 -0
  37. package/templates/branded-lite/l10n/cs.json +15 -0
  38. package/templates/branded-lite/l10n/da.json +15 -0
  39. package/templates/branded-lite/l10n/de.json +15 -0
  40. package/templates/branded-lite/l10n/el.json +15 -0
  41. package/templates/branded-lite/l10n/es.json +15 -0
  42. package/templates/branded-lite/l10n/fi.json +15 -0
  43. package/templates/branded-lite/l10n/fr.json +15 -0
  44. package/templates/branded-lite/l10n/he.json +12 -0
  45. package/templates/branded-lite/l10n/hu.json +15 -0
  46. package/templates/branded-lite/l10n/id.json +15 -0
  47. package/templates/branded-lite/l10n/it.json +15 -0
  48. package/templates/branded-lite/l10n/ja.json +15 -0
  49. package/templates/branded-lite/l10n/ko.json +15 -0
  50. package/templates/branded-lite/l10n/lt.json +15 -0
  51. package/templates/branded-lite/l10n/nl.json +15 -0
  52. package/templates/branded-lite/l10n/no.json +15 -0
  53. package/templates/branded-lite/l10n/pl.json +15 -0
  54. package/templates/branded-lite/l10n/pt.json +15 -0
  55. package/templates/branded-lite/l10n/ru.json +15 -0
  56. package/templates/branded-lite/l10n/sv.json +15 -0
  57. package/templates/branded-lite/l10n/th.json +15 -0
  58. package/templates/branded-lite/l10n/tr.json +15 -0
  59. package/templates/branded-lite/l10n/uk.json +15 -0
  60. package/templates/branded-lite/l10n/vi.json +15 -0
  61. package/templates/branded-lite/l10n/zh.json +15 -0
  62. package/templates/branded-lite/recipes/blog-categories.json +115 -0
  63. package/templates/branded-lite/recipes/event-schedule.json +114 -0
  64. package/templates/branded-lite/recipes/groups-newsfeed.json +245 -0
  65. package/templates/branded-lite/recipes/loyalty-offering.json +241 -0
  66. package/templates/branded-lite/recipes/loyalty-status.json +173 -0
  67. package/templates/branded-lite/recipes/members-carousel.json +144 -0
  68. package/templates/branded-lite/recipes/performance-tracker.json +325 -0
  69. package/templates/branded-lite/recipes/podcasts-widget.json +280 -0
  70. package/templates/branded-lite/recipes/products-search-bar.json +139 -0
  71. package/templates/branded-lite/recipes/wishlist-grid.json +236 -0
  72. package/templates/branded-lite/tier5-src/_shared/blog-categories.ts +62 -0
  73. package/templates/branded-lite/tier5-src/_shared/event-agenda.ts +122 -0
  74. package/templates/branded-lite/tier5-src/_shared/event-schedule-section.ts +91 -0
  75. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +2 -2
  76. package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +105 -0
  77. package/templates/branded-lite/tier5-src/_shared/loyalty-offering-section.ts +88 -0
  78. package/templates/branded-lite/tier5-src/_shared/loyalty-status-section.ts +88 -0
  79. package/templates/branded-lite/tier5-src/_shared/members-directory.ts +9 -3
  80. package/templates/branded-lite/tier5-src/_shared/performance-tracker-section.ts +120 -0
  81. package/templates/branded-lite/tier5-src/_shared/performance-tracker-weeks.ts +71 -0
  82. package/templates/branded-lite/tier5-src/_shared/podcast-section.ts +131 -0
  83. package/templates/branded-lite/tier5-src/_shared/saved-products-section.ts +64 -0
  84. package/templates/branded-lite/tier5-src/_shared/weekly-goal.ts +7 -3
  85. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +55 -3
  86. package/templates/brandy/tier5-src/himi-store-account/index.ts +55 -3
  87. package/templates/community-club/dev/index.ts +2 -2
  88. package/templates/community-club/l10n/ar.json +5 -0
  89. package/templates/community-club/l10n/cs.json +5 -0
  90. package/templates/community-club/l10n/da.json +5 -0
  91. package/templates/community-club/l10n/de.json +5 -0
  92. package/templates/community-club/l10n/el.json +5 -0
  93. package/templates/community-club/l10n/es.json +5 -0
  94. package/templates/community-club/l10n/fi.json +5 -0
  95. package/templates/community-club/l10n/fr.json +5 -0
  96. package/templates/community-club/l10n/he.json +4 -0
  97. package/templates/community-club/l10n/hu.json +5 -0
  98. package/templates/community-club/l10n/id.json +5 -0
  99. package/templates/community-club/l10n/it.json +5 -0
  100. package/templates/community-club/l10n/ja.json +5 -0
  101. package/templates/community-club/l10n/ko.json +5 -0
  102. package/templates/community-club/l10n/lt.json +5 -0
  103. package/templates/community-club/l10n/nl.json +5 -0
  104. package/templates/community-club/l10n/no.json +5 -0
  105. package/templates/community-club/l10n/pl.json +5 -0
  106. package/templates/community-club/l10n/pt.json +5 -0
  107. package/templates/community-club/l10n/ru.json +5 -0
  108. package/templates/community-club/l10n/sv.json +5 -0
  109. package/templates/community-club/l10n/th.json +5 -0
  110. package/templates/community-club/l10n/tr.json +5 -0
  111. package/templates/community-club/l10n/uk.json +5 -0
  112. package/templates/community-club/l10n/vi.json +5 -0
  113. package/templates/community-club/l10n/zh.json +5 -0
  114. package/templates/community-club/tier5-src/_shared/weekly-goal.ts +7 -3
  115. package/templates/community-club/tier5-src/himi-store-account/index.ts +55 -3
  116. package/templates/conference/tier5-src/himi-store-account/index.ts +55 -3
  117. package/templates/events-meetups/dev/index.ts +2 -2
  118. package/templates/events-meetups/l10n/ar.json +5 -0
  119. package/templates/events-meetups/l10n/cs.json +5 -0
  120. package/templates/events-meetups/l10n/da.json +5 -0
  121. package/templates/events-meetups/l10n/de.json +5 -0
  122. package/templates/events-meetups/l10n/el.json +5 -0
  123. package/templates/events-meetups/l10n/es.json +5 -0
  124. package/templates/events-meetups/l10n/fi.json +5 -0
  125. package/templates/events-meetups/l10n/fr.json +5 -0
  126. package/templates/events-meetups/l10n/he.json +4 -0
  127. package/templates/events-meetups/l10n/hu.json +5 -0
  128. package/templates/events-meetups/l10n/id.json +5 -0
  129. package/templates/events-meetups/l10n/it.json +5 -0
  130. package/templates/events-meetups/l10n/ja.json +5 -0
  131. package/templates/events-meetups/l10n/ko.json +5 -0
  132. package/templates/events-meetups/l10n/lt.json +5 -0
  133. package/templates/events-meetups/l10n/nl.json +5 -0
  134. package/templates/events-meetups/l10n/no.json +5 -0
  135. package/templates/events-meetups/l10n/pl.json +5 -0
  136. package/templates/events-meetups/l10n/pt.json +5 -0
  137. package/templates/events-meetups/l10n/ru.json +5 -0
  138. package/templates/events-meetups/l10n/sv.json +5 -0
  139. package/templates/events-meetups/l10n/th.json +5 -0
  140. package/templates/events-meetups/l10n/tr.json +5 -0
  141. package/templates/events-meetups/l10n/uk.json +5 -0
  142. package/templates/events-meetups/l10n/vi.json +5 -0
  143. package/templates/events-meetups/l10n/zh.json +5 -0
  144. package/templates/events-meetups/tier5-src/_shared/weekly-goal.ts +7 -3
  145. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +55 -3
  146. package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +7 -3
  147. package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +55 -3
  148. package/templates/gym-fitness/dev/index.ts +2 -2
  149. package/templates/gym-fitness/l10n/ar.json +5 -0
  150. package/templates/gym-fitness/l10n/cs.json +5 -0
  151. package/templates/gym-fitness/l10n/da.json +5 -0
  152. package/templates/gym-fitness/l10n/de.json +5 -0
  153. package/templates/gym-fitness/l10n/el.json +5 -0
  154. package/templates/gym-fitness/l10n/es.json +5 -0
  155. package/templates/gym-fitness/l10n/fi.json +5 -0
  156. package/templates/gym-fitness/l10n/fr.json +5 -0
  157. package/templates/gym-fitness/l10n/he.json +4 -0
  158. package/templates/gym-fitness/l10n/hu.json +5 -0
  159. package/templates/gym-fitness/l10n/id.json +5 -0
  160. package/templates/gym-fitness/l10n/it.json +5 -0
  161. package/templates/gym-fitness/l10n/ja.json +5 -0
  162. package/templates/gym-fitness/l10n/ko.json +5 -0
  163. package/templates/gym-fitness/l10n/lt.json +5 -0
  164. package/templates/gym-fitness/l10n/nl.json +5 -0
  165. package/templates/gym-fitness/l10n/no.json +5 -0
  166. package/templates/gym-fitness/l10n/pl.json +5 -0
  167. package/templates/gym-fitness/l10n/pt.json +5 -0
  168. package/templates/gym-fitness/l10n/ru.json +5 -0
  169. package/templates/gym-fitness/l10n/sv.json +5 -0
  170. package/templates/gym-fitness/l10n/th.json +5 -0
  171. package/templates/gym-fitness/l10n/tr.json +5 -0
  172. package/templates/gym-fitness/l10n/uk.json +5 -0
  173. package/templates/gym-fitness/l10n/vi.json +5 -0
  174. package/templates/gym-fitness/l10n/zh.json +5 -0
  175. package/templates/gym-fitness/tier5-src/_shared/weekly-goal.ts +7 -3
  176. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +55 -3
  177. package/templates/medical-services/tier5-src/_shared/weekly-goal.ts +7 -3
  178. package/templates/medical-services/tier5-src/himi-store-account/index.ts +55 -3
  179. package/templates/nonprofit-cause/dev/index.ts +2 -2
  180. package/templates/nonprofit-cause/l10n/ar.json +5 -0
  181. package/templates/nonprofit-cause/l10n/cs.json +5 -0
  182. package/templates/nonprofit-cause/l10n/da.json +5 -0
  183. package/templates/nonprofit-cause/l10n/de.json +5 -0
  184. package/templates/nonprofit-cause/l10n/el.json +5 -0
  185. package/templates/nonprofit-cause/l10n/es.json +5 -0
  186. package/templates/nonprofit-cause/l10n/fi.json +5 -0
  187. package/templates/nonprofit-cause/l10n/fr.json +5 -0
  188. package/templates/nonprofit-cause/l10n/he.json +4 -0
  189. package/templates/nonprofit-cause/l10n/hu.json +5 -0
  190. package/templates/nonprofit-cause/l10n/id.json +5 -0
  191. package/templates/nonprofit-cause/l10n/it.json +5 -0
  192. package/templates/nonprofit-cause/l10n/ja.json +5 -0
  193. package/templates/nonprofit-cause/l10n/ko.json +5 -0
  194. package/templates/nonprofit-cause/l10n/lt.json +5 -0
  195. package/templates/nonprofit-cause/l10n/nl.json +5 -0
  196. package/templates/nonprofit-cause/l10n/no.json +5 -0
  197. package/templates/nonprofit-cause/l10n/pl.json +5 -0
  198. package/templates/nonprofit-cause/l10n/pt.json +5 -0
  199. package/templates/nonprofit-cause/l10n/ru.json +5 -0
  200. package/templates/nonprofit-cause/l10n/sv.json +5 -0
  201. package/templates/nonprofit-cause/l10n/th.json +5 -0
  202. package/templates/nonprofit-cause/l10n/tr.json +5 -0
  203. package/templates/nonprofit-cause/l10n/uk.json +5 -0
  204. package/templates/nonprofit-cause/l10n/vi.json +5 -0
  205. package/templates/nonprofit-cause/l10n/zh.json +5 -0
  206. package/templates/nonprofit-cause/tier5-src/_shared/weekly-goal.ts +7 -3
  207. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +55 -3
  208. package/templates/personal-fitness-trainer/dev/index.ts +2 -2
  209. package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +7 -3
  210. package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +55 -3
  211. package/templates/podcast-creator/dev/index.ts +2 -2
  212. package/templates/podcast-creator/l10n/ar.json +5 -0
  213. package/templates/podcast-creator/l10n/cs.json +5 -0
  214. package/templates/podcast-creator/l10n/da.json +5 -0
  215. package/templates/podcast-creator/l10n/de.json +5 -0
  216. package/templates/podcast-creator/l10n/el.json +5 -0
  217. package/templates/podcast-creator/l10n/es.json +5 -0
  218. package/templates/podcast-creator/l10n/fi.json +5 -0
  219. package/templates/podcast-creator/l10n/fr.json +5 -0
  220. package/templates/podcast-creator/l10n/he.json +4 -0
  221. package/templates/podcast-creator/l10n/hu.json +5 -0
  222. package/templates/podcast-creator/l10n/id.json +5 -0
  223. package/templates/podcast-creator/l10n/it.json +5 -0
  224. package/templates/podcast-creator/l10n/ja.json +5 -0
  225. package/templates/podcast-creator/l10n/ko.json +5 -0
  226. package/templates/podcast-creator/l10n/lt.json +5 -0
  227. package/templates/podcast-creator/l10n/nl.json +5 -0
  228. package/templates/podcast-creator/l10n/no.json +5 -0
  229. package/templates/podcast-creator/l10n/pl.json +5 -0
  230. package/templates/podcast-creator/l10n/pt.json +5 -0
  231. package/templates/podcast-creator/l10n/ru.json +5 -0
  232. package/templates/podcast-creator/l10n/sv.json +5 -0
  233. package/templates/podcast-creator/l10n/th.json +5 -0
  234. package/templates/podcast-creator/l10n/tr.json +5 -0
  235. package/templates/podcast-creator/l10n/uk.json +5 -0
  236. package/templates/podcast-creator/l10n/vi.json +5 -0
  237. package/templates/podcast-creator/l10n/zh.json +5 -0
  238. package/templates/podcast-creator/tier5-src/_shared/weekly-goal.ts +7 -3
  239. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +55 -3
  240. package/templates/portfolio-creative/dev/index.ts +2 -2
  241. package/templates/portfolio-creative/l10n/ar.json +5 -0
  242. package/templates/portfolio-creative/l10n/cs.json +5 -0
  243. package/templates/portfolio-creative/l10n/da.json +5 -0
  244. package/templates/portfolio-creative/l10n/de.json +5 -0
  245. package/templates/portfolio-creative/l10n/el.json +5 -0
  246. package/templates/portfolio-creative/l10n/es.json +5 -0
  247. package/templates/portfolio-creative/l10n/fi.json +5 -0
  248. package/templates/portfolio-creative/l10n/fr.json +5 -0
  249. package/templates/portfolio-creative/l10n/he.json +4 -0
  250. package/templates/portfolio-creative/l10n/hu.json +5 -0
  251. package/templates/portfolio-creative/l10n/id.json +5 -0
  252. package/templates/portfolio-creative/l10n/it.json +5 -0
  253. package/templates/portfolio-creative/l10n/ja.json +5 -0
  254. package/templates/portfolio-creative/l10n/ko.json +5 -0
  255. package/templates/portfolio-creative/l10n/lt.json +5 -0
  256. package/templates/portfolio-creative/l10n/nl.json +5 -0
  257. package/templates/portfolio-creative/l10n/no.json +5 -0
  258. package/templates/portfolio-creative/l10n/pl.json +5 -0
  259. package/templates/portfolio-creative/l10n/pt.json +5 -0
  260. package/templates/portfolio-creative/l10n/ru.json +5 -0
  261. package/templates/portfolio-creative/l10n/sv.json +5 -0
  262. package/templates/portfolio-creative/l10n/th.json +5 -0
  263. package/templates/portfolio-creative/l10n/tr.json +5 -0
  264. package/templates/portfolio-creative/l10n/uk.json +5 -0
  265. package/templates/portfolio-creative/l10n/vi.json +5 -0
  266. package/templates/portfolio-creative/l10n/zh.json +5 -0
  267. package/templates/portfolio-creative/tier5-src/_shared/weekly-goal.ts +7 -3
  268. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +55 -3
  269. package/templates/restaurant/dev/index.ts +2 -2
  270. package/templates/restaurant/l10n/ar.json +5 -0
  271. package/templates/restaurant/l10n/cs.json +5 -0
  272. package/templates/restaurant/l10n/da.json +5 -0
  273. package/templates/restaurant/l10n/de.json +5 -0
  274. package/templates/restaurant/l10n/el.json +5 -0
  275. package/templates/restaurant/l10n/es.json +5 -0
  276. package/templates/restaurant/l10n/fi.json +5 -0
  277. package/templates/restaurant/l10n/fr.json +5 -0
  278. package/templates/restaurant/l10n/he.json +4 -0
  279. package/templates/restaurant/l10n/hu.json +5 -0
  280. package/templates/restaurant/l10n/id.json +5 -0
  281. package/templates/restaurant/l10n/it.json +5 -0
  282. package/templates/restaurant/l10n/ja.json +5 -0
  283. package/templates/restaurant/l10n/ko.json +5 -0
  284. package/templates/restaurant/l10n/lt.json +5 -0
  285. package/templates/restaurant/l10n/nl.json +5 -0
  286. package/templates/restaurant/l10n/no.json +5 -0
  287. package/templates/restaurant/l10n/pl.json +5 -0
  288. package/templates/restaurant/l10n/pt.json +5 -0
  289. package/templates/restaurant/l10n/ru.json +5 -0
  290. package/templates/restaurant/l10n/sv.json +5 -0
  291. package/templates/restaurant/l10n/th.json +5 -0
  292. package/templates/restaurant/l10n/tr.json +5 -0
  293. package/templates/restaurant/l10n/uk.json +5 -0
  294. package/templates/restaurant/l10n/vi.json +5 -0
  295. package/templates/restaurant/l10n/zh.json +5 -0
  296. package/templates/restaurant/tier5-src/_shared/weekly-goal.ts +7 -3
  297. package/templates/restaurant/tier5-src/himi-store-account/index.ts +55 -3
  298. package/templates/retail-store/dev/index.ts +2 -2
  299. package/templates/retail-store/l10n/ar.json +5 -0
  300. package/templates/retail-store/l10n/cs.json +5 -0
  301. package/templates/retail-store/l10n/da.json +5 -0
  302. package/templates/retail-store/l10n/de.json +5 -0
  303. package/templates/retail-store/l10n/el.json +5 -0
  304. package/templates/retail-store/l10n/es.json +5 -0
  305. package/templates/retail-store/l10n/fi.json +5 -0
  306. package/templates/retail-store/l10n/fr.json +5 -0
  307. package/templates/retail-store/l10n/he.json +4 -0
  308. package/templates/retail-store/l10n/hu.json +5 -0
  309. package/templates/retail-store/l10n/id.json +5 -0
  310. package/templates/retail-store/l10n/it.json +5 -0
  311. package/templates/retail-store/l10n/ja.json +5 -0
  312. package/templates/retail-store/l10n/ko.json +5 -0
  313. package/templates/retail-store/l10n/lt.json +5 -0
  314. package/templates/retail-store/l10n/nl.json +5 -0
  315. package/templates/retail-store/l10n/no.json +5 -0
  316. package/templates/retail-store/l10n/pl.json +5 -0
  317. package/templates/retail-store/l10n/pt.json +5 -0
  318. package/templates/retail-store/l10n/ru.json +5 -0
  319. package/templates/retail-store/l10n/sv.json +5 -0
  320. package/templates/retail-store/l10n/th.json +5 -0
  321. package/templates/retail-store/l10n/tr.json +5 -0
  322. package/templates/retail-store/l10n/uk.json +5 -0
  323. package/templates/retail-store/l10n/vi.json +5 -0
  324. package/templates/retail-store/l10n/zh.json +5 -0
  325. package/templates/retail-store/tier5-src/_shared/weekly-goal.ts +7 -3
  326. package/templates/retail-store/tier5-src/himi-store-account/index.ts +55 -3
  327. package/templates/salon-spa/tier5-src/_shared/weekly-goal.ts +7 -3
  328. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +55 -3
  329. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +55 -3
  330. package/templates/yoga-studio/dev/index.ts +2 -2
  331. package/templates/yoga-studio/l10n/ar.json +5 -0
  332. package/templates/yoga-studio/l10n/cs.json +5 -0
  333. package/templates/yoga-studio/l10n/da.json +5 -0
  334. package/templates/yoga-studio/l10n/de.json +5 -0
  335. package/templates/yoga-studio/l10n/el.json +5 -0
  336. package/templates/yoga-studio/l10n/es.json +5 -0
  337. package/templates/yoga-studio/l10n/fi.json +5 -0
  338. package/templates/yoga-studio/l10n/fr.json +5 -0
  339. package/templates/yoga-studio/l10n/he.json +4 -0
  340. package/templates/yoga-studio/l10n/hu.json +5 -0
  341. package/templates/yoga-studio/l10n/id.json +5 -0
  342. package/templates/yoga-studio/l10n/it.json +5 -0
  343. package/templates/yoga-studio/l10n/ja.json +5 -0
  344. package/templates/yoga-studio/l10n/ko.json +5 -0
  345. package/templates/yoga-studio/l10n/lt.json +5 -0
  346. package/templates/yoga-studio/l10n/nl.json +5 -0
  347. package/templates/yoga-studio/l10n/no.json +5 -0
  348. package/templates/yoga-studio/l10n/pl.json +5 -0
  349. package/templates/yoga-studio/l10n/pt.json +5 -0
  350. package/templates/yoga-studio/l10n/ru.json +5 -0
  351. package/templates/yoga-studio/l10n/sv.json +5 -0
  352. package/templates/yoga-studio/l10n/th.json +5 -0
  353. package/templates/yoga-studio/l10n/tr.json +5 -0
  354. package/templates/yoga-studio/l10n/uk.json +5 -0
  355. package/templates/yoga-studio/l10n/vi.json +5 -0
  356. package/templates/yoga-studio/l10n/zh.json +5 -0
  357. package/templates/yoga-studio/tier5-src/_shared/weekly-goal.ts +7 -3
  358. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +55 -3
@@ -0,0 +1,131 @@
1
+ // A page's podcast section as a registrable service: the show's header (cover, title, author, description) and its latest episodes, read
2
+ // from the source section's own RSS feed. The One App's widget shows the latest three and a "View all episodes" link when the feed has more.
3
+ // feedUrl -> the source section's feed (`settings.feedUrl`); a feed that is not an http(s) URL reads nothing and shows the error state,
4
+ // limit -> how many episodes the section lists (the section is a short preview; the template Podcasts screen lists and plays them all),
5
+ // `noMore` is false when the feed has more, which is when the section's "View all episodes" link shows.
6
+ // Reads the same public Wix Podcasts feed gateway as the template Podcasts screen's worker (`createPodcastService`), because a worker has
7
+ // no general `fetch` and the wix_api bridge refuses a third-party URL; the gateway reads the RSS, follows its redirects and owns host
8
+ // safety. A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe podcasts-widget).
9
+ import { defineService } from "@himalaya/state";
10
+ import { formatMonthDay } from "./engine-intl.js";
11
+ import { stashCopy } from "./himi-copy.js";
12
+
13
+ type WixApi = { call: (method: string, path: string, body?: unknown) => Promise<unknown> };
14
+
15
+ export interface PodcastSectionOptions {
16
+ /** The source section's RSS feed URL. */
17
+ feedUrl: string;
18
+ /** How many episodes to list (default 3, the source widget's own count). */
19
+ limit?: number;
20
+ }
21
+
22
+ export interface PodcastEpisodeRow {
23
+ id: string; title: string; subtitle: string; description: string; image: string;
24
+ /** hiddenWhen gates (they hide on TRUE) for the parts an episode has none of. */
25
+ noImage: boolean; noDescription: boolean;
26
+ }
27
+
28
+ export interface PodcastSectionState {
29
+ status: "loading" | "ready" | "error";
30
+ podcastTitle: string; podcastAuthor: string; podcastDescription: string; podcastImage: string;
31
+ rows: PodcastEpisodeRow[];
32
+ notLoading: boolean; notErrored: boolean; noRows: boolean;
33
+ /** true until the read answered with a show title: the header has nothing to introduce. */
34
+ noHeader: boolean; noAuthor: boolean; noDescription: boolean; noPodcastImage: boolean;
35
+ /** false when the feed has more episodes than the section lists. */
36
+ noMore: boolean;
37
+ }
38
+
39
+ /** The gateway the template Podcasts screen reads (POST only, no credential). */
40
+ const FEED_ENDPOINT = "https://podcasts.wix.com/api/feed/graphql";
41
+ const DEFAULT_LIMIT = 3;
42
+ const MAX_URL_LENGTH = 2048;
43
+ const QUERY = `
44
+ query PodcastSection($url: String!, $limit: Int) {
45
+ podcast(url: $url) { title author image description }
46
+ episodes(url: $url, limit: $limit) { id title date duration image descriptionExcerpt(length: 220) }
47
+ }
48
+ `;
49
+
50
+ interface FeedPodcast { title?: unknown; author?: unknown; image?: unknown; description?: unknown }
51
+ interface FeedEpisode { id?: unknown; title?: unknown; date?: unknown; duration?: unknown; image?: unknown; descriptionExcerpt?: unknown }
52
+
53
+ // Block tags (a paragraph, a break, a list item) separate words; inline ones (<b>, <a>) vanish without leaving a stray space before punctuation.
54
+ const plain = (value: unknown): string => typeof value === "string"
55
+ ? value.replace(/<\/?(?:p|br|div|li|ul|ol|h[1-6])\b[^>]*>/gi, " ").replace(/<[^>]*>/g, "").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#39;/g, "'").replace(/\s+/g, " ").trim()
56
+ : "";
57
+ /** An artwork URL the app may load: https only (the podcast hosts all serve it), never a credential-bearing or non-web one. */
58
+ const imageUrl = (value: unknown): string => {
59
+ const url = typeof value === "string" ? value.trim() : "";
60
+ return /^https:\/\/[^\s@/]+(?:[/?#]\S*)?$/i.test(url) && url.length <= MAX_URL_LENGTH ? url : "";
61
+ };
62
+ /** The feed as the gateway can read it: an http(s) URL with no user info, or "" (no read is made for anything else). */
63
+ const feedOf = (value: unknown): string => {
64
+ const url = typeof value === "string" ? value.trim() : "";
65
+ return /^https?:\/\/[^\s@/]+(?:[/?#]\S*)?$/i.test(url) && url.length <= MAX_URL_LENGTH ? url : "";
66
+ };
67
+
68
+ /** "1200", "20:00" or "1:02:03" as a clock ("20:00"); anything else (a length the feed did not write) is no length. */
69
+ function lengthOf(value: unknown): string {
70
+ const raw = typeof value === "string" ? value.trim() : typeof value === "number" ? String(value) : "";
71
+ const pieces = raw.split(":");
72
+ if (!raw || pieces.length > 3 || !pieces.every((piece) => /^\d+$/.test(piece))) return "";
73
+ const seconds = pieces.length === 1 ? Number(raw) : pieces.map(Number).reduce((total, piece) => total * 60 + piece, 0);
74
+ if (!(seconds > 0)) return "";
75
+ const hours = Math.floor(seconds / 3600), minutes = Math.floor((seconds % 3600) / 60), rest = String(seconds % 60).padStart(2, "0");
76
+ return hours ? `${hours}:${String(minutes).padStart(2, "0")}:${rest}` : `${minutes}:${rest}`;
77
+ }
78
+ function dateOf(value: unknown): string {
79
+ const parsed = typeof value === "string" && value ? Date.parse(value) : NaN;
80
+ // The app's pinned language, not the device's: an app set to Spanish on an English phone reads "4 nov".
81
+ return Number.isFinite(parsed) ? formatMonthDay(new Date(parsed)) : "";
82
+ }
83
+
84
+ function rowOf(episode: FeedEpisode): PodcastEpisodeRow | undefined {
85
+ const title = plain(episode.title);
86
+ const id = typeof episode.id === "string" ? episode.id.trim() : "";
87
+ if (!id && !title) return undefined;
88
+ const image = imageUrl(episode.image), description = plain(episode.descriptionExcerpt);
89
+ return {
90
+ // An episode with an id and no title is named by its date, then its id: a fixed English word would be untranslated in every other app language.
91
+ id: id || title, title: title || dateOf(episode.date) || id,
92
+ subtitle: [dateOf(episode.date), lengthOf(episode.duration)].filter(Boolean).join(" · "),
93
+ description, image, noImage: !image, noDescription: !description,
94
+ };
95
+ }
96
+
97
+ export function registerPodcastSection(serviceName: string, options: PodcastSectionOptions) {
98
+ const feedUrl = feedOf(options.feedUrl);
99
+ const limit = Math.max(1, Math.min(10, Math.trunc(options.limit ?? DEFAULT_LIMIT) || DEFAULT_LIMIT));
100
+ const view = (status: PodcastSectionState["status"], podcast: FeedPodcast = {}, rows: PodcastEpisodeRow[] = [], more = false): PodcastSectionState => {
101
+ const podcastTitle = plain(podcast.title), podcastAuthor = plain(podcast.author), podcastDescription = plain(podcast.description), podcastImage = imageUrl(podcast.image);
102
+ return {
103
+ status, podcastTitle, podcastAuthor, podcastDescription, podcastImage, rows,
104
+ notLoading: status !== "loading", notErrored: status !== "error", noRows: !rows.length,
105
+ noHeader: status !== "ready" || !podcastTitle, noAuthor: !podcastAuthor, noDescription: !podcastDescription, noPodcastImage: !podcastImage,
106
+ noMore: !more,
107
+ };
108
+ };
109
+ return defineService<PodcastSectionState, { load: (state: PodcastSectionState, arg?: unknown) => Promise<PodcastSectionState> }>(serviceName, {
110
+ state: view("loading"),
111
+ actions: {
112
+ load: async (_state, arg) => {
113
+ stashCopy(arg);
114
+ const api = (globalThis as { himalaya?: { wixApi?: WixApi } }).himalaya?.wixApi;
115
+ if (!feedUrl || !api) return view("error");
116
+ try {
117
+ // One more than the section lists tells whether the feed has more, as the source widget reads it.
118
+ const response = await api.call("POST", FEED_ENDPOINT, { query: QUERY, variables: { url: feedUrl, limit: limit + 1 } }) as
119
+ { data?: { podcast?: FeedPodcast | null; episodes?: unknown } | null; errors?: unknown } | null;
120
+ // A GraphQL error is the gateway saying it could not read this feed (unknown, unreachable or not RSS).
121
+ if (!response || (Array.isArray(response.errors) && response.errors.length) || !Array.isArray(response.data?.episodes)) return view("error");
122
+ const rows = (response.data!.episodes as FeedEpisode[]).map(rowOf).filter((row): row is PodcastEpisodeRow => row !== undefined);
123
+ return view("ready", response.data!.podcast ?? {}, rows.slice(0, limit), rows.length > limit);
124
+ } catch (error) {
125
+ console.warn("podcast_section: the feed could not be read", error);
126
+ return view("error");
127
+ }
128
+ },
129
+ },
130
+ });
131
+ }
@@ -0,0 +1,64 @@
1
+ // A page's wishlist section as a registrable service: the products saved on this device, the same list the template's
2
+ // `himi_saved_products` screen shows (`himi-store-saved`), as tiles that open the product.
3
+ // limit -> how many tiles (the section is a short grid, not the wishlist screen); `noMore` is false when more are saved,
4
+ // which is when the section's See All button (to `himi_saved_products`) shows.
5
+ // The One App wishlist is the member's account list on a private One App service no worker can call, so this module reads the
6
+ // device-local list only. A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*`
7
+ // (recipe wishlist-grid).
8
+ import { defineService } from "@himalaya/state";
9
+ import { readSavedProducts, type SavedProduct } from "./himi-store-saved.js";
10
+
11
+ export interface SavedProductsSectionOptions {
12
+ /** How many products to show; unset shows every saved product. */
13
+ limit?: number;
14
+ }
15
+
16
+ export interface SavedProductRow {
17
+ id: string; name: string; price: string;
18
+ image: string; initial: string; hasImage: boolean; noImage: boolean;
19
+ /** The product screen a tile opens; the tile binds `id` as its nav param. */
20
+ detailScreenId: string;
21
+ }
22
+
23
+ export interface SavedProductsSectionState {
24
+ status: "loading" | "ready" | "error";
25
+ rows: SavedProductRow[];
26
+ notLoading: boolean; notErrored: boolean; noRows: boolean;
27
+ /** false while nothing is saved and the read succeeded: the empty state shows. */
28
+ noEmpty: boolean;
29
+ /** false when more products are saved than the section shows. */
30
+ noMore: boolean;
31
+ }
32
+
33
+ function rowOf(product: SavedProduct): SavedProductRow {
34
+ const name = product.name.trim();
35
+ return {
36
+ id: product.id, name, price: product.price,
37
+ image: product.image, initial: (name[0] ?? "#").toUpperCase(), hasImage: !!product.image, noImage: !product.image,
38
+ detailScreenId: "himi_product",
39
+ };
40
+ }
41
+
42
+ export function registerSavedProductsSection(serviceName: string, options: SavedProductsSectionOptions = {}) {
43
+ const view = (status: SavedProductsSectionState["status"], rows: SavedProductRow[], more: boolean): SavedProductsSectionState => ({
44
+ status, rows,
45
+ notLoading: status !== "loading", notErrored: status !== "error", noRows: !rows.length,
46
+ noEmpty: !(status === "ready" && !rows.length), noMore: !more,
47
+ });
48
+ return defineService<SavedProductsSectionState, { load: (state: SavedProductsSectionState, arg?: unknown) => SavedProductsSectionState }>(serviceName, {
49
+ state: view("loading", [], false),
50
+ actions: {
51
+ // The list is read on every appearance, so a product saved or removed on another screen shows when the page comes back.
52
+ load: () => {
53
+ try {
54
+ const saved = readSavedProducts();
55
+ const shown = options.limit !== undefined ? saved.slice(0, options.limit) : saved;
56
+ return view("ready", shown.map(rowOf), shown.length < saved.length);
57
+ } catch (error) {
58
+ console.warn("saved_products_section: the saved products could not be read", error);
59
+ return view("error", [], false);
60
+ }
61
+ },
62
+ },
63
+ });
64
+ }
@@ -40,14 +40,18 @@ export function weekStartMs(now: number): number {
40
40
  return d.getTime();
41
41
  }
42
42
 
43
+ /** Is `row` a session that was booked and already held at `now`? The one rule every count here uses. */
44
+ export function isHeldSession(row: MemberBookingRow, now: number): boolean {
45
+ const start = Date.parse(row.start);
46
+ return Number.isFinite(start) && start < now && COUNTS_AS_SESSION.test((row.status || "").trim().toUpperCase());
47
+ }
48
+
43
49
  /** Sessions toward the goal among `rows` — see the file header for what counts. */
44
50
  export function weeklySessionsDone(rows: readonly MemberBookingRow[], now: number): number {
45
51
  const from = weekStartMs(now);
46
52
  const seen = new Set<string>();
47
53
  for (const row of rows) {
48
- const start = Date.parse(row.start);
49
- if (!Number.isFinite(start) || start < from || start >= now) continue;
50
- if (!COUNTS_AS_SESSION.test((row.status || "").trim().toUpperCase())) continue;
54
+ if (Date.parse(row.start) < from || !isHeldSession(row, now)) continue;
51
55
  seen.add(row.id || `${row.start}|${row.title}`);
52
56
  }
53
57
  return seen.size;
@@ -278,7 +278,7 @@ const NO_VISIT = {
278
278
  const VISIT_KEYS = Object.keys(NO_VISIT) as (keyof typeof NO_VISIT)[];
279
279
  /** What derive() computes from the visit keys. Hydration copies keys without re-deriving,
280
280
  * so these stay out of the snapshot with them, or the first paint mixes two visits. */
281
- const VISIT_DERIVED_KEYS = ["notRegistering", "notRecovering", "hideSignInChoices", "authTitle", "authBody",
281
+ const VISIT_DERIVED_KEYS = ["notRegistering", "notRecovering", "hideSignInChoices", "hideShowRegister", "hideShowRecovery", "authTitle", "authBody",
282
282
  "hasReturnPath", "noReturnPath", "returnCta"] as const;
283
283
 
284
284
  // Actions are not serialized: two quick Sign in taps both run against the pre-tap
@@ -321,7 +321,7 @@ function appearBase(): Partial<S> {
321
321
  pollIdentity: pollIdentityRequested,
322
322
  restorePurchases: restorePurchasesRequested,
323
323
  // One `_poll` per state: Account polls identity and never shows the social block.
324
- ...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
324
+ ...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
325
325
  };
326
326
  }
327
327
 
@@ -433,12 +433,46 @@ function applySocialProviders(read: SocialProvidersRead): void {
433
433
  if (read.ok) socialProviders = read.providers;
434
434
  }
435
435
 
436
+ // Which member flows this binding can run (the host's `himi.wix.memberFlows`). A One App binding with no Headless OAuth client
437
+ // signs members in with email and password only, so Create account and Forgot password would fail: the form hides them. Module
438
+ // state like the providers above. A host without the action (web, an older binary) never answers, and the form keeps both,
439
+ // exactly what it showed before.
440
+ let signUpAvailable = true;
441
+ let passwordResetAvailable = true;
442
+
443
+ /** `notReady`: the host said `unavailable` (its auth boot has not wired the provider yet), so the answer is worth asking for again. */
444
+ type MemberFlowsRead = { ok: true; signUp: boolean; passwordReset: boolean } | { ok: false; notReady: boolean };
445
+
446
+ async function readMemberFlows(): Promise<MemberFlowsRead> {
447
+ try {
448
+ const raw = await dispatch("himi.wix.memberFlows") as { status?: unknown; payload?: Record<string, unknown>; signUp?: unknown; passwordReset?: unknown } | null;
449
+ const answer = raw?.payload ?? raw;
450
+ return typeof answer?.signUp === "boolean" && typeof answer?.passwordReset === "boolean"
451
+ ? { ok: true, signUp: answer.signUp, passwordReset: answer.passwordReset }
452
+ : { ok: false, notReady: raw?.status === "unavailable" };
453
+ } catch {
454
+ return { ok: false, notReady: false };
455
+ }
456
+ }
457
+
458
+ /** A failed or missing read keeps what the last read showed (both flows until a host says otherwise). */
459
+ function applyMemberFlows(read: MemberFlowsRead): void {
460
+ if (read.ok) { signUpAvailable = read.signUp; passwordResetAvailable = read.passwordReset; }
461
+ }
462
+
436
463
  // An empty list is also what the host answers before its auth boot has wired the provider (a
437
464
  // cold launch straight onto the form), so it is re-read on a short poll; a site with no social
438
465
  // login stops after a few reads.
439
466
  const SOCIAL_POLL = { id: "himi-account-social", intervalMs: 1500, action: "himiStoreAccount.refreshSocial" };
440
467
  const SOCIAL_RETRIES = 4;
441
468
  let socialRetriesLeft = 0;
469
+ // The member flows are read on the same short poll: before the host's auth boot has wired the provider (a cold launch straight
470
+ // onto the gate screen) it answers `unavailable` and is asked again; a host that does not know the verb (web, an older binary) is not.
471
+ let flowsRetriesLeft = 0;
472
+
473
+ function armFlowsRetry(read: MemberFlowsRead): void {
474
+ flowsRetriesLeft = !read.ok && read.notReady ? SOCIAL_RETRIES : 0;
475
+ }
442
476
 
443
477
  function armSocialRetry(read: SocialProvidersRead): void {
444
478
  if (read.ok) socialRetriesLeft = read.providers.length ? 0 : SOCIAL_RETRIES;
@@ -450,8 +484,14 @@ async function refreshSocial(): Promise<S> {
450
484
  applySocialProviders(await readSocialProviders());
451
485
  if (socialProviders.length) socialRetriesLeft = 0;
452
486
  }
487
+ if (flowsRetriesLeft > 0) {
488
+ flowsRetriesLeft -= 1;
489
+ const flows = await readMemberFlows();
490
+ applyMemberFlows(flows);
491
+ if (flows.ok || !flows.notReady) flowsRetriesLeft = 0;
492
+ }
453
493
  const current = svc.getState();
454
- return derive({ ...current, ...(socialRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
494
+ return derive({ ...current, ...(socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
455
495
  }
456
496
 
457
497
  function socialCancelled(raw: unknown): boolean {
@@ -664,6 +704,10 @@ interface S extends IapRestoreFields {
664
704
  isRecovering: boolean;
665
705
  notRecovering: boolean;
666
706
  hideSignInChoices: boolean;
707
+ /** The form's Create account / Forgot password links: hidden while registering or recovering, and when the binding
708
+ * cannot run the flow (`himi.wix.memberFlows`). */
709
+ hideShowRegister: boolean;
710
+ hideShowRecovery: boolean;
667
711
  hideAppleSignIn: boolean;
668
712
  hideGoogleSignIn: boolean;
669
713
  /** The social block and its "or" divider: no provider to show, or resetting a password. */
@@ -755,6 +799,8 @@ function derive(s: S): S {
755
799
  isRecovering,
756
800
  notRecovering: !isRecovering,
757
801
  hideSignInChoices: isRegistering || isRecovering,
802
+ hideShowRegister: isRegistering || isRecovering || !signUpAvailable,
803
+ hideShowRecovery: isRegistering || isRecovering || !passwordResetAvailable,
758
804
  hideAppleSignIn: !socialProviders.includes("apple"),
759
805
  hideGoogleSignIn: !socialProviders.includes("google"),
760
806
  hideSocialSignIn: isRecovering || socialProviders.length === 0,
@@ -833,9 +879,13 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
833
879
  // snapshot restored, not a 0 that would empty the badge until the appear refresh lands.
834
880
  const cartCountRead = cartCountRequested ? cartItemCount(s.cartCount ?? 0) : Promise.resolve(s.cartCount ?? 0);
835
881
  const socialRead: Promise<SocialProvidersRead> = standaloneRequested ? readSocialProviders() : Promise.resolve({ ok: false });
882
+ const flowsRead: Promise<MemberFlowsRead> = standaloneRequested ? readMemberFlows() : Promise.resolve({ ok: false, notReady: false });
836
883
  const profile = await loadMemberProfile(copyParam("storeAccount.guestDetail", "Sign in to keep your cart and orders connected."));
837
884
  const social = await socialRead;
838
885
  applySocialProviders(social);
886
+ const flows = await flowsRead;
887
+ applyMemberFlows(flows);
888
+ armFlowsRetry(flows);
839
889
  armSocialRetry(social);
840
890
  // Not the boot load: it never carries the copy, and the appear refresh that does is coming.
841
891
  if (strField(arg, "boot") !== "1") headingReady = true;
@@ -965,6 +1015,8 @@ const svc = defineService<S, {
965
1015
  isRecovering: false,
966
1016
  notRecovering: true,
967
1017
  hideSignInChoices: false,
1018
+ hideShowRegister: false,
1019
+ hideShowRecovery: false,
968
1020
  hideAppleSignIn: true,
969
1021
  hideGoogleSignIn: true,
970
1022
  hideSocialSignIn: true,
@@ -278,7 +278,7 @@ const NO_VISIT = {
278
278
  const VISIT_KEYS = Object.keys(NO_VISIT) as (keyof typeof NO_VISIT)[];
279
279
  /** What derive() computes from the visit keys. Hydration copies keys without re-deriving,
280
280
  * so these stay out of the snapshot with them, or the first paint mixes two visits. */
281
- const VISIT_DERIVED_KEYS = ["notRegistering", "notRecovering", "hideSignInChoices", "authTitle", "authBody",
281
+ const VISIT_DERIVED_KEYS = ["notRegistering", "notRecovering", "hideSignInChoices", "hideShowRegister", "hideShowRecovery", "authTitle", "authBody",
282
282
  "hasReturnPath", "noReturnPath", "returnCta"] as const;
283
283
 
284
284
  // Actions are not serialized: two quick Sign in taps both run against the pre-tap
@@ -321,7 +321,7 @@ function appearBase(): Partial<S> {
321
321
  pollIdentity: pollIdentityRequested,
322
322
  restorePurchases: restorePurchasesRequested,
323
323
  // One `_poll` per state: Account polls identity and never shows the social block.
324
- ...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
324
+ ...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
325
325
  };
326
326
  }
327
327
 
@@ -433,12 +433,46 @@ function applySocialProviders(read: SocialProvidersRead): void {
433
433
  if (read.ok) socialProviders = read.providers;
434
434
  }
435
435
 
436
+ // Which member flows this binding can run (the host's `himi.wix.memberFlows`). A One App binding with no Headless OAuth client
437
+ // signs members in with email and password only, so Create account and Forgot password would fail: the form hides them. Module
438
+ // state like the providers above. A host without the action (web, an older binary) never answers, and the form keeps both,
439
+ // exactly what it showed before.
440
+ let signUpAvailable = true;
441
+ let passwordResetAvailable = true;
442
+
443
+ /** `notReady`: the host said `unavailable` (its auth boot has not wired the provider yet), so the answer is worth asking for again. */
444
+ type MemberFlowsRead = { ok: true; signUp: boolean; passwordReset: boolean } | { ok: false; notReady: boolean };
445
+
446
+ async function readMemberFlows(): Promise<MemberFlowsRead> {
447
+ try {
448
+ const raw = await dispatch("himi.wix.memberFlows") as { status?: unknown; payload?: Record<string, unknown>; signUp?: unknown; passwordReset?: unknown } | null;
449
+ const answer = raw?.payload ?? raw;
450
+ return typeof answer?.signUp === "boolean" && typeof answer?.passwordReset === "boolean"
451
+ ? { ok: true, signUp: answer.signUp, passwordReset: answer.passwordReset }
452
+ : { ok: false, notReady: raw?.status === "unavailable" };
453
+ } catch {
454
+ return { ok: false, notReady: false };
455
+ }
456
+ }
457
+
458
+ /** A failed or missing read keeps what the last read showed (both flows until a host says otherwise). */
459
+ function applyMemberFlows(read: MemberFlowsRead): void {
460
+ if (read.ok) { signUpAvailable = read.signUp; passwordResetAvailable = read.passwordReset; }
461
+ }
462
+
436
463
  // An empty list is also what the host answers before its auth boot has wired the provider (a
437
464
  // cold launch straight onto the form), so it is re-read on a short poll; a site with no social
438
465
  // login stops after a few reads.
439
466
  const SOCIAL_POLL = { id: "himi-account-social", intervalMs: 1500, action: "himiStoreAccount.refreshSocial" };
440
467
  const SOCIAL_RETRIES = 4;
441
468
  let socialRetriesLeft = 0;
469
+ // The member flows are read on the same short poll: before the host's auth boot has wired the provider (a cold launch straight
470
+ // onto the gate screen) it answers `unavailable` and is asked again; a host that does not know the verb (web, an older binary) is not.
471
+ let flowsRetriesLeft = 0;
472
+
473
+ function armFlowsRetry(read: MemberFlowsRead): void {
474
+ flowsRetriesLeft = !read.ok && read.notReady ? SOCIAL_RETRIES : 0;
475
+ }
442
476
 
443
477
  function armSocialRetry(read: SocialProvidersRead): void {
444
478
  if (read.ok) socialRetriesLeft = read.providers.length ? 0 : SOCIAL_RETRIES;
@@ -450,8 +484,14 @@ async function refreshSocial(): Promise<S> {
450
484
  applySocialProviders(await readSocialProviders());
451
485
  if (socialProviders.length) socialRetriesLeft = 0;
452
486
  }
487
+ if (flowsRetriesLeft > 0) {
488
+ flowsRetriesLeft -= 1;
489
+ const flows = await readMemberFlows();
490
+ applyMemberFlows(flows);
491
+ if (flows.ok || !flows.notReady) flowsRetriesLeft = 0;
492
+ }
453
493
  const current = svc.getState();
454
- return derive({ ...current, ...(socialRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
494
+ return derive({ ...current, ...(socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
455
495
  }
456
496
 
457
497
  function socialCancelled(raw: unknown): boolean {
@@ -664,6 +704,10 @@ interface S extends IapRestoreFields {
664
704
  isRecovering: boolean;
665
705
  notRecovering: boolean;
666
706
  hideSignInChoices: boolean;
707
+ /** The form's Create account / Forgot password links: hidden while registering or recovering, and when the binding
708
+ * cannot run the flow (`himi.wix.memberFlows`). */
709
+ hideShowRegister: boolean;
710
+ hideShowRecovery: boolean;
667
711
  hideAppleSignIn: boolean;
668
712
  hideGoogleSignIn: boolean;
669
713
  /** The social block and its "or" divider: no provider to show, or resetting a password. */
@@ -755,6 +799,8 @@ function derive(s: S): S {
755
799
  isRecovering,
756
800
  notRecovering: !isRecovering,
757
801
  hideSignInChoices: isRegistering || isRecovering,
802
+ hideShowRegister: isRegistering || isRecovering || !signUpAvailable,
803
+ hideShowRecovery: isRegistering || isRecovering || !passwordResetAvailable,
758
804
  hideAppleSignIn: !socialProviders.includes("apple"),
759
805
  hideGoogleSignIn: !socialProviders.includes("google"),
760
806
  hideSocialSignIn: isRecovering || socialProviders.length === 0,
@@ -833,9 +879,13 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
833
879
  // snapshot restored, not a 0 that would empty the badge until the appear refresh lands.
834
880
  const cartCountRead = cartCountRequested ? cartItemCount(s.cartCount ?? 0) : Promise.resolve(s.cartCount ?? 0);
835
881
  const socialRead: Promise<SocialProvidersRead> = standaloneRequested ? readSocialProviders() : Promise.resolve({ ok: false });
882
+ const flowsRead: Promise<MemberFlowsRead> = standaloneRequested ? readMemberFlows() : Promise.resolve({ ok: false, notReady: false });
836
883
  const profile = await loadMemberProfile(copyParam("storeAccount.guestDetail", "Sign in to keep your cart and orders connected."));
837
884
  const social = await socialRead;
838
885
  applySocialProviders(social);
886
+ const flows = await flowsRead;
887
+ applyMemberFlows(flows);
888
+ armFlowsRetry(flows);
839
889
  armSocialRetry(social);
840
890
  // Not the boot load: it never carries the copy, and the appear refresh that does is coming.
841
891
  if (strField(arg, "boot") !== "1") headingReady = true;
@@ -965,6 +1015,8 @@ const svc = defineService<S, {
965
1015
  isRecovering: false,
966
1016
  notRecovering: true,
967
1017
  hideSignInChoices: false,
1018
+ hideShowRegister: false,
1019
+ hideShowRecovery: false,
968
1020
  hideAppleSignIn: true,
969
1021
  hideGoogleSignIn: true,
970
1022
  hideSocialSignIn: true,
@@ -5600,7 +5600,7 @@ const SCREENS = runtimeSetting({
5600
5600
  }
5601
5601
  },
5602
5602
  "modifiers": {
5603
- "hiddenPath": "$service:himiStoreAccount.hideSignInChoices"
5603
+ "hiddenPath": "$service:himiStoreAccount.hideShowRegister"
5604
5604
  }
5605
5605
  },
5606
5606
  {
@@ -5657,7 +5657,7 @@ const SCREENS = runtimeSetting({
5657
5657
  }
5658
5658
  },
5659
5659
  "modifiers": {
5660
- "hiddenPath": "$service:himiStoreAccount.hideSignInChoices"
5660
+ "hiddenPath": "$service:himiStoreAccount.hideShowRecovery"
5661
5661
  }
5662
5662
  }
5663
5663
  ]
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "موسّع",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, zero {# منشور} one {منشور واحد} two {منشوران} few {# منشورات} many {# منشورًا} other {# منشور}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Rozbaleno",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# příspěvek} few {# příspěvky} many {# příspěvku} other {# příspěvků}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Udvidet",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# opslag} other {# opslag}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Ausgeklappt",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# Beitrag} other {# Beiträge}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Ανεπτυγμένο",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# ανάρτηση} other {# αναρτήσεις}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Expandido",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# publicación} other {# publicaciones}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Laajennettu",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# julkaisu} other {# julkaisua}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Développé",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# article} other {# articles}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -2507,6 +2507,10 @@
2507
2507
  "h_6d1704748e0c": {
2508
2508
  "source": "Expanded",
2509
2509
  "translation": "מורחב"
2510
+ },
2511
+ "h_3219c81fa232": {
2512
+ "source": "{n, plural, one {# post} other {# posts}}",
2513
+ "translation": "{n, plural, one {פוסט אחד} other {# פוסטים}}"
2510
2514
  }
2511
2515
  }
2512
2516
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Kibontva",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# bejegyzés} other {# bejegyzés}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Diperluas",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, other {# kiriman}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "Espanso",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, one {# articolo} other {# articoli}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }
@@ -3063,6 +3063,11 @@
3063
3063
  "source": "Expanded",
3064
3064
  "translation": "展開済み",
3065
3065
  "origin": "machine"
3066
+ },
3067
+ "h_3219c81fa232": {
3068
+ "source": "{n, plural, one {# post} other {# posts}}",
3069
+ "translation": "{n, plural, other {#件の投稿}}",
3070
+ "origin": "machine"
3066
3071
  }
3067
3072
  }
3068
3073
  }