@atlaskit/user-picker 10.19.7 → 10.19.8

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/user-picker
2
2
 
3
+ ## 10.19.8
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
  ## 10.19.7
4
10
 
5
11
  ### Patch Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/analytics.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/analytics.d.ts"
12
12
  ]
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  var packageName = "@atlaskit/user-picker";
15
- var packageVersion = "10.19.7";
15
+ var packageVersion = "10.19.8";
16
16
  var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
17
17
  var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
18
18
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -2,7 +2,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { v4 as uuidv4 } from 'uuid';
3
3
  import { isCustom, isExternalUser } from './components/utils';
4
4
  const packageName = "@atlaskit/user-picker";
5
- const packageVersion = "10.19.7";
5
+ const packageVersion = "10.19.8";
6
6
  const UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
7
7
  const UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
8
8
  const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -5,7 +5,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { v4 as uuidv4 } from 'uuid';
6
6
  import { isCustom, isExternalUser } from './components/utils';
7
7
  var packageName = "@atlaskit/user-picker";
8
- var packageVersion = "10.19.7";
8
+ var packageVersion = "10.19.8";
9
9
  var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
10
10
  var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
11
11
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -4,9 +4,9 @@ declare function creatableProps(isValidEmail?: EmailValidator): {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
6
6
  isValidNewOption: (inputValue?: string | undefined) => boolean | "" | undefined;
7
- getNewOptionData: (inputValue: string) => Option<import("../types").OptionData>;
7
+ getNewOptionData: (inputValue: string) => Option;
8
8
  formatCreateLabel: (inputText?: string | undefined) => string;
9
- isOptionDisabled: (option: Option<import("../types").OptionData>) => boolean;
9
+ isOptionDisabled: (option: Option) => boolean;
10
10
  };
11
11
  export declare const getCreatableProps: typeof creatableProps;
12
12
  export {};
@@ -40,4 +40,4 @@ export declare const getStyles: import("memoize-one").MemoizedFn<(width: string
40
40
  singleValue?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("@atlaskit/select").SingleValueProps<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined;
41
41
  valueContainer?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").ValueContainerProps<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined;
42
42
  }>;
43
- export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig) => StylesConfig<import("@atlaskit/select").OptionType, false>>;
43
+ export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig) => StylesConfig>;
@@ -10,7 +10,7 @@ export declare const isDefaultValuePopulated: (value?: DefaultValue) => boolean;
10
10
  export declare const optionToSelectableOption: (option: OptionData | OptionIdentifier) => Option;
11
11
  export declare const extractOptionValue: (value: AtlaskitSelectValue) => OptionData | OptionData[] | undefined;
12
12
  export declare const isIterable: (a: any) => a is Iterable<Promisable<OptionData | OptionData[]>>;
13
- export declare const getOptions: import("memoize-one").MemoizedFn<(options: OptionData[]) => Option<OptionData>[]>;
13
+ export declare const getOptions: import("memoize-one").MemoizedFn<(options: OptionData[]) => Option[]>;
14
14
  export interface OptionToSelectableOptions {
15
15
  (defaultValue: OptionData): Option;
16
16
  (defaultValue: OptionData[]): Option[];
@@ -20,7 +20,7 @@ export interface OptionToSelectableOptions {
20
20
  export declare const optionToSelectableOptions: OptionToSelectableOptions;
21
21
  export declare const getAvatarSize: (appearance: string) => 'xsmall' | 'small' | 'medium';
22
22
  export declare const isChildInput: (child: ReactChild) => child is ReactElement<any, string | import("react").JSXElementConstructor<any>>;
23
- export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Option<OptionData>;
23
+ export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Option;
24
24
  export declare const hasValue: (value?: string) => value is string;
25
25
  export declare const callCallback: <U extends any[], R>(callback: ((...U: U) => R) | undefined, ...args: U) => R | undefined;
26
26
  export declare const getAvatarUrl: (optionData: OptionData) => string | undefined;
@@ -4,9 +4,9 @@ declare function creatableProps(isValidEmail?: EmailValidator): {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
6
6
  isValidNewOption: (inputValue?: string | undefined) => boolean | "" | undefined;
7
- getNewOptionData: (inputValue: string) => Option<import("../types").OptionData>;
7
+ getNewOptionData: (inputValue: string) => Option;
8
8
  formatCreateLabel: (inputText?: string | undefined) => string;
9
- isOptionDisabled: (option: Option<import("../types").OptionData>) => boolean;
9
+ isOptionDisabled: (option: Option) => boolean;
10
10
  };
11
11
  export declare const getCreatableProps: typeof creatableProps;
12
12
  export {};
@@ -40,4 +40,4 @@ export declare const getStyles: import("memoize-one").MemoizedFn<(width: string
40
40
  singleValue?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("@atlaskit/select").SingleValueProps<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined;
41
41
  valueContainer?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").ValueContainerProps<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined;
42
42
  }>;
43
- export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig) => StylesConfig<import("@atlaskit/select").OptionType, false>>;
43
+ export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig) => StylesConfig>;
@@ -10,7 +10,7 @@ export declare const isDefaultValuePopulated: (value?: DefaultValue) => boolean;
10
10
  export declare const optionToSelectableOption: (option: OptionData | OptionIdentifier) => Option;
11
11
  export declare const extractOptionValue: (value: AtlaskitSelectValue) => OptionData | OptionData[] | undefined;
12
12
  export declare const isIterable: (a: any) => a is Iterable<Promisable<OptionData | OptionData[]>>;
13
- export declare const getOptions: import("memoize-one").MemoizedFn<(options: OptionData[]) => Option<OptionData>[]>;
13
+ export declare const getOptions: import("memoize-one").MemoizedFn<(options: OptionData[]) => Option[]>;
14
14
  export interface OptionToSelectableOptions {
15
15
  (defaultValue: OptionData): Option;
16
16
  (defaultValue: OptionData[]): Option[];
@@ -20,7 +20,7 @@ export interface OptionToSelectableOptions {
20
20
  export declare const optionToSelectableOptions: OptionToSelectableOptions;
21
21
  export declare const getAvatarSize: (appearance: string) => 'xsmall' | 'small' | 'medium';
22
22
  export declare const isChildInput: (child: ReactChild) => child is ReactElement<any, string | import("react").JSXElementConstructor<any>>;
23
- export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Option<OptionData>;
23
+ export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Option;
24
24
  export declare const hasValue: (value?: string) => value is string;
25
25
  export declare const callCallback: <U extends any[], R>(callback: ((...U: U) => R) | undefined, ...args: U) => R | undefined;
26
26
  export declare const getAvatarUrl: (optionData: OptionData) => string | undefined;
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/option.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/option.d.ts"
12
12
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.19.7",
3
+ "version": "10.19.8",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,12 +49,12 @@
49
49
  "@atlaskit/lozenge": "^11.6.0",
50
50
  "@atlaskit/platform-feature-flags": "^0.2.0",
51
51
  "@atlaskit/popper": "^5.5.0",
52
- "@atlaskit/primitives": "^5.0.0",
52
+ "@atlaskit/primitives": "^5.1.0",
53
53
  "@atlaskit/select": "^17.3.0",
54
54
  "@atlaskit/spinner": "^16.0.0",
55
55
  "@atlaskit/teams-avatar": "^1.0.0",
56
56
  "@atlaskit/theme": "^12.6.0",
57
- "@atlaskit/tokens": "^1.41.0",
57
+ "@atlaskit/tokens": "^1.42.0",
58
58
  "@atlaskit/tooltip": "^18.1.0",
59
59
  "@atlaskit/ufo": "^0.2.0",
60
60
  "@babel/runtime": "^7.0.0",
@@ -71,7 +71,7 @@
71
71
  "devDependencies": {
72
72
  "@atlaskit/analytics-viewer": "^0.5.0",
73
73
  "@atlaskit/elements-test-helpers": "^0.7.0",
74
- "@atlaskit/heading": "^2.0.0",
74
+ "@atlaskit/heading": "^2.1.0",
75
75
  "@atlaskit/visual-regression": "*",
76
76
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
77
77
  "@emotion/styled": "^11.0.0",
@@ -86,7 +86,7 @@
86
86
  "react-beautiful-dnd": "^12.1.1",
87
87
  "react-intl-next": "npm:react-intl@^5.18.1",
88
88
  "react-select-event": "^5.5.0",
89
- "typescript": "~4.9.5"
89
+ "typescript": "~5.4.2"
90
90
  },
91
91
  "techstack": {
92
92
  "@repo/internal": {
@@ -105,4 +105,4 @@
105
105
  }
106
106
  },
107
107
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
108
- }
108
+ }
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/types.d.ts"
12
12
  ]