@ckeditor/ckeditor5-real-time-collaboration 0.0.0-internal-20241017.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.
Files changed (311) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +25 -0
  3. package/README.md +41 -0
  4. package/build/real-time-collaboration.js +5 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -0
  10. package/build/translations/da.js +1 -0
  11. package/build/translations/de-ch.js +1 -0
  12. package/build/translations/de.js +1 -0
  13. package/build/translations/el.js +1 -0
  14. package/build/translations/en-au.js +1 -0
  15. package/build/translations/es.js +1 -0
  16. package/build/translations/et.js +1 -0
  17. package/build/translations/fa.js +1 -0
  18. package/build/translations/fi.js +1 -0
  19. package/build/translations/fr.js +1 -0
  20. package/build/translations/gl.js +1 -0
  21. package/build/translations/he.js +1 -0
  22. package/build/translations/hi.js +1 -0
  23. package/build/translations/hr.js +1 -0
  24. package/build/translations/hu.js +1 -0
  25. package/build/translations/id.js +1 -0
  26. package/build/translations/it.js +1 -0
  27. package/build/translations/ja.js +1 -0
  28. package/build/translations/ko.js +1 -0
  29. package/build/translations/lt.js +1 -0
  30. package/build/translations/lv.js +1 -0
  31. package/build/translations/ms.js +1 -0
  32. package/build/translations/nl.js +1 -0
  33. package/build/translations/no.js +1 -0
  34. package/build/translations/pl.js +1 -0
  35. package/build/translations/pt-br.js +1 -0
  36. package/build/translations/pt.js +1 -0
  37. package/build/translations/ro.js +1 -0
  38. package/build/translations/ru.js +1 -0
  39. package/build/translations/sk.js +1 -0
  40. package/build/translations/sr-latn.js +1 -0
  41. package/build/translations/sr.js +1 -0
  42. package/build/translations/sv.js +1 -0
  43. package/build/translations/th.js +1 -0
  44. package/build/translations/tk.js +1 -0
  45. package/build/translations/tr.js +1 -0
  46. package/build/translations/uk.js +1 -0
  47. package/build/translations/vi.js +1 -0
  48. package/build/translations/zh-cn.js +1 -0
  49. package/build/translations/zh.js +1 -0
  50. package/ckeditor5-metadata.json +87 -0
  51. package/dist/augmentation.d.ts +68 -0
  52. package/dist/common-translations.d.ts +13 -0
  53. package/dist/config.d.ts +52 -0
  54. package/dist/index-content.css +5 -0
  55. package/dist/index-editor.css +321 -0
  56. package/dist/index.css +423 -0
  57. package/dist/index.d.ts +18 -0
  58. package/dist/index.js +28 -0
  59. package/dist/presencelist/presencelistui.d.ts +51 -0
  60. package/dist/presencelist/view/presencecounterview.d.ts +15 -0
  61. package/dist/presencelist/view/presencedropdownlistitemview.d.ts +19 -0
  62. package/dist/presencelist/view/presencedropdownlistview.d.ts +36 -0
  63. package/dist/presencelist/view/presenceinlinelistitemview.d.ts +23 -0
  64. package/dist/presencelist/view/presenceinlinelistview.d.ts +38 -0
  65. package/dist/presencelist/view/presencelistview.d.ts +24 -0
  66. package/dist/presencelist.d.ts +40 -0
  67. package/dist/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +64 -0
  68. package/dist/realtimecollaborativecomments.d.ts +48 -0
  69. package/dist/realtimecollaborativeediting/realtimecollaborationclient.d.ts +149 -0
  70. package/dist/realtimecollaborativeediting/sessions.d.ts +130 -0
  71. package/dist/realtimecollaborativeediting/usermarkers.d.ts +52 -0
  72. package/dist/realtimecollaborativeediting/websocketgateway.d.ts +67 -0
  73. package/dist/realtimecollaborativeediting.d.ts +38 -0
  74. package/dist/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +49 -0
  75. package/dist/realtimecollaborativerevisionhistory.d.ts +41 -0
  76. package/dist/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +43 -0
  77. package/dist/realtimecollaborativetrackchanges.d.ts +39 -0
  78. package/dist/translations/ar.d.ts +8 -0
  79. package/dist/translations/ar.js +23 -0
  80. package/dist/translations/ar.umd.js +23 -0
  81. package/dist/translations/bg.d.ts +8 -0
  82. package/dist/translations/bg.js +23 -0
  83. package/dist/translations/bg.umd.js +23 -0
  84. package/dist/translations/bn.d.ts +8 -0
  85. package/dist/translations/bn.js +23 -0
  86. package/dist/translations/bn.umd.js +23 -0
  87. package/dist/translations/ca.d.ts +8 -0
  88. package/dist/translations/ca.js +23 -0
  89. package/dist/translations/ca.umd.js +23 -0
  90. package/dist/translations/cs.d.ts +8 -0
  91. package/dist/translations/cs.js +23 -0
  92. package/dist/translations/cs.umd.js +23 -0
  93. package/dist/translations/da.d.ts +8 -0
  94. package/dist/translations/da.js +23 -0
  95. package/dist/translations/da.umd.js +23 -0
  96. package/dist/translations/de-ch.d.ts +8 -0
  97. package/dist/translations/de-ch.js +23 -0
  98. package/dist/translations/de-ch.umd.js +23 -0
  99. package/dist/translations/de.d.ts +8 -0
  100. package/dist/translations/de.js +23 -0
  101. package/dist/translations/de.umd.js +23 -0
  102. package/dist/translations/el.d.ts +8 -0
  103. package/dist/translations/el.js +23 -0
  104. package/dist/translations/el.umd.js +23 -0
  105. package/dist/translations/en-au.d.ts +8 -0
  106. package/dist/translations/en-au.js +23 -0
  107. package/dist/translations/en-au.umd.js +23 -0
  108. package/dist/translations/en.d.ts +8 -0
  109. package/dist/translations/en.js +23 -0
  110. package/dist/translations/en.umd.js +23 -0
  111. package/dist/translations/es.d.ts +8 -0
  112. package/dist/translations/es.js +23 -0
  113. package/dist/translations/es.umd.js +23 -0
  114. package/dist/translations/et.d.ts +8 -0
  115. package/dist/translations/et.js +23 -0
  116. package/dist/translations/et.umd.js +23 -0
  117. package/dist/translations/fa.d.ts +8 -0
  118. package/dist/translations/fa.js +23 -0
  119. package/dist/translations/fa.umd.js +23 -0
  120. package/dist/translations/fi.d.ts +8 -0
  121. package/dist/translations/fi.js +23 -0
  122. package/dist/translations/fi.umd.js +23 -0
  123. package/dist/translations/fr.d.ts +8 -0
  124. package/dist/translations/fr.js +23 -0
  125. package/dist/translations/fr.umd.js +23 -0
  126. package/dist/translations/gl.d.ts +8 -0
  127. package/dist/translations/gl.js +23 -0
  128. package/dist/translations/gl.umd.js +23 -0
  129. package/dist/translations/he.d.ts +8 -0
  130. package/dist/translations/he.js +23 -0
  131. package/dist/translations/he.umd.js +23 -0
  132. package/dist/translations/hi.d.ts +8 -0
  133. package/dist/translations/hi.js +23 -0
  134. package/dist/translations/hi.umd.js +23 -0
  135. package/dist/translations/hr.d.ts +8 -0
  136. package/dist/translations/hr.js +23 -0
  137. package/dist/translations/hr.umd.js +23 -0
  138. package/dist/translations/hu.d.ts +8 -0
  139. package/dist/translations/hu.js +23 -0
  140. package/dist/translations/hu.umd.js +23 -0
  141. package/dist/translations/id.d.ts +8 -0
  142. package/dist/translations/id.js +23 -0
  143. package/dist/translations/id.umd.js +23 -0
  144. package/dist/translations/it.d.ts +8 -0
  145. package/dist/translations/it.js +23 -0
  146. package/dist/translations/it.umd.js +23 -0
  147. package/dist/translations/ja.d.ts +8 -0
  148. package/dist/translations/ja.js +23 -0
  149. package/dist/translations/ja.umd.js +23 -0
  150. package/dist/translations/ko.d.ts +8 -0
  151. package/dist/translations/ko.js +23 -0
  152. package/dist/translations/ko.umd.js +23 -0
  153. package/dist/translations/lt.d.ts +8 -0
  154. package/dist/translations/lt.js +23 -0
  155. package/dist/translations/lt.umd.js +23 -0
  156. package/dist/translations/lv.d.ts +8 -0
  157. package/dist/translations/lv.js +23 -0
  158. package/dist/translations/lv.umd.js +23 -0
  159. package/dist/translations/ms.d.ts +8 -0
  160. package/dist/translations/ms.js +23 -0
  161. package/dist/translations/ms.umd.js +23 -0
  162. package/dist/translations/nl.d.ts +8 -0
  163. package/dist/translations/nl.js +23 -0
  164. package/dist/translations/nl.umd.js +23 -0
  165. package/dist/translations/no.d.ts +8 -0
  166. package/dist/translations/no.js +23 -0
  167. package/dist/translations/no.umd.js +23 -0
  168. package/dist/translations/pl.d.ts +8 -0
  169. package/dist/translations/pl.js +23 -0
  170. package/dist/translations/pl.umd.js +23 -0
  171. package/dist/translations/pt-br.d.ts +8 -0
  172. package/dist/translations/pt-br.js +23 -0
  173. package/dist/translations/pt-br.umd.js +23 -0
  174. package/dist/translations/pt.d.ts +8 -0
  175. package/dist/translations/pt.js +23 -0
  176. package/dist/translations/pt.umd.js +23 -0
  177. package/dist/translations/ro.d.ts +8 -0
  178. package/dist/translations/ro.js +23 -0
  179. package/dist/translations/ro.umd.js +23 -0
  180. package/dist/translations/ru.d.ts +8 -0
  181. package/dist/translations/ru.js +23 -0
  182. package/dist/translations/ru.umd.js +23 -0
  183. package/dist/translations/sk.d.ts +8 -0
  184. package/dist/translations/sk.js +23 -0
  185. package/dist/translations/sk.umd.js +23 -0
  186. package/dist/translations/sr-latn.d.ts +8 -0
  187. package/dist/translations/sr-latn.js +23 -0
  188. package/dist/translations/sr-latn.umd.js +23 -0
  189. package/dist/translations/sr.d.ts +8 -0
  190. package/dist/translations/sr.js +23 -0
  191. package/dist/translations/sr.umd.js +23 -0
  192. package/dist/translations/sv.d.ts +8 -0
  193. package/dist/translations/sv.js +23 -0
  194. package/dist/translations/sv.umd.js +23 -0
  195. package/dist/translations/th.d.ts +8 -0
  196. package/dist/translations/th.js +23 -0
  197. package/dist/translations/th.umd.js +23 -0
  198. package/dist/translations/tk.d.ts +8 -0
  199. package/dist/translations/tk.js +23 -0
  200. package/dist/translations/tk.umd.js +23 -0
  201. package/dist/translations/tr.d.ts +8 -0
  202. package/dist/translations/tr.js +23 -0
  203. package/dist/translations/tr.umd.js +23 -0
  204. package/dist/translations/uk.d.ts +8 -0
  205. package/dist/translations/uk.js +23 -0
  206. package/dist/translations/uk.umd.js +23 -0
  207. package/dist/translations/vi.d.ts +8 -0
  208. package/dist/translations/vi.js +23 -0
  209. package/dist/translations/vi.umd.js +23 -0
  210. package/dist/translations/zh-cn.d.ts +8 -0
  211. package/dist/translations/zh-cn.js +23 -0
  212. package/dist/translations/zh-cn.umd.js +23 -0
  213. package/dist/translations/zh.d.ts +8 -0
  214. package/dist/translations/zh.js +23 -0
  215. package/dist/translations/zh.umd.js +23 -0
  216. package/lang/contexts.json +12 -0
  217. package/lang/translations/ar.po +64 -0
  218. package/lang/translations/bg.po +60 -0
  219. package/lang/translations/bn.po +60 -0
  220. package/lang/translations/ca.po +60 -0
  221. package/lang/translations/cs.po +62 -0
  222. package/lang/translations/da.po +60 -0
  223. package/lang/translations/de-ch.po +60 -0
  224. package/lang/translations/de.po +60 -0
  225. package/lang/translations/el.po +60 -0
  226. package/lang/translations/en-au.po +60 -0
  227. package/lang/translations/en.po +60 -0
  228. package/lang/translations/es.po +61 -0
  229. package/lang/translations/et.po +60 -0
  230. package/lang/translations/fa.po +60 -0
  231. package/lang/translations/fi.po +60 -0
  232. package/lang/translations/fr.po +61 -0
  233. package/lang/translations/gl.po +60 -0
  234. package/lang/translations/he.po +61 -0
  235. package/lang/translations/hi.po +60 -0
  236. package/lang/translations/hr.po +61 -0
  237. package/lang/translations/hu.po +60 -0
  238. package/lang/translations/id.po +59 -0
  239. package/lang/translations/it.po +61 -0
  240. package/lang/translations/ja.po +59 -0
  241. package/lang/translations/ko.po +59 -0
  242. package/lang/translations/lt.po +62 -0
  243. package/lang/translations/lv.po +61 -0
  244. package/lang/translations/ms.po +59 -0
  245. package/lang/translations/nl.po +60 -0
  246. package/lang/translations/no.po +60 -0
  247. package/lang/translations/pl.po +62 -0
  248. package/lang/translations/pt-br.po +61 -0
  249. package/lang/translations/pt.po +61 -0
  250. package/lang/translations/ro.po +61 -0
  251. package/lang/translations/ru.po +62 -0
  252. package/lang/translations/sk.po +62 -0
  253. package/lang/translations/sr-latn.po +61 -0
  254. package/lang/translations/sr.po +61 -0
  255. package/lang/translations/sv.po +60 -0
  256. package/lang/translations/th.po +59 -0
  257. package/lang/translations/tk.po +60 -0
  258. package/lang/translations/tr.po +60 -0
  259. package/lang/translations/uk.po +62 -0
  260. package/lang/translations/vi.po +59 -0
  261. package/lang/translations/zh-cn.po +59 -0
  262. package/lang/translations/zh.po +59 -0
  263. package/package.json +57 -0
  264. package/src/augmentation.d.ts +64 -0
  265. package/src/augmentation.js +23 -0
  266. package/src/common-translations.d.ts +9 -0
  267. package/src/common-translations.js +23 -0
  268. package/src/config.d.ts +48 -0
  269. package/src/config.js +23 -0
  270. package/src/index.d.ts +14 -0
  271. package/src/index.js +23 -0
  272. package/src/presencelist/presencelistui.d.ts +47 -0
  273. package/src/presencelist/presencelistui.js +23 -0
  274. package/src/presencelist/view/presencecounterview.d.ts +11 -0
  275. package/src/presencelist/view/presencecounterview.js +23 -0
  276. package/src/presencelist/view/presencedropdownlistitemview.d.ts +15 -0
  277. package/src/presencelist/view/presencedropdownlistitemview.js +23 -0
  278. package/src/presencelist/view/presencedropdownlistview.d.ts +32 -0
  279. package/src/presencelist/view/presencedropdownlistview.js +23 -0
  280. package/src/presencelist/view/presenceinlinelistitemview.d.ts +19 -0
  281. package/src/presencelist/view/presenceinlinelistitemview.js +23 -0
  282. package/src/presencelist/view/presenceinlinelistview.d.ts +34 -0
  283. package/src/presencelist/view/presenceinlinelistview.js +23 -0
  284. package/src/presencelist/view/presencelistview.d.ts +20 -0
  285. package/src/presencelist/view/presencelistview.js +23 -0
  286. package/src/presencelist.d.ts +36 -0
  287. package/src/presencelist.js +23 -0
  288. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +60 -0
  289. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +23 -0
  290. package/src/realtimecollaborativecomments.d.ts +44 -0
  291. package/src/realtimecollaborativecomments.js +23 -0
  292. package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +145 -0
  293. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +23 -0
  294. package/src/realtimecollaborativeediting/sessions.d.ts +126 -0
  295. package/src/realtimecollaborativeediting/sessions.js +23 -0
  296. package/src/realtimecollaborativeediting/usermarkers.d.ts +48 -0
  297. package/src/realtimecollaborativeediting/usermarkers.js +23 -0
  298. package/src/realtimecollaborativeediting/websocketgateway.d.ts +63 -0
  299. package/src/realtimecollaborativeediting/websocketgateway.js +23 -0
  300. package/src/realtimecollaborativeediting.d.ts +34 -0
  301. package/src/realtimecollaborativeediting.js +23 -0
  302. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +45 -0
  303. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +23 -0
  304. package/src/realtimecollaborativerevisionhistory.d.ts +37 -0
  305. package/src/realtimecollaborativerevisionhistory.js +23 -0
  306. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +39 -0
  307. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +23 -0
  308. package/src/realtimecollaborativetrackchanges.d.ts +35 -0
  309. package/src/realtimecollaborativetrackchanges.js +23 -0
  310. package/theme/presencelist.css +262 -0
  311. package/theme/usermarkers.css +107 -0
package/dist/index.css ADDED
@@ -0,0 +1,423 @@
1
+ /**
2
+ * @license 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
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
7
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
8
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
9
+ *
10
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
11
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
12
+ */
13
+
14
+ .ck .ck-user__marker-dot {
15
+ /* If you are looking for handling dot color, see `usercolors.css` in the `ckeditor5-collaboration-core`. */
16
+ display: block;
17
+ position: absolute;
18
+ left: 50%;
19
+
20
+ /* #124 */
21
+ top: calc( ( var(--ck-user-dot-size) / 2 ) * -1 );
22
+
23
+ width: var(--ck-user-dot-size);
24
+ height: var(--ck-user-dot-size);
25
+ border-radius: 50%;
26
+ transform: translate( -50%, -50% );
27
+ cursor: default;
28
+ }
29
+
30
+ .ck .ck-user__marker-tooltip {
31
+ display: none;
32
+ position: absolute;
33
+
34
+ /* It should be one font in case of inheriting (example: headers sans-serif and content serif type). */
35
+ font-family: Georgia, sans-serif;
36
+
37
+ /* It should be px value in case of inheriting (like headers example). */
38
+ font-size: var(--ck-font-size-base);
39
+
40
+ /* In case of inheriting from various components. */
41
+ line-height: 1;
42
+ font-style: initial;
43
+ font-weight: initial;
44
+
45
+ left: 0;
46
+ opacity: 0;
47
+
48
+ /* Moving up this element with 100% of its height. */
49
+ top: -20px;
50
+
51
+ padding: var(--ck-spacing-small);
52
+ color: hsl(0, 0%, 100%);
53
+ white-space: nowrap;
54
+ transition: opacity 200ms linear, transform 300ms ease-in-out;
55
+ z-index: 99999;
56
+ }
57
+
58
+ @media (prefers-reduced-motion: reduce) {
59
+
60
+ .ck .ck-user__marker-tooltip {
61
+ transition: none;
62
+ }
63
+ }
64
+
65
+ .ck .ck-user__marker-line {
66
+ /* If you are looking for handling line color, see `usercolors.css` in the `ckeditor5-collaboration-core`. */
67
+ position: absolute;
68
+ bottom: 0;
69
+ height: 100%;
70
+ width: 0;
71
+ }
72
+
73
+ .ck .ck-user__marker {
74
+ display: inline;
75
+ position: relative;
76
+ cursor: default;
77
+ }
78
+
79
+ .ck .ck-user__marker.ck-user__marker_hovered .ck-user__marker-dot {
80
+ width: 0;
81
+ }
82
+
83
+ .ck .ck-user__marker.ck-user__marker_hovered .ck-user__marker-tooltip {
84
+ display: block;
85
+ opacity: 1;
86
+ animation: fadeInLeft 300ms ease-in-out;
87
+ }
88
+
89
+ .ck .ck-placeholder .ck-user__marker {
90
+ display: none;
91
+ }
92
+
93
+ @media (prefers-reduced-motion: reduce) {
94
+ .ck .ck-user__marker, .ck .ck-user__marker *, .ck .ck-user__marker::after {
95
+ animation: none !important;
96
+ }
97
+ }
98
+
99
+ @keyframes fadeInLeft {
100
+ from {
101
+ opacity: 0;
102
+ transform: translateX( -10px );
103
+ }
104
+ to {
105
+ opacity: 1;
106
+ transform: translateX( 0 );
107
+ }
108
+ }
109
+
110
+ /*
111
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
112
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
113
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
114
+ *
115
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
116
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
117
+ */
118
+
119
+ /*
120
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
121
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
122
+ */
123
+
124
+ /*
125
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
126
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
127
+ */
128
+
129
+ /**
130
+ * Makes element unselectable.
131
+ */
132
+
133
+ .ck.ck-balloon-panel.ck-tooltip {
134
+ -moz-user-select: none;
135
+ -webkit-user-select: none;
136
+ -ms-user-select: none;
137
+ user-select: none;
138
+
139
+ z-index: calc( var(--ck-z-dialog) + 100 );
140
+ }
141
+ /*
142
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
143
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
144
+ */
145
+ /**
146
+ * A helper to combine multiple shadows.
147
+ */
148
+ /**
149
+ * Gives an element a drop shadow so it looks like a floating panel.
150
+ */
151
+ /*
152
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
153
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
154
+ */
155
+ /**
156
+ * A visual style of focused element's border.
157
+ */
158
+ /*
159
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
160
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
161
+ */
162
+ /**
163
+ * Implements rounded corner interface for .ck-rounded-corners class.
164
+ *
165
+ * @see $ck-border-radius
166
+ */
167
+
168
+ :root {
169
+ --ck-color-presence-list-dropdown-background: hsl(0, 0%, 100%);
170
+ --ck-color-presence-list-dropdown-arrow-border: hsl(0, 0%, 92%);
171
+
172
+ --ck-presence-list-dropdown-list-max-width: 250px;
173
+ --ck-presence-list-dropdown-list-min-width: 180px;
174
+
175
+ --ck-presence-list-users-tooltip-max-width: 120px;
176
+ --ck-presence-list-users-tooltip-min-width: 25px;
177
+ }
178
+
179
+ .ck.ck-presence-list {
180
+ display: flex;
181
+ align-items: center;
182
+ margin-right: var(--ck-spacing-standard);
183
+ transition: margin-right 200ms ease-in-out;
184
+ font-size: var(--ck-font-size-base);
185
+ }
186
+
187
+ .ck.ck-presence-list * {
188
+ box-sizing: border-box;
189
+ }
190
+
191
+ .ck.ck-presence-list__list {
192
+ display: flex;
193
+ flex-direction: row;
194
+
195
+ /* Taking care about margin animation in collapsed mode. */
196
+ justify-content: flex-end;
197
+ }
198
+
199
+ .ck.ck-presence-list__counter {
200
+ color: var(--ck-color-base-text);
201
+ margin-right: var(--ck-spacing-large);
202
+ }
203
+
204
+ .ck.ck-presence-list__counter--hidden {
205
+ display: none;
206
+ }
207
+
208
+ .ck.ck-presence-list__list-item {
209
+ /**
210
+ * Reset default CK5 button styles - `.ck-reset__all *`.
211
+ * Reset default user agent button stylesheet too.
212
+ */
213
+ font: inherit;
214
+ color: inherit;
215
+ border: 1px solid transparent;
216
+ outline: none;
217
+ background: none;
218
+
219
+ position: relative;
220
+ margin-left: var(--ck-spacing-small);
221
+ }
222
+
223
+ .ck.ck-presence-list__list-item:focus {
224
+ border-radius: 0;
225
+ /* Disable native outline. */
226
+ outline: none;
227
+ border: var(--ck-focus-ring);
228
+ box-shadow: var(--ck-focus-outer-shadow), 0 0;
229
+ }
230
+
231
+ .ck-rounded-corners .ck.ck-presence-list__list-item:focus,
232
+ .ck.ck-presence-list__list-item.ck-rounded-corners:focus {
233
+ border-radius: var(--ck-border-radius);
234
+ }
235
+
236
+ .ck.ck-presence-list__list-item .ck-label {
237
+ /*
238
+ * Forces screen reader to read label despite the fact that it is hidden.
239
+ * Placing `display: none` on the element will prevent screen reader from reading it.
240
+ */
241
+ overflow: hidden;
242
+ height: 0px;
243
+ width: 0px;
244
+ }
245
+
246
+ .ck.ck-tooltip.ck-presence-list__list-item__tooltip > .ck-tooltip__text {
247
+ display: inline-block;
248
+ max-width: var(--ck-presence-list-users-tooltip-max-width);
249
+ overflow: hidden;
250
+ text-align: center;
251
+ text-overflow: ellipsis;
252
+ white-space: nowrap;
253
+ }
254
+
255
+ .ck.ck-presence-list__marker {
256
+ position: relative;
257
+ display: block;
258
+ width: 100%;
259
+ height: 3px;
260
+ margin-top: 3px;
261
+ }
262
+
263
+ /**
264
+ * Add better UX behavior of button to the `clickable` elements.
265
+ * We need to create stronger specificity than `.ck.ck-reset__all *`.
266
+ */
267
+ .ck-presence-list__list button.ck-presence-list__list-item *,
268
+ .ck-presence-list__balloon button.ck-presence-list__dropdown-list-item * {
269
+ cursor: pointer;
270
+ }
271
+
272
+ .ck.ck-presence-list--collapsed .ck-presence-list__list {
273
+ border: 1px solid transparent;
274
+
275
+ /* Because of moving avatars to the right with margin-left we need to set min-width of container. */
276
+ min-width: calc( var(--ck-user-avatar-size) * 2 );
277
+ }
278
+
279
+ .ck.ck-presence-list--collapsed .ck-presence-list__list * {
280
+ cursor: pointer;
281
+ transition: all 400ms ease-in-out;
282
+ }
283
+
284
+ .ck.ck-presence-list--collapsed .ck-presence-list__list:focus {
285
+ border-radius: 0;
286
+ /* Disable native outline. */
287
+ outline: none;
288
+ border: var(--ck-focus-ring);
289
+ box-shadow: var(--ck-focus-outer-shadow), 0 0;
290
+ }
291
+
292
+ .ck-rounded-corners .ck.ck-presence-list--collapsed .ck-presence-list__list:focus,
293
+ .ck.ck-presence-list--collapsed .ck-presence-list__list.ck-rounded-corners:focus {
294
+ border-radius: var(--ck-border-radius);
295
+ }
296
+
297
+ .ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item {
298
+ /* Adding extra px to create collapsed effect. */
299
+ margin-left: calc( var(--ck-user-avatar-size) * -1 + 7px);
300
+
301
+ /* Reset focus borders */
302
+ border: 0;
303
+ padding: 0;
304
+ }
305
+
306
+ .ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:last-child {
307
+ order: unset;
308
+ }
309
+
310
+ .ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(2) {
311
+ opacity: .75;
312
+ }
313
+
314
+ .ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(3) {
315
+ opacity: .55;
316
+ }
317
+
318
+ .ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(4) {
319
+ opacity: .35;
320
+ }
321
+
322
+ .ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(5) {
323
+ opacity: .15;
324
+ }
325
+
326
+ .ck.ck-presence-list--collapsed .ck.ck-presence-list__list-item:nth-last-child(n+6) {
327
+ display: none;
328
+ }
329
+
330
+ .ck.ck-presence-list__balloon {
331
+ /* Overwrite arrows background of balloon */
332
+ --ck-color-panel-border: var(--ck-color-presence-list-dropdown-arrow-border);
333
+ --ck-color-panel-background: var(--ck-color-presence-list-dropdown-background);
334
+
335
+ background-color: var(--ck-color-presence-list-dropdown-background);
336
+ border: 0;
337
+ opacity: 1;
338
+ animation: 300ms fadeIn ease-in-out;
339
+ }
340
+
341
+ @media (prefers-reduced-motion: reduce) {
342
+
343
+ .ck.ck-presence-list__balloon {
344
+ animation: none;
345
+ }
346
+ }
347
+
348
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-wrapper {
349
+ min-width: var(--ck-presence-list-dropdown-list-min-width);
350
+ max-width: var(--ck-presence-list-dropdown-list-max-width);
351
+ border-radius: var(--ck-border-radius);
352
+
353
+ /*
354
+ * Make it scrollable to prevent truncate of focus ring and shadow.
355
+ * It's temporary fix, we should rethink max-height of dropdown
356
+ */
357
+ }
358
+
359
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-wrapper.ck-presence-list__dropdown-list-wrapper_scrollable {
360
+ max-height: 80vh;
361
+ overflow-y: auto;
362
+ overflow-x: hidden;
363
+ }
364
+
365
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-item {
366
+ /**
367
+ * Reset default CK5 button styles - `.ck-reset__all *`.
368
+ * Reset default user agent button stylesheet too.
369
+ */
370
+ font: inherit;
371
+ color: inherit;
372
+ outline: none;
373
+ border: 0;
374
+ background: none;
375
+
376
+ display: flex;
377
+ align-items: center;
378
+ position: relative;
379
+ padding: var(--ck-spacing-standard);
380
+ }
381
+
382
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-item:focus {
383
+ position: relative;
384
+ z-index: 1;
385
+ outline: var(--ck-focus-ring);
386
+ outline-offset: -1px;
387
+
388
+ box-shadow: var(--ck-focus-outer-shadow), 0 0;
389
+ }
390
+
391
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-item:first-of-type .ck-presence-list__marker {
392
+ border-top-left-radius: var(--ck-border-radius);
393
+ }
394
+
395
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list-item:last-of-type .ck-presence-list__marker {
396
+ border-bottom-left-radius: var(--ck-border-radius);
397
+ }
398
+
399
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list .ck-user__full-name {
400
+ white-space: nowrap;
401
+ overflow: hidden;
402
+ text-overflow: ellipsis;
403
+ color: var(--ck-color-base-text);
404
+ margin-left: var(--ck-spacing-standard);
405
+ }
406
+
407
+ .ck.ck-presence-list__balloon .ck.ck-presence-list__dropdown-list .ck.ck-presence-list__marker {
408
+ position: absolute;
409
+ left: 0;
410
+ margin: 0;
411
+ height: 100%;
412
+ width: 3px;
413
+ }
414
+
415
+ @keyframes fadeIn {
416
+ from {
417
+ opacity: 0;
418
+ }
419
+
420
+ to {
421
+ opacity: 1;
422
+ }
423
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ export { default as RealTimeCollaborativeEditing } from './realtimecollaborativeediting.js';
10
+ export { default as RealTimeCollaborativeTrackChanges } from './realtimecollaborativetrackchanges.js';
11
+ export { default as RealTimeCollaborativeComments } from './realtimecollaborativecomments.js';
12
+ export { default as RealTimeCollaborativeRevisionHistory } from './realtimecollaborativerevisionhistory.js';
13
+ export { default as CloudServicesCommentsAdapter } from './realtimecollaborativecomments/cloudservicescommentsadapter.js';
14
+ export { default as CloudServicesTrackChangesAdapter } from './realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js';
15
+ export { default as CloudServicesRevisionHistoryAdapter } from './realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js';
16
+ export { default as RealTimeCollaborationClient } from './realtimecollaborativeediting/realtimecollaborationclient.js';
17
+ export { default as PresenceList } from './presencelist.js';
18
+ import './augmentation.js';