@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250216.0 → 0.0.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.
Files changed (64) hide show
  1. package/LICENSE.md +6 -5
  2. package/README.md +3 -35
  3. package/package.json +7 -74
  4. package/CHANGELOG.md +0 -6
  5. package/build/uploadcare.js +0 -4
  6. package/ckeditor5-metadata.json +0 -47
  7. package/dist/index-content.css +0 -5
  8. package/dist/index-editor.css +0 -265
  9. package/dist/index.css +0 -315
  10. package/dist/index.js +0 -25
  11. package/lang/contexts.json +0 -27
  12. package/src/augmentation.d.ts +0 -30
  13. package/src/augmentation.js +0 -23
  14. package/src/index.d.ts +0 -16
  15. package/src/index.js +0 -23
  16. package/src/ui/uploadcarecontroller.d.ts +0 -26
  17. package/src/ui/uploadcarecontroller.js +0 -24
  18. package/src/ui/uploadcareformview.d.ts +0 -23
  19. package/src/ui/uploadcareformview.js +0 -23
  20. package/src/uploadcare.d.ts +0 -48
  21. package/src/uploadcare.js +0 -23
  22. package/src/uploadcarecommand.d.ts +0 -38
  23. package/src/uploadcarecommand.js +0 -23
  24. package/src/uploadcareconfig.d.ts +0 -227
  25. package/src/uploadcareconfig.js +0 -23
  26. package/src/uploadcareediting.d.ts +0 -49
  27. package/src/uploadcareediting.js +0 -23
  28. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +0 -78
  29. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +0 -24
  30. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +0 -25
  31. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +0 -23
  32. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +0 -24
  33. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +0 -23
  34. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +0 -24
  35. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +0 -23
  36. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +0 -32
  37. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +0 -23
  38. package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +0 -49
  39. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +0 -23
  40. package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +0 -38
  41. package/src/uploadcareimageedit/uploadcareimageeditediting.js +0 -23
  42. package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +0 -48
  43. package/src/uploadcareimageedit/uploadcareimageeditui.js +0 -23
  44. package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +0 -23
  45. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +0 -23
  46. package/src/uploadcareimageedit.d.ts +0 -32
  47. package/src/uploadcareimageedit.js +0 -23
  48. package/src/uploadcareui.d.ts +0 -41
  49. package/src/uploadcareui.js +0 -23
  50. package/src/uploadcareuploadadapter.d.ts +0 -39
  51. package/src/uploadcareuploadadapter.js +0 -23
  52. package/src/utils/common-translations.d.ts +0 -5
  53. package/src/utils/common-translations.js +0 -23
  54. package/src/utils/dialogfocusmanagerview.d.ts +0 -29
  55. package/src/utils/dialogfocusmanagerview.js +0 -23
  56. package/src/utils/editingutils.d.ts +0 -5
  57. package/src/utils/editingutils.js +0 -23
  58. package/src/utils/isancestor.d.ts +0 -8
  59. package/src/utils/isancestor.js +0 -23
  60. package/src/utils/uploadutils.d.ts +0 -5
  61. package/src/utils/uploadutils.js +0 -23
  62. package/theme/uploadcare-form.css +0 -198
  63. package/theme/uploadcare-theme.css +0 -20
  64. package/theme/uploadcareimageedit.css +0 -64
@@ -1,29 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/utils/dialogfocusmanagerview
7
- */
8
- import { type Locale } from 'ckeditor5/src/utils.js';
9
- import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
10
- import '../../theme/uploadcare-form.css';
11
- /**
12
- * A helper class that facilitates managing focus within a dialog form. It provides a mechanism
13
- * for adding a focusable element to the template that redirects the focus back to the dialog.
14
- *
15
- * Uploadcare provides web components and iframes that can disrupt the focus flow in the dialog,
16
- * especially during keyboard navigation, which can result in users losing the ability to cycle through
17
- * dialog elements.
18
- */
19
- export default abstract class DialogFocusManagerView extends View {
20
- /**
21
- * @inheritDoc
22
- */
23
- constructor(locale: Locale);
24
- /**
25
- * Returns a focusable element that should be added to the template where needed.
26
- * This element helps with focus management within the dialog.
27
- */
28
- getFocusableElement(): TemplateDefinition;
29
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, 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
- function _0x1bf0(_0x496355,_0x3c977e){var _0x398cea=_0x398c();return _0x1bf0=function(_0x1bf0f4,_0x107d93){_0x1bf0f4=_0x1bf0f4-0x10c;var _0x17eb6c=_0x398cea[_0x1bf0f4];return _0x17eb6c;},_0x1bf0(_0x496355,_0x3c977e);}var _0x1dab57=_0x1bf0;(function(_0x268703,_0x3b2515){var _0x49e3a6=_0x1bf0,_0xa3d548=_0x268703();while(!![]){try{var _0x219a49=-parseInt(_0x49e3a6(0x113))/0x1+parseInt(_0x49e3a6(0x116))/0x2+-parseInt(_0x49e3a6(0x11a))/0x3+-parseInt(_0x49e3a6(0x112))/0x4+parseInt(_0x49e3a6(0x114))/0x5*(-parseInt(_0x49e3a6(0x11d))/0x6)+parseInt(_0x49e3a6(0x111))/0x7*(-parseInt(_0x49e3a6(0x11e))/0x8)+-parseInt(_0x49e3a6(0x110))/0x9*(-parseInt(_0x49e3a6(0x118))/0xa);if(_0x219a49===_0x3b2515)break;else _0xa3d548['push'](_0xa3d548['shift']());}catch(_0x5f5de2){_0xa3d548['push'](_0xa3d548['shift']());}}}(_0x398c,0xf1b22));import{FocusTracker as _0x4eddb0}from'ckeditor5/src/utils.js';import{View as _0x1f99c1,FocusCycler as _0x517627}from'ckeditor5/src/ui.js';function _0x398c(){var _0x1861e9=['getFocusableElement','focusCycler','580542tYIsSt','5849464eqFckM','focusTracker','createCollection','fire','forwardCycle','12671667LLpeJg','7RkzElk','5654516WYWYQB','1489525lmmTLR','65vsRipc','true','2572044wekMzL','bindTemplate','40rEYIzR','div','3107130oejBlj'];_0x398c=function(){return _0x1861e9;};return _0x398c();}import'../../theme/uploadcare-form.css';export default class G extends _0x1f99c1{[_0x1dab57(0x10c)];[_0x1dab57(0x11c)];constructor(_0x364cd3){var _0x402c81=_0x1dab57;super(_0x364cd3),this[_0x402c81(0x10c)]=new _0x4eddb0(),this[_0x402c81(0x11c)]=new _0x517627({'focusables':this[_0x402c81(0x10d)](),'focusTracker':this[_0x402c81(0x10c)]});}[_0x1dab57(0x11b)](){var _0x334fdb=_0x1dab57;return{'tag':_0x334fdb(0x119),'attributes':{'aria-hidden':_0x334fdb(0x115),'tabindex':'0'},'on':{'focus':this[_0x334fdb(0x117)]['to'](()=>{var _0x281518=_0x334fdb;this[_0x281518(0x11c)][_0x281518(0x10e)](_0x281518(0x10f));})}};}}
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- export {};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, 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
- (function(_0x3b7938,_0x3e2499){const _0x207198=_0x3955,_0xac5c37=_0x3b7938();while(!![]){try{const _0x2397ba=parseInt(_0x207198(0x116))/0x1*(parseInt(_0x207198(0x126))/0x2)+-parseInt(_0x207198(0x122))/0x3*(-parseInt(_0x207198(0x145))/0x4)+-parseInt(_0x207198(0x14c))/0x5+parseInt(_0x207198(0x132))/0x6*(parseInt(_0x207198(0x11b))/0x7)+parseInt(_0x207198(0x134))/0x8+parseInt(_0x207198(0x118))/0x9*(-parseInt(_0x207198(0x12c))/0xa)+-parseInt(_0x207198(0x139))/0xb*(parseInt(_0x207198(0x127))/0xc);if(_0x2397ba===_0x3e2499)break;else _0xac5c37['push'](_0xac5c37['shift']());}catch(_0x1b19d7){_0xac5c37['push'](_0xac5c37['shift']());}}}(_0x3fe4,0xad804));import{global as _0x7f4264,DomEmitterMixin as _0x456102}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5adcb3){const _0x1deaef=_0x3955,_0x5ab3e1=W(_0x5adcb3);return _0x1425e4=>!(!_0x1425e4||!_0x1425e4['is'](_0x1deaef(0x14e),_0x1deaef(0x12b))&&!_0x1425e4['is'](_0x1deaef(0x14e),_0x1deaef(0x138)))&&(!!_0x1425e4[_0x1deaef(0x136)](_0x1deaef(0x125))||!!_0x1425e4[_0x1deaef(0x136)](_0x1deaef(0x13c))&&_0x5ab3e1(_0x1425e4[_0x1deaef(0x12e)](_0x1deaef(0x13c))));}export function getImageUrls(_0x4e83f8,_0x34d831){const _0x5d2a70=_0x3955,_0x339ffd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x5d2a70(0x144)](_0x3ee845=>_0x3ee845<=_0x34d831)[_0x5d2a70(0x124)](_0x340477=>_0x4e83f8[_0x5d2a70(0x123)](/\/$/,'')+_0x5d2a70(0x120)+_0x340477+_0x5d2a70(0x149)+_0x340477+'w');return{'imageFallbackUrl':_0x4e83f8,'imageSources':[{'srcset':_0x339ffd[_0x5d2a70(0x11f)](',\x20'),'sizes':_0x5d2a70(0x11a)+_0x34d831+_0x5d2a70(0x142)+_0x34d831+'px','type':_0x5d2a70(0x130)}]};}function _0x3955(_0x1a45f3,_0x2069de){const _0x3fe4ac=_0x3fe4();return _0x3955=function(_0x39553f,_0x49413f){_0x39553f=_0x39553f-0x115;let _0x40e893=_0x3fe4ac[_0x39553f];return _0x40e893;},_0x3955(_0x1a45f3,_0x2069de);}export function getImageDimension(_0x240f7b,_0x3130a5,_0x3427ae){const _0x2f4f1a=_0x3955,_0x4ef0eb=_0x240f7b[_0x2f4f1a(0x143)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4ef0eb?parseInt(_0x4ef0eb[0x1],0xa):_0x3130a5,'height':_0x4ef0eb?parseInt(_0x4ef0eb[0x2],0xa):_0x3427ae};}function _0x3fe4(){const _0x2fd119=['function','document','join','/-/resize/','toViewElement','3VQlwdE','replace','map','uploadcareImageId','3506ThhweW','125508kFdjdJ','stopListening','create','setStyle','imageBlock','8634770irVDUN','addClass','getAttribute','removeStyle','image/webp','domConverter','354rZIWWK','removeClass','2781184pqJMlJ','findViewImgElement','hasAttribute','get','imageInline','66eOCvIY','window','ImageUtils','src','isArray','height','width','listenTo','baseURI','px)\x20100vw,\x20','match','filter','632944okAjnK','location','origin','image-processing','x/\x20','view','change','3830565yBPjtC','plugins','element','load','editing','aspect-ratio','529FwVDyl','some','9NdrWIc','viewToDom','(max-width:\x20','115059bzfuAY','mapper'];_0x3fe4=function(){return _0x2fd119;};return _0x3fe4();}export function showImageProcessingIndicator(_0x2d6ccf,_0x45b3bc){const _0x57abde=_0x3955,_0x3f58c3=Object[_0x57abde(0x129)](_0x456102),_0x5263cc=_0x2d6ccf[_0x57abde(0x14d)][_0x57abde(0x137)](_0x57abde(0x13b)),_0x58b6b2=_0x2d6ccf[_0x57abde(0x150)][_0x57abde(0x11c)][_0x57abde(0x121)](_0x45b3bc),_0x5e1e85=_0x5263cc[_0x57abde(0x135)](_0x58b6b2),_0x17a269=_0x2d6ccf[_0x57abde(0x150)][_0x57abde(0x14a)][_0x57abde(0x131)][_0x57abde(0x119)](_0x5e1e85),_0x50cc43=_0x45b3bc[_0x57abde(0x12e)](_0x57abde(0x13f)),_0x28790c=_0x45b3bc[_0x57abde(0x12e)](_0x57abde(0x13e)),_0x196e3c=_0x57abde(0x148);_0x2d6ccf[_0x57abde(0x150)][_0x57abde(0x14a)][_0x57abde(0x14b)](_0x4aff66=>{const _0x2c8311=_0x57abde;_0x4aff66[_0x2c8311(0x12d)](_0x196e3c,_0x58b6b2),_0x4aff66[_0x2c8311(0x12a)](_0x2c8311(0x115),_0x50cc43+'/'+_0x28790c,_0x5e1e85);}),_0x3f58c3[_0x57abde(0x140)](_0x17a269,_0x57abde(0x14f),()=>{const _0x329e49=_0x57abde;_0x3f58c3[_0x329e49(0x128)](_0x17a269,_0x329e49(0x14f)),_0x2d6ccf[_0x329e49(0x150)][_0x329e49(0x14a)][_0x329e49(0x14b)](_0x3fa21e=>{const _0x44c54e=_0x329e49;_0x3fa21e[_0x44c54e(0x133)](_0x196e3c,_0x58b6b2),_0x3fa21e[_0x44c54e(0x12f)](_0x44c54e(0x115),_0x5e1e85);});});}function W(_0x1e4752){const _0x29a44c=_0x3955;if(Array[_0x29a44c(0x13d)](_0x1e4752)){const _0x1c9f96=_0x1e4752[_0x29a44c(0x124)](W);return _0x2043ca=>_0x1c9f96[_0x29a44c(0x117)](_0x31e5f9=>_0x31e5f9(_0x2043ca));}if(_0x29a44c(0x147)==_0x1e4752){const _0x168044=_0x7f4264[_0x29a44c(0x13a)][_0x29a44c(0x146)][_0x29a44c(0x147)];return _0x56854c=>new URL(_0x56854c,_0x7f4264[_0x29a44c(0x11e)][_0x29a44c(0x141)])[_0x29a44c(0x147)]==_0x168044;}return _0x29a44c(0x11d)==typeof _0x1e4752?_0x1e4752:_0x1e4752 instanceof RegExp?_0x539dd3=>!(!_0x539dd3[_0x29a44c(0x143)](_0x1e4752)&&!_0x539dd3[_0x29a44c(0x123)](/^https?:\/\//,'')[_0x29a44c(0x143)](_0x1e4752)):()=>!0x1;}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * Checks if specified wrapper element is one of the ancestors of event target element.
7
- */
8
- export declare function isAncestor(evt: KeyboardEvent, wrapper: HTMLElement): boolean;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, 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
- (function(_0x177f61,_0x4e0e85){var _0x11514c=_0x5ed1,_0x460573=_0x177f61();while(!![]){try{var _0xce309f=-parseInt(_0x11514c(0x11a))/0x1*(parseInt(_0x11514c(0x115))/0x2)+-parseInt(_0x11514c(0x117))/0x3*(parseInt(_0x11514c(0x116))/0x4)+-parseInt(_0x11514c(0x118))/0x5*(-parseInt(_0x11514c(0x114))/0x6)+parseInt(_0x11514c(0x11f))/0x7+parseInt(_0x11514c(0x11c))/0x8+-parseInt(_0x11514c(0x119))/0x9+parseInt(_0x11514c(0x11e))/0xa*(parseInt(_0x11514c(0x11d))/0xb);if(_0xce309f===_0x4e0e85)break;else _0x460573['push'](_0x460573['shift']());}catch(_0xa12c47){_0x460573['push'](_0x460573['shift']());}}}(_0xb285,0x87045));function _0x5ed1(_0x43f778,_0x3cf1e9){var _0xb2858d=_0xb285();return _0x5ed1=function(_0x5ed1a0,_0x33734f){_0x5ed1a0=_0x5ed1a0-0x114;var _0x38ed55=_0xb2858d[_0x5ed1a0];return _0x38ed55;},_0x5ed1(_0x43f778,_0x3cf1e9);}function _0xb285(){var _0x5be3dc=['4035405gSSeKL','20qbnLbu','6442506AzaElq','target','3086922zIHnXT','460IJixuV','4RPymxQ','1488447tuQBkU','5MHRmmH','7281423nEHHbp','3822VjKKlU','includes','4549840GCVlXz'];_0xb285=function(){return _0x5be3dc;};return _0xb285();}import{getAncestors as _0x4c5306}from'ckeditor5/src/utils.js';export function isAncestor(_0x45768d,_0x1d0f0b){var _0x5099f0=_0x5ed1;return _0x4c5306(_0x45768d[_0x5099f0(0x120)])[_0x5099f0(0x11b)](_0x1d0f0b);}
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- export {};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, 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
- function _0xdea8(_0x22ed99,_0x7b5683){var _0x5df839=_0x5df8();return _0xdea8=function(_0xdea8de,_0x2a4e1c){_0xdea8de=_0xdea8de-0x1ad;var _0x244cf0=_0x5df839[_0xdea8de];return _0x244cf0;},_0xdea8(_0x22ed99,_0x7b5683);}var _0x52c77c=_0xdea8;(function(_0x58b3b2,_0x3c575d){var _0x419969=_0xdea8,_0x2d53eb=_0x58b3b2();while(!![]){try{var _0x5722ff=-parseInt(_0x419969(0x1ae))/0x1*(parseInt(_0x419969(0x1b0))/0x2)+-parseInt(_0x419969(0x1ad))/0x3*(-parseInt(_0x419969(0x1b5))/0x4)+parseInt(_0x419969(0x1b2))/0x5*(parseInt(_0x419969(0x1b4))/0x6)+-parseInt(_0x419969(0x1b7))/0x7+-parseInt(_0x419969(0x1ba))/0x8+parseInt(_0x419969(0x1af))/0x9+-parseInt(_0x419969(0x1b6))/0xa*(-parseInt(_0x419969(0x1b1))/0xb);if(_0x5722ff===_0x3c575d)break;else _0x2d53eb['push'](_0x2d53eb['shift']());}catch(_0x5c4af6){_0x2d53eb['push'](_0x2d53eb['shift']());}}}(_0x5df8,0x42b4f));import{uploadFile as _0x262c99,info as _0x3324d3}from'@uploadcare/upload-client';function _0x5df8(){var _0x12e92b=['2507337ZjhLOa','14UyBvTO','11cMOPdA','1040aZRnek','auto','4986HOHRyJ','33188CwIPKc','6902660Dgkhdi','2941946VQeRmD','getInfo','upload','1586632UFJLPE','15Gbmujz','41622yMpMIL'];_0x5df8=function(){return _0x12e92b;};return _0x5df8();}export default class C{static[_0x52c77c(0x1b9)]({file:_0x376d66,publicKey:_0x5b5e47,signal:_0xc52901,onProgress:_0x2b8824}){var _0x35e724=_0x52c77c;return _0x262c99(_0x376d66,{'publicKey':_0x5b5e47,'store':_0x35e724(0x1b3),'signal':_0xc52901,'onProgress':_0x2b8824});}static[_0x52c77c(0x1b8)](_0x4ab752,_0x5ea72a){return _0x3324d3(_0x4ab752,_0x5ea72a);}}
@@ -1,198 +0,0 @@
1
- /*
2
- * What you're currently looking at is the source code of a legally protected, proprietary software.
3
- * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
- * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
- *
6
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
-
10
- @import "@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css";
11
-
12
- :root {
13
- --ck-uploadcare-form-view-width: 700px;
14
- --ck-uploadcare-external-source-view-height: 350px;
15
- --ck-uploadcare-color-image-background: oklch(0.97 0 0);
16
- --ck-uploadcare-color-icon-error: hsl(15, 100%, 43%);
17
- --ck-uploadcare-color-skeleton: hsl(0, 0%, 98%);
18
- }
19
-
20
- .ck .ck-uploadcare-form {
21
- max-width: 100%;
22
- width: var(--ck-uploadcare-form-view-width);
23
-
24
- .ck-uploadcare-form__loading {
25
- .ck-uploadcare-form__loading-spinner {
26
- width: 100%;
27
- height: var(--ck-uploadcare-external-source-view-height);
28
- background-color: var(--ck-uploadcare-color-image-background);
29
-
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- flex-direction: column;
34
-
35
- .ck-spinner-container {
36
- margin-bottom: 10px;
37
- }
38
- }
39
- }
40
-
41
- .ck-uploadcare-form__error {
42
- .ck-uploadcare-form__error-contents {
43
- width: 100%;
44
- height: var(--ck-uploadcare-external-source-view-height);
45
- background-color: var(--ck-uploadcare-color-image-background);
46
-
47
- display: flex;
48
- align-items: center;
49
- justify-content: center;
50
- flex-direction: column;
51
- gap: 5px;
52
-
53
- h3 {
54
- font-weight: 700;
55
- padding: 0;
56
- margin: 0;
57
- }
58
-
59
- .ck-icon {
60
- color: var(--ck-uploadcare-color-icon-error);
61
- }
62
-
63
- .ck-button {
64
- margin-top: 10px;
65
- }
66
- }
67
- }
68
-
69
- .ck-uploadcare-form__skeleton {
70
- width: 100%;
71
- height: 115px;
72
-
73
- div {
74
- height: 50%;
75
- display: flex;
76
- box-sizing: border-box;
77
- min-width: 100%;
78
- flex-direction: row;
79
- justify-content: center;
80
- align-items: center;
81
-
82
- span {
83
- display: block;
84
- width: 32px;
85
- height: 32px;
86
- background-color: var(--ck-uploadcare-color-skeleton);
87
- }
88
- }
89
-
90
- div + div {
91
- gap: 20px;
92
-
93
- span:first-child {
94
- position: absolute;
95
- left: 8px;
96
- width: 80px;
97
- }
98
-
99
- span:last-child {
100
- position: absolute;
101
- right: 8px;
102
- width: 80px;
103
- }
104
- }
105
-
106
- div:first-child {
107
- gap: 4px;
108
- }
109
- }
110
-
111
- /* The following styles overrides the default Uploadcare styles */
112
-
113
- /* stylelint-disable selector-type-no-unknown */
114
- .mini-btn {
115
- display: none;
116
- }
117
-
118
- .uc-viewport {
119
- height: var(--ck-uploadcare-external-source-view-height);
120
- }
121
-
122
- uc-btn-ui button, .uc-primary-btn, .uc-secondary-btn {
123
- padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);
124
- min-width: var(--ck-ui-component-min-height);
125
- min-height: var(--ck-ui-component-min-height);
126
- }
127
-
128
- .uc-primary-btn, uc-btn-ui.uc-primary button {
129
- @mixin ck-button-colors --ck-color-button-action;
130
- }
131
-
132
- .uc-secondary-btn, uc-btn-ui.uc-secondary button {
133
- @mixin ck-button-colors --ck-color-button-default;
134
- }
135
-
136
- uc-upload-list {
137
- & .uc-toolbar {
138
- gap: var(--ck-spacing-large);
139
-
140
- }
141
-
142
- & .uc-files {
143
- padding-top: var(--ck-spacing-large);
144
- max-height: var(--ck-uploadcare-external-source-view-height);
145
- overflow-y: auto;
146
- }
147
- }
148
-
149
- .uc-content {
150
- padding: var(--ck-spacing-large);
151
- gap: var(--ck-spacing-large);
152
-
153
- & > .uc-iframe-wrapper {
154
- height: var(--ck-uploadcare-external-source-view-height);
155
- }
156
-
157
- & > .uc-toolbar {
158
- padding: var(--ck-spacing-large) 0 0;
159
- }
160
- }
161
-
162
- uc-start-from {
163
- & .uc-content {
164
- gap: 0;
165
- }
166
- }
167
-
168
- uc-file-item {
169
- & > .uc-inner {
170
- font-size: 1em;
171
- }
172
-
173
-
174
- & > .uc-inner:where([finished]) .uc-badge {
175
- background: var(--ck-color-button-action-active-background);
176
- }
177
- }
178
-
179
- uc-external-source .uc-cancel-btn {
180
- visibility: hidden;
181
- pointer-events: none;
182
- }
183
-
184
- uc-activity-header {
185
- display: none;
186
- }
187
-
188
- uc-source-list {
189
- display: none;
190
- }
191
-
192
- uc-cloud-image-editor-block {
193
- [icon="closeMax"] .uc-icon_left {
194
- transform: rotate(90deg);
195
- }
196
- }
197
- /* stylelint-enable selector-type-no-unknown */
198
- }
@@ -1,20 +0,0 @@
1
- /*
2
- * What you're currently looking at is the source code of a legally protected, proprietary software.
3
- * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
- * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
- *
6
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
-
10
- .ck-uploadcare-theme {
11
- --uc-font-size: 13px; /* --ck-font-size-base */
12
- --uc-radius: 2px; /* --ck-border-radius */
13
- --uc-padding: calc(0.6em * 1.5); /* --ck-spacing-large */
14
-
15
- --uc-primary-oklch-light: 54.45% 0.182 263.76;
16
- --uc-foreground-light: hsl(0, 0%, 20%); /* --ck-color-text */
17
- --uc-secondary-foreground-light: hsl(0, 0%, 20%); /* --ck-color-text */
18
- --uc-muted-foreground-light: hsl(0, 0%, 20%); /* --ck-color-text */
19
- --uc-border-light: hsl(220, 6%, 81%); /* --ck-color-base-border */
20
- }
@@ -1,64 +0,0 @@
1
- /*
2
- * What you're currently looking at is the source code of a legally protected, proprietary software.
3
- * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
- * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
- *
6
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
-
10
- :root {
11
- --ck-image-processing-highlight-color: hsl(220, 10%, 98%);
12
- --ck-image-processing-background-color: hsl(220, 10%, 90%);
13
- }
14
-
15
- .ck.ck-editor__editable {
16
- & .image, & .image-inline {
17
- &.image-processing picture {
18
- position: relative;
19
- display: block;
20
- width: 100%;
21
- height: 100%;
22
-
23
- &:before {
24
- content: '';
25
-
26
- position: absolute;
27
- top: 0;
28
- left: 0;
29
- z-index: 1;
30
-
31
- height: 100%;
32
- width: 100%;
33
-
34
- background: linear-gradient(
35
- 90deg,
36
- var(--ck-image-processing-background-color),
37
- var(--ck-image-processing-highlight-color),
38
- var(--ck-image-processing-background-color)
39
- );
40
- background-size: 200% 100%;
41
-
42
- animation: ck-image-processing-animation 2s linear infinite;
43
- }
44
-
45
- & img {
46
- height: 100%;
47
- }
48
- }
49
-
50
- &.image-processing-blur {
51
- clip-path: inset(0);
52
- filter: blur(1.6rem);
53
- }
54
- }
55
- }
56
-
57
- @keyframes ck-image-processing-animation {
58
- 0% {
59
- background-position: 200% 0;
60
- }
61
- 100% {
62
- background-position: -200% 0;
63
- }
64
- }