@ckeditor/ckeditor5-clipboard 37.0.0-alpha.0 → 37.0.0-alpha.2

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-clipboard",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "Clipboard integration feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,30 +12,30 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
16
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
17
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
18
- "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.0",
15
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
16
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
17
+ "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
18
+ "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.2",
19
19
  "lodash-es": "^4.17.15"
20
20
  },
21
21
  "devDependencies": {
22
- "@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
32
- "@ckeditor/ckeditor5-link": "^37.0.0-alpha.0",
33
- "@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.0",
34
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
35
- "@ckeditor/ckeditor5-paste-from-office": "^37.0.0-alpha.0",
36
- "@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.0",
37
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
38
- "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
22
+ "@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.2",
23
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.2",
30
+ "@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.2",
31
+ "@ckeditor/ckeditor5-image": "^37.0.0-alpha.2",
32
+ "@ckeditor/ckeditor5-link": "^37.0.0-alpha.2",
33
+ "@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.2",
34
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
35
+ "@ckeditor/ckeditor5-paste-from-office": "^37.0.0-alpha.2",
36
+ "@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.2",
37
+ "@ckeditor/ckeditor5-table": "^37.0.0-alpha.2",
38
+ "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.2",
39
39
  "typescript": "^4.8.4",
40
40
  "webpack": "^5.58.1",
41
41
  "webpack-cli": "^4.9.0"
@@ -62,7 +62,7 @@
62
62
  "CHANGELOG.md"
63
63
  ],
64
64
  "scripts": {
65
- "build": "tsc -p ./tsconfig.release.json",
65
+ "build": "tsc -p ./tsconfig.json",
66
66
  "postversion": "npm run build"
67
67
  },
68
68
  "types": "src/index.d.ts"
@@ -0,0 +1,13 @@
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
+ import type { Clipboard, ClipboardPipeline, DragDrop, PastePlainText } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [Clipboard.pluginName]: Clipboard;
9
+ [ClipboardPipeline.pluginName]: ClipboardPipeline;
10
+ [DragDrop.pluginName]: DragDrop;
11
+ [PastePlainText.pluginName]: PastePlainText;
12
+ }
13
+ }
@@ -0,0 +1,5 @@
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
+ export {};
@@ -26,8 +26,3 @@ export default class Clipboard extends Plugin {
26
26
  */
27
27
  static get requires(): PluginDependencies;
28
28
  }
29
- declare module '@ckeditor/ckeditor5-core' {
30
- interface PluginsMap {
31
- [Clipboard.pluginName]: Clipboard;
32
- }
33
- }
@@ -44,7 +44,8 @@ export interface ClipboardEventData {
44
44
  dropRange?: ViewRange | null;
45
45
  }
46
46
  /**
47
- * Fired as a continuation of the {@link #event:paste} and {@link #event:drop} events.
47
+ * Fired as a continuation of the {@link module:engine/view/document~Document#event:paste} and
48
+ * {@link module:engine/view/document~Document#event:drop} events.
48
49
  *
49
50
  * It is a part of the {@glink framework/deep-dive/clipboard#input-pipeline clipboard input pipeline}.
50
51
  *
@@ -59,7 +60,7 @@ export interface ClipboardEventData {
59
60
  * @see module:clipboard/clipboardobserver~ClipboardObserver
60
61
  * @see module:clipboard/clipboard~Clipboard
61
62
  *
62
- * @eventName clipboardInput
63
+ * @eventName module:engine/view/document~Document#clipboardInput
63
64
  * @param data The event data.
64
65
  */
65
66
  export type ViewDocumentClipboardInputEvent = {
@@ -108,7 +109,7 @@ export interface ClipboardInputEventData {
108
109
  *
109
110
  * @see module:engine/view/document~Document#event:clipboardInput
110
111
  *
111
- * @eventName dragover
112
+ * @eventName module:engine/view/document~Document#dragover
112
113
  * @param data The event data.
113
114
  */
114
115
  export type ViewDocumentDragOverEvent = {
@@ -127,7 +128,7 @@ export type ViewDocumentDragOverEvent = {
127
128
  *
128
129
  * @see module:engine/view/document~Document#event:clipboardInput
129
130
  *
130
- * @eventName drop
131
+ * @eventName module:engine/view/document~Document#drop
131
132
  * @param data The event data.
132
133
  */
133
134
  export type ViewDocumentDropEvent = {
@@ -146,7 +147,7 @@ export type ViewDocumentDropEvent = {
146
147
  *
147
148
  * @see module:engine/view/document~Document#event:clipboardInput
148
149
  *
149
- * @eventName paste
150
+ * @eventName module:engine/view/document~Document#paste
150
151
  * @param {module:clipboard/clipboardobserver~ClipboardEventData} data The event data.
151
152
  */
152
153
  export type ViewDocumentPasteEvent = {
@@ -165,7 +166,7 @@ export type ViewDocumentPasteEvent = {
165
166
  *
166
167
  * @see module:clipboard/clipboardobserver~ClipboardObserver
167
168
  *
168
- * @eventName copy
169
+ * @eventName module:engine/view/document~Document#copy
169
170
  * @param data The event data.
170
171
  */
171
172
  export type ViewDocumentCopyEvent = {
@@ -184,7 +185,7 @@ export type ViewDocumentCopyEvent = {
184
185
  *
185
186
  * @see module:clipboard/clipboardobserver~ClipboardObserver
186
187
  *
187
- * @eventName cut
188
+ * @eventName module:engine/view/document~Document#cut
188
189
  * @param data The event data.
189
190
  */
190
191
  export type ViewDocumentCutEvent = {
@@ -192,7 +193,7 @@ export type ViewDocumentCutEvent = {
192
193
  args: [data: DomEventData<ClipboardEvent> & ClipboardEventData];
193
194
  };
194
195
  /**
195
- * Fired as a continuation of the {@link #event:dragover} event.
196
+ * Fired as a continuation of the {@link module:engine/view/document~Document#event:dragover} event.
196
197
  *
197
198
  * It is a part of the {@glink framework/deep-dive/clipboard#input-pipeline clipboard input pipeline}.
198
199
  *
@@ -207,7 +208,7 @@ export type ViewDocumentCutEvent = {
207
208
  * @see module:clipboard/clipboardobserver~ClipboardObserver
208
209
  * @see module:clipboard/clipboard~Clipboard
209
210
  *
210
- * @eventName dragging
211
+ * @eventName module:engine/view/document~Document#dragging
211
212
  * @param data The event data.
212
213
  */
213
214
  export type ViewDocumentDraggingEvent = {
@@ -245,7 +246,7 @@ export interface DraggingEventData {
245
246
  *
246
247
  * @see module:engine/view/document~Document#event:clipboardInput
247
248
  *
248
- * @eventName dragstart
249
+ * @eventName module:engine/view/document~Document#dragstart
249
250
  * @param data The event data.
250
251
  */
251
252
  export type ViewDocumentDragStartEvent = {
@@ -264,7 +265,7 @@ export type ViewDocumentDragStartEvent = {
264
265
  *
265
266
  * @see module:engine/view/document~Document#event:clipboardInput
266
267
  *
267
- * @eventName dragend
268
+ * @eventName module:engine/view/document~Document#dragend
268
269
  * @param data The event data.
269
270
  */
270
271
  export type ViewDocumentDragEndEvent = {
@@ -283,7 +284,7 @@ export type ViewDocumentDragEndEvent = {
283
284
  *
284
285
  * @see module:engine/view/document~Document#event:clipboardInput
285
286
  *
286
- * @eventName dragenter
287
+ * @eventName module:engine/view/document~Document#dragenter
287
288
  * @param data The event data.
288
289
  */
289
290
  export type ViewDocumentDragEnterEvent = {
@@ -302,7 +303,7 @@ export type ViewDocumentDragEnterEvent = {
302
303
  *
303
304
  * @see module:engine/view/document~Document#event:clipboardInput
304
305
  *
305
- * @eventName dragleave
306
+ * @eventName module:engine/view/document~Document#dragleave
306
307
  * @param data The event data.
307
308
  */
308
309
  export type ViewDocumentDragLeaveEvent = {
@@ -101,7 +101,7 @@ export default class ClipboardPipeline extends Plugin {
101
101
  * @see module:clipboard/clipboardobserver~ClipboardObserver
102
102
  * @see module:clipboard/clipboardpipeline~ClipboardPipeline
103
103
  *
104
- * @eventName inputTransformation
104
+ * @eventName ~ClipboardPipeline#inputTransformation
105
105
  * @param data The event data.
106
106
  */
107
107
  export type ClipboardInputTransformationEvent = {
@@ -149,7 +149,7 @@ export interface ClipboardInputTransformationData {
149
149
  * @see module:clipboard/clipboardpipeline~ClipboardPipeline
150
150
  * @see module:clipboard/clipboardpipeline~ClipboardPipeline#event:inputTransformation
151
151
  *
152
- * @eventName contentInsertion
152
+ * @eventName ~ClipboardPipeline#contentInsertion
153
153
  * @param data The event data.
154
154
  */
155
155
  export type ClipboardContentInsertionEvent = {
@@ -192,17 +192,17 @@ export interface ClipboardContentInsertionData {
192
192
  * @see module:clipboard/clipboardobserver~ClipboardObserver
193
193
  * @see module:clipboard/clipboardpipeline~ClipboardPipeline
194
194
  *
195
- * @eventName clipboardOutput
195
+ * @eventName module:engine/view/document~Document#clipboardOutput
196
196
  * @param data The event data.
197
197
  */
198
- export type ClipboardOutputEvent = {
198
+ export type ViewDocumentClipboardOutputEvent = {
199
199
  name: 'clipboardOutput';
200
- args: [data: ClipboardOutputEventData];
200
+ args: [data: ViewDocumentClipboardOutputEventData];
201
201
  };
202
202
  /**
203
203
  * The value of the 'clipboardOutput' event.
204
204
  */
205
- export interface ClipboardOutputEventData {
205
+ export interface ViewDocumentClipboardOutputEventData {
206
206
  /**
207
207
  * The data transfer instance.
208
208
  *
@@ -219,8 +219,3 @@ export interface ClipboardOutputEventData {
219
219
  */
220
220
  method: 'copy' | 'cut' | 'dragstart';
221
221
  }
222
- declare module '@ckeditor/ckeditor5-core' {
223
- interface PluginsMap {
224
- [ClipboardPipeline.pluginName]: ClipboardPipeline;
225
- }
226
- }
package/src/dragdrop.d.ts CHANGED
@@ -96,8 +96,3 @@ export default class DragDrop extends Plugin {
96
96
  */
97
97
  private _finalizeDragging;
98
98
  }
99
- declare module '@ckeditor/ckeditor5-core' {
100
- interface PluginsMap {
101
- [DragDrop.pluginName]: DragDrop;
102
- }
103
- }
package/src/index.d.ts CHANGED
@@ -6,8 +6,9 @@
6
6
  * @module clipboard
7
7
  */
8
8
  export { default as Clipboard } from './clipboard';
9
- export { default as ClipboardPipeline, type ClipboardContentInsertionEvent, type ClipboardInputTransformationEvent, type ClipboardInputTransformationData, type ClipboardOutputEvent } from './clipboardpipeline';
9
+ export { default as ClipboardPipeline, type ClipboardContentInsertionEvent, type ClipboardInputTransformationEvent, type ClipboardInputTransformationData, type ViewDocumentClipboardOutputEvent } from './clipboardpipeline';
10
10
  export type { ClipboardEventData } from './clipboardobserver';
11
11
  export { default as DragDrop } from './dragdrop';
12
12
  export { default as PastePlainText } from './pasteplaintext';
13
13
  export type { ViewDocumentClipboardInputEvent, ViewDocumentCopyEvent, ViewDocumentCutEvent } from './clipboardobserver';
14
+ import './augmentation';
package/src/index.js CHANGED
@@ -9,3 +9,4 @@ export { default as Clipboard } from './clipboard';
9
9
  export { default as ClipboardPipeline } from './clipboardpipeline';
10
10
  export { default as DragDrop } from './dragdrop';
11
11
  export { default as PastePlainText } from './pasteplaintext';
12
+ import './augmentation';
@@ -25,8 +25,3 @@ export default class PastePlainText extends Plugin {
25
25
  */
26
26
  init(): void;
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface PluginsMap {
30
- [PastePlainText.pluginName]: PastePlainText;
31
- }
32
- }