@atlaskit/mention 21.0.10 → 21.0.12
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 +13 -0
- package/dist/cjs/components/Mention/PrimitiveMention.js +4 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Mention/PrimitiveMention.js +4 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Mention/PrimitiveMention.js +4 -4
- package/dist/esm/version.json +1 -1
- package/package.json +4 -4
- package/report.api.md +27 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 21.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`136542df4cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/136542df4cf) - Changes restricted mention border color token to bold version and text color token to default one for better accessibility. Updated appearances only visible in applications configured to use the new Tokens API (currently in alpha).
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 21.0.11
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`f14b977abd5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f14b977abd5) - Bump query-string to ^v7.1.3
|
|
15
|
+
|
|
3
16
|
## 21.0.10
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -52,12 +52,12 @@ var mentionStyle = (_mentionStyle = {}, (0, _defineProperty2.default)(_mentionSt
|
|
|
52
52
|
}), (0, _defineProperty2.default)(_mentionStyle, _types.MentionType.RESTRICTED, {
|
|
53
53
|
background: 'transparent',
|
|
54
54
|
borderColor: (0, _components.themed)({
|
|
55
|
-
light: (0, _tokens.token)('color.border', _colors.N500),
|
|
56
|
-
dark: (0, _tokens.token)('color.border', _colors.DN80)
|
|
55
|
+
light: (0, _tokens.token)('color.border.bold', _colors.N500),
|
|
56
|
+
dark: (0, _tokens.token)('color.border.bold', _colors.DN80)
|
|
57
57
|
}),
|
|
58
58
|
text: (0, _components.themed)({
|
|
59
|
-
light: (0, _tokens.token)('color.text
|
|
60
|
-
dark: (0, _tokens.token)('color.text
|
|
59
|
+
light: (0, _tokens.token)('color.text', _colors.N500),
|
|
60
|
+
dark: (0, _tokens.token)('color.text', _colors.DN100)
|
|
61
61
|
}),
|
|
62
62
|
hoveredBackground: 'transparent',
|
|
63
63
|
pressedBackground: 'transparent'
|
package/dist/cjs/version.json
CHANGED
|
@@ -30,12 +30,12 @@ const mentionStyle = {
|
|
|
30
30
|
[MentionType.RESTRICTED]: {
|
|
31
31
|
background: 'transparent',
|
|
32
32
|
borderColor: themed({
|
|
33
|
-
light: token('color.border', N500),
|
|
34
|
-
dark: token('color.border', DN80)
|
|
33
|
+
light: token('color.border.bold', N500),
|
|
34
|
+
dark: token('color.border.bold', DN80)
|
|
35
35
|
}),
|
|
36
36
|
text: themed({
|
|
37
|
-
light: token('color.text
|
|
38
|
-
dark: token('color.text
|
|
37
|
+
light: token('color.text', N500),
|
|
38
|
+
dark: token('color.text', DN100)
|
|
39
39
|
}),
|
|
40
40
|
hoveredBackground: 'transparent',
|
|
41
41
|
pressedBackground: 'transparent'
|
package/dist/es2019/version.json
CHANGED
|
@@ -34,12 +34,12 @@ var mentionStyle = (_mentionStyle = {}, _defineProperty(_mentionStyle, MentionTy
|
|
|
34
34
|
}), _defineProperty(_mentionStyle, MentionType.RESTRICTED, {
|
|
35
35
|
background: 'transparent',
|
|
36
36
|
borderColor: themed({
|
|
37
|
-
light: token('color.border', N500),
|
|
38
|
-
dark: token('color.border', DN80)
|
|
37
|
+
light: token('color.border.bold', N500),
|
|
38
|
+
dark: token('color.border.bold', DN80)
|
|
39
39
|
}),
|
|
40
40
|
text: themed({
|
|
41
|
-
light: token('color.text
|
|
42
|
-
dark: token('color.text
|
|
41
|
+
light: token('color.text', N500),
|
|
42
|
+
dark: token('color.text', DN100)
|
|
43
43
|
}),
|
|
44
44
|
hoveredBackground: 'transparent',
|
|
45
45
|
pressedBackground: 'transparent'
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/mention",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.12",
|
|
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/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/analytics-gas-types": "^5.0.0",
|
|
30
30
|
"@atlaskit/analytics-next": "^8.0.0",
|
|
31
31
|
"@atlaskit/avatar": "^21.1.0",
|
|
32
|
-
"@atlaskit/button": "^16.
|
|
32
|
+
"@atlaskit/button": "^16.5.0",
|
|
33
33
|
"@atlaskit/focus-ring": "^1.2.0",
|
|
34
34
|
"@atlaskit/icon": "^21.11.0",
|
|
35
35
|
"@atlaskit/lozenge": "^11.3.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@atlaskit/adf-utils": "^17.1.0",
|
|
54
54
|
"@atlaskit/docs": "^9.0.0",
|
|
55
|
-
"@atlaskit/editor-core": "^
|
|
55
|
+
"@atlaskit/editor-core": "^176.0.0",
|
|
56
56
|
"@atlaskit/editor-test-helpers": "^17.2.0",
|
|
57
57
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
58
58
|
"@atlaskit/section-message": "^6.3.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"es6-promise": "^4.0.5",
|
|
68
68
|
"exenv": "^1.2.2",
|
|
69
69
|
"fetch-mock": "^8.0.0",
|
|
70
|
-
"query-string": "^
|
|
70
|
+
"query-string": "^7.1.3",
|
|
71
71
|
"react": "^16.8.0",
|
|
72
72
|
"react-dom": "^16.8.0",
|
|
73
73
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
package/report.api.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
<!-- API Report Version: 2.2 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/mention"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
4
11
|
|
|
5
|
-
|
|
6
|
-
Generated API Report version: 2.0
|
|
7
|
-
-->
|
|
12
|
+
### Main Entry Types
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
10
15
|
|
|
11
16
|
```ts
|
|
12
17
|
import { IntlShape } from 'react-intl-next';
|
|
@@ -113,9 +118,9 @@ export class ContextMentionResource implements MentionProvider {
|
|
|
113
118
|
callDefault: <
|
|
114
119
|
K extends
|
|
115
120
|
| 'filter'
|
|
121
|
+
| 'isFiltering'
|
|
116
122
|
| 'recordMentionSelection'
|
|
117
123
|
| 'shouldHighlightMention'
|
|
118
|
-
| 'isFiltering'
|
|
119
124
|
| 'subscribe'
|
|
120
125
|
| 'unsubscribe',
|
|
121
126
|
>(
|
|
@@ -125,9 +130,9 @@ export class ContextMentionResource implements MentionProvider {
|
|
|
125
130
|
callWithContextIds: <
|
|
126
131
|
K extends
|
|
127
132
|
| 'filter'
|
|
133
|
+
| 'isFiltering'
|
|
128
134
|
| 'recordMentionSelection'
|
|
129
135
|
| 'shouldHighlightMention'
|
|
130
|
-
| 'isFiltering'
|
|
131
136
|
| 'subscribe'
|
|
132
137
|
| 'unsubscribe',
|
|
133
138
|
>(
|
|
@@ -178,7 +183,7 @@ export class DefaultMentionNameResolver implements MentionNameResolver {
|
|
|
178
183
|
// (undocumented)
|
|
179
184
|
cacheName(id: string, name: string): void;
|
|
180
185
|
// (undocumented)
|
|
181
|
-
lookupName(id: string):
|
|
186
|
+
lookupName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
|
|
182
187
|
// (undocumented)
|
|
183
188
|
static waitForBatch: number;
|
|
184
189
|
}
|
|
@@ -217,10 +222,10 @@ interface InfoCallback {
|
|
|
217
222
|
}
|
|
218
223
|
|
|
219
224
|
// @public (undocumented)
|
|
220
|
-
export type InviteExperimentCohort = '
|
|
225
|
+
export type InviteExperimentCohort = 'control' | 'not-enrolled' | 'variation';
|
|
221
226
|
|
|
222
227
|
// @public (undocumented)
|
|
223
|
-
export type InviteFlow = '
|
|
228
|
+
export type InviteFlow = 'assign' | 'mention';
|
|
224
229
|
|
|
225
230
|
// @public (undocumented)
|
|
226
231
|
interface InviteFromMentionProvider {
|
|
@@ -247,11 +252,11 @@ export function isSpecialMention(mention: MentionDescription): boolean;
|
|
|
247
252
|
// @public (undocumented)
|
|
248
253
|
type LozengeColor =
|
|
249
254
|
| 'default'
|
|
250
|
-
| 'success'
|
|
251
|
-
| 'removed'
|
|
252
255
|
| 'inprogress'
|
|
256
|
+
| 'moved'
|
|
253
257
|
| 'new'
|
|
254
|
-
| '
|
|
258
|
+
| 'removed'
|
|
259
|
+
| 'success';
|
|
255
260
|
|
|
256
261
|
// @public (undocumented)
|
|
257
262
|
interface LozengeProps {
|
|
@@ -304,7 +309,7 @@ export interface MentionDescription {
|
|
|
304
309
|
// (undocumented)
|
|
305
310
|
inContext?: boolean;
|
|
306
311
|
// (undocumented)
|
|
307
|
-
lozenge?:
|
|
312
|
+
lozenge?: LozengeProps | string;
|
|
308
313
|
// (undocumented)
|
|
309
314
|
mentionName?: string;
|
|
310
315
|
// (undocumented)
|
|
@@ -391,7 +396,7 @@ export interface MentionNameResolver {
|
|
|
391
396
|
// (undocumented)
|
|
392
397
|
cacheName(id: string, name: string): void;
|
|
393
398
|
// (undocumented)
|
|
394
|
-
lookupName(id: string):
|
|
399
|
+
lookupName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
|
|
395
400
|
}
|
|
396
401
|
|
|
397
402
|
// @public (undocumented)
|
|
@@ -460,7 +465,7 @@ const MentionPickerWithAnalytics: React_2.ForwardRefExoticComponent<
|
|
|
460
465
|
}
|
|
461
466
|
>
|
|
462
467
|
>,
|
|
463
|
-
'children' | 'createAnalyticsEvent' | keyof Props_4
|
|
468
|
+
'children' | 'createAnalyticsEvent' | 'forwardedRef' | keyof Props_4
|
|
464
469
|
> &
|
|
465
470
|
React_2.RefAttributes<any>,
|
|
466
471
|
keyof WithAnalyticsEventsProps_2
|
|
@@ -540,7 +545,7 @@ export class MentionResource
|
|
|
540
545
|
// (undocumented)
|
|
541
546
|
resolveMentionName(
|
|
542
547
|
id: string,
|
|
543
|
-
):
|
|
548
|
+
): MentionNameDetails | Promise<MentionNameDetails>;
|
|
544
549
|
// (undocumented)
|
|
545
550
|
shouldEnableInvite: boolean;
|
|
546
551
|
// (undocumented)
|
|
@@ -634,7 +639,7 @@ interface OwnProps_2 {
|
|
|
634
639
|
}
|
|
635
640
|
|
|
636
641
|
// @public (undocumented)
|
|
637
|
-
type Position = 'above' | '
|
|
642
|
+
type Position = 'above' | 'auto' | 'below';
|
|
638
643
|
|
|
639
644
|
// @public (undocumented)
|
|
640
645
|
interface Presence {
|
|
@@ -828,7 +833,7 @@ export interface ResolvingMentionProvider extends MentionProvider {
|
|
|
828
833
|
// (undocumented)
|
|
829
834
|
resolveMentionName(
|
|
830
835
|
id: string,
|
|
831
|
-
):
|
|
836
|
+
): MentionNameDetails | Promise<MentionNameDetails>;
|
|
832
837
|
// (undocumented)
|
|
833
838
|
supportsMentionNameResolving(): boolean;
|
|
834
839
|
}
|
|
@@ -1079,7 +1084,7 @@ export enum UserAccessLevel {
|
|
|
1079
1084
|
}
|
|
1080
1085
|
|
|
1081
1086
|
// @public (undocumented)
|
|
1082
|
-
export type UserRole = 'admin' | '
|
|
1087
|
+
export type UserRole = 'admin' | 'basic' | 'trusted';
|
|
1083
1088
|
|
|
1084
1089
|
// @public (undocumented)
|
|
1085
1090
|
export enum UserType {
|
|
@@ -1097,3 +1102,5 @@ export enum UserType {
|
|
|
1097
1102
|
|
|
1098
1103
|
// (No @packageDocumentation comment for this package)
|
|
1099
1104
|
```
|
|
1105
|
+
|
|
1106
|
+
<!--SECTION END: Main Entry Types-->
|