@atlaskit/button 17.14.0 → 17.14.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 17.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316) [`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) - Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
8
+ - [#93980](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93980) [`0437b8b3c791`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0437b8b3c791) - Updated imports of `UNSAFE_PRESSABLE` primitive to new `Pressable` export
9
+
3
10
  ## 17.14.0
4
11
 
5
12
  ### Minor Changes
@@ -117,7 +117,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
117
117
  action: 'clicked',
118
118
  componentName: 'button',
119
119
  packageName: "@atlaskit/button",
120
- packageVersion: "17.14.0",
120
+ packageVersion: "17.14.1",
121
121
  analyticsData: analyticsContext
122
122
  });
123
123
 
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import UNSAFE_PRESSABLE from '@atlaskit/primitives/pressable';
3
+ import Pressable from '@atlaskit/primitives/pressable';
4
4
  import useDefaultButton from './use-default-button';
5
5
  /**
6
6
  * __Button__
@@ -70,7 +70,7 @@ const Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function B
70
70
  shouldFitContainer,
71
71
  spacing
72
72
  });
73
- return /*#__PURE__*/React.createElement(UNSAFE_PRESSABLE
73
+ return /*#__PURE__*/React.createElement(Pressable
74
74
  // TODO: Remove spread props
75
75
  , _extends({}, rest, {
76
76
  ref: baseProps.ref,
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import UNSAFE_PRESSABLE from '@atlaskit/primitives/pressable';
3
+ import Pressable from '@atlaskit/primitives/pressable';
4
4
  import Tooltip from '@atlaskit/tooltip';
5
5
  import useIconButton from './use-icon-button';
6
6
  /**
@@ -92,7 +92,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
92
92
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
93
93
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
94
94
  hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
95
- }, triggerProps => /*#__PURE__*/React.createElement(UNSAFE_PRESSABLE
95
+ }, triggerProps => /*#__PURE__*/React.createElement(Pressable
96
96
  // Top level props
97
97
  , _extends({}, rest, {
98
98
  type: type,
@@ -159,7 +159,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
159
159
  onClickCapture: baseProps.onClickCapture
160
160
  }), baseProps.children));
161
161
  }
162
- return /*#__PURE__*/React.createElement(UNSAFE_PRESSABLE, _extends({}, rest, {
162
+ return /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
163
163
  ref: baseProps.ref,
164
164
  xcss: baseProps.xcss,
165
165
  isDisabled: baseProps.isDisabled,
@@ -102,7 +102,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
102
102
  action: 'clicked',
103
103
  componentName: 'button',
104
104
  packageName: "@atlaskit/button",
105
- packageVersion: "17.14.0",
105
+ packageVersion: "17.14.1",
106
106
  analyticsData: analyticsContext
107
107
  });
108
108
 
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["analyticsContext", "interactionName", "autoFocus", "appearance", "spacing", "isDisabled", "isSelected", "iconBefore", "isLoading", "UNSAFE_iconAfter_size", "iconAfter", "UNSAFE_iconBefore_size", "children", "shouldFitContainer", "overlay", "onClick", "onMouseDownCapture", "onMouseUpCapture", "onKeyDownCapture", "onKeyUpCapture", "onTouchStartCapture", "onTouchEndCapture", "onPointerDownCapture", "onPointerUpCapture", "onClickCapture", "type", "testId"];
4
4
  import React from 'react';
5
- import UNSAFE_PRESSABLE from '@atlaskit/primitives/pressable';
5
+ import Pressable from '@atlaskit/primitives/pressable';
6
6
  import useDefaultButton from './use-default-button';
7
7
  /**
8
8
  * __Button__
@@ -72,7 +72,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function But
72
72
  shouldFitContainer: shouldFitContainer,
73
73
  spacing: spacing
74
74
  });
75
- return /*#__PURE__*/React.createElement(UNSAFE_PRESSABLE
75
+ return /*#__PURE__*/React.createElement(Pressable
76
76
  // TODO: Remove spread props
77
77
  , _extends({}, rest, {
78
78
  ref: baseProps.ref,
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["aria-label", "analyticsContext", "appearance", "autoFocus", "icon", "interactionName", "isDisabled", "isLoading", "isSelected", "isTooltipDisabled", "label", "onClick", "onClickCapture", "onKeyDownCapture", "onKeyUpCapture", "onMouseDownCapture", "onMouseUpCapture", "onPointerDownCapture", "onPointerUpCapture", "onTouchEndCapture", "onTouchStartCapture", "overlay", "shape", "spacing", "testId", "tooltip", "type", "UNSAFE_size"];
4
4
  import React from 'react';
5
- import UNSAFE_PRESSABLE from '@atlaskit/primitives/pressable';
5
+ import Pressable from '@atlaskit/primitives/pressable';
6
6
  import Tooltip from '@atlaskit/tooltip';
7
7
  import useIconButton from './use-icon-button';
8
8
  /**
@@ -95,7 +95,7 @@ var IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
95
95
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
96
96
  hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
97
97
  }, function (triggerProps) {
98
- return /*#__PURE__*/React.createElement(UNSAFE_PRESSABLE
98
+ return /*#__PURE__*/React.createElement(Pressable
99
99
  // Top level props
100
100
  , _extends({}, rest, {
101
101
  type: type,
@@ -163,7 +163,7 @@ var IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
163
163
  }), baseProps.children);
164
164
  });
165
165
  }
166
- return /*#__PURE__*/React.createElement(UNSAFE_PRESSABLE, _extends({}, rest, {
166
+ return /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
167
167
  ref: baseProps.ref,
168
168
  xcss: baseProps.xcss,
169
169
  isDisabled: baseProps.isDisabled,
@@ -108,7 +108,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
108
108
  action: 'clicked',
109
109
  componentName: 'button',
110
110
  packageName: "@atlaskit/button",
111
- packageVersion: "17.14.0",
111
+ packageVersion: "17.14.1",
112
112
  analyticsData: analyticsContext
113
113
  });
114
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "17.14.0",
3
+ "version": "17.14.1",
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/"
@@ -87,7 +87,7 @@
87
87
  "@atlaskit/focus-ring": "^1.3.9",
88
88
  "@atlaskit/icon": "^22.1.0",
89
89
  "@atlaskit/interaction-context": "^2.1.0",
90
- "@atlaskit/primitives": "^5.5.0",
90
+ "@atlaskit/primitives": "^5.6.0",
91
91
  "@atlaskit/spinner": "^16.0.0",
92
92
  "@atlaskit/theme": "^12.7.0",
93
93
  "@atlaskit/tokens": "^1.43.0",
@@ -113,7 +113,7 @@
113
113
  "@testing-library/user-event": "^14.4.3",
114
114
  "@types/react-router-dom": "^4.3.1",
115
115
  "ast-types": "^0.13.3",
116
- "bind-event-listener": "^2.1.1",
116
+ "bind-event-listener": "^3.0.0",
117
117
  "jest-emotion": "^10.0.32",
118
118
  "jest-in-case": "^1.0.2",
119
119
  "jscodeshift": "^0.13.0",