@atlaskit/mention 27.14.1 → 27.15.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,16 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 27.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`50992b74009d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/50992b74009d1) -
|
|
8
|
+
Add InlineInvitePopup provider hook, replacing InlineInviteRecaptcha slot
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 27.14.1
|
|
4
15
|
|
|
5
16
|
### 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 = "27.14.
|
|
15
|
+
var packageVersion = "27.14.1";
|
|
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 = "27.14.
|
|
5
|
+
const packageVersion = "27.14.1";
|
|
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 = "27.14.
|
|
8
|
+
var packageVersion = "27.14.1";
|
|
9
9
|
export var SLI_EVENT_TYPE = 'sli';
|
|
10
10
|
export var SMART_EVENT_TYPE = 'smart';
|
|
11
11
|
export var fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -336,13 +336,32 @@ export declare function isSpecialMentionText(mentionText: string): boolean | '';
|
|
|
336
336
|
export declare const isPromise: <T>(p: any) => p is Promise<T>;
|
|
337
337
|
export type InviteFlow = 'mention' | 'assign';
|
|
338
338
|
export type UserRole = 'admin' | 'trusted' | 'basic';
|
|
339
|
+
export type InlineInvitePopupResult = {
|
|
340
|
+
error: {
|
|
341
|
+
email: string;
|
|
342
|
+
}[];
|
|
343
|
+
failure: boolean;
|
|
344
|
+
invited: {
|
|
345
|
+
email: string;
|
|
346
|
+
id: string;
|
|
347
|
+
}[];
|
|
348
|
+
requested: {
|
|
349
|
+
email: string;
|
|
350
|
+
id: string;
|
|
351
|
+
}[];
|
|
352
|
+
};
|
|
339
353
|
export interface InviteFromMentionProvider {
|
|
340
354
|
getShouldEnableInlineInvite?: () => boolean;
|
|
341
|
-
|
|
355
|
+
InlineInvitePopup?: React.ComponentType<{
|
|
356
|
+
anchorElement: HTMLElement | null;
|
|
357
|
+
onDismiss: () => void;
|
|
358
|
+
onInviteComplete: (result: InlineInvitePopupResult) => void;
|
|
359
|
+
onReady: (show: ((email: string) => void) | null) => void;
|
|
360
|
+
}> | null;
|
|
342
361
|
onInviteItemClick?(flow: InviteFlow): void;
|
|
343
362
|
productName?: string;
|
|
344
363
|
shouldEnableInvite?: boolean;
|
|
345
|
-
|
|
364
|
+
showInlineInvitePopup?: (email: string, localId: string) => void;
|
|
346
365
|
userEmailDomain?: string;
|
|
347
366
|
userRole?: UserRole;
|
|
348
367
|
}
|
package/package.json
CHANGED
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@atlaskit/skeleton": "^4.2.0",
|
|
42
42
|
"@atlaskit/tag": "^15.4.0",
|
|
43
43
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
-
"@atlaskit/tokens": "^16.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^145.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^16.5.0",
|
|
46
46
|
"@atlaskit/tooltip": "^24.0.0",
|
|
47
47
|
"@atlaskit/ufo": "^1.0.0",
|
|
48
48
|
"@atlaskit/util-service-support": "^7.2.0",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
"types": "dist/types/index.d.ts",
|
|
128
|
-
"version": "27.
|
|
128
|
+
"version": "27.15.0"
|
|
129
129
|
}
|