@atlaskit/button 20.1.1 → 20.2.0

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,21 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 20.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#113952](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113952)
8
+ [`2071254d3ad65`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2071254d3ad65) -
9
+ IconButton now passes through the tooltip ignoreTooltipPointerEvents override prop
10
+
11
+ ## 20.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#142115](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142115)
16
+ [`debc522e68817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/debc522e68817) -
17
+ Remove react-router-dom from devDependencies as it is incompatible with React 18.
18
+
3
19
  ## 20.1.1
4
20
 
5
21
  ### Patch Changes
@@ -107,7 +107,8 @@ var IconButton = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
107
107
  truncate: tooltip === null || tooltip === void 0 ? void 0 : tooltip.truncate,
108
108
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
109
109
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
110
- hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
110
+ hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
111
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
111
112
  }, function (triggerProps) {
112
113
  return /*#__PURE__*/_react.default.createElement(_pressable.default, (0, _extends2.default)({}, saferRest, {
113
114
  // Top level props
@@ -93,7 +93,8 @@ var LinkIconButtonBase = function LinkIconButtonBase(_ref, ref) {
93
93
  truncate: tooltip === null || tooltip === void 0 ? void 0 : tooltip.truncate,
94
94
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
95
95
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
96
- hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
96
+ hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
97
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
97
98
  }, function (triggerProps) {
98
99
  return /*#__PURE__*/_react.default.createElement(_anchor.default
99
100
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -133,7 +133,7 @@ var ButtonBase = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(prop
133
133
  action: 'clicked',
134
134
  componentName: 'button',
135
135
  packageName: "@atlaskit/button",
136
- packageVersion: "20.1.1",
136
+ packageVersion: "20.2.0",
137
137
  analyticsData: analyticsContext
138
138
  });
139
139
 
@@ -99,7 +99,8 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
99
99
  truncate: tooltip === null || tooltip === void 0 ? void 0 : tooltip.truncate,
100
100
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
101
101
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
102
- hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
102
+ hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
103
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
103
104
  }, triggerProps => /*#__PURE__*/React.createElement(Pressable, _extends({}, saferRest, {
104
105
  // Top level props
105
106
  "aria-labelledby": baseProps['aria-labelledby'],
@@ -83,7 +83,8 @@ const LinkIconButtonBase = ({
83
83
  truncate: tooltip === null || tooltip === void 0 ? void 0 : tooltip.truncate,
84
84
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
85
85
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
86
- hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
86
+ hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
87
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
87
88
  }, triggerProps => /*#__PURE__*/React.createElement(Anchor
88
89
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
89
90
  , _extends({}, saferRest, {
@@ -119,7 +119,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref)
119
119
  action: 'clicked',
120
120
  componentName: 'button',
121
121
  packageName: "@atlaskit/button",
122
- packageVersion: "20.1.1",
122
+ packageVersion: "20.2.0",
123
123
  analyticsData: analyticsContext
124
124
  });
125
125
 
@@ -100,7 +100,8 @@ var IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
100
100
  truncate: tooltip === null || tooltip === void 0 ? void 0 : tooltip.truncate,
101
101
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
102
102
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
103
- hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
103
+ hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
104
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
104
105
  }, function (triggerProps) {
105
106
  return /*#__PURE__*/React.createElement(Pressable, _extends({}, saferRest, {
106
107
  // Top level props
@@ -83,7 +83,8 @@ var LinkIconButtonBase = function LinkIconButtonBase(_ref, ref) {
83
83
  truncate: tooltip === null || tooltip === void 0 ? void 0 : tooltip.truncate,
84
84
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
85
85
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
86
- hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
86
+ hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
87
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
87
88
  }, function (triggerProps) {
88
89
  return /*#__PURE__*/React.createElement(Anchor
89
90
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -125,7 +125,7 @@ var ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
125
125
  action: 'clicked',
126
126
  componentName: 'button',
127
127
  packageName: "@atlaskit/button",
128
- packageVersion: "20.1.1",
128
+ packageVersion: "20.2.0",
129
129
  analyticsData: analyticsContext
130
130
  });
131
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "20.1.1",
3
+ "version": "20.2.0",
4
4
  "description": "A button triggers an event or action. They let users know what will happen next.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -83,15 +83,15 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@atlaskit/analytics-next": "^10.1.0",
86
- "@atlaskit/ds-lib": "^2.5.0",
86
+ "@atlaskit/ds-lib": "^2.6.0",
87
87
  "@atlaskit/focus-ring": "^1.6.0",
88
- "@atlaskit/icon": "^22.16.0",
88
+ "@atlaskit/icon": "^22.18.0",
89
89
  "@atlaskit/interaction-context": "^2.1.0",
90
90
  "@atlaskit/platform-feature-flags": "^0.3.0",
91
- "@atlaskit/primitives": "^12.1.0",
91
+ "@atlaskit/primitives": "^12.2.0",
92
92
  "@atlaskit/spinner": "^16.3.0",
93
93
  "@atlaskit/theme": "^13.0.0",
94
- "@atlaskit/tokens": "^1.59.0",
94
+ "@atlaskit/tokens": "^1.61.0",
95
95
  "@atlaskit/tooltip": "^18.7.0",
96
96
  "@atlaskit/visually-hidden": "^1.5.0",
97
97
  "@babel/runtime": "^7.0.0",
@@ -114,7 +114,6 @@
114
114
  "@atlassian/feature-flags-test-utils": "^0.2.1",
115
115
  "@testing-library/react": "^12.1.5",
116
116
  "@testing-library/user-event": "^14.4.3",
117
- "@types/react-router-dom": "^4.3.1",
118
117
  "ast-types": "^0.13.3",
119
118
  "bind-event-listener": "^3.0.0",
120
119
  "jest-emotion": "^10.0.32",
@@ -122,7 +121,6 @@
122
121
  "jscodeshift": "^0.13.0",
123
122
  "lodash": "^4.17.21",
124
123
  "react-dom": "^16.8.0",
125
- "react-router-dom": "^4.2.2",
126
124
  "storybook-addon-performance": "^0.16.0",
127
125
  "typescript": "~5.4.2",
128
126
  "wait-for-expect": "^1.2.0"