@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240517.0 → 0.0.0-nightly-20240519.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-20240519.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-20240519.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
|
+
function _0x5c6a(){const _0x5f4ab5=['registerTokenUrl','3153090MJUkcs','plugins','9vEBurj','1012gENSex','6piqahw','init','_token','get','3741630WOmbjR','250090zAdWCN','pluginName','exportPdf','requires','CloudServices','commands','config','add','token','tokenUrl','3252718wfYUJd','2876656fdnRXi','1434632BDlzSE','editor','ExportPdf','19315mtRZgZ','then','3BqqxKm'];_0x5c6a=function(){return _0x5f4ab5;};return _0x5c6a();}const _0x134584=_0x2c3d;function _0x2c3d(_0x1d488b,_0x44c210){const _0x5c6a66=_0x5c6a();return _0x2c3d=function(_0x2c3d78,_0x149a88){_0x2c3d78=_0x2c3d78-0x96;let _0x240809=_0x5c6a66[_0x2c3d78];return _0x240809;},_0x2c3d(_0x1d488b,_0x44c210);}(function(_0x15eb20,_0x3a2418){const _0x4d495f=_0x2c3d,_0x267147=_0x15eb20();while(!![]){try{const _0x5c8600=parseInt(_0x4d495f(0xb1))/0x1*(-parseInt(_0x4d495f(0x9d))/0x2)+-parseInt(_0x4d495f(0x97))/0x3*(parseInt(_0x4d495f(0xae))/0x4)+-parseInt(_0x4d495f(0x99))/0x5+-parseInt(_0x4d495f(0xa1))/0x6+-parseInt(_0x4d495f(0xac))/0x7+parseInt(_0x4d495f(0xad))/0x8*(parseInt(_0x4d495f(0x9b))/0x9)+parseInt(_0x4d495f(0xa2))/0xa*(parseInt(_0x4d495f(0x9c))/0xb);if(_0x5c8600===_0x3a2418)break;else _0x267147['push'](_0x267147['shift']());}catch(_0x482ca0){_0x267147['push'](_0x267147['shift']());}}}(_0x5c6a,0x8026e));import{Plugin as _0x4c014a}from'ckeditor5/src/core.js';import{Notification as _0x5804ef}from'ckeditor5/src/ui.js';import _0x33027a from'./exportpdfcommand.js';import _0x3b683c from'./exportpdfui.js';export default class s extends _0x4c014a{static get[_0x134584(0xa3)](){const _0xdf7d6c=_0x134584;return _0xdf7d6c(0xb0);}static get[_0x134584(0xa5)](){const _0x3aa9cb=_0x134584;return[_0x3aa9cb(0xa6),_0x5804ef,_0x3b683c];}[_0x134584(0x9e)](){const _0x5bec55=_0x134584,_0x2d1d82=this[_0x5bec55(0xaf)],_0x46fa9c=_0x2d1d82[_0x5bec55(0xa8)][_0x5bec55(0xa0)](_0x5bec55(0xa4))||{};_0x2d1d82[_0x5bec55(0xa7)][_0x5bec55(0xa9)](_0x5bec55(0xa4),new _0x33027a(_0x2d1d82));const _0x1bd23b=_0x2d1d82[_0x5bec55(0x9a)][_0x5bec55(0xa0)](_0x5bec55(0xa6));!0x1===_0x46fa9c[_0x5bec55(0xab)]?this[_0x5bec55(0x9f)]=null:_0x46fa9c[_0x5bec55(0xab)]?_0x1bd23b[_0x5bec55(0x98)](_0x46fa9c[_0x5bec55(0xab)])[_0x5bec55(0x96)](_0x8c0133=>{const _0x118328=_0x5bec55;this[_0x118328(0x9f)]=_0x8c0133;}):this[_0x5bec55(0x9f)]=_0x1bd23b[_0x5bec55(0xaa)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x321bdb}from'ckeditor5/src/core.js';import{getStyles as _0x53bb68}from'./utils.js';export default class o extends _0x321bdb{constructor(_0x10a6a5){super(_0x10a6a5),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x38b8b3={}){const _0x31431e=this['editor'],t=_0x31431e['t'],_0x5a4e42=_0x38b8b3['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x2a3f5a=_0x38b8b3['dataCallback']||(_0x4e93c3=>_0x4e93c3['data']['get']()),_0x406a2a=_0x31431e['plugins']['get']('ExportPdf'),_0x3389fb=_0x38b8b3['token']||_0x406a2a['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x53bb68(_0x38b8b3['stylesheets']||['EDITOR_STYLES'])['then'](async _0x92cc57=>{_0x31431e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x1d7887={'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'+_0x31431e['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x2a3f5a(_0x31431e)+'\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':_0x92cc57,'options':_0x38b8b3['converterOptions']},_0x101cf0={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x3389fb?{'Authorization':_0x3389fb['value']}:null,'x-cs-app-id':_0x38b8b3['appID']||'cke5'},'body':JSON['stringify'](_0x1d7887)};return window['fetch'](_0x5a4e42,_0x101cf0)['then'](_0x46c5cd=>{if(0xc8!==_0x46c5cd['status'])throw _0x46c5cd;return _0x46c5cd['blob']();})['then'](_0x36558e=>{_0x31431e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x137ae0='function'==typeof _0x38b8b3['fileName']?_0x38b8b3['fileName']():_0x38b8b3['fileName'];this['_downloadFile'](_0x36558e,_0x137ae0||'document.pdf');});})['catch'](_0x277e8a=>{const _0x2a4b22=_0x31431e['plugins']['get']('Notification');throw _0x31431e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x2a4b22['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x277e8a;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x19add8,_0x1fc77a){const _0x43d29f=document['createElement']('a');_0x43d29f['href']=window['URL']['createObjectURL'](_0x19add8),_0x43d29f['download']=_0x1fc77a,_0x43d29f['click'](),_0x43d29f['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xc749f8}from'ckeditor5/src/core.js';import{ButtonView as _0x549e7f,MenuBarMenuListItemButtonView as _0x3a9aa3,SpinnerView as _0x15ce82}from'ckeditor5/src/ui.js';import _0x307cb2 from'../theme/icons/exportpdf.svg';export default class i extends _0xc749f8{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x382ef9=this['editor'];_0x382ef9['ui']['componentFactory']['add']('exportPdf',()=>{const _0x9c8af2=this['_createButton'](_0x549e7f),_0x35f06a=_0x382ef9['commands']['get']('exportPdf');return _0x9c8af2['set']({'tooltip':!0x0}),_0x9c8af2['bind']('isOn')['to'](_0x35f06a,'isBusy'),_0x9c8af2;}),_0x382ef9['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x3a9aa3));}['_createButton'](_0x362a6e){const _0x535646=this['editor'],_0x395e9a=_0x535646['config']['get']('exportPdf')||{},t=_0x535646['locale']['t'],_0x31f63=_0x535646['commands']['get']('exportPdf'),_0x2f7bf4=new _0x362a6e(_0x535646['locale']),_0x56919a=new _0x15ce82();return _0x2f7bf4['children']['add'](_0x56919a),_0x56919a['bind']('isVisible')['to'](_0x31f63,'isBusy'),_0x2f7bf4['iconView']['bind']('isVisible')['to'](_0x31f63,'isBusy',_0x344554=>!_0x344554),_0x2f7bf4['set']({'icon':_0x307cb2}),_0x2f7bf4['bind']('isEnabled')['to'](_0x31f63,'isEnabled'),_0x2f7bf4['bind']('label')['to'](_0x31f63,'isBusy',_0x23c7c9=>t(_0x23c7c9?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x2f7bf4,'execute',()=>{_0x535646['execute']('exportPdf',_0x395e9a),_0x535646['editing']['view']['focus']();}),_0x2f7bf4;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x50f5e1,_0x434898){var _0x5825d4=_0xde66,_0x1a003c=_0x50f5e1();while(!![]){try{var _0x1d0ac8=parseInt(_0x5825d4(0x10a))/0x1+-parseInt(_0x5825d4(0x10f))/0x2*(parseInt(_0x5825d4(0x108))/0x3)+parseInt(_0x5825d4(0x10e))/0x4+parseInt(_0x5825d4(0x106))/0x5*(parseInt(_0x5825d4(0x10d))/0x6)+-parseInt(_0x5825d4(0x110))/0x7*(-parseInt(_0x5825d4(0x10b))/0x8)+-parseInt(_0x5825d4(0x109))/0x9*(parseInt(_0x5825d4(0x107))/0xa)+parseInt(_0x5825d4(0x10c))/0xb;if(_0x1d0ac8===_0x434898)break;else _0x1a003c['push'](_0x1a003c['shift']());}catch(_0x3b3c84){_0x1a003c['push'](_0x1a003c['shift']());}}}(_0x13f5,0xa87fd));function _0x13f5(){var _0x2c7cf7=['10gYlrVJ','288841qunYOH','10515WbKSsr','20QnOzsu','497169rzrrAZ','3685131hyTJeG','567334WWGrsB','48trajZD','7538597mFNvsy','558tqjCrw','2567552DeBpDd'];_0x13f5=function(){return _0x2c7cf7;};return _0x13f5();}function _0xde66(_0x588ba1,_0x3f6de3){var _0x13f5c9=_0x13f5();return _0xde66=function(_0xde66c3,_0x200d0e){_0xde66c3=_0xde66c3-0x106;var _0x3bc80d=_0x13f5c9[_0xde66c3];return _0x3bc80d;},_0xde66(_0x588ba1,_0x3f6de3);}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(_0x43bf31,_0x28e16c){const _0x551e2e=_0x2965,_0x1a5be2=_0x43bf31();while(!![]){try{const _0x586a74=-parseInt(_0x551e2e(0x180))/0x1*(parseInt(_0x551e2e(0x170))/0x2)+parseInt(_0x551e2e(0x16f))/0x3+parseInt(_0x551e2e(0x183))/0x4*(parseInt(_0x551e2e(0x171))/0x5)+parseInt(_0x551e2e(0x16a))/0x6+parseInt(_0x551e2e(0x17c))/0x7+parseInt(_0x551e2e(0x174))/0x8+-parseInt(_0x551e2e(0x182))/0x9*(parseInt(_0x551e2e(0x16c))/0xa);if(_0x586a74===_0x28e16c)break;else _0x1a5be2['push'](_0x1a5be2['shift']());}catch(_0x5afb2d){_0x1a5be2['push'](_0x1a5be2['shift']());}}}(_0x53b5,0xc2bbe));export function getStyles(_0x36febc){const _0x1c4fde=_0x2965;if(!_0x36febc)return new Promise(_0x5b2a3d=>_0x5b2a3d(''));const _0x5048f2=[];for(const _0x6ff3c of _0x36febc)_0x1c4fde(0x16e)!==_0x6ff3c?_0x5048f2[_0x1c4fde(0x17d)](window[_0x1c4fde(0x17b)](_0x6ff3c)[_0x1c4fde(0x17e)](_0x2dc0de=>_0x2dc0de[_0x1c4fde(0x179)]())):_0x5048f2[_0x1c4fde(0x17d)](f());return Promise[_0x1c4fde(0x175)](_0x5048f2)[_0x1c4fde(0x17e)](_0x3fd2d5=>_0x3fd2d5[_0x1c4fde(0x185)]('\x20')[_0x1c4fde(0x188)]());}function _0x2965(_0x9f178e,_0x47dd17){const _0x53b566=_0x53b5();return _0x2965=function(_0x296548,_0xc20d9b){_0x296548=_0x296548-0x16a;let _0x32036c=_0x53b566[_0x296548];return _0x32036c;},_0x2965(_0x9f178e,_0x47dd17);}function f(){const _0x300600=_0x2965,_0x13b78c=[],_0x538683=[];for(const _0x16d6ac of Array[_0x300600(0x187)](document[_0x300600(0x178)])){if(_0x16d6ac[_0x300600(0x16d)][_0x300600(0x186)](_0x300600(0x181))){for(const _0x452ffd of Array[_0x300600(0x187)](_0x16d6ac[_0x300600(0x17f)]))-0x1!==_0x452ffd[_0x300600(0x184)][_0x300600(0x173)](_0x300600(0x177))?_0x13b78c[_0x300600(0x17d)](_0x452ffd[_0x300600(0x184)]):-0x1!==_0x452ffd[_0x300600(0x184)][_0x300600(0x173)](_0x300600(0x172))&&_0x538683[_0x300600(0x17d)](_0x452ffd[_0x300600(0x184)]);}}return _0x13b78c[_0x300600(0x17a)]||console[_0x300600(0x16b)](_0x300600(0x176)),[..._0x538683,..._0x13b78c][_0x300600(0x185)]('\x20')[_0x300600(0x188)]();}function _0x53b5(){const _0x4b9158=['text','length','fetch','381192idzPGy','push','then','cssRules','3091CdflGQ','data-cke','18hUmmdy','166884eePgTx','cssText','join','hasAttribute','from','trim','1702644ElgXvl','warn','5915020hkYdbb','ownerNode','EDITOR_STYLES','2570064ckePPY','758gtarsA','140dewNXi',':root','indexOf','6312136wVIEMw','all','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.','.ck-content','styleSheets'];_0x53b5=function(){return _0x4b9158;};return _0x53b5();}
|