@atlaskit/mention 23.7.1 → 23.9.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
  # @atlaskit/mention
2
2
 
3
+ ## 23.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#103277](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103277)
8
+ [`38e621ec55cd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/38e621ec55cd4) -
9
+ Changed signature of optional prop (inviteXProductUser) with 1 more param. This is regarding
10
+ CCEDITIONS-4746 (x-product-user-invite experiment). Project poster link -
11
+ https://hello.atlassian.net/wiki/spaces/CV1/pages/3685626022/Project+poster+-+Cross+Product+User+Search+Invites
12
+
13
+ ## 23.8.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#101931](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101931)
18
+ [`8a09e2cba1485`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8a09e2cba1485) -
19
+ Changed signature of optional prop (inviteXProductUser) with 1 more param. This is regarding
20
+ CCEDITIONS-4746 (x-product-user-invite experiment). Project poster link -
21
+
3
22
  ## 23.7.1
4
23
 
5
24
  ### Patch Changes
@@ -12,7 +12,7 @@ var _types = require("../types");
12
12
  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; }
13
13
  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; }
14
14
  var packageName = "@atlaskit/mention";
15
- var packageVersion = "23.7.1";
15
+ var packageVersion = "23.9.0";
16
16
  var SLI_EVENT_TYPE = exports.SLI_EVENT_TYPE = 'sli';
17
17
  var SMART_EVENT_TYPE = exports.SMART_EVENT_TYPE = 'smart';
18
18
  var fireAnalyticsMentionTypeaheadEvent = exports.fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
@@ -2,7 +2,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
2
2
  import { ELEMENTS_CHANNEL } from '../_constants';
3
3
  import { ComponentNames, isSpecialMentionText } from '../types';
4
4
  const packageName = "@atlaskit/mention";
5
- const packageVersion = "23.7.1";
5
+ const packageVersion = "23.9.0";
6
6
  export const SLI_EVENT_TYPE = 'sli';
7
7
  export const SMART_EVENT_TYPE = 'smart';
8
8
  export const fireAnalyticsMentionTypeaheadEvent = props => (action, duration, userIds = [], query) => {
@@ -5,7 +5,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
5
5
  import { ELEMENTS_CHANNEL } from '../_constants';
6
6
  import { ComponentNames, isSpecialMentionText } from '../types';
7
7
  var packageName = "@atlaskit/mention";
8
- var packageVersion = "23.7.1";
8
+ var packageVersion = "23.9.0";
9
9
  export var SLI_EVENT_TYPE = 'sli';
10
10
  export var SMART_EVENT_TYPE = 'smart';
11
11
  export var fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
@@ -46,7 +46,7 @@ export declare class MentionResource extends AbstractMentionResource implements
46
46
  userRole: UserRole;
47
47
  onInviteItemClick?: (flow: InviteFlow) => void;
48
48
  isEligibleXProductUserInvite?: boolean;
49
- inviteXProductUser?: (userId: string) => Promise<void>;
49
+ inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
50
50
  constructor(config: MentionResourceConfig);
51
51
  shouldHighlightMention(mention: MentionDescription): boolean;
52
52
  notify(searchTime: number, mentionResult: MentionsResult, query?: string): void;
@@ -32,7 +32,7 @@ export interface MentionResourceConfig extends ServiceConfig {
32
32
  productName?: string;
33
33
  debounceTime?: number;
34
34
  isEligibleXProductUserInvite?: boolean;
35
- inviteXProductUser?: (userId: string) => Promise<void>;
35
+ inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
36
36
  }
37
37
  export interface ResourceProvider<Result> {
38
38
  /**
@@ -186,5 +186,5 @@ export interface InviteFromMentionProvider {
186
186
  }
187
187
  export interface XProductInviteMentionProvider {
188
188
  isEligibleXProductUserInvite?: boolean;
189
- inviteXProductUser?(userId: string): Promise<void>;
189
+ inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
190
190
  }
@@ -46,7 +46,7 @@ export declare class MentionResource extends AbstractMentionResource implements
46
46
  userRole: UserRole;
47
47
  onInviteItemClick?: (flow: InviteFlow) => void;
48
48
  isEligibleXProductUserInvite?: boolean;
49
- inviteXProductUser?: (userId: string) => Promise<void>;
49
+ inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
50
50
  constructor(config: MentionResourceConfig);
51
51
  shouldHighlightMention(mention: MentionDescription): boolean;
52
52
  notify(searchTime: number, mentionResult: MentionsResult, query?: string): void;
@@ -32,7 +32,7 @@ export interface MentionResourceConfig extends ServiceConfig {
32
32
  productName?: string;
33
33
  debounceTime?: number;
34
34
  isEligibleXProductUserInvite?: boolean;
35
- inviteXProductUser?: (userId: string) => Promise<void>;
35
+ inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
36
36
  }
37
37
  export interface ResourceProvider<Result> {
38
38
  /**
@@ -186,5 +186,5 @@ export interface InviteFromMentionProvider {
186
186
  }
187
187
  export interface XProductInviteMentionProvider {
188
188
  isEligibleXProductUserInvite?: boolean;
189
- inviteXProductUser?(userId: string): Promise<void>;
189
+ inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
190
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "23.7.1",
3
+ "version": "23.9.0",
4
4
  "description": "A React component used to display user profiles in a list for 'Mention' functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,12 +45,12 @@
45
45
  "@atlaskit/avatar": "^21.17.0",
46
46
  "@atlaskit/focus-ring": "^2.0.0",
47
47
  "@atlaskit/heading": "^4.0.0",
48
- "@atlaskit/icon": "^23.3.0",
48
+ "@atlaskit/icon": "^23.4.0",
49
49
  "@atlaskit/lozenge": "^11.12.0",
50
50
  "@atlaskit/platform-feature-flags": "^0.3.0",
51
51
  "@atlaskit/primitives": "^13.3.0",
52
52
  "@atlaskit/theme": "^14.0.0",
53
- "@atlaskit/tokens": "^3.0.0",
53
+ "@atlaskit/tokens": "^3.1.0",
54
54
  "@atlaskit/tooltip": "^19.0.0",
55
55
  "@atlaskit/ufo": "^0.3.0",
56
56
  "@atlaskit/util-service-support": "^6.2.0",