@ckeditor/ckeditor5-comments 0.0.0-internal-20241017.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 (434) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +23 -0
  3. package/README.md +58 -0
  4. package/build/comments.js +5 -0
  5. package/build/translations/af.js +1 -0
  6. package/build/translations/ar.js +1 -0
  7. package/build/translations/bg.js +1 -0
  8. package/build/translations/bn.js +1 -0
  9. package/build/translations/bs.js +1 -0
  10. package/build/translations/ca.js +1 -0
  11. package/build/translations/cs.js +1 -0
  12. package/build/translations/da.js +1 -0
  13. package/build/translations/de-ch.js +1 -0
  14. package/build/translations/de.js +1 -0
  15. package/build/translations/el.js +1 -0
  16. package/build/translations/en-au.js +1 -0
  17. package/build/translations/es-co.js +1 -0
  18. package/build/translations/es.js +1 -0
  19. package/build/translations/et.js +1 -0
  20. package/build/translations/fa.js +1 -0
  21. package/build/translations/fi.js +1 -0
  22. package/build/translations/fr.js +1 -0
  23. package/build/translations/gl.js +1 -0
  24. package/build/translations/he.js +1 -0
  25. package/build/translations/hi.js +1 -0
  26. package/build/translations/hr.js +1 -0
  27. package/build/translations/hu.js +1 -0
  28. package/build/translations/id.js +1 -0
  29. package/build/translations/it.js +1 -0
  30. package/build/translations/ja.js +1 -0
  31. package/build/translations/jv.js +1 -0
  32. package/build/translations/ko.js +1 -0
  33. package/build/translations/lt.js +1 -0
  34. package/build/translations/lv.js +1 -0
  35. package/build/translations/ms.js +1 -0
  36. package/build/translations/nl.js +1 -0
  37. package/build/translations/no.js +1 -0
  38. package/build/translations/pl.js +1 -0
  39. package/build/translations/pt-br.js +1 -0
  40. package/build/translations/pt.js +1 -0
  41. package/build/translations/ro.js +1 -0
  42. package/build/translations/ru.js +1 -0
  43. package/build/translations/sk.js +1 -0
  44. package/build/translations/sq.js +1 -0
  45. package/build/translations/sr-latn.js +1 -0
  46. package/build/translations/sr.js +1 -0
  47. package/build/translations/sv.js +1 -0
  48. package/build/translations/th.js +1 -0
  49. package/build/translations/ti.js +1 -0
  50. package/build/translations/tk.js +1 -0
  51. package/build/translations/tr.js +1 -0
  52. package/build/translations/tt.js +1 -0
  53. package/build/translations/ug.js +1 -0
  54. package/build/translations/uk.js +1 -0
  55. package/build/translations/ur.js +1 -0
  56. package/build/translations/vi.js +1 -0
  57. package/build/translations/zh-cn.js +1 -0
  58. package/build/translations/zh.js +1 -0
  59. package/ckeditor5-metadata.json +55 -0
  60. package/dist/annotations/annotation.d.ts +101 -0
  61. package/dist/annotations/annotationcollection.d.ts +102 -0
  62. package/dist/annotations/annotations.d.ts +166 -0
  63. package/dist/annotations/annotationsuis.d.ts +244 -0
  64. package/dist/annotations/editorannotations.d.ts +79 -0
  65. package/dist/annotations/inlineannotations.d.ts +102 -0
  66. package/dist/annotations/narrowsidebar.d.ts +97 -0
  67. package/dist/annotations/sidebar.d.ts +112 -0
  68. package/dist/annotations/view/annotationcounterbuttonview.d.ts +33 -0
  69. package/dist/annotations/view/annotationview.d.ts +94 -0
  70. package/dist/annotations/view/sidebaritemview.d.ts +63 -0
  71. package/dist/annotations/view/sidebarview.d.ts +57 -0
  72. package/dist/annotations/widesidebar.d.ts +89 -0
  73. package/dist/augmentation.d.ts +56 -0
  74. package/dist/comments/addcommentthreadcommand.d.ts +39 -0
  75. package/dist/comments/commentsarchive.d.ts +43 -0
  76. package/dist/comments/commentsarchiveui.d.ts +50 -0
  77. package/dist/comments/commentsediting.d.ts +105 -0
  78. package/dist/comments/commentsrepository.d.ts +1137 -0
  79. package/dist/comments/commentsui.d.ts +49 -0
  80. package/dist/comments/integrations/clipboard.d.ts +30 -0
  81. package/dist/comments/integrations/commentsrestrictededitingmode.d.ts +21 -0
  82. package/dist/comments/integrations/importword.d.ts +25 -0
  83. package/dist/comments/ui/commenteditor/commenteditor.d.ts +40 -0
  84. package/dist/comments/ui/commenteditor/commenteditorui.d.ts +35 -0
  85. package/dist/comments/ui/commenteditor/commenteditoruiview.d.ts +40 -0
  86. package/dist/comments/ui/commentthreadcontroller.d.ts +68 -0
  87. package/dist/comments/ui/view/basecommentthreadview.d.ts +152 -0
  88. package/dist/comments/ui/view/basecommentview.d.ts +154 -0
  89. package/dist/comments/ui/view/collapsedcommentsview.d.ts +17 -0
  90. package/dist/comments/ui/view/commentcontentview.d.ts +18 -0
  91. package/dist/comments/ui/view/commentinputview.d.ts +105 -0
  92. package/dist/comments/ui/view/commentsarchiveview.d.ts +50 -0
  93. package/dist/comments/ui/view/commentslistview.d.ts +116 -0
  94. package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +25 -0
  95. package/dist/comments/ui/view/commentthreadheaderview.d.ts +80 -0
  96. package/dist/comments/ui/view/commentthreadinputview.d.ts +60 -0
  97. package/dist/comments/ui/view/commentthreadview.d.ts +127 -0
  98. package/dist/comments/ui/view/commentview.d.ts +244 -0
  99. package/dist/comments.d.ts +47 -0
  100. package/dist/commentsonly.d.ts +45 -0
  101. package/dist/config.d.ts +199 -0
  102. package/dist/index-content.css +5 -0
  103. package/dist/index-editor.css +847 -0
  104. package/dist/index.css +1077 -0
  105. package/dist/index.d.ts +32 -0
  106. package/dist/index.js +31 -0
  107. package/dist/translations/af.d.ts +8 -0
  108. package/dist/translations/af.js +23 -0
  109. package/dist/translations/af.umd.js +23 -0
  110. package/dist/translations/ar.d.ts +8 -0
  111. package/dist/translations/ar.js +23 -0
  112. package/dist/translations/ar.umd.js +23 -0
  113. package/dist/translations/bg.d.ts +8 -0
  114. package/dist/translations/bg.js +23 -0
  115. package/dist/translations/bg.umd.js +23 -0
  116. package/dist/translations/bn.d.ts +8 -0
  117. package/dist/translations/bn.js +23 -0
  118. package/dist/translations/bn.umd.js +23 -0
  119. package/dist/translations/bs.d.ts +8 -0
  120. package/dist/translations/bs.js +23 -0
  121. package/dist/translations/bs.umd.js +23 -0
  122. package/dist/translations/ca.d.ts +8 -0
  123. package/dist/translations/ca.js +23 -0
  124. package/dist/translations/ca.umd.js +23 -0
  125. package/dist/translations/cs.d.ts +8 -0
  126. package/dist/translations/cs.js +23 -0
  127. package/dist/translations/cs.umd.js +23 -0
  128. package/dist/translations/da.d.ts +8 -0
  129. package/dist/translations/da.js +23 -0
  130. package/dist/translations/da.umd.js +23 -0
  131. package/dist/translations/de-ch.d.ts +8 -0
  132. package/dist/translations/de-ch.js +23 -0
  133. package/dist/translations/de-ch.umd.js +23 -0
  134. package/dist/translations/de.d.ts +8 -0
  135. package/dist/translations/de.js +23 -0
  136. package/dist/translations/de.umd.js +23 -0
  137. package/dist/translations/el.d.ts +8 -0
  138. package/dist/translations/el.js +23 -0
  139. package/dist/translations/el.umd.js +23 -0
  140. package/dist/translations/en-au.d.ts +8 -0
  141. package/dist/translations/en-au.js +23 -0
  142. package/dist/translations/en-au.umd.js +23 -0
  143. package/dist/translations/en.d.ts +8 -0
  144. package/dist/translations/en.js +23 -0
  145. package/dist/translations/en.umd.js +23 -0
  146. package/dist/translations/es-co.d.ts +8 -0
  147. package/dist/translations/es-co.js +23 -0
  148. package/dist/translations/es-co.umd.js +23 -0
  149. package/dist/translations/es.d.ts +8 -0
  150. package/dist/translations/es.js +23 -0
  151. package/dist/translations/es.umd.js +23 -0
  152. package/dist/translations/et.d.ts +8 -0
  153. package/dist/translations/et.js +23 -0
  154. package/dist/translations/et.umd.js +23 -0
  155. package/dist/translations/fa.d.ts +8 -0
  156. package/dist/translations/fa.js +23 -0
  157. package/dist/translations/fa.umd.js +23 -0
  158. package/dist/translations/fi.d.ts +8 -0
  159. package/dist/translations/fi.js +23 -0
  160. package/dist/translations/fi.umd.js +23 -0
  161. package/dist/translations/fr.d.ts +8 -0
  162. package/dist/translations/fr.js +23 -0
  163. package/dist/translations/fr.umd.js +23 -0
  164. package/dist/translations/gl.d.ts +8 -0
  165. package/dist/translations/gl.js +23 -0
  166. package/dist/translations/gl.umd.js +23 -0
  167. package/dist/translations/he.d.ts +8 -0
  168. package/dist/translations/he.js +23 -0
  169. package/dist/translations/he.umd.js +23 -0
  170. package/dist/translations/hi.d.ts +8 -0
  171. package/dist/translations/hi.js +23 -0
  172. package/dist/translations/hi.umd.js +23 -0
  173. package/dist/translations/hr.d.ts +8 -0
  174. package/dist/translations/hr.js +23 -0
  175. package/dist/translations/hr.umd.js +23 -0
  176. package/dist/translations/hu.d.ts +8 -0
  177. package/dist/translations/hu.js +23 -0
  178. package/dist/translations/hu.umd.js +23 -0
  179. package/dist/translations/id.d.ts +8 -0
  180. package/dist/translations/id.js +23 -0
  181. package/dist/translations/id.umd.js +23 -0
  182. package/dist/translations/it.d.ts +8 -0
  183. package/dist/translations/it.js +23 -0
  184. package/dist/translations/it.umd.js +23 -0
  185. package/dist/translations/ja.d.ts +8 -0
  186. package/dist/translations/ja.js +23 -0
  187. package/dist/translations/ja.umd.js +23 -0
  188. package/dist/translations/jv.d.ts +8 -0
  189. package/dist/translations/jv.js +23 -0
  190. package/dist/translations/jv.umd.js +23 -0
  191. package/dist/translations/ko.d.ts +8 -0
  192. package/dist/translations/ko.js +23 -0
  193. package/dist/translations/ko.umd.js +23 -0
  194. package/dist/translations/lt.d.ts +8 -0
  195. package/dist/translations/lt.js +23 -0
  196. package/dist/translations/lt.umd.js +23 -0
  197. package/dist/translations/lv.d.ts +8 -0
  198. package/dist/translations/lv.js +23 -0
  199. package/dist/translations/lv.umd.js +23 -0
  200. package/dist/translations/ms.d.ts +8 -0
  201. package/dist/translations/ms.js +23 -0
  202. package/dist/translations/ms.umd.js +23 -0
  203. package/dist/translations/nl.d.ts +8 -0
  204. package/dist/translations/nl.js +23 -0
  205. package/dist/translations/nl.umd.js +23 -0
  206. package/dist/translations/no.d.ts +8 -0
  207. package/dist/translations/no.js +23 -0
  208. package/dist/translations/no.umd.js +23 -0
  209. package/dist/translations/pl.d.ts +8 -0
  210. package/dist/translations/pl.js +23 -0
  211. package/dist/translations/pl.umd.js +23 -0
  212. package/dist/translations/pt-br.d.ts +8 -0
  213. package/dist/translations/pt-br.js +23 -0
  214. package/dist/translations/pt-br.umd.js +23 -0
  215. package/dist/translations/pt.d.ts +8 -0
  216. package/dist/translations/pt.js +23 -0
  217. package/dist/translations/pt.umd.js +23 -0
  218. package/dist/translations/ro.d.ts +8 -0
  219. package/dist/translations/ro.js +23 -0
  220. package/dist/translations/ro.umd.js +23 -0
  221. package/dist/translations/ru.d.ts +8 -0
  222. package/dist/translations/ru.js +23 -0
  223. package/dist/translations/ru.umd.js +23 -0
  224. package/dist/translations/sk.d.ts +8 -0
  225. package/dist/translations/sk.js +23 -0
  226. package/dist/translations/sk.umd.js +23 -0
  227. package/dist/translations/sq.d.ts +8 -0
  228. package/dist/translations/sq.js +23 -0
  229. package/dist/translations/sq.umd.js +23 -0
  230. package/dist/translations/sr-latn.d.ts +8 -0
  231. package/dist/translations/sr-latn.js +23 -0
  232. package/dist/translations/sr-latn.umd.js +23 -0
  233. package/dist/translations/sr.d.ts +8 -0
  234. package/dist/translations/sr.js +23 -0
  235. package/dist/translations/sr.umd.js +23 -0
  236. package/dist/translations/sv.d.ts +8 -0
  237. package/dist/translations/sv.js +23 -0
  238. package/dist/translations/sv.umd.js +23 -0
  239. package/dist/translations/th.d.ts +8 -0
  240. package/dist/translations/th.js +23 -0
  241. package/dist/translations/th.umd.js +23 -0
  242. package/dist/translations/ti.d.ts +8 -0
  243. package/dist/translations/ti.js +23 -0
  244. package/dist/translations/ti.umd.js +23 -0
  245. package/dist/translations/tk.d.ts +8 -0
  246. package/dist/translations/tk.js +23 -0
  247. package/dist/translations/tk.umd.js +23 -0
  248. package/dist/translations/tr.d.ts +8 -0
  249. package/dist/translations/tr.js +23 -0
  250. package/dist/translations/tr.umd.js +23 -0
  251. package/dist/translations/tt.d.ts +8 -0
  252. package/dist/translations/tt.js +23 -0
  253. package/dist/translations/tt.umd.js +23 -0
  254. package/dist/translations/ug.d.ts +8 -0
  255. package/dist/translations/ug.js +23 -0
  256. package/dist/translations/ug.umd.js +23 -0
  257. package/dist/translations/uk.d.ts +8 -0
  258. package/dist/translations/uk.js +23 -0
  259. package/dist/translations/uk.umd.js +23 -0
  260. package/dist/translations/ur.d.ts +8 -0
  261. package/dist/translations/ur.js +23 -0
  262. package/dist/translations/ur.umd.js +23 -0
  263. package/dist/translations/vi.d.ts +8 -0
  264. package/dist/translations/vi.js +23 -0
  265. package/dist/translations/vi.umd.js +23 -0
  266. package/dist/translations/zh-cn.d.ts +8 -0
  267. package/dist/translations/zh-cn.js +23 -0
  268. package/dist/translations/zh-cn.umd.js +23 -0
  269. package/dist/translations/zh.d.ts +8 -0
  270. package/dist/translations/zh.js +23 -0
  271. package/dist/translations/zh.umd.js +23 -0
  272. package/dist/utils/common-translations.d.ts +13 -0
  273. package/dist/utils/createmutationobserver.d.ts +18 -0
  274. package/lang/contexts.json +42 -0
  275. package/lang/translations/af.po +182 -0
  276. package/lang/translations/ar.po +190 -0
  277. package/lang/translations/bg.po +182 -0
  278. package/lang/translations/bn.po +182 -0
  279. package/lang/translations/bs.po +184 -0
  280. package/lang/translations/ca.po +182 -0
  281. package/lang/translations/cs.po +186 -0
  282. package/lang/translations/da.po +182 -0
  283. package/lang/translations/de-ch.po +182 -0
  284. package/lang/translations/de.po +182 -0
  285. package/lang/translations/el.po +182 -0
  286. package/lang/translations/en-au.po +182 -0
  287. package/lang/translations/en.po +182 -0
  288. package/lang/translations/es-co.po +184 -0
  289. package/lang/translations/es.po +184 -0
  290. package/lang/translations/et.po +182 -0
  291. package/lang/translations/fa.po +182 -0
  292. package/lang/translations/fi.po +182 -0
  293. package/lang/translations/fr.po +184 -0
  294. package/lang/translations/gl.po +182 -0
  295. package/lang/translations/he.po +184 -0
  296. package/lang/translations/hi.po +182 -0
  297. package/lang/translations/hr.po +184 -0
  298. package/lang/translations/hu.po +182 -0
  299. package/lang/translations/id.po +180 -0
  300. package/lang/translations/it.po +184 -0
  301. package/lang/translations/ja.po +180 -0
  302. package/lang/translations/jv.po +180 -0
  303. package/lang/translations/ko.po +180 -0
  304. package/lang/translations/lt.po +186 -0
  305. package/lang/translations/lv.po +184 -0
  306. package/lang/translations/ms.po +180 -0
  307. package/lang/translations/nl.po +182 -0
  308. package/lang/translations/no.po +182 -0
  309. package/lang/translations/pl.po +186 -0
  310. package/lang/translations/pt-br.po +184 -0
  311. package/lang/translations/pt.po +184 -0
  312. package/lang/translations/ro.po +184 -0
  313. package/lang/translations/ru.po +186 -0
  314. package/lang/translations/sk.po +186 -0
  315. package/lang/translations/sq.po +182 -0
  316. package/lang/translations/sr-latn.po +184 -0
  317. package/lang/translations/sr.po +184 -0
  318. package/lang/translations/sv.po +182 -0
  319. package/lang/translations/th.po +180 -0
  320. package/lang/translations/ti.po +182 -0
  321. package/lang/translations/tk.po +182 -0
  322. package/lang/translations/tr.po +182 -0
  323. package/lang/translations/tt.po +180 -0
  324. package/lang/translations/ug.po +182 -0
  325. package/lang/translations/uk.po +186 -0
  326. package/lang/translations/ur.po +182 -0
  327. package/lang/translations/vi.po +180 -0
  328. package/lang/translations/zh-cn.po +180 -0
  329. package/lang/translations/zh.po +180 -0
  330. package/package.json +66 -0
  331. package/src/annotations/annotation.d.ts +97 -0
  332. package/src/annotations/annotation.js +24 -0
  333. package/src/annotations/annotationcollection.d.ts +98 -0
  334. package/src/annotations/annotationcollection.js +23 -0
  335. package/src/annotations/annotations.d.ts +162 -0
  336. package/src/annotations/annotations.js +23 -0
  337. package/src/annotations/annotationsuis.d.ts +240 -0
  338. package/src/annotations/annotationsuis.js +23 -0
  339. package/src/annotations/editorannotations.d.ts +75 -0
  340. package/src/annotations/editorannotations.js +23 -0
  341. package/src/annotations/inlineannotations.d.ts +98 -0
  342. package/src/annotations/inlineannotations.js +23 -0
  343. package/src/annotations/narrowsidebar.d.ts +93 -0
  344. package/src/annotations/narrowsidebar.js +23 -0
  345. package/src/annotations/sidebar.d.ts +108 -0
  346. package/src/annotations/sidebar.js +23 -0
  347. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -0
  348. package/src/annotations/view/annotationcounterbuttonview.js +23 -0
  349. package/src/annotations/view/annotationview.d.ts +90 -0
  350. package/src/annotations/view/annotationview.js +23 -0
  351. package/src/annotations/view/sidebaritemview.d.ts +59 -0
  352. package/src/annotations/view/sidebaritemview.js +23 -0
  353. package/src/annotations/view/sidebarview.d.ts +53 -0
  354. package/src/annotations/view/sidebarview.js +23 -0
  355. package/src/annotations/widesidebar.d.ts +85 -0
  356. package/src/annotations/widesidebar.js +23 -0
  357. package/src/augmentation.d.ts +52 -0
  358. package/src/augmentation.js +23 -0
  359. package/src/comments/addcommentthreadcommand.d.ts +35 -0
  360. package/src/comments/addcommentthreadcommand.js +23 -0
  361. package/src/comments/commentsarchive.d.ts +39 -0
  362. package/src/comments/commentsarchive.js +23 -0
  363. package/src/comments/commentsarchiveui.d.ts +46 -0
  364. package/src/comments/commentsarchiveui.js +23 -0
  365. package/src/comments/commentsediting.d.ts +101 -0
  366. package/src/comments/commentsediting.js +23 -0
  367. package/src/comments/commentsrepository.d.ts +1133 -0
  368. package/src/comments/commentsrepository.js +25 -0
  369. package/src/comments/commentsui.d.ts +45 -0
  370. package/src/comments/commentsui.js +23 -0
  371. package/src/comments/integrations/clipboard.d.ts +26 -0
  372. package/src/comments/integrations/clipboard.js +23 -0
  373. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -0
  374. package/src/comments/integrations/commentsrestrictededitingmode.js +23 -0
  375. package/src/comments/integrations/importword.d.ts +21 -0
  376. package/src/comments/integrations/importword.js +23 -0
  377. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -0
  378. package/src/comments/ui/commenteditor/commenteditor.js +24 -0
  379. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -0
  380. package/src/comments/ui/commenteditor/commenteditorui.js +23 -0
  381. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -0
  382. package/src/comments/ui/commenteditor/commenteditoruiview.js +23 -0
  383. package/src/comments/ui/commentthreadcontroller.d.ts +64 -0
  384. package/src/comments/ui/commentthreadcontroller.js +24 -0
  385. package/src/comments/ui/view/basecommentthreadview.d.ts +148 -0
  386. package/src/comments/ui/view/basecommentthreadview.js +23 -0
  387. package/src/comments/ui/view/basecommentview.d.ts +150 -0
  388. package/src/comments/ui/view/basecommentview.js +23 -0
  389. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -0
  390. package/src/comments/ui/view/collapsedcommentsview.js +23 -0
  391. package/src/comments/ui/view/commentcontentview.d.ts +14 -0
  392. package/src/comments/ui/view/commentcontentview.js +23 -0
  393. package/src/comments/ui/view/commentinputview.d.ts +101 -0
  394. package/src/comments/ui/view/commentinputview.js +23 -0
  395. package/src/comments/ui/view/commentsarchiveview.d.ts +46 -0
  396. package/src/comments/ui/view/commentsarchiveview.js +23 -0
  397. package/src/comments/ui/view/commentslistview.d.ts +112 -0
  398. package/src/comments/ui/view/commentslistview.js +23 -0
  399. package/src/comments/ui/view/commentthreadheadercontextview.d.ts +21 -0
  400. package/src/comments/ui/view/commentthreadheadercontextview.js +23 -0
  401. package/src/comments/ui/view/commentthreadheaderview.d.ts +76 -0
  402. package/src/comments/ui/view/commentthreadheaderview.js +23 -0
  403. package/src/comments/ui/view/commentthreadinputview.d.ts +56 -0
  404. package/src/comments/ui/view/commentthreadinputview.js +23 -0
  405. package/src/comments/ui/view/commentthreadview.d.ts +123 -0
  406. package/src/comments/ui/view/commentthreadview.js +24 -0
  407. package/src/comments/ui/view/commentview.d.ts +240 -0
  408. package/src/comments/ui/view/commentview.js +24 -0
  409. package/src/comments.d.ts +43 -0
  410. package/src/comments.js +23 -0
  411. package/src/commentsonly.d.ts +41 -0
  412. package/src/commentsonly.js +23 -0
  413. package/src/config.d.ts +195 -0
  414. package/src/config.js +23 -0
  415. package/src/index.d.ts +28 -0
  416. package/src/index.js +23 -0
  417. package/src/utils/common-translations.d.ts +9 -0
  418. package/src/utils/common-translations.js +23 -0
  419. package/src/utils/createmutationobserver.d.ts +14 -0
  420. package/src/utils/createmutationobserver.js +23 -0
  421. package/theme/annotation-inline.css +50 -0
  422. package/theme/annotation.css +151 -0
  423. package/theme/comment.css +179 -0
  424. package/theme/commentinput.css +96 -0
  425. package/theme/commentmarker.css +45 -0
  426. package/theme/commentsarchive.css +49 -0
  427. package/theme/commentthread.css +292 -0
  428. package/theme/icons/add-comment.svg +11 -0
  429. package/theme/icons/comments-archive.svg +11 -0
  430. package/theme/icons/edit-comment.svg +11 -0
  431. package/theme/icons/remove-comment.svg +11 -0
  432. package/theme/icons/undo.svg +1 -0
  433. package/theme/sidebar-narrow.css +91 -0
  434. package/theme/sidebar.css +72 -0
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { CommentThread } from '../commentsrepository.js';
6
+ import type { default as BaseCommentThreadView } from './view/basecommentthreadview.js';
7
+ declare const CommentThreadController_base: {
8
+ new (): import("ckeditor5/src/utils.js").Observable;
9
+ prototype: import("ckeditor5/src/utils.js").Observable;
10
+ };
11
+ /**
12
+ * Controller for a comment thread.
13
+ *
14
+ * It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
15
+ */
16
+ export default class CommentThreadController extends /* #__PURE__ -- @preserve */ CommentThreadController_base {
17
+ model: CommentThread;
18
+ view: BaseCommentThreadView;
19
+ /**
20
+ * @param model Comment thread model.
21
+ * @param view Comment thread view.
22
+ */
23
+ constructor(model: CommentThread, view: BaseCommentThreadView);
24
+ /**
25
+ * Submits the comment thread.
26
+ */
27
+ submit(): void;
28
+ /**
29
+ * Removes the comment thread.
30
+ */
31
+ remove(): void;
32
+ /**
33
+ * Resolves the comment thread.
34
+ */
35
+ resolve(): void;
36
+ /**
37
+ * Reopens the comment thread.
38
+ */
39
+ reopen(): void;
40
+ /**
41
+ * Adds a comment to the comment thread.
42
+ *
43
+ * @param commentContent Comment content.
44
+ */
45
+ addComment(commentContent: string): void;
46
+ /**
47
+ * Updates a comment that belongs to the comment thread.
48
+ *
49
+ * @param commentId Id of the comment to update.
50
+ * @param commentContent Updated comment content.
51
+ */
52
+ updateComment(commentId: string, commentContent: string): void;
53
+ /**
54
+ * Removes a comment from the comment thread.
55
+ *
56
+ * @param commentId Id of the comment to remove.
57
+ */
58
+ removeComment(commentId: string): void;
59
+ /**
60
+ * Destroys `CommentThreadController` instance.
61
+ */
62
+ destroy(): void;
63
+ }
64
+ export {};
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ var _0x1a37cb=_0x5b7d;(function(_0xda0dcb,_0x45d3dd){var _0x57cfe4=_0x5b7d,_0x3810d7=_0xda0dcb();while(!![]){try{var _0x2817dc=-parseInt(_0x57cfe4(0x20e))/0x1*(-parseInt(_0x57cfe4(0x207))/0x2)+-parseInt(_0x57cfe4(0x20a))/0x3+parseInt(_0x57cfe4(0x1fb))/0x4+-parseInt(_0x57cfe4(0x1f6))/0x5+parseInt(_0x57cfe4(0x1fe))/0x6*(-parseInt(_0x57cfe4(0x206))/0x7)+-parseInt(_0x57cfe4(0x20b))/0x8*(-parseInt(_0x57cfe4(0x1f9))/0x9)+-parseInt(_0x57cfe4(0x202))/0xa;if(_0x2817dc===_0x45d3dd)break;else _0x3810d7['push'](_0x3810d7['shift']());}catch(_0x2603cf){_0x3810d7['push'](_0x3810d7['shift']());}}}(_0x17be,0x4e052));import{ObservableMixin as _0x39e0d8}from'ckeditor5/src/utils.js';export default class yt extends/* #__PURE__ -- @preserve */
24
+ _0x39e0d8(){constructor(_0x2e477a,_0xaf9ef){var _0x52c0aa=_0x5b7d;super(),this[_0x52c0aa(0x209)]=_0x2e477a,this[_0x52c0aa(0x209)][_0x52c0aa(0x20d)]=!0x0,this[_0x52c0aa(0x204)]=_0xaf9ef,this[_0x52c0aa(0x1f2)](_0xaf9ef,_0x52c0aa(0x20f),()=>this[_0x52c0aa(0x203)]()),this[_0x52c0aa(0x1f2)](_0xaf9ef,_0x52c0aa(0x1f3),()=>this[_0x52c0aa(0x201)]()),this[_0x52c0aa(0x1f2)](_0xaf9ef,_0x52c0aa(0x1f5),()=>this[_0x52c0aa(0x200)]()),this[_0x52c0aa(0x1f2)](_0xaf9ef,_0x52c0aa(0x205),()=>this[_0x52c0aa(0x1fd)]()),this[_0x52c0aa(0x1f2)](_0xaf9ef,_0x52c0aa(0x20c),(_0x508e99,_0x2f7037)=>this[_0x52c0aa(0x20c)](_0x2f7037)),this[_0x52c0aa(0x1f2)](_0xaf9ef,_0x52c0aa(0x1fa),(_0x2ac9d1,_0x6d6a10,_0x3786ca)=>this[_0x52c0aa(0x1fa)](_0x6d6a10,_0x3786ca)),this[_0x52c0aa(0x1f2)](_0xaf9ef,_0x52c0aa(0x208),(_0x512ff5,_0x3dff04)=>this[_0x52c0aa(0x208)](_0x3dff04));}[_0x1a37cb(0x203)](){var _0xcd01a9=_0x1a37cb;this[_0xcd01a9(0x209)][_0xcd01a9(0x203)]();}[_0x1a37cb(0x201)](){var _0x2f6e10=_0x1a37cb;this[_0x2f6e10(0x209)][_0x2f6e10(0x201)]();}[_0x1a37cb(0x200)](){var _0x4d32b4=_0x1a37cb;this[_0x4d32b4(0x209)][_0x4d32b4(0x1f7)]||this[_0x4d32b4(0x209)][_0x4d32b4(0x200)]();}[_0x1a37cb(0x1fd)](){var _0x52d2cb=_0x1a37cb;this[_0x52d2cb(0x209)][_0x52d2cb(0x1f7)]&&this[_0x52d2cb(0x209)][_0x52d2cb(0x1fd)]();}[_0x1a37cb(0x20c)](_0xddd79d){var _0x53d901=_0x1a37cb;this[_0x53d901(0x209)][_0x53d901(0x20c)]({'content':_0xddd79d,'authorId':this[_0x53d901(0x204)][_0x53d901(0x1f4)]['id']});}[_0x1a37cb(0x1fa)](_0x1e84eb,_0x595738){var _0xec349=_0x1a37cb;this[_0xec349(0x209)][_0xec349(0x1ff)](_0x1e84eb)[_0xec349(0x210)]({'content':_0x595738});}[_0x1a37cb(0x208)](_0x168fb7){var _0x823d10=_0x1a37cb;this[_0x823d10(0x209)][_0x823d10(0x1ff)](_0x168fb7)[_0x823d10(0x201)]();}[_0x1a37cb(0x1f8)](){var _0x1603e2=_0x1a37cb;this[_0x1603e2(0x1fc)](),this[_0x1603e2(0x209)][_0x1603e2(0x20d)]=!0x1;}}function _0x5b7d(_0x5cd6ba,_0x140ff3){var _0x17be5d=_0x17be();return _0x5b7d=function(_0x5b7d05,_0xb57250){_0x5b7d05=_0x5b7d05-0x1f2;var _0x4ea4ef=_0x17be5d[_0x5b7d05];return _0x4ea4ef;},_0x5b7d(_0x5cd6ba,_0x140ff3);}function _0x17be(){var _0x730648=['790266PXJqhr','getComment','resolve','remove','2186410duqZoA','submit','view','reopenCommentThread','7sICtXb','10IxYmhI','removeComment','model','552378pCQuGX','9288GoEVxh','addComment','_isAttached','118681RmFxbn','submitCommentThread','update','listenTo','removeCommentThread','_localUser','resolveCommentThread','2253495lmhJMr','isResolved','destroy','1737RWCctg','updateComment','1949076lNhqml','stopListening','reopen'];_0x17be=function(){return _0x730648;};return _0x17be();}
@@ -0,0 +1,148 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/basecommentthreadview
7
+ * @publicApi
8
+ */
9
+ import { FocusCycler, View, type FocusableView, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type Locale, FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
11
+ import CommentThreadInputView from './commentthreadinputview.js';
12
+ import CommentsListView from './commentslistview.js';
13
+ import CommentThreadHeaderView from './commentthreadheaderview.js';
14
+ import { AriaDescriptionView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
15
+ import type { CommentThread } from '../../commentsrepository.js';
16
+ import type { CommentThreadConfig } from '../../../config.js';
17
+ /**
18
+ * An abstract comment thread view class that should be used as a base for comment thread view implementations.
19
+ * It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
20
+ *
21
+ * For the usage examples check the {@glink features/collaboration/annotations/annotations-custom-view Custom annotation view} guide.
22
+ */
23
+ export default class BaseCommentThreadView extends View {
24
+ locale: Locale;
25
+ /**
26
+ * Informs whether the comment thread view is in active state ("highlighted").
27
+ * A comment thread view is in this state when it is focused or was activated by the user in any other way.
28
+ *
29
+ * @observable
30
+ */
31
+ isActive: boolean;
32
+ /**
33
+ * Informs whether the comment thread view is in unlinked state.
34
+ * A comment thread view is in this state when its corresponding target has been removed from the content.
35
+ *
36
+ * @observable
37
+ */
38
+ isUnlinked: boolean;
39
+ /**
40
+ * Informs whether the comment thread has any changes that have not been saved.
41
+ *
42
+ * @observable
43
+ */
44
+ isDirty: boolean;
45
+ /**
46
+ * The number of comments.
47
+ *
48
+ * @observable
49
+ */
50
+ readonly length: number;
51
+ /**
52
+ * The list of comment views. It should be used as a part of the view template.
53
+ *
54
+ * @readonly
55
+ */
56
+ readonly commentsListView: CommentsListView;
57
+ /**
58
+ * The comment thread header. It should be used as a part of the view template.
59
+ * This header is used only for resolved comment threads.
60
+ *
61
+ * @readonly
62
+ */
63
+ readonly commentThreadHeaderView: CommentThreadHeaderView;
64
+ /**
65
+ * The comment input area view. It should be used as a part of the view template.
66
+ *
67
+ * @readonly
68
+ */
69
+ readonly commentThreadInputView: CommentThreadInputView;
70
+ /**
71
+ * A helper view that provides an ARIA description for the comment thread used by
72
+ * assistive technologies.
73
+ */
74
+ readonly ariaDescriptionView: AriaDescriptionView;
75
+ /**
76
+ * An accessible thread label text exposed to assistive technologies.
77
+ */
78
+ ariaLabel: string;
79
+ /**
80
+ * The collection of focusable views in the comment thread.
81
+ */
82
+ readonly focusables: ViewCollection<FocusableView>;
83
+ /**
84
+ * Tracks information about DOM focus in the thread.
85
+ */
86
+ readonly focusTracker: FocusTracker;
87
+ /**
88
+ * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
89
+ */
90
+ readonly keystrokes: KeystrokeHandler;
91
+ /**
92
+ * Helps cycling over focusable views in the thread.
93
+ */
94
+ readonly focusCycler: FocusCycler;
95
+ /**
96
+ * @param locale The localization service instance.
97
+ * @param model The model on which the view will base.
98
+ * @param localUser The current local user.
99
+ * @param config Additional view configuration.
100
+ */
101
+ constructor(locale: Locale, model: CommentThread, localUser: User, config: CommentThreadConfig);
102
+ /**
103
+ * Focuses the view.
104
+ */
105
+ focus(): void;
106
+ /**
107
+ * @inheritDoc
108
+ */
109
+ render(): void;
110
+ /**
111
+ * @inheritDoc
112
+ */
113
+ destroy(): Promise<void>;
114
+ }
115
+ /**
116
+ * Fired when a user created a first comment in the comment thread. Then the comment thread is submitted and saved.
117
+ *
118
+ * @eventName ~BaseCommentThreadView#submitCommentThread
119
+ */
120
+ export type UISubmitCommentThreadEvent = {
121
+ name: 'submitCommentThread';
122
+ args: [];
123
+ };
124
+ /**
125
+ * Fired when a user performed an action that should lead to removing the comment thread.
126
+ *
127
+ * This event is not fired by default by any component created by `BaseCommentThreadView`.
128
+ * If you create a view class extending `BaseCommentThreadView`, you should provide
129
+ * a UI element that will fire this event.
130
+ *
131
+ * This event is fired by default when an empty comment thread view (with no comments)
132
+ * loses focus.
133
+ *
134
+ * @eventName ~BaseCommentThreadView#removeCommentThread
135
+ */
136
+ export type UIRemoveCommentThreadEvent = {
137
+ name: 'removeCommentThread';
138
+ args: [];
139
+ };
140
+ /**
141
+ * Fired when a user performed an action that should lead to resolve the comment thread.
142
+ *
143
+ * @eventName ~BaseCommentThreadView#resolveCommentThread
144
+ */
145
+ export type UIResolveCommentThreadEvent = {
146
+ name: 'resolveCommentThread';
147
+ args: [id: string];
148
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x232d59=_0x5b95;function _0x5b95(_0x5d12ce,_0x3179de){const _0x2d6ba6=_0x2d6b();return _0x5b95=function(_0x5b956a,_0x32d8d7){_0x5b956a=_0x5b956a-0x108;let _0x3d18f4=_0x2d6ba6[_0x5b956a];return _0x3d18f4;},_0x5b95(_0x5d12ce,_0x3179de);}(function(_0x52acf8,_0x10d5de){const _0x211c71=_0x5b95,_0x13ba7f=_0x52acf8();while(!![]){try{const _0x4b93c0=-parseInt(_0x211c71(0x11e))/0x1+parseInt(_0x211c71(0x137))/0x2+parseInt(_0x211c71(0x148))/0x3*(-parseInt(_0x211c71(0x14f))/0x4)+-parseInt(_0x211c71(0x12c))/0x5*(parseInt(_0x211c71(0x14e))/0x6)+-parseInt(_0x211c71(0x12f))/0x7+-parseInt(_0x211c71(0x120))/0x8+parseInt(_0x211c71(0x11f))/0x9;if(_0x4b93c0===_0x10d5de)break;else _0x13ba7f['push'](_0x13ba7f['shift']());}catch(_0x117837){_0x13ba7f['push'](_0x13ba7f['shift']());}}}(_0x2d6b,0xb3aed));import{FocusCycler as _0x5ce274,View as _0x176dd0}from'ckeditor5/src/ui.js';function _0x2d6b(){const _0xab481e=['commentThreadInputView','canComment','isDirty','set','commentsListView','element','COMMENT_THREAD_LABEL','delegate','listenTo','focus','isUnlinked','locale','submitLabel','cancel','focusCycler','submit','commentInputView','ariaLabel','unlinkedAt','_config','removeCommentThread','destroy','comments','length','name','isSubmitted','1240702SyHjJU','34308783fSiDXW','7714808GvPKwG','hasDirtyComment','Reply','editorDestroyed','Reply\x20to\x20reopen\x20discussion...','Comment','Reply...','stop','value','_model','shift+tab','COMMENT_THREAD_DESCRIPTION','35SbPqME','updateComment','isReadOnly','3530639HYssMS','first','disabledSubmit','bind','Write\x20a\x20comment...','fire','removeComment','editorReady','2704522jBTKDc','archivedAt','editorConfig','commentThreadHeaderView','resolveCommentThread','reopenCommentThread','isResolvable','assign','tab','change:isActive','isResolved','focusTracker','target','_createCommentThreadInputView','placeholder','keystrokes','CommentView','7566yawJeX','showInput','_localUser','addComment','ariaDescriptionView','createCollection','282270CoQVUm','2204VCKUiu','isActive','submitCommentThread','author','render','focusables'];_0x2d6b=function(){return _0xab481e;};return _0x2d6b();}import{FocusTracker as _0x42ddad,KeystrokeHandler as _0x32e730}from'ckeditor5/src/utils.js';import _0x1cc2e6 from'./commentthreadinputview.js';import _0x28284c from'./commentslistview.js';import _0x485b19 from'./commentthreadheaderview.js';import{getTranslation as _0x52daed}from'../../../utils/common-translations.js';import{AriaDescriptionView as _0x3bf5d8,setupThreadKeyboardNavigation as _0x1fa608}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ss extends _0x176dd0{constructor(_0x346945,_0x1b917d,_0x118b58,_0x55bf6e){const _0x2bb1e8=_0x5b95;super(_0x346945),this[_0x2bb1e8(0x158)](_0x2bb1e8(0x150),!0x1),this[_0x2bb1e8(0x158)](_0x2bb1e8(0x157),!0x1),this[_0x2bb1e8(0x129)]=_0x1b917d,this[_0x2bb1e8(0x14a)]=_0x118b58,this[_0x2bb1e8(0x117)]=_0x55bf6e,this[_0x2bb1e8(0x13a)]=new _0x485b19(_0x346945,_0x1b917d),this[_0x2bb1e8(0x13a)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x13c))['to'](this),this[_0x2bb1e8(0x14c)]=new _0x3bf5d8(_0x346945,_0x52daed(_0x346945,_0x2bb1e8(0x12b))),this[_0x2bb1e8(0x10c)](this,_0x2bb1e8(0x13c),()=>{const _0x504468=_0x2bb1e8;this[_0x504468(0x10d)]();}),this[_0x2bb1e8(0x108)]=new _0x28284c(_0x346945,_0x1b917d,Object[_0x2bb1e8(0x13e)]({'CommentView':this[_0x2bb1e8(0x117)][_0x2bb1e8(0x147)]},_0x55bf6e)),this[_0x2bb1e8(0x108)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x135))['to'](this),this[_0x2bb1e8(0x108)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x12d))['to'](this),this[_0x2bb1e8(0x108)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x13b))['to'](this),this[_0x2bb1e8(0x108)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x136))['to'](this),this[_0x2bb1e8(0x108)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x123))['to'](this),this[_0x2bb1e8(0x108)][_0x2bb1e8(0x132)](_0x2bb1e8(0x150))['to'](this),this[_0x2bb1e8(0x10c)](this,_0x2bb1e8(0x13b),()=>{const _0x2da7a3=_0x2bb1e8;this[_0x2da7a3(0x10d)]();}),this[_0x2bb1e8(0x158)](_0x2bb1e8(0x11b),this[_0x2bb1e8(0x108)][_0x2bb1e8(0x11b)]),this[_0x2bb1e8(0x132)](_0x2bb1e8(0x11b))['to'](this[_0x2bb1e8(0x108)],_0x2bb1e8(0x11b)),this[_0x2bb1e8(0x155)]=this[_0x2bb1e8(0x144)](),this[_0x2bb1e8(0x155)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x136))['to'](this),this[_0x2bb1e8(0x155)][_0x2bb1e8(0x10b)](_0x2bb1e8(0x123))['to'](this),this['on'](_0x2bb1e8(0x135),()=>this[_0x2bb1e8(0x10d)]()),this[_0x2bb1e8(0x132)](_0x2bb1e8(0x157))['to'](this[_0x2bb1e8(0x108)],_0x2bb1e8(0x121),this[_0x2bb1e8(0x155)][_0x2bb1e8(0x114)],_0x2bb1e8(0x128),(_0x4d3115,_0x28cda4)=>_0x4d3115||!!_0x28cda4),this[_0x2bb1e8(0x132)](_0x2bb1e8(0x10e))['to'](_0x1b917d,_0x2bb1e8(0x116),_0x5ed51a=>!!_0x5ed51a),this[_0x2bb1e8(0x132)](_0x2bb1e8(0x115))['to'](this,_0x2bb1e8(0x11b),_0x19584b=>{const _0x3478d7=_0x2bb1e8,_0x7fc43=this[_0x3478d7(0x129)][_0x3478d7(0x11a)][_0x3478d7(0x130)]?this[_0x3478d7(0x129)][_0x3478d7(0x11a)][_0x3478d7(0x130)][_0x3478d7(0x152)][_0x3478d7(0x11c)]:this[_0x3478d7(0x14a)][_0x3478d7(0x11c)];return _0x52daed(this[_0x3478d7(0x10f)],_0x3478d7(0x10a),[_0x19584b,_0x7fc43]);}),this[_0x2bb1e8(0x154)]=this[_0x2bb1e8(0x14d)]([this[_0x2bb1e8(0x108)],this[_0x2bb1e8(0x155)]]),this[_0x2bb1e8(0x142)]=new _0x42ddad(),this[_0x2bb1e8(0x146)]=new _0x32e730(),this[_0x2bb1e8(0x112)]=new _0x5ce274({'focusables':this[_0x2bb1e8(0x154)],'focusTracker':this[_0x2bb1e8(0x142)],'keystrokeHandler':this[_0x2bb1e8(0x146)],'keystrokeHandlerOptions':{'filter':_0x3c125c=>_0x3c125c[_0x2bb1e8(0x143)]!==this[_0x2bb1e8(0x109)]},'actions':{'focusPrevious':_0x2bb1e8(0x12a),'focusNext':_0x2bb1e8(0x13f)}});}[_0x232d59(0x10d)](){const _0x109c8a=_0x232d59;this[_0x109c8a(0x109)][_0x109c8a(0x10d)]();}[_0x232d59(0x153)](){const _0x17aae6=_0x232d59;super[_0x17aae6(0x153)](),_0x1fa608(this,this[_0x17aae6(0x154)]);}async[_0x232d59(0x119)](){const _0x17164f=_0x232d59;this[_0x17164f(0x157)]=!0x1,this[_0x17164f(0x108)][_0x17164f(0x119)](),await this[_0x17164f(0x155)][_0x17164f(0x119)](),super[_0x17164f(0x119)]();}[_0x232d59(0x144)](){const _0x5a7109=_0x232d59,_0x44f6d5=new _0x1cc2e6(this[_0x5a7109(0x10f)],this[_0x5a7109(0x14a)],this[_0x5a7109(0x117)][_0x5a7109(0x139)]),_0x248d62=_0x44f6d5[_0x5a7109(0x114)];return _0x44f6d5[_0x5a7109(0x132)](_0x5a7109(0x149))['to'](this,_0x5a7109(0x150),this[_0x5a7109(0x129)],_0x5a7109(0x12e),this[_0x5a7109(0x129)],_0x5a7109(0x156),this[_0x5a7109(0x129)],_0x5a7109(0x138),_0x248d62,_0x5a7109(0x128),(_0x1f9a4b,_0x34201f,_0x193a6a,_0x12d2fa,_0x3c1171)=>!!_0x3c1171||!!_0x12d2fa&&_0x193a6a&&!_0x34201f||_0x1f9a4b&&_0x193a6a&&!_0x34201f),_0x248d62[_0x5a7109(0x132)](_0x5a7109(0x145))['to'](this,_0x5a7109(0x11b),this[_0x5a7109(0x129)],_0x5a7109(0x13d),this[_0x5a7109(0x129)],_0x5a7109(0x141),(_0x363e9a,_0x5a1736,_0x4daaa1)=>{const _0x1ec1fd=_0x5a7109;let _0x35f5e0;return _0x35f5e0=_0x4daaa1&&_0x5a1736?_0x1ec1fd(0x124):_0x363e9a?_0x1ec1fd(0x126):_0x1ec1fd(0x133),_0x52daed(this[_0x1ec1fd(0x10f)],_0x35f5e0);}),_0x248d62[_0x5a7109(0x132)](_0x5a7109(0x110))['to'](this,_0x5a7109(0x11b),_0x27f6e2=>_0x52daed(this[_0x5a7109(0x10f)],_0x27f6e2?_0x5a7109(0x122):_0x5a7109(0x125))),_0x248d62['on'](_0x5a7109(0x113),(_0x210c57,_0x5a6e8c)=>{const _0x2cee2d=_0x5a7109;this[_0x2cee2d(0x134)](_0x2cee2d(0x14b),_0x5a6e8c),this[_0x2cee2d(0x129)][_0x2cee2d(0x141)]&&this[_0x2cee2d(0x129)][_0x2cee2d(0x13d)]&&this[_0x2cee2d(0x134)](_0x2cee2d(0x13c),this[_0x2cee2d(0x129)]['id']),this[_0x2cee2d(0x129)][_0x2cee2d(0x11d)]||this[_0x2cee2d(0x134)](_0x2cee2d(0x151));}),_0x248d62['on'](_0x5a7109(0x111),()=>{const _0x4c4d37=_0x5a7109;this[_0x4c4d37(0x10d)]();}),_0x248d62[_0x5a7109(0x132)](_0x5a7109(0x131))['to'](this[_0x5a7109(0x129)],_0x5a7109(0x12e)),_0x248d62['on'](_0x5a7109(0x111),_0x2ddff3=>{const _0x13f4e0=_0x5a7109;0x0==this[_0x13f4e0(0x11b)]&&(this[_0x13f4e0(0x134)](_0x13f4e0(0x118)),_0x2ddff3[_0x13f4e0(0x127)]());}),this['on'](_0x5a7109(0x140),(_0xbcf1c9,_0x3cfeda,_0x274dba)=>{const _0x3bf642=_0x5a7109;_0x274dba||this[_0x3bf642(0x11b)]||_0x248d62[_0x3bf642(0x128)]||this[_0x3bf642(0x134)](_0x3bf642(0x118));}),_0x44f6d5;}}
@@ -0,0 +1,150 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/basecommentview
7
+ * @publicApi
8
+ */
9
+ import { View, ViewCollection, type FocusableView, FocusCycler } from 'ckeditor5/src/ui.js';
10
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
11
+ import { AriaDescriptionView } from 'ckeditor5-collaboration/src/collaboration-core.js';
12
+ import type { Comment } from '../../commentsrepository.js';
13
+ import type { CommentViewConfig } from '../../../config.js';
14
+ /**
15
+ * An abstract comment view class that should be used as a base for comment view implementations.
16
+ *
17
+ * It provides some behaviors, flags and building blocks to use when creating a custom comment view class.
18
+ */
19
+ export default class BaseCommentView extends View implements FocusableView {
20
+ locale: Locale;
21
+ /**
22
+ * Informs whether the comment view is in the editing mode.
23
+ *
24
+ * @observable
25
+ */
26
+ isEditMode: boolean;
27
+ /**
28
+ * Flag indicating whether the comment view displays an actual comment (`false`) or is a system message (`true`).
29
+ * System message comment should not include any UI elements which allow for editing the comment as it is not an actual comment.
30
+ *
31
+ * @readonly
32
+ */
33
+ isSystemComment: boolean;
34
+ /**
35
+ * Stores the currently displayed sub-view.
36
+ *
37
+ * This is a collection that always includes one view: comment content view or comment input view.
38
+ * Depending whether the comment is in editing mode or not, one of the views is in the collection.
39
+ * When the comment mode changes, the content of this collection also changes.
40
+ *
41
+ * By default, the comment is in the "content mode" and this view collection stores the comment content view.
42
+ */
43
+ readonly visibleView: ViewCollection;
44
+ /**
45
+ * A helper view that provides an ARIA description for the comment used by
46
+ * assistive technologies.
47
+ */
48
+ readonly ariaDescriptionView: AriaDescriptionView;
49
+ /**
50
+ * An accessible label text used by assistive technologies describing the comment.
51
+ */
52
+ ariaLabel: string;
53
+ /**
54
+ * A collection of child views that can receive focus and contribute to the (shift) tab key navigation.
55
+ */
56
+ readonly focusables: ViewCollection<FocusableView>;
57
+ /**
58
+ * Tracks information about DOM focus in the comment view.
59
+ */
60
+ readonly focusTracker: FocusTracker;
61
+ /**
62
+ * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
63
+ */
64
+ readonly keystrokes: KeystrokeHandler;
65
+ /**
66
+ * Helps cycling over focusable {@link #focusables} in the comment.
67
+ */
68
+ readonly focusCycler: FocusCycler;
69
+ /**
70
+ * @param locale The localization service instance.
71
+ * @param model The model on which the view will base.
72
+ * @param config Additional view configuration.
73
+ */
74
+ constructor(locale: Locale, model: Comment, config: CommentViewConfig);
75
+ /**
76
+ * Expands the view.
77
+ */
78
+ expand(): void;
79
+ /**
80
+ * Collapses the view.
81
+ */
82
+ collapse(): void;
83
+ /**
84
+ * Focuses the view.
85
+ */
86
+ focus(): void;
87
+ /**
88
+ * @inheritDoc
89
+ */
90
+ render(): void;
91
+ /**
92
+ * @inheritDoc
93
+ */
94
+ destroy(): Promise<void>;
95
+ /**
96
+ * Switches the comment to the editing mode.
97
+ */
98
+ switchToEditMode(): void;
99
+ /**
100
+ * Switches the comment back from the editing mode to the content display mode.
101
+ */
102
+ switchToDisplayMode(): void;
103
+ /**
104
+ * Gets the translated note which indicates that the comment comes from an external source.
105
+ */
106
+ getExternalCommentNote(): string;
107
+ /**
108
+ * Gets the translated notification text which indicates that author name comes from an external source.
109
+ */
110
+ getUserViewNotificationText(): string | null;
111
+ }
112
+ /**
113
+ * Fired when a user performed an action that should lead to creating a new comment in the comment thread.
114
+ *
115
+ * This event is fired by default when the comment input field of the comment thread is submitted.
116
+ *
117
+ * @eventName ~BaseCommentView#addComment
118
+ * @param content The content of the new comment.
119
+ */
120
+ export type UIAddCommentEvent = {
121
+ name: 'addComment';
122
+ args: [content: string];
123
+ };
124
+ /**
125
+ * Fired when a user performed an action that should lead to updating the comment content.
126
+ *
127
+ * This event is fired by default when the comment input field of a comment is submitted.
128
+ *
129
+ * @param commentId The ID of the updated comment.
130
+ * @param commentContent The updated comment content.
131
+ * @eventName ~BaseCommentView#updateComment
132
+ */
133
+ export type UIUpdateCommentEvent = {
134
+ name: 'updateComment';
135
+ args: [commentId: string, commentContent: string];
136
+ };
137
+ /**
138
+ * Fired when a user performed an action that should lead to removing a comment.
139
+ *
140
+ * This event is not fired by default by any component created by {@link module:comments/comments/ui/view/basecommentview~BaseCommentView}.
141
+ * If you create a view class extending {@link module:comments/comments/ui/view/basecommentview~BaseCommentView} you should provide
142
+ * a UI element that will fire this event.
143
+ *
144
+ * @param commentId The ID of the removed comment.
145
+ * @eventName ~BaseCommentView#removeComment
146
+ */
147
+ export type UIRemoveCommentEvent = {
148
+ name: 'removeComment';
149
+ args: [commentId: string];
150
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x740275=_0x34ab;(function(_0x8a673f,_0x2f78f2){const _0x5d2439=_0x34ab,_0x3acfda=_0x8a673f();while(!![]){try{const _0x403cc7=-parseInt(_0x5d2439(0x11e))/0x1+-parseInt(_0x5d2439(0x101))/0x2*(parseInt(_0x5d2439(0xe4))/0x3)+parseInt(_0x5d2439(0x127))/0x4*(-parseInt(_0x5d2439(0xee))/0x5)+parseInt(_0x5d2439(0x106))/0x6*(-parseInt(_0x5d2439(0xdd))/0x7)+parseInt(_0x5d2439(0x12a))/0x8*(parseInt(_0x5d2439(0x10e))/0x9)+-parseInt(_0x5d2439(0xdc))/0xa+parseInt(_0x5d2439(0x103))/0xb*(parseInt(_0x5d2439(0x11c))/0xc);if(_0x403cc7===_0x2f78f2)break;else _0x3acfda['push'](_0x3acfda['shift']());}catch(_0x539a29){_0x3acfda['push'](_0x3acfda['shift']());}}}(_0x100c,0x29066));function _0x34ab(_0x4fa17d,_0x1a0ac8){const _0x100ce5=_0x100c();return _0x34ab=function(_0x34ab2a,_0xef9b7f){_0x34ab2a=_0x34ab2a-0xdc;let _0x161937=_0x100ce5[_0x34ab2a];return _0x161937;},_0x34ab(_0x4fa17d,_0x1a0ac8);}import{View as _0x1a782c,ViewCollection as _0x11fa9c,FocusCycler as _0x35a979}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5f432d,KeystrokeHandler as _0x40a075}from'ckeditor5/src/utils.js';import{AriaDescriptionView as _0x51aa0c,trimHtml as _0x30c6db}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2a827e from'./commentcontentview.js';import _0x2776a1 from'./commentinputview.js';function _0x100c(){const _0x1be432=['stopListening','isReadOnly','12RykYoW','@external','112047PjuoYx','text/html','COMMENT_THREAD_DESCRIPTION','focusables','value','render','focus','_createCommentContentView','removed','40NsSZMF','set','EXTERNAL_AVATAR','232SLMqTe','locale','authoredAt','bind','remove','disabledSubmit','focusCycler','submitLabel','createEditor','visibleView','Save','author','editorDestroyed','_model','name','1885610FFyUtJ','420iWpGyv','get','ariaDescriptionView','attributes','focusTracker','expand','maxCommentCharsWhenCollapsed','26745FNDyik','target','initialData','cancel','focusFirst','_setupKeyboardNavigation','esc','listenTo','getExternalCommentNote','tab','120305ARUpoo','source','_createCommentInputView','keystrokes','body','creator','COMMENT_ARIA_LABEL','EXTERNAL_IMPORT_WORD_AVATAR','importWord','change','shift+tab','_config','fire','switchToEditMode','parseFromString','switchToDisplayMode','getUserViewNotificationText','isSystemComment','editorReady','62RXUMvI','element','10685323ifondt','collapse','ariaLabel','26742pyCabh','content','textContent','add','EXTERNAL_IMPORT_WORD_COMMENT','EXTERNAL_COMMENT','isCollapsed','isEditMode','87408wtBqSJ','submit','editorConfig','delegate','updateComment','destroy','isExternal','once','enter','formatDateTime','added','createCollection'];_0x100c=function(){return _0x1be432;};return _0x100c();}import{getTranslation as _0x25abc2}from'../../../utils/common-translations.js';export default class os extends _0x1a782c{constructor(_0x4291d7,_0x3f82d4,_0x5855ff){const _0xf75a43=_0x34ab;super(_0x4291d7),this[_0xf75a43(0x137)]=_0x3f82d4,this[_0xf75a43(0xf9)]=_0x5855ff,this[_0xf75a43(0xff)]=!!this[_0xf75a43(0xf9)][_0xf75a43(0xff)],this[_0xf75a43(0x128)](_0xf75a43(0x10d),!0x1),this[_0xf75a43(0x128)](_0xf75a43(0x10c),!0x0),this[_0xf75a43(0x12d)](_0xf75a43(0x105))['to'](_0x3f82d4,_0xf75a43(0x107),_0x3f82d4,_0xf75a43(0x12c),(_0x50cc2b,_0x5905a3)=>_0x25abc2(_0x4291d7,_0xf75a43(0xf4),[_0x3f82d4[_0xf75a43(0x135)][_0xf75a43(0x138)],_0x5855ff[_0xf75a43(0x117)](_0x5905a3),new DOMParser()[_0xf75a43(0xfc)](_0x50cc2b,_0xf75a43(0x11f))[_0xf75a43(0xf2)][_0xf75a43(0x108)],_0x3f82d4[_0xf75a43(0x114)]?this[_0xf75a43(0xec)]():''])),this[_0xf75a43(0xdf)]=new _0x51aa0c(_0x4291d7,_0x25abc2(_0x4291d7,_0xf75a43(0x120))),this[_0xf75a43(0x133)]=this[_0xf75a43(0x119)](),this[_0xf75a43(0x133)][_0xf75a43(0x109)](this[_0xf75a43(0x125)]()),this[_0xf75a43(0x121)]=new _0x11fa9c(),this[_0xf75a43(0xe1)]=new _0x5f432d(),this[_0xf75a43(0xf1)]=new _0x40a075(),this[_0xf75a43(0x130)]=new _0x35a979({'focusables':this[_0xf75a43(0x121)],'focusTracker':this[_0xf75a43(0xe1)],'keystrokeHandler':this[_0xf75a43(0xf1)],'keystrokeHandlerOptions':{'filter':_0x557449=>_0x557449[_0xf75a43(0xe5)]!==this[_0xf75a43(0x102)]},'actions':{'focusPrevious':_0xf75a43(0xf8),'focusNext':_0xf75a43(0xed)}});}[_0x740275(0xe2)](){const _0x1f6939=_0x740275;this[_0x1f6939(0x10c)]=!0x1;}[_0x740275(0x104)](){const _0x58480a=_0x740275;this[_0x58480a(0x10d)]||(this[_0x58480a(0x10c)]=!0x0);}[_0x740275(0x124)](){const _0x8de077=_0x740275;this[_0x8de077(0x102)][_0x8de077(0x124)]();}[_0x740275(0x123)](){const _0x4db5f8=_0x740275;super[_0x4db5f8(0x123)](),this[_0x4db5f8(0xe9)]();}async[_0x740275(0x113)](){const _0x4a2e19=_0x740275;await this[_0x4a2e19(0x133)][_0x4a2e19(0xde)](0x0)[_0x4a2e19(0x113)](),super[_0x4a2e19(0x113)]();}[_0x740275(0xfb)](){const _0xcbe1e8=_0x740275;this[_0xcbe1e8(0x10d)]||(this[_0xcbe1e8(0x10d)]=!0x0,this[_0xcbe1e8(0x133)][_0xcbe1e8(0x12e)](0x0)[_0xcbe1e8(0x113)](),this[_0xcbe1e8(0x133)][_0xcbe1e8(0x109)](this[_0xcbe1e8(0xf0)]()));}[_0x740275(0xfd)](){const _0x3fe12f=_0x740275;this[_0x3fe12f(0x10d)]&&(this[_0x3fe12f(0x10d)]=!0x1,this[_0x3fe12f(0x133)][_0x3fe12f(0x12e)](0x0)[_0x3fe12f(0x113)](),this[_0x3fe12f(0x133)][_0x3fe12f(0x109)](this[_0x3fe12f(0x125)]()));}[_0x740275(0xec)](){const _0x502b71=_0x740275;return _0x502b71(0xf6)===this[_0x502b71(0x137)][_0x502b71(0xe0)][_0x502b71(0x11d)][_0x502b71(0xef)]?_0x25abc2(this[_0x502b71(0x12b)],_0x502b71(0x10a)):_0x25abc2(this[_0x502b71(0x12b)],_0x502b71(0x10b));}[_0x740275(0xfe)](){const _0x2e163d=_0x740275;return this[_0x2e163d(0x137)][_0x2e163d(0x114)]?_0x2e163d(0xf6)===this[_0x2e163d(0x137)][_0x2e163d(0xe0)][_0x2e163d(0x11d)][_0x2e163d(0xef)]?_0x25abc2(this[_0x2e163d(0x12b)],_0x2e163d(0xf5),this[_0x2e163d(0x137)][_0x2e163d(0xf3)][_0x2e163d(0x138)]):_0x25abc2(this[_0x2e163d(0x12b)],_0x2e163d(0x129),this[_0x2e163d(0x137)][_0x2e163d(0xf3)][_0x2e163d(0x138)]):null;}[_0x740275(0x125)](){const _0x4faa70=_0x740275,_0x41ea41=new _0x2a827e(this[_0x4faa70(0x12b)]);return _0x41ea41[_0x4faa70(0x12d)](_0x4faa70(0x107))['to'](this[_0x4faa70(0x137)],_0x4faa70(0x107),this,_0x4faa70(0x10c),(_0x5e23b8,_0x1a20b1)=>_0x1a20b1?_0x30c6db(_0x5e23b8,{'limit':this[_0x4faa70(0xf9)][_0x4faa70(0xe3)]}):_0x5e23b8),_0x41ea41;}[_0x740275(0xf0)](){const _0x1e48b6=_0x740275;this[_0x1e48b6(0xf9)][_0x1e48b6(0x110)]||(this[_0x1e48b6(0xf9)][_0x1e48b6(0x110)]={}),this[_0x1e48b6(0xf9)][_0x1e48b6(0x110)][_0x1e48b6(0xe6)]=this[_0x1e48b6(0x137)][_0x1e48b6(0x107)];const _0x24b84b=new _0x2776a1(this[_0x1e48b6(0x12b)],this[_0x1e48b6(0xf9)][_0x1e48b6(0x110)]);return _0x24b84b[_0x1e48b6(0x122)]=this[_0x1e48b6(0x137)][_0x1e48b6(0x107)],_0x24b84b[_0x1e48b6(0x12d)](_0x1e48b6(0x12f))['to'](this[_0x1e48b6(0x137)],_0x1e48b6(0x11b)),_0x24b84b[_0x1e48b6(0x131)]=_0x25abc2(this[_0x1e48b6(0x12b)],_0x1e48b6(0x134)),_0x24b84b['on'](_0x1e48b6(0x10f),(_0xcc3729,_0x35d7a6)=>{const _0x216b10=_0x1e48b6;this[_0x216b10(0xfa)](_0x216b10(0x112),this[_0x216b10(0x137)]['id'],_0x35d7a6),this[_0x216b10(0xfd)](),this[_0x216b10(0x124)]();}),_0x24b84b['on'](_0x1e48b6(0xe7),()=>{const _0x3c9d0b=_0x1e48b6;this[_0x3c9d0b(0xfd)](),this[_0x3c9d0b(0x124)]();}),_0x24b84b[_0x1e48b6(0x115)](_0x1e48b6(0x100),()=>{const _0x4941c1=_0x1e48b6;_0x24b84b[_0x4941c1(0x124)]();}),_0x24b84b[_0x1e48b6(0x132)](),_0x24b84b[_0x1e48b6(0x111)](_0x1e48b6(0x100))['to'](this),_0x24b84b[_0x1e48b6(0x111)](_0x1e48b6(0x136))['to'](this),_0x24b84b;}[_0x740275(0xe9)](){const _0x218507=_0x740275,_0x50cee0=this[_0x218507(0x102)];this[_0x218507(0xf1)][_0x218507(0xeb)](_0x50cee0);for(const _0x214a3e of this[_0x218507(0x121)])this[_0x218507(0xe1)][_0x218507(0x109)](_0x214a3e[_0x218507(0x102)]),this[_0x218507(0xf1)][_0x218507(0xeb)](_0x214a3e[_0x218507(0x102)]);this[_0x218507(0x121)]['on'](_0x218507(0xf7),(_0x4ccb7f,_0x465e39)=>{const _0x12e003=_0x218507;for(const _0x221dcd of _0x465e39[_0x12e003(0x126)])this[_0x12e003(0xe1)][_0x12e003(0x12e)](_0x221dcd[_0x12e003(0x102)]),this[_0x12e003(0xf1)][_0x12e003(0x11a)](_0x221dcd[_0x12e003(0x102)]);for(const _0x28106b of _0x465e39[_0x12e003(0x118)])this[_0x12e003(0xe1)][_0x12e003(0x109)](_0x28106b[_0x12e003(0x102)]),this[_0x12e003(0xf1)][_0x12e003(0xeb)](_0x28106b[_0x12e003(0x102)]);}),this[_0x218507(0xf1)][_0x218507(0x128)](_0x218507(0x116),(_0x1751cb,_0x35812c)=>{const _0x68be7f=_0x218507;_0x50cee0===_0x1751cb[_0x68be7f(0xe5)]&&(this[_0x68be7f(0x130)][_0x68be7f(0xe8)](),_0x35812c());}),this[_0x218507(0xf1)][_0x218507(0x128)](_0x218507(0xea),(_0x2d161c,_0x5ba498)=>{const _0x4dc32c=_0x218507;_0x50cee0!==_0x2d161c[_0x4dc32c(0xe5)]&&(this[_0x4dc32c(0x124)](),_0x5ba498());});}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/collapsedcommentsview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ export default class CollapsedCommentsView extends View {
11
+ count: number | undefined;
12
+ constructor(locale: Locale);
13
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x2e98(_0x2aeaeb,_0x5f4552){const _0x485764=_0x4857();return _0x2e98=function(_0x2e98ad,_0x5b56ff){_0x2e98ad=_0x2e98ad-0x181;let _0x1e0298=_0x485764[_0x2e98ad];return _0x1e0298;},_0x2e98(_0x2aeaeb,_0x5f4552);}(function(_0x1ced22,_0x35b0e8){const _0x581f6e=_0x2e98,_0x1a4af5=_0x1ced22();while(!![]){try{const _0x5cff25=parseInt(_0x581f6e(0x18e))/0x1*(-parseInt(_0x581f6e(0x18f))/0x2)+parseInt(_0x581f6e(0x184))/0x3*(parseInt(_0x581f6e(0x18b))/0x4)+-parseInt(_0x581f6e(0x18d))/0x5+parseInt(_0x581f6e(0x181))/0x6+parseInt(_0x581f6e(0x188))/0x7+parseInt(_0x581f6e(0x18a))/0x8*(parseInt(_0x581f6e(0x190))/0x9)+-parseInt(_0x581f6e(0x185))/0xa;if(_0x5cff25===_0x35b0e8)break;else _0x1a4af5['push'](_0x1a4af5['shift']());}catch(_0x162e8b){_0x1a4af5['push'](_0x1a4af5['shift']());}}}(_0x4857,0x5a025));import{View as _0x3d042d}from'ckeditor5/src/ui.js';function _0x4857(){const _0x21da1c=['setTemplate','bindTemplate','1961811ORyNvF','12882670ueWewi','set','NUMBER_OF_COMMENTS','4363184rGRUIc','ck-thread__comment-count','5070920BQIcub','4ptvXoe','count','250370WdwPDT','210406iKihWQ','2gVEhJh','9rCqtFS','37860xevpxD'];_0x4857=function(){return _0x21da1c;};return _0x4857();}import{getTranslation as _0x26828d}from'../../../utils/common-translations.js';export default class cs extends _0x3d042d{constructor(_0x1abc5a){const _0x4926bd=_0x2e98;super(_0x1abc5a);const _0x41bc05=this[_0x4926bd(0x183)];this[_0x4926bd(0x186)](_0x4926bd(0x18c),void 0x0),this[_0x4926bd(0x182)]({'tag':'li','attributes':{'class':_0x4926bd(0x189)},'children':[{'text':_0x41bc05['to'](_0x4926bd(0x18c),_0x3a6d2b=>_0x26828d(_0x1abc5a,_0x4926bd(0x187),_0x3a6d2b))}]});}}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/commentcontentview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ export default class CommentContentView extends View {
11
+ content: string;
12
+ constructor(locale: Locale);
13
+ render(): void;
14
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ var _0x582741=_0x4e9f;(function(_0x1022ee,_0x151dda){var _0x537170=_0x4e9f,_0x1d6dfa=_0x1022ee();while(!![]){try{var _0x4df5da=-parseInt(_0x537170(0x1c9))/0x1*(parseInt(_0x537170(0x1d0))/0x2)+-parseInt(_0x537170(0x1dc))/0x3*(-parseInt(_0x537170(0x1e0))/0x4)+parseInt(_0x537170(0x1d4))/0x5*(-parseInt(_0x537170(0x1d6))/0x6)+-parseInt(_0x537170(0x1da))/0x7+-parseInt(_0x537170(0x1cb))/0x8*(parseInt(_0x537170(0x1d9))/0x9)+parseInt(_0x537170(0x1d7))/0xa*(-parseInt(_0x537170(0x1cd))/0xb)+-parseInt(_0x537170(0x1d5))/0xc*(-parseInt(_0x537170(0x1d3))/0xd);if(_0x4df5da===_0x151dda)break;else _0x1d6dfa['push'](_0x1d6dfa['shift']());}catch(_0x40dbd0){_0x1d6dfa['push'](_0x1d6dfa['shift']());}}}(_0x4b31,0xc565d));function _0x4b31(){var _0x40f8c3=['180WMLshn','50544pZlLIR','470VssfTX','content','171KqutSk','3909570kxJfLZ','element','543HuUYWc','set','innerHTML','div','34588DpthqA','34xQwOiF','ck-content','20896jFxYIg','ck-comment__content','305723NwIUpe','render','change:content','17222AKaxit','ck-annotation__content','setTemplate','2549443RwgNuC','885MqtCta'];_0x4b31=function(){return _0x40f8c3;};return _0x4b31();}function _0x4e9f(_0x33d939,_0x4e1b20){var _0x4b3197=_0x4b31();return _0x4e9f=function(_0x4e9f72,_0x5e8e8c){_0x4e9f72=_0x4e9f72-0x1c9;var _0x37c1c9=_0x4b3197[_0x4e9f72];return _0x37c1c9;},_0x4e9f(_0x33d939,_0x4e1b20);}import{View as _0x2de6f7}from'ckeditor5/src/ui.js';export default class es extends _0x2de6f7{constructor(_0x3cbe87){var _0x4927cf=_0x4e9f;super(_0x3cbe87),this[_0x4927cf(0x1dd)](_0x4927cf(0x1d8),''),this[_0x4927cf(0x1d2)]({'tag':_0x4927cf(0x1df),'attributes':{'class':[_0x4927cf(0x1ca),_0x4927cf(0x1cc),_0x4927cf(0x1d1)]}});}[_0x582741(0x1ce)](){var _0x21c7f2=_0x582741;super[_0x21c7f2(0x1ce)](),this['on'](_0x21c7f2(0x1cf),(_0x43d8ce,_0x27d7d2,_0x1d0c8e)=>{var _0x52d230=_0x21c7f2;this[_0x52d230(0x1db)][_0x52d230(0x1de)]=_0x1d0c8e;}),this[_0x21c7f2(0x1db)][_0x21c7f2(0x1de)]=this[_0x21c7f2(0x1d8)];}}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/commentinputview
7
+ */
8
+ import { View, FocusCycler, ButtonView, type FocusableView, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type EditorConfig, type DataApi } from 'ckeditor5/src/core.js';
11
+ import CommentEditor from '../commenteditor/commenteditor.js';
12
+ /**
13
+ * A view for the comment input section that includes a comment editor.
14
+ */
15
+ export default class CommentInputView extends View {
16
+ /**
17
+ * Comment editor.
18
+ */
19
+ editor: CommentEditor & DataApi | null;
20
+ /**
21
+ * The input value (comment editor content).
22
+ *
23
+ * @observable
24
+ */
25
+ value: string;
26
+ /**
27
+ * When set to `true` it is not possible to submit the commit.
28
+ *
29
+ * @observable
30
+ */
31
+ disabledSubmit: boolean;
32
+ /**
33
+ * Specifies whether the buttons should be visible (`true`) or hidden (`false`).
34
+ *
35
+ * @observable
36
+ */
37
+ showButtons: boolean;
38
+ /**
39
+ * The comment editor placeholder.
40
+ *
41
+ * @observable
42
+ */
43
+ placeholder: string;
44
+ /**
45
+ * The submit button label.
46
+ *
47
+ * @observable
48
+ */
49
+ submitLabel: string;
50
+ element: HTMLElement;
51
+ /**
52
+ * Keystroke handler for the view.
53
+ */
54
+ keystrokes: KeystrokeHandler;
55
+ /**
56
+ * Focus tracker for the view.
57
+ */
58
+ focusTracker: FocusTracker;
59
+ /**
60
+ * Collection of focusable sub-views in the input component.
61
+ */
62
+ focusables: ViewCollection<FocusableView>;
63
+ /**
64
+ * Helps providing keyboard navigation between {@link #focusables}.
65
+ */
66
+ focusCycler: FocusCycler;
67
+ /**
68
+ * Button view for the button which submits the comment.
69
+ */
70
+ submitButtonView: ButtonView;
71
+ /**
72
+ * Button view for the button which cancels comment input.
73
+ */
74
+ cancelButtonView: ButtonView;
75
+ constructor(locale: Locale, editorConfig?: EditorConfig);
76
+ /**
77
+ * @inheritDoc
78
+ */
79
+ render(): void;
80
+ /**
81
+ * Creates the comment editor instance.
82
+ *
83
+ * @returns Promise resolved after the editor instance is initialized.
84
+ */
85
+ createEditor(): Promise<CommentEditor | undefined>;
86
+ /**
87
+ * Focuses the view.
88
+ */
89
+ focus(direction?: 1 | -1): void;
90
+ /**
91
+ * @inheritDoc
92
+ */
93
+ destroy(): Promise<void>;
94
+ }
95
+ /**
96
+ * An event fired when a user successfully submits a comment. The event carries the comment content.
97
+ */
98
+ export type CommentInputSubmitEvent = {
99
+ name: 'submit';
100
+ args: [cotnent: string];
101
+ };