@atlaskit/editor-plugin-find-replace 2.4.0 → 2.4.1
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 +6 -0
- package/dist/cjs/ui/Replace.js +14 -4
- package/dist/cjs/ui/ReplaceNext.js +14 -5
- package/dist/es2019/ui/Replace.js +10 -4
- package/dist/es2019/ui/ReplaceNext.js +10 -5
- package/dist/esm/ui/Replace.js +14 -4
- package/dist/esm/ui/ReplaceNext.js +14 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/cjs/ui/Replace.js
CHANGED
|
@@ -19,8 +19,8 @@ var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
|
19
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
20
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
21
21
|
var _form = require("@atlaskit/form");
|
|
22
|
-
var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
23
|
-
var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/
|
|
22
|
+
var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down"));
|
|
23
|
+
var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up"));
|
|
24
24
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
25
|
var _primitives = require("@atlaskit/primitives");
|
|
26
26
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
@@ -258,7 +258,12 @@ var Replace = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
258
258
|
css: _uiStyles.nextPreviousItemStyles
|
|
259
259
|
}, (0, _react2.jsx)(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
|
|
260
260
|
title: this.findNext,
|
|
261
|
-
icon:
|
|
261
|
+
icon: function icon(iconProps) {
|
|
262
|
+
return (0, _react2.jsx)(_chevronDownHipchatChevronDown.default, {
|
|
263
|
+
label: iconProps.label,
|
|
264
|
+
size: "small"
|
|
265
|
+
});
|
|
266
|
+
},
|
|
262
267
|
iconLabel: this.findNext,
|
|
263
268
|
keymapDescription: 'Enter',
|
|
264
269
|
onClick: this.handleFindNextClick,
|
|
@@ -267,7 +272,12 @@ var Replace = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
267
272
|
css: _uiStyles.nextPreviousItemStyles
|
|
268
273
|
}, (0, _react2.jsx)(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
|
|
269
274
|
title: this.findPrevious,
|
|
270
|
-
icon:
|
|
275
|
+
icon: function icon(iconProps) {
|
|
276
|
+
return (0, _react2.jsx)(_chevronUpHipchatChevronUp.default, {
|
|
277
|
+
label: iconProps.label,
|
|
278
|
+
size: "small"
|
|
279
|
+
});
|
|
280
|
+
},
|
|
271
281
|
iconLabel: this.findPrevious,
|
|
272
282
|
keymapDescription: 'Shift Enter',
|
|
273
283
|
onClick: this.handleFindPrevClick,
|
|
@@ -13,8 +13,8 @@ var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
|
13
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
15
|
var _form = require("@atlaskit/form");
|
|
16
|
-
var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
17
|
-
var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/
|
|
16
|
+
var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down"));
|
|
17
|
+
var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up"));
|
|
18
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
19
|
var _primitives = require("@atlaskit/primitives");
|
|
20
20
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
@@ -151,7 +151,6 @@ var Replace = function Replace(_ref) {
|
|
|
151
151
|
triggerSuccessReplacementMessageUpdate(count.total);
|
|
152
152
|
setReplaceCount(count.total);
|
|
153
153
|
}
|
|
154
|
-
;
|
|
155
154
|
setFindTyped(false);
|
|
156
155
|
});
|
|
157
156
|
};
|
|
@@ -218,14 +217,24 @@ var Replace = function Replace(_ref) {
|
|
|
218
217
|
xcss: actionButtonInlineStyles
|
|
219
218
|
}, /*#__PURE__*/_react.default.createElement(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
|
|
220
219
|
title: formatMessage(_messages.findReplaceMessages.findNext),
|
|
221
|
-
icon:
|
|
220
|
+
icon: function icon(iconProps) {
|
|
221
|
+
return /*#__PURE__*/_react.default.createElement(_chevronDownHipchatChevronDown.default, {
|
|
222
|
+
label: iconProps.label,
|
|
223
|
+
size: "small"
|
|
224
|
+
});
|
|
225
|
+
},
|
|
222
226
|
iconLabel: formatMessage(_messages.findReplaceMessages.findNext),
|
|
223
227
|
keymapDescription: 'Enter',
|
|
224
228
|
onClick: handleFindNextClick,
|
|
225
229
|
disabled: count.total <= 1
|
|
226
230
|
}), /*#__PURE__*/_react.default.createElement(_FindReplaceTooltipButton.FindReplaceTooltipButton, {
|
|
227
231
|
title: findPrevious,
|
|
228
|
-
icon:
|
|
232
|
+
icon: function icon(iconProps) {
|
|
233
|
+
return /*#__PURE__*/_react.default.createElement(_chevronUpHipchatChevronUp.default, {
|
|
234
|
+
label: iconProps.label,
|
|
235
|
+
size: "small"
|
|
236
|
+
});
|
|
237
|
+
},
|
|
229
238
|
iconLabel: findPrevious,
|
|
230
239
|
keymapDescription: 'Shift Enter',
|
|
231
240
|
onClick: handleFindPrevClick,
|
|
@@ -13,8 +13,8 @@ import Button from '@atlaskit/button/new';
|
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
14
14
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { Label, ValidMessage } from '@atlaskit/form';
|
|
16
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
17
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
16
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
|
|
17
|
+
import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
|
|
18
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
19
|
import { Inline, xcss } from '@atlaskit/primitives';
|
|
20
20
|
import Textfield from '@atlaskit/textfield';
|
|
@@ -239,7 +239,10 @@ class Replace extends React.PureComponent {
|
|
|
239
239
|
css: nextPreviousItemStyles
|
|
240
240
|
}, jsx(FindReplaceTooltipButton, {
|
|
241
241
|
title: this.findNext,
|
|
242
|
-
icon: ChevronDownIcon,
|
|
242
|
+
icon: iconProps => jsx(ChevronDownIcon, {
|
|
243
|
+
label: iconProps.label,
|
|
244
|
+
size: "small"
|
|
245
|
+
}),
|
|
243
246
|
iconLabel: this.findNext,
|
|
244
247
|
keymapDescription: 'Enter',
|
|
245
248
|
onClick: this.handleFindNextClick,
|
|
@@ -248,7 +251,10 @@ class Replace extends React.PureComponent {
|
|
|
248
251
|
css: nextPreviousItemStyles
|
|
249
252
|
}, jsx(FindReplaceTooltipButton, {
|
|
250
253
|
title: this.findPrevious,
|
|
251
|
-
icon: ChevronUpIcon,
|
|
254
|
+
icon: iconProps => jsx(ChevronUpIcon, {
|
|
255
|
+
label: iconProps.label,
|
|
256
|
+
size: "small"
|
|
257
|
+
}),
|
|
252
258
|
iconLabel: this.findPrevious,
|
|
253
259
|
keymapDescription: 'Shift Enter',
|
|
254
260
|
onClick: this.handleFindPrevClick,
|
|
@@ -4,8 +4,8 @@ import Button from '@atlaskit/button/new';
|
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { ValidMessage } from '@atlaskit/form';
|
|
7
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
8
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
7
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
|
|
8
|
+
import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { Box, Inline, Text, xcss } from '@atlaskit/primitives';
|
|
11
11
|
import Textfield from '@atlaskit/textfield';
|
|
@@ -122,7 +122,6 @@ const Replace = ({
|
|
|
122
122
|
triggerSuccessReplacementMessageUpdate(count.total);
|
|
123
123
|
setReplaceCount(count.total);
|
|
124
124
|
}
|
|
125
|
-
;
|
|
126
125
|
setFindTyped(false);
|
|
127
126
|
});
|
|
128
127
|
const handleCompositionStart = () => {
|
|
@@ -188,14 +187,20 @@ const Replace = ({
|
|
|
188
187
|
xcss: actionButtonInlineStyles
|
|
189
188
|
}, /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
190
189
|
title: formatMessage(messages.findNext),
|
|
191
|
-
icon: ChevronDownIcon,
|
|
190
|
+
icon: iconProps => /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
191
|
+
label: iconProps.label,
|
|
192
|
+
size: "small"
|
|
193
|
+
}),
|
|
192
194
|
iconLabel: formatMessage(messages.findNext),
|
|
193
195
|
keymapDescription: 'Enter',
|
|
194
196
|
onClick: handleFindNextClick,
|
|
195
197
|
disabled: count.total <= 1
|
|
196
198
|
}), /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
197
199
|
title: findPrevious,
|
|
198
|
-
icon: ChevronUpIcon,
|
|
200
|
+
icon: iconProps => /*#__PURE__*/React.createElement(ChevronUpIcon, {
|
|
201
|
+
label: iconProps.label,
|
|
202
|
+
size: "small"
|
|
203
|
+
}),
|
|
199
204
|
iconLabel: findPrevious,
|
|
200
205
|
keymapDescription: 'Shift Enter',
|
|
201
206
|
onClick: handleFindPrevClick,
|
package/dist/esm/ui/Replace.js
CHANGED
|
@@ -20,8 +20,8 @@ import Button from '@atlaskit/button/new';
|
|
|
20
20
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
21
21
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
22
22
|
import { Label, ValidMessage } from '@atlaskit/form';
|
|
23
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
24
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
23
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
|
|
24
|
+
import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
|
|
25
25
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
26
|
import { Inline, xcss } from '@atlaskit/primitives';
|
|
27
27
|
import Textfield from '@atlaskit/textfield';
|
|
@@ -253,7 +253,12 @@ var Replace = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
253
253
|
css: nextPreviousItemStyles
|
|
254
254
|
}, jsx(FindReplaceTooltipButton, {
|
|
255
255
|
title: this.findNext,
|
|
256
|
-
icon:
|
|
256
|
+
icon: function icon(iconProps) {
|
|
257
|
+
return jsx(ChevronDownIcon, {
|
|
258
|
+
label: iconProps.label,
|
|
259
|
+
size: "small"
|
|
260
|
+
});
|
|
261
|
+
},
|
|
257
262
|
iconLabel: this.findNext,
|
|
258
263
|
keymapDescription: 'Enter',
|
|
259
264
|
onClick: this.handleFindNextClick,
|
|
@@ -262,7 +267,12 @@ var Replace = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
262
267
|
css: nextPreviousItemStyles
|
|
263
268
|
}, jsx(FindReplaceTooltipButton, {
|
|
264
269
|
title: this.findPrevious,
|
|
265
|
-
icon:
|
|
270
|
+
icon: function icon(iconProps) {
|
|
271
|
+
return jsx(ChevronUpIcon, {
|
|
272
|
+
label: iconProps.label,
|
|
273
|
+
size: "small"
|
|
274
|
+
});
|
|
275
|
+
},
|
|
266
276
|
iconLabel: this.findPrevious,
|
|
267
277
|
keymapDescription: 'Shift Enter',
|
|
268
278
|
onClick: this.handleFindPrevClick,
|
|
@@ -5,8 +5,8 @@ import Button from '@atlaskit/button/new';
|
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { ValidMessage } from '@atlaskit/form';
|
|
8
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
9
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
8
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
|
|
9
|
+
import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Box, Inline, Text, xcss } from '@atlaskit/primitives';
|
|
12
12
|
import Textfield from '@atlaskit/textfield';
|
|
@@ -142,7 +142,6 @@ var Replace = function Replace(_ref) {
|
|
|
142
142
|
triggerSuccessReplacementMessageUpdate(count.total);
|
|
143
143
|
setReplaceCount(count.total);
|
|
144
144
|
}
|
|
145
|
-
;
|
|
146
145
|
setFindTyped(false);
|
|
147
146
|
});
|
|
148
147
|
};
|
|
@@ -209,14 +208,24 @@ var Replace = function Replace(_ref) {
|
|
|
209
208
|
xcss: actionButtonInlineStyles
|
|
210
209
|
}, /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
211
210
|
title: formatMessage(messages.findNext),
|
|
212
|
-
icon:
|
|
211
|
+
icon: function icon(iconProps) {
|
|
212
|
+
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
213
|
+
label: iconProps.label,
|
|
214
|
+
size: "small"
|
|
215
|
+
});
|
|
216
|
+
},
|
|
213
217
|
iconLabel: formatMessage(messages.findNext),
|
|
214
218
|
keymapDescription: 'Enter',
|
|
215
219
|
onClick: handleFindNextClick,
|
|
216
220
|
disabled: count.total <= 1
|
|
217
221
|
}), /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
218
222
|
title: findPrevious,
|
|
219
|
-
icon:
|
|
223
|
+
icon: function icon(iconProps) {
|
|
224
|
+
return /*#__PURE__*/React.createElement(ChevronUpIcon, {
|
|
225
|
+
label: iconProps.label,
|
|
226
|
+
size: "small"
|
|
227
|
+
});
|
|
228
|
+
},
|
|
220
229
|
iconLabel: findPrevious,
|
|
221
230
|
keymapDescription: 'Shift Enter',
|
|
222
231
|
onClick: handleFindPrevClick,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^23.2.0",
|
|
36
|
-
"@atlaskit/editor-common": "^106.
|
|
36
|
+
"@atlaskit/editor-common": "^106.6.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/primitives": "^14.8.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.0.0",
|
|
46
46
|
"@atlaskit/theme": "^18.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^7.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^5.1.0",
|
|
49
49
|
"@atlaskit/tooltip": "^20.3.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|