@ckeditor/ckeditor5-export-pdf 42.0.0-alpha.9 → 42.0.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.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.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 _0x49fb61=_0xd763;function _0xd763(_0x38ae8a,_0x84b4ae){const _0x1e0e2e=_0x1e0e();return _0xd763=function(_0xd76337,_0x5eba23){_0xd76337=_0xd76337-0x1ec;let _0x58aae8=_0x1e0e2e[_0xd76337];return _0x58aae8;},_0xd763(_0x38ae8a,_0x84b4ae);}(function(_0x4265a1,_0x57e9e8){const _0x5d5e04=_0xd763,_0x3d8fcc=_0x4265a1();while(!![]){try{const _0x311002=-parseInt(_0x5d5e04(0x1f1))/0x1+parseInt(_0x5d5e04(0x1fc))/0x2+-parseInt(_0x5d5e04(0x1f2))/0x3*(-parseInt(_0x5d5e04(0x1f6))/0x4)+parseInt(_0x5d5e04(0x201))/0x5+parseInt(_0x5d5e04(0x202))/0x6+parseInt(_0x5d5e04(0x1ee))/0x7+-parseInt(_0x5d5e04(0x1f4))/0x8;if(_0x311002===_0x57e9e8)break;else _0x3d8fcc['push'](_0x3d8fcc['shift']());}catch(_0x491940){_0x3d8fcc['push'](_0x3d8fcc['shift']());}}}(_0x1e0e,0x507a9));import{Plugin as _0x4af74c}from'ckeditor5/src/core.js';function _0x1e0e(){const _0x2357f2=['_token','commands','add','1174964stntSL','token','pluginName','init','get','1572980WFdJtf','1794540AnqNJG','editor','tokenUrl','then','registerTokenUrl','4336759XdnFBL','exportPdf','requires','526122VIKRMu','664311SGGAhw','CloudServices','11262528FcQgkj','ExportPdf','8RvFjEM','plugins','config'];_0x1e0e=function(){return _0x2357f2;};return _0x1e0e();}import{Notification as _0x3a1d95}from'ckeditor5/src/ui.js';import _0x45a81e from'./exportpdfcommand.js';import _0x41daa3 from'./exportpdfui.js';export default class s extends _0x4af74c{static get[_0x49fb61(0x1fe)](){const _0x182b0c=_0x49fb61;return _0x182b0c(0x1f5);}static get[_0x49fb61(0x1f0)](){const _0x36a874=_0x49fb61;return[_0x36a874(0x1f3),_0x3a1d95,_0x41daa3];}[_0x49fb61(0x1ff)](){const _0x1839fd=_0x49fb61,_0x14c01a=this[_0x1839fd(0x203)],_0x47d1e9=_0x14c01a[_0x1839fd(0x1f8)][_0x1839fd(0x200)](_0x1839fd(0x1ef))||{};_0x14c01a[_0x1839fd(0x1fa)][_0x1839fd(0x1fb)](_0x1839fd(0x1ef),new _0x45a81e(_0x14c01a));const _0x485d0c=_0x14c01a[_0x1839fd(0x1f7)][_0x1839fd(0x200)](_0x1839fd(0x1f3));!0x1===_0x47d1e9[_0x1839fd(0x204)]?this[_0x1839fd(0x1f9)]=null:_0x47d1e9[_0x1839fd(0x204)]?_0x485d0c[_0x1839fd(0x1ed)](_0x47d1e9[_0x1839fd(0x204)])[_0x1839fd(0x1ec)](_0x97f485=>{const _0x2c5a51=_0x1839fd;this[_0x2c5a51(0x1f9)]=_0x97f485;}):this[_0x1839fd(0x1f9)]=_0x485d0c[_0x1839fd(0x1fd)];}}
@@ -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 _0x5d443a}from'ckeditor5/src/core.js';import{getStyles as _0x1cce9d}from'./utils.js';export default class o extends _0x5d443a{constructor(_0x31d2af){super(_0x31d2af),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x34f394={}){const _0x5a7492=this['editor'],t=_0x5a7492['t'],_0x46fcac=_0x34f394['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x295c9f=_0x34f394['dataCallback']||(_0x504181=>_0x504181['data']['get']()),_0x517c54=_0x5a7492['plugins']['get']('ExportPdf'),_0x1ae7e1=_0x34f394['token']||_0x517c54['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x1cce9d(_0x34f394['stylesheets']||['EDITOR_STYLES'])['then'](async _0x5c5320=>{_0x5a7492['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x25b836={'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'+_0x5a7492['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x295c9f(_0x5a7492)+'\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':_0x5c5320,'options':_0x34f394['converterOptions']},_0x26eb2c={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x1ae7e1?{'Authorization':_0x1ae7e1['value']}:null,'x-cs-app-id':_0x34f394['appID']||'cke5'},'body':JSON['stringify'](_0x25b836)};return window['fetch'](_0x46fcac,_0x26eb2c)['then'](_0x52244e=>{if(0xc8!==_0x52244e['status'])throw _0x52244e;return _0x52244e['blob']();})['then'](_0x2f6f2d=>{_0x5a7492['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x48517c='function'==typeof _0x34f394['fileName']?_0x34f394['fileName']():_0x34f394['fileName'];this['_downloadFile'](_0x2f6f2d,_0x48517c||'document.pdf');});})['catch'](_0x5017c8=>{const _0xd30bd3=_0x5a7492['plugins']['get']('Notification');throw _0x5a7492['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0xd30bd3['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x5017c8;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xd52589,_0x158669){const _0x447bfe=document['createElement']('a');_0x447bfe['href']=window['URL']['createObjectURL'](_0xd52589),_0x447bfe['download']=_0x158669,_0x447bfe['click'](),_0x447bfe['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 _0xfbf8d6}from'ckeditor5/src/core.js';import{ButtonView as _0x1e87fe,MenuBarMenuListItemButtonView as _0x2cf62b,SpinnerView as _0x2be7c4}from'ckeditor5/src/ui.js';import _0x4f4c49 from'../theme/icons/exportpdf.svg';export default class i extends _0xfbf8d6{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x54e500=this['editor'];_0x54e500['ui']['componentFactory']['add']('exportPdf',()=>{const _0x372151=this['_createButton'](_0x1e87fe),_0x1111ca=_0x54e500['commands']['get']('exportPdf');return _0x372151['set']({'tooltip':!0x0}),_0x372151['bind']('isOn')['to'](_0x1111ca,'isBusy'),_0x372151;}),_0x54e500['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x2cf62b));}['_createButton'](_0xc9d217){const _0x3e4781=this['editor'],_0x1bfbd4=_0x3e4781['config']['get']('exportPdf')||{},t=_0x3e4781['locale']['t'],_0x3481d5=_0x3e4781['commands']['get']('exportPdf'),_0x49927d=new _0xc9d217(_0x3e4781['locale']),_0x5e770e=new _0x2be7c4();return _0x49927d['children']['add'](_0x5e770e),_0x5e770e['bind']('isVisible')['to'](_0x3481d5,'isBusy'),_0x49927d['iconView']['bind']('isVisible')['to'](_0x3481d5,'isBusy',_0x3fc53f=>!_0x3fc53f),_0x49927d['set']({'icon':_0x4f4c49}),_0x49927d['bind']('isEnabled')['to'](_0x3481d5,'isEnabled'),_0x49927d['bind']('label')['to'](_0x3481d5,'isBusy',_0x3375c4=>t(_0x3375c4?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x49927d,'execute',()=>{_0x3e4781['execute']('exportPdf',_0x1bfbd4),_0x3e4781['editing']['view']['focus']();}),_0x49927d;}}
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(_0xcf4675,_0x5b25de){var _0x5a717d=_0x215e,_0x364caf=_0xcf4675();while(!![]){try{var _0x23b95b=parseInt(_0x5a717d(0x11f))/0x1*(parseInt(_0x5a717d(0x120))/0x2)+parseInt(_0x5a717d(0x11b))/0x3+parseInt(_0x5a717d(0x11c))/0x4+-parseInt(_0x5a717d(0x11d))/0x5*(-parseInt(_0x5a717d(0x11a))/0x6)+parseInt(_0x5a717d(0x11e))/0x7*(-parseInt(_0x5a717d(0x118))/0x8)+-parseInt(_0x5a717d(0x117))/0x9+-parseInt(_0x5a717d(0x119))/0xa;if(_0x23b95b===_0x5b25de)break;else _0x364caf['push'](_0x364caf['shift']());}catch(_0x5b6b35){_0x364caf['push'](_0x364caf['shift']());}}}(_0x2f39,0x5c26f));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x215e(_0x188948,_0xd4dc1a){var _0x2f397d=_0x2f39();return _0x215e=function(_0x215e56,_0xecf03e){_0x215e56=_0x215e56-0x117;var _0x5c20a9=_0x2f397d[_0x215e56];return _0x5c20a9;},_0x215e(_0x188948,_0xd4dc1a);}function _0x2f39(){var _0x314196=['2052411ExvzvT','1806080WygwEr','5ctdKEU','243243RYTRqq','25zsPTcW','26098kgNFDT','1747881TGfpQx','48DsOBCv','8270810fbJCmO','872142EUTUtc'];_0x2f39=function(){return _0x314196;};return _0x2f39();}
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(_0x435d90,_0x4fad9c){const _0x35ce73=_0x1c04,_0x23b021=_0x435d90();while(!![]){try{const _0x1a7d1a=-parseInt(_0x35ce73(0x173))/0x1*(-parseInt(_0x35ce73(0x177))/0x2)+parseInt(_0x35ce73(0x17f))/0x3+-parseInt(_0x35ce73(0x180))/0x4*(-parseInt(_0x35ce73(0x17e))/0x5)+parseInt(_0x35ce73(0x182))/0x6+-parseInt(_0x35ce73(0x174))/0x7+-parseInt(_0x35ce73(0x181))/0x8+-parseInt(_0x35ce73(0x183))/0x9;if(_0x1a7d1a===_0x4fad9c)break;else _0x23b021['push'](_0x23b021['shift']());}catch(_0x1b4828){_0x23b021['push'](_0x23b021['shift']());}}}(_0xa860,0xa29bc));export function getStyles(_0x5849eb){const _0x5db743=_0x1c04;if(!_0x5849eb)return new Promise(_0x141480=>_0x141480(''));const _0x282006=[];for(const _0x42e8cc of _0x5849eb)_0x5db743(0x178)!==_0x42e8cc?_0x282006[_0x5db743(0x185)](window[_0x5db743(0x18a)](_0x42e8cc)[_0x5db743(0x189)](_0x3b2dd1=>_0x3b2dd1[_0x5db743(0x18b)]())):_0x282006[_0x5db743(0x185)](f());return Promise[_0x5db743(0x170)](_0x282006)[_0x5db743(0x189)](_0x14f7eb=>_0x14f7eb[_0x5db743(0x17a)]('\x20')[_0x5db743(0x18c)]());}function _0xa860(){const _0x2f8cac=['hasAttribute','styleSheets','758SNqGhn','EDITOR_STYLES','.ck-content','join','warn','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','30hEpHgW','2949870PcpIXm','747628UkcTtX','2925248SKhGzr','3966120jPDXfP','20476314sjucaY','length','push','ownerNode','indexOf','from','then','fetch','text','trim',':root','all','cssRules','data-cke','3046pQsTtW','4293380NncPaN'];_0xa860=function(){return _0x2f8cac;};return _0xa860();}function _0x1c04(_0x9e60af,_0x17c1b3){const _0xa860bd=_0xa860();return _0x1c04=function(_0x1c04e0,_0x257fd1){_0x1c04e0=_0x1c04e0-0x170;let _0x3a01c3=_0xa860bd[_0x1c04e0];return _0x3a01c3;},_0x1c04(_0x9e60af,_0x17c1b3);}function f(){const _0x52144b=_0x1c04,_0xedc523=[],_0x1fff9c=[];for(const _0x54cfa5 of Array[_0x52144b(0x188)](document[_0x52144b(0x176)])){if(_0x54cfa5[_0x52144b(0x186)][_0x52144b(0x175)](_0x52144b(0x172))){for(const _0x588a78 of Array[_0x52144b(0x188)](_0x54cfa5[_0x52144b(0x171)]))-0x1!==_0x588a78[_0x52144b(0x17d)][_0x52144b(0x187)](_0x52144b(0x179))?_0xedc523[_0x52144b(0x185)](_0x588a78[_0x52144b(0x17d)]):-0x1!==_0x588a78[_0x52144b(0x17d)][_0x52144b(0x187)](_0x52144b(0x18d))&&_0x1fff9c[_0x52144b(0x185)](_0x588a78[_0x52144b(0x17d)]);}}return _0xedc523[_0x52144b(0x184)]||console[_0x52144b(0x17b)](_0x52144b(0x17c)),[..._0x1fff9c,..._0xedc523][_0x52144b(0x17a)]('\x20')[_0x52144b(0x18c)]();}