@atlaskit/smart-user-picker 7.0.0 → 7.0.1

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,16 @@
1
1
  # @atlassian/smart-user-picker
2
2
 
3
+ ## 7.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#115319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115319)
8
+ [`d3a55e50e9513`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d3a55e50e9513) -
9
+ QS-5272 migrate atlassian smart user picker to r18 concurrent
10
+ - [#115319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115319)
11
+ [`b0c914f8d10d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b0c914f8d10d7) -
12
+ QS-5272 runReact18 true
13
+
3
14
  ## 7.0.0
4
15
 
5
16
  ### 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 = "7.0.1";
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 = "7.0.1";
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 = "7.0.1";
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": "7.0.1",
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": {
@@ -49,12 +49,15 @@
49
49
  "uuid": "^3.1.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "react": "^18.2.0",
53
- "react-dom": "^18.2.0"
52
+ "react": "^16.8.0 || ^17.0.0 || ^18.2.0",
53
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@atlaskit/select": "^18.10.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",