@atlaskit/button 17.7.1 → 17.7.2

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,11 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 17.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
3
9
  ## 17.7.1
4
10
 
5
11
  ### Patch Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/button-group.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/button-group.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/custom-theme-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/custom-theme-button.d.ts"
12
12
  ]
@@ -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.7.1",
120
+ packageVersion: "17.7.2",
121
121
  analyticsData: analyticsContext
122
122
  });
123
123
 
@@ -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.7.1",
105
+ packageVersion: "17.7.2",
106
106
  analyticsData: analyticsContext
107
107
  });
108
108
 
@@ -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.7.1",
111
+ packageVersion: "17.7.2",
112
112
  analyticsData: analyticsContext
113
113
  });
114
114
 
@@ -1,4 +1,4 @@
1
- import React, { type Ref } from 'react';
1
+ import { type Ref } from 'react';
2
2
  import { type AdditionalDefaultLinkVariantProps, type CommonLinkVariantProps } from '../types';
3
3
  import { type CommonDefaultButtonProps } from './types';
4
4
  export type LinkButtonProps<RouterLinkConfig extends Record<string, any> = never> = CommonDefaultButtonProps & CommonLinkVariantProps<RouterLinkConfig> & AdditionalDefaultLinkVariantProps;
@@ -12,7 +12,7 @@ declare const LinkButtonBase: <RouterLinkConfig extends Record<string, any> = ne
12
12
  * - [Code](https://atlassian.design/components/button/code)
13
13
  * - [Usage](https://atlassian.design/components/button/usage)
14
14
  */
15
- declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonDefaultButtonProps & import("../types").AdditionalCommonLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & AdditionalDefaultLinkVariantProps & {
16
- ref?: React.Ref<HTMLAnchorElement> | undefined;
15
+ declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: LinkButtonProps<RouterLinkConfig> & {
16
+ ref?: Ref<HTMLAnchorElement>;
17
17
  }) => ReturnType<typeof LinkButtonBase>;
18
18
  export default LinkButton;
@@ -1,4 +1,4 @@
1
- import React, { type Ref } from 'react';
1
+ import { type Ref } from 'react';
2
2
  import { type CommonLinkVariantProps } from '../types';
3
3
  import { type CommonIconButtonProps } from './types';
4
4
  export type LinkIconButtonProps<RouterLinkConfig extends Record<string, any> = never> = CommonIconButtonProps & CommonLinkVariantProps<RouterLinkConfig>;
@@ -12,7 +12,7 @@ declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any>
12
12
  * - [Code](https://atlassian.design/components/button/code)
13
13
  * - [Usage](https://atlassian.design/components/button/usage)
14
14
  */
15
- declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonIconButtonProps & import("../types").AdditionalCommonLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
16
- ref?: React.Ref<HTMLAnchorElement> | undefined;
15
+ declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: LinkIconButtonProps<RouterLinkConfig> & {
16
+ ref?: Ref<HTMLAnchorElement>;
17
17
  }) => ReturnType<typeof LinkIconButtonBase>;
18
18
  export default LinkIconButton;
@@ -37,14 +37,14 @@ type DefaultButtonVariants = DefaultButtonVariant | LinkButtonVariant;
37
37
  type LinkButtonVariants = LinkButtonVariant | LinkIconButtonVariant;
38
38
  type IconButtonVariants = IconButtonVariant | LinkIconButtonVariant;
39
39
  export type Variant = DefaultButtonVariant | LinkButtonVariant | IconButtonVariant | LinkIconButtonVariant;
40
- declare const LinkButtonRender: React.ForwardRefExoticComponent<Omit<LinkButtonProps<never>, "href"> & {
40
+ declare const LinkButtonRender: React.ForwardRefExoticComponent<Omit<LinkButtonProps, "href"> & {
41
41
  href?: string | undefined;
42
42
  } & React.RefAttributes<HTMLAnchorElement>>;
43
43
  declare const IconButtonRender: React.ForwardRefExoticComponent<Omit<IconButtonProps, "label" | "icon"> & {
44
44
  icon?: import("../new-button/variants/types").IconProp | undefined;
45
45
  label?: string | undefined;
46
46
  } & React.RefAttributes<HTMLButtonElement>>;
47
- declare const LinkIconButtonRender: React.ForwardRefExoticComponent<Omit<LinkIconButtonProps<never>, "label" | "href" | "icon"> & {
47
+ declare const LinkIconButtonRender: React.ForwardRefExoticComponent<Omit<LinkIconButtonProps, "label" | "href" | "icon"> & {
48
48
  href?: string | undefined;
49
49
  icon?: import("../new-button/variants/types").IconProp | undefined;
50
50
  label?: string | undefined;
@@ -1,4 +1,4 @@
1
- import React, { type Ref } from 'react';
1
+ import { type Ref } from 'react';
2
2
  import { type AdditionalDefaultLinkVariantProps, type CommonLinkVariantProps } from '../types';
3
3
  import { type CommonDefaultButtonProps } from './types';
4
4
  export type LinkButtonProps<RouterLinkConfig extends Record<string, any> = never> = CommonDefaultButtonProps & CommonLinkVariantProps<RouterLinkConfig> & AdditionalDefaultLinkVariantProps;
@@ -12,7 +12,7 @@ declare const LinkButtonBase: <RouterLinkConfig extends Record<string, any> = ne
12
12
  * - [Code](https://atlassian.design/components/button/code)
13
13
  * - [Usage](https://atlassian.design/components/button/usage)
14
14
  */
15
- declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonDefaultButtonProps & import("../types").AdditionalCommonLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & AdditionalDefaultLinkVariantProps & {
16
- ref?: React.Ref<HTMLAnchorElement> | undefined;
15
+ declare const LinkButton: <RouterLinkConfig extends Record<string, any> = never>(props: LinkButtonProps<RouterLinkConfig> & {
16
+ ref?: Ref<HTMLAnchorElement>;
17
17
  }) => ReturnType<typeof LinkButtonBase>;
18
18
  export default LinkButton;
@@ -1,4 +1,4 @@
1
- import React, { type Ref } from 'react';
1
+ import { type Ref } from 'react';
2
2
  import { type CommonLinkVariantProps } from '../types';
3
3
  import { type CommonIconButtonProps } from './types';
4
4
  export type LinkIconButtonProps<RouterLinkConfig extends Record<string, any> = never> = CommonIconButtonProps & CommonLinkVariantProps<RouterLinkConfig>;
@@ -12,7 +12,7 @@ declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any>
12
12
  * - [Code](https://atlassian.design/components/button/code)
13
13
  * - [Usage](https://atlassian.design/components/button/usage)
14
14
  */
15
- declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: CommonIconButtonProps & import("../types").AdditionalCommonLinkVariantProps<RouterLinkConfig> & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLAnchorElement> & {
16
- ref?: React.Ref<HTMLAnchorElement> | undefined;
15
+ declare const LinkIconButton: <RouterLinkConfig extends Record<string, any> = never>(props: LinkIconButtonProps<RouterLinkConfig> & {
16
+ ref?: Ref<HTMLAnchorElement>;
17
17
  }) => ReturnType<typeof LinkIconButtonBase>;
18
18
  export default LinkIconButton;
@@ -37,14 +37,14 @@ type DefaultButtonVariants = DefaultButtonVariant | LinkButtonVariant;
37
37
  type LinkButtonVariants = LinkButtonVariant | LinkIconButtonVariant;
38
38
  type IconButtonVariants = IconButtonVariant | LinkIconButtonVariant;
39
39
  export type Variant = DefaultButtonVariant | LinkButtonVariant | IconButtonVariant | LinkIconButtonVariant;
40
- declare const LinkButtonRender: React.ForwardRefExoticComponent<Omit<LinkButtonProps<never>, "href"> & {
40
+ declare const LinkButtonRender: React.ForwardRefExoticComponent<Omit<LinkButtonProps, "href"> & {
41
41
  href?: string | undefined;
42
42
  } & React.RefAttributes<HTMLAnchorElement>>;
43
43
  declare const IconButtonRender: React.ForwardRefExoticComponent<Omit<IconButtonProps, "label" | "icon"> & {
44
44
  icon?: import("../new-button/variants/types").IconProp | undefined;
45
45
  label?: string | undefined;
46
46
  } & React.RefAttributes<HTMLButtonElement>>;
47
- declare const LinkIconButtonRender: React.ForwardRefExoticComponent<Omit<LinkIconButtonProps<never>, "label" | "href" | "icon"> & {
47
+ declare const LinkIconButtonRender: React.ForwardRefExoticComponent<Omit<LinkIconButtonProps, "label" | "href" | "icon"> & {
48
48
  href?: string | undefined;
49
49
  icon?: import("../new-button/variants/types").IconProp | undefined;
50
50
  label?: string | undefined;
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/loading-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/loading-button.d.ts"
12
12
  ]
package/new/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/new.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/new.d.ts"
12
12
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "17.7.1",
3
+ "version": "17.7.2",
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,10 +87,10 @@
87
87
  "@atlaskit/focus-ring": "^1.3.0",
88
88
  "@atlaskit/icon": "^22.1.0",
89
89
  "@atlaskit/interaction-context": "^2.1.0",
90
- "@atlaskit/primitives": "^5.0.0",
90
+ "@atlaskit/primitives": "^5.1.0",
91
91
  "@atlaskit/spinner": "^16.0.0",
92
92
  "@atlaskit/theme": "^12.6.0",
93
- "@atlaskit/tokens": "^1.41.0",
93
+ "@atlaskit/tokens": "^1.42.0",
94
94
  "@atlaskit/visually-hidden": "^1.2.4",
95
95
  "@babel/runtime": "^7.0.0",
96
96
  "@emotion/react": "^11.7.1"
@@ -119,7 +119,7 @@
119
119
  "react-router-dom": "^4.2.2",
120
120
  "react-test-renderer": "^16.8.0",
121
121
  "storybook-addon-performance": "^0.16.0",
122
- "typescript": "~4.9.5",
122
+ "typescript": "~5.4.2",
123
123
  "wait-for-expect": "^1.2.0"
124
124
  },
125
125
  "techstack": {
@@ -144,4 +144,4 @@
144
144
  },
145
145
  "homepage": "https://atlassian.design/components/button/",
146
146
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
147
- }
147
+ }
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/standard-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/standard-button.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/types.d.ts"
12
12
  ]