@ckeditor/ckeditor5-ckbox 40.1.0 → 41.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +1 -1
- package/build/ckbox.js +3 -3
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +18 -1
- package/lang/contexts.json +6 -2
- package/lang/translations/ar.po +19 -3
- package/lang/translations/az.po +19 -3
- package/lang/translations/bg.po +19 -3
- package/lang/translations/bn.po +19 -3
- package/lang/translations/ca.po +19 -3
- package/lang/translations/cs.po +19 -3
- package/lang/translations/da.po +19 -3
- package/lang/translations/de.po +19 -3
- package/lang/translations/el.po +19 -3
- package/lang/translations/en-au.po +19 -3
- package/lang/translations/en.po +19 -3
- package/lang/translations/es-co.po +19 -3
- package/lang/translations/es.po +19 -3
- package/lang/translations/et.po +19 -3
- package/lang/translations/fa.po +19 -3
- package/lang/translations/fi.po +19 -3
- package/lang/translations/fr.po +19 -3
- package/lang/translations/gl.po +19 -3
- package/lang/translations/he.po +19 -3
- package/lang/translations/hi.po +19 -3
- package/lang/translations/hr.po +19 -3
- package/lang/translations/hu.po +19 -3
- package/lang/translations/id.po +19 -3
- package/lang/translations/it.po +19 -3
- package/lang/translations/ja.po +19 -3
- package/lang/translations/ko.po +19 -3
- package/lang/translations/lt.po +19 -3
- package/lang/translations/lv.po +19 -3
- package/lang/translations/ms.po +19 -3
- package/lang/translations/nl.po +19 -3
- package/lang/translations/no.po +19 -3
- package/lang/translations/pl.po +19 -3
- package/lang/translations/pt-br.po +19 -3
- package/lang/translations/pt.po +19 -3
- package/lang/translations/ro.po +19 -3
- package/lang/translations/ru.po +19 -3
- package/lang/translations/sk.po +19 -3
- package/lang/translations/sq.po +19 -3
- package/lang/translations/sr-latn.po +19 -3
- package/lang/translations/sr.po +19 -3
- package/lang/translations/sv.po +19 -3
- package/lang/translations/th.po +19 -3
- package/lang/translations/tr.po +19 -3
- package/lang/translations/ug.po +19 -3
- package/lang/translations/uk.po +19 -3
- package/lang/translations/ur.po +19 -3
- package/lang/translations/uz.po +19 -3
- package/lang/translations/vi.po +19 -3
- package/lang/translations/zh-cn.po +19 -3
- package/lang/translations/zh.po +19 -3
- package/package.json +5 -3
- package/src/augmentation.d.ts +12 -2
- package/src/augmentation.js +1 -1
- package/src/ckbox.d.ts +4 -4
- package/src/ckbox.js +4 -4
- package/src/ckboxcommand.d.ts +10 -8
- package/src/ckboxcommand.js +9 -5
- package/src/ckboxconfig.d.ts +27 -1
- package/src/ckboxconfig.js +1 -1
- package/src/ckboxediting.d.ts +8 -15
- package/src/ckboxediting.js +12 -60
- package/src/ckboximageedit/ckboximageeditcommand.d.ts +97 -0
- package/src/ckboximageedit/ckboximageeditcommand.js +299 -0
- package/src/ckboximageedit/ckboximageeditediting.d.ts +28 -0
- package/src/ckboximageedit/ckboximageeditediting.js +36 -0
- package/src/ckboximageedit/ckboximageeditui.d.ts +24 -0
- package/src/ckboximageedit/ckboximageeditui.js +48 -0
- package/src/ckboximageedit/utils.d.ts +10 -0
- package/src/ckboximageedit/utils.js +48 -0
- package/src/ckboximageedit.d.ts +24 -0
- package/src/ckboximageedit.js +28 -0
- package/src/ckboxui.d.ts +2 -2
- package/src/ckboxui.js +31 -5
- package/src/ckboxuploadadapter.d.ts +4 -9
- package/src/ckboxuploadadapter.js +19 -164
- package/src/ckboxutils.d.ts +50 -0
- package/src/ckboxutils.js +183 -0
- package/src/index.d.ts +11 -7
- package/src/index.js +8 -5
- package/src/utils.d.ts +33 -2
- package/src/utils.js +94 -1
- package/theme/ckboximageedit.css +53 -0
- package/theme/icons/ckbox-image-edit.svg +1 -0
- package/theme/icons/browse-files.svg +0 -1
@@ -0,0 +1,53 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
|
6
|
+
:root {
|
7
|
+
/* Based on default CKBox theme colors */
|
8
|
+
--ck-image-processing-highlight-color: hsl(220, 10%, 98%);
|
9
|
+
--ck-image-processing-background-color: hsl(220, 10%, 90%);
|
10
|
+
}
|
11
|
+
|
12
|
+
.ck.ck-editor__editable {
|
13
|
+
& .image {
|
14
|
+
&.image-processing {
|
15
|
+
position: relative;
|
16
|
+
|
17
|
+
&:before {
|
18
|
+
content: '';
|
19
|
+
|
20
|
+
position: absolute;
|
21
|
+
top: 0;
|
22
|
+
left: 0;
|
23
|
+
z-index: 1;
|
24
|
+
|
25
|
+
height: 100%;
|
26
|
+
width: 100%;
|
27
|
+
|
28
|
+
background: linear-gradient(
|
29
|
+
90deg,
|
30
|
+
var(--ck-image-processing-background-color),
|
31
|
+
var(--ck-image-processing-highlight-color),
|
32
|
+
var(--ck-image-processing-background-color)
|
33
|
+
);
|
34
|
+
background-size: 200% 100%;
|
35
|
+
|
36
|
+
animation: ck-image-processing-animation 2s linear infinite;
|
37
|
+
}
|
38
|
+
|
39
|
+
& img {
|
40
|
+
height: 100%;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
@keyframes ck-image-processing-animation {
|
47
|
+
0% {
|
48
|
+
background-position: 200% 0;
|
49
|
+
}
|
50
|
+
100% {
|
51
|
+
background-position: -200% 0;
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037H5.06l5.058-5.078L6.617 9.15a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v4.354a3.478 3.478 0 0 1 1.5.049V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.147 2.147 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.642-3.11 2.129 2.129 0 0 0-1.873-.978ZM8.089 17.635v2.388h2.389l7.046-7.046-2.39-2.39-7.045 7.048Zm11.282-6.507a.637.637 0 0 0 .139-.692.603.603 0 0 0-.139-.205l-1.49-1.488a.63.63 0 0 0-.899 0l-1.166 1.163 2.39 2.39 1.165-1.168Z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>
|