@atlaskit/button 21.1.7 → 22.0.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,33 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 22.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 22.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#133342](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/133342)
14
+ [`569a36a196e14`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/569a36a196e14) -
15
+ Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
16
+ the rest of the Atlaskit techstack, and support React 18 Streaming SSR.Please note, in order to
17
+ use this version of `@atlaskit/banner`, you will need to ensure that your bundler is configured to
18
+ handle `.css` imports correctly.
19
+
20
+ Most bundlers come with built-in support for `.css` imports, so you may not need to do anything.
21
+ If you are using a different bundler, please refer to the documentation for that bundler to
22
+ understand how to handle `.css` imports.
23
+
24
+ For more information on the migration,please refer to
25
+ [RFC-73 Migrating our components toCompiledCSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/859)
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 21.1.7
4
32
 
5
33
  ### Patch Changes
@@ -208,7 +208,9 @@ var ButtonBase = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
208
208
  onTouchEnd: onTouchEnd,
209
209
  onPointerDown: onPointerDown,
210
210
  onPointerUp: onPointerUp
211
- }), /*#__PURE__*/_react.default.createElement(_react.Fragment, null, children, isLoading && /*#__PURE__*/_react.default.createElement("span", {
211
+ }), /*#__PURE__*/_react.default.createElement(_splitButtonContext.SplitButtonContext.Provider, {
212
+ value: undefined
213
+ }, children, isLoading && /*#__PURE__*/_react.default.createElement("span", {
212
214
  className: (0, _runtime.ax)([styles.loadingOverlay])
213
215
  }, (0, _loadingOverlay.default)({
214
216
  spacing: spacing,
@@ -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: "21.1.7",
136
+ packageVersion: "22.0.1",
137
137
  analyticsData: analyticsContext
138
138
  });
139
139
 
@@ -2,7 +2,7 @@
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./button-base.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import React, { Fragment, useRef } from 'react';
5
+ import React, { useRef } from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
7
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
8
8
  import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
@@ -10,7 +10,7 @@ import { useId } from '@atlaskit/ds-lib/use-id';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
11
  import { Pressable } from '@atlaskit/primitives/compiled';
12
12
  import VisuallyHidden from '@atlaskit/visually-hidden';
13
- import { useSplitButtonContext } from '../../containers/split-button/split-button-context';
13
+ import { SplitButtonContext, useSplitButtonContext } from '../../containers/split-button/split-button-context';
14
14
  import blockEvents from './block-events';
15
15
  import renderLoadingOverlay from './loading-overlay';
16
16
  const LOADING_LABEL = ', Loading';
@@ -188,7 +188,9 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(({
188
188
  onTouchEnd: onTouchEnd,
189
189
  onPointerDown: onPointerDown,
190
190
  onPointerUp: onPointerUp
191
- }), /*#__PURE__*/React.createElement(Fragment, null, children, isLoading && /*#__PURE__*/React.createElement("span", {
191
+ }), /*#__PURE__*/React.createElement(SplitButtonContext.Provider, {
192
+ value: undefined
193
+ }, children, isLoading && /*#__PURE__*/React.createElement("span", {
192
194
  className: ax([styles.loadingOverlay])
193
195
  }, renderLoadingOverlay({
194
196
  spacing: spacing,
@@ -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: "21.1.7",
122
+ packageVersion: "22.0.1",
123
123
  analyticsData: analyticsContext
124
124
  });
125
125
 
@@ -5,7 +5,7 @@ var _excluded = ["appearance", "autoFocus", "isDisabled", "isLoading", "isSelect
5
5
  _excluded2 = ["className", "css", "as", "style"];
6
6
  import "./button-base.compiled.css";
7
7
  import { ax, ix } from "@compiled/react/runtime";
8
- import React, { Fragment, useRef } from 'react';
8
+ import React, { useRef } from 'react';
9
9
  import { cx } from '@atlaskit/css';
10
10
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
11
11
  import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
@@ -13,7 +13,7 @@ import { useId } from '@atlaskit/ds-lib/use-id';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import { Pressable } from '@atlaskit/primitives/compiled';
15
15
  import VisuallyHidden from '@atlaskit/visually-hidden';
16
- import { useSplitButtonContext } from '../../containers/split-button/split-button-context';
16
+ import { SplitButtonContext, useSplitButtonContext } from '../../containers/split-button/split-button-context';
17
17
  import blockEvents from './block-events';
18
18
  import renderLoadingOverlay from './loading-overlay';
19
19
  var LOADING_LABEL = ', Loading';
@@ -198,7 +198,9 @@ var ButtonBase = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
198
198
  onTouchEnd: onTouchEnd,
199
199
  onPointerDown: onPointerDown,
200
200
  onPointerUp: onPointerUp
201
- }), /*#__PURE__*/React.createElement(Fragment, null, children, isLoading && /*#__PURE__*/React.createElement("span", {
201
+ }), /*#__PURE__*/React.createElement(SplitButtonContext.Provider, {
202
+ value: undefined
203
+ }, children, isLoading && /*#__PURE__*/React.createElement("span", {
202
204
  className: ax([styles.loadingOverlay])
203
205
  }, renderLoadingOverlay({
204
206
  spacing: spacing,
@@ -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: "21.1.7",
128
+ packageVersion: "22.0.1",
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": "21.1.7",
3
+ "version": "22.0.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/"
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@atlaskit/analytics-next": "^11.0.0",
88
- "@atlaskit/css": "0.10.3",
88
+ "@atlaskit/css": "0.10.4",
89
89
  "@atlaskit/ds-lib": "4.0.0",
90
90
  "@atlaskit/focus-ring": "3.0.0",
91
91
  "@atlaskit/icon": "25.2.0",
@@ -122,6 +122,7 @@
122
122
  "@atlaskit/ssr": "^0.4.0",
123
123
  "@atlaskit/toggle": "^15.0.0",
124
124
  "@atlaskit/visual-regression": "^0.10.0",
125
+ "@atlassian/ssr-tests": "^0.2.0",
125
126
  "@testing-library/react": "^13.4.0",
126
127
  "@testing-library/user-event": "^14.4.3",
127
128
  "ast-types": "^0.13.3",