@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.
Files changed (137) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/ckbox.js +3 -3
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/az.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de.js +1 -1
  11. package/build/translations/el.js +1 -1
  12. package/build/translations/en-au.js +1 -1
  13. package/build/translations/es-co.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fa.js +1 -1
  17. package/build/translations/fi.js +1 -1
  18. package/build/translations/fr.js +1 -1
  19. package/build/translations/gl.js +1 -1
  20. package/build/translations/he.js +1 -1
  21. package/build/translations/hi.js +1 -1
  22. package/build/translations/hr.js +1 -1
  23. package/build/translations/hu.js +1 -1
  24. package/build/translations/id.js +1 -1
  25. package/build/translations/it.js +1 -1
  26. package/build/translations/ja.js +1 -1
  27. package/build/translations/ko.js +1 -1
  28. package/build/translations/lt.js +1 -1
  29. package/build/translations/lv.js +1 -1
  30. package/build/translations/ms.js +1 -1
  31. package/build/translations/nl.js +1 -1
  32. package/build/translations/no.js +1 -1
  33. package/build/translations/pl.js +1 -1
  34. package/build/translations/pt-br.js +1 -1
  35. package/build/translations/pt.js +1 -1
  36. package/build/translations/ro.js +1 -1
  37. package/build/translations/ru.js +1 -1
  38. package/build/translations/sk.js +1 -1
  39. package/build/translations/sq.js +1 -1
  40. package/build/translations/sr-latn.js +1 -1
  41. package/build/translations/sr.js +1 -1
  42. package/build/translations/sv.js +1 -1
  43. package/build/translations/th.js +1 -1
  44. package/build/translations/tr.js +1 -1
  45. package/build/translations/ug.js +1 -1
  46. package/build/translations/uk.js +1 -1
  47. package/build/translations/ur.js +1 -1
  48. package/build/translations/uz.js +1 -1
  49. package/build/translations/vi.js +1 -1
  50. package/build/translations/zh-cn.js +1 -1
  51. package/build/translations/zh.js +1 -1
  52. package/ckeditor5-metadata.json +18 -1
  53. package/lang/contexts.json +6 -2
  54. package/lang/translations/ar.po +19 -3
  55. package/lang/translations/az.po +19 -3
  56. package/lang/translations/bg.po +19 -3
  57. package/lang/translations/bn.po +19 -3
  58. package/lang/translations/ca.po +19 -3
  59. package/lang/translations/cs.po +19 -3
  60. package/lang/translations/da.po +19 -3
  61. package/lang/translations/de.po +19 -3
  62. package/lang/translations/el.po +19 -3
  63. package/lang/translations/en-au.po +19 -3
  64. package/lang/translations/en.po +19 -3
  65. package/lang/translations/es-co.po +19 -3
  66. package/lang/translations/es.po +19 -3
  67. package/lang/translations/et.po +19 -3
  68. package/lang/translations/fa.po +19 -3
  69. package/lang/translations/fi.po +19 -3
  70. package/lang/translations/fr.po +19 -3
  71. package/lang/translations/gl.po +19 -3
  72. package/lang/translations/he.po +19 -3
  73. package/lang/translations/hi.po +19 -3
  74. package/lang/translations/hr.po +19 -3
  75. package/lang/translations/hu.po +19 -3
  76. package/lang/translations/id.po +19 -3
  77. package/lang/translations/it.po +19 -3
  78. package/lang/translations/ja.po +19 -3
  79. package/lang/translations/ko.po +19 -3
  80. package/lang/translations/lt.po +19 -3
  81. package/lang/translations/lv.po +19 -3
  82. package/lang/translations/ms.po +19 -3
  83. package/lang/translations/nl.po +19 -3
  84. package/lang/translations/no.po +19 -3
  85. package/lang/translations/pl.po +19 -3
  86. package/lang/translations/pt-br.po +19 -3
  87. package/lang/translations/pt.po +19 -3
  88. package/lang/translations/ro.po +19 -3
  89. package/lang/translations/ru.po +19 -3
  90. package/lang/translations/sk.po +19 -3
  91. package/lang/translations/sq.po +19 -3
  92. package/lang/translations/sr-latn.po +19 -3
  93. package/lang/translations/sr.po +19 -3
  94. package/lang/translations/sv.po +19 -3
  95. package/lang/translations/th.po +19 -3
  96. package/lang/translations/tr.po +19 -3
  97. package/lang/translations/ug.po +19 -3
  98. package/lang/translations/uk.po +19 -3
  99. package/lang/translations/ur.po +19 -3
  100. package/lang/translations/uz.po +19 -3
  101. package/lang/translations/vi.po +19 -3
  102. package/lang/translations/zh-cn.po +19 -3
  103. package/lang/translations/zh.po +19 -3
  104. package/package.json +5 -3
  105. package/src/augmentation.d.ts +12 -2
  106. package/src/augmentation.js +1 -1
  107. package/src/ckbox.d.ts +4 -4
  108. package/src/ckbox.js +4 -4
  109. package/src/ckboxcommand.d.ts +10 -8
  110. package/src/ckboxcommand.js +9 -5
  111. package/src/ckboxconfig.d.ts +27 -1
  112. package/src/ckboxconfig.js +1 -1
  113. package/src/ckboxediting.d.ts +8 -15
  114. package/src/ckboxediting.js +12 -60
  115. package/src/ckboximageedit/ckboximageeditcommand.d.ts +97 -0
  116. package/src/ckboximageedit/ckboximageeditcommand.js +299 -0
  117. package/src/ckboximageedit/ckboximageeditediting.d.ts +28 -0
  118. package/src/ckboximageedit/ckboximageeditediting.js +36 -0
  119. package/src/ckboximageedit/ckboximageeditui.d.ts +24 -0
  120. package/src/ckboximageedit/ckboximageeditui.js +48 -0
  121. package/src/ckboximageedit/utils.d.ts +10 -0
  122. package/src/ckboximageedit/utils.js +48 -0
  123. package/src/ckboximageedit.d.ts +24 -0
  124. package/src/ckboximageedit.js +28 -0
  125. package/src/ckboxui.d.ts +2 -2
  126. package/src/ckboxui.js +31 -5
  127. package/src/ckboxuploadadapter.d.ts +4 -9
  128. package/src/ckboxuploadadapter.js +19 -164
  129. package/src/ckboxutils.d.ts +50 -0
  130. package/src/ckboxutils.js +183 -0
  131. package/src/index.d.ts +11 -7
  132. package/src/index.js +8 -5
  133. package/src/utils.d.ts +33 -2
  134. package/src/utils.js +94 -1
  135. package/theme/ckboximageedit.css +53 -0
  136. package/theme/icons/ckbox-image-edit.svg +1 -0
  137. 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>