@wix/himalaya-cli 0.1835.0 → 0.1837.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 (367) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/local-db/src/index.d.ts +15 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
  4. package/dist/browser-plane/assets.json +5 -5
  5. package/dist/browser-plane/preview-deferred/{9258d331cc401dff7b183ce732d49df2e480ea113b52198a4a10790167519c09.bin → 12b7dd1ca5ed350a30ed6a0085a4c31f30b46688e3795c425f145dfdd3830b31.bin} +1 -1
  6. package/dist/browser-plane/sw.js +8 -8
  7. package/dist/cli.mjs +1010 -705
  8. package/dist/preview-assets.generated.bin +0 -0
  9. package/guides/app-config.md +42 -0
  10. package/guides/component-index.md +198 -0
  11. package/guides/designing-himi-screens.md +6 -5
  12. package/guides/getting-started.md +5 -1
  13. package/guides/himi-json-output.md +14 -1
  14. package/guides/himi-skill.md +5 -1
  15. package/guides/himi-test.md +6 -1
  16. package/guides/index.json +6 -0
  17. package/guides/release-notes.md +8 -0
  18. package/guides/sdk-reference.json +1 -1
  19. package/guides/skill.md +4 -0
  20. package/guides/tier-5-add-a-screen.md +10 -5
  21. package/guides/web-ux.md +2 -1
  22. package/package.json +2 -2
  23. package/templates/beauty-salon/dev/index.ts +305 -2
  24. package/templates/beauty-salon/l10n/ar.json +77 -0
  25. package/templates/beauty-salon/l10n/cs.json +77 -0
  26. package/templates/beauty-salon/l10n/da.json +77 -0
  27. package/templates/beauty-salon/l10n/de.json +77 -0
  28. package/templates/beauty-salon/l10n/el.json +77 -0
  29. package/templates/beauty-salon/l10n/en.json +85 -1
  30. package/templates/beauty-salon/l10n/es.json +77 -0
  31. package/templates/beauty-salon/l10n/fi.json +77 -0
  32. package/templates/beauty-salon/l10n/fr.json +77 -0
  33. package/templates/beauty-salon/l10n/he.json +64 -0
  34. package/templates/beauty-salon/l10n/hu.json +77 -0
  35. package/templates/beauty-salon/l10n/id.json +77 -0
  36. package/templates/beauty-salon/l10n/it.json +77 -0
  37. package/templates/beauty-salon/l10n/ja.json +77 -0
  38. package/templates/beauty-salon/l10n/ko.json +77 -0
  39. package/templates/beauty-salon/l10n/lt.json +77 -0
  40. package/templates/beauty-salon/l10n/nl.json +77 -0
  41. package/templates/beauty-salon/l10n/no.json +77 -0
  42. package/templates/beauty-salon/l10n/pl.json +77 -0
  43. package/templates/beauty-salon/l10n/pt.json +77 -0
  44. package/templates/beauty-salon/l10n/ru.json +77 -0
  45. package/templates/beauty-salon/l10n/sv.json +77 -0
  46. package/templates/beauty-salon/l10n/th.json +77 -0
  47. package/templates/beauty-salon/l10n/tr.json +77 -0
  48. package/templates/beauty-salon/l10n/uk.json +77 -0
  49. package/templates/beauty-salon/l10n/vi.json +77 -0
  50. package/templates/beauty-salon/l10n/zh.json +77 -0
  51. package/templates/beauty-salon/tier5-src/_shared/push-permission.ts +75 -0
  52. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +103 -4
  53. package/templates/beauty-salon/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  54. package/templates/branded-lite/dev/index.ts +305 -2
  55. package/templates/branded-lite/l10n/ar.json +77 -0
  56. package/templates/branded-lite/l10n/cs.json +77 -0
  57. package/templates/branded-lite/l10n/da.json +77 -0
  58. package/templates/branded-lite/l10n/de.json +77 -0
  59. package/templates/branded-lite/l10n/el.json +77 -0
  60. package/templates/branded-lite/l10n/en.json +85 -1
  61. package/templates/branded-lite/l10n/es.json +77 -0
  62. package/templates/branded-lite/l10n/fi.json +77 -0
  63. package/templates/branded-lite/l10n/fr.json +77 -0
  64. package/templates/branded-lite/l10n/he.json +64 -0
  65. package/templates/branded-lite/l10n/hu.json +77 -0
  66. package/templates/branded-lite/l10n/id.json +77 -0
  67. package/templates/branded-lite/l10n/it.json +77 -0
  68. package/templates/branded-lite/l10n/ja.json +77 -0
  69. package/templates/branded-lite/l10n/ko.json +77 -0
  70. package/templates/branded-lite/l10n/lt.json +77 -0
  71. package/templates/branded-lite/l10n/nl.json +77 -0
  72. package/templates/branded-lite/l10n/no.json +77 -0
  73. package/templates/branded-lite/l10n/pl.json +77 -0
  74. package/templates/branded-lite/l10n/pt.json +77 -0
  75. package/templates/branded-lite/l10n/ru.json +77 -0
  76. package/templates/branded-lite/l10n/sv.json +77 -0
  77. package/templates/branded-lite/l10n/th.json +77 -0
  78. package/templates/branded-lite/l10n/tr.json +77 -0
  79. package/templates/branded-lite/l10n/uk.json +77 -0
  80. package/templates/branded-lite/l10n/vi.json +77 -0
  81. package/templates/branded-lite/l10n/zh.json +77 -0
  82. package/templates/branded-lite/tier5-src/_shared/push-permission.ts +75 -0
  83. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +103 -4
  84. package/templates/branded-lite/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  85. package/templates/community-club/dev/index.ts +305 -2
  86. package/templates/community-club/l10n/ar.json +77 -0
  87. package/templates/community-club/l10n/cs.json +77 -0
  88. package/templates/community-club/l10n/da.json +77 -0
  89. package/templates/community-club/l10n/de.json +77 -0
  90. package/templates/community-club/l10n/el.json +77 -0
  91. package/templates/community-club/l10n/en.json +85 -1
  92. package/templates/community-club/l10n/es.json +77 -0
  93. package/templates/community-club/l10n/fi.json +77 -0
  94. package/templates/community-club/l10n/fr.json +77 -0
  95. package/templates/community-club/l10n/he.json +64 -0
  96. package/templates/community-club/l10n/hu.json +77 -0
  97. package/templates/community-club/l10n/id.json +77 -0
  98. package/templates/community-club/l10n/it.json +77 -0
  99. package/templates/community-club/l10n/ja.json +77 -0
  100. package/templates/community-club/l10n/ko.json +77 -0
  101. package/templates/community-club/l10n/lt.json +77 -0
  102. package/templates/community-club/l10n/nl.json +77 -0
  103. package/templates/community-club/l10n/no.json +77 -0
  104. package/templates/community-club/l10n/pl.json +77 -0
  105. package/templates/community-club/l10n/pt.json +77 -0
  106. package/templates/community-club/l10n/ru.json +77 -0
  107. package/templates/community-club/l10n/sv.json +77 -0
  108. package/templates/community-club/l10n/th.json +77 -0
  109. package/templates/community-club/l10n/tr.json +77 -0
  110. package/templates/community-club/l10n/uk.json +77 -0
  111. package/templates/community-club/l10n/vi.json +77 -0
  112. package/templates/community-club/l10n/zh.json +77 -0
  113. package/templates/community-club/tier5-src/_shared/push-permission.ts +75 -0
  114. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +103 -4
  115. package/templates/community-club/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  116. package/templates/events-meetups/dev/index.ts +305 -2
  117. package/templates/events-meetups/l10n/ar.json +77 -0
  118. package/templates/events-meetups/l10n/cs.json +77 -0
  119. package/templates/events-meetups/l10n/da.json +77 -0
  120. package/templates/events-meetups/l10n/de.json +77 -0
  121. package/templates/events-meetups/l10n/el.json +77 -0
  122. package/templates/events-meetups/l10n/en.json +85 -1
  123. package/templates/events-meetups/l10n/es.json +77 -0
  124. package/templates/events-meetups/l10n/fi.json +77 -0
  125. package/templates/events-meetups/l10n/fr.json +77 -0
  126. package/templates/events-meetups/l10n/he.json +64 -0
  127. package/templates/events-meetups/l10n/hu.json +77 -0
  128. package/templates/events-meetups/l10n/id.json +77 -0
  129. package/templates/events-meetups/l10n/it.json +77 -0
  130. package/templates/events-meetups/l10n/ja.json +77 -0
  131. package/templates/events-meetups/l10n/ko.json +77 -0
  132. package/templates/events-meetups/l10n/lt.json +77 -0
  133. package/templates/events-meetups/l10n/nl.json +77 -0
  134. package/templates/events-meetups/l10n/no.json +77 -0
  135. package/templates/events-meetups/l10n/pl.json +77 -0
  136. package/templates/events-meetups/l10n/pt.json +77 -0
  137. package/templates/events-meetups/l10n/ru.json +77 -0
  138. package/templates/events-meetups/l10n/sv.json +77 -0
  139. package/templates/events-meetups/l10n/th.json +77 -0
  140. package/templates/events-meetups/l10n/tr.json +77 -0
  141. package/templates/events-meetups/l10n/uk.json +77 -0
  142. package/templates/events-meetups/l10n/vi.json +77 -0
  143. package/templates/events-meetups/l10n/zh.json +77 -0
  144. package/templates/events-meetups/tier5-src/_shared/push-permission.ts +75 -0
  145. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +103 -4
  146. package/templates/events-meetups/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  147. package/templates/gym-fitness/dev/index.ts +305 -2
  148. package/templates/gym-fitness/l10n/ar.json +77 -0
  149. package/templates/gym-fitness/l10n/cs.json +77 -0
  150. package/templates/gym-fitness/l10n/da.json +77 -0
  151. package/templates/gym-fitness/l10n/de.json +77 -0
  152. package/templates/gym-fitness/l10n/el.json +77 -0
  153. package/templates/gym-fitness/l10n/en.json +85 -1
  154. package/templates/gym-fitness/l10n/es.json +77 -0
  155. package/templates/gym-fitness/l10n/fi.json +77 -0
  156. package/templates/gym-fitness/l10n/fr.json +77 -0
  157. package/templates/gym-fitness/l10n/he.json +64 -0
  158. package/templates/gym-fitness/l10n/hu.json +77 -0
  159. package/templates/gym-fitness/l10n/id.json +77 -0
  160. package/templates/gym-fitness/l10n/it.json +77 -0
  161. package/templates/gym-fitness/l10n/ja.json +77 -0
  162. package/templates/gym-fitness/l10n/ko.json +77 -0
  163. package/templates/gym-fitness/l10n/lt.json +77 -0
  164. package/templates/gym-fitness/l10n/nl.json +77 -0
  165. package/templates/gym-fitness/l10n/no.json +77 -0
  166. package/templates/gym-fitness/l10n/pl.json +77 -0
  167. package/templates/gym-fitness/l10n/pt.json +77 -0
  168. package/templates/gym-fitness/l10n/ru.json +77 -0
  169. package/templates/gym-fitness/l10n/sv.json +77 -0
  170. package/templates/gym-fitness/l10n/th.json +77 -0
  171. package/templates/gym-fitness/l10n/tr.json +77 -0
  172. package/templates/gym-fitness/l10n/uk.json +77 -0
  173. package/templates/gym-fitness/l10n/vi.json +77 -0
  174. package/templates/gym-fitness/l10n/zh.json +77 -0
  175. package/templates/gym-fitness/tier5-src/_shared/push-permission.ts +75 -0
  176. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +103 -4
  177. package/templates/gym-fitness/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  178. package/templates/nonprofit-cause/dev/index.ts +305 -2
  179. package/templates/nonprofit-cause/l10n/ar.json +77 -0
  180. package/templates/nonprofit-cause/l10n/cs.json +77 -0
  181. package/templates/nonprofit-cause/l10n/da.json +77 -0
  182. package/templates/nonprofit-cause/l10n/de.json +77 -0
  183. package/templates/nonprofit-cause/l10n/el.json +77 -0
  184. package/templates/nonprofit-cause/l10n/en.json +85 -1
  185. package/templates/nonprofit-cause/l10n/es.json +77 -0
  186. package/templates/nonprofit-cause/l10n/fi.json +77 -0
  187. package/templates/nonprofit-cause/l10n/fr.json +77 -0
  188. package/templates/nonprofit-cause/l10n/he.json +64 -0
  189. package/templates/nonprofit-cause/l10n/hu.json +77 -0
  190. package/templates/nonprofit-cause/l10n/id.json +77 -0
  191. package/templates/nonprofit-cause/l10n/it.json +77 -0
  192. package/templates/nonprofit-cause/l10n/ja.json +77 -0
  193. package/templates/nonprofit-cause/l10n/ko.json +77 -0
  194. package/templates/nonprofit-cause/l10n/lt.json +77 -0
  195. package/templates/nonprofit-cause/l10n/nl.json +77 -0
  196. package/templates/nonprofit-cause/l10n/no.json +77 -0
  197. package/templates/nonprofit-cause/l10n/pl.json +77 -0
  198. package/templates/nonprofit-cause/l10n/pt.json +77 -0
  199. package/templates/nonprofit-cause/l10n/ru.json +77 -0
  200. package/templates/nonprofit-cause/l10n/sv.json +77 -0
  201. package/templates/nonprofit-cause/l10n/th.json +77 -0
  202. package/templates/nonprofit-cause/l10n/tr.json +77 -0
  203. package/templates/nonprofit-cause/l10n/uk.json +77 -0
  204. package/templates/nonprofit-cause/l10n/vi.json +77 -0
  205. package/templates/nonprofit-cause/l10n/zh.json +77 -0
  206. package/templates/nonprofit-cause/tier5-src/_shared/push-permission.ts +75 -0
  207. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +103 -4
  208. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  209. package/templates/personal-fitness-trainer/config.ts +1 -1
  210. package/templates/personal-fitness-trainer/dev/index.ts +129 -1
  211. package/templates/personal-fitness-trainer/tier5-src/_shared/push-permission.ts +75 -0
  212. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  213. package/templates/podcast-creator/dev/index.ts +305 -2
  214. package/templates/podcast-creator/l10n/ar.json +77 -0
  215. package/templates/podcast-creator/l10n/cs.json +77 -0
  216. package/templates/podcast-creator/l10n/da.json +77 -0
  217. package/templates/podcast-creator/l10n/de.json +77 -0
  218. package/templates/podcast-creator/l10n/el.json +77 -0
  219. package/templates/podcast-creator/l10n/en.json +85 -1
  220. package/templates/podcast-creator/l10n/es.json +77 -0
  221. package/templates/podcast-creator/l10n/fi.json +77 -0
  222. package/templates/podcast-creator/l10n/fr.json +77 -0
  223. package/templates/podcast-creator/l10n/he.json +64 -0
  224. package/templates/podcast-creator/l10n/hu.json +77 -0
  225. package/templates/podcast-creator/l10n/id.json +77 -0
  226. package/templates/podcast-creator/l10n/it.json +77 -0
  227. package/templates/podcast-creator/l10n/ja.json +77 -0
  228. package/templates/podcast-creator/l10n/ko.json +77 -0
  229. package/templates/podcast-creator/l10n/lt.json +77 -0
  230. package/templates/podcast-creator/l10n/nl.json +77 -0
  231. package/templates/podcast-creator/l10n/no.json +77 -0
  232. package/templates/podcast-creator/l10n/pl.json +77 -0
  233. package/templates/podcast-creator/l10n/pt.json +77 -0
  234. package/templates/podcast-creator/l10n/ru.json +77 -0
  235. package/templates/podcast-creator/l10n/sv.json +77 -0
  236. package/templates/podcast-creator/l10n/th.json +77 -0
  237. package/templates/podcast-creator/l10n/tr.json +77 -0
  238. package/templates/podcast-creator/l10n/uk.json +77 -0
  239. package/templates/podcast-creator/l10n/vi.json +77 -0
  240. package/templates/podcast-creator/l10n/zh.json +77 -0
  241. package/templates/podcast-creator/tier5-src/_shared/push-permission.ts +75 -0
  242. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +103 -4
  243. package/templates/podcast-creator/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  244. package/templates/portfolio-creative/dev/index.ts +305 -2
  245. package/templates/portfolio-creative/l10n/ar.json +77 -0
  246. package/templates/portfolio-creative/l10n/cs.json +77 -0
  247. package/templates/portfolio-creative/l10n/da.json +77 -0
  248. package/templates/portfolio-creative/l10n/de.json +77 -0
  249. package/templates/portfolio-creative/l10n/el.json +77 -0
  250. package/templates/portfolio-creative/l10n/en.json +85 -1
  251. package/templates/portfolio-creative/l10n/es.json +77 -0
  252. package/templates/portfolio-creative/l10n/fi.json +77 -0
  253. package/templates/portfolio-creative/l10n/fr.json +77 -0
  254. package/templates/portfolio-creative/l10n/he.json +64 -0
  255. package/templates/portfolio-creative/l10n/hu.json +77 -0
  256. package/templates/portfolio-creative/l10n/id.json +77 -0
  257. package/templates/portfolio-creative/l10n/it.json +77 -0
  258. package/templates/portfolio-creative/l10n/ja.json +77 -0
  259. package/templates/portfolio-creative/l10n/ko.json +77 -0
  260. package/templates/portfolio-creative/l10n/lt.json +77 -0
  261. package/templates/portfolio-creative/l10n/nl.json +77 -0
  262. package/templates/portfolio-creative/l10n/no.json +77 -0
  263. package/templates/portfolio-creative/l10n/pl.json +77 -0
  264. package/templates/portfolio-creative/l10n/pt.json +77 -0
  265. package/templates/portfolio-creative/l10n/ru.json +77 -0
  266. package/templates/portfolio-creative/l10n/sv.json +77 -0
  267. package/templates/portfolio-creative/l10n/th.json +77 -0
  268. package/templates/portfolio-creative/l10n/tr.json +77 -0
  269. package/templates/portfolio-creative/l10n/uk.json +77 -0
  270. package/templates/portfolio-creative/l10n/vi.json +77 -0
  271. package/templates/portfolio-creative/l10n/zh.json +77 -0
  272. package/templates/portfolio-creative/tier5-src/_shared/push-permission.ts +75 -0
  273. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +103 -4
  274. package/templates/portfolio-creative/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  275. package/templates/restaurant/dev/index.ts +305 -2
  276. package/templates/restaurant/l10n/ar.json +77 -0
  277. package/templates/restaurant/l10n/cs.json +77 -0
  278. package/templates/restaurant/l10n/da.json +77 -0
  279. package/templates/restaurant/l10n/de.json +77 -0
  280. package/templates/restaurant/l10n/el.json +77 -0
  281. package/templates/restaurant/l10n/en.json +85 -1
  282. package/templates/restaurant/l10n/es.json +77 -0
  283. package/templates/restaurant/l10n/fi.json +77 -0
  284. package/templates/restaurant/l10n/fr.json +77 -0
  285. package/templates/restaurant/l10n/he.json +64 -0
  286. package/templates/restaurant/l10n/hu.json +77 -0
  287. package/templates/restaurant/l10n/id.json +77 -0
  288. package/templates/restaurant/l10n/it.json +77 -0
  289. package/templates/restaurant/l10n/ja.json +77 -0
  290. package/templates/restaurant/l10n/ko.json +77 -0
  291. package/templates/restaurant/l10n/lt.json +77 -0
  292. package/templates/restaurant/l10n/nl.json +77 -0
  293. package/templates/restaurant/l10n/no.json +77 -0
  294. package/templates/restaurant/l10n/pl.json +77 -0
  295. package/templates/restaurant/l10n/pt.json +77 -0
  296. package/templates/restaurant/l10n/ru.json +77 -0
  297. package/templates/restaurant/l10n/sv.json +77 -0
  298. package/templates/restaurant/l10n/th.json +77 -0
  299. package/templates/restaurant/l10n/tr.json +77 -0
  300. package/templates/restaurant/l10n/uk.json +77 -0
  301. package/templates/restaurant/l10n/vi.json +77 -0
  302. package/templates/restaurant/l10n/zh.json +77 -0
  303. package/templates/restaurant/tier5-src/_shared/push-permission.ts +75 -0
  304. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +103 -4
  305. package/templates/restaurant/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  306. package/templates/retail-store/dev/index.ts +305 -2
  307. package/templates/retail-store/l10n/ar.json +77 -0
  308. package/templates/retail-store/l10n/cs.json +77 -0
  309. package/templates/retail-store/l10n/da.json +77 -0
  310. package/templates/retail-store/l10n/de.json +77 -0
  311. package/templates/retail-store/l10n/el.json +77 -0
  312. package/templates/retail-store/l10n/en.json +85 -1
  313. package/templates/retail-store/l10n/es.json +77 -0
  314. package/templates/retail-store/l10n/fi.json +77 -0
  315. package/templates/retail-store/l10n/fr.json +77 -0
  316. package/templates/retail-store/l10n/he.json +64 -0
  317. package/templates/retail-store/l10n/hu.json +77 -0
  318. package/templates/retail-store/l10n/id.json +77 -0
  319. package/templates/retail-store/l10n/it.json +77 -0
  320. package/templates/retail-store/l10n/ja.json +77 -0
  321. package/templates/retail-store/l10n/ko.json +77 -0
  322. package/templates/retail-store/l10n/lt.json +77 -0
  323. package/templates/retail-store/l10n/nl.json +77 -0
  324. package/templates/retail-store/l10n/no.json +77 -0
  325. package/templates/retail-store/l10n/pl.json +77 -0
  326. package/templates/retail-store/l10n/pt.json +77 -0
  327. package/templates/retail-store/l10n/ru.json +77 -0
  328. package/templates/retail-store/l10n/sv.json +77 -0
  329. package/templates/retail-store/l10n/th.json +77 -0
  330. package/templates/retail-store/l10n/tr.json +77 -0
  331. package/templates/retail-store/l10n/uk.json +77 -0
  332. package/templates/retail-store/l10n/vi.json +77 -0
  333. package/templates/retail-store/l10n/zh.json +77 -0
  334. package/templates/retail-store/tier5-src/_shared/push-permission.ts +75 -0
  335. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +103 -4
  336. package/templates/retail-store/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
  337. package/templates/yoga-studio/dev/index.ts +305 -2
  338. package/templates/yoga-studio/l10n/ar.json +77 -0
  339. package/templates/yoga-studio/l10n/cs.json +77 -0
  340. package/templates/yoga-studio/l10n/da.json +77 -0
  341. package/templates/yoga-studio/l10n/de.json +77 -0
  342. package/templates/yoga-studio/l10n/el.json +77 -0
  343. package/templates/yoga-studio/l10n/en.json +85 -1
  344. package/templates/yoga-studio/l10n/es.json +77 -0
  345. package/templates/yoga-studio/l10n/fi.json +77 -0
  346. package/templates/yoga-studio/l10n/fr.json +77 -0
  347. package/templates/yoga-studio/l10n/he.json +64 -0
  348. package/templates/yoga-studio/l10n/hu.json +77 -0
  349. package/templates/yoga-studio/l10n/id.json +77 -0
  350. package/templates/yoga-studio/l10n/it.json +77 -0
  351. package/templates/yoga-studio/l10n/ja.json +77 -0
  352. package/templates/yoga-studio/l10n/ko.json +77 -0
  353. package/templates/yoga-studio/l10n/lt.json +77 -0
  354. package/templates/yoga-studio/l10n/nl.json +77 -0
  355. package/templates/yoga-studio/l10n/no.json +77 -0
  356. package/templates/yoga-studio/l10n/pl.json +77 -0
  357. package/templates/yoga-studio/l10n/pt.json +77 -0
  358. package/templates/yoga-studio/l10n/ru.json +77 -0
  359. package/templates/yoga-studio/l10n/sv.json +77 -0
  360. package/templates/yoga-studio/l10n/th.json +77 -0
  361. package/templates/yoga-studio/l10n/tr.json +77 -0
  362. package/templates/yoga-studio/l10n/uk.json +77 -0
  363. package/templates/yoga-studio/l10n/vi.json +77 -0
  364. package/templates/yoga-studio/l10n/zh.json +77 -0
  365. package/templates/yoga-studio/tier5-src/_shared/push-permission.ts +75 -0
  366. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +103 -4
  367. package/templates/yoga-studio/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
@@ -4376,6 +4376,78 @@
4376
4376
  "translation": "Skicka svar",
4377
4377
  "origin": "machine"
4378
4378
  },
4379
+ "h_134635e9a2a6": {
4380
+ "key": "notifsettings.openSettingsCta",
4381
+ "source": "Open Settings",
4382
+ "translation": "Öppna Inställningar",
4383
+ "origin": "machine"
4384
+ },
4385
+ "h_2bcb76170ec3": {
4386
+ "key": "notifsettings.pushOffTitle",
4387
+ "source": "Notifications are off on this phone",
4388
+ "translation": "Aviseringar är avstängda på den här telefonen",
4389
+ "origin": "machine"
4390
+ },
4391
+ "h_31b3496929a9": {
4392
+ "key": "notifsettings.pushAskBody",
4393
+ "source": "Allow notifications on this phone to get the updates you choose below.",
4394
+ "translation": "Tillåt aviseringar på den här telefonen för att få de uppdateringar du väljer nedan.",
4395
+ "origin": "machine"
4396
+ },
4397
+ "h_5ab087ec11ff": {
4398
+ "key": "notifsettings.turnOnCta",
4399
+ "source": "Turn on notifications",
4400
+ "translation": "Aktivera aviseringar",
4401
+ "origin": "machine"
4402
+ },
4403
+ "h_e45714907316": {
4404
+ "key": "home.pushAskNotNow",
4405
+ "source": "Not now",
4406
+ "translation": "Inte nu",
4407
+ "origin": "machine"
4408
+ },
4409
+ "h_e9093cc9cde8": {
4410
+ "key": "home.pushAskBodyOrdersBookings",
4411
+ "source": "Get notified when your order status changes, and get reminders about your bookings.",
4412
+ "translation": "Få en avisering när statusen för din beställning ändras, och påminnelser om dina bokningar.",
4413
+ "origin": "machine"
4414
+ },
4415
+ "h_f54254af0c08": {
4416
+ "key": "home.pushAskTitle",
4417
+ "source": "Stay in the loop",
4418
+ "translation": "Håll dig uppdaterad",
4419
+ "origin": "machine"
4420
+ },
4421
+ "h_01828fbf543c": {
4422
+ "key": "home.pushAskBodyOrders",
4423
+ "source": "Get notified when your order status changes.",
4424
+ "translation": "Få en avisering när statusen för din beställning ändras.",
4425
+ "origin": "machine"
4426
+ },
4427
+ "h_a365748a7092": {
4428
+ "key": "home.pushAskBodyBookings",
4429
+ "source": "Get reminders and updates about your bookings.",
4430
+ "translation": "Få påminnelser och uppdateringar om dina bokningar.",
4431
+ "origin": "machine"
4432
+ },
4433
+ "h_fb0c45519478": {
4434
+ "key": "home.pushAskBodyGeneral",
4435
+ "source": "Get notified about replies and updates that matter to you.",
4436
+ "translation": "Få aviseringar om svar och uppdateringar som är viktiga för dig.",
4437
+ "origin": "machine"
4438
+ },
4439
+ "h_b115e30c1a23": {
4440
+ "key": "notifsettings.pushAskTitle",
4441
+ "source": "Notifications aren't on yet",
4442
+ "translation": "Aviseringar är inte aktiverade än",
4443
+ "origin": "machine"
4444
+ },
4445
+ "h_282e81f51b9e": {
4446
+ "key": "notifsettings.pushOffBody",
4447
+ "source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
4448
+ "translation": "Dina val nedan är sparade, men inget kommer fram förrän aviseringar är tillåtna på den här telefonen.",
4449
+ "origin": "machine"
4450
+ },
4379
4451
  "h_1e9b74b4dda5": {
4380
4452
  "source": "Show all ({count})",
4381
4453
  "translation": "Visa alla ({count})",
@@ -9705,6 +9777,11 @@
9705
9777
  "source": "{correct} of {total} answers were right.",
9706
9778
  "translation": "{correct} av {total} svar var rätt.",
9707
9779
  "origin": "machine"
9780
+ },
9781
+ "h_27b36f21a125": {
9782
+ "source": "Change notifications for this app in your phone's settings.",
9783
+ "translation": "Ändra aviseringar för den här appen i telefonens inställningar.",
9784
+ "origin": "machine"
9708
9785
  }
9709
9786
  }
9710
9787
  }
@@ -4376,6 +4376,78 @@
4376
4376
  "translation": "ส่งคำตอบ",
4377
4377
  "origin": "machine"
4378
4378
  },
4379
+ "h_134635e9a2a6": {
4380
+ "key": "notifsettings.openSettingsCta",
4381
+ "source": "Open Settings",
4382
+ "translation": "เปิดการตั้งค่า",
4383
+ "origin": "machine"
4384
+ },
4385
+ "h_2bcb76170ec3": {
4386
+ "key": "notifsettings.pushOffTitle",
4387
+ "source": "Notifications are off on this phone",
4388
+ "translation": "การแจ้งเตือนปิดอยู่บนโทรศัพท์เครื่องนี้",
4389
+ "origin": "machine"
4390
+ },
4391
+ "h_31b3496929a9": {
4392
+ "key": "notifsettings.pushAskBody",
4393
+ "source": "Allow notifications on this phone to get the updates you choose below.",
4394
+ "translation": "อนุญาตการแจ้งเตือนบนโทรศัพท์เครื่องนี้เพื่อรับอัปเดตที่คุณเลือกด้านล่าง",
4395
+ "origin": "machine"
4396
+ },
4397
+ "h_5ab087ec11ff": {
4398
+ "key": "notifsettings.turnOnCta",
4399
+ "source": "Turn on notifications",
4400
+ "translation": "เปิดการแจ้งเตือน",
4401
+ "origin": "machine"
4402
+ },
4403
+ "h_e45714907316": {
4404
+ "key": "home.pushAskNotNow",
4405
+ "source": "Not now",
4406
+ "translation": "ไว้ทีหลัง",
4407
+ "origin": "machine"
4408
+ },
4409
+ "h_e9093cc9cde8": {
4410
+ "key": "home.pushAskBodyOrdersBookings",
4411
+ "source": "Get notified when your order status changes, and get reminders about your bookings.",
4412
+ "translation": "รับการแจ้งเตือนเมื่อสถานะคำสั่งซื้อเปลี่ยน และการเตือนความจำเกี่ยวกับการจองของคุณ",
4413
+ "origin": "machine"
4414
+ },
4415
+ "h_f54254af0c08": {
4416
+ "key": "home.pushAskTitle",
4417
+ "source": "Stay in the loop",
4418
+ "translation": "ติดตามข่าวสาร",
4419
+ "origin": "machine"
4420
+ },
4421
+ "h_01828fbf543c": {
4422
+ "key": "home.pushAskBodyOrders",
4423
+ "source": "Get notified when your order status changes.",
4424
+ "translation": "รับการแจ้งเตือนเมื่อสถานะคำสั่งซื้อของคุณเปลี่ยน",
4425
+ "origin": "machine"
4426
+ },
4427
+ "h_a365748a7092": {
4428
+ "key": "home.pushAskBodyBookings",
4429
+ "source": "Get reminders and updates about your bookings.",
4430
+ "translation": "รับการเตือนความจำและอัปเดตเกี่ยวกับการจองของคุณ",
4431
+ "origin": "machine"
4432
+ },
4433
+ "h_fb0c45519478": {
4434
+ "key": "home.pushAskBodyGeneral",
4435
+ "source": "Get notified about replies and updates that matter to you.",
4436
+ "translation": "รับการแจ้งเตือนเกี่ยวกับการตอบกลับและอัปเดตที่สำคัญสำหรับคุณ",
4437
+ "origin": "machine"
4438
+ },
4439
+ "h_b115e30c1a23": {
4440
+ "key": "notifsettings.pushAskTitle",
4441
+ "source": "Notifications aren't on yet",
4442
+ "translation": "ยังไม่ได้เปิดการแจ้งเตือน",
4443
+ "origin": "machine"
4444
+ },
4445
+ "h_282e81f51b9e": {
4446
+ "key": "notifsettings.pushOffBody",
4447
+ "source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
4448
+ "translation": "ตัวเลือกด้านล่างของคุณบันทึกไว้แล้ว แต่จะไม่มีการแจ้งเตือนจนกว่าจะอนุญาตการแจ้งเตือนบนโทรศัพท์เครื่องนี้",
4449
+ "origin": "machine"
4450
+ },
4379
4451
  "h_1e9b74b4dda5": {
4380
4452
  "source": "Show all ({count})",
4381
4453
  "translation": "ดูทั้งหมด ({count})",
@@ -9705,6 +9777,11 @@
9705
9777
  "source": "{correct} of {total} answers were right.",
9706
9778
  "translation": "ตอบถูก {correct} จาก {total} ข้อ",
9707
9779
  "origin": "machine"
9780
+ },
9781
+ "h_27b36f21a125": {
9782
+ "source": "Change notifications for this app in your phone's settings.",
9783
+ "translation": "เปลี่ยนการแจ้งเตือนของแอปนี้ได้ในการตั้งค่าโทรศัพท์",
9784
+ "origin": "machine"
9708
9785
  }
9709
9786
  }
9710
9787
  }
@@ -4376,6 +4376,78 @@
4376
4376
  "translation": "Yanıtları gönder",
4377
4377
  "origin": "machine"
4378
4378
  },
4379
+ "h_134635e9a2a6": {
4380
+ "key": "notifsettings.openSettingsCta",
4381
+ "source": "Open Settings",
4382
+ "translation": "Ayarlar'ı aç",
4383
+ "origin": "machine"
4384
+ },
4385
+ "h_2bcb76170ec3": {
4386
+ "key": "notifsettings.pushOffTitle",
4387
+ "source": "Notifications are off on this phone",
4388
+ "translation": "Bu telefonda bildirimler kapalı",
4389
+ "origin": "machine"
4390
+ },
4391
+ "h_31b3496929a9": {
4392
+ "key": "notifsettings.pushAskBody",
4393
+ "source": "Allow notifications on this phone to get the updates you choose below.",
4394
+ "translation": "Aşağıda seçtiğiniz güncellemeleri almak için bu telefonda bildirimlere izin verin.",
4395
+ "origin": "machine"
4396
+ },
4397
+ "h_5ab087ec11ff": {
4398
+ "key": "notifsettings.turnOnCta",
4399
+ "source": "Turn on notifications",
4400
+ "translation": "Bildirimleri aç",
4401
+ "origin": "machine"
4402
+ },
4403
+ "h_e45714907316": {
4404
+ "key": "home.pushAskNotNow",
4405
+ "source": "Not now",
4406
+ "translation": "Şimdi değil",
4407
+ "origin": "machine"
4408
+ },
4409
+ "h_e9093cc9cde8": {
4410
+ "key": "home.pushAskBodyOrdersBookings",
4411
+ "source": "Get notified when your order status changes, and get reminders about your bookings.",
4412
+ "translation": "Siparişinizin durumu değiştiğinde bildirim, rezervasyonlarınız için hatırlatıcı alın.",
4413
+ "origin": "machine"
4414
+ },
4415
+ "h_f54254af0c08": {
4416
+ "key": "home.pushAskTitle",
4417
+ "source": "Stay in the loop",
4418
+ "translation": "Haberdar olun",
4419
+ "origin": "machine"
4420
+ },
4421
+ "h_01828fbf543c": {
4422
+ "key": "home.pushAskBodyOrders",
4423
+ "source": "Get notified when your order status changes.",
4424
+ "translation": "Siparişinizin durumu değiştiğinde bildirim alın.",
4425
+ "origin": "machine"
4426
+ },
4427
+ "h_a365748a7092": {
4428
+ "key": "home.pushAskBodyBookings",
4429
+ "source": "Get reminders and updates about your bookings.",
4430
+ "translation": "Rezervasyonlarınızla ilgili hatırlatıcılar ve güncellemeler alın.",
4431
+ "origin": "machine"
4432
+ },
4433
+ "h_fb0c45519478": {
4434
+ "key": "home.pushAskBodyGeneral",
4435
+ "source": "Get notified about replies and updates that matter to you.",
4436
+ "translation": "Sizin için önemli yanıtlar ve güncellemeler hakkında bildirim alın.",
4437
+ "origin": "machine"
4438
+ },
4439
+ "h_b115e30c1a23": {
4440
+ "key": "notifsettings.pushAskTitle",
4441
+ "source": "Notifications aren't on yet",
4442
+ "translation": "Bildirimler henüz açık değil",
4443
+ "origin": "machine"
4444
+ },
4445
+ "h_282e81f51b9e": {
4446
+ "key": "notifsettings.pushOffBody",
4447
+ "source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
4448
+ "translation": "Aşağıdaki seçimleriniz kaydedildi ancak bu telefonda bildirimlere izin verilene kadar hiçbir şey gelmez.",
4449
+ "origin": "machine"
4450
+ },
4379
4451
  "h_1e9b74b4dda5": {
4380
4452
  "source": "Show all ({count})",
4381
4453
  "translation": "Tümünü göster ({count})",
@@ -9705,6 +9777,11 @@
9705
9777
  "source": "{correct} of {total} answers were right.",
9706
9778
  "translation": "{total} yanıttan {correct} tanesi doğruydu.",
9707
9779
  "origin": "machine"
9780
+ },
9781
+ "h_27b36f21a125": {
9782
+ "source": "Change notifications for this app in your phone's settings.",
9783
+ "translation": "Bu uygulamanın bildirimlerini telefonunuzun ayarlarından değiştirin.",
9784
+ "origin": "machine"
9708
9785
  }
9709
9786
  }
9710
9787
  }
@@ -4376,6 +4376,78 @@
4376
4376
  "translation": "Надіслати відповіді",
4377
4377
  "origin": "machine"
4378
4378
  },
4379
+ "h_134635e9a2a6": {
4380
+ "key": "notifsettings.openSettingsCta",
4381
+ "source": "Open Settings",
4382
+ "translation": "Відкрити Налаштування",
4383
+ "origin": "machine"
4384
+ },
4385
+ "h_2bcb76170ec3": {
4386
+ "key": "notifsettings.pushOffTitle",
4387
+ "source": "Notifications are off on this phone",
4388
+ "translation": "Сповіщення на цьому телефоні вимкнено",
4389
+ "origin": "machine"
4390
+ },
4391
+ "h_31b3496929a9": {
4392
+ "key": "notifsettings.pushAskBody",
4393
+ "source": "Allow notifications on this phone to get the updates you choose below.",
4394
+ "translation": "Дозвольте сповіщення на цьому телефоні, щоб отримувати вибрані нижче оновлення.",
4395
+ "origin": "machine"
4396
+ },
4397
+ "h_5ab087ec11ff": {
4398
+ "key": "notifsettings.turnOnCta",
4399
+ "source": "Turn on notifications",
4400
+ "translation": "Увімкнути сповіщення",
4401
+ "origin": "machine"
4402
+ },
4403
+ "h_e45714907316": {
4404
+ "key": "home.pushAskNotNow",
4405
+ "source": "Not now",
4406
+ "translation": "Не зараз",
4407
+ "origin": "machine"
4408
+ },
4409
+ "h_e9093cc9cde8": {
4410
+ "key": "home.pushAskBodyOrdersBookings",
4411
+ "source": "Get notified when your order status changes, and get reminders about your bookings.",
4412
+ "translation": "Отримуйте сповіщення, коли змінюється статус замовлення, і нагадування про бронювання.",
4413
+ "origin": "machine"
4414
+ },
4415
+ "h_f54254af0c08": {
4416
+ "key": "home.pushAskTitle",
4417
+ "source": "Stay in the loop",
4418
+ "translation": "Будьте в курсі",
4419
+ "origin": "machine"
4420
+ },
4421
+ "h_01828fbf543c": {
4422
+ "key": "home.pushAskBodyOrders",
4423
+ "source": "Get notified when your order status changes.",
4424
+ "translation": "Отримуйте сповіщення, коли змінюється статус замовлення.",
4425
+ "origin": "machine"
4426
+ },
4427
+ "h_a365748a7092": {
4428
+ "key": "home.pushAskBodyBookings",
4429
+ "source": "Get reminders and updates about your bookings.",
4430
+ "translation": "Отримуйте нагадування й оновлення про ваші бронювання.",
4431
+ "origin": "machine"
4432
+ },
4433
+ "h_fb0c45519478": {
4434
+ "key": "home.pushAskBodyGeneral",
4435
+ "source": "Get notified about replies and updates that matter to you.",
4436
+ "translation": "Отримуйте сповіщення про відповіді й важливі для вас оновлення.",
4437
+ "origin": "machine"
4438
+ },
4439
+ "h_b115e30c1a23": {
4440
+ "key": "notifsettings.pushAskTitle",
4441
+ "source": "Notifications aren't on yet",
4442
+ "translation": "Сповіщення ще не ввімкнено",
4443
+ "origin": "machine"
4444
+ },
4445
+ "h_282e81f51b9e": {
4446
+ "key": "notifsettings.pushOffBody",
4447
+ "source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
4448
+ "translation": "Ваш вибір нижче збережено, але нічого не надходитиме, доки сповіщення не дозволено на цьому телефоні.",
4449
+ "origin": "machine"
4450
+ },
4379
4451
  "h_1e9b74b4dda5": {
4380
4452
  "source": "Show all ({count})",
4381
4453
  "translation": "Показати все ({count})",
@@ -9705,6 +9777,11 @@
9705
9777
  "source": "{correct} of {total} answers were right.",
9706
9778
  "translation": "Правильних відповідей: {correct} з {total}.",
9707
9779
  "origin": "machine"
9780
+ },
9781
+ "h_27b36f21a125": {
9782
+ "source": "Change notifications for this app in your phone's settings.",
9783
+ "translation": "Змініть сповіщення цього застосунку в налаштуваннях телефона.",
9784
+ "origin": "machine"
9708
9785
  }
9709
9786
  }
9710
9787
  }
@@ -4376,6 +4376,78 @@
4376
4376
  "translation": "Gửi câu trả lời",
4377
4377
  "origin": "machine"
4378
4378
  },
4379
+ "h_134635e9a2a6": {
4380
+ "key": "notifsettings.openSettingsCta",
4381
+ "source": "Open Settings",
4382
+ "translation": "Mở Cài đặt",
4383
+ "origin": "machine"
4384
+ },
4385
+ "h_2bcb76170ec3": {
4386
+ "key": "notifsettings.pushOffTitle",
4387
+ "source": "Notifications are off on this phone",
4388
+ "translation": "Thông báo đang tắt trên điện thoại này",
4389
+ "origin": "machine"
4390
+ },
4391
+ "h_31b3496929a9": {
4392
+ "key": "notifsettings.pushAskBody",
4393
+ "source": "Allow notifications on this phone to get the updates you choose below.",
4394
+ "translation": "Cho phép thông báo trên điện thoại này để nhận các cập nhật bạn chọn bên dưới.",
4395
+ "origin": "machine"
4396
+ },
4397
+ "h_5ab087ec11ff": {
4398
+ "key": "notifsettings.turnOnCta",
4399
+ "source": "Turn on notifications",
4400
+ "translation": "Bật thông báo",
4401
+ "origin": "machine"
4402
+ },
4403
+ "h_e45714907316": {
4404
+ "key": "home.pushAskNotNow",
4405
+ "source": "Not now",
4406
+ "translation": "Để sau",
4407
+ "origin": "machine"
4408
+ },
4409
+ "h_e9093cc9cde8": {
4410
+ "key": "home.pushAskBodyOrdersBookings",
4411
+ "source": "Get notified when your order status changes, and get reminders about your bookings.",
4412
+ "translation": "Nhận thông báo khi trạng thái đơn hàng thay đổi và lời nhắc về lịch đặt của bạn.",
4413
+ "origin": "machine"
4414
+ },
4415
+ "h_f54254af0c08": {
4416
+ "key": "home.pushAskTitle",
4417
+ "source": "Stay in the loop",
4418
+ "translation": "Luôn cập nhật",
4419
+ "origin": "machine"
4420
+ },
4421
+ "h_01828fbf543c": {
4422
+ "key": "home.pushAskBodyOrders",
4423
+ "source": "Get notified when your order status changes.",
4424
+ "translation": "Nhận thông báo khi trạng thái đơn hàng của bạn thay đổi.",
4425
+ "origin": "machine"
4426
+ },
4427
+ "h_a365748a7092": {
4428
+ "key": "home.pushAskBodyBookings",
4429
+ "source": "Get reminders and updates about your bookings.",
4430
+ "translation": "Nhận lời nhắc và cập nhật về lịch đặt của bạn.",
4431
+ "origin": "machine"
4432
+ },
4433
+ "h_fb0c45519478": {
4434
+ "key": "home.pushAskBodyGeneral",
4435
+ "source": "Get notified about replies and updates that matter to you.",
4436
+ "translation": "Nhận thông báo về phản hồi và cập nhật quan trọng với bạn.",
4437
+ "origin": "machine"
4438
+ },
4439
+ "h_b115e30c1a23": {
4440
+ "key": "notifsettings.pushAskTitle",
4441
+ "source": "Notifications aren't on yet",
4442
+ "translation": "Thông báo chưa được bật",
4443
+ "origin": "machine"
4444
+ },
4445
+ "h_282e81f51b9e": {
4446
+ "key": "notifsettings.pushOffBody",
4447
+ "source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
4448
+ "translation": "Lựa chọn của bạn bên dưới đã được lưu, nhưng sẽ không có thông báo nào cho đến khi điện thoại này cho phép thông báo.",
4449
+ "origin": "machine"
4450
+ },
4379
4451
  "h_1e9b74b4dda5": {
4380
4452
  "source": "Show all ({count})",
4381
4453
  "translation": "Xem tất cả ({count})",
@@ -9705,6 +9777,11 @@
9705
9777
  "source": "{correct} of {total} answers were right.",
9706
9778
  "translation": "{correct}/{total} câu trả lời đúng.",
9707
9779
  "origin": "machine"
9780
+ },
9781
+ "h_27b36f21a125": {
9782
+ "source": "Change notifications for this app in your phone's settings.",
9783
+ "translation": "Thay đổi thông báo của ứng dụng này trong cài đặt điện thoại.",
9784
+ "origin": "machine"
9708
9785
  }
9709
9786
  }
9710
9787
  }
@@ -4376,6 +4376,78 @@
4376
4376
  "translation": "提交答案",
4377
4377
  "origin": "machine"
4378
4378
  },
4379
+ "h_134635e9a2a6": {
4380
+ "key": "notifsettings.openSettingsCta",
4381
+ "source": "Open Settings",
4382
+ "translation": "打开设置",
4383
+ "origin": "machine"
4384
+ },
4385
+ "h_2bcb76170ec3": {
4386
+ "key": "notifsettings.pushOffTitle",
4387
+ "source": "Notifications are off on this phone",
4388
+ "translation": "此手机已关闭通知",
4389
+ "origin": "machine"
4390
+ },
4391
+ "h_31b3496929a9": {
4392
+ "key": "notifsettings.pushAskBody",
4393
+ "source": "Allow notifications on this phone to get the updates you choose below.",
4394
+ "translation": "在此手机上允许通知,即可收到你在下方选择的更新。",
4395
+ "origin": "machine"
4396
+ },
4397
+ "h_5ab087ec11ff": {
4398
+ "key": "notifsettings.turnOnCta",
4399
+ "source": "Turn on notifications",
4400
+ "translation": "开启通知",
4401
+ "origin": "machine"
4402
+ },
4403
+ "h_e45714907316": {
4404
+ "key": "home.pushAskNotNow",
4405
+ "source": "Not now",
4406
+ "translation": "以后再说",
4407
+ "origin": "machine"
4408
+ },
4409
+ "h_e9093cc9cde8": {
4410
+ "key": "home.pushAskBodyOrdersBookings",
4411
+ "source": "Get notified when your order status changes, and get reminders about your bookings.",
4412
+ "translation": "订单状态变化时通知你,并提醒你的预约。",
4413
+ "origin": "machine"
4414
+ },
4415
+ "h_f54254af0c08": {
4416
+ "key": "home.pushAskTitle",
4417
+ "source": "Stay in the loop",
4418
+ "translation": "及时了解动态",
4419
+ "origin": "machine"
4420
+ },
4421
+ "h_01828fbf543c": {
4422
+ "key": "home.pushAskBodyOrders",
4423
+ "source": "Get notified when your order status changes.",
4424
+ "translation": "订单状态变化时通知你。",
4425
+ "origin": "machine"
4426
+ },
4427
+ "h_a365748a7092": {
4428
+ "key": "home.pushAskBodyBookings",
4429
+ "source": "Get reminders and updates about your bookings.",
4430
+ "translation": "接收预约提醒和最新动态。",
4431
+ "origin": "machine"
4432
+ },
4433
+ "h_fb0c45519478": {
4434
+ "key": "home.pushAskBodyGeneral",
4435
+ "source": "Get notified about replies and updates that matter to you.",
4436
+ "translation": "接收与你相关的回复和更新通知。",
4437
+ "origin": "machine"
4438
+ },
4439
+ "h_b115e30c1a23": {
4440
+ "key": "notifsettings.pushAskTitle",
4441
+ "source": "Notifications aren't on yet",
4442
+ "translation": "通知尚未开启",
4443
+ "origin": "machine"
4444
+ },
4445
+ "h_282e81f51b9e": {
4446
+ "key": "notifsettings.pushOffBody",
4447
+ "source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
4448
+ "translation": "你在下方的选择已保存,但在此手机允许通知之前,不会收到任何通知。",
4449
+ "origin": "machine"
4450
+ },
4379
4451
  "h_1e9b74b4dda5": {
4380
4452
  "source": "Show all ({count})",
4381
4453
  "translation": "查看全部({count})",
@@ -9705,6 +9777,11 @@
9705
9777
  "source": "{correct} of {total} answers were right.",
9706
9778
  "translation": "{total} 个答案中有 {correct} 个正确。",
9707
9779
  "origin": "machine"
9780
+ },
9781
+ "h_27b36f21a125": {
9782
+ "source": "Change notifications for this app in your phone's settings.",
9783
+ "translation": "请在手机设置中更改此应用的通知。",
9784
+ "origin": "machine"
9708
9785
  }
9709
9786
  }
9710
9787
  }
@@ -0,0 +1,75 @@
1
+ // The phone's notification permission, as Branded Lite's screens use it (Notification settings and
2
+ // Home's in-context ask). Every call is caught: a host without the push capability (an older binary)
3
+ // answers "error", which shows nothing rather than an offer that leads nowhere.
4
+ //
5
+ // Only a native app has a PHONE permission. A web host reports the browser's, which says nothing
6
+ // about the member's phone, so it reads as "error" too.
7
+ //
8
+ // Android reports "denied" both before its first ask and after a refusal (it has no "undetermined"
9
+ // once API 33's runtime permission exists), so only a request can tell the two apart. Below API 33
10
+ // there is no runtime dialog at all: "denied" means switched off in Settings.
11
+
12
+ import { openSettings, requestPermission, type PushPermission } from "@himalaya/push";
13
+ import { dispatch } from "@himalaya/dispatch";
14
+ import { get as getAppInfo } from "@himalaya/app-info";
15
+
16
+ export type PushStatus = PushPermission | "error";
17
+ export type PushPlatform = "ios" | "android" | "macos" | "";
18
+
19
+ export interface PhonePush {
20
+ status: PushStatus;
21
+ platform: PushPlatform;
22
+ /** A "denied" answer may still hide a first ask the system can show (Android 13+ only). */
23
+ deniedMayPrompt: boolean;
24
+ }
25
+
26
+ const NATIVE: readonly string[] = ["ios", "android", "macos"];
27
+
28
+ /** Android's major version, or 0 when the host does not say. */
29
+ function androidMajor(osVersion: string | undefined): number {
30
+ const major = Number.parseInt(String(osVersion ?? ""), 10);
31
+ return Number.isFinite(major) ? major : 0;
32
+ }
33
+
34
+ export async function readPhonePush(): Promise<PhonePush> {
35
+ const info = await getAppInfo().catch(() => undefined);
36
+ const platform = (NATIVE.includes(info?.platform ?? "") ? info!.platform : "") as PushPlatform;
37
+ if (!platform) return { status: "error", platform, deniedMayPrompt: false };
38
+ const status = await readPushStatus();
39
+ // An unknown Android version may be below 13, where no dialog exists: promise no prompt then.
40
+ return { status, platform, deniedMayPrompt: platform === "android" && androidMajor(info?.osVersion) >= 13 };
41
+ }
42
+
43
+ /** Read raw: the SDK maps every unknown answer to "undetermined", but a native host without the
44
+ * push module answers "unavailable", where a Turn on button could never prompt. */
45
+ export async function readPushStatus(): Promise<PushStatus> {
46
+ try {
47
+ const r = (await dispatch("capability.push.getPermissionStatus")) as { status?: unknown } | null;
48
+ const status = r?.status;
49
+ return status === "granted" || status === "denied" || status === "undetermined" ? status : "error";
50
+ } catch { return "error"; }
51
+ }
52
+
53
+ /** Ask the OS. Shows the system prompt only while it still can; otherwise just reads the answer.
54
+ * Once granted it also registers this session's push token (no prompt). */
55
+ export async function askForPush(): Promise<PushStatus> {
56
+ try { return await requestPermission(); } catch { return readPushStatus(); }
57
+ }
58
+
59
+ export async function openPushSettings(): Promise<boolean> {
60
+ try { return await openSettings(); } catch { return false; }
61
+ }
62
+
63
+ /** A grant made earlier (or just now, in the OS settings) still needs this launch's token:
64
+ * `requestPermission` on a granted phone registers it without a prompt. */
65
+ export async function refreshGrantedToken(status: PushStatus): Promise<void> {
66
+ if (status === "granted") await askForPush();
67
+ }
68
+
69
+ /** The same, at most once per worker run: a launch needs one token request, not one per refresh. */
70
+ let tokenRefreshedThisRun = false;
71
+ export async function refreshGrantedTokenOnce(status: PushStatus): Promise<void> {
72
+ if (status !== "granted" || tokenRefreshedThisRun) return;
73
+ tokenRefreshedThisRun = true;
74
+ await askForPush();
75
+ }