@ckeditor/ckeditor5-export-pdf 42.0.0-alpha.12 → 42.0.0-alpha.14
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
|
+
(_0x3b5b13=>{const {zh:{dictionary:_0x2fa3fe,getPluralForm:_0x3ce76f}}={'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':_0x245201=>0x0}};_0x3b5b13['zh']||={'dictionary':{},'getPluralForm':null},_0x3b5b13['zh']['dictionary']=Object['assign'](_0x3b5b13['zh']['dictionary'],_0x2fa3fe),_0x3b5b13['zh']['getPluralForm']=_0x3ce76f;})(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.14",
|
|
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.14"
|
|
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
|
-
function
|
|
23
|
+
const _0x3916c3=_0x95d2;function _0xd995(){const _0x57d323=['628SBljiM','config','plugins','editor','pluginName','1431oBQMev','add','ExportPdf','_token','then','13544bYINtT','commands','4979382NebYQm','registerTokenUrl','tokenUrl','85990uuWHyk','init','CloudServices','154ZakUBy','4767189UuTwFQ','23999261zaUlFx','1949wCvLNA','1938080RtrhOR','exportPdf','get','requires','10ODCseF','token'];_0xd995=function(){return _0x57d323;};return _0xd995();}(function(_0x18afcf,_0xc162c){const _0x322fd0=_0x95d2,_0x2e86b8=_0x18afcf();while(!![]){try{const _0x164d5e=-parseInt(_0x322fd0(0xe2))/0x1*(-parseInt(_0x322fd0(0xe9))/0x2)+parseInt(_0x322fd0(0xe0))/0x3+parseInt(_0x322fd0(0xe3))/0x4+parseInt(_0x322fd0(0xe7))/0x5*(parseInt(_0x322fd0(0xd9))/0x6)+-parseInt(_0x322fd0(0xdf))/0x7*(-parseInt(_0x322fd0(0xd7))/0x8)+parseInt(_0x322fd0(0xd2))/0x9*(-parseInt(_0x322fd0(0xdc))/0xa)+-parseInt(_0x322fd0(0xe1))/0xb;if(_0x164d5e===_0xc162c)break;else _0x2e86b8['push'](_0x2e86b8['shift']());}catch(_0x4b1328){_0x2e86b8['push'](_0x2e86b8['shift']());}}}(_0xd995,0xcb851));import{Plugin as _0x3ad899}from'ckeditor5/src/core.js';function _0x95d2(_0xe62f70,_0x4f6308){const _0xd9956c=_0xd995();return _0x95d2=function(_0x95d20d,_0x3777f0){_0x95d20d=_0x95d20d-0xce;let _0x30c96a=_0xd9956c[_0x95d20d];return _0x30c96a;},_0x95d2(_0xe62f70,_0x4f6308);}import{Notification as _0xa429ce}from'ckeditor5/src/ui.js';import _0xd7f126 from'./exportpdfcommand.js';import _0x2e2caf from'./exportpdfui.js';export default class s extends _0x3ad899{static get[_0x3916c3(0xd1)](){const _0xf5061=_0x3916c3;return _0xf5061(0xd4);}static get[_0x3916c3(0xe6)](){const _0x57099d=_0x3916c3;return[_0x57099d(0xde),_0xa429ce,_0x2e2caf];}[_0x3916c3(0xdd)](){const _0x18954b=_0x3916c3,_0x1f9324=this[_0x18954b(0xd0)],_0x4dcc4e=_0x1f9324[_0x18954b(0xce)][_0x18954b(0xe5)](_0x18954b(0xe4))||{};_0x1f9324[_0x18954b(0xd8)][_0x18954b(0xd3)](_0x18954b(0xe4),new _0xd7f126(_0x1f9324));const _0x20ece6=_0x1f9324[_0x18954b(0xcf)][_0x18954b(0xe5)](_0x18954b(0xde));!0x1===_0x4dcc4e[_0x18954b(0xdb)]?this[_0x18954b(0xd5)]=null:_0x4dcc4e[_0x18954b(0xdb)]?_0x20ece6[_0x18954b(0xda)](_0x4dcc4e[_0x18954b(0xdb)])[_0x18954b(0xd6)](_0x22a21e=>{const _0x340a4d=_0x18954b;this[_0x340a4d(0xd5)]=_0x22a21e;}):this[_0x18954b(0xd5)]=_0x20ece6[_0x18954b(0xe8)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x661729}from'ckeditor5/src/core.js';import{getStyles as _0xd571c1}from'./utils.js';export default class o extends _0x661729{constructor(_0x2340af){super(_0x2340af),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x2cbccc={}){const _0x39fc87=this['editor'],t=_0x39fc87['t'],_0x47a399=_0x2cbccc['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x43bfc4=_0x2cbccc['dataCallback']||(_0x517bd0=>_0x517bd0['data']['get']()),_0x5d79cf=_0x39fc87['plugins']['get']('ExportPdf'),_0x2de508=_0x2cbccc['token']||_0x5d79cf['_token'];return this['isBusy']=!0x0,this['refresh'](),_0xd571c1(_0x2cbccc['stylesheets']||['EDITOR_STYLES'])['then'](async _0x2e1b33=>{_0x39fc87['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x32e416={'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'+_0x39fc87['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x43bfc4(_0x39fc87)+'\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':_0x2e1b33,'options':_0x2cbccc['converterOptions']},_0x27fee5={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x2de508?{'Authorization':_0x2de508['value']}:null,'x-cs-app-id':_0x2cbccc['appID']||'cke5'},'body':JSON['stringify'](_0x32e416)};return window['fetch'](_0x47a399,_0x27fee5)['then'](_0x2ed0e6=>{if(0xc8!==_0x2ed0e6['status'])throw _0x2ed0e6;return _0x2ed0e6['blob']();})['then'](_0x396b02=>{_0x39fc87['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x4c970c='function'==typeof _0x2cbccc['fileName']?_0x2cbccc['fileName']():_0x2cbccc['fileName'];this['_downloadFile'](_0x396b02,_0x4c970c||'document.pdf');});})['catch'](_0x510deb=>{const _0x57d43f=_0x39fc87['plugins']['get']('Notification');throw _0x39fc87['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x57d43f['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x510deb;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x1b9077,_0x32e4b8){const _0x26cfef=document['createElement']('a');_0x26cfef['href']=window['URL']['createObjectURL'](_0x1b9077),_0x26cfef['download']=_0x32e4b8,_0x26cfef['click'](),_0x26cfef['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x39ed70}from'ckeditor5/src/core.js';import{ButtonView as _0x53e851,MenuBarMenuListItemButtonView as _0x87e934,SpinnerView as _0x8cceba}from'ckeditor5/src/ui.js';import _0x31c78e from'../theme/icons/exportpdf.svg';export default class i extends _0x39ed70{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x2b4617=this['editor'];_0x2b4617['ui']['componentFactory']['add']('exportPdf',()=>{const _0x2fe668=this['_createButton'](_0x53e851),_0x5646d8=_0x2b4617['commands']['get']('exportPdf');return _0x2fe668['set']({'tooltip':!0x0}),_0x2fe668['bind']('isOn')['to'](_0x5646d8,'isBusy'),_0x2fe668;}),_0x2b4617['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x87e934));}['_createButton'](_0x4de2f5){const _0x253dc7=this['editor'],_0x10dd06=_0x253dc7['config']['get']('exportPdf')||{},t=_0x253dc7['locale']['t'],_0x2b5de9=_0x253dc7['commands']['get']('exportPdf'),_0x41e599=new _0x4de2f5(_0x253dc7['locale']),_0x975668=new _0x8cceba();return _0x41e599['children']['add'](_0x975668),_0x975668['bind']('isVisible')['to'](_0x2b5de9,'isBusy'),_0x41e599['iconView']['bind']('isVisible')['to'](_0x2b5de9,'isBusy',_0x27e94b=>!_0x27e94b),_0x41e599['set']({'icon':_0x31c78e}),_0x41e599['bind']('isEnabled')['to'](_0x2b5de9,'isEnabled'),_0x41e599['bind']('label')['to'](_0x2b5de9,'isBusy',_0x1de8bb=>t(_0x1de8bb?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x41e599,'execute',()=>{_0x253dc7['execute']('exportPdf',_0x10dd06),_0x253dc7['editing']['view']['focus']();}),_0x41e599;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2047(_0x43ee83,_0x3fdc14){var _0x360572=_0x3605();return _0x2047=function(_0x20476f,_0x2c07d9){_0x20476f=_0x20476f-0x192;var _0x34314b=_0x360572[_0x20476f];return _0x34314b;},_0x2047(_0x43ee83,_0x3fdc14);}(function(_0x1a0d84,_0x30a210){var _0x5b86b4=_0x2047,_0x46e298=_0x1a0d84();while(!![]){try{var _0x1e1f21=parseInt(_0x5b86b4(0x195))/0x1+parseInt(_0x5b86b4(0x192))/0x2*(-parseInt(_0x5b86b4(0x197))/0x3)+parseInt(_0x5b86b4(0x194))/0x4+-parseInt(_0x5b86b4(0x193))/0x5*(parseInt(_0x5b86b4(0x196))/0x6)+parseInt(_0x5b86b4(0x198))/0x7+-parseInt(_0x5b86b4(0x19a))/0x8+parseInt(_0x5b86b4(0x199))/0x9;if(_0x1e1f21===_0x30a210)break;else _0x46e298['push'](_0x46e298['shift']());}catch(_0x2a6e2d){_0x46e298['push'](_0x46e298['shift']());}}}(_0x3605,0xcfe8b));function _0x3605(){var _0x21e617=['15156jFYRJl','4089561auXbrw','4976550ncUTTK','7103464kOlAwq','32yyYNtz','49925gOgaVM','896556doPeHk','469033AwCSbB','6UzItHe'];_0x3605=function(){return _0x21e617;};return _0x3605();}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
|
-
|
|
23
|
+
(function(_0x279397,_0xd5eee4){const _0x5b929f=_0x395b,_0x199fea=_0x279397();while(!![]){try{const _0x246359=-parseInt(_0x5b929f(0x116))/0x1*(parseInt(_0x5b929f(0x113))/0x2)+parseInt(_0x5b929f(0x100))/0x3+-parseInt(_0x5b929f(0x111))/0x4+parseInt(_0x5b929f(0x10b))/0x5*(-parseInt(_0x5b929f(0xfe))/0x6)+-parseInt(_0x5b929f(0x10e))/0x7+parseInt(_0x5b929f(0x115))/0x8*(-parseInt(_0x5b929f(0xff))/0x9)+parseInt(_0x5b929f(0xfd))/0xa;if(_0x246359===_0xd5eee4)break;else _0x199fea['push'](_0x199fea['shift']());}catch(_0x3857d4){_0x199fea['push'](_0x199fea['shift']());}}}(_0x4158,0x35653));export function getStyles(_0x4e129d){const _0x2b6327=_0x395b;if(!_0x4e129d)return new Promise(_0x2b433c=>_0x2b433c(''));const _0x33e8d0=[];for(const _0x79c194 of _0x4e129d)_0x2b6327(0x10c)!==_0x79c194?_0x33e8d0[_0x2b6327(0x105)](window[_0x2b6327(0xfc)](_0x79c194)[_0x2b6327(0xfb)](_0xf2173e=>_0xf2173e[_0x2b6327(0x114)]())):_0x33e8d0[_0x2b6327(0x105)](f());return Promise[_0x2b6327(0x10a)](_0x33e8d0)[_0x2b6327(0xfb)](_0x129ce7=>_0x129ce7[_0x2b6327(0x112)]('\x20')[_0x2b6327(0x109)]());}function _0x395b(_0x3f1940,_0xa8b0de){const _0x4158b3=_0x4158();return _0x395b=function(_0x395b30,_0x45d45a){_0x395b30=_0x395b30-0xf8;let _0xaf04bf=_0x4158b3[_0x395b30];return _0xaf04bf;},_0x395b(_0x3f1940,_0xa8b0de);}function _0x4158(){const _0x37ab34=['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.','trim','all','9205JpIqsu','EDITOR_STYLES','data-cke','2031617cLapZO','warn','.ck-content','1351568WzlVkQ','join','185162SFkSsU','text','8DboXnR','3gBpnBA','cssRules','length','cssText','then','fetch','13957470aHELAp','1194yVptEg','2980332GBQaOH','1278999FQLDmg','styleSheets','ownerNode','indexOf','hasAttribute','push','from',':root'];_0x4158=function(){return _0x37ab34;};return _0x4158();}function f(){const _0x172190=_0x395b,_0x4143c0=[],_0x3ff014=[];for(const _0x1a76da of Array[_0x172190(0x106)](document[_0x172190(0x101)])){if(_0x1a76da[_0x172190(0x102)][_0x172190(0x104)](_0x172190(0x10d))){for(const _0x1f3c81 of Array[_0x172190(0x106)](_0x1a76da[_0x172190(0xf8)]))-0x1!==_0x1f3c81[_0x172190(0xfa)][_0x172190(0x103)](_0x172190(0x110))?_0x4143c0[_0x172190(0x105)](_0x1f3c81[_0x172190(0xfa)]):-0x1!==_0x1f3c81[_0x172190(0xfa)][_0x172190(0x103)](_0x172190(0x107))&&_0x3ff014[_0x172190(0x105)](_0x1f3c81[_0x172190(0xfa)]);}}return _0x4143c0[_0x172190(0xf9)]||console[_0x172190(0x10f)](_0x172190(0x108)),[..._0x3ff014,..._0x4143c0][_0x172190(0x112)]('\x20')[_0x172190(0x109)]();}
|