@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20241215.0 → 0.0.0-nightly-20241217.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 _0x5d245d=_0x1e34;(function(_0x1a426e,_0x1160f6){const _0x2d7b3f=_0x1e34,_0x1d323e=_0x1a426e();while(!![]){try{const _0x3c2b46=parseInt(_0x2d7b3f(0x114))/0x1+-parseInt(_0x2d7b3f(0xeb))/0x2*(parseInt(_0x2d7b3f(0xea))/0x3)+parseInt(_0x2d7b3f(0xf3))/0x4+-parseInt(_0x2d7b3f(0x103))/0x5*(parseInt(_0x2d7b3f(0x124))/0x6)+parseInt(_0x2d7b3f(0x10e))/0x7*(-parseInt(_0x2d7b3f(0x115))/0x8)+-parseInt(_0x2d7b3f(0xff))/0x9+-parseInt(_0x2d7b3f(0x133))/0xa*(-parseInt(_0x2d7b3f(0xed))/0xb);if(_0x3c2b46===_0x1160f6)break;else _0x1d323e['push'](_0x1d323e['shift']());}catch(_0x31097e){_0x1d323e['push'](_0x1d323e['shift']());}}}(_0x3ce8,0x5cfee));import{Command as _0x4a89d2}from'ckeditor5/src/core.js';function _0x1e34(_0xbeae52,_0x362ff){const _0x3ce856=_0x3ce8();return _0x1e34=function(_0x1e34e0,_0xca6427){_0x1e34e0=_0x1e34e0-0xe7;let _0x381180=_0x3ce856[_0x1e34e0];return _0x381180;},_0x1e34(_0xbeae52,_0x362ff);}import{getStyles as _0x479e87}from'./utils.js';function _0x3ce8(){const _0x4890eb=['catch','status','previewMode','Notification','getMergeFieldsIds','getDefaultValues','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','MergeFieldsEditing','locale','href','has','ariaLiveAnnouncer','assertive','36pvjnsw','converterOptions','<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','stringify','set','showWarning','stylesheets','PDF\x20export\x20failed','value','application/json','PDF\x20export\x20started','fetch','cke5','then','finally','10ObWhVs','config','editor','fileName','ExportPdf','execute','_token','mergeFields','click','MergeFields','69ShnUGb','12886yMFFMH','dataCallback','17798308mHEFlK','createObjectURL','POST','announce','$labels','affectsData','2060496UxesUf','appID','pending','getLabel','application/pdf','converterUrl','entries','$defaultValues','blob','https://pdf-converter.cke-cs.com/v1/convert/','merge_fields','data','4295439HAwwJz','_downloadFile','isEnabled','EDITOR_STYLES','402940ErAffQ','function','getDataSetValues','document.pdf','contentLanguageDirection','plugins','URL','remove','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','get','createElement','9926rTEKIF','isBusy','token','refresh','PDF\x20export\x20successful','download','26042xymJwr','3776MNzaID','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>'];_0x3ce8=function(){return _0x4890eb;};return _0x3ce8();}import{getTranslation as _0x15301d}from'./utils/common-translations.js';export default class e extends _0x4a89d2{constructor(_0x124ec1){const _0x2e949f=_0x1e34;super(_0x124ec1),this[_0x2e949f(0x128)](_0x2e949f(0x10f),!0x1),this[_0x2e949f(0xf2)]=!0x1;}[_0x5d245d(0x111)](){const _0x4b72b3=_0x5d245d;this[_0x4b72b3(0x101)]=!this[_0x4b72b3(0x10f)],this[_0x4b72b3(0x12c)]=this[_0x4b72b3(0x10f)]?_0x4b72b3(0xf5):void 0x0;}[_0x5d245d(0x138)](_0x9be97c={}){const _0x50acc1=_0x5d245d,_0x14033c=this[_0x50acc1(0x135)],_0x5204c9=_0x9be97c[_0x50acc1(0xf8)]||_0x50acc1(0xfc),_0x554d3b=_0x9be97c[_0x50acc1(0xec)]||(_0xd96753=>_0xd96753[_0x50acc1(0xfe)][_0x50acc1(0x10c)]()),_0x244e7b=_0x14033c[_0x50acc1(0x108)][_0x50acc1(0x10c)](_0x50acc1(0x137)),_0x23ea6e=_0x9be97c[_0x50acc1(0x110)]||_0x244e7b[_0x50acc1(0x139)];return this[_0x50acc1(0x10f)]=!0x0,this[_0x50acc1(0x111)](),_0x479e87(_0x9be97c[_0x50acc1(0x12a)]||[_0x50acc1(0x102)])[_0x50acc1(0x131)](async _0x153be3=>{const _0x41a055=_0x50acc1;if(_0x14033c['ui'][_0x41a055(0x122)][_0x41a055(0xf0)](_0x15301d(_0x14033c[_0x41a055(0x11f)],_0x41a055(0x12e))),_0x14033c[_0x41a055(0x108)][_0x41a055(0x121)](_0x41a055(0xe9))){_0x9be97c[_0x41a055(0x125)]||(_0x9be97c[_0x41a055(0x125)]={});const _0xfed61e=_0x14033c[_0x41a055(0x108)][_0x41a055(0x10c)](_0x41a055(0x11e)),_0x1826e4=_0xfed61e[_0x41a055(0x119)],{prefix:_0x2706d0,suffix:_0x293580}=_0x14033c[_0x41a055(0x134)][_0x41a055(0x10c)](_0x41a055(0xe7)),_0x660511={'prefix':_0x2706d0,'suffix':_0x293580,'data':{}};if(_0x41a055(0xf1)===_0x1826e4){for(const _0x25fe93 of _0xfed61e[_0x41a055(0x11b)]())_0x660511[_0x41a055(0xfe)][_0x25fe93]=_0x2706d0+_0xfed61e[_0x41a055(0xf6)](_0x25fe93)+_0x293580;}else{const _0x4f17ba=_0x41a055(0xfa)===_0x1826e4?_0xfed61e[_0x41a055(0x11c)]():_0xfed61e[_0x41a055(0x105)](_0x1826e4,!0x0);for(const _0x3c70ec of Object[_0x41a055(0xf9)](_0x4f17ba)){const [_0x5a48de,_0x312223]=_0x3c70ec;_0x660511[_0x41a055(0xfe)][_0x5a48de]=null!==_0x312223?_0x312223:_0xfed61e[_0x41a055(0xf6)](_0x5a48de);}}_0x9be97c[_0x41a055(0x125)][_0x41a055(0xfd)]=_0x660511;}const _0x1f66c0={'html':_0x41a055(0x126)+_0x14033c[_0x41a055(0x11f)][_0x41a055(0x107)]+_0x41a055(0x10b)+await _0x554d3b(_0x14033c)+_0x41a055(0x116),'css':_0x153be3,'options':_0x9be97c[_0x41a055(0x125)]},_0x29ca9c={'method':_0x41a055(0xef),'headers':{'Content-Type':_0x41a055(0x12d),'Accept':_0x41a055(0xf7),..._0x23ea6e?{'Authorization':_0x23ea6e[_0x41a055(0x12c)]}:null,'x-cs-app-id':_0x9be97c[_0x41a055(0xf4)]||_0x41a055(0x130)},'body':JSON[_0x41a055(0x127)](_0x1f66c0)};return window[_0x41a055(0x12f)](_0x5204c9,_0x29ca9c)[_0x41a055(0x131)](_0xc41f09=>{const _0x43498f=_0x41a055;if(0xc8!==_0xc41f09[_0x43498f(0x118)])throw _0xc41f09;return _0xc41f09[_0x43498f(0xfb)]();})[_0x41a055(0x131)](_0x5e16c1=>{const _0x1e1826=_0x41a055;_0x14033c['ui'][_0x1e1826(0x122)][_0x1e1826(0xf0)](_0x15301d(_0x14033c[_0x1e1826(0x11f)],_0x1e1826(0x112)));const _0x3d0d00=_0x1e1826(0x104)==typeof _0x9be97c[_0x1e1826(0x136)]?_0x9be97c[_0x1e1826(0x136)]():_0x9be97c[_0x1e1826(0x136)];this[_0x1e1826(0x100)](_0x5e16c1,_0x3d0d00||_0x1e1826(0x106));});})[_0x50acc1(0x117)](_0x9c1935=>{const _0x171d32=_0x50acc1,_0x1b2603=_0x14033c[_0x171d32(0x108)][_0x171d32(0x10c)](_0x171d32(0x11a));throw _0x14033c['ui'][_0x171d32(0x122)][_0x171d32(0xf0)](_0x15301d(_0x14033c[_0x171d32(0x11f)],_0x171d32(0x12b)),{'politeness':_0x171d32(0x123)}),_0x1b2603[_0x171d32(0x129)](_0x15301d(_0x14033c[_0x171d32(0x11f)],_0x171d32(0x11d))),_0x9c1935;})[_0x50acc1(0x132)](()=>{const _0x13b2cc=_0x50acc1;this[_0x13b2cc(0x10f)]=!0x1,this[_0x13b2cc(0x111)]();});}[_0x5d245d(0x100)](_0x14d1bd,_0x168c19){const _0x4948fe=_0x5d245d,_0x5b80ef=document[_0x4948fe(0x10d)]('a');_0x5b80ef[_0x4948fe(0x120)]=window[_0x4948fe(0x109)][_0x4948fe(0xee)](_0x14d1bd),_0x5b80ef[_0x4948fe(0x113)]=_0x168c19,_0x5b80ef[_0x4948fe(0xe8)](),_0x5b80ef[_0x4948fe(0x10a)]();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f3e2b=_0x4cbe;function _0x4cbe(_0x2c5354,_0x365283){const _0x3035e0=_0x3035();return _0x4cbe=function(_0x4cbeaa,_0x5a43f3){_0x4cbeaa=_0x4cbeaa-0x163;let _0x3744b5=_0x3035e0[_0x4cbeaa];return _0x3744b5;},_0x4cbe(_0x2c5354,_0x365283);}(function(_0xdd9c3,_0x3b1028){const _0x3357f7=_0x4cbe,_0x290017=_0xdd9c3();while(!![]){try{const _0x22282c=-parseInt(_0x3357f7(0x187))/0x1*(-parseInt(_0x3357f7(0x179))/0x2)+parseInt(_0x3357f7(0x16d))/0x3*(parseInt(_0x3357f7(0x170))/0x4)+parseInt(_0x3357f7(0x178))/0x5*(-parseInt(_0x3357f7(0x185))/0x6)+parseInt(_0x3357f7(0x168))/0x7*(-parseInt(_0x3357f7(0x182))/0x8)+parseInt(_0x3357f7(0x165))/0x9+-parseInt(_0x3357f7(0x166))/0xa+parseInt(_0x3357f7(0x173))/0xb;if(_0x22282c===_0x3b1028)break;else _0x290017['push'](_0x290017['shift']());}catch(_0x32882f){_0x290017['push'](_0x290017['shift']());}}}(_0x3035,0xe5c60));function _0x3035(){const _0x59bfe6=['17xLdesk','label','isOfficialPlugin','set','commands','listenTo','ExportPdfUI','config','3785364VHnirW','3819490YWyznN','isOn','14077viAFdG','pluginName','iconView','bind','componentFactory','4480689HEoNGd','execute','children','4EhTUnI','Exporting\x20PDF\x20document','isVisible','5032060BgnimD','editing','focus','locale','isEnabled','631315XwTBSE','178972msXMJS','_createButton','exportPdf','init','isBusy','isPremiumPlugin','menuBar:exportPdf','Export\x20to\x20PDF','get','5200nEJOus','view','add','60MhEcKi','editor'];_0x3035=function(){return _0x59bfe6;};return _0x3035();}import{Plugin as _0x3d0cc2}from'ckeditor5/src/core.js';import{ButtonView as _0x50270d,MenuBarMenuListItemButtonView as _0x2fe5fd,SpinnerView as _0x3f8691}from'ckeditor5/src/ui.js';import _0x3d5c7a from'../theme/icons/exportpdf.svg';import{getTranslation as _0x1c9847}from'./utils/common-translations.js';export default class s extends _0x3d0cc2{static get[_0x1f3e2b(0x169)](){const _0xd838b4=_0x1f3e2b;return _0xd838b4(0x163);}static get[_0x1f3e2b(0x189)](){return!0x0;}static get[_0x1f3e2b(0x17e)](){return!0x0;}[_0x1f3e2b(0x17c)](){const _0x21dbe8=_0x1f3e2b,_0x29b0a9=this[_0x21dbe8(0x186)];_0x29b0a9['ui'][_0x21dbe8(0x16c)][_0x21dbe8(0x184)](_0x21dbe8(0x17b),()=>{const _0x56d211=_0x21dbe8,_0x49bacf=this[_0x56d211(0x17a)](_0x50270d),_0x83a439=_0x29b0a9[_0x56d211(0x18b)][_0x56d211(0x181)](_0x56d211(0x17b));return _0x49bacf[_0x56d211(0x18a)]({'tooltip':!0x0}),_0x49bacf[_0x56d211(0x16b)](_0x56d211(0x167))['to'](_0x83a439,_0x56d211(0x17d)),_0x49bacf;}),_0x29b0a9['ui'][_0x21dbe8(0x16c)][_0x21dbe8(0x184)](_0x21dbe8(0x17f),()=>this[_0x21dbe8(0x17a)](_0x2fe5fd));}[_0x1f3e2b(0x17a)](_0x334bf2){const _0xe4a3ac=_0x1f3e2b,_0x16d178=this[_0xe4a3ac(0x186)],_0x59e45f=_0x16d178[_0xe4a3ac(0x164)][_0xe4a3ac(0x181)](_0xe4a3ac(0x17b))||{},_0x2b0581=_0x16d178[_0xe4a3ac(0x18b)][_0xe4a3ac(0x181)](_0xe4a3ac(0x17b)),_0x1b09ab=new _0x334bf2(_0x16d178[_0xe4a3ac(0x176)]),_0x3360ea=new _0x3f8691();return _0x1b09ab[_0xe4a3ac(0x16f)][_0xe4a3ac(0x184)](_0x3360ea),_0x3360ea[_0xe4a3ac(0x16b)](_0xe4a3ac(0x172))['to'](_0x2b0581,_0xe4a3ac(0x17d)),_0x1b09ab[_0xe4a3ac(0x16a)][_0xe4a3ac(0x16b)](_0xe4a3ac(0x172))['to'](_0x2b0581,_0xe4a3ac(0x17d),_0xa3db3a=>!_0xa3db3a),_0x1b09ab[_0xe4a3ac(0x18a)]({'icon':_0x3d5c7a}),_0x1b09ab[_0xe4a3ac(0x16b)](_0xe4a3ac(0x177))['to'](_0x2b0581,_0xe4a3ac(0x177)),_0x1b09ab[_0xe4a3ac(0x16b)](_0xe4a3ac(0x188))['to'](_0x2b0581,_0xe4a3ac(0x17d),_0xe10e0b=>_0x1c9847(_0x16d178[_0xe4a3ac(0x176)],_0xe10e0b?_0xe4a3ac(0x171):_0xe4a3ac(0x180))),this[_0xe4a3ac(0x18c)](_0x1b09ab,_0xe4a3ac(0x16e),()=>{const _0x621b4d=_0xe4a3ac;_0x16d178[_0x621b4d(0x16e)](_0x621b4d(0x17b),_0x59e45f),_0x16d178[_0x621b4d(0x174)][_0x621b4d(0x183)][_0x621b4d(0x175)]();}),_0x1b09ab;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x495214,_0x282cb9){var _0x243f2c=_0xc6ee,_0x3ffc31=_0x495214();while(!![]){try{var _0x4605b9=parseInt(_0x243f2c(0x13a))/0x1*(-parseInt(_0x243f2c(0x132))/0x2)+-parseInt(_0x243f2c(0x136))/0x3+-parseInt(_0x243f2c(0x133))/0x4+-parseInt(_0x243f2c(0x13b))/0x5+-parseInt(_0x243f2c(0x137))/0x6+-parseInt(_0x243f2c(0x138))/0x7*(parseInt(_0x243f2c(0x135))/0x8)+parseInt(_0x243f2c(0x134))/0x9*(parseInt(_0x243f2c(0x139))/0xa);if(_0x4605b9===_0x282cb9)break;else _0x3ffc31['push'](_0x3ffc31['shift']());}catch(_0x1cea30){_0x3ffc31['push'](_0x3ffc31['shift']());}}}(_0x4efb,0x43634));function _0xc6ee(_0xdc429c,_0x544b32){var _0x4efb7c=_0x4efb();return _0xc6ee=function(_0xc6ee13,_0x489764){_0xc6ee13=_0xc6ee13-0x132;var _0x5ec86e=_0x4efb7c[_0xc6ee13];return _0x5ec86e;},_0xc6ee(_0xdc429c,_0x544b32);}export{default as ExportPdf}from'./exportpdf.js';function _0x4efb(){var _0x1a0c1b=['1461150AgRUkM','14iAbqqB','40NuNtws','201254XKVgUH','649360GLqVut','2vZUKVk','531636YjfchF','3203127IpMCkZ','1402120DLVxLc','268506zBDLGR'];_0x4efb=function(){return _0x1a0c1b;};return _0x4efb();}import'./augmentation.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2f4edf,_0x4d0532){const t=_0x2f4edf['t'];switch(_0x4d0532){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 _0x4d0532;}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x33fa2f,_0x151440){const _0x48c867=_0xdcb0,_0x214716=_0x33fa2f();while(!![]){try{const _0x5bc222=parseInt(_0x48c867(0xa0))/0x1+parseInt(_0x48c867(0xa9))/0x2*(parseInt(_0x48c867(0x98))/0x3)+-parseInt(_0x48c867(0x89))/0x4*(parseInt(_0x48c867(0x91))/0x5)+-parseInt(_0x48c867(0x8a))/0x6*(-parseInt(_0x48c867(0x9e))/0x7)+-parseInt(_0x48c867(0x9f))/0x8+parseInt(_0x48c867(0x92))/0x9*(parseInt(_0x48c867(0x90))/0xa)+-parseInt(_0x48c867(0x99))/0xb*(-parseInt(_0x48c867(0x9d))/0xc);if(_0x5bc222===_0x151440)break;else _0x214716['push'](_0x214716['shift']());}catch(_0x267bd9){_0x214716['push'](_0x214716['shift']());}}}(_0x46a5,0x817f2));function _0x46a5(){const _0x57a996=['length','then','styleSheets','1292181eaxCdF','1775477uRJkDA','ownerNode','join','hasAttribute','60NHtbpA','38353jPhCmP','6813024GouZTa','476999REbAZs','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','fetch','.ck-content','EDITOR_STYLES','data-cke','cssRules','trim','2mKlsJa','340kfbIJi','84aTIaDs',':root','all','indexOf','text','warn','3554940lvoKEj','44995iiKooZ','9EFjiQK','push','cssText'];_0x46a5=function(){return _0x57a996;};return _0x46a5();}function _0xdcb0(_0x10c0d4,_0x238f9f){const _0x46a581=_0x46a5();return _0xdcb0=function(_0xdcb032,_0x484cfc){_0xdcb032=_0xdcb032-0x89;let _0x205b67=_0x46a581[_0xdcb032];return _0x205b67;},_0xdcb0(_0x10c0d4,_0x238f9f);}export function getStyles(_0x3b22a3){const _0x2a21aa=_0xdcb0;if(!_0x3b22a3)return new Promise(_0x489362=>_0x489362(''));const _0xc605b7=[];for(const _0x358add of _0x3b22a3)_0x2a21aa(0xa5)!==_0x358add?_0xc605b7[_0x2a21aa(0x93)](window[_0x2a21aa(0xa3)](_0x358add)[_0x2a21aa(0x96)](_0x2f9a2e=>_0x2f9a2e[_0x2a21aa(0x8e)]())):_0xc605b7[_0x2a21aa(0x93)](a());return Promise[_0x2a21aa(0x8c)](_0xc605b7)[_0x2a21aa(0x96)](_0x81a151=>_0x81a151[_0x2a21aa(0x9b)]('\x20')[_0x2a21aa(0xa8)]());}function a(){const _0x53aee3=_0xdcb0,_0x1daa9c=[],_0x592afd=[];for(const _0x1bddf9 of Array[_0x53aee3(0xa2)](document[_0x53aee3(0x97)])){if(_0x1bddf9[_0x53aee3(0x9a)][_0x53aee3(0x9c)](_0x53aee3(0xa6))){for(const _0x557d8e of Array[_0x53aee3(0xa2)](_0x1bddf9[_0x53aee3(0xa7)]))-0x1!==_0x557d8e[_0x53aee3(0x94)][_0x53aee3(0x8d)](_0x53aee3(0xa4))?_0x1daa9c[_0x53aee3(0x93)](_0x557d8e[_0x53aee3(0x94)]):-0x1!==_0x557d8e[_0x53aee3(0x94)][_0x53aee3(0x8d)](_0x53aee3(0x8b))&&_0x592afd[_0x53aee3(0x93)](_0x557d8e[_0x53aee3(0x94)]);}}return _0x1daa9c[_0x53aee3(0x95)]||console[_0x53aee3(0x8f)](_0x53aee3(0xa1)),[..._0x592afd,..._0x1daa9c][_0x53aee3(0x9b)]('\x20')[_0x53aee3(0xa8)]();}
|
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>;
|