@wix/himalaya-cli 0.1781.0 → 0.1783.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 (388) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +8 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +6 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +6 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/extensions.d.ts +68 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +12 -5
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +3 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +126 -18
  9. package/dist/browser-plane/assets.json +5 -5
  10. package/dist/browser-plane/preview-deferred/{d71e5b22a5ff1965fd887118ee8b2a74497b48a88f4459c9800569457e1fb547.bin → ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541.bin} +1 -1
  11. package/dist/browser-plane/sw.js +6 -6
  12. package/dist/cli.mjs +85 -49
  13. package/dist/preview-assets.generated.bin +0 -0
  14. package/guides/component-reference.json +1 -1
  15. package/guides/component-reference.md +4 -0
  16. package/guides/release-notes.md +31 -0
  17. package/guides/sdk-reference.json +62 -1
  18. package/guides/wix-business-context.md +1 -1
  19. package/package.json +2 -2
  20. package/templates/beauty-salon/config.ts +1 -1
  21. package/templates/beauty-salon/dev/index.ts +2684 -916
  22. package/templates/beauty-salon/l10n/ar.json +95 -36
  23. package/templates/beauty-salon/l10n/cs.json +95 -36
  24. package/templates/beauty-salon/l10n/da.json +95 -36
  25. package/templates/beauty-salon/l10n/de.json +95 -36
  26. package/templates/beauty-salon/l10n/el.json +95 -36
  27. package/templates/beauty-salon/l10n/en.json +71 -15
  28. package/templates/beauty-salon/l10n/es.json +95 -36
  29. package/templates/beauty-salon/l10n/fi.json +95 -36
  30. package/templates/beauty-salon/l10n/fr.json +95 -36
  31. package/templates/beauty-salon/l10n/he.json +78 -29
  32. package/templates/beauty-salon/l10n/hu.json +95 -36
  33. package/templates/beauty-salon/l10n/id.json +95 -36
  34. package/templates/beauty-salon/l10n/it.json +95 -36
  35. package/templates/beauty-salon/l10n/ja.json +95 -36
  36. package/templates/beauty-salon/l10n/ko.json +95 -36
  37. package/templates/beauty-salon/l10n/lt.json +95 -36
  38. package/templates/beauty-salon/l10n/nl.json +95 -36
  39. package/templates/beauty-salon/l10n/no.json +95 -36
  40. package/templates/beauty-salon/l10n/pl.json +95 -36
  41. package/templates/beauty-salon/l10n/pt.json +95 -36
  42. package/templates/beauty-salon/l10n/ru.json +95 -36
  43. package/templates/beauty-salon/l10n/sv.json +95 -36
  44. package/templates/beauty-salon/l10n/th.json +95 -36
  45. package/templates/beauty-salon/l10n/tr.json +95 -36
  46. package/templates/beauty-salon/l10n/uk.json +95 -36
  47. package/templates/beauty-salon/l10n/vi.json +95 -36
  48. package/templates/beauty-salon/l10n/zh.json +95 -36
  49. package/templates/beauty-salon/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  50. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +21 -0
  51. package/templates/beauty-salon/tier5-src/himi-blog-feed/index.ts +9 -0
  52. package/templates/beauty-salon/tier5-src/himi-blog-post/index.ts +501 -50
  53. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +98 -6
  54. package/templates/branded-lite/config.ts +1 -1
  55. package/templates/branded-lite/dev/index.ts +2686 -930
  56. package/templates/branded-lite/l10n/ar.json +80 -41
  57. package/templates/branded-lite/l10n/cs.json +80 -41
  58. package/templates/branded-lite/l10n/da.json +80 -41
  59. package/templates/branded-lite/l10n/de.json +80 -41
  60. package/templates/branded-lite/l10n/el.json +80 -41
  61. package/templates/branded-lite/l10n/en.json +71 -20
  62. package/templates/branded-lite/l10n/es.json +80 -41
  63. package/templates/branded-lite/l10n/fi.json +80 -41
  64. package/templates/branded-lite/l10n/fr.json +80 -41
  65. package/templates/branded-lite/l10n/he.json +66 -33
  66. package/templates/branded-lite/l10n/hu.json +80 -41
  67. package/templates/branded-lite/l10n/id.json +80 -41
  68. package/templates/branded-lite/l10n/it.json +80 -41
  69. package/templates/branded-lite/l10n/ja.json +80 -41
  70. package/templates/branded-lite/l10n/ko.json +80 -41
  71. package/templates/branded-lite/l10n/lt.json +80 -41
  72. package/templates/branded-lite/l10n/nl.json +80 -41
  73. package/templates/branded-lite/l10n/no.json +80 -41
  74. package/templates/branded-lite/l10n/pl.json +80 -41
  75. package/templates/branded-lite/l10n/pt.json +80 -41
  76. package/templates/branded-lite/l10n/ru.json +80 -41
  77. package/templates/branded-lite/l10n/sv.json +80 -41
  78. package/templates/branded-lite/l10n/th.json +80 -41
  79. package/templates/branded-lite/l10n/tr.json +80 -41
  80. package/templates/branded-lite/l10n/uk.json +80 -41
  81. package/templates/branded-lite/l10n/vi.json +80 -41
  82. package/templates/branded-lite/l10n/zh.json +80 -41
  83. package/templates/branded-lite/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  84. package/templates/branded-lite/tier5-src/himi-blog-feed/index.ts +9 -0
  85. package/templates/branded-lite/tier5-src/himi-blog-post/index.ts +501 -50
  86. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +98 -6
  87. package/templates/branded-lite/tier5-src/himi-branded-lite-header-badges/index.ts +39 -7
  88. package/templates/community-club/config.ts +1 -1
  89. package/templates/community-club/dev/index.ts +2742 -974
  90. package/templates/community-club/l10n/ar.json +95 -36
  91. package/templates/community-club/l10n/cs.json +95 -36
  92. package/templates/community-club/l10n/da.json +95 -36
  93. package/templates/community-club/l10n/de.json +95 -36
  94. package/templates/community-club/l10n/el.json +95 -36
  95. package/templates/community-club/l10n/en.json +71 -15
  96. package/templates/community-club/l10n/es.json +95 -36
  97. package/templates/community-club/l10n/fi.json +95 -36
  98. package/templates/community-club/l10n/fr.json +95 -36
  99. package/templates/community-club/l10n/he.json +78 -29
  100. package/templates/community-club/l10n/hu.json +95 -36
  101. package/templates/community-club/l10n/id.json +95 -36
  102. package/templates/community-club/l10n/it.json +95 -36
  103. package/templates/community-club/l10n/ja.json +95 -36
  104. package/templates/community-club/l10n/ko.json +95 -36
  105. package/templates/community-club/l10n/lt.json +95 -36
  106. package/templates/community-club/l10n/nl.json +95 -36
  107. package/templates/community-club/l10n/no.json +95 -36
  108. package/templates/community-club/l10n/pl.json +95 -36
  109. package/templates/community-club/l10n/pt.json +95 -36
  110. package/templates/community-club/l10n/ru.json +95 -36
  111. package/templates/community-club/l10n/sv.json +95 -36
  112. package/templates/community-club/l10n/th.json +95 -36
  113. package/templates/community-club/l10n/tr.json +95 -36
  114. package/templates/community-club/l10n/uk.json +95 -36
  115. package/templates/community-club/l10n/vi.json +95 -36
  116. package/templates/community-club/l10n/zh.json +95 -36
  117. package/templates/community-club/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  118. package/templates/community-club/tier5-src/_shared/relative-time.ts +21 -0
  119. package/templates/community-club/tier5-src/himi-blog-feed/index.ts +9 -0
  120. package/templates/community-club/tier5-src/himi-blog-post/index.ts +501 -50
  121. package/templates/events-meetups/config.ts +1 -1
  122. package/templates/events-meetups/dev/index.ts +2705 -937
  123. package/templates/events-meetups/l10n/ar.json +95 -36
  124. package/templates/events-meetups/l10n/cs.json +95 -36
  125. package/templates/events-meetups/l10n/da.json +95 -36
  126. package/templates/events-meetups/l10n/de.json +95 -36
  127. package/templates/events-meetups/l10n/el.json +95 -36
  128. package/templates/events-meetups/l10n/en.json +71 -15
  129. package/templates/events-meetups/l10n/es.json +95 -36
  130. package/templates/events-meetups/l10n/fi.json +95 -36
  131. package/templates/events-meetups/l10n/fr.json +95 -36
  132. package/templates/events-meetups/l10n/he.json +78 -29
  133. package/templates/events-meetups/l10n/hu.json +95 -36
  134. package/templates/events-meetups/l10n/id.json +95 -36
  135. package/templates/events-meetups/l10n/it.json +95 -36
  136. package/templates/events-meetups/l10n/ja.json +95 -36
  137. package/templates/events-meetups/l10n/ko.json +95 -36
  138. package/templates/events-meetups/l10n/lt.json +95 -36
  139. package/templates/events-meetups/l10n/nl.json +95 -36
  140. package/templates/events-meetups/l10n/no.json +95 -36
  141. package/templates/events-meetups/l10n/pl.json +95 -36
  142. package/templates/events-meetups/l10n/pt.json +95 -36
  143. package/templates/events-meetups/l10n/ru.json +95 -36
  144. package/templates/events-meetups/l10n/sv.json +95 -36
  145. package/templates/events-meetups/l10n/th.json +95 -36
  146. package/templates/events-meetups/l10n/tr.json +95 -36
  147. package/templates/events-meetups/l10n/uk.json +95 -36
  148. package/templates/events-meetups/l10n/vi.json +95 -36
  149. package/templates/events-meetups/l10n/zh.json +95 -36
  150. package/templates/events-meetups/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  151. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +21 -0
  152. package/templates/events-meetups/tier5-src/himi-blog-feed/index.ts +9 -0
  153. package/templates/events-meetups/tier5-src/himi-blog-post/index.ts +501 -50
  154. package/templates/gym-fitness/config.ts +1 -1
  155. package/templates/gym-fitness/dev/index.ts +2621 -853
  156. package/templates/gym-fitness/l10n/ar.json +95 -36
  157. package/templates/gym-fitness/l10n/cs.json +95 -36
  158. package/templates/gym-fitness/l10n/da.json +95 -36
  159. package/templates/gym-fitness/l10n/de.json +95 -36
  160. package/templates/gym-fitness/l10n/el.json +95 -36
  161. package/templates/gym-fitness/l10n/en.json +71 -15
  162. package/templates/gym-fitness/l10n/es.json +95 -36
  163. package/templates/gym-fitness/l10n/fi.json +95 -36
  164. package/templates/gym-fitness/l10n/fr.json +95 -36
  165. package/templates/gym-fitness/l10n/he.json +78 -29
  166. package/templates/gym-fitness/l10n/hu.json +95 -36
  167. package/templates/gym-fitness/l10n/id.json +95 -36
  168. package/templates/gym-fitness/l10n/it.json +95 -36
  169. package/templates/gym-fitness/l10n/ja.json +95 -36
  170. package/templates/gym-fitness/l10n/ko.json +95 -36
  171. package/templates/gym-fitness/l10n/lt.json +95 -36
  172. package/templates/gym-fitness/l10n/nl.json +95 -36
  173. package/templates/gym-fitness/l10n/no.json +95 -36
  174. package/templates/gym-fitness/l10n/pl.json +95 -36
  175. package/templates/gym-fitness/l10n/pt.json +95 -36
  176. package/templates/gym-fitness/l10n/ru.json +95 -36
  177. package/templates/gym-fitness/l10n/sv.json +95 -36
  178. package/templates/gym-fitness/l10n/th.json +95 -36
  179. package/templates/gym-fitness/l10n/tr.json +95 -36
  180. package/templates/gym-fitness/l10n/uk.json +95 -36
  181. package/templates/gym-fitness/l10n/vi.json +95 -36
  182. package/templates/gym-fitness/l10n/zh.json +95 -36
  183. package/templates/gym-fitness/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  184. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +21 -0
  185. package/templates/gym-fitness/tier5-src/himi-blog-feed/index.ts +9 -0
  186. package/templates/gym-fitness/tier5-src/himi-blog-post/index.ts +501 -50
  187. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +98 -6
  188. package/templates/nonprofit-cause/config.ts +1 -1
  189. package/templates/nonprofit-cause/dev/index.ts +2704 -936
  190. package/templates/nonprofit-cause/l10n/ar.json +95 -36
  191. package/templates/nonprofit-cause/l10n/cs.json +95 -36
  192. package/templates/nonprofit-cause/l10n/da.json +95 -36
  193. package/templates/nonprofit-cause/l10n/de.json +95 -36
  194. package/templates/nonprofit-cause/l10n/el.json +95 -36
  195. package/templates/nonprofit-cause/l10n/en.json +71 -15
  196. package/templates/nonprofit-cause/l10n/es.json +95 -36
  197. package/templates/nonprofit-cause/l10n/fi.json +95 -36
  198. package/templates/nonprofit-cause/l10n/fr.json +95 -36
  199. package/templates/nonprofit-cause/l10n/he.json +78 -29
  200. package/templates/nonprofit-cause/l10n/hu.json +95 -36
  201. package/templates/nonprofit-cause/l10n/id.json +95 -36
  202. package/templates/nonprofit-cause/l10n/it.json +95 -36
  203. package/templates/nonprofit-cause/l10n/ja.json +95 -36
  204. package/templates/nonprofit-cause/l10n/ko.json +95 -36
  205. package/templates/nonprofit-cause/l10n/lt.json +95 -36
  206. package/templates/nonprofit-cause/l10n/nl.json +95 -36
  207. package/templates/nonprofit-cause/l10n/no.json +95 -36
  208. package/templates/nonprofit-cause/l10n/pl.json +95 -36
  209. package/templates/nonprofit-cause/l10n/pt.json +95 -36
  210. package/templates/nonprofit-cause/l10n/ru.json +95 -36
  211. package/templates/nonprofit-cause/l10n/sv.json +95 -36
  212. package/templates/nonprofit-cause/l10n/th.json +95 -36
  213. package/templates/nonprofit-cause/l10n/tr.json +95 -36
  214. package/templates/nonprofit-cause/l10n/uk.json +95 -36
  215. package/templates/nonprofit-cause/l10n/vi.json +95 -36
  216. package/templates/nonprofit-cause/l10n/zh.json +95 -36
  217. package/templates/nonprofit-cause/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  218. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +21 -0
  219. package/templates/nonprofit-cause/tier5-src/himi-blog-feed/index.ts +9 -0
  220. package/templates/nonprofit-cause/tier5-src/himi-blog-post/index.ts +501 -50
  221. package/templates/podcast-creator/config.ts +1 -1
  222. package/templates/podcast-creator/dev/index.ts +2704 -936
  223. package/templates/podcast-creator/l10n/ar.json +95 -36
  224. package/templates/podcast-creator/l10n/cs.json +95 -36
  225. package/templates/podcast-creator/l10n/da.json +95 -36
  226. package/templates/podcast-creator/l10n/de.json +95 -36
  227. package/templates/podcast-creator/l10n/el.json +95 -36
  228. package/templates/podcast-creator/l10n/en.json +71 -15
  229. package/templates/podcast-creator/l10n/es.json +95 -36
  230. package/templates/podcast-creator/l10n/fi.json +95 -36
  231. package/templates/podcast-creator/l10n/fr.json +95 -36
  232. package/templates/podcast-creator/l10n/he.json +78 -29
  233. package/templates/podcast-creator/l10n/hu.json +95 -36
  234. package/templates/podcast-creator/l10n/id.json +95 -36
  235. package/templates/podcast-creator/l10n/it.json +95 -36
  236. package/templates/podcast-creator/l10n/ja.json +95 -36
  237. package/templates/podcast-creator/l10n/ko.json +95 -36
  238. package/templates/podcast-creator/l10n/lt.json +95 -36
  239. package/templates/podcast-creator/l10n/nl.json +95 -36
  240. package/templates/podcast-creator/l10n/no.json +95 -36
  241. package/templates/podcast-creator/l10n/pl.json +95 -36
  242. package/templates/podcast-creator/l10n/pt.json +95 -36
  243. package/templates/podcast-creator/l10n/ru.json +95 -36
  244. package/templates/podcast-creator/l10n/sv.json +95 -36
  245. package/templates/podcast-creator/l10n/th.json +95 -36
  246. package/templates/podcast-creator/l10n/tr.json +95 -36
  247. package/templates/podcast-creator/l10n/uk.json +95 -36
  248. package/templates/podcast-creator/l10n/vi.json +95 -36
  249. package/templates/podcast-creator/l10n/zh.json +95 -36
  250. package/templates/podcast-creator/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  251. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +21 -0
  252. package/templates/podcast-creator/tier5-src/himi-blog-feed/index.ts +9 -0
  253. package/templates/podcast-creator/tier5-src/himi-blog-post/index.ts +501 -50
  254. package/templates/portfolio-creative/config.ts +1 -1
  255. package/templates/portfolio-creative/dev/index.ts +2499 -731
  256. package/templates/portfolio-creative/l10n/ar.json +95 -36
  257. package/templates/portfolio-creative/l10n/cs.json +95 -36
  258. package/templates/portfolio-creative/l10n/da.json +95 -36
  259. package/templates/portfolio-creative/l10n/de.json +95 -36
  260. package/templates/portfolio-creative/l10n/el.json +95 -36
  261. package/templates/portfolio-creative/l10n/en.json +71 -15
  262. package/templates/portfolio-creative/l10n/es.json +95 -36
  263. package/templates/portfolio-creative/l10n/fi.json +95 -36
  264. package/templates/portfolio-creative/l10n/fr.json +95 -36
  265. package/templates/portfolio-creative/l10n/he.json +78 -29
  266. package/templates/portfolio-creative/l10n/hu.json +95 -36
  267. package/templates/portfolio-creative/l10n/id.json +95 -36
  268. package/templates/portfolio-creative/l10n/it.json +95 -36
  269. package/templates/portfolio-creative/l10n/ja.json +95 -36
  270. package/templates/portfolio-creative/l10n/ko.json +95 -36
  271. package/templates/portfolio-creative/l10n/lt.json +95 -36
  272. package/templates/portfolio-creative/l10n/nl.json +95 -36
  273. package/templates/portfolio-creative/l10n/no.json +95 -36
  274. package/templates/portfolio-creative/l10n/pl.json +95 -36
  275. package/templates/portfolio-creative/l10n/pt.json +95 -36
  276. package/templates/portfolio-creative/l10n/ru.json +95 -36
  277. package/templates/portfolio-creative/l10n/sv.json +95 -36
  278. package/templates/portfolio-creative/l10n/th.json +95 -36
  279. package/templates/portfolio-creative/l10n/tr.json +95 -36
  280. package/templates/portfolio-creative/l10n/uk.json +95 -36
  281. package/templates/portfolio-creative/l10n/vi.json +95 -36
  282. package/templates/portfolio-creative/l10n/zh.json +95 -36
  283. package/templates/portfolio-creative/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  284. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +21 -0
  285. package/templates/portfolio-creative/tier5-src/himi-blog-feed/index.ts +9 -0
  286. package/templates/portfolio-creative/tier5-src/himi-blog-post/index.ts +501 -50
  287. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +98 -6
  288. package/templates/restaurant/config.ts +1 -1
  289. package/templates/restaurant/dev/index.ts +2528 -760
  290. package/templates/restaurant/l10n/ar.json +95 -36
  291. package/templates/restaurant/l10n/cs.json +95 -36
  292. package/templates/restaurant/l10n/da.json +95 -36
  293. package/templates/restaurant/l10n/de.json +95 -36
  294. package/templates/restaurant/l10n/el.json +95 -36
  295. package/templates/restaurant/l10n/en.json +71 -15
  296. package/templates/restaurant/l10n/es.json +95 -36
  297. package/templates/restaurant/l10n/fi.json +95 -36
  298. package/templates/restaurant/l10n/fr.json +95 -36
  299. package/templates/restaurant/l10n/he.json +78 -29
  300. package/templates/restaurant/l10n/hu.json +95 -36
  301. package/templates/restaurant/l10n/id.json +95 -36
  302. package/templates/restaurant/l10n/it.json +95 -36
  303. package/templates/restaurant/l10n/ja.json +95 -36
  304. package/templates/restaurant/l10n/ko.json +95 -36
  305. package/templates/restaurant/l10n/lt.json +95 -36
  306. package/templates/restaurant/l10n/nl.json +95 -36
  307. package/templates/restaurant/l10n/no.json +95 -36
  308. package/templates/restaurant/l10n/pl.json +95 -36
  309. package/templates/restaurant/l10n/pt.json +95 -36
  310. package/templates/restaurant/l10n/ru.json +95 -36
  311. package/templates/restaurant/l10n/sv.json +95 -36
  312. package/templates/restaurant/l10n/th.json +95 -36
  313. package/templates/restaurant/l10n/tr.json +95 -36
  314. package/templates/restaurant/l10n/uk.json +95 -36
  315. package/templates/restaurant/l10n/vi.json +95 -36
  316. package/templates/restaurant/l10n/zh.json +95 -36
  317. package/templates/restaurant/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  318. package/templates/restaurant/tier5-src/_shared/relative-time.ts +21 -0
  319. package/templates/restaurant/tier5-src/himi-blog-feed/index.ts +9 -0
  320. package/templates/restaurant/tier5-src/himi-blog-post/index.ts +501 -50
  321. package/templates/retail-store/config.ts +1 -1
  322. package/templates/retail-store/dev/index.ts +2417 -661
  323. package/templates/retail-store/l10n/ar.json +95 -41
  324. package/templates/retail-store/l10n/cs.json +95 -41
  325. package/templates/retail-store/l10n/da.json +95 -41
  326. package/templates/retail-store/l10n/de.json +95 -41
  327. package/templates/retail-store/l10n/el.json +95 -41
  328. package/templates/retail-store/l10n/en.json +71 -20
  329. package/templates/retail-store/l10n/es.json +95 -41
  330. package/templates/retail-store/l10n/fi.json +95 -41
  331. package/templates/retail-store/l10n/fr.json +95 -41
  332. package/templates/retail-store/l10n/he.json +78 -33
  333. package/templates/retail-store/l10n/hu.json +95 -41
  334. package/templates/retail-store/l10n/id.json +95 -41
  335. package/templates/retail-store/l10n/it.json +95 -41
  336. package/templates/retail-store/l10n/ja.json +95 -41
  337. package/templates/retail-store/l10n/ko.json +95 -41
  338. package/templates/retail-store/l10n/lt.json +95 -41
  339. package/templates/retail-store/l10n/nl.json +95 -41
  340. package/templates/retail-store/l10n/no.json +95 -41
  341. package/templates/retail-store/l10n/pl.json +95 -41
  342. package/templates/retail-store/l10n/pt.json +95 -41
  343. package/templates/retail-store/l10n/ru.json +95 -41
  344. package/templates/retail-store/l10n/sv.json +95 -41
  345. package/templates/retail-store/l10n/th.json +95 -41
  346. package/templates/retail-store/l10n/tr.json +95 -41
  347. package/templates/retail-store/l10n/uk.json +95 -41
  348. package/templates/retail-store/l10n/vi.json +95 -41
  349. package/templates/retail-store/l10n/zh.json +95 -41
  350. package/templates/retail-store/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  351. package/templates/retail-store/tier5-src/_shared/relative-time.ts +21 -0
  352. package/templates/retail-store/tier5-src/himi-blog-feed/index.ts +9 -0
  353. package/templates/retail-store/tier5-src/himi-blog-post/index.ts +501 -50
  354. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +98 -6
  355. package/templates/wholesale-store/tier5-src/himi-branded-lite-cart/index.ts +98 -6
  356. package/templates/yoga-studio/config.ts +1 -1
  357. package/templates/yoga-studio/dev/index.ts +2619 -851
  358. package/templates/yoga-studio/l10n/ar.json +95 -36
  359. package/templates/yoga-studio/l10n/cs.json +95 -36
  360. package/templates/yoga-studio/l10n/da.json +95 -36
  361. package/templates/yoga-studio/l10n/de.json +95 -36
  362. package/templates/yoga-studio/l10n/el.json +95 -36
  363. package/templates/yoga-studio/l10n/en.json +71 -15
  364. package/templates/yoga-studio/l10n/es.json +95 -36
  365. package/templates/yoga-studio/l10n/fi.json +95 -36
  366. package/templates/yoga-studio/l10n/fr.json +95 -36
  367. package/templates/yoga-studio/l10n/he.json +78 -29
  368. package/templates/yoga-studio/l10n/hu.json +95 -36
  369. package/templates/yoga-studio/l10n/id.json +95 -36
  370. package/templates/yoga-studio/l10n/it.json +95 -36
  371. package/templates/yoga-studio/l10n/ja.json +95 -36
  372. package/templates/yoga-studio/l10n/ko.json +95 -36
  373. package/templates/yoga-studio/l10n/lt.json +95 -36
  374. package/templates/yoga-studio/l10n/nl.json +95 -36
  375. package/templates/yoga-studio/l10n/no.json +95 -36
  376. package/templates/yoga-studio/l10n/pl.json +95 -36
  377. package/templates/yoga-studio/l10n/pt.json +95 -36
  378. package/templates/yoga-studio/l10n/ru.json +95 -36
  379. package/templates/yoga-studio/l10n/sv.json +95 -36
  380. package/templates/yoga-studio/l10n/th.json +95 -36
  381. package/templates/yoga-studio/l10n/tr.json +95 -36
  382. package/templates/yoga-studio/l10n/uk.json +95 -36
  383. package/templates/yoga-studio/l10n/vi.json +95 -36
  384. package/templates/yoga-studio/l10n/zh.json +95 -36
  385. package/templates/yoga-studio/tier5-src/_shared/himi-blog-post-row.ts +5 -1
  386. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +21 -0
  387. package/templates/yoga-studio/tier5-src/himi-blog-feed/index.ts +9 -0
  388. package/templates/yoga-studio/tier5-src/himi-blog-post/index.ts +501 -50
@@ -1084,6 +1084,9 @@ export declare function bottomSheet(props: {
1084
1084
  /** Nano parity (#6017) — `"none"` draws no dim behind the sheet while it stays modal (the
1085
1085
  * scrim still blocks touches and dismisses on tap). Default `"dim"`. */
1086
1086
  backdrop?: "dim" | "none";
1087
+ /** A sticky footer below the scrolling `content`: pinned to the sheet's bottom edge and above the
1088
+ * software keyboard (a comment composer). Modal bottom and side sheets only. */
1089
+ footer?: Component;
1087
1090
  }, opts?: {
1088
1091
  id?: string;
1089
1092
  }): Component;
@@ -1585,6 +1585,10 @@ export interface BottomSheetProps {
1585
1585
  /** "dim" (default) | "none": no dim behind a sheet that stays modal
1586
1586
  * (the scrim still blocks and dismisses). `modal: false` drops modality too. */
1587
1587
  backdrop?: "dim" | "none";
1588
+ /** A sticky footer drawn BELOW the scrolling `content`: it never scrolls with it, stays pinned
1589
+ * to the sheet's bottom edge and rides above the software keyboard (a comment composer). Modal
1590
+ * bottom and side sheets only — a footer on a `modal: false` sheet is a validation error. */
1591
+ footer?: Component;
1588
1592
  }
1589
1593
  export interface MenuItem {
1590
1594
  id: string;
@@ -3418,6 +3422,10 @@ export interface TopBarAction {
3418
3422
  /** "screen" opts into screen-worker visibility. Unset/unknown retains navigation ownership.
3419
3423
  * App-level topBarDefault actions always retain navigation ownership when inherited. */
3420
3424
  hiddenPathScope?: string;
3425
+ /** RFC 0070 §1.2 — fail-closed `hiddenPath`, as on `NavTabItem`: hidden until the nav worker
3426
+ * resolves the path to a scalar, and hidden if it never does. Older runtimes ignore it and
3427
+ * fail open. */
3428
+ hiddenUntilResolved?: boolean;
3421
3429
  }
3422
3430
  /** Splash layout discriminator. Single-line string-literal union (house style,
3423
3431
  * like `NavKind`); unknown values coalesce to "centered" in the shell. */
@@ -470,7 +470,12 @@ export interface SiteShellCheckOptions {
470
470
  /** Throws with a legible message on a site description no shell can build from. */
471
471
  export declare function assertSiteShellConfig(site: SiteShellConfig, opts?: SiteShellCheckOptions): void;
472
472
  /** A rewriter for one contract's site: rewrites every dead tap in a descriptor, in place on a copy. */
473
- export declare function siteShellLinks(site: SiteShellConfig): (descriptor: ScreenDescriptor) => ScreenDescriptor;
473
+ export interface SiteShellLinkOptions {
474
+ /** The shell serves the native MEMBER cart (`himi_cart`, RFC 0079 §10 amendment 2026-11-16b): a tap into
475
+ * it, and an order's Reorder that fills it, are kept rather than removed. */
476
+ nativeCart?: boolean;
477
+ }
478
+ export declare function siteShellLinks(site: SiteShellConfig, options?: SiteShellLinkOptions): (descriptor: ScreenDescriptor) => ScreenDescriptor;
474
479
  /**
475
480
  * Where a tapped Wix member notification opens in a site shell: on the customer's own site. Wix Ping
476
481
  * delivers Wix MOBILE links (`wix:/my-account/<msid>/stores/orders/<id>`, `https://m-<msid>.branded.wix.app/…`),
@@ -798,6 +798,9 @@ export declare const screenDescriptorSchema: {
798
798
  readonly hiddenPathScope: {
799
799
  readonly type: "string";
800
800
  };
801
+ readonly hiddenUntilResolved: {
802
+ readonly type: "boolean";
803
+ };
801
804
  };
802
805
  };
803
806
  readonly navBadge: {
@@ -2377,6 +2380,9 @@ export declare const widgetSnapshotSchema: {
2377
2380
  readonly hiddenPathScope: {
2378
2381
  readonly type: "string";
2379
2382
  };
2383
+ readonly hiddenUntilResolved: {
2384
+ readonly type: "boolean";
2385
+ };
2380
2386
  };
2381
2387
  };
2382
2388
  readonly navBadge: {
@@ -1,7 +1,11 @@
1
1
  export declare const BLOG_COMMENTS_APP_ID = "14bcded7-0066-7c35-14d7-466cb3f09103";
2
2
  export type WixBlogCommentRow = {
3
3
  id: string;
4
+ /** The name the wire object carries, or "" — the Comments API names most authors by id only
5
+ * (`author.memberId`), so a caller resolves the public name from `authorMemberId`. */
4
6
  authorName: string;
7
+ /** The author's member id (`author.memberId`); absent for a visitor or an id-less author. */
8
+ authorMemberId?: string;
5
9
  /** The comment's plain text (every text run, space-joined). */
6
10
  text: string;
7
11
  createdDate: string;
@@ -17,6 +21,29 @@ export type WixBlogCommentRow = {
17
21
  * ingested spec calls it by itself — so this is a signal to show "N more replies" rather
18
22
  * than silently truncating, not something a caller can page past yet. */
19
23
  hasMoreReplies?: boolean;
24
+ /** `reactionSummary.total` — absent when the site returned no reaction summary (then the
25
+ * site does not take reactions on this comment, and a Like control should not show). */
26
+ reactionTotal?: number;
27
+ /** `replyCount`, when the response carried one. */
28
+ replyCount?: number;
29
+ };
30
+ /** The comment text as Ricos: one PARAGRAPH per line, so a multi-line comment keeps its lines
31
+ * (a single TEXT node with "\n" in it showed only the first line on the site and in the app). */
32
+ export declare const ricosText: (text: string) => {
33
+ nodes: {
34
+ type: string;
35
+ id: string;
36
+ nodes: {
37
+ type: string;
38
+ id: string;
39
+ textData: {
40
+ text: string;
41
+ };
42
+ }[];
43
+ }[];
44
+ metadata: {
45
+ version: number;
46
+ };
20
47
  };
21
48
  type BlogCommentLike = {
22
49
  id?: string;
@@ -33,6 +60,47 @@ export declare function blogCommentRow(comment: BlogCommentLike | undefined): Wi
33
60
  export declare function createBlogComment(postId: string, text: string): Promise<WixBlogCommentRow>;
34
61
  /** First Comments page for Blog v3 `post.internalId`, not its navigation UUID. */
35
62
  export declare function listBlogComments(postId: string): Promise<WixBlogCommentRow[]>;
63
+ /** The reaction code a like is on Wix Comments — the code the Wix Blog site uses for a comment
64
+ * like, and the one the Comments API docs react with. */
65
+ export declare const COMMENT_LIKE_CODE = ":like:";
66
+ export interface WixBlogCommentPage {
67
+ /** Top-level comments newest first; each one's replies follow it, oldest reply first, tagged
68
+ * with `parentCommentId`. */
69
+ comments: WixBlogCommentRow[];
70
+ /** The cursor of the next page of top-level comments ("" when there is none). */
71
+ nextCursor: string;
72
+ }
73
+ export interface WixBlogCommentPageOptions {
74
+ cursor?: string;
75
+ /** Top-level comments per page. */
76
+ limit?: number;
77
+ /** Replies included under each comment. */
78
+ repliesLimit?: number;
79
+ }
80
+ /** One page of a blog post's comments, NEWEST first, with each comment's replies —
81
+ * GET /comments/v1/comments/list-by-resource with `commentSort.order=NEWEST_FIRST`,
82
+ * `replySort.order=OLDEST_FIRST` and `cursorPaging` (verified live on the demo site,
83
+ * 2026-11-17: the cursor pages the rest newest first). `postId` is Blog v3 `post.internalId`.
84
+ * Query-string params only, hand-built: see `listBlogComments` for why. An empty `comments`
85
+ * with no cursor is a post with no comments; a page without a comment list throws.
86
+ *
87
+ * @scope visitor — readable with a site visitor token (verified live 2026-11-17). */
88
+ export declare function listBlogCommentPage(postId: string, opts?: WixBlogCommentPageOptions): Promise<WixBlogCommentPage>;
89
+ /** Which of `commentIds` the current identity liked — POST /comments/v1/bulk/comments/reactions/get
90
+ * (`hasReacted` per reaction code). At most 100 ids per call; the request fails as a whole when
91
+ * any id is not in this post's context, so pass only ids read from it.
92
+ *
93
+ * @scope visitor — a visitor gets an empty set; a signed-in member gets their own likes. */
94
+ export declare function likedBlogComments(postId: string, commentIds: readonly string[]): Promise<Set<string>>;
95
+ /** Like (`true`) or unlike a comment as the current identity (reaction code `:like:`).
96
+ *
97
+ * @scope member — the site refuses a visitor's reaction. */
98
+ export declare function setBlogCommentLike(commentId: string, like: boolean): Promise<void>;
99
+ /** A comment, or a reply to `parentCommentId`, on Blog v3 `post.internalId`. One level only:
100
+ * a reply to a reply goes to the same parent.
101
+ *
102
+ * @scope member — a site that does not allow visitor comments refuses a visitor (HTTP 403). */
103
+ export declare function postBlogComment(postId: string, text: string, parentCommentId?: string): Promise<WixBlogCommentRow>;
36
104
  /** The appId Wix Groups registers as its comments provider. Same value as
37
105
  * GROUPS_APP_ID/GROUPS_APP_DEF_ID used elsewhere in this repo (social-feed's
38
106
  * reactions/create-post calls) — Groups is one of the apps where the comments
@@ -9408,7 +9408,9 @@ var screenDescriptorSchema = {
9408
9408
  hiddenPath: { type: "string" },
9409
9409
  labelPath: { type: "string" },
9410
9410
  iconPath: { type: "string" },
9411
- hiddenPathScope: { type: "string" }
9411
+ hiddenPathScope: { type: "string" },
9412
+ // Hidden until hiddenPath first resolves (fail closed): the Brandy cart icon pair.
9413
+ hiddenUntilResolved: { type: "boolean" }
9412
9414
  }
9413
9415
  },
9414
9416
  navBadge: {
@@ -13165,7 +13167,7 @@ var ICON_CATALOG = {
13165
13167
  "style": "filled",
13166
13168
  "ios": {
13167
13169
  "sf": "ellipsis.vertical",
13168
- "match": "exact"
13170
+ "match": "none"
13169
13171
  },
13170
13172
  "android": {
13171
13173
  "material": "MoreVert",
@@ -16063,6 +16065,7 @@ var SITE_STAND_INS = {
16063
16065
  };
16064
16066
  var ALWAYS_HIDDEN_TARGETS = ["himi_cart", "himi_new_message"];
16065
16067
  var HIDDEN_ACTIONS = ["tier5.himiBrandedOrder.reorder"];
16068
+ var UNTAPPED_TARGETS = ["himi_product"];
16066
16069
  var LABEL_FOR = { action: "actionLabel", cta: "ctaLabel" };
16067
16070
  function standInActions(site) {
16068
16071
  const tapFor = (id, target) => siteTopBarDefault({ ...site, topBar: { actions: [{ id, icon: "globe", label: id, target }] } })?.actions?.[0]?.onTap;
@@ -16078,17 +16081,19 @@ function standInActions(site) {
16078
16081
  }
16079
16082
  return taps;
16080
16083
  }
16081
- function siteShellLinks(site) {
16084
+ function siteShellLinks(site, options = {}) {
16082
16085
  const standIns = standInActions(site);
16086
+ const hiddenTargets = options.nativeCart ? ALWAYS_HIDDEN_TARGETS.filter((id) => id !== "himi_cart") : ALWAYS_HIDDEN_TARGETS;
16087
+ const hiddenActions = options.nativeCart ? [] : HIDDEN_ACTIONS;
16083
16088
  const verdict = (action) => {
16084
16089
  if (!action || typeof action !== "object") return "keep";
16085
16090
  const a = action;
16086
- if (HIDDEN_ACTIONS.includes(a.actionId)) return "hide";
16091
+ if (hiddenActions.includes(a.actionId)) return "hide";
16087
16092
  if (a.actionId !== "himi.open") return "keep";
16088
16093
  const target = a.params?.screenId;
16089
16094
  if (!target) return "keep";
16090
16095
  if (standIns.has(target)) return standIns.get(target);
16091
- if (ALWAYS_HIDDEN_TARGETS.includes(target) || target in SITE_STAND_INS) return "hide";
16096
+ if (hiddenTargets.includes(target) || target in SITE_STAND_INS) return "hide";
16092
16097
  return "keep";
16093
16098
  };
16094
16099
  const visit = (node) => {
@@ -16112,6 +16117,8 @@ function siteShellLinks(site) {
16112
16117
  }
16113
16118
  const modifiers = n.modifiers;
16114
16119
  if (modifiers) {
16120
+ const tapTarget = modifiers.onTap?.params?.screenId;
16121
+ if (modifiers.onTap?.actionId === "himi.open" && tapTarget && UNTAPPED_TARGETS.includes(tapTarget)) delete modifiers.onTap;
16115
16122
  const v = verdict(modifiers.onTap);
16116
16123
  if (v === "hide") return false;
16117
16124
  if (v !== "keep") modifiers.onTap = { ...v };
@@ -7420,7 +7420,9 @@ var screenDescriptorSchema = {
7420
7420
  hiddenPath: { type: "string" },
7421
7421
  labelPath: { type: "string" },
7422
7422
  iconPath: { type: "string" },
7423
- hiddenPathScope: { type: "string" }
7423
+ hiddenPathScope: { type: "string" },
7424
+ // Hidden until hiddenPath first resolves (fail closed): the Brandy cart icon pair.
7425
+ hiddenUntilResolved: { type: "boolean" }
7424
7426
  }
7425
7427
  },
7426
7428
  navBadge: {
@@ -7,19 +7,11 @@ var __export = (target, all) => {
7
7
  // ../../stdlib/wix-sdk/comments-v1/src/extensions.ts
8
8
  var BLOG_COMMENTS_APP_ID = "14bcded7-0066-7c35-14d7-466cb3f09103";
9
9
  var ricosText = (text) => ({
10
- nodes: [
11
- {
12
- type: "PARAGRAPH",
13
- id: "himi-blog-comment",
14
- nodes: [
15
- {
16
- type: "TEXT",
17
- id: "himi-blog-comment-text",
18
- textData: { text }
19
- }
20
- ]
21
- }
22
- ],
10
+ nodes: text.split(/\r?\n/).map((line, index) => ({
11
+ type: "PARAGRAPH",
12
+ id: index === 0 ? "himi-blog-comment" : `himi-blog-comment-${index}`,
13
+ nodes: line ? [{ type: "TEXT", id: index === 0 ? "himi-blog-comment-text" : `himi-blog-comment-text-${index}`, textData: { text: line } }] : []
14
+ })),
23
15
  metadata: { version: 1 }
24
16
  });
25
17
  var readRichText = (node) => {
@@ -30,13 +22,23 @@ var readRichText = (node) => {
30
22
  };
31
23
  var commentText = (comment) => {
32
24
  const richContent = comment.content?.richContent;
33
- const text = readRichText(richContent);
34
- return text || "Comment";
25
+ const blocks = richContent?.nodes;
26
+ const text = Array.isArray(blocks) && blocks.length > 1 ? blocks.map(readRichText).join("\n").replace(/^\n+|\n+$/g, "") : readRichText(richContent);
27
+ return text.trim() ? text : "Comment";
35
28
  };
36
29
  var commentRichContent = (comment) => comment.content?.richContent;
37
30
  var commentAuthor = (comment) => {
38
31
  const author = comment.author;
39
- return author?.name ?? author?.nickname ?? "Member";
32
+ return (author?.name ?? author?.nickname ?? "").trim();
33
+ };
34
+ var commentExtras = (comment) => {
35
+ const memberId = comment.author?.memberId?.trim();
36
+ const total = comment.reactionSummary?.total;
37
+ return {
38
+ ...memberId ? { authorMemberId: memberId } : {},
39
+ ...comment.reactionSummary ? { reactionTotal: typeof total === "number" && total >= 0 ? total : 0 } : {},
40
+ ...typeof comment.replyCount === "number" ? { replyCount: comment.replyCount } : {}
41
+ };
40
42
  };
41
43
  function blogCommentRow(comment) {
42
44
  const c = comment ?? {};
@@ -45,7 +47,9 @@ function blogCommentRow(comment) {
45
47
  authorName: commentAuthor(c),
46
48
  text: commentText(c),
47
49
  createdDate: c.createdDate ?? (/* @__PURE__ */ new Date()).toISOString(),
48
- richContent: commentRichContent(c)
50
+ richContent: commentRichContent(c),
51
+ ...commentExtras(c),
52
+ ...c.parentComment?.id ? { parentCommentId: c.parentComment.id } : {}
49
53
  };
50
54
  }
51
55
  async function createBlogComment(postId, text) {
@@ -88,7 +92,8 @@ async function listBlogComments(postId) {
88
92
  authorName: commentAuthor(comment),
89
93
  text: commentText(comment),
90
94
  createdDate: comment.createdDate ?? "",
91
- richContent: commentRichContent(comment)
95
+ richContent: commentRichContent(comment),
96
+ ...commentExtras(comment)
92
97
  }));
93
98
  const instantOf = (row) => {
94
99
  if (!row.createdDate) return Number.POSITIVE_INFINITY;
@@ -101,6 +106,102 @@ async function listBlogComments(postId) {
101
106
  return x === y ? 0 : x < y ? -1 : 1;
102
107
  });
103
108
  }
109
+ var COMMENT_LIKE_CODE = ":like:";
110
+ var MAX_REPLY_PAGES = 25;
111
+ async function listBlogCommentPage(postId, opts = {}) {
112
+ if (!postId) {
113
+ throw new Error("postId is required");
114
+ }
115
+ const params = [
116
+ ["appId", BLOG_COMMENTS_APP_ID],
117
+ ["contextId", postId],
118
+ ["resourceId", postId],
119
+ ["commentSort.order", "NEWEST_FIRST"],
120
+ ["replySort.order", "OLDEST_FIRST"],
121
+ ["cursorPaging.repliesLimit", String(opts.repliesLimit ?? 20)],
122
+ ...opts.limit != null ? [["cursorPaging.limit", String(opts.limit)]] : [],
123
+ ...opts.cursor ? [["cursorPaging.cursor", opts.cursor]] : []
124
+ ];
125
+ const query = params.map(([k, v]) => `${k}=${encodeURIComponent(v)}`).join("&");
126
+ const response = await wixCall("GET", `/comments/v1/comments/list-by-resource?${query}`);
127
+ if (!Array.isArray(response?.comments) && !(response?.comments == null && response?.pagingMetadata?.count === 0)) {
128
+ throw new Error("Blog comments response has no comment page");
129
+ }
130
+ const toRow = (comment, parentCommentId) => ({
131
+ id: comment.id ?? "comment",
132
+ authorName: commentAuthor(comment),
133
+ text: commentText(comment),
134
+ createdDate: comment.createdDate ?? "",
135
+ richContent: commentRichContent(comment),
136
+ ...commentExtras(comment),
137
+ ...parentCommentId ? { parentCommentId } : {}
138
+ });
139
+ const repliesByParent = response.commentReplies ?? {};
140
+ const nextOf = (meta) => meta?.hasNext ? meta?.cursors?.next ?? "" : "";
141
+ const rows = [];
142
+ for (const comment of response.comments ?? []) {
143
+ const parent = toRow(comment);
144
+ const replies = (repliesByParent[parent.id]?.replies ?? []).map((reply) => toRow(reply, parent.id));
145
+ let cursor = nextOf(repliesByParent[parent.id]?.pagingMetadata);
146
+ for (let page = 0; cursor && page < MAX_REPLY_PAGES; page++) {
147
+ let more;
148
+ try {
149
+ more = await wixCall("GET", `/comments/v1/comments/list-by-resource?${[
150
+ ["appId", BLOG_COMMENTS_APP_ID],
151
+ ["contextId", postId],
152
+ ["resourceId", postId],
153
+ ["cursorPaging.cursor", cursor],
154
+ ["cursorPaging.limit", "100"]
155
+ ].map(([k, v]) => `${k}=${encodeURIComponent(v)}`).join("&")}`);
156
+ } catch {
157
+ break;
158
+ }
159
+ replies.push(...(more?.comments ?? []).map((reply) => toRow(reply, parent.id)));
160
+ cursor = nextOf(more?.pagingMetadata);
161
+ }
162
+ if (cursor) parent.hasMoreReplies = true;
163
+ rows.push(parent, ...replies);
164
+ }
165
+ const next = response.pagingMetadata?.hasNext ? response.pagingMetadata?.cursors?.next ?? "" : "";
166
+ return { comments: rows, nextCursor: next };
167
+ }
168
+ async function likedBlogComments(postId, commentIds) {
169
+ const liked = /* @__PURE__ */ new Set();
170
+ for (let at = 0; at < commentIds.length; at += 100) {
171
+ const batch = commentIds.slice(at, at + 100);
172
+ const response = await bulkGetCommentReactions({ appId: BLOG_COMMENTS_APP_ID, contextId: postId, commentIds: [...batch] });
173
+ const reactions = response?.reactions ?? {};
174
+ for (const id of batch) {
175
+ if (reactions[id]?.codeReactions?.some((code) => code.reactionCode === COMMENT_LIKE_CODE && code.hasReacted === true)) liked.add(id);
176
+ }
177
+ }
178
+ return liked;
179
+ }
180
+ async function setBlogCommentLike(commentId, like) {
181
+ if (like) await addCommentReaction(commentId, { reactionCode: COMMENT_LIKE_CODE });
182
+ else await removeCommentReaction(commentId, { reactionCode: COMMENT_LIKE_CODE });
183
+ }
184
+ async function postBlogComment(postId, text, parentCommentId) {
185
+ const trimmed = text.trim();
186
+ if (!postId) {
187
+ throw new Error("postId is required");
188
+ }
189
+ if (!trimmed) {
190
+ throw new Error("comment text is required");
191
+ }
192
+ const request = {
193
+ comment: {
194
+ appId: BLOG_COMMENTS_APP_ID,
195
+ contextId: postId,
196
+ resourceId: postId,
197
+ content: { richContent: ricosText(trimmed) },
198
+ ...parentCommentId ? { parentComment: { id: parentCommentId } } : {}
199
+ }
200
+ };
201
+ const response = await createComment(request);
202
+ const row = blogCommentRow(response.comment ?? response);
203
+ return parentCommentId ? { ...row, parentCommentId } : row;
204
+ }
104
205
  var GROUPS_COMMENTS_APP_ID = "148c2287-c669-d849-d153-463c7486a694";
105
206
  async function createGroupPostComment(groupId, feedItemId, text, parentCommentId) {
106
207
  const trimmed = text.trim();
@@ -152,6 +253,7 @@ async function listGroupPostComments(groupId, feedItemId, opts = {}) {
152
253
  text: commentText(comment),
153
254
  createdDate: comment.createdDate ?? "",
154
255
  richContent: commentRichContent(comment),
256
+ ...commentExtras(comment),
155
257
  ...parentCommentId ? { parentCommentId } : {}
156
258
  });
157
259
  const instantOf = (row) => {
@@ -700,6 +802,7 @@ function updateCommentsWidget(req, opts) {
700
802
  }
701
803
  export {
702
804
  BLOG_COMMENTS_APP_ID,
805
+ COMMENT_LIKE_CODE,
703
806
  GROUPS_COMMENTS_APP_ID,
704
807
  addCommentReaction,
705
808
  blogCommentRow,
@@ -721,15 +824,20 @@ export {
721
824
  getComment,
722
825
  getCommentThread,
723
826
  hideComment,
827
+ likedBlogComments,
828
+ listBlogCommentPage,
724
829
  listBlogComments,
725
830
  listCommentsByResource,
726
831
  listGroupPostComments,
727
832
  markComment,
728
833
  moderateDraftContent,
834
+ postBlogComment,
729
835
  publishComment,
730
836
  queryComments,
731
837
  ratings_generated_exports as ratings,
732
838
  removeCommentReaction,
839
+ ricosText,
840
+ setBlogCommentLike,
733
841
  unmarkComment,
734
842
  updateComment,
735
843
  widgets_generated_exports as widgets,
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2601844
5
+ "bytes": 2603268
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/d71e5b22a5ff1965fd887118ee8b2a74497b48a88f4459c9800569457e1fb547.bin",
24
+ "name": "preview-deferred/ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-D-4TEGX8.js",
82
+ "key": "assets/pdf-91-oDBuu.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "d71e5b22a5ff1965fd887118ee8b2a74497b48a88f4459c9800569457e1fb547",
85
- "file": "preview-deferred/d71e5b22a5ff1965fd887118ee8b2a74497b48a88f4459c9800569457e1fb547.bin"
84
+ "sha256": "ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541",
85
+ "file": "preview-deferred/ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",