@ckeditor/ckeditor5-block-quote 39.0.1 → 40.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 (80) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +3 -3
  4. package/build/block-quote.js.map +1 -0
  5. package/lang/translations/af.po +1 -0
  6. package/lang/translations/ar.po +1 -0
  7. package/lang/translations/az.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/bs.po +1 -0
  11. package/lang/translations/ca.po +1 -0
  12. package/lang/translations/cs.po +1 -0
  13. package/lang/translations/da.po +1 -0
  14. package/lang/translations/de-ch.po +1 -0
  15. package/lang/translations/de.po +1 -0
  16. package/lang/translations/el.po +1 -0
  17. package/lang/translations/en-au.po +1 -0
  18. package/lang/translations/en-gb.po +1 -0
  19. package/lang/translations/en.po +1 -0
  20. package/lang/translations/es-co.po +1 -0
  21. package/lang/translations/es.po +1 -0
  22. package/lang/translations/et.po +1 -0
  23. package/lang/translations/eu.po +1 -0
  24. package/lang/translations/fa.po +1 -0
  25. package/lang/translations/fi.po +1 -0
  26. package/lang/translations/fr.po +1 -0
  27. package/lang/translations/gl.po +1 -0
  28. package/lang/translations/gu.po +1 -0
  29. package/lang/translations/he.po +1 -0
  30. package/lang/translations/hi.po +1 -0
  31. package/lang/translations/hr.po +1 -0
  32. package/lang/translations/hu.po +1 -0
  33. package/lang/translations/id.po +1 -0
  34. package/lang/translations/it.po +1 -0
  35. package/lang/translations/ja.po +1 -0
  36. package/lang/translations/km.po +1 -0
  37. package/lang/translations/kn.po +1 -0
  38. package/lang/translations/ko.po +1 -0
  39. package/lang/translations/ku.po +1 -0
  40. package/lang/translations/lt.po +1 -0
  41. package/lang/translations/lv.po +1 -0
  42. package/lang/translations/ms.po +1 -0
  43. package/lang/translations/nb.po +1 -0
  44. package/lang/translations/ne.po +1 -0
  45. package/lang/translations/nl.po +1 -0
  46. package/lang/translations/no.po +1 -0
  47. package/lang/translations/pl.po +1 -0
  48. package/lang/translations/pt-br.po +1 -0
  49. package/lang/translations/pt.po +1 -0
  50. package/lang/translations/ro.po +1 -0
  51. package/lang/translations/ru.po +1 -0
  52. package/lang/translations/sk.po +1 -0
  53. package/lang/translations/sl.po +1 -0
  54. package/lang/translations/sq.po +1 -0
  55. package/lang/translations/sr-latn.po +1 -0
  56. package/lang/translations/sr.po +1 -0
  57. package/lang/translations/sv.po +1 -0
  58. package/lang/translations/th.po +1 -0
  59. package/lang/translations/tk.po +1 -0
  60. package/lang/translations/tr.po +1 -0
  61. package/lang/translations/ug.po +1 -0
  62. package/lang/translations/uk.po +1 -0
  63. package/lang/translations/ur.po +1 -0
  64. package/lang/translations/uz.po +1 -0
  65. package/lang/translations/vi.po +1 -0
  66. package/lang/translations/zh-cn.po +1 -0
  67. package/lang/translations/zh.po +1 -0
  68. package/package.json +2 -6
  69. package/src/augmentation.d.ts +15 -15
  70. package/src/augmentation.js +5 -5
  71. package/src/blockquote.d.ts +30 -30
  72. package/src/blockquote.js +34 -34
  73. package/src/blockquotecommand.d.ts +61 -61
  74. package/src/blockquotecommand.js +172 -172
  75. package/src/blockquoteediting.d.ts +31 -31
  76. package/src/blockquoteediting.js +118 -118
  77. package/src/blockquoteui.d.ts +26 -26
  78. package/src/blockquoteui.js +50 -50
  79. package/src/index.d.ts +12 -12
  80. package/src/index.js +11 -11
@@ -1,26 +1,26 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, 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
- * @module block-quote/blockquoteui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import '../theme/blockquote.css';
10
- /**
11
- * The block quote UI plugin.
12
- *
13
- * It introduces the `'blockQuote'` button.
14
- *
15
- * @extends module:core/plugin~Plugin
16
- */
17
- export default class BlockQuoteUI extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "BlockQuoteUI";
22
- /**
23
- * @inheritDoc
24
- */
25
- init(): void;
26
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * @module block-quote/blockquoteui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import '../theme/blockquote.css';
10
+ /**
11
+ * The block quote UI plugin.
12
+ *
13
+ * It introduces the `'blockQuote'` button.
14
+ *
15
+ * @extends module:core/plugin~Plugin
16
+ */
17
+ export default class BlockQuoteUI extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "BlockQuoteUI";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ }
@@ -1,50 +1,50 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, 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
- * @module block-quote/blockquoteui
7
- */
8
- import { Plugin, icons } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import '../theme/blockquote.css';
11
- /**
12
- * The block quote UI plugin.
13
- *
14
- * It introduces the `'blockQuote'` button.
15
- *
16
- * @extends module:core/plugin~Plugin
17
- */
18
- export default class BlockQuoteUI extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get pluginName() {
23
- return 'BlockQuoteUI';
24
- }
25
- /**
26
- * @inheritDoc
27
- */
28
- init() {
29
- const editor = this.editor;
30
- const t = editor.t;
31
- editor.ui.componentFactory.add('blockQuote', locale => {
32
- const command = editor.commands.get('blockQuote');
33
- const buttonView = new ButtonView(locale);
34
- buttonView.set({
35
- label: t('Block quote'),
36
- icon: icons.quote,
37
- tooltip: true,
38
- isToggleable: true
39
- });
40
- // Bind button model to command.
41
- buttonView.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
42
- // Execute command.
43
- this.listenTo(buttonView, 'execute', () => {
44
- editor.execute('blockQuote');
45
- editor.editing.view.focus();
46
- });
47
- return buttonView;
48
- });
49
- }
50
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * @module block-quote/blockquoteui
7
+ */
8
+ import { Plugin, icons } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import '../theme/blockquote.css';
11
+ /**
12
+ * The block quote UI plugin.
13
+ *
14
+ * It introduces the `'blockQuote'` button.
15
+ *
16
+ * @extends module:core/plugin~Plugin
17
+ */
18
+ export default class BlockQuoteUI extends Plugin {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get pluginName() {
23
+ return 'BlockQuoteUI';
24
+ }
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ init() {
29
+ const editor = this.editor;
30
+ const t = editor.t;
31
+ editor.ui.componentFactory.add('blockQuote', locale => {
32
+ const command = editor.commands.get('blockQuote');
33
+ const buttonView = new ButtonView(locale);
34
+ buttonView.set({
35
+ label: t('Block quote'),
36
+ icon: icons.quote,
37
+ tooltip: true,
38
+ isToggleable: true
39
+ });
40
+ // Bind button model to command.
41
+ buttonView.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
42
+ // Execute command.
43
+ this.listenTo(buttonView, 'execute', () => {
44
+ editor.execute('blockQuote');
45
+ editor.editing.view.focus();
46
+ });
47
+ return buttonView;
48
+ });
49
+ }
50
+ }
package/src/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, 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
- * @module block-quote
7
- */
8
- export { default as BlockQuote } from './blockquote';
9
- export { default as BlockQuoteEditing } from './blockquoteediting';
10
- export { default as BlockQuoteUI } from './blockquoteui';
11
- export type { default as BlockQuoteCommand } from './blockquotecommand';
12
- import './augmentation';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * @module block-quote
7
+ */
8
+ export { default as BlockQuote } from './blockquote';
9
+ export { default as BlockQuoteEditing } from './blockquoteediting';
10
+ export { default as BlockQuoteUI } from './blockquoteui';
11
+ export type { default as BlockQuoteCommand } from './blockquotecommand';
12
+ import './augmentation';
package/src/index.js CHANGED
@@ -1,11 +1,11 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, 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
- * @module block-quote
7
- */
8
- export { default as BlockQuote } from './blockquote';
9
- export { default as BlockQuoteEditing } from './blockquoteediting';
10
- export { default as BlockQuoteUI } from './blockquoteui';
11
- import './augmentation';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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
+ * @module block-quote
7
+ */
8
+ export { default as BlockQuote } from './blockquote';
9
+ export { default as BlockQuoteEditing } from './blockquoteediting';
10
+ export { default as BlockQuoteUI } from './blockquoteui';
11
+ import './augmentation';