@atlaskit/select 21.2.4 → 21.2.5

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.
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/entry-points/async-creatable-select.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/entry-points/async-creatable-select.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/entry-points/async-select.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/entry-points/async-select.d.ts"
14
14
  ]
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 21.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 21.2.4
4
10
 
5
11
  ### Patch Changes
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/entry-points/creatable-select.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/entry-points/creatable-select.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/entry-points/select.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/entry-points/select.d.ts"
14
14
  ]
@@ -11,7 +11,7 @@ var _createSelect = _interopRequireDefault(require("./createSelect"));
11
11
  /* eslint-disable @repo/internal/react/require-jsdoc */
12
12
 
13
13
  var packageName = "@atlaskit/select";
14
- var packageVersion = "21.2.3";
14
+ var packageVersion = "21.2.4";
15
15
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_async.default);
16
16
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
17
17
  var Select = (0, _analyticsNext.withAnalyticsContext)({
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  const packageName = "@atlaskit/select";
6
- const packageVersion = "21.2.3";
6
+ const packageVersion = "21.2.4";
7
7
  export const SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  const Select = withAnalyticsContext({
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  var packageName = "@atlaskit/select";
6
- var packageVersion = "21.2.3";
6
+ var packageVersion = "21.2.4";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const AsyncCreatableSelect: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
2
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
4
3
  }) => JSX.Element;
5
4
  export default AsyncCreatableSelect;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const AsyncSelect: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
2
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
4
3
  }) => JSX.Element;
5
4
  export default AsyncSelect;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type OptionType, type SelectProps } from './types';
3
- declare const CheckboxSelect: <OptionT extends OptionType>({ components, ...props }: SelectProps<OptionT, true>) => React.JSX.Element;
3
+ declare const CheckboxSelectInternal: <OptionT extends OptionType>({ components, ...props }: SelectProps<OptionT, true>) => React.JSX.Element;
4
+ declare const CheckboxSelect: typeof CheckboxSelectInternal;
4
5
  export default CheckboxSelect;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { groupedCountries } from './data/countries';
3
2
  import { type SelectProps } from './types';
4
3
  type Country = (typeof groupedCountries)[number]['options'][number];
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const CreatableSelect: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
2
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
4
3
  }) => JSX.Element;
5
4
  export default CreatableSelect;
@@ -1,7 +1,6 @@
1
1
  import React, { type KeyboardEventHandler, PureComponent, type ReactNode } from 'react';
2
2
  import { type UnbindFn } from 'bind-event-listener';
3
3
  import { type PopperProps } from 'react-popper';
4
- import { type GroupBase } from '@atlaskit/react-select';
5
4
  import { type ActionMeta, type AtlaskitSelectRefType, type OptionType, type ReactSelectProps, type StylesConfig, type ValidationState, type ValueType } from '../types';
6
5
  type defaultModifiers = 'offset' | 'preventOverflow' | 'flip';
7
6
  type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
@@ -114,10 +113,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
114
113
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
115
114
  DropdownIndicator: () => JSX.Element;
116
115
  Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => JSX.Element;
117
- ClearIndicator: (props: import("@atlaskit/react-select").ClearIndicatorProps<unknown, boolean, GroupBase<unknown>>) => JSX.Element;
118
- MultiValueRemove: (props: import("@atlaskit/react-select").MultiValueRemoveProps<unknown, boolean, GroupBase<unknown>>) => JSX.Element;
116
+ ClearIndicator: (props: import("@atlaskit/react-select").ClearIndicatorProps) => JSX.Element;
117
+ MultiValueRemove: (props: import("@atlaskit/react-select").MultiValueRemoveProps) => JSX.Element;
119
118
  };
120
- mergedPopperProps: PopperPropsNoChildren<string>;
119
+ mergedPopperProps: PopperPropsNoChildren<defaultModifiers | string>;
121
120
  };
122
121
  static defaultProps: {
123
122
  closeMenuOnSelect: boolean;
@@ -1,8 +1,6 @@
1
- /// <reference types="react" />
1
+ import createSelect from './createSelect';
2
2
  export declare const SelectWithoutAnalytics: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
4
- }) => JSX.Element;
5
- declare const Select: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
6
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
3
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
7
4
  }) => JSX.Element;
5
+ declare const Select: ReturnType<typeof createSelect>;
8
6
  export default Select;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type OptionProps, type OptionType } from '../types';
3
2
  /**
4
3
  * __Checkbox option__
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
2
  import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorsContainerProps, type InputActionMeta, type InputProps, type LoadingIndicatorProps, type MultiValueGenericProps, type MultiValueProps, type MultiValueRemoveProps, type NoticeProps, type OptionProps as ReactSelectOptionProps, type Props as ReactSelectProps, type ActionMeta as RSActionMeta, type ControlProps as RSControlProps, type GroupProps as RSGroupProps, type MenuListProps as RSMenuListComponentProps, type MenuProps as RSMenuProps, type Options as RSOptionsType, type PlaceholderProps as RSPlaceholderProps, type SelectComponentsConfig as RSSelectComponentsConfig, type StylesConfig as RSStylesConfig, type ValueContainerProps as RSValueContainerProps, type OnChangeValue as RSValueType, type SelectInstance, type SingleValueProps } from '@atlaskit/react-select';
4
3
  import { type AsyncProps } from '@atlaskit/react-select/async';
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const AsyncCreatableSelect: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
2
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
4
3
  }) => JSX.Element;
5
4
  export default AsyncCreatableSelect;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const AsyncSelect: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
2
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
4
3
  }) => JSX.Element;
5
4
  export default AsyncSelect;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type OptionType, type SelectProps } from './types';
3
- declare const CheckboxSelect: <OptionT extends OptionType>({ components, ...props }: SelectProps<OptionT, true>) => React.JSX.Element;
3
+ declare const CheckboxSelectInternal: <OptionT extends OptionType>({ components, ...props }: SelectProps<OptionT, true>) => React.JSX.Element;
4
+ declare const CheckboxSelect: typeof CheckboxSelectInternal;
4
5
  export default CheckboxSelect;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { groupedCountries } from './data/countries';
3
2
  import { type SelectProps } from './types';
4
3
  type Country = (typeof groupedCountries)[number]['options'][number];
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const CreatableSelect: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
2
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
4
3
  }) => JSX.Element;
5
4
  export default CreatableSelect;
@@ -1,7 +1,6 @@
1
1
  import React, { type KeyboardEventHandler, PureComponent, type ReactNode } from 'react';
2
2
  import { type UnbindFn } from 'bind-event-listener';
3
3
  import { type PopperProps } from 'react-popper';
4
- import { type GroupBase } from '@atlaskit/react-select';
5
4
  import { type ActionMeta, type AtlaskitSelectRefType, type OptionType, type ReactSelectProps, type StylesConfig, type ValidationState, type ValueType } from '../types';
6
5
  type defaultModifiers = 'offset' | 'preventOverflow' | 'flip';
7
6
  type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
@@ -114,10 +113,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
114
113
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
115
114
  DropdownIndicator: () => JSX.Element;
116
115
  Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => JSX.Element;
117
- ClearIndicator: (props: import("@atlaskit/react-select").ClearIndicatorProps<unknown, boolean, GroupBase<unknown>>) => JSX.Element;
118
- MultiValueRemove: (props: import("@atlaskit/react-select").MultiValueRemoveProps<unknown, boolean, GroupBase<unknown>>) => JSX.Element;
116
+ ClearIndicator: (props: import("@atlaskit/react-select").ClearIndicatorProps) => JSX.Element;
117
+ MultiValueRemove: (props: import("@atlaskit/react-select").MultiValueRemoveProps) => JSX.Element;
119
118
  };
120
- mergedPopperProps: PopperPropsNoChildren<string>;
119
+ mergedPopperProps: PopperPropsNoChildren<defaultModifiers | string>;
121
120
  };
122
121
  static defaultProps: {
123
122
  closeMenuOnSelect: boolean;
@@ -1,8 +1,6 @@
1
- /// <reference types="react" />
1
+ import createSelect from './createSelect';
2
2
  export declare const SelectWithoutAnalytics: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
3
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
4
- }) => JSX.Element;
5
- declare const Select: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
6
- ref?: import("react").Ref<import("./types").AtlaskitSelectRefType> | undefined;
3
+ ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
7
4
  }) => JSX.Element;
5
+ declare const Select: ReturnType<typeof createSelect>;
8
6
  export default Select;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type OptionProps, type OptionType } from '../types';
3
2
  /**
4
3
  * __Checkbox option__
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
2
  import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorsContainerProps, type InputActionMeta, type InputProps, type LoadingIndicatorProps, type MultiValueGenericProps, type MultiValueProps, type MultiValueRemoveProps, type NoticeProps, type OptionProps as ReactSelectOptionProps, type Props as ReactSelectProps, type ActionMeta as RSActionMeta, type ControlProps as RSControlProps, type GroupProps as RSGroupProps, type MenuListProps as RSMenuListComponentProps, type MenuProps as RSMenuProps, type Options as RSOptionsType, type PlaceholderProps as RSPlaceholderProps, type SelectComponentsConfig as RSSelectComponentsConfig, type StylesConfig as RSStylesConfig, type ValueContainerProps as RSValueContainerProps, type OnChangeValue as RSValueType, type SelectInstance, type SingleValueProps } from '@atlaskit/react-select';
4
3
  import { type AsyncProps } from '@atlaskit/react-select/async';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "21.2.4",
3
+ "version": "21.2.5",
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/"
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@atlaskit/analytics-next": "^11.1.0",
44
44
  "@atlaskit/ds-lib": "^5.0.0",
45
- "@atlaskit/icon": "^27.9.0",
45
+ "@atlaskit/icon": "^28.0.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/primitives": "^14.11.0",
48
48
  "@atlaskit/react-select": "^3.4.0",
@@ -66,15 +66,15 @@
66
66
  "@af/accessibility-testing": "workspace:^",
67
67
  "@af/integration-testing": "workspace:^",
68
68
  "@af/visual-regression": "workspace:^",
69
- "@atlaskit/button": "^23.3.0",
69
+ "@atlaskit/button": "^23.4.0",
70
70
  "@atlaskit/checkbox": "^17.1.0",
71
71
  "@atlaskit/docs": "^11.0.0",
72
72
  "@atlaskit/drawer": "^11.0.0",
73
- "@atlaskit/form": "^12.0.0",
73
+ "@atlaskit/form": "^12.1.0",
74
74
  "@atlaskit/link": "^3.2.0",
75
- "@atlaskit/logo": "^19.6.0",
75
+ "@atlaskit/logo": "^19.7.0",
76
76
  "@atlaskit/modal-dialog": "^14.3.0",
77
- "@atlaskit/radio": "^8.1.0",
77
+ "@atlaskit/radio": "^8.2.0",
78
78
  "@atlaskit/section-message": "^8.5.0",
79
79
  "@atlassian/ssr-tests": "^0.2.0",
80
80
  "@testing-library/react": "^13.4.0",
@@ -83,8 +83,7 @@
83
83
  "jest-in-case": "^1.0.2",
84
84
  "jscodeshift": "^17.0.0",
85
85
  "react-dom": "^18.2.0",
86
- "react-select-event": "^5.5.0",
87
- "typescript": "~5.4.2"
86
+ "react-select-event": "^5.5.0"
88
87
  },
89
88
  "techstack": {
90
89
  "@repo/internal": {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/types.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/types.d.ts"
14
14
  ]