@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240626.1 → 0.0.0-nightly-20240627.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/export-pdf.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/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 +6 -5
- package/package.json +2 -2
- package/src/exportpdf.d.ts +6 -5
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe5651e=>{const {'zh-cn':{dictionary:_0xc4b2d4,getPluralForm:_0x2da7e5}}={'zh-cn':{'dictionary':{'Export\x20to\x20PDF':'导出为PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'生成PDF时发生了异常。','PDF\x20export\x20started':'PDF\x20导出开始','PDF\x20export\x20failed':'PDF\x20导出失败','PDF\x20export\x20successful':'PDF\x20导出成功','Exporting\x20PDF\x20document':'正在导出\x20PDF\x20文档'},'getPluralForm':_0x397830=>0x0}};_0xe5651e['zh-cn']||={'dictionary':{},'getPluralForm':null},_0xe5651e['zh-cn']['dictionary']=Object['assign'](_0xe5651e['zh-cn']['dictionary'],_0xc4b2d4),_0xe5651e['zh-cn']['getPluralForm']=_0x2da7e5;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/zh.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'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':
|
|
23
|
+
export default{'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':_0x1c7538=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4258ae=>{const {zh:{dictionary:_0x525f79,getPluralForm:_0x34efe4}}={'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':_0x3db6a5=>0x0}};_0x4258ae['zh']||={'dictionary':{},'getPluralForm':null},_0x4258ae['zh']['dictionary']=Object['assign'](_0x4258ae['zh']['dictionary'],_0x525f79),_0x4258ae['zh']['getPluralForm']=_0x34efe4;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -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
|
|
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": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240627.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": "0.0.0-nightly-
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20240627.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
23
|
+
function _0x99f8(){const _0x44ddae=['15608NosREr','CloudServices','ExportPdf','editor','plugins','registerTokenUrl','62027VzrmND','requires','pluginName','4422636ZrlkOP','_token','add','init','config','972603oSPcKA','4630615eMalNM','tokenUrl','then','token','559244zBtVdo','get','exportPdf','17520RCtNxF','commands','3rphLTD','1836XoLRJi','944npPtva'];_0x99f8=function(){return _0x44ddae;};return _0x99f8();}const _0x2be309=_0x20ad;(function(_0x43f840,_0x591d69){const _0x5858bb=_0x20ad,_0x55d033=_0x43f840();while(!![]){try{const _0x5172bb=-parseInt(_0x5858bb(0x165))/0x1+parseInt(_0x5858bb(0x14f))/0x2+parseInt(_0x5858bb(0x154))/0x3*(parseInt(_0x5858bb(0x157))/0x4)+-parseInt(_0x5858bb(0x14b))/0x5+parseInt(_0x5858bb(0x160))/0x6+parseInt(_0x5858bb(0x15d))/0x7*(parseInt(_0x5858bb(0x156))/0x8)+parseInt(_0x5858bb(0x155))/0x9*(parseInt(_0x5858bb(0x152))/0xa);if(_0x5172bb===_0x591d69)break;else _0x55d033['push'](_0x55d033['shift']());}catch(_0x213556){_0x55d033['push'](_0x55d033['shift']());}}}(_0x99f8,0x8026e));import{Plugin as _0x6beada}from'ckeditor5/src/core.js';function _0x20ad(_0x33b94d,_0x114e4e){const _0x99f8b0=_0x99f8();return _0x20ad=function(_0x20adbd,_0x4d9073){_0x20adbd=_0x20adbd-0x14b;let _0x486bee=_0x99f8b0[_0x20adbd];return _0x486bee;},_0x20ad(_0x33b94d,_0x114e4e);}import{Notification as _0x4b26e5}from'ckeditor5/src/ui.js';import _0x3b4f89 from'./exportpdfcommand.js';import _0x1a8456 from'./exportpdfui.js';export default class s extends _0x6beada{static get[_0x2be309(0x15f)](){const _0x589bcc=_0x2be309;return _0x589bcc(0x159);}static get[_0x2be309(0x15e)](){const _0x413440=_0x2be309;return[_0x413440(0x158),_0x4b26e5,_0x1a8456];}[_0x2be309(0x163)](){const _0x36451b=_0x2be309,_0x2e13aa=this[_0x36451b(0x15a)],_0x25caaf=_0x2e13aa[_0x36451b(0x164)][_0x36451b(0x150)](_0x36451b(0x151))||{};_0x2e13aa[_0x36451b(0x153)][_0x36451b(0x162)](_0x36451b(0x151),new _0x3b4f89(_0x2e13aa));const _0x1bf83d=_0x2e13aa[_0x36451b(0x15b)][_0x36451b(0x150)](_0x36451b(0x158));!0x1===_0x25caaf[_0x36451b(0x14c)]?this[_0x36451b(0x161)]=null:_0x25caaf[_0x36451b(0x14c)]?_0x1bf83d[_0x36451b(0x15c)](_0x25caaf[_0x36451b(0x14c)])[_0x36451b(0x14d)](_0x23ebd8=>{const _0xca7193=_0x36451b;this[_0xca7193(0x161)]=_0x23ebd8;}):this[_0x36451b(0x161)]=_0x1bf83d[_0x36451b(0x14e)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f3837=_0xd8ba;function _0x4700(){const _0x1bcceb=['catch','PDF\x20export\x20successful','plugins','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','refresh','16DnriXJ','data','status','_token','createElement','<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','application/pdf','4kjniHF','PDF\x20export\x20started','993156lXfWYK','remove','Notification','ExportPdf','value','token','ariaLiveAnnouncer','converterOptions','execute','document.pdf','href','6207785gSSRZM','application/json','locale','10vDDPEG','POST','fileName','isEnabled','271014kJQdSL','269744ABwods','announce','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','contentLanguageDirection','editor','finally','stylesheets','dataCallback','get','affectsData','appID','URL','2764256qTSNKs','download','converterUrl','then','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','createObjectURL','638610UTGRIm','function','assertive','_downloadFile','stringify','set','PDF\x20export\x20failed','blob','fetch','click','cke5','30017943ZjBbGy','showWarning','isBusy','pending','EDITOR_STYLES','https://pdf-converter.cke-cs.com/v1/convert/'];_0x4700=function(){return _0x1bcceb;};return _0x4700();}function _0xd8ba(_0x525fac,_0x18c881){const _0x47007e=_0x4700();return _0xd8ba=function(_0xd8bae0,_0x57c5ec){_0xd8bae0=_0xd8bae0-0x183;let _0x5d9c14=_0x47007e[_0xd8bae0];return _0x5d9c14;},_0xd8ba(_0x525fac,_0x18c881);}(function(_0x2c85f8,_0x2c5845){const _0x563353=_0xd8ba,_0x3d00a1=_0x2c85f8();while(!![]){try{const _0x38fe09=parseInt(_0x563353(0x1ae))/0x1*(-parseInt(_0x563353(0x199))/0x2)+parseInt(_0x563353(0x19b))/0x3*(-parseInt(_0x563353(0x192))/0x4)+-parseInt(_0x563353(0x1a6))/0x5+parseInt(_0x563353(0x1ad))/0x6+parseInt(_0x563353(0x1c0))/0x7+parseInt(_0x563353(0x1ba))/0x8+-parseInt(_0x563353(0x187))/0x9*(-parseInt(_0x563353(0x1a9))/0xa);if(_0x38fe09===_0x2c5845)break;else _0x3d00a1['push'](_0x3d00a1['shift']());}catch(_0x2df15d){_0x3d00a1['push'](_0x3d00a1['shift']());}}}(_0x4700,0xadd45));import{Command as _0x22cce2}from'ckeditor5/src/core.js';import{getStyles as _0x561a47}from'./utils.js';import{getTranslation as _0x3c1686}from'./utils/common-translations.js';export default class o extends _0x22cce2{constructor(_0xcaf7ea){const _0x51d8bb=_0xd8ba;super(_0xcaf7ea),this[_0x51d8bb(0x1c5)](_0x51d8bb(0x189),!0x1),this[_0x51d8bb(0x1b7)]=!0x1;}[_0x4f3837(0x191)](){const _0x160efb=_0x4f3837;this[_0x160efb(0x1ac)]=!this[_0x160efb(0x189)],this[_0x160efb(0x19f)]=this[_0x160efb(0x189)]?_0x160efb(0x18a):void 0x0;}[_0x4f3837(0x1a3)](_0x51c5d3={}){const _0x53a8cd=_0x4f3837,_0x309502=this[_0x53a8cd(0x1b2)],_0x4e23b6=_0x51c5d3[_0x53a8cd(0x1bc)]||_0x53a8cd(0x18c),_0x1062cf=_0x51c5d3[_0x53a8cd(0x1b5)]||(_0x36c963=>_0x36c963[_0x53a8cd(0x193)][_0x53a8cd(0x1b6)]()),_0x2bb8fa=_0x309502[_0x53a8cd(0x18f)][_0x53a8cd(0x1b6)](_0x53a8cd(0x19e)),_0x4ce026=_0x51c5d3[_0x53a8cd(0x1a0)]||_0x2bb8fa[_0x53a8cd(0x195)];return this[_0x53a8cd(0x189)]=!0x0,this[_0x53a8cd(0x191)](),_0x561a47(_0x51c5d3[_0x53a8cd(0x1b4)]||[_0x53a8cd(0x18b)])[_0x53a8cd(0x1bd)](async _0x54e5ab=>{const _0x5b50b4=_0x53a8cd;_0x309502['ui'][_0x5b50b4(0x1a1)][_0x5b50b4(0x1af)](_0x3c1686(_0x309502[_0x5b50b4(0x1a8)],_0x5b50b4(0x19a)));const _0x4e7c6f={'html':_0x5b50b4(0x197)+_0x309502[_0x5b50b4(0x1a8)][_0x5b50b4(0x1b1)]+_0x5b50b4(0x1be)+await _0x1062cf(_0x309502)+_0x5b50b4(0x1b0),'css':_0x54e5ab,'options':_0x51c5d3[_0x5b50b4(0x1a2)]},_0x288317={'method':_0x5b50b4(0x1aa),'headers':{'Content-Type':_0x5b50b4(0x1a7),'Accept':_0x5b50b4(0x198),..._0x4ce026?{'Authorization':_0x4ce026[_0x5b50b4(0x19f)]}:null,'x-cs-app-id':_0x51c5d3[_0x5b50b4(0x1b8)]||_0x5b50b4(0x186)},'body':JSON[_0x5b50b4(0x1c4)](_0x4e7c6f)};return window[_0x5b50b4(0x184)](_0x4e23b6,_0x288317)[_0x5b50b4(0x1bd)](_0x1cfce4=>{const _0x38c6bc=_0x5b50b4;if(0xc8!==_0x1cfce4[_0x38c6bc(0x194)])throw _0x1cfce4;return _0x1cfce4[_0x38c6bc(0x183)]();})[_0x5b50b4(0x1bd)](_0x11f7e0=>{const _0x826242=_0x5b50b4;_0x309502['ui'][_0x826242(0x1a1)][_0x826242(0x1af)](_0x3c1686(_0x309502[_0x826242(0x1a8)],_0x826242(0x18e)));const _0x642c9f=_0x826242(0x1c1)==typeof _0x51c5d3[_0x826242(0x1ab)]?_0x51c5d3[_0x826242(0x1ab)]():_0x51c5d3[_0x826242(0x1ab)];this[_0x826242(0x1c3)](_0x11f7e0,_0x642c9f||_0x826242(0x1a4));});})[_0x53a8cd(0x18d)](_0x22be70=>{const _0x4b46f4=_0x53a8cd,_0x5577a0=_0x309502[_0x4b46f4(0x18f)][_0x4b46f4(0x1b6)](_0x4b46f4(0x19d));throw _0x309502['ui'][_0x4b46f4(0x1a1)][_0x4b46f4(0x1af)](_0x3c1686(_0x309502[_0x4b46f4(0x1a8)],_0x4b46f4(0x1c6)),{'politeness':_0x4b46f4(0x1c2)}),_0x5577a0[_0x4b46f4(0x188)](_0x3c1686(_0x309502[_0x4b46f4(0x1a8)],_0x4b46f4(0x190))),_0x22be70;})[_0x53a8cd(0x1b3)](()=>{const _0x252b95=_0x53a8cd;this[_0x252b95(0x189)]=!0x1,this[_0x252b95(0x191)]();});}[_0x4f3837(0x1c3)](_0x491bf7,_0x3b37d9){const _0x19e01f=_0x4f3837,_0x29ac0f=document[_0x19e01f(0x196)]('a');_0x29ac0f[_0x19e01f(0x1a5)]=window[_0x19e01f(0x1b9)][_0x19e01f(0x1bf)](_0x491bf7),_0x29ac0f[_0x19e01f(0x1bb)]=_0x3b37d9,_0x29ac0f[_0x19e01f(0x185)](),_0x29ac0f[_0x19e01f(0x19c)]();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x20e6b7=_0xc11a;(function(_0x5c331f,_0x249b50){const _0x505491=_0xc11a,_0x5d0324=_0x5c331f();while(!![]){try{const _0x1a29e7=parseInt(_0x505491(0xca))/0x1+-parseInt(_0x505491(0xcc))/0x2*(-parseInt(_0x505491(0xc2))/0x3)+-parseInt(_0x505491(0xc5))/0x4+-parseInt(_0x505491(0xe2))/0x5+parseInt(_0x505491(0xd1))/0x6*(parseInt(_0x505491(0xdb))/0x7)+parseInt(_0x505491(0xe3))/0x8+-parseInt(_0x505491(0xcf))/0x9;if(_0x1a29e7===_0x249b50)break;else _0x5d0324['push'](_0x5d0324['shift']());}catch(_0x31dcfd){_0x5d0324['push'](_0x5d0324['shift']());}}}(_0xa840,0x80bb5));function _0xc11a(_0x2122fc,_0x531579){const _0xa840fa=_0xa840();return _0xc11a=function(_0xc11a2e,_0x44e442){_0xc11a2e=_0xc11a2e-0xc0;let _0x11f98b=_0xa840fa[_0xc11a2e];return _0x11f98b;},_0xc11a(_0x2122fc,_0x531579);}import{Plugin as _0x33a715}from'ckeditor5/src/core.js';import{ButtonView as _0x5b8864,MenuBarMenuListItemButtonView as _0x5656fc,SpinnerView as _0x1c5308}from'ckeditor5/src/ui.js';import _0x3be57c from'../theme/icons/exportpdf.svg';import{getTranslation as _0x47e84a}from'./utils/common-translations.js';function _0xa840(){const _0x350acf=['105872lWocrc','editor','menuBar:exportPdf','get','bind','268728IEplmi','commands','2GIfaEg','_createButton','Exporting\x20PDF\x20document','5260329ZHQWpN','children','114eVjdso','exportPdf','locale','componentFactory','listenTo','config','focus','view','label','add','221438cbSVBh','set','isVisible','editing','ExportPdfUI','init','iconView','2866210sbEWPq','1401512bPJbzd','isOn','pluginName','isBusy','Export\x20to\x20PDF','1999539gxFccj','execute','isEnabled'];_0xa840=function(){return _0x350acf;};return _0xa840();}export default class i extends _0x33a715{static get[_0x20e6b7(0xe5)](){const _0x27e298=_0x20e6b7;return _0x27e298(0xdf);}[_0x20e6b7(0xe0)](){const _0x2ae429=_0x20e6b7,_0x1b6e73=this[_0x2ae429(0xc6)];_0x1b6e73['ui'][_0x2ae429(0xd4)][_0x2ae429(0xda)](_0x2ae429(0xd2),()=>{const _0x4d654f=_0x2ae429,_0x589059=this[_0x4d654f(0xcd)](_0x5b8864),_0x8a8e=_0x1b6e73[_0x4d654f(0xcb)][_0x4d654f(0xc8)](_0x4d654f(0xd2));return _0x589059[_0x4d654f(0xdc)]({'tooltip':!0x0}),_0x589059[_0x4d654f(0xc9)](_0x4d654f(0xe4))['to'](_0x8a8e,_0x4d654f(0xc0)),_0x589059;}),_0x1b6e73['ui'][_0x2ae429(0xd4)][_0x2ae429(0xda)](_0x2ae429(0xc7),()=>this[_0x2ae429(0xcd)](_0x5656fc));}[_0x20e6b7(0xcd)](_0x2aee96){const _0x255abd=_0x20e6b7,_0x447b3d=this[_0x255abd(0xc6)],_0x348f71=_0x447b3d[_0x255abd(0xd6)][_0x255abd(0xc8)](_0x255abd(0xd2))||{},_0x35b2f5=_0x447b3d[_0x255abd(0xcb)][_0x255abd(0xc8)](_0x255abd(0xd2)),_0x3ca0cb=new _0x2aee96(_0x447b3d[_0x255abd(0xd3)]),_0x264238=new _0x1c5308();return _0x3ca0cb[_0x255abd(0xd0)][_0x255abd(0xda)](_0x264238),_0x264238[_0x255abd(0xc9)](_0x255abd(0xdd))['to'](_0x35b2f5,_0x255abd(0xc0)),_0x3ca0cb[_0x255abd(0xe1)][_0x255abd(0xc9)](_0x255abd(0xdd))['to'](_0x35b2f5,_0x255abd(0xc0),_0x4fba65=>!_0x4fba65),_0x3ca0cb[_0x255abd(0xdc)]({'icon':_0x3be57c}),_0x3ca0cb[_0x255abd(0xc9)](_0x255abd(0xc4))['to'](_0x35b2f5,_0x255abd(0xc4)),_0x3ca0cb[_0x255abd(0xc9)](_0x255abd(0xd9))['to'](_0x35b2f5,_0x255abd(0xc0),_0x48f4e0=>_0x47e84a(_0x447b3d[_0x255abd(0xd3)],_0x48f4e0?_0x255abd(0xce):_0x255abd(0xc1))),this[_0x255abd(0xd5)](_0x3ca0cb,_0x255abd(0xc3),()=>{const _0x2be804=_0x255abd;_0x447b3d[_0x2be804(0xc3)](_0x2be804(0xd2),_0x348f71),_0x447b3d[_0x2be804(0xde)][_0x2be804(0xd8)][_0x2be804(0xd7)]();}),_0x3ca0cb;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x281dda,_0x4f3bfd){var _0xd83f49=_0x2b4a,_0x58b646=_0x281dda();while(!![]){try{var _0xd86b09=-parseInt(_0xd83f49(0x142))/0x1+parseInt(_0xd83f49(0x13a))/0x2+-parseInt(_0xd83f49(0x13e))/0x3+-parseInt(_0xd83f49(0x140))/0x4*(parseInt(_0xd83f49(0x13d))/0x5)+parseInt(_0xd83f49(0x13c))/0x6*(parseInt(_0xd83f49(0x141))/0x7)+parseInt(_0xd83f49(0x13b))/0x8+-parseInt(_0xd83f49(0x13f))/0x9;if(_0xd86b09===_0x4f3bfd)break;else _0x58b646['push'](_0x58b646['shift']());}catch(_0x4971f0){_0x58b646['push'](_0x58b646['shift']());}}}(_0x285e,0xad5b4));function _0x285e(){var _0x3e4390=['11050904vuKSyV','6BRJLAq','15ONCNGr','1720614NZPUGk','4551030Ocveey','1241996TvGNkM','4093523EvLMsi','603409NySakA','2716060RnMhxG'];_0x285e=function(){return _0x3e4390;};return _0x285e();}export{default as ExportPdf}from'./exportpdf.js';function _0x2b4a(_0x10b550,_0x478d30){var _0x285e8e=_0x285e();return _0x2b4a=function(_0x2b4ab3,_0x54969e){_0x2b4ab3=_0x2b4ab3-0x13a;var _0x30f48b=_0x285e8e[_0x2b4ab3];return _0x30f48b;},_0x2b4a(_0x10b550,_0x478d30);}import'./augmentation.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2301d3,_0x358519){const t=_0x2301d3['t'];switch(_0x358519){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 _0x358519;}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1461ed,_0x1c5c11){const _0x34cfdf=_0x174a,_0x21b70a=_0x1461ed();while(!![]){try{const _0x28e5f0=parseInt(_0x34cfdf(0x77))/0x1+parseInt(_0x34cfdf(0x7e))/0x2*(-parseInt(_0x34cfdf(0x69))/0x3)+-parseInt(_0x34cfdf(0x6c))/0x4+-parseInt(_0x34cfdf(0x71))/0x5+-parseInt(_0x34cfdf(0x7d))/0x6+-parseInt(_0x34cfdf(0x7b))/0x7+-parseInt(_0x34cfdf(0x6b))/0x8*(-parseInt(_0x34cfdf(0x73))/0x9);if(_0x28e5f0===_0x1c5c11)break;else _0x21b70a['push'](_0x21b70a['shift']());}catch(_0x583e99){_0x21b70a['push'](_0x21b70a['shift']());}}}(_0x4a57,0xc68cf));function _0x4a57(){const _0x353c6a=['push','925208Qzgzdk','2510548wihBZK','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.','length','styleSheets','ownerNode','552935kmiEOi',':root','153fbwSxH','fetch','all','hasAttribute','1321147WRWziG','EDITOR_STYLES','warn','cssText','8772771LoinFg','from','2058864sbasWY','278660xbcuhp','then','.ck-content','indexOf','trim','cssRules','text','data-cke','join','3KZxpRg'];_0x4a57=function(){return _0x353c6a;};return _0x4a57();}function _0x174a(_0x134ebc,_0x374414){const _0x4a572b=_0x4a57();return _0x174a=function(_0x174a63,_0xa0d522){_0x174a63=_0x174a63-0x68;let _0x57fe4c=_0x4a572b[_0x174a63];return _0x57fe4c;},_0x174a(_0x134ebc,_0x374414);}export function getStyles(_0x5d2cb1){const _0x4d58be=_0x174a;if(!_0x5d2cb1)return new Promise(_0x31b3bd=>_0x31b3bd(''));const _0x21de6d=[];for(const _0x437b42 of _0x5d2cb1)_0x4d58be(0x78)!==_0x437b42?_0x21de6d[_0x4d58be(0x6a)](window[_0x4d58be(0x74)](_0x437b42)[_0x4d58be(0x7f)](_0x111bdf=>_0x111bdf[_0x4d58be(0x84)]())):_0x21de6d[_0x4d58be(0x6a)](a());return Promise[_0x4d58be(0x75)](_0x21de6d)[_0x4d58be(0x7f)](_0x3ab15f=>_0x3ab15f[_0x4d58be(0x68)]('\x20')[_0x4d58be(0x82)]());}function a(){const _0x5cc735=_0x174a,_0x2f7b79=[],_0x2f60e9=[];for(const _0x11342c of Array[_0x5cc735(0x7c)](document[_0x5cc735(0x6f)])){if(_0x11342c[_0x5cc735(0x70)][_0x5cc735(0x76)](_0x5cc735(0x85))){for(const _0x10f58e of Array[_0x5cc735(0x7c)](_0x11342c[_0x5cc735(0x83)]))-0x1!==_0x10f58e[_0x5cc735(0x7a)][_0x5cc735(0x81)](_0x5cc735(0x80))?_0x2f7b79[_0x5cc735(0x6a)](_0x10f58e[_0x5cc735(0x7a)]):-0x1!==_0x10f58e[_0x5cc735(0x7a)][_0x5cc735(0x81)](_0x5cc735(0x72))&&_0x2f60e9[_0x5cc735(0x6a)](_0x10f58e[_0x5cc735(0x7a)]);}}return _0x2f7b79[_0x5cc735(0x6e)]||console[_0x5cc735(0x79)](_0x5cc735(0x6d)),[..._0x2f60e9,..._0x2f7b79][_0x5cc735(0x68)]('\x20')[_0x5cc735(0x82)]();}
|