@wix/himalaya-cli 0.1851.0 → 0.1852.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 (365) 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 +13 -3
  3. package/dist/browser-plane/assets.json +5 -5
  4. package/dist/browser-plane/preview-deferred/{166f7ee733ea8d0fe7bba8b796232efd4f5413e22af4a8aeee20cae1069b2fd6.bin → fb500748f6c4768468f2e7f985aa67c38633077c7a98caaa6b500c7b00eea8e9.bin} +1 -1
  5. package/dist/browser-plane/sw.js +7 -7
  6. package/dist/cli.mjs +10963 -10491
  7. package/dist/preview-assets.generated.bin +0 -0
  8. package/guides/component-index.md +1 -1
  9. package/guides/component-reference.json +2 -2
  10. package/guides/component-reference.md +8 -1
  11. package/guides/designing-himi-screens.md +5 -1
  12. package/guides/himi-json-output.md +5 -1
  13. package/guides/one-app-to-himi-app.md +42 -5
  14. package/guides/sdk-reference.json +2 -2
  15. package/package.json +2 -2
  16. package/templates/beauty-salon/dev/index.ts +223 -0
  17. package/templates/beauty-salon/l10n/ar.json +6 -0
  18. package/templates/beauty-salon/l10n/cs.json +6 -0
  19. package/templates/beauty-salon/l10n/da.json +6 -0
  20. package/templates/beauty-salon/l10n/de.json +6 -0
  21. package/templates/beauty-salon/l10n/el.json +6 -0
  22. package/templates/beauty-salon/l10n/en.json +9 -2
  23. package/templates/beauty-salon/l10n/es.json +6 -0
  24. package/templates/beauty-salon/l10n/fi.json +6 -0
  25. package/templates/beauty-salon/l10n/fr.json +6 -0
  26. package/templates/beauty-salon/l10n/he.json +5 -0
  27. package/templates/beauty-salon/l10n/hu.json +6 -0
  28. package/templates/beauty-salon/l10n/id.json +6 -0
  29. package/templates/beauty-salon/l10n/it.json +6 -0
  30. package/templates/beauty-salon/l10n/ja.json +6 -0
  31. package/templates/beauty-salon/l10n/ko.json +6 -0
  32. package/templates/beauty-salon/l10n/lt.json +6 -0
  33. package/templates/beauty-salon/l10n/nl.json +6 -0
  34. package/templates/beauty-salon/l10n/no.json +6 -0
  35. package/templates/beauty-salon/l10n/pl.json +6 -0
  36. package/templates/beauty-salon/l10n/pt.json +6 -0
  37. package/templates/beauty-salon/l10n/ru.json +6 -0
  38. package/templates/beauty-salon/l10n/sv.json +6 -0
  39. package/templates/beauty-salon/l10n/th.json +6 -0
  40. package/templates/beauty-salon/l10n/tr.json +6 -0
  41. package/templates/beauty-salon/l10n/uk.json +6 -0
  42. package/templates/beauty-salon/l10n/vi.json +6 -0
  43. package/templates/beauty-salon/l10n/zh.json +6 -0
  44. package/templates/beauty-salon/tier5-src/_shared/lifecycle.ts +15 -0
  45. package/templates/beauty-salon/tier5-src/_shared/nav-member-avatar.ts +92 -0
  46. package/templates/beauty-salon/tier5-src/himi-branded-lite-nav/index.ts +15 -6
  47. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +26 -1
  48. package/templates/branded-lite/dev/index.ts +2167 -0
  49. package/templates/branded-lite/l10n/ar.json +6 -0
  50. package/templates/branded-lite/l10n/cs.json +6 -0
  51. package/templates/branded-lite/l10n/da.json +6 -0
  52. package/templates/branded-lite/l10n/de.json +6 -0
  53. package/templates/branded-lite/l10n/el.json +6 -0
  54. package/templates/branded-lite/l10n/en.json +12 -5
  55. package/templates/branded-lite/l10n/es.json +6 -0
  56. package/templates/branded-lite/l10n/fi.json +6 -0
  57. package/templates/branded-lite/l10n/fr.json +6 -0
  58. package/templates/branded-lite/l10n/he.json +5 -0
  59. package/templates/branded-lite/l10n/hu.json +6 -0
  60. package/templates/branded-lite/l10n/id.json +6 -0
  61. package/templates/branded-lite/l10n/it.json +6 -0
  62. package/templates/branded-lite/l10n/ja.json +6 -0
  63. package/templates/branded-lite/l10n/ko.json +6 -0
  64. package/templates/branded-lite/l10n/lt.json +6 -0
  65. package/templates/branded-lite/l10n/nl.json +6 -0
  66. package/templates/branded-lite/l10n/no.json +6 -0
  67. package/templates/branded-lite/l10n/pl.json +6 -0
  68. package/templates/branded-lite/l10n/pt.json +6 -0
  69. package/templates/branded-lite/l10n/ru.json +6 -0
  70. package/templates/branded-lite/l10n/sv.json +6 -0
  71. package/templates/branded-lite/l10n/th.json +6 -0
  72. package/templates/branded-lite/l10n/tr.json +6 -0
  73. package/templates/branded-lite/l10n/uk.json +6 -0
  74. package/templates/branded-lite/l10n/vi.json +6 -0
  75. package/templates/branded-lite/l10n/zh.json +6 -0
  76. package/templates/branded-lite/tier5-src/_shared/access-gates.ts +0 -13
  77. package/templates/branded-lite/tier5-src/_shared/guest-sign-in.ts +36 -0
  78. package/templates/branded-lite/tier5-src/_shared/lifecycle.ts +15 -0
  79. package/templates/branded-lite/tier5-src/_shared/nav-member-avatar.ts +92 -0
  80. package/templates/branded-lite/tier5-src/himi-branded-lite-access-nav/index.ts +14 -9
  81. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +6 -1
  82. package/templates/branded-lite/tier5-src/himi-branded-lite-nav/index.ts +15 -6
  83. package/templates/branded-lite/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
  84. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +26 -1
  85. package/templates/brandy/tier5-src/_shared/guest-sign-in.ts +36 -0
  86. package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +6 -1
  87. package/templates/brandy/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
  88. package/templates/brandy/tier5-src/himi-store-account/index.ts +26 -1
  89. package/templates/community-club/dev/index.ts +223 -0
  90. package/templates/community-club/l10n/ar.json +6 -0
  91. package/templates/community-club/l10n/cs.json +6 -0
  92. package/templates/community-club/l10n/da.json +6 -0
  93. package/templates/community-club/l10n/de.json +6 -0
  94. package/templates/community-club/l10n/el.json +6 -0
  95. package/templates/community-club/l10n/en.json +9 -2
  96. package/templates/community-club/l10n/es.json +6 -0
  97. package/templates/community-club/l10n/fi.json +6 -0
  98. package/templates/community-club/l10n/fr.json +6 -0
  99. package/templates/community-club/l10n/he.json +5 -0
  100. package/templates/community-club/l10n/hu.json +6 -0
  101. package/templates/community-club/l10n/id.json +6 -0
  102. package/templates/community-club/l10n/it.json +6 -0
  103. package/templates/community-club/l10n/ja.json +6 -0
  104. package/templates/community-club/l10n/ko.json +6 -0
  105. package/templates/community-club/l10n/lt.json +6 -0
  106. package/templates/community-club/l10n/nl.json +6 -0
  107. package/templates/community-club/l10n/no.json +6 -0
  108. package/templates/community-club/l10n/pl.json +6 -0
  109. package/templates/community-club/l10n/pt.json +6 -0
  110. package/templates/community-club/l10n/ru.json +6 -0
  111. package/templates/community-club/l10n/sv.json +6 -0
  112. package/templates/community-club/l10n/th.json +6 -0
  113. package/templates/community-club/l10n/tr.json +6 -0
  114. package/templates/community-club/l10n/uk.json +6 -0
  115. package/templates/community-club/l10n/vi.json +6 -0
  116. package/templates/community-club/l10n/zh.json +6 -0
  117. package/templates/community-club/tier5-src/himi-store-account/index.ts +26 -1
  118. package/templates/conference/tier5-src/himi-store-account/index.ts +26 -1
  119. package/templates/events-meetups/dev/index.ts +142 -0
  120. package/templates/events-meetups/l10n/ar.json +6 -0
  121. package/templates/events-meetups/l10n/cs.json +6 -0
  122. package/templates/events-meetups/l10n/da.json +6 -0
  123. package/templates/events-meetups/l10n/de.json +6 -0
  124. package/templates/events-meetups/l10n/el.json +6 -0
  125. package/templates/events-meetups/l10n/en.json +8 -1
  126. package/templates/events-meetups/l10n/es.json +6 -0
  127. package/templates/events-meetups/l10n/fi.json +6 -0
  128. package/templates/events-meetups/l10n/fr.json +6 -0
  129. package/templates/events-meetups/l10n/he.json +5 -0
  130. package/templates/events-meetups/l10n/hu.json +6 -0
  131. package/templates/events-meetups/l10n/id.json +6 -0
  132. package/templates/events-meetups/l10n/it.json +6 -0
  133. package/templates/events-meetups/l10n/ja.json +6 -0
  134. package/templates/events-meetups/l10n/ko.json +6 -0
  135. package/templates/events-meetups/l10n/lt.json +6 -0
  136. package/templates/events-meetups/l10n/nl.json +6 -0
  137. package/templates/events-meetups/l10n/no.json +6 -0
  138. package/templates/events-meetups/l10n/pl.json +6 -0
  139. package/templates/events-meetups/l10n/pt.json +6 -0
  140. package/templates/events-meetups/l10n/ru.json +6 -0
  141. package/templates/events-meetups/l10n/sv.json +6 -0
  142. package/templates/events-meetups/l10n/th.json +6 -0
  143. package/templates/events-meetups/l10n/tr.json +6 -0
  144. package/templates/events-meetups/l10n/uk.json +6 -0
  145. package/templates/events-meetups/l10n/vi.json +6 -0
  146. package/templates/events-meetups/l10n/zh.json +6 -0
  147. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +26 -1
  148. package/templates/fitness-gym/tier5-src/_shared/guest-sign-in.ts +36 -0
  149. package/templates/fitness-gym/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
  150. package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +26 -1
  151. package/templates/gym-fitness/dev/index.ts +385 -0
  152. package/templates/gym-fitness/l10n/ar.json +6 -0
  153. package/templates/gym-fitness/l10n/cs.json +6 -0
  154. package/templates/gym-fitness/l10n/da.json +6 -0
  155. package/templates/gym-fitness/l10n/de.json +6 -0
  156. package/templates/gym-fitness/l10n/el.json +6 -0
  157. package/templates/gym-fitness/l10n/en.json +9 -2
  158. package/templates/gym-fitness/l10n/es.json +6 -0
  159. package/templates/gym-fitness/l10n/fi.json +6 -0
  160. package/templates/gym-fitness/l10n/fr.json +6 -0
  161. package/templates/gym-fitness/l10n/he.json +5 -0
  162. package/templates/gym-fitness/l10n/hu.json +6 -0
  163. package/templates/gym-fitness/l10n/id.json +6 -0
  164. package/templates/gym-fitness/l10n/it.json +6 -0
  165. package/templates/gym-fitness/l10n/ja.json +6 -0
  166. package/templates/gym-fitness/l10n/ko.json +6 -0
  167. package/templates/gym-fitness/l10n/lt.json +6 -0
  168. package/templates/gym-fitness/l10n/nl.json +6 -0
  169. package/templates/gym-fitness/l10n/no.json +6 -0
  170. package/templates/gym-fitness/l10n/pl.json +6 -0
  171. package/templates/gym-fitness/l10n/pt.json +6 -0
  172. package/templates/gym-fitness/l10n/ru.json +6 -0
  173. package/templates/gym-fitness/l10n/sv.json +6 -0
  174. package/templates/gym-fitness/l10n/th.json +6 -0
  175. package/templates/gym-fitness/l10n/tr.json +6 -0
  176. package/templates/gym-fitness/l10n/uk.json +6 -0
  177. package/templates/gym-fitness/l10n/vi.json +6 -0
  178. package/templates/gym-fitness/l10n/zh.json +6 -0
  179. package/templates/gym-fitness/tier5-src/_shared/lifecycle.ts +15 -0
  180. package/templates/gym-fitness/tier5-src/_shared/nav-member-avatar.ts +92 -0
  181. package/templates/gym-fitness/tier5-src/himi-branded-lite-nav/index.ts +15 -6
  182. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +26 -1
  183. package/templates/medical-services/tier5-src/_shared/guest-sign-in.ts +36 -0
  184. package/templates/medical-services/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
  185. package/templates/medical-services/tier5-src/himi-store-account/index.ts +26 -1
  186. package/templates/nonprofit-cause/dev/index.ts +223 -0
  187. package/templates/nonprofit-cause/l10n/ar.json +6 -0
  188. package/templates/nonprofit-cause/l10n/cs.json +6 -0
  189. package/templates/nonprofit-cause/l10n/da.json +6 -0
  190. package/templates/nonprofit-cause/l10n/de.json +6 -0
  191. package/templates/nonprofit-cause/l10n/el.json +6 -0
  192. package/templates/nonprofit-cause/l10n/en.json +8 -1
  193. package/templates/nonprofit-cause/l10n/es.json +6 -0
  194. package/templates/nonprofit-cause/l10n/fi.json +6 -0
  195. package/templates/nonprofit-cause/l10n/fr.json +6 -0
  196. package/templates/nonprofit-cause/l10n/he.json +5 -0
  197. package/templates/nonprofit-cause/l10n/hu.json +6 -0
  198. package/templates/nonprofit-cause/l10n/id.json +6 -0
  199. package/templates/nonprofit-cause/l10n/it.json +6 -0
  200. package/templates/nonprofit-cause/l10n/ja.json +6 -0
  201. package/templates/nonprofit-cause/l10n/ko.json +6 -0
  202. package/templates/nonprofit-cause/l10n/lt.json +6 -0
  203. package/templates/nonprofit-cause/l10n/nl.json +6 -0
  204. package/templates/nonprofit-cause/l10n/no.json +6 -0
  205. package/templates/nonprofit-cause/l10n/pl.json +6 -0
  206. package/templates/nonprofit-cause/l10n/pt.json +6 -0
  207. package/templates/nonprofit-cause/l10n/ru.json +6 -0
  208. package/templates/nonprofit-cause/l10n/sv.json +6 -0
  209. package/templates/nonprofit-cause/l10n/th.json +6 -0
  210. package/templates/nonprofit-cause/l10n/tr.json +6 -0
  211. package/templates/nonprofit-cause/l10n/uk.json +6 -0
  212. package/templates/nonprofit-cause/l10n/vi.json +6 -0
  213. package/templates/nonprofit-cause/l10n/zh.json +6 -0
  214. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +26 -1
  215. package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +26 -1
  216. package/templates/podcast-creator/dev/index.ts +223 -0
  217. package/templates/podcast-creator/l10n/ar.json +6 -0
  218. package/templates/podcast-creator/l10n/cs.json +6 -0
  219. package/templates/podcast-creator/l10n/da.json +6 -0
  220. package/templates/podcast-creator/l10n/de.json +6 -0
  221. package/templates/podcast-creator/l10n/el.json +6 -0
  222. package/templates/podcast-creator/l10n/en.json +8 -1
  223. package/templates/podcast-creator/l10n/es.json +6 -0
  224. package/templates/podcast-creator/l10n/fi.json +6 -0
  225. package/templates/podcast-creator/l10n/fr.json +6 -0
  226. package/templates/podcast-creator/l10n/he.json +5 -0
  227. package/templates/podcast-creator/l10n/hu.json +6 -0
  228. package/templates/podcast-creator/l10n/id.json +6 -0
  229. package/templates/podcast-creator/l10n/it.json +6 -0
  230. package/templates/podcast-creator/l10n/ja.json +6 -0
  231. package/templates/podcast-creator/l10n/ko.json +6 -0
  232. package/templates/podcast-creator/l10n/lt.json +6 -0
  233. package/templates/podcast-creator/l10n/nl.json +6 -0
  234. package/templates/podcast-creator/l10n/no.json +6 -0
  235. package/templates/podcast-creator/l10n/pl.json +6 -0
  236. package/templates/podcast-creator/l10n/pt.json +6 -0
  237. package/templates/podcast-creator/l10n/ru.json +6 -0
  238. package/templates/podcast-creator/l10n/sv.json +6 -0
  239. package/templates/podcast-creator/l10n/th.json +6 -0
  240. package/templates/podcast-creator/l10n/tr.json +6 -0
  241. package/templates/podcast-creator/l10n/uk.json +6 -0
  242. package/templates/podcast-creator/l10n/vi.json +6 -0
  243. package/templates/podcast-creator/l10n/zh.json +6 -0
  244. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +26 -1
  245. package/templates/portfolio-creative/dev/index.ts +142 -0
  246. package/templates/portfolio-creative/l10n/ar.json +6 -0
  247. package/templates/portfolio-creative/l10n/cs.json +6 -0
  248. package/templates/portfolio-creative/l10n/da.json +6 -0
  249. package/templates/portfolio-creative/l10n/de.json +6 -0
  250. package/templates/portfolio-creative/l10n/el.json +6 -0
  251. package/templates/portfolio-creative/l10n/en.json +8 -1
  252. package/templates/portfolio-creative/l10n/es.json +6 -0
  253. package/templates/portfolio-creative/l10n/fi.json +6 -0
  254. package/templates/portfolio-creative/l10n/fr.json +6 -0
  255. package/templates/portfolio-creative/l10n/he.json +5 -0
  256. package/templates/portfolio-creative/l10n/hu.json +6 -0
  257. package/templates/portfolio-creative/l10n/id.json +6 -0
  258. package/templates/portfolio-creative/l10n/it.json +6 -0
  259. package/templates/portfolio-creative/l10n/ja.json +6 -0
  260. package/templates/portfolio-creative/l10n/ko.json +6 -0
  261. package/templates/portfolio-creative/l10n/lt.json +6 -0
  262. package/templates/portfolio-creative/l10n/nl.json +6 -0
  263. package/templates/portfolio-creative/l10n/no.json +6 -0
  264. package/templates/portfolio-creative/l10n/pl.json +6 -0
  265. package/templates/portfolio-creative/l10n/pt.json +6 -0
  266. package/templates/portfolio-creative/l10n/ru.json +6 -0
  267. package/templates/portfolio-creative/l10n/sv.json +6 -0
  268. package/templates/portfolio-creative/l10n/th.json +6 -0
  269. package/templates/portfolio-creative/l10n/tr.json +6 -0
  270. package/templates/portfolio-creative/l10n/uk.json +6 -0
  271. package/templates/portfolio-creative/l10n/vi.json +6 -0
  272. package/templates/portfolio-creative/l10n/zh.json +6 -0
  273. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +26 -1
  274. package/templates/restaurant/dev/index.ts +142 -0
  275. package/templates/restaurant/l10n/ar.json +6 -0
  276. package/templates/restaurant/l10n/cs.json +6 -0
  277. package/templates/restaurant/l10n/da.json +6 -0
  278. package/templates/restaurant/l10n/de.json +6 -0
  279. package/templates/restaurant/l10n/el.json +6 -0
  280. package/templates/restaurant/l10n/en.json +9 -2
  281. package/templates/restaurant/l10n/es.json +6 -0
  282. package/templates/restaurant/l10n/fi.json +6 -0
  283. package/templates/restaurant/l10n/fr.json +6 -0
  284. package/templates/restaurant/l10n/he.json +5 -0
  285. package/templates/restaurant/l10n/hu.json +6 -0
  286. package/templates/restaurant/l10n/id.json +6 -0
  287. package/templates/restaurant/l10n/it.json +6 -0
  288. package/templates/restaurant/l10n/ja.json +6 -0
  289. package/templates/restaurant/l10n/ko.json +6 -0
  290. package/templates/restaurant/l10n/lt.json +6 -0
  291. package/templates/restaurant/l10n/nl.json +6 -0
  292. package/templates/restaurant/l10n/no.json +6 -0
  293. package/templates/restaurant/l10n/pl.json +6 -0
  294. package/templates/restaurant/l10n/pt.json +6 -0
  295. package/templates/restaurant/l10n/ru.json +6 -0
  296. package/templates/restaurant/l10n/sv.json +6 -0
  297. package/templates/restaurant/l10n/th.json +6 -0
  298. package/templates/restaurant/l10n/tr.json +6 -0
  299. package/templates/restaurant/l10n/uk.json +6 -0
  300. package/templates/restaurant/l10n/vi.json +6 -0
  301. package/templates/restaurant/l10n/zh.json +6 -0
  302. package/templates/restaurant/tier5-src/himi-store-account/index.ts +26 -1
  303. package/templates/retail-store/dev/index.ts +142 -0
  304. package/templates/retail-store/l10n/ar.json +6 -0
  305. package/templates/retail-store/l10n/cs.json +6 -0
  306. package/templates/retail-store/l10n/da.json +6 -0
  307. package/templates/retail-store/l10n/de.json +6 -0
  308. package/templates/retail-store/l10n/el.json +6 -0
  309. package/templates/retail-store/l10n/en.json +8 -1
  310. package/templates/retail-store/l10n/es.json +6 -0
  311. package/templates/retail-store/l10n/fi.json +6 -0
  312. package/templates/retail-store/l10n/fr.json +6 -0
  313. package/templates/retail-store/l10n/he.json +5 -0
  314. package/templates/retail-store/l10n/hu.json +6 -0
  315. package/templates/retail-store/l10n/id.json +6 -0
  316. package/templates/retail-store/l10n/it.json +6 -0
  317. package/templates/retail-store/l10n/ja.json +6 -0
  318. package/templates/retail-store/l10n/ko.json +6 -0
  319. package/templates/retail-store/l10n/lt.json +6 -0
  320. package/templates/retail-store/l10n/nl.json +6 -0
  321. package/templates/retail-store/l10n/no.json +6 -0
  322. package/templates/retail-store/l10n/pl.json +6 -0
  323. package/templates/retail-store/l10n/pt.json +6 -0
  324. package/templates/retail-store/l10n/ru.json +6 -0
  325. package/templates/retail-store/l10n/sv.json +6 -0
  326. package/templates/retail-store/l10n/th.json +6 -0
  327. package/templates/retail-store/l10n/tr.json +6 -0
  328. package/templates/retail-store/l10n/uk.json +6 -0
  329. package/templates/retail-store/l10n/vi.json +6 -0
  330. package/templates/retail-store/l10n/zh.json +6 -0
  331. package/templates/retail-store/tier5-src/himi-store-account/index.ts +26 -1
  332. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +26 -1
  333. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +26 -1
  334. package/templates/yoga-studio/dev/index.ts +304 -0
  335. package/templates/yoga-studio/l10n/ar.json +6 -0
  336. package/templates/yoga-studio/l10n/cs.json +6 -0
  337. package/templates/yoga-studio/l10n/da.json +6 -0
  338. package/templates/yoga-studio/l10n/de.json +6 -0
  339. package/templates/yoga-studio/l10n/el.json +6 -0
  340. package/templates/yoga-studio/l10n/en.json +10 -3
  341. package/templates/yoga-studio/l10n/es.json +6 -0
  342. package/templates/yoga-studio/l10n/fi.json +6 -0
  343. package/templates/yoga-studio/l10n/fr.json +6 -0
  344. package/templates/yoga-studio/l10n/he.json +5 -0
  345. package/templates/yoga-studio/l10n/hu.json +6 -0
  346. package/templates/yoga-studio/l10n/id.json +6 -0
  347. package/templates/yoga-studio/l10n/it.json +6 -0
  348. package/templates/yoga-studio/l10n/ja.json +6 -0
  349. package/templates/yoga-studio/l10n/ko.json +6 -0
  350. package/templates/yoga-studio/l10n/lt.json +6 -0
  351. package/templates/yoga-studio/l10n/nl.json +6 -0
  352. package/templates/yoga-studio/l10n/no.json +6 -0
  353. package/templates/yoga-studio/l10n/pl.json +6 -0
  354. package/templates/yoga-studio/l10n/pt.json +6 -0
  355. package/templates/yoga-studio/l10n/ru.json +6 -0
  356. package/templates/yoga-studio/l10n/sv.json +6 -0
  357. package/templates/yoga-studio/l10n/th.json +6 -0
  358. package/templates/yoga-studio/l10n/tr.json +6 -0
  359. package/templates/yoga-studio/l10n/uk.json +6 -0
  360. package/templates/yoga-studio/l10n/vi.json +6 -0
  361. package/templates/yoga-studio/l10n/zh.json +6 -0
  362. package/templates/yoga-studio/tier5-src/_shared/lifecycle.ts +15 -0
  363. package/templates/yoga-studio/tier5-src/_shared/nav-member-avatar.ts +92 -0
  364. package/templates/yoga-studio/tier5-src/himi-branded-lite-nav/index.ts +15 -6
  365. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +26 -1
@@ -24,6 +24,7 @@ import {
24
24
  type InboxPage,
25
25
  } from "../_shared/member-inbox-transport.js";
26
26
  import { copyParam, stashCopy } from "../_shared/himi-copy.js";
27
+ import { guestSignIn } from "../_shared/guest-sign-in.js";
27
28
 
28
29
  type Row = Omit<InboxRow, "at">;
29
30
  const strip = ({ at: _at, ...row }: InboxRow): Row => row;
@@ -383,6 +384,9 @@ const idOf = (arg: unknown): string => textOf(arg, "id");
383
384
  const PIN = new Set(["1", "true"]);
384
385
  /** `undefined` = nothing to publish: a superseded read returns it rather than a snapshot, because the runtime replaces the
385
386
  * whole state with what an action returns and a snapshot taken now would overwrite what the newer read publishes next. */
387
+ /** A guest who opened the Inbox is offered the app's sign-in at once (the load params opt in: `signInScreenId`). */
388
+ const guest = guestSignIn();
389
+
386
390
  async function loadList(s: S, arg: unknown, retry: boolean): Promise<S | undefined> {
387
391
  stashCopy(arg);
388
392
  const screen = (arg as { businessScreenId?: unknown } | null)?.businessScreenId;
@@ -396,7 +400,8 @@ async function loadList(s: S, arg: unknown, retry: boolean): Promise<S | undefin
396
400
  let gen = -1;
397
401
  try {
398
402
  const identity = await chatIdentity();
399
- if (!identity.authenticated) return signedOutState();
403
+ if (!identity.authenticated) { guest.offer(arg); return signedOutState(); }
404
+ guest.member();
400
405
  const key = `${identity.email}|${identity.scope}`;
401
406
  switched = ownerKey !== "" && ownerKey !== key;
402
407
  if (switched) forgetMember();
@@ -23,8 +23,10 @@ import { applyBrand } from "@himalaya/theme";
23
23
  import { hostSiteFromInput, hostedHiddenFlags } from "../_shared/branded-lite-hosted.js";
24
24
  import { LOCATION_PIN_INITIAL, locationPin, type LocationPin, type LocationPinActionSignatures, type LocationPinState } from "../_shared/location-pin.js";
25
25
  import { HEADER_BADGES_INITIAL, HEADER_BADGE_KEYS, headerBadges, type HeaderBadgeActionSignatures, type HeaderBadges, type HeaderBadgeState } from "../_shared/header-badges.js";
26
+ import { MEMBER_AVATAR_INITIAL, MEMBER_AVATAR_KEYS, memberAvatar, type MemberAvatar, type MemberAvatarActionSignatures, type MemberAvatarState } from "../_shared/nav-member-avatar.js";
27
+ import { chainLifecycle } from "../_shared/lifecycle.js";
26
28
 
27
- interface NavState extends HeaderBadgeState, LocationPinState {
29
+ interface NavState extends HeaderBadgeState, LocationPinState, MemberAvatarState {
28
30
  error: string;
29
31
  /** Notifications received but not yet opened. Drives the app-icon badge. */
30
32
  unread: number;
@@ -70,6 +72,8 @@ const hostedSite = hostSiteFromInput((globalThis as { himalaya?: { input?: unkno
70
72
 
71
73
  // The header badge counts (bell, chat, cart): one service piece shared with the template's badges-only worker.
72
74
  const badges: HeaderBadges<NavState> = headerBadges<NavState>(updateInOrder, () => svc);
75
+ // The member's photo and initials for the top-bar avatar (`topBarDefault`, bound as `$app:brandedLiteNav.memberImage`).
76
+ const avatar: MemberAvatar<NavState> = memberAvatar<NavState>(updateInOrder, () => svc);
73
77
  // The Services top-bar location pin (`noLocationMenu`): one piece shared with the access-gates worker.
74
78
  const pin: LocationPin<NavState> = locationPin<NavState>(updateInOrder, () => svc);
75
79
 
@@ -79,11 +83,12 @@ const svc = defineService<NavState, {
79
83
  onNotification: (s: NavState, params?: unknown) => Promise<NavState>;
80
84
  /** Zero the count (the user has caught up). */
81
85
  clearUnread: (s: NavState) => Promise<NavState>;
82
- } & HeaderBadgeActionSignatures<NavState> & LocationPinActionSignatures<NavState>>("brandedLiteNav", {
83
- state: { error: "", unread: 0, hasUnread: false, unreadIds: [], lastTemplateId: "", lastTopic: "", lastResolvedLink: "", hosted: hostedHiddenFlags(hostedSite), ...LOCATION_PIN_INITIAL, ...HEADER_BADGES_INITIAL },
84
- // The header badge counts describe THIS run (see _shared/header-badges.ts): never stored, never restored.
85
- notPersisted: HEADER_BADGE_KEYS,
86
- notHydrated: HEADER_BADGE_KEYS,
86
+ } & HeaderBadgeActionSignatures<NavState> & LocationPinActionSignatures<NavState> & MemberAvatarActionSignatures<NavState>>("brandedLiteNav", {
87
+ state: { error: "", unread: 0, hasUnread: false, unreadIds: [], lastTemplateId: "", lastTopic: "", lastResolvedLink: "", hosted: hostedHiddenFlags(hostedSite), ...LOCATION_PIN_INITIAL, ...HEADER_BADGES_INITIAL, ...MEMBER_AVATAR_INITIAL },
88
+ // The header badge counts describe THIS run (see _shared/header-badges.ts), and the avatar is the signed-in member's
89
+ // personal data (_shared/nav-member-avatar.ts): never stored, never restored.
90
+ notPersisted: [...HEADER_BADGE_KEYS, ...MEMBER_AVATAR_KEYS],
91
+ notHydrated: [...HEADER_BADGE_KEYS, ...MEMBER_AVATAR_KEYS],
87
92
  actions: {
88
93
  onNotification: async (s, params) => {
89
94
  return updateInOrder(s, (current) => {
@@ -103,6 +108,9 @@ const svc = defineService<NavState, {
103
108
  .finally(() => badges.refresh()),
104
109
  ...pin.actions,
105
110
  ...badges.actions,
111
+ ...avatar.actions,
112
+ // The host calls one `onForeground` and one `onIdentityChange`: the badges and the avatar each run in turn.
113
+ ...chainLifecycle<NavState>(badges.actions, avatar.actions),
106
114
  },
107
115
  });
108
116
 
@@ -144,6 +152,7 @@ export { svc };
144
152
  pin.start(!!hostedSite && hostedHiddenFlags(hostedSite).bookings);
145
153
  // Subscribing notifies at once, which is the launch read; a host with no clock needs the explicit one.
146
154
  badges.start();
155
+ avatar.start();
147
156
 
148
157
  // Hosted mode: the site's own brand over the build's. The shell's brand slot is scoped to this
149
158
  // host session, so a site switch drops it.
@@ -14,6 +14,7 @@ import { navigate } from "@himalaya/state";
14
14
  import { notificationOpen, urlHost, type NotificationOpen } from "../_shared/notification-target.js";
15
15
  import { openRichLink } from "../_shared/rich-content-link.js";
16
16
  import { copyParam, copyTemplate } from "../_shared/himi-copy.js";
17
+ import { guestSignIn } from "../_shared/guest-sign-in.js";
17
18
 
18
19
  interface Row {
19
20
  id: string;
@@ -147,6 +148,8 @@ function currentInbox(s: S): S | undefined {
147
148
  }
148
149
 
149
150
  const defineService = withOnlineWrites(registerService, ["markOneRead","markAll"], { messageFields: ["actionMessage"] });
151
+ /** A guest who opened Notifications is offered the app's sign-in at once (the load params opt in: `signInScreenId`). */
152
+ const guest = guestSignIn();
150
153
  const INITIAL = { ...LOADING, items: [] as Row[], emptyText: "", actionMessage: "", pendingUrl: "", inboxMember: null };
151
154
  const svc = defineService<S, {
152
155
  prepare: (s: S) => S;
@@ -166,11 +169,15 @@ const svc = defineService<S, {
166
169
  const served = servedScreens(arg);
167
170
  try {
168
171
  const member = await requireMember();
172
+ // At once, not after the read: a signed-in load whose read fails would otherwise leave the one-shot offer consumed for the next guest.
173
+ guest.member();
169
174
  const items = (await queryNotifications(25)).map((n) => norm(n, served));
170
175
  await assertMemberAccess(member);
171
176
  return { ...s, ...loaded("items", items, COPY), inboxMember: member, actionMessage: "", pendingUrl: "" };
172
177
  } catch (err) {
173
- return { ...s, ...loadFailed("items", (await memberAccess()).email ? err : signInRequired(), COPY), inboxMember: null, actionMessage: "", pendingUrl: "" };
178
+ const signedIn = !!(await memberAccess()).email;
179
+ if (!signedIn) guest.offer(arg);
180
+ return { ...s, ...loadFailed("items", signedIn ? err : signInRequired(), COPY), inboxMember: null, actionMessage: "", pendingUrl: "" };
174
181
  }
175
182
  },
176
183
  // Mark one read; optimistically clear its dot. Real write is best-effort and
@@ -262,7 +262,20 @@ function settle(next: S, arg: unknown, latest = true): S {
262
262
  }
263
263
  // Account forwards only on an appear refresh: the boot `load()` has no params and its
264
264
  // navigation is dropped, so a forward there was lost and used up the one forward.
265
- return strField(arg, "signInScreen") ? forwardToSignIn(next) : next;
265
+ if (!strField(arg, "signInScreen")) return next;
266
+ const forwarded = forwardToSignIn(next);
267
+ return forwarded === next ? offerSignIn(next, arg) : forwarded;
268
+ }
269
+
270
+ /** Profile (appear param `signInOnAppear: "1"`, set by an app whose top bar leads with the profile avatar): a guest who opens it is
271
+ * offered the standalone sign-in as a sheet, once. The sheet closes by itself or by the guest: either way this screen is under it, so
272
+ * a guest who only closes it stays on the guest Profile. A reload that follows is not a second offer; a member resets it. */
273
+ let signInOffered = false;
274
+ function offerSignIn(next: S, arg: unknown): S {
275
+ if (next.isMember) { signInOffered = false; return next; }
276
+ if (strField(arg, "signInOnAppear") !== "1" || signInOffered || next.standalone) return next;
277
+ signInOffered = true;
278
+ return openSignIn(next, { mode: "signin" }, null);
266
279
  }
267
280
 
268
281
  // A tick reads only the session. The profile is read again only when the signed-in email
@@ -325,6 +338,9 @@ let pollIdentityRequested = false;
325
338
  // iOS can start the arg-less boot load after the appear refresh that asks for the row; the
326
339
  // newer boot probe must not land, or be kept, without it.
327
340
  let restorePurchasesRequested = false;
341
+ /** Profile's "Pages" group (appear param `showPages: "1"`): set on the screen's load by whoever knows the app's top bar
342
+ * leads with the profile avatar, so the drawer's pages stay reachable. Off, the group is hidden. */
343
+ let showPagesRequested = false;
328
344
  /** An app's sign-in form that carries the ended-session notice (appear param `sessionEndedNotice: "1"`).
329
345
  * Only that form gets the signed-out headline, whose copy only that app's pack translates, and the ended
330
346
  * session's address, which only its email field shows, so no form submits it unseen. */
@@ -342,6 +358,7 @@ function appearBase(): Partial<S> {
342
358
  standalone: standaloneRequested,
343
359
  pollIdentity: pollIdentityRequested,
344
360
  restorePurchases: restorePurchasesRequested,
361
+ showPages: showPagesRequested,
345
362
  // One `_poll` per state: Account polls identity and never shows the social block.
346
363
  ...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
347
364
  };
@@ -370,6 +387,7 @@ function appearConfig(s: S, arg: unknown): AppearConfig {
370
387
  standaloneRequested ||= s.standalone || appearing || (!routeInputConsumed && !!routeInput().mode);
371
388
  pollIdentityRequested ||= s.pollIdentity || strField(arg, "pollIdentity") === "1";
372
389
  restorePurchasesRequested ||= s.restorePurchases || strField(arg, "restorePurchases") === "1";
390
+ showPagesRequested ||= s.showPages || strField(arg, "showPages") === "1";
373
391
  sessionEndedNoticeRequested ||= strField(arg, "sessionEndedNotice") === "1";
374
392
  // The form opens on the mode its route asked for each time it appears, sign-in by
375
393
  // default: a pooled worker reopened with the same params must not open on the mode the
@@ -832,6 +850,10 @@ interface S extends IapRestoreFields {
832
850
  * `restorePurchases: "1"`). Only then does the worker reach the App Store layer, so a
833
851
  * descriptor that renders no such row need not declare `iap`. */
834
852
  restorePurchases: boolean;
853
+ /** Set once a descriptor asks for Profile's "Pages" group (appear param `showPages: "1"`). */
854
+ showPages: boolean;
855
+ /** Hides Profile's "Pages" group until then. */
856
+ hidePages: boolean;
835
857
  /** Top-bar cart badge, read only once a descriptor asks for it (appear param
836
858
  * `cartCount: "1"`), so an app with no store never reads a cart. A guest has a
837
859
  * visitor cart too, so this is read for members and guests alike. */
@@ -899,6 +921,7 @@ function derive(s: S): S {
899
921
  hideGuest: loading || !!s.isMember,
900
922
  hideMember: loading || !s.isMember,
901
923
  hideSessionEnded: loading || !!s.isMember || !s.sessionEnded,
924
+ hidePages: !s.showPages,
902
925
  password: "",
903
926
  busyMessage: s.authBusy ? translated("auth.feedback.busy") : "",
904
927
  isLoading: s.status === "loading",
@@ -1164,6 +1187,8 @@ const svc = defineService<S, {
1164
1187
  noMemberAddresses: true,
1165
1188
  noMemberWallet: true,
1166
1189
  restorePurchases: false,
1190
+ showPages: false,
1191
+ hidePages: true,
1167
1192
  cartCount: 0,
1168
1193
  greeting: "Hey, guest",
1169
1194
  greetingFirstName: "",
@@ -0,0 +1,36 @@
1
+ // A member-only screen that a guest opens offers the app's sign-in at once, as the sheet the app's other
2
+ // screens use (`signInPresentation`, and `signInSheetStyle: "page"` where the app asks for it). Opt-in: the
3
+ // screen's load params must name `signInScreenId`, so an app that passes none keeps the screen's own Sign in state.
4
+ //
5
+ // The sheet is a modal with no return path: closing it, signed in or not, leaves the guest on this screen, which
6
+ // loads again and shows the member's content, or its Sign in state when the sheet was only closed. One offer per
7
+ // guest: a reload that follows a dismissed sheet does not open a second one, and a member's visit resets it.
8
+ import { dispatch } from "@himalaya/dispatch";
9
+ import { signInPageStyle, signInSheetStyle } from "./sign-in-sheet.js";
10
+
11
+ const field = (arg: unknown, key: string): string => {
12
+ const value = (arg as Record<string, unknown> | null | undefined)?.[key];
13
+ return typeof value === "string" ? value.trim() : "";
14
+ };
15
+
16
+ export interface GuestSignIn {
17
+ /** The screen loaded for a guest: open the sign-in sheet, once. */
18
+ offer(arg: unknown): void;
19
+ /** The screen loaded for a member: the next guest is offered the sheet again. */
20
+ member(): void;
21
+ }
22
+
23
+ export function guestSignIn(): GuestSignIn {
24
+ let offered = false;
25
+ return {
26
+ offer(arg) {
27
+ const screenId = field(arg, "signInScreenId");
28
+ const presentation = field(arg, "signInPresentation");
29
+ if (!screenId || offered || (presentation !== "sheet" && presentation !== "full_screen")) return;
30
+ offered = true;
31
+ const args = { screenId, mode: "signin", presentation, modal: "1", ...signInSheetStyle(presentation, signInPageStyle(field(arg, "signInSheetStyle"))) };
32
+ void Promise.resolve(dispatch("himi.open", args)).catch(() => undefined);
33
+ },
34
+ member() { offered = false; },
35
+ };
36
+ }
@@ -24,6 +24,7 @@ import {
24
24
  type InboxPage,
25
25
  } from "../_shared/member-inbox-transport.js";
26
26
  import { copyParam, stashCopy } from "../_shared/himi-copy.js";
27
+ import { guestSignIn } from "../_shared/guest-sign-in.js";
27
28
 
28
29
  type Row = Omit<InboxRow, "at">;
29
30
  const strip = ({ at: _at, ...row }: InboxRow): Row => row;
@@ -383,6 +384,9 @@ const idOf = (arg: unknown): string => textOf(arg, "id");
383
384
  const PIN = new Set(["1", "true"]);
384
385
  /** `undefined` = nothing to publish: a superseded read returns it rather than a snapshot, because the runtime replaces the
385
386
  * whole state with what an action returns and a snapshot taken now would overwrite what the newer read publishes next. */
387
+ /** A guest who opened the Inbox is offered the app's sign-in at once (the load params opt in: `signInScreenId`). */
388
+ const guest = guestSignIn();
389
+
386
390
  async function loadList(s: S, arg: unknown, retry: boolean): Promise<S | undefined> {
387
391
  stashCopy(arg);
388
392
  const screen = (arg as { businessScreenId?: unknown } | null)?.businessScreenId;
@@ -396,7 +400,8 @@ async function loadList(s: S, arg: unknown, retry: boolean): Promise<S | undefin
396
400
  let gen = -1;
397
401
  try {
398
402
  const identity = await chatIdentity();
399
- if (!identity.authenticated) return signedOutState();
403
+ if (!identity.authenticated) { guest.offer(arg); return signedOutState(); }
404
+ guest.member();
400
405
  const key = `${identity.email}|${identity.scope}`;
401
406
  switched = ownerKey !== "" && ownerKey !== key;
402
407
  if (switched) forgetMember();
@@ -14,6 +14,7 @@ import { navigate } from "@himalaya/state";
14
14
  import { notificationOpen, urlHost, type NotificationOpen } from "../_shared/notification-target.js";
15
15
  import { openRichLink } from "../_shared/rich-content-link.js";
16
16
  import { copyParam, copyTemplate } from "../_shared/himi-copy.js";
17
+ import { guestSignIn } from "../_shared/guest-sign-in.js";
17
18
 
18
19
  interface Row {
19
20
  id: string;
@@ -147,6 +148,8 @@ function currentInbox(s: S): S | undefined {
147
148
  }
148
149
 
149
150
  const defineService = withOnlineWrites(registerService, ["markOneRead","markAll"], { messageFields: ["actionMessage"] });
151
+ /** A guest who opened Notifications is offered the app's sign-in at once (the load params opt in: `signInScreenId`). */
152
+ const guest = guestSignIn();
150
153
  const INITIAL = { ...LOADING, items: [] as Row[], emptyText: "", actionMessage: "", pendingUrl: "", inboxMember: null };
151
154
  const svc = defineService<S, {
152
155
  prepare: (s: S) => S;
@@ -166,11 +169,15 @@ const svc = defineService<S, {
166
169
  const served = servedScreens(arg);
167
170
  try {
168
171
  const member = await requireMember();
172
+ // At once, not after the read: a signed-in load whose read fails would otherwise leave the one-shot offer consumed for the next guest.
173
+ guest.member();
169
174
  const items = (await queryNotifications(25)).map((n) => norm(n, served));
170
175
  await assertMemberAccess(member);
171
176
  return { ...s, ...loaded("items", items, COPY), inboxMember: member, actionMessage: "", pendingUrl: "" };
172
177
  } catch (err) {
173
- return { ...s, ...loadFailed("items", (await memberAccess()).email ? err : signInRequired(), COPY), inboxMember: null, actionMessage: "", pendingUrl: "" };
178
+ const signedIn = !!(await memberAccess()).email;
179
+ if (!signedIn) guest.offer(arg);
180
+ return { ...s, ...loadFailed("items", signedIn ? err : signInRequired(), COPY), inboxMember: null, actionMessage: "", pendingUrl: "" };
174
181
  }
175
182
  },
176
183
  // Mark one read; optimistically clear its dot. Real write is best-effort and
@@ -262,7 +262,20 @@ function settle(next: S, arg: unknown, latest = true): S {
262
262
  }
263
263
  // Account forwards only on an appear refresh: the boot `load()` has no params and its
264
264
  // navigation is dropped, so a forward there was lost and used up the one forward.
265
- return strField(arg, "signInScreen") ? forwardToSignIn(next) : next;
265
+ if (!strField(arg, "signInScreen")) return next;
266
+ const forwarded = forwardToSignIn(next);
267
+ return forwarded === next ? offerSignIn(next, arg) : forwarded;
268
+ }
269
+
270
+ /** Profile (appear param `signInOnAppear: "1"`, set by an app whose top bar leads with the profile avatar): a guest who opens it is
271
+ * offered the standalone sign-in as a sheet, once. The sheet closes by itself or by the guest: either way this screen is under it, so
272
+ * a guest who only closes it stays on the guest Profile. A reload that follows is not a second offer; a member resets it. */
273
+ let signInOffered = false;
274
+ function offerSignIn(next: S, arg: unknown): S {
275
+ if (next.isMember) { signInOffered = false; return next; }
276
+ if (strField(arg, "signInOnAppear") !== "1" || signInOffered || next.standalone) return next;
277
+ signInOffered = true;
278
+ return openSignIn(next, { mode: "signin" }, null);
266
279
  }
267
280
 
268
281
  // A tick reads only the session. The profile is read again only when the signed-in email
@@ -325,6 +338,9 @@ let pollIdentityRequested = false;
325
338
  // iOS can start the arg-less boot load after the appear refresh that asks for the row; the
326
339
  // newer boot probe must not land, or be kept, without it.
327
340
  let restorePurchasesRequested = false;
341
+ /** Profile's "Pages" group (appear param `showPages: "1"`): set on the screen's load by whoever knows the app's top bar
342
+ * leads with the profile avatar, so the drawer's pages stay reachable. Off, the group is hidden. */
343
+ let showPagesRequested = false;
328
344
  /** An app's sign-in form that carries the ended-session notice (appear param `sessionEndedNotice: "1"`).
329
345
  * Only that form gets the signed-out headline, whose copy only that app's pack translates, and the ended
330
346
  * session's address, which only its email field shows, so no form submits it unseen. */
@@ -342,6 +358,7 @@ function appearBase(): Partial<S> {
342
358
  standalone: standaloneRequested,
343
359
  pollIdentity: pollIdentityRequested,
344
360
  restorePurchases: restorePurchasesRequested,
361
+ showPages: showPagesRequested,
345
362
  // One `_poll` per state: Account polls identity and never shows the social block.
346
363
  ...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
347
364
  };
@@ -370,6 +387,7 @@ function appearConfig(s: S, arg: unknown): AppearConfig {
370
387
  standaloneRequested ||= s.standalone || appearing || (!routeInputConsumed && !!routeInput().mode);
371
388
  pollIdentityRequested ||= s.pollIdentity || strField(arg, "pollIdentity") === "1";
372
389
  restorePurchasesRequested ||= s.restorePurchases || strField(arg, "restorePurchases") === "1";
390
+ showPagesRequested ||= s.showPages || strField(arg, "showPages") === "1";
373
391
  sessionEndedNoticeRequested ||= strField(arg, "sessionEndedNotice") === "1";
374
392
  // The form opens on the mode its route asked for each time it appears, sign-in by
375
393
  // default: a pooled worker reopened with the same params must not open on the mode the
@@ -832,6 +850,10 @@ interface S extends IapRestoreFields {
832
850
  * `restorePurchases: "1"`). Only then does the worker reach the App Store layer, so a
833
851
  * descriptor that renders no such row need not declare `iap`. */
834
852
  restorePurchases: boolean;
853
+ /** Set once a descriptor asks for Profile's "Pages" group (appear param `showPages: "1"`). */
854
+ showPages: boolean;
855
+ /** Hides Profile's "Pages" group until then. */
856
+ hidePages: boolean;
835
857
  /** Top-bar cart badge, read only once a descriptor asks for it (appear param
836
858
  * `cartCount: "1"`), so an app with no store never reads a cart. A guest has a
837
859
  * visitor cart too, so this is read for members and guests alike. */
@@ -899,6 +921,7 @@ function derive(s: S): S {
899
921
  hideGuest: loading || !!s.isMember,
900
922
  hideMember: loading || !s.isMember,
901
923
  hideSessionEnded: loading || !!s.isMember || !s.sessionEnded,
924
+ hidePages: !s.showPages,
902
925
  password: "",
903
926
  busyMessage: s.authBusy ? translated("auth.feedback.busy") : "",
904
927
  isLoading: s.status === "loading",
@@ -1164,6 +1187,8 @@ const svc = defineService<S, {
1164
1187
  noMemberAddresses: true,
1165
1188
  noMemberWallet: true,
1166
1189
  restorePurchases: false,
1190
+ showPages: false,
1191
+ hidePages: true,
1167
1192
  cartCount: 0,
1168
1193
  greeting: "Hey, guest",
1169
1194
  greetingFirstName: "",
@@ -3189,6 +3189,229 @@ const SCREENS = runtimeSetting({
3189
3189
  }
3190
3190
  }
3191
3191
  },
3192
+ {
3193
+ "id": "",
3194
+ "body": {
3195
+ "package": "himalaya",
3196
+ "type": "VStack",
3197
+ "props": {
3198
+ "spacing": 0,
3199
+ "alignment": "leading",
3200
+ "children": [
3201
+ {
3202
+ "id": "himi_account.pages_heading",
3203
+ "body": {
3204
+ "package": "himalaya",
3205
+ "type": "Text",
3206
+ "props": {
3207
+ "text": "Pages",
3208
+ "style": "footnote",
3209
+ "color": "textSecondary"
3210
+ }
3211
+ },
3212
+ "modifiers": {
3213
+ "padding": {
3214
+ "top": 8,
3215
+ "bottom": 4
3216
+ }
3217
+ }
3218
+ },
3219
+ {
3220
+ "id": "himi_account.page_blog",
3221
+ "body": {
3222
+ "package": "himalaya",
3223
+ "type": "HStack",
3224
+ "props": {
3225
+ "spacing": 12,
3226
+ "alignment": "center",
3227
+ "children": [
3228
+ {
3229
+ "id": "",
3230
+ "body": {
3231
+ "package": "himalaya",
3232
+ "type": "ZStack",
3233
+ "props": {
3234
+ "alignment": "center",
3235
+ "children": [
3236
+ {
3237
+ "id": "",
3238
+ "body": {
3239
+ "package": "himalaya",
3240
+ "type": "Icon",
3241
+ "props": {
3242
+ "name": "newspaper",
3243
+ "size": 20,
3244
+ "tint": "textPrimary"
3245
+ }
3246
+ },
3247
+ "modifiers": {
3248
+ "accessibilityRole": "decorative"
3249
+ }
3250
+ }
3251
+ ]
3252
+ }
3253
+ },
3254
+ "modifiers": {
3255
+ "width": 24,
3256
+ "height": 24
3257
+ }
3258
+ },
3259
+ {
3260
+ "id": "",
3261
+ "body": {
3262
+ "package": "himalaya",
3263
+ "type": "Text",
3264
+ "props": {
3265
+ "text": "Blog",
3266
+ "style": "body",
3267
+ "maxLines": 1
3268
+ }
3269
+ }
3270
+ },
3271
+ {
3272
+ "id": "",
3273
+ "body": {
3274
+ "package": "himalaya",
3275
+ "type": "Spacer",
3276
+ "props": {}
3277
+ }
3278
+ }
3279
+ ]
3280
+ }
3281
+ },
3282
+ "modifiers": {
3283
+ "fillMaxWidth": true,
3284
+ "padding": {
3285
+ "top": 12,
3286
+ "bottom": 12
3287
+ },
3288
+ "onTap": {
3289
+ "actionId": "himi.open",
3290
+ "params": {
3291
+ "screenId": "himi_blog"
3292
+ }
3293
+ },
3294
+ "pressFeedback": "highlight",
3295
+ "haptic": "light",
3296
+ "accessibilityRole": "button",
3297
+ "accessibilityLabel": "Blog"
3298
+ }
3299
+ },
3300
+ {
3301
+ "id": "himi_account.page_cms",
3302
+ "body": {
3303
+ "package": "himalaya",
3304
+ "type": "HStack",
3305
+ "props": {
3306
+ "spacing": 12,
3307
+ "alignment": "center",
3308
+ "children": [
3309
+ {
3310
+ "id": "",
3311
+ "body": {
3312
+ "package": "himalaya",
3313
+ "type": "ZStack",
3314
+ "props": {
3315
+ "alignment": "center",
3316
+ "children": [
3317
+ {
3318
+ "id": "",
3319
+ "body": {
3320
+ "package": "himalaya",
3321
+ "type": "Icon",
3322
+ "props": {
3323
+ "name": "grid",
3324
+ "size": 20,
3325
+ "tint": "textPrimary"
3326
+ }
3327
+ },
3328
+ "modifiers": {
3329
+ "accessibilityRole": "decorative"
3330
+ }
3331
+ }
3332
+ ]
3333
+ }
3334
+ },
3335
+ "modifiers": {
3336
+ "width": 24,
3337
+ "height": 24
3338
+ }
3339
+ },
3340
+ {
3341
+ "id": "",
3342
+ "body": {
3343
+ "package": "himalaya",
3344
+ "type": "Text",
3345
+ "props": {
3346
+ "text": "Content",
3347
+ "style": "body",
3348
+ "maxLines": 1
3349
+ }
3350
+ }
3351
+ },
3352
+ {
3353
+ "id": "",
3354
+ "body": {
3355
+ "package": "himalaya",
3356
+ "type": "Spacer",
3357
+ "props": {}
3358
+ }
3359
+ }
3360
+ ]
3361
+ }
3362
+ },
3363
+ "modifiers": {
3364
+ "fillMaxWidth": true,
3365
+ "padding": {
3366
+ "top": 12,
3367
+ "bottom": 12
3368
+ },
3369
+ "onTap": {
3370
+ "actionId": "himi.open",
3371
+ "params": {
3372
+ "screenId": "himi_cms"
3373
+ }
3374
+ },
3375
+ "pressFeedback": "highlight",
3376
+ "haptic": "light",
3377
+ "accessibilityRole": "button",
3378
+ "accessibilityLabel": "Content"
3379
+ }
3380
+ },
3381
+ {
3382
+ "id": "",
3383
+ "body": {
3384
+ "package": "himalaya",
3385
+ "type": "VStack",
3386
+ "props": {
3387
+ "spacing": 0,
3388
+ "children": [
3389
+ {
3390
+ "id": "",
3391
+ "body": {
3392
+ "package": "himalaya",
3393
+ "type": "Divider",
3394
+ "props": {}
3395
+ }
3396
+ }
3397
+ ]
3398
+ }
3399
+ },
3400
+ "modifiers": {
3401
+ "fillMaxWidth": true,
3402
+ "padding": {
3403
+ "top": 8,
3404
+ "bottom": 8
3405
+ }
3406
+ }
3407
+ }
3408
+ ]
3409
+ }
3410
+ },
3411
+ "modifiers": {
3412
+ "hiddenPath": "$service:himiStoreAccount.hidePages"
3413
+ }
3414
+ },
3192
3415
  {
3193
3416
  "id": "himi_account.language",
3194
3417
  "body": {
@@ -1430,6 +1430,12 @@
1430
1430
  "translation": "إغلاق",
1431
1431
  "origin": "machine"
1432
1432
  },
1433
+ "h_600584c2d5cc": {
1434
+ "key": "account.pagesHeading",
1435
+ "source": "Pages",
1436
+ "translation": "الصفحات",
1437
+ "origin": "machine"
1438
+ },
1433
1439
  "h_1e9b74b4dda5": {
1434
1440
  "source": "Show all ({count})",
1435
1441
  "translation": "عرض الكل ({count})",
@@ -1430,6 +1430,12 @@
1430
1430
  "translation": "Zavřít",
1431
1431
  "origin": "machine"
1432
1432
  },
1433
+ "h_600584c2d5cc": {
1434
+ "key": "account.pagesHeading",
1435
+ "source": "Pages",
1436
+ "translation": "Stránky",
1437
+ "origin": "machine"
1438
+ },
1433
1439
  "h_1e9b74b4dda5": {
1434
1440
  "source": "Show all ({count})",
1435
1441
  "translation": "Zobrazit vše ({count})",
@@ -1430,6 +1430,12 @@
1430
1430
  "translation": "Luk",
1431
1431
  "origin": "machine"
1432
1432
  },
1433
+ "h_600584c2d5cc": {
1434
+ "key": "account.pagesHeading",
1435
+ "source": "Pages",
1436
+ "translation": "Sider",
1437
+ "origin": "machine"
1438
+ },
1433
1439
  "h_1e9b74b4dda5": {
1434
1440
  "source": "Show all ({count})",
1435
1441
  "translation": "Vis alle ({count})",
@@ -1430,6 +1430,12 @@
1430
1430
  "translation": "Schließen",
1431
1431
  "origin": "machine"
1432
1432
  },
1433
+ "h_600584c2d5cc": {
1434
+ "key": "account.pagesHeading",
1435
+ "source": "Pages",
1436
+ "translation": "Seiten",
1437
+ "origin": "machine"
1438
+ },
1433
1439
  "h_1e9b74b4dda5": {
1434
1440
  "source": "Show all ({count})",
1435
1441
  "translation": "Alle anzeigen ({count})",