@ckeditor/ckeditor5-export-pdf 0.0.0-internal-20241017.0 → 0.0.0-internal-20241206.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/LICENSE.md +6 -6
- package/README.md +19 -15
- package/build/export-pdf.js +1 -1
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/uz.js +1 -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/ast.d.ts +8 -0
- package/dist/translations/ast.js +23 -0
- package/dist/translations/ast.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- 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/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- 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-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- 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-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +23 -0
- package/dist/translations/en-gb.umd.js +23 -0
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +23 -0
- package/dist/translations/eo.umd.js +23 -0
- 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/eu.d.ts +8 -0
- package/dist/translations/eu.js +23 -0
- package/dist/translations/eu.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- 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/gu.d.ts +8 -0
- package/dist/translations/gu.js +23 -0
- package/dist/translations/gu.umd.js +23 -0
- 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/hy.d.ts +8 -0
- package/dist/translations/hy.js +23 -0
- package/dist/translations/hy.umd.js +23 -0
- 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/kk.d.ts +8 -0
- package/dist/translations/kk.js +23 -0
- package/dist/translations/kk.umd.js +23 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +23 -0
- package/dist/translations/km.umd.js +23 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +23 -0
- package/dist/translations/kn.umd.js +23 -0
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +23 -0
- package/dist/translations/ku.umd.js +23 -0
- 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/nb.d.ts +8 -0
- package/dist/translations/nb.js +23 -0
- package/dist/translations/nb.umd.js +23 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +23 -0
- package/dist/translations/ne.umd.js +23 -0
- 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/oc.d.ts +8 -0
- package/dist/translations/oc.js +23 -0
- package/dist/translations/oc.umd.js +23 -0
- 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/si.d.ts +8 -0
- package/dist/translations/si.js +23 -0
- package/dist/translations/si.umd.js +23 -0
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +23 -0
- package/dist/translations/sl.umd.js +23 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +23 -0
- package/dist/translations/sq.umd.js +23 -0
- 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/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- 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/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- 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/lang/translations/af.po +3 -9
- package/lang/translations/ar.po +4 -10
- package/lang/translations/ast.po +36 -0
- package/lang/translations/az.po +36 -0
- package/lang/translations/bg.po +3 -9
- package/lang/translations/bn.po +3 -9
- package/lang/translations/bs.po +36 -0
- package/lang/translations/ca.po +3 -9
- package/lang/translations/cs.po +4 -10
- package/lang/translations/da.po +3 -9
- package/lang/translations/de-ch.po +36 -0
- package/lang/translations/de.po +3 -9
- package/lang/translations/el.po +3 -9
- package/lang/translations/en-au.po +3 -9
- package/lang/translations/en-gb.po +36 -0
- package/lang/translations/en.po +5 -11
- package/lang/translations/eo.po +36 -0
- package/lang/translations/es-co.po +4 -10
- package/lang/translations/es.po +4 -10
- package/lang/translations/et.po +3 -9
- package/lang/translations/eu.po +36 -0
- package/lang/translations/fa.po +36 -0
- package/lang/translations/fi.po +3 -9
- package/lang/translations/fr.po +4 -10
- package/lang/translations/gl.po +3 -9
- package/lang/translations/gu.po +36 -0
- package/lang/translations/he.po +4 -10
- package/lang/translations/hi.po +3 -9
- package/lang/translations/hr.po +4 -10
- package/lang/translations/hu.po +3 -9
- package/lang/translations/hy.po +36 -0
- package/lang/translations/id.po +3 -9
- package/lang/translations/it.po +4 -10
- package/lang/translations/ja.po +3 -9
- package/lang/translations/jv.po +4 -10
- package/lang/translations/kk.po +36 -0
- package/lang/translations/km.po +36 -0
- package/lang/translations/kn.po +36 -0
- package/lang/translations/ko.po +3 -9
- package/lang/translations/ku.po +36 -0
- package/lang/translations/lt.po +4 -10
- package/lang/translations/lv.po +4 -10
- package/lang/translations/ms.po +3 -9
- package/lang/translations/nb.po +36 -0
- package/lang/translations/ne.po +36 -0
- package/lang/translations/nl.po +3 -9
- package/lang/translations/no.po +3 -9
- package/lang/translations/oc.po +36 -0
- package/lang/translations/pl.po +4 -10
- package/lang/translations/pt-br.po +4 -10
- package/lang/translations/pt.po +4 -10
- package/lang/translations/ro.po +4 -10
- package/lang/translations/ru.po +4 -10
- package/lang/translations/si.po +36 -0
- package/lang/translations/sk.po +4 -10
- package/lang/translations/sl.po +36 -0
- package/lang/translations/sq.po +36 -0
- package/lang/translations/sr-latn.po +4 -10
- package/lang/translations/sr.po +4 -10
- package/lang/translations/sv.po +3 -9
- package/lang/translations/th.po +3 -9
- package/lang/translations/ti.po +36 -0
- package/lang/translations/tk.po +36 -0
- package/lang/translations/tr.po +3 -9
- package/lang/translations/tt.po +36 -0
- package/lang/translations/ug.po +4 -10
- package/lang/translations/uk.po +4 -10
- package/lang/translations/ur.po +3 -9
- package/lang/translations/uz.po +36 -0
- package/lang/translations/vi.po +3 -9
- package/lang/translations/zh-cn.po +3 -9
- package/lang/translations/zh.po +3 -9
- package/package.json +23 -4
- package/src/augmentation.d.ts +1 -1
- package/src/exportpdf.d.ts +1 -1
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.d.ts +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.d.ts +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils.d.ts +1 -1
- package/src/utils.js +1 -1
- package/dist/augmentation.d.ts +0 -25
- package/dist/exportpdf.d.ts +0 -242
- package/dist/exportpdfcommand.d.ts +0 -43
- package/dist/exportpdfui.d.ts +0 -35
- package/dist/index.d.ts +0 -14
- package/dist/utils/common-translations.d.ts +0 -13
- package/dist/utils.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "0.0.0-internal-
|
|
3
|
+
"version": "0.0.0-internal-20241206.0",
|
|
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": "0.0.0-internal-
|
|
34
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-internal-
|
|
35
|
-
"ckeditor5": "0.0.0-internal-
|
|
33
|
+
"@ckeditor/ckeditor5-core": "0.0.0-internal-20241206.0",
|
|
34
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-internal-20241206.0",
|
|
35
|
+
"ckeditor5": "0.0.0-internal-20241206.0"
|
|
36
36
|
},
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -49,5 +49,24 @@
|
|
|
49
49
|
"CHANGELOG.md"
|
|
50
50
|
],
|
|
51
51
|
"types": "src/index.d.ts",
|
|
52
|
+
"exports": {
|
|
53
|
+
".": {
|
|
54
|
+
"types": "./src/index.d.ts",
|
|
55
|
+
"import": "./src/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./dist/*": {
|
|
58
|
+
"types": "./src/index.d.ts",
|
|
59
|
+
"import": "./dist/*"
|
|
60
|
+
},
|
|
61
|
+
"./src/*": {
|
|
62
|
+
"types": "./src/index.d.ts",
|
|
63
|
+
"import": "./src/*"
|
|
64
|
+
},
|
|
65
|
+
"./build/*": "./build/*",
|
|
66
|
+
"./lang/*": "./lang/*",
|
|
67
|
+
"./theme/*": "./theme/*",
|
|
68
|
+
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
|
|
69
|
+
"./package.json": "./package.json"
|
|
70
|
+
},
|
|
52
71
|
"obfuscated": true
|
|
53
72
|
}
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type { ExportPdfConfig, ExportPdf, ExportPdfCommand } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
package/src/exportpdf.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module export-pdf/exportpdf
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f0afc=_0xb2f3;(function(_0x475ba5,_0xd16d68){const _0x4c9123=_0xb2f3,_0x67739b=_0x475ba5();while(!![]){try{const _0x2a48e4=-parseInt(_0x4c9123(0x19e))/0x1*(parseInt(_0x4c9123(0x1a9))/0x2)+-parseInt(_0x4c9123(0x1ad))/0x3+parseInt(_0x4c9123(0x1b2))/0x4+-parseInt(_0x4c9123(0x1ac))/0x5*(-parseInt(_0x4c9123(0x1a8))/0x6)+parseInt(_0x4c9123(0x1ae))/0x7+-parseInt(_0x4c9123(0x198))/0x8+parseInt(_0x4c9123(0x1b0))/0x9*(parseInt(_0x4c9123(0x1b4))/0xa);if(_0x2a48e4===_0xd16d68)break;else _0x67739b['push'](_0x67739b['shift']());}catch(_0x27bef0){_0x67739b['push'](_0x67739b['shift']());}}}(_0x5f2a,0xe9eaa));import{Plugin as _0x2cf2e8}from'ckeditor5/src/core.js';import{Notification as _0x506208}from'ckeditor5/src/ui.js';import _0x579581 from'./exportpdfcommand.js';import _0x5d0298 from'./exportpdfui.js';function _0x5f2a(){const _0xe29b4e=['get','5508603JiogwL','CloudServices','3789808pfvHOs','requires','30dqeHYn','14199608OgTjVe','exportPdf','add','pluginName','init','ExportPdf','1BAjIPd','config','isPremiumPlugin','tokenUrl','editor','plugins','token','_token','then','registerTokenUrl','94746QIViTk','2524462KQmhIv','commands','isOfficialPlugin','505vTvUGS','5551197WjEpUX','10270113gEElJL'];_0x5f2a=function(){return _0xe29b4e;};return _0x5f2a();}function _0xb2f3(_0x74d2b0,_0x1cbd53){const _0x5f2abb=_0x5f2a();return _0xb2f3=function(_0xb2f308,_0x2eb6a6){_0xb2f308=_0xb2f308-0x198;let _0x34fc80=_0x5f2abb[_0xb2f308];return _0x34fc80;},_0xb2f3(_0x74d2b0,_0x1cbd53);}export default class o extends _0x2cf2e8{static get[_0x1f0afc(0x19b)](){const _0x366818=_0x1f0afc;return _0x366818(0x19d);}static get[_0x1f0afc(0x1ab)](){return!0x0;}static get[_0x1f0afc(0x1a0)](){return!0x0;}static get[_0x1f0afc(0x1b3)](){const _0x2b7805=_0x1f0afc;return[_0x2b7805(0x1b1),_0x506208,_0x5d0298];}[_0x1f0afc(0x19c)](){const _0x69729a=_0x1f0afc,_0xc39588=this[_0x69729a(0x1a2)],_0x204763=_0xc39588[_0x69729a(0x19f)][_0x69729a(0x1af)](_0x69729a(0x199))||{};_0xc39588[_0x69729a(0x1aa)][_0x69729a(0x19a)](_0x69729a(0x199),new _0x579581(_0xc39588));const _0x57a5cc=_0xc39588[_0x69729a(0x1a3)][_0x69729a(0x1af)](_0x69729a(0x1b1));!0x1===_0x204763[_0x69729a(0x1a1)]?this[_0x69729a(0x1a5)]=null:_0x204763[_0x69729a(0x1a1)]?_0x57a5cc[_0x69729a(0x1a7)](_0x204763[_0x69729a(0x1a1)])[_0x69729a(0x1a6)](_0x52dceb=>{const _0x1919d9=_0x69729a;this[_0x1919d9(0x1a5)]=_0x52dceb;}):this[_0x69729a(0x1a5)]=_0x57a5cc[_0x69729a(0x1a4)];}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module export-pdf/exportpdfcommand
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3dbe(){const _0x4619a4=['7IUfJvd','EDITOR_STYLES','fileName','279016mrQQJj','entries','Notification','contentLanguageDirection','ExportPdf','https://pdf-converter.cke-cs.com/v1/convert/','locale','pending','remove','announce','fetch','isEnabled','ariaLiveAnnouncer','39118904wFDkbO','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','showWarning','getMergeFieldsIds','document.pdf','20gfohxi','stylesheets','application/pdf','<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','converterOptions','getDefaultValues','merge_fields','URL','185rqfDhw','115402FfQVSP','isBusy','execute','MergeFields','click','PDF\x20export\x20failed','getLabel','assertive','createObjectURL','getDataSetValues','165774hWKbxB','dataCallback','config','value','get','appID','cke5','createElement','57otKUdM','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','2943076VNHFgw','function','$defaultValues','converterUrl','MergeFieldsEditing','PDF\x20export\x20successful','$labels','2497464XXbfdk','mergeFields','download','previewMode','catch','application/json','finally','has','then','set','href','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','plugins','data','editor','token','PDF\x20export\x20started','POST','_token','blob','affectsData','stringify','status','9336968zCiFAf','refresh','_downloadFile'];_0x3dbe=function(){return _0x4619a4;};return _0x3dbe();}const _0xcbfe3f=_0x1cdc;(function(_0xd06fb7,_0x453637){const _0x48e8cb=_0x1cdc,_0x20670e=_0xd06fb7();while(!![]){try{const _0x4bbf1c=parseInt(_0x48e8cb(0x1ab))/0x1+parseInt(_0x48e8cb(0x1c6))/0x2*(-parseInt(_0x48e8cb(0x1d8))/0x3)+parseInt(_0x48e8cb(0x1da))/0x4+-parseInt(_0x48e8cb(0x1c5))/0x5*(parseInt(_0x48e8cb(0x1d0))/0x6)+parseInt(_0x48e8cb(0x1a8))/0x7*(-parseInt(_0x48e8cb(0x1a5))/0x8)+parseInt(_0x48e8cb(0x1e1))/0x9*(-parseInt(_0x48e8cb(0x1bd))/0xa)+parseInt(_0x48e8cb(0x1b8))/0xb;if(_0x4bbf1c===_0x453637)break;else _0x20670e['push'](_0x20670e['shift']());}catch(_0x41a320){_0x20670e['push'](_0x20670e['shift']());}}}(_0x3dbe,0xb24e8));function _0x1cdc(_0x1531d5,_0x333cbe){const _0x3dbebd=_0x3dbe();return _0x1cdc=function(_0x1cdc60,_0x2f4f4d){_0x1cdc60=_0x1cdc60-0x19e;let _0x1d5693=_0x3dbebd[_0x1cdc60];return _0x1d5693;},_0x1cdc(_0x1531d5,_0x333cbe);}import{Command as _0x590f36}from'ckeditor5/src/core.js';import{getStyles as _0x46604e}from'./utils.js';import{getTranslation as _0x5195c5}from'./utils/common-translations.js';export default class e extends _0x590f36{constructor(_0x410d50){const _0x269782=_0x1cdc;super(_0x410d50),this[_0x269782(0x1ea)](_0x269782(0x1c7),!0x1),this[_0x269782(0x1a2)]=!0x1;}[_0xcbfe3f(0x1a6)](){const _0x4247d5=_0xcbfe3f;this[_0x4247d5(0x1b6)]=!this[_0x4247d5(0x1c7)],this[_0x4247d5(0x1d3)]=this[_0x4247d5(0x1c7)]?_0x4247d5(0x1b2):void 0x0;}[_0xcbfe3f(0x1c8)](_0x1a2019={}){const _0x492275=_0xcbfe3f,_0x282a26=this[_0x492275(0x1ef)],_0xf8fd5d=_0x1a2019[_0x492275(0x1dd)]||_0x492275(0x1b0),_0x50fd80=_0x1a2019[_0x492275(0x1d1)]||(_0x4707da=>_0x4707da[_0x492275(0x1ee)][_0x492275(0x1d4)]()),_0x3e1766=_0x282a26[_0x492275(0x1ed)][_0x492275(0x1d4)](_0x492275(0x1af)),_0x274672=_0x1a2019[_0x492275(0x1f0)]||_0x3e1766[_0x492275(0x1a0)];return this[_0x492275(0x1c7)]=!0x0,this[_0x492275(0x1a6)](),_0x46604e(_0x1a2019[_0x492275(0x1be)]||[_0x492275(0x1a9)])[_0x492275(0x1e9)](async _0xf9eb6c=>{const _0x80c663=_0x492275;if(_0x282a26['ui'][_0x80c663(0x1b7)][_0x80c663(0x1b4)](_0x5195c5(_0x282a26[_0x80c663(0x1b1)],_0x80c663(0x19e))),_0x282a26[_0x80c663(0x1ed)][_0x80c663(0x1e8)](_0x80c663(0x1c9))){_0x1a2019[_0x80c663(0x1c1)]||(_0x1a2019[_0x80c663(0x1c1)]={});const _0x5051dc=_0x282a26[_0x80c663(0x1ed)][_0x80c663(0x1d4)](_0x80c663(0x1de)),_0x55bba1=_0x5051dc[_0x80c663(0x1e4)],{prefix:_0x4142c1,suffix:_0x3bd69f}=_0x282a26[_0x80c663(0x1d2)][_0x80c663(0x1d4)](_0x80c663(0x1e2)),_0x5bba2e={'prefix':_0x4142c1,'suffix':_0x3bd69f,'data':{}};if(_0x80c663(0x1e0)===_0x55bba1){for(const _0x2434be of _0x5051dc[_0x80c663(0x1bb)]())_0x5bba2e[_0x80c663(0x1ee)][_0x2434be]=_0x4142c1+_0x5051dc[_0x80c663(0x1cc)](_0x2434be)+_0x3bd69f;}else{const _0x454674=_0x80c663(0x1dc)===_0x55bba1?_0x5051dc[_0x80c663(0x1c2)]():_0x5051dc[_0x80c663(0x1cf)](_0x55bba1,!0x0);for(const _0xfbb3fb of Object[_0x80c663(0x1ac)](_0x454674)){const [_0x5800e7,_0x21af3c]=_0xfbb3fb;_0x5bba2e[_0x80c663(0x1ee)][_0x5800e7]=null!==_0x21af3c?_0x21af3c:_0x5051dc[_0x80c663(0x1cc)](_0x5800e7);}}_0x1a2019[_0x80c663(0x1c1)][_0x80c663(0x1c3)]=_0x5bba2e;}const _0x8b5cbd={'html':_0x80c663(0x1c0)+_0x282a26[_0x80c663(0x1b1)][_0x80c663(0x1ae)]+_0x80c663(0x1d9)+await _0x50fd80(_0x282a26)+_0x80c663(0x1b9),'css':_0xf9eb6c,'options':_0x1a2019[_0x80c663(0x1c1)]},_0x2c71dc={'method':_0x80c663(0x19f),'headers':{'Content-Type':_0x80c663(0x1e6),'Accept':_0x80c663(0x1bf),..._0x274672?{'Authorization':_0x274672[_0x80c663(0x1d3)]}:null,'x-cs-app-id':_0x1a2019[_0x80c663(0x1d5)]||_0x80c663(0x1d6)},'body':JSON[_0x80c663(0x1a3)](_0x8b5cbd)};return window[_0x80c663(0x1b5)](_0xf8fd5d,_0x2c71dc)[_0x80c663(0x1e9)](_0x721ac3=>{const _0x2f65e=_0x80c663;if(0xc8!==_0x721ac3[_0x2f65e(0x1a4)])throw _0x721ac3;return _0x721ac3[_0x2f65e(0x1a1)]();})[_0x80c663(0x1e9)](_0x3c7f84=>{const _0x5a32dd=_0x80c663;_0x282a26['ui'][_0x5a32dd(0x1b7)][_0x5a32dd(0x1b4)](_0x5195c5(_0x282a26[_0x5a32dd(0x1b1)],_0x5a32dd(0x1df)));const _0x1ea9ad=_0x5a32dd(0x1db)==typeof _0x1a2019[_0x5a32dd(0x1aa)]?_0x1a2019[_0x5a32dd(0x1aa)]():_0x1a2019[_0x5a32dd(0x1aa)];this[_0x5a32dd(0x1a7)](_0x3c7f84,_0x1ea9ad||_0x5a32dd(0x1bc));});})[_0x492275(0x1e5)](_0x3faf86=>{const _0x41c6b1=_0x492275,_0x54b195=_0x282a26[_0x41c6b1(0x1ed)][_0x41c6b1(0x1d4)](_0x41c6b1(0x1ad));throw _0x282a26['ui'][_0x41c6b1(0x1b7)][_0x41c6b1(0x1b4)](_0x5195c5(_0x282a26[_0x41c6b1(0x1b1)],_0x41c6b1(0x1cb)),{'politeness':_0x41c6b1(0x1cd)}),_0x54b195[_0x41c6b1(0x1ba)](_0x5195c5(_0x282a26[_0x41c6b1(0x1b1)],_0x41c6b1(0x1ec))),_0x3faf86;})[_0x492275(0x1e7)](()=>{const _0x97885d=_0x492275;this[_0x97885d(0x1c7)]=!0x1,this[_0x97885d(0x1a6)]();});}[_0xcbfe3f(0x1a7)](_0x288366,_0x31c38f){const _0x36785e=_0xcbfe3f,_0x12710b=document[_0x36785e(0x1d7)]('a');_0x12710b[_0x36785e(0x1eb)]=window[_0x36785e(0x1c4)][_0x36785e(0x1ce)](_0x288366),_0x12710b[_0x36785e(0x1e3)]=_0x31c38f,_0x12710b[_0x36785e(0x1ca)](),_0x12710b[_0x36785e(0x1b3)]();}}
|
package/src/exportpdfui.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module export-pdf/exportpdfui
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16dfe0=_0x12a3;(function(_0x26a902,_0x3ce0ac){const _0x20fd70=_0x12a3,_0x256aae=_0x26a902();while(!![]){try{const _0x2557df=parseInt(_0x20fd70(0x122))/0x1*(parseInt(_0x20fd70(0x13a))/0x2)+parseInt(_0x20fd70(0x13d))/0x3+parseInt(_0x20fd70(0x12e))/0x4*(parseInt(_0x20fd70(0x138))/0x5)+parseInt(_0x20fd70(0x124))/0x6*(-parseInt(_0x20fd70(0x13f))/0x7)+-parseInt(_0x20fd70(0x144))/0x8+parseInt(_0x20fd70(0x133))/0x9+-parseInt(_0x20fd70(0x130))/0xa*(parseInt(_0x20fd70(0x146))/0xb);if(_0x2557df===_0x3ce0ac)break;else _0x256aae['push'](_0x256aae['shift']());}catch(_0x22847e){_0x256aae['push'](_0x256aae['shift']());}}}(_0x5362,0xaabbc));import{Plugin as _0x12543a}from'ckeditor5/src/core.js';import{ButtonView as _0x5eb69e,MenuBarMenuListItemButtonView as _0x3b0738,SpinnerView as _0x37429c}from'ckeditor5/src/ui.js';import _0x1ad869 from'../theme/icons/exportpdf.svg';function _0x12a3(_0x2ac873,_0x3dcf7b){const _0x53627c=_0x5362();return _0x12a3=function(_0x12a362,_0x34a6db){_0x12a362=_0x12a362-0x122;let _0x465394=_0x53627c[_0x12a362];return _0x465394;},_0x12a3(_0x2ac873,_0x3dcf7b);}import{getTranslation as _0x29b522}from'./utils/common-translations.js';function _0x5362(){const _0x119996=['bind','children','963005mgpXVZ','view','44FsTbHI','menuBar:exportPdf','exportPdf','243840DcrwYy','isPremiumPlugin','96747zeRGLE','pluginName','isEnabled','label','execute','4007440zPcOfY','get','132pgkWPg','editing','componentFactory','editor','locale','iconView','8681RJTPtz','add','18JPSsQO','focus','config','isVisible','Export\x20to\x20PDF','init','isBusy','listenTo','isOfficialPlugin','set','16hCdGVt','Exporting\x20PDF\x20document','277790pvKbqm','commands','ExportPdfUI','4791591UGCeYv','_createButton','isOn'];_0x5362=function(){return _0x119996;};return _0x5362();}export default class s extends _0x12543a{static get[_0x16dfe0(0x140)](){const _0x40b506=_0x16dfe0;return _0x40b506(0x132);}static get[_0x16dfe0(0x12c)](){return!0x0;}static get[_0x16dfe0(0x13e)](){return!0x0;}[_0x16dfe0(0x129)](){const _0x383b75=_0x16dfe0,_0x46fe85=this[_0x383b75(0x149)];_0x46fe85['ui'][_0x383b75(0x148)][_0x383b75(0x123)](_0x383b75(0x13c),()=>{const _0x2bf779=_0x383b75,_0x2abcb5=this[_0x2bf779(0x134)](_0x5eb69e),_0x344380=_0x46fe85[_0x2bf779(0x131)][_0x2bf779(0x145)](_0x2bf779(0x13c));return _0x2abcb5[_0x2bf779(0x12d)]({'tooltip':!0x0}),_0x2abcb5[_0x2bf779(0x136)](_0x2bf779(0x135))['to'](_0x344380,_0x2bf779(0x12a)),_0x2abcb5;}),_0x46fe85['ui'][_0x383b75(0x148)][_0x383b75(0x123)](_0x383b75(0x13b),()=>this[_0x383b75(0x134)](_0x3b0738));}[_0x16dfe0(0x134)](_0x557f9c){const _0x2be2b9=_0x16dfe0,_0x10f99e=this[_0x2be2b9(0x149)],_0x42fb38=_0x10f99e[_0x2be2b9(0x126)][_0x2be2b9(0x145)](_0x2be2b9(0x13c))||{},_0x59db37=_0x10f99e[_0x2be2b9(0x131)][_0x2be2b9(0x145)](_0x2be2b9(0x13c)),_0x5170bd=new _0x557f9c(_0x10f99e[_0x2be2b9(0x14a)]),_0x4a62c7=new _0x37429c();return _0x5170bd[_0x2be2b9(0x137)][_0x2be2b9(0x123)](_0x4a62c7),_0x4a62c7[_0x2be2b9(0x136)](_0x2be2b9(0x127))['to'](_0x59db37,_0x2be2b9(0x12a)),_0x5170bd[_0x2be2b9(0x14b)][_0x2be2b9(0x136)](_0x2be2b9(0x127))['to'](_0x59db37,_0x2be2b9(0x12a),_0x59d7ae=>!_0x59d7ae),_0x5170bd[_0x2be2b9(0x12d)]({'icon':_0x1ad869}),_0x5170bd[_0x2be2b9(0x136)](_0x2be2b9(0x141))['to'](_0x59db37,_0x2be2b9(0x141)),_0x5170bd[_0x2be2b9(0x136)](_0x2be2b9(0x142))['to'](_0x59db37,_0x2be2b9(0x12a),_0x22d4f1=>_0x29b522(_0x10f99e[_0x2be2b9(0x14a)],_0x22d4f1?_0x2be2b9(0x12f):_0x2be2b9(0x128))),this[_0x2be2b9(0x12b)](_0x5170bd,_0x2be2b9(0x143),()=>{const _0x20b85c=_0x2be2b9;_0x10f99e[_0x20b85c(0x143)](_0x20b85c(0x13c),_0x42fb38),_0x10f99e[_0x20b85c(0x147)][_0x20b85c(0x139)][_0x20b85c(0x125)]();}),_0x5170bd;}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module export-pdf
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1a5a0e,_0x4b434f){var _0x40d85b=_0x4180,_0x455597=_0x1a5a0e();while(!![]){try{var _0x2a1eef=parseInt(_0x40d85b(0x1f9))/0x1+-parseInt(_0x40d85b(0x1f6))/0x2+parseInt(_0x40d85b(0x1f2))/0x3*(parseInt(_0x40d85b(0x1f8))/0x4)+-parseInt(_0x40d85b(0x1fa))/0x5+parseInt(_0x40d85b(0x1f4))/0x6*(parseInt(_0x40d85b(0x1f7))/0x7)+-parseInt(_0x40d85b(0x1fb))/0x8*(parseInt(_0x40d85b(0x1f3))/0x9)+parseInt(_0x40d85b(0x1f5))/0xa;if(_0x2a1eef===_0x4b434f)break;else _0x455597['push'](_0x455597['shift']());}catch(_0x5d3562){_0x455597['push'](_0x455597['shift']());}}}(_0x44a4,0x7ba8c));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x4180(_0x44c6bc,_0x49b950){var _0x44a47f=_0x44a4();return _0x4180=function(_0x41801e,_0x3cd56c){_0x41801e=_0x41801e-0x1f2;var _0x15baf8=_0x44a47f[_0x41801e];return _0x15baf8;},_0x4180(_0x44c6bc,_0x49b950);}function _0x44a4(){var _0x5b4a22=['9576ZYIJFE','108EXVopT','758120wBZnbU','2248245oHzzsX','5672WFTHHL','11037TBXOsq','4797OdjEfd','660DVRTuB','9547930OVNhML','1257344STXZAC'];_0x44a4=function(){return _0x5b4a22;};return _0x44a4();}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module export-pdf/utils/common-translations
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x46040,_0x581684){const t=_0x46040['t'];switch(_0x581684){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 _0x581684;}}
|
package/src/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* A helper function for getting concatenated CSS rules from external stylesheets and the editor.
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5741c8,_0x14c93c){const _0x2c3735=_0x300c,_0x3abfdb=_0x5741c8();while(!![]){try{const _0x19c716=parseInt(_0x2c3735(0x123))/0x1+-parseInt(_0x2c3735(0x110))/0x2*(-parseInt(_0x2c3735(0x113))/0x3)+parseInt(_0x2c3735(0x10e))/0x4+parseInt(_0x2c3735(0x119))/0x5+-parseInt(_0x2c3735(0x112))/0x6*(parseInt(_0x2c3735(0x114))/0x7)+-parseInt(_0x2c3735(0x121))/0x8+-parseInt(_0x2c3735(0x106))/0x9;if(_0x19c716===_0x14c93c)break;else _0x3abfdb['push'](_0x3abfdb['shift']());}catch(_0x5791f8){_0x3abfdb['push'](_0x3abfdb['shift']());}}}(_0x25e4,0x5758b));function _0x300c(_0x237eb2,_0x3a1df5){const _0x25e429=_0x25e4();return _0x300c=function(_0x300ce4,_0x4ede5e){_0x300ce4=_0x300ce4-0x106;let _0x49a6c8=_0x25e429[_0x300ce4];return _0x49a6c8;},_0x300c(_0x237eb2,_0x3a1df5);}function _0x25e4(){const _0xf14b0a=['14PUZgrr','styleSheets','1056lDiMjC','219546pycemY','5096rSfALb','text','.ck-content','join','data-cke','2922145GAnFvS','cssRules','push','cssText','indexOf','hasAttribute','from','ownerNode','1911888GXXbze',':root','499975qBzZRk','10670751GXtYNZ','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.','fetch','trim','all','EDITOR_STYLES','length','1255384nsJvPm','then'];_0x25e4=function(){return _0xf14b0a;};return _0x25e4();}export function getStyles(_0x579e9e){const _0x7b734f=_0x300c;if(!_0x579e9e)return new Promise(_0xd3f329=>_0xd3f329(''));const _0x3c0026=[];for(const _0x22751e of _0x579e9e)_0x7b734f(0x10c)!==_0x22751e?_0x3c0026[_0x7b734f(0x11b)](window[_0x7b734f(0x109)](_0x22751e)[_0x7b734f(0x10f)](_0x5f3637=>_0x5f3637[_0x7b734f(0x115)]())):_0x3c0026[_0x7b734f(0x11b)](a());return Promise[_0x7b734f(0x10b)](_0x3c0026)[_0x7b734f(0x10f)](_0x29caa1=>_0x29caa1[_0x7b734f(0x117)]('\x20')[_0x7b734f(0x10a)]());}function a(){const _0x5ca3ce=_0x300c,_0x5e3428=[],_0x808849=[];for(const _0x5a9bd9 of Array[_0x5ca3ce(0x11f)](document[_0x5ca3ce(0x111)])){if(_0x5a9bd9[_0x5ca3ce(0x120)][_0x5ca3ce(0x11e)](_0x5ca3ce(0x118))){for(const _0x5be802 of Array[_0x5ca3ce(0x11f)](_0x5a9bd9[_0x5ca3ce(0x11a)]))-0x1!==_0x5be802[_0x5ca3ce(0x11c)][_0x5ca3ce(0x11d)](_0x5ca3ce(0x116))?_0x5e3428[_0x5ca3ce(0x11b)](_0x5be802[_0x5ca3ce(0x11c)]):-0x1!==_0x5be802[_0x5ca3ce(0x11c)][_0x5ca3ce(0x11d)](_0x5ca3ce(0x122))&&_0x808849[_0x5ca3ce(0x11b)](_0x5be802[_0x5ca3ce(0x11c)]);}}return _0x5e3428[_0x5ca3ce(0x10d)]||console[_0x5ca3ce(0x107)](_0x5ca3ce(0x108)),[..._0x808849,..._0x5e3428][_0x5ca3ce(0x117)]('\x20')[_0x5ca3ce(0x10a)]();}
|
package/dist/augmentation.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
import type { ExportPdfConfig, ExportPdf, ExportPdfCommand } from './index.js';
|
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
-
interface EditorConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The configuration of the {@link module:export-pdf/exportpdf~ExportPdf export to PDF feature}.
|
|
14
|
-
*
|
|
15
|
-
* Read more in {@link module:export-pdf/exportpdf~ExportPdfConfig}.
|
|
16
|
-
*/
|
|
17
|
-
exportPdf?: ExportPdfConfig;
|
|
18
|
-
}
|
|
19
|
-
interface PluginsMap {
|
|
20
|
-
[ExportPdf.pluginName]: ExportPdf;
|
|
21
|
-
}
|
|
22
|
-
interface CommandsMap {
|
|
23
|
-
exportPdf: ExportPdfCommand;
|
|
24
|
-
}
|
|
25
|
-
}
|
package/dist/exportpdf.d.ts
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
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/exportpdf
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
import { Notification } from 'ckeditor5/src/ui.js';
|
|
15
|
-
import type { InitializedToken, TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
|
|
16
|
-
import ExportPdfUI from './exportpdfui.js';
|
|
17
|
-
/**
|
|
18
|
-
* The export to PDF feature.
|
|
19
|
-
*
|
|
20
|
-
* It allows you to generate a PDF file directly from the editor content.
|
|
21
|
-
*
|
|
22
|
-
* For a detailed overview, check the {@glink features/converters/export-pdf export to PDF} feature documentation.
|
|
23
|
-
*/
|
|
24
|
-
export default class ExportPdf extends Plugin {
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
static get pluginName(): "ExportPdf";
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
static get isOfficialPlugin(): true;
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
static get isPremiumPlugin(): true;
|
|
37
|
-
/**
|
|
38
|
-
* @inheritDoc
|
|
39
|
-
*/
|
|
40
|
-
static get requires(): readonly ["CloudServices", typeof Notification, typeof ExportPdfUI];
|
|
41
|
-
/**
|
|
42
|
-
* @inheritDoc
|
|
43
|
-
*/
|
|
44
|
-
init(): void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* The configuration of the export to PDF feature. It is used by the PDF export features from the `@ckeditor/ckeditor5-export-pdf` package.
|
|
48
|
-
*
|
|
49
|
-
* ```ts
|
|
50
|
-
* ClassicEditor
|
|
51
|
-
* .create( editorElement, {
|
|
52
|
-
* exportPdf: ... // Export to PDF feature options.
|
|
53
|
-
* } )
|
|
54
|
-
* .then( ... )
|
|
55
|
-
* .catch( ... );
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
59
|
-
*/
|
|
60
|
-
export interface ExportPdfConfig {
|
|
61
|
-
/**
|
|
62
|
-
* Paths to the `.css` files containing additional styling for the editor's content (**the order of provided items matters**).
|
|
63
|
-
*
|
|
64
|
-
* ```ts
|
|
65
|
-
* const exportPdfConfig = {
|
|
66
|
-
* stylesheets: [ './path/to/custom-style.css' ]
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* **NOTE:** If `stylesheets` are not provided, the plugin will sent only
|
|
71
|
-
* {@glink getting-started/setup/css the default editor content styles}
|
|
72
|
-
* to the converter.
|
|
73
|
-
*
|
|
74
|
-
* **Default editor's content styles**:
|
|
75
|
-
* {@glink getting-started/setup/css The default editor content styles}
|
|
76
|
-
* are applied to the generated PDF thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
|
|
77
|
-
* If you don't want them to be applied, you have to omit the token:
|
|
78
|
-
*
|
|
79
|
-
* **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
|
|
80
|
-
* In other setups you always need to pass the stylesheets.
|
|
81
|
-
*
|
|
82
|
-
* ```ts
|
|
83
|
-
* const exportPdfConfig = {
|
|
84
|
-
* stylesheets: [ './path/to/custom-editor-styles.css' ]
|
|
85
|
-
* }
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* **Web fonts:** If you want to {@glink features/converters/export-pdf#providing-web-font-styles use web fonts} in your PDF document,
|
|
89
|
-
* you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token and other style sheets:
|
|
90
|
-
*
|
|
91
|
-
* ```ts
|
|
92
|
-
* const exportPdfConfig = {
|
|
93
|
-
* stylesheets: [
|
|
94
|
-
* './path/to/fonts.css'
|
|
95
|
-
* './path/to/editor-styles.css',
|
|
96
|
-
* ]
|
|
97
|
-
* }
|
|
98
|
-
* ```
|
|
99
|
-
*
|
|
100
|
-
* **Web fonts and custom styling:** For more advanced styling, your configuration should look like this:
|
|
101
|
-
*
|
|
102
|
-
* ```ts
|
|
103
|
-
* const exportPdfConfig = {
|
|
104
|
-
* stylesheets: [
|
|
105
|
-
* './path/to/fonts.css',
|
|
106
|
-
* './path/to/editor-styles.css',
|
|
107
|
-
* './path/to/custom-styles.css'
|
|
108
|
-
* ]
|
|
109
|
-
* }
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @default `[ 'EDITOR_STYLES' ]`
|
|
113
|
-
*/
|
|
114
|
-
stylesheets?: Array<string>;
|
|
115
|
-
/**
|
|
116
|
-
* The name of the generated PDF file.
|
|
117
|
-
*
|
|
118
|
-
* ```ts
|
|
119
|
-
* // Static file name.
|
|
120
|
-
* const exportPdfConfig = {
|
|
121
|
-
* fileName: 'my-document.pdf'
|
|
122
|
-
* }
|
|
123
|
-
*
|
|
124
|
-
* // Dynamic file name.
|
|
125
|
-
* const exportPdfConfig = {
|
|
126
|
-
* fileName: () => {
|
|
127
|
-
* const articleTitle = document.querySelector( '#title' );
|
|
128
|
-
*
|
|
129
|
-
* return `${ articleTitle.value }.pdf`;
|
|
130
|
-
* }
|
|
131
|
-
* }
|
|
132
|
-
* ```
|
|
133
|
-
*
|
|
134
|
-
* **NOTE:** The file name must contain the `.pdf` extension.
|
|
135
|
-
* Otherwise your operating system or device may have trouble identifying the file type.
|
|
136
|
-
*
|
|
137
|
-
* @default 'document.pdf'
|
|
138
|
-
*/
|
|
139
|
-
fileName?: string | (() => string);
|
|
140
|
-
/**
|
|
141
|
-
* A URL to the HTML to PDF converter.
|
|
142
|
-
*
|
|
143
|
-
* ```ts
|
|
144
|
-
* const exportPdfConfig = {
|
|
145
|
-
* converterUrl: 'https://myconverter.com/v1/'
|
|
146
|
-
* }
|
|
147
|
-
* ```
|
|
148
|
-
*
|
|
149
|
-
* **NOTE:** The plugin uses the default HTML to PDF converter delivered by CKEditor Cloud Services.
|
|
150
|
-
* You can provide a URL to an on-premises converter instead.
|
|
151
|
-
*
|
|
152
|
-
* @default 'https://pdf-converter.cke-cs.com/v1/convert'
|
|
153
|
-
*/
|
|
154
|
-
converterUrl?: string;
|
|
155
|
-
/**
|
|
156
|
-
* The HTML to PDF converter options.
|
|
157
|
-
*
|
|
158
|
-
* **NOTE:** Configuring the plugin is not mandatory but it is highly recommended,
|
|
159
|
-
* especially if you want to get the most accurate results when generating the PDF file.
|
|
160
|
-
* To learn more, please check the [HTML to PDF converter configuration](https://pdf-converter.cke-cs.com/docs).
|
|
161
|
-
*
|
|
162
|
-
* ```ts
|
|
163
|
-
* const exportPdfConfig = {
|
|
164
|
-
* converterOptions: {
|
|
165
|
-
* ...
|
|
166
|
-
* }
|
|
167
|
-
* }
|
|
168
|
-
* ```
|
|
169
|
-
*
|
|
170
|
-
* @default `{
|
|
171
|
-
* format: 'A4',
|
|
172
|
-
* margin_top: '0',
|
|
173
|
-
* margin_bottom: '0',
|
|
174
|
-
* margin_right: '0',
|
|
175
|
-
* margin_left: '0',
|
|
176
|
-
* page_orientation: 'portrait',
|
|
177
|
-
* header_html: undefined,
|
|
178
|
-
* footer_html: undefined,
|
|
179
|
-
* header_and_footer_css: undefined,
|
|
180
|
-
* wait_for_network: true,
|
|
181
|
-
* wait_time: 0
|
|
182
|
-
* }`
|
|
183
|
-
*/
|
|
184
|
-
converterOptions?: ExportPdfConverterOptions;
|
|
185
|
-
/**
|
|
186
|
-
* A function to gather the HTML to be converted to PDF.
|
|
187
|
-
*
|
|
188
|
-
* **NOTE:** This option may be useful when the editor does not have `getData()` method,
|
|
189
|
-
* or if the HTML to be converted should be different than the edited one.
|
|
190
|
-
*
|
|
191
|
-
* ```ts
|
|
192
|
-
* const exportPdfConfig = {
|
|
193
|
-
* dataCallback: ( editor: Editor ) => {
|
|
194
|
-
* return `
|
|
195
|
-
* <header id="header">${ editor.data.get( { rootName: 'header' } ) }</header>
|
|
196
|
-
* <div id="content">${ editor.data.get( { rootName: 'content' } ) }</div>
|
|
197
|
-
* `;
|
|
198
|
-
* }
|
|
199
|
-
* }
|
|
200
|
-
* ```
|
|
201
|
-
*
|
|
202
|
-
* @default `( editor: Editor ) => editor.getData()`
|
|
203
|
-
*/
|
|
204
|
-
dataCallback?: (editor: Editor) => string;
|
|
205
|
-
/**
|
|
206
|
-
* A token URL or a token request function. This field is optional and should be used only when a different `tokenUrl` is required for
|
|
207
|
-
* the export to PDF feature.
|
|
208
|
-
*
|
|
209
|
-
* **Note:** The token can be disabled with the `false` value provided.
|
|
210
|
-
*
|
|
211
|
-
* See: {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl}
|
|
212
|
-
*/
|
|
213
|
-
tokenUrl?: TokenUrl | false;
|
|
214
|
-
/**
|
|
215
|
-
* The authentication token.
|
|
216
|
-
*
|
|
217
|
-
* See: {@link module:cloud-services/cloudservices~CloudServices#token}
|
|
218
|
-
*/
|
|
219
|
-
token?: InitializedToken;
|
|
220
|
-
/**
|
|
221
|
-
* The application unique identifier.
|
|
222
|
-
*/
|
|
223
|
-
appID?: string;
|
|
224
|
-
}
|
|
225
|
-
export type ExportPdfConverterOptions = {
|
|
226
|
-
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
|
|
227
|
-
margin_top?: string;
|
|
228
|
-
margin_bottom?: string;
|
|
229
|
-
margin_right?: string;
|
|
230
|
-
margin_left?: string;
|
|
231
|
-
header_html?: string;
|
|
232
|
-
footer_html?: string;
|
|
233
|
-
header_and_footer_css?: string;
|
|
234
|
-
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
235
|
-
wait_for_network?: boolean;
|
|
236
|
-
wait_time?: number;
|
|
237
|
-
merge_fields?: {
|
|
238
|
-
prefix: string;
|
|
239
|
-
suffix: string;
|
|
240
|
-
data: Record<string, string>;
|
|
241
|
-
};
|
|
242
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
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/exportpdfcommand
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
import { type ExportPdfConfig } from './exportpdf.js';
|
|
15
|
-
/**
|
|
16
|
-
* The export to PDF command.
|
|
17
|
-
*
|
|
18
|
-
* It takes the editor's HTML and CSS rules from the document and sends them to the HTML to PDF converter.
|
|
19
|
-
* After processing, the converter will send back a PDF file for download.
|
|
20
|
-
*/
|
|
21
|
-
export default class ExportPdfCommand extends Command {
|
|
22
|
-
/**
|
|
23
|
-
* A command state that indicates if the command is currently executing.
|
|
24
|
-
*
|
|
25
|
-
* @observable
|
|
26
|
-
*/
|
|
27
|
-
isBusy: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
constructor(editor: Editor);
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
refresh(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Executes the command.
|
|
38
|
-
*
|
|
39
|
-
* @fires execute
|
|
40
|
-
* @param options Options for the executed command.
|
|
41
|
-
*/
|
|
42
|
-
execute(options?: ExportPdfConfig): Promise<void>;
|
|
43
|
-
}
|
package/dist/exportpdfui.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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/exportpdfui
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* The export to PDF UI feature.
|
|
15
|
-
*
|
|
16
|
-
* It introduces 'Export to PDF' button in toolbar and menu bar.
|
|
17
|
-
*/
|
|
18
|
-
export default class ExportPdfUI extends Plugin {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static get pluginName(): "ExportPdfUI";
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get isOfficialPlugin(): true;
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
static get isPremiumPlugin(): true;
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
init(): void;
|
|
35
|
-
}
|