@wix/himalaya-cli 0.2047.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 (308) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/index.d.ts +5 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/monitoring.d.ts +81 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +7 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-monitoring.d.ts +23 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +530 -68
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +198 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +532 -70
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  18. package/dist/browser-plane/assets.json +5 -5
  19. package/dist/browser-plane/preview-deferred/{bfa6093b86d3106ef891a717dc0da1b1c0d9d1a456259753c25398bbafbcef8e.bin → 78e9187a8551e2a63e7bc9f5cda8449c6a39ba3d9bcfa40947713322e68a3e3b.bin} +1 -1
  20. package/dist/browser-plane/sw.js +7 -7
  21. package/dist/cli.mjs +51 -47
  22. package/dist/preview-assets.generated.bin +0 -0
  23. package/guides/sdk-reference.json +121 -2
  24. package/package.json +2 -2
  25. package/templates/beauty-salon/l10n/ar.json +6 -0
  26. package/templates/beauty-salon/l10n/cs.json +6 -0
  27. package/templates/beauty-salon/l10n/da.json +6 -0
  28. package/templates/beauty-salon/l10n/de.json +6 -0
  29. package/templates/beauty-salon/l10n/el.json +6 -0
  30. package/templates/beauty-salon/l10n/en.json +6 -0
  31. package/templates/beauty-salon/l10n/es.json +6 -0
  32. package/templates/beauty-salon/l10n/fi.json +6 -0
  33. package/templates/beauty-salon/l10n/fr.json +6 -0
  34. package/templates/beauty-salon/l10n/he.json +5 -0
  35. package/templates/beauty-salon/l10n/hu.json +6 -0
  36. package/templates/beauty-salon/l10n/id.json +6 -0
  37. package/templates/beauty-salon/l10n/it.json +6 -0
  38. package/templates/beauty-salon/l10n/ja.json +6 -0
  39. package/templates/beauty-salon/l10n/ko.json +6 -0
  40. package/templates/beauty-salon/l10n/lt.json +6 -0
  41. package/templates/beauty-salon/l10n/nl.json +6 -0
  42. package/templates/beauty-salon/l10n/no.json +6 -0
  43. package/templates/beauty-salon/l10n/pl.json +6 -0
  44. package/templates/beauty-salon/l10n/pt.json +6 -0
  45. package/templates/beauty-salon/l10n/ru.json +6 -0
  46. package/templates/beauty-salon/l10n/sv.json +6 -0
  47. package/templates/beauty-salon/l10n/th.json +6 -0
  48. package/templates/beauty-salon/l10n/tr.json +6 -0
  49. package/templates/beauty-salon/l10n/uk.json +6 -0
  50. package/templates/beauty-salon/l10n/vi.json +6 -0
  51. package/templates/beauty-salon/l10n/zh.json +6 -0
  52. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +35 -2
  53. package/templates/branded-lite/recipes/announcement-card.json +85 -34
  54. package/templates/branded-lite/tier5-src/_shared/announcement-section.ts +52 -10
  55. package/templates/branded-lite/tier5-src/_shared/relative-time.ts +35 -2
  56. package/templates/community-club/l10n/ar.json +6 -0
  57. package/templates/community-club/l10n/cs.json +6 -0
  58. package/templates/community-club/l10n/da.json +6 -0
  59. package/templates/community-club/l10n/de.json +6 -0
  60. package/templates/community-club/l10n/el.json +6 -0
  61. package/templates/community-club/l10n/en.json +6 -0
  62. package/templates/community-club/l10n/es.json +6 -0
  63. package/templates/community-club/l10n/fi.json +6 -0
  64. package/templates/community-club/l10n/fr.json +6 -0
  65. package/templates/community-club/l10n/he.json +5 -0
  66. package/templates/community-club/l10n/hu.json +6 -0
  67. package/templates/community-club/l10n/id.json +6 -0
  68. package/templates/community-club/l10n/it.json +6 -0
  69. package/templates/community-club/l10n/ja.json +6 -0
  70. package/templates/community-club/l10n/ko.json +6 -0
  71. package/templates/community-club/l10n/lt.json +6 -0
  72. package/templates/community-club/l10n/nl.json +6 -0
  73. package/templates/community-club/l10n/no.json +6 -0
  74. package/templates/community-club/l10n/pl.json +6 -0
  75. package/templates/community-club/l10n/pt.json +6 -0
  76. package/templates/community-club/l10n/ru.json +6 -0
  77. package/templates/community-club/l10n/sv.json +6 -0
  78. package/templates/community-club/l10n/th.json +6 -0
  79. package/templates/community-club/l10n/tr.json +6 -0
  80. package/templates/community-club/l10n/uk.json +6 -0
  81. package/templates/community-club/l10n/vi.json +6 -0
  82. package/templates/community-club/l10n/zh.json +6 -0
  83. package/templates/community-club/tier5-src/_shared/relative-time.ts +35 -2
  84. package/templates/events-meetups/l10n/ar.json +6 -0
  85. package/templates/events-meetups/l10n/cs.json +6 -0
  86. package/templates/events-meetups/l10n/da.json +6 -0
  87. package/templates/events-meetups/l10n/de.json +6 -0
  88. package/templates/events-meetups/l10n/el.json +6 -0
  89. package/templates/events-meetups/l10n/en.json +6 -0
  90. package/templates/events-meetups/l10n/es.json +6 -0
  91. package/templates/events-meetups/l10n/fi.json +6 -0
  92. package/templates/events-meetups/l10n/fr.json +6 -0
  93. package/templates/events-meetups/l10n/he.json +5 -0
  94. package/templates/events-meetups/l10n/hu.json +6 -0
  95. package/templates/events-meetups/l10n/id.json +6 -0
  96. package/templates/events-meetups/l10n/it.json +6 -0
  97. package/templates/events-meetups/l10n/ja.json +6 -0
  98. package/templates/events-meetups/l10n/ko.json +6 -0
  99. package/templates/events-meetups/l10n/lt.json +6 -0
  100. package/templates/events-meetups/l10n/nl.json +6 -0
  101. package/templates/events-meetups/l10n/no.json +6 -0
  102. package/templates/events-meetups/l10n/pl.json +6 -0
  103. package/templates/events-meetups/l10n/pt.json +6 -0
  104. package/templates/events-meetups/l10n/ru.json +6 -0
  105. package/templates/events-meetups/l10n/sv.json +6 -0
  106. package/templates/events-meetups/l10n/th.json +6 -0
  107. package/templates/events-meetups/l10n/tr.json +6 -0
  108. package/templates/events-meetups/l10n/uk.json +6 -0
  109. package/templates/events-meetups/l10n/vi.json +6 -0
  110. package/templates/events-meetups/l10n/zh.json +6 -0
  111. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +35 -2
  112. package/templates/gym-fitness/l10n/ar.json +6 -0
  113. package/templates/gym-fitness/l10n/cs.json +6 -0
  114. package/templates/gym-fitness/l10n/da.json +6 -0
  115. package/templates/gym-fitness/l10n/de.json +6 -0
  116. package/templates/gym-fitness/l10n/el.json +6 -0
  117. package/templates/gym-fitness/l10n/en.json +6 -0
  118. package/templates/gym-fitness/l10n/es.json +6 -0
  119. package/templates/gym-fitness/l10n/fi.json +6 -0
  120. package/templates/gym-fitness/l10n/fr.json +6 -0
  121. package/templates/gym-fitness/l10n/he.json +5 -0
  122. package/templates/gym-fitness/l10n/hu.json +6 -0
  123. package/templates/gym-fitness/l10n/id.json +6 -0
  124. package/templates/gym-fitness/l10n/it.json +6 -0
  125. package/templates/gym-fitness/l10n/ja.json +6 -0
  126. package/templates/gym-fitness/l10n/ko.json +6 -0
  127. package/templates/gym-fitness/l10n/lt.json +6 -0
  128. package/templates/gym-fitness/l10n/nl.json +6 -0
  129. package/templates/gym-fitness/l10n/no.json +6 -0
  130. package/templates/gym-fitness/l10n/pl.json +6 -0
  131. package/templates/gym-fitness/l10n/pt.json +6 -0
  132. package/templates/gym-fitness/l10n/ru.json +6 -0
  133. package/templates/gym-fitness/l10n/sv.json +6 -0
  134. package/templates/gym-fitness/l10n/th.json +6 -0
  135. package/templates/gym-fitness/l10n/tr.json +6 -0
  136. package/templates/gym-fitness/l10n/uk.json +6 -0
  137. package/templates/gym-fitness/l10n/vi.json +6 -0
  138. package/templates/gym-fitness/l10n/zh.json +6 -0
  139. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +35 -2
  140. package/templates/nonprofit-cause/l10n/ar.json +6 -0
  141. package/templates/nonprofit-cause/l10n/cs.json +6 -0
  142. package/templates/nonprofit-cause/l10n/da.json +6 -0
  143. package/templates/nonprofit-cause/l10n/de.json +6 -0
  144. package/templates/nonprofit-cause/l10n/el.json +6 -0
  145. package/templates/nonprofit-cause/l10n/en.json +6 -0
  146. package/templates/nonprofit-cause/l10n/es.json +6 -0
  147. package/templates/nonprofit-cause/l10n/fi.json +6 -0
  148. package/templates/nonprofit-cause/l10n/fr.json +6 -0
  149. package/templates/nonprofit-cause/l10n/he.json +5 -0
  150. package/templates/nonprofit-cause/l10n/hu.json +6 -0
  151. package/templates/nonprofit-cause/l10n/id.json +6 -0
  152. package/templates/nonprofit-cause/l10n/it.json +6 -0
  153. package/templates/nonprofit-cause/l10n/ja.json +6 -0
  154. package/templates/nonprofit-cause/l10n/ko.json +6 -0
  155. package/templates/nonprofit-cause/l10n/lt.json +6 -0
  156. package/templates/nonprofit-cause/l10n/nl.json +6 -0
  157. package/templates/nonprofit-cause/l10n/no.json +6 -0
  158. package/templates/nonprofit-cause/l10n/pl.json +6 -0
  159. package/templates/nonprofit-cause/l10n/pt.json +6 -0
  160. package/templates/nonprofit-cause/l10n/ru.json +6 -0
  161. package/templates/nonprofit-cause/l10n/sv.json +6 -0
  162. package/templates/nonprofit-cause/l10n/th.json +6 -0
  163. package/templates/nonprofit-cause/l10n/tr.json +6 -0
  164. package/templates/nonprofit-cause/l10n/uk.json +6 -0
  165. package/templates/nonprofit-cause/l10n/vi.json +6 -0
  166. package/templates/nonprofit-cause/l10n/zh.json +6 -0
  167. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +35 -2
  168. package/templates/podcast-creator/l10n/ar.json +6 -0
  169. package/templates/podcast-creator/l10n/cs.json +6 -0
  170. package/templates/podcast-creator/l10n/da.json +6 -0
  171. package/templates/podcast-creator/l10n/de.json +6 -0
  172. package/templates/podcast-creator/l10n/el.json +6 -0
  173. package/templates/podcast-creator/l10n/en.json +6 -0
  174. package/templates/podcast-creator/l10n/es.json +6 -0
  175. package/templates/podcast-creator/l10n/fi.json +6 -0
  176. package/templates/podcast-creator/l10n/fr.json +6 -0
  177. package/templates/podcast-creator/l10n/he.json +5 -0
  178. package/templates/podcast-creator/l10n/hu.json +6 -0
  179. package/templates/podcast-creator/l10n/id.json +6 -0
  180. package/templates/podcast-creator/l10n/it.json +6 -0
  181. package/templates/podcast-creator/l10n/ja.json +6 -0
  182. package/templates/podcast-creator/l10n/ko.json +6 -0
  183. package/templates/podcast-creator/l10n/lt.json +6 -0
  184. package/templates/podcast-creator/l10n/nl.json +6 -0
  185. package/templates/podcast-creator/l10n/no.json +6 -0
  186. package/templates/podcast-creator/l10n/pl.json +6 -0
  187. package/templates/podcast-creator/l10n/pt.json +6 -0
  188. package/templates/podcast-creator/l10n/ru.json +6 -0
  189. package/templates/podcast-creator/l10n/sv.json +6 -0
  190. package/templates/podcast-creator/l10n/th.json +6 -0
  191. package/templates/podcast-creator/l10n/tr.json +6 -0
  192. package/templates/podcast-creator/l10n/uk.json +6 -0
  193. package/templates/podcast-creator/l10n/vi.json +6 -0
  194. package/templates/podcast-creator/l10n/zh.json +6 -0
  195. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +35 -2
  196. package/templates/portfolio-creative/l10n/ar.json +6 -0
  197. package/templates/portfolio-creative/l10n/cs.json +6 -0
  198. package/templates/portfolio-creative/l10n/da.json +6 -0
  199. package/templates/portfolio-creative/l10n/de.json +6 -0
  200. package/templates/portfolio-creative/l10n/el.json +6 -0
  201. package/templates/portfolio-creative/l10n/en.json +6 -0
  202. package/templates/portfolio-creative/l10n/es.json +6 -0
  203. package/templates/portfolio-creative/l10n/fi.json +6 -0
  204. package/templates/portfolio-creative/l10n/fr.json +6 -0
  205. package/templates/portfolio-creative/l10n/he.json +5 -0
  206. package/templates/portfolio-creative/l10n/hu.json +6 -0
  207. package/templates/portfolio-creative/l10n/id.json +6 -0
  208. package/templates/portfolio-creative/l10n/it.json +6 -0
  209. package/templates/portfolio-creative/l10n/ja.json +6 -0
  210. package/templates/portfolio-creative/l10n/ko.json +6 -0
  211. package/templates/portfolio-creative/l10n/lt.json +6 -0
  212. package/templates/portfolio-creative/l10n/nl.json +6 -0
  213. package/templates/portfolio-creative/l10n/no.json +6 -0
  214. package/templates/portfolio-creative/l10n/pl.json +6 -0
  215. package/templates/portfolio-creative/l10n/pt.json +6 -0
  216. package/templates/portfolio-creative/l10n/ru.json +6 -0
  217. package/templates/portfolio-creative/l10n/sv.json +6 -0
  218. package/templates/portfolio-creative/l10n/th.json +6 -0
  219. package/templates/portfolio-creative/l10n/tr.json +6 -0
  220. package/templates/portfolio-creative/l10n/uk.json +6 -0
  221. package/templates/portfolio-creative/l10n/vi.json +6 -0
  222. package/templates/portfolio-creative/l10n/zh.json +6 -0
  223. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +35 -2
  224. package/templates/professional-services/tier5-src/_shared/relative-time.ts +35 -2
  225. package/templates/restaurant/l10n/ar.json +6 -0
  226. package/templates/restaurant/l10n/cs.json +6 -0
  227. package/templates/restaurant/l10n/da.json +6 -0
  228. package/templates/restaurant/l10n/de.json +6 -0
  229. package/templates/restaurant/l10n/el.json +6 -0
  230. package/templates/restaurant/l10n/en.json +6 -0
  231. package/templates/restaurant/l10n/es.json +6 -0
  232. package/templates/restaurant/l10n/fi.json +6 -0
  233. package/templates/restaurant/l10n/fr.json +6 -0
  234. package/templates/restaurant/l10n/he.json +5 -0
  235. package/templates/restaurant/l10n/hu.json +6 -0
  236. package/templates/restaurant/l10n/id.json +6 -0
  237. package/templates/restaurant/l10n/it.json +6 -0
  238. package/templates/restaurant/l10n/ja.json +6 -0
  239. package/templates/restaurant/l10n/ko.json +6 -0
  240. package/templates/restaurant/l10n/lt.json +6 -0
  241. package/templates/restaurant/l10n/nl.json +6 -0
  242. package/templates/restaurant/l10n/no.json +6 -0
  243. package/templates/restaurant/l10n/pl.json +6 -0
  244. package/templates/restaurant/l10n/pt.json +6 -0
  245. package/templates/restaurant/l10n/ru.json +6 -0
  246. package/templates/restaurant/l10n/sv.json +6 -0
  247. package/templates/restaurant/l10n/th.json +6 -0
  248. package/templates/restaurant/l10n/tr.json +6 -0
  249. package/templates/restaurant/l10n/uk.json +6 -0
  250. package/templates/restaurant/l10n/vi.json +6 -0
  251. package/templates/restaurant/l10n/zh.json +6 -0
  252. package/templates/restaurant/tier5-src/_shared/relative-time.ts +35 -2
  253. package/templates/retail-store/l10n/ar.json +6 -0
  254. package/templates/retail-store/l10n/cs.json +6 -0
  255. package/templates/retail-store/l10n/da.json +6 -0
  256. package/templates/retail-store/l10n/de.json +6 -0
  257. package/templates/retail-store/l10n/el.json +6 -0
  258. package/templates/retail-store/l10n/en.json +6 -0
  259. package/templates/retail-store/l10n/es.json +6 -0
  260. package/templates/retail-store/l10n/fi.json +6 -0
  261. package/templates/retail-store/l10n/fr.json +6 -0
  262. package/templates/retail-store/l10n/he.json +5 -0
  263. package/templates/retail-store/l10n/hu.json +6 -0
  264. package/templates/retail-store/l10n/id.json +6 -0
  265. package/templates/retail-store/l10n/it.json +6 -0
  266. package/templates/retail-store/l10n/ja.json +6 -0
  267. package/templates/retail-store/l10n/ko.json +6 -0
  268. package/templates/retail-store/l10n/lt.json +6 -0
  269. package/templates/retail-store/l10n/nl.json +6 -0
  270. package/templates/retail-store/l10n/no.json +6 -0
  271. package/templates/retail-store/l10n/pl.json +6 -0
  272. package/templates/retail-store/l10n/pt.json +6 -0
  273. package/templates/retail-store/l10n/ru.json +6 -0
  274. package/templates/retail-store/l10n/sv.json +6 -0
  275. package/templates/retail-store/l10n/th.json +6 -0
  276. package/templates/retail-store/l10n/tr.json +6 -0
  277. package/templates/retail-store/l10n/uk.json +6 -0
  278. package/templates/retail-store/l10n/vi.json +6 -0
  279. package/templates/retail-store/l10n/zh.json +6 -0
  280. package/templates/retail-store/tier5-src/_shared/relative-time.ts +35 -2
  281. package/templates/yoga-studio/l10n/ar.json +6 -0
  282. package/templates/yoga-studio/l10n/cs.json +6 -0
  283. package/templates/yoga-studio/l10n/da.json +6 -0
  284. package/templates/yoga-studio/l10n/de.json +6 -0
  285. package/templates/yoga-studio/l10n/el.json +6 -0
  286. package/templates/yoga-studio/l10n/en.json +6 -0
  287. package/templates/yoga-studio/l10n/es.json +6 -0
  288. package/templates/yoga-studio/l10n/fi.json +6 -0
  289. package/templates/yoga-studio/l10n/fr.json +6 -0
  290. package/templates/yoga-studio/l10n/he.json +5 -0
  291. package/templates/yoga-studio/l10n/hu.json +6 -0
  292. package/templates/yoga-studio/l10n/id.json +6 -0
  293. package/templates/yoga-studio/l10n/it.json +6 -0
  294. package/templates/yoga-studio/l10n/ja.json +6 -0
  295. package/templates/yoga-studio/l10n/ko.json +6 -0
  296. package/templates/yoga-studio/l10n/lt.json +6 -0
  297. package/templates/yoga-studio/l10n/nl.json +6 -0
  298. package/templates/yoga-studio/l10n/no.json +6 -0
  299. package/templates/yoga-studio/l10n/pl.json +6 -0
  300. package/templates/yoga-studio/l10n/pt.json +6 -0
  301. package/templates/yoga-studio/l10n/ru.json +6 -0
  302. package/templates/yoga-studio/l10n/sv.json +6 -0
  303. package/templates/yoga-studio/l10n/th.json +6 -0
  304. package/templates/yoga-studio/l10n/tr.json +6 -0
  305. package/templates/yoga-studio/l10n/uk.json +6 -0
  306. package/templates/yoga-studio/l10n/vi.json +6 -0
  307. package/templates/yoga-studio/l10n/zh.json +6 -0
  308. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +35 -2
@@ -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…",
@@ -1861,6 +1861,12 @@
1861
1861
  "key": "collection.filterTitle",
1862
1862
  "keyOrigin": "string-table"
1863
1863
  },
1864
+ "h_da24830f1f70": {
1865
+ "source": "Yesterday",
1866
+ "kind": "Worker.copy",
1867
+ "translation": "",
1868
+ "key": "businessChat.yesterday"
1869
+ },
1864
1870
  "h_da57050ad0b6": {
1865
1871
  "source": "Previous step",
1866
1872
  "kind": "Button.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
  }