@ckeditor/ckeditor5-export-word 41.4.1 → 41.4.2

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':_0x1ab066=>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':_0x23bc7e=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']||={});
23
+ (_0x3bd978=>{const {zh:{dictionary:_0x3802ba,getPluralForm:_0x1d0a24}}={'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':_0x2277f2=>0x0}};_0x3bd978['zh']||={'dictionary':{},'getPluralForm':null},_0x3bd978['zh']['dictionary']=Object['assign'](_0x3bd978['zh']['dictionary'],_0x3802ba),_0x3bd978['zh']['getPluralForm']=_0x1d0a24;})(window['CKEDITOR_TRANSLATIONS']||={});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "41.4.1",
3
+ "version": "41.4.2",
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.1"
33
+ "ckeditor5": "41.4.2"
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 _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)];}}
23
+ const _0x47151d=_0x4c4f;(function(_0x177377,_0x568515){const _0xd88426=_0x4c4f,_0x4e5b99=_0x177377();while(!![]){try{const _0x40a564=-parseInt(_0xd88426(0x159))/0x1*(-parseInt(_0xd88426(0x15a))/0x2)+parseInt(_0xd88426(0x164))/0x3*(-parseInt(_0xd88426(0x155))/0x4)+parseInt(_0xd88426(0x150))/0x5*(parseInt(_0xd88426(0x160))/0x6)+parseInt(_0xd88426(0x15d))/0x7+parseInt(_0xd88426(0x14c))/0x8+-parseInt(_0xd88426(0x153))/0x9+-parseInt(_0xd88426(0x15f))/0xa*(parseInt(_0xd88426(0x166))/0xb);if(_0x40a564===_0x568515)break;else _0x4e5b99['push'](_0x4e5b99['shift']());}catch(_0x4a3179){_0x4e5b99['push'](_0x4e5b99['shift']());}}}(_0x81dc,0x9ee53));function _0x4c4f(_0x256d11,_0x50e5c8){const _0x81dcec=_0x81dc();return _0x4c4f=function(_0x4c4f48,_0x54ef74){_0x4c4f48=_0x4c4f48-0x14b;let _0x3a3bd0=_0x81dcec[_0x4c4f48];return _0x3a3bd0;},_0x4c4f(_0x256d11,_0x50e5c8);}import{Plugin as _0x5c8423}from'ckeditor5/src/core.js';import{Notification as _0x29c33a}from'ckeditor5/src/ui.js';import _0x4ff803 from'./exportwordcommand.js';import _0x325ed1 from'./exportwordui.js';export default class s extends _0x5c8423{static get[_0x47151d(0x154)](){const _0x9b3587=_0x47151d;return _0x9b3587(0x15c);}static get[_0x47151d(0x165)](){const _0x10aa82=_0x47151d;return[_0x10aa82(0x14d),_0x29c33a,_0x325ed1];}[_0x47151d(0x151)](){const _0x4c92b7=_0x47151d,_0x25cc45=this[_0x4c92b7(0x14b)],_0x54e536=_0x25cc45[_0x4c92b7(0x162)][_0x4c92b7(0x161)](_0x4c92b7(0x14e))||{};_0x25cc45[_0x4c92b7(0x14f)][_0x4c92b7(0x158)](_0x4c92b7(0x14e),new _0x4ff803(_0x25cc45));const _0x14d09f=_0x25cc45[_0x4c92b7(0x15b)][_0x4c92b7(0x161)](_0x4c92b7(0x14d));!0x1===_0x54e536[_0x4c92b7(0x163)]?this[_0x4c92b7(0x157)]=null:_0x54e536[_0x4c92b7(0x163)]?_0x14d09f[_0x4c92b7(0x15e)](_0x54e536[_0x4c92b7(0x163)])[_0x4c92b7(0x156)](_0x4800f7=>{const _0x2827db=_0x4c92b7;this[_0x2827db(0x157)]=_0x4800f7;}):this[_0x4c92b7(0x157)]=_0x14d09f[_0x4c92b7(0x152)];}}function _0x81dc(){const _0x4e021f=['8226iVYBSd','get','config','tokenUrl','480gRdTfP','requires','55jzrYjz','editor','9216976wVYodS','CloudServices','exportWord','commands','2325ausgog','init','token','989595kEohhS','pluginName','20576wQfWQC','then','_token','add','3gbskEM','713662YYeFBy','plugins','ExportWord','4209485YHWTZw','registerTokenUrl','3755310YtaFqI'];_0x81dc=function(){return _0x4e021f;};return _0x81dc();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']();}}
23
+ import{Command as _0x247c37}from'ckeditor5/src/core.js';import{getStyles as _0x4d5505,getConverterOptions as _0x281583}from'./utils.js';export default class e extends _0x247c37{constructor(_0x1d66b9){super(_0x1d66b9),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x321a9f={}){const _0x59aa62=this['editor'],t=_0x59aa62['t'],_0x500c4a=_0x321a9f['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x1dd633=_0x321a9f['converterOptions']||{},_0x871593=_0x59aa62['plugins']['get']('ExportWord'),_0xccb8e0=_0x321a9f['token']||_0x871593['_token'],_0x39c8ad=!0x1!==_0x1dd633['auto_pagination'],_0x436638=_0x321a9f['dataCallback']||(_0x5906ef=>_0x5906ef['data']['get']({'pagination':_0x39c8ad}));return this['isBusy']=!0x0,this['refresh'](),_0x4d5505(_0x321a9f['stylesheets']||['EDITOR_STYLES'])['then'](async _0x5ac532=>{_0x59aa62['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x331621=await _0x436638(_0x59aa62),_0x339bb0={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x59aa62['locale']['contentLanguageDirection']+'\x22>'+_0x331621+'</div>','css':_0x5ac532,'options':{..._0x1dd633,..._0x281583(_0x59aa62)}},_0x1ab8ad={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0xccb8e0?{'Authorization':_0xccb8e0['value']}:null},'body':JSON['stringify'](_0x339bb0)};return window['fetch'](_0x500c4a,_0x1ab8ad)['then'](_0x10129d=>{if(0xc8!==_0x10129d['status'])throw _0x10129d;return _0x10129d['blob']();})['then'](_0x11901a=>{_0x59aa62['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x1d44c6='function'==typeof _0x321a9f['fileName']?_0x321a9f['fileName']():_0x321a9f['fileName'];this['_downloadFile'](_0x11901a,_0x1d44c6||'document.docx');});})['catch'](_0x5b0b81=>{const _0x1b8348=_0x59aa62['plugins']['get']('Notification');throw _0x59aa62['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x1b8348['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x5b0b81;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x3d0605,_0x3c42fa){const _0x4cf2fb=document['createElement']('a');_0x4cf2fb['href']=window['URL']['createObjectURL'](_0x3d0605),_0x4cf2fb['download']=_0x3c42fa,_0x4cf2fb['click'](),_0x4cf2fb['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ import{Plugin as _0xf3cbec}from'ckeditor5/src/core.js';import{ButtonView as _0x34d33d,MenuBarMenuListItemButtonView as _0x542797,SpinnerView as _0x5427da}from'ckeditor5/src/ui.js';import _0x5646a3 from'../theme/icons/exportword.svg';export default class i extends _0xf3cbec{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x2ce3ea=this['editor'];_0x2ce3ea['ui']['componentFactory']['add']('exportWord',()=>{const _0x3456e8=_0x2ce3ea['commands']['get']('exportWord'),_0x299dde=this['_createButton'](_0x34d33d);return _0x299dde['set']({'tooltip':!0x0}),_0x299dde['bind']('isOn')['to'](_0x3456e8,'isBusy'),_0x299dde;}),_0x2ce3ea['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x542797));}['_createButton'](_0x2327da){const _0x1bcf2d=this['editor'],_0x106fd8=_0x1bcf2d['config']['get']('exportWord')||{},t=_0x1bcf2d['locale']['t'],_0x4df08f=_0x1bcf2d['commands']['get']('exportWord'),_0x58d70e=new _0x2327da(_0x1bcf2d['locale']),_0x58c1f7=new _0x5427da();return _0x58d70e['children']['add'](_0x58c1f7),_0x58c1f7['bind']('isVisible')['to'](_0x4df08f,'isBusy'),_0x58d70e['iconView']['bind']('isVisible')['to'](_0x4df08f,'isBusy',_0x231cdc=>!_0x231cdc),_0x58d70e['set']({'icon':_0x5646a3}),_0x58d70e['bind']('isEnabled')['to'](_0x4df08f,'isEnabled'),_0x58d70e['bind']('label')['to'](_0x4df08f,'isBusy',_0x4cab87=>t(_0x4cab87?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x58d70e,'execute',()=>{_0x1bcf2d['execute']('exportWord',_0x106fd8),_0x1bcf2d['editing']['view']['focus']();}),_0x58d70e;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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';
23
+ function _0x301b(){var _0x1880af=['136xExBcl','5915819hIbJbg','3496200uGLYUX','8yXBHSD','50pateSm','894OKpyGj','8634wXWCrs','148210hcjHil','944IkDWdg','1224081FYORuF','9568768VoDzvh','210oMGIvN'];_0x301b=function(){return _0x1880af;};return _0x301b();}(function(_0x31e606,_0xfd9a82){var _0x5112b3=_0x439c,_0x44ef7e=_0x31e606();while(!![]){try{var _0x461fd8=-parseInt(_0x5112b3(0x149))/0x1*(parseInt(_0x5112b3(0x146))/0x2)+parseInt(_0x5112b3(0x147))/0x3*(-parseInt(_0x5112b3(0x14d))/0x4)+-parseInt(_0x5112b3(0x148))/0x5*(parseInt(_0x5112b3(0x14c))/0x6)+parseInt(_0x5112b3(0x14e))/0x7*(parseInt(_0x5112b3(0x144))/0x8)+parseInt(_0x5112b3(0x14a))/0x9*(parseInt(_0x5112b3(0x145))/0xa)+parseInt(_0x5112b3(0x14b))/0xb+-parseInt(_0x5112b3(0x14f))/0xc;if(_0x461fd8===_0xfd9a82)break;else _0x44ef7e['push'](_0x44ef7e['shift']());}catch(_0x3dd79d){_0x44ef7e['push'](_0x44ef7e['shift']());}}}(_0x301b,0x8566a));export{default as ExportWord}from'./exportword.js';function _0x439c(_0x5a8dac,_0x2f834e){var _0x301b3b=_0x301b();return _0x439c=function(_0x439c9c,_0x7a10ce){_0x439c9c=_0x439c9c-0x144;var _0x7468b9=_0x301b3b[_0x439c9c];return _0x7468b9;},_0x439c(_0x5a8dac,_0x2f834e);}import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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();}
23
+ (function(_0x1e0398,_0x3166c2){const _0x4873f2=_0x54f2,_0x2be0ee=_0x1e0398();while(!![]){try{const _0x49be67=-parseInt(_0x4873f2(0x1f3))/0x1*(parseInt(_0x4873f2(0x204))/0x2)+parseInt(_0x4873f2(0x20e))/0x3*(parseInt(_0x4873f2(0x215))/0x4)+parseInt(_0x4873f2(0x20f))/0x5+-parseInt(_0x4873f2(0x20c))/0x6+-parseInt(_0x4873f2(0x226))/0x7+-parseInt(_0x4873f2(0x213))/0x8*(-parseInt(_0x4873f2(0x1fa))/0x9)+-parseInt(_0x4873f2(0x221))/0xa;if(_0x49be67===_0x3166c2)break;else _0x2be0ee['push'](_0x2be0ee['shift']());}catch(_0x55cda5){_0x2be0ee['push'](_0x2be0ee['shift']());}}}(_0x1b23,0x2734e));function _0x1b23(){const _0x5d5dc9=['9SmWqpb','plugins','authorId','name','getCommentThreads','keys','users','ownerNode','timezone','text','2VRgWwl','content','resolvedOptions','TrackChanges','length','author','CommentsRepository','hasAttribute','240780OEkWcp','Users','21dKQLNm','534230HZCPMh','DateTimeFormat','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.','EDITOR_STYLES','1914728pLuyWP','join','57284CVdctK','then','data-cke','timeZone','map','get','suggestions','.ck-content','getSuggestions','indexOf','from','comments','1010890AWoRam','styleSheets','trim','push','all','219254mQxkem','has','isResolved','113303mRvlcF',':root','cssText','cssRules','fetch','createdAt','warn'];_0x1b23=function(){return _0x5d5dc9;};return _0x1b23();}export function getStyles(_0x559371){const _0x500883=_0x54f2;if(!_0x559371)return new Promise(_0x135ee1=>_0x135ee1(''));const _0x33f0a8=[];for(const _0x3ecbe0 of _0x559371)_0x500883(0x212)!==_0x3ecbe0?_0x33f0a8[_0x500883(0x224)](window[_0x500883(0x1f7)](_0x3ecbe0)[_0x500883(0x216)](_0xec7514=>_0xec7514[_0x500883(0x203)]())):_0x33f0a8[_0x500883(0x224)](f());return Promise[_0x500883(0x225)](_0x33f0a8)[_0x500883(0x216)](_0x5e4db7=>_0x5e4db7[_0x500883(0x214)]('\x20')[_0x500883(0x223)]());}function f(){const _0x5655d8=_0x54f2,_0x1d9bf5=[],_0x26bbce=[];for(const _0x2da30b of Array[_0x5655d8(0x21f)](document[_0x5655d8(0x222)])){if(_0x2da30b[_0x5655d8(0x201)][_0x5655d8(0x20b)](_0x5655d8(0x217))){for(const _0x5f3825 of Array[_0x5655d8(0x21f)](_0x2da30b[_0x5655d8(0x1f6)]))-0x1!==_0x5f3825[_0x5655d8(0x1f5)][_0x5655d8(0x21e)](_0x5655d8(0x21c))?_0x1d9bf5[_0x5655d8(0x224)](_0x5f3825[_0x5655d8(0x1f5)]):-0x1!==_0x5f3825[_0x5655d8(0x1f5)][_0x5655d8(0x21e)](_0x5655d8(0x1f4))&&_0x26bbce[_0x5655d8(0x224)](_0x5f3825[_0x5655d8(0x1f5)]);}}return _0x1d9bf5[_0x5655d8(0x208)]||console[_0x5655d8(0x1f9)](_0x5655d8(0x211)),[..._0x26bbce,..._0x1d9bf5][_0x5655d8(0x214)]('\x20')[_0x5655d8(0x223)]();}export function getConverterOptions(_0x115eb2){const _0x769f0d=_0x54f2,_0x150511=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x227)](_0x769f0d(0x20d)),_0x5bd228=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x227)](_0x769f0d(0x20a)),_0x2a8912=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x227)](_0x769f0d(0x207)),_0x14d2a6={};if(_0x150511&&_0x5bd228){const _0x3eb7ef=getComments(_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x21a)](_0x769f0d(0x20a))[_0x769f0d(0x1fe)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x769f0d(0x1ff)](_0x3eb7ef)[_0x769f0d(0x208)]&&(_0x14d2a6[_0x769f0d(0x220)]=_0x3eb7ef);}if(_0x150511&&_0x2a8912){const _0x5b0e30=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x21a)](_0x769f0d(0x207)),_0x376f1d=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x21a)](_0x769f0d(0x20d)),_0x2dd138=getSuggestions(_0x5b0e30[_0x769f0d(0x21d)]({'toJSON':!0x0}),_0x376f1d[_0x769f0d(0x200)]);Object[_0x769f0d(0x1ff)](_0x2dd138)[_0x769f0d(0x208)]&&(_0x14d2a6[_0x769f0d(0x21b)]=_0x2dd138);}return(_0x14d2a6[_0x769f0d(0x21b)]||_0x14d2a6[_0x769f0d(0x220)])&&(_0x14d2a6[_0x769f0d(0x202)]=new Intl[(_0x769f0d(0x210))]()[_0x769f0d(0x206)]()[_0x769f0d(0x218)]),_0x14d2a6;}export function getComments(_0x4a504f){const _0x2dc600=_0x54f2,_0x425e02={};if(!_0x4a504f[_0x2dc600(0x208)])return _0x425e02;for(const _0x261dbc of _0x4a504f)_0x261dbc[_0x2dc600(0x220)][_0x2dc600(0x219)](_0x184470=>{const _0xbe7dc5=_0x2dc600;void 0x0===_0x425e02[_0x261dbc['id']]&&(_0x425e02[_0x261dbc['id']]=[]),_0x425e02[_0x261dbc['id']][_0xbe7dc5(0x224)]({'author':_0x184470[_0xbe7dc5(0x209)][_0xbe7dc5(0x1fd)],'content':_0x184470[_0xbe7dc5(0x205)],'created':_0x184470[_0xbe7dc5(0x1f8)],'is_resolved':_0x261dbc[_0xbe7dc5(0x228)]});});return _0x425e02;}function _0x54f2(_0xbed791,_0x575b82){const _0x1b23c5=_0x1b23();return _0x54f2=function(_0x54f26d,_0x48c9a4){_0x54f26d=_0x54f26d-0x1f3;let _0x1ad673=_0x1b23c5[_0x54f26d];return _0x1ad673;},_0x54f2(_0xbed791,_0x575b82);}export function getSuggestions(_0x5acf47,_0xd7cb1f){const _0x5498d7=_0x54f2,_0x519387={};if(!_0x5acf47[_0x5498d7(0x208)]||!_0xd7cb1f[_0x5498d7(0x208)])return _0x519387;for(const _0x5cdd31 of _0x5acf47)_0x519387[_0x5cdd31['id']]={'author':_0xd7cb1f[_0x5498d7(0x21a)](_0x5cdd31[_0x5498d7(0x1fc)])[_0x5498d7(0x1fd)],'created':_0x5cdd31[_0x5498d7(0x1f8)]};return _0x519387;}