@atlaskit/editor-plugin-find-replace 30.0.2 → 30.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 30.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fc6a743d65633`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc6a743d65633) -
8
+ Remove unused @atlaskit/platform-feature-flags and @atlaskit/tmp-editor-statsig dependencies
9
+ - Updated dependencies
10
+
11
+ ## 30.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`4cdaf1f75d6ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cdaf1f75d6ad) -
16
+ Use const for stable local bindings
17
+ - Updated dependencies
18
+
3
19
  ## 30.0.2
4
20
 
5
21
  ### Patch Changes
@@ -26,15 +26,13 @@ var handleDocChanged = function handleDocChanged(tr, pluginState) {
26
26
  if (!tr.steps.find(_utils.stepHasSlice)) {
27
27
  return pluginState;
28
28
  }
29
-
30
- // Ignored via go/ees005
31
- // eslint-disable-next-line prefer-const
32
29
  var index = pluginState.index,
33
- decorationSet = pluginState.decorationSet,
30
+ initialDecorationSet = pluginState.decorationSet,
34
31
  matches = pluginState.matches,
35
32
  shouldMatchCase = pluginState.shouldMatchCase,
36
33
  getIntl = pluginState.getIntl,
37
34
  api = pluginState.api;
35
+ var decorationSet = initialDecorationSet;
38
36
  var newMatches = (0, _utils2.findMatches)({
39
37
  content: tr.doc,
40
38
  searchText: findText,
@@ -17,17 +17,15 @@ const handleDocChanged = (tr, pluginState) => {
17
17
  if (!tr.steps.find(stepHasSlice)) {
18
18
  return pluginState;
19
19
  }
20
-
21
- // Ignored via go/ees005
22
- // eslint-disable-next-line prefer-const
23
- let {
20
+ const {
24
21
  index,
25
- decorationSet,
22
+ decorationSet: initialDecorationSet,
26
23
  matches,
27
24
  shouldMatchCase,
28
25
  getIntl,
29
26
  api
30
27
  } = pluginState;
28
+ let decorationSet = initialDecorationSet;
31
29
  const newMatches = findMatches({
32
30
  content: tr.doc,
33
31
  searchText: findText,
@@ -19,15 +19,13 @@ var handleDocChanged = function handleDocChanged(tr, pluginState) {
19
19
  if (!tr.steps.find(stepHasSlice)) {
20
20
  return pluginState;
21
21
  }
22
-
23
- // Ignored via go/ees005
24
- // eslint-disable-next-line prefer-const
25
22
  var index = pluginState.index,
26
- decorationSet = pluginState.decorationSet,
23
+ initialDecorationSet = pluginState.decorationSet,
27
24
  matches = pluginState.matches,
28
25
  shouldMatchCase = pluginState.shouldMatchCase,
29
26
  getIntl = pluginState.getIntl,
30
27
  api = pluginState.api;
28
+ var decorationSet = initialDecorationSet;
31
29
  var newMatches = findMatches({
32
30
  content: tr.doc,
33
31
  searchText: findText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "30.0.2",
3
+ "version": "30.0.4",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,12 +34,11 @@
34
34
  "@atlaskit/form": "^18.3.0",
35
35
  "@atlaskit/icon": "^38.0.0",
36
36
  "@atlaskit/icon-lab": "^7.11.0",
37
- "@atlaskit/mention": "^30.5.0",
37
+ "@atlaskit/mention": "^30.6.0",
38
38
  "@atlaskit/platform-feature-experiments": "^0.3.0",
39
- "@atlaskit/platform-feature-flags": "^2.2.0",
40
39
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
41
40
  "@atlaskit/primitives": "^22.6.0",
42
- "@atlaskit/textfield": "^10.2.0",
41
+ "@atlaskit/textfield": "^10.3.0",
43
42
  "@atlaskit/tmp-editor-statsig": "^248.0.0",
44
43
  "@atlaskit/tokens": "^20.8.0",
45
44
  "@atlaskit/tooltip": "^24.4.0",
@@ -51,16 +50,12 @@
51
50
  "raf-schd": "^4.0.3"
52
51
  },
53
52
  "devDependencies": {
54
- "@testing-library/react": "^16.3.0",
55
- "@testing-library/user-event": "^14.4.3",
56
- "mockdate": "^3.0.5",
57
- "raf-stub": "^2.0.1",
58
53
  "react": "^19.2.0",
59
54
  "react-dom": "^19.2.0",
60
55
  "react-intl": "^7.0.0"
61
56
  },
62
57
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^134.1.0",
58
+ "@atlaskit/editor-common": "^134.2.0",
64
59
  "react": "^18.2.0 || ^19.2.0",
65
60
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
66
61
  }