@wix/himalaya-cli 0.2048.0 → 0.2049.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 (286) hide show
  1. package/dist/cli.mjs +4 -1
  2. package/package.json +2 -2
  3. package/templates/beauty-salon/l10n/ar.json +6 -0
  4. package/templates/beauty-salon/l10n/cs.json +6 -0
  5. package/templates/beauty-salon/l10n/da.json +6 -0
  6. package/templates/beauty-salon/l10n/de.json +6 -0
  7. package/templates/beauty-salon/l10n/el.json +6 -0
  8. package/templates/beauty-salon/l10n/en.json +6 -0
  9. package/templates/beauty-salon/l10n/es.json +6 -0
  10. package/templates/beauty-salon/l10n/fi.json +6 -0
  11. package/templates/beauty-salon/l10n/fr.json +6 -0
  12. package/templates/beauty-salon/l10n/he.json +5 -0
  13. package/templates/beauty-salon/l10n/hu.json +6 -0
  14. package/templates/beauty-salon/l10n/id.json +6 -0
  15. package/templates/beauty-salon/l10n/it.json +6 -0
  16. package/templates/beauty-salon/l10n/ja.json +6 -0
  17. package/templates/beauty-salon/l10n/ko.json +6 -0
  18. package/templates/beauty-salon/l10n/lt.json +6 -0
  19. package/templates/beauty-salon/l10n/nl.json +6 -0
  20. package/templates/beauty-salon/l10n/no.json +6 -0
  21. package/templates/beauty-salon/l10n/pl.json +6 -0
  22. package/templates/beauty-salon/l10n/pt.json +6 -0
  23. package/templates/beauty-salon/l10n/ru.json +6 -0
  24. package/templates/beauty-salon/l10n/sv.json +6 -0
  25. package/templates/beauty-salon/l10n/th.json +6 -0
  26. package/templates/beauty-salon/l10n/tr.json +6 -0
  27. package/templates/beauty-salon/l10n/uk.json +6 -0
  28. package/templates/beauty-salon/l10n/vi.json +6 -0
  29. package/templates/beauty-salon/l10n/zh.json +6 -0
  30. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +35 -2
  31. package/templates/branded-lite/recipes/announcement-card.json +85 -34
  32. package/templates/branded-lite/tier5-src/_shared/announcement-section.ts +52 -10
  33. package/templates/branded-lite/tier5-src/_shared/relative-time.ts +35 -2
  34. package/templates/community-club/l10n/ar.json +6 -0
  35. package/templates/community-club/l10n/cs.json +6 -0
  36. package/templates/community-club/l10n/da.json +6 -0
  37. package/templates/community-club/l10n/de.json +6 -0
  38. package/templates/community-club/l10n/el.json +6 -0
  39. package/templates/community-club/l10n/en.json +6 -0
  40. package/templates/community-club/l10n/es.json +6 -0
  41. package/templates/community-club/l10n/fi.json +6 -0
  42. package/templates/community-club/l10n/fr.json +6 -0
  43. package/templates/community-club/l10n/he.json +5 -0
  44. package/templates/community-club/l10n/hu.json +6 -0
  45. package/templates/community-club/l10n/id.json +6 -0
  46. package/templates/community-club/l10n/it.json +6 -0
  47. package/templates/community-club/l10n/ja.json +6 -0
  48. package/templates/community-club/l10n/ko.json +6 -0
  49. package/templates/community-club/l10n/lt.json +6 -0
  50. package/templates/community-club/l10n/nl.json +6 -0
  51. package/templates/community-club/l10n/no.json +6 -0
  52. package/templates/community-club/l10n/pl.json +6 -0
  53. package/templates/community-club/l10n/pt.json +6 -0
  54. package/templates/community-club/l10n/ru.json +6 -0
  55. package/templates/community-club/l10n/sv.json +6 -0
  56. package/templates/community-club/l10n/th.json +6 -0
  57. package/templates/community-club/l10n/tr.json +6 -0
  58. package/templates/community-club/l10n/uk.json +6 -0
  59. package/templates/community-club/l10n/vi.json +6 -0
  60. package/templates/community-club/l10n/zh.json +6 -0
  61. package/templates/community-club/tier5-src/_shared/relative-time.ts +35 -2
  62. package/templates/events-meetups/l10n/ar.json +6 -0
  63. package/templates/events-meetups/l10n/cs.json +6 -0
  64. package/templates/events-meetups/l10n/da.json +6 -0
  65. package/templates/events-meetups/l10n/de.json +6 -0
  66. package/templates/events-meetups/l10n/el.json +6 -0
  67. package/templates/events-meetups/l10n/en.json +6 -0
  68. package/templates/events-meetups/l10n/es.json +6 -0
  69. package/templates/events-meetups/l10n/fi.json +6 -0
  70. package/templates/events-meetups/l10n/fr.json +6 -0
  71. package/templates/events-meetups/l10n/he.json +5 -0
  72. package/templates/events-meetups/l10n/hu.json +6 -0
  73. package/templates/events-meetups/l10n/id.json +6 -0
  74. package/templates/events-meetups/l10n/it.json +6 -0
  75. package/templates/events-meetups/l10n/ja.json +6 -0
  76. package/templates/events-meetups/l10n/ko.json +6 -0
  77. package/templates/events-meetups/l10n/lt.json +6 -0
  78. package/templates/events-meetups/l10n/nl.json +6 -0
  79. package/templates/events-meetups/l10n/no.json +6 -0
  80. package/templates/events-meetups/l10n/pl.json +6 -0
  81. package/templates/events-meetups/l10n/pt.json +6 -0
  82. package/templates/events-meetups/l10n/ru.json +6 -0
  83. package/templates/events-meetups/l10n/sv.json +6 -0
  84. package/templates/events-meetups/l10n/th.json +6 -0
  85. package/templates/events-meetups/l10n/tr.json +6 -0
  86. package/templates/events-meetups/l10n/uk.json +6 -0
  87. package/templates/events-meetups/l10n/vi.json +6 -0
  88. package/templates/events-meetups/l10n/zh.json +6 -0
  89. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +35 -2
  90. package/templates/gym-fitness/l10n/ar.json +6 -0
  91. package/templates/gym-fitness/l10n/cs.json +6 -0
  92. package/templates/gym-fitness/l10n/da.json +6 -0
  93. package/templates/gym-fitness/l10n/de.json +6 -0
  94. package/templates/gym-fitness/l10n/el.json +6 -0
  95. package/templates/gym-fitness/l10n/en.json +6 -0
  96. package/templates/gym-fitness/l10n/es.json +6 -0
  97. package/templates/gym-fitness/l10n/fi.json +6 -0
  98. package/templates/gym-fitness/l10n/fr.json +6 -0
  99. package/templates/gym-fitness/l10n/he.json +5 -0
  100. package/templates/gym-fitness/l10n/hu.json +6 -0
  101. package/templates/gym-fitness/l10n/id.json +6 -0
  102. package/templates/gym-fitness/l10n/it.json +6 -0
  103. package/templates/gym-fitness/l10n/ja.json +6 -0
  104. package/templates/gym-fitness/l10n/ko.json +6 -0
  105. package/templates/gym-fitness/l10n/lt.json +6 -0
  106. package/templates/gym-fitness/l10n/nl.json +6 -0
  107. package/templates/gym-fitness/l10n/no.json +6 -0
  108. package/templates/gym-fitness/l10n/pl.json +6 -0
  109. package/templates/gym-fitness/l10n/pt.json +6 -0
  110. package/templates/gym-fitness/l10n/ru.json +6 -0
  111. package/templates/gym-fitness/l10n/sv.json +6 -0
  112. package/templates/gym-fitness/l10n/th.json +6 -0
  113. package/templates/gym-fitness/l10n/tr.json +6 -0
  114. package/templates/gym-fitness/l10n/uk.json +6 -0
  115. package/templates/gym-fitness/l10n/vi.json +6 -0
  116. package/templates/gym-fitness/l10n/zh.json +6 -0
  117. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +35 -2
  118. package/templates/nonprofit-cause/l10n/ar.json +6 -0
  119. package/templates/nonprofit-cause/l10n/cs.json +6 -0
  120. package/templates/nonprofit-cause/l10n/da.json +6 -0
  121. package/templates/nonprofit-cause/l10n/de.json +6 -0
  122. package/templates/nonprofit-cause/l10n/el.json +6 -0
  123. package/templates/nonprofit-cause/l10n/en.json +6 -0
  124. package/templates/nonprofit-cause/l10n/es.json +6 -0
  125. package/templates/nonprofit-cause/l10n/fi.json +6 -0
  126. package/templates/nonprofit-cause/l10n/fr.json +6 -0
  127. package/templates/nonprofit-cause/l10n/he.json +5 -0
  128. package/templates/nonprofit-cause/l10n/hu.json +6 -0
  129. package/templates/nonprofit-cause/l10n/id.json +6 -0
  130. package/templates/nonprofit-cause/l10n/it.json +6 -0
  131. package/templates/nonprofit-cause/l10n/ja.json +6 -0
  132. package/templates/nonprofit-cause/l10n/ko.json +6 -0
  133. package/templates/nonprofit-cause/l10n/lt.json +6 -0
  134. package/templates/nonprofit-cause/l10n/nl.json +6 -0
  135. package/templates/nonprofit-cause/l10n/no.json +6 -0
  136. package/templates/nonprofit-cause/l10n/pl.json +6 -0
  137. package/templates/nonprofit-cause/l10n/pt.json +6 -0
  138. package/templates/nonprofit-cause/l10n/ru.json +6 -0
  139. package/templates/nonprofit-cause/l10n/sv.json +6 -0
  140. package/templates/nonprofit-cause/l10n/th.json +6 -0
  141. package/templates/nonprofit-cause/l10n/tr.json +6 -0
  142. package/templates/nonprofit-cause/l10n/uk.json +6 -0
  143. package/templates/nonprofit-cause/l10n/vi.json +6 -0
  144. package/templates/nonprofit-cause/l10n/zh.json +6 -0
  145. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +35 -2
  146. package/templates/podcast-creator/l10n/ar.json +6 -0
  147. package/templates/podcast-creator/l10n/cs.json +6 -0
  148. package/templates/podcast-creator/l10n/da.json +6 -0
  149. package/templates/podcast-creator/l10n/de.json +6 -0
  150. package/templates/podcast-creator/l10n/el.json +6 -0
  151. package/templates/podcast-creator/l10n/en.json +6 -0
  152. package/templates/podcast-creator/l10n/es.json +6 -0
  153. package/templates/podcast-creator/l10n/fi.json +6 -0
  154. package/templates/podcast-creator/l10n/fr.json +6 -0
  155. package/templates/podcast-creator/l10n/he.json +5 -0
  156. package/templates/podcast-creator/l10n/hu.json +6 -0
  157. package/templates/podcast-creator/l10n/id.json +6 -0
  158. package/templates/podcast-creator/l10n/it.json +6 -0
  159. package/templates/podcast-creator/l10n/ja.json +6 -0
  160. package/templates/podcast-creator/l10n/ko.json +6 -0
  161. package/templates/podcast-creator/l10n/lt.json +6 -0
  162. package/templates/podcast-creator/l10n/nl.json +6 -0
  163. package/templates/podcast-creator/l10n/no.json +6 -0
  164. package/templates/podcast-creator/l10n/pl.json +6 -0
  165. package/templates/podcast-creator/l10n/pt.json +6 -0
  166. package/templates/podcast-creator/l10n/ru.json +6 -0
  167. package/templates/podcast-creator/l10n/sv.json +6 -0
  168. package/templates/podcast-creator/l10n/th.json +6 -0
  169. package/templates/podcast-creator/l10n/tr.json +6 -0
  170. package/templates/podcast-creator/l10n/uk.json +6 -0
  171. package/templates/podcast-creator/l10n/vi.json +6 -0
  172. package/templates/podcast-creator/l10n/zh.json +6 -0
  173. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +35 -2
  174. package/templates/portfolio-creative/l10n/ar.json +6 -0
  175. package/templates/portfolio-creative/l10n/cs.json +6 -0
  176. package/templates/portfolio-creative/l10n/da.json +6 -0
  177. package/templates/portfolio-creative/l10n/de.json +6 -0
  178. package/templates/portfolio-creative/l10n/el.json +6 -0
  179. package/templates/portfolio-creative/l10n/en.json +6 -0
  180. package/templates/portfolio-creative/l10n/es.json +6 -0
  181. package/templates/portfolio-creative/l10n/fi.json +6 -0
  182. package/templates/portfolio-creative/l10n/fr.json +6 -0
  183. package/templates/portfolio-creative/l10n/he.json +5 -0
  184. package/templates/portfolio-creative/l10n/hu.json +6 -0
  185. package/templates/portfolio-creative/l10n/id.json +6 -0
  186. package/templates/portfolio-creative/l10n/it.json +6 -0
  187. package/templates/portfolio-creative/l10n/ja.json +6 -0
  188. package/templates/portfolio-creative/l10n/ko.json +6 -0
  189. package/templates/portfolio-creative/l10n/lt.json +6 -0
  190. package/templates/portfolio-creative/l10n/nl.json +6 -0
  191. package/templates/portfolio-creative/l10n/no.json +6 -0
  192. package/templates/portfolio-creative/l10n/pl.json +6 -0
  193. package/templates/portfolio-creative/l10n/pt.json +6 -0
  194. package/templates/portfolio-creative/l10n/ru.json +6 -0
  195. package/templates/portfolio-creative/l10n/sv.json +6 -0
  196. package/templates/portfolio-creative/l10n/th.json +6 -0
  197. package/templates/portfolio-creative/l10n/tr.json +6 -0
  198. package/templates/portfolio-creative/l10n/uk.json +6 -0
  199. package/templates/portfolio-creative/l10n/vi.json +6 -0
  200. package/templates/portfolio-creative/l10n/zh.json +6 -0
  201. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +35 -2
  202. package/templates/professional-services/tier5-src/_shared/relative-time.ts +35 -2
  203. package/templates/restaurant/l10n/ar.json +6 -0
  204. package/templates/restaurant/l10n/cs.json +6 -0
  205. package/templates/restaurant/l10n/da.json +6 -0
  206. package/templates/restaurant/l10n/de.json +6 -0
  207. package/templates/restaurant/l10n/el.json +6 -0
  208. package/templates/restaurant/l10n/en.json +6 -0
  209. package/templates/restaurant/l10n/es.json +6 -0
  210. package/templates/restaurant/l10n/fi.json +6 -0
  211. package/templates/restaurant/l10n/fr.json +6 -0
  212. package/templates/restaurant/l10n/he.json +5 -0
  213. package/templates/restaurant/l10n/hu.json +6 -0
  214. package/templates/restaurant/l10n/id.json +6 -0
  215. package/templates/restaurant/l10n/it.json +6 -0
  216. package/templates/restaurant/l10n/ja.json +6 -0
  217. package/templates/restaurant/l10n/ko.json +6 -0
  218. package/templates/restaurant/l10n/lt.json +6 -0
  219. package/templates/restaurant/l10n/nl.json +6 -0
  220. package/templates/restaurant/l10n/no.json +6 -0
  221. package/templates/restaurant/l10n/pl.json +6 -0
  222. package/templates/restaurant/l10n/pt.json +6 -0
  223. package/templates/restaurant/l10n/ru.json +6 -0
  224. package/templates/restaurant/l10n/sv.json +6 -0
  225. package/templates/restaurant/l10n/th.json +6 -0
  226. package/templates/restaurant/l10n/tr.json +6 -0
  227. package/templates/restaurant/l10n/uk.json +6 -0
  228. package/templates/restaurant/l10n/vi.json +6 -0
  229. package/templates/restaurant/l10n/zh.json +6 -0
  230. package/templates/restaurant/tier5-src/_shared/relative-time.ts +35 -2
  231. package/templates/retail-store/l10n/ar.json +6 -0
  232. package/templates/retail-store/l10n/cs.json +6 -0
  233. package/templates/retail-store/l10n/da.json +6 -0
  234. package/templates/retail-store/l10n/de.json +6 -0
  235. package/templates/retail-store/l10n/el.json +6 -0
  236. package/templates/retail-store/l10n/en.json +6 -0
  237. package/templates/retail-store/l10n/es.json +6 -0
  238. package/templates/retail-store/l10n/fi.json +6 -0
  239. package/templates/retail-store/l10n/fr.json +6 -0
  240. package/templates/retail-store/l10n/he.json +5 -0
  241. package/templates/retail-store/l10n/hu.json +6 -0
  242. package/templates/retail-store/l10n/id.json +6 -0
  243. package/templates/retail-store/l10n/it.json +6 -0
  244. package/templates/retail-store/l10n/ja.json +6 -0
  245. package/templates/retail-store/l10n/ko.json +6 -0
  246. package/templates/retail-store/l10n/lt.json +6 -0
  247. package/templates/retail-store/l10n/nl.json +6 -0
  248. package/templates/retail-store/l10n/no.json +6 -0
  249. package/templates/retail-store/l10n/pl.json +6 -0
  250. package/templates/retail-store/l10n/pt.json +6 -0
  251. package/templates/retail-store/l10n/ru.json +6 -0
  252. package/templates/retail-store/l10n/sv.json +6 -0
  253. package/templates/retail-store/l10n/th.json +6 -0
  254. package/templates/retail-store/l10n/tr.json +6 -0
  255. package/templates/retail-store/l10n/uk.json +6 -0
  256. package/templates/retail-store/l10n/vi.json +6 -0
  257. package/templates/retail-store/l10n/zh.json +6 -0
  258. package/templates/retail-store/tier5-src/_shared/relative-time.ts +35 -2
  259. package/templates/yoga-studio/l10n/ar.json +6 -0
  260. package/templates/yoga-studio/l10n/cs.json +6 -0
  261. package/templates/yoga-studio/l10n/da.json +6 -0
  262. package/templates/yoga-studio/l10n/de.json +6 -0
  263. package/templates/yoga-studio/l10n/el.json +6 -0
  264. package/templates/yoga-studio/l10n/en.json +6 -0
  265. package/templates/yoga-studio/l10n/es.json +6 -0
  266. package/templates/yoga-studio/l10n/fi.json +6 -0
  267. package/templates/yoga-studio/l10n/fr.json +6 -0
  268. package/templates/yoga-studio/l10n/he.json +5 -0
  269. package/templates/yoga-studio/l10n/hu.json +6 -0
  270. package/templates/yoga-studio/l10n/id.json +6 -0
  271. package/templates/yoga-studio/l10n/it.json +6 -0
  272. package/templates/yoga-studio/l10n/ja.json +6 -0
  273. package/templates/yoga-studio/l10n/ko.json +6 -0
  274. package/templates/yoga-studio/l10n/lt.json +6 -0
  275. package/templates/yoga-studio/l10n/nl.json +6 -0
  276. package/templates/yoga-studio/l10n/no.json +6 -0
  277. package/templates/yoga-studio/l10n/pl.json +6 -0
  278. package/templates/yoga-studio/l10n/pt.json +6 -0
  279. package/templates/yoga-studio/l10n/ru.json +6 -0
  280. package/templates/yoga-studio/l10n/sv.json +6 -0
  281. package/templates/yoga-studio/l10n/th.json +6 -0
  282. package/templates/yoga-studio/l10n/tr.json +6 -0
  283. package/templates/yoga-studio/l10n/uk.json +6 -0
  284. package/templates/yoga-studio/l10n/vi.json +6 -0
  285. package/templates/yoga-studio/l10n/zh.json +6 -0
  286. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +35 -2
package/dist/cli.mjs CHANGED
@@ -3970,6 +3970,7 @@ var init_himi_package = __esm({
3970
3970
  var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
3971
3971
  var init_icon_catalog_generated = __esm({
3972
3972
  "../../core/ts/src/icon-catalog.generated.ts"() {
3973
+ "use strict";
3973
3974
  init_define_HHP_CATALOG();
3974
3975
  ICON_VIEW_BOX = 24;
3975
3976
  ICON_STROKE_WIDTH = 2;
@@ -46614,6 +46615,7 @@ function resolveIdiom(tokens2, ctx = {}) {
46614
46615
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
46615
46616
  var init_idiom = __esm({
46616
46617
  "../../core/ts/src/idiom.ts"() {
46618
+ "use strict";
46617
46619
  init_define_HHP_CATALOG();
46618
46620
  IDIOM_CONTEXTS = {
46619
46621
  ios: { native: ["ios"] },
@@ -216637,7 +216639,8 @@ var init_generate = __esm({
216637
216639
  platform_general_announcement_section: (id, s5, _st, index, ctx) => {
216638
216640
  const svc = ctx.uses("announcements", `announcement${index}`, {});
216639
216641
  const heading = s5.showTitle === true ? str16(s5.title).trim() : "";
216640
- return vstack(`${id}.box`, [ctx.recipe("announcement-card", { svc, id, heading })], 0, { onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
216642
+ const params = ctx.workerCopy(MODULES.announcements.file);
216643
+ return vstack(`${id}.box`, [ctx.recipe("announcement-card", { svc, id, heading })], 0, { onAppear: { actionId: `tier5.${svc}.load`, params } });
216641
216644
  },
216642
216645
  // The data of these sections is shown by a template screen; the page keeps the source's title and a link to it.
216643
216646
  // A Wix Video channel's first videos as a rail of cards (cover, length, title) that open the template's video screen, which plays the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.2048.0",
3
+ "version": "0.2049.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "79cba9420fa1915cd9d8f2ae354d7c40e50e23d57b3d297fbe9db538"
85
+ "falconPackageHash": "7ed2861fbd4486cab6fde7bed7a534dcfa574ddc1744df82608be7d5"
86
86
  }
@@ -80,6 +80,12 @@
80
80
  "translation": "اليوم",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "أمس",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Dnes",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Včera",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "I dag",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "I går",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Heute",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Gestern",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Σήμερα",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Χθες",
87
+ "origin": "machine"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -1952,6 +1952,12 @@
1952
1952
  "key": "collection.filterTitle",
1953
1953
  "keyOrigin": "string-table"
1954
1954
  },
1955
+ "h_da24830f1f70": {
1956
+ "source": "Yesterday",
1957
+ "kind": "Worker.copy",
1958
+ "translation": "",
1959
+ "key": "businessChat.yesterday"
1960
+ },
1955
1961
  "h_dae7cf45ff49": {
1956
1962
  "source": "More products could not be loaded.",
1957
1963
  "kind": "ErrorState.title",
@@ -80,6 +80,12 @@
80
80
  "translation": "Hoy",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Ayer",
87
+ "origin": "machine"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Tänään",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Eilen",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -26,6 +26,12 @@
26
26
  "translation": "Aujourd'hui",
27
27
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
28
28
  },
29
+ "h_da24830f1f70": {
30
+ "key": "businessChat.yesterday",
31
+ "source": "Yesterday",
32
+ "translation": "Hier",
33
+ "origin": "machine"
34
+ },
29
35
  "h_33ce417454bf": {
30
36
  "key": "common.detailLoadingText",
31
37
  "source": "Loading…",
@@ -21,6 +21,11 @@
21
21
  "key": "businessChat.today",
22
22
  "translation": "היום"
23
23
  },
24
+ "h_da24830f1f70": {
25
+ "source": "Yesterday",
26
+ "key": "businessChat.yesterday",
27
+ "translation": "אתמול"
28
+ },
24
29
  "h_33ce417454bf": {
25
30
  "source": "Loading…",
26
31
  "key": "common.detailLoadingText",
@@ -80,6 +80,12 @@
80
80
  "translation": "Ma",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Tegnap",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Hari Ini",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Kemarin",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Oggi",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Ieri",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "今日",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "昨日",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "오늘",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "어제",
87
+ "origin": "one-app:mobile-apps-virtual-numbers:calls_list.subheading.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Šiandien",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Vakar",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Vandaag",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Gisteren",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "I dag",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "I går",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Dzisiaj",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Wczoraj",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Hoje",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Ontem",
87
+ "origin": "machine"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Сегодня",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Вчера",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Idag",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Igår",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "วันนี้",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "เมื่อวานนี้",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Bugün",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Dün",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Сьогодні",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Вчора",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "Hôm nay",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "Hôm qua",
87
+ "origin": "machine"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -80,6 +80,12 @@
80
80
  "translation": "今日",
81
81
  "origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
82
82
  },
83
+ "h_da24830f1f70": {
84
+ "key": "businessChat.yesterday",
85
+ "source": "Yesterday",
86
+ "translation": "昨天",
87
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
88
+ },
83
89
  "h_33ce417454bf": {
84
90
  "key": "common.detailLoadingText",
85
91
  "source": "Loading…",
@@ -7,6 +7,8 @@ const MINUTE = 60_000;
7
7
  const HOUR = 60 * MINUTE;
8
8
  const DAY = 24 * HOUR;
9
9
  const RELATIVE_DAYS = 7;
10
+ /** How far ahead of the device a timestamp may be and still count as now (himi-blog-post's `CLOCK_SKEW_MS`). */
11
+ const CLOCK_SKEW = 5 * MINUTE;
10
12
 
11
13
  /** "" when `iso` is missing or not a date. A time in the future (a clock skew) reads as the date, never "-3 minutes ago". */
12
14
  export function relativeTime(iso: string | undefined, now: number): string {
@@ -16,6 +18,37 @@ export function relativeTime(iso: string | undefined, now: number): string {
16
18
  if (age < 0 || age >= RELATIVE_DAYS * DAY) return formatDateMedium(new Date(at));
17
19
  if (age < MINUTE) return copyParam("relativeTime.justNow", "Just now");
18
20
  if (age < HOUR) return copyPlural("relativeTime.minutesAgo", "{n, plural, one {# minute ago} other {# minutes ago}}", Math.floor(age / MINUTE));
19
- if (age < DAY) return copyPlural("relativeTime.hoursAgo", "{n, plural, one {# hour ago} other {# hours ago}}", Math.floor(age / HOUR));
20
- return copyPlural("relativeTime.daysAgo", "{n, plural, one {# day ago} other {# days ago}}", Math.floor(age / DAY));
21
+ if (age < DAY) return hoursAgo(Math.floor(age / HOUR));
22
+ return daysAgo(Math.floor(age / DAY));
23
+ }
24
+
25
+ // One literal each: a pinned app's translations are matched by this exact English text.
26
+ const hoursAgo = (n: number): string => copyPlural("relativeTime.hoursAgo", "{n, plural, one {# hour ago} other {# hours ago}}", n);
27
+ const daysAgo = (n: number): string => copyPlural("relativeTime.daysAgo", "{n, plural, one {# day ago} other {# days ago}}", n);
28
+
29
+ /** How many calendar days (device zone) `at` is before `now`: 0 today, 1 yesterday, …, capped at RELATIVE_DAYS. The local dates
30
+ * are compared as UTC midnights, so a 23- or 25-hour DST day cannot move a time to another day, and no Intl is used. */
31
+ function calendarDaysBefore(at: number, now: number): number {
32
+ const when = new Date(at);
33
+ const today = new Date(now);
34
+ const days = Math.round((Date.UTC(today.getFullYear(), today.getMonth(), today.getDate()) - Date.UTC(when.getFullYear(), when.getMonth(), when.getDate())) / DAY);
35
+ // A backward offset change across local midnight can give an earlier instant a later local date: never fewer than 0 days.
36
+ return Math.min(Math.max(days, 0), RELATIVE_DAYS);
37
+ }
38
+
39
+ /** As the One App's announcement card says it: "Just now" and minutes for the last hour, hours for the rest of today, "Yesterday",
40
+ * then "N days ago" by CALENDAR day (so an older post never reads newer than a later one), and the date once it is a week old. */
41
+ export function relativeDay(iso: string | undefined, now: number): string {
42
+ const at = iso ? Date.parse(iso) : NaN;
43
+ if (!Number.isFinite(at)) return "";
44
+ const age = now - at;
45
+ // A post just made on a server whose clock runs a little ahead reads "Just now"; further in the future it is the date.
46
+ if (age < 0) return -age <= CLOCK_SKEW ? copyParam("relativeTime.justNow", "Just now") : formatDateMedium(new Date(at));
47
+ if (age < HOUR) return relativeTime(iso, now);
48
+ const days = calendarDaysBefore(at, now);
49
+ // Hours for all of today, a 25-hour DST day included.
50
+ if (days === 0) return hoursAgo(Math.floor(age / HOUR));
51
+ if (days === 1) return copyParam("relativeTime.yesterday", "Yesterday");
52
+ if (days < RELATIVE_DAYS) return daysAgo(days);
53
+ return formatDateMedium(new Date(at));
21
54
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "_recipe": "The business's latest announcement (title, rich body, creator and date), read at runtime. Service: registerAnnouncementSection(svc). Hidden whole while there is nothing to show.",
2
+ "_recipe": "The business's latest announcement as the One App card: a bordered card with the creator's avatar (initials when there is no picture), name and date (\"Yesterday\"), then the title and the rich body with its pictures. Read at runtime. Service: registerAnnouncementSection(svc). Hidden whole while there is nothing to show.",
3
3
  "_placeholders": {
4
4
  "svc": "service name the page worker registered with registerAnnouncementSection",
5
5
  "id": "unique node id prefix (e.g. the screen id)",
@@ -19,49 +19,100 @@
19
19
  "body": { "package": "himalaya", "type": "Text", "props": { "text": "{{heading}}", "style": "title3", "collapseWhenEmpty": true } }
20
20
  },
21
21
  {
22
- "id": "{{id}}.title",
23
- "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.title", "style": "bodyEmphasis", "collapseWhenEmpty": true } },
24
- "modifiers": { "hiddenPath": "$service:{{svc}}.noTitle" }
25
- },
26
- {
27
- "id": "{{id}}.body_rich",
28
- "body": {
29
- "package": "himalaya",
30
- "type": "RichContent",
31
- "props": {
32
- "documentJsonPath": "$service:{{svc}}.bodyJson",
33
- "onLink": { "actionId": "tier5.{{svc}}.openLink" },
34
- "fallback": { "id": "{{id}}.body_rich_fallback", "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.body", "style": "body", "color": "textSecondary" } } }
35
- }
36
- },
37
- "modifiers": { "hiddenPath": "$service:{{svc}}.noBodyJson" }
38
- },
39
- {
40
- "id": "{{id}}.body",
41
- "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.body", "style": "body", "color": "textSecondary", "collapseWhenEmpty": true } },
42
- "modifiers": { "hiddenPath": "$service:{{svc}}.hasBodyJson" }
43
- },
44
- {
45
- "id": "{{id}}.meta",
22
+ "id": "{{id}}.card",
46
23
  "body": {
47
24
  "package": "himalaya",
48
- "type": "HStack",
25
+ "type": "VStack",
49
26
  "props": {
50
- "spacing": 8,
51
- "alignment": "center",
27
+ "spacing": 12,
28
+ "alignment": "leading",
52
29
  "children": [
53
30
  {
54
- "id": "{{id}}.creator",
55
- "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.creator", "style": "caption", "color": "textSecondary", "collapseWhenEmpty": true } },
56
- "modifiers": { "hiddenPath": "$service:{{svc}}.noCreator" }
31
+ "id": "{{id}}.header",
32
+ "body": {
33
+ "package": "himalaya",
34
+ "type": "HStack",
35
+ "props": {
36
+ "spacing": 12,
37
+ "alignment": "center",
38
+ "children": [
39
+ {
40
+ "id": "{{id}}.avatar",
41
+ "body": {
42
+ "package": "himalaya",
43
+ "type": "Image",
44
+ "props": {
45
+ "url": "$service:{{svc}}.creatorImage",
46
+ "initials": "$service:{{svc}}.creatorInitials",
47
+ "width": 40,
48
+ "height": 40,
49
+ "shape": "circle",
50
+ "contentMode": "fill"
51
+ }
52
+ },
53
+ "modifiers": { "hiddenPath": "$service:{{svc}}.noAvatar", "accessibilityRole": "decorative" }
54
+ },
55
+ {
56
+ "id": "{{id}}.byline",
57
+ "body": {
58
+ "package": "himalaya",
59
+ "type": "VStack",
60
+ "props": {
61
+ "spacing": 2,
62
+ "alignment": "leading",
63
+ "children": [
64
+ {
65
+ "id": "{{id}}.creator",
66
+ "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.creator", "style": "bodyEmphasis", "maxLines": 1, "collapseWhenEmpty": true } },
67
+ "modifiers": { "hiddenPath": "$service:{{svc}}.noCreator" }
68
+ },
69
+ {
70
+ "id": "{{id}}.created",
71
+ "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.created", "style": "caption", "color": "textSecondary", "collapseWhenEmpty": true } },
72
+ "modifiers": { "hiddenPath": "$service:{{svc}}.noCreated" }
73
+ }
74
+ ]
75
+ }
76
+ },
77
+ "modifiers": { "weight": 1 }
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ "modifiers": { "fillMaxWidth": true, "hiddenPath": "$service:{{svc}}.noHeader" }
83
+ },
84
+ {
85
+ "id": "{{id}}.title",
86
+ "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.title", "style": "bodyEmphasis", "collapseWhenEmpty": true } },
87
+ "modifiers": { "hiddenPath": "$service:{{svc}}.noTitle" }
88
+ },
89
+ {
90
+ "id": "{{id}}.body_rich",
91
+ "body": {
92
+ "package": "himalaya",
93
+ "type": "RichContent",
94
+ "props": {
95
+ "documentJsonPath": "$service:{{svc}}.bodyJson",
96
+ "onLink": { "actionId": "tier5.{{svc}}.openLink" },
97
+ "fallback": { "id": "{{id}}.body_rich_fallback", "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.body", "style": "body", "color": "textSecondary" } } }
98
+ }
99
+ },
100
+ "modifiers": { "hiddenPath": "$service:{{svc}}.noBodyJson" }
57
101
  },
58
102
  {
59
- "id": "{{id}}.created",
60
- "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.created", "style": "caption", "color": "textSecondary", "collapseWhenEmpty": true } },
61
- "modifiers": { "hiddenPath": "$service:{{svc}}.noCreated" }
103
+ "id": "{{id}}.body",
104
+ "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.body", "style": "body", "color": "textSecondary", "collapseWhenEmpty": true } },
105
+ "modifiers": { "hiddenPath": "$service:{{svc}}.hasBodyJson" }
62
106
  }
63
107
  ]
64
108
  }
109
+ },
110
+ "modifiers": {
111
+ "background": { "token": "surfaceElevated" },
112
+ "border": { "width": 1, "color": { "token": "border" } },
113
+ "cornerRadius": 8,
114
+ "padding": { "leading": 16, "trailing": 16, "top": 16, "bottom": 16 },
115
+ "fillMaxWidth": true
65
116
  }
66
117
  }
67
118
  ]