@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20241216.0 → 0.0.0-nightly-20241218.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/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.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/bs.js +1 -1
- package/dist/translations/bs.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-ch.js +1 -1
- package/dist/translations/de-ch.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-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.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/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.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/gu.js +1 -1
- package/dist/translations/gu.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/hy.js +1 -1
- package/dist/translations/hy.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/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.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/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.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/oc.js +1 -1
- package/dist/translations/oc.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/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.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/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.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/uz.js +1 -1
- package/dist/translations/uz.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 +23 -4
- 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/common-translations.js +1 -1
- package/src/utils.js +1 -1
- package/dist/augmentation.d.ts +0 -25
- package/dist/exportpdf.d.ts +0 -242
- package/dist/exportpdfcommand.d.ts +0 -43
- package/dist/exportpdfui.d.ts +0 -35
- package/dist/index.d.ts +0 -14
- package/dist/utils/common-translations.d.ts +0 -13
- package/dist/utils.d.ts +0 -14
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x344bb5=_0x4821;function _0x1c3f(){const _0x468228=['finally','MergeFieldsEditing','isEnabled','blob','pending','converterUrl','fileName','editor','12mwTcnl','4uJVgvP','PDF\x20export\x20started','1443BuuhCi','POST','stringify','EDITOR_STYLES','has','plugins','appID','remove','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','184880wxRgsU','_downloadFile','dataCallback','previewMode','application/pdf','getDefaultValues','ariaLiveAnnouncer','876oiajIm','218273drODUX','MergeFields','refresh','assertive','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','announce','createObjectURL','URL','3342WltkdI','4441104EVROyE','createElement','application/json','isBusy','$defaultValues','click','execute','Notification','PDF\x20export\x20successful','https://pdf-converter.cke-cs.com/v1/convert/','getDataSetValues','then','download','stylesheets','<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','45sKAnvK','getMergeFieldsIds','catch','converterOptions','locale','651974flLmCr','document.pdf','showWarning','mergeFields','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','$labels','value','data','token','merge_fields','entries','affectsData','status','PDF\x20export\x20failed','set','config','ExportPdf','cke5','getLabel','get','400430KOdDko','469777veAPaD','href','fetch','_token','contentLanguageDirection','function'];_0x1c3f=function(){return _0x468228;};return _0x1c3f();}(function(_0x38d2ae,_0xa3c7ed){const _0x5811e6=_0x4821,_0x3300b9=_0x38d2ae();while(!![]){try{const _0x429fff=parseInt(_0x5811e6(0x15d))/0x1+-parseInt(_0x5811e6(0x148))/0x2*(-parseInt(_0x5811e6(0x12f))/0x3)+parseInt(_0x5811e6(0x12d))/0x4*(parseInt(_0x5811e6(0x138))/0x5)+parseInt(_0x5811e6(0x12c))/0x6*(parseInt(_0x5811e6(0x11e))/0x7)+parseInt(_0x5811e6(0x149))/0x8+-parseInt(_0x5811e6(0x158))/0x9*(parseInt(_0x5811e6(0x11d))/0xa)+parseInt(_0x5811e6(0x140))/0xb*(-parseInt(_0x5811e6(0x13f))/0xc);if(_0x429fff===_0xa3c7ed)break;else _0x3300b9['push'](_0x3300b9['shift']());}catch(_0x758af9){_0x3300b9['push'](_0x3300b9['shift']());}}}(_0x1c3f,0x8233b));import{Command as _0x597134}from'ckeditor5/src/core.js';function _0x4821(_0x2f4904,_0x54a9e7){const _0x1c3f04=_0x1c3f();return _0x4821=function(_0x482110,_0x457787){_0x482110=_0x482110-0x10c;let _0x3ea29d=_0x1c3f04[_0x482110];return _0x3ea29d;},_0x4821(_0x2f4904,_0x54a9e7);}import{getStyles as _0x19a697}from'./utils.js';import{getTranslation as _0xa31a7}from'./utils/common-translations.js';export default class e extends _0x597134{constructor(_0x659b07){const _0x2d8fa8=_0x4821;super(_0x659b07),this[_0x2d8fa8(0x117)](_0x2d8fa8(0x14c),!0x1),this[_0x2d8fa8(0x114)]=!0x1;}[_0x344bb5(0x142)](){const _0x345a71=_0x344bb5;this[_0x345a71(0x126)]=!this[_0x345a71(0x14c)],this[_0x345a71(0x10f)]=this[_0x345a71(0x14c)]?_0x345a71(0x128):void 0x0;}[_0x344bb5(0x14f)](_0x377c7c={}){const _0x59d543=_0x344bb5,_0x3ab15c=this[_0x59d543(0x12b)],_0x58f21d=_0x377c7c[_0x59d543(0x129)]||_0x59d543(0x152),_0x239763=_0x377c7c[_0x59d543(0x13a)]||(_0x3be8b7=>_0x3be8b7[_0x59d543(0x110)][_0x59d543(0x11c)]()),_0x56aa42=_0x3ab15c[_0x59d543(0x134)][_0x59d543(0x11c)](_0x59d543(0x119)),_0x1b365c=_0x377c7c[_0x59d543(0x111)]||_0x56aa42[_0x59d543(0x121)];return this[_0x59d543(0x14c)]=!0x0,this[_0x59d543(0x142)](),_0x19a697(_0x377c7c[_0x59d543(0x156)]||[_0x59d543(0x132)])[_0x59d543(0x154)](async _0x587fce=>{const _0x5cb3ac=_0x59d543;if(_0x3ab15c['ui'][_0x5cb3ac(0x13e)][_0x5cb3ac(0x145)](_0xa31a7(_0x3ab15c[_0x5cb3ac(0x15c)],_0x5cb3ac(0x12e))),_0x3ab15c[_0x5cb3ac(0x134)][_0x5cb3ac(0x133)](_0x5cb3ac(0x141))){_0x377c7c[_0x5cb3ac(0x15b)]||(_0x377c7c[_0x5cb3ac(0x15b)]={});const _0x29fc4f=_0x3ab15c[_0x5cb3ac(0x134)][_0x5cb3ac(0x11c)](_0x5cb3ac(0x125)),_0x42f588=_0x29fc4f[_0x5cb3ac(0x13b)],{prefix:_0x373a25,suffix:_0x2bb671}=_0x3ab15c[_0x5cb3ac(0x118)][_0x5cb3ac(0x11c)](_0x5cb3ac(0x10c)),_0x2206b0={'prefix':_0x373a25,'suffix':_0x2bb671,'data':{}};if(_0x5cb3ac(0x10e)===_0x42f588){for(const _0xf950fc of _0x29fc4f[_0x5cb3ac(0x159)]())_0x2206b0[_0x5cb3ac(0x110)][_0xf950fc]=_0x373a25+_0x29fc4f[_0x5cb3ac(0x11b)](_0xf950fc)+_0x2bb671;}else{const _0x175290=_0x5cb3ac(0x14d)===_0x42f588?_0x29fc4f[_0x5cb3ac(0x13d)]():_0x29fc4f[_0x5cb3ac(0x153)](_0x42f588,!0x0);for(const _0x252076 of Object[_0x5cb3ac(0x113)](_0x175290)){const [_0x274078,_0x358a69]=_0x252076;_0x2206b0[_0x5cb3ac(0x110)][_0x274078]=null!==_0x358a69?_0x358a69:_0x29fc4f[_0x5cb3ac(0x11b)](_0x274078);}}_0x377c7c[_0x5cb3ac(0x15b)][_0x5cb3ac(0x112)]=_0x2206b0;}const _0x5bf808={'html':_0x5cb3ac(0x157)+_0x3ab15c[_0x5cb3ac(0x15c)][_0x5cb3ac(0x122)]+_0x5cb3ac(0x144)+await _0x239763(_0x3ab15c)+_0x5cb3ac(0x137),'css':_0x587fce,'options':_0x377c7c[_0x5cb3ac(0x15b)]},_0x18b1e6={'method':_0x5cb3ac(0x130),'headers':{'Content-Type':_0x5cb3ac(0x14b),'Accept':_0x5cb3ac(0x13c),..._0x1b365c?{'Authorization':_0x1b365c[_0x5cb3ac(0x10f)]}:null,'x-cs-app-id':_0x377c7c[_0x5cb3ac(0x135)]||_0x5cb3ac(0x11a)},'body':JSON[_0x5cb3ac(0x131)](_0x5bf808)};return window[_0x5cb3ac(0x120)](_0x58f21d,_0x18b1e6)[_0x5cb3ac(0x154)](_0x54fddf=>{const _0x2b0160=_0x5cb3ac;if(0xc8!==_0x54fddf[_0x2b0160(0x115)])throw _0x54fddf;return _0x54fddf[_0x2b0160(0x127)]();})[_0x5cb3ac(0x154)](_0x2ed0c7=>{const _0x217717=_0x5cb3ac;_0x3ab15c['ui'][_0x217717(0x13e)][_0x217717(0x145)](_0xa31a7(_0x3ab15c[_0x217717(0x15c)],_0x217717(0x151)));const _0x38a57d=_0x217717(0x123)==typeof _0x377c7c[_0x217717(0x12a)]?_0x377c7c[_0x217717(0x12a)]():_0x377c7c[_0x217717(0x12a)];this[_0x217717(0x139)](_0x2ed0c7,_0x38a57d||_0x217717(0x15e));});})[_0x59d543(0x15a)](_0x5367df=>{const _0xff800=_0x59d543,_0x503836=_0x3ab15c[_0xff800(0x134)][_0xff800(0x11c)](_0xff800(0x150));throw _0x3ab15c['ui'][_0xff800(0x13e)][_0xff800(0x145)](_0xa31a7(_0x3ab15c[_0xff800(0x15c)],_0xff800(0x116)),{'politeness':_0xff800(0x143)}),_0x503836[_0xff800(0x15f)](_0xa31a7(_0x3ab15c[_0xff800(0x15c)],_0xff800(0x10d))),_0x5367df;})[_0x59d543(0x124)](()=>{const _0x55a55e=_0x59d543;this[_0x55a55e(0x14c)]=!0x1,this[_0x55a55e(0x142)]();});}[_0x344bb5(0x139)](_0x5359d5,_0x2a043f){const _0x4b9523=_0x344bb5,_0x30a324=document[_0x4b9523(0x14a)]('a');_0x30a324[_0x4b9523(0x11f)]=window[_0x4b9523(0x147)][_0x4b9523(0x146)](_0x5359d5),_0x30a324[_0x4b9523(0x155)]=_0x2a043f,_0x30a324[_0x4b9523(0x14e)](),_0x30a324[_0x4b9523(0x136)]();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5aac(_0x37777e,_0x4b0d13){const _0x3fe1b8=_0x3fe1();return _0x5aac=function(_0x5aac75,_0x12eb53){_0x5aac75=_0x5aac75-0x15a;let _0x2262bb=_0x3fe1b8[_0x5aac75];return _0x2262bb;},_0x5aac(_0x37777e,_0x4b0d13);}const _0x13a849=_0x5aac;function _0x3fe1(){const _0x2a580c=['isBusy','9175671cJkGUY','52211MbufUk','children','view','exportPdf','pluginName','6433660NPLjZv','listenTo','isOfficialPlugin','isEnabled','2381771iSvbiW','componentFactory','iconView','focus','locale','2009248nbEbMq','2375625caTLlD','init','30PeADPR','editor','config','menuBar:exportPdf','add','_createButton','execute','bind','Export\x20to\x20PDF','8uDMJQA','set','8mwAIma','440515fRhQeB','isPremiumPlugin','editing','isVisible','get','Exporting\x20PDF\x20document','label','commands','ExportPdfUI','isOn'];_0x3fe1=function(){return _0x2a580c;};return _0x3fe1();}(function(_0x157c54,_0x58429c){const _0x35cd3f=_0x5aac,_0x4bb3f8=_0x157c54();while(!![]){try{const _0x17d1cf=-parseInt(_0x35cd3f(0x15f))/0x1*(parseInt(_0x35cd3f(0x17b))/0x2)+parseInt(_0x35cd3f(0x16e))/0x3+-parseInt(_0x35cd3f(0x16d))/0x4+parseInt(_0x35cd3f(0x17c))/0x5*(parseInt(_0x35cd3f(0x170))/0x6)+-parseInt(_0x35cd3f(0x168))/0x7+-parseInt(_0x35cd3f(0x179))/0x8*(-parseInt(_0x35cd3f(0x15e))/0x9)+-parseInt(_0x35cd3f(0x164))/0xa;if(_0x17d1cf===_0x58429c)break;else _0x4bb3f8['push'](_0x4bb3f8['shift']());}catch(_0x2bc30c){_0x4bb3f8['push'](_0x4bb3f8['shift']());}}}(_0x3fe1,0x8804e));import{Plugin as _0x4ad098}from'ckeditor5/src/core.js';import{ButtonView as _0x42416d,MenuBarMenuListItemButtonView as _0x420b43,SpinnerView as _0x244bd5}from'ckeditor5/src/ui.js';import _0x35059d from'../theme/icons/exportpdf.svg';import{getTranslation as _0xfff648}from'./utils/common-translations.js';export default class s extends _0x4ad098{static get[_0x13a849(0x163)](){const _0x3401ea=_0x13a849;return _0x3401ea(0x15b);}static get[_0x13a849(0x166)](){return!0x0;}static get[_0x13a849(0x17d)](){return!0x0;}[_0x13a849(0x16f)](){const _0x4b47e6=_0x13a849,_0x478176=this[_0x4b47e6(0x171)];_0x478176['ui'][_0x4b47e6(0x169)][_0x4b47e6(0x174)](_0x4b47e6(0x162),()=>{const _0x30acc4=_0x4b47e6,_0x7ed7ef=this[_0x30acc4(0x175)](_0x42416d),_0x5f5e0c=_0x478176[_0x30acc4(0x15a)][_0x30acc4(0x180)](_0x30acc4(0x162));return _0x7ed7ef[_0x30acc4(0x17a)]({'tooltip':!0x0}),_0x7ed7ef[_0x30acc4(0x177)](_0x30acc4(0x15c))['to'](_0x5f5e0c,_0x30acc4(0x15d)),_0x7ed7ef;}),_0x478176['ui'][_0x4b47e6(0x169)][_0x4b47e6(0x174)](_0x4b47e6(0x173),()=>this[_0x4b47e6(0x175)](_0x420b43));}[_0x13a849(0x175)](_0x1429f5){const _0x24db6e=_0x13a849,_0x5c0096=this[_0x24db6e(0x171)],_0x37016=_0x5c0096[_0x24db6e(0x172)][_0x24db6e(0x180)](_0x24db6e(0x162))||{},_0x53a3fa=_0x5c0096[_0x24db6e(0x15a)][_0x24db6e(0x180)](_0x24db6e(0x162)),_0x4c78e1=new _0x1429f5(_0x5c0096[_0x24db6e(0x16c)]),_0x267e5f=new _0x244bd5();return _0x4c78e1[_0x24db6e(0x160)][_0x24db6e(0x174)](_0x267e5f),_0x267e5f[_0x24db6e(0x177)](_0x24db6e(0x17f))['to'](_0x53a3fa,_0x24db6e(0x15d)),_0x4c78e1[_0x24db6e(0x16a)][_0x24db6e(0x177)](_0x24db6e(0x17f))['to'](_0x53a3fa,_0x24db6e(0x15d),_0x4d26a8=>!_0x4d26a8),_0x4c78e1[_0x24db6e(0x17a)]({'icon':_0x35059d}),_0x4c78e1[_0x24db6e(0x177)](_0x24db6e(0x167))['to'](_0x53a3fa,_0x24db6e(0x167)),_0x4c78e1[_0x24db6e(0x177)](_0x24db6e(0x182))['to'](_0x53a3fa,_0x24db6e(0x15d),_0xfa8238=>_0xfff648(_0x5c0096[_0x24db6e(0x16c)],_0xfa8238?_0x24db6e(0x181):_0x24db6e(0x178))),this[_0x24db6e(0x165)](_0x4c78e1,_0x24db6e(0x176),()=>{const _0x5b20a6=_0x24db6e;_0x5c0096[_0x5b20a6(0x176)](_0x5b20a6(0x162),_0x37016),_0x5c0096[_0x5b20a6(0x17e)][_0x5b20a6(0x161)][_0x5b20a6(0x16b)]();}),_0x4c78e1;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5821d6,_0x56a87f){var _0x2aa0dc=_0x22d0,_0x1b7225=_0x5821d6();while(!![]){try{var _0x1f5159=-parseInt(_0x2aa0dc(0xe5))/0x1*(-parseInt(_0x2aa0dc(0xe1))/0x2)+-parseInt(_0x2aa0dc(0xe6))/0x3+-parseInt(_0x2aa0dc(0xe7))/0x4+parseInt(_0x2aa0dc(0xe0))/0x5+parseInt(_0x2aa0dc(0xde))/0x6*(-parseInt(_0x2aa0dc(0xe3))/0x7)+-parseInt(_0x2aa0dc(0xdf))/0x8*(parseInt(_0x2aa0dc(0xe4))/0x9)+-parseInt(_0x2aa0dc(0xdd))/0xa*(-parseInt(_0x2aa0dc(0xe2))/0xb);if(_0x1f5159===_0x56a87f)break;else _0x1b7225['push'](_0x1b7225['shift']());}catch(_0x29fee4){_0x1b7225['push'](_0x1b7225['shift']());}}}(_0x49d7,0x2c4b3));function _0x49d7(){var _0x503768=['35320XLjSZn','117690DCLTTv','10dPKZXs','4411IJXYFj','7jsChsG','216dqiief','64861BiJWgh','381804pfXqmq','286272JaAUCo','11420OivhNy','1917372mXsEiO'];_0x49d7=function(){return _0x503768;};return _0x49d7();}export{default as ExportPdf}from'./exportpdf.js';function _0x22d0(_0x3a7797,_0x1b43e6){var _0x49d73d=_0x49d7();return _0x22d0=function(_0x22d0ca,_0x469fec){_0x22d0ca=_0x22d0ca-0xdd;var _0x19e838=_0x49d73d[_0x22d0ca];return _0x19e838;},_0x22d0(_0x3a7797,_0x1b43e6);}import'./augmentation.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x5ad929,_0x54f6c2){const t=_0x5ad929['t'];switch(_0x54f6c2){case'Export\x20to\x20PDF':return t('Export\x20to\x20PDF');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.');case'PDF\x20export\x20started':return t('PDF\x20export\x20started');case'PDF\x20export\x20failed':return t('PDF\x20export\x20failed');case'PDF\x20export\x20successful':return t('PDF\x20export\x20successful');case'Exporting\x20PDF\x20document':return t('Exporting\x20PDF\x20document');default:return _0x54f6c2;}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x13f421,_0x41c130){const _0x3a9da5=_0x2e52,_0x5f0834=_0x13f421();while(!![]){try{const _0x217bcb=parseInt(_0x3a9da5(0xb7))/0x1*(parseInt(_0x3a9da5(0xcf))/0x2)+parseInt(_0x3a9da5(0xc6))/0x3*(parseInt(_0x3a9da5(0xd6))/0x4)+-parseInt(_0x3a9da5(0xc7))/0x5*(parseInt(_0x3a9da5(0xc5))/0x6)+-parseInt(_0x3a9da5(0xd2))/0x7*(-parseInt(_0x3a9da5(0xca))/0x8)+-parseInt(_0x3a9da5(0xd4))/0x9*(parseInt(_0x3a9da5(0xd5))/0xa)+-parseInt(_0x3a9da5(0xba))/0xb+parseInt(_0x3a9da5(0xc1))/0xc;if(_0x217bcb===_0x41c130)break;else _0x5f0834['push'](_0x5f0834['shift']());}catch(_0x3fa44){_0x5f0834['push'](_0x5f0834['shift']());}}}(_0x1416,0x33582));function _0x2e52(_0x41c2e6,_0x500973){const _0x141631=_0x1416();return _0x2e52=function(_0x2e5270,_0x39a9ca){_0x2e5270=_0x2e5270-0xb6;let _0xa3e88e=_0x141631[_0x2e5270];return _0xa3e88e;},_0x2e52(_0x41c2e6,_0x500973);}export function getStyles(_0x183d2f){const _0x4f238b=_0x2e52;if(!_0x183d2f)return new Promise(_0x4e5b73=>_0x4e5b73(''));const _0x4ac895=[];for(const _0x473a1c of _0x183d2f)_0x4f238b(0xc3)!==_0x473a1c?_0x4ac895[_0x4f238b(0xbf)](window[_0x4f238b(0xd0)](_0x473a1c)[_0x4f238b(0xb8)](_0x2d1840=>_0x2d1840[_0x4f238b(0xc2)]())):_0x4ac895[_0x4f238b(0xbf)](a());return Promise[_0x4f238b(0xcc)](_0x4ac895)[_0x4f238b(0xb8)](_0x489716=>_0x489716[_0x4f238b(0xc4)]('\x20')[_0x4f238b(0xcb)]());}function _0x1416(){const _0x645e72=['54RzYSOz','6HRorhT','108695orxuBi','ownerNode','indexOf','632wNGBaR','trim','all','data-cke','.ck-content','2MilBhx','fetch','length','23793NMYpiA','cssText','333PLXkQO','80100qlDCNc','776508eqEVEu','hasAttribute','81216tQnlkH','then','from','1874730vLleqA','warn','styleSheets',':root','cssRules','push','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.','1617192ejVdsX','text','EDITOR_STYLES','join'];_0x1416=function(){return _0x645e72;};return _0x1416();}function a(){const _0x30c53d=_0x2e52,_0x4f087b=[],_0x2e3c66=[];for(const _0x44177c of Array[_0x30c53d(0xb9)](document[_0x30c53d(0xbc)])){if(_0x44177c[_0x30c53d(0xc8)][_0x30c53d(0xb6)](_0x30c53d(0xcd))){for(const _0x39d889 of Array[_0x30c53d(0xb9)](_0x44177c[_0x30c53d(0xbe)]))-0x1!==_0x39d889[_0x30c53d(0xd3)][_0x30c53d(0xc9)](_0x30c53d(0xce))?_0x4f087b[_0x30c53d(0xbf)](_0x39d889[_0x30c53d(0xd3)]):-0x1!==_0x39d889[_0x30c53d(0xd3)][_0x30c53d(0xc9)](_0x30c53d(0xbd))&&_0x2e3c66[_0x30c53d(0xbf)](_0x39d889[_0x30c53d(0xd3)]);}}return _0x4f087b[_0x30c53d(0xd1)]||console[_0x30c53d(0xbb)](_0x30c53d(0xc0)),[..._0x2e3c66,..._0x4f087b][_0x30c53d(0xc4)]('\x20')[_0x30c53d(0xcb)]();}
|
package/dist/augmentation.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { ExportPdfConfig, ExportPdf, ExportPdfCommand } from './index.js';
|
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
-
interface EditorConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The configuration of the {@link module:export-pdf/exportpdf~ExportPdf export to PDF feature}.
|
|
14
|
-
*
|
|
15
|
-
* Read more in {@link module:export-pdf/exportpdf~ExportPdfConfig}.
|
|
16
|
-
*/
|
|
17
|
-
exportPdf?: ExportPdfConfig;
|
|
18
|
-
}
|
|
19
|
-
interface PluginsMap {
|
|
20
|
-
[ExportPdf.pluginName]: ExportPdf;
|
|
21
|
-
}
|
|
22
|
-
interface CommandsMap {
|
|
23
|
-
exportPdf: ExportPdfCommand;
|
|
24
|
-
}
|
|
25
|
-
}
|
package/dist/exportpdf.d.ts
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module export-pdf/exportpdf
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
import { Notification } from 'ckeditor5/src/ui.js';
|
|
15
|
-
import type { InitializedToken, TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
|
|
16
|
-
import ExportPdfUI from './exportpdfui.js';
|
|
17
|
-
/**
|
|
18
|
-
* The export to PDF feature.
|
|
19
|
-
*
|
|
20
|
-
* It allows you to generate a PDF file directly from the editor content.
|
|
21
|
-
*
|
|
22
|
-
* For a detailed overview, check the {@glink features/converters/export-pdf export to PDF} feature documentation.
|
|
23
|
-
*/
|
|
24
|
-
export default class ExportPdf extends Plugin {
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
static get pluginName(): "ExportPdf";
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
static get isOfficialPlugin(): true;
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
static get isPremiumPlugin(): true;
|
|
37
|
-
/**
|
|
38
|
-
* @inheritDoc
|
|
39
|
-
*/
|
|
40
|
-
static get requires(): readonly ["CloudServices", typeof Notification, typeof ExportPdfUI];
|
|
41
|
-
/**
|
|
42
|
-
* @inheritDoc
|
|
43
|
-
*/
|
|
44
|
-
init(): void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* The configuration of the export to PDF feature. It is used by the PDF export features from the `@ckeditor/ckeditor5-export-pdf` package.
|
|
48
|
-
*
|
|
49
|
-
* ```ts
|
|
50
|
-
* ClassicEditor
|
|
51
|
-
* .create( editorElement, {
|
|
52
|
-
* exportPdf: ... // Export to PDF feature options.
|
|
53
|
-
* } )
|
|
54
|
-
* .then( ... )
|
|
55
|
-
* .catch( ... );
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
59
|
-
*/
|
|
60
|
-
export interface ExportPdfConfig {
|
|
61
|
-
/**
|
|
62
|
-
* Paths to the `.css` files containing additional styling for the editor's content (**the order of provided items matters**).
|
|
63
|
-
*
|
|
64
|
-
* ```ts
|
|
65
|
-
* const exportPdfConfig = {
|
|
66
|
-
* stylesheets: [ './path/to/custom-style.css' ]
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* **NOTE:** If `stylesheets` are not provided, the plugin will sent only
|
|
71
|
-
* {@glink getting-started/setup/css the default editor content styles}
|
|
72
|
-
* to the converter.
|
|
73
|
-
*
|
|
74
|
-
* **Default editor's content styles**:
|
|
75
|
-
* {@glink getting-started/setup/css The default editor content styles}
|
|
76
|
-
* are applied to the generated PDF thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
|
|
77
|
-
* If you don't want them to be applied, you have to omit the token:
|
|
78
|
-
*
|
|
79
|
-
* **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
|
|
80
|
-
* In other setups you always need to pass the stylesheets.
|
|
81
|
-
*
|
|
82
|
-
* ```ts
|
|
83
|
-
* const exportPdfConfig = {
|
|
84
|
-
* stylesheets: [ './path/to/custom-editor-styles.css' ]
|
|
85
|
-
* }
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* **Web fonts:** If you want to {@glink features/converters/export-pdf#providing-web-font-styles use web fonts} in your PDF document,
|
|
89
|
-
* you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token and other style sheets:
|
|
90
|
-
*
|
|
91
|
-
* ```ts
|
|
92
|
-
* const exportPdfConfig = {
|
|
93
|
-
* stylesheets: [
|
|
94
|
-
* './path/to/fonts.css'
|
|
95
|
-
* './path/to/editor-styles.css',
|
|
96
|
-
* ]
|
|
97
|
-
* }
|
|
98
|
-
* ```
|
|
99
|
-
*
|
|
100
|
-
* **Web fonts and custom styling:** For more advanced styling, your configuration should look like this:
|
|
101
|
-
*
|
|
102
|
-
* ```ts
|
|
103
|
-
* const exportPdfConfig = {
|
|
104
|
-
* stylesheets: [
|
|
105
|
-
* './path/to/fonts.css',
|
|
106
|
-
* './path/to/editor-styles.css',
|
|
107
|
-
* './path/to/custom-styles.css'
|
|
108
|
-
* ]
|
|
109
|
-
* }
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @default `[ 'EDITOR_STYLES' ]`
|
|
113
|
-
*/
|
|
114
|
-
stylesheets?: Array<string>;
|
|
115
|
-
/**
|
|
116
|
-
* The name of the generated PDF file.
|
|
117
|
-
*
|
|
118
|
-
* ```ts
|
|
119
|
-
* // Static file name.
|
|
120
|
-
* const exportPdfConfig = {
|
|
121
|
-
* fileName: 'my-document.pdf'
|
|
122
|
-
* }
|
|
123
|
-
*
|
|
124
|
-
* // Dynamic file name.
|
|
125
|
-
* const exportPdfConfig = {
|
|
126
|
-
* fileName: () => {
|
|
127
|
-
* const articleTitle = document.querySelector( '#title' );
|
|
128
|
-
*
|
|
129
|
-
* return `${ articleTitle.value }.pdf`;
|
|
130
|
-
* }
|
|
131
|
-
* }
|
|
132
|
-
* ```
|
|
133
|
-
*
|
|
134
|
-
* **NOTE:** The file name must contain the `.pdf` extension.
|
|
135
|
-
* Otherwise your operating system or device may have trouble identifying the file type.
|
|
136
|
-
*
|
|
137
|
-
* @default 'document.pdf'
|
|
138
|
-
*/
|
|
139
|
-
fileName?: string | (() => string);
|
|
140
|
-
/**
|
|
141
|
-
* A URL to the HTML to PDF converter.
|
|
142
|
-
*
|
|
143
|
-
* ```ts
|
|
144
|
-
* const exportPdfConfig = {
|
|
145
|
-
* converterUrl: 'https://myconverter.com/v1/'
|
|
146
|
-
* }
|
|
147
|
-
* ```
|
|
148
|
-
*
|
|
149
|
-
* **NOTE:** The plugin uses the default HTML to PDF converter delivered by CKEditor Cloud Services.
|
|
150
|
-
* You can provide a URL to an on-premises converter instead.
|
|
151
|
-
*
|
|
152
|
-
* @default 'https://pdf-converter.cke-cs.com/v1/convert'
|
|
153
|
-
*/
|
|
154
|
-
converterUrl?: string;
|
|
155
|
-
/**
|
|
156
|
-
* The HTML to PDF converter options.
|
|
157
|
-
*
|
|
158
|
-
* **NOTE:** Configuring the plugin is not mandatory but it is highly recommended,
|
|
159
|
-
* especially if you want to get the most accurate results when generating the PDF file.
|
|
160
|
-
* To learn more, please check the [HTML to PDF converter configuration](https://pdf-converter.cke-cs.com/docs).
|
|
161
|
-
*
|
|
162
|
-
* ```ts
|
|
163
|
-
* const exportPdfConfig = {
|
|
164
|
-
* converterOptions: {
|
|
165
|
-
* ...
|
|
166
|
-
* }
|
|
167
|
-
* }
|
|
168
|
-
* ```
|
|
169
|
-
*
|
|
170
|
-
* @default `{
|
|
171
|
-
* format: 'A4',
|
|
172
|
-
* margin_top: '0',
|
|
173
|
-
* margin_bottom: '0',
|
|
174
|
-
* margin_right: '0',
|
|
175
|
-
* margin_left: '0',
|
|
176
|
-
* page_orientation: 'portrait',
|
|
177
|
-
* header_html: undefined,
|
|
178
|
-
* footer_html: undefined,
|
|
179
|
-
* header_and_footer_css: undefined,
|
|
180
|
-
* wait_for_network: true,
|
|
181
|
-
* wait_time: 0
|
|
182
|
-
* }`
|
|
183
|
-
*/
|
|
184
|
-
converterOptions?: ExportPdfConverterOptions;
|
|
185
|
-
/**
|
|
186
|
-
* A function to gather the HTML to be converted to PDF.
|
|
187
|
-
*
|
|
188
|
-
* **NOTE:** This option may be useful when the editor does not have `getData()` method,
|
|
189
|
-
* or if the HTML to be converted should be different than the edited one.
|
|
190
|
-
*
|
|
191
|
-
* ```ts
|
|
192
|
-
* const exportPdfConfig = {
|
|
193
|
-
* dataCallback: ( editor: Editor ) => {
|
|
194
|
-
* return `
|
|
195
|
-
* <header id="header">${ editor.data.get( { rootName: 'header' } ) }</header>
|
|
196
|
-
* <div id="content">${ editor.data.get( { rootName: 'content' } ) }</div>
|
|
197
|
-
* `;
|
|
198
|
-
* }
|
|
199
|
-
* }
|
|
200
|
-
* ```
|
|
201
|
-
*
|
|
202
|
-
* @default `( editor: Editor ) => editor.getData()`
|
|
203
|
-
*/
|
|
204
|
-
dataCallback?: (editor: Editor) => string;
|
|
205
|
-
/**
|
|
206
|
-
* A token URL or a token request function. This field is optional and should be used only when a different `tokenUrl` is required for
|
|
207
|
-
* the export to PDF feature.
|
|
208
|
-
*
|
|
209
|
-
* **Note:** The token can be disabled with the `false` value provided.
|
|
210
|
-
*
|
|
211
|
-
* See: {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl}
|
|
212
|
-
*/
|
|
213
|
-
tokenUrl?: TokenUrl | false;
|
|
214
|
-
/**
|
|
215
|
-
* The authentication token.
|
|
216
|
-
*
|
|
217
|
-
* See: {@link module:cloud-services/cloudservices~CloudServices#token}
|
|
218
|
-
*/
|
|
219
|
-
token?: InitializedToken;
|
|
220
|
-
/**
|
|
221
|
-
* The application unique identifier.
|
|
222
|
-
*/
|
|
223
|
-
appID?: string;
|
|
224
|
-
}
|
|
225
|
-
export type ExportPdfConverterOptions = {
|
|
226
|
-
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
|
|
227
|
-
margin_top?: string;
|
|
228
|
-
margin_bottom?: string;
|
|
229
|
-
margin_right?: string;
|
|
230
|
-
margin_left?: string;
|
|
231
|
-
header_html?: string;
|
|
232
|
-
footer_html?: string;
|
|
233
|
-
header_and_footer_css?: string;
|
|
234
|
-
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
235
|
-
wait_for_network?: boolean;
|
|
236
|
-
wait_time?: number;
|
|
237
|
-
merge_fields?: {
|
|
238
|
-
prefix: string;
|
|
239
|
-
suffix: string;
|
|
240
|
-
data: Record<string, string>;
|
|
241
|
-
};
|
|
242
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module export-pdf/exportpdfcommand
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
import { type ExportPdfConfig } from './exportpdf.js';
|
|
15
|
-
/**
|
|
16
|
-
* The export to PDF command.
|
|
17
|
-
*
|
|
18
|
-
* It takes the editor's HTML and CSS rules from the document and sends them to the HTML to PDF converter.
|
|
19
|
-
* After processing, the converter will send back a PDF file for download.
|
|
20
|
-
*/
|
|
21
|
-
export default class ExportPdfCommand extends Command {
|
|
22
|
-
/**
|
|
23
|
-
* A command state that indicates if the command is currently executing.
|
|
24
|
-
*
|
|
25
|
-
* @observable
|
|
26
|
-
*/
|
|
27
|
-
isBusy: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
constructor(editor: Editor);
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
refresh(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Executes the command.
|
|
38
|
-
*
|
|
39
|
-
* @fires execute
|
|
40
|
-
* @param options Options for the executed command.
|
|
41
|
-
*/
|
|
42
|
-
execute(options?: ExportPdfConfig): Promise<void>;
|
|
43
|
-
}
|
package/dist/exportpdfui.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module export-pdf/exportpdfui
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* The export to PDF UI feature.
|
|
15
|
-
*
|
|
16
|
-
* It introduces 'Export to PDF' button in toolbar and menu bar.
|
|
17
|
-
*/
|
|
18
|
-
export default class ExportPdfUI extends Plugin {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static get pluginName(): "ExportPdfUI";
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get isOfficialPlugin(): true;
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
static get isPremiumPlugin(): true;
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
init(): void;
|
|
35
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module export-pdf
|
|
11
|
-
*/
|
|
12
|
-
export { default as ExportPdf, type ExportPdfConfig } from './exportpdf.js';
|
|
13
|
-
export type { default as ExportPdfCommand } from './exportpdfcommand.js';
|
|
14
|
-
import './augmentation.js';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module export-pdf/utils/common-translations
|
|
11
|
-
*/
|
|
12
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
-
export declare function getTranslation(locale: Locale, id: string): string;
|
package/dist/utils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* A helper function for getting concatenated CSS rules from external stylesheets and the editor.
|
|
11
|
-
*
|
|
12
|
-
* @param stylesheets An array of stylesheet paths delivered by the user through the plugin configuration.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
|