@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251210.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 +6 -0
- package/LICENSE.md +22 -0
- package/README.md +47 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.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/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/build/uploadcare.js +5 -0
- package/ckeditor5-metadata.json +47 -0
- package/dist/index-content.css +5 -0
- package/dist/index-editor.css +265 -0
- package/dist/index.css +315 -0
- package/dist/index.js +25 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- 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/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- 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.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/lang/contexts.json +24 -0
- package/lang/translations/af.po +100 -0
- package/lang/translations/ar.po +100 -0
- package/lang/translations/ast.po +100 -0
- package/lang/translations/az.po +100 -0
- package/lang/translations/be.po +100 -0
- package/lang/translations/bg.po +100 -0
- package/lang/translations/bn.po +100 -0
- package/lang/translations/bs.po +100 -0
- package/lang/translations/ca.po +100 -0
- package/lang/translations/cs.po +100 -0
- package/lang/translations/da.po +100 -0
- package/lang/translations/de-ch.po +100 -0
- package/lang/translations/de.po +100 -0
- package/lang/translations/el.po +100 -0
- package/lang/translations/en-au.po +100 -0
- package/lang/translations/en-gb.po +100 -0
- package/lang/translations/en.po +100 -0
- package/lang/translations/eo.po +100 -0
- package/lang/translations/es-co.po +100 -0
- package/lang/translations/es.po +100 -0
- package/lang/translations/et.po +100 -0
- package/lang/translations/eu.po +100 -0
- package/lang/translations/fa.po +100 -0
- package/lang/translations/fi.po +100 -0
- package/lang/translations/fr.po +100 -0
- package/lang/translations/gl.po +100 -0
- package/lang/translations/gu.po +100 -0
- package/lang/translations/he.po +100 -0
- package/lang/translations/hi.po +100 -0
- package/lang/translations/hr.po +100 -0
- package/lang/translations/hu.po +100 -0
- package/lang/translations/hy.po +100 -0
- package/lang/translations/id.po +100 -0
- package/lang/translations/it.po +100 -0
- package/lang/translations/ja.po +100 -0
- package/lang/translations/jv.po +100 -0
- package/lang/translations/kk.po +100 -0
- package/lang/translations/km.po +100 -0
- package/lang/translations/kn.po +100 -0
- package/lang/translations/ko.po +100 -0
- package/lang/translations/ku.po +100 -0
- package/lang/translations/lt.po +100 -0
- package/lang/translations/lv.po +100 -0
- package/lang/translations/ms.po +100 -0
- package/lang/translations/nb.po +100 -0
- package/lang/translations/ne.po +100 -0
- package/lang/translations/nl.po +100 -0
- package/lang/translations/no.po +100 -0
- package/lang/translations/oc.po +100 -0
- package/lang/translations/pl.po +100 -0
- package/lang/translations/pt-br.po +100 -0
- package/lang/translations/pt.po +100 -0
- package/lang/translations/ro.po +100 -0
- package/lang/translations/ru.po +100 -0
- package/lang/translations/si.po +100 -0
- package/lang/translations/sk.po +100 -0
- package/lang/translations/sl.po +100 -0
- package/lang/translations/sq.po +100 -0
- package/lang/translations/sr-latn.po +100 -0
- package/lang/translations/sr.po +100 -0
- package/lang/translations/sv.po +100 -0
- package/lang/translations/th.po +100 -0
- package/lang/translations/ti.po +100 -0
- package/lang/translations/tk.po +100 -0
- package/lang/translations/tr.po +100 -0
- package/lang/translations/tt.po +100 -0
- package/lang/translations/ug.po +100 -0
- package/lang/translations/uk.po +100 -0
- package/lang/translations/ur.po +100 -0
- package/lang/translations/uz.po +100 -0
- package/lang/translations/vi.po +100 -0
- package/lang/translations/zh-cn.po +100 -0
- package/lang/translations/zh.po +100 -0
- package/package.json +81 -0
- package/src/augmentation.d.ts +30 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +23 -0
- package/src/ui/uploadcarecontroller.d.ts +26 -0
- package/src/ui/uploadcarecontroller.js +24 -0
- package/src/ui/uploadcareformview.d.ts +23 -0
- package/src/ui/uploadcareformview.js +23 -0
- package/src/uploadcare.d.ts +48 -0
- package/src/uploadcare.js +23 -0
- package/src/uploadcarecommand.d.ts +38 -0
- package/src/uploadcarecommand.js +23 -0
- package/src/uploadcareconfig.d.ts +280 -0
- package/src/uploadcareconfig.js +23 -0
- package/src/uploadcareediting.d.ts +59 -0
- package/src/uploadcareediting.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +78 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +25 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +24 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +24 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +32 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +49 -0
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +38 -0
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +47 -0
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +23 -0
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/src/uploadcareimageedit.d.ts +32 -0
- package/src/uploadcareimageedit.js +23 -0
- package/src/uploadcareui.d.ts +41 -0
- package/src/uploadcareui.js +23 -0
- package/src/uploadcareuploadadapter.d.ts +39 -0
- package/src/uploadcareuploadadapter.js +23 -0
- package/src/utils/common-translations.d.ts +5 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils/dialogfocusmanagerview.d.ts +29 -0
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/src/utils/editingutils.d.ts +5 -0
- package/src/utils/editingutils.js +23 -0
- package/src/utils/isancestor.d.ts +8 -0
- package/src/utils/isancestor.js +23 -0
- package/src/utils/uploadutils.d.ts +5 -0
- package/src/utils/uploadutils.js +23 -0
- package/theme/uploadcare-form.css +198 -0
- package/theme/uploadcare-theme.css +20 -0
- package/theme/uploadcareimageedit.css +64 -0
|
@@ -0,0 +1,41 @@
|
|
|
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/uploadcareui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import '@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';
|
|
11
|
+
import '../theme/uploadcare-theme.css';
|
|
12
|
+
import '../theme/uploadcareimageedit.css';
|
|
13
|
+
/**
|
|
14
|
+
* The UI plugin of the AI assistant.
|
|
15
|
+
*/
|
|
16
|
+
export declare class UploadcareUI extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "UploadcareUI";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get isOfficialPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isPremiumPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
init(): void;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
afterInit(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
destroy(): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x59b0(){const _0x17e311=['isImageSelected','Dropbox','uploadcareLicenseKeyExpired','1967NEWkAp','tooltip','commands','uploadcare','upload','_createButton','locale','evaluationLimit','editor','invalid','3299660TUVkwT','afterInit','1114658oJYpKN','destroy','assetManager','get','3IzxXGn','_createMenuBarButtons','reduce','uploadcareLicenseKeyValid','uploadcareLicenseKeyDomainLimit','type','35961497iCUsXG','OneDrive','uploadcareLicenseKeyEvaluationLimit','icon','execute','forEach','_createDropdownButtons','plugins','isEnabled','trialLimit','URL','licenseKey','3310nRKuQP','_getIntegrationKey','url','push','isPremiumPlugin','expired','uploadcareLicenseKeyUsageLimit','usageLimit','domainLimit','uploadcare.uploader.sourceList','isOfficialPlugin','Facebook','label','uploadcareLicenseKeyNotAllowed','Insert','GDrive','map','entries','bind','shortText','699184yQACVP','registerIntegration','_licenseKeyCheckInterval','withText','Uploadcare','ImageInsertUI','_showLicenseError','UploadcareUI','_createToolbarButton','init','has','27654HiaGJH','uploadcareLicenseKeyTrialLimit','Local','uploadcareLicenseKeyInvalid','text','_normalizeConfigSourceList','Replace','pluginName','1114964cAFQuO','featureNotAllowed','config','4388iAMtzg','9rfzQCK','GPhotos'];_0x59b0=function(){return _0x17e311;};return _0x59b0();}function _0x18e6(_0x3c60eb,_0x3ee4a0){const _0x59b00e=_0x59b0();return _0x18e6=function(_0x18e607,_0x260dab){_0x18e607=_0x18e607-0xdb;let _0x3f4b42=_0x59b00e[_0x18e607];return _0x3f4b42;},_0x18e6(_0x3c60eb,_0x3ee4a0);}const _0x498285=_0x18e6;(function(_0x4a557d,_0x1889e1){const _0x18ddd0=_0x18e6,_0x13ec9b=_0x4a557d();while(!![]){try{const _0x396cc3=-parseInt(_0x18ddd0(0x107))/0x1+parseInt(_0x18ddd0(0x11c))/0x2*(parseInt(_0x18ddd0(0x120))/0x3)+-parseInt(_0x18ddd0(0x10a))/0x4*(parseInt(_0x18ddd0(0xe0))/0x5)+parseInt(_0x18ddd0(0xff))/0x6*(-parseInt(_0x18ddd0(0x110))/0x7)+-parseInt(_0x18ddd0(0xf4))/0x8+-parseInt(_0x18ddd0(0x10b))/0x9*(-parseInt(_0x18ddd0(0x11a))/0xa)+parseInt(_0x18ddd0(0x126))/0xb;if(_0x396cc3===_0x1889e1)break;else _0x13ec9b['push'](_0x13ec9b['shift']());}catch(_0x511efc){_0x13ec9b['push'](_0x13ec9b['shift']());}}}(_0x59b0,0xe3bd1));import{Plugin as _0x171386}from'ckeditor5/src/core.js';import{IconDropbox as _0x18bea4,IconFacebook as _0x2abaa4,IconGoogleDrive as _0x4d1620,IconGooglePhotos as _0x293c3c,IconUploadcareImageUpload as _0x304451,IconUploadcareLink as _0x500230,IconOneDrive as _0x3aaea2}from'ckeditor5/src/icons.js';import{ButtonView as _0x51d846,MenuBarMenuListItemButtonView as _0x3b6556}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3fb9d7}from'./uploadcareconfig.js';import{getTranslation as _0x9d175f}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x171386{[_0x498285(0xdf)];[_0x498285(0xf6)];static get[_0x498285(0x106)](){const _0x337192=_0x498285;return _0x337192(0xfb);}static get[_0x498285(0xea)](){return!0x0;}static get[_0x498285(0xe4)](){return!0x0;}[_0x498285(0xfd)](){const _0x5d88aa=_0x498285;this[_0x5d88aa(0xdf)]=this[_0x5d88aa(0x118)][_0x5d88aa(0x109)][_0x5d88aa(0x11f)](_0x5d88aa(0xdf));const _0x37c153=this[_0x5d88aa(0x118)];this[_0x5d88aa(0xf6)]=setInterval(()=>{const _0x48c174=_0x5d88aa;let _0x5759b6;for(const _0x5235c0 in _0x37c153){const _0x5859b9=_0x5235c0,_0x15b13a=_0x37c153[_0x5859b9];if(_0x48c174(0x123)==_0x15b13a||_0x48c174(0x102)==_0x15b13a||_0x48c174(0x10f)==_0x15b13a||_0x48c174(0x124)==_0x15b13a||_0x48c174(0xed)==_0x15b13a||_0x48c174(0x128)==_0x15b13a||_0x48c174(0x100)==_0x15b13a||_0x48c174(0xe6)==_0x15b13a){delete _0x37c153[_0x5859b9],_0x5759b6=_0x15b13a,clearInterval(this[_0x48c174(0xf6)]),this[_0x48c174(0xf6)]=void 0x0;break;}}_0x48c174(0x102)==_0x5759b6&&_0x37c153[_0x48c174(0xfa)](_0x48c174(0x119)),_0x48c174(0x10f)==_0x5759b6&&_0x37c153[_0x48c174(0xfa)](_0x48c174(0xe5)),_0x48c174(0x124)==_0x5759b6&&_0x37c153[_0x48c174(0xfa)](_0x48c174(0xe8)),_0x48c174(0xed)==_0x5759b6&&_0x37c153[_0x48c174(0xfa)](_0x48c174(0x108),_0x48c174(0xf8)),_0x48c174(0x128)==_0x5759b6&&_0x37c153[_0x48c174(0xfa)](_0x48c174(0x117)),_0x48c174(0x100)==_0x5759b6&&_0x37c153[_0x48c174(0xfa)](_0x48c174(0xdd)),_0x48c174(0xe6)==_0x5759b6&&_0x37c153[_0x48c174(0xfa)](_0x48c174(0xe7));},0x3e8);}[_0x498285(0x11b)](){const _0x1d396a=_0x498285,{editor:_0x8cd980}=this,_0x38e0a2=_0x8cd980[_0x1d396a(0x112)][_0x1d396a(0x11f)](_0x1d396a(0x113));if(!_0x38e0a2)return;const _0x5817d6=this[_0x1d396a(0x104)](_0x8cd980[_0x1d396a(0x109)][_0x1d396a(0x11f)](_0x1d396a(0xe9)))[_0x1d396a(0x122)]((_0x45004e,_0x7a6d8c)=>{const _0x22e6ec=_0x1d396a,_0x1abee8=this[_0x22e6ec(0xe1)](_0x7a6d8c[_0x22e6ec(0x125)]);return _0x45004e[_0x1abee8]||(_0x45004e[_0x1abee8]=[]),_0x45004e[_0x1abee8][_0x22e6ec(0xe3)](_0x7a6d8c),_0x45004e;},{});_0x8cd980[_0x1d396a(0xdb)][_0x1d396a(0xfe)](_0x1d396a(0xf9))&&_0x8cd980[_0x1d396a(0x112)][_0x1d396a(0x11f)](_0x1d396a(0x113))&&Object[_0x1d396a(0xf1)](_0x5817d6)[_0x1d396a(0x12b)](([_0xde21a3,_0x551d55])=>{const _0x217d41=_0x1d396a;_0x8cd980[_0x217d41(0xdb)][_0x217d41(0x11f)](_0x217d41(0xf9))[_0x217d41(0xf5)]({'name':_0xde21a3,'observable':()=>_0x38e0a2,'buttonViewCreator':()=>this[_0x217d41(0xfc)](_0x551d55),'formViewCreator':()=>this[_0x217d41(0x12c)](_0x551d55),'menuBarButtonViewCreator':()=>this[_0x217d41(0x121)](_0x551d55),'override':_0x217d41(0x11e)!==_0xde21a3});});}[_0x498285(0x11d)](){const _0x38ba36=_0x498285;super[_0x38ba36(0x11d)](),this[_0x38ba36(0xf6)]&&clearInterval(this[_0x38ba36(0xf6)]);}[_0x498285(0x104)](_0xbf8bb6){const _0x39aadb=_0x498285,{locale:_0x5058c3}=this[_0x39aadb(0x118)];return _0xbf8bb6[_0x39aadb(0xf0)](_0x4b0198=>{const _0x3b2e60=_0x39aadb,_0x361588=_0x9d175f(_0x5058c3,_0x4b0198,_0x3b2e60(0xee));switch(_0x4b0198){case _0x3fb9d7[_0x3b2e60(0x101)]:return{'icon':_0x304451,'type':_0x3fb9d7[_0x3b2e60(0x101)],..._0x361588};case _0x3fb9d7[_0x3b2e60(0xde)]:return{'icon':_0x500230,'type':_0x3fb9d7[_0x3b2e60(0xde)],..._0x361588};case _0x3fb9d7[_0x3b2e60(0x10e)]:return{'icon':_0x18bea4,'type':_0x3fb9d7[_0x3b2e60(0x10e)],..._0x361588};case _0x3fb9d7[_0x3b2e60(0xeb)]:return{'icon':_0x2abaa4,'type':_0x3fb9d7[_0x3b2e60(0xeb)],..._0x361588};case _0x3fb9d7[_0x3b2e60(0xef)]:return{'icon':_0x4d1620,'type':_0x3fb9d7[_0x3b2e60(0xef)],..._0x361588};case _0x3fb9d7[_0x3b2e60(0x10c)]:return{'icon':_0x293c3c,'type':_0x3fb9d7[_0x3b2e60(0x10c)],..._0x361588};case _0x3fb9d7[_0x3b2e60(0x127)]:return{'icon':_0x3aaea2,'type':_0x3fb9d7[_0x3b2e60(0x127)],..._0x361588};}});}[_0x498285(0xe1)](_0x4d9b3f){const _0x4396d7=_0x498285;switch(_0x4d9b3f){case _0x3fb9d7[_0x4396d7(0x101)]:return _0x4396d7(0x114);case _0x3fb9d7[_0x4396d7(0xde)]:return _0x4396d7(0xe2);default:return _0x4396d7(0x11e);}}[_0x498285(0x115)](_0x120957,_0xb8e6e1){const _0x4c9c9d=_0x498285,_0x4dc264=this[_0x4c9c9d(0x118)],_0x5d760e=new _0x120957(_0x4dc264[_0x4c9c9d(0x116)]),_0x327b4d=_0x4dc264[_0x4c9c9d(0x112)][_0x4c9c9d(0x11f)](_0x4c9c9d(0x113));return _0x5d760e[_0x4c9c9d(0xf2)](_0x4c9c9d(0xdc))['to'](_0x327b4d),_0x5d760e['on'](_0x4c9c9d(0x12a),()=>{const _0x4afe0d=_0x4c9c9d;_0x327b4d[_0x4afe0d(0x12a)](_0xb8e6e1);}),_0x5d760e;}[_0x498285(0xfc)](_0xe62fba){const _0x37fe6b=_0x498285,{locale:_0x1b5b05}=this[_0x37fe6b(0x118)],_0x221935=this[_0x37fe6b(0x118)][_0x37fe6b(0xdb)][_0x37fe6b(0x11f)](_0x37fe6b(0xf9)),_0x42a821=_0xe62fba[0x0],_0xe80b7c=this[_0x37fe6b(0x115)](_0x51d846,_0x42a821[_0x37fe6b(0x125)]);return _0xe80b7c[_0x37fe6b(0x129)]=_0x42a821[_0x37fe6b(0x129)],_0xe80b7c[_0x37fe6b(0xf2)](_0x37fe6b(0xec))['to'](_0x221935,_0x37fe6b(0x10d),_0x557bbc=>_0x9d175f(_0x1b5b05,_0x42a821[_0x37fe6b(0x125)],_0x557bbc?_0x37fe6b(0x105):_0x37fe6b(0xee))[_0x37fe6b(0x103)]),_0xe80b7c[_0x37fe6b(0x111)]=!0x0,_0xe80b7c;}[_0x498285(0x12c)](_0x1cda99){const _0x302536=_0x498285,{locale:_0x27ff72}=this[_0x302536(0x118)],_0x2f352c=this[_0x302536(0x118)][_0x302536(0xdb)][_0x302536(0x11f)](_0x302536(0xf9));return _0x1cda99[_0x302536(0xf0)](_0x4ed4b2=>{const _0x4e950a=_0x302536,_0x4422e0=this[_0x4e950a(0x115)](_0x51d846,_0x4ed4b2[_0x4e950a(0x125)]);return _0x4422e0[_0x4e950a(0xf7)]=!0x0,_0x4422e0[_0x4e950a(0x129)]=_0x4ed4b2[_0x4e950a(0x129)],_0x4422e0[_0x4e950a(0xf2)](_0x4e950a(0xec))['to'](_0x2f352c,_0x4e950a(0x10d),_0x3142dc=>_0x9d175f(_0x27ff72,_0x4ed4b2[_0x4e950a(0x125)],_0x3142dc?_0x4e950a(0x105):_0x4e950a(0xee))[_0x4e950a(0x103)]),_0x4422e0;});}[_0x498285(0x121)](_0x1922dc){const _0x5aff89=_0x498285;return _0x1922dc[_0x5aff89(0xf0)](_0x1c7ee5=>{const _0x5b6daf=_0x5aff89,_0x63c651=this[_0x5b6daf(0x115)](_0x3b6556,_0x1c7ee5[_0x5b6daf(0x125)]);return _0x63c651[_0x5b6daf(0x129)]=_0x1c7ee5[_0x5b6daf(0x129)],_0x63c651[_0x5b6daf(0xec)]=_0x1c7ee5[_0x5b6daf(0xf3)],_0x63c651;});}}
|
|
@@ -0,0 +1,39 @@
|
|
|
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/uploadcareuploadadapter
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { FileRepository } from 'ckeditor5/src/upload.js';
|
|
11
|
+
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
|
+
/**
|
|
13
|
+
* A plugin that enables file uploads in CKEditor 5 using the Uploadcare server–side connector.
|
|
14
|
+
*
|
|
15
|
+
* Check out the {@glink features/images/image-upload/image-upload Image upload overview} guide to learn about
|
|
16
|
+
* other ways to upload images into CKEditor 5.
|
|
17
|
+
*/
|
|
18
|
+
export declare class UploadcareUploadAdapter extends Plugin {
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get requires(): readonly ["ImageUploadEditing", "ImageUploadProgress", typeof FileRepository, typeof UploadcareEditing];
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "UploadcareUploadAdapter";
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get isOfficialPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static get isPremiumPlugin(): true;
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
afterInit(): Promise<void>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import{Plugin as _0x5c70a2}from'ckeditor5/src/core.js';import{FileRepository as _0x1a9f4e}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x428613}from'./uploadcareediting.js';import{UploadUtils as _0x2bff1d}from'./utils/uploadutils.js';import{getImageUrls as _0x310efe}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5c70a2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1a9f4e,_0x428613];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x349d62=this['editor'];if(!!!_0x349d62['config']['get']('uploadcare'))return;_0x349d62['plugins']['get'](_0x1a9f4e)['createUploadAdapter']=_0x10ee7b=>new k(_0x10ee7b,_0x349d62),_0x349d62['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x454610,{imageElement:_0x418fb9,data:_0x46395f})=>{_0x349d62['model']['change'](_0x2ec170=>{_0x2ec170['setAttribute']('uploadcareImageId',_0x46395f['uploadcareImageId'],_0x418fb9);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35c8b7,_0x150066){this['loader']=_0x35c8b7,this['editor']=_0x150066,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1dd291=await this['loader']['file'];return _0x2bff1d['upload']({'file':_0x1dd291,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4107fa=>{_0x4107fa&&_0x4107fa['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4107fa['value']);}})['then'](async _0xb973e7=>{const {imageFallbackUrl:_0x4406d8,imageSources:_0xebe408}=_0x310efe(_0xb973e7['cdnUrl'],_0xb973e7['imageInfo']['width']);return{'uploadcareImageId':_0xb973e7['uuid'],'default':_0x4406d8,'sources':_0xebe408};})['catch'](()=>{const _0x373ef2=t('Cannot\x20upload\x20file:')+('\x20'+_0x1dd291['name']+'.');return Promise['reject'](_0x373ef2);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import{UploadcareSource as _0x45addd}from'../uploadcareconfig.js';export function getTranslation(_0x25ae0b,_0x12a9c9,_0x46dc6d){const t=_0x25ae0b['t'],_0x58953b=_0x25ae0b['t'];switch(_0x12a9c9){case _0x45addd['Local']:return{'text':_0x58953b('Insert'===_0x46dc6d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x58953b('From\x20computer')};case _0x45addd['URL']:return{'text':'Insert'===_0x46dc6d?_0x58953b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x58953b('Via\x20URL')};case _0x45addd['Dropbox']:return{'text':t('Insert'===_0x46dc6d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x45addd['Facebook']:return{'text':t('Insert'===_0x46dc6d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x45addd['GDrive']:return{'text':t('Insert'===_0x46dc6d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x45addd['GPhotos']:return{'text':t('Insert'===_0x46dc6d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x45addd['OneDrive']:return{'text':t('Insert'===_0x46dc6d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12a9c9;}}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 declare 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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
var _0x5a6cc0=_0x5a05;(function(_0x4b548f,_0x42d5b6){var _0x3af68e=_0x5a05,_0x43c03c=_0x4b548f();while(!![]){try{var _0x3562be=-parseInt(_0x3af68e(0x8d))/0x1*(-parseInt(_0x3af68e(0x8c))/0x2)+-parseInt(_0x3af68e(0x8f))/0x3*(parseInt(_0x3af68e(0x88))/0x4)+-parseInt(_0x3af68e(0x91))/0x5*(parseInt(_0x3af68e(0x8e))/0x6)+-parseInt(_0x3af68e(0x93))/0x7*(parseInt(_0x3af68e(0x87))/0x8)+-parseInt(_0x3af68e(0x96))/0x9+-parseInt(_0x3af68e(0x92))/0xa+parseInt(_0x3af68e(0x8b))/0xb;if(_0x3562be===_0x42d5b6)break;else _0x43c03c['push'](_0x43c03c['shift']());}catch(_0xd149aa){_0x43c03c['push'](_0x43c03c['shift']());}}}(_0x202d,0xb4f4b));function _0x202d(){var _0x3018de=['bindTemplate','fire','60815799jAmPdA','2urlQJW','186441rSXweN','2292IvRQrX','2082315NgoKny','true','16495jbYBvQ','14788050KEtmVL','9372153JQnTQJ','focusCycler','div','1817532YhYOUR','createCollection','getFocusableElement','forwardCycle','focusTracker','8uayMPu','4SNwPRc'];_0x202d=function(){return _0x3018de;};return _0x202d();}import{FocusTracker as _0x51e12a}from'ckeditor5/src/utils.js';import{View as _0x291a10,FocusCycler as _0xf28c85}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5a05(_0x36c7e4,_0x323979){var _0x202d74=_0x202d();return _0x5a05=function(_0x5a05fc,_0x32b289){_0x5a05fc=_0x5a05fc-0x87;var _0x2f43c6=_0x202d74[_0x5a05fc];return _0x2f43c6;},_0x5a05(_0x36c7e4,_0x323979);}export class DialogFocusManagerView extends _0x291a10{[_0x5a6cc0(0x9a)];[_0x5a6cc0(0x94)];constructor(_0x40c23f){var _0x2e5f94=_0x5a6cc0;super(_0x40c23f),this[_0x2e5f94(0x9a)]=new _0x51e12a(),this[_0x2e5f94(0x94)]=new _0xf28c85({'focusables':this[_0x2e5f94(0x97)](),'focusTracker':this[_0x2e5f94(0x9a)]});}[_0x5a6cc0(0x98)](){var _0x19cc28=_0x5a6cc0;return{'tag':_0x19cc28(0x95),'attributes':{'aria-hidden':_0x19cc28(0x90),'tabindex':'0'},'on':{'focus':this[_0x19cc28(0x89)]['to'](()=>{var _0x476f6d=_0x19cc28;this[_0x476f6d(0x94)][_0x476f6d(0x8a)](_0x476f6d(0x99));})}};}}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x14d3(_0x3e29d1,_0xb84adb){const _0x478b00=_0x478b();return _0x14d3=function(_0x14d313,_0x2b57b4){_0x14d313=_0x14d313-0xce;let _0x5cb981=_0x478b00[_0x14d313];return _0x5cb981;},_0x14d3(_0x3e29d1,_0xb84adb);}(function(_0x1dbf22,_0x37a2d5){const _0x4f020d=_0x14d3,_0x3b44a3=_0x1dbf22();while(!![]){try{const _0x225f99=parseInt(_0x4f020d(0xec))/0x1+-parseInt(_0x4f020d(0xda))/0x2+parseInt(_0x4f020d(0x100))/0x3*(parseInt(_0x4f020d(0x103))/0x4)+-parseInt(_0x4f020d(0x102))/0x5+-parseInt(_0x4f020d(0xdf))/0x6*(parseInt(_0x4f020d(0x106))/0x7)+-parseInt(_0x4f020d(0xfb))/0x8+-parseInt(_0x4f020d(0xd0))/0x9*(-parseInt(_0x4f020d(0xe0))/0xa);if(_0x225f99===_0x37a2d5)break;else _0x3b44a3['push'](_0x3b44a3['shift']());}catch(_0x1e301d){_0x3b44a3['push'](_0x3b44a3['shift']());}}}(_0x478b,0x207a1));import{global as _0x534f7b,DomEmitterMixin as _0x548996}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x4e5370){const _0x7b6198=_0x14d3,_0x299eea=G(_0x4e5370);return _0x29f749=>!(!_0x29f749||!_0x29f749['is'](_0x7b6198(0xcf),_0x7b6198(0xe3))&&!_0x29f749['is'](_0x7b6198(0xcf),_0x7b6198(0xf1)))&&(!!_0x29f749[_0x7b6198(0xeb)](_0x7b6198(0xdb))||!!_0x29f749[_0x7b6198(0xeb)](_0x7b6198(0xe4))&&_0x299eea(_0x29f749[_0x7b6198(0xe1)](_0x7b6198(0xe4))));}function _0x478b(){const _0x57cdb8=['domConverter','document','/-/resize/','match','map','change','width','292024IhwCrX','uploadcareImageId','function','mapper','aspect-ratio','1170IZrHyB','950ksBhvm','getAttribute','listenTo','imageBlock','src','toViewElement','baseURI','window','location','image/webp','load','hasAttribute','199402WTxdLv','removeStyle','image-processing','(max-width:\x20','stopListening','imageInline','isArray','get','findViewImgElement','viewToDom','plugins','px)\x20100vw,\x20','setStyle','x/\x20','view','707128RPdDWv','editing','ImageUtils','join','addClass','223959WanCwL','removeClass','642115CwBBIK','12fLRClb','replace','height','5845mtUTTA','origin','element','22293Nxgmxi','filter','some'];_0x478b=function(){return _0x57cdb8;};return _0x478b();}export function getImageUrls(_0x584e41,_0x467496){const _0x27e71a=_0x14d3,_0x2cb9d1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x27e71a(0xd1)](_0x1d7885=>_0x1d7885<=_0x467496)[_0x27e71a(0xd7)](_0x2a9344=>_0x584e41[_0x27e71a(0x104)](/\/$/,'')+_0x27e71a(0xd5)+_0x2a9344+_0x27e71a(0xf9)+_0x2a9344+'w');return{'imageFallbackUrl':_0x584e41,'imageSources':[{'srcset':_0x2cb9d1[_0x27e71a(0xfe)](',\x20'),'sizes':_0x27e71a(0xef)+_0x467496+_0x27e71a(0xf7)+_0x467496+'px','type':_0x27e71a(0xe9)}]};}export function getImageDimension(_0x157584,_0x2339d8,_0x366006){const _0x44d926=_0x14d3,_0x432826=_0x157584[_0x44d926(0xd6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x432826?parseInt(_0x432826[0x1],0xa):_0x2339d8,'height':_0x432826?parseInt(_0x432826[0x2],0xa):_0x366006};}export function showImageProcessingIndicator(_0x51bbf4,_0x65f1a2){const _0x3a3173=_0x14d3,_0x1f1dde=new(_0x548996())(),_0x4e42e7=_0x51bbf4[_0x3a3173(0xf6)][_0x3a3173(0xf3)](_0x3a3173(0xfd)),_0x5eba80=_0x51bbf4[_0x3a3173(0xfc)][_0x3a3173(0xdd)][_0x3a3173(0xe5)](_0x65f1a2),_0x25815c=_0x4e42e7[_0x3a3173(0xf4)](_0x5eba80),_0x5a6889=_0x51bbf4[_0x3a3173(0xfc)][_0x3a3173(0xfa)][_0x3a3173(0xd3)][_0x3a3173(0xf5)](_0x25815c),_0x41a8f0=_0x65f1a2[_0x3a3173(0xe1)](_0x3a3173(0xd9)),_0x2dd437=_0x65f1a2[_0x3a3173(0xe1)](_0x3a3173(0x105)),_0x366466=_0x3a3173(0xee);_0x51bbf4[_0x3a3173(0xfc)][_0x3a3173(0xfa)][_0x3a3173(0xd8)](_0x403029=>{const _0x32d452=_0x3a3173;_0x403029[_0x32d452(0xff)](_0x366466,_0x5eba80),_0x403029[_0x32d452(0xf8)](_0x32d452(0xde),_0x41a8f0+'/'+_0x2dd437,_0x25815c);}),_0x1f1dde[_0x3a3173(0xe2)](_0x5a6889,_0x3a3173(0xea),()=>{const _0x117c1f=_0x3a3173;_0x1f1dde[_0x117c1f(0xf0)](_0x5a6889,_0x117c1f(0xea)),_0x51bbf4[_0x117c1f(0xfc)][_0x117c1f(0xfa)][_0x117c1f(0xd8)](_0x5ecee0=>{const _0x58801b=_0x117c1f;_0x5ecee0[_0x58801b(0x101)](_0x366466,_0x5eba80),_0x5ecee0[_0x58801b(0xed)](_0x58801b(0xde),_0x25815c);});});}function G(_0x1ee9c3){const _0x4aa137=_0x14d3;if(Array[_0x4aa137(0xf2)](_0x1ee9c3)){const _0x1d756c=_0x1ee9c3[_0x4aa137(0xd7)](G);return _0x55ab4f=>_0x1d756c[_0x4aa137(0xd2)](_0x3706d8=>_0x3706d8(_0x55ab4f));}if(_0x4aa137(0xce)==_0x1ee9c3){const _0x14aa0e=_0x534f7b[_0x4aa137(0xe7)][_0x4aa137(0xe8)][_0x4aa137(0xce)];return _0x12712c=>new URL(_0x12712c,_0x534f7b[_0x4aa137(0xd4)][_0x4aa137(0xe6)])[_0x4aa137(0xce)]==_0x14aa0e;}return _0x4aa137(0xdc)==typeof _0x1ee9c3?_0x1ee9c3:_0x1ee9c3 instanceof RegExp?_0x44e6f4=>!(!_0x44e6f4[_0x4aa137(0xd6)](_0x1ee9c3)&&!_0x44e6f4[_0x4aa137(0x104)](/^https?:\/\//,'')[_0x4aa137(0xd6)](_0x1ee9c3)):()=>!0x1;}
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x4f7c(_0x1290af,_0x57b6b1){var _0x23fea8=_0x23fe();return _0x4f7c=function(_0x4f7c42,_0x3bb4a3){_0x4f7c42=_0x4f7c42-0x151;var _0x12ca18=_0x23fea8[_0x4f7c42];return _0x12ca18;},_0x4f7c(_0x1290af,_0x57b6b1);}(function(_0x3355ea,_0x46d370){var _0x147f4e=_0x4f7c,_0x60bd7c=_0x3355ea();while(!![]){try{var _0x3f5473=parseInt(_0x147f4e(0x151))/0x1+parseInt(_0x147f4e(0x157))/0x2+-parseInt(_0x147f4e(0x156))/0x3+parseInt(_0x147f4e(0x158))/0x4+-parseInt(_0x147f4e(0x15a))/0x5+parseInt(_0x147f4e(0x155))/0x6+-parseInt(_0x147f4e(0x153))/0x7*(parseInt(_0x147f4e(0x159))/0x8);if(_0x3f5473===_0x46d370)break;else _0x60bd7c['push'](_0x60bd7c['shift']());}catch(_0x30f6c4){_0x60bd7c['push'](_0x60bd7c['shift']());}}}(_0x23fe,0x3c4c5));function _0x23fe(){var _0x22ee15=['519268bWVlSk','1201784AqFndF','25672pjHvFg','2113000RASpGN','448948bbiGGx','includes','1134eMQAvb','target','2846172HQUeib','881853ogPYEl'];_0x23fe=function(){return _0x22ee15;};return _0x23fe();}import{getAncestors as _0x2e5c6a}from'ckeditor5/src/utils.js';export function isAncestor(_0x2daf3c,_0x5ae5c9){var _0x4bb397=_0x4f7c;return _0x2e5c6a(_0x2daf3c[_0x4bb397(0x154)])[_0x4bb397(0x152)](_0x5ae5c9);}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
var _0x565111=_0x1cab;(function(_0x136562,_0x48fa9d){var _0x77fd8f=_0x1cab,_0x4298d2=_0x136562();while(!![]){try{var _0x4f6727=-parseInt(_0x77fd8f(0x92))/0x1*(-parseInt(_0x77fd8f(0x90))/0x2)+-parseInt(_0x77fd8f(0x96))/0x3+-parseInt(_0x77fd8f(0x95))/0x4*(parseInt(_0x77fd8f(0x8e))/0x5)+-parseInt(_0x77fd8f(0x8f))/0x6+-parseInt(_0x77fd8f(0x91))/0x7+-parseInt(_0x77fd8f(0x94))/0x8+parseInt(_0x77fd8f(0x93))/0x9*(parseInt(_0x77fd8f(0x8c))/0xa);if(_0x4f6727===_0x48fa9d)break;else _0x4298d2['push'](_0x4298d2['shift']());}catch(_0x4bb75d){_0x4298d2['push'](_0x4298d2['shift']());}}}(_0x27e0,0x3cb91));import{uploadFile as _0x39a58d,info as _0xa34ad5}from'@uploadcare/upload-client';function _0x1cab(_0xfa08ef,_0x1d897c){var _0x27e0be=_0x27e0();return _0x1cab=function(_0x1cab88,_0x73f3a2){_0x1cab88=_0x1cab88-0x8c;var _0x57eaff=_0x27e0be[_0x1cab88];return _0x57eaff;},_0x1cab(_0xfa08ef,_0x1d897c);}export class UploadUtils{static[_0x565111(0x97)]({file:_0x14ec8b,..._0x51ab97}){return _0x39a58d(_0x14ec8b,_0x51ab97);}static[_0x565111(0x8d)](_0x513019,_0x2e3190){return _0xa34ad5(_0x513019,_0x2e3190);}}function _0x27e0(){var _0x1fa6aa=['getInfo','5105GcLEFC','2718870yaoIch','104014jieJsO','1920835mdEvGf','3uzyCbz','1935QwTSnZ','1385920YsUfVN','1708ldvamc','76344OIeQgq','upload','67670dJwQZw'];_0x27e0=function(){return _0x1fa6aa;};return _0x27e0();}
|
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
}
|