@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,24 @@
|
|
|
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{global as _0x4d3358,ObservableMixin as _0x5710d2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3c678a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x19cd74}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2af57d}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x27f3c1}from'../../utils/uploadutils.js';import{getImageUrls as _0x4ac3d0,getImageDimension as _0x41b8f6}from'../../utils/editingutils.js';import{isAncestor as _0x5e3362}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5710d2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x38042e,_0x40f14d,_0x22ab2b){super(),this['_editor']=_0x38042e,this['_dialog']=_0x40f14d,this['_imageElement']=_0x22ab2b,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x499a33=this['_imageElement'],_0x5678bf=_0x499a33['getAttribute']('uploadcareImageId'),_0x417d11=_0x499a33['getAttribute']('src');if(_0x5678bf)await this['_loadImageInfo'](_0x5678bf,_0x417d11);else{if(this['_imageCache']['has'](_0x417d11)){const _0x48a86c=this['_imageCache']['get'](_0x417d11);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48a86c['url'],this['imageDimension']=_0x48a86c['dimension'],this['imageId']=_0x48a86c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x18dc88}=this['_editor'],t=_0x18dc88['t'],_0x3c8228=new _0x2af57d(_0x18dc88,this['imageStatus'],this['_attributes']);_0x3c8228['bind']('status')['to'](this,'imageStatus'),_0x3c8228['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c8228['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c8228['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c8228,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x19cd74,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c8228,'position':_0x3c678a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c8228['focus']();},'onHide':()=>{_0x3c8228['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49c2e8=>!_0x5e3362(_0x49c2e8,_0x3c8228['element'])}});}['_loadImageInfo'](_0xc5af2b,_0x82b9a){return _0x27f3c1['getInfo'](_0xc5af2b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x57ec2e=>{const {width:_0x2c5d3d,height:_0x318d5a}=_0x57ec2e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x82b9a,this['imageDimension']={'width':_0x2c5d3d,'height':_0x318d5a},this['imageId']=_0xc5af2b;})['catch'](_0x3712bd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3712bd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b9092,_0xa482ee){return this['_getImageAsFile'](_0x4b9092)['then'](_0xc31fad=>_0x27f3c1['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xa482ee['signal'],'file':_0xc31fad,'onProgress':_0x136fdb=>{_0x136fdb&&_0x136fdb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x136fdb['value']));}}))['then'](_0x5ced7a=>{const {width:_0x5d47ec,height:_0x41c0a1}=_0x5ced7a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ced7a['cdnUrl'],this['imageDimension']={'width':_0x5d47ec,'height':_0x41c0a1},this['imageId']=_0x5ced7a['uuid'],this['imageUploadProgress']=null;const _0x14baaf=_0x4b9092['getAttribute']('src');this['_imageCache']['set'](_0x14baaf,{'id':_0x5ced7a['uuid'],'url':_0x5ced7a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x43bb7a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43bb7a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x408dad,_0x5b764f){_0x408dad['on']('apply',(_0x429d2b,_0x2a5dd0)=>{this['_replaceImage'](_0x5b764f,_0x2a5dd0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x408dad['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x408dad['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x7daba7,_0x223c7a,_0x1105b4){const _0x298bc0=this['_editor'],{width:_0x5edf4c,height:_0x5951af}=_0x41b8f6(_0x223c7a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x452d76,imageSources:_0x571316}=_0x4ac3d0(_0x223c7a,_0x5edf4c);_0x298bc0['model']['change'](_0x296969=>{if('$graveyard'===_0x7daba7['root']['rootName']){_0x298bc0['execute']('insertImage',{'imageType':_0x7daba7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x7daba7['getAttributes']()),'uploadcareImageId':_0x1105b4,'src':_0x452d76,'sources':_0x571316,'width':_0x5edf4c,'height':_0x5951af}});const _0x199cb2=_0x7daba7['getChildren']();_0x7daba7=_0x298bc0['model']['document']['selection']['getSelectedElement']();for(const _0x3a656c of _0x199cb2)_0x296969['append'](_0x296969['cloneElement'](_0x3a656c),_0x7daba7);}else _0x296969['setSelection'](_0x7daba7,'on'),_0x298bc0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x7daba7['getAttributes']()),'uploadcareImageId':_0x1105b4,'src':_0x452d76,'sources':_0x571316,'width':_0x5edf4c,'height':_0x5951af},_0x7daba7);_0x296969['setSelection'](_0x7daba7,'on');});}async['_getImageAsFile'](_0x45fe49){const _0x5ebb24=_0x4d3358['window'],_0x5ef8d2=_0x4d3358['document']['location']['href'],_0x1de2d2=new _0x5ebb24['URL'](_0x45fe49['getAttribute']('src'),_0x5ef8d2);if('data:'===_0x1de2d2['protocol']){const _0x40aad2=_0x1de2d2['href']['split'](','),_0x733c2a=_0x40aad2[0x0]['match'](/:(.*?);/)[0x1],_0x1f7f8b=_0x733c2a['split']('/')[0x1],_0x45d9be=_0x5ebb24['atob'](_0x40aad2[_0x40aad2['length']-0x1]);let _0x2fe89e=_0x45d9be['length'];const _0xa1eedf=new _0x5ebb24['Uint8Array'](_0x2fe89e);for(;_0x2fe89e--;)_0xa1eedf[_0x2fe89e]=_0x45d9be['charCodeAt'](_0x2fe89e);return new _0x5ebb24['File']([_0xa1eedf],'image.'+_0x1f7f8b,{'type':_0x733c2a});}const _0x5f5410=_0x1de2d2['href']['split']('/'),_0x557910=_0x5f5410[_0x5f5410['length']-0x1],_0x5820ef=_0x557910['split']('.')[0x1];return _0x5ebb24['fetch'](_0x1de2d2['href'])['then'](_0x1dd80a=>_0x1dd80a['clone']()['blob']())['then'](_0x37a848=>new _0x5ebb24['File']([_0x37a848],_0x557910,{'type':'image/'+_0x5820ef}));}}
|
|
@@ -0,0 +1,25 @@
|
|
|
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/uploadcareimageedit/ui/uploadcareimageeditformeditingview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
11
|
+
/**
|
|
12
|
+
* A class representing the form editing view of the Uploadcare image edit feature.
|
|
13
|
+
*/
|
|
14
|
+
export declare class UploadcareImageEditFormEditingView extends View {
|
|
15
|
+
/**
|
|
16
|
+
* Image source URL.
|
|
17
|
+
*
|
|
18
|
+
* @observable
|
|
19
|
+
*/
|
|
20
|
+
imageSrc: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
constructor(locale: Locale, attributes: UploadcareEditorConfig);
|
|
25
|
+
}
|
|
@@ -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 _0x3602(_0x542033,_0xe2dbfa){const _0x210dae=_0x210d();return _0x3602=function(_0x3602e2,_0x106db3){_0x3602e2=_0x3602e2-0x7c;let _0x1ea845=_0x210dae[_0x3602e2];return _0x1ea845;},_0x3602(_0x542033,_0xe2dbfa);}(function(_0x2dd62b,_0x1e2459){const _0x48a9d2=_0x3602,_0x26c79e=_0x2dd62b();while(!![]){try{const _0x2fcf67=-parseInt(_0x48a9d2(0x7c))/0x1*(-parseInt(_0x48a9d2(0x8b))/0x2)+-parseInt(_0x48a9d2(0x82))/0x3*(-parseInt(_0x48a9d2(0x8d))/0x4)+-parseInt(_0x48a9d2(0x7d))/0x5+parseInt(_0x48a9d2(0x85))/0x6+-parseInt(_0x48a9d2(0x88))/0x7*(parseInt(_0x48a9d2(0x87))/0x8)+-parseInt(_0x48a9d2(0x84))/0x9*(-parseInt(_0x48a9d2(0x80))/0xa)+-parseInt(_0x48a9d2(0x8a))/0xb;if(_0x2fcf67===_0x1e2459)break;else _0x26c79e['push'](_0x26c79e['shift']());}catch(_0x55e6e3){_0x26c79e['push'](_0x26c79e['shift']());}}}(_0x210d,0xcde47));import{View as _0xaa4ee7}from'ckeditor5/src/ui.js';function _0x210d(){const _0xe5c57f=['885672KzivTr','98ewjqjS','set','7034027XkNXoB','1388xAeeNU','imageSrc','3344936JJJGLv','bindTemplate','2027ldlsYk','8214945fkSKNF','uc-cloud-image-editor','ck-uploadcare-theme','135730IOeawA','uc-light','3yqsrWQ','setTemplate','873ZlbbAR','6696924BXzPrl','image-edit'];_0x210d=function(){return _0xe5c57f;};return _0x210d();}export class UploadcareImageEditFormEditingView extends _0xaa4ee7{constructor(_0x4f5db8,_0x18eef5){const _0x470615=_0x3602;super(_0x4f5db8);const _0x12b341=this[_0x470615(0x8e)];this[_0x470615(0x89)](_0x470615(0x8c),''),this[_0x470615(0x83)]({'tag':_0x470615(0x7e),'attributes':{..._0x18eef5,'class':[_0x470615(0x81),_0x470615(0x7f)],'ctx-name':_0x470615(0x86),'cdn-url':_0x12b341['to'](_0x470615(0x8c))}});}}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
|
+
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
8
|
+
/**
|
|
9
|
+
* A class representing the form error view of the Uploadcare image edit feature.
|
|
10
|
+
*/
|
|
11
|
+
export declare class UploadcareImageEditFormErrorView extends View {
|
|
12
|
+
/**
|
|
13
|
+
* The image upload error details.
|
|
14
|
+
*
|
|
15
|
+
* @observable
|
|
16
|
+
*/
|
|
17
|
+
errorType: UploadcareImageEditController['imageErrorType'];
|
|
18
|
+
/**
|
|
19
|
+
* Creates an instance of the UploadcareImageEditFormErrorView view.
|
|
20
|
+
*
|
|
21
|
+
* @fires retry
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale);
|
|
24
|
+
}
|
|
@@ -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{IconError as _0x8fe9a2}from'ckeditor5/src/icons.js';import{ButtonView as _0x946484,IconView as _0x402122,View as _0x1af2ee}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1af2ee{constructor(_0x2e247d){super(_0x2e247d);const t=_0x2e247d['t'];this['set']('errorType',null);const _0x3fa773=new _0x946484(_0x2e247d);_0x3fa773['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3fa773['withText']=!0x0,_0x3fa773['class']='ck-button-action',_0x3fa773['on']('execute',()=>{this['fire']('retry');}),_0x3fa773['bind']('isVisible')['to'](this,'errorType',_0x66ef98=>'NotFound'!==_0x66ef98);const _0x3aaa08=new _0x402122();_0x3aaa08['content']=_0x8fe9a2,_0x3aaa08['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x456a11=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x3aaa08,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x456a11['to']('errorType',_0x4c33c7=>t('NotFound'!==_0x4c33c7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3fa773]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -0,0 +1,24 @@
|
|
|
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/uploadcareimageedit/ui/uploadcareimageeditformloadingview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
/**
|
|
11
|
+
* A class representing the form loading view of the Uploadcare image edit feature.
|
|
12
|
+
*/
|
|
13
|
+
export declare class UploadcareImageEditFormLoadingView extends View {
|
|
14
|
+
/**
|
|
15
|
+
* The image upload progress.
|
|
16
|
+
*
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
imageUploadProgress: number | null;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale);
|
|
24
|
+
}
|
|
@@ -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{SpinnerView as _0x4421dc,View as _0x3cf0d8}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3cf0d8{constructor(_0x3508a7){super(_0x3508a7);const t=_0x3508a7['t'],_0xbe50a2=this['bindTemplate'],_0xca0784=new _0x4421dc();_0xca0784['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0xca0784,{'text':_0xbe50a2['to']('imageUploadProgress',_0x4f7f2c=>t('Loading\x20image...')+'\x20('+(_0x4f7f2c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -0,0 +1,32 @@
|
|
|
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/uploadcareimageedit/ui/uploadcareimageeditformview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
10
|
+
import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
|
|
11
|
+
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
12
|
+
import '../../../theme/uploadcare-form.css';
|
|
13
|
+
/**
|
|
14
|
+
* A class representing the form view of the Uploadcare image edit feature.
|
|
15
|
+
*/
|
|
16
|
+
export declare class UploadcareImageEditFormView extends DialogFocusManagerView {
|
|
17
|
+
/**
|
|
18
|
+
* Status of the image passed to the view;
|
|
19
|
+
*
|
|
20
|
+
* @observable
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
status: ThisType<UploadcareImageEditController['imageStatus']>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
constructor(locale: Locale, imageStatus: string, attributes: UploadcareEditorConfig);
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
focus(): void;
|
|
32
|
+
}
|
|
@@ -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 _0x5b5d(_0x13cdb8,_0x4fc6c7){const _0x26ed57=_0x26ed();return _0x5b5d=function(_0x5b5d82,_0x49af84){_0x5b5d82=_0x5b5d82-0x1bf;let _0x1dbefe=_0x26ed57[_0x5b5d82];return _0x1dbefe;},_0x5b5d(_0x13cdb8,_0x4fc6c7);}function _0x26ed(){const _0x5d825a=['_loadingView','detail','disconnect','_setView','7BxvNRG','ck-uploadcare-form','_addUploadcareImageEditorListeners','3105352rpsPRH','addMany','element','353997CuWhYs','getFocusableElement','ck-reset_all-excluded','querySelector','uc-cloud-image-editor','once','52OSUqUT','addEventListener','10959400rSvmNi','clear','838968QlaJNY','addedNodes','_editingView','300yvFHap','retry','_waitForImageEditorComponent','fire','cdnUrl','createCollection','error','set','uploading','nodeName','target','div','toLowerCase','17212CMnAeY','add','_focusableView','10715XYMSsO','render','_addErrorViewListeners','1442166HXFFXS','observe','filter','setTemplate','_errorView','_items','cancel','apply','ready','length','change:status','focus','status'];_0x26ed=function(){return _0x5d825a;};return _0x26ed();}const _0x30fb4d=_0x5b5d;(function(_0x42019e,_0x37f136){const _0x30c42a=_0x5b5d,_0xb68dac=_0x42019e();while(!![]){try{const _0xdb2ac3=parseInt(_0x30c42a(0x1f0))/0x1*(parseInt(_0x30c42a(0x1dc))/0x2)+parseInt(_0x30c42a(0x1bf))/0x3+-parseInt(_0x30c42a(0x1e3))/0x4*(-parseInt(_0x30c42a(0x1f3))/0x5)+-parseInt(_0x30c42a(0x1e0))/0x6+parseInt(_0x30c42a(0x1d0))/0x7*(parseInt(_0x30c42a(0x1d3))/0x8)+parseInt(_0x30c42a(0x1d6))/0x9+-parseInt(_0x30c42a(0x1de))/0xa;if(_0xdb2ac3===_0x37f136)break;else _0xb68dac['push'](_0xb68dac['shift']());}catch(_0x4463db){_0xb68dac['push'](_0xb68dac['shift']());}}}(_0x26ed,0x44875));import{View as _0x583abd}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x46d900}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x266ff5}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x59054b}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x524869}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x524869{[_0x30fb4d(0x1c4)];[_0x30fb4d(0x1cc)];[_0x30fb4d(0x1c3)];[_0x30fb4d(0x1e2)];[_0x30fb4d(0x1f2)];constructor(_0x5883c1,_0x12f9b9,_0x115879){const _0x5a0cab=_0x30fb4d;super(_0x5883c1),this[_0x5a0cab(0x1c4)]=this[_0x5a0cab(0x1e8)](),this[_0x5a0cab(0x1cc)]=new _0x46d900(_0x5883c1),this[_0x5a0cab(0x1c3)]=new _0x266ff5(_0x5883c1),this[_0x5a0cab(0x1e2)]=new _0x59054b(_0x5883c1,_0x115879),this[_0x5a0cab(0x1f2)]=new _0x583abd(_0x5883c1),this[_0x5a0cab(0x1f2)][_0x5a0cab(0x1c2)](this[_0x5a0cab(0x1d7)]()),this[_0x5a0cab(0x1ea)](_0x5a0cab(0x1cb),_0x12f9b9),this[_0x5a0cab(0x1c2)]({'tag':_0x5a0cab(0x1ee),'attributes':{'class':['ck',_0x5a0cab(0x1d8),_0x5a0cab(0x1d1)],'tabindex':'-1'},'children':this[_0x5a0cab(0x1c4)]}),this[_0x5a0cab(0x1cf)](),this[_0x5a0cab(0x1db)](_0x5a0cab(0x1f4),()=>{const _0x4d9f34=_0x5a0cab;this[_0x4d9f34(0x1e5)](this[_0x4d9f34(0x1d5)],_0x22c2e8=>{const _0x216071=_0x4d9f34;this[_0x216071(0x1d2)](_0x22c2e8);});}),this['on'](_0x5a0cab(0x1c9),()=>{const _0x5d40ed=_0x5a0cab;this[_0x5d40ed(0x1cf)]();}),this[_0x5a0cab(0x1f5)]();}[_0x30fb4d(0x1ca)](){const _0x2aec8a=_0x30fb4d;this[_0x2aec8a(0x1d5)][_0x2aec8a(0x1ca)]();}[_0x30fb4d(0x1cf)](){const _0x56f42a=_0x30fb4d;switch(this[_0x56f42a(0x1c4)][_0x56f42a(0x1df)](),this[_0x56f42a(0x1cb)]){case _0x56f42a(0x1eb):this[_0x56f42a(0x1c4)][_0x56f42a(0x1f1)](this[_0x56f42a(0x1cc)]);break;case _0x56f42a(0x1e9):this[_0x56f42a(0x1c4)][_0x56f42a(0x1f1)](this[_0x56f42a(0x1c3)]);break;case _0x56f42a(0x1c7):this[_0x56f42a(0x1c4)][_0x56f42a(0x1d4)]([this[_0x56f42a(0x1e2)],this[_0x56f42a(0x1f2)]]);}}[_0x30fb4d(0x1e5)](_0x5e4f38,_0x18ba41){const _0x359444=_0x30fb4d,_0xe49258=_0x359444(0x1da),_0x5ea182=_0x5e4f38[_0x359444(0x1d9)](_0xe49258);if(_0x5ea182)return _0x18ba41(_0x5ea182);const _0x1f96ee=new MutationObserver(_0x166e86=>{const _0x5ad9d6=_0x359444,_0x1a5e49=_0x166e86[_0x5ad9d6(0x1c1)](_0x29f3a3=>_0x29f3a3[_0x5ad9d6(0x1ed)]===_0x5e4f38&&_0x29f3a3[_0x5ad9d6(0x1e1)][_0x5ad9d6(0x1c8)]>0x0&&_0x29f3a3[_0x5ad9d6(0x1e1)][0x0][_0x5ad9d6(0x1ec)][_0x5ad9d6(0x1ef)]()===_0xe49258);_0x1a5e49[_0x5ad9d6(0x1c8)]&&(_0x1f96ee[_0x5ad9d6(0x1ce)](),_0x18ba41(_0x1a5e49[0x0][_0x5ad9d6(0x1e1)][0x0]));});_0x1f96ee[_0x359444(0x1c0)](_0x5e4f38,{'childList':!0x0,'subtree':!0x0});}[_0x30fb4d(0x1d2)](_0x3637d3){const _0x34ecbe=_0x30fb4d;_0x3637d3[_0x34ecbe(0x1dd)](_0x34ecbe(0x1c6),_0x74bcc2=>{const _0x5c443d=_0x34ecbe;this[_0x5c443d(0x1e6)](_0x5c443d(0x1c6),{'imageSrc':_0x74bcc2[_0x5c443d(0x1cd)][_0x5c443d(0x1e7)]});}),_0x3637d3[_0x34ecbe(0x1dd)](_0x34ecbe(0x1c5),()=>{const _0x5e0d23=_0x34ecbe;this[_0x5e0d23(0x1e6)](_0x5e0d23(0x1c5));});}[_0x30fb4d(0x1f5)](){const _0x2defd7=_0x30fb4d;this[_0x2defd7(0x1c3)]['on'](_0x2defd7(0x1e4),()=>{const _0x31b43b=_0x2defd7;this[_0x31b43b(0x1e6)](_0x31b43b(0x1e4));});}}
|
|
@@ -0,0 +1,49 @@
|
|
|
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/uploadcareimageedit/uploadcareimageeditcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { UploadcareImageEditController } from './ui/uploadcareimageeditcontroller.js';
|
|
12
|
+
/**
|
|
13
|
+
* The Uploadcare edit image command.
|
|
14
|
+
*
|
|
15
|
+
* It opens the Uploadcare dialog for editing the image.
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* editor.execute( 'uploadcareImageEdit' );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class UploadcareImageEditCommand extends Command {
|
|
22
|
+
/**
|
|
23
|
+
* Whenever the controller is active and dialog UI visible.
|
|
24
|
+
*
|
|
25
|
+
* @observable
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
isActive: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The Uploadcare image edit controller instance.
|
|
31
|
+
*/
|
|
32
|
+
imageEditController: UploadcareImageEditController | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
static get requires(): readonly [typeof Dialog];
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
constructor(editor: Editor);
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
refresh(): void;
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
execute(): void;
|
|
49
|
+
}
|
|
@@ -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
|
+
const _0x56ba18=_0x1343;(function(_0x363f03,_0x240e1e){const _0xf6d66a=_0x1343,_0x3961dd=_0x363f03();while(!![]){try{const _0x1b3e65=parseInt(_0xf6d66a(0x1fa))/0x1+-parseInt(_0xf6d66a(0x1f8))/0x2*(-parseInt(_0xf6d66a(0x1da))/0x3)+-parseInt(_0xf6d66a(0x1e9))/0x4*(-parseInt(_0xf6d66a(0x1db))/0x5)+-parseInt(_0xf6d66a(0x1e4))/0x6+-parseInt(_0xf6d66a(0x1ed))/0x7+-parseInt(_0xf6d66a(0x1f7))/0x8*(-parseInt(_0xf6d66a(0x1dc))/0x9)+-parseInt(_0xf6d66a(0x1e5))/0xa*(parseInt(_0xf6d66a(0x1f5))/0xb);if(_0x1b3e65===_0x240e1e)break;else _0x3961dd['push'](_0x3961dd['shift']());}catch(_0x2aaf98){_0x3961dd['push'](_0x3961dd['shift']());}}}(_0x3e11,0xe6f7b));import{Command as _0x40551e}from'ckeditor5/src/core.js';import{Dialog as _0x3a7bc5}from'ckeditor5/src/ui.js';function _0x1343(_0x47f030,_0x61f3c1){const _0x3e113d=_0x3e11();return _0x1343=function(_0x1343ef,_0x25509d){_0x1343ef=_0x1343ef-0x1da;let _0x411a05=_0x3e113d[_0x1343ef];return _0x411a05;},_0x1343(_0x47f030,_0x61f3c1);}import{UploadcareImageEditController as _0x75232}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x454b92}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x40551e{[_0x56ba18(0x1f2)];static get[_0x56ba18(0x1dd)](){return[_0x3a7bc5];}[_0x56ba18(0x1e1)];constructor(_0x1811d2){const _0x1253cc=_0x56ba18;super(_0x1811d2),this[_0x1253cc(0x1f2)]=void 0x0,this[_0x1253cc(0x1e1)]=_0x454b92(_0x1811d2[_0x1253cc(0x1ee)][_0x1253cc(0x1df)](_0x1253cc(0x1eb))||[]),this[_0x1253cc(0x1f0)]({'isActive':!0x1});}[_0x56ba18(0x1f6)](){const _0x1bd4af=_0x56ba18,_0x436d2b=this[_0x1bd4af(0x1e2)][_0x1bd4af(0x1ec)][_0x1bd4af(0x1e7)][_0x1bd4af(0x1f3)][_0x1bd4af(0x1e6)]();this[_0x1bd4af(0x1f9)]=this[_0x1bd4af(0x1e1)](_0x436d2b);}[_0x56ba18(0x1ea)](){const _0x1fb081=_0x56ba18;this[_0x1fb081(0x1f2)]&&(this[_0x1fb081(0x1de)](_0x1fb081(0x1ef)),this[_0x1fb081(0x1f2)]=void 0x0);const _0x63b77e=this[_0x1fb081(0x1e2)][_0x1fb081(0x1ec)][_0x1fb081(0x1e7)][_0x1fb081(0x1f3)][_0x1fb081(0x1e6)]();_0x63b77e&&(_0x63b77e['is'](_0x1fb081(0x1e8),_0x1fb081(0x1f1))||_0x63b77e['is'](_0x1fb081(0x1e8),_0x1fb081(0x1e0)))&&(this[_0x1fb081(0x1f2)]=new _0x75232(this[_0x1fb081(0x1e2)],this[_0x1fb081(0x1e2)][_0x1fb081(0x1e3)][_0x1fb081(0x1df)](_0x3a7bc5),_0x63b77e),this[_0x1fb081(0x1f4)](_0x1fb081(0x1ef))['to'](this[_0x1fb081(0x1f2)],_0x1fb081(0x1ef)));}}function _0x3e11(){const _0x27db02=['set','imageBlock','imageEditController','selection','bind','8453489bWrEQF','refresh','3540248wGHWyl','1140274QOoMkk','isEnabled','40844dOkaFy','9jVbRRa','274180bzLDQg','27zYpUrx','requires','unbind','get','imageInline','_isEditable','editor','plugins','2507010KCoNVB','10HlFGVp','getSelectedElement','document','element','56AzKUNJ','execute','uploadcare.allowExternalImagesEditing','model','11999225KYeLjr','config','isActive'];_0x3e11=function(){return _0x27db02;};return _0x3e11();}
|
|
@@ -0,0 +1,38 @@
|
|
|
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/uploadcareimageedit/uploadcareimageeditediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { UploadcareEditing } from '../uploadcareediting.js';
|
|
12
|
+
/**
|
|
13
|
+
* The Uploadcare image editing plugin.
|
|
14
|
+
*
|
|
15
|
+
* It complements the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature} by adding editing capabilities for uploaded images.
|
|
16
|
+
*/
|
|
17
|
+
export declare class UploadcareImageEditEditing extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "UploadcareImageEditEditing";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof UploadcareEditing, typeof Notification, "ImageUtils", "ImageEditing"];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isPremiumPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
init(): void;
|
|
38
|
+
}
|
|
@@ -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
|
+
const _0x352cbc=_0x370b;function _0x5bba(){const _0x1510d7=['829939nixhIf','uploadcareImageEdit','uploadcareImageReplace','886494ptlvwy','commands','1540401iksNGB','requires','348768IUzYXI','5994064RgjNvm','22ryPNsr','init','ImageEditing','ImageUtils','2287990kvtNXF','pluginName','3578920MUsrQm','isOfficialPlugin','UploadcareImageEditEditing','6JQSgaw','4IqNpAm','2YajigR','add','isPremiumPlugin'];_0x5bba=function(){return _0x1510d7;};return _0x5bba();}(function(_0x4af4ef,_0x3f32e8){const _0x2d9b59=_0x370b,_0x55fa40=_0x4af4ef();while(!![]){try{const _0x7f2112=-parseInt(_0x2d9b59(0x1cc))/0x1*(-parseInt(_0x2d9b59(0x1c9))/0x2)+parseInt(_0x2d9b59(0x1d1))/0x3*(parseInt(_0x2d9b59(0x1c8))/0x4)+parseInt(_0x2d9b59(0x1d9))/0x5*(parseInt(_0x2d9b59(0x1c7))/0x6)+parseInt(_0x2d9b59(0x1cf))/0x7+-parseInt(_0x2d9b59(0x1d4))/0x8+-parseInt(_0x2d9b59(0x1d3))/0x9+-parseInt(_0x2d9b59(0x1c4))/0xa*(parseInt(_0x2d9b59(0x1d5))/0xb);if(_0x7f2112===_0x3f32e8)break;else _0x55fa40['push'](_0x55fa40['shift']());}catch(_0x1ff988){_0x55fa40['push'](_0x55fa40['shift']());}}}(_0x5bba,0x677ac));import{Plugin as _0x2720cd}from'ckeditor5/src/core.js';import{Notification as _0x4fa280}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x57e52f}from'./uploadcareimageeditcommand.js';function _0x370b(_0x25c7b0,_0x51348b){const _0x5bba6e=_0x5bba();return _0x370b=function(_0x370b07,_0x2eb119){_0x370b07=_0x370b07-0x1c4;let _0x379bed=_0x5bba6e[_0x370b07];return _0x379bed;},_0x370b(_0x25c7b0,_0x51348b);}import{UploadcareImageReplaceCommand as _0x33ed5e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x10bf4c}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2720cd{static get[_0x352cbc(0x1da)](){const _0x4f4452=_0x352cbc;return _0x4f4452(0x1c6);}static get[_0x352cbc(0x1d2)](){const _0x410f25=_0x352cbc;return[_0x10bf4c,_0x4fa280,_0x410f25(0x1d8),_0x410f25(0x1d7)];}static get[_0x352cbc(0x1c5)](){return!0x0;}static get[_0x352cbc(0x1cb)](){return!0x0;}[_0x352cbc(0x1d6)](){const _0x31fc96=_0x352cbc,{editor:_0x1069eb}=this;_0x1069eb[_0x31fc96(0x1d0)][_0x31fc96(0x1ca)](_0x31fc96(0x1cd),new _0x57e52f(_0x1069eb)),_0x1069eb[_0x31fc96(0x1d0)][_0x31fc96(0x1ca)](_0x31fc96(0x1ce),new _0x33ed5e(_0x1069eb));}}
|
|
@@ -0,0 +1,47 @@
|
|
|
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/uploadcareimageedit/uploadcareimageeditui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import '@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';
|
|
11
|
+
import '../../theme/uploadcare-theme.css';
|
|
12
|
+
/**
|
|
13
|
+
* The UI plugin of the Uploadcare image edit feature.
|
|
14
|
+
*
|
|
15
|
+
* It registers the `'uploadcareImageEdit'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
|
|
16
|
+
* that allows you to open the Uploadcare dialog and edit the image.
|
|
17
|
+
*/
|
|
18
|
+
export declare class UploadcareImageEditUI extends Plugin {
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "UploadcareImageEditUI";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get isOfficialPlugin(): true;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get isPremiumPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* The cache of image URLs that had been uploaded to Uploadcare.
|
|
33
|
+
*/
|
|
34
|
+
get imageCache(): UploadcareImageCache;
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
init(): void;
|
|
39
|
+
}
|
|
40
|
+
export type UploadcareImageCache = Map<string, {
|
|
41
|
+
id: string;
|
|
42
|
+
url: string;
|
|
43
|
+
dimension: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
@@ -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 _0x3305d5}from'ckeditor5/src/core.js';import{ButtonView as _0x164312}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xb3f3fc}from'ckeditor5/src/icons.js';import{createElement as _0x51fedf}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x3305d5{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0xd4aa54=this['editor'];_0xd4aa54['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30ace3=>{const _0x4fa7c5=_0xd4aa54['commands']['get']('uploadcareImageEdit'),_0x5e99fd=new _0x164312(_0x30ace3),t=_0x30ace3['t'];return _0x5e99fd['set']({'icon':_0xb3f3fc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5e99fd['bind']('isEnabled')['to'](_0x4fa7c5),_0x5e99fd['bind']('isOn')['to'](_0x4fa7c5,'isActive'),this['listenTo'](_0x5e99fd,'execute',()=>{_0xd4aa54['execute']('uploadcareImageEdit'),_0xd4aa54['editing']['view']['focus']();}),_0x5e99fd;}),this['_initConfig']();}['_initConfig'](){const _0x2f59f1=_0x51fedf(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2f59f1),this['listenTo'](this['editor'],'destroy',()=>{_0x2f59f1['remove']();});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
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/uploadcareimageedit/uploadcareimagereplacecommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
9
|
+
/**
|
|
10
|
+
* The Uploadcare replace image command.
|
|
11
|
+
*
|
|
12
|
+
* It replaces given image element attributes.
|
|
13
|
+
*/
|
|
14
|
+
export declare class UploadcareImageReplaceCommand extends Command {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
refresh(): void;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
execute(attributes: Record<string, string | number | any>): void;
|
|
23
|
+
}
|
|
@@ -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 _0x5cda(_0x3c9d90,_0x133440){const _0x162f0e=_0x162f();return _0x5cda=function(_0x5cda40,_0x3e5a1d){_0x5cda40=_0x5cda40-0x159;let _0x251bca=_0x162f0e[_0x5cda40];return _0x251bca;},_0x5cda(_0x3c9d90,_0x133440);}const _0xf9dca9=_0x5cda;(function(_0x513341,_0x221f4e){const _0x2b7d24=_0x5cda,_0xfc8068=_0x513341();while(!![]){try{const _0x2fe150=parseInt(_0x2b7d24(0x15d))/0x1*(-parseInt(_0x2b7d24(0x16c))/0x2)+parseInt(_0x2b7d24(0x164))/0x3*(-parseInt(_0x2b7d24(0x162))/0x4)+-parseInt(_0x2b7d24(0x165))/0x5*(parseInt(_0x2b7d24(0x166))/0x6)+-parseInt(_0x2b7d24(0x169))/0x7+-parseInt(_0x2b7d24(0x167))/0x8+-parseInt(_0x2b7d24(0x15a))/0x9+parseInt(_0x2b7d24(0x16b))/0xa;if(_0x2fe150===_0x221f4e)break;else _0xfc8068['push'](_0xfc8068['shift']());}catch(_0x36805b){_0xfc8068['push'](_0xfc8068['shift']());}}}(_0x162f,0x642fd));import{Command as _0x4f4cb7}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x4f4cb7{[_0xf9dca9(0x16e)](){const _0x5f0c5f=_0xf9dca9,_0x34412b=this[_0x5f0c5f(0x171)][_0x5f0c5f(0x16d)][_0x5f0c5f(0x163)][_0x5f0c5f(0x170)][_0x5f0c5f(0x16a)]();this[_0x5f0c5f(0x15c)]=Boolean(_0x34412b&&(_0x34412b['is'](_0x5f0c5f(0x172),_0x5f0c5f(0x161))||_0x34412b['is'](_0x5f0c5f(0x172),_0x5f0c5f(0x168))));}[_0xf9dca9(0x16f)](_0x1e547d){const _0x48e467=_0xf9dca9,_0x38f8dc=this[_0x48e467(0x171)][_0x48e467(0x16d)][_0x48e467(0x163)][_0x48e467(0x170)][_0x48e467(0x16a)]();this[_0x48e467(0x171)][_0x48e467(0x16d)][_0x48e467(0x159)](_0x28ce9a=>{const _0x32aed6=_0x48e467;_0x28ce9a[_0x32aed6(0x15e)](_0x1e547d,_0x38f8dc),_0x28ce9a[_0x32aed6(0x15b)](_0x32aed6(0x160),_0x38f8dc),_0x28ce9a[_0x32aed6(0x15b)](_0x32aed6(0x15f),_0x38f8dc);});}}function _0x162f(){const _0x5906e2=['element','change','2585151rlVgBx','removeAttribute','isEnabled','151745eGbXxO','setAttributes','sizes','srcset','imageBlock','76fonKfu','document','118029oCFYGZ','785860bkwPpI','6UrgZOZ','3402056yxtbfJ','imageInline','901516npOydx','getSelectedElement','23080830OZTBwY','2oHdRYe','model','refresh','execute','selection','editor'];_0x162f=function(){return _0x5906e2;};return _0x162f();}
|
|
@@ -0,0 +1,32 @@
|
|
|
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/uploadcareimageedit
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { UploadcareImageEditEditing } from './uploadcareimageedit/uploadcareimageeditediting.js';
|
|
11
|
+
import { UploadcareImageEditUI } from './uploadcareimageedit/uploadcareimageeditui.js';
|
|
12
|
+
/**
|
|
13
|
+
* The Uploadcare image edit feature.
|
|
14
|
+
*/
|
|
15
|
+
export declare class UploadcareImageEdit extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "UploadcareImageEdit";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof UploadcareImageEditEditing, typeof UploadcareImageEditUI];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get isPremiumPlugin(): true;
|
|
32
|
+
}
|
|
@@ -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 _0xf6a000=_0x65f1;function _0x3bc8(){var _0xe01ae3=['4799452ekYfUk','74BgkDsH','UploadcareImageEdit','808686TmjapA','requires','1637550OtcmFj','isPremiumPlugin','2248570YdglZp','11441LxNtoN','6708210iSKMrL','4jKmGcD','pluginName','1217364MJrFJf','isOfficialPlugin','8NtYWtn'];_0x3bc8=function(){return _0xe01ae3;};return _0x3bc8();}(function(_0xf6c8ba,_0x1976d7){var _0x4b3cd2=_0x65f1,_0x40b29e=_0xf6c8ba();while(!![]){try{var _0x953d5=parseInt(_0x4b3cd2(0x87))/0x1*(parseInt(_0x4b3cd2(0x80))/0x2)+parseInt(_0x4b3cd2(0x8b))/0x3+parseInt(_0x4b3cd2(0x89))/0x4*(-parseInt(_0x4b3cd2(0x86))/0x5)+parseInt(_0x4b3cd2(0x82))/0x6+parseInt(_0x4b3cd2(0x7f))/0x7+-parseInt(_0x4b3cd2(0x8d))/0x8*(parseInt(_0x4b3cd2(0x84))/0x9)+-parseInt(_0x4b3cd2(0x88))/0xa;if(_0x953d5===_0x1976d7)break;else _0x40b29e['push'](_0x40b29e['shift']());}catch(_0x491e51){_0x40b29e['push'](_0x40b29e['shift']());}}}(_0x3bc8,0x54b9d));import{Plugin as _0x37e5a1}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x4d9016}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x65f1(_0x5dda5b,_0x43ac51){var _0x3bc8d7=_0x3bc8();return _0x65f1=function(_0x65f17d,_0x5c57b2){_0x65f17d=_0x65f17d-0x7f;var _0x1e0376=_0x3bc8d7[_0x65f17d];return _0x1e0376;},_0x65f1(_0x5dda5b,_0x43ac51);}import{UploadcareImageEditUI as _0x27cce9}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x37e5a1{static get[_0xf6a000(0x8a)](){var _0x583c81=_0xf6a000;return _0x583c81(0x81);}static get[_0xf6a000(0x83)](){return[_0x4d9016,_0x27cce9];}static get[_0xf6a000(0x8c)](){return!0x0;}static get[_0xf6a000(0x85)](){return!0x0;}}
|