@ckeditor/ckeditor5-export-pdf 39.0.1 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/LICENSE.md +4 -4
- package/README.md +8 -8
- package/build/export-pdf.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/lang/translations/af.po +1 -0
- package/lang/translations/ar.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es-co.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/jv.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +2 -1
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/ug.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +2 -6
- package/src/augmentation.d.ts +21 -21
- package/src/exportpdf.d.ts +220 -221
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.d.ts +39 -39
- package/src/exportpdfcommand.js +1 -1
- package/src/index.d.ts +10 -10
- package/src/utils.d.ts +10 -10
- package/src/utils.js +1 -1
- package/theme/exportpdf.css +0 -53
package/src/utils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, 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
|
-
* A helper function for getting concatenated CSS rules from external stylesheets and the editor.
|
|
7
|
-
*
|
|
8
|
-
* @param stylesheets An array of stylesheet paths delivered by the user through the plugin configuration.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, 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
|
+
* A helper function for getting concatenated CSS rules from external stylesheets and the editor.
|
|
7
|
+
*
|
|
8
|
+
* @param stylesheets An array of stylesheet paths delivered by the user through the plugin configuration.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3651=['indexOf','all','cssText','.ck-content','hasAttribute','fetch','from','join','push','cssRules','data-cke','then','length','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.','styleSheets','trim'];(function(_0x4bdb82,_0x365175){const _0x9394a3=function(_0x623a12){while(--_0x623a12){_0x4bdb82['push'](_0x4bdb82['shift']());}};_0x9394a3(++_0x365175);}(_0x3651,0x1a2));const _0x9394=function(_0x4bdb82,_0x365175){_0x4bdb82=_0x4bdb82-0x0;let _0x9394a3=_0x3651[_0x4bdb82];return _0x9394a3;};export function getStyles(_0x34a1b7){if(!_0x34a1b7)return new Promise(_0x596192=>_0x596192(''));const _0x2b8774=[];for(const _0x58d164 of _0x34a1b7)'EDITOR_STYLES'!==_0x58d164?_0x2b8774[_0x9394('0xf')](window[_0x9394('0xc')](_0x58d164)[_0x9394('0x1')](_0x32b28d=>_0x32b28d['text']())):_0x2b8774[_0x9394('0xf')](u());return Promise[_0x9394('0x8')](_0x2b8774)[_0x9394('0x1')](_0xf41b01=>_0xf41b01[_0x9394('0xe')]('\x20')[_0x9394('0x6')]());}function u(){const _0x58dd6c=[],_0x36e2cb=[];for(const _0x32ef38 of Array[_0x9394('0xd')](document[_0x9394('0x5')])){if(_0x32ef38['ownerNode'][_0x9394('0xb')](_0x9394('0x0')))for(const _0x17f817 of Array[_0x9394('0xd')](_0x32ef38[_0x9394('0x10')]))-0x1!==_0x17f817['cssText'][_0x9394('0x7')](_0x9394('0xa'))?_0x58dd6c['push'](_0x17f817[_0x9394('0x9')]):-0x1!==_0x17f817[_0x9394('0x9')][_0x9394('0x7')](':root')&&_0x36e2cb[_0x9394('0xf')](_0x17f817['cssText']);}return _0x58dd6c[_0x9394('0x2')]||console[_0x9394('0x3')](_0x9394('0x4')),[..._0x36e2cb,..._0x58dd6c][_0x9394('0xe')]('\x20')[_0x9394('0x6')]();}
|
package/theme/exportpdf.css
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2023, 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
|
-
/* TODO
|
|
7
|
-
Extract theme-lark styles before public release.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
--ck-toolbar-spinner-size: 18px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ck-exportpdf_status-pending {
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ck.ck-exportpdf__spinner-container {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ck.ck-exportpdf__spinner {
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 50%;
|
|
25
|
-
left: 0;
|
|
26
|
-
right: 0;
|
|
27
|
-
margin: 0 auto;
|
|
28
|
-
width: var(--ck-toolbar-spinner-size);
|
|
29
|
-
height: var(--ck-toolbar-spinner-size);
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
border: 2px solid var(--ck-color-text);
|
|
32
|
-
border-top-color: transparent;
|
|
33
|
-
transform: translateY(-50%);
|
|
34
|
-
z-index: 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ck-exportpdf_status-pending .ck.ck-exportpdf__spinner-container {
|
|
38
|
-
display: block;
|
|
39
|
-
position: absolute;
|
|
40
|
-
width: var(--ck-toolbar-spinner-size);
|
|
41
|
-
height: var(--ck-toolbar-spinner-size);
|
|
42
|
-
animation: 1.5s infinite rotate linear;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ck-exportpdf_status-pending .ck.ck-button__icon {
|
|
46
|
-
color: transparent;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@keyframes rotate {
|
|
50
|
-
to {
|
|
51
|
-
transform: rotate(360deg)
|
|
52
|
-
}
|
|
53
|
-
}
|