@atlaskit/mention 23.7.0 → 23.8.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,20 @@
1
1
  # @atlaskit/mention
2
2
 
3
+ ## 23.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#101931](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101931)
8
+ [`8a09e2cba1485`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8a09e2cba1485) -
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
+
12
+ ## 23.7.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 23.7.0
4
19
 
5
20
  ### Minor Changes
@@ -87,6 +87,7 @@ var MentionItemStyle = exports.MentionItemStyle = _styled.default.div(function (
87
87
  overflow: 'hidden',
88
88
  listStyleType: 'none',
89
89
  height: "".concat(MENTION_ITEM_HEIGHT, "px"),
90
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
90
91
  lineHeight: 1.2,
91
92
  cursor: 'pointer'
92
93
  };
@@ -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.0";
15
+ var packageVersion = "23.8.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) {
@@ -72,6 +72,7 @@ export const MentionItemStyle = styled.div(props => ({
72
72
  overflow: 'hidden',
73
73
  listStyleType: 'none',
74
74
  height: `${MENTION_ITEM_HEIGHT}px`,
75
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
75
76
  lineHeight: 1.2,
76
77
  cursor: 'pointer'
77
78
  }));
@@ -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.0";
5
+ const packageVersion = "23.8.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) => {
@@ -79,6 +79,7 @@ export var MentionItemStyle = styled.div(function (props) {
79
79
  overflow: 'hidden',
80
80
  listStyleType: 'none',
81
81
  height: "".concat(MENTION_ITEM_HEIGHT, "px"),
82
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
82
83
  lineHeight: 1.2,
83
84
  cursor: 'pointer'
84
85
  };
@@ -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.0";
8
+ var packageVersion = "23.8.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.0",
3
+ "version": "23.8.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.1.0",
48
+ "@atlaskit/icon": "^23.3.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": "^2.5.0",
53
+ "@atlaskit/tokens": "^3.0.0",
54
54
  "@atlaskit/tooltip": "^19.0.0",
55
55
  "@atlaskit/ufo": "^0.3.0",
56
56
  "@atlaskit/util-service-support": "^6.2.0",