@atlaskit/smart-user-picker 10.0.2 → 10.0.3

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,12 @@
1
1
  # @atlassian/smart-user-picker
2
2
 
3
+ ## 10.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c8f8aee4be6f5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c8f8aee4be6f5) -
8
+ [PTC-16442]: add userbaseId as an optional prop
9
+
3
10
  ## 10.0.2
4
11
 
5
12
  ### Patch Changes
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "target": "es5",
5
4
  "outDir": "../../../../../confluence/tsDist/@atlaskit__smart-user-picker",
6
5
  "rootDir": "../",
7
6
  "composite": true,
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "target": "es5",
5
4
  "outDir": "../../../../../tsDist/@atlaskit__smart-user-picker/app",
6
5
  "rootDir": "../",
7
6
  "composite": true,
@@ -9,9 +9,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _analyticsNext = require("@atlaskit/analytics-next");
10
10
  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
- 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 @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
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
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
13
14
  var packageName = "@atlaskit/smart-user-picker";
14
- var packageVersion = "0.0.0-development";
15
+ var packageVersion = "10.0.2";
15
16
  var startSession = exports.startSession = function startSession() {
16
17
  return {
17
18
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
@@ -1,8 +1,9 @@
1
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
1
2
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
3
4
  import { v4 as uuid } from 'uuid';
4
5
  const packageName = "@atlaskit/smart-user-picker";
5
- const packageVersion = "0.0.0-development";
6
+ const packageVersion = "10.0.2";
6
7
  export const startSession = () => ({
7
8
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
8
9
  id: uuid(),
@@ -1,11 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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) { _defineProperty(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; }
4
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
4
5
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
6
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
7
  import { v4 as uuid } from 'uuid';
7
8
  var packageName = "@atlaskit/smart-user-picker";
8
- var packageVersion = "0.0.0-development";
9
+ var packageVersion = "10.0.2";
9
10
  export var startSession = function startSession() {
10
11
  return {
11
12
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
@@ -1,4 +1,4 @@
1
- import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
1
+ import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import { type Props } from './types';
3
3
  export type UserPickerSession = {
4
4
  id: string;
@@ -9,7 +9,7 @@ export type UserPickerSession = {
9
9
  lastKey?: number;
10
10
  };
11
11
  export declare const startSession: () => UserPickerSession;
12
- export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
12
+ export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
13
13
  export interface SmartEventCreator {
14
14
  (props: Props, ...args: any[]): AnalyticsEventPayload;
15
15
  }
@@ -247,6 +247,10 @@ export interface SmartProps {
247
247
  * Identifier for the organization in which to search for teams.
248
248
  */
249
249
  orgId?: string;
250
+ /**
251
+ * Identifier for the userbase scope.
252
+ */
253
+ userbaseId?: string;
250
254
  /**
251
255
  * Optional callback to customize the options shown to the user.
252
256
  * Called after options are loaded.
@@ -1,4 +1,4 @@
1
- import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
1
+ import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import { type Props } from './types';
3
3
  export type UserPickerSession = {
4
4
  id: string;
@@ -9,7 +9,7 @@ export type UserPickerSession = {
9
9
  lastKey?: number;
10
10
  };
11
11
  export declare const startSession: () => UserPickerSession;
12
- export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
12
+ export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
13
13
  export interface SmartEventCreator {
14
14
  (props: Props, ...args: any[]): AnalyticsEventPayload;
15
15
  }
@@ -247,6 +247,10 @@ export interface SmartProps {
247
247
  * Identifier for the organization in which to search for teams.
248
248
  */
249
249
  orgId?: string;
250
+ /**
251
+ * Identifier for the userbase scope.
252
+ */
253
+ userbaseId?: string;
250
254
  /**
251
255
  * Optional callback to customize the options shown to the user.
252
256
  * Called after options are loaded.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -1,39 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.local-consumption.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../jira/tsDist/@atlaskit__smart-user-picker/app",
6
- "rootDir": "../",
7
- "composite": true,
8
- "noCheck": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../data/ufo-external/afm-jira/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../elements/user-picker/afm-jira/tsconfig.json"
37
- }
38
- ]
39
- }