@atlaskit/mention 27.19.10 → 28.0.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 +14 -0
- package/dist/cjs/types.js +10 -3
- package/dist/cjs/util/package-version.js +1 -1
- package/dist/es2019/types.js +3 -2
- package/dist/es2019/util/package-version.js +1 -1
- package/dist/esm/types.js +3 -2
- package/dist/esm/util/package-version.js +1 -1
- package/dist/types/types.d.ts +4 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 28.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`c263d4de33054`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c263d4de33054) -
|
|
8
|
+
Render retryable agent mention load errors in the typeahead menu behind
|
|
9
|
+
`platform_editor_agent_mentions_rovo_query_timeout`.
|
|
10
|
+
|
|
11
|
+
## 27.19.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 27.19.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/types.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.UserType = exports.UserAccessLevel = exports.SliNames = exports.MentionType = exports.MentionNameStatus = exports.ComponentNames = exports.Actions = void 0;
|
|
6
|
+
exports.UserType = exports.UserAccessLevel = exports.SliNames = exports.MentionType = exports.MentionNameStatus = exports.ComponentNames = exports.Actions = exports.AGENT_MENTION_LOAD_ERROR_ID = void 0;
|
|
7
7
|
Object.defineProperty(exports, "isAgentMention", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
@@ -54,6 +54,7 @@ var _isTeamMention = require("./is-team-mention");
|
|
|
54
54
|
var _isSpecialMentionText = require("./is-special-mention-text");
|
|
55
55
|
var _isPromise = require("./is-promise");
|
|
56
56
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
57
|
+
|
|
57
58
|
/**
|
|
58
59
|
* Configuration for the MentionResource, which provides a JavaScript API
|
|
59
60
|
* for fetching and searching user mentions from a remote service.
|
|
@@ -61,15 +62,18 @@ var _isPromise = require("./is-promise");
|
|
|
61
62
|
* Extends {@link ServiceConfig} which provides the base `url`, `securityProvider`,
|
|
62
63
|
* and `refreshedSecurityProvider` fields.
|
|
63
64
|
*/
|
|
65
|
+
|
|
64
66
|
/**
|
|
65
67
|
* Describes whether a mention should be rendered in its disabled visual
|
|
66
68
|
* state and what tooltip (if any) should be shown on hover.
|
|
67
69
|
*/
|
|
70
|
+
|
|
68
71
|
/**
|
|
69
72
|
* The minimal input shape used by `getMentionDisabledState`. Kept as a named
|
|
70
73
|
* type so the config callback and the provider method share the same input
|
|
71
74
|
* surface, and so callers do not have to fabricate fields they do not have.
|
|
72
75
|
*/
|
|
76
|
+
|
|
73
77
|
/**
|
|
74
78
|
* Real-mention fields forbidden on a placeholder. Declaring them as `never`
|
|
75
79
|
* (rather than omitting them) keeps `mention.name` etc. readable on the
|
|
@@ -78,15 +82,18 @@ var _isPromise = require("./is-promise");
|
|
|
78
82
|
* combinations like `{ isPlaceholder: true, name: 'Real User' }` a compile
|
|
79
83
|
* error.
|
|
80
84
|
*/
|
|
85
|
+
|
|
81
86
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
87
|
+
* Placeholder surfaced in the mention list while a slower mention source
|
|
88
|
+
* (e.g. agents) resolves or fails. Its own member of the
|
|
84
89
|
* {@link MentionDescription} discriminated union (discriminated on
|
|
85
90
|
* `isPlaceholder`).
|
|
86
91
|
*
|
|
87
92
|
* `id` must be unique per placeholder — the typeahead keys rows by id — so
|
|
88
93
|
* multiple placeholders can be rendered at once.
|
|
89
94
|
*/
|
|
95
|
+
var AGENT_MENTION_LOAD_ERROR_ID = exports.AGENT_MENTION_LOAD_ERROR_ID = '__agent-mentions-load-error__';
|
|
96
|
+
|
|
90
97
|
// data is returned from team search service
|
|
91
98
|
var MentionType = exports.MentionType = /*#__PURE__*/function (MentionType) {
|
|
92
99
|
MentionType[MentionType["SELF"] = 0] = "SELF";
|
package/dist/es2019/types.js
CHANGED
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
32
|
+
* Placeholder surfaced in the mention list while a slower mention source
|
|
33
|
+
* (e.g. agents) resolves or fails. Its own member of the
|
|
34
34
|
* {@link MentionDescription} discriminated union (discriminated on
|
|
35
35
|
* `isPlaceholder`).
|
|
36
36
|
*
|
|
37
37
|
* `id` must be unique per placeholder — the typeahead keys rows by id — so
|
|
38
38
|
* multiple placeholders can be rendered at once.
|
|
39
39
|
*/
|
|
40
|
+
export const AGENT_MENTION_LOAD_ERROR_ID = '__agent-mentions-load-error__';
|
|
40
41
|
|
|
41
42
|
// data is returned from team search service
|
|
42
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "27.19.
|
|
1
|
+
export const packageVersion = "27.19.11";
|
package/dist/esm/types.js
CHANGED
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
32
|
+
* Placeholder surfaced in the mention list while a slower mention source
|
|
33
|
+
* (e.g. agents) resolves or fails. Its own member of the
|
|
34
34
|
* {@link MentionDescription} discriminated union (discriminated on
|
|
35
35
|
* `isPlaceholder`).
|
|
36
36
|
*
|
|
37
37
|
* `id` must be unique per placeholder — the typeahead keys rows by id — so
|
|
38
38
|
* multiple placeholders can be rendered at once.
|
|
39
39
|
*/
|
|
40
|
+
export var AGENT_MENTION_LOAD_ERROR_ID = '__agent-mentions-load-error__';
|
|
40
41
|
|
|
41
42
|
// data is returned from team search service
|
|
42
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var packageVersion = "27.19.
|
|
1
|
+
export var packageVersion = "27.19.11";
|
package/dist/types/types.d.ts
CHANGED
|
@@ -245,18 +245,20 @@ type RealMentionFieldsForbidden = {
|
|
|
245
245
|
[Field in Exclude<keyof RealMentionDescription, 'id' | 'isPlaceholder' | 'userType' | 'appType'>]?: never;
|
|
246
246
|
};
|
|
247
247
|
/**
|
|
248
|
-
*
|
|
249
|
-
*
|
|
248
|
+
* Placeholder surfaced in the mention list while a slower mention source
|
|
249
|
+
* (e.g. agents) resolves or fails. Its own member of the
|
|
250
250
|
* {@link MentionDescription} discriminated union (discriminated on
|
|
251
251
|
* `isPlaceholder`).
|
|
252
252
|
*
|
|
253
253
|
* `id` must be unique per placeholder — the typeahead keys rows by id — so
|
|
254
254
|
* multiple placeholders can be rendered at once.
|
|
255
255
|
*/
|
|
256
|
+
export declare const AGENT_MENTION_LOAD_ERROR_ID = "__agent-mentions-load-error__";
|
|
256
257
|
export type MentionPlaceholder = RealMentionFieldsForbidden & {
|
|
257
258
|
appType?: 'agent';
|
|
258
259
|
id: string;
|
|
259
260
|
isPlaceholder: true;
|
|
261
|
+
placeholderType: 'error' | 'loading';
|
|
260
262
|
userType?: 'APP';
|
|
261
263
|
};
|
|
262
264
|
export type MentionDescription = RealMentionDescription | MentionPlaceholder;
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/skeleton": "^4.4.0",
|
|
43
43
|
"@atlaskit/tag": "^15.8.0",
|
|
44
44
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^177.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^16.11.0",
|
|
47
47
|
"@atlaskit/tooltip": "^24.3.0",
|
|
48
48
|
"@atlaskit/ufo": "^1.2.0",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"*.compiled.css"
|
|
121
121
|
],
|
|
122
122
|
"types": "dist/types/index.d.ts",
|
|
123
|
-
"version": "
|
|
123
|
+
"version": "28.0.0"
|
|
124
124
|
}
|