@atlaskit/smart-user-picker 11.0.0 → 11.2.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,23 @@
1
1
  # @atlassian/smart-user-picker
2
2
 
3
+ ## 11.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`7f2eb99bad9b3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f2eb99bad9b3) -
8
+ Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
9
+
10
+ ## 11.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`b9a7b3350402b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b9a7b3350402b) -
15
+ Autofix: add explicit package exports (barrel removal)
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 11.0.0
4
22
 
5
23
  ### Major Changes
package/compass.yml ADDED
@@ -0,0 +1,38 @@
1
+ configVersion: 1
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/e5d00ea8-8a61-49ea-a433-df5d5037fb47
3
+ name: '@atlaskit/smart-user-picker'
4
+ ownerId: ari:cloud:identity::team/8c518cea-39e4-4a9e-976b-2eec1db07eb2 # Search PlEx
5
+ labels:
6
+ - platform-code
7
+ - platform-afm
8
+ typeId: OTHER
9
+ fields:
10
+ tier: 4
11
+ lifecycle: Active
12
+ isMonorepoProject: true
13
+ links:
14
+ - name: Root Repository
15
+ type: REPOSITORY
16
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
17
+ - name: Slack Channel
18
+ type: CHAT_CHANNEL
19
+ url: https://atlassian.enterprise.slack.com/archives/CFG8QANL9 # #help-search-plex
20
+ - name: Smart User Picker
21
+ type: REPOSITORY
22
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/smart-experiences/smart-user-picker
23
+ customFields:
24
+ - name: Department
25
+ type: text
26
+ value: Eng - Search PLEX
27
+ - name: Technical Owner
28
+ type: user
29
+ value: ari:cloud:identity::user/712020:bc050a72-a59d-487f-8b54-73358ba67dd0 # David Lyon
30
+ - name: Required Reviewers Opt In
31
+ type: boolean
32
+ value: true
33
+ - name: Reviewer Selection Mechanism
34
+ type: text
35
+ value: random(2)
36
+ - name: Required Reviewer Approvals
37
+ type: number
38
+ value: 1
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
13
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
14
14
  var packageName = "@atlaskit/smart-user-picker";
15
- var packageVersion = "10.2.0";
15
+ var packageVersion = "11.1.0";
16
16
  var startSession = exports.startSession = function startSession() {
17
17
  return {
18
18
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
package/dist/cjs/index.js CHANGED
@@ -84,4 +84,4 @@ Object.defineProperty(exports, "isValidEmail", {
84
84
  });
85
85
  var _components = _interopRequireDefault(require("./components"));
86
86
  var _service = require("./service");
87
- var _userPicker = require("@atlaskit/user-picker");
87
+ var _userPicker = require("./userPicker");
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "EmailType", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _userPicker.EmailType;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "GroupType", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _userPicker.GroupType;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "TeamType", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _userPicker.TeamType;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "UserType", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _userPicker.UserType;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "isEmail", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _userPicker.isEmail;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "isExternalUser", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _userPicker.isExternalUser;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "isGroup", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _userPicker.isGroup;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "isTeam", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _userPicker.isTeam;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "isUser", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _userPicker.isUser;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "isValidEmail", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _userPicker.isValidEmail;
64
+ }
65
+ });
66
+ var _userPicker = require("@atlaskit/user-picker");
@@ -3,7 +3,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
4
  import { v4 as uuid } from 'uuid';
5
5
  const packageName = "@atlaskit/smart-user-picker";
6
- const packageVersion = "10.2.0";
6
+ const packageVersion = "11.1.0";
7
7
  export const startSession = () => ({
8
8
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
9
9
  id: uuid(),
@@ -4,4 +4,4 @@ export {
4
4
  //Utils
5
5
  isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup,
6
6
  // Constants
7
- EmailType, GroupType, TeamType, UserType } from '@atlaskit/user-picker';
7
+ EmailType, GroupType, TeamType, UserType } from './userPicker';
@@ -0,0 +1,5 @@
1
+ export {
2
+ //Utils
3
+ isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup,
4
+ // Constants
5
+ EmailType, GroupType, TeamType, UserType } from '@atlaskit/user-picker';
@@ -6,7 +6,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
6
6
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
7
7
  import { v4 as uuid } from 'uuid';
8
8
  var packageName = "@atlaskit/smart-user-picker";
9
- var packageVersion = "10.2.0";
9
+ var packageVersion = "11.1.0";
10
10
  export var startSession = function startSession() {
11
11
  return {
12
12
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
package/dist/esm/index.js CHANGED
@@ -4,4 +4,4 @@ export {
4
4
  //Utils
5
5
  isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup,
6
6
  // Constants
7
- EmailType, GroupType, TeamType, UserType } from '@atlaskit/user-picker';
7
+ EmailType, GroupType, TeamType, UserType } from './userPicker';
@@ -0,0 +1,5 @@
1
+ export {
2
+ //Utils
3
+ isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup,
4
+ // Constants
5
+ EmailType, GroupType, TeamType, UserType } from '@atlaskit/user-picker';
@@ -1,5 +1,5 @@
1
1
  export { default } from './components';
2
2
  export { getUserRecommendations, hydrateDefaultValues } from './service';
3
3
  export type { RecommendationRequest, Props, State, RestrictionFilter } from './types';
4
- export { isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup, EmailType, GroupType, TeamType, UserType, } from '@atlaskit/user-picker';
5
- export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, TeamMember, User, UserHighlight, ExternalUser, UserSource, } from '@atlaskit/user-picker';
4
+ export { isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup, EmailType, GroupType, TeamType, UserType, } from './userPicker';
5
+ export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, TeamMember, User, UserHighlight, ExternalUser, UserSource, } from './userPicker';
@@ -0,0 +1,2 @@
1
+ export { isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup, EmailType, GroupType, TeamType, UserType, } from '@atlaskit/user-picker';
2
+ export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, TeamMember, User, UserHighlight, ExternalUser, UserSource, } from '@atlaskit/user-picker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "11.0.0",
3
+ "version": "11.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker": "2.143.0",
30
- "@atlaskit/analytics-next": "^12.0.0",
31
- "@atlaskit/platform-feature-flags": "^2.0.0",
30
+ "@atlaskit/analytics-next": "^12.3.0",
31
+ "@atlaskit/platform-feature-flags": "^2.1.0",
32
32
  "@atlaskit/ufo": "^1.0.0",
33
- "@atlaskit/user-picker": "^13.0.0",
33
+ "@atlaskit/user-picker": "^13.7.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "lodash": "^4.17.21",
36
36
  "memoize-one": "^6.0.0",
@@ -42,9 +42,9 @@
42
42
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@atlaskit/select": "^22.0.0",
46
- "@atlaskit/util-data-test": "^19.0.0",
47
- "@atlassian/a11y-jest-testing": "^0.12.0",
45
+ "@atlaskit/select": "^22.5.0",
46
+ "@atlaskit/util-data-test": "^19.1.0",
47
+ "@atlassian/a11y-jest-testing": "^0.13.0",
48
48
  "@testing-library/dom": "^10.1.0",
49
49
  "@testing-library/react": "^16.3.0",
50
50
  "@testing-library/user-event": "^14.4.3",
@@ -54,7 +54,7 @@
54
54
  "mock-apollo-client": "^0.1.0",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
- "react-intl": "^6.6.2"
57
+ "react-intl": "^7.0.0"
58
58
  },
59
59
  "platform-feature-flags": {
60
60
  "twcg-444-invite-usd-improvements-m2-gate": {
@@ -0,0 +1,41 @@
1
+ import path from 'path';
2
+
3
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
4
+
5
+ import packageJson from './package.json';
6
+
7
+ const packagePath = path.resolve(__dirname);
8
+
9
+ const documentation: StructuredContentSource = {
10
+ components: [
11
+ {
12
+ name: 'SmartUserPicker',
13
+ description:
14
+ 'A user picker component that provides ranked recommendations based on the current context.',
15
+ status: 'general-availability',
16
+ import: {
17
+ name: 'default',
18
+ package: '@atlaskit/smart-user-picker',
19
+ type: 'default',
20
+ packagePath,
21
+ packageJson,
22
+ },
23
+ usageGuidelines: [
24
+ 'Use SmartUserPicker to allow users to select other users or teams.',
25
+ 'Provides intelligent recommendations to help users find the right person quickly.',
26
+ 'Supports searching by name, email, and other criteria.',
27
+ ],
28
+ examples: [
29
+ {
30
+ name: 'Basic',
31
+ description: 'Standard smart user picker display.',
32
+ source: path.resolve(packagePath, './examples/00-smart-user-picker.tsx'),
33
+ },
34
+ ],
35
+ keywords: ['user', 'picker', 'recommendations', 'search', 'teams'],
36
+ categories: ['interaction'],
37
+ },
38
+ ],
39
+ };
40
+
41
+ export default documentation;
package/tsconfig.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.json",
3
3
  "include": [
4
+ "./*.docs.tsx",
5
+ "./package.json",
4
6
  "./src/**/*.ts",
5
7
  "./src/**/*.tsx",
6
8
  "./docs/**/*.ts",
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@atlaskit/smart-user-picker/user-picker",
3
+ "main": "../dist/cjs/userPicker.js",
4
+ "module": "../dist/esm/userPicker.js",
5
+ "module:es2019": "../dist/es2019/userPicker.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/userPicker.d.ts"
8
+ }