@ckeditor/ckeditor5-import-word 0.0.0-nightly-20240423.0 → 0.0.0-nightly-20240425.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 (149) hide show
  1. package/build/import-word.js +1 -1
  2. package/dist/index-content.css +4 -0
  3. package/dist/index-editor.css +4 -0
  4. package/dist/index.css +4 -0
  5. package/dist/index.js +23 -0
  6. package/dist/translations/ar.d.ts +8 -0
  7. package/dist/translations/ar.js +23 -0
  8. package/dist/translations/ar.umd.js +23 -0
  9. package/dist/translations/bg.d.ts +8 -0
  10. package/dist/translations/bg.js +23 -0
  11. package/dist/translations/bg.umd.js +23 -0
  12. package/dist/translations/bn.d.ts +8 -0
  13. package/dist/translations/bn.js +23 -0
  14. package/dist/translations/bn.umd.js +23 -0
  15. package/dist/translations/ca.d.ts +8 -0
  16. package/dist/translations/ca.js +23 -0
  17. package/dist/translations/ca.umd.js +23 -0
  18. package/dist/translations/cs.d.ts +8 -0
  19. package/dist/translations/cs.js +23 -0
  20. package/dist/translations/cs.umd.js +23 -0
  21. package/dist/translations/da.d.ts +8 -0
  22. package/dist/translations/da.js +23 -0
  23. package/dist/translations/da.umd.js +23 -0
  24. package/dist/translations/de.d.ts +8 -0
  25. package/dist/translations/de.js +23 -0
  26. package/dist/translations/de.umd.js +23 -0
  27. package/dist/translations/el.d.ts +8 -0
  28. package/dist/translations/el.js +23 -0
  29. package/dist/translations/el.umd.js +23 -0
  30. package/dist/translations/en-au.d.ts +8 -0
  31. package/dist/translations/en-au.js +23 -0
  32. package/dist/translations/en-au.umd.js +23 -0
  33. package/dist/translations/en.d.ts +8 -0
  34. package/dist/translations/en.js +23 -0
  35. package/dist/translations/en.umd.js +23 -0
  36. package/dist/translations/es.d.ts +8 -0
  37. package/dist/translations/es.js +23 -0
  38. package/dist/translations/es.umd.js +23 -0
  39. package/dist/translations/et.d.ts +8 -0
  40. package/dist/translations/et.js +23 -0
  41. package/dist/translations/et.umd.js +23 -0
  42. package/dist/translations/fi.d.ts +8 -0
  43. package/dist/translations/fi.js +23 -0
  44. package/dist/translations/fi.umd.js +23 -0
  45. package/dist/translations/fr.d.ts +8 -0
  46. package/dist/translations/fr.js +23 -0
  47. package/dist/translations/fr.umd.js +23 -0
  48. package/dist/translations/gl.d.ts +8 -0
  49. package/dist/translations/gl.js +23 -0
  50. package/dist/translations/gl.umd.js +23 -0
  51. package/dist/translations/he.d.ts +8 -0
  52. package/dist/translations/he.js +23 -0
  53. package/dist/translations/he.umd.js +23 -0
  54. package/dist/translations/hi.d.ts +8 -0
  55. package/dist/translations/hi.js +23 -0
  56. package/dist/translations/hi.umd.js +23 -0
  57. package/dist/translations/hr.d.ts +8 -0
  58. package/dist/translations/hr.js +23 -0
  59. package/dist/translations/hr.umd.js +23 -0
  60. package/dist/translations/hu.d.ts +8 -0
  61. package/dist/translations/hu.js +23 -0
  62. package/dist/translations/hu.umd.js +23 -0
  63. package/dist/translations/id.d.ts +8 -0
  64. package/dist/translations/id.js +23 -0
  65. package/dist/translations/id.umd.js +23 -0
  66. package/dist/translations/it.d.ts +8 -0
  67. package/dist/translations/it.js +23 -0
  68. package/dist/translations/it.umd.js +23 -0
  69. package/dist/translations/ja.d.ts +8 -0
  70. package/dist/translations/ja.js +23 -0
  71. package/dist/translations/ja.umd.js +23 -0
  72. package/dist/translations/ko.d.ts +8 -0
  73. package/dist/translations/ko.js +23 -0
  74. package/dist/translations/ko.umd.js +23 -0
  75. package/dist/translations/lt.d.ts +8 -0
  76. package/dist/translations/lt.js +23 -0
  77. package/dist/translations/lt.umd.js +23 -0
  78. package/dist/translations/lv.d.ts +8 -0
  79. package/dist/translations/lv.js +23 -0
  80. package/dist/translations/lv.umd.js +23 -0
  81. package/dist/translations/ms.d.ts +8 -0
  82. package/dist/translations/ms.js +23 -0
  83. package/dist/translations/ms.umd.js +23 -0
  84. package/dist/translations/nl.d.ts +8 -0
  85. package/dist/translations/nl.js +23 -0
  86. package/dist/translations/nl.umd.js +23 -0
  87. package/dist/translations/no.d.ts +8 -0
  88. package/dist/translations/no.js +23 -0
  89. package/dist/translations/no.umd.js +23 -0
  90. package/dist/translations/pl.d.ts +8 -0
  91. package/dist/translations/pl.js +23 -0
  92. package/dist/translations/pl.umd.js +23 -0
  93. package/dist/translations/pt-br.d.ts +8 -0
  94. package/dist/translations/pt-br.js +23 -0
  95. package/dist/translations/pt-br.umd.js +23 -0
  96. package/dist/translations/pt.d.ts +8 -0
  97. package/dist/translations/pt.js +23 -0
  98. package/dist/translations/pt.umd.js +23 -0
  99. package/dist/translations/ro.d.ts +8 -0
  100. package/dist/translations/ro.js +23 -0
  101. package/dist/translations/ro.umd.js +23 -0
  102. package/dist/translations/ru.d.ts +8 -0
  103. package/dist/translations/ru.js +23 -0
  104. package/dist/translations/ru.umd.js +23 -0
  105. package/dist/translations/sk.d.ts +8 -0
  106. package/dist/translations/sk.js +23 -0
  107. package/dist/translations/sk.umd.js +23 -0
  108. package/dist/translations/sr-latn.d.ts +8 -0
  109. package/dist/translations/sr-latn.js +23 -0
  110. package/dist/translations/sr-latn.umd.js +23 -0
  111. package/dist/translations/sr.d.ts +8 -0
  112. package/dist/translations/sr.js +23 -0
  113. package/dist/translations/sr.umd.js +23 -0
  114. package/dist/translations/sv.d.ts +8 -0
  115. package/dist/translations/sv.js +23 -0
  116. package/dist/translations/sv.umd.js +23 -0
  117. package/dist/translations/th.d.ts +8 -0
  118. package/dist/translations/th.js +23 -0
  119. package/dist/translations/th.umd.js +23 -0
  120. package/dist/translations/tr.d.ts +8 -0
  121. package/dist/translations/tr.js +23 -0
  122. package/dist/translations/tr.umd.js +23 -0
  123. package/dist/translations/ug.d.ts +8 -0
  124. package/dist/translations/ug.js +23 -0
  125. package/dist/translations/ug.umd.js +23 -0
  126. package/dist/translations/uk.d.ts +8 -0
  127. package/dist/translations/uk.js +23 -0
  128. package/dist/translations/uk.umd.js +23 -0
  129. package/dist/translations/vi.d.ts +8 -0
  130. package/dist/translations/vi.js +23 -0
  131. package/dist/translations/vi.umd.js +23 -0
  132. package/dist/translations/zh-cn.d.ts +8 -0
  133. package/dist/translations/zh-cn.js +23 -0
  134. package/dist/translations/zh-cn.umd.js +23 -0
  135. package/dist/translations/zh.d.ts +8 -0
  136. package/dist/translations/zh.js +23 -0
  137. package/dist/translations/zh.umd.js +23 -0
  138. package/dist/types/augmentation.d.ts +27 -0
  139. package/dist/types/importword.d.ts +128 -0
  140. package/dist/types/importwordcommand.d.ts +58 -0
  141. package/dist/types/importwordediting.d.ts +43 -0
  142. package/dist/types/importwordui.d.ts +26 -0
  143. package/dist/types/index.d.ts +16 -0
  144. package/package.json +3 -2
  145. package/src/importword.js +1 -1
  146. package/src/importwordcommand.js +1 -1
  147. package/src/importwordediting.js +1 -1
  148. package/src/importwordui.js +1 -1
  149. package/src/index.js +1 -1
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.'},'getPluralForm':_0x33a162=>0x1!=_0x33a162}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x5d67cb=>{const {ug:{dictionary:_0xbdb1c1,getPluralForm:_0x50ea80}}={'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.'},'getPluralForm':_0x5bfbdf=>0x1!=_0x5bfbdf}};_0x5d67cb['ug']||={'dictionary':{},'getPluralForm':null},_0x5d67cb['ug']['dictionary']=Object['assign'](_0x5d67cb['ug']['dictionary'],_0xbdb1c1),_0x5d67cb['ug']['getPluralForm']=_0x50ea80;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.'},'getPluralForm':_0x521650=>_0x521650%0x1==0x0&&_0x521650%0xa==0x1&&_0x521650%0x64!=0xb?0x0:_0x521650%0x1==0x0&&_0x521650%0xa>=0x2&&_0x521650%0xa<=0x4&&(_0x521650%0x64<0xc||_0x521650%0x64>0xe)?0x1:_0x521650%0x1==0x0&&(_0x521650%0xa==0x0||_0x521650%0xa>=0x5&&_0x521650%0xa<=0x9||_0x521650%0x64>=0xb&&_0x521650%0x64<=0xe)?0x2:0x3}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x2f0e39=>{const {uk:{dictionary:_0x2e7ca4,getPluralForm:_0x18fb68}}={'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.'},'getPluralForm':_0x49aa15=>_0x49aa15%0x1==0x0&&_0x49aa15%0xa==0x1&&_0x49aa15%0x64!=0xb?0x0:_0x49aa15%0x1==0x0&&_0x49aa15%0xa>=0x2&&_0x49aa15%0xa<=0x4&&(_0x49aa15%0x64<0xc||_0x49aa15%0x64>0xe)?0x1:_0x49aa15%0x1==0x0&&(_0x49aa15%0xa==0x0||_0x49aa15%0xa>=0x5&&_0x49aa15%0xa<=0x9||_0x49aa15%0x64>=0xb&&_0x49aa15%0x64<=0xe)?0x2:0x3}};_0x2f0e39['uk']||={'dictionary':{},'getPluralForm':null},_0x2f0e39['uk']['dictionary']=Object['assign'](_0x2f0e39['uk']['dictionary'],_0x2e7ca4),_0x2f0e39['uk']['getPluralForm']=_0x18fb68;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.'},'getPluralForm':_0x238dbc=>0x0}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x58887e=>{const {vi:{dictionary:_0x251129,getPluralForm:_0x596369}}={'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.'},'getPluralForm':_0x85160a=>0x0}};_0x58887e['vi']||={'dictionary':{},'getPluralForm':null},_0x58887e['vi']['dictionary']=Object['assign'](_0x58887e['vi']['dictionary'],_0x251129),_0x58887e['vi']['getPluralForm']=_0x596369;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。'},'getPluralForm':_0x2f66c3=>0x0}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x3bd9e2=>{const {'zh-cn':{dictionary:_0x20c6c8,getPluralForm:_0x371fe2}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。'},'getPluralForm':_0x21f8a9=>0x0}};_0x3bd9e2['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x3bd9e2['zh-cn']['dictionary']=Object['assign'](_0x3bd9e2['zh-cn']['dictionary'],_0x20c6c8),_0x3bd9e2['zh-cn']['getPluralForm']=_0x371fe2;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。'},'getPluralForm':_0x5bf69a=>0x0}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x2349de=>{const {zh:{dictionary:_0x1d4221,getPluralForm:_0x5080bd}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。'},'getPluralForm':_0x3176cf=>0x0}};_0x2349de['zh']||={'dictionary':{},'getPluralForm':null},_0x2349de['zh']['dictionary']=Object['assign'](_0x2349de['zh']['dictionary'],_0x1d4221),_0x2349de['zh']['getPluralForm']=_0x5080bd;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,27 @@
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
+ 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
+ }
@@ -0,0 +1,128 @@
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 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 requires(): readonly [typeof ImportWordEditing, typeof ImportWordUI];
38
+ }
39
+ /**
40
+ * The configuration of the {@link module:import-word/importword~ImportWord import from Word feature}.
41
+ *
42
+ * The configuration for the import from Word feature requires providing the
43
+ * {@link module:import-word/importword~ImportWordConfig#tokenUrl `config.importWord.tokenUrl`}:
44
+ *
45
+ * ```ts
46
+ * ClassicEditor
47
+ * .create( editorElement, {
48
+ * importWord: {
49
+ * tokenUrl: 'https://example.com/cs-token-endpoint'
50
+ * }
51
+ * } )
52
+ * .then( ... )
53
+ * .catch( ... );
54
+ * ```
55
+ *
56
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
57
+ */
58
+ export interface ImportWordConfig {
59
+ /**
60
+ * A URL to the Docx converter.
61
+ *
62
+ * ```ts
63
+ * const importWordConfig = {
64
+ * converterUrl: 'https://myconverter.com/v1/'
65
+ * }
66
+ * ```
67
+ *
68
+ * **Note:** The plugin uses the default Word to HTML converter delivered by CKEditor Cloud Services.
69
+ * You can provide a URL to an on-premises converter instead.
70
+ *
71
+ * @default 'https://docx-converter.cke-cs.com/v2/convert/docx-html'
72
+ */
73
+ converterUrl?: string;
74
+ /**
75
+ * A token URL or a token request function. This field is optional and should be used only when a different `tokenUrl`
76
+ * is required for the Import from Word feature.
77
+ *
78
+ * **Note:** The token can be disabled with the `false` value provided.
79
+ *
80
+ * See: {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl}
81
+ */
82
+ tokenUrl?: TokenUrl;
83
+ formatting: FormattingOptions;
84
+ }
85
+ export interface FormattingOptions {
86
+ /**
87
+ * Controls whether the additional formatting dedicated to minimizing differences between default Word styles
88
+ * and default HTML formatting should be included in the generated document.
89
+ *
90
+ * If `inline`, the converter service preserves the formatting to be consistent with Word ones.
91
+ * For example, in Word headings are not bold by default, whereas in HTML, they are. Enabling this option
92
+ * appends font-weight: normal to all headings.
93
+ *
94
+ * @default false
95
+ */
96
+ resets?: 'none' | 'inline';
97
+ /**
98
+ * Controls whether formatting set by default (like the default font size or default font family)
99
+ * should be included in the generated document.
100
+ *
101
+ * If `inline`, the converter service preserves the default formatting of the imported Word document.
102
+ *
103
+ * @default 'none'
104
+ */
105
+ defaults?: 'none' | 'inline';
106
+ /**
107
+ * Controls whether Word styles should be included in the generated document.
108
+ *
109
+ * If `inline`, the converter service preserves the default styles of the imported Word document.
110
+ *
111
+ * @default 'inline'
112
+ */
113
+ styles?: 'none' | 'inline';
114
+ /**
115
+ * Defines which formatting styles should be kept for the imported comments text.
116
+ *
117
+ * Possible values are:
118
+ *
119
+ * * `'basic'` - basic styles are kept (bold, italic, underline, strikethrough and links),
120
+ * * `'none'` - comment text is imported without any styling,
121
+ * * `'full'` - all styles are kept (not recommended).
122
+ *
123
+ * **Note:** Please remember that importing comments requires installing the {@link module:comments/comments~Comments} feature.
124
+ *
125
+ * @default 'basic'
126
+ */
127
+ comments?: 'basic' | 'none' | 'full';
128
+ }
@@ -0,0 +1,58 @@
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 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 {};
@@ -0,0 +1,43 @@
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 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 requires(): readonly [typeof Notification, typeof ClipboardPipeline, "CloudServices"];
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ constructor(editor: Editor);
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ init(): Promise<void>;
39
+ /**
40
+ * Returns a token used by the import from Word plugin for communication with the Cloud Services.
41
+ */
42
+ getToken(): InitializedToken | null;
43
+ }
@@ -0,0 +1,26 @@
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 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
+ init(): void;
26
+ }
@@ -0,0 +1,16 @@
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 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-import-word",
3
- "version": "0.0.0-nightly-20240423.0",
3
+ "version": "0.0.0-nightly-20240425.0",
4
4
  "description": "Import from Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,13 +30,14 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "0.0.0-nightly-20240423.0"
33
+ "ckeditor5": "0.0.0-nightly-20240425.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
37
37
  "homepage": "https://ckeditor.com/ckeditor-5",
38
38
  "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
39
39
  "files": [
40
+ "dist",
40
41
  "lang",
41
42
  "src/**/*.js",
42
43
  "src/**/*.d.ts",
package/src/importword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1a6683=_0x3b79;(function(_0x44e3d1,_0x39ddff){var _0x3e573c=_0x3b79,_0x1f224f=_0x44e3d1();while(!![]){try{var _0x2ffe2c=-parseInt(_0x3e573c(0x11c))/0x1+parseInt(_0x3e573c(0x11b))/0x2*(-parseInt(_0x3e573c(0x118))/0x3)+parseInt(_0x3e573c(0x11a))/0x4+-parseInt(_0x3e573c(0x120))/0x5*(-parseInt(_0x3e573c(0x113))/0x6)+parseInt(_0x3e573c(0x11d))/0x7*(-parseInt(_0x3e573c(0x114))/0x8)+-parseInt(_0x3e573c(0x11e))/0x9+-parseInt(_0x3e573c(0x11f))/0xa*(-parseInt(_0x3e573c(0x116))/0xb);if(_0x2ffe2c===_0x39ddff)break;else _0x1f224f['push'](_0x1f224f['shift']());}catch(_0x28066f){_0x1f224f['push'](_0x1f224f['shift']());}}}(_0x11c6,0x9c27f));import{Plugin as _0x24aa9f}from'ckeditor5/src/core.js';function _0x3b79(_0x108caf,_0x13a71d){var _0x11c6b8=_0x11c6();return _0x3b79=function(_0x3b7977,_0x2ade7a){_0x3b7977=_0x3b7977-0x113;var _0x3219c9=_0x11c6b8[_0x3b7977];return _0x3219c9;},_0x3b79(_0x108caf,_0x13a71d);}function _0x11c6(){var _0x1c9ae8=['5XfLolR','6618306XaTAaE','1012280CUMBpc','requires','11aOhEdJ','ImportWord','5985kCzLsr','pluginName','3048756ocRtJJ','866dgZsSb','471849NThVLm','7UdBYFF','6767289JVxvXl','9885150ncstbo'];_0x11c6=function(){return _0x1c9ae8;};return _0x11c6();}import _0x2d27bb from'./importwordui.js';import _0x3ee601 from'./importwordediting.js';export default class i extends _0x24aa9f{static get[_0x1a6683(0x119)](){var _0x5aa35e=_0x1a6683;return _0x5aa35e(0x117);}static get[_0x1a6683(0x115)](){return[_0x3ee601,_0x2d27bb];}}
23
+ function _0x388b(_0x245ecf,_0x4a4bb4){var _0x4653ff=_0x4653();return _0x388b=function(_0x388b64,_0x337196){_0x388b64=_0x388b64-0x96;var _0x3eb2f9=_0x4653ff[_0x388b64];return _0x3eb2f9;},_0x388b(_0x245ecf,_0x4a4bb4);}var _0x42af23=_0x388b;(function(_0xed053b,_0x5373b7){var _0x40d4f5=_0x388b,_0x38df05=_0xed053b();while(!![]){try{var _0xdf3325=parseInt(_0x40d4f5(0x9f))/0x1+-parseInt(_0x40d4f5(0x9c))/0x2*(-parseInt(_0x40d4f5(0x97))/0x3)+parseInt(_0x40d4f5(0x99))/0x4*(parseInt(_0x40d4f5(0x9e))/0x5)+parseInt(_0x40d4f5(0x9d))/0x6+parseInt(_0x40d4f5(0x9b))/0x7+parseInt(_0x40d4f5(0x98))/0x8+-parseInt(_0x40d4f5(0x9a))/0x9;if(_0xdf3325===_0x5373b7)break;else _0x38df05['push'](_0x38df05['shift']());}catch(_0x340d1d){_0x38df05['push'](_0x38df05['shift']());}}}(_0x4653,0x71a54));import{Plugin as _0x4bd064}from'ckeditor5/src/core.js';function _0x4653(){var _0x18e576=['5BeHEMO','9900KsFQIx','ImportWord','pluginName','requires','1581oNDTpI','596992BvDbnG','519496xbhcug','9369666hzUaYX','206248ngxdLj','2148rfJMRM','4180236NNFsJl'];_0x4653=function(){return _0x18e576;};return _0x4653();}import _0x4cca7b from'./importwordui.js';import _0x2f18f2 from'./importwordediting.js';export default class i extends _0x4bd064{static get[_0x42af23(0xa1)](){var _0x31ecdb=_0x42af23;return _0x31ecdb(0xa0);}static get[_0x42af23(0x96)](){return[_0x2f18f2,_0x4cca7b];}}