@atlaskit/button 17.3.0 → 17.3.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/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/cjs/old-button/custom-theme-button/custom-theme-button.js +1 -1
- package/dist/cjs/old-button/shared/button-base.js +1 -1
- package/dist/es2019/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/es2019/old-button/custom-theme-button/custom-theme-button.js +1 -1
- package/dist/es2019/old-button/shared/button-base.js +1 -1
- package/dist/esm/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/esm/old-button/custom-theme-button/custom-theme-button.js +1 -1
- package/dist/esm/old-button/shared/button-base.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 17.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#65509](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65509) [`9e9847bebdbe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9e9847bebdbe) - Fix aria-disabled not being passed to custom theme button
|
|
8
|
+
|
|
3
9
|
## 17.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -117,7 +117,7 @@ var useButtonBase = function useButtonBase(_ref) {
|
|
|
117
117
|
action: 'clicked',
|
|
118
118
|
componentName: 'button',
|
|
119
119
|
packageName: "@atlaskit/button",
|
|
120
|
-
packageVersion: "17.3.
|
|
120
|
+
packageVersion: "17.3.1",
|
|
121
121
|
analyticsData: analyticsContext,
|
|
122
122
|
actionSubject: buttonType
|
|
123
123
|
});
|
|
@@ -187,7 +187,7 @@ var CustomThemeButton = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
|
|
|
187
187
|
overlay: isLoading ? /*#__PURE__*/_react.default.createElement(_loadingSpinner.default, restProps) : null
|
|
188
188
|
// No need to render aria-disabled when it is false
|
|
189
189
|
,
|
|
190
|
-
"aria-disabled": isLoading ||
|
|
190
|
+
"aria-disabled": isLoading || restProps['aria-disabled'],
|
|
191
191
|
onMouseEnter: onMouseEnter,
|
|
192
192
|
onMouseLeave: onMouseLeave,
|
|
193
193
|
onMouseDown: onMouseDown,
|
|
@@ -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.3.
|
|
120
|
+
packageVersion: "17.3.1",
|
|
121
121
|
analyticsData: analyticsContext
|
|
122
122
|
});
|
|
123
123
|
|
|
@@ -153,7 +153,7 @@ const CustomThemeButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef
|
|
|
153
153
|
overlay: isLoading ? /*#__PURE__*/React.createElement(LoadingSpinner, restProps) : null
|
|
154
154
|
// No need to render aria-disabled when it is false
|
|
155
155
|
,
|
|
156
|
-
"aria-disabled": isLoading ||
|
|
156
|
+
"aria-disabled": isLoading || restProps['aria-disabled'],
|
|
157
157
|
onMouseEnter: onMouseEnter,
|
|
158
158
|
onMouseLeave: onMouseLeave,
|
|
159
159
|
onMouseDown: onMouseDown,
|
|
@@ -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.3.
|
|
105
|
+
packageVersion: "17.3.1",
|
|
106
106
|
analyticsData: analyticsContext
|
|
107
107
|
});
|
|
108
108
|
|
|
@@ -109,7 +109,7 @@ var useButtonBase = function useButtonBase(_ref) {
|
|
|
109
109
|
action: 'clicked',
|
|
110
110
|
componentName: 'button',
|
|
111
111
|
packageName: "@atlaskit/button",
|
|
112
|
-
packageVersion: "17.3.
|
|
112
|
+
packageVersion: "17.3.1",
|
|
113
113
|
analyticsData: analyticsContext,
|
|
114
114
|
actionSubject: buttonType
|
|
115
115
|
});
|
|
@@ -177,7 +177,7 @@ var CustomThemeButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
177
177
|
overlay: isLoading ? /*#__PURE__*/React.createElement(LoadingSpinner, restProps) : null
|
|
178
178
|
// No need to render aria-disabled when it is false
|
|
179
179
|
,
|
|
180
|
-
"aria-disabled": isLoading ||
|
|
180
|
+
"aria-disabled": isLoading || restProps['aria-disabled'],
|
|
181
181
|
onMouseEnter: onMouseEnter,
|
|
182
182
|
onMouseLeave: onMouseLeave,
|
|
183
183
|
onMouseDown: onMouseDown,
|
|
@@ -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.3.
|
|
111
|
+
packageVersion: "17.3.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.3.
|
|
3
|
+
"version": "17.3.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/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
".": "./src/index.tsx"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@atlaskit/analytics-next": "^9.
|
|
77
|
+
"@atlaskit/analytics-next": "^9.2.0",
|
|
78
78
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
79
79
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
80
80
|
"@atlaskit/icon": "^22.0.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@af/accessibility-testing": "*",
|
|
95
95
|
"@af/integration-testing": "*",
|
|
96
96
|
"@af/visual-regression": "*",
|
|
97
|
-
"@atlaskit/app-provider": "^0.
|
|
97
|
+
"@atlaskit/app-provider": "^1.0.0",
|
|
98
98
|
"@atlaskit/ssr": "*",
|
|
99
99
|
"@atlaskit/visual-regression": "*",
|
|
100
100
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|