@atlaskit/user-picker 13.8.0 → 13.8.2

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,46 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 13.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6902b31db1608`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6902b31db1608) -
8
+ Consolidate direct Popper.js callers behind `@atlaskit/popper` compatibility entry points and
9
+ feature-gated consumer adapters.
10
+
11
+ `@atlaskit/popper` now exposes compatibility entry points so existing direct `popper.js` /
12
+ `react-popper` callers can move their dependency ownership onto `@atlaskit/popper` without a full
13
+ rewrite:
14
+ - `@atlaskit/popper/react-popper` re-exports the React `usePopper` hook and `Manager` / `Popper` /
15
+ `Reference` render-prop components.
16
+ - `@atlaskit/popper/unsafe-imperative` re-exports the raw Popper.js v2 `createPopper` for
17
+ non-React, imperative callers. This is an escape hatch for existing callers only. Do not use it
18
+ for new code; build new overlays on `@atlaskit/top-layer` instead.
19
+
20
+ ```ts
21
+ // Imperative callers (migrating away from a direct `@popperjs/core` / `popper.js` import):
22
+ import { createPopper } from '@atlaskit/popper/unsafe-imperative';
23
+
24
+ const instance = createPopper(referenceElement, popperElement, {
25
+ placement: 'bottom-start',
26
+ });
27
+
28
+ // React callers (migrating away from a direct `react-popper` import):
29
+ import { usePopper } from '@atlaskit/popper/react-popper';
30
+
31
+ const { styles, attributes } = usePopper(referenceElement, popperElement, {
32
+ placement: 'bottom-start',
33
+ });
34
+ ```
35
+
36
+ - Updated dependencies
37
+
38
+ ## 13.8.1
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies
43
+
3
44
  ## 13.8.0
4
45
 
5
46
  ### Minor Changes
@@ -15,7 +15,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
15
15
  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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
16
16
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
17
17
  var packageName = "@atlaskit/user-picker";
18
- var packageVersion = "13.7.2";
18
+ var packageVersion = "13.8.1";
19
19
  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}$/;
20
20
  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}$/;
21
21
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -1,4 +1,4 @@
1
- /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* ClearIndicator.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* Control.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* Control.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* Input.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* Input.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* MultiValueContainer.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* SingleValue.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SingleValueContainer.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* UserPicker.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* UserPicker.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -6,7 +6,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { v4 as uuidv4 } from 'uuid';
7
7
  import { isCustom, isExternalUser } from './components/utils';
8
8
  const packageName = "@atlaskit/user-picker";
9
- const packageVersion = "13.7.2";
9
+ const packageVersion = "13.8.1";
10
10
  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}$/;
11
11
  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}$/;
12
12
  const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -1,4 +1,4 @@
1
- /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* ClearIndicator.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./ClearIndicator.compiled.css";
@@ -1,4 +1,4 @@
1
- /* Control.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* Control.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Control.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* Input.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* Input.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./Input.compiled.css";
@@ -1,4 +1,4 @@
1
- /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* MultiValueContainer.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./MultiValueContainer.compiled.css";
@@ -1,4 +1,4 @@
1
- /* SingleValue.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import "./SingleValue.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SingleValueContainer.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./SingleValueContainer.compiled.css";
@@ -1,4 +1,4 @@
1
- /* UserPicker.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* UserPicker.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { v4 as uuidv4 } from 'uuid';
10
10
  import { isCustom, isExternalUser } from './components/utils';
11
11
  var packageName = "@atlaskit/user-picker";
12
- var packageVersion = "13.7.2";
12
+ var packageVersion = "13.8.1";
13
13
  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}$/;
14
14
  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}$/;
15
15
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -1,4 +1,4 @@
1
- /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* ClearIndicator.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -1,4 +1,4 @@
1
- /* Control.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* Control.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Control.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* Input.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* Input.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -1,4 +1,4 @@
1
- /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* MultiValueContainer.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -1,4 +1,4 @@
1
- /* SingleValue.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import "./SingleValue.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SingleValueContainer.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -1,4 +1,4 @@
1
- /* UserPicker.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* UserPicker.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -2,7 +2,7 @@ import { type CreateUIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atl
2
2
  import { type PopupSelectProps, type SelectComponentsConfig, type StylesConfig } from '@atlaskit/select';
3
3
  import React from 'react';
4
4
  import { type Appearance, type BoundariesElement, type DefaultValue, type LoadOptions, type LoadUserSource, type OnChange, type OnInputChange, type OnOption, type OnPicker, type OptionData, type PopupUserPickerProps, type RootBoundary, type Target, type UserPickerRef, type Value } from '../types';
5
- import type { Placement } from '@popperjs/core';
5
+ import type { Placement } from '@atlaskit/popper/popper';
6
6
  import type { EmailValidator } from './emailValidation';
7
7
  interface State {
8
8
  flipped: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "13.8.0",
3
+ "version": "13.8.2",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -16,7 +16,7 @@
16
16
  "@af/integration-testing": "workspace:^",
17
17
  "@af/search-test-utils": "workspace:^",
18
18
  "@af/visual-regression": "workspace:^",
19
- "@atlaskit/heading": "^6.2.0",
19
+ "@atlaskit/heading": "^7.0.0",
20
20
  "@atlassian/a11y-jest-testing": "^0.13.0",
21
21
  "@atlassian/a11y-playwright-testing": "^0.10.0",
22
22
  "@atlassian/feature-flags-test-utils": "^1.2.0",
@@ -72,7 +72,7 @@
72
72
  "@atlaskit/lozenge": "^14.1.0",
73
73
  "@atlaskit/people-teams-ui-public": "^5.1.0",
74
74
  "@atlaskit/platform-feature-flags": "^2.1.0",
75
- "@atlaskit/popper": "^8.4.0",
75
+ "@atlaskit/popper": "^8.5.0",
76
76
  "@atlaskit/primitives": "^22.2.0",
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/select": "^22.6.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/tag": "^15.4.0",
81
81
  "@atlaskit/teams-avatar": "^4.0.0",
82
82
  "@atlaskit/tokens": "^16.3.0",
83
- "@atlaskit/tooltip": "^23.2.0",
83
+ "@atlaskit/tooltip": "^24.0.0",
84
84
  "@atlaskit/ufo": "^1.0.0",
85
85
  "@babel/runtime": "^7.0.0",
86
86
  "@compiled/react": "^1.0.0",