@ckeditor/ckeditor5-font 45.0.0 → 45.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-font",
3
- "version": "45.0.0",
3
+ "version": "45.1.0-alpha.0",
4
4
  "description": "Font feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,12 +13,12 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "45.0.0",
17
- "@ckeditor/ckeditor5-engine": "45.0.0",
18
- "@ckeditor/ckeditor5-icons": "45.0.0",
19
- "@ckeditor/ckeditor5-ui": "45.0.0",
20
- "@ckeditor/ckeditor5-utils": "45.0.0",
21
- "ckeditor5": "45.0.0"
16
+ "@ckeditor/ckeditor5-core": "45.1.0-alpha.0",
17
+ "@ckeditor/ckeditor5-engine": "45.1.0-alpha.0",
18
+ "@ckeditor/ckeditor5-icons": "45.1.0-alpha.0",
19
+ "@ckeditor/ckeditor5-ui": "45.1.0-alpha.0",
20
+ "@ckeditor/ckeditor5-utils": "45.1.0-alpha.0",
21
+ "ckeditor5": "45.1.0-alpha.0"
22
22
  },
23
23
  "author": "CKSource (http://cksource.com/)",
24
24
  "license": "SEE LICENSE IN LICENSE.md",
@@ -110,7 +110,7 @@ export default class FontSizeEditing extends Plugin {
110
110
  * See valid examples described in the {@link module:font/fontconfig~FontSizeConfig#options plugin configuration}.
111
111
  *
112
112
  * @error font-size-invalid-use-of-named-presets
113
- * @param {Array.<String>} presets Invalid values.
113
+ * @param {Array.<string>} presets Invalid values.
114
114
  */
115
115
  throw new CKEditorError('font-size-invalid-use-of-named-presets', null, { presets });
116
116
  }
package/src/fontsize.d.ts CHANGED
@@ -35,7 +35,7 @@ export default class FontSize extends Plugin {
35
35
  * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
36
36
  * to the {@link module:font/fontconfig~FontSizeOption} format.
37
37
  *
38
- * @param configuredOptions An array of options taken from the configuration.
38
+ * @param options An array of options taken from the configuration.
39
39
  */
40
40
  normalizeSizeOptions(options: Array<string | number | FontSizeOption>): Array<FontSizeOption>;
41
41
  }
package/src/fontsize.js CHANGED
@@ -41,7 +41,7 @@ export default class FontSize extends Plugin {
41
41
  * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
42
42
  * to the {@link module:font/fontconfig~FontSizeOption} format.
43
43
  *
44
- * @param configuredOptions An array of options taken from the configuration.
44
+ * @param options An array of options taken from the configuration.
45
45
  */
46
46
  normalizeSizeOptions(options) {
47
47
  return normalizeOptions(options);
@@ -43,6 +43,7 @@ export default class ColorUI extends Plugin {
43
43
  * Creates a plugin which introduces a dropdown with a pre–configured
44
44
  * {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
45
45
  *
46
+ * @param editor An editor instance.
46
47
  * @param config The configuration object.
47
48
  * @param config.commandName The name of the command which will be executed when a color tile is clicked.
48
49
  * @param config.componentName The name of the dropdown in the {@link module:ui/componentfactory~ComponentFactory}
package/src/ui/colorui.js CHANGED
@@ -40,6 +40,7 @@ export default class ColorUI extends Plugin {
40
40
  * Creates a plugin which introduces a dropdown with a pre–configured
41
41
  * {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
42
42
  *
43
+ * @param editor An editor instance.
43
44
  * @param config The configuration object.
44
45
  * @param config.commandName The name of the command which will be executed when a color tile is clicked.
45
46
  * @param config.componentName The name of the dropdown in the {@link module:ui/componentfactory~ComponentFactory}
package/src/utils.d.ts CHANGED
@@ -56,13 +56,16 @@ export declare function renderDowncastElement(styleAttr: string): (modelAttribut
56
56
  /**
57
57
  * A helper that adds {@link module:ui/colorselector/colorselectorview~ColorSelectorView} to the color dropdown with proper initial values.
58
58
  *
59
- * @param config.dropdownView The dropdown view to which a {@link module:ui/colorselector/colorselectorview~ColorSelectorView}
59
+ * @param options Configuration options
60
+ * @param options.dropdownView The dropdown view to which a {@link module:ui/colorselector/colorselectorview~ColorSelectorView}
60
61
  * will be added.
61
- * @param config.colors An array with definitions representing colors to be displayed in the color selector.
62
- * @param config.removeButtonLabel The label for the button responsible for removing the color.
63
- * @param config.documentColorsLabel The label for the section with document colors.
64
- * @param config.documentColorsCount The number of document colors inside the dropdown.
65
- * @param config.colorPickerViewConfig Configuration of the color picker view.
62
+ * @param options.colors An array with definitions representing colors to be displayed in the color selector.
63
+ * @param options.columns The number of columns in the color grid.
64
+ * @param options.removeButtonLabel The label for the button responsible for removing the color.
65
+ * @param options.colorPickerLabel The label for the color picker button.
66
+ * @param options.documentColorsLabel The label for the section with document colors.
67
+ * @param options.documentColorsCount The number of document colors inside the dropdown.
68
+ * @param options.colorPickerViewConfig Configuration of the color picker view.
66
69
  * @returns The new color selector view.
67
70
  */
68
71
  export declare function addColorSelectorToDropdown({ dropdownView, colors, columns, removeButtonLabel, colorPickerLabel, documentColorsLabel, documentColorsCount, colorPickerViewConfig }: {
package/src/utils.js CHANGED
@@ -65,13 +65,16 @@ export function renderDowncastElement(styleAttr) {
65
65
  /**
66
66
  * A helper that adds {@link module:ui/colorselector/colorselectorview~ColorSelectorView} to the color dropdown with proper initial values.
67
67
  *
68
- * @param config.dropdownView The dropdown view to which a {@link module:ui/colorselector/colorselectorview~ColorSelectorView}
68
+ * @param options Configuration options
69
+ * @param options.dropdownView The dropdown view to which a {@link module:ui/colorselector/colorselectorview~ColorSelectorView}
69
70
  * will be added.
70
- * @param config.colors An array with definitions representing colors to be displayed in the color selector.
71
- * @param config.removeButtonLabel The label for the button responsible for removing the color.
72
- * @param config.documentColorsLabel The label for the section with document colors.
73
- * @param config.documentColorsCount The number of document colors inside the dropdown.
74
- * @param config.colorPickerViewConfig Configuration of the color picker view.
71
+ * @param options.colors An array with definitions representing colors to be displayed in the color selector.
72
+ * @param options.columns The number of columns in the color grid.
73
+ * @param options.removeButtonLabel The label for the button responsible for removing the color.
74
+ * @param options.colorPickerLabel The label for the color picker button.
75
+ * @param options.documentColorsLabel The label for the section with document colors.
76
+ * @param options.documentColorsCount The number of document colors inside the dropdown.
77
+ * @param options.colorPickerViewConfig Configuration of the color picker view.
75
78
  * @returns The new color selector view.
76
79
  */
77
80
  export function addColorSelectorToDropdown({ dropdownView, colors, columns, removeButtonLabel, colorPickerLabel, documentColorsLabel, documentColorsCount, colorPickerViewConfig }) {