@ckeditor/ckeditor5-slash-command 44.1.0-alpha.5 → 44.2.0-alpha.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 (399) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/slash-command.js +3 -3
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/eo.js +1 -1
  20. package/build/translations/es-co.js +1 -1
  21. package/build/translations/es.js +1 -1
  22. package/build/translations/et.js +1 -1
  23. package/build/translations/eu.js +1 -1
  24. package/build/translations/fa.js +1 -1
  25. package/build/translations/fi.js +1 -1
  26. package/build/translations/fr.js +1 -1
  27. package/build/translations/gl.js +1 -1
  28. package/build/translations/gu.js +1 -1
  29. package/build/translations/he.js +1 -1
  30. package/build/translations/hi.js +1 -1
  31. package/build/translations/hr.js +1 -1
  32. package/build/translations/hu.js +1 -1
  33. package/build/translations/hy.js +1 -1
  34. package/build/translations/id.js +1 -1
  35. package/build/translations/it.js +1 -1
  36. package/build/translations/ja.js +1 -1
  37. package/build/translations/jv.js +1 -1
  38. package/build/translations/kk.js +1 -1
  39. package/build/translations/km.js +1 -1
  40. package/build/translations/kn.js +1 -1
  41. package/build/translations/ko.js +1 -1
  42. package/build/translations/ku.js +1 -1
  43. package/build/translations/lt.js +1 -1
  44. package/build/translations/lv.js +1 -1
  45. package/build/translations/ms.js +1 -1
  46. package/build/translations/nb.js +1 -1
  47. package/build/translations/ne.js +1 -1
  48. package/build/translations/nl.js +1 -1
  49. package/build/translations/no.js +1 -1
  50. package/build/translations/oc.js +1 -1
  51. package/build/translations/pl.js +1 -1
  52. package/build/translations/pt-br.js +1 -1
  53. package/build/translations/pt.js +1 -1
  54. package/build/translations/ro.js +1 -1
  55. package/build/translations/ru.js +1 -1
  56. package/build/translations/si.js +1 -1
  57. package/build/translations/sk.js +1 -1
  58. package/build/translations/sl.js +1 -1
  59. package/build/translations/sq.js +1 -1
  60. package/build/translations/sr-latn.js +1 -1
  61. package/build/translations/sr.js +1 -1
  62. package/build/translations/sv.js +1 -1
  63. package/build/translations/th.js +1 -1
  64. package/build/translations/ti.js +1 -1
  65. package/build/translations/tk.js +1 -1
  66. package/build/translations/tr.js +1 -1
  67. package/build/translations/tt.js +1 -1
  68. package/build/translations/ug.js +1 -1
  69. package/build/translations/uk.js +1 -1
  70. package/build/translations/ur.js +1 -1
  71. package/build/translations/uz.js +1 -1
  72. package/build/translations/vi.js +1 -1
  73. package/build/translations/zh-cn.js +1 -1
  74. package/build/translations/zh.js +1 -1
  75. package/dist/index-content.css +2 -2
  76. package/dist/index-editor.css +2 -2
  77. package/dist/index.css +4 -4
  78. package/dist/index.js +2 -2
  79. package/dist/translations/af.d.ts +2 -2
  80. package/dist/translations/af.js +2 -2
  81. package/dist/translations/af.umd.js +2 -2
  82. package/dist/translations/ar.d.ts +2 -2
  83. package/dist/translations/ar.js +2 -2
  84. package/dist/translations/ar.umd.js +2 -2
  85. package/dist/translations/ast.d.ts +2 -2
  86. package/dist/translations/ast.js +2 -2
  87. package/dist/translations/ast.umd.js +2 -2
  88. package/dist/translations/az.d.ts +2 -2
  89. package/dist/translations/az.js +2 -2
  90. package/dist/translations/az.umd.js +2 -2
  91. package/dist/translations/bg.d.ts +2 -2
  92. package/dist/translations/bg.js +2 -2
  93. package/dist/translations/bg.umd.js +2 -2
  94. package/dist/translations/bn.d.ts +2 -2
  95. package/dist/translations/bn.js +2 -2
  96. package/dist/translations/bn.umd.js +2 -2
  97. package/dist/translations/bs.d.ts +2 -2
  98. package/dist/translations/bs.js +2 -2
  99. package/dist/translations/bs.umd.js +2 -2
  100. package/dist/translations/ca.d.ts +2 -2
  101. package/dist/translations/ca.js +2 -2
  102. package/dist/translations/ca.umd.js +2 -2
  103. package/dist/translations/cs.d.ts +2 -2
  104. package/dist/translations/cs.js +2 -2
  105. package/dist/translations/cs.umd.js +2 -2
  106. package/dist/translations/da.d.ts +2 -2
  107. package/dist/translations/da.js +2 -2
  108. package/dist/translations/da.umd.js +2 -2
  109. package/dist/translations/de-ch.d.ts +2 -2
  110. package/dist/translations/de-ch.js +2 -2
  111. package/dist/translations/de-ch.umd.js +2 -2
  112. package/dist/translations/de.d.ts +2 -2
  113. package/dist/translations/de.js +2 -2
  114. package/dist/translations/de.umd.js +2 -2
  115. package/dist/translations/el.d.ts +2 -2
  116. package/dist/translations/el.js +2 -2
  117. package/dist/translations/el.umd.js +2 -2
  118. package/dist/translations/en-au.d.ts +2 -2
  119. package/dist/translations/en-au.js +2 -2
  120. package/dist/translations/en-au.umd.js +2 -2
  121. package/dist/translations/en-gb.d.ts +2 -2
  122. package/dist/translations/en-gb.js +2 -2
  123. package/dist/translations/en-gb.umd.js +2 -2
  124. package/dist/translations/en.d.ts +2 -2
  125. package/dist/translations/en.js +2 -2
  126. package/dist/translations/en.umd.js +2 -2
  127. package/dist/translations/eo.d.ts +2 -2
  128. package/dist/translations/eo.js +2 -2
  129. package/dist/translations/eo.umd.js +2 -2
  130. package/dist/translations/es-co.d.ts +2 -2
  131. package/dist/translations/es-co.js +2 -2
  132. package/dist/translations/es-co.umd.js +2 -2
  133. package/dist/translations/es.d.ts +2 -2
  134. package/dist/translations/es.js +2 -2
  135. package/dist/translations/es.umd.js +2 -2
  136. package/dist/translations/et.d.ts +2 -2
  137. package/dist/translations/et.js +2 -2
  138. package/dist/translations/et.umd.js +2 -2
  139. package/dist/translations/eu.d.ts +2 -2
  140. package/dist/translations/eu.js +2 -2
  141. package/dist/translations/eu.umd.js +2 -2
  142. package/dist/translations/fa.d.ts +2 -2
  143. package/dist/translations/fa.js +2 -2
  144. package/dist/translations/fa.umd.js +2 -2
  145. package/dist/translations/fi.d.ts +2 -2
  146. package/dist/translations/fi.js +2 -2
  147. package/dist/translations/fi.umd.js +2 -2
  148. package/dist/translations/fr.d.ts +2 -2
  149. package/dist/translations/fr.js +2 -2
  150. package/dist/translations/fr.umd.js +2 -2
  151. package/dist/translations/gl.d.ts +2 -2
  152. package/dist/translations/gl.js +2 -2
  153. package/dist/translations/gl.umd.js +2 -2
  154. package/dist/translations/gu.d.ts +2 -2
  155. package/dist/translations/gu.js +2 -2
  156. package/dist/translations/gu.umd.js +2 -2
  157. package/dist/translations/he.d.ts +2 -2
  158. package/dist/translations/he.js +2 -2
  159. package/dist/translations/he.umd.js +2 -2
  160. package/dist/translations/hi.d.ts +2 -2
  161. package/dist/translations/hi.js +2 -2
  162. package/dist/translations/hi.umd.js +2 -2
  163. package/dist/translations/hr.d.ts +2 -2
  164. package/dist/translations/hr.js +2 -2
  165. package/dist/translations/hr.umd.js +2 -2
  166. package/dist/translations/hu.d.ts +2 -2
  167. package/dist/translations/hu.js +2 -2
  168. package/dist/translations/hu.umd.js +2 -2
  169. package/dist/translations/hy.d.ts +2 -2
  170. package/dist/translations/hy.js +2 -2
  171. package/dist/translations/hy.umd.js +2 -2
  172. package/dist/translations/id.d.ts +2 -2
  173. package/dist/translations/id.js +2 -2
  174. package/dist/translations/id.umd.js +2 -2
  175. package/dist/translations/it.d.ts +2 -2
  176. package/dist/translations/it.js +2 -2
  177. package/dist/translations/it.umd.js +2 -2
  178. package/dist/translations/ja.d.ts +2 -2
  179. package/dist/translations/ja.js +2 -2
  180. package/dist/translations/ja.umd.js +2 -2
  181. package/dist/translations/jv.d.ts +2 -2
  182. package/dist/translations/jv.js +2 -2
  183. package/dist/translations/jv.umd.js +2 -2
  184. package/dist/translations/kk.d.ts +2 -2
  185. package/dist/translations/kk.js +2 -2
  186. package/dist/translations/kk.umd.js +2 -2
  187. package/dist/translations/km.d.ts +2 -2
  188. package/dist/translations/km.js +2 -2
  189. package/dist/translations/km.umd.js +2 -2
  190. package/dist/translations/kn.d.ts +2 -2
  191. package/dist/translations/kn.js +2 -2
  192. package/dist/translations/kn.umd.js +2 -2
  193. package/dist/translations/ko.d.ts +2 -2
  194. package/dist/translations/ko.js +2 -2
  195. package/dist/translations/ko.umd.js +2 -2
  196. package/dist/translations/ku.d.ts +2 -2
  197. package/dist/translations/ku.js +2 -2
  198. package/dist/translations/ku.umd.js +2 -2
  199. package/dist/translations/lt.d.ts +2 -2
  200. package/dist/translations/lt.js +2 -2
  201. package/dist/translations/lt.umd.js +2 -2
  202. package/dist/translations/lv.d.ts +2 -2
  203. package/dist/translations/lv.js +2 -2
  204. package/dist/translations/lv.umd.js +2 -2
  205. package/dist/translations/ms.d.ts +2 -2
  206. package/dist/translations/ms.js +2 -2
  207. package/dist/translations/ms.umd.js +2 -2
  208. package/dist/translations/nb.d.ts +2 -2
  209. package/dist/translations/nb.js +2 -2
  210. package/dist/translations/nb.umd.js +2 -2
  211. package/dist/translations/ne.d.ts +2 -2
  212. package/dist/translations/ne.js +2 -2
  213. package/dist/translations/ne.umd.js +2 -2
  214. package/dist/translations/nl.d.ts +2 -2
  215. package/dist/translations/nl.js +2 -2
  216. package/dist/translations/nl.umd.js +2 -2
  217. package/dist/translations/no.d.ts +2 -2
  218. package/dist/translations/no.js +2 -2
  219. package/dist/translations/no.umd.js +2 -2
  220. package/dist/translations/oc.d.ts +2 -2
  221. package/dist/translations/oc.js +2 -2
  222. package/dist/translations/oc.umd.js +2 -2
  223. package/dist/translations/pl.d.ts +2 -2
  224. package/dist/translations/pl.js +2 -2
  225. package/dist/translations/pl.umd.js +2 -2
  226. package/dist/translations/pt-br.d.ts +2 -2
  227. package/dist/translations/pt-br.js +2 -2
  228. package/dist/translations/pt-br.umd.js +2 -2
  229. package/dist/translations/pt.d.ts +2 -2
  230. package/dist/translations/pt.js +2 -2
  231. package/dist/translations/pt.umd.js +2 -2
  232. package/dist/translations/ro.d.ts +2 -2
  233. package/dist/translations/ro.js +2 -2
  234. package/dist/translations/ro.umd.js +2 -2
  235. package/dist/translations/ru.d.ts +2 -2
  236. package/dist/translations/ru.js +2 -2
  237. package/dist/translations/ru.umd.js +2 -2
  238. package/dist/translations/si.d.ts +2 -2
  239. package/dist/translations/si.js +2 -2
  240. package/dist/translations/si.umd.js +2 -2
  241. package/dist/translations/sk.d.ts +2 -2
  242. package/dist/translations/sk.js +2 -2
  243. package/dist/translations/sk.umd.js +2 -2
  244. package/dist/translations/sl.d.ts +2 -2
  245. package/dist/translations/sl.js +2 -2
  246. package/dist/translations/sl.umd.js +2 -2
  247. package/dist/translations/sq.d.ts +2 -2
  248. package/dist/translations/sq.js +2 -2
  249. package/dist/translations/sq.umd.js +2 -2
  250. package/dist/translations/sr-latn.d.ts +2 -2
  251. package/dist/translations/sr-latn.js +2 -2
  252. package/dist/translations/sr-latn.umd.js +2 -2
  253. package/dist/translations/sr.d.ts +2 -2
  254. package/dist/translations/sr.js +2 -2
  255. package/dist/translations/sr.umd.js +2 -2
  256. package/dist/translations/sv.d.ts +2 -2
  257. package/dist/translations/sv.js +2 -2
  258. package/dist/translations/sv.umd.js +2 -2
  259. package/dist/translations/th.d.ts +2 -2
  260. package/dist/translations/th.js +2 -2
  261. package/dist/translations/th.umd.js +2 -2
  262. package/dist/translations/ti.d.ts +2 -2
  263. package/dist/translations/ti.js +2 -2
  264. package/dist/translations/ti.umd.js +2 -2
  265. package/dist/translations/tk.d.ts +2 -2
  266. package/dist/translations/tk.js +2 -2
  267. package/dist/translations/tk.umd.js +2 -2
  268. package/dist/translations/tr.d.ts +2 -2
  269. package/dist/translations/tr.js +2 -2
  270. package/dist/translations/tr.umd.js +2 -2
  271. package/dist/translations/tt.d.ts +2 -2
  272. package/dist/translations/tt.js +2 -2
  273. package/dist/translations/tt.umd.js +2 -2
  274. package/dist/translations/ug.d.ts +2 -2
  275. package/dist/translations/ug.js +2 -2
  276. package/dist/translations/ug.umd.js +2 -2
  277. package/dist/translations/uk.d.ts +2 -2
  278. package/dist/translations/uk.js +2 -2
  279. package/dist/translations/uk.umd.js +2 -2
  280. package/dist/translations/ur.d.ts +2 -2
  281. package/dist/translations/ur.js +2 -2
  282. package/dist/translations/ur.umd.js +2 -2
  283. package/dist/translations/uz.d.ts +2 -2
  284. package/dist/translations/uz.js +2 -2
  285. package/dist/translations/uz.umd.js +2 -2
  286. package/dist/translations/vi.d.ts +2 -2
  287. package/dist/translations/vi.js +2 -2
  288. package/dist/translations/vi.umd.js +2 -2
  289. package/dist/translations/zh-cn.d.ts +2 -2
  290. package/dist/translations/zh-cn.js +2 -2
  291. package/dist/translations/zh-cn.umd.js +2 -2
  292. package/dist/translations/zh.d.ts +2 -2
  293. package/dist/translations/zh.js +2 -2
  294. package/dist/translations/zh.umd.js +2 -2
  295. package/lang/contexts.json +2 -1
  296. package/lang/translations/af.po +5 -1
  297. package/lang/translations/ar.po +5 -1
  298. package/lang/translations/ast.po +5 -1
  299. package/lang/translations/az.po +5 -1
  300. package/lang/translations/bg.po +5 -1
  301. package/lang/translations/bn.po +5 -1
  302. package/lang/translations/bs.po +5 -1
  303. package/lang/translations/ca.po +5 -1
  304. package/lang/translations/cs.po +5 -1
  305. package/lang/translations/da.po +5 -1
  306. package/lang/translations/de-ch.po +5 -1
  307. package/lang/translations/de.po +5 -1
  308. package/lang/translations/el.po +5 -1
  309. package/lang/translations/en-au.po +5 -1
  310. package/lang/translations/en-gb.po +5 -1
  311. package/lang/translations/en.po +5 -1
  312. package/lang/translations/eo.po +5 -1
  313. package/lang/translations/es-co.po +5 -1
  314. package/lang/translations/es.po +5 -1
  315. package/lang/translations/et.po +5 -1
  316. package/lang/translations/eu.po +5 -1
  317. package/lang/translations/fa.po +5 -1
  318. package/lang/translations/fi.po +5 -1
  319. package/lang/translations/fr.po +5 -1
  320. package/lang/translations/gl.po +5 -1
  321. package/lang/translations/gu.po +5 -1
  322. package/lang/translations/he.po +5 -1
  323. package/lang/translations/hi.po +5 -1
  324. package/lang/translations/hr.po +5 -1
  325. package/lang/translations/hu.po +5 -1
  326. package/lang/translations/hy.po +5 -1
  327. package/lang/translations/id.po +5 -1
  328. package/lang/translations/it.po +5 -1
  329. package/lang/translations/ja.po +5 -1
  330. package/lang/translations/jv.po +5 -1
  331. package/lang/translations/kk.po +5 -1
  332. package/lang/translations/km.po +5 -1
  333. package/lang/translations/kn.po +5 -1
  334. package/lang/translations/ko.po +5 -1
  335. package/lang/translations/ku.po +5 -1
  336. package/lang/translations/lt.po +5 -1
  337. package/lang/translations/lv.po +5 -1
  338. package/lang/translations/ms.po +5 -1
  339. package/lang/translations/nb.po +5 -1
  340. package/lang/translations/ne.po +5 -1
  341. package/lang/translations/nl.po +5 -1
  342. package/lang/translations/no.po +5 -1
  343. package/lang/translations/oc.po +5 -1
  344. package/lang/translations/pl.po +5 -1
  345. package/lang/translations/pt-br.po +5 -1
  346. package/lang/translations/pt.po +5 -1
  347. package/lang/translations/ro.po +5 -1
  348. package/lang/translations/ru.po +5 -1
  349. package/lang/translations/si.po +5 -1
  350. package/lang/translations/sk.po +5 -1
  351. package/lang/translations/sl.po +5 -1
  352. package/lang/translations/sq.po +5 -1
  353. package/lang/translations/sr-latn.po +5 -1
  354. package/lang/translations/sr.po +5 -1
  355. package/lang/translations/sv.po +5 -1
  356. package/lang/translations/th.po +5 -1
  357. package/lang/translations/ti.po +5 -1
  358. package/lang/translations/tk.po +5 -1
  359. package/lang/translations/tr.po +5 -1
  360. package/lang/translations/tt.po +5 -1
  361. package/lang/translations/ug.po +5 -1
  362. package/lang/translations/uk.po +5 -1
  363. package/lang/translations/ur.po +5 -1
  364. package/lang/translations/uz.po +5 -1
  365. package/lang/translations/vi.po +5 -1
  366. package/lang/translations/zh-cn.po +5 -1
  367. package/lang/translations/zh.po +5 -1
  368. package/package.json +32 -6
  369. package/src/augmentation.d.ts +1 -1
  370. package/src/augmentation.js +1 -1
  371. package/src/index.d.ts +1 -1
  372. package/src/index.js +2 -2
  373. package/src/legacyerrors.d.ts +1 -1
  374. package/src/legacyerrors.js +2 -2
  375. package/src/slashcommand.d.ts +1 -1
  376. package/src/slashcommand.js +2 -2
  377. package/src/slashcommandconfig.d.ts +1 -1
  378. package/src/slashcommandconfig.js +2 -2
  379. package/src/slashcommandediting.d.ts +1 -1
  380. package/src/slashcommandediting.js +2 -2
  381. package/src/slashcommandeditorconfig.d.ts +1 -1
  382. package/src/slashcommandeditorconfig.js +1 -1
  383. package/src/slashcommandui.d.ts +1 -1
  384. package/src/slashcommandui.js +2 -2
  385. package/src/ui/slashcommandbuttonview.d.ts +1 -1
  386. package/src/ui/slashcommandbuttonview.js +2 -2
  387. package/src/utils/common-translations.d.ts +1 -1
  388. package/src/utils/common-translations.js +2 -2
  389. package/theme/slashcommand.css +1 -1
  390. package/dist/augmentation.d.ts +0 -25
  391. package/dist/index.d.ts +0 -17
  392. package/dist/legacyerrors.d.ts +0 -9
  393. package/dist/slashcommand.d.ts +0 -41
  394. package/dist/slashcommandconfig.d.ts +0 -254
  395. package/dist/slashcommandediting.d.ts +0 -40
  396. package/dist/slashcommandeditorconfig.d.ts +0 -100
  397. package/dist/slashcommandui.d.ts +0 -45
  398. package/dist/ui/slashcommandbuttonview.d.ts +0 -35
  399. package/dist/utils/common-translations.d.ts +0 -13
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1ab9(){const _0x3b6ae3=['setTemplate','set','children','isIconColorInherited','add','_createTextPartView','ck-slash-command-button','isColorInherited','ck-slash-command-button__text-part','10998SwJjii','78736ibsdVh','title','6014575KyWJbR','div','iconView','span','textPartView','labelView','2410760geLhyg','description','1268094grbZUy','5ITsdaC','11204EeZwAv','ck-slash-command-button__description','104004uKlDsb','966cFEvEL','icon','render','9410ZvWEtm'];_0x1ab9=function(){return _0x3b6ae3;};return _0x1ab9();}const _0x3ffeb3=_0x5b07;(function(_0x3b0d32,_0xea2304){const _0x280deb=_0x5b07,_0x40dd1e=_0x3b0d32();while(!![]){try{const _0x5b26b2=parseInt(_0x280deb(0x1a3))/0x1+-parseInt(_0x280deb(0x1b1))/0x2+-parseInt(_0x280deb(0x1b2))/0x3*(parseInt(_0x280deb(0x1af))/0x4)+parseInt(_0x280deb(0x1ae))/0x5*(-parseInt(_0x280deb(0x1ad))/0x6)+parseInt(_0x280deb(0x1a5))/0x7+-parseInt(_0x280deb(0x1ab))/0x8+-parseInt(_0x280deb(0x1a2))/0x9*(-parseInt(_0x280deb(0x1b5))/0xa);if(_0x5b26b2===_0xea2304)break;else _0x40dd1e['push'](_0x40dd1e['shift']());}catch(_0x537665){_0x40dd1e['push'](_0x40dd1e['shift']());}}}(_0x1ab9,0x97abd));function _0x5b07(_0x826f03,_0x32de6c){const _0x1ab902=_0x1ab9();return _0x5b07=function(_0x5b0788,_0x46f748){_0x5b0788=_0x5b0788-0x19f;let _0x41a271=_0x1ab902[_0x5b0788];return _0x41a271;},_0x5b07(_0x826f03,_0x32de6c);}import{View as _0x8e2463,ButtonView as _0x2591d}from'ckeditor5/src/ui.js';import _0x423d2d from'../../theme/icons/play.svg';export default class h extends _0x2591d{constructor(_0x3e1d6c,_0x329ee6){const _0x4db4b9=_0x5b07;super(_0x3e1d6c),this[_0x4db4b9(0x1a9)]=this[_0x4db4b9(0x1bb)](_0x3e1d6c,_0x329ee6),void 0x0!==_0x329ee6[_0x4db4b9(0x1b9)]&&(this[_0x4db4b9(0x1a7)][_0x4db4b9(0x1a0)]=_0x329ee6[_0x4db4b9(0x1b9)]),this[_0x4db4b9(0x1b7)]({'icon':_0x329ee6[_0x4db4b9(0x1b3)]||_0x423d2d,'withText':!0x0,'label':_0x329ee6[_0x4db4b9(0x1a4)],'class':_0x4db4b9(0x19f)});}[_0x3ffeb3(0x1b4)](){const _0x4a8b56=_0x3ffeb3;super[_0x4a8b56(0x1b4)](),this[_0x4a8b56(0x1b8)][_0x4a8b56(0x1ba)](this[_0x4a8b56(0x1a9)]);}[_0x3ffeb3(0x1bb)](_0x3cd8bb,_0x53d61e){const _0x51faef=_0x3ffeb3,_0x8de08a=new _0x8e2463(_0x3cd8bb);return _0x8de08a[_0x51faef(0x1b6)]({'tag':_0x51faef(0x1a6),'attributes':{'class':['ck',_0x51faef(0x1a1)]},'children':_0x53d61e[_0x51faef(0x1ac)]?[this[_0x51faef(0x1aa)],{'tag':_0x51faef(0x1a8),'attributes':{'class':['ck',_0x51faef(0x1b0)]},'children':[{'text':_0x53d61e[_0x51faef(0x1ac)]}]}]:[this[_0x51faef(0x1aa)]]}),_0x8de08a;}}
23
+ const _0x1f9530=_0x43d5;function _0x52f7(){const _0x2b5566=['isColorInherited','setTemplate','icon','8hydiPs','ck-slash-command-button','2282190UUPtWh','10741530FmmBRg','_createTextPartView','1420976ysWPeT','6wPlfuC','div','4411946EBamkl','iconView','render','5BmObFK','4107312llJsDD','children','ck-slash-command-button__description','ck-slash-command-button__text-part','span','labelView','add','162404JAogPZ','title','isIconColorInherited','5043576pFGdeP','set','description','textPartView'];_0x52f7=function(){return _0x2b5566;};return _0x52f7();}function _0x43d5(_0x2807ab,_0x20067b){const _0x52f787=_0x52f7();return _0x43d5=function(_0x43d52f,_0x3395cf){_0x43d52f=_0x43d52f-0x173;let _0x207d79=_0x52f787[_0x43d52f];return _0x207d79;},_0x43d5(_0x2807ab,_0x20067b);}(function(_0x1ad35b,_0x5176cf){const _0x2f73c1=_0x43d5,_0x31c411=_0x1ad35b();while(!![]){try{const _0x3d8557=-parseInt(_0x2f73c1(0x179))/0x1*(parseInt(_0x2f73c1(0x186))/0x2)+-parseInt(_0x2f73c1(0x175))/0x3+-parseInt(_0x2f73c1(0x178))/0x4*(-parseInt(_0x2f73c1(0x17e))/0x5)+-parseInt(_0x2f73c1(0x189))/0x6+parseInt(_0x2f73c1(0x17b))/0x7+-parseInt(_0x2f73c1(0x173))/0x8*(-parseInt(_0x2f73c1(0x17f))/0x9)+parseInt(_0x2f73c1(0x176))/0xa;if(_0x3d8557===_0x5176cf)break;else _0x31c411['push'](_0x31c411['shift']());}catch(_0xcdea4){_0x31c411['push'](_0x31c411['shift']());}}}(_0x52f7,0x685f1));import{View as _0x1e8ed7,ButtonView as _0x3eeef0}from'ckeditor5/src/ui.js';import _0x1c9392 from'../../theme/icons/play.svg';export default class h extends _0x3eeef0{constructor(_0x56c7a0,_0x365352){const _0x41b6fb=_0x43d5;super(_0x56c7a0),this[_0x41b6fb(0x18c)]=this[_0x41b6fb(0x177)](_0x56c7a0,_0x365352),void 0x0!==_0x365352[_0x41b6fb(0x188)]&&(this[_0x41b6fb(0x17c)][_0x41b6fb(0x18d)]=_0x365352[_0x41b6fb(0x188)]),this[_0x41b6fb(0x18a)]({'icon':_0x365352[_0x41b6fb(0x18f)]||_0x1c9392,'withText':!0x0,'label':_0x365352[_0x41b6fb(0x187)],'class':_0x41b6fb(0x174)});}[_0x1f9530(0x17d)](){const _0x497dad=_0x1f9530;super[_0x497dad(0x17d)](),this[_0x497dad(0x180)][_0x497dad(0x185)](this[_0x497dad(0x18c)]);}[_0x1f9530(0x177)](_0x15f000,_0x1dff5d){const _0x2c41d0=_0x1f9530,_0x58f102=new _0x1e8ed7(_0x15f000);return _0x58f102[_0x2c41d0(0x18e)]({'tag':_0x2c41d0(0x17a),'attributes':{'class':['ck',_0x2c41d0(0x182)]},'children':_0x1dff5d[_0x2c41d0(0x18b)]?[this[_0x2c41d0(0x184)],{'tag':_0x2c41d0(0x183),'attributes':{'class':['ck',_0x2c41d0(0x181)]},'children':[{'text':_0x1dff5d[_0x2c41d0(0x18b)]}]}]:[this[_0x2c41d0(0x184)]]}),_0x58f102;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4c6357,_0x2bd0d1){const t=_0x4c6357['t'],_0x39363a=_0x4c6357['t'];switch(_0x2bd0d1){case'AI\x20Assistant':return _0x39363a('AI\x20Assistant');case'Block\x20quote':return _0x39363a('Block\x20quote');case'Bulleted\x20list':return _0x39363a('Bulleted\x20list');case'Insert\x20code\x20block':return _0x39363a('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x39363a('Open\x20file\x20manager');case'Insert\x20image':return _0x39363a('Insert\x20image');case'Heading\x201':return _0x39363a('Heading\x201');case'Heading\x202':return _0x39363a('Heading\x202');case'Heading\x203':return _0x39363a('Heading\x203');case'Heading\x204':return _0x39363a('Heading\x204');case'Heading\x205':return _0x39363a('Heading\x205');case'Heading\x206':return _0x39363a('Heading\x206');case'Horizontal\x20line':return _0x39363a('Horizontal\x20line');case'Insert\x20HTML':return _0x39363a('Insert\x20HTML');case'Increase\x20indent':return _0x39363a('Increase\x20indent');case'Insert\x20table':return _0x39363a('Insert\x20table');case'Table\x20of\x20contents':return _0x39363a('Table\x20of\x20contents');case'Numbered\x20list':return _0x39363a('Numbered\x20list');case'Decrease\x20indent':return _0x39363a('Decrease\x20indent');case'Paragraph':return _0x39363a('Paragraph');case'To-do\x20list':return _0x39363a('To-do\x20list');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');default:return _0x2bd0d1;}}
23
+ export function getTranslation(_0x3a944b,_0x505c45){const t=_0x3a944b['t'],_0x3246da=_0x3a944b['t'];switch(_0x505c45){case'AI\x20Assistant':return _0x3246da('AI\x20Assistant');case'Block\x20quote':return _0x3246da('Block\x20quote');case'Bulleted\x20list':return _0x3246da('Bulleted\x20list');case'Insert\x20code\x20block':return _0x3246da('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x3246da('Open\x20file\x20manager');case'Insert\x20image':return _0x3246da('Insert\x20image');case'Heading\x201':return _0x3246da('Heading\x201');case'Heading\x202':return _0x3246da('Heading\x202');case'Heading\x203':return _0x3246da('Heading\x203');case'Heading\x204':return _0x3246da('Heading\x204');case'Heading\x205':return _0x3246da('Heading\x205');case'Heading\x206':return _0x3246da('Heading\x206');case'Horizontal\x20line':return _0x3246da('Horizontal\x20line');case'Insert\x20HTML':return _0x3246da('Insert\x20HTML');case'Increase\x20indent':return _0x3246da('Increase\x20indent');case'Insert\x20table':return _0x3246da('Insert\x20table');case'Table\x20of\x20contents':return _0x3246da('Table\x20of\x20contents');case'Numbered\x20list':return _0x3246da('Numbered\x20list');case'Decrease\x20indent':return _0x3246da('Decrease\x20indent');case'Paragraph':return _0x3246da('Paragraph');case'To-do\x20list':return _0x3246da('To-do\x20list');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');default:return _0x505c45;}}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
8
  */
9
9
 
@@ -1,25 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from './index.js';
10
- declare module '@ckeditor/ckeditor5-core' {
11
- interface EditorConfig {
12
- /**
13
- * The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
14
- *
15
- * Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
16
- */
17
- slashCommand?: SlashCommandEditorConfig;
18
- }
19
- interface PluginsMap {
20
- [SlashCommand.pluginName]: SlashCommand;
21
- [SlashCommandConfig.pluginName]: SlashCommandConfig;
22
- [SlashCommandEditing.pluginName]: SlashCommandEditing;
23
- [SlashCommandUI.pluginName]: SlashCommandUI;
24
- }
25
- }
package/dist/index.d.ts DELETED
@@ -1,17 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * @module slash-command
11
- */
12
- export { default as SlashCommand } from './slashcommand.js';
13
- export { default as SlashCommandConfig } from './slashcommandconfig.js';
14
- export { default as SlashCommandEditing } from './slashcommandediting.js';
15
- export { default as SlashCommandUI } from './slashcommandui.js';
16
- export { type SlashCommandEditorConfig } from './slashcommandeditorconfig.js';
17
- import './augmentation.js';
@@ -1,9 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- export {};
@@ -1,41 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * @module slash-command/slashcommand
11
- * @publicApi
12
- */
13
- import { Plugin } from 'ckeditor5/src/core.js';
14
- import SlashCommandEditing from './slashcommandediting.js';
15
- import SlashCommandUI from './slashcommandui.js';
16
- /**
17
- * The slash command feature.
18
- * It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
19
- *
20
- * For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
21
- *
22
- * @extends module:core/plugin~Plugin
23
- */
24
- export default class SlashCommand extends Plugin {
25
- /**
26
- * @inheritDoc
27
- */
28
- static get requires(): readonly ["Mention", typeof SlashCommandEditing, typeof SlashCommandUI];
29
- /**
30
- * @inheritDoc
31
- */
32
- static get pluginName(): "SlashCommand";
33
- /**
34
- * @inheritDoc
35
- */
36
- static get isOfficialPlugin(): true;
37
- /**
38
- * @inheritDoc
39
- */
40
- static get isPremiumPlugin(): true;
41
- }
@@ -1,254 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * @module slash-command/slashcommandconfig
11
- * @publicApi
12
- */
13
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
- import './slashcommandeditorconfig.js';
15
- /**
16
- * This plugin takes care of the configuration for {@link module:slash-command/slashcommand~SlashCommand}:
17
- *
18
- * * It manages the configuration of slash commands in the editor.
19
- * * It provides default slash commands for common editor features.
20
- * * It allows defining extra commands and reducing the list of defaults using the editor configuration.
21
- * See {@link module:slash-command/slashcommandconfig~SlashCommandConfig} to learn more.
22
- *
23
- * @extends module:core/plugin~Plugin
24
- */
25
- export default class SlashCommandConfig extends Plugin {
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "SlashCommandConfig";
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isOfficialPlugin(): true;
34
- /**
35
- * @inheritDoc
36
- */
37
- static get isPremiumPlugin(): true;
38
- /**
39
- * @inheritDoc
40
- */
41
- constructor(editor: Editor);
42
- /**
43
- * @inheritDoc
44
- */
45
- afterInit(): void;
46
- /**
47
- * Returns an array of slash command definitions enabled in the editor.
48
- *
49
- * This method takes into account the following:
50
- * * The {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of default commands}.
51
- * * The presence of {@link module:core/editor/editorconfig~EditorConfig#plugins editor features} (plugins).
52
- * * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#removeCommands} configuration.
53
- * * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#extraCommands} configuration.
54
- */
55
- getAllowedCommands(): Array<SlashCommandDefinition>;
56
- /**
57
- * Returns a list of default slash command {@link module:slash-command/slashcommandconfig~SlashCommandDefinition definitions}
58
- * for common editor features. The available definitions are as follows:
59
- *
60
- * ```js
61
- * [
62
- * {
63
- * id: 'blockQuote',
64
- * commandName: 'blockQuote',
65
- * title: t( 'Block quote' ),
66
- * // ...
67
- * },
68
- * {
69
- * id: 'bulletedList',
70
- * commandName: 'bulletedList',
71
- * title: t( 'Bulleted list' ),
72
- * // ...
73
- * },
74
- * {
75
- * id: 'codeBlock',
76
- * commandName: 'codeBlock',
77
- * title: t( 'Insert code block' ),
78
- * // ...
79
- * },
80
- * {
81
- * id: 'ckbox',
82
- * commandName: 'ckbox',
83
- * title: t( 'Open file manager' ),
84
- * // ...
85
- * },
86
- * {
87
- * id: 'ckfinder',
88
- * commandName: 'ckfinder',
89
- * title: t( 'Insert image' ),
90
- * // ...
91
- * },
92
- * {
93
- * id: 'heading1',
94
- * commandName: 'heading',
95
- * title: t( 'Heading 1' ),
96
- * // ...
97
- * },
98
- * {
99
- * id: 'heading2',
100
- * commandName: 'heading',
101
- * title: t( 'Heading 2' ),
102
- * // ...
103
- * },
104
- * {
105
- * id: 'heading3',
106
- * commandName: 'heading',
107
- * title: t( 'Heading 3' ),
108
- * // ...
109
- * },
110
- * {
111
- * id: 'heading4',
112
- * commandName: 'heading',
113
- * title: t( 'Heading 4' ),
114
- * // ...
115
- * },
116
- * {
117
- * id: 'heading5',
118
- * commandName: 'heading',
119
- * title: t( 'Heading 5' ),
120
- * // ...
121
- * },
122
- * {
123
- * id: 'heading6',
124
- * commandName: 'heading',
125
- * title: t( 'Heading 6' ),
126
- * // ...
127
- * },
128
- * {
129
- * id: 'horizontalLine',
130
- * commandName: 'horizontalLine',
131
- * title: t( 'Horizontal line' ),
132
- * // ...
133
- * },
134
- * {
135
- * id: 'htmlEmbed',
136
- * commandName: 'htmlEmbed',
137
- * title: t( 'Insert HTML' ),
138
- * // ...
139
- * },
140
- * {
141
- * id: 'indent',
142
- * commandName: 'indent',
143
- * title: t( 'Increase indent' ),
144
- * // ...
145
- * },
146
- * {
147
- * id: 'insertMermaidCommand',
148
- * commandName: 'insertMermaidCommand',
149
- * title: t( 'Insert Mermaid diagram' ),
150
- * // ...
151
- * },
152
- * {
153
- * id: 'insertTable',
154
- * commandName: 'insertTable',
155
- * title: t( 'Insert table' ),
156
- * // ...
157
- * },
158
- * {
159
- * id: 'insertTableOfContents',
160
- * commandName: 'insertTableOfContents',
161
- * title: t( 'Table of contents' ),
162
- * // ...
163
- * },
164
- * {
165
- * id: 'numberedList',
166
- * commandName: 'numberedList',
167
- * title: t( 'Numbered list' ),
168
- * // ...
169
- * },
170
- * {
171
- * id: 'outdent',
172
- * commandName: 'outdent',
173
- * title: t( 'Decrease indent' ),
174
- * // ...
175
- * },
176
- * {
177
- * id: 'paragraph',
178
- * commandName: 'paragraph',
179
- * title: t( 'Paragraph' ),
180
- * // ...
181
- * },
182
- * {
183
- * id: 'todoList',
184
- * commandName: 'todoList',
185
- * title: t( 'To-do list' ),
186
- * // ...
187
- * }
188
- * ]
189
- */
190
- getDefaultCommands(): Array<SlashCommandDefinition>;
191
- }
192
- /**
193
- * An object describing a single command definition in the configuration.
194
- */
195
- export interface SlashCommandDefinition {
196
- /**
197
- * A unique ID matched with the text that follows the slash ("/") character typed by the user,
198
- * e.g. 'blockQuote', 'heading1'. See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#aliases}
199
- * to learn about slash command aliases that provide a similar functionality.
200
- */
201
- id: string;
202
- /**
203
- * The name of the command to be executed if the `execute` property was not provided,
204
- * for example, 'blockQuote', 'heading'. See {@link module:core/editor/editor~Editor#commands} to learn more about available commands.
205
- */
206
- commandName?: string;
207
- /**
208
- * A meaningful title for the command displayed in a dropdown list of possible commands. It can be a string
209
- * or a callback function returning a string.
210
- */
211
- title: Function | string;
212
- /**
213
- * An optional description for the command. Useful when the title is not descriptive enough.
214
- */
215
- description?: string;
216
- /**
217
- * An SVG string representing the icon of the command. If not provided, a generic icon will be used instead.
218
- * The default size of the icon is 20x20 pixels. Be sure to set the correct `viewBox` attribute in the icon source.
219
- *
220
- * See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#isIconColorInherited}.
221
- */
222
- icon?: string;
223
- /**
224
- * By default, slash command icons are monochromatic and inherit the color of the text in the editor UI.
225
- * Setting this property to `false` disables this inheritance and allows the use of complex (colorful) icons.
226
- *
227
- * Learn more in {@link module:ui/icon/iconview~IconView#isColorInherited}.
228
- */
229
- isIconColorInherited?: boolean;
230
- /**
231
- * An optional list of aliases (extending the base
232
- * {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#id}) to be used when filtering the list of slash commands
233
- * based on the text that follows the slash ("/") character.
234
- */
235
- aliases?: Array<string>;
236
- /**
237
- * A callback function defining custom logic to decide if the command should be displayed
238
- * in the dropdown list. If not provided, the default command's {@link module:core/command~Command#isEnabled} property is used instead.
239
- * If it's also unavailable, it falls back to `true`. This property is checked when a user types the slash ("/") character
240
- * or changes the text that follows it.
241
- *
242
- * This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
243
- */
244
- isEnabled?: Function;
245
- /**
246
- * A callback function defining custom logic for executing the command. If not provided, the default
247
- * command's {@link module:core/command~Command#execute} is used instead. Custom logic is useful especially when the slash command
248
- * requires some arguments (acts like a wrapper) or combines some complex logic. This property is obligatory if
249
- * {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#commandName} was not passed.
250
- *
251
- * This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
252
- */
253
- execute?: Function;
254
- }
@@ -1,40 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * @module slash-command/slashcommandediting
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- import SlashCommandConfig, { type SlashCommandDefinition } from './slashcommandconfig.js';
14
- /**
15
- * Provides the editing functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
16
- *
17
- * @extends module:core/plugin~Plugin
18
- */
19
- export default class SlashCommandEditing extends Plugin {
20
- /**
21
- * @inheritDoc
22
- */
23
- static get pluginName(): "SlashCommandEditing";
24
- /**
25
- * @inheritDoc
26
- */
27
- static get isOfficialPlugin(): true;
28
- /**
29
- * @inheritDoc
30
- */
31
- static get isPremiumPlugin(): true;
32
- /**
33
- * @inheritDoc
34
- */
35
- static get requires(): readonly [typeof SlashCommandConfig];
36
- /**
37
- * Returns the list of matching enabled command definitions for the specific query text case-insensitively.
38
- */
39
- getMatchingCommands(queryString: string): Array<SlashCommandDefinition>;
40
- }
@@ -1,100 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * @module slash-command/slashcommandeditorconfig
11
- * @publicApi
12
- */
13
- import type { SlashCommandDefinition } from './slashcommandconfig.js';
14
- /**
15
- * The configuration of the slash command feature.
16
- *
17
- * Read more about {@glink features/slash-commands#configuration configuring the slash command feature}.
18
- *
19
- * ```ts
20
- * ClassicEditor
21
- * .create( editorElement, {
22
- * slashCommand: ... // Slash command feature options.
23
- * } )
24
- * .then( ... )
25
- * .catch( ... );
26
- * ```
27
- *
28
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
29
- */
30
- export interface SlashCommandEditorConfig {
31
- /**
32
- * The list of commands to be removed from the default command list. Commands specified by this configuration will not
33
- * appear in the user interface upon writing the slash ("/") character.
34
- *
35
- * * Each entry must be a unique name of a command registered in the
36
- * {@link module:core/editor/editor~Editor#commands editor's command collection}.
37
- * * Check out the list of the {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands default commands}
38
- * supported by the slash command feature to learn which commands can be removed.
39
- *
40
- * ```ts
41
- * ClassicEditor
42
- * .create( editorElement, {
43
- * plugins: [ SlashCommand, ... ],
44
- * slashCommand: {
45
- * removeCommands: [ 'heading', 'paragraph', ... ]
46
- * // ...
47
- * }
48
- * } )
49
- * .then( ... )
50
- * .catch( ... );
51
- * ```
52
- */
53
- removeCommands: Array<string>;
54
- /**
55
- * Additional commands to be added to the
56
- * {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of defaults} supported
57
- * by the slash command feature. It allows the feature to work with third-party commands and make them appear in the user interface
58
- * upon writing the slash ("/") character.
59
- *
60
- * ```ts
61
- * ClassicEditor
62
- * .create( editorElement, {
63
- * plugins: [ SlashCommand, ... ],
64
- * slashCommand: {
65
- * extraCommands: [
66
- * {
67
- * id: 'bold',
68
- * commandName: 'bold',
69
- * title: 'Bold',
70
- * // ...
71
- * },
72
- * // ...
73
- * ]
74
- * // ...
75
- * }
76
- * } )
77
- * .then( ... )
78
- * .catch( ... );
79
- * ```
80
- */
81
- extraCommands: Array<SlashCommandDefinition>;
82
- /**
83
- * The maximum number of commands displayed in the dropdown list of slash commands.
84
- *
85
- * ```ts
86
- * ClassicEditor
87
- * .create( editorElement, {
88
- * plugins: [ SlashCommand, ... ],
89
- * slashCommand: {
90
- * dropdownLimit: 4
91
- * // More of editor configuration.
92
- * // ...
93
- * }
94
- * } )
95
- * .then( ... )
96
- * .catch( ... );
97
- * ```
98
- */
99
- dropdownLimit: number;
100
- }
@@ -1,45 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * @module slash-command/slashcommandui
11
- */
12
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
13
- import './slashcommandeditorconfig.js';
14
- import '../theme/slashcommand.css';
15
- /**
16
- * Provides the UI functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
17
- *
18
- * @extends module:core/plugin~Plugin
19
- */
20
- export default class SlashCommandUI extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "SlashCommandUI";
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isOfficialPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- static get isPremiumPlugin(): true;
33
- /**
34
- * @inheritDoc
35
- */
36
- constructor(editor: Editor);
37
- /**
38
- * @inheritDoc
39
- */
40
- init(): void;
41
- /**
42
- * @inheritDoc
43
- */
44
- destroy(): void;
45
- }
@@ -1,35 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * @module slash-command/ui/slashcommandbuttonview
11
- */
12
- import type { Locale } from 'ckeditor5/src/utils.js';
13
- import { View, ButtonView } from 'ckeditor5/src/ui.js';
14
- import type { SlashCommandDefinition } from '../slashcommandconfig.js';
15
- /**
16
- * A class representing an individual button (slash command) in the list.
17
- *
18
- * @extends module:ui/button/buttonview~ButtonView
19
- */
20
- export default class SlashCommandButtonView extends ButtonView {
21
- /**
22
- * The view rendering the text part of the slash command button consisting of a title and an optional description.
23
- *
24
- * @protected
25
- */
26
- textPartView: View;
27
- /**
28
- * Creates an instance of the {@link module:slash-command/ui/slashcommandbuttonview~SlashCommandButtonView} class.
29
- */
30
- constructor(locale: Locale, commandDefinition: SlashCommandDefinition);
31
- /**
32
- * @inheritDoc
33
- */
34
- render(): void;
35
- }