@atlaskit/button 16.3.0 → 16.3.3

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,23 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 16.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8a5bdb3c844`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8a5bdb3c844) - Upgrading internal dependency (bind-event-listener) for improved internal types
8
+
9
+ ## 16.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 16.3.1
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 16.3.0
4
22
 
5
23
  ### Minor Changes
@@ -1,5 +1,7 @@
1
1
  import React, { useLayoutEffect, useRef, useState } from 'react';
2
2
 
3
+ import { bindAll } from 'bind-event-listener';
4
+
3
5
  import type { ButtonProps } from '../../src';
4
6
 
5
7
  export default function Example({
@@ -24,13 +26,10 @@ export default function Example({
24
26
  throw new Error('Could not find button ref');
25
27
  }
26
28
 
27
- el.addEventListener('toggle-select', toggleSelect);
28
- el.addEventListener('toggle-disabled', toggleDisabled);
29
-
30
- return () => {
31
- el.removeEventListener('toggle-select', toggleSelect);
32
- el.removeEventListener('toggle-disabled', toggleDisabled);
33
- };
29
+ return bindAll(el, [
30
+ { type: 'toggle-select', listener: toggleSelect },
31
+ { type: 'toggle-disabled', listener: toggleDisabled },
32
+ ]);
34
33
  }, []);
35
34
 
36
35
  return (
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/entry-points/button-group.js",
4
4
  "module": "../dist/esm/entry-points/button-group.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/button-group.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/entry-points/button-group.d.ts"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/entry-points/custom-theme-button.js",
4
4
  "module": "../dist/esm/entry-points/custom-theme-button.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/custom-theme-button.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/entry-points/custom-theme-button.d.ts"
7
8
  }
@@ -101,7 +101,7 @@ var _default = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(props,
101
101
  action: 'clicked',
102
102
  componentName: 'button',
103
103
  packageName: "@atlaskit/button",
104
- packageVersion: "16.3.0",
104
+ packageVersion: "16.3.3",
105
105
  analyticsData: analyticsContext
106
106
  }); // Button currently calls preventDefault, which is not standard button behaviour
107
107
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.3.0",
3
+ "version": "16.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -70,7 +70,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
70
70
  action: 'clicked',
71
71
  componentName: 'button',
72
72
  packageName: "@atlaskit/button",
73
- packageVersion: "16.3.0",
73
+ packageVersion: "16.3.3",
74
74
  analyticsData: analyticsContext
75
75
  }); // Button currently calls preventDefault, which is not standard button behaviour
76
76
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.3.0",
3
+ "version": "16.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -79,7 +79,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
79
79
  action: 'clicked',
80
80
  componentName: 'button',
81
81
  packageName: "@atlaskit/button",
82
- packageVersion: "16.3.0",
82
+ packageVersion: "16.3.3",
83
83
  analyticsData: analyticsContext
84
84
  }); // Button currently calls preventDefault, which is not standard button behaviour
85
85
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.3.0",
3
+ "version": "16.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/entry-points/loading-button.js",
4
4
  "module": "../dist/esm/entry-points/loading-button.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/loading-button.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/entry-points/loading-button.d.ts"
7
8
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.3.0",
3
+ "version": "16.3.3",
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/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -18,7 +18,8 @@
18
18
  "team": "Design System Team",
19
19
  "releaseModel": "scheduled",
20
20
  "website": {
21
- "name": "Button"
21
+ "name": "Button",
22
+ "category": "Components"
22
23
  }
23
24
  },
24
25
  "af:exports": {
@@ -31,10 +32,10 @@
31
32
  },
32
33
  "dependencies": {
33
34
  "@atlaskit/analytics-next": "^8.2.0",
34
- "@atlaskit/ds-lib": "^1.4.0",
35
+ "@atlaskit/ds-lib": "^2.0.0",
35
36
  "@atlaskit/spinner": "^15.1.0",
36
37
  "@atlaskit/theme": "^12.1.0",
37
- "@atlaskit/tokens": "^0.9.0",
38
+ "@atlaskit/tokens": "^0.10.0",
38
39
  "@babel/runtime": "^7.0.0",
39
40
  "@emotion/core": "^10.0.9"
40
41
  },
@@ -45,9 +46,9 @@
45
46
  "@atlaskit/checkbox": "^12.3.0",
46
47
  "@atlaskit/docs": "*",
47
48
  "@atlaskit/icon": "^21.10.0",
48
- "@atlaskit/logo": "^13.5.0",
49
+ "@atlaskit/logo": "^13.7.0",
49
50
  "@atlaskit/section-message": "^6.1.0",
50
- "@atlaskit/select": "^15.0.0",
51
+ "@atlaskit/select": "^15.3.0",
51
52
  "@atlaskit/ssr": "*",
52
53
  "@atlaskit/visual-regression": "*",
53
54
  "@atlaskit/webdriver-runner": "*",
@@ -55,6 +56,7 @@
55
56
  "@testing-library/react": "^8.0.1",
56
57
  "@types/react-router-dom": "^4.3.1",
57
58
  "ast-types": "^0.13.3",
59
+ "bind-event-listener": "^2.1.1",
58
60
  "jest-emotion": "^10.0.32",
59
61
  "jest-in-case": "^1.0.2",
60
62
  "jscodeshift": "^0.13.0",
@@ -70,6 +72,7 @@
70
72
  "import-structure": "atlassian-conventions"
71
73
  },
72
74
  "@repo/internal": {
75
+ "dom-events": "use-bind-event-listener",
73
76
  "ui-components": "lite-mode",
74
77
  "analytics": "analytics-next",
75
78
  "theming": "tokens",
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/entry-points/standard-button.js",
4
4
  "module": "../dist/esm/entry-points/standard-button.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/standard-button.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/entry-points/standard-button.d.ts"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/entry-points/types.js",
4
4
  "module": "../dist/esm/entry-points/types.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/types.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/entry-points/types.d.ts"
7
8
  }