@ckeditor/ckeditor5-export-word 41.4.0 → 41.4.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 (99) hide show
  1. package/build/export-word.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/bg.js +1 -1
  6. package/dist/translations/bg.umd.js +1 -1
  7. package/dist/translations/bn.js +1 -1
  8. package/dist/translations/bn.umd.js +1 -1
  9. package/dist/translations/ca.js +1 -1
  10. package/dist/translations/ca.umd.js +1 -1
  11. package/dist/translations/cs.js +1 -1
  12. package/dist/translations/cs.umd.js +1 -1
  13. package/dist/translations/da.js +1 -1
  14. package/dist/translations/da.umd.js +1 -1
  15. package/dist/translations/de.js +1 -1
  16. package/dist/translations/de.umd.js +1 -1
  17. package/dist/translations/el.js +1 -1
  18. package/dist/translations/el.umd.js +1 -1
  19. package/dist/translations/en-au.js +1 -1
  20. package/dist/translations/en-au.umd.js +1 -1
  21. package/dist/translations/en.umd.js +1 -1
  22. package/dist/translations/es.js +1 -1
  23. package/dist/translations/es.umd.js +1 -1
  24. package/dist/translations/et.js +1 -1
  25. package/dist/translations/et.umd.js +1 -1
  26. package/dist/translations/fi.js +1 -1
  27. package/dist/translations/fi.umd.js +1 -1
  28. package/dist/translations/fr.js +1 -1
  29. package/dist/translations/fr.umd.js +1 -1
  30. package/dist/translations/gl.js +1 -1
  31. package/dist/translations/gl.umd.js +1 -1
  32. package/dist/translations/he.js +1 -1
  33. package/dist/translations/he.umd.js +1 -1
  34. package/dist/translations/hi.js +1 -1
  35. package/dist/translations/hi.umd.js +1 -1
  36. package/dist/translations/hr.js +1 -1
  37. package/dist/translations/hr.umd.js +1 -1
  38. package/dist/translations/hu.js +1 -1
  39. package/dist/translations/hu.umd.js +1 -1
  40. package/dist/translations/id.js +1 -1
  41. package/dist/translations/id.umd.js +1 -1
  42. package/dist/translations/it.js +1 -1
  43. package/dist/translations/it.umd.js +1 -1
  44. package/dist/translations/ja.js +1 -1
  45. package/dist/translations/ja.umd.js +1 -1
  46. package/dist/translations/jv.js +1 -1
  47. package/dist/translations/jv.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sr-latn.js +1 -1
  73. package/dist/translations/sr-latn.umd.js +1 -1
  74. package/dist/translations/sr.js +1 -1
  75. package/dist/translations/sr.umd.js +1 -1
  76. package/dist/translations/sv.js +1 -1
  77. package/dist/translations/sv.umd.js +1 -1
  78. package/dist/translations/th.js +1 -1
  79. package/dist/translations/th.umd.js +1 -1
  80. package/dist/translations/tr.js +1 -1
  81. package/dist/translations/tr.umd.js +1 -1
  82. package/dist/translations/ug.js +1 -1
  83. package/dist/translations/ug.umd.js +1 -1
  84. package/dist/translations/uk.js +1 -1
  85. package/dist/translations/uk.umd.js +1 -1
  86. package/dist/translations/ur.js +1 -1
  87. package/dist/translations/ur.umd.js +1 -1
  88. package/dist/translations/vi.js +1 -1
  89. package/dist/translations/vi.umd.js +1 -1
  90. package/dist/translations/zh-cn.js +1 -1
  91. package/dist/translations/zh-cn.umd.js +1 -1
  92. package/dist/translations/zh.js +1 -1
  93. package/dist/translations/zh.umd.js +1 -1
  94. package/package.json +2 -2
  95. package/src/exportword.js +1 -1
  96. package/src/exportwordcommand.js +1 -1
  97. package/src/exportwordui.js +1 -1
  98. package/src/index.js +1 -1
  99. package/src/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x5bf61f=>0x0}};
23
+ export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x1ab066=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x7410ed=>{const {zh:{dictionary:_0x1ce7a9,getPluralForm:_0xae863d}}={'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0xfc4899=>0x0}};_0x7410ed['zh']||={'dictionary':{},'getPluralForm':null},_0x7410ed['zh']['dictionary']=Object['assign'](_0x7410ed['zh']['dictionary'],_0x1ce7a9),_0x7410ed['zh']['getPluralForm']=_0xae863d;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x3c3938=>{const {zh:{dictionary:_0x4d00b8,getPluralForm:_0xcc8298}}={'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x290144=>0x0}};_0x3c3938['zh']||={'dictionary':{},'getPluralForm':null},_0x3c3938['zh']['dictionary']=Object['assign'](_0x3c3938['zh']['dictionary'],_0x4d00b8),_0x3c3938['zh']['getPluralForm']=_0xcc8298;})(window['CKEDITOR_TRANSLATIONS']||={});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "41.4.0",
3
+ "version": "41.4.1",
4
4
  "description": "Export to 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": "41.4.0"
33
+ "ckeditor5": "41.4.1"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5865e9=_0x5bfd;(function(_0x4f032d,_0x100138){const _0x3c9a90=_0x5bfd,_0xf1d355=_0x4f032d();while(!![]){try{const _0x2546f8=parseInt(_0x3c9a90(0x1f6))/0x1*(-parseInt(_0x3c9a90(0x1f7))/0x2)+parseInt(_0x3c9a90(0x1fd))/0x3*(parseInt(_0x3c9a90(0x1e9))/0x4)+-parseInt(_0x3c9a90(0x1ea))/0x5+-parseInt(_0x3c9a90(0x1f2))/0x6+parseInt(_0x3c9a90(0x1eb))/0x7*(-parseInt(_0x3c9a90(0x1ed))/0x8)+-parseInt(_0x3c9a90(0x1e7))/0x9+parseInt(_0x3c9a90(0x1f5))/0xa*(parseInt(_0x3c9a90(0x1e6))/0xb);if(_0x2546f8===_0x100138)break;else _0xf1d355['push'](_0xf1d355['shift']());}catch(_0x4c0910){_0xf1d355['push'](_0xf1d355['shift']());}}}(_0x198b,0x4803b));import{Plugin as _0x187de9}from'ckeditor5/src/core.js';import{Notification as _0xcbf420}from'ckeditor5/src/ui.js';function _0x5bfd(_0x53eec5,_0x4ff72a){const _0x198b83=_0x198b();return _0x5bfd=function(_0x5bfd94,_0x29fceb){_0x5bfd94=_0x5bfd94-0x1e6;let _0x4a5a6c=_0x198b83[_0x5bfd94];return _0x4a5a6c;},_0x5bfd(_0x53eec5,_0x4ff72a);}import _0x5bfb92 from'./exportwordcommand.js';import _0x4279a5 from'./exportwordui.js';function _0x198b(){const _0x15bd4b=['1gWgKGN','921560hSGdEo','requires','CloudServices','add','config','plugins','222534VCXAkk','pluginName','editor','tokenUrl','init','16058031JlFkdO','2161665PjKNDn','registerTokenUrl','4ZIFKAh','219820bfrSiB','56wHcsJg','then','216088qbwKll','get','_token','exportWord','ExportWord','1668066ZjYDGw','token','commands','10HNJcvG'];_0x198b=function(){return _0x15bd4b;};return _0x198b();}export default class s extends _0x187de9{static get[_0x5865e9(0x1fe)](){const _0x477019=_0x5865e9;return _0x477019(0x1f1);}static get[_0x5865e9(0x1f8)](){const _0x54a7c5=_0x5865e9;return[_0x54a7c5(0x1f9),_0xcbf420,_0x4279a5];}[_0x5865e9(0x201)](){const _0x3eee68=_0x5865e9,_0x4ef7b3=this[_0x3eee68(0x1ff)],_0x2ab970=_0x4ef7b3[_0x3eee68(0x1fb)][_0x3eee68(0x1ee)](_0x3eee68(0x1f0))||{};_0x4ef7b3[_0x3eee68(0x1f4)][_0x3eee68(0x1fa)](_0x3eee68(0x1f0),new _0x5bfb92(_0x4ef7b3));const _0x25df77=_0x4ef7b3[_0x3eee68(0x1fc)][_0x3eee68(0x1ee)](_0x3eee68(0x1f9));!0x1===_0x2ab970[_0x3eee68(0x200)]?this[_0x3eee68(0x1ef)]=null:_0x2ab970[_0x3eee68(0x200)]?_0x25df77[_0x3eee68(0x1e8)](_0x2ab970[_0x3eee68(0x200)])[_0x3eee68(0x1ec)](_0x4b4f03=>{const _0x6aa0d7=_0x3eee68;this[_0x6aa0d7(0x1ef)]=_0x4b4f03;}):this[_0x3eee68(0x1ef)]=_0x25df77[_0x3eee68(0x1f3)];}}
23
+ const _0x3870db=_0x210a;function _0x434e(){const _0x142bcb=['1304193kiznpG','6xehPUp','_token','CloudServices','tokenUrl','8SkrQUD','then','add','7695144iiricO','requires','editor','4171392WQlUKP','registerTokenUrl','pluginName','2128756wUdPVO','init','get','commands','token','6160220xzJFdk','exportWord','ExportWord','plugins','998220HnWNPo','config','5473076PcMcir'];_0x434e=function(){return _0x142bcb;};return _0x434e();}(function(_0x3d1509,_0x32f3d8){const _0x2792a1=_0x210a,_0x3c3285=_0x3d1509();while(!![]){try{const _0x23bdc5=-parseInt(_0x2792a1(0xf8))/0x1+parseInt(_0x2792a1(0x109))/0x2+parseInt(_0x2792a1(0xfb))/0x3+-parseInt(_0x2792a1(0x106))/0x4+parseInt(_0x2792a1(0x10e))/0x5+parseInt(_0x2792a1(0xfc))/0x6*(parseInt(_0x2792a1(0xfa))/0x7)+parseInt(_0x2792a1(0x100))/0x8*(-parseInt(_0x2792a1(0x103))/0x9);if(_0x23bdc5===_0x32f3d8)break;else _0x3c3285['push'](_0x3c3285['shift']());}catch(_0x3877f6){_0x3c3285['push'](_0x3c3285['shift']());}}}(_0x434e,0x969e9));import{Plugin as _0x4960c9}from'ckeditor5/src/core.js';import{Notification as _0x8acec2}from'ckeditor5/src/ui.js';function _0x210a(_0x39ce7b,_0x59c79f){const _0x434eed=_0x434e();return _0x210a=function(_0x210a64,_0x3ae28f){_0x210a64=_0x210a64-0xf5;let _0x305433=_0x434eed[_0x210a64];return _0x305433;},_0x210a(_0x39ce7b,_0x59c79f);}import _0x53ab49 from'./exportwordcommand.js';import _0x445395 from'./exportwordui.js';export default class s extends _0x4960c9{static get[_0x3870db(0x108)](){const _0x2fc973=_0x3870db;return _0x2fc973(0xf6);}static get[_0x3870db(0x104)](){const _0x4f156e=_0x3870db;return[_0x4f156e(0xfe),_0x8acec2,_0x445395];}[_0x3870db(0x10a)](){const _0x3293e5=_0x3870db,_0xe52271=this[_0x3293e5(0x105)],_0x21dd3c=_0xe52271[_0x3293e5(0xf9)][_0x3293e5(0x10b)](_0x3293e5(0xf5))||{};_0xe52271[_0x3293e5(0x10c)][_0x3293e5(0x102)](_0x3293e5(0xf5),new _0x53ab49(_0xe52271));const _0x27fcfb=_0xe52271[_0x3293e5(0xf7)][_0x3293e5(0x10b)](_0x3293e5(0xfe));!0x1===_0x21dd3c[_0x3293e5(0xff)]?this[_0x3293e5(0xfd)]=null:_0x21dd3c[_0x3293e5(0xff)]?_0x27fcfb[_0x3293e5(0x107)](_0x21dd3c[_0x3293e5(0xff)])[_0x3293e5(0x101)](_0x223d82=>{const _0x46ca08=_0x3293e5;this[_0x46ca08(0xfd)]=_0x223d82;}):this[_0x3293e5(0xfd)]=_0x27fcfb[_0x3293e5(0x10d)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x6c3452}from'ckeditor5/src/core.js';import{getStyles as _0x15bcb4,getConverterOptions as _0xa6c706}from'./utils.js';export default class e extends _0x6c3452{constructor(_0x11691f){super(_0x11691f),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x5ddd34={}){const _0x120e89=this['editor'],t=_0x120e89['t'],_0x3ffc77=_0x5ddd34['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x88ff0d=_0x5ddd34['converterOptions']||{},_0x54ee94=_0x120e89['plugins']['get']('ExportWord'),_0x3d798f=_0x5ddd34['token']||_0x54ee94['_token'],_0x10b9cb=!0x1!==_0x88ff0d['auto_pagination'],_0x299619=_0x5ddd34['dataCallback']||(_0x532b26=>_0x532b26['data']['get']({'pagination':_0x10b9cb}));return this['isBusy']=!0x0,this['refresh'](),_0x15bcb4(_0x5ddd34['stylesheets']||['EDITOR_STYLES'])['then'](async _0x8cd30a=>{_0x120e89['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x1fb87b=await _0x299619(_0x120e89),_0x662a8c={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x120e89['locale']['contentLanguageDirection']+'\x22>'+_0x1fb87b+'</div>','css':_0x8cd30a,'options':{..._0x88ff0d,..._0xa6c706(_0x120e89)}},_0x5aefb0={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x3d798f?{'Authorization':_0x3d798f['value']}:null},'body':JSON['stringify'](_0x662a8c)};return window['fetch'](_0x3ffc77,_0x5aefb0)['then'](_0x4eae18=>{if(0xc8!==_0x4eae18['status'])throw _0x4eae18;return _0x4eae18['blob']();})['then'](_0xd95f40=>{_0x120e89['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x19eaef='function'==typeof _0x5ddd34['fileName']?_0x5ddd34['fileName']():_0x5ddd34['fileName'];this['_downloadFile'](_0xd95f40,_0x19eaef||'document.docx');});})['catch'](_0x4912c1=>{const _0x37333e=_0x120e89['plugins']['get']('Notification');throw _0x120e89['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x37333e['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x4912c1;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xfd7c6c,_0xa1fccd){const _0x14d8ad=document['createElement']('a');_0x14d8ad['href']=window['URL']['createObjectURL'](_0xfd7c6c),_0x14d8ad['download']=_0xa1fccd,_0x14d8ad['click'](),_0x14d8ad['remove']();}}
23
+ import{Command as _0x5cf212}from'ckeditor5/src/core.js';import{getStyles as _0x9ad2e6,getConverterOptions as _0x1773e5}from'./utils.js';export default class e extends _0x5cf212{constructor(_0x35e340){super(_0x35e340),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x4da8af={}){const _0x47f8d2=this['editor'],t=_0x47f8d2['t'],_0x3f6ba2=_0x4da8af['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x133917=_0x4da8af['converterOptions']||{},_0x5efac8=_0x47f8d2['plugins']['get']('ExportWord'),_0x4c3abc=_0x4da8af['token']||_0x5efac8['_token'],_0x575b9b=!0x1!==_0x133917['auto_pagination'],_0x30a892=_0x4da8af['dataCallback']||(_0x1b9f3b=>_0x1b9f3b['data']['get']({'pagination':_0x575b9b}));return this['isBusy']=!0x0,this['refresh'](),_0x9ad2e6(_0x4da8af['stylesheets']||['EDITOR_STYLES'])['then'](async _0x2b63f5=>{_0x47f8d2['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x5a4bb2=await _0x30a892(_0x47f8d2),_0x240132={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x47f8d2['locale']['contentLanguageDirection']+'\x22>'+_0x5a4bb2+'</div>','css':_0x2b63f5,'options':{..._0x133917,..._0x1773e5(_0x47f8d2)}},_0x354c18={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x4c3abc?{'Authorization':_0x4c3abc['value']}:null},'body':JSON['stringify'](_0x240132)};return window['fetch'](_0x3f6ba2,_0x354c18)['then'](_0x1318c0=>{if(0xc8!==_0x1318c0['status'])throw _0x1318c0;return _0x1318c0['blob']();})['then'](_0x3d2df2=>{_0x47f8d2['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x1106cc='function'==typeof _0x4da8af['fileName']?_0x4da8af['fileName']():_0x4da8af['fileName'];this['_downloadFile'](_0x3d2df2,_0x1106cc||'document.docx');});})['catch'](_0x515400=>{const _0x2d7ec7=_0x47f8d2['plugins']['get']('Notification');throw _0x47f8d2['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x2d7ec7['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x515400;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x4ce5e9,_0x160e80){const _0x7a6b94=document['createElement']('a');_0x7a6b94['href']=window['URL']['createObjectURL'](_0x4ce5e9),_0x7a6b94['download']=_0x160e80,_0x7a6b94['click'](),_0x7a6b94['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2bb660}from'ckeditor5/src/core.js';import{ButtonView as _0x136555,MenuBarMenuListItemButtonView as _0x540e66,SpinnerView as _0x165424}from'ckeditor5/src/ui.js';import _0x3b0a06 from'../theme/icons/exportword.svg';export default class i extends _0x2bb660{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x756ea8=this['editor'];_0x756ea8['ui']['componentFactory']['add']('exportWord',()=>{const _0x5100b4=_0x756ea8['commands']['get']('exportWord'),_0x547ad1=this['_createButton'](_0x136555);return _0x547ad1['set']({'tooltip':!0x0}),_0x547ad1['bind']('isOn')['to'](_0x5100b4,'isBusy'),_0x547ad1;}),_0x756ea8['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x540e66));}['_createButton'](_0x117461){const _0x2fdca7=this['editor'],_0x5cc687=_0x2fdca7['config']['get']('exportWord')||{},t=_0x2fdca7['locale']['t'],_0x5bdf2d=_0x2fdca7['commands']['get']('exportWord'),_0x51c924=new _0x117461(_0x2fdca7['locale']),_0x5e37c0=new _0x165424();return _0x51c924['children']['add'](_0x5e37c0),_0x5e37c0['bind']('isVisible')['to'](_0x5bdf2d,'isBusy'),_0x51c924['iconView']['bind']('isVisible')['to'](_0x5bdf2d,'isBusy',_0x5c2d24=>!_0x5c2d24),_0x51c924['set']({'icon':_0x3b0a06}),_0x51c924['bind']('isEnabled')['to'](_0x5bdf2d,'isEnabled'),_0x51c924['bind']('label')['to'](_0x5bdf2d,'isBusy',_0x32c5aa=>t(_0x32c5aa?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x51c924,'execute',()=>{_0x2fdca7['execute']('exportWord',_0x5cc687),_0x2fdca7['editing']['view']['focus']();}),_0x51c924;}}
23
+ import{Plugin as _0x58356e}from'ckeditor5/src/core.js';import{ButtonView as _0x4256f7,MenuBarMenuListItemButtonView as _0x554ab6,SpinnerView as _0x51dee7}from'ckeditor5/src/ui.js';import _0x85defc from'../theme/icons/exportword.svg';export default class i extends _0x58356e{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0xcc038c=this['editor'];_0xcc038c['ui']['componentFactory']['add']('exportWord',()=>{const _0x2610ce=_0xcc038c['commands']['get']('exportWord'),_0x1ac16e=this['_createButton'](_0x4256f7);return _0x1ac16e['set']({'tooltip':!0x0}),_0x1ac16e['bind']('isOn')['to'](_0x2610ce,'isBusy'),_0x1ac16e;}),_0xcc038c['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x554ab6));}['_createButton'](_0x31cdc6){const _0x97c8fb=this['editor'],_0x343775=_0x97c8fb['config']['get']('exportWord')||{},t=_0x97c8fb['locale']['t'],_0x66d46d=_0x97c8fb['commands']['get']('exportWord'),_0x166c92=new _0x31cdc6(_0x97c8fb['locale']),_0x1934d3=new _0x51dee7();return _0x166c92['children']['add'](_0x1934d3),_0x1934d3['bind']('isVisible')['to'](_0x66d46d,'isBusy'),_0x166c92['iconView']['bind']('isVisible')['to'](_0x66d46d,'isBusy',_0x21daaa=>!_0x21daaa),_0x166c92['set']({'icon':_0x85defc}),_0x166c92['bind']('isEnabled')['to'](_0x66d46d,'isEnabled'),_0x166c92['bind']('label')['to'](_0x66d46d,'isBusy',_0x18ddfa=>t(_0x18ddfa?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x166c92,'execute',()=>{_0x97c8fb['execute']('exportWord',_0x343775),_0x97c8fb['editing']['view']['focus']();}),_0x166c92;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1b4dd0,_0x52f88e){var _0x245dbb=_0x3932,_0x4a7dac=_0x1b4dd0();while(!![]){try{var _0x4519ef=parseInt(_0x245dbb(0xa8))/0x1+-parseInt(_0x245dbb(0xa9))/0x2+parseInt(_0x245dbb(0xad))/0x3+parseInt(_0x245dbb(0xab))/0x4+-parseInt(_0x245dbb(0xac))/0x5+parseInt(_0x245dbb(0xaa))/0x6+-parseInt(_0x245dbb(0xa7))/0x7;if(_0x4519ef===_0x52f88e)break;else _0x4a7dac['push'](_0x4a7dac['shift']());}catch(_0x520a8c){_0x4a7dac['push'](_0x4a7dac['shift']());}}}(_0x1f49,0x95618));export{default as ExportWord}from'./exportword.js';function _0x3932(_0x42057c,_0x4c07a0){var _0x1f499d=_0x1f49();return _0x3932=function(_0x393202,_0x4e542a){_0x393202=_0x393202-0xa7;var _0x11488f=_0x1f499d[_0x393202];return _0x11488f;},_0x3932(_0x42057c,_0x4c07a0);}import'./augmentation.js';function _0x1f49(){var _0x5d1969=['3252350acdSuH','3115611LhpUvj','12459146akbznx','1020049SQbtHn','985368YQuXxh','2114166uxyiOo','4495796AiSeil'];_0x1f49=function(){return _0x5d1969;};return _0x1f49();}
23
+ (function(_0x42d576,_0x4be04b){var _0xb79450=_0x118c,_0x1d817c=_0x42d576();while(!![]){try{var _0x14e657=-parseInt(_0xb79450(0xa7))/0x1*(-parseInt(_0xb79450(0x9f))/0x2)+parseInt(_0xb79450(0xa2))/0x3+parseInt(_0xb79450(0xa1))/0x4+parseInt(_0xb79450(0xa3))/0x5+-parseInt(_0xb79450(0xa6))/0x6+-parseInt(_0xb79450(0xa0))/0x7*(-parseInt(_0xb79450(0xa4))/0x8)+parseInt(_0xb79450(0xa5))/0x9*(-parseInt(_0xb79450(0xa8))/0xa);if(_0x14e657===_0x4be04b)break;else _0x1d817c['push'](_0x1d817c['shift']());}catch(_0x168e7c){_0x1d817c['push'](_0x1d817c['shift']());}}}(_0x2e15,0x21870));export{default as ExportWord}from'./exportword.js';function _0x118c(_0xfc9b23,_0x255ee8){var _0x2e1541=_0x2e15();return _0x118c=function(_0x118c15,_0x5487bf){_0x118c15=_0x118c15-0x9f;var _0x293a97=_0x2e1541[_0x118c15];return _0x293a97;},_0x118c(_0xfc9b23,_0x255ee8);}function _0x2e15(){var _0x42c1fb=['2hCZtNv','49wYnzuU','636664ELKaRg','259605Bcgufc','118150BUCuhU','64088tUWVZS','67941ycgrrJ','458190OzyKbk','54363aqNiKf','220mdMHec'];_0x2e15=function(){return _0x42c1fb;};return _0x2e15();}import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x453773,_0x1c105f){const _0x1a96b6=_0x612b,_0xb2065a=_0x453773();while(!![]){try{const _0x3d5aaf=parseInt(_0x1a96b6(0x128))/0x1*(-parseInt(_0x1a96b6(0x14a))/0x2)+-parseInt(_0x1a96b6(0x139))/0x3*(parseInt(_0x1a96b6(0x145))/0x4)+parseInt(_0x1a96b6(0x133))/0x5+parseInt(_0x1a96b6(0x12a))/0x6+parseInt(_0x1a96b6(0x147))/0x7+-parseInt(_0x1a96b6(0x152))/0x8*(-parseInt(_0x1a96b6(0x122))/0x9)+-parseInt(_0x1a96b6(0x126))/0xa*(-parseInt(_0x1a96b6(0x120))/0xb);if(_0x3d5aaf===_0x1c105f)break;else _0xb2065a['push'](_0xb2065a['shift']());}catch(_0x224ffb){_0xb2065a['push'](_0xb2065a['shift']());}}}(_0x41fb,0x99971));function _0x612b(_0x426f31,_0x3fa788){const _0x41fb22=_0x41fb();return _0x612b=function(_0x612b50,_0x1c045a){_0x612b50=_0x612b50-0x120;let _0x2b467f=_0x41fb22[_0x612b50];return _0x2b467f;},_0x612b(_0x426f31,_0x3fa788);}export function getStyles(_0x573bc5){const _0x4b3ae6=_0x612b;if(!_0x573bc5)return new Promise(_0x1b44b6=>_0x1b44b6(''));const _0x1a5a63=[];for(const _0x2cee01 of _0x573bc5)_0x4b3ae6(0x12f)!==_0x2cee01?_0x1a5a63[_0x4b3ae6(0x12b)](window[_0x4b3ae6(0x132)](_0x2cee01)[_0x4b3ae6(0x13e)](_0x6c9753=>_0x6c9753[_0x4b3ae6(0x141)]())):_0x1a5a63[_0x4b3ae6(0x12b)](f());return Promise[_0x4b3ae6(0x12d)](_0x1a5a63)[_0x4b3ae6(0x13e)](_0x3aaba1=>_0x3aaba1[_0x4b3ae6(0x14e)]('\x20')[_0x4b3ae6(0x144)]());}function f(){const _0x2daba6=_0x612b,_0xb53ca2=[],_0x118cd9=[];for(const _0x5a458b of Array[_0x2daba6(0x12e)](document[_0x2daba6(0x135)])){if(_0x5a458b[_0x2daba6(0x13d)][_0x2daba6(0x137)](_0x2daba6(0x14c))){for(const _0x242280 of Array[_0x2daba6(0x12e)](_0x5a458b[_0x2daba6(0x134)]))-0x1!==_0x242280[_0x2daba6(0x138)][_0x2daba6(0x125)](_0x2daba6(0x13a))?_0xb53ca2[_0x2daba6(0x12b)](_0x242280[_0x2daba6(0x138)]):-0x1!==_0x242280[_0x2daba6(0x138)][_0x2daba6(0x125)](_0x2daba6(0x13c))&&_0x118cd9[_0x2daba6(0x12b)](_0x242280[_0x2daba6(0x138)]);}}return _0xb53ca2[_0x2daba6(0x154)]||console[_0x2daba6(0x150)](_0x2daba6(0x142)),[..._0x118cd9,..._0xb53ca2][_0x2daba6(0x14e)]('\x20')[_0x2daba6(0x144)]();}export function getConverterOptions(_0x4731c1){const _0xa86914=_0x612b,_0x2418b4=_0x4731c1[_0xa86914(0x151)][_0xa86914(0x140)](_0xa86914(0x131)),_0x4d3330=_0x4731c1[_0xa86914(0x151)][_0xa86914(0x140)](_0xa86914(0x129)),_0x2ab1e5=_0x4731c1[_0xa86914(0x151)][_0xa86914(0x140)](_0xa86914(0x14b)),_0x33e58d={};if(_0x2418b4&&_0x4d3330){const _0x3f312c=getComments(_0x4731c1[_0xa86914(0x151)][_0xa86914(0x124)](_0xa86914(0x129))[_0xa86914(0x14f)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0xa86914(0x146)](_0x3f312c)[_0xa86914(0x154)]&&(_0x33e58d[_0xa86914(0x148)]=_0x3f312c);}if(_0x2418b4&&_0x2ab1e5){const _0x2aebd6=_0x4731c1[_0xa86914(0x151)][_0xa86914(0x124)](_0xa86914(0x14b)),_0x13b3b5=_0x4731c1[_0xa86914(0x151)][_0xa86914(0x124)](_0xa86914(0x131)),_0x50668e=getSuggestions(_0x2aebd6[_0xa86914(0x13f)]({'toJSON':!0x0}),_0x13b3b5[_0xa86914(0x130)]);Object[_0xa86914(0x146)](_0x50668e)[_0xa86914(0x154)]&&(_0x33e58d[_0xa86914(0x12c)]=_0x50668e);}return(_0x33e58d[_0xa86914(0x12c)]||_0x33e58d[_0xa86914(0x148)])&&(_0x33e58d[_0xa86914(0x156)]=new Intl[(_0xa86914(0x136))]()[_0xa86914(0x123)]()[_0xa86914(0x155)]),_0x33e58d;}export function getComments(_0x459e81){const _0x44ccfd=_0x612b,_0x341be6={};if(!_0x459e81[_0x44ccfd(0x154)])return _0x341be6;for(const _0x1fb908 of _0x459e81)_0x1fb908[_0x44ccfd(0x148)][_0x44ccfd(0x14d)](_0x3aaf8f=>{const _0x4b66c8=_0x44ccfd;void 0x0===_0x341be6[_0x1fb908['id']]&&(_0x341be6[_0x1fb908['id']]=[]),_0x341be6[_0x1fb908['id']][_0x4b66c8(0x12b)]({'author':_0x3aaf8f[_0x4b66c8(0x149)][_0x4b66c8(0x127)],'content':_0x3aaf8f[_0x4b66c8(0x143)],'created':_0x3aaf8f[_0x4b66c8(0x121)],'is_resolved':_0x1fb908[_0x4b66c8(0x13b)]});});return _0x341be6;}function _0x41fb(){const _0x4f3cd1=['33WgcddV','.ck-content','isResolved',':root','ownerNode','then','getSuggestions','has','text','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','content','trim','182668QbGfMz','keys','1394827UUhikk','comments','author','34bcGfwy','TrackChanges','data-cke','map','join','getCommentThreads','warn','plugins','32vmsjaJ','authorId','length','timeZone','timezone','1356575rdvvja','createdAt','471798YkyMRc','resolvedOptions','get','indexOf','30qCeZso','name','44343sKHEEw','CommentsRepository','3114486pbMCHN','push','suggestions','all','from','EDITOR_STYLES','users','Users','fetch','2936340zaBTJz','cssRules','styleSheets','DateTimeFormat','hasAttribute','cssText'];_0x41fb=function(){return _0x4f3cd1;};return _0x41fb();}export function getSuggestions(_0x2e9ef6,_0x63fbe3){const _0xf1cd9a=_0x612b,_0x50ddb7={};if(!_0x2e9ef6[_0xf1cd9a(0x154)]||!_0x63fbe3[_0xf1cd9a(0x154)])return _0x50ddb7;for(const _0x1ae4da of _0x2e9ef6)_0x50ddb7[_0x1ae4da['id']]={'author':_0x63fbe3[_0xf1cd9a(0x124)](_0x1ae4da[_0xf1cd9a(0x153)])[_0xf1cd9a(0x127)],'created':_0x1ae4da[_0xf1cd9a(0x121)]};return _0x50ddb7;}
23
+ (function(_0x1ea0e5,_0x25722e){const _0x3972fb=_0x35e2,_0x2f61ed=_0x1ea0e5();while(!![]){try{const _0x53a8c0=-parseInt(_0x3972fb(0xd7))/0x1+-parseInt(_0x3972fb(0xdf))/0x2+-parseInt(_0x3972fb(0xba))/0x3+parseInt(_0x3972fb(0xe9))/0x4+parseInt(_0x3972fb(0xe8))/0x5+-parseInt(_0x3972fb(0xda))/0x6+-parseInt(_0x3972fb(0xc9))/0x7*(-parseInt(_0x3972fb(0xc4))/0x8);if(_0x53a8c0===_0x25722e)break;else _0x2f61ed['push'](_0x2f61ed['shift']());}catch(_0x48f443){_0x2f61ed['push'](_0x2f61ed['shift']());}}}(_0x5417,0xd1398));export function getStyles(_0x18c94f){const _0x4d1f18=_0x35e2;if(!_0x18c94f)return new Promise(_0x918613=>_0x918613(''));const _0x208a04=[];for(const _0x1456a0 of _0x18c94f)_0x4d1f18(0xb8)!==_0x1456a0?_0x208a04[_0x4d1f18(0xcd)](window[_0x4d1f18(0xe1)](_0x1456a0)[_0x4d1f18(0xbc)](_0x2ea467=>_0x2ea467[_0x4d1f18(0xe6)]())):_0x208a04[_0x4d1f18(0xcd)](f());return Promise[_0x4d1f18(0xc1)](_0x208a04)[_0x4d1f18(0xbc)](_0x39e117=>_0x39e117[_0x4d1f18(0xdc)]('\x20')[_0x4d1f18(0xeb)]());}function _0x35e2(_0x418d6d,_0x32b865){const _0x54171a=_0x5417();return _0x35e2=function(_0x35e231,_0x4610fc){_0x35e231=_0x35e231-0xb8;let _0x48231e=_0x54171a[_0x35e231];return _0x48231e;},_0x35e2(_0x418d6d,_0x32b865);}function f(){const _0x153d13=_0x35e2,_0x41caf1=[],_0x3afc41=[];for(const _0x15c144 of Array[_0x153d13(0xbe)](document[_0x153d13(0xdb)])){if(_0x15c144[_0x153d13(0xe3)][_0x153d13(0xd1)](_0x153d13(0xc0))){for(const _0x1f0bca of Array[_0x153d13(0xbe)](_0x15c144[_0x153d13(0xd2)]))-0x1!==_0x1f0bca[_0x153d13(0xc6)][_0x153d13(0xe7)](_0x153d13(0xcb))?_0x41caf1[_0x153d13(0xcd)](_0x1f0bca[_0x153d13(0xc6)]):-0x1!==_0x1f0bca[_0x153d13(0xc6)][_0x153d13(0xe7)](_0x153d13(0xbb))&&_0x3afc41[_0x153d13(0xcd)](_0x1f0bca[_0x153d13(0xc6)]);}}return _0x41caf1[_0x153d13(0xc2)]||console[_0x153d13(0xcf)](_0x153d13(0xe2)),[..._0x3afc41,..._0x41caf1][_0x153d13(0xdc)]('\x20')[_0x153d13(0xeb)]();}export function getConverterOptions(_0x44ac69){const _0x1a0e66=_0x35e2,_0x3e802e=_0x44ac69[_0x1a0e66(0xd8)][_0x1a0e66(0xd3)](_0x1a0e66(0xe5)),_0x2246a7=_0x44ac69[_0x1a0e66(0xd8)][_0x1a0e66(0xd3)](_0x1a0e66(0xc3)),_0x115864=_0x44ac69[_0x1a0e66(0xd8)][_0x1a0e66(0xd3)](_0x1a0e66(0xbd)),_0x57e737={};if(_0x3e802e&&_0x2246a7){const _0x254528=getComments(_0x44ac69[_0x1a0e66(0xd8)][_0x1a0e66(0xbf)](_0x1a0e66(0xc3))[_0x1a0e66(0xca)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x1a0e66(0xd6)](_0x254528)[_0x1a0e66(0xc2)]&&(_0x57e737[_0x1a0e66(0xea)]=_0x254528);}if(_0x3e802e&&_0x115864){const _0x55ea7f=_0x44ac69[_0x1a0e66(0xd8)][_0x1a0e66(0xbf)](_0x1a0e66(0xbd)),_0x14094f=_0x44ac69[_0x1a0e66(0xd8)][_0x1a0e66(0xbf)](_0x1a0e66(0xe5)),_0x32d5be=getSuggestions(_0x55ea7f[_0x1a0e66(0xd4)]({'toJSON':!0x0}),_0x14094f[_0x1a0e66(0xe4)]);Object[_0x1a0e66(0xd6)](_0x32d5be)[_0x1a0e66(0xc2)]&&(_0x57e737[_0x1a0e66(0xc8)]=_0x32d5be);}return(_0x57e737[_0x1a0e66(0xc8)]||_0x57e737[_0x1a0e66(0xea)])&&(_0x57e737[_0x1a0e66(0xc7)]=new Intl[(_0x1a0e66(0xde))]()[_0x1a0e66(0xc5)]()[_0x1a0e66(0xd0)]),_0x57e737;}export function getComments(_0x212f21){const _0xa5cc9=_0x35e2,_0x2a0098={};if(!_0x212f21[_0xa5cc9(0xc2)])return _0x2a0098;for(const _0x1472ef of _0x212f21)_0x1472ef[_0xa5cc9(0xea)][_0xa5cc9(0xd9)](_0x61d0c0=>{const _0x434c6a=_0xa5cc9;void 0x0===_0x2a0098[_0x1472ef['id']]&&(_0x2a0098[_0x1472ef['id']]=[]),_0x2a0098[_0x1472ef['id']][_0x434c6a(0xcd)]({'author':_0x61d0c0[_0x434c6a(0xd5)][_0x434c6a(0xcc)],'content':_0x61d0c0[_0x434c6a(0xce)],'created':_0x61d0c0[_0x434c6a(0xe0)],'is_resolved':_0x1472ef[_0x434c6a(0xdd)]});});return _0x2a0098;}export function getSuggestions(_0xe20ca4,_0x21b24c){const _0x897809=_0x35e2,_0x32b720={};if(!_0xe20ca4[_0x897809(0xc2)]||!_0x21b24c[_0x897809(0xc2)])return _0x32b720;for(const _0x1361e6 of _0xe20ca4)_0x32b720[_0x1361e6['id']]={'author':_0x21b24c[_0x897809(0xbf)](_0x1361e6[_0x897809(0xb9)])[_0x897809(0xcc)],'created':_0x1361e6[_0x897809(0xe0)]};return _0x32b720;}function _0x5417(){const _0x4899d1=['The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','ownerNode','users','Users','text','indexOf','3310005gPhJjp','3998992xLYbgl','comments','trim','EDITOR_STYLES','authorId','50463cFhwax',':root','then','TrackChanges','from','get','data-cke','all','length','CommentsRepository','83432NcucSB','resolvedOptions','cssText','timezone','suggestions','1477iqajzk','getCommentThreads','.ck-content','name','push','content','warn','timeZone','hasAttribute','cssRules','has','getSuggestions','author','keys','677211NpoUGL','plugins','map','9281076hVtDtS','styleSheets','join','isResolved','DateTimeFormat','1528812EnGhuV','createdAt','fetch'];_0x5417=function(){return _0x4899d1;};return _0x5417();}