@ckeditor/ckeditor5-export-pdf 42.0.2 → 43.0.0-alpha.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/CHANGELOG.md +1 -1
- package/build/export-pdf.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/dist/exportpdf.d.ts +5 -0
- 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/utils/common-translations.d.ts +13 -0
- package/lang/translations/sr-latn.po +4 -4
- package/package.json +4 -4
- package/src/exportpdf.d.ts +5 -0
- 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.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3900c4=>{const {'zh-cn':{dictionary:_0x88163,getPluralForm:_0x52b814}}={'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':_0x2a31db=>0x0}};_0x3900c4['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x3900c4['zh-cn']['dictionary']=Object['assign'](_0x3900c4['zh-cn']['dictionary'],_0x88163),_0x3900c4['zh-cn']['getPluralForm']=_0x52b814;})(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':_0x569cbb=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3643fb=>{const {zh:{dictionary:_0x1c6ac3,getPluralForm:_0x46432e}}={'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':_0x2e00c0=>0x0}};_0x3643fb['zh']||={'dictionary':{},'getPluralForm':null},_0x3643fb['zh']['dictionary']=Object['assign'](_0x3643fb['zh']['dictionary'],_0x1c6ac3),_0x3643fb['zh']['getPluralForm']=_0x46432e;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module export-pdf/utils/common-translations
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -27,16 +27,16 @@ msgstr "Došlo je do greške pri generisanju PDF-a."
|
|
|
27
27
|
|
|
28
28
|
msgctxt "Aria status message indicating start of PDF document export. Example: 'PDF export started'."
|
|
29
29
|
msgid "PDF export started"
|
|
30
|
-
msgstr ""
|
|
30
|
+
msgstr "Izvoz u PDF je počeo"
|
|
31
31
|
|
|
32
32
|
msgctxt "Aria status message indicating failed PDF document export. Example: 'PDF export failed'."
|
|
33
33
|
msgid "PDF export failed"
|
|
34
|
-
msgstr ""
|
|
34
|
+
msgstr "Izvoz PDF-a nije uspeo"
|
|
35
35
|
|
|
36
36
|
msgctxt "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
37
37
|
msgid "PDF export successful"
|
|
38
|
-
msgstr ""
|
|
38
|
+
msgstr "PDF izvoz nije uspeo"
|
|
39
39
|
|
|
40
40
|
msgctxt "Aria label set on Export to PDF button while exporting a PDF document."
|
|
41
41
|
msgid "Exporting PDF document"
|
|
42
|
-
msgstr ""
|
|
42
|
+
msgstr "Izvoz PDF dokumenta"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.0.0-alpha.1",
|
|
4
4
|
"description": "Export to PDF feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "src/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-core": "
|
|
34
|
-
"@ckeditor/ckeditor5-ui": "
|
|
35
|
-
"ckeditor5": "
|
|
33
|
+
"@ckeditor/ckeditor5-core": "43.0.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-ui": "43.0.0-alpha.1",
|
|
35
|
+
"ckeditor5": "43.0.0-alpha.1"
|
|
36
36
|
},
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.d.ts
CHANGED
|
@@ -222,4 +222,9 @@ export type ExportPdfConverterOptions = {
|
|
|
222
222
|
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
223
223
|
wait_for_network?: boolean;
|
|
224
224
|
wait_time?: number;
|
|
225
|
+
merge_fields?: {
|
|
226
|
+
prefix: string;
|
|
227
|
+
suffix: string;
|
|
228
|
+
data: Record<string, string>;
|
|
229
|
+
};
|
|
225
230
|
};
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x429a4d=_0x5994;function _0x3f93(){const _0x3e2668=['CloudServices','get','exportPdf','882795nkpzho','ExportPdf','editor','4ASGdSl','4nfedOd','174504IPIZyK','pluginName','then','60173siAYpF','config','init','317165mZlvyW','requires','plugins','2918650rtYiyM','4237720FkSwMc','_token','tokenUrl','token','18nEsnKH','add','1224420hMPqid','commands','registerTokenUrl'];_0x3f93=function(){return _0x3e2668;};return _0x3f93();}(function(_0x3ece33,_0x3182a2){const _0xe7dfb0=_0x5994,_0x55ab9a=_0x3ece33();while(!![]){try{const _0x5414af=-parseInt(_0xe7dfb0(0x97))/0x1*(-parseInt(_0xe7dfb0(0x93))/0x2)+parseInt(_0xe7dfb0(0xaa))/0x3+-parseInt(_0xe7dfb0(0x92))/0x4*(-parseInt(_0xe7dfb0(0x9a))/0x5)+parseInt(_0xe7dfb0(0xa4))/0x6+parseInt(_0xe7dfb0(0x9d))/0x7+-parseInt(_0xe7dfb0(0x94))/0x8+parseInt(_0xe7dfb0(0xa2))/0x9*(-parseInt(_0xe7dfb0(0x9e))/0xa);if(_0x5414af===_0x3182a2)break;else _0x55ab9a['push'](_0x55ab9a['shift']());}catch(_0x4d08dc){_0x55ab9a['push'](_0x55ab9a['shift']());}}}(_0x3f93,0x3814b));import{Plugin as _0x348a40}from'ckeditor5/src/core.js';function _0x5994(_0x1c2433,_0x584e00){const _0x3f9331=_0x3f93();return _0x5994=function(_0x599418,_0x475fa3){_0x599418=_0x599418-0x90;let _0x4ff9a6=_0x3f9331[_0x599418];return _0x4ff9a6;},_0x5994(_0x1c2433,_0x584e00);}import{Notification as _0x4aa83e}from'ckeditor5/src/ui.js';import _0x3cfa9b from'./exportpdfcommand.js';import _0x3ab43c from'./exportpdfui.js';export default class s extends _0x348a40{static get[_0x429a4d(0x95)](){const _0x364a6c=_0x429a4d;return _0x364a6c(0x90);}static get[_0x429a4d(0x9b)](){const _0x3d683b=_0x429a4d;return[_0x3d683b(0xa7),_0x4aa83e,_0x3ab43c];}[_0x429a4d(0x99)](){const _0x33bddb=_0x429a4d,_0x2d8f26=this[_0x33bddb(0x91)],_0x342411=_0x2d8f26[_0x33bddb(0x98)][_0x33bddb(0xa8)](_0x33bddb(0xa9))||{};_0x2d8f26[_0x33bddb(0xa5)][_0x33bddb(0xa3)](_0x33bddb(0xa9),new _0x3cfa9b(_0x2d8f26));const _0x1e0dcd=_0x2d8f26[_0x33bddb(0x9c)][_0x33bddb(0xa8)](_0x33bddb(0xa7));!0x1===_0x342411[_0x33bddb(0xa0)]?this[_0x33bddb(0x9f)]=null:_0x342411[_0x33bddb(0xa0)]?_0x1e0dcd[_0x33bddb(0xa6)](_0x342411[_0x33bddb(0xa0)])[_0x33bddb(0x96)](_0x6eb926=>{const _0x5a59f2=_0x33bddb;this[_0x5a59f2(0x9f)]=_0x6eb926;}):this[_0x33bddb(0x9f)]=_0x1e0dcd[_0x33bddb(0xa1)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
const _0x5a67f7=_0x476b;(function(_0x351267,_0x419ca6){const _0x5b7099=_0x476b,_0x47c5ae=_0x351267();while(!![]){try{const _0x11bafd=parseInt(_0x5b7099(0x21b))/0x1+-parseInt(_0x5b7099(0x20c))/0x2+-parseInt(_0x5b7099(0x21d))/0x3+parseInt(_0x5b7099(0x1e0))/0x4*(-parseInt(_0x5b7099(0x205))/0x5)+parseInt(_0x5b7099(0x207))/0x6*(-parseInt(_0x5b7099(0x219))/0x7)+-parseInt(_0x5b7099(0x1ec))/0x8+parseInt(_0x5b7099(0x1f0))/0x9;if(_0x11bafd===_0x419ca6)break;else _0x47c5ae['push'](_0x47c5ae['shift']());}catch(_0x38119a){_0x47c5ae['push'](_0x47c5ae['shift']());}}}(_0x41ba,0xc840e));import{Command as _0x4e8ae4}from'ckeditor5/src/core.js';function _0x476b(_0x28c98b,_0x21226d){const _0x41ba6c=_0x41ba();return _0x476b=function(_0x476bce,_0x5d32e2){_0x476bce=_0x476bce-0x1cf;let _0x5b7638=_0x41ba6c[_0x476bce];return _0x5b7638;},_0x476b(_0x28c98b,_0x21226d);}function _0x41ba(){const _0x4b7504=['ariaLiveAnnouncer','status','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','fileName','showWarning','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','assertive','dataCallback','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','isBusy','cke5','createElement','get','5guSFev','application/json','636pYJmTk','catch','PDF\x20export\x20failed','https://pdf-converter.cke-cs.com/v1/convert/','affectsData','2032220eEASmq','PDF\x20export\x20started','_token','PDF\x20export\x20successful','config','previewMode','download','locale','entries','MergeFields','finally','stylesheets','application/pdf','37849YolDXu','has','925687OvfuuO','getDefaultValues','3424977GSLiSx','announce','ExportPdf','appID','click','converterOptions','token','blob','stringify','isEnabled','then','contentLanguageDirection','refresh','createObjectURL','URL','plugins','value','MergeFieldsEditing','Notification','converterUrl','3917972GTvpyj','remove','mergeFields','<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','pending','POST','execute','getLabel','flattenedMergeFieldDefinitions','href','document.pdf','getDataSetValues','12361304LMXFRk','EDITOR_STYLES','function','fetch','46351062jOBqBx','_downloadFile','$labels','editor','merge_fields','$defaultValues','set','data'];_0x41ba=function(){return _0x4b7504;};return _0x41ba();}import{getStyles as _0x4a6369}from'./utils.js';import{getTranslation as _0x49579f}from'./utils/common-translations.js';export default class o extends _0x4e8ae4{constructor(_0x2a603a){const _0x1a78e5=_0x476b;super(_0x2a603a),this[_0x1a78e5(0x1f6)](_0x1a78e5(0x201),!0x1),this[_0x1a78e5(0x20b)]=!0x1;}[_0x5a67f7(0x1d8)](){const _0x423d8f=_0x5a67f7;this[_0x423d8f(0x1d5)]=!this[_0x423d8f(0x201)],this[_0x423d8f(0x1dc)]=this[_0x423d8f(0x201)]?_0x423d8f(0x1e4):void 0x0;}[_0x5a67f7(0x1e6)](_0x3c1061={}){const _0x1afc89=_0x5a67f7,_0x15c8fb=this[_0x1afc89(0x1f3)],_0xc8b044=_0x3c1061[_0x1afc89(0x1df)]||_0x1afc89(0x20a),_0x13c1f6=_0x3c1061[_0x1afc89(0x1ff)]||(_0x301f93=>_0x301f93[_0x1afc89(0x1f7)][_0x1afc89(0x204)]()),_0x366ce3=_0x15c8fb[_0x1afc89(0x1db)][_0x1afc89(0x204)](_0x1afc89(0x21f)),_0x50a2aa=_0x3c1061[_0x1afc89(0x1d2)]||_0x366ce3[_0x1afc89(0x20e)];return this[_0x1afc89(0x201)]=!0x0,this[_0x1afc89(0x1d8)](),_0x4a6369(_0x3c1061[_0x1afc89(0x217)]||[_0x1afc89(0x1ed)])[_0x1afc89(0x1d6)](async _0x6a1333=>{const _0x343878=_0x1afc89;if(_0x15c8fb['ui'][_0x343878(0x1f8)][_0x343878(0x21e)](_0x49579f(_0x15c8fb[_0x343878(0x213)],_0x343878(0x20d))),_0x15c8fb[_0x343878(0x1db)][_0x343878(0x21a)](_0x343878(0x215))){_0x3c1061[_0x343878(0x1d1)]||(_0x3c1061[_0x343878(0x1d1)]={});const _0x1a50c4=_0x15c8fb[_0x343878(0x1db)][_0x343878(0x204)](_0x343878(0x215)),_0x4005bc=_0x15c8fb[_0x343878(0x1db)][_0x343878(0x204)](_0x343878(0x1dd)),_0x548553=_0x4005bc[_0x343878(0x211)],{prefix:_0x3afa77,suffix:_0x6b3c85}=_0x15c8fb[_0x343878(0x210)][_0x343878(0x204)](_0x343878(0x1e2)),_0x175ac7={'prefix':_0x3afa77,'suffix':_0x6b3c85,'data':{}};if(_0x343878(0x1f2)===_0x548553){for(const _0x246f81 of _0x4005bc[_0x343878(0x1e8)])_0x175ac7[_0x343878(0x1f7)][_0x246f81['id']]=_0x4005bc[_0x343878(0x1e7)](_0x246f81['id']);}else{const _0x3d6d4f=_0x343878(0x1f5)===_0x548553?_0x1a50c4[_0x343878(0x21c)]():_0x1a50c4[_0x343878(0x1eb)](_0x548553,!0x0);for(const _0x5c0518 of Object[_0x343878(0x214)](_0x3d6d4f)){const [_0x208b79,_0x31a392]=_0x5c0518;_0x175ac7[_0x343878(0x1f7)][_0x208b79]=null!==_0x31a392?_0x31a392:_0x4005bc[_0x343878(0x1e7)](_0x208b79);}}_0x3c1061[_0x343878(0x1d1)][_0x343878(0x1f4)]=_0x175ac7;}const _0x5f0ccf={'html':_0x343878(0x1e3)+_0x15c8fb[_0x343878(0x213)][_0x343878(0x1d7)]+_0x343878(0x1fa)+await _0x13c1f6(_0x15c8fb)+_0x343878(0x1fd),'css':_0x6a1333,'options':_0x3c1061[_0x343878(0x1d1)]},_0xe8a201={'method':_0x343878(0x1e5),'headers':{'Content-Type':_0x343878(0x206),'Accept':_0x343878(0x218),..._0x50a2aa?{'Authorization':_0x50a2aa[_0x343878(0x1dc)]}:null,'x-cs-app-id':_0x3c1061[_0x343878(0x1cf)]||_0x343878(0x202)},'body':JSON[_0x343878(0x1d4)](_0x5f0ccf)};return window[_0x343878(0x1ef)](_0xc8b044,_0xe8a201)[_0x343878(0x1d6)](_0x13c3eb=>{const _0x2b3bcc=_0x343878;if(0xc8!==_0x13c3eb[_0x2b3bcc(0x1f9)])throw _0x13c3eb;return _0x13c3eb[_0x2b3bcc(0x1d3)]();})[_0x343878(0x1d6)](_0x1d2779=>{const _0xa069ea=_0x343878;_0x15c8fb['ui'][_0xa069ea(0x1f8)][_0xa069ea(0x21e)](_0x49579f(_0x15c8fb[_0xa069ea(0x213)],_0xa069ea(0x20f)));const _0x58e772=_0xa069ea(0x1ee)==typeof _0x3c1061[_0xa069ea(0x1fb)]?_0x3c1061[_0xa069ea(0x1fb)]():_0x3c1061[_0xa069ea(0x1fb)];this[_0xa069ea(0x1f1)](_0x1d2779,_0x58e772||_0xa069ea(0x1ea));});})[_0x1afc89(0x208)](_0x5e6132=>{const _0x1300c9=_0x1afc89,_0x6d6c50=_0x15c8fb[_0x1300c9(0x1db)][_0x1300c9(0x204)](_0x1300c9(0x1de));throw _0x15c8fb['ui'][_0x1300c9(0x1f8)][_0x1300c9(0x21e)](_0x49579f(_0x15c8fb[_0x1300c9(0x213)],_0x1300c9(0x209)),{'politeness':_0x1300c9(0x1fe)}),_0x6d6c50[_0x1300c9(0x1fc)](_0x49579f(_0x15c8fb[_0x1300c9(0x213)],_0x1300c9(0x200))),_0x5e6132;})[_0x1afc89(0x216)](()=>{const _0x354b9e=_0x1afc89;this[_0x354b9e(0x201)]=!0x1,this[_0x354b9e(0x1d8)]();});}[_0x5a67f7(0x1f1)](_0x5bfffd,_0x2f2bb8){const _0x12f848=_0x5a67f7,_0x28242a=document[_0x12f848(0x203)]('a');_0x28242a[_0x12f848(0x1e9)]=window[_0x12f848(0x1da)][_0x12f848(0x1d9)](_0x5bfffd),_0x28242a[_0x12f848(0x212)]=_0x2f2bb8,_0x28242a[_0x12f848(0x1d0)](),_0x28242a[_0x12f848(0x1e1)]();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
function _0x7333(){const _0x1ee91c=['bind','2194083YVRKPO','componentFactory','20397juzOUj','isVisible','label','52kVwyFC','init','2792dbRxWo','config','add','exportPdf','execute','5fVzTBd','pluginName','Export\x20to\x20PDF','3365100cgLcXu','editing','commands','editor','130204eqkkDf','ExportPdfUI','isBusy','isEnabled','children','134gccNSi','iconView','187cUaKhM','menuBar:exportPdf','get','isOn','locale','4475772HNUCJx','focus','Exporting\x20PDF\x20document','10AZqWqg','set','39kPFwTF','listenTo','_createButton','20321jztuAu','view','1047108UdbuhI'];_0x7333=function(){return _0x1ee91c;};return _0x7333();}function _0x36bd(_0xc16abf,_0xf08c95){const _0x73338c=_0x7333();return _0x36bd=function(_0x36bd04,_0x29f196){_0x36bd04=_0x36bd04-0x15e;let _0xc02b71=_0x73338c[_0x36bd04];return _0xc02b71;},_0x36bd(_0xc16abf,_0xf08c95);}const _0x4b88dc=_0x36bd;(function(_0x49dd1b,_0x10afba){const _0x21dd10=_0x36bd,_0x18adeb=_0x49dd1b();while(!![]){try{const _0x210d9c=parseInt(_0x21dd10(0x170))/0x1*(parseInt(_0x21dd10(0x186))/0x2)+parseInt(_0x21dd10(0x167))/0x3*(parseInt(_0x21dd10(0x181))/0x4)+parseInt(_0x21dd10(0x17a))/0x5*(parseInt(_0x21dd10(0x17d))/0x6)+parseInt(_0x21dd10(0x16a))/0x7*(parseInt(_0x21dd10(0x175))/0x8)+-parseInt(_0x21dd10(0x16e))/0x9*(-parseInt(_0x21dd10(0x165))/0xa)+-parseInt(_0x21dd10(0x188))/0xb*(parseInt(_0x21dd10(0x16c))/0xc)+parseInt(_0x21dd10(0x173))/0xd*(-parseInt(_0x21dd10(0x162))/0xe);if(_0x210d9c===_0x10afba)break;else _0x18adeb['push'](_0x18adeb['shift']());}catch(_0x4d0c6f){_0x18adeb['push'](_0x18adeb['shift']());}}}(_0x7333,0xce627));import{Plugin as _0x4791e2}from'ckeditor5/src/core.js';import{ButtonView as _0x5ed36e,MenuBarMenuListItemButtonView as _0x57f04a,SpinnerView as _0x4835bf}from'ckeditor5/src/ui.js';import _0x3985b1 from'../theme/icons/exportpdf.svg';import{getTranslation as _0x1ae953}from'./utils/common-translations.js';export default class i extends _0x4791e2{static get[_0x4b88dc(0x17b)](){const _0x119168=_0x4b88dc;return _0x119168(0x182);}[_0x4b88dc(0x174)](){const _0x17aed4=_0x4b88dc,_0x3edef4=this[_0x17aed4(0x180)];_0x3edef4['ui'][_0x17aed4(0x16f)][_0x17aed4(0x177)](_0x17aed4(0x178),()=>{const _0xf799e7=_0x17aed4,_0x55ad6e=this[_0xf799e7(0x169)](_0x5ed36e),_0xa27790=_0x3edef4[_0xf799e7(0x17f)][_0xf799e7(0x15f)](_0xf799e7(0x178));return _0x55ad6e[_0xf799e7(0x166)]({'tooltip':!0x0}),_0x55ad6e[_0xf799e7(0x16d)](_0xf799e7(0x160))['to'](_0xa27790,_0xf799e7(0x183)),_0x55ad6e;}),_0x3edef4['ui'][_0x17aed4(0x16f)][_0x17aed4(0x177)](_0x17aed4(0x15e),()=>this[_0x17aed4(0x169)](_0x57f04a));}[_0x4b88dc(0x169)](_0x378121){const _0x148c55=_0x4b88dc,_0x42e5a9=this[_0x148c55(0x180)],_0x1d8169=_0x42e5a9[_0x148c55(0x176)][_0x148c55(0x15f)](_0x148c55(0x178))||{},_0x5043de=_0x42e5a9[_0x148c55(0x17f)][_0x148c55(0x15f)](_0x148c55(0x178)),_0x531089=new _0x378121(_0x42e5a9[_0x148c55(0x161)]),_0x357191=new _0x4835bf();return _0x531089[_0x148c55(0x185)][_0x148c55(0x177)](_0x357191),_0x357191[_0x148c55(0x16d)](_0x148c55(0x171))['to'](_0x5043de,_0x148c55(0x183)),_0x531089[_0x148c55(0x187)][_0x148c55(0x16d)](_0x148c55(0x171))['to'](_0x5043de,_0x148c55(0x183),_0x1e4ce4=>!_0x1e4ce4),_0x531089[_0x148c55(0x166)]({'icon':_0x3985b1}),_0x531089[_0x148c55(0x16d)](_0x148c55(0x184))['to'](_0x5043de,_0x148c55(0x184)),_0x531089[_0x148c55(0x16d)](_0x148c55(0x172))['to'](_0x5043de,_0x148c55(0x183),_0x5da7e7=>_0x1ae953(_0x42e5a9[_0x148c55(0x161)],_0x5da7e7?_0x148c55(0x164):_0x148c55(0x17c))),this[_0x148c55(0x168)](_0x531089,_0x148c55(0x179),()=>{const _0x5be135=_0x148c55;_0x42e5a9[_0x5be135(0x179)](_0x5be135(0x178),_0x1d8169),_0x42e5a9[_0x5be135(0x17e)][_0x5be135(0x16b)][_0x5be135(0x163)]();}),_0x531089;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x40b0eb,_0x129da8){var _0x5d867b=_0x350d,_0x2ac292=_0x40b0eb();while(!![]){try{var _0x12f4c1=-parseInt(_0x5d867b(0x164))/0x1*(parseInt(_0x5d867b(0x166))/0x2)+parseInt(_0x5d867b(0x165))/0x3+parseInt(_0x5d867b(0x160))/0x4+parseInt(_0x5d867b(0x167))/0x5*(-parseInt(_0x5d867b(0x161))/0x6)+parseInt(_0x5d867b(0x169))/0x7*(-parseInt(_0x5d867b(0x168))/0x8)+-parseInt(_0x5d867b(0x163))/0x9+-parseInt(_0x5d867b(0x15f))/0xa*(-parseInt(_0x5d867b(0x162))/0xb);if(_0x12f4c1===_0x129da8)break;else _0x2ac292['push'](_0x2ac292['shift']());}catch(_0x59e33a){_0x2ac292['push'](_0x2ac292['shift']());}}}(_0x5c58,0xccdcb));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x350d(_0x2c90a5,_0x3c7f8c){var _0x5c5860=_0x5c58();return _0x350d=function(_0x350dc0,_0x5196ec){_0x350dc0=_0x350dc0-0x15f;var _0x208353=_0x5c5860[_0x350dc0];return _0x208353;},_0x350d(_0x2c90a5,_0x3c7f8c);}function _0x5c58(){var _0x3f9b9f=['15ypcHtB','472XybLgm','146293mCieee','7880060aIechB','2076696JbSUmM','1783374eRhOvP','44nnBJxW','2940174wKQAgw','672314ACKDoh','2891877sRtSvn','4TUktMx'];_0x5c58=function(){return _0x3f9b9f;};return _0x5c58();}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-pdf/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x3a23bb,_0x82b350){const t=_0x3a23bb['t'];switch(_0x82b350){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 _0x82b350;}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x49c868,_0x36d580){const _0x59879f=_0x4990,_0x4d7780=_0x49c868();while(!![]){try{const _0xcca49a=-parseInt(_0x59879f(0xf7))/0x1*(parseInt(_0x59879f(0xf8))/0x2)+-parseInt(_0x59879f(0xf6))/0x3*(-parseInt(_0x59879f(0xe9))/0x4)+-parseInt(_0x59879f(0xe2))/0x5*(-parseInt(_0x59879f(0xe5))/0x6)+parseInt(_0x59879f(0xef))/0x7*(-parseInt(_0x59879f(0xfd))/0x8)+-parseInt(_0x59879f(0xf9))/0x9+-parseInt(_0x59879f(0xf3))/0xa*(-parseInt(_0x59879f(0xed))/0xb)+parseInt(_0x59879f(0xf0))/0xc;if(_0xcca49a===_0x36d580)break;else _0x4d7780['push'](_0x4d7780['shift']());}catch(_0x3b0d87){_0x4d7780['push'](_0x4d7780['shift']());}}}(_0x28aa,0x7aadd));export function getStyles(_0x7e9fc6){const _0xd12ab9=_0x4990;if(!_0x7e9fc6)return new Promise(_0x11406b=>_0x11406b(''));const _0x21713f=[];for(const _0x3a0e3e of _0x7e9fc6)_0xd12ab9(0xf5)!==_0x3a0e3e?_0x21713f[_0xd12ab9(0xfb)](window[_0xd12ab9(0xe3)](_0x3a0e3e)[_0xd12ab9(0xff)](_0x1fd3ed=>_0x1fd3ed[_0xd12ab9(0xe4)]())):_0x21713f[_0xd12ab9(0xfb)](a());return Promise[_0xd12ab9(0xf4)](_0x21713f)[_0xd12ab9(0xff)](_0x1253af=>_0x1253af[_0xd12ab9(0xe8)]('\x20')[_0xd12ab9(0xec)]());}function _0x28aa(){const _0x56531c=['cssText','1704YNEimZ','from','then','hasAttribute','indexOf','ownerNode','1045585NGzgdK','fetch','text','6tmdrKP',':root','length','join','1922016YunJvt','.ck-content','data-cke','trim','22gIELgQ','cssRules','9989QtZRpR','12484992IxZfHU','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.','styleSheets','2788130ttSQaa','all','EDITOR_STYLES','3LqGgvB','883gTMQaW','1654mVtBIu','6758802BgDPxD','warn','push'];_0x28aa=function(){return _0x56531c;};return _0x28aa();}function _0x4990(_0x5c6c53,_0x3f3bba){const _0x28aa02=_0x28aa();return _0x4990=function(_0x49909d,_0x4a0341){_0x49909d=_0x49909d-0xdf;let _0x3ece41=_0x28aa02[_0x49909d];return _0x3ece41;},_0x4990(_0x5c6c53,_0x3f3bba);}function a(){const _0x4948d2=_0x4990,_0x26ca86=[],_0x544417=[];for(const _0x13e2e1 of Array[_0x4948d2(0xfe)](document[_0x4948d2(0xf2)])){if(_0x13e2e1[_0x4948d2(0xe1)][_0x4948d2(0xdf)](_0x4948d2(0xeb))){for(const _0x3edfd8 of Array[_0x4948d2(0xfe)](_0x13e2e1[_0x4948d2(0xee)]))-0x1!==_0x3edfd8[_0x4948d2(0xfc)][_0x4948d2(0xe0)](_0x4948d2(0xea))?_0x26ca86[_0x4948d2(0xfb)](_0x3edfd8[_0x4948d2(0xfc)]):-0x1!==_0x3edfd8[_0x4948d2(0xfc)][_0x4948d2(0xe0)](_0x4948d2(0xe6))&&_0x544417[_0x4948d2(0xfb)](_0x3edfd8[_0x4948d2(0xfc)]);}}return _0x26ca86[_0x4948d2(0xe7)]||console[_0x4948d2(0xfa)](_0x4948d2(0xf1)),[..._0x544417,..._0x26ca86][_0x4948d2(0xe8)]('\x20')[_0x4948d2(0xec)]();}
|