@ckeditor/ckeditor5-collaboration-core 42.0.2 → 43.0.0-alpha.1

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 (153) hide show
  1. package/CHANGELOG.md +1 -101
  2. package/dist/index-content.css +49 -0
  3. package/dist/index-editor.css +23 -1
  4. package/dist/index.css +143 -1
  5. package/dist/index.d.ts +4 -1
  6. package/dist/index.js +1 -1
  7. package/dist/suggestions/view/ariadescriptionview.d.ts +27 -0
  8. package/dist/suggestions/view/latefocusbuttonview.d.ts +41 -0
  9. package/dist/suggestionstyles.d.ts +2 -0
  10. package/dist/translations/af.js +1 -1
  11. package/dist/translations/af.umd.js +1 -1
  12. package/dist/translations/ar.js +1 -1
  13. package/dist/translations/ar.umd.js +1 -1
  14. package/dist/translations/az.js +1 -1
  15. package/dist/translations/az.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/fa.js +1 -1
  44. package/dist/translations/fa.umd.js +1 -1
  45. package/dist/translations/fi.js +1 -1
  46. package/dist/translations/fi.umd.js +1 -1
  47. package/dist/translations/fr.js +1 -1
  48. package/dist/translations/fr.umd.js +1 -1
  49. package/dist/translations/gl.js +1 -1
  50. package/dist/translations/gl.umd.js +1 -1
  51. package/dist/translations/he.js +1 -1
  52. package/dist/translations/he.umd.js +1 -1
  53. package/dist/translations/hi.js +1 -1
  54. package/dist/translations/hi.umd.js +1 -1
  55. package/dist/translations/hr.js +1 -1
  56. package/dist/translations/hr.umd.js +1 -1
  57. package/dist/translations/hu.js +1 -1
  58. package/dist/translations/hu.umd.js +1 -1
  59. package/dist/translations/id.js +1 -1
  60. package/dist/translations/id.umd.js +1 -1
  61. package/dist/translations/it.js +1 -1
  62. package/dist/translations/it.umd.js +1 -1
  63. package/dist/translations/ja.js +1 -1
  64. package/dist/translations/ja.umd.js +1 -1
  65. package/dist/translations/jv.js +1 -1
  66. package/dist/translations/jv.umd.js +1 -1
  67. package/dist/translations/ko.js +1 -1
  68. package/dist/translations/ko.umd.js +1 -1
  69. package/dist/translations/lt.js +1 -1
  70. package/dist/translations/lt.umd.js +1 -1
  71. package/dist/translations/lv.js +1 -1
  72. package/dist/translations/lv.umd.js +1 -1
  73. package/dist/translations/ms.js +1 -1
  74. package/dist/translations/ms.umd.js +1 -1
  75. package/dist/translations/nl.js +1 -1
  76. package/dist/translations/nl.umd.js +1 -1
  77. package/dist/translations/no.js +1 -1
  78. package/dist/translations/no.umd.js +1 -1
  79. package/dist/translations/pl.js +1 -1
  80. package/dist/translations/pl.umd.js +1 -1
  81. package/dist/translations/pt-br.js +1 -1
  82. package/dist/translations/pt-br.umd.js +1 -1
  83. package/dist/translations/pt.js +1 -1
  84. package/dist/translations/pt.umd.js +1 -1
  85. package/dist/translations/ro.js +1 -1
  86. package/dist/translations/ro.umd.js +1 -1
  87. package/dist/translations/ru.js +1 -1
  88. package/dist/translations/ru.umd.js +1 -1
  89. package/dist/translations/sk.js +1 -1
  90. package/dist/translations/sk.umd.js +1 -1
  91. package/dist/translations/sr-latn.js +1 -1
  92. package/dist/translations/sr-latn.umd.js +1 -1
  93. package/dist/translations/sr.js +1 -1
  94. package/dist/translations/sr.umd.js +1 -1
  95. package/dist/translations/sv.js +1 -1
  96. package/dist/translations/sv.umd.js +1 -1
  97. package/dist/translations/th.js +1 -1
  98. package/dist/translations/th.umd.js +1 -1
  99. package/dist/translations/tk.js +1 -1
  100. package/dist/translations/tk.umd.js +1 -1
  101. package/dist/translations/tr.js +1 -1
  102. package/dist/translations/tr.umd.js +1 -1
  103. package/dist/translations/tt.js +1 -1
  104. package/dist/translations/tt.umd.js +1 -1
  105. package/dist/translations/ug.js +1 -1
  106. package/dist/translations/ug.umd.js +1 -1
  107. package/dist/translations/uk.js +1 -1
  108. package/dist/translations/uk.umd.js +1 -1
  109. package/dist/translations/ur.js +1 -1
  110. package/dist/translations/ur.umd.js +1 -1
  111. package/dist/translations/vi.js +1 -1
  112. package/dist/translations/vi.umd.js +1 -1
  113. package/dist/translations/zh-cn.js +1 -1
  114. package/dist/translations/zh-cn.umd.js +1 -1
  115. package/dist/translations/zh.js +1 -1
  116. package/dist/translations/zh.umd.js +1 -1
  117. package/dist/utils/confirmmixin.d.ts +5 -1
  118. package/dist/utils/confirmview.d.ts +20 -4
  119. package/dist/utils/hashobject.d.ts +1 -1
  120. package/dist/utils/sanitizeEditorConfig.d.ts +1 -1
  121. package/dist/utils/setupthreadkeyboardnavigation.d.ts +49 -0
  122. package/dist/utils/trim-html.d.ts +3 -0
  123. package/package.json +6 -5
  124. package/src/index.d.ts +4 -1
  125. package/src/index.js +1 -1
  126. package/src/permissions.js +1 -1
  127. package/src/suggestions/view/ariadescriptionview.d.ts +23 -0
  128. package/src/suggestions/view/ariadescriptionview.js +23 -0
  129. package/src/suggestions/view/latefocusbuttonview.d.ts +37 -0
  130. package/src/suggestions/view/latefocusbuttonview.js +23 -0
  131. package/src/suggestionstyles.d.ts +2 -0
  132. package/src/suggestionstyles.js +1 -1
  133. package/src/users/view/userview.js +1 -1
  134. package/src/users.js +1 -1
  135. package/src/utils/common-translations.js +1 -1
  136. package/src/utils/confirmmixin.d.ts +5 -1
  137. package/src/utils/confirmmixin.js +1 -1
  138. package/src/utils/confirmview.d.ts +20 -4
  139. package/src/utils/confirmview.js +1 -1
  140. package/src/utils/getdatetimeformatter.js +1 -1
  141. package/src/utils/getmarkerdomelement.js +1 -1
  142. package/src/utils/hashobject.d.ts +1 -1
  143. package/src/utils/hashobject.js +1 -1
  144. package/src/utils/sanitizeEditorConfig.d.ts +1 -1
  145. package/src/utils/sanitizeEditorConfig.js +1 -1
  146. package/src/utils/setupthreadkeyboardnavigation.d.ts +45 -0
  147. package/src/utils/setupthreadkeyboardnavigation.js +23 -0
  148. package/src/utils/surroundingmarkersdetector.js +1 -1
  149. package/src/utils/trim-html.d.ts +3 -0
  150. package/src/utils/trim-html.js +1 -1
  151. package/theme/ariadescription.css +12 -0
  152. package/theme/integrations/mergefields.css +67 -0
  153. package/theme/suggestion.css +29 -1
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, 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 _0x40e727=_0x41b8;(function(_0x14f5f4,_0x510944){const _0x2d4916=_0x41b8,_0x3c957c=_0x14f5f4();while(!![]){try{const _0x3c8521=parseInt(_0x2d4916(0x1d0))/0x1+-parseInt(_0x2d4916(0x1e7))/0x2*(parseInt(_0x2d4916(0x1d4))/0x3)+-parseInt(_0x2d4916(0x1ea))/0x4*(-parseInt(_0x2d4916(0x1df))/0x5)+-parseInt(_0x2d4916(0x1dc))/0x6*(-parseInt(_0x2d4916(0x1d8))/0x7)+parseInt(_0x2d4916(0x1e4))/0x8*(parseInt(_0x2d4916(0x1f4))/0x9)+parseInt(_0x2d4916(0x1f2))/0xa+-parseInt(_0x2d4916(0x1cc))/0xb*(parseInt(_0x2d4916(0x1e9))/0xc);if(_0x3c8521===_0x510944)break;else _0x3c957c['push'](_0x3c957c['shift']());}catch(_0x1e2d13){_0x3c957c['push'](_0x3c957c['shift']());}}}(_0x43e7,0x446cd));import{isViewWithFocusCycler as _0x43ab64}from'ckeditor5/src/ui.js';export const ENTER_THREAD_KEYSTROKE=_0x40e727(0x1ce);function _0x41b8(_0x32d31b,_0x52886a){const _0x43e7f9=_0x43e7();return _0x41b8=function(_0x41b851,_0x4d0e6b){_0x41b851=_0x41b851-0x1cc;let _0x27b876=_0x43e7f9[_0x41b851];return _0x27b876;},_0x41b8(_0x32d31b,_0x52886a);}export default function T(_0x27cc7a,_0x3d7d7a){const _0x4f16c1=_0x40e727,_0x593375=_0x27cc7a[_0x4f16c1(0x1e8)];_0x27cc7a[_0x4f16c1(0x1d3)][_0x4f16c1(0x1e1)](_0x593375);for(const _0x186ebd of _0x3d7d7a)K(_0x27cc7a,_0x186ebd);_0x3d7d7a['on'](_0x4f16c1(0x1d7),(_0x4c859e,_0x5644e3)=>{const _0xe74dc9=_0x4f16c1;for(const _0x403ba1 of _0x5644e3[_0xe74dc9(0x1ef)])_(_0x27cc7a,_0x403ba1);for(const _0x5bf19a of Array[_0xe74dc9(0x1f3)](_0x5644e3[_0xe74dc9(0x1da)])[_0xe74dc9(0x1ec)]())K(_0x27cc7a,_0x5bf19a);}),_0x27cc7a[_0x4f16c1(0x1d3)][_0x4f16c1(0x1ed)](_0x4f16c1(0x1cd),(_0x27926b,_0x1343ba)=>{const _0x50a8f5=_0x4f16c1;_0x593375===_0x27926b[_0x50a8f5(0x1f1)]&&(_0x27cc7a[_0x50a8f5(0x1e3)][_0x50a8f5(0x1de)](),_0x1343ba());},{'filter':_0x36a479=>_0x36a479[_0x4f16c1(0x1f1)]===_0x593375}),_0x27cc7a[_0x4f16c1(0x1d3)][_0x4f16c1(0x1ed)](_0x4f16c1(0x1f0),(_0x4ba551,_0x2309f2)=>{const _0x204415=_0x4f16c1;_0x593375!==_0x4ba551[_0x204415(0x1f1)]?_0x27cc7a[_0x204415(0x1dd)]():_0x27cc7a[_0x204415(0x1eb)](_0x204415(0x1e6)),_0x2309f2();}),_0x27cc7a[_0x4f16c1(0x1d3)][_0x4f16c1(0x1ed)](_0x4f16c1(0x1d6),(_0x161781,_0x4a8d3a)=>{const _0x403df6=_0x4f16c1;_0x593375===_0x161781[_0x403df6(0x1f1)]&&(_0x27cc7a[_0x403df6(0x1eb)](_0x403df6(0x1d6)),_0x4a8d3a());}),_0x27cc7a[_0x4f16c1(0x1d3)][_0x4f16c1(0x1ed)](_0x4f16c1(0x1d1),(_0x383f33,_0x183cbc)=>{const _0x5b5c56=_0x4f16c1;_0x593375===_0x383f33[_0x5b5c56(0x1f1)]&&(_0x27cc7a[_0x5b5c56(0x1eb)](_0x5b5c56(0x1d1)),_0x183cbc());});}function K(_0x17ffe0,_0x5a9a5b){const _0x1c7c27=_0x40e727;_0x5a9a5b[_0x1c7c27(0x1e0)]&&(_0x17ffe0[_0x1c7c27(0x1d9)][_0x1c7c27(0x1d5)](_0x5a9a5b[_0x1c7c27(0x1e8)]),_0x17ffe0[_0x1c7c27(0x1d3)][_0x1c7c27(0x1e1)](_0x5a9a5b[_0x1c7c27(0x1e8)]),_0x43ab64(_0x5a9a5b)&&function(_0x56036e,_0x314c87){const _0x1cb851=_0x1c7c27,_0x3c42ae=_0x56036e[_0x1cb851(0x1db)],_0x567c50=_0x314c87[_0x1cb851(0x1db)];for(const _0x442092 of Object[_0x1cb851(0x1e5)](_0x3c42ae))if(_0x442092 in _0x567c50&&_0x3c42ae[_0x442092]!==_0x567c50[_0x442092])return!0x1;return!0x0;}(_0x17ffe0[_0x1c7c27(0x1e3)],_0x5a9a5b[_0x1c7c27(0x1e3)])&&_0x17ffe0[_0x1c7c27(0x1e3)][_0x1c7c27(0x1cf)](_0x5a9a5b[_0x1c7c27(0x1e3)]));}function _0x43e7(){const _0x5ecc8c=['Ctrl+Shift+E','chain','172836eMFCIB','arrowup','stopListening','keystrokes','46473SiyyFQ','add','arrowdown','change','1321614nRfzQi','focusTracker','added','actions','12HzJeLb','focus','focusFirst','15140zbxVTk','isRendered','listenTo','unchain','focusCycler','9496sDfwkU','keys','escape','44OVUcip','element','5772kOBqgf','636PuQJkp','fire','reverse','set','remove','removed','esc','target','1551930eHwYKc','from','3699hoTrRy','24101meRHyP','enter'];_0x43e7=function(){return _0x5ecc8c;};return _0x43e7();}function _(_0x1475d7,_0x3c5a45){const _0x559d18=_0x40e727;_0x1475d7[_0x559d18(0x1d9)][_0x559d18(0x1ee)](_0x3c5a45[_0x559d18(0x1e8)]),_0x1475d7[_0x559d18(0x1d3)][_0x559d18(0x1d2)](_0x3c5a45[_0x559d18(0x1e8)]),_0x43ab64(_0x3c5a45)&&_0x1475d7[_0x559d18(0x1e3)][_0x559d18(0x1e2)](_0x3c5a45[_0x559d18(0x1e3)]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x28466f,_0x4baefe){const _0x23781a=_0x22fa,_0x31d8f4=_0x28466f();while(!![]){try{const _0x413c84=parseInt(_0x23781a(0x1bd))/0x1*(-parseInt(_0x23781a(0x1b2))/0x2)+-parseInt(_0x23781a(0x1af))/0x3*(-parseInt(_0x23781a(0x1b3))/0x4)+parseInt(_0x23781a(0x1b6))/0x5+-parseInt(_0x23781a(0x1b9))/0x6+parseInt(_0x23781a(0x1b1))/0x7+-parseInt(_0x23781a(0x1bb))/0x8+-parseInt(_0x23781a(0x1b4))/0x9*(-parseInt(_0x23781a(0x1be))/0xa);if(_0x413c84===_0x4baefe)break;else _0x31d8f4['push'](_0x31d8f4['shift']());}catch(_0x1846b7){_0x31d8f4['push'](_0x31d8f4['shift']());}}}(_0x2b2a,0x9acef));function _0x22fa(_0x348a9a,_0x1225b6){const _0x2b2a3c=_0x2b2a();return _0x22fa=function(_0x22fabe,_0x1dd57f){_0x22fabe=_0x22fabe-0x1ad;let _0x1fdba4=_0x2b2a3c[_0x22fabe];return _0x1fdba4;},_0x22fa(_0x348a9a,_0x1225b6);}export default function z(_0x12d001,_0xe25409){const _0x41fd3c=_0x22fa,_0x28426f=[];_0x12d001[_0x41fd3c(0x1b0)][_0x41fd3c(0x1b7)]['on'](_0x41fd3c(0x1ba),()=>{const _0x54e15f=_0x41fd3c,_0x379f38=function(_0x4ccb3a,_0x37b545){const _0x27156c=_0x22fa,_0x89902=[];for(const _0x1c5671 of _0x4ccb3a[_0x27156c(0x1ae)]){const _0x41658f=_0x1c5671[_0x27156c(0x1c1)]();(_0x41658f[_0x27156c(0x1ad)](_0x37b545)||_0x41658f[_0x27156c(0x1bf)][_0x27156c(0x1bc)](_0x37b545)||_0x41658f[_0x27156c(0x1c2)][_0x27156c(0x1bc)](_0x37b545))&&_0x89902[_0x27156c(0x1b8)](_0x1c5671);}return _0x89902;}(_0x12d001,_0x12d001[_0x54e15f(0x1b0)][_0x54e15f(0x1b7)][_0x54e15f(0x1c3)]),_0x3bb030=[],_0x19f242=[],_0x5bb973=[];for(const _0x31ceeb of _0x28426f)_0x379f38[_0x54e15f(0x1c0)](_0x31ceeb)||_0x3bb030[_0x54e15f(0x1b8)](_0x31ceeb);for(const _0x3319a4 of _0x379f38)_0x28426f[_0x54e15f(0x1c0)](_0x3319a4)||_0x19f242[_0x54e15f(0x1b8)](_0x3319a4),_0x5bb973[_0x54e15f(0x1b8)](_0x3319a4);(_0x3bb030[_0x54e15f(0x1b5)]||_0x19f242[_0x54e15f(0x1b5)])&&_0xe25409({'left':_0x3bb030,'entered':_0x19f242}),_0x28426f[_0x54e15f(0x1b5)]=0x0,_0x28426f[_0x54e15f(0x1b8)](..._0x5bb973);});}function _0x2b2a(){const _0x1a166e=['selection','push','5694174ylPQhw','change:range','8890224aNxGHi','isEqual','1gCnKgj','22697350zyYnwD','start','includes','getRange','end','focus','containsPosition','markers','41694CVImWK','document','1620752IgFZvj','26380ObQExQ','28iKOLPn','9lkoaGN','length','545175GGJxxj'];_0x2b2a=function(){return _0x1a166e;};return _0x2b2a();}
23
+ (function(_0xc8ad6f,_0x1c60e5){const _0x2ad61b=_0x4f2e,_0x1ad5b3=_0xc8ad6f();while(!![]){try{const _0x4476c0=-parseInt(_0x2ad61b(0xc4))/0x1+parseInt(_0x2ad61b(0xc8))/0x2*(-parseInt(_0x2ad61b(0xbf))/0x3)+parseInt(_0x2ad61b(0xce))/0x4+parseInt(_0x2ad61b(0xc2))/0x5+-parseInt(_0x2ad61b(0xcd))/0x6*(parseInt(_0x2ad61b(0xcc))/0x7)+parseInt(_0x2ad61b(0xbd))/0x8*(-parseInt(_0x2ad61b(0xc0))/0x9)+-parseInt(_0x2ad61b(0xb9))/0xa*(-parseInt(_0x2ad61b(0xcf))/0xb);if(_0x4476c0===_0x1c60e5)break;else _0x1ad5b3['push'](_0x1ad5b3['shift']());}catch(_0x538210){_0x1ad5b3['push'](_0x1ad5b3['shift']());}}}(_0x1a65,0x210f1));function _0x4f2e(_0x5ba593,_0x574279){const _0x1a656f=_0x1a65();return _0x4f2e=function(_0x4f2ea0,_0x14a63a){_0x4f2ea0=_0x4f2ea0-0xb9;let _0x1f414e=_0x1a656f[_0x4f2ea0];return _0x1f414e;},_0x4f2e(_0x5ba593,_0x574279);}export default function B(_0x5f100b,_0x25501e){const _0x223901=_0x4f2e,_0xae98a9=[];_0x5f100b[_0x223901(0xcb)][_0x223901(0xc9)]['on'](_0x223901(0xc7),()=>{const _0x465265=_0x223901,_0x107ed9=function(_0xeaf4db,_0xb23995){const _0x4b367e=_0x4f2e,_0x2945d5=[];for(const _0x58401b of _0xeaf4db[_0x4b367e(0xc1)]){const _0x50d14c=_0x58401b[_0x4b367e(0xba)]();(_0x50d14c[_0x4b367e(0xc5)](_0xb23995)||_0x50d14c[_0x4b367e(0xd0)][_0x4b367e(0xc3)](_0xb23995)||_0x50d14c[_0x4b367e(0xc6)][_0x4b367e(0xc3)](_0xb23995))&&_0x2945d5[_0x4b367e(0xbc)](_0x58401b);}return _0x2945d5;}(_0x5f100b,_0x5f100b[_0x465265(0xcb)][_0x465265(0xc9)][_0x465265(0xca)]),_0x1a4c96=[],_0x5c3c28=[],_0x1522ce=[];for(const _0x3b85cc of _0xae98a9)_0x107ed9[_0x465265(0xbb)](_0x3b85cc)||_0x1a4c96[_0x465265(0xbc)](_0x3b85cc);for(const _0x76467b of _0x107ed9)_0xae98a9[_0x465265(0xbb)](_0x76467b)||_0x5c3c28[_0x465265(0xbc)](_0x76467b),_0x1522ce[_0x465265(0xbc)](_0x76467b);(_0x1a4c96[_0x465265(0xbe)]||_0x5c3c28[_0x465265(0xbe)])&&_0x25501e({'left':_0x1a4c96,'entered':_0x5c3c28}),_0xae98a9[_0x465265(0xbe)]=0x0,_0xae98a9[_0x465265(0xbc)](..._0x1522ce);});}function _0x1a65(){const _0x377c21=['279XnxFXf','markers','393525iSfqwL','isEqual','218771WKRXLY','containsPosition','end','change:range','2ybJtOf','selection','focus','document','68852vdKldb','6yArCpU','470504XfOekE','143AQQqyu','start','427070mGJogH','getRange','includes','push','60776lQwRko','length','455997hHFWGc'];_0x1a65=function(){return _0x377c21;};return _0x1a65();}
@@ -2,6 +2,9 @@
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
+ /**
6
+ * @module collaboration-core/utils/trim-html
7
+ */
5
8
  /**
6
9
  * Trims text inside a html tags and takes care of all closing tags.
7
10
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2227a8=_0x1ce2;(function(_0xe72aa1,_0x167cf0){const _0x25f724=_0x1ce2,_0x50796a=_0xe72aa1();while(!![]){try{const _0x59d010=-parseInt(_0x25f724(0x1d7))/0x1*(-parseInt(_0x25f724(0x1dc))/0x2)+-parseInt(_0x25f724(0x1e1))/0x3+-parseInt(_0x25f724(0x1d9))/0x4+parseInt(_0x25f724(0x1d6))/0x5*(-parseInt(_0x25f724(0x1cd))/0x6)+parseInt(_0x25f724(0x1d1))/0x7*(-parseInt(_0x25f724(0x1d2))/0x8)+-parseInt(_0x25f724(0x1de))/0x9+-parseInt(_0x25f724(0x1dd))/0xa*(-parseInt(_0x25f724(0x1df))/0xb);if(_0x59d010===_0x167cf0)break;else _0x50796a['push'](_0x50796a['shift']());}catch(_0x3c8f0f){_0x50796a['push'](_0x50796a['shift']());}}}(_0x5136,0xca0cf));export default function Z(_0x1d8a0f,{limit:_0x103532,suffix:_0x5c0490=_0x2227a8(0x1e2)}){const _0x41cb2b=_0x2227a8,_0x4b596d=[];let _0x3cc2ba=0x0;const _0x4e7017=_0x1d8a0f[_0x41cb2b(0x1d3)](/</g,'\x0a<')[_0x41cb2b(0x1d3)](/>/g,'>\x0a')[_0x41cb2b(0x1d3)](/^\n/g,'')[_0x41cb2b(0x1d3)](/\n$/g,'')[_0x41cb2b(0x1d4)]('\x0a');for(let _0xf9fd60=0x0;_0xf9fd60<_0x4e7017[_0x41cb2b(0x1d5)];_0xf9fd60++){let _0x440459=_0x4e7017[_0xf9fd60];const _0x32650a=$(_0x440459);if(_0x440459[_0x41cb2b(0x1db)]('<')){if(_0x3cc2ba>=_0x103532){const _0x19f7f6=_0x440459[_0x41cb2b(0x1ce)](/[a-zA-Z]+/);if(!_0x19f7f6){_0x4e7017[_0xf9fd60]='';continue;}const _0x394d33=_0x19f7f6[0x0];_0x440459[_0x41cb2b(0x1db)]('</')?(_0x4b596d[_0x41cb2b(0x1d5)]&&(_0x440459=''),_0x4b596d[_0x41cb2b(0x1e0)]()):(_0x4b596d[_0x41cb2b(0x1e3)](_0x394d33),_0x440459='');}}else{if(_0x3cc2ba>=_0x103532)_0x440459='';else{if(_0x3cc2ba+_0x32650a[_0x41cb2b(0x1d5)]>=_0x103532){let _0x12929b=_0x103532-_0x3cc2ba;if('\x20'===_0x32650a[_0x12929b-0x1])_0x12929b--;else{const _0x357a9c=_0x32650a[_0x41cb2b(0x1cf)](_0x12929b)[_0x41cb2b(0x1d0)]('\x20');-0x1!==_0x357a9c?_0x12929b+=_0x357a9c:_0x12929b=_0x440459[_0x41cb2b(0x1d5)];}_0x440459=_0x32650a[_0x41cb2b(0x1cf)](0x0,_0x12929b)[_0x41cb2b(0x1da)]('')+_0x5c0490,_0x3cc2ba=_0x103532;}else _0x3cc2ba+=_0x32650a[_0x41cb2b(0x1d5)];}}_0x4e7017[_0xf9fd60]=_0x440459;}return _0x4e7017[_0x41cb2b(0x1da)]('\x0a')[_0x41cb2b(0x1d3)](/\n/g,'');}function $(_0x579974){const _0x2cbd88=_0x2227a8,_0x420583=[];for(let _0xa5e7f7=0x0;_0xa5e7f7<_0x579974[_0x2cbd88(0x1d5)];_0xa5e7f7++){const _0x162048=_0x579974[_0x2cbd88(0x1d8)](_0xa5e7f7)[_0x2cbd88(0x1ce)](/^&[a-z0-9#]+;/);if(_0x162048){const _0x1e88a5=_0x162048[0x0];_0x420583[_0x2cbd88(0x1e3)](_0x1e88a5),_0xa5e7f7+=_0x1e88a5[_0x2cbd88(0x1d5)]-0x1;}else _0x420583[_0x2cbd88(0x1e3)](_0x579974[_0xa5e7f7]);}return _0x420583;}function _0x1ce2(_0xdb63a5,_0x5ee1e6){const _0x513645=_0x5136();return _0x1ce2=function(_0x1ce2b5,_0x27049a){_0x1ce2b5=_0x1ce2b5-0x1cd;let _0x3aa472=_0x513645[_0x1ce2b5];return _0x3aa472;},_0x1ce2(_0xdb63a5,_0x5ee1e6);}function _0x5136(){const _0x1d4fde=['...','push','222FOkNaQ','match','slice','indexOf','5417874iSLCmw','8QYwGNY','replace','split','length','207345LfPEKU','5GADutC','substring','4822544oqfkSl','join','startsWith','634982QiyArm','44570490rJGUxh','11431674oVTMur','11uDkCuz','pop','1298244eRlsWf'];_0x5136=function(){return _0x1d4fde;};return _0x5136();}
23
+ const _0xb59f5f=_0x4d9e;(function(_0x335748,_0x41cc64){const _0x4ebb53=_0x4d9e,_0x127273=_0x335748();while(!![]){try{const _0x4884c5=-parseInt(_0x4ebb53(0x137))/0x1+-parseInt(_0x4ebb53(0x13c))/0x2+parseInt(_0x4ebb53(0x12a))/0x3+parseInt(_0x4ebb53(0x131))/0x4*(-parseInt(_0x4ebb53(0x13d))/0x5)+-parseInt(_0x4ebb53(0x130))/0x6+-parseInt(_0x4ebb53(0x136))/0x7*(-parseInt(_0x4ebb53(0x139))/0x8)+-parseInt(_0x4ebb53(0x12b))/0x9*(-parseInt(_0x4ebb53(0x12e))/0xa);if(_0x4884c5===_0x41cc64)break;else _0x127273['push'](_0x127273['shift']());}catch(_0x584563){_0x127273['push'](_0x127273['shift']());}}}(_0x3d0f,0x95f78));export default function Z(_0xc7df97,{limit:_0x496151,suffix:_0x4761dd=_0xb59f5f(0x13a)}){const _0x172ce1=_0xb59f5f,_0x417c72=[];let _0x3d7c16=0x0;const _0x3ba589=_0xc7df97[_0x172ce1(0x12d)](/</g,'\x0a<')[_0x172ce1(0x12d)](/>/g,'>\x0a')[_0x172ce1(0x12d)](/^\n/g,'')[_0x172ce1(0x12d)](/\n$/g,'')[_0x172ce1(0x13e)]('\x0a');for(let _0x1475a1=0x0;_0x1475a1<_0x3ba589[_0x172ce1(0x134)];_0x1475a1++){let _0x582305=_0x3ba589[_0x1475a1];const _0x374169=$(_0x582305);if(_0x582305[_0x172ce1(0x132)]('<')){if(_0x3d7c16>=_0x496151){const _0x3f43a9=_0x582305[_0x172ce1(0x133)](/[a-zA-Z]+/);if(!_0x3f43a9){_0x3ba589[_0x1475a1]='';continue;}const _0x2bdd50=_0x3f43a9[0x0];_0x582305[_0x172ce1(0x132)]('</')?(_0x417c72[_0x172ce1(0x134)]&&(_0x582305=''),_0x417c72[_0x172ce1(0x129)]()):(_0x417c72[_0x172ce1(0x13b)](_0x2bdd50),_0x582305='');}}else{if(_0x3d7c16>=_0x496151)_0x582305='';else{if(_0x3d7c16+_0x374169[_0x172ce1(0x134)]>=_0x496151){let _0x5399c9=_0x496151-_0x3d7c16;if('\x20'===_0x374169[_0x5399c9-0x1])_0x5399c9--;else{const _0x3de524=_0x374169[_0x172ce1(0x12f)](_0x5399c9)[_0x172ce1(0x135)]('\x20');-0x1!==_0x3de524?_0x5399c9+=_0x3de524:_0x5399c9=_0x582305[_0x172ce1(0x134)];}_0x582305=_0x374169[_0x172ce1(0x12f)](0x0,_0x5399c9)[_0x172ce1(0x138)]('')+_0x4761dd,_0x3d7c16=_0x496151;}else _0x3d7c16+=_0x374169[_0x172ce1(0x134)];}}_0x3ba589[_0x1475a1]=_0x582305;}return _0x3ba589[_0x172ce1(0x138)]('\x0a')[_0x172ce1(0x12d)](/\n/g,'');}function _0x4d9e(_0x4fc43c,_0x28425f){const _0x3d0f99=_0x3d0f();return _0x4d9e=function(_0x4d9eed,_0x56d009){_0x4d9eed=_0x4d9eed-0x129;let _0x107a83=_0x3d0f99[_0x4d9eed];return _0x107a83;},_0x4d9e(_0x4fc43c,_0x28425f);}function _0x3d0f(){const _0x2d4740=['match','length','indexOf','255752OLUCeD','494355aNDqKc','join','152HBQiBd','...','push','1360942QFmfDC','185hWwVkL','split','pop','2386758RUvImT','1845nkXitu','substring','replace','61310vvhwuM','slice','1312758pqnfIg','79864PnWiAs','startsWith'];_0x3d0f=function(){return _0x2d4740;};return _0x3d0f();}function $(_0x532e01){const _0x37966b=_0xb59f5f,_0x2af3a1=[];for(let _0x2fb1e2=0x0;_0x2fb1e2<_0x532e01[_0x37966b(0x134)];_0x2fb1e2++){const _0x583dec=_0x532e01[_0x37966b(0x12c)](_0x2fb1e2)[_0x37966b(0x133)](/^&[a-z0-9#]+;/);if(_0x583dec){const _0x111b97=_0x583dec[0x0];_0x2af3a1[_0x37966b(0x13b)](_0x111b97),_0x2fb1e2+=_0x111b97[_0x37966b(0x134)]-0x1;}else _0x2af3a1[_0x37966b(0x13b)](_0x532e01[_0x2fb1e2]);}return _0x2af3a1;}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * 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
+
10
+ .ck.ck-aria-description {
11
+ display: none;
12
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * 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
+
10
+ .ck-content .ck-suggestion-marker.ck-widget.ck-merge-field,
11
+ .ck-content .ck-comment-marker.ck-widget.ck-merge-field {
12
+ /* Note that comments markers have transparent border to be better aligned with suggestions markers. */
13
+ border-width: 2px;
14
+ border-left: none;
15
+ border-right: none;
16
+ padding-top: 0;
17
+ padding-bottom: 0;
18
+ }
19
+
20
+ .ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field {
21
+ border-top-color: var(--ck-color-suggestion-marker-deletion-border);
22
+ border-bottom-color: var(--ck-color-suggestion-marker-deletion-border);
23
+
24
+ background: var(--ck-color-suggestion-marker-deletion-background);
25
+
26
+ & :not(.ck-merge-field__affix),
27
+ &.ck-merge-field_with-value,
28
+ &.ck-merge-field_with-warning {
29
+ text-decoration: line-through;
30
+ text-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);
31
+ text-decoration-thickness: 3px;
32
+ }
33
+
34
+ &.ck-suggestion-marker--active {
35
+ background-color: var(--ck-color-suggestion-marker-deletion-background-active);
36
+ }
37
+ }
38
+
39
+ .ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field {
40
+ background-color: var(--ck-color-suggestion-marker-insertion-background);
41
+
42
+ &.ck-suggestion-marker--active {
43
+ background-color: var(--ck-color-suggestion-marker-insertion-background-active);
44
+ }
45
+ }
46
+
47
+ .ck-content .ck-comment-marker.ck-widget.ck-merge-field {
48
+ background: var(--ck-color-comment-marker);
49
+
50
+ &.ck-comment-marker--active {
51
+ background: var(--ck-color-comment-marker-active);
52
+ }
53
+ }
54
+
55
+ /*
56
+ This is a hack for a specific situation. The selector targets all regular markers made on text that are just before
57
+ a merge field (also in marker). This is a common situation. For example, if you have some text and a merge field
58
+ just after and all that is in a suggestion. Without this hack, there is a 1px spacing between the span and the merge
59
+ field, because the merge field has margin. The margin is needed because otherwise caret does not display. To
60
+ "remove" the spacing, we extend the span before the merge field by 1px using padding, but we need to compensate
61
+ by using negative margin, so that the whole content does not change its position.
62
+ */
63
+ .ck-content span.ck-comment-marker:has(+.ck-comment-marker.ck-widget.ck-merge-field),
64
+ .ck-content span.ck-suggestion-marker:has(+.ck-suggestion-marker.ck-widget.ck-merge-field) {
65
+ padding-right: 1px;
66
+ margin-right: -1px;
67
+ }
@@ -7,6 +7,10 @@
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
10
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
11
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
12
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
13
+
10
14
  :root {
11
15
  --ck-color-comment-box-border: hsl(55, 98%, 48%);
12
16
  --ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
@@ -55,8 +59,32 @@ With track-changes feature enabled, we need to distinguish various types of anno
55
59
  }
56
60
 
57
61
  .ck .ck-suggestion-wrapper {
58
- outline: 0;
62
+ @mixin ck-rounded-corners;
63
+
59
64
  overflow: hidden;
65
+
66
+ &:focus {
67
+ /*
68
+ * We cannot use the ck-focus-ring mixin here because it adds a border that would need to stay transparent
69
+ * in non-focused state and create an odd space inside the surrounding annotation container.
70
+ */
71
+ outline: var(--ck-focus-ring);
72
+
73
+ /*
74
+ * We cannot use the ck-box-shadow mixin because we're using outline instead of border (see the comment above).
75
+ * And the shadow size has to be custom because outline is rendered on top of the shadow.
76
+ */
77
+ box-shadow: 0 0 0 4px var(--ck-color-focus-outer-shadow);
78
+ }
79
+ }
80
+
81
+ /*
82
+ * In case of inline annotations, their focus styles get hoisted to the balloon panel to work around overflow that would
83
+ * otherwise get them cropped..
84
+ */
85
+ .ck-balloon-panel:has( .ck-suggestion-wrapper:focus ) {
86
+ @mixin ck-focus-ring;
87
+ @mixin ck-box-shadow var(--ck-drop-shadow), var(--ck-focus-outer-shadow);
60
88
  }
61
89
 
62
90
  .ck .ck-suggestion-type {