@atlaskit/smart-user-picker 7.0.0 → 8.0.0

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,34 @@
1
1
  # @atlassian/smart-user-picker
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 7.0.1
22
+
23
+ ### Patch Changes
24
+
25
+ - [#115319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115319)
26
+ [`d3a55e50e9513`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d3a55e50e9513) -
27
+ QS-5272 migrate atlassian smart user picker to r18 concurrent
28
+ - [#115319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115319)
29
+ [`b0c914f8d10d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b0c914f8d10d7) -
30
+ QS-5272 runReact18 true
31
+
3
32
  ## 7.0.0
4
33
 
5
34
  ### Major Changes
@@ -11,7 +11,7 @@ var _uuid = require("uuid");
11
11
  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; }
12
12
  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; }
13
13
  var packageName = "@atlaskit/smart-user-picker";
14
- var packageVersion = "7.0.0";
14
+ var packageVersion = "8.0.0";
15
15
  var startSession = exports.startSession = function startSession() {
16
16
  return {
17
17
  id: (0, _uuid.v4)(),
@@ -20,7 +20,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
20
20
  *
21
21
  * @param locale string specifying the locale like 'en_GB', or 'fr'.
22
22
  */
23
- var getMessagesForLocale = exports.getMessagesForLocale = /*#__PURE__*/function () {
23
+ var _getMessagesForLocale = exports.getMessagesForLocale = /*#__PURE__*/function () {
24
24
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(locale) {
25
25
  var fragments;
26
26
  return _regenerator.default.wrap(function _callee$(_context) {
@@ -209,7 +209,7 @@ var getMessagesForLocale = exports.getMessagesForLocale = /*#__PURE__*/function
209
209
  _context.next = 37;
210
210
  break;
211
211
  }
212
- return _context.abrupt("return", getMessagesForLocale(fragments[0]));
212
+ return _context.abrupt("return", _getMessagesForLocale(fragments[0]));
213
213
  case 37:
214
214
  return _context.abrupt("return", Promise.resolve().then(function () {
215
215
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en'));
@@ -1,7 +1,7 @@
1
1
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { v4 as uuid } from 'uuid';
3
3
  const packageName = "@atlaskit/smart-user-picker";
4
- const packageVersion = "7.0.0";
4
+ const packageVersion = "8.0.0";
5
5
  export const startSession = () => ({
6
6
  id: uuid(),
7
7
  start: Date.now(),
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { v4 as uuid } from 'uuid';
6
6
  var packageName = "@atlaskit/smart-user-picker";
7
- var packageVersion = "7.0.0";
7
+ var packageVersion = "8.0.0";
8
8
  export var startSession = function startSession() {
9
9
  return {
10
10
  id: uuid(),
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  *
11
11
  * @param locale string specifying the locale like 'en_GB', or 'fr'.
12
12
  */
13
- export var getMessagesForLocale = /*#__PURE__*/function () {
13
+ var _getMessagesForLocale = /*#__PURE__*/function () {
14
14
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
15
15
  var fragments;
16
16
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -141,7 +141,7 @@ export var getMessagesForLocale = /*#__PURE__*/function () {
141
141
  _context.next = 37;
142
142
  break;
143
143
  }
144
- return _context.abrupt("return", getMessagesForLocale(fragments[0]));
144
+ return _context.abrupt("return", _getMessagesForLocale(fragments[0]));
145
145
  case 37:
146
146
  return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
147
147
  return mod.default;
@@ -155,4 +155,5 @@ export var getMessagesForLocale = /*#__PURE__*/function () {
155
155
  return function getMessagesForLocale(_x) {
156
156
  return _ref.apply(this, arguments);
157
157
  };
158
- }();
158
+ }();
159
+ export { _getMessagesForLocale as getMessagesForLocale };
@@ -29,6 +29,6 @@ export declare class SmartUserPickerWithoutAnalytics extends React.Component<Pro
29
29
  filterUsers: () => OptionData[];
30
30
  onFocus: (sessionId?: string) => void;
31
31
  onBlur: (sessionId?: string) => void;
32
- render(): JSX.Element;
32
+ render(): React.JSX.Element;
33
33
  }
34
34
  export declare const SmartUserPicker: any;
@@ -29,6 +29,6 @@ export declare class SmartUserPickerWithoutAnalytics extends React.Component<Pro
29
29
  filterUsers: () => OptionData[];
30
30
  onFocus: (sessionId?: string) => void;
31
31
  onBlur: (sessionId?: string) => void;
32
- render(): JSX.Element;
32
+ render(): React.JSX.Element;
33
33
  }
34
34
  export declare const SmartUserPicker: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "atlassian": {
30
30
  "team": "Search Platform: Search Experience",
31
- "runReact18": false,
31
+ "runReact18": true,
32
32
  "slack": {
33
33
  "channel": "#search-plex-prs",
34
34
  "notifications": {
@@ -39,9 +39,9 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@atlaskit/analytics-next": "^10.3.0",
43
- "@atlaskit/ufo": "^0.3.0",
44
- "@atlaskit/user-picker": "^10.31.0",
42
+ "@atlaskit/analytics-next": "^11.0.0",
43
+ "@atlaskit/ufo": "^0.4.0",
44
+ "@atlaskit/user-picker": "^11.0.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "lodash": "^4.17.21",
47
47
  "memoize-one": "^6.0.0",
@@ -53,8 +53,11 @@
53
53
  "react-dom": "^18.2.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@atlaskit/select": "^18.10.0",
56
+ "@atlaskit/select": "^19.0.0",
57
57
  "@atlaskit/util-data-test": "^18.0.0",
58
+ "@testing-library/dom": "^10.1.0",
59
+ "@testing-library/react": "^13.4.0",
60
+ "@testing-library/user-event": "^14.4.3",
58
61
  "enzyme": "^3.10.0",
59
62
  "fetch-mock": "^8.0.0",
60
63
  "graphql-tag": "^2.10.1",