@ckeditor/ckeditor5-clipboard 41.3.0-alpha.4 → 41.3.1

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 (100) hide show
  1. package/lang/translations/es-co.po +30 -0
  2. package/package.json +6 -7
  3. package/dist/content-index.css +0 -4
  4. package/dist/editor-index.css +0 -23
  5. package/dist/index.css +0 -42
  6. package/dist/index.css.map +0 -1
  7. package/dist/translations/ar.d.ts +0 -8
  8. package/dist/translations/ar.js +0 -5
  9. package/dist/translations/bg.d.ts +0 -8
  10. package/dist/translations/bg.js +0 -5
  11. package/dist/translations/bn.d.ts +0 -8
  12. package/dist/translations/bn.js +0 -5
  13. package/dist/translations/ca.d.ts +0 -8
  14. package/dist/translations/ca.js +0 -5
  15. package/dist/translations/cs.d.ts +0 -8
  16. package/dist/translations/cs.js +0 -5
  17. package/dist/translations/da.d.ts +0 -8
  18. package/dist/translations/da.js +0 -5
  19. package/dist/translations/de.d.ts +0 -8
  20. package/dist/translations/de.js +0 -5
  21. package/dist/translations/el.d.ts +0 -8
  22. package/dist/translations/el.js +0 -5
  23. package/dist/translations/en.d.ts +0 -8
  24. package/dist/translations/en.js +0 -5
  25. package/dist/translations/es.d.ts +0 -8
  26. package/dist/translations/es.js +0 -5
  27. package/dist/translations/et.d.ts +0 -8
  28. package/dist/translations/et.js +0 -5
  29. package/dist/translations/fi.d.ts +0 -8
  30. package/dist/translations/fi.js +0 -5
  31. package/dist/translations/fr.d.ts +0 -8
  32. package/dist/translations/fr.js +0 -5
  33. package/dist/translations/he.d.ts +0 -8
  34. package/dist/translations/he.js +0 -5
  35. package/dist/translations/hi.d.ts +0 -8
  36. package/dist/translations/hi.js +0 -5
  37. package/dist/translations/hr.d.ts +0 -8
  38. package/dist/translations/hr.js +0 -5
  39. package/dist/translations/hu.d.ts +0 -8
  40. package/dist/translations/hu.js +0 -5
  41. package/dist/translations/id.d.ts +0 -8
  42. package/dist/translations/id.js +0 -5
  43. package/dist/translations/it.d.ts +0 -8
  44. package/dist/translations/it.js +0 -5
  45. package/dist/translations/ja.d.ts +0 -8
  46. package/dist/translations/ja.js +0 -5
  47. package/dist/translations/ko.d.ts +0 -8
  48. package/dist/translations/ko.js +0 -5
  49. package/dist/translations/lt.d.ts +0 -8
  50. package/dist/translations/lt.js +0 -5
  51. package/dist/translations/lv.d.ts +0 -8
  52. package/dist/translations/lv.js +0 -5
  53. package/dist/translations/ms.d.ts +0 -8
  54. package/dist/translations/ms.js +0 -5
  55. package/dist/translations/nl.d.ts +0 -8
  56. package/dist/translations/nl.js +0 -5
  57. package/dist/translations/no.d.ts +0 -8
  58. package/dist/translations/no.js +0 -5
  59. package/dist/translations/pl.d.ts +0 -8
  60. package/dist/translations/pl.js +0 -5
  61. package/dist/translations/pt-br.d.ts +0 -8
  62. package/dist/translations/pt-br.js +0 -5
  63. package/dist/translations/pt.d.ts +0 -8
  64. package/dist/translations/pt.js +0 -5
  65. package/dist/translations/ro.d.ts +0 -8
  66. package/dist/translations/ro.js +0 -5
  67. package/dist/translations/ru.d.ts +0 -8
  68. package/dist/translations/ru.js +0 -5
  69. package/dist/translations/sk.d.ts +0 -8
  70. package/dist/translations/sk.js +0 -5
  71. package/dist/translations/sr.d.ts +0 -8
  72. package/dist/translations/sr.js +0 -5
  73. package/dist/translations/sv.d.ts +0 -8
  74. package/dist/translations/sv.js +0 -5
  75. package/dist/translations/th.d.ts +0 -8
  76. package/dist/translations/th.js +0 -5
  77. package/dist/translations/tr.d.ts +0 -8
  78. package/dist/translations/tr.js +0 -5
  79. package/dist/translations/uk.d.ts +0 -8
  80. package/dist/translations/uk.js +0 -5
  81. package/dist/translations/vi.d.ts +0 -8
  82. package/dist/translations/vi.js +0 -5
  83. package/dist/translations/zh-cn.d.ts +0 -8
  84. package/dist/translations/zh-cn.js +0 -5
  85. package/dist/translations/zh.d.ts +0 -8
  86. package/dist/translations/zh.js +0 -5
  87. package/dist/types/augmentation.d.ts +0 -20
  88. package/dist/types/clipboard.d.ts +0 -40
  89. package/dist/types/clipboardmarkersutils.d.ts +0 -204
  90. package/dist/types/clipboardobserver.d.ts +0 -316
  91. package/dist/types/clipboardpipeline.d.ts +0 -269
  92. package/dist/types/dragdrop.d.ts +0 -106
  93. package/dist/types/dragdropblocktoolbar.d.ts +0 -51
  94. package/dist/types/dragdroptarget.d.ts +0 -98
  95. package/dist/types/index.d.ts +0 -21
  96. package/dist/types/lineview.d.ts +0 -49
  97. package/dist/types/pasteplaintext.d.ts +0 -32
  98. package/dist/types/utils/normalizeclipboarddata.d.ts +0 -19
  99. package/dist/types/utils/plaintexttohtml.d.ts +0 -18
  100. package/dist/types/utils/viewtoplaintext.d.ts +0 -19
@@ -1,51 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard/dragdropblocktoolbar
11
- */
12
- import { Plugin } from '@ckeditor/ckeditor5-core';
13
- /**
14
- * Integration of a block Drag and Drop support with the block toolbar.
15
- *
16
- * @internal
17
- */
18
- export default class DragDropBlockToolbar extends Plugin {
19
- /**
20
- * Whether current dragging is started by block toolbar button dragging.
21
- */
22
- private _isBlockDragging;
23
- /**
24
- * DOM Emitter.
25
- */
26
- private _domEmitter;
27
- /**
28
- * @inheritDoc
29
- */
30
- static get pluginName(): "DragDropBlockToolbar";
31
- /**
32
- * @inheritDoc
33
- */
34
- init(): void;
35
- /**
36
- * @inheritDoc
37
- */
38
- destroy(): void;
39
- /**
40
- * The `dragstart` event handler.
41
- */
42
- private _handleBlockDragStart;
43
- /**
44
- * The `dragover` and `drop` event handler.
45
- */
46
- private _handleBlockDragging;
47
- /**
48
- * The `dragend` event handler.
49
- */
50
- private _handleBlockDragEnd;
51
- }
@@ -1,98 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard/dragdroptarget
11
- */
12
- import { Plugin } from '@ckeditor/ckeditor5-core';
13
- import { type Range, type LiveRange, type ViewElement, type ViewRange } from '@ckeditor/ckeditor5-engine';
14
- /**
15
- * Part of the Drag and Drop handling. Responsible for finding and displaying the drop target.
16
- *
17
- * @internal
18
- */
19
- export default class DragDropTarget extends Plugin {
20
- /**
21
- * A delayed callback removing the drop marker.
22
- *
23
- * @internal
24
- */
25
- readonly removeDropMarkerDelayed: import("@ckeditor/ckeditor5-utils").DelayedFunc<() => void>;
26
- /**
27
- * A throttled callback updating the drop marker.
28
- */
29
- private readonly _updateDropMarkerThrottled;
30
- /**
31
- * A throttled callback reconverting the drop parker.
32
- */
33
- private readonly _reconvertMarkerThrottled;
34
- /**
35
- * The horizontal drop target line view.
36
- */
37
- private _dropTargetLineView;
38
- /**
39
- * DOM Emitter.
40
- */
41
- private _domEmitter;
42
- /**
43
- * Map of document scrollable elements.
44
- */
45
- private _scrollables;
46
- /**
47
- * @inheritDoc
48
- */
49
- static get pluginName(): "DragDropTarget";
50
- /**
51
- * @inheritDoc
52
- */
53
- init(): void;
54
- /**
55
- * @inheritDoc
56
- */
57
- destroy(): void;
58
- /**
59
- * Finds the drop target range and updates the drop marker.
60
- *
61
- * @internal
62
- */
63
- updateDropMarker(targetViewElement: ViewElement, targetViewRanges: Array<ViewRange> | null, clientX: number, clientY: number, blockMode: boolean, draggedRange: LiveRange | null): void;
64
- /**
65
- * Finds the final drop target range.
66
- *
67
- * @internal
68
- */
69
- getFinalDropRange(targetViewElement: ViewElement, targetViewRanges: Array<ViewRange> | null, clientX: number, clientY: number, blockMode: boolean, draggedRange: LiveRange | null): Range | null;
70
- /**
71
- * Removes the drop target marker.
72
- *
73
- * @internal
74
- */
75
- removeDropMarker(): void;
76
- /**
77
- * Creates downcast conversion for the drop target marker.
78
- */
79
- private _setupDropMarker;
80
- /**
81
- * Updates the drop target marker to the provided range.
82
- *
83
- * @param targetRange The range to set the marker to.
84
- */
85
- private _updateDropMarker;
86
- /**
87
- * Creates the UI element for vertical (in-line) drop target.
88
- */
89
- private _createDropTargetPosition;
90
- /**
91
- * Updates the horizontal drop target line.
92
- */
93
- private _updateDropTargetLine;
94
- /**
95
- * Finds the closest scrollable element rect for the given view element.
96
- */
97
- private _getScrollableRect;
98
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard
11
- */
12
- export { default as Clipboard } from './clipboard.js';
13
- export { default as ClipboardPipeline, type ClipboardContentInsertionEvent, type ClipboardContentInsertionData, type ClipboardInputTransformationEvent, type ClipboardInputTransformationData, type ClipboardOutputTransformationEvent, type ClipboardOutputTransformationData, type ViewDocumentClipboardOutputEvent } from './clipboardpipeline.js';
14
- export { default as ClipboardMarkersUtils, type ClipboardMarkerRestrictedAction, type ClipboardMarkerConfiguration } from './clipboardmarkersutils.js';
15
- export type { ClipboardEventData } from './clipboardobserver.js';
16
- export { default as DragDrop } from './dragdrop.js';
17
- export { default as PastePlainText } from './pasteplaintext.js';
18
- export { default as DragDropTarget } from './dragdroptarget.js';
19
- export { default as DragDropBlockToolbar } from './dragdropblocktoolbar.js';
20
- export type { ViewDocumentClipboardInputEvent, ViewDocumentCopyEvent, ViewDocumentCutEvent } from './clipboardobserver.js';
21
- import './augmentation.js';
@@ -1,49 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard/lineview
11
- */
12
- import { View } from '@ckeditor/ckeditor5-ui';
13
- /**
14
- * The horizontal drop target line view.
15
- */
16
- export default class LineView extends View {
17
- /**
18
- * Controls whether the line is visible.
19
- *
20
- * @observable
21
- * @default false
22
- */
23
- isVisible: boolean;
24
- /**
25
- * Controls the line position x coordinate.
26
- *
27
- * @observable
28
- * @default null
29
- */
30
- left: number | null;
31
- /**
32
- * Controls the line width.
33
- *
34
- * @observable
35
- * @default null
36
- */
37
- width: number | null;
38
- /**
39
- * Controls the line position y coordinate.
40
- *
41
- * @observable
42
- * @default null
43
- */
44
- top: number | null;
45
- /**
46
- * @inheritDoc
47
- */
48
- constructor();
49
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard/pasteplaintext
11
- */
12
- import { Plugin } from '@ckeditor/ckeditor5-core';
13
- import ClipboardPipeline from './clipboardpipeline.js';
14
- /**
15
- * The plugin detects the user's intention to paste plain text.
16
- *
17
- * For example, it detects the <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd> keystroke.
18
- */
19
- export default class PastePlainText extends Plugin {
20
- /**
21
- * @inheritDoc
22
- */
23
- static get pluginName(): "PastePlainText";
24
- /**
25
- * @inheritDoc
26
- */
27
- static get requires(): readonly [typeof ClipboardPipeline];
28
- /**
29
- * @inheritDoc
30
- */
31
- init(): void;
32
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard/utils/normalizeclipboarddata
11
- */
12
- /**
13
- * Removes some popular browser quirks out of the clipboard data (HTML).
14
- * Removes all HTML comments. These are considered an internal thing and it makes little sense if they leak into the editor data.
15
- *
16
- * @param data The HTML data to normalize.
17
- * @returns Normalized HTML.
18
- */
19
- export default function normalizeClipboardData(data: string): string;
@@ -1,18 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard/utils/plaintexttohtml
11
- */
12
- /**
13
- * Converts plain text to its HTML-ized version.
14
- *
15
- * @param text The plain text to convert.
16
- * @returns HTML generated from the plain text.
17
- */
18
- export default function plainTextToHtml(text: string): string;
@@ -1,19 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module clipboard/utils/viewtoplaintext
11
- */
12
- import type { ViewDocumentFragment, ViewItem } from '@ckeditor/ckeditor5-engine';
13
- /**
14
- * Converts {@link module:engine/view/item~Item view item} and all of its children to plain text.
15
- *
16
- * @param viewItem View item to convert.
17
- * @returns Plain text representation of `viewItem`.
18
- */
19
- export default function viewToPlainText(viewItem: ViewItem | ViewDocumentFragment): string;