@ckeditor/ckeditor5-find-and-replace 38.2.0-alpha.1 → 39.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.
package/README.md CHANGED
@@ -4,7 +4,6 @@ CKEditor 5 find and replace feature
4
4
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-find-and-replace.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-find-and-replace)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
6
6
  [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
7
- ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-find-and-replace)
8
7
 
9
8
  This package implements the find and replace feature for CKEditor 5.
10
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-find-and-replace",
3
- "version": "38.2.0-alpha.1",
3
+ "version": "39.0.0",
4
4
  "description": "Find and replace feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -11,11 +11,10 @@
11
11
  "ckeditor5-dll"
12
12
  ],
13
13
  "main": "src/index.js",
14
- "type": "module",
15
14
  "dependencies": {
16
- "@ckeditor/ckeditor5-ui": "38.2.0-alpha.1",
17
- "ckeditor5": "38.2.0-alpha.1",
18
- "lodash-es": "^4.17.15"
15
+ "@ckeditor/ckeditor5-ui": "39.0.0",
16
+ "ckeditor5": "39.0.0",
17
+ "lodash-es": "4.17.21"
19
18
  },
20
19
  "engines": {
21
20
  "node": ">=16.0.0",
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, 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.js';
5
+ import type { FindAndReplace, FindAndReplaceEditing, FindAndReplaceUI, FindAndReplaceUtils, FindCommand, FindNextCommand, FindPreviousCommand, ReplaceAllCommand, ReplaceCommand } from './index';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface PluginsMap {
8
8
  [FindAndReplace.pluginName]: FindAndReplace;
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplace
7
7
  */
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';
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';
12
12
  export type ResultType = {
13
13
  id?: string;
14
14
  label?: string;
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplace
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import FindAndReplaceUI from './findandreplaceui.js';
10
- import FindAndReplaceEditing from './findandreplaceediting.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import FindAndReplaceUI from './findandreplaceui';
10
+ import FindAndReplaceEditing from './findandreplaceediting';
11
11
  /**
12
12
  * The find and replace plugin.
13
13
  *
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplaceediting
7
7
  */
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';
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';
14
14
  import '../theme/findandreplace.css';
15
15
  /**
16
16
  * Implements the editing part for find and replace plugin. For example conversion, commands etc.
@@ -5,15 +5,15 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplaceediting
7
7
  */
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';
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';
17
17
  import { debounce } from 'lodash-es';
18
18
  import '../theme/findandreplace.css';
19
19
  const HIGHLIGHT_CLASS = 'ck-find-result_selected';
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplacestate
7
7
  */
8
- import type { Model } from 'ckeditor5/src/engine.js';
9
- import { Collection } from 'ckeditor5/src/utils.js';
10
- import type { ResultType } from './findandreplace.js';
8
+ import type { Model } from 'ckeditor5/src/engine';
9
+ import { Collection } from 'ckeditor5/src/utils';
10
+ import type { ResultType } from './findandreplace';
11
11
  declare const FindAndReplaceState_base: {
12
- new (): import("ckeditor5/src/utils.js").Observable;
13
- prototype: import("ckeditor5/src/utils.js").Observable;
12
+ new (): import("ckeditor5/src/utils").Observable;
13
+ prototype: import("ckeditor5/src/utils").Observable;
14
14
  };
15
15
  /**
16
16
  * The object storing find and replace plugin state for a given editor instance.
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, 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.js';
5
+ import { ObservableMixin, Collection } from 'ckeditor5/src/utils';
6
6
  /**
7
7
  * The object storing find and replace plugin state for a given editor instance.
8
8
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplaceui
7
7
  */
8
- import { type Editor, Plugin } from 'ckeditor5/src/core.js';
9
- import { type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui.js';
10
- import FindAndReplaceFormView from './ui/findandreplaceformview.js';
8
+ import { type Editor, Plugin } from 'ckeditor5/src/core';
9
+ import { type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui';
10
+ import FindAndReplaceFormView from './ui/findandreplaceformview';
11
11
  /**
12
12
  * The default find and replace UI.
13
13
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplaceui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { createDropdown, CssTransitionDisablerMixin } from 'ckeditor5/src/ui.js';
10
- import FindAndReplaceFormView from './ui/findandreplaceformview.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { createDropdown, CssTransitionDisablerMixin } from 'ckeditor5/src/ui';
10
+ import FindAndReplaceFormView from './ui/findandreplaceformview';
11
11
  import loupeIcon from '../theme/icons/find-replace.svg';
12
12
  /**
13
13
  * The default find and replace UI.
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module find-and-replace/findandreplaceutils
7
7
  */
8
- import type { Item, Model, Range } from 'ckeditor5/src/engine.js';
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import { Collection } from 'ckeditor5/src/utils.js';
11
- import type { ResultType } from './findandreplace.js';
8
+ import type { Item, Model, Range } from 'ckeditor5/src/engine';
9
+ import { Plugin } from 'ckeditor5/src/core';
10
+ import { Collection } from 'ckeditor5/src/utils';
11
+ import type { ResultType } from './findandreplace';
12
12
  /**
13
13
  * A set of helpers related to find and replace.
14
14
  */
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { Plugin } from 'ckeditor5/src/core.js';
6
- import { Collection, uid } from 'ckeditor5/src/utils.js';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import { Collection, uid } from 'ckeditor5/src/utils';
7
7
  import { escapeRegExp } from 'lodash-es';
8
8
  /**
9
9
  * A set of helpers related to find and replace.
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module find-and-replace/findcommand
7
7
  */
8
- import type { Item } from 'ckeditor5/src/engine.js';
9
- import { Command, type Editor } from 'ckeditor5/src/core.js';
10
- import type { Collection } from 'ckeditor5/src/utils.js';
11
- import type FindAndReplaceState from './findandreplacestate.js';
12
- import type { ResultType } from './findandreplace.js';
8
+ import type { Item } from 'ckeditor5/src/engine';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type { Collection } from 'ckeditor5/src/utils';
11
+ import type FindAndReplaceState from './findandreplacestate';
12
+ import type { ResultType } from './findandreplace';
13
13
  /**
14
14
  * The find command. It is used by the {@link module:find-and-replace/findandreplace~FindAndReplace find and replace feature}.
15
15
  */
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { Command } from 'ckeditor5/src/core.js';
5
+ import { Command } from 'ckeditor5/src/core';
6
6
  /**
7
7
  * The find command. It is used by the {@link module:find-and-replace/findandreplace~FindAndReplace find and replace feature}.
8
8
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module find-and-replace/findnextcommand
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core.js';
9
- import type FindAndReplaceState from './findandreplacestate.js';
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
+ import type FindAndReplaceState from './findandreplacestate';
10
10
  /**
11
11
  * The find next command. Moves the highlight to the next search result.
12
12
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module find-and-replace/findnextcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * The find next command. Moves the highlight to the next search result.
11
11
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module find-and-replace/findpreviouscommand
7
7
  */
8
- import FindNextCommand from './findnextcommand.js';
8
+ import FindNextCommand from './findnextcommand';
9
9
  /**
10
10
  * The find previous command. Moves the highlight to the previous search result.
11
11
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module find-and-replace/findpreviouscommand
7
7
  */
8
- import FindNextCommand from './findnextcommand.js';
8
+ import FindNextCommand from './findnextcommand';
9
9
  /**
10
10
  * The find previous command. Moves the highlight to the previous search result.
11
11
  *
package/src/index.d.ts CHANGED
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module find-and-replace
7
7
  */
8
- export { default as FindAndReplace } from './findandreplace.js';
9
- export { default as FindAndReplaceEditing } from './findandreplaceediting.js';
10
- export { default as FindAndReplaceUI } from './findandreplaceui.js';
11
- export { default as FindAndReplaceUtils } from './findandreplaceutils.js';
12
- export { default as FindCommand } from './findcommand.js';
13
- export { default as FindNextCommand } from './findnextcommand.js';
14
- export { default as FindPreviousCommand } from './findpreviouscommand.js';
15
- export { default as ReplaceCommand } from './replacecommand.js';
16
- export { default as ReplaceAllCommand } from './replaceallcommand.js';
17
- import './augmentation.js';
8
+ export { default as FindAndReplace } from './findandreplace';
9
+ export { default as FindAndReplaceEditing } from './findandreplaceediting';
10
+ export { default as FindAndReplaceUI } from './findandreplaceui';
11
+ export { default as FindAndReplaceUtils } from './findandreplaceutils';
12
+ export { default as FindCommand } from './findcommand';
13
+ export { default as FindNextCommand } from './findnextcommand';
14
+ export { default as FindPreviousCommand } from './findpreviouscommand';
15
+ export { default as ReplaceCommand } from './replacecommand';
16
+ export { default as ReplaceAllCommand } from './replaceallcommand';
17
+ import './augmentation';
package/src/index.js CHANGED
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module find-and-replace
7
7
  */
8
- export { default as FindAndReplace } from './findandreplace.js';
9
- export { default as FindAndReplaceEditing } from './findandreplaceediting.js';
10
- export { default as FindAndReplaceUI } from './findandreplaceui.js';
11
- export { default as FindAndReplaceUtils } from './findandreplaceutils.js';
12
- export { default as FindCommand } from './findcommand.js';
13
- export { default as FindNextCommand } from './findnextcommand.js';
14
- export { default as FindPreviousCommand } from './findpreviouscommand.js';
15
- export { default as ReplaceCommand } from './replacecommand.js';
16
- export { default as ReplaceAllCommand } from './replaceallcommand.js';
17
- import './augmentation.js';
8
+ export { default as FindAndReplace } from './findandreplace';
9
+ export { default as FindAndReplaceEditing } from './findandreplaceediting';
10
+ export { default as FindAndReplaceUI } from './findandreplaceui';
11
+ export { default as FindAndReplaceUtils } from './findandreplaceutils';
12
+ export { default as FindCommand } from './findcommand';
13
+ export { default as FindNextCommand } from './findnextcommand';
14
+ export { default as FindPreviousCommand } from './findpreviouscommand';
15
+ export { default as ReplaceCommand } from './replacecommand';
16
+ export { default as ReplaceAllCommand } from './replaceallcommand';
17
+ import './augmentation';
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module find-and-replace/replaceallcommand
7
7
  */
8
- import { Collection } from 'ckeditor5/src/utils.js';
9
- import type { ResultType } from './findandreplace.js';
10
- import { ReplaceCommandBase } from './replacecommandbase.js';
8
+ import { Collection } from 'ckeditor5/src/utils';
9
+ import type { ResultType } from './findandreplace';
10
+ import { ReplaceCommandBase } from './replacecommandbase';
11
11
  /**
12
12
  * The replace all command. It is used by the {@link module:find-and-replace/findandreplace~FindAndReplace find and replace feature}.
13
13
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module find-and-replace/replaceallcommand
7
7
  */
8
- import { Collection } from 'ckeditor5/src/utils.js';
9
- import { ReplaceCommandBase } from './replacecommandbase.js';
8
+ import { Collection } from 'ckeditor5/src/utils';
9
+ import { ReplaceCommandBase } from './replacecommandbase';
10
10
  /**
11
11
  * The replace all command. It is used by the {@link module:find-and-replace/findandreplace~FindAndReplace find and replace feature}.
12
12
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module find-and-replace/replacecommand
7
7
  */
8
- import type { ResultType } from './findandreplace.js';
9
- import { ReplaceCommandBase } from './replacecommandbase.js';
8
+ import type { ResultType } from './findandreplace';
9
+ import { ReplaceCommandBase } from './replacecommandbase';
10
10
  /**
11
11
  * The replace command. It is used by the {@link module:find-and-replace/findandreplace~FindAndReplace find and replace feature}.
12
12
  */
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { ReplaceCommandBase } from './replacecommandbase.js';
5
+ import { ReplaceCommandBase } from './replacecommandbase';
6
6
  /**
7
7
  * The replace command. It is used by the {@link module:find-and-replace/findandreplace~FindAndReplace find and replace feature}.
8
8
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module find-and-replace/replacecommandbase
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core.js';
9
- import type { ResultType } from './findandreplace.js';
10
- import type FindAndReplaceState from './findandreplacestate.js';
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
+ import type { ResultType } from './findandreplace';
10
+ import type FindAndReplaceState from './findandreplacestate';
11
11
  export declare abstract class ReplaceCommandBase extends Command {
12
12
  /**
13
13
  * The find and replace state object used for command operations.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module find-and-replace/replacecommandbase
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
9
  export class ReplaceCommandBase extends Command {
10
10
  /**
11
11
  * Creates a new `ReplaceCommand` instance.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module find-and-replace/ui/findandreplaceformview
7
7
  */
8
- import { View, LabeledFieldView, type InputView } from 'ckeditor5/src/ui.js';
9
- import { type Locale } from 'ckeditor5/src/utils.js';
8
+ import { View, LabeledFieldView, type InputView } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
10
  import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
11
11
  import '../../theme/findandreplaceform.css';
12
12
  /**
@@ -5,15 +5,15 @@
5
5
  /**
6
6
  * @module find-and-replace/ui/findandreplaceformview
7
7
  */
8
- import { View, ButtonView, FormHeaderView, LabeledFieldView, Model, FocusCycler, createLabeledInputText, submitHandler, ViewCollection, createDropdown, addListToDropdown } from 'ckeditor5/src/ui.js';
9
- import { FocusTracker, KeystrokeHandler, Collection, Rect, isVisible } from 'ckeditor5/src/utils.js';
8
+ import { View, ButtonView, FormHeaderView, LabeledFieldView, Model, FocusCycler, createLabeledInputText, submitHandler, ViewCollection, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
9
+ import { FocusTracker, KeystrokeHandler, Collection, Rect, isVisible } from 'ckeditor5/src/utils';
10
10
  // See: #8833.
11
11
  // eslint-disable-next-line ckeditor5-rules/ckeditor-imports
12
12
  import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
13
13
  import '../../theme/findandreplaceform.css';
14
14
  // eslint-disable-next-line ckeditor5-rules/ckeditor-imports
15
15
  import previousArrow from '@ckeditor/ckeditor5-ui/theme/icons/previous-arrow.svg';
16
- import { icons } from 'ckeditor5/src/core.js';
16
+ import { icons } from 'ckeditor5/src/core';
17
17
  /**
18
18
  * The find and replace form view class.
19
19
  *