@ckeditor/ckeditor5-import-word 0.0.0-nightly-20240624.0 → 0.0.0-nightly-20240626.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/build/import-word.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/en-au.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/it.js +1 -1
  22. package/build/translations/ja.js +1 -1
  23. package/build/translations/ko.js +1 -1
  24. package/build/translations/lt.js +1 -1
  25. package/build/translations/lv.js +1 -1
  26. package/build/translations/ms.js +1 -1
  27. package/build/translations/nl.js +1 -1
  28. package/build/translations/no.js +1 -1
  29. package/build/translations/pl.js +1 -1
  30. package/build/translations/pt-br.js +1 -1
  31. package/build/translations/pt.js +1 -1
  32. package/build/translations/ro.js +1 -1
  33. package/build/translations/ru.js +1 -1
  34. package/build/translations/sk.js +1 -1
  35. package/build/translations/sr-latn.js +1 -1
  36. package/build/translations/sr.js +1 -1
  37. package/build/translations/sv.js +1 -1
  38. package/build/translations/th.js +1 -1
  39. package/build/translations/tr.js +1 -1
  40. package/build/translations/ug.js +1 -1
  41. package/build/translations/uk.js +1 -1
  42. package/build/translations/vi.js +1 -1
  43. package/build/translations/zh-cn.js +1 -1
  44. package/build/translations/zh.js +1 -1
  45. package/dist/index.js +1 -1
  46. package/dist/translations/ar.js +1 -1
  47. package/dist/translations/ar.umd.js +1 -1
  48. package/dist/translations/bg.js +1 -1
  49. package/dist/translations/bg.umd.js +1 -1
  50. package/dist/translations/bn.js +1 -1
  51. package/dist/translations/bn.umd.js +1 -1
  52. package/dist/translations/ca.js +1 -1
  53. package/dist/translations/ca.umd.js +1 -1
  54. package/dist/translations/cs.js +1 -1
  55. package/dist/translations/cs.umd.js +1 -1
  56. package/dist/translations/da.js +1 -1
  57. package/dist/translations/da.umd.js +1 -1
  58. package/dist/translations/de.js +1 -1
  59. package/dist/translations/de.umd.js +1 -1
  60. package/dist/translations/el.js +1 -1
  61. package/dist/translations/el.umd.js +1 -1
  62. package/dist/translations/en-au.js +1 -1
  63. package/dist/translations/en-au.umd.js +1 -1
  64. package/dist/translations/en.umd.js +1 -1
  65. package/dist/translations/es.js +1 -1
  66. package/dist/translations/es.umd.js +1 -1
  67. package/dist/translations/et.js +1 -1
  68. package/dist/translations/et.umd.js +1 -1
  69. package/dist/translations/fi.js +1 -1
  70. package/dist/translations/fi.umd.js +1 -1
  71. package/dist/translations/fr.js +1 -1
  72. package/dist/translations/fr.umd.js +1 -1
  73. package/dist/translations/gl.js +1 -1
  74. package/dist/translations/gl.umd.js +1 -1
  75. package/dist/translations/he.js +1 -1
  76. package/dist/translations/he.umd.js +1 -1
  77. package/dist/translations/hi.js +1 -1
  78. package/dist/translations/hi.umd.js +1 -1
  79. package/dist/translations/hr.js +1 -1
  80. package/dist/translations/hr.umd.js +1 -1
  81. package/dist/translations/hu.js +1 -1
  82. package/dist/translations/hu.umd.js +1 -1
  83. package/dist/translations/id.js +1 -1
  84. package/dist/translations/id.umd.js +1 -1
  85. package/dist/translations/it.js +1 -1
  86. package/dist/translations/it.umd.js +1 -1
  87. package/dist/translations/ja.js +1 -1
  88. package/dist/translations/ja.umd.js +1 -1
  89. package/dist/translations/ko.js +1 -1
  90. package/dist/translations/ko.umd.js +1 -1
  91. package/dist/translations/lt.js +1 -1
  92. package/dist/translations/lt.umd.js +1 -1
  93. package/dist/translations/lv.js +1 -1
  94. package/dist/translations/lv.umd.js +1 -1
  95. package/dist/translations/ms.js +1 -1
  96. package/dist/translations/ms.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.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/sr-latn.js +1 -1
  114. package/dist/translations/sr-latn.umd.js +1 -1
  115. package/dist/translations/sr.js +1 -1
  116. package/dist/translations/sr.umd.js +1 -1
  117. package/dist/translations/sv.js +1 -1
  118. package/dist/translations/sv.umd.js +1 -1
  119. package/dist/translations/th.js +1 -1
  120. package/dist/translations/th.umd.js +1 -1
  121. package/dist/translations/tr.js +1 -1
  122. package/dist/translations/tr.umd.js +1 -1
  123. package/dist/translations/ug.js +1 -1
  124. package/dist/translations/ug.umd.js +1 -1
  125. package/dist/translations/uk.js +1 -1
  126. package/dist/translations/uk.umd.js +1 -1
  127. package/dist/translations/vi.js +1 -1
  128. package/dist/translations/vi.umd.js +1 -1
  129. package/dist/translations/zh-cn.js +1 -1
  130. package/dist/translations/zh-cn.umd.js +1 -1
  131. package/dist/translations/zh.js +1 -1
  132. package/dist/translations/zh.umd.js +1 -1
  133. package/dist/types/utils/common-translations.d.ts +13 -0
  134. package/package.json +2 -2
  135. package/src/importword.js +1 -1
  136. package/src/importwordcommand.js +1 -1
  137. package/src/importwordediting.js +1 -1
  138. package/src/importwordui.js +1 -1
  139. package/src/index.js +1 -1
  140. package/src/utils/common-translations.d.ts +9 -0
  141. package/src/utils/common-translations.js +23 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
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كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0x18bc33=>0x1!=_0x18bc33}};
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كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0x4bccd5=>0x1!=_0x4bccd5}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x54b39f=>{const {ug:{dictionary:_0x3e4776,getPluralForm:_0xfcbfef}}={'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0x521d5e=>0x1!=_0x521d5e}};_0x54b39f['ug']||={'dictionary':{},'getPluralForm':null},_0x54b39f['ug']['dictionary']=Object['assign'](_0x54b39f['ug']['dictionary'],_0x3e4776),_0x54b39f['ug']['getPluralForm']=_0xfcbfef;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x3fd1f3=>{const {ug:{dictionary:_0x3710b9,getPluralForm:_0x10561e}}={'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0x55bc2a=>0x1!=_0x55bc2a}};_0x3fd1f3['ug']||={'dictionary':{},'getPluralForm':null},_0x3fd1f3['ug']['dictionary']=Object['assign'](_0x3fd1f3['ug']['dictionary'],_0x3710b9),_0x3fd1f3['ug']['getPluralForm']=_0x10561e;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
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помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x42bded=>_0x42bded%0x1==0x0&&_0x42bded%0xa==0x1&&_0x42bded%0x64!=0xb?0x0:_0x42bded%0x1==0x0&&_0x42bded%0xa>=0x2&&_0x42bded%0xa<=0x4&&(_0x42bded%0x64<0xc||_0x42bded%0x64>0xe)?0x1:_0x42bded%0x1==0x0&&(_0x42bded%0xa==0x0||_0x42bded%0xa>=0x5&&_0x42bded%0xa<=0x9||_0x42bded%0x64>=0xb&&_0x42bded%0x64<=0xe)?0x2:0x3}};
23
+ export default{'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x395f06=>_0x395f06%0x1==0x0&&_0x395f06%0xa==0x1&&_0x395f06%0x64!=0xb?0x0:_0x395f06%0x1==0x0&&_0x395f06%0xa>=0x2&&_0x395f06%0xa<=0x4&&(_0x395f06%0x64<0xc||_0x395f06%0x64>0xe)?0x1:_0x395f06%0x1==0x0&&(_0x395f06%0xa==0x0||_0x395f06%0xa>=0x5&&_0x395f06%0xa<=0x9||_0x395f06%0x64>=0xb&&_0x395f06%0x64<=0xe)?0x2:0x3}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x33defe=>{const {uk:{dictionary:_0xee575f,getPluralForm:_0xdceddc}}={'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x43bf50=>_0x43bf50%0x1==0x0&&_0x43bf50%0xa==0x1&&_0x43bf50%0x64!=0xb?0x0:_0x43bf50%0x1==0x0&&_0x43bf50%0xa>=0x2&&_0x43bf50%0xa<=0x4&&(_0x43bf50%0x64<0xc||_0x43bf50%0x64>0xe)?0x1:_0x43bf50%0x1==0x0&&(_0x43bf50%0xa==0x0||_0x43bf50%0xa>=0x5&&_0x43bf50%0xa<=0x9||_0x43bf50%0x64>=0xb&&_0x43bf50%0x64<=0xe)?0x2:0x3}};_0x33defe['uk']||={'dictionary':{},'getPluralForm':null},_0x33defe['uk']['dictionary']=Object['assign'](_0x33defe['uk']['dictionary'],_0xee575f),_0x33defe['uk']['getPluralForm']=_0xdceddc;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x152869=>{const {uk:{dictionary:_0x5805ee,getPluralForm:_0x1839e1}}={'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x460e99=>_0x460e99%0x1==0x0&&_0x460e99%0xa==0x1&&_0x460e99%0x64!=0xb?0x0:_0x460e99%0x1==0x0&&_0x460e99%0xa>=0x2&&_0x460e99%0xa<=0x4&&(_0x460e99%0x64<0xc||_0x460e99%0x64>0xe)?0x1:_0x460e99%0x1==0x0&&(_0x460e99%0xa==0x0||_0x460e99%0xa>=0x5&&_0x460e99%0xa<=0x9||_0x460e99%0x64>=0xb&&_0x460e99%0x64<=0xe)?0x2:0x3}};_0x152869['uk']||={'dictionary':{},'getPluralForm':null},_0x152869['uk']['dictionary']=Object['assign'](_0x152869['uk']['dictionary'],_0x5805ee),_0x152869['uk']['getPluralForm']=_0x1839e1;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
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.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x11f0b8=>0x0}};
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.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x22743c=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x135981=>{const {vi:{dictionary:_0x7ff696,getPluralForm:_0xcecaf1}}={'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.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x1ba761=>0x0}};_0x135981['vi']||={'dictionary':{},'getPluralForm':null},_0x135981['vi']['dictionary']=Object['assign'](_0x135981['vi']['dictionary'],_0x7ff696),_0x135981['vi']['getPluralForm']=_0xcecaf1;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x4c7be5=>{const {vi:{dictionary:_0xb6bfc7,getPluralForm:_0x1f118f}}={'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.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x2f2b3a=>0x0}};_0x4c7be5['vi']||={'dictionary':{},'getPluralForm':null},_0x4c7be5['vi']['dictionary']=Object['assign'](_0x4c7be5['vi']['dictionary'],_0xb6bfc7),_0x4c7be5['vi']['getPluralForm']=_0x1f118f;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x5bb641=>0x0}};
23
+ export default{'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x141ca2=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x2f91da=>{const {'zh-cn':{dictionary:_0x218899,getPluralForm:_0x44706f}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x4ff163=>0x0}};_0x2f91da['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x2f91da['zh-cn']['dictionary']=Object['assign'](_0x2f91da['zh-cn']['dictionary'],_0x218899),_0x2f91da['zh-cn']['getPluralForm']=_0x44706f;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0xbcae4b=>{const {'zh-cn':{dictionary:_0x4a3636,getPluralForm:_0x5d00be}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x3339ed=>0x0}};_0xbcae4b['zh-cn']||={'dictionary':{},'getPluralForm':null},_0xbcae4b['zh-cn']['dictionary']=Object['assign'](_0xbcae4b['zh-cn']['dictionary'],_0x4a3636),_0xbcae4b['zh-cn']['getPluralForm']=_0x5d00be;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x35be3a=>0x0}};
23
+ export default{'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x24a50e=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x297578=>{const {zh:{dictionary:_0x40d5b8,getPluralForm:_0xb7228b}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x30435d=>0x0}};_0x297578['zh']||={'dictionary':{},'getPluralForm':null},_0x297578['zh']['dictionary']=Object['assign'](_0x297578['zh']['dictionary'],_0x40d5b8),_0x297578['zh']['getPluralForm']=_0xb7228b;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x4eebef=>{const {zh:{dictionary:_0x2c53d0,getPluralForm:_0x55c0a9}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x44ff2d=>0x0}};_0x4eebef['zh']||={'dictionary':{},'getPluralForm':null},_0x4eebef['zh']['dictionary']=Object['assign'](_0x4eebef['zh']['dictionary'],_0x2c53d0),_0x4eebef['zh']['getPluralForm']=_0x55c0a9;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,13 @@
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/utils/common-translations
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ export declare function getTranslation(locale: Locale, id: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-import-word",
3
- "version": "0.0.0-nightly-20240624.0",
3
+ "version": "0.0.0-nightly-20240626.1",
4
4
  "description": "Import from Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,7 +30,7 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "0.0.0-nightly-20240624.0"
33
+ "ckeditor5": "0.0.0-nightly-20240626.1"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
package/src/importword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x595c98=_0x38be;(function(_0x55ebbb,_0x162ba4){var _0x2b65f8=_0x38be,_0x5767bf=_0x55ebbb();while(!![]){try{var _0x3173a1=-parseInt(_0x2b65f8(0x98))/0x1+parseInt(_0x2b65f8(0x9f))/0x2*(-parseInt(_0x2b65f8(0x99))/0x3)+parseInt(_0x2b65f8(0xa2))/0x4*(parseInt(_0x2b65f8(0x96))/0x5)+-parseInt(_0x2b65f8(0xa1))/0x6+-parseInt(_0x2b65f8(0x9d))/0x7+-parseInt(_0x2b65f8(0x97))/0x8*(-parseInt(_0x2b65f8(0x9b))/0x9)+parseInt(_0x2b65f8(0x9a))/0xa;if(_0x3173a1===_0x162ba4)break;else _0x5767bf['push'](_0x5767bf['shift']());}catch(_0x43622e){_0x5767bf['push'](_0x5767bf['shift']());}}}(_0x277c,0xcf6ca));import{Plugin as _0x149587}from'ckeditor5/src/core.js';function _0x38be(_0x509773,_0xc83355){var _0x277c8f=_0x277c();return _0x38be=function(_0x38be0d,_0x5e28d3){_0x38be0d=_0x38be0d-0x96;var _0x2c0e52=_0x277c8f[_0x38be0d];return _0x2c0e52;},_0x38be(_0x509773,_0xc83355);}import _0x23a5cd from'./importwordui.js';import _0x333f58 from'./importwordediting.js';export default class i extends _0x149587{static get[_0x595c98(0x9e)](){var _0xcb4433=_0x595c98;return _0xcb4433(0x9c);}static get[_0x595c98(0xa0)](){return[_0x333f58,_0x23a5cd];}}function _0x277c(){var _0x3daad4=['1586270NsmAaV','pluginName','2WPouhr','requires','2352048rzdpGc','14828SlGiPn','380sRGiLr','216tmKLyR','477209QQekUT','93579rUHyhn','12805830RqSIIP','138105LWMfJP','ImportWord'];_0x277c=function(){return _0x3daad4;};return _0x277c();}
23
+ function _0x27d4(_0x154877,_0x1a5021){var _0x149b6c=_0x149b();return _0x27d4=function(_0x27d459,_0x45e359){_0x27d459=_0x27d459-0x6a;var _0x2a0739=_0x149b6c[_0x27d459];return _0x2a0739;},_0x27d4(_0x154877,_0x1a5021);}var _0x500f93=_0x27d4;(function(_0x51efb1,_0x3c6ca2){var _0x480966=_0x27d4,_0xe751d2=_0x51efb1();while(!![]){try{var _0x10b41b=parseInt(_0x480966(0x74))/0x1+-parseInt(_0x480966(0x6e))/0x2+-parseInt(_0x480966(0x6c))/0x3+parseInt(_0x480966(0x6a))/0x4+parseInt(_0x480966(0x71))/0x5+parseInt(_0x480966(0x72))/0x6+-parseInt(_0x480966(0x6b))/0x7*(parseInt(_0x480966(0x70))/0x8);if(_0x10b41b===_0x3c6ca2)break;else _0xe751d2['push'](_0xe751d2['shift']());}catch(_0x52aa12){_0xe751d2['push'](_0xe751d2['shift']());}}}(_0x149b,0x19097));import{Plugin as _0x175880}from'ckeditor5/src/core.js';import _0x5bd505 from'./importwordui.js';import _0x5b3a9b from'./importwordediting.js';export default class i extends _0x175880{static get[_0x500f93(0x6d)](){var _0xe17770=_0x500f93;return _0xe17770(0x73);}static get[_0x500f93(0x6f)](){return[_0x5b3a9b,_0x5bd505];}}function _0x149b(){var _0x1734ef=['14556MVsLxv','requires','8FXJoBH','45445cZhrAW','849570MjmMjh','ImportWord','26557QWFsOW','770384MUNHBw','1173018quOKXU','277302oQGcZE','pluginName'];_0x149b=function(){return _0x1734ef;};return _0x149b();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0xcd8764}from'ckeditor5/src/core.js';import{Range as _0x9a3fb5}from'ckeditor5/src/engine.js';import{logWarning as _0x5c2618,logError as _0x8c55e6,first as _0x72d8d4,uid as _0x29d655}from'ckeditor5/src/utils.js';export default class d extends _0xcd8764{constructor(_0x332771){super(_0x332771),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x5589fe,_0x49511d)=>{const _0x1eb911=new DataTransfer();_0x1eb911['setData']('text/html',_0x49511d['html']);const _0x5d9927=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x55994c=>{this['_importMarker']['stopListening'](),_0x55994c['setSelection'](_0x5d9927),_0x332771['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x1eb911});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x11978c,_0x4ad505={}){if(this['isBusy'])return Promise['resolve']();const _0x281e3b=this['editor']['config']['get']('importWord'),_0x531f92={'url':_0x281e3b['converterUrl'],'file':_0x11978c,'serviceConfig':{..._0x4ad505,'formatting':_0x281e3b['formatting']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x531f92)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x14d28e=this['editor']['model'],_0x15787f=_0x14d28e['schema'],_0x26e8e3=_0x14d28e['document']['selection'],_0x6d066f=_0x72d8d4(_0x26e8e3['getSelectedBlocks']());return!!_0x6d066f&&_0x15787f['checkChild'](_0x6d066f['parent'],'paragraph');}['_prepareForImport'](){const _0x187210=this['editor'],_0x5c35d4=_0x187210['model'],_0x3572e4=_0x5c35d4['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x187210['model']['createBatch']({'isUndoable':!0x0}),_0x5c35d4['enqueueChange'](this['_undoStepBatch'],_0x55dbae=>{_0x3572e4['isCollapsed']||_0x5c35d4['deleteContent'](_0x3572e4,{'leaveUnmerged':!0x0});const _0x43b7e8=_0x3572e4['getFirstPosition'](),_0x1e239f=_0x72d8d4(_0x3572e4['getSelectedBlocks']());let _0x273f42;_0x273f42=_0x1e239f['is']('element','paragraph')&&_0x1e239f['isEmpty']?_0x43b7e8:_0x43b7e8['isAtStart']?_0x5c35d4['createPositionBefore'](_0x1e239f):_0x43b7e8['isAtEnd']?_0x5c35d4['createPositionAfter'](_0x1e239f):_0x55dbae['split'](_0x43b7e8)['position'],this['_importMarker']=_0x55dbae['addMarker']('importWord:'+_0x29d655(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x9a3fb5(_0x273f42)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x47701f=this['editor']['model'];_0x47701f['markers']['has'](this['_importMarker'])&&_0x47701f['enqueueChange'](this['_undoStepBatch'],_0xb2f69a=>{_0xb2f69a['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x2a5e87,file:_0x1488ba,serviceConfig:_0x25430}){const _0x3f36f7=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x156b62=new FormData();_0x156b62['set']('config',JSON['stringify'](_0x25430)),_0x156b62['set']('file',_0x1488ba);const _0x286d50={'method':'POST','headers':{},'body':_0x156b62,'signal':this['_abortController']['signal']};return _0x3f36f7&&(_0x286d50['headers']['Authorization']=_0x3f36f7['value']),fetch(_0x2a5e87,_0x286d50);}['_handleImportResponse'](_0x3d9acf){return _0x3d9acf['ok']?_0x3d9acf['json']()['then'](_0x5c9798=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',_0x5c9798);}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void _0x5c2618('import-word-plugin-import-cancelled');const _0x32ad6f=this['editor'],_0x3f1d75=(0x0,_0x32ad6f['t'])('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x32ad6f['plugins']['get']('Notification')['showWarning'](_0x3f1d75),_0x8c55e6('import-word-plugin-conversion-failed');}}
23
+ function _0x1575(_0x5af566,_0x4e2e87){const _0x21b0fe=_0x21b0();return _0x1575=function(_0x1575ad,_0x5b65e4){_0x1575ad=_0x1575ad-0x166;let _0x4d1005=_0x21b0fe[_0x1575ad];return _0x4d1005;},_0x1575(_0x5af566,_0x4e2e87);}const _0x39e694=_0x1575;(function(_0x24c673,_0x1650c0){const _0x44bed4=_0x1575,_0x71df1=_0x24c673();while(!![]){try{const _0x4ca191=parseInt(_0x44bed4(0x184))/0x1+parseInt(_0x44bed4(0x166))/0x2*(parseInt(_0x44bed4(0x169))/0x3)+-parseInt(_0x44bed4(0x17f))/0x4+parseInt(_0x44bed4(0x1a3))/0x5*(parseInt(_0x44bed4(0x16d))/0x6)+-parseInt(_0x44bed4(0x189))/0x7*(-parseInt(_0x44bed4(0x16b))/0x8)+parseInt(_0x44bed4(0x1a1))/0x9+-parseInt(_0x44bed4(0x190))/0xa*(parseInt(_0x44bed4(0x175))/0xb);if(_0x4ca191===_0x1650c0)break;else _0x71df1['push'](_0x71df1['shift']());}catch(_0x42e6c4){_0x71df1['push'](_0x71df1['shift']());}}}(_0x21b0,0xeb6e8));import{Command as _0x32fac3}from'ckeditor5/src/core.js';import{Range as _0x485765}from'ckeditor5/src/engine.js';import{logWarning as _0x400a15,logError as _0x54bc6e,first as _0x28c844,uid as _0x5b8fb1}from'ckeditor5/src/utils.js';import{getTranslation as _0x3c5181}from'./utils/common-translations.js';function _0x21b0(){const _0x321ecd=['56646nwHhyu','isAtEnd','getFirstPosition','48rAUeTJ','dataInsert','8GazleM','rootName','4482oZfQdk','markers','createPositionBefore','text/html','catch','_checkEnabled','import-word-plugin-import-cancelled','importWord','3454kTHjXh','root','getSelectedBlocks','setData','createBatch','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.','enqueueChange','POST','Notification','signal','2818572JAGhAS','file','getRange','formatting','has','367194nbUQad','value','converterUrl','stopListening','html','11844301uOQXPY','get','_prepareForImport','addMarker','parent','low','plugins','95020ssBWZp','editing','isEmpty','document','checkChild','showWarning','editor','finally','execute','then','fire','position','isAtStart','aborted','refresh','resolve','_sendImportRequest','10965564fkpUHr','$graveyard','6170sSNkal','importWord:','isCollapsed','locale','isBusy','set','createPositionAfter','Authorization','element','bind','_handleImportResponse','deleteContent','schema','config','paragraph','_cleanUpAfterImport','_handleImportFailure','stringify','clipboardInput','selection','setSelection','import-word-plugin-conversion-failed','_undoStepBatch','json','headers','split','isEnabled','_abortController','change:range','_importMarker','ImportWordEditing','abort','getToken','removeMarker','view','model','reject'];_0x21b0=function(){return _0x321ecd;};return _0x21b0();}export default class d extends _0x32fac3{constructor(_0x3294a0){const _0x9900d5=_0x1575;super(_0x3294a0),this[_0x9900d5(0x1a8)](_0x9900d5(0x1a7),!0x1),this[_0x9900d5(0x1c0)]=null,this[_0x9900d5(0x1b9)]=null,this[_0x9900d5(0x1be)]=null,this['on'](_0x9900d5(0x16a),(_0x478fb9,_0x4e0230)=>{const _0xdec87c=_0x9900d5,_0x498f8b=new DataTransfer();_0x498f8b[_0xdec87c(0x178)](_0xdec87c(0x170),_0x4e0230[_0xdec87c(0x188)]);const _0x13aa3c=this[_0xdec87c(0x1c0)][_0xdec87c(0x181)]();this[_0xdec87c(0x196)][_0xdec87c(0x1c6)][_0xdec87c(0x17b)](this[_0xdec87c(0x1b9)],_0x19cb6e=>{const _0x202d7c=_0xdec87c;this[_0x202d7c(0x1c0)][_0x202d7c(0x187)](),_0x19cb6e[_0x202d7c(0x1b7)](_0x13aa3c),_0x3294a0[_0x202d7c(0x191)][_0x202d7c(0x1c5)][_0x202d7c(0x193)][_0x202d7c(0x19a)](_0x202d7c(0x1b5),{'dataTransfer':_0x498f8b});});},{'priority':_0x9900d5(0x18e)});}[_0x39e694(0x19e)](){const _0x5f26fb=_0x39e694;this[_0x5f26fb(0x1bd)]=this[_0x5f26fb(0x172)]();}[_0x39e694(0x198)](_0x31453e,_0xb2187a={}){const _0x46f257=_0x39e694;if(this[_0x46f257(0x1a7)])return Promise[_0x46f257(0x19f)]();const _0x3419e9=this[_0x46f257(0x196)][_0x46f257(0x1b0)][_0x46f257(0x18a)](_0x46f257(0x174)),_0x41818f={'url':_0x3419e9[_0x46f257(0x186)],'file':_0x31453e,'serviceConfig':{..._0xb2187a,'formatting':_0x3419e9[_0x46f257(0x182)]}};return this[_0x46f257(0x18b)](),this[_0x46f257(0x1a0)](_0x41818f)[_0x46f257(0x199)](this[_0x46f257(0x1ad)][_0x46f257(0x1ac)](this))[_0x46f257(0x171)](this[_0x46f257(0x1b3)][_0x46f257(0x1ac)](this))[_0x46f257(0x197)](this[_0x46f257(0x1b2)][_0x46f257(0x1ac)](this));}[_0x39e694(0x172)](){const _0xdc91a4=_0x39e694;if(this[_0xdc91a4(0x1a7)])return!0x1;const _0x567caf=this[_0xdc91a4(0x196)][_0xdc91a4(0x1c6)],_0x1a650b=_0x567caf[_0xdc91a4(0x1af)],_0xa26717=_0x567caf[_0xdc91a4(0x193)][_0xdc91a4(0x1b6)],_0x46e85f=_0x28c844(_0xa26717[_0xdc91a4(0x177)]());return!!_0x46e85f&&_0x1a650b[_0xdc91a4(0x194)](_0x46e85f[_0xdc91a4(0x18d)],_0xdc91a4(0x1b1));}[_0x39e694(0x18b)](){const _0x1a0038=_0x39e694,_0x3ae0a5=this[_0x1a0038(0x196)],_0xb90a57=_0x3ae0a5[_0x1a0038(0x1c6)],_0x4c5565=_0xb90a57[_0x1a0038(0x193)][_0x1a0038(0x1b6)];this[_0x1a0038(0x1be)]=new AbortController(),this[_0x1a0038(0x1b9)]=_0x3ae0a5[_0x1a0038(0x1c6)][_0x1a0038(0x179)]({'isUndoable':!0x0}),_0xb90a57[_0x1a0038(0x17b)](this[_0x1a0038(0x1b9)],_0x2185a6=>{const _0x73db2d=_0x1a0038;_0x4c5565[_0x73db2d(0x1a5)]||_0xb90a57[_0x73db2d(0x1ae)](_0x4c5565,{'leaveUnmerged':!0x0});const _0x1451eb=_0x4c5565[_0x73db2d(0x168)](),_0x46cc63=_0x28c844(_0x4c5565[_0x73db2d(0x177)]());let _0x20fe9d;_0x20fe9d=_0x46cc63['is'](_0x73db2d(0x1ab),_0x73db2d(0x1b1))&&_0x46cc63[_0x73db2d(0x192)]?_0x1451eb:_0x1451eb[_0x73db2d(0x19c)]?_0xb90a57[_0x73db2d(0x16f)](_0x46cc63):_0x1451eb[_0x73db2d(0x167)]?_0xb90a57[_0x73db2d(0x1a9)](_0x46cc63):_0x2185a6[_0x73db2d(0x1bc)](_0x1451eb)[_0x73db2d(0x19b)],this[_0x73db2d(0x1c0)]=_0x2185a6[_0x73db2d(0x18c)](_0x73db2d(0x1a4)+_0x5b8fb1(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x485765(_0x20fe9d)}),this[_0x73db2d(0x1c0)]['on'](_0x73db2d(0x1bf),()=>{const _0x132a54=_0x73db2d;_0x132a54(0x1a2)===this[_0x132a54(0x1c0)][_0x132a54(0x181)]()[_0x132a54(0x176)][_0x132a54(0x16c)]&&this[_0x132a54(0x1be)][_0x132a54(0x1c2)]();});}),this[_0x1a0038(0x1a7)]=!0x0,this[_0x1a0038(0x19e)]();}[_0x39e694(0x1b2)](){const _0x31c6ad=_0x39e694,_0x3c5936=this[_0x31c6ad(0x196)][_0x31c6ad(0x1c6)];_0x3c5936[_0x31c6ad(0x16e)][_0x31c6ad(0x183)](this[_0x31c6ad(0x1c0)])&&_0x3c5936[_0x31c6ad(0x17b)](this[_0x31c6ad(0x1b9)],_0x1e756f=>{const _0x5e6808=_0x31c6ad;_0x1e756f[_0x5e6808(0x1c4)](this[_0x5e6808(0x1c0)]);}),this[_0x31c6ad(0x1c0)]=null,this[_0x31c6ad(0x1b9)]=null,this[_0x31c6ad(0x1be)]=null,this[_0x31c6ad(0x1a7)]=!0x1,this[_0x31c6ad(0x19e)]();}[_0x39e694(0x1a0)]({url:_0x221100,file:_0x1046af,serviceConfig:_0x2be045}){const _0x58eed6=_0x39e694,_0x4b71af=this[_0x58eed6(0x196)][_0x58eed6(0x18f)][_0x58eed6(0x18a)](_0x58eed6(0x1c1))[_0x58eed6(0x1c3)](),_0x372683=new FormData();_0x372683[_0x58eed6(0x1a8)](_0x58eed6(0x1b0),JSON[_0x58eed6(0x1b4)](_0x2be045)),_0x372683[_0x58eed6(0x1a8)](_0x58eed6(0x180),_0x1046af);const _0x5c9fa8={'method':_0x58eed6(0x17c),'headers':{},'body':_0x372683,'signal':this[_0x58eed6(0x1be)][_0x58eed6(0x17e)]};return _0x4b71af&&(_0x5c9fa8[_0x58eed6(0x1bb)][_0x58eed6(0x1aa)]=_0x4b71af[_0x58eed6(0x185)]),fetch(_0x221100,_0x5c9fa8);}[_0x39e694(0x1ad)](_0x9cd870){const _0x2ccde4=_0x39e694;return _0x9cd870['ok']?_0x9cd870[_0x2ccde4(0x1ba)]()[_0x2ccde4(0x199)](_0x5d842c=>{const _0x4a6cca=_0x2ccde4;if(!this[_0x4a6cca(0x196)][_0x4a6cca(0x1c6)][_0x4a6cca(0x16e)][_0x4a6cca(0x183)](this[_0x4a6cca(0x1c0)]))return;_0x4a6cca(0x1a2)!==this[_0x4a6cca(0x1c0)][_0x4a6cca(0x181)]()[_0x4a6cca(0x176)][_0x4a6cca(0x16c)]&&this[_0x4a6cca(0x19a)](_0x4a6cca(0x16a),_0x5d842c);}):Promise[_0x2ccde4(0x1c7)]();}[_0x39e694(0x1b3)](){const _0xdb1655=_0x39e694;if(this[_0xdb1655(0x1be)][_0xdb1655(0x17e)][_0xdb1655(0x19d)])return void _0x400a15(_0xdb1655(0x173));const _0xd270ae=this[_0xdb1655(0x196)],_0x461412=_0x3c5181(_0xd270ae[_0xdb1655(0x1a6)],_0xdb1655(0x17a));_0xd270ae[_0xdb1655(0x18f)][_0xdb1655(0x18a)](_0xdb1655(0x17d))[_0xdb1655(0x195)](_0x461412),_0x54bc6e(_0xdb1655(0x1b8));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4ff4(){const _0x5be51c=['registerTokenUrl','config','1021128OBDEWy','_token','https://docx-converter.cke-cs.com/v2/convert/docx-html','get','plugins','1716054fjDehC','requires','3425056uFONNP','CloudServices','commands','cloudServices','12AQSGUl','27495684TRPxLn','7HiUNJh','add','pluginName','editor','4647148ooelve','tokenUrl','3215620lRlUzd','inline','getToken','define','importWord','init','token','320052xQdLUJ','none','ImportWordEditing'];_0x4ff4=function(){return _0x5be51c;};return _0x4ff4();}const _0x17dc24=_0x4561;function _0x4561(_0x2cfede,_0x22f1c2){const _0x4ff4d8=_0x4ff4();return _0x4561=function(_0x456153,_0x11920b){_0x456153=_0x456153-0x97;let _0x3cc7ca=_0x4ff4d8[_0x456153];return _0x3cc7ca;},_0x4561(_0x2cfede,_0x22f1c2);}(function(_0x4fa31c,_0x31be8d){const _0x401d41=_0x4561,_0x4f5983=_0x4fa31c();while(!![]){try{const _0x1df095=-parseInt(_0x401d41(0xa5))/0x1+-parseInt(_0x401d41(0xaf))/0x2+-parseInt(_0x401d41(0xaa))/0x3+parseInt(_0x401d41(0x9c))/0x4+-parseInt(_0x401d41(0x9e))/0x5*(parseInt(_0x401d41(0xb5))/0x6)+parseInt(_0x401d41(0x98))/0x7*(-parseInt(_0x401d41(0xb1))/0x8)+parseInt(_0x401d41(0x97))/0x9;if(_0x1df095===_0x31be8d)break;else _0x4f5983['push'](_0x4f5983['shift']());}catch(_0x5e0e51){_0x4f5983['push'](_0x4f5983['shift']());}}}(_0x4ff4,0xf03dc));import{Plugin as _0x4f7bed}from'ckeditor5/src/core.js';import{Notification as _0x1ae20c}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x504fe9}from'ckeditor5/src/clipboard.js';import _0x24e5d2 from'./importwordcommand.js';export default class e extends _0x4f7bed{static get[_0x17dc24(0x9a)](){const _0x1aab44=_0x17dc24;return _0x1aab44(0xa7);}static get[_0x17dc24(0xb0)](){const _0x175802=_0x17dc24;return[_0x1ae20c,_0x504fe9,_0x175802(0xb2)];}constructor(_0x3f056d){const _0x34a7a6=_0x17dc24;super(_0x3f056d),this[_0x34a7a6(0xab)]=null;}async[_0x17dc24(0xa3)](){const _0x125aa1=_0x17dc24,_0x5359f5=this[_0x125aa1(0x9b)];_0x5359f5[_0x125aa1(0xa9)][_0x125aa1(0xa1)](_0x125aa1(0xa2),{'converterUrl':_0x125aa1(0xac),'tokenUrl':(_0x5359f5[_0x125aa1(0xa9)][_0x125aa1(0xad)](_0x125aa1(0xb4))||{})[_0x125aa1(0x9d)],'formatting':{'resets':_0x125aa1(0xa6),'defaults':_0x125aa1(0xa6),'styles':_0x125aa1(0x9f)}}),_0x5359f5[_0x125aa1(0xb3)][_0x125aa1(0x99)](_0x125aa1(0xa2),new _0x24e5d2(_0x5359f5));const {tokenUrl:_0x2a72bd}=_0x5359f5[_0x125aa1(0xa9)][_0x125aa1(0xad)](_0x125aa1(0xa2));if(_0x2a72bd){const {tokenUrl:_0x305b8d}=_0x5359f5[_0x125aa1(0xa9)][_0x125aa1(0xad)](_0x125aa1(0xb4))||{};this[_0x125aa1(0xab)]=_0x2a72bd===_0x305b8d?_0x5359f5[_0x125aa1(0xae)][_0x125aa1(0xad)](_0x125aa1(0xb2))[_0x125aa1(0xa4)]:await _0x5359f5[_0x125aa1(0xae)][_0x125aa1(0xad)](_0x125aa1(0xb2))[_0x125aa1(0xa8)](_0x2a72bd);}}[_0x17dc24(0xa0)](){const _0x195c4d=_0x17dc24;return this[_0x195c4d(0xab)];}}
23
+ const _0x4008d5=_0x50e1;function _0x3868(){const _0x1d0790=['414wNUFCd','importWord','tokenUrl','1058453vgcuBb','plugins','92BXhMSV','inline','ImportWordEditing','98HlRXRU','commands','none','949gyfYkM','pluginName','233682GBCHNr','40RQdEGi','904887KtDawV','cloudServices','requires','928446kMhpci','CloudServices','getToken','add','get','init','1727CAHHsh','30XINrGC','config','token','define','https://docx-converter.cke-cs.com/v2/convert/docx-html','138816naTgEq','52485PFJdBu','editor','registerTokenUrl','_token'];_0x3868=function(){return _0x1d0790;};return _0x3868();}(function(_0xe59e64,_0x372c20){const _0x551aaa=_0x50e1,_0x41e14c=_0xe59e64();while(!![]){try{const _0xa372c4=-parseInt(_0x551aaa(0x17f))/0x1*(-parseInt(_0x551aaa(0x18a))/0x2)+-parseInt(_0x551aaa(0x19c))/0x3+parseInt(_0x551aaa(0x18f))/0x4*(-parseInt(_0x551aaa(0x186))/0x5)+-parseInt(_0x551aaa(0x197))/0x6*(parseInt(_0x551aaa(0x192))/0x7)+-parseInt(_0x551aaa(0x198))/0x8*(-parseInt(_0x551aaa(0x199))/0x9)+parseInt(_0x551aaa(0x180))/0xa*(-parseInt(_0x551aaa(0x18d))/0xb)+parseInt(_0x551aaa(0x185))/0xc*(parseInt(_0x551aaa(0x195))/0xd);if(_0xa372c4===_0x372c20)break;else _0x41e14c['push'](_0x41e14c['shift']());}catch(_0x107cc4){_0x41e14c['push'](_0x41e14c['shift']());}}}(_0x3868,0x4e154));import{Plugin as _0x5ea402}from'ckeditor5/src/core.js';function _0x50e1(_0x43cb64,_0x1958cf){const _0x3868a3=_0x3868();return _0x50e1=function(_0x50e159,_0x4aa055){_0x50e159=_0x50e159-0x17f;let _0x29ddb7=_0x3868a3[_0x50e159];return _0x29ddb7;},_0x50e1(_0x43cb64,_0x1958cf);}import{Notification as _0xe99823}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x249006}from'ckeditor5/src/clipboard.js';import _0x29a31b from'./importwordcommand.js';export default class e extends _0x5ea402{static get[_0x4008d5(0x196)](){const _0x415065=_0x4008d5;return _0x415065(0x191);}static get[_0x4008d5(0x19b)](){const _0x5013ed=_0x4008d5;return[_0xe99823,_0x249006,_0x5013ed(0x19d)];}constructor(_0x4678c6){const _0xf39116=_0x4008d5;super(_0x4678c6),this[_0xf39116(0x189)]=null;}async[_0x4008d5(0x1a1)](){const _0x354107=_0x4008d5,_0x53f269=this[_0x354107(0x187)];_0x53f269[_0x354107(0x181)][_0x354107(0x183)](_0x354107(0x18b),{'converterUrl':_0x354107(0x184),'tokenUrl':(_0x53f269[_0x354107(0x181)][_0x354107(0x1a0)](_0x354107(0x19a))||{})[_0x354107(0x18c)],'formatting':{'resets':_0x354107(0x194),'defaults':_0x354107(0x194),'styles':_0x354107(0x190)}}),_0x53f269[_0x354107(0x193)][_0x354107(0x19f)](_0x354107(0x18b),new _0x29a31b(_0x53f269));const {tokenUrl:_0x1dd4a4}=_0x53f269[_0x354107(0x181)][_0x354107(0x1a0)](_0x354107(0x18b));if(_0x1dd4a4){const {tokenUrl:_0x2dd37d}=_0x53f269[_0x354107(0x181)][_0x354107(0x1a0)](_0x354107(0x19a))||{};this[_0x354107(0x189)]=_0x1dd4a4===_0x2dd37d?_0x53f269[_0x354107(0x18e)][_0x354107(0x1a0)](_0x354107(0x19d))[_0x354107(0x182)]:await _0x53f269[_0x354107(0x18e)][_0x354107(0x1a0)](_0x354107(0x19d))[_0x354107(0x188)](_0x1dd4a4);}}[_0x4008d5(0x19e)](){const _0x471323=_0x4008d5;return this[_0x471323(0x189)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2cc412}from'ckeditor5/src/core.js';import{SpinnerView as _0x18e940,FileDialogButtonView as _0x5b9be9,MenuBarMenuListItemFileDialogButtonView as _0xc33d8c}from'ckeditor5/src/ui.js';import _0x5e351a from'../theme/icons/importword.svg';export default class o extends _0x2cc412{static get['pluginName'](){return'ImportWordUI';}['init'](){const _0x2f2ba5=this['editor'];_0x2f2ba5['ui']['componentFactory']['add']('importWord',()=>{const _0xb079a0=this['_createButton'](_0x5b9be9),_0x3df20a=_0x2f2ba5['commands']['get']('importWord');return _0xb079a0['bind']('isOn')['to'](_0x3df20a,'isBusy'),_0xb079a0['tooltip']=!0x0,_0xb079a0;}),_0x2f2ba5['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](_0xc33d8c));}['_createButton'](_0x2cf956){const _0x3aa43f=this['editor'],t=_0x3aa43f['locale']['t'],_0x2ca680=_0x3aa43f['commands']['get']('importWord'),_0x1bc989=new _0x2cf956(_0x3aa43f['locale']),_0x105e4d=new _0x18e940();return _0x1bc989['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x1bc989['set']({'icon':_0x5e351a}),_0x1bc989['bind']('isEnabled')['to'](_0x2ca680),_0x1bc989['bind']('label')['to'](_0x2ca680,'isBusy',_0x10e820=>t(_0x10e820?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x105e4d['bind']('isVisible')['to'](_0x2ca680,'isBusy'),_0x1bc989['iconView']['bind']('isVisible')['to'](_0x2ca680,'isBusy',_0x180ee4=>!_0x180ee4),_0x1bc989['children']['add'](_0x105e4d),_0x1bc989['on']('done',(_0x3d1fb2,_0x279e43)=>{_0x3aa43f['execute']('importWord',_0x279e43[0x0],{}),_0x3aa43f['editing']['view']['focus']();}),_0x1bc989;}}
23
+ const _0x27c65f=_0x1800;function _0x3e7d(){const _0x28cc4e=['527377idOLdG','Importing\x20Word\x20document','add','551655VpFuYU','83592cxKYWJ','8itrKbP','isBusy','3369090FpzNfm','focus','tooltip','menuBar:importWord','Import\x20from\x20Word','255426yDWpFY','done','commands','36130pFdYhn','8PXiaLa','bind','isVisible','label','iconView','execute','1199gyNswc','_createButton','isEnabled','children','pluginName','459075EyKdhc','importWord','editing','editor','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','view','70XCQGVi','componentFactory','locale','isOn','init','get','ImportWordUI','set'];_0x3e7d=function(){return _0x28cc4e;};return _0x3e7d();}function _0x1800(_0x148b2b,_0x562dd1){const _0x3e7d1a=_0x3e7d();return _0x1800=function(_0x180023,_0x4cf528){_0x180023=_0x180023-0x14f;let _0x1a6213=_0x3e7d1a[_0x180023];return _0x1a6213;},_0x1800(_0x148b2b,_0x562dd1);}(function(_0x534b68,_0x356845){const _0x25c886=_0x1800,_0x53cf71=_0x534b68();while(!![]){try{const _0x160fd4=parseInt(_0x25c886(0x152))/0x1+-parseInt(_0x25c886(0x157))/0x2*(-parseInt(_0x25c886(0x16d))/0x3)+-parseInt(_0x25c886(0x156))/0x4+-parseInt(_0x25c886(0x159))/0x5+parseInt(_0x25c886(0x15e))/0x6*(-parseInt(_0x25c886(0x173))/0x7)+-parseInt(_0x25c886(0x162))/0x8*(parseInt(_0x25c886(0x155))/0x9)+-parseInt(_0x25c886(0x161))/0xa*(-parseInt(_0x25c886(0x168))/0xb);if(_0x160fd4===_0x356845)break;else _0x53cf71['push'](_0x53cf71['shift']());}catch(_0x306095){_0x53cf71['push'](_0x53cf71['shift']());}}}(_0x3e7d,0x55d55));import{Plugin as _0x3942cb}from'ckeditor5/src/core.js';import{SpinnerView as _0x4e352e,FileDialogButtonView as _0x2ad8f9,MenuBarMenuListItemFileDialogButtonView as _0x35db06}from'ckeditor5/src/ui.js';import _0x1996a6 from'../theme/icons/importword.svg';import{getTranslation as _0x4670aa}from'./utils/common-translations.js';export default class o extends _0x3942cb{static get[_0x27c65f(0x16c)](){const _0x47bd8e=_0x27c65f;return _0x47bd8e(0x150);}[_0x27c65f(0x177)](){const _0xeecd95=_0x27c65f,_0x519c7f=this[_0xeecd95(0x170)];_0x519c7f['ui'][_0xeecd95(0x174)][_0xeecd95(0x154)](_0xeecd95(0x16e),()=>{const _0x3f5d15=_0xeecd95,_0x32c210=this[_0x3f5d15(0x169)](_0x2ad8f9),_0xfb3c58=_0x519c7f[_0x3f5d15(0x160)][_0x3f5d15(0x14f)](_0x3f5d15(0x16e));return _0x32c210[_0x3f5d15(0x163)](_0x3f5d15(0x176))['to'](_0xfb3c58,_0x3f5d15(0x158)),_0x32c210[_0x3f5d15(0x15b)]=!0x0,_0x32c210;}),_0x519c7f['ui'][_0xeecd95(0x174)][_0xeecd95(0x154)](_0xeecd95(0x15c),()=>this[_0xeecd95(0x169)](_0x35db06));}[_0x27c65f(0x169)](_0x3bf429){const _0x2144bc=_0x27c65f,_0x49ca1a=this[_0x2144bc(0x170)],_0xe974db=_0x49ca1a[_0x2144bc(0x160)][_0x2144bc(0x14f)](_0x2144bc(0x16e)),_0x24d84d=new _0x3bf429(_0x49ca1a[_0x2144bc(0x175)]),_0x522cd3=new _0x4e352e();return _0x24d84d[_0x2144bc(0x151)]({'acceptedType':_0x2144bc(0x171)}),_0x24d84d[_0x2144bc(0x151)]({'icon':_0x1996a6}),_0x24d84d[_0x2144bc(0x163)](_0x2144bc(0x16a))['to'](_0xe974db),_0x24d84d[_0x2144bc(0x163)](_0x2144bc(0x165))['to'](_0xe974db,_0x2144bc(0x158),_0x4f14bf=>_0x4670aa(_0x49ca1a[_0x2144bc(0x175)],_0x4f14bf?_0x2144bc(0x153):_0x2144bc(0x15d))),_0x522cd3[_0x2144bc(0x163)](_0x2144bc(0x164))['to'](_0xe974db,_0x2144bc(0x158)),_0x24d84d[_0x2144bc(0x166)][_0x2144bc(0x163)](_0x2144bc(0x164))['to'](_0xe974db,_0x2144bc(0x158),_0x383726=>!_0x383726),_0x24d84d[_0x2144bc(0x16b)][_0x2144bc(0x154)](_0x522cd3),_0x24d84d['on'](_0x2144bc(0x15f),(_0x170e56,_0x4bb6ba)=>{const _0x21a666=_0x2144bc;_0x49ca1a[_0x21a666(0x167)](_0x21a666(0x16e),_0x4bb6ba[0x0],{}),_0x49ca1a[_0x21a666(0x16f)][_0x21a666(0x172)][_0x21a666(0x15a)]();}),_0x24d84d;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x194b(){var _0xa5056f=['64NFdCZZ','1713195VLZVst','560760gyIGhd','10420416SvmsoQ','6FsTnef','244LEyVDx','5347etflhV','2031356AGIdnS','22prgAVj','6863835yNOLJk','3qfjZOx','3208135tHZIxC'];_0x194b=function(){return _0xa5056f;};return _0x194b();}(function(_0x39d162,_0x313060){var _0x4128d1=_0x4e2c,_0x371cba=_0x39d162();while(!![]){try{var _0x3de3c2=parseInt(_0x4128d1(0x12f))/0x1*(-parseInt(_0x4128d1(0x12e))/0x2)+-parseInt(_0x4128d1(0x133))/0x3*(-parseInt(_0x4128d1(0x130))/0x4)+-parseInt(_0x4128d1(0x132))/0x5*(-parseInt(_0x4128d1(0x12d))/0x6)+parseInt(_0x4128d1(0x134))/0x7+-parseInt(_0x4128d1(0x135))/0x8*(parseInt(_0x4128d1(0x136))/0x9)+parseInt(_0x4128d1(0x137))/0xa*(-parseInt(_0x4128d1(0x131))/0xb)+parseInt(_0x4128d1(0x138))/0xc;if(_0x3de3c2===_0x313060)break;else _0x371cba['push'](_0x371cba['shift']());}catch(_0xdbc271){_0x371cba['push'](_0x371cba['shift']());}}}(_0x194b,0xe0991));export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';function _0x4e2c(_0x5813a1,_0x11a828){var _0x194b33=_0x194b();return _0x4e2c=function(_0x4e2c0c,_0xa527b0){_0x4e2c0c=_0x4e2c0c-0x12d;var _0x3ec8a3=_0x194b33[_0x4e2c0c];return _0x3ec8a3;},_0x4e2c(_0x5813a1,_0x11a828);}import'./augmentation.js';
23
+ (function(_0x41aac5,_0x472e39){var _0x13ee01=_0x5c39,_0x3f86c0=_0x41aac5();while(!![]){try{var _0x4c639a=-parseInt(_0x13ee01(0x66))/0x1*(parseInt(_0x13ee01(0x65))/0x2)+-parseInt(_0x13ee01(0x69))/0x3*(parseInt(_0x13ee01(0x6a))/0x4)+parseInt(_0x13ee01(0x6e))/0x5*(parseInt(_0x13ee01(0x68))/0x6)+-parseInt(_0x13ee01(0x6f))/0x7*(-parseInt(_0x13ee01(0x64))/0x8)+parseInt(_0x13ee01(0x6c))/0x9+parseInt(_0x13ee01(0x6d))/0xa*(parseInt(_0x13ee01(0x6b))/0xb)+-parseInt(_0x13ee01(0x67))/0xc;if(_0x4c639a===_0x472e39)break;else _0x3f86c0['push'](_0x3f86c0['shift']());}catch(_0x1e3469){_0x3f86c0['push'](_0x3f86c0['shift']());}}}(_0x1358,0x25fac));export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';import'./augmentation.js';function _0x5c39(_0x18495e,_0x564e1b){var _0x135895=_0x1358();return _0x5c39=function(_0x5c39fe,_0xe4e41a){_0x5c39fe=_0x5c39fe-0x64;var _0xa212dc=_0x135895[_0x5c39fe];return _0xa212dc;},_0x5c39(_0x18495e,_0x564e1b);}function _0x1358(){var _0x5cb02c=['1543905EtUKXB','10YUdUVf','1510prQlhL','14gxWRNu','76776tKtkeA','2pcCmlX','211420GohJYg','1671072wVwiSA','3774lEqjoe','12nyhKHx','154064JdkKqw','3075677fAPokA'];_0x1358=function(){return _0x5cb02c;};return _0x1358();}
@@ -0,0 +1,9 @@
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
+ * @module import-word/utils/common-translations
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ export declare function getTranslation(locale: Locale, id: string): string;
@@ -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 function getTranslation(_0x1fe85c,_0x52143f){const t=_0x1fe85c['t'];switch(_0x52143f){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 _0x52143f;}}