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

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,260 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 1.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.2.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.2.8
4
16
 
5
17
  ### Patch Changes
6
18
 
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.
19
+ - [#104260](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104260)
20
+ [`2050e35bc9d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2050e35bc9d5) -
21
+ Removing feature flag `platform.design-system.editor-new-button_jjjdo` in
22
+ `@atlaskit/editor-plugin-find-replace` so the affected Buttons are using new Atlaskit Buttons by
23
+ default.
12
24
 
13
25
  ## 1.2.7
14
26
 
15
27
  ### Patch Changes
16
28
 
17
- - Updated dependencies
29
+ - Updated dependencies
18
30
 
19
31
  ## 1.2.6
20
32
 
21
33
  ### Patch Changes
22
34
 
23
- - Updated dependencies
35
+ - Updated dependencies
24
36
 
25
37
  ## 1.2.5
26
38
 
27
39
  ### Patch Changes
28
40
 
29
- - Updated dependencies
41
+ - Updated dependencies
30
42
 
31
43
  ## 1.2.4
32
44
 
33
45
  ### Patch Changes
34
46
 
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
47
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
48
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
49
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
50
+ language triggering composition on an empty line.This was fixed in a patch bump of
51
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
52
+ - Updated dependencies
41
53
 
42
54
  ## 1.2.3
43
55
 
44
56
  ### Patch Changes
45
57
 
46
- - Updated dependencies
58
+ - Updated dependencies
47
59
 
48
60
  ## 1.2.2
49
61
 
50
62
  ### Patch Changes
51
63
 
52
- - Updated dependencies
64
+ - Updated dependencies
53
65
 
54
66
  ## 1.2.1
55
67
 
56
68
  ### Patch Changes
57
69
 
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
70
+ - [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
71
+ [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
72
+ Migrated to the new button component
73
+ - Updated dependencies
62
74
 
63
75
  ## 1.2.0
64
76
 
65
77
  ### Minor Changes
66
78
 
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
79
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
80
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
81
+ bumped editor-prosemirror version to 4.0.0
70
82
 
71
83
  ### Patch Changes
72
84
 
73
- - Updated dependencies
85
+ - Updated dependencies
74
86
 
75
87
  ## 1.1.6
76
88
 
77
89
  ### Patch Changes
78
90
 
79
- - Updated dependencies
91
+ - Updated dependencies
80
92
 
81
93
  ## 1.1.5
82
94
 
83
95
  ### Patch Changes
84
96
 
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
97
+ - [#81374](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81374)
98
+ [`3e7990b6d1a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e7990b6d1a3) -
99
+ React 18 types for editor-plugin-find-replace
88
100
 
89
101
  ## 1.1.4
90
102
 
91
103
  ### Patch Changes
92
104
 
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
105
+ - [#78913](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78913)
106
+ [`b244d468a298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b244d468a298) -
107
+ fix incorrect usage of a platform ff in find and replace plugin
96
108
 
97
109
  ## 1.1.3
98
110
 
99
111
  ### Patch Changes
100
112
 
101
- - Updated dependencies
113
+ - Updated dependencies
102
114
 
103
115
  ## 1.1.2
104
116
 
105
117
  ### Patch Changes
106
118
 
107
- - Updated dependencies
119
+ - Updated dependencies
108
120
 
109
121
  ## 1.1.1
110
122
 
111
123
  ### Patch Changes
112
124
 
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.
125
+ - [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177)
126
+ [`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) -
127
+ Move styling for certain packages to tokens.
116
128
 
117
129
  ## 1.1.0
118
130
 
119
131
  ### Minor Changes
120
132
 
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:
133
+ - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
134
+ [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
135
+ Breaking change:
124
136
 
125
- ## WHAT?:
137
+ ## WHAT?:
126
138
 
127
- Removing feature flags:
139
+ Removing feature flags:
128
140
 
129
- - singleLayout
130
- - newInsertionBehaviour
131
- - interactiveExpand
132
- - findReplace
133
- - findReplaceMatchCase
134
- - extendFloatingToolbar
141
+ - singleLayout
142
+ - newInsertionBehaviour
143
+ - interactiveExpand
144
+ - findReplace
145
+ - findReplaceMatchCase
146
+ - extendFloatingToolbar
135
147
 
136
- ## WHY?:
148
+ ## WHY?:
137
149
 
138
- Because the flags and props are unused/by default active. Removing them will reduce our
139
- maintenance burden
150
+ Because the flags and props are unused/by default active. Removing them will reduce our
151
+ maintenance burden
140
152
 
141
- ## HOW to update your code:
153
+ ## HOW to update your code:
142
154
 
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.
155
+ - If you were using the feature flag - the behaviour is now default and you can remove the flags
156
+ - If you were not using the feature flag - the behaviour is now default.
157
+ - If you have opted out of using the feature flag - we have been careful to ensure no-one has
158
+ opted out of the behaviours. If you do have an issue please reach out to #help-editor.
148
159
 
149
160
  ### Patch Changes
150
161
 
151
- - Updated dependencies
162
+ - Updated dependencies
152
163
 
153
164
  ## 1.0.2
154
165
 
155
166
  ### Patch Changes
156
167
 
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`.
168
+ - [#72125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72125)
169
+ [`9b19a14df053`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9b19a14df053) -
170
+ Migrated buttons in find and replace popup to new atlaskit buttons with a feature flag
171
+ `platform.design-system-team.editor-new-button_jjjdo`.
161
172
 
162
173
  ## 1.0.1
163
174
 
164
175
  ### Patch Changes
165
176
 
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.
177
+ - [#72710](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72710)
178
+ [`3a884530c4d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a884530c4d2) -
179
+ Move translation strings for find-replace to ICU format.
169
180
 
170
181
  ## 1.0.0
171
182
 
172
183
  ### Major Changes
173
184
 
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.
185
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
186
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
187
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
188
+ is to address an issue with Jira plugin consumption.
178
189
 
179
190
  ### Patch Changes
180
191
 
181
- - Updated dependencies
192
+ - Updated dependencies
182
193
 
183
194
  ## 0.3.2
184
195
 
185
196
  ### Patch Changes
186
197
 
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
198
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
199
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
200
+ Upgrading @atlaskit/editor-prosemirror dependency
190
201
 
191
202
  ## 0.3.1
192
203
 
193
204
  ### Patch Changes
194
205
 
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
206
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
207
+ [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
208
+ Move all plugin translations to editor-common
209
+ - Updated dependencies
199
210
 
200
211
  ## 0.3.0
201
212
 
202
213
  ### Minor Changes
203
214
 
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 )
215
+ - [#67595](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67595)
216
+ [`3bb66071a333`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3bb66071a333) -
217
+ [ux] ECA11Y-75: Updated UX/UI for "Find and Replace" modal window, added Focus trap to Find and
218
+ Replace popup, added return focus to the search button when pressing ESC, update selected match
219
+ and all matches highlighted colors, added Screan Reader announcements for repeated button clicks (
220
+ subtickets: ECA11Y-144, ECA11Y-145, ECA11Y-146, ECA11Y-147, ECA11Y-148, ECA11Y-149 )
210
221
 
211
222
  ## 0.2.0
212
223
 
213
224
  ### Minor Changes
214
225
 
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.
226
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
227
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
228
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
218
229
 
219
- Now when using the editor API with the universal preset
230
+ Now when using the editor API with the universal preset
220
231
 
221
232
  ### Patch Changes
222
233
 
223
- - Updated dependencies
234
+ - Updated dependencies
224
235
 
225
236
  ## 0.1.2
226
237
 
227
238
  ### Patch Changes
228
239
 
229
- - Updated dependencies
240
+ - Updated dependencies
230
241
 
231
242
  ## 0.1.1
232
243
 
233
244
  ### Patch Changes
234
245
 
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
246
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
247
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
248
+ [ED-21835] Change EditorAPI type to always union with undefined
238
249
 
239
250
  ## 0.1.0
240
251
 
241
252
  ### Minor Changes
242
253
 
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
254
+ - [#66388](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66388)
255
+ [`1698d83da05f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1698d83da05f) -
256
+ ED-21743: Extract find replace plugin from editor-core
246
257
 
247
258
  ### Patch Changes
248
259
 
249
- - Updated dependencies
260
+ - 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.10",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/button": "^17.17.0",
38
- "@atlaskit/editor-common": "^81.1.0",
38
+ "@atlaskit/editor-common": "^82.1.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": "^7.0.0",
46
46
  "@atlaskit/textfield": "^6.3.0",
47
- "@atlaskit/theme": "^12.8.0",
47
+ "@atlaskit/theme": "^12.9.0",
48
48
  "@atlaskit/tokens": "^1.49.0",
49
49
  "@atlaskit/tooltip": "^18.4.0",
50
50
  "@babel/runtime": "^7.0.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"