@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240605.0 → 0.0.0-nightly-20240605.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/build/export-pdf.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/types/exportpdf.d.ts +10 -7
- package/package.json +2 -2
- package/src/exportpdf.d.ts +10 -7
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e79bc=>{const {zh:{dictionary:_0x5de623,getPluralForm:_0x3183ad}}={'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':_0x2664dd=>0x0}};_0x1e79bc['zh']||={'dictionary':{},'getPluralForm':null},_0x1e79bc['zh']['dictionary']=Object['assign'](_0x1e79bc['zh']['dictionary'],_0x5de623),_0x1e79bc['zh']['getPluralForm']=_0x3183ad;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -60,13 +60,16 @@ export interface ExportPdfConfig {
|
|
|
60
60
|
* ```
|
|
61
61
|
*
|
|
62
62
|
* **NOTE:** If `stylesheets` are not provided, the plugin will sent only
|
|
63
|
-
* {@glink
|
|
63
|
+
* {@glink getting-started/setup/css the default editor content styles}
|
|
64
|
+
* to the converter.
|
|
64
65
|
*
|
|
65
66
|
* **Default editor's content styles**:
|
|
66
|
-
* {@glink
|
|
67
|
+
* {@glink getting-started/setup/css The default editor content styles}
|
|
67
68
|
* are applied to the generated PDF thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
|
|
68
69
|
* If you don't want them to be applied, you have to omit the token:
|
|
69
70
|
*
|
|
71
|
+
* **NOTE:** The 'EDITOR_STYLES' string is only supported in legacy webpack setup.
|
|
72
|
+
*
|
|
70
73
|
* ```ts
|
|
71
74
|
* const exportPdfConfig = {
|
|
72
75
|
* stylesheets: [ './path/to/custom-editor-styles.css' ]
|
|
@@ -79,8 +82,8 @@ export interface ExportPdfConfig {
|
|
|
79
82
|
* ```ts
|
|
80
83
|
* const exportPdfConfig = {
|
|
81
84
|
* stylesheets: [
|
|
82
|
-
* '
|
|
83
|
-
* '
|
|
85
|
+
* 'path/to/editor-styles.css',
|
|
86
|
+
* './path/to/fonts.css'
|
|
84
87
|
* ]
|
|
85
88
|
* }
|
|
86
89
|
* ```
|
|
@@ -90,8 +93,8 @@ export interface ExportPdfConfig {
|
|
|
90
93
|
* ```ts
|
|
91
94
|
* const exportPdfConfig = {
|
|
92
95
|
* stylesheets: [
|
|
96
|
+
* 'path/to/editor-styles.css',
|
|
93
97
|
* './path/to/fonts.css',
|
|
94
|
-
* 'EDITOR_STYLES',
|
|
95
98
|
* './path/to/custom-styles.css'
|
|
96
99
|
* ]
|
|
97
100
|
* }
|
|
@@ -211,7 +214,7 @@ export interface ExportPdfConfig {
|
|
|
211
214
|
appID?: string;
|
|
212
215
|
}
|
|
213
216
|
export type ExportPdfConverterOptions = {
|
|
214
|
-
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6'
|
|
217
|
+
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
|
|
215
218
|
margin_top?: string;
|
|
216
219
|
margin_bottom?: string;
|
|
217
220
|
margin_right?: string;
|
|
@@ -219,7 +222,7 @@ export type ExportPdfConverterOptions = {
|
|
|
219
222
|
header_html?: string;
|
|
220
223
|
footer_html?: string;
|
|
221
224
|
header_and_footer_css?: string;
|
|
222
|
-
page_orientation?: 'portrait' | 'landscape'
|
|
225
|
+
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
223
226
|
wait_for_network?: boolean;
|
|
224
227
|
wait_time?: number;
|
|
225
228
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "0.0.0-nightly-20240605.
|
|
3
|
+
"version": "0.0.0-nightly-20240605.1",
|
|
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": "0.0.0-nightly-20240605.
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20240605.1"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.d.ts
CHANGED
|
@@ -56,13 +56,16 @@ export interface ExportPdfConfig {
|
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
58
58
|
* **NOTE:** If `stylesheets` are not provided, the plugin will sent only
|
|
59
|
-
* {@glink
|
|
59
|
+
* {@glink getting-started/setup/css the default editor content styles}
|
|
60
|
+
* to the converter.
|
|
60
61
|
*
|
|
61
62
|
* **Default editor's content styles**:
|
|
62
|
-
* {@glink
|
|
63
|
+
* {@glink getting-started/setup/css The default editor content styles}
|
|
63
64
|
* are applied to the generated PDF thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
|
|
64
65
|
* If you don't want them to be applied, you have to omit the token:
|
|
65
66
|
*
|
|
67
|
+
* **NOTE:** The 'EDITOR_STYLES' string is only supported in legacy webpack setup.
|
|
68
|
+
*
|
|
66
69
|
* ```ts
|
|
67
70
|
* const exportPdfConfig = {
|
|
68
71
|
* stylesheets: [ './path/to/custom-editor-styles.css' ]
|
|
@@ -75,8 +78,8 @@ export interface ExportPdfConfig {
|
|
|
75
78
|
* ```ts
|
|
76
79
|
* const exportPdfConfig = {
|
|
77
80
|
* stylesheets: [
|
|
78
|
-
* '
|
|
79
|
-
* '
|
|
81
|
+
* 'path/to/editor-styles.css',
|
|
82
|
+
* './path/to/fonts.css'
|
|
80
83
|
* ]
|
|
81
84
|
* }
|
|
82
85
|
* ```
|
|
@@ -86,8 +89,8 @@ export interface ExportPdfConfig {
|
|
|
86
89
|
* ```ts
|
|
87
90
|
* const exportPdfConfig = {
|
|
88
91
|
* stylesheets: [
|
|
92
|
+
* 'path/to/editor-styles.css',
|
|
89
93
|
* './path/to/fonts.css',
|
|
90
|
-
* 'EDITOR_STYLES',
|
|
91
94
|
* './path/to/custom-styles.css'
|
|
92
95
|
* ]
|
|
93
96
|
* }
|
|
@@ -207,7 +210,7 @@ export interface ExportPdfConfig {
|
|
|
207
210
|
appID?: string;
|
|
208
211
|
}
|
|
209
212
|
export type ExportPdfConverterOptions = {
|
|
210
|
-
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6'
|
|
213
|
+
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
|
|
211
214
|
margin_top?: string;
|
|
212
215
|
margin_bottom?: string;
|
|
213
216
|
margin_right?: string;
|
|
@@ -215,7 +218,7 @@ export type ExportPdfConverterOptions = {
|
|
|
215
218
|
header_html?: string;
|
|
216
219
|
footer_html?: string;
|
|
217
220
|
header_and_footer_css?: string;
|
|
218
|
-
page_orientation?: 'portrait' | 'landscape'
|
|
221
|
+
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
219
222
|
wait_for_network?: boolean;
|
|
220
223
|
wait_time?: number;
|
|
221
224
|
};
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53bb56=_0x4104;(function(_0x5bf826,_0x5cf837){const _0x5e168b=_0x4104,_0x1f1930=_0x5bf826();while(!![]){try{const _0x231013=parseInt(_0x5e168b(0xb3))/0x1+parseInt(_0x5e168b(0xad))/0x2*(-parseInt(_0x5e168b(0xa9))/0x3)+-parseInt(_0x5e168b(0xb4))/0x4*(-parseInt(_0x5e168b(0xba))/0x5)+-parseInt(_0x5e168b(0xa5))/0x6+parseInt(_0x5e168b(0xa7))/0x7*(-parseInt(_0x5e168b(0xb1))/0x8)+parseInt(_0x5e168b(0xb7))/0x9*(-parseInt(_0x5e168b(0xbc))/0xa)+parseInt(_0x5e168b(0xab))/0xb*(parseInt(_0x5e168b(0xb9))/0xc);if(_0x231013===_0x5cf837)break;else _0x1f1930['push'](_0x1f1930['shift']());}catch(_0x6b0fa6){_0x1f1930['push'](_0x1f1930['shift']());}}}(_0x5039,0x51338));function _0x4104(_0x23712b,_0x455ae6){const _0x5039c9=_0x5039();return _0x4104=function(_0x410402,_0x53a9a1){_0x410402=_0x410402-0xa5;let _0x1158c6=_0x5039c9[_0x410402];return _0x1158c6;},_0x4104(_0x23712b,_0x455ae6);}import{Plugin as _0x538a64}from'ckeditor5/src/core.js';function _0x5039(){const _0x43817b=['219nzvERP','config','2918586uYhGra','registerTokenUrl','4882ietYGt','get','then','requires','482368tfcwnP','plugins','333743CzTgxD','654708OKMhSC','CloudServices','init','63saJQHK','token','24JtNgTk','10FJHzOm','exportPdf','526270ryijaF','_token','pluginName','tokenUrl','commands','ExportPdf','1513626RZadUU','add','7aBjWTG','editor'];_0x5039=function(){return _0x43817b;};return _0x5039();}import{Notification as _0x4ab527}from'ckeditor5/src/ui.js';import _0x5347ae from'./exportpdfcommand.js';import _0x277cc1 from'./exportpdfui.js';export default class s extends _0x538a64{static get[_0x53bb56(0xbe)](){const _0x3cf5be=_0x53bb56;return _0x3cf5be(0xc1);}static get[_0x53bb56(0xb0)](){const _0x1805aa=_0x53bb56;return[_0x1805aa(0xb5),_0x4ab527,_0x277cc1];}[_0x53bb56(0xb6)](){const _0x4965ae=_0x53bb56,_0x58412d=this[_0x4965ae(0xa8)],_0x348b07=_0x58412d[_0x4965ae(0xaa)][_0x4965ae(0xae)](_0x4965ae(0xbb))||{};_0x58412d[_0x4965ae(0xc0)][_0x4965ae(0xa6)](_0x4965ae(0xbb),new _0x5347ae(_0x58412d));const _0x26439a=_0x58412d[_0x4965ae(0xb2)][_0x4965ae(0xae)](_0x4965ae(0xb5));!0x1===_0x348b07[_0x4965ae(0xbf)]?this[_0x4965ae(0xbd)]=null:_0x348b07[_0x4965ae(0xbf)]?_0x26439a[_0x4965ae(0xac)](_0x348b07[_0x4965ae(0xbf)])[_0x4965ae(0xaf)](_0x285102=>{const _0x2f2a79=_0x4965ae;this[_0x2f2a79(0xbd)]=_0x285102;}):this[_0x4965ae(0xbd)]=_0x26439a[_0x4965ae(0xb8)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x12ed50}from'ckeditor5/src/core.js';import{getStyles as _0x3ed169}from'./utils.js';export default class o extends _0x12ed50{constructor(_0xb0eec4){super(_0xb0eec4),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0xcb0d56={}){const _0x27801d=this['editor'],t=_0x27801d['t'],_0x2d745c=_0xcb0d56['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x209bb2=_0xcb0d56['dataCallback']||(_0x75f7e3=>_0x75f7e3['data']['get']()),_0x3eb3cc=_0x27801d['plugins']['get']('ExportPdf'),_0x955db2=_0xcb0d56['token']||_0x3eb3cc['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x3ed169(_0xcb0d56['stylesheets']||['EDITOR_STYLES'])['then'](async _0x200902=>{_0x27801d['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x4d838f={'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'+_0x27801d['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x209bb2(_0x27801d)+'\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':_0x200902,'options':_0xcb0d56['converterOptions']},_0x3dd7a7={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x955db2?{'Authorization':_0x955db2['value']}:null,'x-cs-app-id':_0xcb0d56['appID']||'cke5'},'body':JSON['stringify'](_0x4d838f)};return window['fetch'](_0x2d745c,_0x3dd7a7)['then'](_0xe5bae=>{if(0xc8!==_0xe5bae['status'])throw _0xe5bae;return _0xe5bae['blob']();})['then'](_0x2d921d=>{_0x27801d['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x3a99c9='function'==typeof _0xcb0d56['fileName']?_0xcb0d56['fileName']():_0xcb0d56['fileName'];this['_downloadFile'](_0x2d921d,_0x3a99c9||'document.pdf');});})['catch'](_0x10efed=>{const _0x397c97=_0x27801d['plugins']['get']('Notification');throw _0x27801d['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x397c97['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x10efed;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x515e2f,_0xdb757e){const _0x5eaee0=document['createElement']('a');_0x5eaee0['href']=window['URL']['createObjectURL'](_0x515e2f),_0x5eaee0['download']=_0xdb757e,_0x5eaee0['click'](),_0x5eaee0['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xfc5d69}from'ckeditor5/src/core.js';import{ButtonView as _0x49967d,MenuBarMenuListItemButtonView as _0xb80c06,SpinnerView as _0x3d7346}from'ckeditor5/src/ui.js';import _0x50c698 from'../theme/icons/exportpdf.svg';export default class i extends _0xfc5d69{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x56fa2e=this['editor'];_0x56fa2e['ui']['componentFactory']['add']('exportPdf',()=>{const _0x156250=this['_createButton'](_0x49967d),_0x9fd622=_0x56fa2e['commands']['get']('exportPdf');return _0x156250['set']({'tooltip':!0x0}),_0x156250['bind']('isOn')['to'](_0x9fd622,'isBusy'),_0x156250;}),_0x56fa2e['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0xb80c06));}['_createButton'](_0x511fcb){const _0xa91804=this['editor'],_0x5f30d2=_0xa91804['config']['get']('exportPdf')||{},t=_0xa91804['locale']['t'],_0x3b8fc6=_0xa91804['commands']['get']('exportPdf'),_0x314496=new _0x511fcb(_0xa91804['locale']),_0x4d3520=new _0x3d7346();return _0x314496['children']['add'](_0x4d3520),_0x4d3520['bind']('isVisible')['to'](_0x3b8fc6,'isBusy'),_0x314496['iconView']['bind']('isVisible')['to'](_0x3b8fc6,'isBusy',_0x125624=>!_0x125624),_0x314496['set']({'icon':_0x50c698}),_0x314496['bind']('isEnabled')['to'](_0x3b8fc6,'isEnabled'),_0x314496['bind']('label')['to'](_0x3b8fc6,'isBusy',_0x36e034=>t(_0x36e034?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x314496,'execute',()=>{_0xa91804['execute']('exportPdf',_0x5f30d2),_0xa91804['editing']['view']['focus']();}),_0x314496;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4a04b2,_0x285cc1){var _0x4bf8e7=_0x3ef2,_0x5483cf=_0x4a04b2();while(!![]){try{var _0x1f05d7=-parseInt(_0x4bf8e7(0x93))/0x1+parseInt(_0x4bf8e7(0x94))/0x2+-parseInt(_0x4bf8e7(0x92))/0x3*(parseInt(_0x4bf8e7(0x9b))/0x4)+parseInt(_0x4bf8e7(0x98))/0x5+parseInt(_0x4bf8e7(0x95))/0x6*(-parseInt(_0x4bf8e7(0x96))/0x7)+-parseInt(_0x4bf8e7(0x9a))/0x8+parseInt(_0x4bf8e7(0x97))/0x9*(parseInt(_0x4bf8e7(0x99))/0xa);if(_0x1f05d7===_0x285cc1)break;else _0x5483cf['push'](_0x5483cf['shift']());}catch(_0x34c4e9){_0x5483cf['push'](_0x5483cf['shift']());}}}(_0x137e,0xc4346));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x3ef2(_0x3b8fe6,_0x98a6c7){var _0x137ef4=_0x137e();return _0x3ef2=function(_0x3ef27e,_0x11eaaa){_0x3ef27e=_0x3ef27e-0x92;var _0x2f1045=_0x137ef4[_0x3ef27e];return _0x2f1045;},_0x3ef2(_0x3b8fe6,_0x98a6c7);}function _0x137e(){var _0x5510fd=['5591768AQZZEe','1013396HtrdFC','9DrHIug','1079231uIsqSk','1840750uJQYOF','918nIkske','62783MYBVmO','666egAELc','6141395zXZljE','346690HjubRJ'];_0x137e=function(){return _0x5510fd;};return _0x137e();}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x14f122,_0xe579b0){const _0x5ad806=_0x10da,_0x4c1e3f=_0x14f122();while(!![]){try{const _0x312738=-parseInt(_0x5ad806(0x93))/0x1*(parseInt(_0x5ad806(0x8e))/0x2)+parseInt(_0x5ad806(0x92))/0x3+-parseInt(_0x5ad806(0x86))/0x4+-parseInt(_0x5ad806(0x88))/0x5+-parseInt(_0x5ad806(0x84))/0x6+parseInt(_0x5ad806(0x98))/0x7*(-parseInt(_0x5ad806(0x9e))/0x8)+-parseInt(_0x5ad806(0x9c))/0x9*(-parseInt(_0x5ad806(0x81))/0xa);if(_0x312738===_0xe579b0)break;else _0x4c1e3f['push'](_0x4c1e3f['shift']());}catch(_0x450e19){_0x4c1e3f['push'](_0x4c1e3f['shift']());}}}(_0x5612,0xf025e));export function getStyles(_0x34741e){const _0x3e5f8b=_0x10da;if(!_0x34741e)return new Promise(_0x4e4da1=>_0x4e4da1(''));const _0x66bda9=[];for(const _0x3ea43f of _0x34741e)_0x3e5f8b(0x99)!==_0x3ea43f?_0x66bda9[_0x3e5f8b(0x9d)](window[_0x3e5f8b(0x95)](_0x3ea43f)[_0x3e5f8b(0x8a)](_0x4e864f=>_0x4e864f[_0x3e5f8b(0x91)]())):_0x66bda9[_0x3e5f8b(0x9d)](f());return Promise[_0x3e5f8b(0x8c)](_0x66bda9)[_0x3e5f8b(0x8a)](_0x57e068=>_0x57e068[_0x3e5f8b(0x8d)]('\x20')[_0x3e5f8b(0x94)]());}function _0x10da(_0x24d3cd,_0x4bc4b5){const _0x561276=_0x5612();return _0x10da=function(_0x10da97,_0x85033e){_0x10da97=_0x10da97-0x81;let _0x352030=_0x561276[_0x10da97];return _0x352030;},_0x10da(_0x24d3cd,_0x4bc4b5);}function _0x5612(){const _0x5f0b1c=['fetch','styleSheets','warn','7sPrqfI','EDITOR_STYLES','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.',':root','62685054ycpWrR','push','15428984ZuhOPg','indexOf','10xnHPzo','length','ownerNode','6216690zSOScc','.ck-content','3540432gxzTAC','data-cke','9622760PTNDpX','hasAttribute','then','cssRules','all','join','2QyIXKR','from','cssText','text','981093ScYPjZ','533993WGezKJ','trim'];_0x5612=function(){return _0x5f0b1c;};return _0x5612();}function f(){const _0x33abf0=_0x10da,_0x4ea2c5=[],_0x23682e=[];for(const _0x392a1d of Array[_0x33abf0(0x8f)](document[_0x33abf0(0x96)])){if(_0x392a1d[_0x33abf0(0x83)][_0x33abf0(0x89)](_0x33abf0(0x87))){for(const _0x10d43f of Array[_0x33abf0(0x8f)](_0x392a1d[_0x33abf0(0x8b)]))-0x1!==_0x10d43f[_0x33abf0(0x90)][_0x33abf0(0x9f)](_0x33abf0(0x85))?_0x4ea2c5[_0x33abf0(0x9d)](_0x10d43f[_0x33abf0(0x90)]):-0x1!==_0x10d43f[_0x33abf0(0x90)][_0x33abf0(0x9f)](_0x33abf0(0x9b))&&_0x23682e[_0x33abf0(0x9d)](_0x10d43f[_0x33abf0(0x90)]);}}return _0x4ea2c5[_0x33abf0(0x82)]||console[_0x33abf0(0x97)](_0x33abf0(0x9a)),[..._0x23682e,..._0x4ea2c5][_0x33abf0(0x8d)]('\x20')[_0x33abf0(0x94)]();}
|