@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240619.1 → 0.0.0-nightly-20240620.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-20240620.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-20240620.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 _0xd99a2f=_0x1e2a;function _0x3e12(){const _0xfc2d15=['init','commands','tokenUrl','731076suOctl','6qzIeaK','editor','plugins','102263qqqinj','pluginName','config','add','CloudServices','32wlPRba','then','35gedeNQ','token','requires','registerTokenUrl','46724hGfFAk','exportPdf','_token','ExportPdf','50394abfwyc','818480PtHiYD','get','759327hHruzp','2393388GKNRpS'];_0x3e12=function(){return _0xfc2d15;};return _0x3e12();}(function(_0x42d10b,_0xf32991){const _0x69a6f2=_0x1e2a,_0x125fb8=_0x42d10b();while(!![]){try{const _0x133b8d=-parseInt(_0x69a6f2(0x159))/0x1*(parseInt(_0x69a6f2(0x167))/0x2)+-parseInt(_0x69a6f2(0x153))/0x3+parseInt(_0x69a6f2(0x158))/0x4+parseInt(_0x69a6f2(0x163))/0x5*(parseInt(_0x69a6f2(0x150))/0x6)+parseInt(_0x69a6f2(0x15c))/0x7*(-parseInt(_0x69a6f2(0x161))/0x8)+parseInt(_0x69a6f2(0x154))/0x9+parseInt(_0x69a6f2(0x151))/0xa;if(_0x133b8d===_0xf32991)break;else _0x125fb8['push'](_0x125fb8['shift']());}catch(_0x221b54){_0x125fb8['push'](_0x125fb8['shift']());}}}(_0x3e12,0x21999));import{Plugin as _0x411ba8}from'ckeditor5/src/core.js';import{Notification as _0xd92ab7}from'ckeditor5/src/ui.js';import _0x2e67e6 from'./exportpdfcommand.js';function _0x1e2a(_0x49281d,_0x565c6b){const _0x3e12b7=_0x3e12();return _0x1e2a=function(_0x1e2a81,_0x5c29e5){_0x1e2a81=_0x1e2a81-0x150;let _0x533036=_0x3e12b7[_0x1e2a81];return _0x533036;},_0x1e2a(_0x49281d,_0x565c6b);}import _0x24f0ed from'./exportpdfui.js';export default class s extends _0x411ba8{static get[_0xd99a2f(0x15d)](){const _0x4dc0fa=_0xd99a2f;return _0x4dc0fa(0x16a);}static get[_0xd99a2f(0x165)](){const _0x29e374=_0xd99a2f;return[_0x29e374(0x160),_0xd92ab7,_0x24f0ed];}[_0xd99a2f(0x155)](){const _0x20a287=_0xd99a2f,_0x4d58de=this[_0x20a287(0x15a)],_0xdd0201=_0x4d58de[_0x20a287(0x15e)][_0x20a287(0x152)](_0x20a287(0x168))||{};_0x4d58de[_0x20a287(0x156)][_0x20a287(0x15f)](_0x20a287(0x168),new _0x2e67e6(_0x4d58de));const _0x3b0d23=_0x4d58de[_0x20a287(0x15b)][_0x20a287(0x152)](_0x20a287(0x160));!0x1===_0xdd0201[_0x20a287(0x157)]?this[_0x20a287(0x169)]=null:_0xdd0201[_0x20a287(0x157)]?_0x3b0d23[_0x20a287(0x166)](_0xdd0201[_0x20a287(0x157)])[_0x20a287(0x162)](_0x1548d3=>{const _0x4b4f09=_0x20a287;this[_0x4b4f09(0x169)]=_0x1548d3;}):this[_0x20a287(0x169)]=_0x3b0d23[_0x20a287(0x164)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0xd4c954}from'ckeditor5/src/core.js';import{getStyles as _0x279cc4}from'./utils.js';export default class o extends _0xd4c954{constructor(_0x44e0bd){super(_0x44e0bd),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x59c3d1={}){const _0x5efe8e=this['editor'],t=_0x5efe8e['t'],_0x16475d=_0x59c3d1['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x2320e8=_0x59c3d1['dataCallback']||(_0x499401=>_0x499401['data']['get']()),_0x22de74=_0x5efe8e['plugins']['get']('ExportPdf'),_0x17823d=_0x59c3d1['token']||_0x22de74['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x279cc4(_0x59c3d1['stylesheets']||['EDITOR_STYLES'])['then'](async _0x4f2810=>{_0x5efe8e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x5089a5={'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'+_0x5efe8e['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x2320e8(_0x5efe8e)+'\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':_0x4f2810,'options':_0x59c3d1['converterOptions']},_0x393545={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x17823d?{'Authorization':_0x17823d['value']}:null,'x-cs-app-id':_0x59c3d1['appID']||'cke5'},'body':JSON['stringify'](_0x5089a5)};return window['fetch'](_0x16475d,_0x393545)['then'](_0x4c996a=>{if(0xc8!==_0x4c996a['status'])throw _0x4c996a;return _0x4c996a['blob']();})['then'](_0x4099da=>{_0x5efe8e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x2a3b41='function'==typeof _0x59c3d1['fileName']?_0x59c3d1['fileName']():_0x59c3d1['fileName'];this['_downloadFile'](_0x4099da,_0x2a3b41||'document.pdf');});})['catch'](_0x34e159=>{const _0x2071c9=_0x5efe8e['plugins']['get']('Notification');throw _0x5efe8e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x2071c9['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x34e159;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x11dc4a,_0x8d80c6){const _0x4aea51=document['createElement']('a');_0x4aea51['href']=window['URL']['createObjectURL'](_0x11dc4a),_0x4aea51['download']=_0x8d80c6,_0x4aea51['click'](),_0x4aea51['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x253b94}from'ckeditor5/src/core.js';import{ButtonView as _0x28ce1a,MenuBarMenuListItemButtonView as _0x3134c7,SpinnerView as _0x1bfd65}from'ckeditor5/src/ui.js';import _0x34d2d0 from'../theme/icons/exportpdf.svg';export default class i extends _0x253b94{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x1cfde0=this['editor'];_0x1cfde0['ui']['componentFactory']['add']('exportPdf',()=>{const _0x4c7994=this['_createButton'](_0x28ce1a),_0x3b29cd=_0x1cfde0['commands']['get']('exportPdf');return _0x4c7994['set']({'tooltip':!0x0}),_0x4c7994['bind']('isOn')['to'](_0x3b29cd,'isBusy'),_0x4c7994;}),_0x1cfde0['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x3134c7));}['_createButton'](_0x59018d){const _0x22596f=this['editor'],_0x5d440a=_0x22596f['config']['get']('exportPdf')||{},t=_0x22596f['locale']['t'],_0x21ad15=_0x22596f['commands']['get']('exportPdf'),_0x251d32=new _0x59018d(_0x22596f['locale']),_0x2f76a0=new _0x1bfd65();return _0x251d32['children']['add'](_0x2f76a0),_0x2f76a0['bind']('isVisible')['to'](_0x21ad15,'isBusy'),_0x251d32['iconView']['bind']('isVisible')['to'](_0x21ad15,'isBusy',_0x2b8e0d=>!_0x2b8e0d),_0x251d32['set']({'icon':_0x34d2d0}),_0x251d32['bind']('isEnabled')['to'](_0x21ad15,'isEnabled'),_0x251d32['bind']('label')['to'](_0x21ad15,'isBusy',_0x3fd191=>t(_0x3fd191?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x251d32,'execute',()=>{_0x22596f['execute']('exportPdf',_0x5d440a),_0x22596f['editing']['view']['focus']();}),_0x251d32;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x24bd(_0x489a3b,_0x63c099){var _0x456a16=_0x456a();return _0x24bd=function(_0x24bd9d,_0x5927ca){_0x24bd9d=_0x24bd9d-0x7b;var _0x2b301d=_0x456a16[_0x24bd9d];return _0x2b301d;},_0x24bd(_0x489a3b,_0x63c099);}(function(_0x1a9ab2,_0x5275a1){var _0x366e01=_0x24bd,_0x10cecc=_0x1a9ab2();while(!![]){try{var _0x38cc2a=-parseInt(_0x366e01(0x7c))/0x1+parseInt(_0x366e01(0x7b))/0x2*(-parseInt(_0x366e01(0x7e))/0x3)+-parseInt(_0x366e01(0x7d))/0x4*(parseInt(_0x366e01(0x80))/0x5)+-parseInt(_0x366e01(0x82))/0x6+parseInt(_0x366e01(0x7f))/0x7+parseInt(_0x366e01(0x84))/0x8*(parseInt(_0x366e01(0x81))/0x9)+parseInt(_0x366e01(0x83))/0xa;if(_0x38cc2a===_0x5275a1)break;else _0x10cecc['push'](_0x10cecc['shift']());}catch(_0x2cb4b2){_0x10cecc['push'](_0x10cecc['shift']());}}}(_0x456a,0xd8e81));export{default as ExportPdf}from'./exportpdf.js';function _0x456a(){var _0x4ff79d=['134163NZtoNx','7495998OCpbAz','38225070CLAnVt','16jRrGRh','154QeAspE','355601WLewas','4968724fhmOCr','6267helKhS','308672dEGYTZ','5tdbpeK'];_0x456a=function(){return _0x4ff79d;};return _0x456a();}import'./augmentation.js';
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1db38e,_0x215f2f){const _0x26fd90=_0xd0e4,_0x846838=_0x1db38e();while(!![]){try{const _0x12275a=parseInt(_0x26fd90(0xcf))/0x1+parseInt(_0x26fd90(0xd3))/0x2+parseInt(_0x26fd90(0xe1))/0x3+parseInt(_0x26fd90(0xd0))/0x4*(-parseInt(_0x26fd90(0xca))/0x5)+parseInt(_0x26fd90(0xdd))/0x6*(parseInt(_0x26fd90(0xc7))/0x7)+-parseInt(_0x26fd90(0xe0))/0x8+-parseInt(_0x26fd90(0xd1))/0x9*(parseInt(_0x26fd90(0xda))/0xa);if(_0x12275a===_0x215f2f)break;else _0x846838['push'](_0x846838['shift']());}catch(_0x435c7c){_0x846838['push'](_0x846838['shift']());}}}(_0x4afc,0x5b852));function _0xd0e4(_0x5d89eb,_0xb38273){const _0x4afc6f=_0x4afc();return _0xd0e4=function(_0xd0e4b2,_0x161e00){_0xd0e4b2=_0xd0e4b2-0xc6;let _0x28dd8b=_0x4afc6f[_0xd0e4b2];return _0x28dd8b;},_0xd0e4(_0x5d89eb,_0xb38273);}export function getStyles(_0x35bcf2){const _0x4577ca=_0xd0e4;if(!_0x35bcf2)return new Promise(_0x2fcc5d=>_0x2fcc5d(''));const _0x402fb0=[];for(const _0x2058fa of _0x35bcf2)_0x4577ca(0xc9)!==_0x2058fa?_0x402fb0[_0x4577ca(0xcd)](window[_0x4577ca(0xe3)](_0x2058fa)[_0x4577ca(0xdc)](_0xa4324f=>_0xa4324f[_0x4577ca(0xe4)]())):_0x402fb0[_0x4577ca(0xcd)](f());return Promise[_0x4577ca(0xd9)](_0x402fb0)[_0x4577ca(0xdc)](_0x26ba0d=>_0x26ba0d[_0x4577ca(0xdf)]('\x20')[_0x4577ca(0xd8)]());}function _0x4afc(){const _0x19fff7=['49576NcqDsH','42648KOCzUv','1171638IlRWjA','length','1064574zUKxGa','data-cke','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.','from','indexOf','trim','all','40gZHlkP','ownerNode','then','2792436YIpQBk',':root','join','5546496fkFVZt','1976757kFaWDF','warn','fetch','text','styleSheets','7pjKgWD','hasAttribute','EDITOR_STYLES','55FRoQGU','.ck-content','cssRules','push','cssText'];_0x4afc=function(){return _0x19fff7;};return _0x4afc();}function f(){const _0x351bfb=_0xd0e4,_0x1ddee8=[],_0x526fdf=[];for(const _0x3f0051 of Array[_0x351bfb(0xd6)](document[_0x351bfb(0xc6)])){if(_0x3f0051[_0x351bfb(0xdb)][_0x351bfb(0xc8)](_0x351bfb(0xd4))){for(const _0x237312 of Array[_0x351bfb(0xd6)](_0x3f0051[_0x351bfb(0xcc)]))-0x1!==_0x237312[_0x351bfb(0xce)][_0x351bfb(0xd7)](_0x351bfb(0xcb))?_0x1ddee8[_0x351bfb(0xcd)](_0x237312[_0x351bfb(0xce)]):-0x1!==_0x237312[_0x351bfb(0xce)][_0x351bfb(0xd7)](_0x351bfb(0xde))&&_0x526fdf[_0x351bfb(0xcd)](_0x237312[_0x351bfb(0xce)]);}}return _0x1ddee8[_0x351bfb(0xd2)]||console[_0x351bfb(0xe2)](_0x351bfb(0xd5)),[..._0x526fdf,..._0x1ddee8][_0x351bfb(0xdf)]('\x20')[_0x351bfb(0xd8)]();}
|