@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.
Files changed (63) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +4 -4
  3. package/README.md +8 -8
  4. package/build/export-pdf.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/lang/translations/af.po +1 -0
  7. package/lang/translations/ar.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/ca.po +1 -0
  11. package/lang/translations/cs.po +1 -0
  12. package/lang/translations/da.po +1 -0
  13. package/lang/translations/de.po +1 -0
  14. package/lang/translations/el.po +1 -0
  15. package/lang/translations/en-au.po +1 -0
  16. package/lang/translations/en.po +1 -0
  17. package/lang/translations/es-co.po +1 -0
  18. package/lang/translations/es.po +1 -0
  19. package/lang/translations/et.po +1 -0
  20. package/lang/translations/fi.po +1 -0
  21. package/lang/translations/fr.po +1 -0
  22. package/lang/translations/gl.po +1 -0
  23. package/lang/translations/he.po +1 -0
  24. package/lang/translations/hi.po +1 -0
  25. package/lang/translations/hr.po +1 -0
  26. package/lang/translations/hu.po +1 -0
  27. package/lang/translations/id.po +1 -0
  28. package/lang/translations/it.po +1 -0
  29. package/lang/translations/ja.po +1 -0
  30. package/lang/translations/jv.po +1 -0
  31. package/lang/translations/ko.po +1 -0
  32. package/lang/translations/lt.po +1 -0
  33. package/lang/translations/lv.po +1 -0
  34. package/lang/translations/ms.po +1 -0
  35. package/lang/translations/nl.po +1 -0
  36. package/lang/translations/no.po +1 -0
  37. package/lang/translations/pl.po +1 -0
  38. package/lang/translations/pt-br.po +2 -1
  39. package/lang/translations/pt.po +1 -0
  40. package/lang/translations/ro.po +1 -0
  41. package/lang/translations/ru.po +1 -0
  42. package/lang/translations/sk.po +1 -0
  43. package/lang/translations/sr-latn.po +1 -0
  44. package/lang/translations/sr.po +1 -0
  45. package/lang/translations/sv.po +1 -0
  46. package/lang/translations/th.po +1 -0
  47. package/lang/translations/tr.po +1 -0
  48. package/lang/translations/ug.po +1 -0
  49. package/lang/translations/uk.po +1 -0
  50. package/lang/translations/ur.po +1 -0
  51. package/lang/translations/vi.po +1 -0
  52. package/lang/translations/zh-cn.po +1 -0
  53. package/lang/translations/zh.po +1 -0
  54. package/package.json +2 -6
  55. package/src/augmentation.d.ts +21 -21
  56. package/src/exportpdf.d.ts +220 -221
  57. package/src/exportpdf.js +1 -1
  58. package/src/exportpdfcommand.d.ts +39 -39
  59. package/src/exportpdfcommand.js +1 -1
  60. package/src/index.d.ts +10 -10
  61. package/src/utils.d.ts +10 -10
  62. package/src/utils.js +1 -1
  63. 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 _0x1df7=['cssText','from','text','length','EDITOR_STYLES','push','ownerNode','then','trim','cssRules','styleSheets','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.','join','hasAttribute','.ck-content',':root'];(function(_0x59d514,_0x1df70e){const _0x3d3e6f=function(_0x2eeea8){while(--_0x2eeea8){_0x59d514['push'](_0x59d514['shift']());}};_0x3d3e6f(++_0x1df70e);}(_0x1df7,0x1dd));const _0x3d3e=function(_0x59d514,_0x1df70e){_0x59d514=_0x59d514-0x0;let _0x3d3e6f=_0x1df7[_0x59d514];return _0x3d3e6f;};export function getStyles(_0x2c8819){if(!_0x2c8819)return new Promise(_0x55ea49=>_0x55ea49(''));const _0x3b641f=[];for(const _0x2f1404 of _0x2c8819)_0x3d3e('0x7')!==_0x2f1404?_0x3b641f[_0x3d3e('0x8')](window['fetch'](_0x2f1404)['then'](_0x3135fa=>_0x3135fa[_0x3d3e('0x5')]())):_0x3b641f[_0x3d3e('0x8')](u());return Promise['all'](_0x3b641f)[_0x3d3e('0xa')](_0x2f414b=>_0x2f414b[_0x3d3e('0xf')]('\x20')[_0x3d3e('0xb')]());}function u(){const _0x4f378b=[],_0x22c717=[];for(const _0x2d6455 of Array[_0x3d3e('0x4')](document[_0x3d3e('0xd')])){if(_0x2d6455[_0x3d3e('0x9')][_0x3d3e('0x0')]('data-cke'))for(const _0x136e28 of Array[_0x3d3e('0x4')](_0x2d6455[_0x3d3e('0xc')]))-0x1!==_0x136e28[_0x3d3e('0x3')]['indexOf'](_0x3d3e('0x1'))?_0x4f378b[_0x3d3e('0x8')](_0x136e28[_0x3d3e('0x3')]):-0x1!==_0x136e28[_0x3d3e('0x3')]['indexOf'](_0x3d3e('0x2'))&&_0x22c717['push'](_0x136e28[_0x3d3e('0x3')]);}return _0x4f378b[_0x3d3e('0x6')]||console['warn'](_0x3d3e('0xe')),[..._0x22c717,..._0x4f378b][_0x3d3e('0xf')]('\x20')[_0x3d3e('0xb')]();}
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')]();}
@@ -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
- }