@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240621.0 → 0.0.0-nightly-20240622.0
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240622.0",
|
|
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": "0.0.0-nightly-
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20240622.0"
|
|
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
|
-
const
|
|
23
|
+
const _0x4a8bac=_0x3fc2;function _0x1e08(){const _0x40bff5=['get','CloudServices','_token','239868POpBIb','ExportPdf','editor','pluginName','requires','config','init','tokenUrl','exportPdf','2972564wCHnaT','1568196ytTwUi','registerTokenUrl','plugins','token','537317lGYcnv','1018672iQWDkt','commands','1goHafc','8IlIovr','add','8133255SHEkkk','then','4717356gESLbm','55vVKvxT','340OWpMHa'];_0x1e08=function(){return _0x40bff5;};return _0x1e08();}(function(_0x1ada45,_0x1352d8){const _0x52754e=_0x3fc2,_0x48b56f=_0x1ada45();while(!![]){try{const _0x8b817c=-parseInt(_0x52754e(0x182))/0x1*(parseInt(_0x52754e(0x180))/0x2)+-parseInt(_0x52754e(0x17b))/0x3+parseInt(_0x52754e(0x18d))/0x4*(-parseInt(_0x52754e(0x188))/0x5)+-parseInt(_0x52754e(0x187))/0x6+parseInt(_0x52754e(0x17a))/0x7+-parseInt(_0x52754e(0x183))/0x8*(-parseInt(_0x52754e(0x185))/0x9)+-parseInt(_0x52754e(0x189))/0xa*(-parseInt(_0x52754e(0x17f))/0xb);if(_0x8b817c===_0x1352d8)break;else _0x48b56f['push'](_0x48b56f['shift']());}catch(_0x1c944e){_0x48b56f['push'](_0x48b56f['shift']());}}}(_0x1e08,0x7ccee));import{Plugin as _0x3574f7}from'ckeditor5/src/core.js';import{Notification as _0xa01498}from'ckeditor5/src/ui.js';import _0x58e0d9 from'./exportpdfcommand.js';function _0x3fc2(_0x5d303a,_0xc74253){const _0x1e08d7=_0x1e08();return _0x3fc2=function(_0x3fc27d,_0x212679){_0x3fc27d=_0x3fc27d-0x177;let _0x4f7c12=_0x1e08d7[_0x3fc27d];return _0x4f7c12;},_0x3fc2(_0x5d303a,_0xc74253);}import _0x1d2806 from'./exportpdfui.js';export default class s extends _0x3574f7{static get[_0x4a8bac(0x190)](){const _0x146a09=_0x4a8bac;return _0x146a09(0x18e);}static get[_0x4a8bac(0x191)](){const _0x23059a=_0x4a8bac;return[_0x23059a(0x18b),_0xa01498,_0x1d2806];}[_0x4a8bac(0x177)](){const _0x20aa71=_0x4a8bac,_0x597dcb=this[_0x20aa71(0x18f)],_0x2bd2a4=_0x597dcb[_0x20aa71(0x192)][_0x20aa71(0x18a)](_0x20aa71(0x179))||{};_0x597dcb[_0x20aa71(0x181)][_0x20aa71(0x184)](_0x20aa71(0x179),new _0x58e0d9(_0x597dcb));const _0x2bc42f=_0x597dcb[_0x20aa71(0x17d)][_0x20aa71(0x18a)](_0x20aa71(0x18b));!0x1===_0x2bd2a4[_0x20aa71(0x178)]?this[_0x20aa71(0x18c)]=null:_0x2bd2a4[_0x20aa71(0x178)]?_0x2bc42f[_0x20aa71(0x17c)](_0x2bd2a4[_0x20aa71(0x178)])[_0x20aa71(0x186)](_0x44d075=>{const _0x155991=_0x20aa71;this[_0x155991(0x18c)]=_0x44d075;}):this[_0x20aa71(0x18c)]=_0x2bc42f[_0x20aa71(0x17e)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x47bd29}from'ckeditor5/src/core.js';import{getStyles as _0x420ba5}from'./utils.js';export default class o extends _0x47bd29{constructor(_0x2dbe30){super(_0x2dbe30),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x34be04={}){const _0x41ffcc=this['editor'],t=_0x41ffcc['t'],_0x35f5e8=_0x34be04['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x76026f=_0x34be04['dataCallback']||(_0xad07e4=>_0xad07e4['data']['get']()),_0x48d4f5=_0x41ffcc['plugins']['get']('ExportPdf'),_0x33c7ed=_0x34be04['token']||_0x48d4f5['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x420ba5(_0x34be04['stylesheets']||['EDITOR_STYLES'])['then'](async _0x18daa7=>{_0x41ffcc['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x305d79={'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'+_0x41ffcc['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x76026f(_0x41ffcc)+'\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':_0x18daa7,'options':_0x34be04['converterOptions']},_0x307447={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x33c7ed?{'Authorization':_0x33c7ed['value']}:null,'x-cs-app-id':_0x34be04['appID']||'cke5'},'body':JSON['stringify'](_0x305d79)};return window['fetch'](_0x35f5e8,_0x307447)['then'](_0xecd4c=>{if(0xc8!==_0xecd4c['status'])throw _0xecd4c;return _0xecd4c['blob']();})['then'](_0x2302fc=>{_0x41ffcc['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x57900f='function'==typeof _0x34be04['fileName']?_0x34be04['fileName']():_0x34be04['fileName'];this['_downloadFile'](_0x2302fc,_0x57900f||'document.pdf');});})['catch'](_0x4a506e=>{const _0x328015=_0x41ffcc['plugins']['get']('Notification');throw _0x41ffcc['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x328015['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x4a506e;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x25f8c6,_0x267fed){const _0x5464cc=document['createElement']('a');_0x5464cc['href']=window['URL']['createObjectURL'](_0x25f8c6),_0x5464cc['download']=_0x267fed,_0x5464cc['click'](),_0x5464cc['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3ef513}from'ckeditor5/src/core.js';import{ButtonView as _0x33e7b8,MenuBarMenuListItemButtonView as _0xcad3f9,SpinnerView as _0x20846b}from'ckeditor5/src/ui.js';import _0x3d4cd8 from'../theme/icons/exportpdf.svg';export default class i extends _0x3ef513{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x470fe1=this['editor'];_0x470fe1['ui']['componentFactory']['add']('exportPdf',()=>{const _0x3b458f=this['_createButton'](_0x33e7b8),_0x22f36f=_0x470fe1['commands']['get']('exportPdf');return _0x3b458f['set']({'tooltip':!0x0}),_0x3b458f['bind']('isOn')['to'](_0x22f36f,'isBusy'),_0x3b458f;}),_0x470fe1['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0xcad3f9));}['_createButton'](_0x29d5cb){const _0x308bff=this['editor'],_0x5ce17d=_0x308bff['config']['get']('exportPdf')||{},t=_0x308bff['locale']['t'],_0x23f2cb=_0x308bff['commands']['get']('exportPdf'),_0x306348=new _0x29d5cb(_0x308bff['locale']),_0x35be2a=new _0x20846b();return _0x306348['children']['add'](_0x35be2a),_0x35be2a['bind']('isVisible')['to'](_0x23f2cb,'isBusy'),_0x306348['iconView']['bind']('isVisible')['to'](_0x23f2cb,'isBusy',_0x2afad1=>!_0x2afad1),_0x306348['set']({'icon':_0x3d4cd8}),_0x306348['bind']('isEnabled')['to'](_0x23f2cb,'isEnabled'),_0x306348['bind']('label')['to'](_0x23f2cb,'isBusy',_0x256794=>t(_0x256794?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x306348,'execute',()=>{_0x308bff['execute']('exportPdf',_0x5ce17d),_0x308bff['editing']['view']['focus']();}),_0x306348;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x178f(_0x54e7c7,_0xe91b6e){var _0x9ff908=_0x9ff9();return _0x178f=function(_0x178fdf,_0x8cd007){_0x178fdf=_0x178fdf-0x8f;var _0x391507=_0x9ff908[_0x178fdf];return _0x391507;},_0x178f(_0x54e7c7,_0xe91b6e);}function _0x9ff9(){var _0x3df76a=['7259427oNtarJ','2790003NVxBUT','5949328neqiyg','6080754Xsrzec','95pBYCdp','4195970xbRUvT','763052BxBIFy','8NjhOIq','7534eNmcPn'];_0x9ff9=function(){return _0x3df76a;};return _0x9ff9();}(function(_0x3d0760,_0x33165a){var _0x3556bf=_0x178f,_0x49c36d=_0x3d0760();while(!![]){try{var _0x1eb5dc=parseInt(_0x3556bf(0x8f))/0x1*(-parseInt(_0x3556bf(0x93))/0x2)+parseInt(_0x3556bf(0x95))/0x3+-parseInt(_0x3556bf(0x91))/0x4+-parseInt(_0x3556bf(0x90))/0x5+parseInt(_0x3556bf(0x97))/0x6+parseInt(_0x3556bf(0x96))/0x7+parseInt(_0x3556bf(0x92))/0x8*(-parseInt(_0x3556bf(0x94))/0x9);if(_0x1eb5dc===_0x33165a)break;else _0x49c36d['push'](_0x49c36d['shift']());}catch(_0x5e0f94){_0x49c36d['push'](_0x49c36d['shift']());}}}(_0x9ff9,0x9239b));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 _0x1faa(){const _0x1be9f7=['6259460oWrdCY','warn','hasAttribute','indexOf','21dxELiW','text','2277596ouFepe','3265506PfnMhH','.ck-content','data-cke','2934672uRovxY','all','length','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.','then',':root','114942sxhRFu','trim','push','from','59642FVFaZT','ownerNode','styleSheets','cssText','fetch','3416308FANKqb','cssRules','join','EDITOR_STYLES'];_0x1faa=function(){return _0x1be9f7;};return _0x1faa();}(function(_0x1eb548,_0x223d58){const _0xce47ff=_0x220e,_0x4e152e=_0x1eb548();while(!![]){try{const _0x34eddd=-parseInt(_0xce47ff(0x7f))/0x1+parseInt(_0xce47ff(0x7b))/0x2*(-parseInt(_0xce47ff(0x6f))/0x3)+-parseInt(_0xce47ff(0x71))/0x4+parseInt(_0xce47ff(0x88))/0x5+parseInt(_0xce47ff(0x72))/0x6+parseInt(_0xce47ff(0x84))/0x7+-parseInt(_0xce47ff(0x75))/0x8;if(_0x34eddd===_0x223d58)break;else _0x4e152e['push'](_0x4e152e['shift']());}catch(_0x2bd187){_0x4e152e['push'](_0x4e152e['shift']());}}}(_0x1faa,0xd84ff));export function getStyles(_0x5e909b){const _0x471053=_0x220e;if(!_0x5e909b)return new Promise(_0x140989=>_0x140989(''));const _0xfff898=[];for(const _0x133c9d of _0x5e909b)_0x471053(0x87)!==_0x133c9d?_0xfff898[_0x471053(0x7d)](window[_0x471053(0x83)](_0x133c9d)[_0x471053(0x79)](_0x26ec7f=>_0x26ec7f[_0x471053(0x70)]())):_0xfff898[_0x471053(0x7d)](f());return Promise[_0x471053(0x76)](_0xfff898)[_0x471053(0x79)](_0x2553ce=>_0x2553ce[_0x471053(0x86)]('\x20')[_0x471053(0x7c)]());}function _0x220e(_0x5d6852,_0x268db9){const _0x1faa41=_0x1faa();return _0x220e=function(_0x220e76,_0x563dc9){_0x220e76=_0x220e76-0x6d;let _0x4c51e2=_0x1faa41[_0x220e76];return _0x4c51e2;},_0x220e(_0x5d6852,_0x268db9);}function f(){const _0x494e9a=_0x220e,_0x1dd2f1=[],_0x5e6cd1=[];for(const _0x452381 of Array[_0x494e9a(0x7e)](document[_0x494e9a(0x81)])){if(_0x452381[_0x494e9a(0x80)][_0x494e9a(0x6d)](_0x494e9a(0x74))){for(const _0x6983ad of Array[_0x494e9a(0x7e)](_0x452381[_0x494e9a(0x85)]))-0x1!==_0x6983ad[_0x494e9a(0x82)][_0x494e9a(0x6e)](_0x494e9a(0x73))?_0x1dd2f1[_0x494e9a(0x7d)](_0x6983ad[_0x494e9a(0x82)]):-0x1!==_0x6983ad[_0x494e9a(0x82)][_0x494e9a(0x6e)](_0x494e9a(0x7a))&&_0x5e6cd1[_0x494e9a(0x7d)](_0x6983ad[_0x494e9a(0x82)]);}}return _0x1dd2f1[_0x494e9a(0x77)]||console[_0x494e9a(0x89)](_0x494e9a(0x78)),[..._0x5e6cd1,..._0x1dd2f1][_0x494e9a(0x86)]('\x20')[_0x494e9a(0x7c)]();}
|