@ckeditor/ckeditor5-highlight 48.2.0 → 48.3.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.
@@ -1,81 +1,81 @@
1
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
- */
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
5
  /**
6
- * @module highlight/highlightui
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import './../theme/highlight.css';
6
+ * @module highlight/highlightui
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
+ import "./../theme/highlight.css";
10
10
  /**
11
- * The default highlight UI plugin. It introduces:
12
- *
13
- * * The `'highlight'` dropdown,
14
- * * The `'removeHighlight'` and `'highlight:*'` buttons.
15
- *
16
- * The default configuration includes the following buttons:
17
- *
18
- * * `'highlight:yellowMarker'`
19
- * * `'highlight:greenMarker'`
20
- * * `'highlight:pinkMarker'`
21
- * * `'highlight:blueMarker'`
22
- * * `'highlight:redPen'`
23
- * * `'highlight:greenPen'`
24
- *
25
- * See the {@link module:highlight/highlightconfig~HighlightConfig#options configuration} to learn more
26
- * about the defaults.
27
- */
11
+ * The default highlight UI plugin. It introduces:
12
+ *
13
+ * * The `'highlight'` dropdown,
14
+ * * The `'removeHighlight'` and `'highlight:*'` buttons.
15
+ *
16
+ * The default configuration includes the following buttons:
17
+ *
18
+ * * `'highlight:yellowMarker'`
19
+ * * `'highlight:greenMarker'`
20
+ * * `'highlight:pinkMarker'`
21
+ * * `'highlight:blueMarker'`
22
+ * * `'highlight:redPen'`
23
+ * * `'highlight:greenPen'`
24
+ *
25
+ * See the {@link module:highlight/highlightconfig~HighlightConfig#options configuration} to learn more
26
+ * about the defaults.
27
+ */
28
28
  export declare class HighlightUI extends Plugin {
29
- /**
30
- * Returns the localized option titles provided by the plugin.
31
- *
32
- * The following localized titles corresponding with default
33
- * {@link module:highlight/highlightconfig~HighlightConfig#options} are available:
34
- *
35
- * * `'Yellow marker'`,
36
- * * `'Green marker'`,
37
- * * `'Pink marker'`,
38
- * * `'Blue marker'`,
39
- * * `'Red pen'`,
40
- * * `'Green pen'`.
41
- */
42
- get localizedOptionTitles(): Record<string, string>;
43
- /**
44
- * @inheritDoc
45
- */
46
- static get pluginName(): "HighlightUI";
47
- /**
48
- * @inheritDoc
49
- */
50
- static get isOfficialPlugin(): true;
51
- /**
52
- * @inheritDoc
53
- */
54
- init(): void;
55
- /**
56
- * Creates the "Remove highlight" button.
57
- */
58
- private _addRemoveHighlightButton;
59
- /**
60
- * Creates a toolbar button from the provided highlight option.
61
- */
62
- private _addHighlighterButton;
63
- /**
64
- * Internal method for creating highlight buttons.
65
- *
66
- * @param name The name of the button.
67
- * @param label The label for the button.
68
- * @param icon The button icon.
69
- * @param value The `value` property passed to the executed command.
70
- * @param decorateButton A callback getting ButtonView instance so that it can be further customized.
71
- */
72
- private _addButton;
73
- /**
74
- * Creates the split button dropdown UI from the provided highlight options.
75
- */
76
- private _addDropdown;
77
- /**
78
- * Creates the menu bar button for highlight including submenu with available options.
79
- */
80
- private _addMenuBarButton;
29
+ /**
30
+ * Returns the localized option titles provided by the plugin.
31
+ *
32
+ * The following localized titles corresponding with default
33
+ * {@link module:highlight/highlightconfig~HighlightConfig#options} are available:
34
+ *
35
+ * * `'Yellow marker'`,
36
+ * * `'Green marker'`,
37
+ * * `'Pink marker'`,
38
+ * * `'Blue marker'`,
39
+ * * `'Red pen'`,
40
+ * * `'Green pen'`.
41
+ */
42
+ get localizedOptionTitles(): Record<string, string>;
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ static get pluginName(): "HighlightUI";
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ static override get isOfficialPlugin(): true;
51
+ /**
52
+ * @inheritDoc
53
+ */
54
+ init(): void;
55
+ /**
56
+ * Creates the "Remove highlight" button.
57
+ */
58
+ private _addRemoveHighlightButton;
59
+ /**
60
+ * Creates a toolbar button from the provided highlight option.
61
+ */
62
+ private _addHighlighterButton;
63
+ /**
64
+ * Internal method for creating highlight buttons.
65
+ *
66
+ * @param name The name of the button.
67
+ * @param label The label for the button.
68
+ * @param icon The button icon.
69
+ * @param value The `value` property passed to the executed command.
70
+ * @param decorateButton A callback getting ButtonView instance so that it can be further customized.
71
+ */
72
+ private _addButton;
73
+ /**
74
+ * Creates the split button dropdown UI from the provided highlight options.
75
+ */
76
+ private _addDropdown;
77
+ /**
78
+ * Creates the menu bar button for highlight including submenu with available options.
79
+ */
80
+ private _addMenuBarButton;
81
81
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../theme/highlight.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;AAC/C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;AAC9C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM;AAC7C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM;AAC7C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACzC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC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AAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AAC9C,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;AACzB;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n:root {\n\t--ck-content-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-content-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-content-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-content-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-content-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-content-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n.ck-content .marker-yellow {\n\tbackground-color: var(--ck-content-highlight-marker-yellow);\n}\n\n.ck-content .marker-green {\n\tbackground-color: var(--ck-content-highlight-marker-green);\n}\n\n.ck-content .marker-pink {\n\tbackground-color: var(--ck-content-highlight-marker-pink);\n}\n\n.ck-content .marker-blue {\n\tbackground-color: var(--ck-content-highlight-marker-blue);\n}\n\n.ck-content .pen-red {\n\tcolor: var(--ck-content-highlight-pen-red);\n\n\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\tbackground-color: transparent;\n}\n\n.ck-content .pen-green {\n\tcolor: var(--ck-content-highlight-pen-green);\n\n\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\tbackground-color: transparent;\n}\n",":root {\n --ck-content-highlight-marker-yellow: #fdfd77;\n --ck-content-highlight-marker-green: #62f962;\n --ck-content-highlight-marker-pink: #fc7899;\n --ck-content-highlight-marker-blue: #72ccfd;\n --ck-content-highlight-pen-red: #e71313;\n --ck-content-highlight-pen-green: #128a00;\n}\n\n.ck-content .marker-yellow {\n background-color: var(--ck-content-highlight-marker-yellow);\n}\n\n.ck-content .marker-green {\n background-color: var(--ck-content-highlight-marker-green);\n}\n\n.ck-content .marker-pink {\n background-color: var(--ck-content-highlight-marker-pink);\n}\n\n.ck-content .marker-blue {\n background-color: var(--ck-content-highlight-marker-blue);\n}\n\n.ck-content .pen-red {\n color: var(--ck-content-highlight-pen-red);\n background-color: #0000;\n}\n\n.ck-content .pen-green {\n color: var(--ck-content-highlight-pen-green);\n background-color: #0000;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
1
+ {"version":3,"sources":["../theme/highlight.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;AAC/C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;AAC9C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM;AAC7C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM;AAC7C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACzC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;AAC3C;;ADOA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,MAAA,CAAA,MAAA,CAAA;ACJA,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC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,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n:root {\n\t--ck-content-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-content-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-content-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-content-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-content-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-content-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n.ck-content .marker-yellow {\n\tbackground-color: var(--ck-content-highlight-marker-yellow);\n}\n\n.ck-content .marker-green {\n\tbackground-color: var(--ck-content-highlight-marker-green);\n}\n\n.ck-content .marker-pink {\n\tbackground-color: var(--ck-content-highlight-marker-pink);\n}\n\n.ck-content .marker-blue {\n\tbackground-color: var(--ck-content-highlight-marker-blue);\n}\n\n.ck-content .pen-red {\n\tcolor: var(--ck-content-highlight-pen-red);\n\n\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\tbackground-color: transparent;\n}\n\n.ck-content .pen-green {\n\tcolor: var(--ck-content-highlight-pen-green);\n\n\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\tbackground-color: transparent;\n}\n",":root {\n --ck-content-highlight-marker-yellow: #fdfd77;\n --ck-content-highlight-marker-green: #62f962;\n --ck-content-highlight-marker-pink: #fc7899;\n --ck-content-highlight-marker-blue: #72ccfd;\n --ck-content-highlight-pen-red: #e71313;\n --ck-content-highlight-pen-green: #128a00;\n}\n\n.ck-content .marker-yellow {\n background-color: var(--ck-content-highlight-marker-yellow);\n}\n\n.ck-content .marker-green {\n background-color: var(--ck-content-highlight-marker-green);\n}\n\n.ck-content .marker-pink {\n background-color: var(--ck-content-highlight-marker-pink);\n}\n\n.ck-content .marker-blue {\n background-color: var(--ck-content-highlight-marker-blue);\n}\n\n.ck-content .pen-red {\n color: var(--ck-content-highlight-pen-red);\n background-color: #0000;\n}\n\n.ck-content .pen-green {\n color: var(--ck-content-highlight-pen-green);\n background-color: #0000;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
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
- */
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
5
  /**
6
- * @module highlight
7
- */
8
- export { Highlight } from './highlight.js';
9
- export { HighlightEditing } from './highlightediting.js';
10
- export { HighlightUI } from './highlightui.js';
11
- export { HighlightCommand } from './highlightcommand.js';
12
- export type { HighlightOption, HighlightConfig } from './highlightconfig.js';
13
- import './augmentation.js';
6
+ * @module highlight
7
+ */
8
+ export { Highlight } from "./highlight.js";
9
+ export { HighlightEditing } from "./highlightediting.js";
10
+ export { HighlightUI } from "./highlightui.js";
11
+ export { HighlightCommand } from "./highlightcommand.js";
12
+ export type { HighlightOption, HighlightConfig } from "./highlightconfig.js";
13
+ import "./augmentation.js";