@ckeditor/ckeditor5-font 40.1.0 → 41.0.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 (113) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/LICENSE.md +1 -1
  3. package/build/font.js +2 -2
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/az.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en-gb.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es.po +1 -1
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fa.po +1 -1
  21. package/lang/translations/fi.po +1 -1
  22. package/lang/translations/fr.po +1 -1
  23. package/lang/translations/gl.po +1 -1
  24. package/lang/translations/he.po +1 -1
  25. package/lang/translations/hi.po +1 -1
  26. package/lang/translations/hr.po +1 -1
  27. package/lang/translations/hu.po +1 -1
  28. package/lang/translations/id.po +1 -1
  29. package/lang/translations/it.po +1 -1
  30. package/lang/translations/ja.po +1 -1
  31. package/lang/translations/jv.po +1 -1
  32. package/lang/translations/ko.po +1 -1
  33. package/lang/translations/ku.po +1 -1
  34. package/lang/translations/lt.po +1 -1
  35. package/lang/translations/lv.po +1 -1
  36. package/lang/translations/ms.po +1 -1
  37. package/lang/translations/nb.po +1 -1
  38. package/lang/translations/ne.po +1 -1
  39. package/lang/translations/nl.po +1 -1
  40. package/lang/translations/no.po +1 -1
  41. package/lang/translations/pl.po +1 -1
  42. package/lang/translations/pt-br.po +1 -1
  43. package/lang/translations/pt.po +1 -1
  44. package/lang/translations/ro.po +1 -1
  45. package/lang/translations/ru.po +1 -1
  46. package/lang/translations/sk.po +1 -1
  47. package/lang/translations/sl.po +1 -1
  48. package/lang/translations/sq.po +1 -1
  49. package/lang/translations/sr-latn.po +1 -1
  50. package/lang/translations/sr.po +1 -1
  51. package/lang/translations/sv.po +1 -1
  52. package/lang/translations/th.po +1 -1
  53. package/lang/translations/tk.po +1 -1
  54. package/lang/translations/tr.po +1 -1
  55. package/lang/translations/ug.po +1 -1
  56. package/lang/translations/uk.po +1 -1
  57. package/lang/translations/ur.po +1 -1
  58. package/lang/translations/uz.po +1 -1
  59. package/lang/translations/vi.po +1 -1
  60. package/lang/translations/zh-cn.po +1 -1
  61. package/lang/translations/zh.po +1 -1
  62. package/package.json +3 -2
  63. package/src/augmentation.d.ts +2 -2
  64. package/src/augmentation.js +1 -1
  65. package/src/font.d.ts +6 -6
  66. package/src/font.js +6 -6
  67. package/src/fontbackgroundcolor/fontbackgroundcolorcommand.d.ts +3 -3
  68. package/src/fontbackgroundcolor/fontbackgroundcolorcommand.js +3 -3
  69. package/src/fontbackgroundcolor/fontbackgroundcolorediting.d.ts +2 -2
  70. package/src/fontbackgroundcolor/fontbackgroundcolorediting.js +5 -5
  71. package/src/fontbackgroundcolor/fontbackgroundcolorui.d.ts +3 -3
  72. package/src/fontbackgroundcolor/fontbackgroundcolorui.js +3 -3
  73. package/src/fontbackgroundcolor.d.ts +4 -4
  74. package/src/fontbackgroundcolor.js +4 -4
  75. package/src/fontcolor/fontcolorcommand.d.ts +3 -3
  76. package/src/fontcolor/fontcolorcommand.js +3 -3
  77. package/src/fontcolor/fontcolorediting.d.ts +2 -2
  78. package/src/fontcolor/fontcolorediting.js +4 -4
  79. package/src/fontcolor/fontcolorui.d.ts +3 -3
  80. package/src/fontcolor/fontcolorui.js +3 -3
  81. package/src/fontcolor.d.ts +4 -4
  82. package/src/fontcolor.js +4 -4
  83. package/src/fontcommand.d.ts +3 -3
  84. package/src/fontcommand.js +2 -2
  85. package/src/fontconfig.d.ts +3 -3
  86. package/src/fontconfig.js +1 -1
  87. package/src/fontfamily/fontfamilycommand.d.ts +3 -3
  88. package/src/fontfamily/fontfamilycommand.js +3 -3
  89. package/src/fontfamily/fontfamilyediting.d.ts +2 -2
  90. package/src/fontfamily/fontfamilyediting.js +5 -5
  91. package/src/fontfamily/fontfamilyui.d.ts +2 -2
  92. package/src/fontfamily/fontfamilyui.js +7 -7
  93. package/src/fontfamily/utils.d.ts +2 -2
  94. package/src/fontfamily/utils.js +1 -1
  95. package/src/fontfamily.d.ts +4 -4
  96. package/src/fontfamily.js +4 -4
  97. package/src/fontsize/fontsizecommand.d.ts +3 -3
  98. package/src/fontsize/fontsizecommand.js +3 -3
  99. package/src/fontsize/fontsizeediting.d.ts +2 -2
  100. package/src/fontsize/fontsizeediting.js +7 -7
  101. package/src/fontsize/fontsizeui.d.ts +2 -2
  102. package/src/fontsize/fontsizeui.js +7 -7
  103. package/src/fontsize/utils.d.ts +2 -2
  104. package/src/fontsize/utils.js +2 -2
  105. package/src/fontsize.d.ts +5 -5
  106. package/src/fontsize.js +5 -5
  107. package/src/index.d.ts +21 -21
  108. package/src/index.js +15 -15
  109. package/src/ui/colorui.d.ts +4 -4
  110. package/src/ui/colorui.js +4 -4
  111. package/src/utils.d.ts +5 -5
  112. package/src/utils.js +2 -2
  113. package/theme/fontsize.css +1 -1
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontfamily/fontfamilyui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import { Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
11
- import { normalizeOptions } from './utils';
12
- import { FONT_FAMILY } from '../utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ import { ViewModel, createDropdown, addListToDropdown } from 'ckeditor5/src/ui.js';
11
+ import { normalizeOptions } from './utils.js';
12
+ import { FONT_FAMILY } from '../utils.js';
13
13
  import fontFamilyIcon from '../../theme/icons/font-family.svg';
14
14
  /**
15
15
  * The font family UI plugin. It introduces the `'fontFamily'` dropdown.
@@ -86,7 +86,7 @@ function _prepareListOptions(options, command) {
86
86
  for (const option of options) {
87
87
  const def = {
88
88
  type: 'button',
89
- model: new Model({
89
+ model: new ViewModel({
90
90
  commandName: FONT_FAMILY,
91
91
  commandParam: option.model,
92
92
  label: option.title,
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { FontFamilyOption } from '../fontconfig';
5
+ import type { FontFamilyOption } from '../fontconfig.js';
6
6
  /**
7
7
  * @module font/fontfamily/utils
8
8
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontfamily
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FontFamilyEditing from './fontfamily/fontfamilyediting';
10
- import FontFamilyUI from './fontfamily/fontfamilyui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FontFamilyEditing from './fontfamily/fontfamilyediting.js';
10
+ import FontFamilyUI from './fontfamily/fontfamilyui.js';
11
11
  /**
12
12
  * The font family plugin.
13
13
  *
package/src/fontfamily.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontfamily
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FontFamilyEditing from './fontfamily/fontfamilyediting';
10
- import FontFamilyUI from './fontfamily/fontfamilyui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FontFamilyEditing from './fontfamily/fontfamilyediting.js';
10
+ import FontFamilyUI from './fontfamily/fontfamilyui.js';
11
11
  /**
12
12
  * The font family plugin.
13
13
  *
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize/fontsizecommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import FontCommand from '../fontcommand';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import FontCommand from '../fontcommand.js';
10
10
  /**
11
11
  * The font size command. It is used by {@link module:font/fontsize/fontsizeediting~FontSizeEditing}
12
12
  * to apply the font size.
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import FontCommand from '../fontcommand';
6
- import { FONT_SIZE } from '../utils';
5
+ import FontCommand from '../fontcommand.js';
6
+ import { FONT_SIZE } from '../utils.js';
7
7
  /**
8
8
  * The font size command. It is used by {@link module:font/fontsize/fontsizeediting~FontSizeEditing}
9
9
  * to apply the font size.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize/fontsizeediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The font size editing feature.
11
11
  *
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize/fontsizeediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { CKEditorError } from 'ckeditor5/src/utils';
10
- import { isLength, isPercentage } from 'ckeditor5/src/engine';
11
- import FontSizeCommand from './fontsizecommand';
12
- import { normalizeOptions } from './utils';
13
- import { buildDefinition, FONT_SIZE } from '../utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { CKEditorError } from 'ckeditor5/src/utils.js';
10
+ import { isLength, isPercentage } from 'ckeditor5/src/engine.js';
11
+ import FontSizeCommand from './fontsizecommand.js';
12
+ import { normalizeOptions } from './utils.js';
13
+ import { buildDefinition, FONT_SIZE } from '../utils.js';
14
14
  // Mapping of `<font size="..">` styling to CSS's `font-size` values.
15
15
  const styleFontSize = [
16
16
  'x-small',
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize/fontsizeui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import '../../theme/fontsize.css';
10
10
  /**
11
11
  * The font size UI plugin. It introduces the `'fontSize'` dropdown.
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize/fontsizeui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import { normalizeOptions } from './utils';
12
- import { FONT_SIZE } from '../utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ViewModel, createDropdown, addListToDropdown } from 'ckeditor5/src/ui.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import { normalizeOptions } from './utils.js';
12
+ import { FONT_SIZE } from '../utils.js';
13
13
  import '../../theme/fontsize.css';
14
14
  import fontSizeIcon from '../../theme/icons/font-size.svg';
15
15
  /**
@@ -97,7 +97,7 @@ function _prepareListOptions(options, command) {
97
97
  for (const option of options) {
98
98
  const def = {
99
99
  type: 'button',
100
- model: new Model({
100
+ model: new ViewModel({
101
101
  commandName: FONT_SIZE,
102
102
  commandParam: option.model,
103
103
  label: option.title,
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { type FontSizeOption } from '../fontconfig';
5
+ import { type FontSizeOption } from '../fontconfig.js';
6
6
  /**
7
7
  * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
8
8
  * to the {@link module:font/fontconfig~FontSizeOption} format.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize/utils
7
7
  */
8
- import { CKEditorError } from 'ckeditor5/src/utils';
8
+ import { CKEditorError } from 'ckeditor5/src/utils.js';
9
9
  /**
10
10
  * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
11
11
  * to the {@link module:font/fontconfig~FontSizeOption} format.
package/src/fontsize.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FontSizeEditing from './fontsize/fontsizeediting';
10
- import FontSizeUI from './fontsize/fontsizeui';
11
- import type { FontSizeOption } from './fontconfig';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FontSizeEditing from './fontsize/fontsizeediting.js';
10
+ import FontSizeUI from './fontsize/fontsizeui.js';
11
+ import type { FontSizeOption } from './fontconfig.js';
12
12
  /**
13
13
  * The font size plugin.
14
14
  *
package/src/fontsize.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/fontsize
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FontSizeEditing from './fontsize/fontsizeediting';
10
- import FontSizeUI from './fontsize/fontsizeui';
11
- import { normalizeOptions } from './fontsize/utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FontSizeEditing from './fontsize/fontsizeediting.js';
10
+ import FontSizeUI from './fontsize/fontsizeui.js';
11
+ import { normalizeOptions } from './fontsize/utils.js';
12
12
  /**
13
13
  * The font size plugin.
14
14
  *
package/src/index.d.ts CHANGED
@@ -1,27 +1,27 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font
7
7
  */
8
- export { default as Font } from './font';
9
- export { default as FontBackgroundColor } from './fontbackgroundcolor';
10
- export { default as FontColor } from './fontcolor';
11
- export { default as FontFamily } from './fontfamily';
12
- export { default as FontSize } from './fontsize';
13
- export { default as FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting';
14
- export { default as FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui';
15
- export { default as FontColorEditing } from './fontcolor/fontcolorediting';
16
- export { default as FontColorUI } from './fontcolor/fontcolorui';
17
- export { default as FontFamilyEditing } from './fontfamily/fontfamilyediting';
18
- export { default as FontFamilyUI } from './fontfamily/fontfamilyui';
19
- export { default as FontSizeEditing } from './fontsize/fontsizeediting';
20
- export { default as FontSizeUI } from './fontsize/fontsizeui';
21
- export type { default as FontBackgroundColorCommand } from './fontbackgroundcolor/fontbackgroundcolorcommand';
22
- export type { default as FontColorCommand } from './fontcolor/fontcolorcommand';
23
- export type { default as FontFamilyCommand } from './fontfamily/fontfamilycommand';
24
- export type { default as FontSizeCommand } from './fontsize/fontsizecommand';
25
- export type { FONT_BACKGROUND_COLOR, FONT_COLOR, FONT_FAMILY, FONT_SIZE } from './utils';
26
- export type { FontColorConfig, FontFamilyConfig, FontSizeConfig } from './fontconfig';
27
- import './augmentation';
8
+ export { default as Font } from './font.js';
9
+ export { default as FontBackgroundColor } from './fontbackgroundcolor.js';
10
+ export { default as FontColor } from './fontcolor.js';
11
+ export { default as FontFamily } from './fontfamily.js';
12
+ export { default as FontSize } from './fontsize.js';
13
+ export { default as FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting.js';
14
+ export { default as FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui.js';
15
+ export { default as FontColorEditing } from './fontcolor/fontcolorediting.js';
16
+ export { default as FontColorUI } from './fontcolor/fontcolorui.js';
17
+ export { default as FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
18
+ export { default as FontFamilyUI } from './fontfamily/fontfamilyui.js';
19
+ export { default as FontSizeEditing } from './fontsize/fontsizeediting.js';
20
+ export { default as FontSizeUI } from './fontsize/fontsizeui.js';
21
+ export type { default as FontBackgroundColorCommand } from './fontbackgroundcolor/fontbackgroundcolorcommand.js';
22
+ export type { default as FontColorCommand } from './fontcolor/fontcolorcommand.js';
23
+ export type { default as FontFamilyCommand } from './fontfamily/fontfamilycommand.js';
24
+ export type { default as FontSizeCommand } from './fontsize/fontsizecommand.js';
25
+ export type { FONT_BACKGROUND_COLOR, FONT_COLOR, FONT_FAMILY, FONT_SIZE } from './utils.js';
26
+ export type { FontColorConfig, FontFamilyConfig, FontSizeConfig } from './fontconfig.js';
27
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font
7
7
  */
8
- export { default as Font } from './font';
9
- export { default as FontBackgroundColor } from './fontbackgroundcolor';
10
- export { default as FontColor } from './fontcolor';
11
- export { default as FontFamily } from './fontfamily';
12
- export { default as FontSize } from './fontsize';
13
- export { default as FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting';
14
- export { default as FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui';
15
- export { default as FontColorEditing } from './fontcolor/fontcolorediting';
16
- export { default as FontColorUI } from './fontcolor/fontcolorui';
17
- export { default as FontFamilyEditing } from './fontfamily/fontfamilyediting';
18
- export { default as FontFamilyUI } from './fontfamily/fontfamilyui';
19
- export { default as FontSizeEditing } from './fontsize/fontsizeediting';
20
- export { default as FontSizeUI } from './fontsize/fontsizeui';
21
- import './augmentation';
8
+ export { default as Font } from './font.js';
9
+ export { default as FontBackgroundColor } from './fontbackgroundcolor.js';
10
+ export { default as FontColor } from './fontcolor.js';
11
+ export { default as FontFamily } from './fontfamily.js';
12
+ export { default as FontSize } from './fontsize.js';
13
+ export { default as FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting.js';
14
+ export { default as FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui.js';
15
+ export { default as FontColorEditing } from './fontcolor/fontcolorediting.js';
16
+ export { default as FontColorUI } from './fontcolor/fontcolorui.js';
17
+ export { default as FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
18
+ export { default as FontFamilyUI } from './fontfamily/fontfamilyui.js';
19
+ export { default as FontSizeEditing } from './fontsize/fontsizeediting.js';
20
+ export { default as FontSizeUI } from './fontsize/fontsizeui.js';
21
+ import './augmentation.js';
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/ui/colorui
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import { type ColorSelectorView } from 'ckeditor5/src/ui';
10
- import { type FONT_BACKGROUND_COLOR, type FONT_COLOR } from '../utils';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import { type ColorSelectorView } from 'ckeditor5/src/ui.js';
10
+ import { type FONT_BACKGROUND_COLOR, type FONT_COLOR } from '../utils.js';
11
11
  /**
12
12
  * The color UI plugin which isolates the common logic responsible for displaying dropdowns with color grids.
13
13
  *
package/src/ui/colorui.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/ui/colorui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { createDropdown, normalizeColorOptions, getLocalizedColorOptions, focusChildOnDropdownOpen } from 'ckeditor5/src/ui';
10
- import { addColorSelectorToDropdown } from '../utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { createDropdown, normalizeColorOptions, getLocalizedColorOptions, focusChildOnDropdownOpen } from 'ckeditor5/src/ui.js';
10
+ import { addColorSelectorToDropdown } from '../utils.js';
11
11
  /**
12
12
  * The color UI plugin which isolates the common logic responsible for displaying dropdowns with color grids.
13
13
  *
package/src/utils.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module font/utils
7
7
  */
8
- import type { FontFamilyOption, FontSizeOption } from './fontconfig';
9
- import { ColorSelectorView, type ColorDefinition, type ColorPickerViewConfig, type DropdownView } from 'ckeditor5/src/ui';
10
- import type { ArrayOrItem } from 'ckeditor5/src/utils';
11
- import type { ViewAttributeElement, ViewElement, MatcherPattern, ViewElementDefinition, DowncastConversionApi } from 'ckeditor5/src/engine';
8
+ import type { FontFamilyOption, FontSizeOption } from './fontconfig.js';
9
+ import { ColorSelectorView, type ColorDefinition, type ColorPickerViewConfig, type DropdownView } from 'ckeditor5/src/ui.js';
10
+ import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
11
+ import type { ViewAttributeElement, ViewElement, MatcherPattern, ViewElementDefinition, DowncastConversionApi } from 'ckeditor5/src/engine.js';
12
12
  /**
13
13
  * The name of the font size plugin.
14
14
  */
package/src/utils.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { ColorSelectorView } from 'ckeditor5/src/ui';
5
+ import { ColorSelectorView } from 'ckeditor5/src/ui.js';
6
6
  /**
7
7
  * The name of the font size plugin.
8
8
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5