@ckeditor/ckeditor5-merge-fields 0.0.0-nightly-20240905.0 → 0.0.0-nightly-20240906.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 (181) hide show
  1. package/build/merge-fields.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/he.js +1 -1
  16. package/build/translations/hi.js +1 -1
  17. package/build/translations/hr.js +1 -1
  18. package/build/translations/hu.js +1 -1
  19. package/build/translations/id.js +1 -1
  20. package/build/translations/it.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/lv.js +1 -1
  25. package/build/translations/ms.js +1 -1
  26. package/build/translations/nl.js +1 -1
  27. package/build/translations/no.js +1 -1
  28. package/build/translations/pl.js +1 -1
  29. package/build/translations/pt-br.js +1 -1
  30. package/build/translations/pt.js +1 -1
  31. package/build/translations/ro.js +1 -1
  32. package/build/translations/ru.js +1 -1
  33. package/build/translations/sk.js +1 -1
  34. package/build/translations/sr.js +1 -1
  35. package/build/translations/sv.js +1 -1
  36. package/build/translations/th.js +1 -1
  37. package/build/translations/tr.js +1 -1
  38. package/build/translations/uk.js +1 -1
  39. package/build/translations/vi.js +1 -1
  40. package/build/translations/zh-cn.js +1 -1
  41. package/build/translations/zh.js +1 -1
  42. package/dist/index-editor.css +89 -54
  43. package/dist/index.css +102 -58
  44. package/dist/index.js +1 -1
  45. package/dist/translations/ar.js +1 -1
  46. package/dist/translations/ar.umd.js +1 -1
  47. package/dist/translations/bg.js +1 -1
  48. package/dist/translations/bg.umd.js +1 -1
  49. package/dist/translations/bn.js +1 -1
  50. package/dist/translations/bn.umd.js +1 -1
  51. package/dist/translations/ca.js +1 -1
  52. package/dist/translations/ca.umd.js +1 -1
  53. package/dist/translations/cs.js +1 -1
  54. package/dist/translations/cs.umd.js +1 -1
  55. package/dist/translations/da.js +1 -1
  56. package/dist/translations/da.umd.js +1 -1
  57. package/dist/translations/de.js +1 -1
  58. package/dist/translations/de.umd.js +1 -1
  59. package/dist/translations/el.js +1 -1
  60. package/dist/translations/el.umd.js +1 -1
  61. package/dist/translations/en.js +1 -1
  62. package/dist/translations/en.umd.js +1 -1
  63. package/dist/translations/es.js +1 -1
  64. package/dist/translations/es.umd.js +1 -1
  65. package/dist/translations/et.js +1 -1
  66. package/dist/translations/et.umd.js +1 -1
  67. package/dist/translations/fi.js +1 -1
  68. package/dist/translations/fi.umd.js +1 -1
  69. package/dist/translations/fr.js +1 -1
  70. package/dist/translations/fr.umd.js +1 -1
  71. package/dist/translations/gl.d.ts +8 -0
  72. package/dist/translations/gl.js +23 -0
  73. package/dist/translations/gl.umd.js +23 -0
  74. package/dist/translations/he.js +1 -1
  75. package/dist/translations/he.umd.js +1 -1
  76. package/dist/translations/hi.js +1 -1
  77. package/dist/translations/hi.umd.js +1 -1
  78. package/dist/translations/hr.js +1 -1
  79. package/dist/translations/hr.umd.js +1 -1
  80. package/dist/translations/hu.js +1 -1
  81. package/dist/translations/hu.umd.js +1 -1
  82. package/dist/translations/id.js +1 -1
  83. package/dist/translations/id.umd.js +1 -1
  84. package/dist/translations/it.js +1 -1
  85. package/dist/translations/it.umd.js +1 -1
  86. package/dist/translations/ja.js +1 -1
  87. package/dist/translations/ja.umd.js +1 -1
  88. package/dist/translations/ko.js +1 -1
  89. package/dist/translations/ko.umd.js +1 -1
  90. package/dist/translations/lt.js +1 -1
  91. package/dist/translations/lt.umd.js +1 -1
  92. package/dist/translations/lv.js +1 -1
  93. package/dist/translations/lv.umd.js +1 -1
  94. package/dist/translations/ms.js +1 -1
  95. package/dist/translations/ms.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/sk.js +1 -1
  111. package/dist/translations/sk.umd.js +1 -1
  112. package/dist/translations/sr.js +1 -1
  113. package/dist/translations/sr.umd.js +1 -1
  114. package/dist/translations/sv.js +1 -1
  115. package/dist/translations/sv.umd.js +1 -1
  116. package/dist/translations/th.js +1 -1
  117. package/dist/translations/th.umd.js +1 -1
  118. package/dist/translations/tr.js +1 -1
  119. package/dist/translations/tr.umd.js +1 -1
  120. package/dist/translations/uk.js +1 -1
  121. package/dist/translations/uk.umd.js +1 -1
  122. package/dist/translations/vi.js +1 -1
  123. package/dist/translations/vi.umd.js +1 -1
  124. package/dist/translations/zh-cn.js +1 -1
  125. package/dist/translations/zh-cn.umd.js +1 -1
  126. package/dist/translations/zh.js +1 -1
  127. package/dist/translations/zh.umd.js +1 -1
  128. package/lang/translations/ar.po +3 -7
  129. package/lang/translations/bg.po +3 -7
  130. package/lang/translations/bn.po +3 -7
  131. package/lang/translations/ca.po +3 -7
  132. package/lang/translations/cs.po +3 -7
  133. package/lang/translations/da.po +3 -7
  134. package/lang/translations/de.po +3 -7
  135. package/lang/translations/el.po +3 -7
  136. package/lang/translations/en.po +3 -7
  137. package/lang/translations/es.po +3 -7
  138. package/lang/translations/et.po +3 -7
  139. package/lang/translations/fi.po +3 -7
  140. package/lang/translations/fr.po +3 -7
  141. package/lang/translations/gl.po +62 -0
  142. package/lang/translations/he.po +3 -7
  143. package/lang/translations/hi.po +3 -7
  144. package/lang/translations/hr.po +3 -7
  145. package/lang/translations/hu.po +3 -7
  146. package/lang/translations/id.po +3 -7
  147. package/lang/translations/it.po +3 -7
  148. package/lang/translations/ja.po +3 -7
  149. package/lang/translations/ko.po +3 -7
  150. package/lang/translations/lt.po +3 -7
  151. package/lang/translations/lv.po +3 -7
  152. package/lang/translations/ms.po +3 -7
  153. package/lang/translations/nl.po +3 -7
  154. package/lang/translations/no.po +3 -7
  155. package/lang/translations/pl.po +3 -7
  156. package/lang/translations/pt-br.po +3 -7
  157. package/lang/translations/pt.po +3 -7
  158. package/lang/translations/ro.po +3 -7
  159. package/lang/translations/ru.po +3 -7
  160. package/lang/translations/sk.po +3 -7
  161. package/lang/translations/sr.po +3 -7
  162. package/lang/translations/sv.po +3 -7
  163. package/lang/translations/th.po +3 -7
  164. package/lang/translations/tr.po +3 -7
  165. package/lang/translations/uk.po +3 -7
  166. package/lang/translations/vi.po +3 -7
  167. package/lang/translations/zh-cn.po +3 -7
  168. package/lang/translations/zh.po +3 -7
  169. package/package.json +7 -7
  170. package/src/index.js +1 -1
  171. package/src/insertmergefieldblockcommand.js +1 -1
  172. package/src/insertmergefieldcommand.js +1 -1
  173. package/src/mergefields.js +1 -1
  174. package/src/mergefieldsconfig.d.ts +65 -8
  175. package/src/mergefieldsediting.js +1 -1
  176. package/src/mergefieldsui.js +1 -1
  177. package/src/previewmergefieldscommand.js +1 -1
  178. package/src/ui/mergefieldslistview.js +1 -1
  179. package/src/ui/mergefieldspanelview.js +1 -1
  180. package/src/utils/common-translations.js +1 -1
  181. package/theme/mergefields.css +101 -47
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x95f4(){var _0x40def1=['340804HKSMTU','21912xNFbUT','2310762Dedxnk','823265eXDRWW','216481ezNuMP','items','4313950jTTXLl','filter','7CMDwwA','2034056vgXqME','3190DtcOyi','2TcCSMV','9oaaNqm','9qjePcC'];_0x95f4=function(){return _0x40def1;};return _0x95f4();}var _0x10dd20=_0x51d3;(function(_0x55bde7,_0x5b97a2){var _0x2411b4=_0x51d3,_0x1f4759=_0x55bde7();while(!![]){try{var _0x3d27e9=parseInt(_0x2411b4(0x190))/0x1*(-parseInt(_0x2411b4(0x189))/0x2)+parseInt(_0x2411b4(0x18b))/0x3*(-parseInt(_0x2411b4(0x18c))/0x4)+parseInt(_0x2411b4(0x18f))/0x5+-parseInt(_0x2411b4(0x18e))/0x6*(-parseInt(_0x2411b4(0x186))/0x7)+parseInt(_0x2411b4(0x187))/0x8*(parseInt(_0x2411b4(0x18a))/0x9)+parseInt(_0x2411b4(0x184))/0xa+parseInt(_0x2411b4(0x188))/0xb*(-parseInt(_0x2411b4(0x18d))/0xc);if(_0x3d27e9===_0x5b97a2)break;else _0x1f4759['push'](_0x1f4759['shift']());}catch(_0x4914a0){_0x1f4759['push'](_0x1f4759['shift']());}}}(_0x95f4,0x39150));import{ListView as _0x18ef3f,filterGroupAndItemNames as _0x3b5d43}from'ckeditor5/src/ui.js';function _0x51d3(_0x4b0fcc,_0x1aa5ee){var _0x95f419=_0x95f4();return _0x51d3=function(_0x51d3f3,_0xd804c){_0x51d3f3=_0x51d3f3-0x183;var _0x1686fc=_0x95f419[_0x51d3f3];return _0x1686fc;},_0x51d3(_0x4b0fcc,_0x1aa5ee);}export default class T extends _0x18ef3f{[_0x10dd20(0x185)](_0x4ddf6d){var _0x216c41=_0x10dd20;return _0x3b5d43(_0x4ddf6d,this[_0x216c41(0x183)]);}}
23
+ var _0x3e7ac5=_0xc458;(function(_0x4a36a3,_0x1e40cc){var _0x15c0d9=_0xc458,_0x4b33ae=_0x4a36a3();while(!![]){try{var _0x1f5382=-parseInt(_0x15c0d9(0xb3))/0x1+-parseInt(_0x15c0d9(0xb2))/0x2+parseInt(_0x15c0d9(0xaf))/0x3+-parseInt(_0x15c0d9(0xb4))/0x4+-parseInt(_0x15c0d9(0xad))/0x5+-parseInt(_0x15c0d9(0xb0))/0x6+parseInt(_0x15c0d9(0xac))/0x7*(parseInt(_0x15c0d9(0xae))/0x8);if(_0x1f5382===_0x1e40cc)break;else _0x4b33ae['push'](_0x4b33ae['shift']());}catch(_0x3a41da){_0x4b33ae['push'](_0x4b33ae['shift']());}}}(_0x42d0,0xcb8b4));import{ListView as _0x5b891b,filterGroupAndItemNames as _0x4a4a01}from'ckeditor5/src/ui.js';function _0x42d0(){var _0x229b3b=['997990DsZjcw','820400YygFHE','4633248dFrFvJ','items','24043985PNZVyb','3633840PZSHJK','8zsHfuc','2483895CSpilG','1347774kvJWKi','filter'];_0x42d0=function(){return _0x229b3b;};return _0x42d0();}function _0xc458(_0x213fe7,_0x57989c){var _0x42d02d=_0x42d0();return _0xc458=function(_0xc458ca,_0x5a8e3a){_0xc458ca=_0xc458ca-0xab;var _0x22096e=_0x42d02d[_0xc458ca];return _0x22096e;},_0xc458(_0x213fe7,_0x57989c);}export default class T extends _0x5b891b{[_0x3e7ac5(0xb1)](_0x125174){var _0x11df28=_0x3e7ac5;return _0x4a4a01(_0x125174,this[_0x11df28(0xab)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xfa2e52,_0x299193){const _0x221ff8=_0x34b0,_0x3e9556=_0xfa2e52();while(!![]){try{const _0x507b17=parseInt(_0x221ff8(0x10b))/0x1+-parseInt(_0x221ff8(0x10a))/0x2*(-parseInt(_0x221ff8(0x10f))/0x3)+parseInt(_0x221ff8(0x117))/0x4*(parseInt(_0x221ff8(0x110))/0x5)+parseInt(_0x221ff8(0x10e))/0x6*(parseInt(_0x221ff8(0x10c))/0x7)+-parseInt(_0x221ff8(0x10d))/0x8+parseInt(_0x221ff8(0x116))/0x9+-parseInt(_0x221ff8(0x108))/0xa;if(_0x507b17===_0x299193)break;else _0x3e9556['push'](_0x3e9556['shift']());}catch(_0x370fc0){_0x3e9556['push'](_0x3e9556['shift']());}}}(_0x46e9,0x7f806));import{View as _0x2ffa35}from'ckeditor5/src/ui.js';function _0x34b0(_0xccbc79,_0x35bc95){const _0x46e91b=_0x46e9();return _0x34b0=function(_0x34b081,_0x3aa751){_0x34b081=_0x34b081-0x108;let _0x8f3014=_0x46e91b[_0x34b081];return _0x8f3014;},_0x34b0(_0xccbc79,_0x35bc95);}function _0x46e9(){const _0x4e14bf=['24590jhCiLj','355404hyRAkv','189foMHst','2207248ghMwYQ','74730INJrtp','69fZBMeQ','711945lfvEvR','div','setTemplate','bindTemplate','set','text','2209608BiDwuM','20vizSfm','ck-merge-fields-form','11337790AdlNcF','ck-merge-fields-form__status'];_0x46e9=function(){return _0x4e14bf;};return _0x46e9();}export default class U extends _0x2ffa35{constructor(_0x290bf2){const _0x117509=_0x34b0;super(_0x290bf2),this[_0x117509(0x114)](_0x117509(0x115),'');const _0x3aaa6d=this[_0x117509(0x113)];this[_0x117509(0x112)]({'tag':_0x117509(0x111),'attributes':{'class':['ck',_0x117509(0x118)]},'children':[{'tag':_0x117509(0x111),'attributes':{'class':['ck',_0x117509(0x109)]},'children':[{'text':_0x3aaa6d['to'](_0x117509(0x115))}]}]});}}
23
+ function _0x20a3(_0x25c9d8,_0x48f967){const _0x1b3bb4=_0x1b3b();return _0x20a3=function(_0x20a3ed,_0xd84b6a){_0x20a3ed=_0x20a3ed-0x18e;let _0x22c002=_0x1b3bb4[_0x20a3ed];return _0x22c002;},_0x20a3(_0x25c9d8,_0x48f967);}(function(_0x7b24d9,_0x346b42){const _0x19b175=_0x20a3,_0x14ba11=_0x7b24d9();while(!![]){try{const _0xa40769=parseInt(_0x19b175(0x191))/0x1*(-parseInt(_0x19b175(0x18e))/0x2)+-parseInt(_0x19b175(0x1a0))/0x3+-parseInt(_0x19b175(0x19c))/0x4*(-parseInt(_0x19b175(0x1a1))/0x5)+parseInt(_0x19b175(0x19d))/0x6*(-parseInt(_0x19b175(0x19b))/0x7)+-parseInt(_0x19b175(0x194))/0x8*(-parseInt(_0x19b175(0x195))/0x9)+-parseInt(_0x19b175(0x199))/0xa*(-parseInt(_0x19b175(0x19a))/0xb)+parseInt(_0x19b175(0x197))/0xc*(parseInt(_0x19b175(0x193))/0xd);if(_0xa40769===_0x346b42)break;else _0x14ba11['push'](_0x14ba11['shift']());}catch(_0x273432){_0x14ba11['push'](_0x14ba11['shift']());}}}(_0x1b3b,0x6297c));import{View as _0x2340ca}from'ckeditor5/src/ui.js';function _0x1b3b(){const _0x3e9abf=['text','26TJpMbd','160dREZyn','225378pezBMc','setTemplate','1742484tLiiSA','ck-merge-fields-form','10zGrUmH','2746513YjIrYd','1043rHYkoq','412172TytESt','18246onMcOJ','div','set','1700001RNKekv','25wCoJvJ','22090DoipXp','bindTemplate','ck-merge-fields-form__status','12NLaCYG'];_0x1b3b=function(){return _0x3e9abf;};return _0x1b3b();}export default class U extends _0x2340ca{constructor(_0x5af2af){const _0xbe9e71=_0x20a3;super(_0x5af2af),this[_0xbe9e71(0x19f)](_0xbe9e71(0x192),'');const _0x25116c=this[_0xbe9e71(0x18f)];this[_0xbe9e71(0x196)]({'tag':_0xbe9e71(0x19e),'attributes':{'class':['ck',_0xbe9e71(0x198)]},'children':[{'tag':_0xbe9e71(0x19e),'attributes':{'class':['ck',_0xbe9e71(0x190)]},'children':[{'text':_0x25116c['to'](_0xbe9e71(0x192))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1a876d,_0x2913ce,_0x3848bc){const t=_0x1a876d['t'];switch(_0x2913ce){case'Search\x20merge\x20field':return t('Search\x20merge\x20field');case'No\x20merge\x20fields\x20found':return t('No\x20merge\x20fields\x20found');case'No\x20merge\x20fields\x20available':return t('No\x20merge\x20fields\x20available');case'Insert\x20merge\x20field':return t('Insert\x20merge\x20field');case'Merge\x20field':return t('Merge\x20field');case'Merge\x20fields\x20preview':return t('Merge\x20fields\x20preview');case'Labels':return t('Labels');case'Default\x20values':return t('Default\x20values');case'WARNING_MISSING_DATA_USED_DEFAULT_VALUE':return t({'string':'Default\x20value\x20is\x20used.','id':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'});case'WARNING_MISSING_DEFAULT_VALUE':return t({'string':'Default\x20value\x20not\x20available.','id':'WARNING_MISSING_DEFAULT_VALUE'});case'WARNING_MISSING_DATA':return t({'string':'Value\x20not\x20available.','id':'WARNING_MISSING_DATA'});default:return _0x2913ce;}}
23
+ export function getTranslation(_0x592a84,_0x4574a7,_0x3602cc){const t=_0x592a84['t'];switch(_0x4574a7){case'Search\x20merge\x20field':return t('Search\x20merge\x20field');case'No\x20merge\x20fields\x20found':return t('No\x20merge\x20fields\x20found');case'No\x20merge\x20fields\x20available':return t('No\x20merge\x20fields\x20available');case'Insert\x20merge\x20field':return t('Insert\x20merge\x20field');case'Merge\x20field':return t('Merge\x20field');case'Merge\x20fields\x20preview':return t('Merge\x20fields\x20preview');case'Labels':return t('Labels');case'Default\x20values':return t('Default\x20values');case'WARNING_MISSING_DATA_USED_DEFAULT_VALUE':return t({'string':'Default\x20value\x20is\x20used.','id':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'});case'WARNING_MISSING_DEFAULT_VALUE':return t({'string':'Default\x20value\x20not\x20available.','id':'WARNING_MISSING_DEFAULT_VALUE'});case'WARNING_MISSING_DATA':return t({'string':'Value\x20not\x20available.','id':'WARNING_MISSING_DATA'});default:return _0x4574a7;}}
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  :root {
11
- --ck-merge-fields-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal) * 0.45);
11
+ --ck-merge-fields-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal) * 0.55);
12
12
  --ck-merge-fields-paddings-vertical: 2px;
13
13
 
14
14
  --ck-color-merge-fields-form-error-background: hsl(15, 100%, 97%);
@@ -17,70 +17,87 @@
17
17
  --ck-color-merge-fields-value-outline: hsl(0, 0%, 57%);
18
18
  --ck-color-merge-fields-with-warning-outline: hsl(15, 80%, 59%);
19
19
 
20
+ --ck-color-merge-fields-block-outline: hsl(0, 0%, 87%);
21
+ --ck-color-merge-fields-block-background: hsl(0, 0%, 98%);
22
+
20
23
  --ck-color-merge-fields-affix-color: hsl(218, 82%, 57%);
21
24
  }
22
25
 
26
+ /* stylelint-disable no-descending-specificity */
23
27
  .ck .ck-merge-field-block {
24
- display: flex;
25
28
  margin: 0.9em auto;
26
- align-items: center;
27
- justify-content: center;
28
29
 
29
30
  &:hover {
30
31
  transition: none;
31
32
  cursor: default;
32
33
  }
33
34
 
34
- &.ck-merge-field-block_with-value, &.ck-merge-field-block_with-warning {
35
- /* Make sure the content in the block does not overflow and is still centered. */
35
+ /* When there is no actual data in the block, center the content (label or warning).
36
+ In other cases, the integrator has to style the content as they wish. */
37
+ &:not(.ck-merge-field-block_with-warning):not(.ck-merge-field-block_with-value),
38
+ &.ck-merge-field-block_with-warning_no-default,
39
+ &.ck-merge-field-block_with-warning_missing-data {
40
+ display: flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ background-color: var(--ck-color-merge-fields-block-background);
44
+
45
+ & .ck-merge-field {
46
+ background-color: hsl(0, 0%, 100%);
47
+ margin: 0 0.5em;
48
+ }
49
+
50
+ &.ck-merge-field-block_with-warning_no-default,
51
+ &.ck-merge-field-block_with-warning_missing-data {
52
+ & .ck-merge-field {
53
+ outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
54
+ line-height: 1.3em;
55
+ }
56
+ }
57
+ }
58
+
59
+ &.ck-merge-field-block_with-warning_default-value-used,
60
+ &.ck-merge-field-block_with-value {
61
+ /* Make sure the content in the block does not overflow. */
36
62
  & .ck-merge-field {
37
63
  overflow: hidden;
38
- display: flex;
39
- justify-content: center;
40
64
  }
41
65
 
66
+ /* Styling for the label displayed in the upper-left corner in the data set previews:
67
+ * when data is available (shows merge field icon);
68
+ * when default value is used (shows merge field and error icons). */
42
69
  &::before {
43
70
  position: absolute;
44
71
  z-index: 1;
45
- top: var(--ck-spacing-medium);
46
- left: var(--ck-spacing-medium);
47
- background: hsl(0 0% 98%);
48
- padding: var(--ck-spacing-tiny) 1px;
72
+ top: var(--ck-spacing-small);
73
+ left: var(--ck-spacing-small);
74
+ padding: 2px 2px 2.5px 2px;
49
75
  border-radius: 2px;
50
- line-height: 1em;
51
- font-family: var(--ck-font-face);
76
+ line-height: 0em;
77
+ background-color: hsl(0, 0%, 100%);
52
78
  }
53
- }
54
-
55
- &:not(:hover):not(.ck-widget_selected) {
56
- outline: 1px solid var(--ck-color-merge-fields-outline);
57
- }
58
79
 
59
- &.ck-merge-field-block_with-warning {
60
- &::before {
61
- content: attr(data-merge-field-block-label) ' ' url('data:image/svg+xml,%3Csvg width="12" height="12" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM5.27988 2.40003H6.71988V6.72003H5.27988V2.40003ZM6.72009 8.16003H5.28009V9.60003H6.72009V8.16003Z" fill="%23DB3700"/%3E%3C/svg%3E');
62
- outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
80
+ /* Styling for the warning: merge field icon + warning icon with the red outline. */
81
+ &:not(.ck-merge-field-block_with-value) {
82
+ &::before {
83
+ content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none"%3E%3Ccircle cx="7.89981" cy="7.70938" r="1.35" fill="%23333333"/%3E%3Cpath d="M10.8241 1.3645C10.8242 0.6895 10.8243 0.6895 10.8243 0.6895L10.8254 0.689501L10.8275 0.689505L10.834 0.689533L10.8558 0.689721C10.8741 0.689929 10.8998 0.690334 10.9313 0.691122C10.9942 0.692692 11.0818 0.695814 11.1822 0.702076C11.3725 0.713953 11.648 0.739273 11.8889 0.799933C12.2461 0.889854 12.5529 1.05305 12.7956 1.29598C13.0364 1.5369 13.1814 1.82347 13.2674 2.11173C13.4307 2.65843 13.4025 3.29399 13.3646 3.83275C13.3558 3.95861 13.3462 4.0811 13.3369 4.20063C13.3027 4.63909 13.2716 5.03792 13.29 5.41777C13.3131 5.89278 13.4121 6.20897 13.5894 6.41849C13.7897 6.65519 14.0336 6.8041 14.2365 6.89438C14.3365 6.93893 14.4218 6.96703 14.4787 6.98333C14.507 6.99142 14.5277 6.99644 14.5391 6.99901L14.5476 7.00087L15.0991 7.09901V7.6645H12.9373C12.8081 7.55756 12.68 7.43372 12.5588 7.29052C12.1016 6.7501 11.9706 6.08078 11.9416 5.48324C11.9186 5.00885 11.9589 4.49792 11.9942 4.05032C12.0027 3.94209 12.0109 3.83752 12.0179 3.73811C12.0572 3.17882 12.0575 2.77784 11.9739 2.49806C11.9366 2.37307 11.8893 2.29891 11.8406 2.25018C11.794 2.20346 11.7142 2.14808 11.5593 2.10908C11.4429 2.07977 11.2684 2.06009 11.0981 2.04945C11.0181 2.04446 10.9477 2.04195 10.8977 2.0407C10.8728 2.04008 10.8532 2.03978 10.8405 2.03963L10.8266 2.03951L10.8239 2.0395L10.1491 2.03945L10.1492 0.689453L10.8243 0.6895L10.8241 1.3645Z" fill="%23333333"/%3E%3Cpath d="M10.8241 13.9645C10.8242 14.6395 10.8243 14.6395 10.8243 14.6395H10.8254L10.8275 14.6395L10.834 14.6395L10.8558 14.6393C10.8741 14.6391 10.8998 14.6387 10.9313 14.6379C10.9942 14.6363 11.0818 14.6332 11.1822 14.6269C11.3725 14.6151 11.648 14.5897 11.8889 14.5291C12.2461 14.4392 12.5529 14.276 12.7956 14.033C13.0364 13.7921 13.1814 13.5055 13.2674 13.2173C13.4307 12.6706 13.4025 12.035 13.3646 11.4963C13.3558 11.3704 13.3462 11.2479 13.3369 11.1284C13.3027 10.6899 13.2716 10.2911 13.29 9.91123C13.3131 9.43623 13.4121 9.12004 13.5894 8.91051C13.7897 8.67382 14.0336 8.52491 14.2365 8.43463C14.3365 8.39008 14.4218 8.36198 14.4787 8.34568C14.507 8.33759 14.5277 8.33257 14.5391 8.32999L14.5476 8.32813L15.0991 8.23V7.6645H12.9373C12.8081 7.77144 12.68 7.89528 12.5588 8.03849C12.1016 8.57891 11.9706 9.24823 11.9416 9.84577C11.9186 10.3202 11.9589 10.8311 11.9942 11.2787C12.0027 11.3869 12.0109 11.4915 12.0179 11.5909C12.0572 12.1502 12.0575 12.5512 11.9739 12.8309C11.9366 12.9559 11.8893 13.0301 11.8406 13.0788C11.794 13.1256 11.7142 13.1809 11.5593 13.2199C11.4429 13.2492 11.2684 13.2689 11.0981 13.2796C11.0181 13.2845 10.9477 13.2871 10.8977 13.2883C10.8728 13.2889 10.8532 13.2892 10.8405 13.2894L10.8266 13.2895L10.8239 13.2895L10.1491 13.2896L10.1492 14.6396L10.8243 14.6395L10.8241 13.9645Z" fill="%23333333"/%3E%3Cpath d="M4.97471 1.3645C4.97466 0.6895 4.97455 0.6895 4.97455 0.6895L4.97338 0.689501L4.97131 0.689505L4.96483 0.689533L4.94301 0.689721C4.92472 0.689929 4.89906 0.690334 4.86749 0.691122C4.8046 0.692692 4.71698 0.695814 4.61666 0.702076C4.42635 0.713953 4.15083 0.739273 3.9099 0.799933C3.55276 0.889854 3.24593 1.05305 3.00319 1.29598C2.76247 1.5369 2.61747 1.82347 2.53138 2.11173C2.3681 2.65843 2.39635 3.29399 2.43421 3.83275C2.44306 3.95861 2.45262 4.0811 2.46194 4.20063C2.49615 4.63909 2.52727 5.03792 2.50883 5.41777C2.48576 5.89278 2.38671 6.20897 2.20942 6.41849C2.00914 6.65519 1.76518 6.8041 1.56236 6.89438C1.46229 6.93893 1.37703 6.96703 1.32009 6.98333C1.29181 6.99142 1.2711 6.99644 1.25976 6.99901L1.25122 7.00087L0.699707 7.09901V7.6645H2.86155C2.9907 7.55756 3.11882 7.43372 3.23999 7.29052C3.69727 6.7501 3.82823 6.08078 3.85724 5.48324C3.88027 5.00885 3.83997 4.49792 3.80466 4.05032C3.79613 3.94209 3.78788 3.83752 3.78089 3.73811C3.74159 3.17882 3.74136 2.77784 3.82492 2.49806C3.86225 2.37307 3.9095 2.29891 3.95819 2.25018C4.00487 2.20346 4.0846 2.14808 4.23951 2.10908C4.35591 2.07977 4.53039 2.06009 4.70075 2.04945C4.78076 2.04446 4.85115 2.04195 4.90117 2.0407C4.92606 2.04008 4.94559 2.03978 4.95837 2.03963L4.97222 2.03951L4.97497 2.0395L5.64975 2.03945L5.64966 0.689453L4.97455 0.6895L4.97471 1.3645Z" fill="%23333333"/%3E%3Cpath d="M4.97471 13.9645C4.97466 14.6395 4.97455 14.6395 4.97455 14.6395H4.97338L4.97131 14.6395L4.96483 14.6395L4.94301 14.6393C4.92472 14.6391 4.89906 14.6387 4.86749 14.6379C4.8046 14.6363 4.71698 14.6332 4.61666 14.6269C4.42635 14.6151 4.15083 14.5897 3.9099 14.5291C3.55276 14.4392 3.24593 14.276 3.00319 14.033C2.76247 13.7921 2.61747 13.5055 2.53138 13.2173C2.3681 12.6706 2.39635 12.035 2.43421 11.4963C2.44306 11.3704 2.45261 11.2479 2.46194 11.1284C2.49615 10.6899 2.52727 10.2911 2.50883 9.91123C2.48576 9.43623 2.38671 9.12004 2.20942 8.91051C2.00914 8.67382 1.76518 8.52491 1.56236 8.43463C1.46229 8.39008 1.37703 8.36198 1.32009 8.34568C1.29181 8.33759 1.2711 8.33257 1.25976 8.32999L1.25122 8.32813L0.699707 8.23V7.6645H2.86155C2.9907 7.77144 3.11882 7.89528 3.23999 8.03849C3.69727 8.57891 3.82823 9.24823 3.85724 9.84577C3.88027 10.3202 3.83997 10.8311 3.80466 11.2787C3.79613 11.3869 3.78788 11.4915 3.78089 11.5909C3.74159 12.1502 3.74136 12.5512 3.82492 12.8309C3.86225 12.9559 3.9095 13.0301 3.95819 13.0788C4.00487 13.1256 4.0846 13.1809 4.23951 13.2199C4.35591 13.2492 4.53039 13.2689 4.70075 13.2796C4.78076 13.2845 4.85115 13.2871 4.90117 13.2883C4.92606 13.2889 4.94559 13.2892 4.95837 13.2894L4.97222 13.2895L4.97497 13.2895L5.64975 13.2896L5.64966 14.6396L4.97455 14.6395L4.97471 13.9645Z" fill="%23333333"/%3E%3C/svg%3E') url('data:image/svg+xml,%3Csvg width="15" height="13" viewBox="-2 0 13 13" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM5.27988 2.40003H6.71988V6.72003H5.27988V2.40003ZM6.72009 8.16003H5.28009V9.60003H6.72009V8.16003Z" fill="%23DB3700"/%3E%3C/svg%3E');
84
+ outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
85
+ }
63
86
  }
64
87
 
65
- &:not(:hover):not(.ck-widget_selected) {
66
- outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
88
+ /* Styling for the value preview: merge field icon with the grey outline. */
89
+ &:not(.ck-merge-field-block_with-warning) {
90
+ &::before {
91
+ content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none"%3E%3Ccircle cx="7.89981" cy="7.70938" r="1.35" fill="%23333333"/%3E%3Cpath d="M10.8241 1.3645C10.8242 0.6895 10.8243 0.6895 10.8243 0.6895L10.8254 0.689501L10.8275 0.689505L10.834 0.689533L10.8558 0.689721C10.8741 0.689929 10.8998 0.690334 10.9313 0.691122C10.9942 0.692692 11.0818 0.695814 11.1822 0.702076C11.3725 0.713953 11.648 0.739273 11.8889 0.799933C12.2461 0.889854 12.5529 1.05305 12.7956 1.29598C13.0364 1.5369 13.1814 1.82347 13.2674 2.11173C13.4307 2.65843 13.4025 3.29399 13.3646 3.83275C13.3558 3.95861 13.3462 4.0811 13.3369 4.20063C13.3027 4.63909 13.2716 5.03792 13.29 5.41777C13.3131 5.89278 13.4121 6.20897 13.5894 6.41849C13.7897 6.65519 14.0336 6.8041 14.2365 6.89438C14.3365 6.93893 14.4218 6.96703 14.4787 6.98333C14.507 6.99142 14.5277 6.99644 14.5391 6.99901L14.5476 7.00087L15.0991 7.09901V7.6645H12.9373C12.8081 7.55756 12.68 7.43372 12.5588 7.29052C12.1016 6.7501 11.9706 6.08078 11.9416 5.48324C11.9186 5.00885 11.9589 4.49792 11.9942 4.05032C12.0027 3.94209 12.0109 3.83752 12.0179 3.73811C12.0572 3.17882 12.0575 2.77784 11.9739 2.49806C11.9366 2.37307 11.8893 2.29891 11.8406 2.25018C11.794 2.20346 11.7142 2.14808 11.5593 2.10908C11.4429 2.07977 11.2684 2.06009 11.0981 2.04945C11.0181 2.04446 10.9477 2.04195 10.8977 2.0407C10.8728 2.04008 10.8532 2.03978 10.8405 2.03963L10.8266 2.03951L10.8239 2.0395L10.1491 2.03945L10.1492 0.689453L10.8243 0.6895L10.8241 1.3645Z" fill="%23333333"/%3E%3Cpath d="M10.8241 13.9645C10.8242 14.6395 10.8243 14.6395 10.8243 14.6395H10.8254L10.8275 14.6395L10.834 14.6395L10.8558 14.6393C10.8741 14.6391 10.8998 14.6387 10.9313 14.6379C10.9942 14.6363 11.0818 14.6332 11.1822 14.6269C11.3725 14.6151 11.648 14.5897 11.8889 14.5291C12.2461 14.4392 12.5529 14.276 12.7956 14.033C13.0364 13.7921 13.1814 13.5055 13.2674 13.2173C13.4307 12.6706 13.4025 12.035 13.3646 11.4963C13.3558 11.3704 13.3462 11.2479 13.3369 11.1284C13.3027 10.6899 13.2716 10.2911 13.29 9.91123C13.3131 9.43623 13.4121 9.12004 13.5894 8.91051C13.7897 8.67382 14.0336 8.52491 14.2365 8.43463C14.3365 8.39008 14.4218 8.36198 14.4787 8.34568C14.507 8.33759 14.5277 8.33257 14.5391 8.32999L14.5476 8.32813L15.0991 8.23V7.6645H12.9373C12.8081 7.77144 12.68 7.89528 12.5588 8.03849C12.1016 8.57891 11.9706 9.24823 11.9416 9.84577C11.9186 10.3202 11.9589 10.8311 11.9942 11.2787C12.0027 11.3869 12.0109 11.4915 12.0179 11.5909C12.0572 12.1502 12.0575 12.5512 11.9739 12.8309C11.9366 12.9559 11.8893 13.0301 11.8406 13.0788C11.794 13.1256 11.7142 13.1809 11.5593 13.2199C11.4429 13.2492 11.2684 13.2689 11.0981 13.2796C11.0181 13.2845 10.9477 13.2871 10.8977 13.2883C10.8728 13.2889 10.8532 13.2892 10.8405 13.2894L10.8266 13.2895L10.8239 13.2895L10.1491 13.2896L10.1492 14.6396L10.8243 14.6395L10.8241 13.9645Z" fill="%23333333"/%3E%3Cpath d="M4.97471 1.3645C4.97466 0.6895 4.97455 0.6895 4.97455 0.6895L4.97338 0.689501L4.97131 0.689505L4.96483 0.689533L4.94301 0.689721C4.92472 0.689929 4.89906 0.690334 4.86749 0.691122C4.8046 0.692692 4.71698 0.695814 4.61666 0.702076C4.42635 0.713953 4.15083 0.739273 3.9099 0.799933C3.55276 0.889854 3.24593 1.05305 3.00319 1.29598C2.76247 1.5369 2.61747 1.82347 2.53138 2.11173C2.3681 2.65843 2.39635 3.29399 2.43421 3.83275C2.44306 3.95861 2.45262 4.0811 2.46194 4.20063C2.49615 4.63909 2.52727 5.03792 2.50883 5.41777C2.48576 5.89278 2.38671 6.20897 2.20942 6.41849C2.00914 6.65519 1.76518 6.8041 1.56236 6.89438C1.46229 6.93893 1.37703 6.96703 1.32009 6.98333C1.29181 6.99142 1.2711 6.99644 1.25976 6.99901L1.25122 7.00087L0.699707 7.09901V7.6645H2.86155C2.9907 7.55756 3.11882 7.43372 3.23999 7.29052C3.69727 6.7501 3.82823 6.08078 3.85724 5.48324C3.88027 5.00885 3.83997 4.49792 3.80466 4.05032C3.79613 3.94209 3.78788 3.83752 3.78089 3.73811C3.74159 3.17882 3.74136 2.77784 3.82492 2.49806C3.86225 2.37307 3.9095 2.29891 3.95819 2.25018C4.00487 2.20346 4.0846 2.14808 4.23951 2.10908C4.35591 2.07977 4.53039 2.06009 4.70075 2.04945C4.78076 2.04446 4.85115 2.04195 4.90117 2.0407C4.92606 2.04008 4.94559 2.03978 4.95837 2.03963L4.97222 2.03951L4.97497 2.0395L5.64975 2.03945L5.64966 0.689453L4.97455 0.6895L4.97471 1.3645Z" fill="%23333333"/%3E%3Cpath d="M4.97471 13.9645C4.97466 14.6395 4.97455 14.6395 4.97455 14.6395H4.97338L4.97131 14.6395L4.96483 14.6395L4.94301 14.6393C4.92472 14.6391 4.89906 14.6387 4.86749 14.6379C4.8046 14.6363 4.71698 14.6332 4.61666 14.6269C4.42635 14.6151 4.15083 14.5897 3.9099 14.5291C3.55276 14.4392 3.24593 14.276 3.00319 14.033C2.76247 13.7921 2.61747 13.5055 2.53138 13.2173C2.3681 12.6706 2.39635 12.035 2.43421 11.4963C2.44306 11.3704 2.45261 11.2479 2.46194 11.1284C2.49615 10.6899 2.52727 10.2911 2.50883 9.91123C2.48576 9.43623 2.38671 9.12004 2.20942 8.91051C2.00914 8.67382 1.76518 8.52491 1.56236 8.43463C1.46229 8.39008 1.37703 8.36198 1.32009 8.34568C1.29181 8.33759 1.2711 8.33257 1.25976 8.32999L1.25122 8.32813L0.699707 8.23V7.6645H2.86155C2.9907 7.77144 3.11882 7.89528 3.23999 8.03849C3.69727 8.57891 3.82823 9.24823 3.85724 9.84577C3.88027 10.3202 3.83997 10.8311 3.80466 11.2787C3.79613 11.3869 3.78788 11.4915 3.78089 11.5909C3.74159 12.1502 3.74136 12.5512 3.82492 12.8309C3.86225 12.9559 3.9095 13.0301 3.95819 13.0788C4.00487 13.1256 4.0846 13.1809 4.23951 13.2199C4.35591 13.2492 4.53039 13.2689 4.70075 13.2796C4.78076 13.2845 4.85115 13.2871 4.90117 13.2883C4.92606 13.2889 4.94559 13.2892 4.95837 13.2894L4.97222 13.2895L4.97497 13.2895L5.64975 13.2896L5.64966 14.6396L4.97455 14.6395L4.97471 13.9645Z" fill="%23333333"/%3E%3C/svg%3E');
92
+ outline: 1px solid var(--ck-color-merge-fields-value-outline);
93
+ }
67
94
  }
68
95
  }
69
96
 
97
+ &:not(:hover):not(.ck-widget_selected),
70
98
  &.ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before,
71
99
  &.ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after {
72
- outline: 1px solid var(--ck-color-merge-fields-outline);
73
-
74
- &.ck-merge-field-block_with-warning {
75
- outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
76
- }
77
- }
78
-
79
- &.ck-merge-field-block_with-value {
80
- &::before {
81
- content: attr(data-merge-field-block-label);
82
- outline: 1px solid var(--ck-color-merge-fields-value-outline);
83
- }
100
+ outline: 1px solid var(--ck-color-merge-fields-block-outline);
84
101
  }
85
102
 
86
103
  &[dir="rtl"]::before {
@@ -89,27 +106,36 @@
89
106
  }
90
107
  }
91
108
 
92
- /* stylelint-disable no-descending-specificity */
93
109
  .ck .ck-merge-field {
110
+ border-radius: 2px;
111
+
94
112
  &:hover {
95
113
  transition: none;
96
114
  cursor: default;
97
115
  }
98
116
 
99
- &:not( .ck-merge-field-block * ) {
100
- /* Styles for textual (inline) merge fields only. */
117
+ &.ck-merge-field_with-warning {
118
+ padding-left: 0.15em;
119
+ }
120
+
121
+ &:not(.ck-merge-field_with-warning):not(.ck-merge-field_with-value) {
101
122
  padding-top: var(--ck-merge-fields-paddings-vertical);
102
123
  padding-bottom: var(--ck-merge-fields-paddings-vertical);
103
- -webkit-user-select: none;
104
- white-space: nowrap;
105
- outline-offset: 0;
106
- margin: 0 1px 0 2px;
107
- line-height: 0;
108
- border-radius: 2px;
124
+ line-height: 1.1em;
109
125
 
110
126
  &:not(:hover):not(.ck-widget_selected) {
111
127
  outline: 1px solid var(--ck-color-merge-fields-outline);
112
128
  }
129
+ }
130
+
131
+ &:not(.ck-merge-field-block *) {
132
+ /* Styles for textual (inline) merge fields only. */
133
+ -webkit-user-select: none;
134
+ white-space: nowrap;
135
+ margin: 0 1px 0 2px;
136
+ line-height: 0;
137
+ padding-top: var(--ck-merge-fields-paddings-vertical);
138
+ padding-bottom: var(--ck-merge-fields-paddings-vertical);
113
139
 
114
140
  &.ck-merge-field_with-warning {
115
141
  white-space: normal;
@@ -174,7 +200,6 @@
174
200
  padding-right: 0.15em;
175
201
  }
176
202
  }
177
- /* stylelint-enable no-descending-specificity */
178
203
 
179
204
  .ck .ck-merge-fields-form {
180
205
  padding: var(--ck-spacing-medium);
@@ -193,7 +218,36 @@
193
218
  }
194
219
  }
195
220
 
221
+ /* Show outlines for hovered merge fields in read–only mode. */
222
+ .ck-editor__editable.ck-read-only {
223
+ & .ck-merge-field-block:hover:not(.ck-widget_selected) {
224
+ outline: 1px solid var(--ck-color-merge-fields-block-outline);
225
+ }
226
+
227
+ & .ck-merge-field:hover:not(.ck-widget_selected) {
228
+ &:not(.ck-merge-field_with-warning):not(.ck-merge-field_with-value) {
229
+ outline: 1px solid var(--ck-color-merge-fields-outline);
230
+ padding-top: var(--ck-merge-fields-paddings-vertical);
231
+ padding-bottom: var(--ck-merge-fields-paddings-vertical);
232
+ }
233
+
234
+ &:not(.ck-merge-field-block *) {
235
+ outline: 1px solid var(--ck-color-merge-fields-outline);
236
+
237
+ &.ck-merge-field_with-warning {
238
+ outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
239
+ }
240
+
241
+ &.ck-merge-field_with-value {
242
+ outline: 1px solid var(--ck-color-merge-fields-value-outline);
243
+ }
244
+ }
245
+ }
246
+ }
247
+
196
248
  /* Disable all mouse interaction for block merge field previews as long as the editor is not read–only. */
197
249
  .ck-editor__editable:not(.ck-read-only) .ck-widget.ck-merge-field-block .ck-merge-field {
198
250
  pointer-events: none;
199
251
  }
252
+
253
+ /* stylelint-enable no-descending-specificity */