@atlaskit/editor-plugin-find-replace 30.0.1 → 30.0.3

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,19 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 30.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4cdaf1f75d6ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cdaf1f75d6ad) -
8
+ Use const for stable local bindings
9
+ - Updated dependencies
10
+
11
+ ## 30.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 30.0.1
4
18
 
5
19
  ### 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.1",
3
+ "version": "30.0.3",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
41
41
  "@atlaskit/primitives": "^22.6.0",
42
42
  "@atlaskit/textfield": "^10.2.0",
43
- "@atlaskit/tmp-editor-statsig": "^247.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^248.0.0",
44
44
  "@atlaskit/tokens": "^20.8.0",
45
45
  "@atlaskit/tooltip": "^24.4.0",
46
46
  "@babel/runtime": "^7.0.0",
@@ -60,7 +60,7 @@
60
60
  "react-intl": "^7.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^134.0.0",
63
+ "@atlaskit/editor-common": "^134.1.0",
64
64
  "react": "^18.2.0 || ^19.2.0",
65
65
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
66
66
  }