@atlaskit/mention 27.12.10 → 27.13.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 +17 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/types.d.ts +21 -2
- package/package.json +4 -4
- package/tsconfig.json +5 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 27.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0adaa36b0a6bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0adaa36b0a6bc) -
|
|
8
|
+
Add InlineInvitePopup provider hook, replacing InlineInviteRecaptcha slot
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 27.12.11
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 27.12.10
|
|
4
21
|
|
|
5
22
|
### 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.12.
|
|
15
|
+
var packageVersion = "27.12.11";
|
|
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.12.
|
|
5
|
+
const packageVersion = "27.12.11";
|
|
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.12.
|
|
8
|
+
var packageVersion = "27.12.11";
|
|
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
|
@@ -335,13 +335,32 @@ export declare function isSpecialMentionText(mentionText: string): boolean | '';
|
|
|
335
335
|
export declare const isPromise: <T>(p: any) => p is Promise<T>;
|
|
336
336
|
export type InviteFlow = 'mention' | 'assign';
|
|
337
337
|
export type UserRole = 'admin' | 'trusted' | 'basic';
|
|
338
|
+
export type InlineInvitePopupResult = {
|
|
339
|
+
error: {
|
|
340
|
+
email: string;
|
|
341
|
+
}[];
|
|
342
|
+
failure: boolean;
|
|
343
|
+
invited: {
|
|
344
|
+
email: string;
|
|
345
|
+
id: string;
|
|
346
|
+
}[];
|
|
347
|
+
requested: {
|
|
348
|
+
email: string;
|
|
349
|
+
id: string;
|
|
350
|
+
}[];
|
|
351
|
+
};
|
|
338
352
|
export interface InviteFromMentionProvider {
|
|
339
353
|
getShouldEnableInlineInvite?: () => boolean;
|
|
340
|
-
|
|
354
|
+
InlineInvitePopup?: React.ComponentType<{
|
|
355
|
+
anchorElement: HTMLElement | null;
|
|
356
|
+
onDismiss: () => void;
|
|
357
|
+
onInviteComplete: (result: InlineInvitePopupResult) => void;
|
|
358
|
+
onReady: (show: ((email: string) => void) | null) => void;
|
|
359
|
+
}> | null;
|
|
341
360
|
onInviteItemClick?(flow: InviteFlow): void;
|
|
342
361
|
productName?: string;
|
|
343
362
|
shouldEnableInvite?: boolean;
|
|
344
|
-
|
|
363
|
+
showInlineInvitePopup?: (email: string, localId: string) => void;
|
|
345
364
|
userEmailDomain?: string;
|
|
346
365
|
userRole?: UserRole;
|
|
347
366
|
}
|
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": "^142.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^16.4.0",
|
|
46
46
|
"@atlaskit/tooltip": "^24.0.0",
|
|
47
47
|
"@atlaskit/ufo": "^1.0.0",
|
|
48
48
|
"@atlaskit/util-service-support": "^7.2.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@af/search-test-utils": "workspace:^",
|
|
59
59
|
"@af/visual-regression": "workspace:^",
|
|
60
60
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
61
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
61
|
+
"@atlassian/a11y-jest-testing": "^0.15.0",
|
|
62
62
|
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
63
63
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
64
64
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
"types": "dist/types/index.d.ts",
|
|
128
|
-
"version": "27.
|
|
128
|
+
"version": "27.13.0"
|
|
129
129
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"./src/**/*.tsx",
|
|
8
|
-
"./docs/**/*.ts",
|
|
9
|
-
"./docs/**/*.tsx",
|
|
10
|
-
"./examples/**/*.ts",
|
|
11
|
-
"./examples/**/*.tsx",
|
|
12
|
-
"**/stories.ts",
|
|
13
|
-
"**/stories.tsx",
|
|
14
|
-
"**/stories/*.ts",
|
|
15
|
-
"**/stories/*.tsx",
|
|
16
|
-
"**/stories/**/*.ts",
|
|
17
|
-
"**/stories/**/*.tsx"
|
|
18
|
-
]
|
|
2
|
+
"extends": "./tsconfig.dev.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"disableReferencedProjectLoad": true,
|
|
5
|
+
"disableSolutionSearching": true
|
|
6
|
+
}
|
|
19
7
|
}
|