@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.
Files changed (160) hide show
  1. package/build/export-pdf.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +23 -4
  148. package/src/exportpdf.js +1 -1
  149. package/src/exportpdfcommand.js +1 -1
  150. package/src/exportpdfui.js +1 -1
  151. package/src/index.js +1 -1
  152. package/src/utils/common-translations.js +1 -1
  153. package/src/utils.js +1 -1
  154. package/dist/augmentation.d.ts +0 -25
  155. package/dist/exportpdf.d.ts +0 -242
  156. package/dist/exportpdfcommand.d.ts +0 -43
  157. package/dist/exportpdfui.d.ts +0 -35
  158. package/dist/index.d.ts +0 -14
  159. package/dist/utils/common-translations.d.ts +0 -13
  160. package/dist/utils.d.ts +0 -14
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x544573=_0x77e4;(function(_0x4669b2,_0x5924ca){const _0x2fc077=_0x77e4,_0x5d9eeb=_0x4669b2();while(!![]){try{const _0x5a7cab=-parseInt(_0x2fc077(0x1ae))/0x1+parseInt(_0x2fc077(0x1a1))/0x2*(-parseInt(_0x2fc077(0x195))/0x3)+parseInt(_0x2fc077(0x18d))/0x4+-parseInt(_0x2fc077(0x1a5))/0x5*(-parseInt(_0x2fc077(0x17a))/0x6)+parseInt(_0x2fc077(0x1a2))/0x7*(parseInt(_0x2fc077(0x169))/0x8)+parseInt(_0x2fc077(0x17f))/0x9*(parseInt(_0x2fc077(0x16b))/0xa)+-parseInt(_0x2fc077(0x17d))/0xb;if(_0x5a7cab===_0x5924ca)break;else _0x5d9eeb['push'](_0x5d9eeb['shift']());}catch(_0x3ffceb){_0x5d9eeb['push'](_0x5d9eeb['shift']());}}}(_0x4ec7,0xa5472));import{Command as _0x2ae530}from'ckeditor5/src/core.js';function _0x4ec7(){const _0x2e30bd=['POST','90BOeJNZ','converterOptions','isEnabled','13915099kCGXgh','download','41859caREay','_downloadFile','contentLanguageDirection','plugins','getDataSetValues','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','previewMode','locale','$labels','has','blob','pending','MergeFields','token','3942804MEreAl','then','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','Notification','config','get','function','<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','9XVZKzG','stringify','https://pdf-converter.cke-cs.com/v1/convert/','application/json','$defaultValues','getLabel','announce','set','MergeFieldsEditing','merge_fields','cke5','PDF\x20export\x20started','279448ijyiHA','4346727iEnWaj','entries','href','128545xIQgDV','showWarning','fetch','click','data','fileName','stylesheets','converterUrl','status','472969mGmhEO','finally','URL','getDefaultValues','affectsData','remove','editor','mergeFields','ariaLiveAnnouncer','value','PDF\x20export\x20failed','EDITOR_STYLES','createElement','_token','8ZQmoLm','application/pdf','1810fdTgTU','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','getMergeFieldsIds','appID','assertive','execute','refresh','catch','createObjectURL','ExportPdf','PDF\x20export\x20successful','isBusy','dataCallback','document.pdf'];_0x4ec7=function(){return _0x2e30bd;};return _0x4ec7();}import{getStyles as _0x5bb5d5}from'./utils.js';function _0x77e4(_0x526492,_0x523610){const _0x4ec703=_0x4ec7();return _0x77e4=function(_0x77e49f,_0x3070ba){_0x77e49f=_0x77e49f-0x15f;let _0x281c22=_0x4ec703[_0x77e49f];return _0x281c22;},_0x77e4(_0x526492,_0x523610);}import{getTranslation as _0x46d5aa}from'./utils/common-translations.js';export default class e extends _0x2ae530{constructor(_0x1070c8){const _0x24ccd5=_0x77e4;super(_0x1070c8),this[_0x24ccd5(0x19c)](_0x24ccd5(0x176),!0x1),this[_0x24ccd5(0x15f)]=!0x1;}[_0x544573(0x171)](){const _0x3f5356=_0x544573;this[_0x3f5356(0x17c)]=!this[_0x3f5356(0x176)],this[_0x3f5356(0x164)]=this[_0x3f5356(0x176)]?_0x3f5356(0x18a):void 0x0;}[_0x544573(0x170)](_0x4fa806={}){const _0x23b98c=_0x544573,_0x66246b=this[_0x23b98c(0x161)],_0x1a186d=_0x4fa806[_0x23b98c(0x1ac)]||_0x23b98c(0x197),_0x44d18c=_0x4fa806[_0x23b98c(0x177)]||(_0x48b926=>_0x48b926[_0x23b98c(0x1a9)][_0x23b98c(0x192)]()),_0x4c6868=_0x66246b[_0x23b98c(0x182)][_0x23b98c(0x192)](_0x23b98c(0x174)),_0xdb8665=_0x4fa806[_0x23b98c(0x18c)]||_0x4c6868[_0x23b98c(0x168)];return this[_0x23b98c(0x176)]=!0x0,this[_0x23b98c(0x171)](),_0x5bb5d5(_0x4fa806[_0x23b98c(0x1ab)]||[_0x23b98c(0x166)])[_0x23b98c(0x18e)](async _0x275c38=>{const _0x4e2a35=_0x23b98c;if(_0x66246b['ui'][_0x4e2a35(0x163)][_0x4e2a35(0x19b)](_0x46d5aa(_0x66246b[_0x4e2a35(0x186)],_0x4e2a35(0x1a0))),_0x66246b[_0x4e2a35(0x182)][_0x4e2a35(0x188)](_0x4e2a35(0x18b))){_0x4fa806[_0x4e2a35(0x17b)]||(_0x4fa806[_0x4e2a35(0x17b)]={});const _0x4d5edb=_0x66246b[_0x4e2a35(0x182)][_0x4e2a35(0x192)](_0x4e2a35(0x19d)),_0x54e78f=_0x4d5edb[_0x4e2a35(0x185)],{prefix:_0x332f7a,suffix:_0x1cb8f2}=_0x66246b[_0x4e2a35(0x191)][_0x4e2a35(0x192)](_0x4e2a35(0x162)),_0x29733f={'prefix':_0x332f7a,'suffix':_0x1cb8f2,'data':{}};if(_0x4e2a35(0x187)===_0x54e78f){for(const _0x5715c9 of _0x4d5edb[_0x4e2a35(0x16d)]())_0x29733f[_0x4e2a35(0x1a9)][_0x5715c9]=_0x332f7a+_0x4d5edb[_0x4e2a35(0x19a)](_0x5715c9)+_0x1cb8f2;}else{const _0x4dd16d=_0x4e2a35(0x199)===_0x54e78f?_0x4d5edb[_0x4e2a35(0x1b1)]():_0x4d5edb[_0x4e2a35(0x183)](_0x54e78f,!0x0);for(const _0x590b43 of Object[_0x4e2a35(0x1a3)](_0x4dd16d)){const [_0x5f1382,_0x4d6254]=_0x590b43;_0x29733f[_0x4e2a35(0x1a9)][_0x5f1382]=null!==_0x4d6254?_0x4d6254:_0x4d5edb[_0x4e2a35(0x19a)](_0x5f1382);}}_0x4fa806[_0x4e2a35(0x17b)][_0x4e2a35(0x19e)]=_0x29733f;}const _0x498cfb={'html':_0x4e2a35(0x194)+_0x66246b[_0x4e2a35(0x186)][_0x4e2a35(0x181)]+_0x4e2a35(0x18f)+await _0x44d18c(_0x66246b)+_0x4e2a35(0x16c),'css':_0x275c38,'options':_0x4fa806[_0x4e2a35(0x17b)]},_0x1d994f={'method':_0x4e2a35(0x179),'headers':{'Content-Type':_0x4e2a35(0x198),'Accept':_0x4e2a35(0x16a),..._0xdb8665?{'Authorization':_0xdb8665[_0x4e2a35(0x164)]}:null,'x-cs-app-id':_0x4fa806[_0x4e2a35(0x16e)]||_0x4e2a35(0x19f)},'body':JSON[_0x4e2a35(0x196)](_0x498cfb)};return window[_0x4e2a35(0x1a7)](_0x1a186d,_0x1d994f)[_0x4e2a35(0x18e)](_0x5bc48f=>{const _0x51c42e=_0x4e2a35;if(0xc8!==_0x5bc48f[_0x51c42e(0x1ad)])throw _0x5bc48f;return _0x5bc48f[_0x51c42e(0x189)]();})[_0x4e2a35(0x18e)](_0x534b1b=>{const _0x42a2e1=_0x4e2a35;_0x66246b['ui'][_0x42a2e1(0x163)][_0x42a2e1(0x19b)](_0x46d5aa(_0x66246b[_0x42a2e1(0x186)],_0x42a2e1(0x175)));const _0x3aaa0f=_0x42a2e1(0x193)==typeof _0x4fa806[_0x42a2e1(0x1aa)]?_0x4fa806[_0x42a2e1(0x1aa)]():_0x4fa806[_0x42a2e1(0x1aa)];this[_0x42a2e1(0x180)](_0x534b1b,_0x3aaa0f||_0x42a2e1(0x178));});})[_0x23b98c(0x172)](_0x5cf38e=>{const _0x33427c=_0x23b98c,_0x1ccf51=_0x66246b[_0x33427c(0x182)][_0x33427c(0x192)](_0x33427c(0x190));throw _0x66246b['ui'][_0x33427c(0x163)][_0x33427c(0x19b)](_0x46d5aa(_0x66246b[_0x33427c(0x186)],_0x33427c(0x165)),{'politeness':_0x33427c(0x16f)}),_0x1ccf51[_0x33427c(0x1a6)](_0x46d5aa(_0x66246b[_0x33427c(0x186)],_0x33427c(0x184))),_0x5cf38e;})[_0x23b98c(0x1af)](()=>{const _0x328aeb=_0x23b98c;this[_0x328aeb(0x176)]=!0x1,this[_0x328aeb(0x171)]();});}[_0x544573(0x180)](_0x58d0ec,_0x55d080){const _0x3f9e37=_0x544573,_0x1b7342=document[_0x3f9e37(0x167)]('a');_0x1b7342[_0x3f9e37(0x1a4)]=window[_0x3f9e37(0x1b0)][_0x3f9e37(0x173)](_0x58d0ec),_0x1b7342[_0x3f9e37(0x17e)]=_0x55d080,_0x1b7342[_0x3f9e37(0x1a8)](),_0x1b7342[_0x3f9e37(0x160)]();}}
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)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14b750=_0x532e;(function(_0x5ee081,_0x297d3a){const _0xf97f4e=_0x532e,_0x2d8288=_0x5ee081();while(!![]){try{const _0x54d6c0=parseInt(_0xf97f4e(0x1e4))/0x1+-parseInt(_0xf97f4e(0x1eb))/0x2+parseInt(_0xf97f4e(0x1fa))/0x3+-parseInt(_0xf97f4e(0x1e0))/0x4+parseInt(_0xf97f4e(0x1f9))/0x5*(-parseInt(_0xf97f4e(0x1e1))/0x6)+-parseInt(_0xf97f4e(0x1e3))/0x7+-parseInt(_0xf97f4e(0x202))/0x8*(-parseInt(_0xf97f4e(0x1e8))/0x9);if(_0x54d6c0===_0x297d3a)break;else _0x2d8288['push'](_0x2d8288['shift']());}catch(_0x47d7fc){_0x2d8288['push'](_0x2d8288['shift']());}}}(_0x13ed,0x80046));function _0x13ed(){const _0x13b3d7=['pluginName','isOn','isPremiumPlugin','Exporting\x20PDF\x20document','config','init','35360gEZeQS','ExportPdfUI','set','get','focus','isOfficialPlugin','1177988nqllnf','12uZmkTU','children','4676539wUsNak','693331hUCQLi','locale','menuBar:exportPdf','listenTo','3627cGrXCJ','label','exportPdf','1950570kWTSYN','editor','isEnabled','editing','view','execute','componentFactory','commands','Export\x20to\x20PDF','bind','add','iconView','isBusy','isVisible','2249020HEpBMP','2661702eoEpij','_createButton'];_0x13ed=function(){return _0x13b3d7;};return _0x13ed();}import{Plugin as _0x41b7fa}from'ckeditor5/src/core.js';function _0x532e(_0x203b89,_0x57d600){const _0x13ed96=_0x13ed();return _0x532e=function(_0x532eb8,_0x371e2){_0x532eb8=_0x532eb8-0x1df;let _0x1369b8=_0x13ed96[_0x532eb8];return _0x1369b8;},_0x532e(_0x203b89,_0x57d600);}import{ButtonView as _0x3565c6,MenuBarMenuListItemButtonView as _0x4603ba,SpinnerView as _0xb1bad4}from'ckeditor5/src/ui.js';import _0x4562bd from'../theme/icons/exportpdf.svg';import{getTranslation as _0x4b8a10}from'./utils/common-translations.js';export default class s extends _0x41b7fa{static get[_0x14b750(0x1fc)](){const _0x170053=_0x14b750;return _0x170053(0x203);}static get[_0x14b750(0x1df)](){return!0x0;}static get[_0x14b750(0x1fe)](){return!0x0;}[_0x14b750(0x201)](){const _0x595a69=_0x14b750,_0x31328e=this[_0x595a69(0x1ec)];_0x31328e['ui'][_0x595a69(0x1f1)][_0x595a69(0x1f5)](_0x595a69(0x1ea),()=>{const _0x5d99ea=_0x595a69,_0x21c6e3=this[_0x5d99ea(0x1fb)](_0x3565c6),_0x447060=_0x31328e[_0x5d99ea(0x1f2)][_0x5d99ea(0x205)](_0x5d99ea(0x1ea));return _0x21c6e3[_0x5d99ea(0x204)]({'tooltip':!0x0}),_0x21c6e3[_0x5d99ea(0x1f4)](_0x5d99ea(0x1fd))['to'](_0x447060,_0x5d99ea(0x1f7)),_0x21c6e3;}),_0x31328e['ui'][_0x595a69(0x1f1)][_0x595a69(0x1f5)](_0x595a69(0x1e6),()=>this[_0x595a69(0x1fb)](_0x4603ba));}[_0x14b750(0x1fb)](_0x321748){const _0x6f4ffc=_0x14b750,_0x59e081=this[_0x6f4ffc(0x1ec)],_0x175e84=_0x59e081[_0x6f4ffc(0x200)][_0x6f4ffc(0x205)](_0x6f4ffc(0x1ea))||{},_0x1be6db=_0x59e081[_0x6f4ffc(0x1f2)][_0x6f4ffc(0x205)](_0x6f4ffc(0x1ea)),_0x426576=new _0x321748(_0x59e081[_0x6f4ffc(0x1e5)]),_0x5d1e83=new _0xb1bad4();return _0x426576[_0x6f4ffc(0x1e2)][_0x6f4ffc(0x1f5)](_0x5d1e83),_0x5d1e83[_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1f8))['to'](_0x1be6db,_0x6f4ffc(0x1f7)),_0x426576[_0x6f4ffc(0x1f6)][_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1f8))['to'](_0x1be6db,_0x6f4ffc(0x1f7),_0x5e9a72=>!_0x5e9a72),_0x426576[_0x6f4ffc(0x204)]({'icon':_0x4562bd}),_0x426576[_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1ed))['to'](_0x1be6db,_0x6f4ffc(0x1ed)),_0x426576[_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1e9))['to'](_0x1be6db,_0x6f4ffc(0x1f7),_0xbfad4=>_0x4b8a10(_0x59e081[_0x6f4ffc(0x1e5)],_0xbfad4?_0x6f4ffc(0x1ff):_0x6f4ffc(0x1f3))),this[_0x6f4ffc(0x1e7)](_0x426576,_0x6f4ffc(0x1f0),()=>{const _0x1c5f78=_0x6f4ffc;_0x59e081[_0x1c5f78(0x1f0)](_0x1c5f78(0x1ea),_0x175e84),_0x59e081[_0x1c5f78(0x1ee)][_0x1c5f78(0x1ef)][_0x1c5f78(0x206)]();}),_0x426576;}}
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
- function _0x5af2(_0x2bf2a5,_0x475ba5){var _0x2fbd9b=_0x2fbd();return _0x5af2=function(_0x5af2d5,_0x46f7c2){_0x5af2d5=_0x5af2d5-0x162;var _0x470813=_0x2fbd9b[_0x5af2d5];return _0x470813;},_0x5af2(_0x2bf2a5,_0x475ba5);}function _0x2fbd(){var _0x46f9c0=['7pAtOkg','4824770cJVKvx','231632ToRzLM','149244CGQIIr','3WMzOBc','659808NEwzAN','126PiroEj','311473scrPqk','1378376oLnYQO','341685BrWlIZ'];_0x2fbd=function(){return _0x46f9c0;};return _0x2fbd();}(function(_0x35462d,_0x1c527d){var _0x538ef4=_0x5af2,_0x5cc48e=_0x35462d();while(!![]){try{var _0x2eb201=-parseInt(_0x538ef4(0x163))/0x1+parseInt(_0x538ef4(0x16b))/0x2+-parseInt(_0x538ef4(0x16a))/0x3*(-parseInt(_0x538ef4(0x164))/0x4)+-parseInt(_0x538ef4(0x165))/0x5+parseInt(_0x538ef4(0x169))/0x6*(parseInt(_0x538ef4(0x166))/0x7)+-parseInt(_0x538ef4(0x168))/0x8*(-parseInt(_0x538ef4(0x162))/0x9)+-parseInt(_0x538ef4(0x167))/0xa;if(_0x2eb201===_0x1c527d)break;else _0x5cc48e['push'](_0x5cc48e['shift']());}catch(_0x21cf3e){_0x5cc48e['push'](_0x5cc48e['shift']());}}}(_0x2fbd,0x3b309));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
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(_0x1abc9a,_0x2614db){const t=_0x1abc9a['t'];switch(_0x2614db){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 _0x2614db;}}
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
- function _0x25a3(){const _0x345eb7=['trim','data-cke','3940SVkbrU','all','442376ZmXkKM','552mhpcni','ownerNode','10SLfAiH','1118210ggmnwK',':root','styleSheets','warn','text','push','8178272WkUJhW','fetch','188167PzOgpQ','9iAVizP','length','hasAttribute','indexOf','cssRules','102wrBLoI','from','163661axVCmw','then','cssText','.ck-content','EDITOR_STYLES','633cRLTrs','join','194110VMFhIK','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.'];_0x25a3=function(){return _0x345eb7;};return _0x25a3();}(function(_0x2456bf,_0x8d3d96){const _0x143ded=_0x41e3,_0x36823a=_0x2456bf();while(!![]){try{const _0x3066cc=-parseInt(_0x143ded(0x15a))/0x1*(parseInt(_0x143ded(0x16a))/0x2)+parseInt(_0x143ded(0x15f))/0x3*(parseInt(_0x143ded(0x165))/0x4)+-parseInt(_0x143ded(0x161))/0x5+-parseInt(_0x143ded(0x158))/0x6*(-parseInt(_0x143ded(0x152))/0x7)+-parseInt(_0x143ded(0x150))/0x8+parseInt(_0x143ded(0x153))/0x9*(-parseInt(_0x143ded(0x16b))/0xa)+-parseInt(_0x143ded(0x167))/0xb*(-parseInt(_0x143ded(0x168))/0xc);if(_0x3066cc===_0x8d3d96)break;else _0x36823a['push'](_0x36823a['shift']());}catch(_0x192d8c){_0x36823a['push'](_0x36823a['shift']());}}}(_0x25a3,0x7fcfc));export function getStyles(_0x330046){const _0x5a754d=_0x41e3;if(!_0x330046)return new Promise(_0xd96e0=>_0xd96e0(''));const _0xbf09f6=[];for(const _0x299d65 of _0x330046)_0x5a754d(0x15e)!==_0x299d65?_0xbf09f6[_0x5a754d(0x14f)](window[_0x5a754d(0x151)](_0x299d65)[_0x5a754d(0x15b)](_0x2c88bc=>_0x2c88bc[_0x5a754d(0x14e)]())):_0xbf09f6[_0x5a754d(0x14f)](a());return Promise[_0x5a754d(0x166)](_0xbf09f6)[_0x5a754d(0x15b)](_0x1e4ab8=>_0x1e4ab8[_0x5a754d(0x160)]('\x20')[_0x5a754d(0x163)]());}function _0x41e3(_0x332c7a,_0x3e07ef){const _0x25a3b1=_0x25a3();return _0x41e3=function(_0x41e347,_0x1eef7a){_0x41e347=_0x41e347-0x14d;let _0x4609c4=_0x25a3b1[_0x41e347];return _0x4609c4;},_0x41e3(_0x332c7a,_0x3e07ef);}function a(){const _0x47e4d1=_0x41e3,_0x39a2ee=[],_0x1acf16=[];for(const _0x53a976 of Array[_0x47e4d1(0x159)](document[_0x47e4d1(0x16d)])){if(_0x53a976[_0x47e4d1(0x169)][_0x47e4d1(0x155)](_0x47e4d1(0x164))){for(const _0x1d96ae of Array[_0x47e4d1(0x159)](_0x53a976[_0x47e4d1(0x157)]))-0x1!==_0x1d96ae[_0x47e4d1(0x15c)][_0x47e4d1(0x156)](_0x47e4d1(0x15d))?_0x39a2ee[_0x47e4d1(0x14f)](_0x1d96ae[_0x47e4d1(0x15c)]):-0x1!==_0x1d96ae[_0x47e4d1(0x15c)][_0x47e4d1(0x156)](_0x47e4d1(0x16c))&&_0x1acf16[_0x47e4d1(0x14f)](_0x1d96ae[_0x47e4d1(0x15c)]);}}return _0x39a2ee[_0x47e4d1(0x154)]||console[_0x47e4d1(0x14d)](_0x47e4d1(0x162)),[..._0x1acf16,..._0x39a2ee][_0x47e4d1(0x160)]('\x20')[_0x47e4d1(0x163)]();}
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)]();}
@@ -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
- }
@@ -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
- }
@@ -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>;