@ckeditor/ckeditor5-export-pdf 42.0.0-alpha.9 → 42.0.1-alpha.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 (105) 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/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es-co.js +1 -1
  25. package/dist/translations/es-co.umd.js +1 -1
  26. package/dist/translations/es.js +1 -1
  27. package/dist/translations/es.umd.js +1 -1
  28. package/dist/translations/et.js +1 -1
  29. package/dist/translations/et.umd.js +1 -1
  30. package/dist/translations/fi.js +1 -1
  31. package/dist/translations/fi.umd.js +1 -1
  32. package/dist/translations/fr.js +1 -1
  33. package/dist/translations/fr.umd.js +1 -1
  34. package/dist/translations/gl.js +1 -1
  35. package/dist/translations/gl.umd.js +1 -1
  36. package/dist/translations/he.js +1 -1
  37. package/dist/translations/he.umd.js +1 -1
  38. package/dist/translations/hi.js +1 -1
  39. package/dist/translations/hi.umd.js +1 -1
  40. package/dist/translations/hr.js +1 -1
  41. package/dist/translations/hr.umd.js +1 -1
  42. package/dist/translations/hu.js +1 -1
  43. package/dist/translations/hu.umd.js +1 -1
  44. package/dist/translations/id.js +1 -1
  45. package/dist/translations/id.umd.js +1 -1
  46. package/dist/translations/it.js +1 -1
  47. package/dist/translations/it.umd.js +1 -1
  48. package/dist/translations/ja.js +1 -1
  49. package/dist/translations/ja.umd.js +1 -1
  50. package/dist/translations/jv.js +1 -1
  51. package/dist/translations/jv.umd.js +1 -1
  52. package/dist/translations/ko.js +1 -1
  53. package/dist/translations/ko.umd.js +1 -1
  54. package/dist/translations/lt.js +1 -1
  55. package/dist/translations/lt.umd.js +1 -1
  56. package/dist/translations/lv.js +1 -1
  57. package/dist/translations/lv.umd.js +1 -1
  58. package/dist/translations/ms.js +1 -1
  59. package/dist/translations/ms.umd.js +1 -1
  60. package/dist/translations/nl.js +1 -1
  61. package/dist/translations/nl.umd.js +1 -1
  62. package/dist/translations/no.js +1 -1
  63. package/dist/translations/no.umd.js +1 -1
  64. package/dist/translations/pl.js +1 -1
  65. package/dist/translations/pl.umd.js +1 -1
  66. package/dist/translations/pt-br.js +1 -1
  67. package/dist/translations/pt-br.umd.js +1 -1
  68. package/dist/translations/pt.js +1 -1
  69. package/dist/translations/pt.umd.js +1 -1
  70. package/dist/translations/ro.js +1 -1
  71. package/dist/translations/ro.umd.js +1 -1
  72. package/dist/translations/ru.js +1 -1
  73. package/dist/translations/ru.umd.js +1 -1
  74. package/dist/translations/sk.js +1 -1
  75. package/dist/translations/sk.umd.js +1 -1
  76. package/dist/translations/sr-latn.js +1 -1
  77. package/dist/translations/sr-latn.umd.js +1 -1
  78. package/dist/translations/sr.js +1 -1
  79. package/dist/translations/sr.umd.js +1 -1
  80. package/dist/translations/sv.js +1 -1
  81. package/dist/translations/sv.umd.js +1 -1
  82. package/dist/translations/th.js +1 -1
  83. package/dist/translations/th.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/ug.js +1 -1
  87. package/dist/translations/ug.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/dist/types/exportpdf.d.ts +6 -5
  99. package/package.json +2 -2
  100. package/src/exportpdf.d.ts +6 -5
  101. package/src/exportpdf.js +1 -1
  102. package/src/exportpdfcommand.js +1 -1
  103. package/src/exportpdfui.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/utils.js +1 -1
@@ -65,10 +65,11 @@ export interface ExportPdfConfig {
65
65
  *
66
66
  * **Default editor's content styles**:
67
67
  * {@glink getting-started/setup/css The default editor content styles}
68
- * are applied to the generated PDF thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
68
+ * are applied to the generated PDF thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
69
69
  * If you don't want them to be applied, you have to omit the token:
70
70
  *
71
- * **NOTE:** The 'EDITOR_STYLES' string is only supported in legacy webpack setup.
71
+ * **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
72
+ * In other setups you always need to pass the stylesheets.
72
73
  *
73
74
  * ```ts
74
75
  * const exportPdfConfig = {
@@ -77,13 +78,13 @@ export interface ExportPdfConfig {
77
78
  * ```
78
79
  *
79
80
  * **Web fonts:** If you want to {@glink features/converters/export-pdf#providing-web-font-styles use web fonts} in your PDF document,
80
- * you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token:
81
+ * you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token and other style sheets:
81
82
  *
82
83
  * ```ts
83
84
  * const exportPdfConfig = {
84
85
  * stylesheets: [
85
- * 'path/to/editor-styles.css',
86
86
  * './path/to/fonts.css'
87
+ * './path/to/editor-styles.css',
87
88
  * ]
88
89
  * }
89
90
  * ```
@@ -93,8 +94,8 @@ export interface ExportPdfConfig {
93
94
  * ```ts
94
95
  * const exportPdfConfig = {
95
96
  * stylesheets: [
96
- * 'path/to/editor-styles.css',
97
97
  * './path/to/fonts.css',
98
+ * './path/to/editor-styles.css',
98
99
  * './path/to/custom-styles.css'
99
100
  * ]
100
101
  * }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-pdf",
3
- "version": "42.0.0-alpha.9",
3
+ "version": "42.0.1-alpha.0",
4
4
  "description": "Export to PDF feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,7 +30,7 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "42.0.0-alpha.9"
33
+ "ckeditor5": "42.0.1-alpha.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -61,10 +61,11 @@ export interface ExportPdfConfig {
61
61
  *
62
62
  * **Default editor's content styles**:
63
63
  * {@glink getting-started/setup/css The default editor content styles}
64
- * are applied to the generated PDF thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
64
+ * are applied to the generated PDF thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
65
65
  * If you don't want them to be applied, you have to omit the token:
66
66
  *
67
- * **NOTE:** The 'EDITOR_STYLES' string is only supported in legacy webpack setup.
67
+ * **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
68
+ * In other setups you always need to pass the stylesheets.
68
69
  *
69
70
  * ```ts
70
71
  * const exportPdfConfig = {
@@ -73,13 +74,13 @@ export interface ExportPdfConfig {
73
74
  * ```
74
75
  *
75
76
  * **Web fonts:** If you want to {@glink features/converters/export-pdf#providing-web-font-styles use web fonts} in your PDF document,
76
- * you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token:
77
+ * you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token and other style sheets:
77
78
  *
78
79
  * ```ts
79
80
  * const exportPdfConfig = {
80
81
  * stylesheets: [
81
- * 'path/to/editor-styles.css',
82
82
  * './path/to/fonts.css'
83
+ * './path/to/editor-styles.css',
83
84
  * ]
84
85
  * }
85
86
  * ```
@@ -89,8 +90,8 @@ export interface ExportPdfConfig {
89
90
  * ```ts
90
91
  * const exportPdfConfig = {
91
92
  * stylesheets: [
92
- * 'path/to/editor-styles.css',
93
93
  * './path/to/fonts.css',
94
+ * './path/to/editor-styles.css',
94
95
  * './path/to/custom-styles.css'
95
96
  * ]
96
97
  * }
package/src/exportpdf.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16e7f9=_0x3783;(function(_0x1731c7,_0xc6072c){const _0x4399ad=_0x3783,_0xf86513=_0x1731c7();while(!![]){try{const _0x506a3a=parseInt(_0x4399ad(0xab))/0x1*(-parseInt(_0x4399ad(0x90))/0x2)+-parseInt(_0x4399ad(0xa7))/0x3*(parseInt(_0x4399ad(0xa9))/0x4)+-parseInt(_0x4399ad(0xa0))/0x5*(parseInt(_0x4399ad(0xa1))/0x6)+-parseInt(_0x4399ad(0x97))/0x7+parseInt(_0x4399ad(0x96))/0x8*(parseInt(_0x4399ad(0x9e))/0x9)+-parseInt(_0x4399ad(0x9f))/0xa*(-parseInt(_0x4399ad(0xa2))/0xb)+-parseInt(_0x4399ad(0x95))/0xc*(-parseInt(_0x4399ad(0xaa))/0xd);if(_0x506a3a===_0xc6072c)break;else _0xf86513['push'](_0xf86513['shift']());}catch(_0x5afeb3){_0xf86513['push'](_0xf86513['shift']());}}}(_0x5608,0xd8bd7));import{Plugin as _0x13689a}from'ckeditor5/src/core.js';function _0x5608(){const _0x4ab97c=['requires','27kFoSom','10VtbGTQ','20095rKFoeY','1194JEomGX','4278241rxhKOc','init','get','then','pluginName','30729zNIXCr','CloudServices','316SiapDY','13fYmQpW','3739WbauFi','registerTokenUrl','_token','142RReVKX','add','plugins','exportPdf','ExportPdf','48986844JeWhLY','137240yNtTPi','12322933dFGZko','commands','tokenUrl','config','editor','token'];_0x5608=function(){return _0x4ab97c;};return _0x5608();}import{Notification as _0x276a8d}from'ckeditor5/src/ui.js';function _0x3783(_0x59d33b,_0x3f9a03){const _0x560851=_0x5608();return _0x3783=function(_0x378305,_0x360984){_0x378305=_0x378305-0x8e;let _0x37d859=_0x560851[_0x378305];return _0x37d859;},_0x3783(_0x59d33b,_0x3f9a03);}import _0x4b2ecc from'./exportpdfcommand.js';import _0x37652f from'./exportpdfui.js';export default class s extends _0x13689a{static get[_0x16e7f9(0xa6)](){const _0x57b57b=_0x16e7f9;return _0x57b57b(0x94);}static get[_0x16e7f9(0x9d)](){const _0x4793e1=_0x16e7f9;return[_0x4793e1(0xa8),_0x276a8d,_0x37652f];}[_0x16e7f9(0xa3)](){const _0x4f031e=_0x16e7f9,_0xfb62af=this[_0x4f031e(0x9b)],_0x35569a=_0xfb62af[_0x4f031e(0x9a)][_0x4f031e(0xa4)](_0x4f031e(0x93))||{};_0xfb62af[_0x4f031e(0x98)][_0x4f031e(0x91)](_0x4f031e(0x93),new _0x4b2ecc(_0xfb62af));const _0x2ed63f=_0xfb62af[_0x4f031e(0x92)][_0x4f031e(0xa4)](_0x4f031e(0xa8));!0x1===_0x35569a[_0x4f031e(0x99)]?this[_0x4f031e(0x8f)]=null:_0x35569a[_0x4f031e(0x99)]?_0x2ed63f[_0x4f031e(0x8e)](_0x35569a[_0x4f031e(0x99)])[_0x4f031e(0xa5)](_0x2944b=>{const _0x4831f5=_0x4f031e;this[_0x4831f5(0x8f)]=_0x2944b;}):this[_0x4f031e(0x8f)]=_0x2ed63f[_0x4f031e(0x9c)];}}
23
+ const _0x2f235b=_0xa7a8;(function(_0x61a3f4,_0x41936c){const _0x224a91=_0xa7a8,_0x5724b6=_0x61a3f4();while(!![]){try{const _0x5e34b4=parseInt(_0x224a91(0x130))/0x1+parseInt(_0x224a91(0x127))/0x2+parseInt(_0x224a91(0x12f))/0x3*(parseInt(_0x224a91(0x123))/0x4)+parseInt(_0x224a91(0x12c))/0x5*(-parseInt(_0x224a91(0x11b))/0x6)+-parseInt(_0x224a91(0x12d))/0x7+-parseInt(_0x224a91(0x125))/0x8+-parseInt(_0x224a91(0x124))/0x9;if(_0x5e34b4===_0x41936c)break;else _0x5724b6['push'](_0x5724b6['shift']());}catch(_0x2975a0){_0x5724b6['push'](_0x5724b6['shift']());}}}(_0x1a98,0x7d894));import{Plugin as _0x53c548}from'ckeditor5/src/core.js';import{Notification as _0x578164}from'ckeditor5/src/ui.js';import _0x46f224 from'./exportpdfcommand.js';import _0x18b996 from'./exportpdfui.js';export default class s extends _0x53c548{static get[_0x2f235b(0x131)](){const _0x2e1e6d=_0x2f235b;return _0x2e1e6d(0x12b);}static get[_0x2f235b(0x129)](){const _0x3caae7=_0x2f235b;return[_0x3caae7(0x119),_0x578164,_0x18b996];}[_0x2f235b(0x11c)](){const _0x35f5a=_0x2f235b,_0x3abf21=this[_0x35f5a(0x120)],_0x2fef5b=_0x3abf21[_0x35f5a(0x132)][_0x35f5a(0x122)](_0x35f5a(0x121))||{};_0x3abf21[_0x35f5a(0x128)][_0x35f5a(0x12e)](_0x35f5a(0x121),new _0x46f224(_0x3abf21));const _0x3cf227=_0x3abf21[_0x35f5a(0x11e)][_0x35f5a(0x122)](_0x35f5a(0x119));!0x1===_0x2fef5b[_0x35f5a(0x11a)]?this[_0x35f5a(0x11f)]=null:_0x2fef5b[_0x35f5a(0x11a)]?_0x3cf227[_0x35f5a(0x126)](_0x2fef5b[_0x35f5a(0x11a)])[_0x35f5a(0x11d)](_0x55c891=>{const _0x54b462=_0x35f5a;this[_0x54b462(0x11f)]=_0x55c891;}):this[_0x35f5a(0x11f)]=_0x3cf227[_0x35f5a(0x12a)];}}function _0xa7a8(_0x4baab3,_0x3d883d){const _0x1a9894=_0x1a98();return _0xa7a8=function(_0xa7a805,_0x47efb2){_0xa7a805=_0xa7a805-0x119;let _0x1c3f6e=_0x1a9894[_0xa7a805];return _0x1c3f6e;},_0xa7a8(_0x4baab3,_0x3d883d);}function _0x1a98(){const _0x2a9973=['get','856qtmvdK','1384587andFpp','630880dclIhK','registerTokenUrl','852424sFWoqY','commands','requires','token','ExportPdf','5VFymOb','181783dwlbal','add','10893gKinuy','114739tUmsmk','pluginName','config','CloudServices','tokenUrl','3270702bkfdXF','init','then','plugins','_token','editor','exportPdf'];_0x1a98=function(){return _0x2a9973;};return _0x1a98();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3ec7be}from'ckeditor5/src/core.js';import{getStyles as _0x51416d}from'./utils.js';export default class o extends _0x3ec7be{constructor(_0x4e4e3f){super(_0x4e4e3f),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x464c7f={}){const _0x28ce45=this['editor'],t=_0x28ce45['t'],_0x18faa2=_0x464c7f['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x80cda5=_0x464c7f['dataCallback']||(_0x55f52d=>_0x55f52d['data']['get']()),_0x552ec9=_0x28ce45['plugins']['get']('ExportPdf'),_0x1a84f4=_0x464c7f['token']||_0x552ec9['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x51416d(_0x464c7f['stylesheets']||['EDITOR_STYLES'])['then'](async _0x2ade05=>{_0x28ce45['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x4113d1={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x28ce45['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x80cda5(_0x28ce45)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0x2ade05,'options':_0x464c7f['converterOptions']},_0x2ba57e={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x1a84f4?{'Authorization':_0x1a84f4['value']}:null,'x-cs-app-id':_0x464c7f['appID']||'cke5'},'body':JSON['stringify'](_0x4113d1)};return window['fetch'](_0x18faa2,_0x2ba57e)['then'](_0x1b73b2=>{if(0xc8!==_0x1b73b2['status'])throw _0x1b73b2;return _0x1b73b2['blob']();})['then'](_0x37bf19=>{_0x28ce45['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x37c61d='function'==typeof _0x464c7f['fileName']?_0x464c7f['fileName']():_0x464c7f['fileName'];this['_downloadFile'](_0x37bf19,_0x37c61d||'document.pdf');});})['catch'](_0x24fa74=>{const _0x484894=_0x28ce45['plugins']['get']('Notification');throw _0x28ce45['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x484894['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x24fa74;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x12996a,_0x2c296a){const _0x6fa7fe=document['createElement']('a');_0x6fa7fe['href']=window['URL']['createObjectURL'](_0x12996a),_0x6fa7fe['download']=_0x2c296a,_0x6fa7fe['click'](),_0x6fa7fe['remove']();}}
23
+ import{Command as _0x3b0943}from'ckeditor5/src/core.js';import{getStyles as _0x5ecfa2}from'./utils.js';export default class o extends _0x3b0943{constructor(_0x5bb4b9){super(_0x5bb4b9),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x59b88b={}){const _0x17ca95=this['editor'],t=_0x17ca95['t'],_0x2eac7d=_0x59b88b['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x371423=_0x59b88b['dataCallback']||(_0x27fff6=>_0x27fff6['data']['get']()),_0x1bdef0=_0x17ca95['plugins']['get']('ExportPdf'),_0x558ad3=_0x59b88b['token']||_0x1bdef0['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x5ecfa2(_0x59b88b['stylesheets']||['EDITOR_STYLES'])['then'](async _0x3a252c=>{_0x17ca95['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x30a92e={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x17ca95['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x371423(_0x17ca95)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0x3a252c,'options':_0x59b88b['converterOptions']},_0x379fa6={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x558ad3?{'Authorization':_0x558ad3['value']}:null,'x-cs-app-id':_0x59b88b['appID']||'cke5'},'body':JSON['stringify'](_0x30a92e)};return window['fetch'](_0x2eac7d,_0x379fa6)['then'](_0x198eff=>{if(0xc8!==_0x198eff['status'])throw _0x198eff;return _0x198eff['blob']();})['then'](_0x5ec4d3=>{_0x17ca95['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x77eea5='function'==typeof _0x59b88b['fileName']?_0x59b88b['fileName']():_0x59b88b['fileName'];this['_downloadFile'](_0x5ec4d3,_0x77eea5||'document.pdf');});})['catch'](_0xdc2f75=>{const _0x450f3d=_0x17ca95['plugins']['get']('Notification');throw _0x17ca95['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x450f3d['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0xdc2f75;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xd18fe5,_0x426eef){const _0xa1e4bc=document['createElement']('a');_0xa1e4bc['href']=window['URL']['createObjectURL'](_0xd18fe5),_0xa1e4bc['download']=_0x426eef,_0xa1e4bc['click'](),_0xa1e4bc['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x238886}from'ckeditor5/src/core.js';import{ButtonView as _0x2aba63,MenuBarMenuListItemButtonView as _0x58785c,SpinnerView as _0x1c092f}from'ckeditor5/src/ui.js';import _0x1d2546 from'../theme/icons/exportpdf.svg';export default class i extends _0x238886{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x2c9b73=this['editor'];_0x2c9b73['ui']['componentFactory']['add']('exportPdf',()=>{const _0x589f22=this['_createButton'](_0x2aba63),_0xbc9bf5=_0x2c9b73['commands']['get']('exportPdf');return _0x589f22['set']({'tooltip':!0x0}),_0x589f22['bind']('isOn')['to'](_0xbc9bf5,'isBusy'),_0x589f22;}),_0x2c9b73['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x58785c));}['_createButton'](_0x453887){const _0x18d820=this['editor'],_0x46a960=_0x18d820['config']['get']('exportPdf')||{},t=_0x18d820['locale']['t'],_0x4b8776=_0x18d820['commands']['get']('exportPdf'),_0x59e897=new _0x453887(_0x18d820['locale']),_0x28a01b=new _0x1c092f();return _0x59e897['children']['add'](_0x28a01b),_0x28a01b['bind']('isVisible')['to'](_0x4b8776,'isBusy'),_0x59e897['iconView']['bind']('isVisible')['to'](_0x4b8776,'isBusy',_0xa50550=>!_0xa50550),_0x59e897['set']({'icon':_0x1d2546}),_0x59e897['bind']('isEnabled')['to'](_0x4b8776,'isEnabled'),_0x59e897['bind']('label')['to'](_0x4b8776,'isBusy',_0x4966dc=>t(_0x4966dc?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x59e897,'execute',()=>{_0x18d820['execute']('exportPdf',_0x46a960),_0x18d820['editing']['view']['focus']();}),_0x59e897;}}
23
+ import{Plugin as _0x691dfc}from'ckeditor5/src/core.js';import{ButtonView as _0x4e58ab,MenuBarMenuListItemButtonView as _0xaea4e9,SpinnerView as _0x3cf374}from'ckeditor5/src/ui.js';import _0x43d396 from'../theme/icons/exportpdf.svg';export default class i extends _0x691dfc{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x1bb623=this['editor'];_0x1bb623['ui']['componentFactory']['add']('exportPdf',()=>{const _0xcdbd80=this['_createButton'](_0x4e58ab),_0x1e1970=_0x1bb623['commands']['get']('exportPdf');return _0xcdbd80['set']({'tooltip':!0x0}),_0xcdbd80['bind']('isOn')['to'](_0x1e1970,'isBusy'),_0xcdbd80;}),_0x1bb623['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0xaea4e9));}['_createButton'](_0x3973d7){const _0x4a6885=this['editor'],_0x54044b=_0x4a6885['config']['get']('exportPdf')||{},t=_0x4a6885['locale']['t'],_0x410365=_0x4a6885['commands']['get']('exportPdf'),_0x5a1491=new _0x3973d7(_0x4a6885['locale']),_0x135c5b=new _0x3cf374();return _0x5a1491['children']['add'](_0x135c5b),_0x135c5b['bind']('isVisible')['to'](_0x410365,'isBusy'),_0x5a1491['iconView']['bind']('isVisible')['to'](_0x410365,'isBusy',_0x4091f1=>!_0x4091f1),_0x5a1491['set']({'icon':_0x43d396}),_0x5a1491['bind']('isEnabled')['to'](_0x410365,'isEnabled'),_0x5a1491['bind']('label')['to'](_0x410365,'isBusy',_0x54d5be=>t(_0x54d5be?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x5a1491,'execute',()=>{_0x4a6885['execute']('exportPdf',_0x54044b),_0x4a6885['editing']['view']['focus']();}),_0x5a1491;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x6dad(_0x177ea7,_0x4ef4e8){var _0x103b89=_0x103b();return _0x6dad=function(_0x6dadac,_0x3f4250){_0x6dadac=_0x6dadac-0x198;var _0x5b0596=_0x103b89[_0x6dadac];return _0x5b0596;},_0x6dad(_0x177ea7,_0x4ef4e8);}(function(_0x31ed3b,_0x43879d){var _0x22926b=_0x6dad,_0x2532fb=_0x31ed3b();while(!![]){try{var _0x20d268=-parseInt(_0x22926b(0x198))/0x1+-parseInt(_0x22926b(0x19c))/0x2*(parseInt(_0x22926b(0x199))/0x3)+-parseInt(_0x22926b(0x19f))/0x4+-parseInt(_0x22926b(0x1a1))/0x5*(parseInt(_0x22926b(0x19d))/0x6)+-parseInt(_0x22926b(0x19e))/0x7*(parseInt(_0x22926b(0x19a))/0x8)+-parseInt(_0x22926b(0x1a0))/0x9+parseInt(_0x22926b(0x19b))/0xa;if(_0x20d268===_0x43879d)break;else _0x2532fb['push'](_0x2532fb['shift']());}catch(_0x55e37d){_0x2532fb['push'](_0x2532fb['shift']());}}}(_0x103b,0x1ffa0));function _0x103b(){var _0x44e886=['2Lfavlu','816666xxrTcI','21CshQSF','832868tQZBei','421875bCmpHq','5ocIsAW','65278WQSpYy','591273lxNziF','263816zRizlK','8834790vYILkx'];_0x103b=function(){return _0x44e886;};return _0x103b();}export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
23
+ (function(_0x13441b,_0x3f6e1e){var _0x43f710=_0x4230,_0x4619c9=_0x13441b();while(!![]){try{var _0x1bcc27=parseInt(_0x43f710(0xb6))/0x1+parseInt(_0x43f710(0xb7))/0x2+parseInt(_0x43f710(0xb0))/0x3*(-parseInt(_0x43f710(0xb3))/0x4)+-parseInt(_0x43f710(0xb4))/0x5*(parseInt(_0x43f710(0xb5))/0x6)+parseInt(_0x43f710(0xb2))/0x7+-parseInt(_0x43f710(0xb1))/0x8+parseInt(_0x43f710(0xb8))/0x9;if(_0x1bcc27===_0x3f6e1e)break;else _0x4619c9['push'](_0x4619c9['shift']());}catch(_0x25a99e){_0x4619c9['push'](_0x4619c9['shift']());}}}(_0x5b8b,0x5067c));function _0x5b8b(){var _0x528fa3=['2233742PxmQgs','4kfNuGj','12205lajpEu','1608dXJfzt','28444JIkAMX','173146qsasnX','11030886vXxTpE','1737597KucSFf','776400diNdXj'];_0x5b8b=function(){return _0x528fa3;};return _0x5b8b();}function _0x4230(_0x49abba,_0x439f79){var _0x5b8bd6=_0x5b8b();return _0x4230=function(_0x42301d,_0x1a4b0c){_0x42301d=_0x42301d-0xb0;var _0x5a4261=_0x5b8bd6[_0x42301d];return _0x5a4261;},_0x4230(_0x49abba,_0x439f79);}export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x7154(_0x1dcefc,_0x183fd2){const _0x13636d=_0x1363();return _0x7154=function(_0x7154d7,_0x1f4922){_0x7154d7=_0x7154d7-0x1cc;let _0x1af6f5=_0x13636d[_0x7154d7];return _0x1af6f5;},_0x7154(_0x1dcefc,_0x183fd2);}function _0x1363(){const _0x17776e=['4SbacbJ','ownerNode','join','9783504NGnnKI','1000KySRbl','fetch','all','8528705ytNqrm','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.','cssText','3797694fdZIrK',':root','103957NtJRBF','.ck-content','7873092kHHlvd','length','then','291tFlImJ','88pXXQJh','trim','indexOf','EDITOR_STYLES','hasAttribute','data-cke','push','9042OqyidB','warn','styleSheets','2567120xDbaXd','text','cssRules','from'];_0x1363=function(){return _0x17776e;};return _0x1363();}(function(_0x73ff7a,_0x59666a){const _0x57cd3d=_0x7154,_0x15358d=_0x73ff7a();while(!![]){try{const _0x1efc77=parseInt(_0x57cd3d(0x1cc))/0x1*(parseInt(_0x57cd3d(0x1d4))/0x2)+-parseInt(_0x57cd3d(0x1e5))/0x3*(parseInt(_0x57cd3d(0x1db))/0x4)+-parseInt(_0x57cd3d(0x1e2))/0x5+parseInt(_0x57cd3d(0x1e9))/0x6+parseInt(_0x57cd3d(0x1e7))/0x7*(-parseInt(_0x57cd3d(0x1df))/0x8)+parseInt(_0x57cd3d(0x1de))/0x9+-parseInt(_0x57cd3d(0x1d7))/0xa*(-parseInt(_0x57cd3d(0x1cd))/0xb);if(_0x1efc77===_0x59666a)break;else _0x15358d['push'](_0x15358d['shift']());}catch(_0x323d93){_0x15358d['push'](_0x15358d['shift']());}}}(_0x1363,0xe59f3));export function getStyles(_0x3c2cf3){const _0x35b8c4=_0x7154;if(!_0x3c2cf3)return new Promise(_0x46732e=>_0x46732e(''));const _0x87949e=[];for(const _0x220434 of _0x3c2cf3)_0x35b8c4(0x1d0)!==_0x220434?_0x87949e[_0x35b8c4(0x1d3)](window[_0x35b8c4(0x1e0)](_0x220434)[_0x35b8c4(0x1eb)](_0x81652a=>_0x81652a[_0x35b8c4(0x1d8)]())):_0x87949e[_0x35b8c4(0x1d3)](f());return Promise[_0x35b8c4(0x1e1)](_0x87949e)[_0x35b8c4(0x1eb)](_0x5b7639=>_0x5b7639[_0x35b8c4(0x1dd)]('\x20')[_0x35b8c4(0x1ce)]());}function f(){const _0x3b4ca7=_0x7154,_0x425a11=[],_0x52a5cd=[];for(const _0xf2bc94 of Array[_0x3b4ca7(0x1da)](document[_0x3b4ca7(0x1d6)])){if(_0xf2bc94[_0x3b4ca7(0x1dc)][_0x3b4ca7(0x1d1)](_0x3b4ca7(0x1d2))){for(const _0x3eed28 of Array[_0x3b4ca7(0x1da)](_0xf2bc94[_0x3b4ca7(0x1d9)]))-0x1!==_0x3eed28[_0x3b4ca7(0x1e4)][_0x3b4ca7(0x1cf)](_0x3b4ca7(0x1e8))?_0x425a11[_0x3b4ca7(0x1d3)](_0x3eed28[_0x3b4ca7(0x1e4)]):-0x1!==_0x3eed28[_0x3b4ca7(0x1e4)][_0x3b4ca7(0x1cf)](_0x3b4ca7(0x1e6))&&_0x52a5cd[_0x3b4ca7(0x1d3)](_0x3eed28[_0x3b4ca7(0x1e4)]);}}return _0x425a11[_0x3b4ca7(0x1ea)]||console[_0x3b4ca7(0x1d5)](_0x3b4ca7(0x1e3)),[..._0x52a5cd,..._0x425a11][_0x3b4ca7(0x1dd)]('\x20')[_0x3b4ca7(0x1ce)]();}
23
+ (function(_0xb915eb,_0x45eb00){const _0x2ce129=_0x1cec,_0x42c0c3=_0xb915eb();while(!![]){try{const _0x17b4a9=-parseInt(_0x2ce129(0x10f))/0x1*(parseInt(_0x2ce129(0x123))/0x2)+parseInt(_0x2ce129(0x118))/0x3+parseInt(_0x2ce129(0x11f))/0x4*(parseInt(_0x2ce129(0x127))/0x5)+-parseInt(_0x2ce129(0x111))/0x6+parseInt(_0x2ce129(0x10c))/0x7+parseInt(_0x2ce129(0x120))/0x8+-parseInt(_0x2ce129(0x11b))/0x9;if(_0x17b4a9===_0x45eb00)break;else _0x42c0c3['push'](_0x42c0c3['shift']());}catch(_0x33fe6c){_0x42c0c3['push'](_0x42c0c3['shift']());}}}(_0x216c,0x6e7b2));export function getStyles(_0x2e775e){const _0x3e189b=_0x1cec;if(!_0x2e775e)return new Promise(_0x4c7487=>_0x4c7487(''));const _0x473415=[];for(const _0x13e3b3 of _0x2e775e)_0x3e189b(0x113)!==_0x13e3b3?_0x473415[_0x3e189b(0x11a)](window[_0x3e189b(0x110)](_0x13e3b3)[_0x3e189b(0x117)](_0x17a88b=>_0x17a88b[_0x3e189b(0x112)]())):_0x473415[_0x3e189b(0x11a)](f());return Promise[_0x3e189b(0x114)](_0x473415)[_0x3e189b(0x117)](_0x178791=>_0x178791[_0x3e189b(0x126)]('\x20')[_0x3e189b(0x128)]());}function f(){const _0x3358e1=_0x1cec,_0x44afa4=[],_0x1d9e5e=[];for(const _0x3116b1 of Array[_0x3358e1(0x11e)](document[_0x3358e1(0x10e)])){if(_0x3116b1[_0x3358e1(0x10d)][_0x3358e1(0x115)](_0x3358e1(0x122))){for(const _0xd7a434 of Array[_0x3358e1(0x11e)](_0x3116b1[_0x3358e1(0x121)]))-0x1!==_0xd7a434[_0x3358e1(0x119)][_0x3358e1(0x11c)](_0x3358e1(0x11d))?_0x44afa4[_0x3358e1(0x11a)](_0xd7a434[_0x3358e1(0x119)]):-0x1!==_0xd7a434[_0x3358e1(0x119)][_0x3358e1(0x11c)](_0x3358e1(0x124))&&_0x1d9e5e[_0x3358e1(0x11a)](_0xd7a434[_0x3358e1(0x119)]);}}return _0x44afa4[_0x3358e1(0x125)]||console[_0x3358e1(0x116)](_0x3358e1(0x129)),[..._0x1d9e5e,..._0x44afa4][_0x3358e1(0x126)]('\x20')[_0x3358e1(0x128)]();}function _0x1cec(_0x11fbce,_0xa8f5a6){const _0x216cc3=_0x216c();return _0x1cec=function(_0x1cece7,_0x345ce9){_0x1cece7=_0x1cece7-0x10c;let _0xf026a0=_0x216cc3[_0x1cece7];return _0xf026a0;},_0x1cec(_0x11fbce,_0xa8f5a6);}function _0x216c(){const _0x507bbc=['from','1628UAcdcW','3664736GvcDLE','cssRules','data-cke','862lQKsIy',':root','length','join','6865OMFfGa','trim','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.','3858932tQNUwN','ownerNode','styleSheets','1253ffAxVs','fetch','1094022ExIBmk','text','EDITOR_STYLES','all','hasAttribute','warn','then','1291788HqAAqf','cssText','push','7414785kMVXLI','indexOf','.ck-content'];_0x216c=function(){return _0x507bbc;};return _0x216c();}