@atlaskit/user-picker 10.5.0 → 10.6.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,22 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`7b8ae37bf88`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b8ae37bf88) - Allow passing a component for noOptionsMessage prop
8
+
9
+ ### Patch Changes
10
+
11
+ - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
12
+ - Updated dependencies
13
+
14
+ ## 10.5.1
15
+
16
+ ### Patch Changes
17
+
18
+ - [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
19
+
3
20
  ## 10.5.0
4
21
 
5
22
  ### Minor Changes
@@ -8,12 +8,11 @@ exports.userInfoEvent = exports.startSession = exports.selectEvent = exports.sea
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _analyticsNext = require("@atlaskit/analytics-next");
10
10
  var _uuid = require("uuid");
11
- var _version = _interopRequireDefault(require("./version.json"));
12
11
  var _utils = require("./components/utils");
13
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
- var packageName = _version.default.name;
16
- var packageVersion = _version.default.version;
14
+ var packageName = "@atlaskit/user-picker";
15
+ var packageVersion = "10.6.0";
17
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}$/;
18
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}$/;
19
18
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -1,9 +1,8 @@
1
1
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { v4 as uuidv4 } from 'uuid';
3
- import versionJson from './version.json';
4
3
  import { isCustom, isExternalUser } from './components/utils';
5
- const packageName = versionJson.name;
6
- const packageVersion = versionJson.version;
4
+ const packageName = "@atlaskit/user-picker";
5
+ const packageVersion = "10.6.0";
7
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}$/;
8
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}$/;
9
8
  const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -3,10 +3,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { v4 as uuidv4 } from 'uuid';
6
- import versionJson from './version.json';
7
6
  import { isCustom, isExternalUser } from './components/utils';
8
- var packageName = versionJson.name;
9
- var packageVersion = versionJson.version;
7
+ var packageName = "@atlaskit/user-picker";
8
+ var packageVersion = "10.6.0";
10
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}$/;
11
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}$/;
12
11
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -106,7 +106,7 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
106
106
  */
107
107
  noOptionsMessage?: ((value: {
108
108
  inputValue: string;
109
- }) => string | null) | null;
109
+ }) => string | null | React.ReactNode) | null | React.ReactNode;
110
110
  /** Footer to be displayed in MenuList */
111
111
  footer?: React.ReactNode;
112
112
  /** Controls if the user picker has a value or not. If not provided, UserPicker will control the value internally. */
@@ -106,7 +106,7 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
106
106
  */
107
107
  noOptionsMessage?: ((value: {
108
108
  inputValue: string;
109
- }) => string | null) | null;
109
+ }) => string | null | React.ReactNode) | null | React.ReactNode;
110
110
  /** Footer to be displayed in MenuList */
111
111
  footer?: React.ReactNode;
112
112
  /** Controls if the user picker has a value or not. If not provided, UserPicker will control the value internally. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.5.0",
3
+ "version": "10.6.0",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/select": "^16.5.0",
44
44
  "@atlaskit/spinner": "^15.5.0",
45
45
  "@atlaskit/theme": "^12.5.0",
46
- "@atlaskit/tokens": "^1.13.0",
46
+ "@atlaskit/tokens": "^1.15.0",
47
47
  "@atlaskit/tooltip": "^17.8.0",
48
48
  "@atlaskit/ufo": "^0.2.0",
49
49
  "@babel/runtime": "^7.0.0",
package/report.api.md CHANGED
@@ -505,7 +505,10 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
505
505
  defaultValue?: DefaultValue;
506
506
  placeholder?: React_2.ReactNode;
507
507
  addMoreMessage?: string;
508
- noOptionsMessage?: ((value: { inputValue: string }) => null | string) | null;
508
+ noOptionsMessage?:
509
+ | ((value: { inputValue: string }) => React_2.ReactNode | null | string)
510
+ | React_2.ReactNode
511
+ | null;
509
512
  footer?: React_2.ReactNode;
510
513
  value?: Value;
511
514
  isDisabled?: boolean;
@@ -337,7 +337,7 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
337
337
  addMoreMessage?: string;
338
338
  noOptionsMessage?: ((value: {
339
339
  inputValue: string;
340
- }) => null | string) | null;
340
+ }) => React_2.ReactNode | null | string) | React_2.ReactNode | null;
341
341
  footer?: React_2.ReactNode;
342
342
  value?: Value;
343
343
  isDisabled?: boolean;
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/user-picker",
3
- "version": "10.5.0",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/user-picker",
3
- "version": "10.5.0",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/user-picker",
3
- "version": "10.5.0",
4
- "sideEffects": false
5
- }