@ckeditor/ckeditor5-paste-from-office 44.1.0-alpha.5 → 44.2.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.
Files changed (68) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/paste-from-office.js +1 -1
  3. package/dist/index-content.css +2 -2
  4. package/dist/index-editor.css +2 -2
  5. package/dist/index.css +2 -2
  6. package/dist/index.js +10 -10
  7. package/dist/index.js.map +1 -1
  8. package/package.json +26 -6
  9. package/src/augmentation.d.ts +1 -1
  10. package/src/augmentation.js +1 -1
  11. package/src/filters/bookmark.d.ts +1 -1
  12. package/src/filters/bookmark.js +1 -1
  13. package/src/filters/br.d.ts +1 -1
  14. package/src/filters/br.js +1 -1
  15. package/src/filters/image.d.ts +1 -1
  16. package/src/filters/image.js +1 -1
  17. package/src/filters/list.d.ts +1 -1
  18. package/src/filters/list.js +1 -1
  19. package/src/filters/parse.d.ts +1 -1
  20. package/src/filters/parse.js +1 -1
  21. package/src/filters/removeboldwrapper.d.ts +1 -1
  22. package/src/filters/removeboldwrapper.js +1 -1
  23. package/src/filters/removegooglesheetstag.d.ts +1 -1
  24. package/src/filters/removegooglesheetstag.js +1 -1
  25. package/src/filters/removeinvalidtablewidth.d.ts +1 -1
  26. package/src/filters/removeinvalidtablewidth.js +1 -1
  27. package/src/filters/removemsattributes.d.ts +1 -1
  28. package/src/filters/removemsattributes.js +1 -1
  29. package/src/filters/removestyleblock.d.ts +1 -1
  30. package/src/filters/removestyleblock.js +1 -1
  31. package/src/filters/removexmlns.d.ts +1 -1
  32. package/src/filters/removexmlns.js +1 -1
  33. package/src/filters/space.d.ts +1 -1
  34. package/src/filters/space.js +1 -1
  35. package/src/filters/utils.d.ts +1 -1
  36. package/src/filters/utils.js +1 -1
  37. package/src/index.d.ts +1 -1
  38. package/src/index.js +1 -1
  39. package/src/normalizer.d.ts +1 -1
  40. package/src/normalizer.js +1 -1
  41. package/src/normalizers/googledocsnormalizer.d.ts +1 -1
  42. package/src/normalizers/googledocsnormalizer.js +1 -1
  43. package/src/normalizers/googlesheetsnormalizer.d.ts +1 -1
  44. package/src/normalizers/googlesheetsnormalizer.js +1 -1
  45. package/src/normalizers/mswordnormalizer.d.ts +1 -1
  46. package/src/normalizers/mswordnormalizer.js +1 -1
  47. package/src/pastefromoffice.d.ts +1 -1
  48. package/src/pastefromoffice.js +1 -1
  49. package/dist/augmentation.d.ts +0 -14
  50. package/dist/filters/bookmark.d.ts +0 -16
  51. package/dist/filters/br.d.ts +0 -18
  52. package/dist/filters/image.d.ts +0 -28
  53. package/dist/filters/list.d.ts +0 -30
  54. package/dist/filters/parse.d.ts +0 -39
  55. package/dist/filters/removeboldwrapper.d.ts +0 -18
  56. package/dist/filters/removegooglesheetstag.d.ts +0 -18
  57. package/dist/filters/removeinvalidtablewidth.d.ts +0 -18
  58. package/dist/filters/removemsattributes.d.ts +0 -18
  59. package/dist/filters/removestyleblock.d.ts +0 -18
  60. package/dist/filters/removexmlns.d.ts +0 -18
  61. package/dist/filters/space.d.ts +0 -29
  62. package/dist/filters/utils.d.ts +0 -29
  63. package/dist/index.d.ts +0 -16
  64. package/dist/normalizer.d.ts +0 -34
  65. package/dist/normalizers/googledocsnormalizer.d.ts +0 -33
  66. package/dist/normalizers/googlesheetsnormalizer.d.ts +0 -33
  67. package/dist/normalizers/mswordnormalizer.d.ts +0 -31
  68. package/dist/pastefromoffice.d.ts +0 -44
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office",
3
- "version": "44.1.0-alpha.5",
3
+ "version": "44.2.0-alpha.0",
4
4
  "description": "Paste from Office feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,10 +13,10 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-clipboard": "44.1.0-alpha.5",
17
- "@ckeditor/ckeditor5-core": "44.1.0-alpha.5",
18
- "@ckeditor/ckeditor5-engine": "44.1.0-alpha.5",
19
- "ckeditor5": "44.1.0-alpha.5"
16
+ "@ckeditor/ckeditor5-clipboard": "44.2.0-alpha.0",
17
+ "@ckeditor/ckeditor5-core": "44.2.0-alpha.0",
18
+ "@ckeditor/ckeditor5-engine": "44.2.0-alpha.0",
19
+ "ckeditor5": "44.2.0-alpha.0"
20
20
  },
21
21
  "author": "CKSource (http://cksource.com/)",
22
22
  "license": "SEE LICENSE IN LICENSE.md",
@@ -37,5 +37,25 @@
37
37
  "ckeditor5-metadata.json",
38
38
  "CHANGELOG.md"
39
39
  ],
40
- "types": "src/index.d.ts"
40
+ "types": "src/index.d.ts",
41
+ "exports": {
42
+ ".": {
43
+ "types": "./src/index.d.ts",
44
+ "import": "./src/index.js",
45
+ "default": "./src/index.js"
46
+ },
47
+ "./dist/*": {
48
+ "types": "./src/index.d.ts",
49
+ "import": "./dist/*",
50
+ "default": "./dist/*"
51
+ },
52
+ "./src/*": {
53
+ "types": "./src/*.d.ts",
54
+ "import": "./src/*",
55
+ "default": "./src/*"
56
+ },
57
+ "./build/*": "./build/*",
58
+ "./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
59
+ "./package.json": "./package.json"
60
+ }
41
61
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { PasteFromOffice } from './index.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/filters/br.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/normalizer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { type ViewDocument } from 'ckeditor5/src/engine.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,14 +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-licensing-options
8
- */
9
- import type { PasteFromOffice } from './index.js';
10
- declare module '@ckeditor/ckeditor5-core' {
11
- interface PluginsMap {
12
- [PasteFromOffice.pluginName]: PasteFromOffice;
13
- }
14
- }
@@ -1,16 +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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/bookmark
11
- */
12
- import { type UpcastWriter, type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Transforms `<a>` elements which are bookmarks by moving their children after the element.
15
- */
16
- export default function transformBookmarks(documentFragment: ViewDocumentFragment, writer: UpcastWriter): void;
@@ -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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/br
11
- */
12
- import { type UpcastWriter, type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Transforms `<br>` elements that are siblings to some block element into a paragraphs.
15
- *
16
- * @param documentFragment The view structure to be transformed.
17
- */
18
- export default function transformBlockBrsToParagraphs(documentFragment: ViewDocumentFragment, writer: UpcastWriter): void;
@@ -1,28 +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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/image
11
- */
12
- import { type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Replaces source attribute of all `<img>` elements representing regular
15
- * images (not the Word shapes) with inlined base64 image representation extracted from RTF or Blob data.
16
- *
17
- * @param documentFragment Document fragment on which transform images.
18
- * @param rtfData The RTF data from which images representation will be used.
19
- */
20
- export declare function replaceImagesSourceWithBase64(documentFragment: ViewDocumentFragment, rtfData: string): void;
21
- /**
22
- * Converts given HEX string to base64 representation.
23
- *
24
- * @internal
25
- * @param hexString The HEX string to be converted.
26
- * @returns Base64 representation of a given HEX string.
27
- */
28
- export declare function _convertHexToBase64(hexString: string): string;
@@ -1,30 +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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/list
11
- */
12
- import { UpcastWriter, type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Transforms Word specific list-like elements to the semantic HTML lists.
15
- *
16
- * Lists in Word are represented by block elements with special attributes like:
17
- *
18
- * ```xml
19
- * <p class=MsoListParagraphCxSpFirst style='mso-list:l1 level1 lfo1'>...</p> // Paragraph based list.
20
- * <h1 style='mso-list:l0 level1 lfo1'>...</h1> // Heading 1 based list.
21
- * ```
22
- *
23
- * @param documentFragment The view structure to be transformed.
24
- * @param stylesString Styles from which list-like elements styling will be extracted.
25
- */
26
- export declare function transformListItemLikeElementsIntoLists(documentFragment: ViewDocumentFragment, stylesString: string, hasMultiLevelListPlugin: boolean): void;
27
- /**
28
- * Removes paragraph wrapping content inside a list item.
29
- */
30
- export declare function unwrapParagraphInListItem(documentFragment: ViewDocumentFragment, writer: UpcastWriter): void;
@@ -1,39 +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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/parse
11
- */
12
- import { type StylesProcessor, type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Parses the provided HTML extracting contents of `<body>` and `<style>` tags.
15
- *
16
- * @param htmlString HTML string to be parsed.
17
- */
18
- export declare function parseHtml(htmlString: string, stylesProcessor: StylesProcessor): ParseHtmlResult;
19
- /**
20
- * The result of {@link ~parseHtml}.
21
- */
22
- export interface ParseHtmlResult {
23
- /**
24
- * Parsed body content as a traversable structure.
25
- */
26
- body: ViewDocumentFragment;
27
- /**
28
- * Entire body content as a string.
29
- */
30
- bodyString: string;
31
- /**
32
- * Array of native `CSSStyleSheet` objects, each representing separate `style` tag from the source HTML.
33
- */
34
- styles: Array<CSSStyleSheet>;
35
- /**
36
- * All `style` tags contents combined in the order of occurrence into one string.
37
- */
38
- stylesString: string;
39
- }
@@ -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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/removeboldwrapper
11
- */
12
- import type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Removes the `<b>` tag wrapper added by Google Docs to a copied content.
15
- *
16
- * @param documentFragment element `data.content` obtained from clipboard
17
- */
18
- export default function removeBoldWrapper(documentFragment: ViewDocumentFragment, writer: UpcastWriter): void;
@@ -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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/removegooglesheetstag
11
- */
12
- import type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Removes the `<google-sheets-html-origin>` tag wrapper added by Google Sheets to a copied content.
15
- *
16
- * @param documentFragment element `data.content` obtained from clipboard
17
- */
18
- export default function removeGoogleSheetsTag(documentFragment: ViewDocumentFragment, writer: UpcastWriter): void;
@@ -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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/removeinvalidtablewidth
11
- */
12
- import type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Removes the `width:0px` style from table pasted from Google Sheets.
15
- *
16
- * @param documentFragment element `data.content` obtained from clipboard
17
- */
18
- export default function removeInvalidTableWidth(documentFragment: ViewDocumentFragment, writer: UpcastWriter): void;
@@ -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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/removemsattributes
11
- */
12
- import { type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Cleanup MS attributes like styles, attributes and elements.
15
- *
16
- * @param documentFragment element `data.content` obtained from clipboard.
17
- */
18
- export default function removeMSAttributes(documentFragment: ViewDocumentFragment): void;
@@ -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-licensing-options
8
- */
9
- /**
10
- * @module paste-from-office/filters/removestyleblock
11
- */
12
- import type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine.js';
13
- /**
14
- * Removes `<style>` block added by Google Sheets to a copied content.
15
- *
16
- * @param documentFragment element `data.content` obtained from clipboard
17
- */
18
- export default function removeStyleBlock(documentFragment: ViewDocumentFragment, writer: UpcastWriter): void;