@atlaskit/smart-user-picker 11.3.2 → 11.4.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,24 @@
1
1
  # @atlassian/smart-user-picker
2
2
 
3
+ ## 11.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`83e8f4f813800`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83e8f4f813800) -
8
+ Clean up a feature gate. The restrictTo prop is now always applied to user recommendations.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 11.3.3
15
+
16
+ ### Patch Changes
17
+
18
+ - [`e9153fd2bb41f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e9153fd2bb41f) -
19
+ Migrate user picker feature gate unit tests to the supported mock-gates test utilities.
20
+ - Updated dependencies
21
+
3
22
  ## 11.3.2
4
23
 
5
24
  ### Patch Changes
@@ -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 = "11.3.1";
15
+ var packageVersion = "11.3.3";
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
@@ -163,7 +163,7 @@ var SmartUserPickerWithoutAnalytics = exports.SmartUserPickerWithoutAnalytics =
163
163
  Further ref: https://developer.atlassian.com/platform/user-recommendations/guides/frequently-asked-questions/#filter-behavior
164
164
  */
165
165
  searchQueryFilter: isEmail && !searchQueryFilter ? '(NOT not_mentionable:true) AND (account_status:active) AND (NOT account_type:app)' : searchQueryFilter
166
- }, restrictTo && (0, _platformFeatureFlags.fg)('smart-user-picker-restrict-to-gate') && {
166
+ }, restrictTo && {
167
167
  restrictTo: restrictTo
168
168
  }), isTeamSyncedToGroupDirectoryFilter === true && {
169
169
  isTeamSyncedToGroupDirectoryFilter: true
@@ -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 = "11.3.1";
6
+ const packageVersion = "11.3.3";
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(),
@@ -158,7 +158,7 @@ export class SmartUserPickerWithoutAnalytics extends React.Component {
158
158
  Further ref: https://developer.atlassian.com/platform/user-recommendations/guides/frequently-asked-questions/#filter-behavior
159
159
  */
160
160
  searchQueryFilter: isEmail && !searchQueryFilter ? '(NOT not_mentionable:true) AND (account_status:active) AND (NOT account_type:app)' : searchQueryFilter,
161
- ...(restrictTo && fg('smart-user-picker-restrict-to-gate') && {
161
+ ...(restrictTo && {
162
162
  restrictTo
163
163
  }),
164
164
  ...(isTeamSyncedToGroupDirectoryFilter === true && {
@@ -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 = "11.3.1";
9
+ var packageVersion = "11.3.3";
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
@@ -155,7 +155,7 @@ export var SmartUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compo
155
155
  Further ref: https://developer.atlassian.com/platform/user-recommendations/guides/frequently-asked-questions/#filter-behavior
156
156
  */
157
157
  searchQueryFilter: isEmail && !searchQueryFilter ? '(NOT not_mentionable:true) AND (account_status:active) AND (NOT account_type:app)' : searchQueryFilter
158
- }, restrictTo && fg('smart-user-picker-restrict-to-gate') && {
158
+ }, restrictTo && {
159
159
  restrictTo: restrictTo
160
160
  }), isTeamSyncedToGroupDirectoryFilter === true && {
161
161
  isTeamSyncedToGroupDirectoryFilter: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "11.3.2",
3
+ "version": "11.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,7 +44,8 @@
44
44
  "devDependencies": {
45
45
  "@atlaskit/select": "^22.6.0",
46
46
  "@atlaskit/util-data-test": "^19.1.0",
47
- "@atlassian/a11y-jest-testing": "^0.14.0",
47
+ "@atlassian/a11y-jest-testing": "^0.15.0",
48
+ "@atlassian/feature-flags-test-utils": "^1.2.0",
48
49
  "@testing-library/dom": "^10.1.0",
49
50
  "@testing-library/react": "^16.3.0",
50
51
  "@testing-library/user-event": "^14.4.3",
@@ -63,9 +64,6 @@
63
64
  "smart-user-picker-load-options-gate": {
64
65
  "type": "boolean"
65
66
  },
66
- "smart-user-picker-restrict-to-gate": {
67
- "type": "boolean"
68
- },
69
67
  "user_picker_guest_lozenges": {
70
68
  "type": "boolean"
71
69
  }
package/tsconfig.json CHANGED
@@ -1,21 +1,7 @@
1
1
  {
2
- "extends": "../../../tsconfig.json",
3
- "include": [
4
- "./*.docs.tsx",
5
- "./package.json",
6
- "./src/**/*.ts",
7
- "./src/**/*.tsx",
8
- "./docs/**/*.ts",
9
- "./docs/**/*.tsx",
10
- "./example-helpers/**/*.ts",
11
- "./example-helpers/**/*.tsx",
12
- "./examples/**/*.ts",
13
- "./examples/**/*.tsx",
14
- "**/stories.ts",
15
- "**/stories.tsx",
16
- "**/stories/*.ts",
17
- "**/stories/*.tsx",
18
- "**/stories/**/*.ts",
19
- "**/stories/**/*.tsx"
20
- ]
2
+ "extends": "./tsconfig.dev.json",
3
+ "compilerOptions": {
4
+ "disableReferencedProjectLoad": true,
5
+ "disableSolutionSearching": true
6
+ }
21
7
  }