@ckeditor/ckeditor5-find-and-replace 40.1.0 → 41.0.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 (136) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/find-and-replace.js +3 -3
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/bs.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fa.js +1 -1
  17. package/build/translations/fi.js +1 -1
  18. package/build/translations/fr.js +1 -1
  19. package/build/translations/gl.js +1 -1
  20. package/build/translations/he.js +1 -1
  21. package/build/translations/hi.js +1 -1
  22. package/build/translations/hr.js +1 -1
  23. package/build/translations/hu.js +1 -1
  24. package/build/translations/id.js +1 -1
  25. package/build/translations/it.js +1 -1
  26. package/build/translations/ja.js +1 -1
  27. package/build/translations/jv.js +1 -1
  28. package/build/translations/ko.js +1 -1
  29. package/build/translations/lt.js +1 -1
  30. package/build/translations/lv.js +1 -1
  31. package/build/translations/ms.js +1 -1
  32. package/build/translations/nl.js +1 -1
  33. package/build/translations/no.js +1 -1
  34. package/build/translations/pl.js +1 -1
  35. package/build/translations/pt-br.js +1 -1
  36. package/build/translations/pt.js +1 -1
  37. package/build/translations/ro.js +1 -1
  38. package/build/translations/ru.js +1 -1
  39. package/build/translations/sk.js +1 -1
  40. package/build/translations/sr-latn.js +1 -1
  41. package/build/translations/sr.js +1 -1
  42. package/build/translations/sv.js +1 -1
  43. package/build/translations/th.js +1 -1
  44. package/build/translations/tr.js +1 -1
  45. package/build/translations/tt.js +1 -1
  46. package/build/translations/ug.js +1 -1
  47. package/build/translations/uk.js +1 -1
  48. package/build/translations/ur.js +1 -1
  49. package/build/translations/vi.js +1 -1
  50. package/build/translations/zh-cn.js +1 -1
  51. package/build/translations/zh.js +1 -1
  52. package/ckeditor5-metadata.json +1 -1
  53. package/lang/contexts.json +1 -1
  54. package/lang/translations/af.po +4 -4
  55. package/lang/translations/ar.po +4 -4
  56. package/lang/translations/bg.po +4 -4
  57. package/lang/translations/bn.po +4 -4
  58. package/lang/translations/bs.po +4 -4
  59. package/lang/translations/ca.po +4 -4
  60. package/lang/translations/cs.po +4 -4
  61. package/lang/translations/da.po +4 -4
  62. package/lang/translations/de.po +4 -4
  63. package/lang/translations/el.po +4 -4
  64. package/lang/translations/en-au.po +4 -4
  65. package/lang/translations/en.po +4 -4
  66. package/lang/translations/es.po +4 -4
  67. package/lang/translations/et.po +4 -4
  68. package/lang/translations/fa.po +4 -4
  69. package/lang/translations/fi.po +4 -4
  70. package/lang/translations/fr.po +4 -4
  71. package/lang/translations/gl.po +4 -4
  72. package/lang/translations/he.po +4 -4
  73. package/lang/translations/hi.po +4 -4
  74. package/lang/translations/hr.po +4 -4
  75. package/lang/translations/hu.po +4 -4
  76. package/lang/translations/id.po +4 -4
  77. package/lang/translations/it.po +4 -4
  78. package/lang/translations/ja.po +4 -4
  79. package/lang/translations/jv.po +4 -4
  80. package/lang/translations/ko.po +4 -4
  81. package/lang/translations/lt.po +4 -4
  82. package/lang/translations/lv.po +4 -4
  83. package/lang/translations/ms.po +4 -4
  84. package/lang/translations/nl.po +4 -4
  85. package/lang/translations/no.po +4 -4
  86. package/lang/translations/pl.po +4 -4
  87. package/lang/translations/pt-br.po +4 -4
  88. package/lang/translations/pt.po +4 -4
  89. package/lang/translations/ro.po +4 -4
  90. package/lang/translations/ru.po +4 -4
  91. package/lang/translations/sk.po +4 -4
  92. package/lang/translations/sr-latn.po +4 -4
  93. package/lang/translations/sr.po +4 -4
  94. package/lang/translations/sv.po +4 -4
  95. package/lang/translations/th.po +4 -4
  96. package/lang/translations/tr.po +4 -4
  97. package/lang/translations/tt.po +3 -3
  98. package/lang/translations/ug.po +4 -4
  99. package/lang/translations/uk.po +4 -4
  100. package/lang/translations/ur.po +4 -4
  101. package/lang/translations/vi.po +4 -4
  102. package/lang/translations/zh-cn.po +4 -4
  103. package/lang/translations/zh.po +4 -4
  104. package/package.json +4 -3
  105. package/src/augmentation.d.ts +2 -2
  106. package/src/augmentation.js +1 -1
  107. package/src/findandreplace.d.ts +5 -5
  108. package/src/findandreplace.js +4 -4
  109. package/src/findandreplaceconfig.d.ts +31 -0
  110. package/src/findandreplaceconfig.js +5 -0
  111. package/src/findandreplaceediting.d.ts +7 -7
  112. package/src/findandreplaceediting.js +10 -10
  113. package/src/findandreplacestate.d.ts +6 -6
  114. package/src/findandreplacestate.js +2 -2
  115. package/src/findandreplaceui.d.ts +18 -6
  116. package/src/findandreplaceui.js +130 -41
  117. package/src/findandreplaceutils.d.ts +5 -5
  118. package/src/findandreplaceutils.js +3 -3
  119. package/src/findcommand.d.ts +6 -6
  120. package/src/findcommand.js +2 -2
  121. package/src/findnextcommand.d.ts +3 -3
  122. package/src/findnextcommand.js +2 -2
  123. package/src/findpreviouscommand.d.ts +2 -2
  124. package/src/findpreviouscommand.js +2 -2
  125. package/src/index.d.ts +12 -11
  126. package/src/index.js +11 -11
  127. package/src/replaceallcommand.d.ts +4 -4
  128. package/src/replaceallcommand.js +3 -3
  129. package/src/replacecommand.d.ts +3 -3
  130. package/src/replacecommand.js +2 -2
  131. package/src/replacecommandbase.d.ts +4 -4
  132. package/src/replacecommandbase.js +2 -2
  133. package/src/ui/findandreplaceformview.d.ts +38 -17
  134. package/src/ui/findandreplaceformview.js +117 -98
  135. package/theme/findandreplace.css +1 -1
  136. package/theme/findandreplaceform.css +4 -4
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Dica: Encontre algum texto primeiro para poder substituí-lo."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Mostrar opções"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Opções avançadas"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Sfat: Mai întâi găsiți textul pentru a-l înlocui."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Afișare opțiuni"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Opțiuni avansate"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Совет: сначала найдите текст, чтобы заменить его."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Показать опции"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Дополнительные параметры"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Tip: Najskôr vyhľadajte text, ktorý následne môžete nahradiť."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Zobraziť možnosti"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Pokročilé nastavenia"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Savet: Prvo pronađjite neki tekst da biste ga zamenili."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Prikaži opcije"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr ""
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Савет: Прво пронађите неки текст да бисте га заменили. "
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Прикажи опције "
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Napredne opcije"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Tips: Hitta någon text först för att ersätta den."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Visa alternativ"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Avancerade alternativ"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "เคล็ดลับ: ค้นหาข้อความบางอย่างก่อนจึงจะแทนที่ได้"
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "แสดงตัวเลือก"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "ตัวเลือกขั้นสูง"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "İpucu: Değiştirmek için önce bir metin bul."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Seçenekleri göster"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Gelişmiş seçenekler"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr ""
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
70
  msgstr ""
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "ئەسكەرتىش: ئاۋال ئىزدەپ ئاندىن ئالماشتۇرىدۇ."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "تاللانمىلارنى كۆرسەت"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr ""
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Порада: спочатку знайдіть текст, щоб замінити його."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Показати параметри"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Розширені опції"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "نکتہ: تبدیل کرنے کے لیے پہلے متن کو تلاش کریں۔"
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "نمائش اختیارات"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr ""
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "Mẹo: Tìm một đoạn văn bản trước để thay thế."
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "Hiển thị tùy chọn"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "Tùy chọn nâng cao"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "提示:先查找文本再替换"
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "显示配置"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "高级选项"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
65
65
  msgid "Tip: Find some text first in order to replace it."
66
66
  msgstr "提示:先查找字串再取代"
67
67
 
68
- msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
69
- msgid "Show options"
70
- msgstr "顯示設定"
68
+ msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
69
+ msgid "Advanced options"
70
+ msgstr "進階選項"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-find-and-replace",
3
- "version": "40.1.0",
3
+ "version": "41.0.0",
4
4
  "description": "Find and replace feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -10,10 +10,11 @@
10
10
  "ckeditor5-plugin",
11
11
  "ckeditor5-dll"
12
12
  ],
13
+ "type": "module",
13
14
  "main": "src/index.js",
14
15
  "dependencies": {
15
- "@ckeditor/ckeditor5-ui": "40.1.0",
16
- "ckeditor5": "40.1.0",
16
+ "@ckeditor/ckeditor5-ui": "41.0.0",
17
+ "ckeditor5": "41.0.0",
17
18
  "lodash-es": "4.17.21"
18
19
  },
19
20
  "author": "CKSource (http://cksource.com/)",
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
- import type { FindAndReplace, FindAndReplaceEditing, FindAndReplaceUI, FindAndReplaceUtils, FindCommand, FindNextCommand, FindPreviousCommand, ReplaceAllCommand, ReplaceCommand } from './index';
5
+ import type { FindAndReplace, FindAndReplaceEditing, FindAndReplaceUI, FindAndReplaceUtils, FindCommand, FindNextCommand, FindPreviousCommand, ReplaceAllCommand, ReplaceCommand } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface PluginsMap {
8
8
  [FindAndReplace.pluginName]: FindAndReplace;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  export {};
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module find-and-replace/findandreplace
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FindAndReplaceUI from './findandreplaceui';
10
- import FindAndReplaceEditing from './findandreplaceediting';
11
- import type { Marker } from 'ckeditor5/src/engine';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FindAndReplaceUI from './findandreplaceui.js';
10
+ import FindAndReplaceEditing from './findandreplaceediting.js';
11
+ import type { Marker } from 'ckeditor5/src/engine.js';
12
12
  export type ResultType = {
13
13
  id?: string;
14
14
  label?: string;
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module find-and-replace/findandreplace
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FindAndReplaceUI from './findandreplaceui';
10
- import FindAndReplaceEditing from './findandreplaceediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FindAndReplaceUI from './findandreplaceui.js';
10
+ import FindAndReplaceEditing from './findandreplaceediting.js';
11
11
  /**
12
12
  * The find and replace plugin.
13
13
  *
@@ -0,0 +1,31 @@
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
+ * @module find-and-replace/findandreplaceconfig
7
+ */
8
+ /**
9
+ * The configuration of the find and replace feature.
10
+ * The option is used by the {@link module:find-and-replace/findandreplace~FindAndReplace} feature.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * findAndReplace: ... // Find and replace feature config.
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ *
21
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
22
+ */
23
+ export interface FindAndReplaceConfig {
24
+ /**
25
+ * The type of the find and replace UI opened by the `'findAndReplace'` button registered in the
26
+ * editor's {@link module:ui/componentfactory~ComponentFactory component factory}
27
+ *
28
+ * The default value is `'dialog'`.
29
+ */
30
+ uiType?: 'dialog' | 'dropdown';
31
+ }
@@ -0,0 +1,5 @@
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
+ export {};
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module find-and-replace/findandreplaceediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import type { Item } from 'ckeditor5/src/engine';
10
- import { type Collection } from 'ckeditor5/src/utils';
11
- import FindAndReplaceState from './findandreplacestate';
12
- import FindAndReplaceUtils from './findandreplaceutils';
13
- import type { ResultType } from './findandreplace';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import type { Item } from 'ckeditor5/src/engine.js';
10
+ import { type Collection } from 'ckeditor5/src/utils.js';
11
+ import FindAndReplaceState from './findandreplacestate.js';
12
+ import FindAndReplaceUtils from './findandreplaceutils.js';
13
+ import type { ResultType } from './findandreplace.js';
14
14
  import '../theme/findandreplace.css';
15
15
  /**
16
16
  * Implements the editing part for find and replace plugin. For example conversion, commands etc.
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module find-and-replace/findandreplaceediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { scrollViewportToShowTarget } from 'ckeditor5/src/utils';
10
- import FindCommand from './findcommand';
11
- import ReplaceCommand from './replacecommand';
12
- import ReplaceAllCommand from './replaceallcommand';
13
- import FindNextCommand from './findnextcommand';
14
- import FindPreviousCommand from './findpreviouscommand';
15
- import FindAndReplaceState from './findandreplacestate';
16
- import FindAndReplaceUtils from './findandreplaceutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { scrollViewportToShowTarget } from 'ckeditor5/src/utils.js';
10
+ import FindCommand from './findcommand.js';
11
+ import ReplaceCommand from './replacecommand.js';
12
+ import ReplaceAllCommand from './replaceallcommand.js';
13
+ import FindNextCommand from './findnextcommand.js';
14
+ import FindPreviousCommand from './findpreviouscommand.js';
15
+ import FindAndReplaceState from './findandreplacestate.js';
16
+ import FindAndReplaceUtils from './findandreplaceutils.js';
17
17
  import { debounce } from 'lodash-es';
18
18
  import '../theme/findandreplace.css';
19
19
  const HIGHLIGHT_CLASS = 'ck-find-result_selected';
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module find-and-replace/findandreplacestate
7
7
  */
8
- import type { Model } from 'ckeditor5/src/engine';
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import type { ResultType } from './findandreplace';
8
+ import type { Model } from 'ckeditor5/src/engine.js';
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ import type { ResultType } from './findandreplace.js';
11
11
  declare const FindAndReplaceState_base: {
12
- new (): import("ckeditor5/src/utils").Observable;
13
- prototype: import("ckeditor5/src/utils").Observable;
12
+ new (): import("ckeditor5/src/utils.js").Observable;
13
+ prototype: import("ckeditor5/src/utils.js").Observable;
14
14
  };
15
15
  /**
16
16
  * The object storing find and replace plugin state for a given editor instance.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
- import { ObservableMixin, Collection } from 'ckeditor5/src/utils';
5
+ import { ObservableMixin, Collection } from 'ckeditor5/src/utils.js';
6
6
  /**
7
7
  * The object storing find and replace plugin state for a given editor instance.
8
8
  */
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
6
6
  * @module find-and-replace/findandreplaceui
7
7
  */
8
- import { type Editor, Plugin } from 'ckeditor5/src/core';
9
- import { type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui';
10
- import FindAndReplaceFormView from './ui/findandreplaceformview';
8
+ import { type Editor, Plugin } from 'ckeditor5/src/core.js';
9
+ import { Dialog, type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui.js';
10
+ import FindAndReplaceFormView from './ui/findandreplaceformview.js';
11
11
  /**
12
12
  * The default find and replace UI.
13
13
  *
@@ -15,6 +15,10 @@ import FindAndReplaceFormView from './ui/findandreplaceformview';
15
15
  * that uses the {@link module:find-and-replace/findandreplace~FindAndReplace FindAndReplace} plugin API.
16
16
  */
17
17
  export default class FindAndReplaceUI extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof Dialog];
18
22
  /**
19
23
  * @inheritDoc
20
24
  */
@@ -32,14 +36,22 @@ export default class FindAndReplaceUI extends Plugin {
32
36
  */
33
37
  init(): void;
34
38
  /**
35
- * Sets up the find and replace button.
39
+ * Creates a dropdown containing the find and replace form.
36
40
  */
37
- private _setupDropdownButton;
41
+ private _createDropdown;
42
+ /**
43
+ * Creates a button that opens a dialog with the find and replace form.
44
+ */
45
+ private _createDialogButton;
38
46
  /**
39
47
  * Sets up the form view for the find and replace.
40
48
  *
41
49
  * @param formView A related form view.
42
50
  */
51
+ private _createFormView;
52
+ /**
53
+ * Clears the find and replace form and focuses the search text field.
54
+ */
43
55
  private _setupFormView;
44
56
  }
45
57
  /**