@atlaskit/editor-plugin-find-replace 1.2.7 → 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,239 +1,254 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 1.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.2.8
10
+
11
+ ### Patch Changes
12
+
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.
18
+
3
19
  ## 1.2.7
4
20
 
5
21
  ### Patch Changes
6
22
 
7
- - Updated dependencies
23
+ - Updated dependencies
8
24
 
9
25
  ## 1.2.6
10
26
 
11
27
  ### Patch Changes
12
28
 
13
- - Updated dependencies
29
+ - Updated dependencies
14
30
 
15
31
  ## 1.2.5
16
32
 
17
33
  ### Patch Changes
18
34
 
19
- - Updated dependencies
35
+ - Updated dependencies
20
36
 
21
37
  ## 1.2.4
22
38
 
23
39
  ### Patch Changes
24
40
 
25
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
26
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
27
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
28
- language triggering composition on an empty line.This was fixed in a patch bump of
29
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
30
- - 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
31
47
 
32
48
  ## 1.2.3
33
49
 
34
50
  ### Patch Changes
35
51
 
36
- - Updated dependencies
52
+ - Updated dependencies
37
53
 
38
54
  ## 1.2.2
39
55
 
40
56
  ### Patch Changes
41
57
 
42
- - Updated dependencies
58
+ - Updated dependencies
43
59
 
44
60
  ## 1.2.1
45
61
 
46
62
  ### Patch Changes
47
63
 
48
- - [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
49
- [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
50
- Migrated to the new button component
51
- - 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
52
68
 
53
69
  ## 1.2.0
54
70
 
55
71
  ### Minor Changes
56
72
 
57
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
58
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
59
- 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
60
76
 
61
77
  ### Patch Changes
62
78
 
63
- - Updated dependencies
79
+ - Updated dependencies
64
80
 
65
81
  ## 1.1.6
66
82
 
67
83
  ### Patch Changes
68
84
 
69
- - Updated dependencies
85
+ - Updated dependencies
70
86
 
71
87
  ## 1.1.5
72
88
 
73
89
  ### Patch Changes
74
90
 
75
- - [#81374](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81374)
76
- [`3e7990b6d1a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e7990b6d1a3) -
77
- 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
78
94
 
79
95
  ## 1.1.4
80
96
 
81
97
  ### Patch Changes
82
98
 
83
- - [#78913](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78913)
84
- [`b244d468a298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b244d468a298) -
85
- 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
86
102
 
87
103
  ## 1.1.3
88
104
 
89
105
  ### Patch Changes
90
106
 
91
- - Updated dependencies
107
+ - Updated dependencies
92
108
 
93
109
  ## 1.1.2
94
110
 
95
111
  ### Patch Changes
96
112
 
97
- - Updated dependencies
113
+ - Updated dependencies
98
114
 
99
115
  ## 1.1.1
100
116
 
101
117
  ### Patch Changes
102
118
 
103
- - [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177)
104
- [`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) -
105
- 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.
106
122
 
107
123
  ## 1.1.0
108
124
 
109
125
  ### Minor Changes
110
126
 
111
- - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
112
- [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
113
- 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:
114
130
 
115
- ## WHAT?:
131
+ ## WHAT?:
116
132
 
117
- Removing feature flags:
133
+ Removing feature flags:
118
134
 
119
- - singleLayout
120
- - newInsertionBehaviour
121
- - interactiveExpand
122
- - findReplace
123
- - findReplaceMatchCase
124
- - extendFloatingToolbar
135
+ - singleLayout
136
+ - newInsertionBehaviour
137
+ - interactiveExpand
138
+ - findReplace
139
+ - findReplaceMatchCase
140
+ - extendFloatingToolbar
125
141
 
126
- ## WHY?:
142
+ ## WHY?:
127
143
 
128
- Because the flags and props are unused/by default active. Removing them will reduce our
129
- maintenance burden
144
+ Because the flags and props are unused/by default active. Removing them will reduce our
145
+ maintenance burden
130
146
 
131
- ## HOW to update your code:
147
+ ## HOW to update your code:
132
148
 
133
- - If you were using the feature flag - the behaviour is now default and you can remove the
134
- flags
135
- - If you were not using the feature flag - the behaviour is now default.
136
- - If you have opted out of using the feature flag - we have been careful to ensure no-one has
137
- 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.
138
153
 
139
154
  ### Patch Changes
140
155
 
141
- - Updated dependencies
156
+ - Updated dependencies
142
157
 
143
158
  ## 1.0.2
144
159
 
145
160
  ### Patch Changes
146
161
 
147
- - [#72125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72125)
148
- [`9b19a14df053`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9b19a14df053) -
149
- Migrated buttons in find and replace popup to new atlaskit buttons with a feature flag
150
- `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`.
151
166
 
152
167
  ## 1.0.1
153
168
 
154
169
  ### Patch Changes
155
170
 
156
- - [#72710](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72710)
157
- [`3a884530c4d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a884530c4d2) -
158
- 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.
159
174
 
160
175
  ## 1.0.0
161
176
 
162
177
  ### Major Changes
163
178
 
164
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
165
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
166
- This changeset exists to bump all editor plugins that currently don't have a major version. This
167
- 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.
168
183
 
169
184
  ### Patch Changes
170
185
 
171
- - Updated dependencies
186
+ - Updated dependencies
172
187
 
173
188
  ## 0.3.2
174
189
 
175
190
  ### Patch Changes
176
191
 
177
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
178
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
179
- 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
180
195
 
181
196
  ## 0.3.1
182
197
 
183
198
  ### Patch Changes
184
199
 
185
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
186
- [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
187
- Move all plugin translations to editor-common
188
- - 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
189
204
 
190
205
  ## 0.3.0
191
206
 
192
207
  ### Minor Changes
193
208
 
194
- - [#67595](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67595)
195
- [`3bb66071a333`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3bb66071a333) -
196
- [ux] ECA11Y-75: Updated UX/UI for "Find and Replace" modal window, added Focus trap to Find and
197
- Replace popup, added return focus to the search button when pressing ESC, update selected match
198
- and all matches highlighted colors, added Screan Reader announcements for repeated button clicks
199
- ( 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 )
200
215
 
201
216
  ## 0.2.0
202
217
 
203
218
  ### Minor Changes
204
219
 
205
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
206
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
207
- 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.
208
223
 
209
- Now when using the editor API with the universal preset
224
+ Now when using the editor API with the universal preset
210
225
 
211
226
  ### Patch Changes
212
227
 
213
- - Updated dependencies
228
+ - Updated dependencies
214
229
 
215
230
  ## 0.1.2
216
231
 
217
232
  ### Patch Changes
218
233
 
219
- - Updated dependencies
234
+ - Updated dependencies
220
235
 
221
236
  ## 0.1.1
222
237
 
223
238
  ### Patch Changes
224
239
 
225
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
226
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
227
- [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
228
243
 
229
244
  ## 0.1.0
230
245
 
231
246
  ### Minor Changes
232
247
 
233
- - [#66388](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66388)
234
- [`1698d83da05f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1698d83da05f) -
235
- 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
236
251
 
237
252
  ### Patch Changes
238
253
 
239
- - 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.
@@ -147,19 +147,6 @@ var Find = /*#__PURE__*/function (_React$Component) {
147
147
  _this.findNext = formatMessage(_messages.findReplaceMessages.findNext);
148
148
  _this.findPrevious = formatMessage(_messages.findReplaceMessages.findPrevious);
149
149
  _this.matchCase = formatMessage(_messages.findReplaceMessages.matchCase);
150
- _this.matchCaseIcon = (0, _react2.jsx)(_keyboard.default, {
151
- label: _this.matchCase,
152
- size: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-find-replace') ? 'small' : 'medium'
153
- });
154
- _this.findNextIcon = (0, _react2.jsx)(_chevronDown.default, {
155
- label: _this.findNext
156
- });
157
- _this.findPrevIcon = (0, _react2.jsx)(_chevronUp.default, {
158
- label: _this.findPrevious
159
- });
160
- _this.closeIcon = (0, _react2.jsx)(_close.default, {
161
- label: _this.closeFindReplaceDialog
162
- });
163
150
 
164
151
  // We locally manage the value of the input inside this component in order to support compositions.
165
152
  // This requires some additional work inside componentDidUpdate to ensure we support changes that
@@ -235,8 +222,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
235
222
  }, (0, _react2.jsx)(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
236
223
  title: this.matchCase,
237
224
  appearance: "default",
238
- icon: this.matchCaseIcon,
239
- newIcon: _keyboard.default,
225
+ icon: _keyboard.default,
240
226
  iconLabel: this.matchCase,
241
227
  iconSize: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-find-replace') ? 'small' : undefined,
242
228
  onClick: this.handleMatchCaseClick,
@@ -287,32 +273,28 @@ var Find = /*#__PURE__*/function (_React$Component) {
287
273
  css: _styles.countStyles
288
274
  }, count.total === 0 ? this.noResultsFound : resultsCount)), (0, _react2.jsx)(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
289
275
  title: this.matchCase,
290
- icon: this.matchCaseIcon,
291
- newIcon: _keyboard.default,
276
+ icon: _keyboard.default,
292
277
  iconLabel: this.matchCase,
293
278
  iconSize: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-find-replace') ? 'small' : undefined,
294
279
  onClick: this.handleMatchCaseClick,
295
280
  isPressed: shouldMatchCase
296
281
  }), (0, _react2.jsx)(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
297
282
  title: this.findNext,
298
- icon: this.findNextIcon,
299
- newIcon: _chevronDown.default,
283
+ icon: _chevronDown.default,
300
284
  iconLabel: this.findNext,
301
285
  keymapDescription: 'Enter',
302
286
  onClick: this.handleFindNextClick,
303
287
  disabled: count.total <= 1
304
288
  }), (0, _react2.jsx)(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
305
289
  title: this.findPrevious,
306
- icon: this.findPrevIcon,
307
- newIcon: _chevronUp.default,
290
+ icon: _chevronUp.default,
308
291
  iconLabel: this.findPrevious,
309
292
  keymapDescription: 'Shift Enter',
310
293
  onClick: this.handleFindPrevClick,
311
294
  disabled: count.total <= 1
312
295
  }), (0, _react2.jsx)(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
313
296
  title: this.closeFindReplaceDialog,
314
- icon: this.closeIcon,
315
- newIcon: _close.default,
297
+ icon: _close.default,
316
298
  iconLabel: this.closeFindReplaceDialog,
317
299
  keymapDescription: 'Escape',
318
300
  onClick: this.clearSearch
@@ -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
  });
@@ -15,9 +15,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
  var _new = require("@atlaskit/button/new");
18
- var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
19
18
  var _keymaps = require("@atlaskit/editor-common/keymaps");
20
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
19
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
22
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -46,7 +44,6 @@ var FindReplaceTooltipButton = exports.FindReplaceTooltipButton = /*#__PURE__*/f
46
44
  var _this$props = this.props,
47
45
  title = _this$props.title,
48
46
  icon = _this$props.icon,
49
- newIcon = _this$props.newIcon,
50
47
  iconSize = _this$props.iconSize,
51
48
  keymapDescription = _this$props.keymapDescription,
52
49
  disabled = _this$props.disabled,
@@ -62,28 +59,17 @@ var FindReplaceTooltipButton = exports.FindReplaceTooltipButton = /*#__PURE__*/f
62
59
  }),
63
60
  hideTooltipOnClick: true,
64
61
  position: 'top'
65
- }, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.editor-new-button_jjjdo') ? /*#__PURE__*/_react.default.createElement(_new.IconButton, (0, _extends2.default)({
62
+ }, /*#__PURE__*/_react.default.createElement(_new.IconButton, (0, _extends2.default)({
66
63
  id: "afterInputSection",
67
64
  label: title,
68
65
  appearance: appearance,
69
66
  testId: title,
70
67
  ref: this.buttonRef,
71
- icon: newIcon,
68
+ icon: icon,
72
69
  UNSAFE_size: iconSize,
73
70
  isDisabled: disabled,
74
71
  onClick: this.handleClick,
75
72
  isSelected: isPressed
76
- }, pressedProps)) : /*#__PURE__*/_react.default.createElement(_standardButton.default, (0, _extends2.default)({
77
- id: "afterInputSection",
78
- label: title,
79
- appearance: appearance,
80
- testId: title,
81
- ref: this.buttonRef,
82
- iconBefore: icon,
83
- isDisabled: disabled,
84
- onClick: this.handleClick,
85
- isSelected: isPressed,
86
- shouldFitContainer: true
87
73
  }, pressedProps)));
88
74
  }
89
75
  }]);