@atlaskit/editor-plugin-find-replace 1.2.8 → 1.2.9

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/.eslintrc.js CHANGED
@@ -1,30 +1,30 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- '@atlaskit/design-system/ensure-design-token-usage/preview': [
6
- 'error',
7
- { domains: ['spacing'], shouldEnforceFallbacks: false },
8
- ],
9
- '@typescript-eslint/ban-types': [
10
- 'error',
11
- {
12
- types: {
13
- 'React.FC':
14
- 'Please use types directly on props instead, and explicitly define children if required',
15
- 'React.FunctionalComponent':
16
- 'Please use types directly on props instead, and explicitly define children if required',
17
- },
18
- extendDefaults: false,
19
- },
20
- ],
21
- },
22
- overrides: [
23
- {
24
- files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
25
- rules: {
26
- '@typescript-eslint/no-explicit-any': 'off',
27
- },
28
- },
29
- ],
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ '@atlaskit/design-system/ensure-design-token-usage/preview': [
6
+ 'error',
7
+ { domains: ['spacing'], shouldEnforceFallbacks: false },
8
+ ],
9
+ '@typescript-eslint/ban-types': [
10
+ 'error',
11
+ {
12
+ types: {
13
+ 'React.FC':
14
+ 'Please use types directly on props instead, and explicitly define children if required',
15
+ 'React.FunctionalComponent':
16
+ 'Please use types directly on props instead, and explicitly define children if required',
17
+ },
18
+ extendDefaults: false,
19
+ },
20
+ ],
21
+ },
22
+ overrides: [
23
+ {
24
+ files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
25
+ rules: {
26
+ '@typescript-eslint/no-explicit-any': 'off',
27
+ },
28
+ },
29
+ ],
30
30
  };
package/CHANGELOG.md CHANGED
@@ -1,249 +1,254 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 1.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.2.8
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - [#104260](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104260)
8
- [`2050e35bc9d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2050e35bc9d5) -
9
- Removing feature flag `platform.design-system.editor-new-button_jjjdo` in
10
- `@atlaskit/editor-plugin-find-replace` so the affected Buttons are using new Atlaskit Buttons by
11
- default.
13
+ - [#104260](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104260)
14
+ [`2050e35bc9d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2050e35bc9d5) -
15
+ Removing feature flag `platform.design-system.editor-new-button_jjjdo` in
16
+ `@atlaskit/editor-plugin-find-replace` so the affected Buttons are using new Atlaskit Buttons by
17
+ default.
12
18
 
13
19
  ## 1.2.7
14
20
 
15
21
  ### Patch Changes
16
22
 
17
- - Updated dependencies
23
+ - Updated dependencies
18
24
 
19
25
  ## 1.2.6
20
26
 
21
27
  ### Patch Changes
22
28
 
23
- - Updated dependencies
29
+ - Updated dependencies
24
30
 
25
31
  ## 1.2.5
26
32
 
27
33
  ### Patch Changes
28
34
 
29
- - Updated dependencies
35
+ - Updated dependencies
30
36
 
31
37
  ## 1.2.4
32
38
 
33
39
  ### Patch Changes
34
40
 
35
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
36
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
37
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
38
- language triggering composition on an empty line.This was fixed in a patch bump of
39
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
40
- - Updated dependencies
41
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
42
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
43
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
44
+ language triggering composition on an empty line.This was fixed in a patch bump of
45
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
46
+ - Updated dependencies
41
47
 
42
48
  ## 1.2.3
43
49
 
44
50
  ### Patch Changes
45
51
 
46
- - Updated dependencies
52
+ - Updated dependencies
47
53
 
48
54
  ## 1.2.2
49
55
 
50
56
  ### Patch Changes
51
57
 
52
- - Updated dependencies
58
+ - Updated dependencies
53
59
 
54
60
  ## 1.2.1
55
61
 
56
62
  ### Patch Changes
57
63
 
58
- - [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
59
- [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
60
- Migrated to the new button component
61
- - Updated dependencies
64
+ - [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
65
+ [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
66
+ Migrated to the new button component
67
+ - Updated dependencies
62
68
 
63
69
  ## 1.2.0
64
70
 
65
71
  ### Minor Changes
66
72
 
67
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
68
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
69
- bumped editor-prosemirror version to 4.0.0
73
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
74
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
75
+ bumped editor-prosemirror version to 4.0.0
70
76
 
71
77
  ### Patch Changes
72
78
 
73
- - Updated dependencies
79
+ - Updated dependencies
74
80
 
75
81
  ## 1.1.6
76
82
 
77
83
  ### Patch Changes
78
84
 
79
- - Updated dependencies
85
+ - Updated dependencies
80
86
 
81
87
  ## 1.1.5
82
88
 
83
89
  ### Patch Changes
84
90
 
85
- - [#81374](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81374)
86
- [`3e7990b6d1a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e7990b6d1a3) -
87
- React 18 types for editor-plugin-find-replace
91
+ - [#81374](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81374)
92
+ [`3e7990b6d1a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e7990b6d1a3) -
93
+ React 18 types for editor-plugin-find-replace
88
94
 
89
95
  ## 1.1.4
90
96
 
91
97
  ### Patch Changes
92
98
 
93
- - [#78913](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78913)
94
- [`b244d468a298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b244d468a298) -
95
- fix incorrect usage of a platform ff in find and replace plugin
99
+ - [#78913](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78913)
100
+ [`b244d468a298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b244d468a298) -
101
+ fix incorrect usage of a platform ff in find and replace plugin
96
102
 
97
103
  ## 1.1.3
98
104
 
99
105
  ### Patch Changes
100
106
 
101
- - Updated dependencies
107
+ - Updated dependencies
102
108
 
103
109
  ## 1.1.2
104
110
 
105
111
  ### Patch Changes
106
112
 
107
- - Updated dependencies
113
+ - Updated dependencies
108
114
 
109
115
  ## 1.1.1
110
116
 
111
117
  ### Patch Changes
112
118
 
113
- - [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177)
114
- [`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) -
115
- Move styling for certain packages to tokens.
119
+ - [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177)
120
+ [`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) -
121
+ Move styling for certain packages to tokens.
116
122
 
117
123
  ## 1.1.0
118
124
 
119
125
  ### Minor Changes
120
126
 
121
- - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
122
- [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
123
- Breaking change:
127
+ - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
128
+ [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
129
+ Breaking change:
124
130
 
125
- ## WHAT?:
131
+ ## WHAT?:
126
132
 
127
- Removing feature flags:
133
+ Removing feature flags:
128
134
 
129
- - singleLayout
130
- - newInsertionBehaviour
131
- - interactiveExpand
132
- - findReplace
133
- - findReplaceMatchCase
134
- - extendFloatingToolbar
135
+ - singleLayout
136
+ - newInsertionBehaviour
137
+ - interactiveExpand
138
+ - findReplace
139
+ - findReplaceMatchCase
140
+ - extendFloatingToolbar
135
141
 
136
- ## WHY?:
142
+ ## WHY?:
137
143
 
138
- Because the flags and props are unused/by default active. Removing them will reduce our
139
- maintenance burden
144
+ Because the flags and props are unused/by default active. Removing them will reduce our
145
+ maintenance burden
140
146
 
141
- ## HOW to update your code:
147
+ ## HOW to update your code:
142
148
 
143
- - If you were using the feature flag - the behaviour is now default and you can remove the
144
- flags
145
- - If you were not using the feature flag - the behaviour is now default.
146
- - If you have opted out of using the feature flag - we have been careful to ensure no-one has
147
- opted out of the behaviours. If you do have an issue please reach out to #help-editor.
149
+ - If you were using the feature flag - the behaviour is now default and you can remove the flags
150
+ - If you were not using the feature flag - the behaviour is now default.
151
+ - If you have opted out of using the feature flag - we have been careful to ensure no-one has
152
+ opted out of the behaviours. If you do have an issue please reach out to #help-editor.
148
153
 
149
154
  ### Patch Changes
150
155
 
151
- - Updated dependencies
156
+ - Updated dependencies
152
157
 
153
158
  ## 1.0.2
154
159
 
155
160
  ### Patch Changes
156
161
 
157
- - [#72125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72125)
158
- [`9b19a14df053`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9b19a14df053) -
159
- Migrated buttons in find and replace popup to new atlaskit buttons with a feature flag
160
- `platform.design-system-team.editor-new-button_jjjdo`.
162
+ - [#72125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72125)
163
+ [`9b19a14df053`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9b19a14df053) -
164
+ Migrated buttons in find and replace popup to new atlaskit buttons with a feature flag
165
+ `platform.design-system-team.editor-new-button_jjjdo`.
161
166
 
162
167
  ## 1.0.1
163
168
 
164
169
  ### Patch Changes
165
170
 
166
- - [#72710](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72710)
167
- [`3a884530c4d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a884530c4d2) -
168
- Move translation strings for find-replace to ICU format.
171
+ - [#72710](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72710)
172
+ [`3a884530c4d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a884530c4d2) -
173
+ Move translation strings for find-replace to ICU format.
169
174
 
170
175
  ## 1.0.0
171
176
 
172
177
  ### Major Changes
173
178
 
174
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
175
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
176
- This changeset exists to bump all editor plugins that currently don't have a major version. This
177
- is to address an issue with Jira plugin consumption.
179
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
180
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
181
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
182
+ is to address an issue with Jira plugin consumption.
178
183
 
179
184
  ### Patch Changes
180
185
 
181
- - Updated dependencies
186
+ - Updated dependencies
182
187
 
183
188
  ## 0.3.2
184
189
 
185
190
  ### Patch Changes
186
191
 
187
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
188
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
189
- Upgrading @atlaskit/editor-prosemirror dependency
192
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
193
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
194
+ Upgrading @atlaskit/editor-prosemirror dependency
190
195
 
191
196
  ## 0.3.1
192
197
 
193
198
  ### Patch Changes
194
199
 
195
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
196
- [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
197
- Move all plugin translations to editor-common
198
- - Updated dependencies
200
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
201
+ [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
202
+ Move all plugin translations to editor-common
203
+ - Updated dependencies
199
204
 
200
205
  ## 0.3.0
201
206
 
202
207
  ### Minor Changes
203
208
 
204
- - [#67595](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67595)
205
- [`3bb66071a333`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3bb66071a333) -
206
- [ux] ECA11Y-75: Updated UX/UI for "Find and Replace" modal window, added Focus trap to Find and
207
- Replace popup, added return focus to the search button when pressing ESC, update selected match
208
- and all matches highlighted colors, added Screan Reader announcements for repeated button clicks
209
- ( subtickets: ECA11Y-144, ECA11Y-145, ECA11Y-146, ECA11Y-147, ECA11Y-148, ECA11Y-149 )
209
+ - [#67595](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67595)
210
+ [`3bb66071a333`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3bb66071a333) -
211
+ [ux] ECA11Y-75: Updated UX/UI for "Find and Replace" modal window, added Focus trap to Find and
212
+ Replace popup, added return focus to the search button when pressing ESC, update selected match
213
+ and all matches highlighted colors, added Screan Reader announcements for repeated button clicks (
214
+ subtickets: ECA11Y-144, ECA11Y-145, ECA11Y-146, ECA11Y-147, ECA11Y-148, ECA11Y-149 )
210
215
 
211
216
  ## 0.2.0
212
217
 
213
218
  ### Minor Changes
214
219
 
215
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
216
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
217
- Support maybeAdd plugins in usePreset. Add typing support for universal preset.
220
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
221
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
222
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
218
223
 
219
- Now when using the editor API with the universal preset
224
+ Now when using the editor API with the universal preset
220
225
 
221
226
  ### Patch Changes
222
227
 
223
- - Updated dependencies
228
+ - Updated dependencies
224
229
 
225
230
  ## 0.1.2
226
231
 
227
232
  ### Patch Changes
228
233
 
229
- - Updated dependencies
234
+ - Updated dependencies
230
235
 
231
236
  ## 0.1.1
232
237
 
233
238
  ### Patch Changes
234
239
 
235
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
236
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
237
- [ED-21835] Change EditorAPI type to always union with undefined
240
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
241
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
242
+ [ED-21835] Change EditorAPI type to always union with undefined
238
243
 
239
244
  ## 0.1.0
240
245
 
241
246
  ### Minor Changes
242
247
 
243
- - [#66388](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66388)
244
- [`1698d83da05f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1698d83da05f) -
245
- ED-21743: Extract find replace plugin from editor-core
248
+ - [#66388](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66388)
249
+ [`1698d83da05f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1698d83da05f) -
250
+ ED-21743: Extract find replace plugin from editor-core
246
251
 
247
252
  ### Patch Changes
248
253
 
249
- - Updated dependencies
254
+ - Updated dependencies
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -31,7 +31,7 @@ var _templateObject;
31
31
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
32
32
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
33
33
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
34
- var toolbarButtonWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex: 1 1 auto;\n flex-grow: 0;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ", ";\n @media (max-width: ", "px) {\n justify-content: center;\n padding: 0;\n }\n"])), "var(--ds-space-100, 8px)", _editorSharedStyles.akEditorMobileMaxWidth);
34
+ var toolbarButtonWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tflex-grow: 0;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tpadding: 0 ", ";\n\t@media (max-width: ", "px) {\n\t\tjustify-content: center;\n\t\tpadding: 0;\n\t}\n"])), "var(--ds-space-100, 8px)", _editorSharedStyles.akEditorMobileMaxWidth);
35
35
  var toolbarButtonWrapperFullWith = (0, _react2.css)({
36
36
  flexGrow: 1
37
37
  });
@@ -238,9 +238,9 @@ var Replace = /*#__PURE__*/function (_React$PureComponent) {
238
238
  testId: "message-success-replacement"
239
239
  },
240
240
  /*
241
- Replacement needed to trigger the SR announcement if message hasn't changed. e.g Replace button clicked twice.
242
- '\u00a0' is value for &nbsp
243
- */
241
+ Replacement needed to trigger the SR announcement if message hasn't changed. e.g Replace button clicked twice.
242
+ '\u00a0' is value for &nbsp
243
+ */
244
244
  this.state.fakeSuccessReplacementMessageUpdate ? resultsReplace.replace(/ /, "\xA0") : resultsReplace)))), (0, _react2.jsx)("div", {
245
245
  css: [_styles.sectionWrapperStyles, _styles.sectionWrapperStylesAlternate, _styles.sectionWrapperJustified]
246
246
  }, (0, _react2.jsx)("div", {
@@ -16,16 +16,16 @@ import FindReplace from './FindReplace';
16
16
 
17
17
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
18
18
  const toolbarButtonWrapper = css`
19
- display: flex;
20
- flex: 1 1 auto;
21
- flex-grow: 0;
22
- justify-content: flex-end;
23
- align-items: center;
24
- padding: 0 ${"var(--ds-space-100, 8px)"};
25
- @media (max-width: ${akEditorMobileMaxWidth}px) {
26
- justify-content: center;
27
- padding: 0;
28
- }
19
+ display: flex;
20
+ flex: 1 1 auto;
21
+ flex-grow: 0;
22
+ justify-content: flex-end;
23
+ align-items: center;
24
+ padding: 0 ${"var(--ds-space-100, 8px)"};
25
+ @media (max-width: ${akEditorMobileMaxWidth}px) {
26
+ justify-content: center;
27
+ padding: 0;
28
+ }
29
29
  `;
30
30
  const toolbarButtonWrapperFullWith = css({
31
31
  flexGrow: 1
@@ -214,9 +214,9 @@ class Replace extends React.PureComponent {
214
214
  testId: "message-success-replacement"
215
215
  },
216
216
  /*
217
- Replacement needed to trigger the SR announcement if message hasn't changed. e.g Replace button clicked twice.
218
- '\u00a0' is value for &nbsp
219
- */
217
+ Replacement needed to trigger the SR announcement if message hasn't changed. e.g Replace button clicked twice.
218
+ '\u00a0' is value for &nbsp
219
+ */
220
220
  this.state.fakeSuccessReplacementMessageUpdate ? resultsReplace.replace(/ /, '\u00a0') : resultsReplace)))), jsx("div", {
221
221
  css: [sectionWrapperStyles, sectionWrapperStylesAlternate, sectionWrapperJustified]
222
222
  }, jsx("div", {
@@ -25,7 +25,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
25
25
  import FindReplace from './FindReplace';
26
26
 
27
27
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
28
- var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex: 1 1 auto;\n flex-grow: 0;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ", ";\n @media (max-width: ", "px) {\n justify-content: center;\n padding: 0;\n }\n"])), "var(--ds-space-100, 8px)", akEditorMobileMaxWidth);
28
+ var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tflex-grow: 0;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tpadding: 0 ", ";\n\t@media (max-width: ", "px) {\n\t\tjustify-content: center;\n\t\tpadding: 0;\n\t}\n"])), "var(--ds-space-100, 8px)", akEditorMobileMaxWidth);
29
29
  var toolbarButtonWrapperFullWith = css({
30
30
  flexGrow: 1
31
31
  });
@@ -230,9 +230,9 @@ var Replace = /*#__PURE__*/function (_React$PureComponent) {
230
230
  testId: "message-success-replacement"
231
231
  },
232
232
  /*
233
- Replacement needed to trigger the SR announcement if message hasn't changed. e.g Replace button clicked twice.
234
- '\u00a0' is value for &nbsp
235
- */
233
+ Replacement needed to trigger the SR announcement if message hasn't changed. e.g Replace button clicked twice.
234
+ '\u00a0' is value for &nbsp
235
+ */
236
236
  this.state.fakeSuccessReplacementMessageUpdate ? resultsReplace.replace(/ /, "\xA0") : resultsReplace)))), jsx("div", {
237
237
  css: [sectionWrapperStyles, sectionWrapperStylesAlternate, sectionWrapperJustified]
238
238
  }, jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/button": "^17.17.0",
38
- "@atlaskit/editor-common": "^81.1.0",
38
+ "@atlaskit/editor-common": "^82.0.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
40
40
  "@atlaskit/editor-prosemirror": "4.0.1",
41
- "@atlaskit/editor-shared-styles": "^2.11.0",
42
- "@atlaskit/form": "^10.2.0",
41
+ "@atlaskit/editor-shared-styles": "^2.12.0",
42
+ "@atlaskit/form": "^10.3.0",
43
43
  "@atlaskit/icon": "^22.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^0.2.0",
45
- "@atlaskit/primitives": "^6.3.0",
45
+ "@atlaskit/primitives": "^6.5.0",
46
46
  "@atlaskit/textfield": "^6.3.0",
47
47
  "@atlaskit/theme": "^12.8.0",
48
48
  "@atlaskit/tokens": "^1.49.0",
@@ -54,9 +54,8 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@af/visual-regression": "*",
57
- "@atlaskit/editor-plugin-block-type": "^3.4.0",
57
+ "@atlaskit/editor-plugin-block-type": "^3.5.0",
58
58
  "@atlaskit/editor-plugin-text-formatting": "^1.7.0",
59
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
60
59
  "@atlassian/feature-flags-test-utils": "^0.2.0",
61
60
  "@testing-library/react": "^12.1.5",
62
61
  "@testing-library/user-event": "^14.4.3",
@@ -101,7 +100,6 @@
101
100
  ]
102
101
  }
103
102
  },
104
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
105
103
  "platform-feature-flags": {
106
104
  "platform.editor.a11y-find-replace": {
107
105
  "type": "boolean"