@wix/himalaya-cli 0.1767.0 → 0.1769.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 (467) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +7 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +9 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92.bin → 7977d7340513225ef7609b9983b621e2b48c10deb7427e059e595d2fc66f7983.bin} +1 -1
  8. package/dist/browser-plane/sw.js +8 -8
  9. package/dist/cli.mjs +234 -89
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/capabilities.md +6 -4
  12. package/guides/component-reference.json +1 -1
  13. package/guides/component-reference.md +4 -0
  14. package/guides/himi-json-output.md +19 -7
  15. package/guides/one-app-to-himi-app.md +19 -9
  16. package/guides/qa-builds.md +73 -84
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/l10n/ar.json +45 -0
  19. package/templates/beauty-salon/l10n/cs.json +45 -0
  20. package/templates/beauty-salon/l10n/da.json +45 -0
  21. package/templates/beauty-salon/l10n/de.json +45 -0
  22. package/templates/beauty-salon/l10n/el.json +45 -0
  23. package/templates/beauty-salon/l10n/en.json +1 -1
  24. package/templates/beauty-salon/l10n/es.json +45 -0
  25. package/templates/beauty-salon/l10n/fi.json +45 -0
  26. package/templates/beauty-salon/l10n/fr.json +45 -0
  27. package/templates/beauty-salon/l10n/he.json +36 -0
  28. package/templates/beauty-salon/l10n/hu.json +45 -0
  29. package/templates/beauty-salon/l10n/id.json +45 -0
  30. package/templates/beauty-salon/l10n/it.json +45 -0
  31. package/templates/beauty-salon/l10n/ja.json +45 -0
  32. package/templates/beauty-salon/l10n/ko.json +45 -0
  33. package/templates/beauty-salon/l10n/lt.json +45 -0
  34. package/templates/beauty-salon/l10n/nl.json +45 -0
  35. package/templates/beauty-salon/l10n/no.json +45 -0
  36. package/templates/beauty-salon/l10n/pl.json +45 -0
  37. package/templates/beauty-salon/l10n/pt.json +45 -0
  38. package/templates/beauty-salon/l10n/ru.json +45 -0
  39. package/templates/beauty-salon/l10n/sv.json +45 -0
  40. package/templates/beauty-salon/l10n/th.json +45 -0
  41. package/templates/beauty-salon/l10n/tr.json +45 -0
  42. package/templates/beauty-salon/l10n/uk.json +45 -0
  43. package/templates/beauty-salon/l10n/vi.json +45 -0
  44. package/templates/beauty-salon/l10n/zh.json +45 -0
  45. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  46. package/templates/beauty-salon/tier5-src/_shared/business-chat-transport.ts +20 -4
  47. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +6 -0
  48. package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
  49. package/templates/beauty-salon/tier5-src/_shared/program-standing.ts +67 -0
  50. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +56 -12
  51. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +5 -0
  52. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +6 -0
  53. package/templates/branded-lite/config.ts +11 -1
  54. package/templates/branded-lite/dev/index.ts +1088 -86
  55. package/templates/branded-lite/himalaya.content.json +3 -0
  56. package/templates/branded-lite/l10n/ar.json +259 -0
  57. package/templates/branded-lite/l10n/cs.json +259 -0
  58. package/templates/branded-lite/l10n/da.json +259 -0
  59. package/templates/branded-lite/l10n/de.json +259 -0
  60. package/templates/branded-lite/l10n/el.json +259 -0
  61. package/templates/branded-lite/l10n/en.json +65 -2
  62. package/templates/branded-lite/l10n/es.json +259 -0
  63. package/templates/branded-lite/l10n/fi.json +259 -0
  64. package/templates/branded-lite/l10n/fr.json +259 -0
  65. package/templates/branded-lite/l10n/he.json +209 -0
  66. package/templates/branded-lite/l10n/hu.json +259 -0
  67. package/templates/branded-lite/l10n/id.json +259 -0
  68. package/templates/branded-lite/l10n/it.json +259 -0
  69. package/templates/branded-lite/l10n/ja.json +259 -0
  70. package/templates/branded-lite/l10n/ko.json +259 -0
  71. package/templates/branded-lite/l10n/lt.json +259 -0
  72. package/templates/branded-lite/l10n/nl.json +259 -0
  73. package/templates/branded-lite/l10n/no.json +259 -0
  74. package/templates/branded-lite/l10n/pl.json +259 -0
  75. package/templates/branded-lite/l10n/pt.json +259 -0
  76. package/templates/branded-lite/l10n/ru.json +259 -0
  77. package/templates/branded-lite/l10n/sv.json +259 -0
  78. package/templates/branded-lite/l10n/th.json +259 -0
  79. package/templates/branded-lite/l10n/tr.json +259 -0
  80. package/templates/branded-lite/l10n/uk.json +259 -0
  81. package/templates/branded-lite/l10n/vi.json +259 -0
  82. package/templates/branded-lite/l10n/zh.json +259 -0
  83. package/templates/branded-lite/recipes/programs-card.json +2 -2
  84. package/templates/branded-lite/recipes/programs-carousel.json +2 -2
  85. package/templates/branded-lite/recipes/programs-participant-carousel.json +2 -2
  86. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  87. package/templates/branded-lite/tier5-src/_shared/business-chat-transport.ts +20 -4
  88. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +6 -0
  89. package/templates/branded-lite/tier5-src/_shared/inbox-rooms.ts +101 -11
  90. package/templates/branded-lite/tier5-src/_shared/inbox-search.ts +119 -0
  91. package/templates/branded-lite/tier5-src/_shared/member-inbox-transport.ts +64 -0
  92. package/templates/branded-lite/tier5-src/_shared/member-thread-rows.ts +233 -0
  93. package/templates/branded-lite/tier5-src/_shared/program-standing.ts +21 -0
  94. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +8 -4
  95. package/templates/branded-lite/tier5-src/business-chat/index.ts +73 -22
  96. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +56 -12
  97. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +5 -0
  98. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
  99. package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  100. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +17 -3
  101. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
  102. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
  103. package/templates/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
  104. package/templates/branded-lite/tier5-src/wix-spaces-new-message/index.ts +4 -2
  105. package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  106. package/templates/brandy/tier5-src/_shared/business-chat-message-model.ts +177 -0
  107. package/templates/brandy/tier5-src/_shared/business-chat-transport.ts +164 -0
  108. package/templates/brandy/tier5-src/_shared/engine-intl.ts +6 -0
  109. package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +101 -11
  110. package/templates/brandy/tier5-src/_shared/inbox-search.ts +119 -0
  111. package/templates/brandy/tier5-src/_shared/member-inbox-transport.ts +64 -0
  112. package/templates/brandy/tier5-src/_shared/member-thread-rows.ts +233 -0
  113. package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
  114. package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
  115. package/templates/community-club/l10n/ar.json +30 -0
  116. package/templates/community-club/l10n/cs.json +30 -0
  117. package/templates/community-club/l10n/da.json +30 -0
  118. package/templates/community-club/l10n/de.json +30 -0
  119. package/templates/community-club/l10n/el.json +30 -0
  120. package/templates/community-club/l10n/en.json +2 -2
  121. package/templates/community-club/l10n/es.json +30 -0
  122. package/templates/community-club/l10n/fi.json +30 -0
  123. package/templates/community-club/l10n/fr.json +30 -0
  124. package/templates/community-club/l10n/he.json +24 -0
  125. package/templates/community-club/l10n/hu.json +30 -0
  126. package/templates/community-club/l10n/id.json +30 -0
  127. package/templates/community-club/l10n/it.json +30 -0
  128. package/templates/community-club/l10n/ja.json +30 -0
  129. package/templates/community-club/l10n/ko.json +30 -0
  130. package/templates/community-club/l10n/lt.json +30 -0
  131. package/templates/community-club/l10n/nl.json +30 -0
  132. package/templates/community-club/l10n/no.json +30 -0
  133. package/templates/community-club/l10n/pl.json +30 -0
  134. package/templates/community-club/l10n/pt.json +30 -0
  135. package/templates/community-club/l10n/ru.json +30 -0
  136. package/templates/community-club/l10n/sv.json +30 -0
  137. package/templates/community-club/l10n/th.json +30 -0
  138. package/templates/community-club/l10n/tr.json +30 -0
  139. package/templates/community-club/l10n/uk.json +30 -0
  140. package/templates/community-club/l10n/vi.json +30 -0
  141. package/templates/community-club/l10n/zh.json +30 -0
  142. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  143. package/templates/community-club/tier5-src/_shared/engine-intl.ts +6 -0
  144. package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
  145. package/templates/community-club/tier5-src/_shared/program-standing.ts +67 -0
  146. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +5 -0
  147. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +6 -0
  148. package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  149. package/templates/conference/tier5-src/_shared/business-chat-transport.ts +20 -4
  150. package/templates/conference/tier5-src/_shared/chat-live.ts +242 -0
  151. package/templates/conference/tier5-src/_shared/engine-intl.ts +6 -0
  152. package/templates/conference/tier5-src/_shared/inbox-rooms.ts +101 -11
  153. package/templates/conference/tier5-src/business-chat/index.ts +73 -22
  154. package/templates/events-meetups/l10n/ar.json +30 -0
  155. package/templates/events-meetups/l10n/cs.json +30 -0
  156. package/templates/events-meetups/l10n/da.json +30 -0
  157. package/templates/events-meetups/l10n/de.json +30 -0
  158. package/templates/events-meetups/l10n/el.json +30 -0
  159. package/templates/events-meetups/l10n/en.json +1 -1
  160. package/templates/events-meetups/l10n/es.json +30 -0
  161. package/templates/events-meetups/l10n/fi.json +30 -0
  162. package/templates/events-meetups/l10n/fr.json +30 -0
  163. package/templates/events-meetups/l10n/he.json +24 -0
  164. package/templates/events-meetups/l10n/hu.json +30 -0
  165. package/templates/events-meetups/l10n/id.json +30 -0
  166. package/templates/events-meetups/l10n/it.json +30 -0
  167. package/templates/events-meetups/l10n/ja.json +30 -0
  168. package/templates/events-meetups/l10n/ko.json +30 -0
  169. package/templates/events-meetups/l10n/lt.json +30 -0
  170. package/templates/events-meetups/l10n/nl.json +30 -0
  171. package/templates/events-meetups/l10n/no.json +30 -0
  172. package/templates/events-meetups/l10n/pl.json +30 -0
  173. package/templates/events-meetups/l10n/pt.json +30 -0
  174. package/templates/events-meetups/l10n/ru.json +30 -0
  175. package/templates/events-meetups/l10n/sv.json +30 -0
  176. package/templates/events-meetups/l10n/th.json +30 -0
  177. package/templates/events-meetups/l10n/tr.json +30 -0
  178. package/templates/events-meetups/l10n/uk.json +30 -0
  179. package/templates/events-meetups/l10n/vi.json +30 -0
  180. package/templates/events-meetups/l10n/zh.json +30 -0
  181. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  182. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +6 -0
  183. package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
  184. package/templates/events-meetups/tier5-src/_shared/program-standing.ts +67 -0
  185. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +5 -0
  186. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +6 -0
  187. package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  188. package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +20 -4
  189. package/templates/fitness-gym/tier5-src/_shared/chat-live.ts +242 -0
  190. package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +6 -0
  191. package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +101 -11
  192. package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +21 -0
  193. package/templates/fitness-gym/tier5-src/business-chat/index.ts +73 -22
  194. package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +56 -12
  195. package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  196. package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +17 -3
  197. package/templates/gym-fitness/l10n/ar.json +45 -0
  198. package/templates/gym-fitness/l10n/cs.json +45 -0
  199. package/templates/gym-fitness/l10n/da.json +45 -0
  200. package/templates/gym-fitness/l10n/de.json +45 -0
  201. package/templates/gym-fitness/l10n/el.json +45 -0
  202. package/templates/gym-fitness/l10n/en.json +1 -1
  203. package/templates/gym-fitness/l10n/es.json +45 -0
  204. package/templates/gym-fitness/l10n/fi.json +45 -0
  205. package/templates/gym-fitness/l10n/fr.json +45 -0
  206. package/templates/gym-fitness/l10n/he.json +36 -0
  207. package/templates/gym-fitness/l10n/hu.json +45 -0
  208. package/templates/gym-fitness/l10n/id.json +45 -0
  209. package/templates/gym-fitness/l10n/it.json +45 -0
  210. package/templates/gym-fitness/l10n/ja.json +45 -0
  211. package/templates/gym-fitness/l10n/ko.json +45 -0
  212. package/templates/gym-fitness/l10n/lt.json +45 -0
  213. package/templates/gym-fitness/l10n/nl.json +45 -0
  214. package/templates/gym-fitness/l10n/no.json +45 -0
  215. package/templates/gym-fitness/l10n/pl.json +45 -0
  216. package/templates/gym-fitness/l10n/pt.json +45 -0
  217. package/templates/gym-fitness/l10n/ru.json +45 -0
  218. package/templates/gym-fitness/l10n/sv.json +45 -0
  219. package/templates/gym-fitness/l10n/th.json +45 -0
  220. package/templates/gym-fitness/l10n/tr.json +45 -0
  221. package/templates/gym-fitness/l10n/uk.json +45 -0
  222. package/templates/gym-fitness/l10n/vi.json +45 -0
  223. package/templates/gym-fitness/l10n/zh.json +45 -0
  224. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  225. package/templates/gym-fitness/tier5-src/_shared/business-chat-transport.ts +20 -4
  226. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +6 -0
  227. package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
  228. package/templates/gym-fitness/tier5-src/_shared/program-standing.ts +67 -0
  229. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +56 -12
  230. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +5 -0
  231. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +6 -0
  232. package/templates/medical-services/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  233. package/templates/medical-services/tier5-src/_shared/business-chat-transport.ts +20 -4
  234. package/templates/medical-services/tier5-src/_shared/chat-live.ts +242 -0
  235. package/templates/medical-services/tier5-src/_shared/engine-intl.ts +6 -0
  236. package/templates/medical-services/tier5-src/_shared/inbox-rooms.ts +101 -11
  237. package/templates/medical-services/tier5-src/business-chat/index.ts +73 -22
  238. package/templates/medical-services/tier5-src/himi-booking-time/index.ts +56 -12
  239. package/templates/nonprofit-cause/l10n/ar.json +30 -0
  240. package/templates/nonprofit-cause/l10n/cs.json +30 -0
  241. package/templates/nonprofit-cause/l10n/da.json +30 -0
  242. package/templates/nonprofit-cause/l10n/de.json +30 -0
  243. package/templates/nonprofit-cause/l10n/el.json +30 -0
  244. package/templates/nonprofit-cause/l10n/en.json +1 -1
  245. package/templates/nonprofit-cause/l10n/es.json +30 -0
  246. package/templates/nonprofit-cause/l10n/fi.json +30 -0
  247. package/templates/nonprofit-cause/l10n/fr.json +30 -0
  248. package/templates/nonprofit-cause/l10n/he.json +24 -0
  249. package/templates/nonprofit-cause/l10n/hu.json +30 -0
  250. package/templates/nonprofit-cause/l10n/id.json +30 -0
  251. package/templates/nonprofit-cause/l10n/it.json +30 -0
  252. package/templates/nonprofit-cause/l10n/ja.json +30 -0
  253. package/templates/nonprofit-cause/l10n/ko.json +30 -0
  254. package/templates/nonprofit-cause/l10n/lt.json +30 -0
  255. package/templates/nonprofit-cause/l10n/nl.json +30 -0
  256. package/templates/nonprofit-cause/l10n/no.json +30 -0
  257. package/templates/nonprofit-cause/l10n/pl.json +30 -0
  258. package/templates/nonprofit-cause/l10n/pt.json +30 -0
  259. package/templates/nonprofit-cause/l10n/ru.json +30 -0
  260. package/templates/nonprofit-cause/l10n/sv.json +30 -0
  261. package/templates/nonprofit-cause/l10n/th.json +30 -0
  262. package/templates/nonprofit-cause/l10n/tr.json +30 -0
  263. package/templates/nonprofit-cause/l10n/uk.json +30 -0
  264. package/templates/nonprofit-cause/l10n/vi.json +30 -0
  265. package/templates/nonprofit-cause/l10n/zh.json +30 -0
  266. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  267. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +6 -0
  268. package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
  269. package/templates/nonprofit-cause/tier5-src/_shared/program-standing.ts +67 -0
  270. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +5 -0
  271. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +6 -0
  272. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +6 -0
  273. package/templates/personal-fitness-trainer/dev/index.ts +2 -1
  274. package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  275. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +20 -4
  276. package/templates/personal-fitness-trainer/tier5-src/_shared/chat-live.ts +242 -0
  277. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +6 -0
  278. package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +101 -11
  279. package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +73 -22
  280. package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +56 -12
  281. package/templates/podcast-creator/l10n/ar.json +35 -0
  282. package/templates/podcast-creator/l10n/cs.json +35 -0
  283. package/templates/podcast-creator/l10n/da.json +35 -0
  284. package/templates/podcast-creator/l10n/de.json +35 -0
  285. package/templates/podcast-creator/l10n/el.json +35 -0
  286. package/templates/podcast-creator/l10n/en.json +1 -1
  287. package/templates/podcast-creator/l10n/es.json +35 -0
  288. package/templates/podcast-creator/l10n/fi.json +35 -0
  289. package/templates/podcast-creator/l10n/fr.json +35 -0
  290. package/templates/podcast-creator/l10n/he.json +28 -0
  291. package/templates/podcast-creator/l10n/hu.json +35 -0
  292. package/templates/podcast-creator/l10n/id.json +35 -0
  293. package/templates/podcast-creator/l10n/it.json +35 -0
  294. package/templates/podcast-creator/l10n/ja.json +35 -0
  295. package/templates/podcast-creator/l10n/ko.json +35 -0
  296. package/templates/podcast-creator/l10n/lt.json +35 -0
  297. package/templates/podcast-creator/l10n/nl.json +35 -0
  298. package/templates/podcast-creator/l10n/no.json +35 -0
  299. package/templates/podcast-creator/l10n/pl.json +35 -0
  300. package/templates/podcast-creator/l10n/pt.json +35 -0
  301. package/templates/podcast-creator/l10n/ru.json +35 -0
  302. package/templates/podcast-creator/l10n/sv.json +35 -0
  303. package/templates/podcast-creator/l10n/th.json +35 -0
  304. package/templates/podcast-creator/l10n/tr.json +35 -0
  305. package/templates/podcast-creator/l10n/uk.json +35 -0
  306. package/templates/podcast-creator/l10n/vi.json +35 -0
  307. package/templates/podcast-creator/l10n/zh.json +35 -0
  308. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  309. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +6 -0
  310. package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
  311. package/templates/podcast-creator/tier5-src/_shared/program-standing.ts +67 -0
  312. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +5 -0
  313. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +6 -0
  314. package/templates/portfolio-creative/l10n/ar.json +35 -0
  315. package/templates/portfolio-creative/l10n/cs.json +35 -0
  316. package/templates/portfolio-creative/l10n/da.json +35 -0
  317. package/templates/portfolio-creative/l10n/de.json +35 -0
  318. package/templates/portfolio-creative/l10n/el.json +35 -0
  319. package/templates/portfolio-creative/l10n/en.json +1 -1
  320. package/templates/portfolio-creative/l10n/es.json +35 -0
  321. package/templates/portfolio-creative/l10n/fi.json +35 -0
  322. package/templates/portfolio-creative/l10n/fr.json +35 -0
  323. package/templates/portfolio-creative/l10n/he.json +28 -0
  324. package/templates/portfolio-creative/l10n/hu.json +35 -0
  325. package/templates/portfolio-creative/l10n/id.json +35 -0
  326. package/templates/portfolio-creative/l10n/it.json +35 -0
  327. package/templates/portfolio-creative/l10n/ja.json +35 -0
  328. package/templates/portfolio-creative/l10n/ko.json +35 -0
  329. package/templates/portfolio-creative/l10n/lt.json +35 -0
  330. package/templates/portfolio-creative/l10n/nl.json +35 -0
  331. package/templates/portfolio-creative/l10n/no.json +35 -0
  332. package/templates/portfolio-creative/l10n/pl.json +35 -0
  333. package/templates/portfolio-creative/l10n/pt.json +35 -0
  334. package/templates/portfolio-creative/l10n/ru.json +35 -0
  335. package/templates/portfolio-creative/l10n/sv.json +35 -0
  336. package/templates/portfolio-creative/l10n/th.json +35 -0
  337. package/templates/portfolio-creative/l10n/tr.json +35 -0
  338. package/templates/portfolio-creative/l10n/uk.json +35 -0
  339. package/templates/portfolio-creative/l10n/vi.json +35 -0
  340. package/templates/portfolio-creative/l10n/zh.json +35 -0
  341. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  342. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +6 -0
  343. package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
  344. package/templates/portfolio-creative/tier5-src/_shared/program-standing.ts +67 -0
  345. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +5 -0
  346. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +6 -0
  347. package/templates/restaurant/l10n/ar.json +35 -0
  348. package/templates/restaurant/l10n/cs.json +35 -0
  349. package/templates/restaurant/l10n/da.json +35 -0
  350. package/templates/restaurant/l10n/de.json +35 -0
  351. package/templates/restaurant/l10n/el.json +35 -0
  352. package/templates/restaurant/l10n/en.json +1 -1
  353. package/templates/restaurant/l10n/es.json +35 -0
  354. package/templates/restaurant/l10n/fi.json +35 -0
  355. package/templates/restaurant/l10n/fr.json +35 -0
  356. package/templates/restaurant/l10n/he.json +28 -0
  357. package/templates/restaurant/l10n/hu.json +35 -0
  358. package/templates/restaurant/l10n/id.json +35 -0
  359. package/templates/restaurant/l10n/it.json +35 -0
  360. package/templates/restaurant/l10n/ja.json +35 -0
  361. package/templates/restaurant/l10n/ko.json +35 -0
  362. package/templates/restaurant/l10n/lt.json +35 -0
  363. package/templates/restaurant/l10n/nl.json +35 -0
  364. package/templates/restaurant/l10n/no.json +35 -0
  365. package/templates/restaurant/l10n/pl.json +35 -0
  366. package/templates/restaurant/l10n/pt.json +35 -0
  367. package/templates/restaurant/l10n/ru.json +35 -0
  368. package/templates/restaurant/l10n/sv.json +35 -0
  369. package/templates/restaurant/l10n/th.json +35 -0
  370. package/templates/restaurant/l10n/tr.json +35 -0
  371. package/templates/restaurant/l10n/uk.json +35 -0
  372. package/templates/restaurant/l10n/vi.json +35 -0
  373. package/templates/restaurant/l10n/zh.json +35 -0
  374. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  375. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +6 -0
  376. package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
  377. package/templates/restaurant/tier5-src/_shared/program-standing.ts +67 -0
  378. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +5 -0
  379. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +6 -0
  380. package/templates/retail-store/l10n/ar.json +35 -0
  381. package/templates/retail-store/l10n/cs.json +35 -0
  382. package/templates/retail-store/l10n/da.json +35 -0
  383. package/templates/retail-store/l10n/de.json +35 -0
  384. package/templates/retail-store/l10n/el.json +35 -0
  385. package/templates/retail-store/l10n/en.json +1 -1
  386. package/templates/retail-store/l10n/es.json +35 -0
  387. package/templates/retail-store/l10n/fi.json +35 -0
  388. package/templates/retail-store/l10n/fr.json +35 -0
  389. package/templates/retail-store/l10n/he.json +28 -0
  390. package/templates/retail-store/l10n/hu.json +35 -0
  391. package/templates/retail-store/l10n/id.json +35 -0
  392. package/templates/retail-store/l10n/it.json +35 -0
  393. package/templates/retail-store/l10n/ja.json +35 -0
  394. package/templates/retail-store/l10n/ko.json +35 -0
  395. package/templates/retail-store/l10n/lt.json +35 -0
  396. package/templates/retail-store/l10n/nl.json +35 -0
  397. package/templates/retail-store/l10n/no.json +35 -0
  398. package/templates/retail-store/l10n/pl.json +35 -0
  399. package/templates/retail-store/l10n/pt.json +35 -0
  400. package/templates/retail-store/l10n/ru.json +35 -0
  401. package/templates/retail-store/l10n/sv.json +35 -0
  402. package/templates/retail-store/l10n/th.json +35 -0
  403. package/templates/retail-store/l10n/tr.json +35 -0
  404. package/templates/retail-store/l10n/uk.json +35 -0
  405. package/templates/retail-store/l10n/vi.json +35 -0
  406. package/templates/retail-store/l10n/zh.json +35 -0
  407. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  408. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +6 -0
  409. package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
  410. package/templates/retail-store/tier5-src/_shared/program-standing.ts +67 -0
  411. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +5 -0
  412. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +6 -0
  413. package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  414. package/templates/salon-spa/tier5-src/_shared/business-chat-transport.ts +20 -4
  415. package/templates/salon-spa/tier5-src/_shared/chat-live.ts +242 -0
  416. package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +6 -0
  417. package/templates/salon-spa/tier5-src/_shared/inbox-rooms.ts +101 -11
  418. package/templates/salon-spa/tier5-src/business-chat/index.ts +73 -22
  419. package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +56 -12
  420. package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  421. package/templates/wholesale-store/tier5-src/_shared/business-chat-transport.ts +20 -4
  422. package/templates/wholesale-store/tier5-src/_shared/chat-live.ts +242 -0
  423. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +6 -0
  424. package/templates/wholesale-store/tier5-src/_shared/inbox-rooms.ts +101 -11
  425. package/templates/wholesale-store/tier5-src/business-chat/index.ts +73 -22
  426. package/templates/yoga-studio/config.ts +9 -0
  427. package/templates/yoga-studio/dev/index.ts +1134 -133
  428. package/templates/yoga-studio/himalaya.content.json +3 -0
  429. package/templates/yoga-studio/l10n/ar.json +150 -0
  430. package/templates/yoga-studio/l10n/cs.json +150 -0
  431. package/templates/yoga-studio/l10n/da.json +150 -0
  432. package/templates/yoga-studio/l10n/de.json +150 -0
  433. package/templates/yoga-studio/l10n/el.json +150 -0
  434. package/templates/yoga-studio/l10n/en.json +70 -1
  435. package/templates/yoga-studio/l10n/es.json +150 -0
  436. package/templates/yoga-studio/l10n/fi.json +150 -0
  437. package/templates/yoga-studio/l10n/fr.json +150 -0
  438. package/templates/yoga-studio/l10n/he.json +122 -0
  439. package/templates/yoga-studio/l10n/hu.json +150 -0
  440. package/templates/yoga-studio/l10n/id.json +150 -0
  441. package/templates/yoga-studio/l10n/it.json +150 -0
  442. package/templates/yoga-studio/l10n/ja.json +150 -0
  443. package/templates/yoga-studio/l10n/ko.json +150 -0
  444. package/templates/yoga-studio/l10n/lt.json +150 -0
  445. package/templates/yoga-studio/l10n/nl.json +150 -0
  446. package/templates/yoga-studio/l10n/no.json +150 -0
  447. package/templates/yoga-studio/l10n/pl.json +150 -0
  448. package/templates/yoga-studio/l10n/pt.json +150 -0
  449. package/templates/yoga-studio/l10n/ru.json +150 -0
  450. package/templates/yoga-studio/l10n/sv.json +150 -0
  451. package/templates/yoga-studio/l10n/th.json +150 -0
  452. package/templates/yoga-studio/l10n/tr.json +150 -0
  453. package/templates/yoga-studio/l10n/uk.json +150 -0
  454. package/templates/yoga-studio/l10n/vi.json +150 -0
  455. package/templates/yoga-studio/l10n/zh.json +150 -0
  456. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  457. package/templates/yoga-studio/tier5-src/_shared/business-chat-transport.ts +20 -4
  458. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +6 -0
  459. package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
  460. package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +21 -0
  461. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +56 -12
  462. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +5 -0
  463. package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
  464. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +17 -3
  465. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
  466. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
  467. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +6 -0
@@ -4142,6 +4142,60 @@
4142
4142
  "translation": "倒轉 15 秒",
4143
4143
  "origin": "machine"
4144
4144
  },
4145
+ "h_06730987dbe4": {
4146
+ "key": "program.openParticipantCta",
4147
+ "source": "Open program",
4148
+ "translation": "開啟課程",
4149
+ "origin": "machine"
4150
+ },
4151
+ "h_0efc2e6be4c2": {
4152
+ "key": "programParticipant.tabOverview",
4153
+ "source": "Overview",
4154
+ "translation": "總覽",
4155
+ "origin": "machine"
4156
+ },
4157
+ "h_44a680dfdf8d": {
4158
+ "key": "programParticipant.progressTitle",
4159
+ "source": "Your progress",
4160
+ "translation": "你的進度",
4161
+ "origin": "machine"
4162
+ },
4163
+ "h_5500eef9fdb1": {
4164
+ "key": "programParticipant.upNext",
4165
+ "source": "Next step",
4166
+ "translation": "下一步",
4167
+ "origin": "machine"
4168
+ },
4169
+ "h_56fb7336f231": {
4170
+ "key": "programParticipant.aboutTitle",
4171
+ "source": "About this program",
4172
+ "translation": "關於此課程",
4173
+ "origin": "machine"
4174
+ },
4175
+ "h_77c6038003ac": {
4176
+ "key": "programParticipant.nextStepCta",
4177
+ "source": "Go to step",
4178
+ "translation": "前往步驟",
4179
+ "origin": "machine"
4180
+ },
4181
+ "h_9a78430145b2": {
4182
+ "key": "programParticipant.signInTitle",
4183
+ "source": "Sign in to continue",
4184
+ "translation": "登入以繼續",
4185
+ "origin": "machine"
4186
+ },
4187
+ "h_b7e6af80dc3e": {
4188
+ "key": "programParticipant.signInBody",
4189
+ "source": "Sign in to see your progress and the program's steps.",
4190
+ "translation": "登入即可查看你的進度與課程步驟。",
4191
+ "origin": "machine"
4192
+ },
4193
+ "h_f813833428da": {
4194
+ "key": "programParticipant.tabsA11y",
4195
+ "source": "Program sections",
4196
+ "translation": "課程章節",
4197
+ "origin": "machine"
4198
+ },
4145
4199
  "h_03e89418ffdf": {
4146
4200
  "source": "Your Home",
4147
4201
  "translation": "您的首頁",
@@ -5847,6 +5901,16 @@
5847
5901
  "translation": "此網站不接受線上付款。請返回,或聯絡商家了解其他付款方式。",
5848
5902
  "origin": "machine"
5849
5903
  },
5904
+ "h_da50069f13cc": {
5905
+ "source": "The business can't confirm bookings in the app right now. Contact the business to book.",
5906
+ "translation": "商家目前無法在應用程式中確認預訂。請聯絡商家進行預訂。",
5907
+ "origin": "machine"
5908
+ },
5909
+ "h_7e5f2ad0967c": {
5910
+ "source": "We couldn't check if your booking is confirmed. See My Bookings before you book again.",
5911
+ "translation": "我們無法確認你的預訂是否已確認。再次預訂前,請先查看我的預訂。",
5912
+ "origin": "machine"
5913
+ },
5850
5914
  "h_1b8bca7c2765": {
5851
5915
  "source": "Change Time",
5852
5916
  "translation": "變更時間",
@@ -6657,6 +6721,16 @@
6657
6721
  "translation": "您目前離線,沒有儲存任何內容。請在重新連線後再試一次。",
6658
6722
  "origin": "machine"
6659
6723
  },
6724
+ "h_25c86f6a9245": {
6725
+ "source": "Quiz",
6726
+ "translation": "測驗",
6727
+ "origin": "machine"
6728
+ },
6729
+ "h_4360c2dcd4af": {
6730
+ "source": "Article",
6731
+ "translation": "文章",
6732
+ "origin": "machine"
6733
+ },
6660
6734
  "h_811e6650180c": {
6661
6735
  "source": "Sign in from Profile to react.",
6662
6736
  "translation": "請從「個人檔案」登入以回應。",
@@ -9111,6 +9185,191 @@
9111
9185
  "source": "Gallery {number}",
9112
9186
  "translation": "图库 {number}",
9113
9187
  "origin": "machine"
9188
+ },
9189
+ "h_1d1f4ff8dad3": {
9190
+ "source": "{done} of {total} steps · {pct}%",
9191
+ "translation": "已完成 {done}/{total} 個步驟 · {pct}%",
9192
+ "origin": "machine"
9193
+ },
9194
+ "h_97c409ee70c5": {
9195
+ "source": "You completed every step.",
9196
+ "translation": "你已完成所有步驟。",
9197
+ "origin": "machine"
9198
+ },
9199
+ "h_874467aa5ec7": {
9200
+ "source": "Your next section opens {date}.",
9201
+ "translation": "你的下一個章節將於 {date} 開放。",
9202
+ "origin": "machine"
9203
+ },
9204
+ "h_f7e4acee74d9": {
9205
+ "source": "This program has no steps yet.",
9206
+ "translation": "此課程尚無步驟。",
9207
+ "origin": "machine"
9208
+ },
9209
+ "h_681d337c1e7f": {
9210
+ "source": "This program's steps can't be shown in the app right now.",
9211
+ "translation": "目前無法在 App 中顯示此課程的步驟。",
9212
+ "origin": "machine"
9213
+ },
9214
+ "h_4f26d0f109b2": {
9215
+ "source": "You're not in this program yet. Open the program to join it.",
9216
+ "translation": "你尚未參加此課程。開啟課程即可加入。",
9217
+ "origin": "machine"
9218
+ },
9219
+ "h_7dec5d4043f2": {
9220
+ "source": "Your participation in this program is paused.",
9221
+ "translation": "你在此課程的參與已暫停。",
9222
+ "origin": "machine"
9223
+ },
9224
+ "h_dc416e1088e4": {
9225
+ "source": "Step",
9226
+ "translation": "步驟",
9227
+ "origin": "machine"
9228
+ },
9229
+ "h_e67a54c89f62": {
9230
+ "source": "Opens {date}",
9231
+ "translation": "{date} 開放",
9232
+ "origin": "machine"
9233
+ },
9234
+ "h_29869c510010": {
9235
+ "source": "1 step",
9236
+ "translation": "1 個步驟",
9237
+ "origin": "machine"
9238
+ },
9239
+ "h_2d030aa2176d": {
9240
+ "source": "{count} steps",
9241
+ "translation": "{count} 個步驟",
9242
+ "origin": "machine"
9243
+ },
9244
+ "h_bb96725d3f73": {
9245
+ "source": "Not done",
9246
+ "translation": "未完成",
9247
+ "origin": "machine"
9248
+ },
9249
+ "h_a798882f1c31": {
9250
+ "source": "Locked",
9251
+ "translation": "已鎖定",
9252
+ "origin": "machine"
9253
+ },
9254
+ "h_195c32d26b9e": {
9255
+ "source": "You're offline. Check your connection and try again.",
9256
+ "translation": "你目前處於離線狀態。請檢查網路連線後再試一次。",
9257
+ "origin": "machine"
9258
+ },
9259
+ "h_5ebf514df4d1": {
9260
+ "source": "You don't have access to your messages.",
9261
+ "translation": "你沒有存取訊息的權限。",
9262
+ "origin": "machine"
9263
+ },
9264
+ "h_e4a7bc84ee4e": {
9265
+ "source": "You don't have permission to do that.",
9266
+ "translation": "你沒有執行此操作的權限。",
9267
+ "origin": "machine"
9268
+ },
9269
+ "h_00fff16759bc": {
9270
+ "source": "That didn't work. Please try again.",
9271
+ "translation": "操作未成功,請再試一次。",
9272
+ "origin": "machine"
9273
+ },
9274
+ "h_5a15b87938a6": {
9275
+ "source": "This conversation can't be deleted.",
9276
+ "translation": "無法刪除此對話。",
9277
+ "origin": "machine"
9278
+ },
9279
+ "h_4b50c6d7eea5": {
9280
+ "source": "Search isn't available right now.",
9281
+ "translation": "目前無法使用搜尋功能。",
9282
+ "origin": "machine"
9283
+ },
9284
+ "h_9b976d70a5f3": {
9285
+ "source": "Conversation archived",
9286
+ "translation": "已封存對話",
9287
+ "origin": "machine"
9288
+ },
9289
+ "h_257a8e774c7d": {
9290
+ "source": "Conversation moved to your inbox",
9291
+ "translation": "已將對話移至收件匣",
9292
+ "origin": "machine"
9293
+ },
9294
+ "h_d78217d91c44": {
9295
+ "source": "Marked as read",
9296
+ "translation": "已標示為已讀",
9297
+ "origin": "machine"
9298
+ },
9299
+ "h_53acd78f7f72": {
9300
+ "source": "Marked as unread",
9301
+ "translation": "已標示為未讀",
9302
+ "origin": "machine"
9303
+ },
9304
+ "h_35f49dcfbfb2": {
9305
+ "source": "Sent",
9306
+ "translation": "已寄出",
9307
+ "origin": "machine"
9308
+ },
9309
+ "h_3b2c9749f233": {
9310
+ "source": "Sending message…",
9311
+ "translation": "正在寄出訊息…",
9312
+ "origin": "machine"
9313
+ },
9314
+ "h_6e9f8a49efa6": {
9315
+ "source": "Couldn't send",
9316
+ "translation": "無法寄出",
9317
+ "origin": "machine"
9318
+ },
9319
+ "h_3a18cb8c4560": {
9320
+ "source": "Type a message first.",
9321
+ "translation": "請先輸入訊息。",
9322
+ "origin": "machine"
9323
+ },
9324
+ "h_97b579dce558": {
9325
+ "source": "This message can't be shown here yet.",
9326
+ "translation": "此訊息目前還無法在這裡顯示。",
9327
+ "origin": "machine"
9328
+ },
9329
+ "h_5f8f898dcfc2": {
9330
+ "source": "Photo in this conversation",
9331
+ "translation": "此對話中的相片",
9332
+ "origin": "machine"
9333
+ },
9334
+ "h_b36bd6b7d161": {
9335
+ "source": "Open attachment",
9336
+ "translation": "開啟附件",
9337
+ "origin": "machine"
9338
+ },
9339
+ "h_b3a288248eee": {
9340
+ "source": "You're offline. Reconnect and try again.",
9341
+ "translation": "你目前處於離線狀態。請重新連線後再試一次。",
9342
+ "origin": "machine"
9343
+ },
9344
+ "h_110fe4bc942f": {
9345
+ "source": "This conversation couldn't be loaded. Please try again.",
9346
+ "translation": "無法載入此對話,請再試一次。",
9347
+ "origin": "machine"
9348
+ },
9349
+ "h_d22008fbd148": {
9350
+ "source": "You don't have access to this conversation.",
9351
+ "translation": "你沒有存取此對話的權限。",
9352
+ "origin": "machine"
9353
+ },
9354
+ "h_b2f1a9bdc0b8": {
9355
+ "source": "Sign in to see this conversation.",
9356
+ "translation": "登入即可查看此對話。",
9357
+ "origin": "machine"
9358
+ },
9359
+ "h_cb5ace13b1cd": {
9360
+ "source": "Couldn't update this conversation. Please try again.",
9361
+ "translation": "無法更新此對話,請再試一次。",
9362
+ "origin": "machine"
9363
+ },
9364
+ "h_e049d4b2051d": {
9365
+ "source": "You don't have permission to change this conversation.",
9366
+ "translation": "你沒有變更此對話的權限。",
9367
+ "origin": "machine"
9368
+ },
9369
+ "h_9b0375e475e1": {
9370
+ "source": "Only private conversations can be deleted.",
9371
+ "translation": "只能刪除不公開的對話。",
9372
+ "origin": "machine"
9114
9373
  }
9115
9374
  }
9116
9375
  }
@@ -3,7 +3,7 @@
3
3
  "_placeholders": {
4
4
  "svc": "service name the page worker registered with registerProgramsSection",
5
5
  "id": "unique node id prefix (e.g. the screen id)",
6
- "detailScreen": "program detail screen id, default himi_program"
6
+ "detailScreen": "kept for the generator; the card opens the row's detailScreenId (himi_program, or himi_program_participant for a member in the program)"
7
7
  },
8
8
  "node": {
9
9
  "id": "{{id}}.cards",
@@ -224,7 +224,7 @@
224
224
  "onTap": {
225
225
  "actionId": "himi.open",
226
226
  "params": {
227
- "screenId": "{{detailScreen}}",
227
+ "screenId": "$item.detailScreenId",
228
228
  "id": "$item.id"
229
229
  }
230
230
  },
@@ -3,7 +3,7 @@
3
3
  "_placeholders": {
4
4
  "svc": "service name the page worker registered with registerProgramsSection",
5
5
  "id": "unique node id prefix (e.g. the screen id)",
6
- "detailScreen": "program detail screen id, default himi_program"
6
+ "detailScreen": "kept for the generator; the card opens the row's detailScreenId (himi_program, or himi_program_participant for a member in the program)"
7
7
  },
8
8
  "node": {
9
9
  "id": "{{id}}.carousel",
@@ -215,7 +215,7 @@
215
215
  "onTap": {
216
216
  "actionId": "himi.open",
217
217
  "params": {
218
- "screenId": "{{detailScreen}}",
218
+ "screenId": "$item.detailScreenId",
219
219
  "id": "$item.id"
220
220
  }
221
221
  },
@@ -3,7 +3,7 @@
3
3
  "_placeholders": {
4
4
  "svc": "service name the page worker registered with registerProgramsSection",
5
5
  "id": "unique node id prefix",
6
- "detailScreen": "program detail screen id, himi_program",
6
+ "detailScreen": "kept for the generator; the card opens the row's detailScreenId (himi_program_participant for a member in the program, else himi_program)",
7
7
  "memberProgramsScreen": "the member's programs screen id, himi_member_programs",
8
8
  "heading": "the source section's own title when it shows one, else an empty string",
9
9
  "ctaLabel": "the call-to-action button's label"
@@ -208,7 +208,7 @@
208
208
  "onTap": {
209
209
  "actionId": "himi.open",
210
210
  "params": {
211
- "screenId": "{{detailScreen}}",
211
+ "screenId": "$item.detailScreenId",
212
212
  "id": "$item.id"
213
213
  }
214
214
  },
@@ -123,6 +123,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
123
123
  himi_portfolio_project: ["portfolio"],
124
124
  himi_programs: ["programs"],
125
125
  himi_member_programs: ["programs"],
126
+ himi_program_participant: ["programs"],
126
127
  himi_reservations: ["reservations"],
127
128
  himi_reserve: ["restaurants"],
128
129
  himi_review: ["reviews"],
@@ -29,6 +29,19 @@ async function fenced<T>(identity: ChatIdentity, run: () => Promise<T>): Promise
29
29
  /** Any other member-scoped call (the AI chat's) goes through the same fence. */
30
30
  export const fence = fenced;
31
31
 
32
+ /** A signed-out visitor's Smart Chat calls are fenced the other way: still signed out before the request goes
33
+ * out and again before its response is used, so signing in mid-request never mixes the visitor's chat into
34
+ * the member's. Fails as `MemberAccessChanged`, like the member fence, so callers handle both alike. */
35
+ async function assertStillVisitor(): Promise<void> {
36
+ if ((await memberAccess()).email) throw Object.assign(new Error("visitor_signed_in"), { name: "MemberAccessChanged" });
37
+ }
38
+ export async function visitorFence<T>(run: () => Promise<T>): Promise<T> {
39
+ await assertStillVisitor();
40
+ const result = await run();
41
+ await assertStillVisitor();
42
+ return result;
43
+ }
44
+
32
45
  // Minting a chat token is a network round trip, and every chat call used to mint its own. One token
33
46
  // per member is reused until the member changes or a request using it is refused.
34
47
  let cachedToken: { key: string; token: string } | null = null;
@@ -44,7 +57,7 @@ async function chatTokenFor(identity: ChatIdentity): Promise<string> {
44
57
  return chatToken;
45
58
  }
46
59
  /** Runs `run` with the member's cached token; a refused request mints a fresh token and tries once more. */
47
- async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
60
+ export async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
48
61
  const reused = cachedToken?.key === tokenKey(identity);
49
62
  try {
50
63
  return await run(await chatTokenFor(identity));
@@ -80,7 +93,7 @@ export const unreadRoomCount = (identity: ChatIdentity): Promise<number> => fenc
80
93
  export const messagesPage = (identity: ChatIdentity, roomId: string): Promise<Raw[]> => fenced(identity, async () =>
81
94
  (await withToken(identity, (chatToken) => getMessagesPage(roomId, { ...MEMBER, chatToken, pageSize: 50, ordering: "Desc" }))).items as unknown as Raw[]);
82
95
 
83
- function bridge(): Bridge {
96
+ export function bridge(): Bridge {
84
97
  const api = (globalThis as unknown as { himalaya?: { wixApi?: Bridge } }).himalaya?.wixApi;
85
98
  if (!api) throw new Error("wix_api_bridge_unavailable");
86
99
  return api;
@@ -89,7 +102,10 @@ function bridge(): Bridge {
89
102
  * Wix Smart Chat and the AI can answer it; a message posted straight into the room has no channel, so the AI never
90
103
  * saw it and the owner's reply went out by email. Smart Chat chooses the conversation and stored message id.
91
104
  * The bridge resolves once the AI has finished answering, not when the message is stored. */
92
- export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, async () => {
105
+ export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, () => postQuestion(text));
106
+ /** The same Smart Chat send for a signed-out visitor: Smart Chat accepts the anonymous visitor token. */
107
+ export const sendVisitorMessage = (text: string): Promise<string | undefined> => visitorFence(() => postQuestion(text));
108
+ async function postQuestion(text: string): Promise<string | undefined> {
93
109
  const response = await bridge().call("POST", "/wix-assistant-widget/v1/messages/stream", {
94
110
  message: { sender: "SITE_VISITOR", messageType: "QUESTION", body: { mainText: text } },
95
111
  });
@@ -123,7 +139,7 @@ export const sendMessage = (identity: ChatIdentity, text: string): Promise<strin
123
139
  if (input?.sender === "SITE_VISITOR" && input.messageType === "QUESTION" && typeof input.id === "string" && input.id) return `smart-chat:${input.id}`;
124
140
  }
125
141
  return undefined;
126
- });
142
+ }
127
143
  /** A tapped button is a silent, ephemeral message carrying the button's chat action. */
128
144
  export const sendButton = (identity: ChatIdentity, roomId: string, input: { id: string; text: string; appId: string; interactionId: string }): Promise<void> => fenced(identity, async () => {
129
145
  await withToken(identity, (chatToken) => bridge().call("POST", `${MANAGE}/_api/chat-web/v2/chatrooms/${encodeURIComponent(roomId)}/messages`, {
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
119
119
 
120
120
  const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
121
121
 
122
+ /** `{ weekday: "short" }` — "Mon". */
123
+ export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
124
+ if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
125
+ return WEEKDAYS_SHORT[date.getDay()]!;
126
+ }
127
+
122
128
  /** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
123
129
  export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
124
130
  if (hasIntl()) {
@@ -1,5 +1,6 @@
1
1
  // The member's Inbox rows: every chatroom the member-role chat list returns, business and member alike.
2
2
  // Pure, so the worker and its tests share one classification of what a room is.
3
+ import { calendarDay, formatClock, formatMonthDay, formatWeekdayShort } from "./engine-intl.js";
3
4
 
4
5
  type RecordValue = Record<string, unknown>;
5
6
  const object = (value: unknown): RecordValue =>
@@ -15,6 +16,8 @@ export function isBusinessRoom(value: unknown): boolean {
15
16
  Object.keys(object(room.businessContext)).length > 0;
16
17
  }
17
18
 
19
+ export const BUSINESS_SCREEN = "himi_business_chat";
20
+
18
21
  export interface InboxRow {
19
22
  id: string;
20
23
  title: string;
@@ -24,14 +27,78 @@ export interface InboxRow {
24
27
  /** `chatroom` makes the thread use `id` as the room instead of resolving it as a member id. */
25
28
  kind: "chatroom" | "";
26
29
  photo: string;
30
+ /** No photo: the screen draws the initial instead (`!photo`, kept with the photo by completeRow). */
31
+ noPhoto: boolean;
27
32
  initial: string;
33
+ /** Has unread messages, or the member marked it unread. */
28
34
  unread: boolean;
35
+ /** "●" when unread, else "". Kept for the screens that bind the glyph. */
29
36
  unreadDot: string;
37
+ /** The server's unread count; 0 when none, or when the member marked a room unread (the count is then unknown). */
38
+ unreadCount: number;
39
+ /** The count as text: "" for 0 or unknown, "99+" above 99. */
40
+ unreadText: string;
41
+ /** hiddenWhen gates in both polarities: a count badge when the count is known, a plain dot when the room is
42
+ * unread but the count is not. */
43
+ showCount: boolean; hideCount: boolean; showDot: boolean; hideDot: boolean;
44
+ /** Last activity: the time today, "Yesterday", the weekday within the last six calendar days (as chat lists show it,
45
+ * not the calendar week), else the day. "" when unknown. */
46
+ dateLabel: string;
47
+ isArchived: boolean;
48
+ /** Only a private room can be deleted by a member (the Wix app's rule). */
49
+ isPrivate: boolean;
50
+ /** Swipe-action gates (hiddenWhen hides on TRUE). */
51
+ hideArchive: boolean; hideUnarchive: boolean; hideDelete: boolean; hideMarkRead: boolean; hideMarkUnread: boolean;
30
52
  /** Sort key only; not bound to the screen. */
31
53
  at: number;
32
54
  }
33
55
 
34
56
  const text = (value: unknown): string => (typeof value === "string" ? value.trim() : "");
57
+ const MAX_COUNT = 99;
58
+
59
+ /** "" for 0 or an unknown count, "99+" above 99. */
60
+ export const unreadCountText = (count: number): string => (count > MAX_COUNT ? `${MAX_COUNT}+` : count > 0 ? String(count) : "");
61
+
62
+ /** Everything that follows from a row's base fields. The one place a flag is derived, so a row that changes
63
+ * (marked read, archived) can never carry a flag that disagrees with its base fields. */
64
+ export type RowBase = Pick<InboxRow, "id" | "title" | "subtitle" | "screenId" | "kind" | "photo" | "initial" | "unread" | "unreadCount" | "dateLabel" | "isArchived" | "isPrivate" | "at">;
65
+ export function completeRow(base: RowBase): InboxRow {
66
+ const unreadText = unreadCountText(base.unreadCount);
67
+ const showCount = base.unread && unreadText !== "";
68
+ const showDot = base.unread && !showCount;
69
+ return {
70
+ ...base,
71
+ noPhoto: !base.photo,
72
+ unreadDot: base.unread ? "●" : "",
73
+ unreadText,
74
+ showCount, hideCount: !showCount, showDot, hideDot: !showDot,
75
+ hideArchive: base.isArchived, hideUnarchive: !base.isArchived,
76
+ hideDelete: !base.isPrivate,
77
+ hideMarkRead: !base.unread, hideMarkUnread: base.unread,
78
+ };
79
+ }
80
+
81
+ /** A row's read state changed: `count` is the server's count (0 = unknown or none). */
82
+ export function withUnread(row: InboxRow, unread: boolean, count: number): InboxRow {
83
+ const { id, title, subtitle, screenId, kind, photo, initial, dateLabel, isArchived, isPrivate, at } = row;
84
+ return completeRow({ id, title, subtitle, screenId, kind, photo, initial, dateLabel, isArchived, isPrivate, at, unread, unreadCount: unread ? count : 0 });
85
+ }
86
+
87
+ /** Last-activity label in the device's zone: today → the time, yesterday → [yesterday] (the caller passes the localised
88
+ * word), within the last six calendar days → the weekday, otherwise the day. "" for an unknown time. Days are calendar
89
+ * days (local midnight to midnight), never 24-hour spans, so one day never gets two label formats and DST cannot shift them. */
90
+ export function dateLabel(at: number, yesterday: string, now: number = Date.now()): string {
91
+ if (!Number.isFinite(at) || at <= 0) return "";
92
+ const date = new Date(at);
93
+ const day = calendarDay(date);
94
+ if (day === calendarDay(new Date(now))) return formatClock(date);
95
+ const today = new Date(now);
96
+ // Noon of the previous calendar day: a 23- or 25-hour day around DST cannot move it to another day.
97
+ if (day === calendarDay(new Date(today.getFullYear(), today.getMonth(), today.getDate() - 1, 12))) return yesterday;
98
+ const sixDaysBack = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 6).getTime();
99
+ if (at >= sixDaysBack && at <= now) return formatWeekdayShort(date);
100
+ return formatMonthDay(date);
101
+ }
35
102
 
36
103
  function titleOf(room: RecordValue, business: boolean): string {
37
104
  const display = text(object(room.displayData).name);
@@ -39,30 +106,53 @@ function titleOf(room: RecordValue, business: boolean): string {
39
106
  return display;
40
107
  }
41
108
 
42
- /** Newest conversation first; archived rooms and rooms without an id are dropped. `fallbackTitle` names a
43
- * room that carries no name (the caller passes the localised word, not a hard-coded English one). */
44
- export function inboxRows(rooms: unknown[], fallbackTitle: string): InboxRow[] {
109
+ export interface InboxRowsOptions {
110
+ /** `inbox` (default): archived rooms are dropped. `archive`: the list is the archive, every room is kept and marked
111
+ * archived. `all`: search results, kept as they are. */
112
+ scope?: "inbox" | "archive" | "all";
113
+ /** The localised word for yesterday; "Yesterday" when absent. */
114
+ yesterday?: string;
115
+ now?: number;
116
+ /** Rooms the server lists as unread (`unreadChatroomIds`): a room the member marked unread has no count, only this. */
117
+ unreadIds?: ReadonlySet<string>;
118
+ }
119
+
120
+ /** Newest conversation first; rooms without an id are dropped, and so are archived rooms in the inbox. `fallbackTitle`
121
+ * names a room that carries no name (the caller passes the localised word, not a hard-coded English one). */
122
+ export function inboxRows(rooms: unknown[], fallbackTitle: string, options: InboxRowsOptions = {}): InboxRow[] {
123
+ const { scope = "inbox", yesterday = "Yesterday", now, unreadIds } = options;
45
124
  const rows: InboxRow[] = [];
46
125
  for (const value of rooms) {
47
126
  const room = object(value);
48
127
  const id = text(room.id);
49
- if (!id || room.isArchived === true) continue;
128
+ if (!id) continue;
129
+ if (scope === "inbox" && room.isArchived === true) continue;
50
130
  const business = isBusinessRoom(room);
51
131
  const title = titleOf(room, business) || fallbackTitle;
52
132
  const last = object(room.lastMessage);
53
- const unread = typeof room.unreadCount === "number" && room.unreadCount > 0;
54
- rows.push({
133
+ const count = typeof room.unreadCount === "number" && Number.isFinite(room.unreadCount) && room.unreadCount > 0 ? Math.floor(room.unreadCount) : 0;
134
+ const at = typeof last.createdAt === "number" ? last.createdAt : typeof room.createdAt === "number" ? room.createdAt : 0;
135
+ rows.push(completeRow({
55
136
  id,
56
137
  title,
57
138
  subtitle: text(last.summary),
58
- screenId: business ? "himi_business_chat" : "himi_chat_thread",
139
+ screenId: business ? BUSINESS_SCREEN : "himi_chat_thread",
59
140
  kind: business ? "" : "chatroom",
60
141
  photo: text(object(object(room.displayData).image).url),
61
142
  initial: (title[0] ?? "#").toUpperCase(),
62
- unread,
63
- unreadDot: unread ? "●" : "",
64
- at: typeof last.createdAt === "number" ? last.createdAt : typeof room.createdAt === "number" ? room.createdAt : 0,
65
- });
143
+ unread: count > 0 || unreadIds?.has(id) === true,
144
+ unreadCount: count,
145
+ dateLabel: dateLabel(at, yesterday, now),
146
+ isArchived: scope === "archive" || room.isArchived === true,
147
+ isPrivate: room.isPrivate === true,
148
+ at,
149
+ }));
66
150
  }
67
151
  return rows.sort((a, b) => b.at - a.at);
68
152
  }
153
+
154
+ /** The newest message sequence a room's list entry carries, when it carries one (marking a room read needs it). */
155
+ export function lastSequenceOf(value: unknown): number | undefined {
156
+ const sequence = object(object(value).lastMessage).sequence;
157
+ return typeof sequence === "number" && Number.isSafeInteger(sequence) && sequence >= 0 ? sequence : undefined;
158
+ }