@ckeditor/ckeditor5-uploadcare 0.0.1 → 44.2.0-alpha.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 +5 -6
- package/README.md +35 -3
- 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/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/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 +27 -0
- package/lang/translations/af.po +112 -0
- package/lang/translations/ar.po +112 -0
- package/lang/translations/ast.po +112 -0
- package/lang/translations/az.po +112 -0
- package/lang/translations/bg.po +112 -0
- package/lang/translations/bn.po +112 -0
- package/lang/translations/bs.po +112 -0
- package/lang/translations/ca.po +112 -0
- package/lang/translations/cs.po +112 -0
- package/lang/translations/da.po +112 -0
- package/lang/translations/de-ch.po +112 -0
- package/lang/translations/de.po +112 -0
- package/lang/translations/el.po +112 -0
- package/lang/translations/en-au.po +112 -0
- package/lang/translations/en-gb.po +112 -0
- package/lang/translations/en.po +112 -0
- package/lang/translations/eo.po +112 -0
- package/lang/translations/es-co.po +112 -0
- package/lang/translations/es.po +112 -0
- package/lang/translations/et.po +112 -0
- package/lang/translations/eu.po +112 -0
- package/lang/translations/fa.po +112 -0
- package/lang/translations/fi.po +112 -0
- package/lang/translations/fr.po +112 -0
- package/lang/translations/gl.po +112 -0
- package/lang/translations/gu.po +112 -0
- package/lang/translations/he.po +112 -0
- package/lang/translations/hi.po +112 -0
- package/lang/translations/hr.po +112 -0
- package/lang/translations/hu.po +112 -0
- package/lang/translations/hy.po +112 -0
- package/lang/translations/id.po +112 -0
- package/lang/translations/it.po +112 -0
- package/lang/translations/ja.po +112 -0
- package/lang/translations/jv.po +112 -0
- package/lang/translations/kk.po +112 -0
- package/lang/translations/km.po +112 -0
- package/lang/translations/kn.po +112 -0
- package/lang/translations/ko.po +112 -0
- package/lang/translations/ku.po +112 -0
- package/lang/translations/lt.po +112 -0
- package/lang/translations/lv.po +112 -0
- package/lang/translations/ms.po +112 -0
- package/lang/translations/nb.po +112 -0
- package/lang/translations/ne.po +112 -0
- package/lang/translations/nl.po +112 -0
- package/lang/translations/no.po +112 -0
- package/lang/translations/oc.po +112 -0
- package/lang/translations/pl.po +112 -0
- package/lang/translations/pt-br.po +112 -0
- package/lang/translations/pt.po +112 -0
- package/lang/translations/ro.po +112 -0
- package/lang/translations/ru.po +112 -0
- package/lang/translations/si.po +112 -0
- package/lang/translations/sk.po +112 -0
- package/lang/translations/sl.po +112 -0
- package/lang/translations/sq.po +112 -0
- package/lang/translations/sr-latn.po +112 -0
- package/lang/translations/sr.po +112 -0
- package/lang/translations/sv.po +112 -0
- package/lang/translations/th.po +112 -0
- package/lang/translations/ti.po +112 -0
- package/lang/translations/tk.po +112 -0
- package/lang/translations/tr.po +112 -0
- package/lang/translations/tt.po +112 -0
- package/lang/translations/ug.po +112 -0
- package/lang/translations/uk.po +112 -0
- package/lang/translations/ur.po +112 -0
- package/lang/translations/uz.po +112 -0
- package/lang/translations/vi.po +112 -0
- package/lang/translations/zh-cn.po +112 -0
- package/lang/translations/zh.po +112 -0
- package/package.json +73 -7
- package/src/augmentation.d.ts +30 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +16 -0
- package/src/index.js +23 -0
- package/src/ui/uploadcarecontroller.d.ts +30 -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 +227 -0
- package/src/uploadcareconfig.js +23 -0
- package/src/uploadcareediting.d.ts +49 -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 +27 -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 +48 -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/icons/dropbox.svg +11 -0
- package/theme/icons/error.svg +1 -0
- package/theme/icons/facebook.svg +11 -0
- package/theme/icons/google-drive.svg +11 -0
- package/theme/icons/google-photos.svg +11 -0
- package/theme/icons/image-upload.svg +11 -0
- package/theme/icons/instagram.svg +11 -0
- package/theme/icons/link.svg +11 -0
- package/theme/icons/local.svg +11 -0
- package/theme/icons/onedrive.svg +11 -0
- package/theme/icons/uploadcare-image-edit.svg +11 -0
- package/theme/uploadcare-form.css +198 -0
- package/theme/uploadcare-theme.css +20 -0
- package/theme/uploadcareimageedit.css +64 -0
|
@@ -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 _0x1fe15e,View as _0x219355}from'ckeditor5/src/ui.js';export default class ta extends _0x219355{constructor(_0x3863c2){super(_0x3863c2);const t=_0x3863c2['t'],_0x1b17a8=this['bindTemplate'],_0x212657=new _0x1fe15e();_0x212657['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':[_0x212657,{'text':_0x1b17a8['to']('imageUploadProgress',_0x1dedda=>t('Loading\x20image...')+'\x20('+(_0x1dedda||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 default 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 _0x76cb(){const _0x5b43e0=['status','6299316MMTGui','setTemplate','_errorView','ck-uploadcare-form','3970jKhaGc','set','querySelector','cdnUrl','addedNodes','_addUploadcareImageEditorListeners','_addErrorViewListeners','_items','retry','addMany','filter','_waitForImageEditorComponent','uploading','change:status','_loadingView','18vfrKjP','addEventListener','target','disconnect','1004038dEBaVu','div','4453224vCVbDd','fire','cancel','_focusableView','clear','observe','error','29167120ZoovXC','render','nodeName','focus','_setView','uc-cloud-image-editor','ck-reset_all-excluded','detail','509692snTiNX','element','9zxDysp','once','add','_editingView','getFocusableElement','apply','createCollection','length','69955VVwNVl','4348PZOMke','toLowerCase','ready'];_0x76cb=function(){return _0x5b43e0;};return _0x76cb();}function _0x4209(_0x9ec863,_0x1d82a0){const _0x76cb02=_0x76cb();return _0x4209=function(_0x4209c3,_0x330e71){_0x4209c3=_0x4209c3-0x7f;let _0x56f068=_0x76cb02[_0x4209c3];return _0x56f068;},_0x4209(_0x9ec863,_0x1d82a0);}const _0x48b9ca=_0x4209;(function(_0x91e353,_0x187198){const _0x5e43fa=_0x4209,_0xf1ba3c=_0x91e353();while(!![]){try{const _0x50d0b5=parseInt(_0x5e43fa(0x9f))/0x1+-parseInt(_0x5e43fa(0x95))/0x2*(-parseInt(_0x5e43fa(0x97))/0x3)+-parseInt(_0x5e43fa(0xa0))/0x4*(-parseInt(_0x5e43fa(0xa8))/0x5)+parseInt(_0x5e43fa(0x80))/0x6*(parseInt(_0x5e43fa(0x84))/0x7)+parseInt(_0x5e43fa(0x86))/0x8+parseInt(_0x5e43fa(0xa4))/0x9+-parseInt(_0x5e43fa(0x8d))/0xa;if(_0x50d0b5===_0x187198)break;else _0xf1ba3c['push'](_0xf1ba3c['shift']());}catch(_0x8eb277){_0xf1ba3c['push'](_0xf1ba3c['shift']());}}}(_0x76cb,0x7231a));import{View as _0x15947e}from'ckeditor5/src/ui.js';import _0x37b61a from'./uploadcareimageeditformloadingview.js';import _0x26ce72 from'./uploadcareimageeditformerrorview.js';import _0x3021e6 from'./uploadcareimageeditformeditingview.js';import _0x3daf23 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x3daf23{constructor(_0x3b1dda,_0x393a40,_0x31b72a){const _0x166b60=_0x4209;super(_0x3b1dda),this[_0x166b60(0xaf)]=this[_0x166b60(0x9d)](),this[_0x166b60(0x7f)]=new _0x37b61a(_0x3b1dda),this[_0x166b60(0xa6)]=new _0x26ce72(_0x3b1dda),this[_0x166b60(0x9a)]=new _0x3021e6(_0x3b1dda,_0x31b72a),this[_0x166b60(0x89)]=new _0x15947e(_0x3b1dda),this[_0x166b60(0x89)][_0x166b60(0xa5)](this[_0x166b60(0x9b)]()),this[_0x166b60(0xa9)](_0x166b60(0xa3),_0x393a40),this[_0x166b60(0xa5)]({'tag':_0x166b60(0x85),'attributes':{'class':['ck',_0x166b60(0x93),_0x166b60(0xa7)],'tabindex':'-1'},'children':this[_0x166b60(0xaf)]}),this[_0x166b60(0x91)](),this[_0x166b60(0x98)](_0x166b60(0x8e),()=>{const _0x17efa1=_0x166b60;this[_0x17efa1(0xb3)](this[_0x17efa1(0x96)],_0x1e5e89=>{const _0xb3bce1=_0x17efa1;this[_0xb3bce1(0xad)](_0x1e5e89);});}),this['on'](_0x166b60(0xb5),()=>{const _0x3dc867=_0x166b60;this[_0x3dc867(0x91)]();}),this[_0x166b60(0xae)]();}[_0x48b9ca(0x90)](){const _0x14e6ea=_0x48b9ca;this[_0x14e6ea(0x96)][_0x14e6ea(0x90)]();}[_0x48b9ca(0x91)](){const _0x1082ce=_0x48b9ca;switch(this[_0x1082ce(0xaf)][_0x1082ce(0x8a)](),this[_0x1082ce(0xa3)]){case _0x1082ce(0xb4):this[_0x1082ce(0xaf)][_0x1082ce(0x99)](this[_0x1082ce(0x7f)]);break;case _0x1082ce(0x8c):this[_0x1082ce(0xaf)][_0x1082ce(0x99)](this[_0x1082ce(0xa6)]);break;case _0x1082ce(0xa2):this[_0x1082ce(0xaf)][_0x1082ce(0xb1)]([this[_0x1082ce(0x9a)],this[_0x1082ce(0x89)]]);}}[_0x48b9ca(0xb3)](_0x227efd,_0x5246ab){const _0x5d16c9=_0x48b9ca,_0x4c6f1d=_0x5d16c9(0x92),_0x130f63=_0x227efd[_0x5d16c9(0xaa)](_0x4c6f1d);if(_0x130f63)return _0x5246ab(_0x130f63);const _0x5970c4=new MutationObserver(_0x9ff192=>{const _0x3e0f9c=_0x5d16c9,_0x1e73cc=_0x9ff192[_0x3e0f9c(0xb2)](_0xde4813=>_0xde4813[_0x3e0f9c(0x82)]===_0x227efd&&_0xde4813[_0x3e0f9c(0xac)][_0x3e0f9c(0x9e)]>0x0&&_0xde4813[_0x3e0f9c(0xac)][0x0][_0x3e0f9c(0x8f)][_0x3e0f9c(0xa1)]()===_0x4c6f1d);_0x1e73cc[_0x3e0f9c(0x9e)]&&(_0x5970c4[_0x3e0f9c(0x83)](),_0x5246ab(_0x1e73cc[0x0][_0x3e0f9c(0xac)][0x0]));});_0x5970c4[_0x5d16c9(0x8b)](_0x227efd,{'childList':!0x0,'subtree':!0x0});}[_0x48b9ca(0xad)](_0x3d2175){const _0x1d267d=_0x48b9ca;_0x3d2175[_0x1d267d(0x81)](_0x1d267d(0x9c),_0x280e56=>{const _0x950759=_0x1d267d;this[_0x950759(0x87)](_0x950759(0x9c),{'imageSrc':_0x280e56[_0x950759(0x94)][_0x950759(0xab)]});}),_0x3d2175[_0x1d267d(0x81)](_0x1d267d(0x88),()=>{const _0x8353e6=_0x1d267d;this[_0x8353e6(0x87)](_0x8353e6(0x88));});}[_0x48b9ca(0xae)](){const _0x5d144a=_0x48b9ca;this[_0x5d144a(0xa6)]['on'](_0x5d144a(0xb0),()=>{const _0x127fbb=_0x5d144a;this[_0x127fbb(0x87)](_0x127fbb(0xb0));});}}
|
|
@@ -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 default 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 _0x594994=_0x15ea;(function(_0x40f6fd,_0x4d6161){const _0x4881cc=_0x15ea,_0x1f232f=_0x40f6fd();while(!![]){try{const _0x58c105=parseInt(_0x4881cc(0x1dc))/0x1*(-parseInt(_0x4881cc(0x1de))/0x2)+parseInt(_0x4881cc(0x1ce))/0x3*(parseInt(_0x4881cc(0x1d7))/0x4)+-parseInt(_0x4881cc(0x1cb))/0x5*(parseInt(_0x4881cc(0x1d9))/0x6)+parseInt(_0x4881cc(0x1d3))/0x7+-parseInt(_0x4881cc(0x1c3))/0x8+-parseInt(_0x4881cc(0x1d6))/0x9*(-parseInt(_0x4881cc(0x1d5))/0xa)+parseInt(_0x4881cc(0x1c2))/0xb;if(_0x58c105===_0x4d6161)break;else _0x1f232f['push'](_0x1f232f['shift']());}catch(_0x12a78a){_0x1f232f['push'](_0x1f232f['shift']());}}}(_0x488f,0xc934a));function _0x488f(){const _0x1d70c6=['set','11407886vVQgOH','get','6730GCmQSf','15084rQQyTh','263988KStrFC','imageEditController','18nEhKHU','imageInline','getSelectedElement','1DMAjkg','requires','1789994tWFHZX','element','model','document','unbind','14894319kEVPfY','12237152nHIelo','config','uploadcare.allowExternalImagesEditing','bind','isActive','isEnabled','plugins','selection','2648105jSNmxn','refresh','imageBlock','33bTSAHs','editor','_isEditable','execute'];_0x488f=function(){return _0x1d70c6;};return _0x488f();}function _0x15ea(_0x39e94a,_0x29ce83){const _0x488ff6=_0x488f();return _0x15ea=function(_0x15eace,_0x2cab30){_0x15eace=_0x15eace-0x1c1;let _0x1397b2=_0x488ff6[_0x15eace];return _0x1397b2;},_0x15ea(_0x39e94a,_0x29ce83);}import{Command as _0x58711d}from'ckeditor5/src/core.js';import{Dialog as _0x234d10}from'ckeditor5/src/ui.js';import _0x516dd1 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x56c38e}from'../utils/editingutils.js';export default class J extends _0x58711d{static get[_0x594994(0x1dd)](){return[_0x234d10];}constructor(_0x87ebd2){const _0x2a9114=_0x594994;super(_0x87ebd2),this[_0x2a9114(0x1d8)]=void 0x0,this[_0x2a9114(0x1d0)]=_0x56c38e(_0x87ebd2[_0x2a9114(0x1c4)][_0x2a9114(0x1d4)](_0x2a9114(0x1c5))||[]),this[_0x2a9114(0x1d2)]({'isActive':!0x1});}[_0x594994(0x1cc)](){const _0xda27e=_0x594994,_0x33e914=this[_0xda27e(0x1cf)][_0xda27e(0x1e0)][_0xda27e(0x1e1)][_0xda27e(0x1ca)][_0xda27e(0x1db)]();this[_0xda27e(0x1c8)]=this[_0xda27e(0x1d0)](_0x33e914);}[_0x594994(0x1d1)](){const _0x10685e=_0x594994;this[_0x10685e(0x1d8)]&&(this[_0x10685e(0x1c1)](_0x10685e(0x1c7)),this[_0x10685e(0x1d8)]=void 0x0);const _0x23fa91=this[_0x10685e(0x1cf)][_0x10685e(0x1e0)][_0x10685e(0x1e1)][_0x10685e(0x1ca)][_0x10685e(0x1db)]();_0x23fa91&&(_0x23fa91['is'](_0x10685e(0x1df),_0x10685e(0x1cd))||_0x23fa91['is'](_0x10685e(0x1df),_0x10685e(0x1da)))&&(this[_0x10685e(0x1d8)]=new _0x516dd1(this[_0x10685e(0x1cf)],this[_0x10685e(0x1cf)][_0x10685e(0x1c9)][_0x10685e(0x1d4)](_0x234d10),_0x23fa91),this[_0x10685e(0x1c6)](_0x10685e(0x1c7))['to'](this[_0x10685e(0x1d8)],_0x10685e(0x1c7)));}}
|
|
@@ -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 default 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 _0x2b955c=_0x4080;(function(_0xdb998,_0x40cf87){const _0x2d7982=_0x4080,_0x1f7960=_0xdb998();while(!![]){try{const _0x2cf9a5=parseInt(_0x2d7982(0x1a4))/0x1*(parseInt(_0x2d7982(0x19a))/0x2)+parseInt(_0x2d7982(0x1a1))/0x3+parseInt(_0x2d7982(0x198))/0x4*(parseInt(_0x2d7982(0x19c))/0x5)+parseInt(_0x2d7982(0x1a6))/0x6+parseInt(_0x2d7982(0x1a3))/0x7+-parseInt(_0x2d7982(0x1a9))/0x8+-parseInt(_0x2d7982(0x1a5))/0x9*(parseInt(_0x2d7982(0x194))/0xa);if(_0x2cf9a5===_0x40cf87)break;else _0x1f7960['push'](_0x1f7960['shift']());}catch(_0x1aeeab){_0x1f7960['push'](_0x1f7960['shift']());}}}(_0x50db,0xd30a3));import{Plugin as _0xf2c861}from'ckeditor5/src/core.js';import{Notification as _0xf470cf}from'ckeditor5/src/ui.js';function _0x50db(){const _0xed9c92=['8905938XdeUQw','isPremiumPlugin','ImageUtils','5435072zSjYmL','37252760coZgte','UploadcareImageEditEditing','isOfficialPlugin','uploadcareImageEdit','4712212BgwkLo','commands','4MPLZbT','requires','5FKZiRh','add','init','uploadcareImageReplace','pluginName','5041938djLCfR','ImageEditing','37065ifStpg','460381CrTXUp','9lipJAY'];_0x50db=function(){return _0xed9c92;};return _0x50db();}import _0x32aee5 from'./uploadcareimageeditcommand.js';function _0x4080(_0x2b69fb,_0x9810d2){const _0x50dbd9=_0x50db();return _0x4080=function(_0x40807d,_0x55fe19){_0x40807d=_0x40807d-0x194;let _0x392abb=_0x50dbd9[_0x40807d];return _0x392abb;},_0x4080(_0x2b69fb,_0x9810d2);}import _0x29ac6c from'./uploadcareimagereplacecommand.js';import _0x3f6d39 from'../uploadcareediting.js';export default class m extends _0xf2c861{static get[_0x2b955c(0x1a0)](){const _0x672f5f=_0x2b955c;return _0x672f5f(0x195);}static get[_0x2b955c(0x19b)](){const _0x7b4e59=_0x2b955c;return[_0x3f6d39,_0xf470cf,_0x7b4e59(0x1a8),_0x7b4e59(0x1a2)];}static get[_0x2b955c(0x196)](){return!0x0;}static get[_0x2b955c(0x1a7)](){return!0x0;}[_0x2b955c(0x19e)](){const _0x30c8f0=_0x2b955c,{editor:_0x145a63}=this;_0x145a63[_0x30c8f0(0x199)][_0x30c8f0(0x19d)](_0x30c8f0(0x197),new _0x32aee5(_0x145a63)),_0x145a63[_0x30c8f0(0x199)][_0x30c8f0(0x19d)](_0x30c8f0(0x19f),new _0x29ac6c(_0x145a63));}}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 default 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(): ImageCache;
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
init(): void;
|
|
39
|
+
}
|
|
40
|
+
type ImageCache = Map<string, {
|
|
41
|
+
id: string;
|
|
42
|
+
url: string;
|
|
43
|
+
dimension: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
export {};
|
|
@@ -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 _0x4bbca1}from'ckeditor5/src/core.js';import{ButtonView as _0x22bd59}from'ckeditor5/src/ui.js';import{createElement as _0x2b2e38}from'ckeditor5/src/utils.js';import _0x1274db from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x4bbca1{constructor(){super(...arguments),this['_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 _0x20cd73=this['editor'];_0x20cd73['ui']['componentFactory']['add']('uploadcareImageEdit',_0x230797=>{const _0x5c6423=_0x20cd73['commands']['get']('uploadcareImageEdit'),_0x7c7231=new _0x22bd59(_0x230797),t=_0x230797['t'];return _0x7c7231['set']({'icon':_0x1274db,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x7c7231['bind']('isEnabled')['to'](_0x5c6423),_0x7c7231['bind']('isOn')['to'](_0x5c6423,'isActive'),this['listenTo'](_0x7c7231,'execute',()=>{_0x20cd73['execute']('uploadcareImageEdit'),_0x20cd73['editing']['view']['focus']();}),_0x7c7231;}),this['_initConfig']();}['_initConfig'](){const _0x491565=_0x2b2e38(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x491565),this['listenTo'](this['editor'],'destroy',()=>{_0x491565['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 default 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
|
+
const _0x4e3c57=_0x2b74;(function(_0x116540,_0x5df45a){const _0x5667b2=_0x2b74,_0x37fc5d=_0x116540();while(!![]){try{const _0x2580ae=-parseInt(_0x5667b2(0x12a))/0x1+parseInt(_0x5667b2(0x129))/0x2+parseInt(_0x5667b2(0x11d))/0x3+-parseInt(_0x5667b2(0x11e))/0x4+-parseInt(_0x5667b2(0x11f))/0x5*(-parseInt(_0x5667b2(0x120))/0x6)+parseInt(_0x5667b2(0x128))/0x7+parseInt(_0x5667b2(0x126))/0x8;if(_0x2580ae===_0x5df45a)break;else _0x37fc5d['push'](_0x37fc5d['shift']());}catch(_0x42d47f){_0x37fc5d['push'](_0x37fc5d['shift']());}}}(_0x2c8f,0xb6d40));function _0x2b74(_0x54b54a,_0x9f8570){const _0x2c8ff3=_0x2c8f();return _0x2b74=function(_0x2b745b,_0x348b7e){_0x2b745b=_0x2b745b-0x11d;let _0x814ef4=_0x2c8ff3[_0x2b745b];return _0x814ef4;},_0x2b74(_0x54b54a,_0x9f8570);}import{Command as _0x4e6552}from'ckeditor5/src/core.js';function _0x2c8f(){const _0x4d0b8d=['setAttributes','execute','document','getSelectedElement','3503064opsIkr','selection','4057340mzcGOQ','2975328myqWtq','1033627UdjBWY','sizes','imageInline','change','removeAttribute','refresh','imageBlock','editor','srcset','model','element','418152pyszOE','4101024mfCNiH','74180lwlfve','66FSvJwI','isEnabled'];_0x2c8f=function(){return _0x4d0b8d;};return _0x2c8f();}export default class O extends _0x4e6552{[_0x4e3c57(0x12f)](){const _0x50e108=_0x4e3c57,_0x30d659=this[_0x50e108(0x131)][_0x50e108(0x133)][_0x50e108(0x124)][_0x50e108(0x127)][_0x50e108(0x125)]();this[_0x50e108(0x121)]=Boolean(_0x30d659&&(_0x30d659['is'](_0x50e108(0x134),_0x50e108(0x130))||_0x30d659['is'](_0x50e108(0x134),_0x50e108(0x12c))));}[_0x4e3c57(0x123)](_0x10a936){const _0x48fb1f=_0x4e3c57,_0x2661af=this[_0x48fb1f(0x131)][_0x48fb1f(0x133)][_0x48fb1f(0x124)][_0x48fb1f(0x127)][_0x48fb1f(0x125)]();this[_0x48fb1f(0x131)][_0x48fb1f(0x133)][_0x48fb1f(0x12d)](_0x57085c=>{const _0x7058b=_0x48fb1f;_0x57085c[_0x7058b(0x122)](_0x10a936,_0x2661af),_0x57085c[_0x7058b(0x12e)](_0x7058b(0x132),_0x2661af),_0x57085c[_0x7058b(0x12e)](_0x7058b(0x12b),_0x2661af);});}}
|
|
@@ -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 default 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 _0x2fae4b=_0x3366;function _0x3366(_0x34c929,_0x506aac){var _0x54c6f1=_0x54c6();return _0x3366=function(_0x33668d,_0xe70109){_0x33668d=_0x33668d-0xc3;var _0x21e42c=_0x54c6f1[_0x33668d];return _0x21e42c;},_0x3366(_0x34c929,_0x506aac);}(function(_0x566b57,_0x14d4d0){var _0x24532d=_0x3366,_0x2f0d7a=_0x566b57();while(!![]){try{var _0x119528=-parseInt(_0x24532d(0xcd))/0x1+-parseInt(_0x24532d(0xcc))/0x2*(parseInt(_0x24532d(0xcf))/0x3)+-parseInt(_0x24532d(0xc7))/0x4*(-parseInt(_0x24532d(0xc9))/0x5)+-parseInt(_0x24532d(0xd1))/0x6+parseInt(_0x24532d(0xd2))/0x7+parseInt(_0x24532d(0xcb))/0x8*(-parseInt(_0x24532d(0xd0))/0x9)+parseInt(_0x24532d(0xce))/0xa*(parseInt(_0x24532d(0xc8))/0xb);if(_0x119528===_0x14d4d0)break;else _0x2f0d7a['push'](_0x2f0d7a['shift']());}catch(_0x59a905){_0x2f0d7a['push'](_0x2f0d7a['shift']());}}}(_0x54c6,0xdc595));import{Plugin as _0x521f37}from'ckeditor5/src/core.js';import _0x15a326 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x26b8d1 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x54c6(){var _0x4e2fba=['UploadcareImageEdit','requires','isOfficialPlugin','5660iEqbnt','189695ylVHBb','4915oabaVs','pluginName','6536NPwrII','588606tZQjyP','493978ZnNnvU','610ccMBxS','3FFplfq','16146mgOZPN','70992zHVpuG','5078290Wjgefc','isPremiumPlugin'];_0x54c6=function(){return _0x4e2fba;};return _0x54c6();}export default class j extends _0x521f37{static get[_0x2fae4b(0xca)](){var _0x63651b=_0x2fae4b;return _0x63651b(0xc4);}static get[_0x2fae4b(0xc5)](){return[_0x15a326,_0x26b8d1];}static get[_0x2fae4b(0xc6)](){return!0x0;}static get[_0x2fae4b(0xc3)](){return!0x0;}}
|
|
@@ -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 default 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
|
+
const _0xed40ec=_0x14ab;(function(_0x4b591b,_0xdfc77e){const _0x263f70=_0x14ab,_0x1fdecb=_0x4b591b();while(!![]){try{const _0x52ae00=parseInt(_0x263f70(0x105))/0x1*(parseInt(_0x263f70(0x132))/0x2)+parseInt(_0x263f70(0x149))/0x3*(-parseInt(_0x263f70(0x150))/0x4)+parseInt(_0x263f70(0x139))/0x5*(parseInt(_0x263f70(0x142))/0x6)+parseInt(_0x263f70(0x125))/0x7+parseInt(_0x263f70(0x14f))/0x8+parseInt(_0x263f70(0x13d))/0x9*(parseInt(_0x263f70(0x11d))/0xa)+-parseInt(_0x263f70(0x10f))/0xb;if(_0x52ae00===_0xdfc77e)break;else _0x1fdecb['push'](_0x1fdecb['shift']());}catch(_0x283862){_0x1fdecb['push'](_0x1fdecb['shift']());}}}(_0x5ef5,0xccaa7));import{Plugin as _0x487a7c,icons as _0x4f5156}from'ckeditor5/src/core.js';import{ButtonView as _0x23b4b8,MenuBarMenuListItemButtonView as _0x4384b4}from'ckeditor5/src/ui.js';import _0xdc0ec0 from'../theme/icons/dropbox.svg';import _0x8df3f2 from'../theme/icons/facebook.svg';import _0x30af40 from'../theme/icons/google-drive.svg';import _0x4526e1 from'../theme/icons/google-photos.svg';import _0x2b767e from'../theme/icons/instagram.svg';import _0x9a9235 from'../theme/icons/link.svg';import _0x3f8835 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x118e26}from'./uploadcareconfig.js';import{getTranslation as _0x4563f7}from'./utils/common-translations.js';function _0x14ab(_0x2ce5b8,_0x4fe1ff){const _0x5ef57f=_0x5ef5();return _0x14ab=function(_0x14ab67,_0x21041f){_0x14ab67=_0x14ab67-0x102;let _0x36c7f7=_0x5ef57f[_0x14ab67];return _0x36c7f7;},_0x14ab(_0x2ce5b8,_0x4fe1ff);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x5ef5(){const _0x48c08b=['invalid','uploadcareLicenseKeyUsageLimit','21241165waNtSg','reduce','push','ImageInsertUI','type','execute','locale','registerIntegration','_normalizeConfigSourceList','get','licenseKey','plugins','trialLimit','uploadcareLicenseKeyInvalid','30ToMMJg','upload','Instagram','domainLimit','_createMenuBarButtons','uploadcareLicenseKeyNotAllowed','icon','featureNotAllowed','173537RHBeEX','uploadcareLicenseKeyExpired','Facebook','entries','forEach','_licenseKeyCheckInterval','url','isOfficialPlugin','bind','uploadcareLicenseKeyValid','expired','uploadcareLicenseKeyTrialLimit','OneDrive','434aOdYZM','config','text','map','isPremiumPlugin','isImageSelected','tooltip','15qKJHlX','assetManager','isEnabled','_createDropdownButtons','5008707OjeDCC','GDrive','editor','Replace','withText','1629870KxZQMO','init','_getIntegrationKey','Local','pluginName','UploadcareUI','uploadcareLicenseKeyEvaluationLimit','306oxzzKX','Dropbox','uploadcare','_showLicenseError','destroy','Uploadcare','6139376hVVkIv','32756KtcJfC','usageLimit','commands','GPhotos','_createToolbarButton','Insert','label','shortText','has','1511wZZBue','imageUpload','uploadcare.uploader.sourceList','afterInit','evaluationLimit','_createButton','URL','uploadcareLicenseKeyDomainLimit'];_0x5ef5=function(){return _0x48c08b;};return _0x5ef5();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x487a7c{static get[_0xed40ec(0x146)](){const _0x16ec97=_0xed40ec;return _0x16ec97(0x147);}static get[_0xed40ec(0x12c)](){return!0x0;}static get[_0xed40ec(0x136)](){return!0x0;}[_0xed40ec(0x143)](){const _0x2653cf=_0xed40ec;this[_0x2653cf(0x119)]=this[_0x2653cf(0x13f)][_0x2653cf(0x133)][_0x2653cf(0x118)](_0x2653cf(0x119));const _0x2f82e1=this[_0x2653cf(0x13f)];this[_0x2653cf(0x12a)]=setInterval(()=>{const _0xb7ee05=_0x2653cf;let _0xf36fe8;for(const _0x326205 in _0x2f82e1){const _0x4c54ab=_0x326205,_0x2c33b1=_0x2f82e1[_0x4c54ab];if(_0xb7ee05(0x12e)==_0x2c33b1||_0xb7ee05(0x11c)==_0x2c33b1||_0xb7ee05(0x126)==_0x2c33b1||_0xb7ee05(0x10c)==_0x2c33b1||_0xb7ee05(0x122)==_0x2c33b1||_0xb7ee05(0x148)==_0x2c33b1||_0xb7ee05(0x130)==_0x2c33b1||_0xb7ee05(0x10e)==_0x2c33b1){delete _0x2f82e1[_0x4c54ab],_0xf36fe8=_0x2c33b1,clearInterval(this[_0xb7ee05(0x12a)]),this[_0xb7ee05(0x12a)]=void 0x0;break;}}_0xb7ee05(0x11c)==_0xf36fe8&&_0x2f82e1[_0xb7ee05(0x14c)](_0xb7ee05(0x10d)),_0xb7ee05(0x126)==_0xf36fe8&&_0x2f82e1[_0xb7ee05(0x14c)](_0xb7ee05(0x12f)),_0xb7ee05(0x10c)==_0xf36fe8&&_0x2f82e1[_0xb7ee05(0x14c)](_0xb7ee05(0x120)),_0xb7ee05(0x122)==_0xf36fe8&&_0x2f82e1[_0xb7ee05(0x14c)](_0xb7ee05(0x124),_0xb7ee05(0x14e)),_0xb7ee05(0x148)==_0xf36fe8&&_0x2f82e1[_0xb7ee05(0x14c)](_0xb7ee05(0x109)),_0xb7ee05(0x130)==_0xf36fe8&&_0x2f82e1[_0xb7ee05(0x14c)](_0xb7ee05(0x11b)),_0xb7ee05(0x10e)==_0xf36fe8&&_0x2f82e1[_0xb7ee05(0x14c)](_0xb7ee05(0x151));},0x3e8);}[_0xed40ec(0x108)](){const _0x4bc86a=_0xed40ec,{editor:_0x5a6c4b}=this,_0x20fb57=_0x5a6c4b[_0x4bc86a(0x152)][_0x4bc86a(0x118)](_0x4bc86a(0x14b));if(!_0x20fb57)return;const _0x35b275=this[_0x4bc86a(0x117)](_0x5a6c4b[_0x4bc86a(0x133)][_0x4bc86a(0x118)](_0x4bc86a(0x107)))[_0x4bc86a(0x110)]((_0x3457c9,_0x4f4d35)=>{const _0x19d9c8=_0x4bc86a,_0x13ae1a=this[_0x19d9c8(0x144)](_0x4f4d35[_0x19d9c8(0x113)]);return _0x3457c9[_0x13ae1a]||(_0x3457c9[_0x13ae1a]=[]),_0x3457c9[_0x13ae1a][_0x19d9c8(0x111)](_0x4f4d35),_0x3457c9;},{});_0x5a6c4b[_0x4bc86a(0x11a)][_0x4bc86a(0x104)](_0x4bc86a(0x112))&&_0x5a6c4b[_0x4bc86a(0x152)][_0x4bc86a(0x118)](_0x4bc86a(0x14b))&&Object[_0x4bc86a(0x128)](_0x35b275)[_0x4bc86a(0x129)](([_0x500ad5,_0x11ad71])=>{const _0x321cda=_0x4bc86a;_0x5a6c4b[_0x321cda(0x11a)][_0x321cda(0x118)](_0x321cda(0x112))[_0x321cda(0x116)]({'name':_0x500ad5,'observable':()=>_0x20fb57,'buttonViewCreator':()=>this[_0x321cda(0x154)](_0x11ad71),'formViewCreator':()=>this[_0x321cda(0x13c)](_0x11ad71),'menuBarButtonViewCreator':()=>this[_0x321cda(0x121)](_0x11ad71),'override':_0x321cda(0x13a)!==_0x500ad5});});}[_0xed40ec(0x14d)](){const _0x4b8547=_0xed40ec;super[_0x4b8547(0x14d)](),this[_0x4b8547(0x12a)]&&clearInterval(this[_0x4b8547(0x12a)]);}[_0xed40ec(0x117)](_0x42d253){const _0x49bf86=_0xed40ec,{locale:_0x42027b}=this[_0x49bf86(0x13f)];return _0x42d253[_0x49bf86(0x135)](_0xfd0b8e=>{const _0x11a577=_0x49bf86,_0x1eb7e5=_0x4563f7(_0x42027b,_0xfd0b8e,_0x11a577(0x155));switch(_0xfd0b8e){case _0x118e26[_0x11a577(0x145)]:return{'icon':_0x4f5156[_0x11a577(0x106)],'type':_0x118e26[_0x11a577(0x145)],..._0x1eb7e5};case _0x118e26[_0x11a577(0x10b)]:return{'icon':_0x9a9235,'type':_0x118e26[_0x11a577(0x10b)],..._0x1eb7e5};case _0x118e26[_0x11a577(0x14a)]:return{'icon':_0xdc0ec0,'type':_0x118e26[_0x11a577(0x14a)],..._0x1eb7e5};case _0x118e26[_0x11a577(0x127)]:return{'icon':_0x8df3f2,'type':_0x118e26[_0x11a577(0x127)],..._0x1eb7e5};case _0x118e26[_0x11a577(0x13e)]:return{'icon':_0x30af40,'type':_0x118e26[_0x11a577(0x13e)],..._0x1eb7e5};case _0x118e26[_0x11a577(0x153)]:return{'icon':_0x4526e1,'type':_0x118e26[_0x11a577(0x153)],..._0x1eb7e5};case _0x118e26[_0x11a577(0x11f)]:return{'icon':_0x2b767e,'type':_0x118e26[_0x11a577(0x11f)],..._0x1eb7e5};case _0x118e26[_0x11a577(0x131)]:return{'icon':_0x3f8835,'type':_0x118e26[_0x11a577(0x131)],..._0x1eb7e5};}});}[_0xed40ec(0x144)](_0x53e4d3){const _0x835257=_0xed40ec;switch(_0x53e4d3){case _0x118e26[_0x835257(0x145)]:return _0x835257(0x11e);case _0x118e26[_0x835257(0x10b)]:return _0x835257(0x12b);default:return _0x835257(0x13a);}}[_0xed40ec(0x10a)](_0x253a14,_0x2df449){const _0x46f235=_0xed40ec,_0x1a2d88=this[_0x46f235(0x13f)],_0xdbcee8=new _0x253a14(_0x1a2d88[_0x46f235(0x115)]),_0x118bfd=_0x1a2d88[_0x46f235(0x152)][_0x46f235(0x118)](_0x46f235(0x14b));return _0xdbcee8[_0x46f235(0x12d)](_0x46f235(0x13b))['to'](_0x118bfd),_0xdbcee8['on'](_0x46f235(0x114),()=>{const _0x272578=_0x46f235;_0x118bfd[_0x272578(0x114)](_0x2df449);}),_0xdbcee8;}[_0xed40ec(0x154)](_0x5c290d){const _0x550b70=_0xed40ec,{locale:_0x14c751}=this[_0x550b70(0x13f)],_0x3f71b0=this[_0x550b70(0x13f)][_0x550b70(0x11a)][_0x550b70(0x118)](_0x550b70(0x112)),_0x43b532=_0x5c290d[0x0],_0x391f43=this[_0x550b70(0x10a)](_0x23b4b8,_0x43b532[_0x550b70(0x113)]);return _0x391f43[_0x550b70(0x123)]=_0x43b532[_0x550b70(0x123)],_0x391f43[_0x550b70(0x12d)](_0x550b70(0x102))['to'](_0x3f71b0,_0x550b70(0x137),_0x453125=>_0x4563f7(_0x14c751,_0x43b532[_0x550b70(0x113)],_0x453125?_0x550b70(0x140):_0x550b70(0x155))[_0x550b70(0x134)]),_0x391f43[_0x550b70(0x138)]=!0x0,_0x391f43;}[_0xed40ec(0x13c)](_0xc5862c){const _0x11f125=_0xed40ec,{locale:_0x5054b1}=this[_0x11f125(0x13f)],_0x32def4=this[_0x11f125(0x13f)][_0x11f125(0x11a)][_0x11f125(0x118)](_0x11f125(0x112));return _0xc5862c[_0x11f125(0x135)](_0x55f822=>{const _0xea868d=_0x11f125,_0x40a445=this[_0xea868d(0x10a)](_0x23b4b8,_0x55f822[_0xea868d(0x113)]);return _0x40a445[_0xea868d(0x141)]=!0x0,_0x40a445[_0xea868d(0x123)]=_0x55f822[_0xea868d(0x123)],_0x40a445[_0xea868d(0x12d)](_0xea868d(0x102))['to'](_0x32def4,_0xea868d(0x137),_0x48ee2c=>_0x4563f7(_0x5054b1,_0x55f822[_0xea868d(0x113)],_0x48ee2c?_0xea868d(0x140):_0xea868d(0x155))[_0xea868d(0x134)]),_0x40a445;});}[_0xed40ec(0x121)](_0x386977){const _0x10b533=_0xed40ec;return _0x386977[_0x10b533(0x135)](_0x2740fb=>{const _0x2c69d0=_0x10b533,_0x499f3c=this[_0x2c69d0(0x10a)](_0x4384b4,_0x2740fb[_0x2c69d0(0x113)]);return _0x499f3c[_0x2c69d0(0x123)]=_0x2740fb[_0x2c69d0(0x123)],_0x499f3c[_0x2c69d0(0x102)]=_0x2740fb[_0x2c69d0(0x103)],_0x499f3c;});}}
|
|
@@ -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 default 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 _0xf0555a}from'ckeditor5/src/core.js';import{FileRepository as _0x59faeb}from'ckeditor5/src/upload.js';import _0x30c0d0 from'./uploadcareediting.js';import _0x388785 from'./utils/uploadutils.js';import{getImageUrls as _0xf7a58e}from'./utils/editingutils.js';export default class f extends _0xf0555a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x59faeb,_0x30c0d0];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4d1721=this['editor'];if(!!!_0x4d1721['config']['get']('uploadcare'))return;_0x4d1721['plugins']['get'](_0x59faeb)['createUploadAdapter']=_0x25fd3f=>new A(_0x25fd3f,_0x4d1721),_0x4d1721['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xae22bb,{imageElement:_0x345dd0,data:_0x1f92e4})=>{_0x4d1721['model']['change'](_0x4aa74f=>{_0x4aa74f['setAttribute']('uploadcareImageId',_0x1f92e4['uploadcareImageId'],_0x345dd0);});});}}class A{constructor(_0x3d82bc,_0x17956e){this['loader']=_0x3d82bc,this['editor']=_0x17956e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x177be4=this['editor']['config']['get']('uploadcare.pubkey'),_0x3a14d5=await this['loader']['file'];return _0x388785['upload']({'file':_0x3a14d5,'publicKey':_0x177be4,'signal':this['controller']['signal'],'onProgress':_0x28d28b=>{_0x28d28b&&_0x28d28b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28d28b['value']);}})['then'](async _0x4ac73c=>{const {imageFallbackUrl:_0x3353dd,imageSources:_0x1b6638}=_0xf7a58e(_0x4ac73c['cdnUrl'],_0x4ac73c['imageInfo']['width']);return{'uploadcareImageId':_0x4ac73c['uuid'],'default':_0x3353dd,'sources':_0x1b6638};})['catch'](()=>{const _0x1544ca=t('Cannot\x20upload\x20file:')+('\x20'+_0x3a14d5['name']+'.');return Promise['reject'](_0x1544ca);});}['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 _0x5b64a0}from'../uploadcareconfig.js';export function getTranslation(_0x22b360,_0x101a51,_0x2b8956){const t=_0x22b360['t'],_0x2321f6=_0x22b360['t'];switch(_0x101a51){case _0x5b64a0['Local']:return{'text':_0x2321f6('Insert'===_0x2b8956?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2321f6('From\x20computer')};case _0x5b64a0['URL']:return{'text':'Insert'===_0x2b8956?_0x2321f6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2321f6('Via\x20URL')};case _0x5b64a0['Dropbox']:return{'text':t('Insert'===_0x2b8956?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5b64a0['Facebook']:return{'text':t('Insert'===_0x2b8956?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5b64a0['GDrive']:return{'text':t('Insert'===_0x2b8956?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5b64a0['GPhotos']:return{'text':t('Insert'===_0x2b8956?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5b64a0['Instagram']:return{'text':t('Insert'===_0x2b8956?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x5b64a0['OneDrive']:return{'text':t('Insert'===_0x2b8956?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x101a51;}}
|