@atlaskit/user-picker 10.19.5 → 10.19.7

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,17 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.19.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.19.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
14
+
3
15
  ## 10.19.5
4
16
 
5
17
  ### Patch Changes
@@ -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.5";
15
+ var packageVersion = "10.19.7";
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}$/;
@@ -22,13 +22,9 @@ var ExternalUserSourcesContainer = exports.ExternalUserSourcesContainer = functi
22
22
  });
23
23
  }
24
24
  return _react.default.Children.map(children, function (child) {
25
- return (
26
- /*#__PURE__*/
27
- // @ts-expect-error
28
- _react.default.cloneElement(child, {
29
- sources: sources,
30
- sourcesLoading: sourcesLoading
31
- })
32
- );
25
+ return /*#__PURE__*/_react.default.cloneElement(child, {
26
+ sources: sources,
27
+ sourcesLoading: sourcesLoading
28
+ });
33
29
  });
34
30
  };
@@ -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.5";
5
+ const packageVersion = "10.19.7";
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}$/;
@@ -16,10 +16,7 @@ export const ExternalUserSourcesContainer = ({
16
16
  sourcesLoading
17
17
  });
18
18
  }
19
- return React.Children.map(children, child =>
20
- /*#__PURE__*/
21
- // @ts-expect-error
22
- React.cloneElement(child, {
19
+ return React.Children.map(children, child => /*#__PURE__*/React.cloneElement(child, {
23
20
  sources,
24
21
  sourcesLoading
25
22
  }));
@@ -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.5";
8
+ var packageVersion = "10.19.7";
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}$/;
@@ -15,13 +15,9 @@ export var ExternalUserSourcesContainer = function ExternalUserSourcesContainer(
15
15
  });
16
16
  }
17
17
  return React.Children.map(children, function (child) {
18
- return (
19
- /*#__PURE__*/
20
- // @ts-expect-error
21
- React.cloneElement(child, {
22
- sources: sources,
23
- sourcesLoading: sourcesLoading
24
- })
25
- );
18
+ return /*#__PURE__*/React.cloneElement(child, {
19
+ sources: sources,
20
+ sourcesLoading: sourcesLoading
21
+ });
26
22
  });
27
23
  };
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { LoadUserSource, UserSource } from '../types';
3
3
  export interface UserSourceContext {
4
4
  fetchUserSource?: LoadUserSource;
5
5
  }
6
- export declare const ExusUserSourceProvider: React.FC<UserSourceContext>;
6
+ export declare const ExusUserSourceProvider: ({ fetchUserSource, children, }: PropsWithChildren<UserSourceContext>) => JSX.Element;
7
7
  export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[]) => {
8
8
  sources: UserSource[];
9
9
  loading: boolean;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { UserSource } from '../types';
3
3
  export interface ExternalUserSourcesData {
4
4
  sources: UserSource[];
@@ -11,5 +11,5 @@ interface SourcesContainerProps {
11
11
  initialSources: UserSource[];
12
12
  children: SourcesChildrenFunc;
13
13
  }
14
- export declare const ExternalUserSourcesContainer: React.FC<SourcesContainerProps>;
14
+ export declare const ExternalUserSourcesContainer: ({ children, accountId, shouldFetchSources, initialSources, }: SourcesContainerProps) => any;
15
15
  export {};
@@ -2,9 +2,9 @@
2
2
  import React from 'react';
3
3
  import { UserPickerProps } from '../types';
4
4
  import { jsx } from '@emotion/react';
5
- export type Props = {
5
+ export type Props = React.PropsWithChildren<{
6
6
  selectProps: UserPickerProps;
7
- };
7
+ }>;
8
8
  export declare class Menu extends React.Component<Props> {
9
9
  render(): jsx.JSX.Element;
10
10
  }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const MessagesIntlProvider: React.FC;
1
+ import { PropsWithChildren } from 'react';
2
+ declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
3
3
  export default MessagesIntlProvider;
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import { ConcurrentExperience } from '@atlaskit/ufo';
3
3
  export declare const userPickerRenderedUfoExperience: ConcurrentExperience;
4
4
  export declare const userPickerOptionsShownUfoExperience: ConcurrentExperience;
5
- export declare class UfoErrorBoundary extends React.Component<{
5
+ export declare class UfoErrorBoundary extends React.Component<React.PropsWithChildren<{
6
6
  id: string;
7
- }> {
7
+ }>> {
8
8
  componentDidCatch(): void;
9
9
  render(): React.ReactNode;
10
10
  }
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { LoadUserSource, UserSource } from '../types';
3
3
  export interface UserSourceContext {
4
4
  fetchUserSource?: LoadUserSource;
5
5
  }
6
- export declare const ExusUserSourceProvider: React.FC<UserSourceContext>;
6
+ export declare const ExusUserSourceProvider: ({ fetchUserSource, children, }: PropsWithChildren<UserSourceContext>) => JSX.Element;
7
7
  export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[]) => {
8
8
  sources: UserSource[];
9
9
  loading: boolean;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { UserSource } from '../types';
3
3
  export interface ExternalUserSourcesData {
4
4
  sources: UserSource[];
@@ -11,5 +11,5 @@ interface SourcesContainerProps {
11
11
  initialSources: UserSource[];
12
12
  children: SourcesChildrenFunc;
13
13
  }
14
- export declare const ExternalUserSourcesContainer: React.FC<SourcesContainerProps>;
14
+ export declare const ExternalUserSourcesContainer: ({ children, accountId, shouldFetchSources, initialSources, }: SourcesContainerProps) => any;
15
15
  export {};
@@ -2,9 +2,9 @@
2
2
  import React from 'react';
3
3
  import { UserPickerProps } from '../types';
4
4
  import { jsx } from '@emotion/react';
5
- export type Props = {
5
+ export type Props = React.PropsWithChildren<{
6
6
  selectProps: UserPickerProps;
7
- };
7
+ }>;
8
8
  export declare class Menu extends React.Component<Props> {
9
9
  render(): jsx.JSX.Element;
10
10
  }
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const MessagesIntlProvider: React.FC;
1
+ import { PropsWithChildren } from 'react';
2
+ declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
3
3
  export default MessagesIntlProvider;
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import { ConcurrentExperience } from '@atlaskit/ufo';
3
3
  export declare const userPickerRenderedUfoExperience: ConcurrentExperience;
4
4
  export declare const userPickerOptionsShownUfoExperience: ConcurrentExperience;
5
- export declare class UfoErrorBoundary extends React.Component<{
5
+ export declare class UfoErrorBoundary extends React.Component<React.PropsWithChildren<{
6
6
  id: string;
7
- }> {
7
+ }>> {
8
8
  componentDidCatch(): void;
9
9
  render(): React.ReactNode;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.19.5",
3
+ "version": "10.19.7",
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,7 +49,7 @@
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": "^4.0.0",
52
+ "@atlaskit/primitives": "^5.0.0",
53
53
  "@atlaskit/select": "^17.3.0",
54
54
  "@atlaskit/spinner": "^16.0.0",
55
55
  "@atlaskit/teams-avatar": "^1.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": "^1.7.0",
74
+ "@atlaskit/heading": "^2.0.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",