@ckeditor/ckeditor5-footnotes 47.6.1-alpha.1 → 48.0.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 (336) hide show
  1. package/ckeditor5-metadata.json +63 -63
  2. package/{src → dist}/commands/insertfootnotecommand.d.ts +1 -1
  3. package/{src → dist}/footnotes.d.ts +1 -1
  4. package/{src → dist}/footnotesclipboard.d.ts +2 -2
  5. package/{src → dist}/footnotesediting.d.ts +2 -2
  6. package/{src → dist}/footnotesproperties/commands/footnotesstartcommand.d.ts +1 -1
  7. package/{src → dist}/footnotesproperties/commands/footnotesstylecommand.d.ts +1 -1
  8. package/{src → dist}/footnotesproperties/footnotespropertiesconfig.d.ts +31 -3
  9. package/{src → dist}/footnotesproperties/footnotespropertiesediting.d.ts +9 -1
  10. package/dist/footnotesproperties/footnotespropertiesformatters.d.ts +27 -0
  11. package/{src → dist}/footnotesproperties/footnotespropertiesui.d.ts +3 -3
  12. package/{src → dist}/footnotesproperties.d.ts +1 -1
  13. package/{src → dist}/footnotestracker.d.ts +2 -2
  14. package/{src → dist}/footnotesui.d.ts +1 -1
  15. package/dist/index-content.css +63 -45
  16. package/dist/index-editor.css +56 -56
  17. package/dist/index.css +116 -143
  18. package/dist/index.js +1 -1
  19. package/{src → dist}/modelelementtracker.d.ts +1 -1
  20. package/dist/translations/af.js +1 -1
  21. package/dist/translations/af.umd.js +1 -1
  22. package/dist/translations/ar.js +1 -1
  23. package/dist/translations/ar.umd.js +1 -1
  24. package/dist/translations/ast.js +1 -1
  25. package/dist/translations/ast.umd.js +1 -1
  26. package/dist/translations/az.js +1 -1
  27. package/dist/translations/az.umd.js +1 -1
  28. package/dist/translations/be.js +1 -1
  29. package/dist/translations/be.umd.js +1 -1
  30. package/dist/translations/bg.js +1 -1
  31. package/dist/translations/bg.umd.js +1 -1
  32. package/dist/translations/bn.js +1 -1
  33. package/dist/translations/bn.umd.js +1 -1
  34. package/dist/translations/bs.js +1 -1
  35. package/dist/translations/bs.umd.js +1 -1
  36. package/dist/translations/ca.js +1 -1
  37. package/dist/translations/ca.umd.js +1 -1
  38. package/dist/translations/cs.js +1 -1
  39. package/dist/translations/cs.umd.js +1 -1
  40. package/dist/translations/da.js +1 -1
  41. package/dist/translations/da.umd.js +1 -1
  42. package/dist/translations/de-ch.js +1 -1
  43. package/dist/translations/de-ch.umd.js +1 -1
  44. package/dist/translations/de.js +1 -1
  45. package/dist/translations/de.umd.js +1 -1
  46. package/dist/translations/el.js +1 -1
  47. package/dist/translations/el.umd.js +1 -1
  48. package/dist/translations/en-au.js +1 -1
  49. package/dist/translations/en-au.umd.js +1 -1
  50. package/dist/translations/en-gb.js +1 -1
  51. package/dist/translations/en-gb.umd.js +1 -1
  52. package/dist/translations/en.js +1 -1
  53. package/dist/translations/en.umd.js +1 -1
  54. package/dist/translations/eo.js +1 -1
  55. package/dist/translations/eo.umd.js +1 -1
  56. package/dist/translations/es-co.js +1 -1
  57. package/dist/translations/es-co.umd.js +1 -1
  58. package/dist/translations/es.js +1 -1
  59. package/dist/translations/es.umd.js +1 -1
  60. package/dist/translations/et.js +1 -1
  61. package/dist/translations/et.umd.js +1 -1
  62. package/dist/translations/eu.js +1 -1
  63. package/dist/translations/eu.umd.js +1 -1
  64. package/dist/translations/fa.js +1 -1
  65. package/dist/translations/fa.umd.js +1 -1
  66. package/dist/translations/fi.js +1 -1
  67. package/dist/translations/fi.umd.js +1 -1
  68. package/dist/translations/fr.js +1 -1
  69. package/dist/translations/fr.umd.js +1 -1
  70. package/dist/translations/gl.js +1 -1
  71. package/dist/translations/gl.umd.js +1 -1
  72. package/dist/translations/gu.js +1 -1
  73. package/dist/translations/gu.umd.js +1 -1
  74. package/dist/translations/he.js +1 -1
  75. package/dist/translations/he.umd.js +1 -1
  76. package/dist/translations/hi.js +1 -1
  77. package/dist/translations/hi.umd.js +1 -1
  78. package/dist/translations/hr.js +1 -1
  79. package/dist/translations/hr.umd.js +1 -1
  80. package/dist/translations/hu.js +1 -1
  81. package/dist/translations/hu.umd.js +1 -1
  82. package/dist/translations/hy.js +1 -1
  83. package/dist/translations/hy.umd.js +1 -1
  84. package/dist/translations/id.js +1 -1
  85. package/dist/translations/id.umd.js +1 -1
  86. package/dist/translations/it.js +1 -1
  87. package/dist/translations/it.umd.js +1 -1
  88. package/dist/translations/ja.js +1 -1
  89. package/dist/translations/ja.umd.js +1 -1
  90. package/dist/translations/jv.js +1 -1
  91. package/dist/translations/jv.umd.js +1 -1
  92. package/dist/translations/kk.js +1 -1
  93. package/dist/translations/kk.umd.js +1 -1
  94. package/dist/translations/km.js +1 -1
  95. package/dist/translations/km.umd.js +1 -1
  96. package/dist/translations/kn.js +1 -1
  97. package/dist/translations/kn.umd.js +1 -1
  98. package/dist/translations/ko.js +1 -1
  99. package/dist/translations/ko.umd.js +1 -1
  100. package/dist/translations/ku.js +1 -1
  101. package/dist/translations/ku.umd.js +1 -1
  102. package/dist/translations/lt.js +1 -1
  103. package/dist/translations/lt.umd.js +1 -1
  104. package/dist/translations/lv.js +1 -1
  105. package/dist/translations/lv.umd.js +1 -1
  106. package/dist/translations/ms.js +1 -1
  107. package/dist/translations/ms.umd.js +1 -1
  108. package/dist/translations/nb.js +1 -1
  109. package/dist/translations/nb.umd.js +1 -1
  110. package/dist/translations/ne.js +1 -1
  111. package/dist/translations/ne.umd.js +1 -1
  112. package/dist/translations/nl.js +1 -1
  113. package/dist/translations/nl.umd.js +1 -1
  114. package/dist/translations/no.js +1 -1
  115. package/dist/translations/no.umd.js +1 -1
  116. package/dist/translations/oc.js +1 -1
  117. package/dist/translations/oc.umd.js +1 -1
  118. package/dist/translations/pl.js +1 -1
  119. package/dist/translations/pl.umd.js +1 -1
  120. package/dist/translations/pt-br.js +1 -1
  121. package/dist/translations/pt-br.umd.js +1 -1
  122. package/dist/translations/pt.js +1 -1
  123. package/dist/translations/pt.umd.js +1 -1
  124. package/dist/translations/ro.js +1 -1
  125. package/dist/translations/ro.umd.js +1 -1
  126. package/dist/translations/ru.js +1 -1
  127. package/dist/translations/ru.umd.js +1 -1
  128. package/dist/translations/si.js +1 -1
  129. package/dist/translations/si.umd.js +1 -1
  130. package/dist/translations/sk.js +1 -1
  131. package/dist/translations/sk.umd.js +1 -1
  132. package/dist/translations/sl.js +1 -1
  133. package/dist/translations/sl.umd.js +1 -1
  134. package/dist/translations/sq.js +1 -1
  135. package/dist/translations/sq.umd.js +1 -1
  136. package/dist/translations/sr-latn.js +1 -1
  137. package/dist/translations/sr-latn.umd.js +1 -1
  138. package/dist/translations/sr.js +1 -1
  139. package/dist/translations/sr.umd.js +1 -1
  140. package/dist/translations/sv.js +1 -1
  141. package/dist/translations/sv.umd.js +1 -1
  142. package/dist/translations/th.js +1 -1
  143. package/dist/translations/th.umd.js +1 -1
  144. package/dist/translations/ti.js +1 -1
  145. package/dist/translations/ti.umd.js +1 -1
  146. package/dist/translations/tk.js +1 -1
  147. package/dist/translations/tk.umd.js +1 -1
  148. package/dist/translations/tr.js +1 -1
  149. package/dist/translations/tr.umd.js +1 -1
  150. package/dist/translations/tt.js +1 -1
  151. package/dist/translations/tt.umd.js +1 -1
  152. package/dist/translations/ug.js +1 -1
  153. package/dist/translations/ug.umd.js +1 -1
  154. package/dist/translations/uk.js +1 -1
  155. package/dist/translations/uk.umd.js +1 -1
  156. package/dist/translations/ur.js +1 -1
  157. package/dist/translations/ur.umd.js +1 -1
  158. package/dist/translations/uz.js +1 -1
  159. package/dist/translations/uz.umd.js +1 -1
  160. package/dist/translations/vi.js +1 -1
  161. package/dist/translations/vi.umd.js +1 -1
  162. package/dist/translations/zh-cn.js +1 -1
  163. package/dist/translations/zh-cn.umd.js +1 -1
  164. package/dist/translations/zh.js +1 -1
  165. package/dist/translations/zh.umd.js +1 -1
  166. package/package.json +20 -42
  167. package/build/footnotes.js +0 -5
  168. package/build/translations/af.js +0 -1
  169. package/build/translations/ar.js +0 -1
  170. package/build/translations/ast.js +0 -1
  171. package/build/translations/az.js +0 -1
  172. package/build/translations/be.js +0 -1
  173. package/build/translations/bg.js +0 -1
  174. package/build/translations/bn.js +0 -1
  175. package/build/translations/bs.js +0 -1
  176. package/build/translations/ca.js +0 -1
  177. package/build/translations/cs.js +0 -1
  178. package/build/translations/da.js +0 -1
  179. package/build/translations/de-ch.js +0 -1
  180. package/build/translations/de.js +0 -1
  181. package/build/translations/el.js +0 -1
  182. package/build/translations/en-au.js +0 -1
  183. package/build/translations/en-gb.js +0 -1
  184. package/build/translations/eo.js +0 -1
  185. package/build/translations/es-co.js +0 -1
  186. package/build/translations/es.js +0 -1
  187. package/build/translations/et.js +0 -1
  188. package/build/translations/eu.js +0 -1
  189. package/build/translations/fa.js +0 -1
  190. package/build/translations/fi.js +0 -1
  191. package/build/translations/fr.js +0 -1
  192. package/build/translations/gl.js +0 -1
  193. package/build/translations/gu.js +0 -1
  194. package/build/translations/he.js +0 -1
  195. package/build/translations/hi.js +0 -1
  196. package/build/translations/hr.js +0 -1
  197. package/build/translations/hu.js +0 -1
  198. package/build/translations/hy.js +0 -1
  199. package/build/translations/id.js +0 -1
  200. package/build/translations/it.js +0 -1
  201. package/build/translations/ja.js +0 -1
  202. package/build/translations/jv.js +0 -1
  203. package/build/translations/kk.js +0 -1
  204. package/build/translations/km.js +0 -1
  205. package/build/translations/kn.js +0 -1
  206. package/build/translations/ko.js +0 -1
  207. package/build/translations/ku.js +0 -1
  208. package/build/translations/lt.js +0 -1
  209. package/build/translations/lv.js +0 -1
  210. package/build/translations/ms.js +0 -1
  211. package/build/translations/nb.js +0 -1
  212. package/build/translations/ne.js +0 -1
  213. package/build/translations/nl.js +0 -1
  214. package/build/translations/no.js +0 -1
  215. package/build/translations/oc.js +0 -1
  216. package/build/translations/pl.js +0 -1
  217. package/build/translations/pt-br.js +0 -1
  218. package/build/translations/pt.js +0 -1
  219. package/build/translations/ro.js +0 -1
  220. package/build/translations/ru.js +0 -1
  221. package/build/translations/si.js +0 -1
  222. package/build/translations/sk.js +0 -1
  223. package/build/translations/sl.js +0 -1
  224. package/build/translations/sq.js +0 -1
  225. package/build/translations/sr-latn.js +0 -1
  226. package/build/translations/sr.js +0 -1
  227. package/build/translations/sv.js +0 -1
  228. package/build/translations/th.js +0 -1
  229. package/build/translations/ti.js +0 -1
  230. package/build/translations/tk.js +0 -1
  231. package/build/translations/tr.js +0 -1
  232. package/build/translations/tt.js +0 -1
  233. package/build/translations/ug.js +0 -1
  234. package/build/translations/uk.js +0 -1
  235. package/build/translations/ur.js +0 -1
  236. package/build/translations/uz.js +0 -1
  237. package/build/translations/vi.js +0 -1
  238. package/build/translations/zh-cn.js +0 -1
  239. package/build/translations/zh.js +0 -1
  240. package/lang/contexts.json +0 -27
  241. package/lang/translations/af.po +0 -112
  242. package/lang/translations/ar.po +0 -112
  243. package/lang/translations/ast.po +0 -112
  244. package/lang/translations/az.po +0 -112
  245. package/lang/translations/be.po +0 -112
  246. package/lang/translations/bg.po +0 -112
  247. package/lang/translations/bn.po +0 -112
  248. package/lang/translations/bs.po +0 -112
  249. package/lang/translations/ca.po +0 -112
  250. package/lang/translations/cs.po +0 -112
  251. package/lang/translations/da.po +0 -112
  252. package/lang/translations/de-ch.po +0 -112
  253. package/lang/translations/de.po +0 -112
  254. package/lang/translations/el.po +0 -112
  255. package/lang/translations/en-au.po +0 -112
  256. package/lang/translations/en-gb.po +0 -112
  257. package/lang/translations/en.po +0 -112
  258. package/lang/translations/eo.po +0 -112
  259. package/lang/translations/es-co.po +0 -112
  260. package/lang/translations/es.po +0 -112
  261. package/lang/translations/et.po +0 -112
  262. package/lang/translations/eu.po +0 -112
  263. package/lang/translations/fa.po +0 -112
  264. package/lang/translations/fi.po +0 -112
  265. package/lang/translations/fr.po +0 -112
  266. package/lang/translations/gl.po +0 -112
  267. package/lang/translations/gu.po +0 -112
  268. package/lang/translations/he.po +0 -112
  269. package/lang/translations/hi.po +0 -112
  270. package/lang/translations/hr.po +0 -112
  271. package/lang/translations/hu.po +0 -112
  272. package/lang/translations/hy.po +0 -112
  273. package/lang/translations/id.po +0 -112
  274. package/lang/translations/it.po +0 -112
  275. package/lang/translations/ja.po +0 -112
  276. package/lang/translations/jv.po +0 -112
  277. package/lang/translations/kk.po +0 -112
  278. package/lang/translations/km.po +0 -112
  279. package/lang/translations/kn.po +0 -112
  280. package/lang/translations/ko.po +0 -112
  281. package/lang/translations/ku.po +0 -112
  282. package/lang/translations/lt.po +0 -112
  283. package/lang/translations/lv.po +0 -112
  284. package/lang/translations/ms.po +0 -112
  285. package/lang/translations/nb.po +0 -112
  286. package/lang/translations/ne.po +0 -112
  287. package/lang/translations/nl.po +0 -112
  288. package/lang/translations/no.po +0 -112
  289. package/lang/translations/oc.po +0 -112
  290. package/lang/translations/pl.po +0 -112
  291. package/lang/translations/pt-br.po +0 -112
  292. package/lang/translations/pt.po +0 -112
  293. package/lang/translations/ro.po +0 -112
  294. package/lang/translations/ru.po +0 -112
  295. package/lang/translations/si.po +0 -112
  296. package/lang/translations/sk.po +0 -112
  297. package/lang/translations/sl.po +0 -112
  298. package/lang/translations/sq.po +0 -112
  299. package/lang/translations/sr-latn.po +0 -112
  300. package/lang/translations/sr.po +0 -112
  301. package/lang/translations/sv.po +0 -112
  302. package/lang/translations/th.po +0 -112
  303. package/lang/translations/ti.po +0 -112
  304. package/lang/translations/tk.po +0 -112
  305. package/lang/translations/tr.po +0 -112
  306. package/lang/translations/tt.po +0 -112
  307. package/lang/translations/ug.po +0 -112
  308. package/lang/translations/uk.po +0 -112
  309. package/lang/translations/ur.po +0 -112
  310. package/lang/translations/uz.po +0 -112
  311. package/lang/translations/vi.po +0 -112
  312. package/lang/translations/zh-cn.po +0 -112
  313. package/lang/translations/zh.po +0 -112
  314. package/src/augmentation.js +0 -23
  315. package/src/commands/insertfootnotecommand.js +0 -23
  316. package/src/footnotes.js +0 -23
  317. package/src/footnotesclipboard.js +0 -23
  318. package/src/footnotesconfig.js +0 -23
  319. package/src/footnotesediting.js +0 -23
  320. package/src/footnotesproperties/commands/footnotesstartcommand.js +0 -23
  321. package/src/footnotesproperties/commands/footnotesstylecommand.js +0 -23
  322. package/src/footnotesproperties/footnotespropertiesconfig.js +0 -23
  323. package/src/footnotesproperties/footnotespropertiesediting.js +0 -23
  324. package/src/footnotesproperties/footnotespropertiesui.js +0 -23
  325. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +0 -23
  326. package/src/footnotesproperties.js +0 -23
  327. package/src/footnotestracker.js +0 -23
  328. package/src/footnotesui.js +0 -23
  329. package/src/index.js +0 -23
  330. package/src/modelelementtracker.js +0 -23
  331. package/theme/footnotes.css +0 -143
  332. package/theme/footnotesproperties.css +0 -54
  333. /package/{src → dist}/augmentation.d.ts +0 -0
  334. /package/{src → dist}/footnotesconfig.d.ts +0 -0
  335. /package/{src → dist}/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +0 -0
  336. /package/{src → dist}/index.d.ts +0 -0
@@ -1,65 +1,65 @@
1
1
  {
2
- "plugins": [
3
- {
4
- "name": "Footnotes",
5
- "className": "Footnotes",
6
- "description": "Introduces footnotes functionality for adding references and notes.",
7
- "docs": "features/footnotes.html",
8
- "path": "src/footnotes.js",
9
- "uiComponents": [
10
- {
11
- "name": "insertFootnote",
12
- "type": "Button",
13
- "iconPath": "@ckeditor/ckeditor5-icons/theme/icons/footnote.svg"
14
- }
15
- ],
16
- "htmlOutput": [
17
- {
18
- "elements": "sup",
19
- "classes": "footnote"
20
- },
21
- {
22
- "elements": "a",
23
- "classes": "footnote-backlink",
24
- "attributes": "href"
25
- },
26
- {
27
- "elements": "ol",
28
- "classes": "footnotes"
29
- },
30
- {
31
- "elements": "li",
32
- "classes": "footnote-definition",
33
- "attributes": "id"
34
- },
35
- {
36
- "elements": "div",
37
- "classes": "footnote-content"
38
- }
39
- ]
40
- },
41
- {
42
- "name": "Footnotes Properties",
43
- "className": "FootnotesProperties",
44
- "description": "Provides the ability to customize footnote properties such as numbering style.",
45
- "docs": "features/footnotes.html#footnote-properties",
46
- "path": "src/footnotesproperties.js",
47
- "uiComponents": [
48
- {
49
- "type": "Button",
50
- "name": "footnotesStyle",
51
- "label": "Footnote Style",
52
- "iconPath": "@ckeditor/ckeditor5-icons/theme/icons/footnote.svg"
53
- }
54
- ],
55
- "htmlOutput": [
56
- {
57
- "elements": "ol",
58
- "classes": "footnotes",
59
- "styles": "list-style-type",
60
- "attributes": "type"
61
- }
62
- ]
63
- }
64
- ]
2
+ "plugins": [
3
+ {
4
+ "name": "Footnotes",
5
+ "className": "Footnotes",
6
+ "description": "Introduces footnotes functionality for adding references and notes.",
7
+ "docs": "features/footnotes.html",
8
+ "path": "src/footnotes.ts",
9
+ "uiComponents": [
10
+ {
11
+ "name": "insertFootnote",
12
+ "type": "Button",
13
+ "iconName": "IconFootnote"
14
+ }
15
+ ],
16
+ "htmlOutput": [
17
+ {
18
+ "elements": "sup",
19
+ "classes": "footnote"
20
+ },
21
+ {
22
+ "elements": "a",
23
+ "classes": "footnote-backlink",
24
+ "attributes": "href"
25
+ },
26
+ {
27
+ "elements": "ol",
28
+ "classes": "footnotes"
29
+ },
30
+ {
31
+ "elements": "li",
32
+ "classes": "footnote-definition",
33
+ "attributes": "id"
34
+ },
35
+ {
36
+ "elements": "div",
37
+ "classes": "footnote-content"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "name": "Footnotes Properties",
43
+ "className": "FootnotesProperties",
44
+ "description": "Provides the ability to customize footnote properties such as numbering style.",
45
+ "docs": "features/footnotes.html#footnote-properties",
46
+ "path": "src/footnotesproperties.ts",
47
+ "uiComponents": [
48
+ {
49
+ "type": "Button",
50
+ "name": "footnotesStyle",
51
+ "label": "Footnote Style",
52
+ "iconName": "IconFootnote"
53
+ }
54
+ ],
55
+ "htmlOutput": [
56
+ {
57
+ "elements": "ol",
58
+ "classes": "footnotes",
59
+ "styles": "list-style-type",
60
+ "attributes": "type"
61
+ }
62
+ ]
63
+ }
64
+ ]
65
65
  }
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2026, 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
- import { Command } from 'ckeditor5/src/core.js';
5
+ import { Command } from '@ckeditor/ckeditor5-core';
6
6
  /**
7
7
  * The insert footnote command.
8
8
  */
@@ -6,7 +6,7 @@
6
6
  * @module footnotes/footnotes
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Plugin } from '@ckeditor/ckeditor5-core';
10
10
  import { FootnotesEditing } from './footnotesediting.js';
11
11
  import { FootnotesClipboard } from './footnotesclipboard.js';
12
12
  import { FootnotesUI } from './footnotesui.js';
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module footnotes/footnotesclipboard
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
8
+ import { Plugin } from '@ckeditor/ckeditor5-core';
9
+ import { ClipboardPipeline } from '@ckeditor/ckeditor5-clipboard';
10
10
  import { FootnotesEditing } from './footnotesediting.js';
11
11
  /**
12
12
  * The footnotes clipboard integration plugin.
@@ -6,8 +6,8 @@
6
6
  * @module footnotes/footnotesediting
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import { type ViewNode } from 'ckeditor5/src/engine.js';
9
+ import { Plugin } from '@ckeditor/ckeditor5-core';
10
+ import { type ViewNode } from '@ckeditor/ckeditor5-engine';
11
11
  import { FootnotesTracker } from './footnotestracker.js';
12
12
  /**
13
13
  * The footnotes editing plugin.
@@ -6,7 +6,7 @@
6
6
  * @module footnotes/footnotesproperties/commands/footnotesstartcommand
7
7
  * @publicApi
8
8
  */
9
- import { Command } from 'ckeditor5/src/core.js';
9
+ import { Command } from '@ckeditor/ckeditor5-core';
10
10
  /**
11
11
  * Change footnotes definitions start command.
12
12
  */
@@ -6,7 +6,7 @@
6
6
  * @module footnotes/footnotesproperties/commands/footnotesstylecommand
7
7
  * @publicApi
8
8
  */
9
- import { Command } from 'ckeditor5/src/core.js';
9
+ import { Command } from '@ckeditor/ckeditor5-core';
10
10
  import { type FootnotesDefinitionsStyle } from '../footnotespropertiesconfig.js';
11
11
  /**
12
12
  * Change footnotes definitions style command.
@@ -17,7 +17,7 @@ export interface FootnotesPropertiesConfig {
17
17
  *
18
18
  * Note: This configuration is used only when the footnotes definitions is being created after adding the first footnote.
19
19
  */
20
- defaultStyle?: FootnotesDefinitionsStyle;
20
+ defaultListStyle?: FootnotesDefinitionsStyle;
21
21
  /**
22
22
  * The default start index of the footnotes definitions. The default is `1`.
23
23
  *
@@ -40,14 +40,42 @@ export interface FootnotesPropertiesConfig {
40
40
  * toolbar: [ 'footnotesStyle' ]
41
41
  * };
42
42
  * ```
43
+ * @default `[ 'footnotesStyle' ]`
43
44
  */
44
45
  toolbar?: Array<string>;
46
+ /**
47
+ * The list of styles for footnotes definitions that will be shown in the footnotes properties dropdown
48
+ * created by the {@link module:footnotes/footnotesproperties/footnotespropertiesui~FootnotesPropertiesUI} feature.
49
+ * The order of styles in the dropdown corresponds to the order of styles in this configuration.
50
+ *
51
+ * @default `[ 'decimal', 'decimal-leading-zero', 'lower-latin', 'upper-latin', 'lower-roman', 'upper-roman' ]`
52
+ */
53
+ listStyles?: Array<FootnotesDefinitionsStyle>;
45
54
  }
46
55
  /**
47
- * The available styles for footnotes definitions.
56
+ * The list of the default styles for footnotes definitions. These styles are shown
57
+ * by default in the footnotes properties dropdown and are supported in the editor by default.
48
58
  */
49
- export declare const FOOTNOTES_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-alpha", "upper-alpha", "lower-roman", "upper-roman"];
59
+ export declare const FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-roman", "upper-roman"];
60
+ /**
61
+ * The list of additional styles for footnotes definitions. These styles are supported in the editor but not shown
62
+ * in the footnotes properties dropdown by default. To show them in the dropdown, they must be added to the
63
+ * {@link module:footnotes/footnotesproperties/footnotespropertiesconfig~FootnotesPropertiesConfig#listStyles} configuration.
64
+ */
65
+ export declare const FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES: readonly ["arabic-indic"];
66
+ /**
67
+ * The mapping of the footnotes definitions styles aliases to their canonical names.
68
+ */
69
+ export declare const FOOTNOTES_DEFINITION_STYLES_ALIASES: Record<string, FootnotesDefinitionsStyle>;
70
+ /**
71
+ * The all available styles for footnotes definitions.
72
+ */
73
+ export declare const FOOTNOTES_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-roman", "upper-roman", "arabic-indic", "lower-alpha", "upper-alpha"];
50
74
  /**
51
75
  * The style of the footnotes list. It should correspond to the `list-style-type` CSS property.
52
76
  */
53
77
  export type FootnotesDefinitionsStyle = (typeof FOOTNOTES_DEFINITIONS_STYLES)[number];
78
+ /**
79
+ * The style of the footnotes list without aliases. It should correspond to the `list-style-type` CSS property.
80
+ */
81
+ export type FootnotesDefinitionsCanonicalStyle = Exclude<FootnotesDefinitionsStyle, `${string}-alpha`>;
@@ -6,7 +6,8 @@
6
6
  * @module footnotes/footnotesproperties/footnotespropertiesediting
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Plugin } from '@ckeditor/ckeditor5-core';
10
+ import { type FootnotesDefinitionsCanonicalStyle } from './footnotespropertiesconfig.js';
10
11
  import { FootnotesTracker } from '../footnotestracker.js';
11
12
  import { FootnotesEditing } from '../footnotesediting.js';
12
13
  /**
@@ -34,3 +35,10 @@ export declare class FootnotesPropertiesEditing extends Plugin {
34
35
  */
35
36
  init(): void;
36
37
  }
38
+ /**
39
+ * Normalizes footnotes list style by converting aliases to their canonical form.
40
+ *
41
+ * @param listStyle The list style value to normalize.
42
+ * @returns The canonical form of the list style.
43
+ */
44
+ export declare function toCanonicalFootnotesListStyle(listStyle: unknown): FootnotesDefinitionsCanonicalStyle | null;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module footnotes/footnotesproperties/footnotespropertiesformatters
7
+ * @publicApi
8
+ */
9
+ /**
10
+ * Formats a unsigned decimal number with leading zeros based on the specified number of digits.
11
+ *
12
+ * @param n The number to format.
13
+ * @param digits The minimum number of digits.
14
+ * @returns The formatted string with leading zeros.
15
+ */
16
+ export declare function formatDecimalLeadingZeroFootnote(n: number, digits: number): string;
17
+ /**
18
+ * Converts a unsigned number to alphabetic representation like Excel columns (A, B, C, ..., Z, AA, AB, ...).
19
+ * This follows Excel-style numbering: 1=A, 2=B, ..., 26=Z, 27=AA, 28=AB, etc.
20
+ *
21
+ * @param n The number to convert (must be >= 1).
22
+ * @param upper Whether to use uppercase letters.
23
+ * @returns The alphabetic representation of the number.
24
+ */
25
+ export declare function formatLatinFootnote(n: number, upper: boolean): string;
26
+ export declare function formatRomanFootnote(n: number, upper: boolean): string;
27
+ export declare function formatArabicIndicFootnote(n: number): string;
@@ -6,9 +6,9 @@
6
6
  * @module footnotes/footnotesproperties/footnotespropertiesui
7
7
  * @publicApi
8
8
  */
9
- import { ContextualBalloon } from 'ckeditor5/src/ui.js';
10
- import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
11
- import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ContextualBalloon } from '@ckeditor/ckeditor5-ui';
10
+ import { WidgetToolbarRepository } from '@ckeditor/ckeditor5-widget';
11
+ import { Plugin } from '@ckeditor/ckeditor5-core';
12
12
  import '../../theme/footnotesproperties.css';
13
13
  /**
14
14
  * A plugin that provides footnotes properties UI.
@@ -6,7 +6,7 @@
6
6
  * @module footnotes/footnotesproperties
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Plugin } from '@ckeditor/ckeditor5-core';
10
10
  import { FootnotesPropertiesEditing } from './footnotesproperties/footnotespropertiesediting.js';
11
11
  import { FootnotesPropertiesUI } from './footnotesproperties/footnotespropertiesui.js';
12
12
  /**
@@ -6,8 +6,8 @@
6
6
  * @module footnotes/footnotestracker
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
- import type { ModelElement } from 'ckeditor5/src/engine.js';
9
+ import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
10
+ import type { ModelElement } from '@ckeditor/ckeditor5-engine';
11
11
  /**
12
12
  * The footnotes tracker. It keeps track of all footnotes in the editor.
13
13
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2026, 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
- import { Plugin } from 'ckeditor5/src/core.js';
5
+ import { Plugin } from '@ckeditor/ckeditor5-core';
6
6
  import '../theme/footnotes.css';
7
7
  /**
8
8
  * The footnotes UI plugin.
@@ -3,62 +3,80 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  :root{
6
- --ck-content-footnotes-list-background-color:none;
7
- --ck-content-footnotes-list-separator-color:hsl(0, 0%, 0%);
8
- --ck-content-footnote-font-size:var(--ck-content-font-size-small);
6
+ --ck-content-footnotes-list-background-color:none;
7
+ --ck-content-footnotes-list-separator-color:#000;
8
+ --ck-content-footnote-font-size:var(--ck-content-font-size-small);
9
9
  }
10
+
10
11
  .ck-content .footnote{
11
- margin-inline-end:0.2em;
12
- }
12
+ margin-inline-end:.2em;
13
+ }
14
+
13
15
  .ck-content .footnotes{
14
- position:relative;
15
- margin:0.9em 0 1.5em;
16
- font-size:var(--ck-content-footnote-font-size);
17
- background-color:var(--ck-content-footnotes-list-background-color);
18
- }
16
+ font-size:var(--ck-content-footnote-font-size);
17
+ background-color:var(--ck-content-footnotes-list-background-color);
18
+ margin:.9em 0 1.5em;
19
+ position:relative;
20
+ }
21
+
19
22
  .ck-content .footnotes-divider{
20
- border:none;
21
- border-top:1px solid var(--ck-content-footnotes-list-separator-color);
22
- width:min(30%, 350px);
23
- margin:0 0 1em 0;
24
- height:1px;
25
- background:none;
26
- }
23
+ border:none;
24
+ border-top:1px solid var(--ck-content-footnotes-list-separator-color);
25
+ background:none;
26
+ width:min(30%, 350px);
27
+ height:1px;
28
+ margin:0 0 1em;
29
+ }
30
+
31
+ [dir="rtl"] :is(.ck-content .footnotes-divider){
32
+ margin-left:auto;
33
+ margin-right:0;
34
+ }
35
+
27
36
  .ck-content .footnotes-list{
28
- padding-inline-start:3em;
29
- margin:0;
30
- }
37
+ margin:0;
38
+ padding-inline-start:3em;
39
+ }
40
+
31
41
  .ck-content .footnote-backlink{
32
- display:inline-block;
33
- margin-inline-end:1ch;
34
- user-select:none;
35
- vertical-align:top;
36
- width:auto;
37
- }
42
+ user-select:none;
43
+ vertical-align:top;
44
+ width:auto;
45
+ margin-inline-end:1ch;
46
+ display:inline-block;
47
+ }
48
+
38
49
  .ck-content .footnote-content{
39
- display:inline-block;
40
- width:calc(100% - 2em);
41
- padding:0 4px;
42
- vertical-align:top;
43
- }
50
+ vertical-align:top;
51
+ width:calc(100% - 2em);
52
+ padding:0 4px;
53
+ display:inline-block;
54
+ }
55
+
44
56
  .ck-content .footnote-content > p:first-of-type{
45
- margin-top:0;
46
- }
57
+ margin-top:0;
58
+ }
59
+
47
60
  .ck-content .footnote-content > p:last-of-type{
48
- margin-bottom:0;
49
- }
61
+ margin-bottom:0;
62
+ }
63
+
50
64
  .ck-content .footnote-content ol{
51
- list-style-type:decimal;
52
- }
65
+ list-style-type:decimal;
66
+ }
67
+
53
68
  .ck-content .footnote-content ol ol{
54
- list-style-type:lower-latin;
55
- }
69
+ list-style-type:lower-latin;
70
+ }
71
+
56
72
  .ck-content .footnote-content ol ol ol{
57
- list-style-type:lower-roman;
58
- }
73
+ list-style-type:lower-roman;
74
+ }
75
+
59
76
  .ck-content .footnote-content ol ol ol ol{
60
- list-style-type:upper-latin;
61
- }
77
+ list-style-type:upper-latin;
78
+ }
79
+
62
80
  .ck-content .footnote-content ol ol ol ol ol{
63
- list-style-type:upper-roman;
64
- }
81
+ list-style-type:upper-roman;
82
+ }
@@ -3,79 +3,79 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  :root{
6
- --ck-content-footnotes-list-background-color:none;
7
- --ck-content-footnotes-list-separator-color:hsl(0, 0%, 0%);
8
- --ck-content-footnote-font-size:var(--ck-content-font-size-small);
9
- --ck-footnotes-widget-label-background-color:hsl(0, 0%, 46%);
6
+ --ck-content-footnotes-list-background-color:none;
7
+ --ck-content-footnotes-list-separator-color:#000;
8
+ --ck-content-footnote-font-size:var(--ck-content-font-size-small);
9
+ --ck-footnotes-widget-label-background-color:#757575;
10
10
  }
11
- [dir="rtl"] .ck-content .footnotes-divider{
12
- margin-left:auto;
13
- margin-right:0;
14
- }
11
+
15
12
  .ck.ck-editor__editable .footnotes.ck-widget{
16
- display:flow-root;
17
- position:relative;
18
- margin:0.9em 0 0.85em;
19
- }
13
+ margin:.9em 0 .85em;
14
+ display:flow-root;
15
+ position:relative;
16
+ }
17
+
20
18
  .ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){
21
- outline:1px solid var(--ck-color-base-border);
22
- }
23
- .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]::after{
24
- content:attr(data-footnotes-list-label);
19
+ outline:1px solid var(--ck-color-base-border);
20
+ }
25
21
 
26
- position:absolute;
27
- top:-1px;
28
- right:10px;
29
- padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);
30
- background-color:var(--ck-footnotes-widget-label-background-color);
22
+ .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{
23
+ content:attr(data-footnotes-list-label);
24
+ padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);
25
+ background-color:var(--ck-footnotes-widget-label-background-color);
26
+ font-size:10px;
27
+ font-family:var(--ck-font-face);
28
+ color:#fff;
29
+ white-space:nowrap;
30
+ line-height:16px;
31
+ position:absolute;
32
+ top:-1px;
33
+ right:10px;
34
+ }
35
+
36
+ [dir="rtl"] :is(.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after){
37
+ left:10px;
38
+ right:auto;
39
+ }
31
40
 
32
- font-size:10px;
33
- font-family:var(--ck-font-face);
34
- line-height:16px;
35
- color:hsl(0, 0%, 100%);
36
- white-space:nowrap;
37
- }
38
- [dir="rtl"] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]::after{
39
- left:10px;
40
- right:auto;
41
- }
42
41
  .ck.ck-editor__editable .footnotes-divider{
43
- margin-top:0;
44
- }
42
+ margin-top:0;
43
+ }
44
+
45
45
  .ck.ck-editor__editable .footnotes-list{
46
- margin-top:0;
47
- margin-bottom:0.65em;
48
- }
46
+ margin-top:0;
47
+ margin-bottom:.65em;
48
+ }
49
49
 
50
50
  :root{
51
- --ck-footnotes-styles-list-style-button-size:44px;
51
+ --ck-footnotes-styles-list-style-button-size:44px;
52
52
  }
53
53
 
54
54
  .ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list{
55
- display:grid;
56
- row-gap:var(--ck-spacing-medium);
57
- column-gap:var(--ck-spacing-medium);
58
- padding:var(--ck-spacing-large);
59
- grid-template-columns:repeat( 4, auto);
60
- }
55
+ row-gap:var(--ck-spacing-medium);
56
+ column-gap:var(--ck-spacing-medium);
57
+ padding:var(--ck-spacing-large);
58
+ grid-template-columns:repeat(4, auto);
59
+ display:grid;
60
+ }
61
61
 
62
62
  .ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button{
63
- width:var(--ck-footnotes-styles-list-style-button-size);
64
- height:var(--ck-footnotes-styles-list-style-button-size);
65
- padding:0;
66
- margin:0;
67
- box-sizing:content-box;
68
- }
63
+ width:var(--ck-footnotes-styles-list-style-button-size);
64
+ height:var(--ck-footnotes-styles-list-style-button-size);
65
+ box-sizing:content-box;
66
+ margin:0;
67
+ padding:0;
68
+ }
69
69
 
70
70
  .ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button .ck-icon{
71
- width:var(--ck-footnotes-styles-list-style-button-size);
72
- height:var(--ck-footnotes-styles-list-style-button-size);
73
- }
71
+ width:var(--ck-footnotes-styles-list-style-button-size);
72
+ height:var(--ck-footnotes-styles-list-style-button-size);
73
+ }
74
74
 
75
75
  .ck.ck-footnotes-definitions-properties > .ck-collapsible{
76
- border-top:1px solid var(--ck-color-base-border);
77
- }
76
+ border-top:1px solid var(--ck-color-base-border);
77
+ }
78
78
 
79
79
  .ck.ck-footnotes-definitions-properties > .ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{
80
- min-width:100%;
81
- }
80
+ min-width:100%;
81
+ }