@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240618.0 → 0.0.0-nightly-20240619.1
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-20240619.1",
|
|
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-20240619.1"
|
|
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 _0x5da8e8=_0x1e5d;(function(_0x1bf2f6,_0x279a89){const _0x2bf7ce=_0x1e5d,_0x56c329=_0x1bf2f6();while(!![]){try{const _0x2d14b9=parseInt(_0x2bf7ce(0x11d))/0x1*(-parseInt(_0x2bf7ce(0x10b))/0x2)+parseInt(_0x2bf7ce(0x116))/0x3*(-parseInt(_0x2bf7ce(0x11c))/0x4)+parseInt(_0x2bf7ce(0x114))/0x5*(-parseInt(_0x2bf7ce(0x120))/0x6)+parseInt(_0x2bf7ce(0x10a))/0x7+-parseInt(_0x2bf7ce(0x11f))/0x8*(-parseInt(_0x2bf7ce(0x118))/0x9)+parseInt(_0x2bf7ce(0x104))/0xa*(-parseInt(_0x2bf7ce(0x117))/0xb)+-parseInt(_0x2bf7ce(0x11b))/0xc*(-parseInt(_0x2bf7ce(0x106))/0xd);if(_0x2d14b9===_0x279a89)break;else _0x56c329['push'](_0x56c329['shift']());}catch(_0x5ef04c){_0x56c329['push'](_0x56c329['shift']());}}}(_0x1049,0x1b612));import{Plugin as _0x31ff4b}from'ckeditor5/src/core.js';import{Notification as _0x48f0a5}from'ckeditor5/src/ui.js';import _0x5c803c from'./exportpdfcommand.js';function _0x1e5d(_0x4fb7ce,_0x1cd01d){const _0x104927=_0x1049();return _0x1e5d=function(_0x1e5dd3,_0x21e182){_0x1e5dd3=_0x1e5dd3-0x103;let _0x3b79ef=_0x104927[_0x1e5dd3];return _0x3b79ef;},_0x1e5d(_0x4fb7ce,_0x1cd01d);}function _0x1049(){const _0x3a4198=['378894wqSMHB','exportPdf','10MRrAbV','plugins','26niijmM','registerTokenUrl','commands','init','1098951kTAewa','6qakPKl','ExportPdf','config','tokenUrl','then','requires','token','get','_token','5zzOOil','pluginName','6lLTRkz','1382117jLtIir','248715aPQrWU','editor','add','340920IKHEGq','7384arjmtR','6573qLOtQo','CloudServices','32YokGSp'];_0x1049=function(){return _0x3a4198;};return _0x1049();}import _0x331b80 from'./exportpdfui.js';export default class s extends _0x31ff4b{static get[_0x5da8e8(0x115)](){const _0x2338a2=_0x5da8e8;return _0x2338a2(0x10c);}static get[_0x5da8e8(0x110)](){const _0x5b67ba=_0x5da8e8;return[_0x5b67ba(0x11e),_0x48f0a5,_0x331b80];}[_0x5da8e8(0x109)](){const _0x4f4c21=_0x5da8e8,_0x1e6824=this[_0x4f4c21(0x119)],_0x4280a8=_0x1e6824[_0x4f4c21(0x10d)][_0x4f4c21(0x112)](_0x4f4c21(0x103))||{};_0x1e6824[_0x4f4c21(0x108)][_0x4f4c21(0x11a)](_0x4f4c21(0x103),new _0x5c803c(_0x1e6824));const _0x135fb1=_0x1e6824[_0x4f4c21(0x105)][_0x4f4c21(0x112)](_0x4f4c21(0x11e));!0x1===_0x4280a8[_0x4f4c21(0x10e)]?this[_0x4f4c21(0x113)]=null:_0x4280a8[_0x4f4c21(0x10e)]?_0x135fb1[_0x4f4c21(0x107)](_0x4280a8[_0x4f4c21(0x10e)])[_0x4f4c21(0x10f)](_0x1c00b4=>{const _0x137706=_0x4f4c21;this[_0x137706(0x113)]=_0x1c00b4;}):this[_0x4f4c21(0x113)]=_0x135fb1[_0x4f4c21(0x111)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x48785a}from'ckeditor5/src/core.js';import{getStyles as _0x483b04}from'./utils.js';export default class o extends _0x48785a{constructor(_0x1eb735){super(_0x1eb735),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x461b86={}){const _0x5a8773=this['editor'],t=_0x5a8773['t'],_0x5847ff=_0x461b86['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x56c7ab=_0x461b86['dataCallback']||(_0x4dc940=>_0x4dc940['data']['get']()),_0x315c7c=_0x5a8773['plugins']['get']('ExportPdf'),_0x4fcd06=_0x461b86['token']||_0x315c7c['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x483b04(_0x461b86['stylesheets']||['EDITOR_STYLES'])['then'](async _0x2aa42e=>{_0x5a8773['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x5cbc95={'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'+_0x5a8773['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x56c7ab(_0x5a8773)+'\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':_0x2aa42e,'options':_0x461b86['converterOptions']},_0x35acf3={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x4fcd06?{'Authorization':_0x4fcd06['value']}:null,'x-cs-app-id':_0x461b86['appID']||'cke5'},'body':JSON['stringify'](_0x5cbc95)};return window['fetch'](_0x5847ff,_0x35acf3)['then'](_0x338785=>{if(0xc8!==_0x338785['status'])throw _0x338785;return _0x338785['blob']();})['then'](_0x3c22d2=>{_0x5a8773['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x5b8504='function'==typeof _0x461b86['fileName']?_0x461b86['fileName']():_0x461b86['fileName'];this['_downloadFile'](_0x3c22d2,_0x5b8504||'document.pdf');});})['catch'](_0x388c1e=>{const _0x1f53fc=_0x5a8773['plugins']['get']('Notification');throw _0x5a8773['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x1f53fc['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x388c1e;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xd331eb,_0x139260){const _0x2dbebc=document['createElement']('a');_0x2dbebc['href']=window['URL']['createObjectURL'](_0xd331eb),_0x2dbebc['download']=_0x139260,_0x2dbebc['click'](),_0x2dbebc['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2c472c}from'ckeditor5/src/core.js';import{ButtonView as _0x5ecd91,MenuBarMenuListItemButtonView as _0x26bd8e,SpinnerView as _0x3e1b05}from'ckeditor5/src/ui.js';import _0x5d65ad from'../theme/icons/exportpdf.svg';export default class i extends _0x2c472c{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x1a7237=this['editor'];_0x1a7237['ui']['componentFactory']['add']('exportPdf',()=>{const _0x562455=this['_createButton'](_0x5ecd91),_0x2e5fa3=_0x1a7237['commands']['get']('exportPdf');return _0x562455['set']({'tooltip':!0x0}),_0x562455['bind']('isOn')['to'](_0x2e5fa3,'isBusy'),_0x562455;}),_0x1a7237['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x26bd8e));}['_createButton'](_0x5f3696){const _0x5439d3=this['editor'],_0x438a4f=_0x5439d3['config']['get']('exportPdf')||{},t=_0x5439d3['locale']['t'],_0x274f5d=_0x5439d3['commands']['get']('exportPdf'),_0x4af68e=new _0x5f3696(_0x5439d3['locale']),_0x35d472=new _0x3e1b05();return _0x4af68e['children']['add'](_0x35d472),_0x35d472['bind']('isVisible')['to'](_0x274f5d,'isBusy'),_0x4af68e['iconView']['bind']('isVisible')['to'](_0x274f5d,'isBusy',_0x15a437=>!_0x15a437),_0x4af68e['set']({'icon':_0x5d65ad}),_0x4af68e['bind']('isEnabled')['to'](_0x274f5d,'isEnabled'),_0x4af68e['bind']('label')['to'](_0x274f5d,'isBusy',_0x3b3e57=>t(_0x3b3e57?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x4af68e,'execute',()=>{_0x5439d3['execute']('exportPdf',_0x438a4f),_0x5439d3['editing']['view']['focus']();}),_0x4af68e;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x481acd,_0x3a76e0){var _0x594a7a=_0x39f3,_0x440892=_0x481acd();while(!![]){try{var _0x53852e=-parseInt(_0x594a7a(0x94))/0x1*(parseInt(_0x594a7a(0x92))/0x2)+parseInt(_0x594a7a(0x98))/0x3+parseInt(_0x594a7a(0x90))/0x4*(-parseInt(_0x594a7a(0x93))/0x5)+-parseInt(_0x594a7a(0x95))/0x6*(-parseInt(_0x594a7a(0x8f))/0x7)+parseInt(_0x594a7a(0x97))/0x8+-parseInt(_0x594a7a(0x96))/0x9+parseInt(_0x594a7a(0x91))/0xa;if(_0x53852e===_0x3a76e0)break;else _0x440892['push'](_0x440892['shift']());}catch(_0x4337a0){_0x440892['push'](_0x440892['shift']());}}}(_0x26fa,0xd33ec));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x39f3(_0x541e30,_0x8650d5){var _0x26faa8=_0x26fa();return _0x39f3=function(_0x39f312,_0x3d82b1){_0x39f312=_0x39f312-0x8f;var _0x318cea=_0x26faa8[_0x39f312];return _0x318cea;},_0x39f3(_0x541e30,_0x8650d5);}function _0x26fa(){var _0x44f699=['12140310BZwAXq','2LnEgzs','84565ZZSLKc','153379ELcTIW','30qstVyv','6985449FFkzyt','4410336ouGOat','2932932juWGdw','424753QKgOvv','296VvDifl'];_0x26fa=function(){return _0x44f699;};return _0x26fa();}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2499(_0x3ad47f,_0x5a1686){const _0x329f41=_0x329f();return _0x2499=function(_0x249988,_0x100a3d){_0x249988=_0x249988-0x120;let _0x481981=_0x329f41[_0x249988];return _0x481981;},_0x2499(_0x3ad47f,_0x5a1686);}(function(_0x5a83d2,_0x4a7826){const _0xa00e36=_0x2499,_0x1ed8f2=_0x5a83d2();while(!![]){try{const _0x56554b=parseInt(_0xa00e36(0x122))/0x1*(parseInt(_0xa00e36(0x12f))/0x2)+-parseInt(_0xa00e36(0x138))/0x3*(parseInt(_0xa00e36(0x12d))/0x4)+-parseInt(_0xa00e36(0x130))/0x5*(parseInt(_0xa00e36(0x134))/0x6)+-parseInt(_0xa00e36(0x133))/0x7+-parseInt(_0xa00e36(0x13b))/0x8*(parseInt(_0xa00e36(0x136))/0x9)+-parseInt(_0xa00e36(0x125))/0xa*(parseInt(_0xa00e36(0x140))/0xb)+parseInt(_0xa00e36(0x13f))/0xc;if(_0x56554b===_0x4a7826)break;else _0x1ed8f2['push'](_0x1ed8f2['shift']());}catch(_0x3811c3){_0x1ed8f2['push'](_0x1ed8f2['shift']());}}}(_0x329f,0x92b2b));export function getStyles(_0x38352e){const _0x20209d=_0x2499;if(!_0x38352e)return new Promise(_0x58083e=>_0x58083e(''));const _0x3179d6=[];for(const _0x3aa626 of _0x38352e)_0x20209d(0x123)!==_0x3aa626?_0x3179d6[_0x20209d(0x124)](window[_0x20209d(0x128)](_0x3aa626)[_0x20209d(0x137)](_0x103183=>_0x103183[_0x20209d(0x126)]())):_0x3179d6[_0x20209d(0x124)](f());return Promise[_0x20209d(0x13d)](_0x3179d6)[_0x20209d(0x137)](_0x4a3584=>_0x4a3584[_0x20209d(0x135)]('\x20')[_0x20209d(0x131)]());}function f(){const _0x36532d=_0x2499,_0x1def03=[],_0x4fbcfb=[];for(const _0x46a436 of Array[_0x36532d(0x129)](document[_0x36532d(0x12a)])){if(_0x46a436[_0x36532d(0x13e)][_0x36532d(0x120)](_0x36532d(0x13c))){for(const _0x4aeeaf of Array[_0x36532d(0x129)](_0x46a436[_0x36532d(0x121)]))-0x1!==_0x4aeeaf[_0x36532d(0x12e)][_0x36532d(0x13a)](_0x36532d(0x12c))?_0x1def03[_0x36532d(0x124)](_0x4aeeaf[_0x36532d(0x12e)]):-0x1!==_0x4aeeaf[_0x36532d(0x12e)][_0x36532d(0x13a)](_0x36532d(0x12b))&&_0x4fbcfb[_0x36532d(0x124)](_0x4aeeaf[_0x36532d(0x12e)]);}}return _0x1def03[_0x36532d(0x127)]||console[_0x36532d(0x132)](_0x36532d(0x139)),[..._0x4fbcfb,..._0x1def03][_0x36532d(0x135)]('\x20')[_0x36532d(0x131)]();}function _0x329f(){const _0x18cd60=['ownerNode','35205108XLLSGE','121aXHHmV','hasAttribute','cssRules','2UwzDtG','EDITOR_STYLES','push','171250iAcYRu','text','length','fetch','from','styleSheets',':root','.ck-content','301020wblUyZ','cssText','51374xNLmEl','812670oHsVey','trim','warn','2250871KkBqEL','6Cqpkej','join','5246739tmQzkP','then','45hOQoJm','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.','indexOf','8dTcHlg','data-cke','all'];_0x329f=function(){return _0x18cd60;};return _0x329f();}
|