@atlaskit/select 17.6.0 → 17.6.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,11 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 17.6.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
+
3
9
  ## 17.6.0
4
10
 
5
11
  ### Minor Changes
@@ -9,7 +9,7 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
9
9
  var _analyticsNext = require("@atlaskit/analytics-next");
10
10
  var _createSelect = _interopRequireDefault(require("./createSelect"));
11
11
  var packageName = "@atlaskit/select";
12
- var packageVersion = "17.6.0";
12
+ var packageVersion = "17.6.1";
13
13
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
15
15
  var Select = (0, _analyticsNext.withAnalyticsContext)({
@@ -2,7 +2,7 @@ import ReactSelect from 'react-select';
2
2
  import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import createSelect from './createSelect';
4
4
  const packageName = "@atlaskit/select";
5
- const packageVersion = "17.6.0";
5
+ const packageVersion = "17.6.1";
6
6
  export const SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  const Select = withAnalyticsContext({
@@ -2,7 +2,7 @@ import ReactSelect from 'react-select';
2
2
  import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import createSelect from './createSelect';
4
4
  var packageName = "@atlaskit/select";
5
- var packageVersion = "17.6.0";
5
+ var packageVersion = "17.6.1";
6
6
  export var SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  var Select = withAnalyticsContext({
@@ -75,6 +75,7 @@ export interface PopupSelectProps<Option = OptionType, IsMulti extends boolean =
75
75
  isInvalid?: boolean;
76
76
  /** This gives an accessible name to the input for people who use assistive technology. */
77
77
  label?: string;
78
+ /** The `testId` prop appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests. It will be set on the menu element when defined: `{testId}--menu` */
78
79
  testId?: string;
79
80
  }
80
81
  interface State<Modifiers = string> {
@@ -28,7 +28,13 @@ interface CustomSelectProps extends WithAnalyticsEventsProps {
28
28
  spacing?: 'compact' | 'default';
29
29
  /** This prop affects the backgroundColor and border of the Select field. 'subtle' makes these transparent while 'none' prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions. */
30
30
  appearance?: 'default' | 'subtle' | 'none';
31
- /** Prop for testing */
31
+ /**
32
+ A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
33
+
34
+ **WARNING:** This prop is currently broken and a test ID will not be added to select.
35
+ Please refer to the [select testing page](https://atlassian.design/components/select/testing)
36
+ for guidance on alternatives to identifying select in tests.
37
+ */
32
38
  testId?: string;
33
39
  /** This prop indicates if the component is in an error state */
34
40
  isInvalid?: boolean;
@@ -75,6 +75,7 @@ export interface PopupSelectProps<Option = OptionType, IsMulti extends boolean =
75
75
  isInvalid?: boolean;
76
76
  /** This gives an accessible name to the input for people who use assistive technology. */
77
77
  label?: string;
78
+ /** The `testId` prop appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests. It will be set on the menu element when defined: `{testId}--menu` */
78
79
  testId?: string;
79
80
  }
80
81
  interface State<Modifiers = string> {
@@ -28,7 +28,13 @@ interface CustomSelectProps extends WithAnalyticsEventsProps {
28
28
  spacing?: 'compact' | 'default';
29
29
  /** This prop affects the backgroundColor and border of the Select field. 'subtle' makes these transparent while 'none' prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions. */
30
30
  appearance?: 'default' | 'subtle' | 'none';
31
- /** Prop for testing */
31
+ /**
32
+ A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
33
+
34
+ **WARNING:** This prop is currently broken and a test ID will not be added to select.
35
+ Please refer to the [select testing page](https://atlassian.design/components/select/testing)
36
+ for guidance on alternatives to identifying select in tests.
37
+ */
32
38
  testId?: string;
33
39
  /** This prop indicates if the component is in an error state */
34
40
  isInvalid?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "17.6.0",
3
+ "version": "17.6.1",
4
4
  "description": "Select allows users to make a single selection or multiple selections from a list of options.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  ".": "./src/index.tsx"
42
42
  },
43
43
  "dependencies": {
44
- "@atlaskit/analytics-next": "^9.2.0",
44
+ "@atlaskit/analytics-next": "^9.3.0",
45
45
  "@atlaskit/icon": "^22.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.2.0",
47
47
  "@atlaskit/spinner": "^16.0.0",
@@ -51,7 +51,7 @@
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "@popperjs/core": "^2.9.1",
54
- "bind-event-listener": "^2.1.1",
54
+ "bind-event-listener": "^3.0.0",
55
55
  "react-focus-lock": "^2.9.5",
56
56
  "react-node-resolver": "^1.0.1",
57
57
  "react-popper": "^2.2.3",
@@ -66,7 +66,10 @@
66
66
  "devDependencies": {
67
67
  "@af/accessibility-testing": "*",
68
68
  "@af/integration-testing": "*",
69
- "@atlaskit/ds-lib": "^2.2.0",
69
+ "@atlaskit/checkbox": "^13.1.0",
70
+ "@atlaskit/ds-lib": "^2.3.0",
71
+ "@atlaskit/modal-dialog": "^12.11.0",
72
+ "@atlaskit/radio": "^6.1.3",
70
73
  "@atlaskit/ssr": "*",
71
74
  "@atlaskit/visual-regression": "*",
72
75
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",