@atlaskit/editor-plugin-find-replace 1.3.7 → 1.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 1.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#119140](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119140)
8
+ [`dbda45aec4c30`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dbda45aec4c30) -
9
+ Migrated usages of deprecated button `UNSAFE` icon size props to new render prop.
10
+ - Updated dependencies
11
+
12
+ ## 1.3.8
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 1.3.7
4
19
 
5
20
  ### Patch Changes
@@ -43,7 +43,7 @@ var FindReplaceTooltipButton = exports.FindReplaceTooltipButton = /*#__PURE__*/f
43
43
  value: function render() {
44
44
  var _this$props = this.props,
45
45
  title = _this$props.title,
46
- icon = _this$props.icon,
46
+ Icon = _this$props.icon,
47
47
  iconSize = _this$props.iconSize,
48
48
  keymapDescription = _this$props.keymapDescription,
49
49
  disabled = _this$props.disabled,
@@ -65,8 +65,11 @@ var FindReplaceTooltipButton = exports.FindReplaceTooltipButton = /*#__PURE__*/f
65
65
  appearance: appearance,
66
66
  testId: title,
67
67
  ref: this.buttonRef,
68
- icon: icon,
69
- UNSAFE_size: iconSize,
68
+ icon: function icon(iconProps) {
69
+ return /*#__PURE__*/_react.default.createElement(Icon, (0, _extends2.default)({}, iconProps, {
70
+ size: iconSize
71
+ }));
72
+ },
70
73
  isDisabled: disabled,
71
74
  onClick: this.handleClick,
72
75
  isSelected: isPressed
@@ -16,7 +16,7 @@ export class FindReplaceTooltipButton extends React.PureComponent {
16
16
  render() {
17
17
  const {
18
18
  title,
19
- icon,
19
+ icon: Icon,
20
20
  iconSize,
21
21
  keymapDescription,
22
22
  disabled,
@@ -41,8 +41,9 @@ export class FindReplaceTooltipButton extends React.PureComponent {
41
41
  appearance: appearance,
42
42
  testId: title,
43
43
  ref: this.buttonRef,
44
- icon: icon,
45
- UNSAFE_size: iconSize,
44
+ icon: iconProps => /*#__PURE__*/React.createElement(Icon, _extends({}, iconProps, {
45
+ size: iconSize
46
+ })),
46
47
  isDisabled: disabled,
47
48
  onClick: this.handleClick,
48
49
  isSelected: isPressed
@@ -36,7 +36,7 @@ export var FindReplaceTooltipButton = /*#__PURE__*/function (_React$PureComponen
36
36
  value: function render() {
37
37
  var _this$props = this.props,
38
38
  title = _this$props.title,
39
- icon = _this$props.icon,
39
+ Icon = _this$props.icon,
40
40
  iconSize = _this$props.iconSize,
41
41
  keymapDescription = _this$props.keymapDescription,
42
42
  disabled = _this$props.disabled,
@@ -58,8 +58,11 @@ export var FindReplaceTooltipButton = /*#__PURE__*/function (_React$PureComponen
58
58
  appearance: appearance,
59
59
  testId: title,
60
60
  ref: this.buttonRef,
61
- icon: icon,
62
- UNSAFE_size: iconSize,
61
+ icon: function icon(iconProps) {
62
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, iconProps, {
63
+ size: iconSize
64
+ }));
65
+ },
63
66
  isDisabled: disabled,
64
67
  onClick: this.handleClick,
65
68
  isSelected: isPressed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,14 +34,14 @@
34
34
  "./styles": "./src/styles.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/button": "^18.1.0",
38
- "@atlaskit/editor-common": "^84.0.0",
37
+ "@atlaskit/button": "^18.3.0",
38
+ "@atlaskit/editor-common": "^84.5.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
40
40
  "@atlaskit/editor-prosemirror": "4.0.1",
41
- "@atlaskit/editor-shared-styles": "^2.12.0",
41
+ "@atlaskit/editor-shared-styles": "^2.13.0",
42
42
  "@atlaskit/form": "^10.4.0",
43
- "@atlaskit/icon": "^22.5.0",
44
- "@atlaskit/primitives": "^10.0.0",
43
+ "@atlaskit/icon": "^22.6.0",
44
+ "@atlaskit/primitives": "^11.0.0",
45
45
  "@atlaskit/textfield": "^6.4.0",
46
46
  "@atlaskit/theme": "^12.11.0",
47
47
  "@atlaskit/tokens": "^1.53.0",