@ckeditor/ckeditor5-export-pdf 42.0.0-alpha.14 → 42.0.0-alpha.16
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.
- package/build/export-pdf.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +2 -2
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58f8c3=>{const {zh:{dictionary:_0x378c30,getPluralForm:_0x5ba588}}={'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':_0x4ddc03=>0x0}};_0x58f8c3['zh']||={'dictionary':{},'getPluralForm':null},_0x58f8c3['zh']['dictionary']=Object['assign'](_0x58f8c3['zh']['dictionary'],_0x378c30),_0x58f8c3['zh']['getPluralForm']=_0x5ba588;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "42.0.0-alpha.
|
|
3
|
+
"version": "42.0.0-alpha.16",
|
|
4
4
|
"description": "Export to PDF 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": "42.0.0-alpha.
|
|
33
|
+
"ckeditor5": "42.0.0-alpha.16"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x258c(){const _0xcf1852=['commands','_token','plugins','pluginName','111tjXNcT','config','17310fYlcSB','728xlMFow','editor','ExportPdf','token','54402QccWRx','then','tokenUrl','105eDQkjq','get','CloudServices','259UqNHwz','281443oJLbln','exportPdf','requires','init','474536nJvJsR','58018fJosOK','108hINaoC','32132HXnntp','add','registerTokenUrl','3531WsfJbb','267924BIhbmk'];_0x258c=function(){return _0xcf1852;};return _0x258c();}function _0x4366(_0x574da3,_0x5dd61a){const _0x258ca4=_0x258c();return _0x4366=function(_0x43664a,_0xa69da6){_0x43664a=_0x43664a-0x138;let _0x3ddba0=_0x258ca4[_0x43664a];return _0x3ddba0;},_0x4366(_0x574da3,_0x5dd61a);}const _0x3338a6=_0x4366;(function(_0x31f7a2,_0x23efc8){const _0x368094=_0x4366,_0xf7774a=_0x31f7a2();while(!![]){try{const _0x572850=parseInt(_0x368094(0x13d))/0x1+parseInt(_0x368094(0x142))/0x2*(parseInt(_0x368094(0x14d))/0x3)+parseInt(_0x368094(0x144))/0x4*(parseInt(_0x368094(0x139))/0x5)+parseInt(_0x368094(0x154))/0x6*(parseInt(_0x368094(0x13c))/0x7)+-parseInt(_0x368094(0x141))/0x8*(-parseInt(_0x368094(0x143))/0x9)+-parseInt(_0x368094(0x14f))/0xa*(parseInt(_0x368094(0x147))/0xb)+-parseInt(_0x368094(0x148))/0xc*(parseInt(_0x368094(0x150))/0xd);if(_0x572850===_0x23efc8)break;else _0xf7774a['push'](_0xf7774a['shift']());}catch(_0x5a225c){_0xf7774a['push'](_0xf7774a['shift']());}}}(_0x258c,0xbab75));import{Plugin as _0x5d8c2c}from'ckeditor5/src/core.js';import{Notification as _0x1b31d6}from'ckeditor5/src/ui.js';import _0x2963cf from'./exportpdfcommand.js';import _0x49407b from'./exportpdfui.js';export default class s extends _0x5d8c2c{static get[_0x3338a6(0x14c)](){const _0x2a3107=_0x3338a6;return _0x2a3107(0x152);}static get[_0x3338a6(0x13f)](){const _0x3f0a82=_0x3338a6;return[_0x3f0a82(0x13b),_0x1b31d6,_0x49407b];}[_0x3338a6(0x140)](){const _0x17143b=_0x3338a6,_0x15aaeb=this[_0x17143b(0x151)],_0x1a5026=_0x15aaeb[_0x17143b(0x14e)][_0x17143b(0x13a)](_0x17143b(0x13e))||{};_0x15aaeb[_0x17143b(0x149)][_0x17143b(0x145)](_0x17143b(0x13e),new _0x2963cf(_0x15aaeb));const _0x3fa22c=_0x15aaeb[_0x17143b(0x14b)][_0x17143b(0x13a)](_0x17143b(0x13b));!0x1===_0x1a5026[_0x17143b(0x138)]?this[_0x17143b(0x14a)]=null:_0x1a5026[_0x17143b(0x138)]?_0x3fa22c[_0x17143b(0x146)](_0x1a5026[_0x17143b(0x138)])[_0x17143b(0x155)](_0x327a05=>{const _0x423474=_0x17143b;this[_0x423474(0x14a)]=_0x327a05;}):this[_0x17143b(0x14a)]=_0x3fa22c[_0x17143b(0x153)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x350d43}from'ckeditor5/src/core.js';import{getStyles as _0xeed796}from'./utils.js';export default class o extends _0x350d43{constructor(_0x48d0f0){super(_0x48d0f0),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x2da5da={}){const _0x36ed4f=this['editor'],t=_0x36ed4f['t'],_0x2c05be=_0x2da5da['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0xb28ebe=_0x2da5da['dataCallback']||(_0x16a2e5=>_0x16a2e5['data']['get']()),_0x2e893a=_0x36ed4f['plugins']['get']('ExportPdf'),_0x10a7a2=_0x2da5da['token']||_0x2e893a['_token'];return this['isBusy']=!0x0,this['refresh'](),_0xeed796(_0x2da5da['stylesheets']||['EDITOR_STYLES'])['then'](async _0x13aedd=>{_0x36ed4f['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x5345ae={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x36ed4f['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0xb28ebe(_0x36ed4f)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0x13aedd,'options':_0x2da5da['converterOptions']},_0x55f361={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x10a7a2?{'Authorization':_0x10a7a2['value']}:null,'x-cs-app-id':_0x2da5da['appID']||'cke5'},'body':JSON['stringify'](_0x5345ae)};return window['fetch'](_0x2c05be,_0x55f361)['then'](_0x2d272a=>{if(0xc8!==_0x2d272a['status'])throw _0x2d272a;return _0x2d272a['blob']();})['then'](_0x359510=>{_0x36ed4f['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x40ea59='function'==typeof _0x2da5da['fileName']?_0x2da5da['fileName']():_0x2da5da['fileName'];this['_downloadFile'](_0x359510,_0x40ea59||'document.pdf');});})['catch'](_0x3a1408=>{const _0x4e3322=_0x36ed4f['plugins']['get']('Notification');throw _0x36ed4f['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x4e3322['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x3a1408;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x44025c,_0x6d3013){const _0x50c8da=document['createElement']('a');_0x50c8da['href']=window['URL']['createObjectURL'](_0x44025c),_0x50c8da['download']=_0x6d3013,_0x50c8da['click'](),_0x50c8da['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4ff2e9}from'ckeditor5/src/core.js';import{ButtonView as _0x1898a2,MenuBarMenuListItemButtonView as _0xb72434,SpinnerView as _0x46679d}from'ckeditor5/src/ui.js';import _0xb903b0 from'../theme/icons/exportpdf.svg';export default class i extends _0x4ff2e9{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x199201=this['editor'];_0x199201['ui']['componentFactory']['add']('exportPdf',()=>{const _0x3f7664=this['_createButton'](_0x1898a2),_0xed929d=_0x199201['commands']['get']('exportPdf');return _0x3f7664['set']({'tooltip':!0x0}),_0x3f7664['bind']('isOn')['to'](_0xed929d,'isBusy'),_0x3f7664;}),_0x199201['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0xb72434));}['_createButton'](_0x31dc85){const _0xc9c1d9=this['editor'],_0x165711=_0xc9c1d9['config']['get']('exportPdf')||{},t=_0xc9c1d9['locale']['t'],_0x1a644f=_0xc9c1d9['commands']['get']('exportPdf'),_0x4bd981=new _0x31dc85(_0xc9c1d9['locale']),_0x3aa98c=new _0x46679d();return _0x4bd981['children']['add'](_0x3aa98c),_0x3aa98c['bind']('isVisible')['to'](_0x1a644f,'isBusy'),_0x4bd981['iconView']['bind']('isVisible')['to'](_0x1a644f,'isBusy',_0x65875b=>!_0x65875b),_0x4bd981['set']({'icon':_0xb903b0}),_0x4bd981['bind']('isEnabled')['to'](_0x1a644f,'isEnabled'),_0x4bd981['bind']('label')['to'](_0x1a644f,'isBusy',_0x43f7a8=>t(_0x43f7a8?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x4bd981,'execute',()=>{_0xc9c1d9['execute']('exportPdf',_0x165711),_0xc9c1d9['editing']['view']['focus']();}),_0x4bd981;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2995(_0xb8f576,_0x21290d){var _0x58eb83=_0x58eb();return _0x2995=function(_0x2995c3,_0x39f32f){_0x2995c3=_0x2995c3-0x179;var _0x4fc3c8=_0x58eb83[_0x2995c3];return _0x4fc3c8;},_0x2995(_0xb8f576,_0x21290d);}(function(_0x3b125f,_0x2dc1ec){var _0x10a616=_0x2995,_0x575835=_0x3b125f();while(!![]){try{var _0x6bfe40=-parseInt(_0x10a616(0x179))/0x1*(-parseInt(_0x10a616(0x17e))/0x2)+-parseInt(_0x10a616(0x17d))/0x3*(-parseInt(_0x10a616(0x181))/0x4)+parseInt(_0x10a616(0x17b))/0x5*(parseInt(_0x10a616(0x183))/0x6)+-parseInt(_0x10a616(0x185))/0x7*(-parseInt(_0x10a616(0x184))/0x8)+parseInt(_0x10a616(0x17c))/0x9+parseInt(_0x10a616(0x180))/0xa*(parseInt(_0x10a616(0x182))/0xb)+-parseInt(_0x10a616(0x17a))/0xc*(parseInt(_0x10a616(0x17f))/0xd);if(_0x6bfe40===_0x2dc1ec)break;else _0x575835['push'](_0x575835['shift']());}catch(_0x41c920){_0x575835['push'](_0x575835['shift']());}}}(_0x58eb,0x1dd08));function _0x58eb(){var _0x540368=['8106FXreTB','13pxAQcS','1510WNRuxc','116FsPMjo','6589XoMSJn','352680qmvqPL','84776kAXEms','154FDxmJM','28qlOEkx','10714020KZJLfF','15mJYOCj','2065680heRdEF','17796cMUptJ'];_0x58eb=function(){return _0x540368;};return _0x58eb();}export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1a1396,_0x2f1f38){const _0x5cc1db=_0x2c7c,_0x3322a8=_0x1a1396();while(!![]){try{const _0x4e4371=-parseInt(_0x5cc1db(0x200))/0x1*(-parseInt(_0x5cc1db(0x1f6))/0x2)+-parseInt(_0x5cc1db(0x209))/0x3+parseInt(_0x5cc1db(0x20a))/0x4*(parseInt(_0x5cc1db(0x203))/0x5)+parseInt(_0x5cc1db(0x207))/0x6*(-parseInt(_0x5cc1db(0x20b))/0x7)+parseInt(_0x5cc1db(0x211))/0x8*(-parseInt(_0x5cc1db(0x1fd))/0x9)+-parseInt(_0x5cc1db(0x1f3))/0xa+parseInt(_0x5cc1db(0x20f))/0xb*(parseInt(_0x5cc1db(0x1f7))/0xc);if(_0x4e4371===_0x2f1f38)break;else _0x3322a8['push'](_0x3322a8['shift']());}catch(_0x181cb1){_0x3322a8['push'](_0x3322a8['shift']());}}}(_0x51ab,0x79dd3));export function getStyles(_0x43bfce){const _0x251e85=_0x2c7c;if(!_0x43bfce)return new Promise(_0xe4ddc=>_0xe4ddc(''));const _0x4c81c4=[];for(const _0x4b066d of _0x43bfce)_0x251e85(0x1f8)!==_0x4b066d?_0x4c81c4[_0x251e85(0x20e)](window[_0x251e85(0x1f4)](_0x4b066d)[_0x251e85(0x206)](_0x1097f9=>_0x1097f9[_0x251e85(0x210)]())):_0x4c81c4[_0x251e85(0x20e)](f());return Promise[_0x251e85(0x213)](_0x4c81c4)[_0x251e85(0x206)](_0x5c0ae3=>_0x5c0ae3[_0x251e85(0x205)]('\x20')[_0x251e85(0x1fe)]());}function _0x51ab(){const _0x2e4d88=['421449WjFMUe','indexOf','hasAttribute','57365fiirmM','data-cke','join','then','15906yoWgQQ','styleSheets','1518843dAHEcE','244LGGAHr','539JujKJW','from','cssRules','push','88QfhMWN','text','6184pmyeEl','length','all','9231650uNxfhy','fetch','ownerNode','2VMMYWz','2451696rYoIyU','EDITOR_STYLES','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.','cssText','.ck-content',':root','7254deTEdy','trim','warn'];_0x51ab=function(){return _0x2e4d88;};return _0x51ab();}function _0x2c7c(_0x5040af,_0x48d554){const _0x51ab03=_0x51ab();return _0x2c7c=function(_0x2c7c0b,_0x41f31e){_0x2c7c0b=_0x2c7c0b-0x1f3;let _0x479b97=_0x51ab03[_0x2c7c0b];return _0x479b97;},_0x2c7c(_0x5040af,_0x48d554);}function f(){const _0x548f51=_0x2c7c,_0x5cf152=[],_0x17adae=[];for(const _0x311a45 of Array[_0x548f51(0x20c)](document[_0x548f51(0x208)])){if(_0x311a45[_0x548f51(0x1f5)][_0x548f51(0x202)](_0x548f51(0x204))){for(const _0x352340 of Array[_0x548f51(0x20c)](_0x311a45[_0x548f51(0x20d)]))-0x1!==_0x352340[_0x548f51(0x1fa)][_0x548f51(0x201)](_0x548f51(0x1fb))?_0x5cf152[_0x548f51(0x20e)](_0x352340[_0x548f51(0x1fa)]):-0x1!==_0x352340[_0x548f51(0x1fa)][_0x548f51(0x201)](_0x548f51(0x1fc))&&_0x17adae[_0x548f51(0x20e)](_0x352340[_0x548f51(0x1fa)]);}}return _0x5cf152[_0x548f51(0x212)]||console[_0x548f51(0x1ff)](_0x548f51(0x1f9)),[..._0x17adae,..._0x5cf152][_0x548f51(0x205)]('\x20')[_0x548f51(0x1fe)]();}
|