@ckeditor/ckeditor5-import-word 0.0.0-nightly-20241216.0 → 0.0.0-nightly-20241218.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 (160) hide show
  1. package/build/import-word.js +2 -2
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +26 -7
  148. package/src/importword.js +1 -1
  149. package/src/importwordcommand.js +1 -1
  150. package/src/importwordediting.js +1 -1
  151. package/src/importwordui.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/utils/common-translations.js +1 -1
  154. package/dist/augmentation.d.ts +0 -27
  155. package/dist/importword.d.ts +0 -136
  156. package/dist/importwordcommand.d.ts +0 -58
  157. package/dist/importwordediting.d.ts +0 -51
  158. package/dist/importwordui.d.ts +0 -34
  159. package/dist/index.d.ts +0 -16
  160. package/dist/utils/common-translations.d.ts +0 -13
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x50aad8,_0x3fd1f6){var _0x19d08f=_0x1e9a,_0x45c113=_0x50aad8();while(!![]){try{var _0x4a9f7f=-parseInt(_0x19d08f(0xb4))/0x1+parseInt(_0x19d08f(0xb2))/0x2*(parseInt(_0x19d08f(0xb0))/0x3)+-parseInt(_0x19d08f(0xb3))/0x4+-parseInt(_0x19d08f(0xaf))/0x5+parseInt(_0x19d08f(0xb6))/0x6*(-parseInt(_0x19d08f(0xb5))/0x7)+-parseInt(_0x19d08f(0xae))/0x8+parseInt(_0x19d08f(0xb1))/0x9;if(_0x4a9f7f===_0x3fd1f6)break;else _0x45c113['push'](_0x45c113['shift']());}catch(_0x528b76){_0x45c113['push'](_0x45c113['shift']());}}}(_0xb88f,0xf4214));function _0xb88f(){var _0x16cf63=['610073nmsRcQ','7819nHvuDR','2118OyshUB','5751400udJnRw','8836935GIJLBa','1431378SMqEAP','45073539JHkfsK','6IihNgK','7795628Vvdwlu'];_0xb88f=function(){return _0x16cf63;};return _0xb88f();}export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';function _0x1e9a(_0x33e088,_0x1bb851){var _0xb88f37=_0xb88f();return _0x1e9a=function(_0x1e9a0e,_0x67fb84){_0x1e9a0e=_0x1e9a0e-0xae;var _0x40ea2a=_0xb88f37[_0x1e9a0e];return _0x40ea2a;},_0x1e9a(_0x33e088,_0x1bb851);}import'./augmentation.js';
23
+ function _0xd75c(){var _0x19a041=['8nrNYqx','6105204lZbmxo','1636610Izlrvb','650938PpmafL','1188558NXQcWD','6cBbnKE','1255205tEiKbj','5150880oEshCR','2605658kpapnv','81PIzXfa'];_0xd75c=function(){return _0x19a041;};return _0xd75c();}(function(_0x3324ab,_0x523375){var _0x55f9fe=_0x3858,_0x29a30f=_0x3324ab();while(!![]){try{var _0x1e6410=parseInt(_0x55f9fe(0x10e))/0x1+parseInt(_0x55f9fe(0x113))/0x2+-parseInt(_0x55f9fe(0x10f))/0x3+parseInt(_0x55f9fe(0x112))/0x4+parseInt(_0x55f9fe(0x111))/0x5*(parseInt(_0x55f9fe(0x110))/0x6)+-parseInt(_0x55f9fe(0x116))/0x7*(parseInt(_0x55f9fe(0x115))/0x8)+-parseInt(_0x55f9fe(0x114))/0x9*(parseInt(_0x55f9fe(0x117))/0xa);if(_0x1e6410===_0x523375)break;else _0x29a30f['push'](_0x29a30f['shift']());}catch(_0x44c971){_0x29a30f['push'](_0x29a30f['shift']());}}}(_0xd75c,0xb7675));export{default as ImportWord}from'./importword.js';function _0x3858(_0x2c0d2a,_0xe21c85){var _0xd75c31=_0xd75c();return _0x3858=function(_0x38586f,_0x1bab90){_0x38586f=_0x38586f-0x10e;var _0x4cfbfd=_0xd75c31[_0x38586f];return _0x4cfbfd;},_0x3858(_0x2c0d2a,_0xe21c85);}export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';import'./augmentation.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4390a0,_0x198d59){const t=_0x4390a0['t'];switch(_0x198d59){case'Import\x20from\x20Word':return t('Import\x20from\x20Word');case'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');case'Importing\x20Word\x20document':return t('Importing\x20Word\x20document');default:return _0x198d59;}}
23
+ export function getTranslation(_0x2861b6,_0x7bfbe1){const t=_0x2861b6['t'];switch(_0x7bfbe1){case'Import\x20from\x20Word':return t('Import\x20from\x20Word');case'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');case'Importing\x20Word\x20document':return t('Importing\x20Word\x20document');default:return _0x7bfbe1;}}
@@ -1,27 +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 { ImportWordConfig, ImportWord, ImportWordEditing, ImportWordUI, ImportWordCommand } from './index.js';
10
- declare module '@ckeditor/ckeditor5-core' {
11
- interface EditorConfig {
12
- /**
13
- * The configuration of the {@link module:import-word/importword~ImportWord import from Word feature}.
14
- *
15
- * Read more in {@link module:import-word/importword~ImportWordConfig}.
16
- */
17
- importWord?: ImportWordConfig;
18
- }
19
- interface PluginsMap {
20
- [ImportWord.pluginName]: ImportWord;
21
- [ImportWordEditing.pluginName]: ImportWordEditing;
22
- [ImportWordUI.pluginName]: ImportWordUI;
23
- }
24
- interface CommandsMap {
25
- importWord: ImportWordCommand;
26
- }
27
- }
@@ -1,136 +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 import-word/importword
11
- * @publicApi
12
- */
13
- import { Plugin } from 'ckeditor5/src/core.js';
14
- import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
15
- import ImportWordUI from './importwordui.js';
16
- import ImportWordEditing from './importwordediting.js';
17
- /**
18
- * The import from Word feature.
19
- *
20
- * It allows importing content from a Word file directly into CKEditor 5.
21
- *
22
- * This is a "glue" plugin which enables:
23
- *
24
- * * {@link module:import-word/importwordediting~ImportWordEditing},
25
- * * {@link module:import-word/importwordui~ImportWordUI},
26
- *
27
- * For a detailed overview, check the {@glink features/converters/import-word/import-word import from Word} feature documentation.
28
- */
29
- export default class ImportWord extends Plugin {
30
- /**
31
- * @inheritDoc
32
- */
33
- static get pluginName(): "ImportWord";
34
- /**
35
- * @inheritDoc
36
- */
37
- static get isOfficialPlugin(): true;
38
- /**
39
- * @inheritDoc
40
- */
41
- static get isPremiumPlugin(): true;
42
- /**
43
- * @inheritDoc
44
- */
45
- static get requires(): readonly [typeof ImportWordEditing, typeof ImportWordUI];
46
- }
47
- /**
48
- * The configuration of the {@link module:import-word/importword~ImportWord import from Word feature}.
49
- *
50
- * The configuration for the import from Word feature requires providing the
51
- * {@link module:import-word/importword~ImportWordConfig#tokenUrl `config.importWord.tokenUrl`}:
52
- *
53
- * ```ts
54
- * ClassicEditor
55
- * .create( editorElement, {
56
- * importWord: {
57
- * tokenUrl: 'https://example.com/cs-token-endpoint'
58
- * }
59
- * } )
60
- * .then( ... )
61
- * .catch( ... );
62
- * ```
63
- *
64
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
65
- */
66
- export interface ImportWordConfig {
67
- /**
68
- * A URL to the Docx converter.
69
- *
70
- * ```ts
71
- * const importWordConfig = {
72
- * converterUrl: 'https://myconverter.com/v1/'
73
- * }
74
- * ```
75
- *
76
- * **Note:** The plugin uses the default Word to HTML converter delivered by CKEditor Cloud Services.
77
- * You can provide a URL to an on-premises converter instead.
78
- *
79
- * @default 'https://docx-converter.cke-cs.com/v2/convert/docx-html'
80
- */
81
- converterUrl?: string;
82
- /**
83
- * A token URL or a token request function. This field is optional and should be used only when a different `tokenUrl`
84
- * is required for the Import from Word feature.
85
- *
86
- * **Note:** The token can be disabled with the `false` value provided.
87
- *
88
- * See: {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl}
89
- */
90
- tokenUrl?: TokenUrl;
91
- formatting: FormattingOptions;
92
- }
93
- export interface FormattingOptions {
94
- /**
95
- * Controls whether the additional formatting dedicated to minimizing differences between default Word styles
96
- * and default HTML formatting should be included in the generated document.
97
- *
98
- * If `inline`, the converter service preserves the formatting to be consistent with Word ones.
99
- * For example, in Word headings are not bold by default, whereas in HTML, they are. Enabling this option
100
- * appends font-weight: normal to all headings.
101
- *
102
- * @default false
103
- */
104
- resets?: 'none' | 'inline';
105
- /**
106
- * Controls whether formatting set by default (like the default font size or default font family)
107
- * should be included in the generated document.
108
- *
109
- * If `inline`, the converter service preserves the default formatting of the imported Word document.
110
- *
111
- * @default 'none'
112
- */
113
- defaults?: 'none' | 'inline';
114
- /**
115
- * Controls whether Word styles should be included in the generated document.
116
- *
117
- * If `inline`, the converter service preserves the default styles of the imported Word document.
118
- *
119
- * @default 'inline'
120
- */
121
- styles?: 'none' | 'inline';
122
- /**
123
- * Defines which formatting styles should be kept for the imported comments text.
124
- *
125
- * Possible values are:
126
- *
127
- * * `'basic'` - basic styles are kept (bold, italic, underline, strikethrough and links),
128
- * * `'none'` - comment text is imported without any styling,
129
- * * `'full'` - all styles are kept (not recommended).
130
- *
131
- * **Note:** Please remember that importing comments requires installing the {@link module:comments/comments~Comments} feature.
132
- *
133
- * @default 'basic'
134
- */
135
- comments?: 'basic' | 'none' | 'full';
136
- }
@@ -1,58 +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 import-word/importwordcommand
11
- * @publicApi
12
- */
13
- import { Command, type Editor } from 'ckeditor5/src/core.js';
14
- /**
15
- * The import from Word command.
16
- *
17
- * It sends the Word file to the converter endpoint and inserts its content into the editor.
18
- */
19
- export default class ImportWordCommand extends Command {
20
- /**
21
- * A command state that indicates if the command is currently executing.
22
- *
23
- * @observable
24
- */
25
- isBusy: boolean;
26
- /**
27
- * @inheritDoc
28
- */
29
- constructor(editor: Editor);
30
- /**
31
- * @inheritDoc
32
- */
33
- refresh(): void;
34
- /**
35
- * Executes the command. Sends the provided file instance to the converter service endpoint and inserts the result into the model.
36
- *
37
- * @fires execute
38
- * @param file The Word file instance to be uploaded for conversion.
39
- * @param [serviceConfig] Additional options to pass to the converter service.
40
- */
41
- execute(file: File, serviceConfig?: Record<string, unknown>): Promise<unknown>;
42
- }
43
- /**
44
- * Fired when the converter service returned the HTML content that will be inserted into the editor.
45
- *
46
- * @eventName ~ImportWordCommand#dataInsert
47
- */
48
- export type DataInsertEvent = {
49
- name: 'dataInsert';
50
- args: [data: DataInsertEventData];
51
- };
52
- interface DataInsertEventData {
53
- /**
54
- * The HTML content to insertion.
55
- */
56
- html: string;
57
- }
58
- export {};
@@ -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-licensing-options
8
- */
9
- /**
10
- * @module import-word/importwordediting
11
- * @publicApi
12
- */
13
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
- import { Notification } from 'ckeditor5/src/ui.js';
15
- import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
16
- import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
17
- /**
18
- * The editing part of the import from Word feature.
19
- *
20
- * It registers the {@link module:import-word/importwordcommand~ImportWordCommand `'importWord'` command}.
21
- */
22
- export default class ImportWordEditing extends Plugin {
23
- /**
24
- * @inheritDoc
25
- */
26
- static get pluginName(): "ImportWordEditing";
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isOfficialPlugin(): true;
31
- /**
32
- * @inheritDoc
33
- */
34
- static get isPremiumPlugin(): true;
35
- /**
36
- * @inheritDoc
37
- */
38
- static get requires(): readonly [typeof Notification, typeof ClipboardPipeline, "CloudServices"];
39
- /**
40
- * @inheritDoc
41
- */
42
- constructor(editor: Editor);
43
- /**
44
- * @inheritDoc
45
- */
46
- init(): Promise<void>;
47
- /**
48
- * Returns a token used by the import from Word plugin for communication with the Cloud Services.
49
- */
50
- getToken(): InitializedToken | null;
51
- }
@@ -1,34 +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 import-word/importwordui
11
- * @publicApi
12
- */
13
- import { Plugin } from 'ckeditor5/src/core.js';
14
- /**
15
- * The ImportWordUI plugin. It introduces the `'importWord'` toolbar button.
16
- */
17
- export default class ImportWordUI extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "ImportWordUI";
22
- /**
23
- * @inheritDoc
24
- */
25
- static get isOfficialPlugin(): true;
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isPremiumPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- }
package/dist/index.d.ts DELETED
@@ -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 import-word
11
- */
12
- export { default as ImportWord, type ImportWordConfig } from './importword.js';
13
- export { default as ImportWordEditing } from './importwordediting.js';
14
- export { default as ImportWordUI } from './importwordui.js';
15
- export type { default as ImportWordCommand } from './importwordcommand.js';
16
- import './augmentation.js';
@@ -1,13 +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 import-word/utils/common-translations
11
- */
12
- import type { Locale } from 'ckeditor5/src/utils.js';
13
- export declare function getTranslation(locale: Locale, id: string): string;