@atlaskit/mention 21.0.4 → 21.0.7
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 +18 -0
- package/_constants/package.json +1 -0
- package/dist/cjs/api/MentionResource.js +2 -2
- package/dist/cjs/api/TeamMentionResource.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/api/MentionResource.js +2 -1
- package/dist/esm/api/TeamMentionResource.js +2 -1
- package/dist/esm/i18n.js +1 -1
- package/dist/esm/util/i18n.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/MentionDescriptionByline/styles.d.ts +1 -1
- package/dist/types/components/MentionItem/styles.d.ts +8 -8
- package/dist/types/components/MentionList/styles.d.ts +1 -1
- package/dist/types/components/MentionListError/styles.d.ts +4 -4
- package/dist/types/components/MentionPicker/styles.d.ts +2 -2
- package/dist/types/components/Scrollable/styles.d.ts +1 -1
- package/dist/types/components/TeamMentionHighlight/styles.d.ts +10 -8
- package/element/package.json +1 -0
- package/i18n/package.json +1 -0
- package/item/package.json +1 -0
- package/package.json +8 -8
- package/report.api.md +908 -0
- package/resource/package.json +1 -0
- package/shared-styles/package.json +1 -0
- package/spotlight/package.json +1 -0
- package/team-resource/package.json +1 -0
- package/typeahead/package.json +1 -0
- package/types/package.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 21.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
8
|
+
|
|
9
|
+
## 21.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 21.0.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 21.0.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/_constants/package.json
CHANGED
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.isResolvingMentionProvider = exports.default = exports.MentionResource = exports.HttpError = exports.AbstractResource = exports.AbstractMentionResource = void 0;
|
|
9
9
|
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
|
|
12
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
11
|
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
15
|
|
|
16
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
-
|
|
12
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
11
|
|
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
+
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
15
|
|
|
16
16
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/i18n.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlassian/tangerine/export/no-export-all
|
|
1
|
+
// eslint-disable-next-line @atlassian/tangerine/export/no-export-all, import/no-self-import
|
|
2
2
|
export * from './i18n';
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -11,6 +10,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11
10
|
|
|
12
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
12
|
|
|
13
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
14
|
+
|
|
14
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
16
|
|
|
16
17
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
5
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
@@ -14,6 +13,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
14
13
|
|
|
15
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
15
|
|
|
16
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
17
|
+
|
|
17
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
19
|
|
|
19
20
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
package/dist/esm/i18n.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlassian/tangerine/export/no-export-all
|
|
1
|
+
// eslint-disable-next-line @atlassian/tangerine/export/no-export-all, import/no-self-import
|
|
2
2
|
export * from './i18n';
|
package/dist/esm/util/i18n.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
6
6
|
import { messages } from '../components/i18n';
|
package/dist/esm/version.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const DescriptionBylineStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
2
|
+
export declare const DescriptionBylineStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
@@ -11,12 +11,12 @@ export interface NameSectionStyleProps {
|
|
|
11
11
|
export interface InfoSectionStyleProps {
|
|
12
12
|
restricted?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const RowStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
15
|
-
export declare const AvatarStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, AvatarSectionStyleProps,
|
|
16
|
-
export declare const NameSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, NameSectionStyleProps,
|
|
17
|
-
export declare const FullNameStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
|
|
18
|
-
export declare const InfoSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InfoSectionStyleProps,
|
|
19
|
-
export declare const TimeStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
14
|
+
export declare const RowStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
15
|
+
export declare const AvatarStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, AvatarSectionStyleProps, object>;
|
|
16
|
+
export declare const NameSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, NameSectionStyleProps, object>;
|
|
17
|
+
export declare const FullNameStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
18
|
+
export declare const InfoSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InfoSectionStyleProps, object>;
|
|
19
|
+
export declare const TimeStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
20
20
|
export declare const MENTION_ITEM_HEIGHT = 48;
|
|
21
|
-
export declare const MentionItemStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionItemStyleProps,
|
|
22
|
-
export declare const AccessSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
21
|
+
export declare const MentionItemStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionItemStyleProps, object>;
|
|
22
|
+
export declare const AccessSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
export interface MentionListStyleProps {
|
|
3
3
|
empty?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const MentionListStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionListStyleProps,
|
|
5
|
+
export declare const MentionListStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionListStyleProps, object>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const MentionListErrorStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
3
|
-
export declare const GenericErrorVisualStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
4
|
-
export declare const MentionListErrorHeadlineStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
5
|
-
export declare const MentionListAdviceStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
2
|
+
export declare const MentionListErrorStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const GenericErrorVisualStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
4
|
+
export declare const MentionListErrorHeadlineStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
5
|
+
export declare const MentionListAdviceStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
export interface MentionPickerStyleProps {
|
|
3
3
|
visible?: boolean | string;
|
|
4
4
|
}
|
|
5
|
-
export declare const MentionPickerStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionPickerStyleProps,
|
|
6
|
-
export declare const MentionPickerInfoStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
5
|
+
export declare const MentionPickerStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionPickerStyleProps, object>;
|
|
6
|
+
export declare const MentionPickerInfoStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ScrollableStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
2
|
+
export declare const ScrollableStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Actions: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
3
|
-
export declare const Title: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
2
|
+
export declare const Actions: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const Title: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("@emotion/styled-base/types/helper").Overwrapped<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("@atlaskit/theme").ThemeProps | undefined>, never>, {
|
|
4
|
+
__ATLASKIT_THEME__: import("@atlaskit/theme").Theme;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const Heading: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
7
|
+
export declare const Card: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
8
|
+
export declare const Content: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
9
|
+
export declare const Section: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
10
|
+
export declare const Aside: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
11
|
+
export declare const Body: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
package/element/package.json
CHANGED
package/i18n/package.json
CHANGED
package/item/package.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.7",
|
|
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/"
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-gas-types": "^5.0.0",
|
|
30
30
|
"@atlaskit/analytics-next": "^8.0.0",
|
|
31
|
-
"@atlaskit/avatar": "^
|
|
31
|
+
"@atlaskit/avatar": "^21.0.0",
|
|
32
32
|
"@atlaskit/button": "^16.3.0",
|
|
33
33
|
"@atlaskit/focus-ring": "^1.0.0",
|
|
34
34
|
"@atlaskit/icon": "^21.10.0",
|
|
35
35
|
"@atlaskit/lozenge": "^11.0.0",
|
|
36
36
|
"@atlaskit/theme": "^12.1.0",
|
|
37
|
-
"@atlaskit/tokens": "^0.
|
|
37
|
+
"@atlaskit/tokens": "^0.10.0",
|
|
38
38
|
"@atlaskit/tooltip": "^17.5.0",
|
|
39
39
|
"@atlaskit/ufo": "^0.1.0",
|
|
40
40
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@atlaskit/adf-utils": "^
|
|
53
|
+
"@atlaskit/adf-utils": "^17.1.0",
|
|
54
54
|
"@atlaskit/docs": "^9.0.0",
|
|
55
|
-
"@atlaskit/editor-core": "^
|
|
56
|
-
"@atlaskit/editor-test-helpers": "^17.
|
|
55
|
+
"@atlaskit/editor-core": "^172.0.0",
|
|
56
|
+
"@atlaskit/editor-test-helpers": "^17.1.0",
|
|
57
57
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
58
58
|
"@atlaskit/section-message": "^6.0.0",
|
|
59
59
|
"@atlaskit/ssr": "*",
|
|
60
|
-
"@atlaskit/util-data-test": "^17.
|
|
60
|
+
"@atlaskit/util-data-test": "^17.5.0",
|
|
61
61
|
"@atlaskit/visual-regression": "*",
|
|
62
62
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
63
63
|
"@types/query-string": "^4.3.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-dom": "^16.8.0",
|
|
73
73
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
74
74
|
"serialize-javascript": "^5.0.1",
|
|
75
|
-
"typescript": "4.
|
|
75
|
+
"typescript": "4.3.5"
|
|
76
76
|
},
|
|
77
77
|
"keywords": [
|
|
78
78
|
"ui",
|
package/report.api.md
ADDED
|
@@ -0,0 +1,908 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/mention"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { IntlShape } from 'react-intl-next';
|
|
7
|
+
import { default as React_2 } from 'react';
|
|
8
|
+
import { RefObject } from 'react';
|
|
9
|
+
import { ServiceConfig } from '@atlaskit/util-service-support/types';
|
|
10
|
+
import { SyntheticEvent } from 'react';
|
|
11
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
12
|
+
import { WithAnalyticsEventsProps as WithAnalyticsEventsProps_2 } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
13
|
+
import { WithIntlProps } from 'react-intl-next';
|
|
14
|
+
|
|
15
|
+
export declare class AbstractMentionResource
|
|
16
|
+
extends AbstractResource<MentionDescription[]>
|
|
17
|
+
implements MentionProvider {
|
|
18
|
+
shouldHighlightMention(_mention: MentionDescription): boolean;
|
|
19
|
+
filter(query?: string): void;
|
|
20
|
+
recordMentionSelection(_mention: MentionDescription): void;
|
|
21
|
+
isFiltering(_query: string): boolean;
|
|
22
|
+
protected _notifyListeners(
|
|
23
|
+
mentionsResult: MentionsResult,
|
|
24
|
+
stats?: MentionStats,
|
|
25
|
+
): void;
|
|
26
|
+
protected _notifyAllResultsListeners(mentionsResult: MentionsResult): void;
|
|
27
|
+
protected _notifyErrorListeners(error: Error, query?: string): void;
|
|
28
|
+
protected _notifyInfoListeners(info: string): void;
|
|
29
|
+
protected _notifyAnalyticsListeners(
|
|
30
|
+
event: string,
|
|
31
|
+
actionSubject: string,
|
|
32
|
+
action: string,
|
|
33
|
+
attributes?: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
},
|
|
36
|
+
): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare class AbstractPresenceResource
|
|
40
|
+
extends AbstractResource<PresenceMap>
|
|
41
|
+
implements PresenceProvider {
|
|
42
|
+
refreshPresence(userIds: string[]): void;
|
|
43
|
+
protected notifyListeners(presences: PresenceMap): void;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class AbstractResource<Result> implements ResourceProvider<Result> {
|
|
47
|
+
protected changeListeners: Map<string, ResultCallback<Result>>;
|
|
48
|
+
protected errListeners: Map<string, ErrorCallback_2>;
|
|
49
|
+
protected infoListeners: Map<string, InfoCallback>;
|
|
50
|
+
protected allResultsListeners: Map<string, ResultCallback<Result>>;
|
|
51
|
+
protected analyticsListeners: Map<string, AnalyticsCallback>;
|
|
52
|
+
constructor();
|
|
53
|
+
subscribe(
|
|
54
|
+
key: string,
|
|
55
|
+
callback?: ResultCallback<Result>,
|
|
56
|
+
errCallback?: ErrorCallback_2,
|
|
57
|
+
infoCallback?: InfoCallback,
|
|
58
|
+
allResultsCallback?: ResultCallback<Result>,
|
|
59
|
+
analyticsListeners?: AnalyticsCallback,
|
|
60
|
+
): void;
|
|
61
|
+
unsubscribe(key: string): void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare interface AnalyticsCallback {
|
|
65
|
+
(
|
|
66
|
+
event: string,
|
|
67
|
+
actionSubject: string,
|
|
68
|
+
action: string,
|
|
69
|
+
attributes?: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
},
|
|
72
|
+
): void;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* This component is stateful and should be instantianted per contextIdentifiers.
|
|
77
|
+
*/
|
|
78
|
+
export declare class ContextMentionResource implements MentionProvider {
|
|
79
|
+
private mentionProvider;
|
|
80
|
+
private contextIdentifier;
|
|
81
|
+
constructor(
|
|
82
|
+
mentionProvider: MentionProvider,
|
|
83
|
+
contextIdentifier: MentionContextIdentifier,
|
|
84
|
+
);
|
|
85
|
+
getContextIdentifier(): MentionContextIdentifier | undefined;
|
|
86
|
+
callWithContextIds: <
|
|
87
|
+
K extends
|
|
88
|
+
| 'filter'
|
|
89
|
+
| 'recordMentionSelection'
|
|
90
|
+
| 'shouldHighlightMention'
|
|
91
|
+
| 'isFiltering'
|
|
92
|
+
| 'subscribe'
|
|
93
|
+
| 'unsubscribe'
|
|
94
|
+
>(
|
|
95
|
+
f: K,
|
|
96
|
+
declaredArgs: number,
|
|
97
|
+
) => MentionProvider[K];
|
|
98
|
+
callDefault: <
|
|
99
|
+
K extends
|
|
100
|
+
| 'filter'
|
|
101
|
+
| 'recordMentionSelection'
|
|
102
|
+
| 'shouldHighlightMention'
|
|
103
|
+
| 'isFiltering'
|
|
104
|
+
| 'subscribe'
|
|
105
|
+
| 'unsubscribe'
|
|
106
|
+
>(
|
|
107
|
+
f: K,
|
|
108
|
+
) => MentionProvider[K];
|
|
109
|
+
subscribe: (
|
|
110
|
+
key: string,
|
|
111
|
+
callback?: ResultCallback<MentionDescription[]> | undefined,
|
|
112
|
+
errCallback?: ErrorCallback_2 | undefined,
|
|
113
|
+
infoCallback?: InfoCallback | undefined,
|
|
114
|
+
allResultsCallback?: ResultCallback<MentionDescription[]> | undefined,
|
|
115
|
+
analyticsCallback?: AnalyticsCallback | undefined,
|
|
116
|
+
) => void;
|
|
117
|
+
unsubscribe: (key: string) => void;
|
|
118
|
+
filter: (
|
|
119
|
+
query?: string | undefined,
|
|
120
|
+
contextIdentifier?: MentionContextIdentifier | undefined,
|
|
121
|
+
) => void;
|
|
122
|
+
recordMentionSelection: (
|
|
123
|
+
mention: MentionDescription,
|
|
124
|
+
contextIdentifier?: MentionContextIdentifier | undefined,
|
|
125
|
+
) => void;
|
|
126
|
+
shouldHighlightMention: (mention: MentionDescription) => boolean;
|
|
127
|
+
isFiltering: (query: string) => boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare interface Data {
|
|
131
|
+
PresenceBulk: PresenceBulk[];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare class DefaultMentionNameResolver implements MentionNameResolver {
|
|
135
|
+
static waitForBatch: number;
|
|
136
|
+
private client;
|
|
137
|
+
private nameCache;
|
|
138
|
+
private nameQueue;
|
|
139
|
+
private nameStartTime;
|
|
140
|
+
private processingQueue;
|
|
141
|
+
private debounce;
|
|
142
|
+
private fireHydrationEvent;
|
|
143
|
+
constructor(
|
|
144
|
+
client: MentionNameClient,
|
|
145
|
+
analyticsProps?: WithAnalyticsEventsProps,
|
|
146
|
+
);
|
|
147
|
+
lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
148
|
+
cacheName(id: string, name: string): void;
|
|
149
|
+
private scheduleProcessQueue;
|
|
150
|
+
private isQueueAtLimit;
|
|
151
|
+
private splitQueueAtLimit;
|
|
152
|
+
private resolveQueueItem;
|
|
153
|
+
private processQueue;
|
|
154
|
+
private fireAnalytics;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export declare const ELEMENTS_CHANNEL = 'fabric-elements';
|
|
158
|
+
|
|
159
|
+
declare interface ErrorCallback_2 {
|
|
160
|
+
(error: Error, query?: string): void;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
declare interface Highlight {
|
|
164
|
+
name: HighlightDetail[];
|
|
165
|
+
mentionName: HighlightDetail[];
|
|
166
|
+
nickname: HighlightDetail[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare interface HighlightDetail {
|
|
170
|
+
start: number;
|
|
171
|
+
end: number;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare interface InfoCallback {
|
|
175
|
+
(info: string): void;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export declare type InviteExperimentCohort =
|
|
179
|
+
| 'variation'
|
|
180
|
+
| 'control'
|
|
181
|
+
| 'not-enrolled';
|
|
182
|
+
|
|
183
|
+
export declare type InviteFlow = 'mention' | 'assign';
|
|
184
|
+
|
|
185
|
+
declare interface InviteFromMentionProvider {
|
|
186
|
+
productName?: string;
|
|
187
|
+
shouldEnableInvite?: boolean;
|
|
188
|
+
inviteExperimentCohort?: InviteExperimentCohort;
|
|
189
|
+
onInviteItemClick?(flow: InviteFlow): void;
|
|
190
|
+
userRole?: UserRole;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export declare const isResolvingMentionProvider: (
|
|
194
|
+
p: any,
|
|
195
|
+
) => p is ResolvingMentionProvider;
|
|
196
|
+
|
|
197
|
+
export declare function isSpecialMention(mention: MentionDescription): boolean;
|
|
198
|
+
|
|
199
|
+
declare type LozengeColor =
|
|
200
|
+
| 'default'
|
|
201
|
+
| 'success'
|
|
202
|
+
| 'removed'
|
|
203
|
+
| 'inprogress'
|
|
204
|
+
| 'new'
|
|
205
|
+
| 'moved';
|
|
206
|
+
|
|
207
|
+
declare interface LozengeProps {
|
|
208
|
+
text: React.ReactNode;
|
|
209
|
+
appearance?: LozengeColor;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export declare const Mention: React_2.ForwardRefExoticComponent<
|
|
213
|
+
Omit<Props_5, keyof WithAnalyticsEventsProps_2> & React_2.RefAttributes<any>
|
|
214
|
+
>;
|
|
215
|
+
|
|
216
|
+
export declare type Mention = MentionInternal;
|
|
217
|
+
|
|
218
|
+
export declare type MentionContextIdentifier = {
|
|
219
|
+
containerId?: string;
|
|
220
|
+
objectId?: string;
|
|
221
|
+
childObjectId?: string;
|
|
222
|
+
sessionId?: string;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
declare interface MentionDescContext {
|
|
226
|
+
members: TeamMember[];
|
|
227
|
+
includesYou: boolean;
|
|
228
|
+
memberCount: number;
|
|
229
|
+
teamLink: string;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export declare interface MentionDescription {
|
|
233
|
+
id: string;
|
|
234
|
+
avatarUrl?: string;
|
|
235
|
+
name?: string;
|
|
236
|
+
mentionName?: string;
|
|
237
|
+
nickname?: string;
|
|
238
|
+
highlight?: Highlight;
|
|
239
|
+
lozenge?: string | LozengeProps;
|
|
240
|
+
presence?: Presence;
|
|
241
|
+
accessLevel?: string;
|
|
242
|
+
inContext?: boolean;
|
|
243
|
+
userType?: string;
|
|
244
|
+
context?: MentionDescContext;
|
|
245
|
+
source?: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare type MentionEventHandler = (
|
|
249
|
+
mentionId: string,
|
|
250
|
+
text: string,
|
|
251
|
+
event?: SyntheticEvent<HTMLSpanElement>,
|
|
252
|
+
) => void;
|
|
253
|
+
|
|
254
|
+
declare class MentionInternal extends React_2.PureComponent<Props_5, {}> {
|
|
255
|
+
private hoverTimeout?;
|
|
256
|
+
constructor(props: Props_5);
|
|
257
|
+
componentDidMount(): void;
|
|
258
|
+
private handleOnClick;
|
|
259
|
+
private handleOnMouseEnter;
|
|
260
|
+
private handleOnMouseLeave;
|
|
261
|
+
private getMentionType;
|
|
262
|
+
componentWillUnmount(): void;
|
|
263
|
+
renderUnknownUserError(id: string): JSX.Element;
|
|
264
|
+
render(): JSX.Element;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export declare class MentionItem extends React_2.PureComponent<Props, {}> {
|
|
268
|
+
private onMentionSelected;
|
|
269
|
+
private onMentionMenuItemMouseMove;
|
|
270
|
+
private onMentionMenuItemMouseEnter;
|
|
271
|
+
render(): JSX.Element;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export declare class MentionList extends React_2.PureComponent<Props_2, State> {
|
|
275
|
+
private lastMousePosition;
|
|
276
|
+
private scrollable?;
|
|
277
|
+
private items;
|
|
278
|
+
constructor(props: Props_2);
|
|
279
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_2): void;
|
|
280
|
+
componentDidUpdate(): void;
|
|
281
|
+
selectNext: () => void;
|
|
282
|
+
selectPrevious: () => void;
|
|
283
|
+
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
284
|
+
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
285
|
+
chooseCurrentSelection: () => void;
|
|
286
|
+
mentionsCount: () => number;
|
|
287
|
+
private revealItem;
|
|
288
|
+
/**
|
|
289
|
+
* The default selection state is to chose index 0 and not have any particular key selected
|
|
290
|
+
*/
|
|
291
|
+
private setDefaultSelectionState;
|
|
292
|
+
private selectIndexOnHover;
|
|
293
|
+
private itemSelected;
|
|
294
|
+
private renderItems;
|
|
295
|
+
private isSelectedMention;
|
|
296
|
+
private handleScrollableRef;
|
|
297
|
+
render(): JSX.Element;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export declare interface MentionNameClient {
|
|
301
|
+
getLookupLimit(): number;
|
|
302
|
+
lookupMentionNames(ids: string[]): Promise<MentionNameDetails[]>;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export declare interface MentionNameDetails {
|
|
306
|
+
id: string;
|
|
307
|
+
name?: string;
|
|
308
|
+
status: MentionNameStatus;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export declare interface MentionNameResolver {
|
|
312
|
+
lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
313
|
+
cacheName(id: string, name: string): void;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export declare enum MentionNameStatus {
|
|
317
|
+
UNKNOWN = 0,
|
|
318
|
+
SERVICE_ERROR = 1,
|
|
319
|
+
OK = 2,
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @class MentionPicker
|
|
324
|
+
*/
|
|
325
|
+
declare class MentionPicker_2 extends React_2.PureComponent<
|
|
326
|
+
Props_4 &
|
|
327
|
+
WithAnalyticsEventsProps_2 & {
|
|
328
|
+
intl: IntlShape;
|
|
329
|
+
},
|
|
330
|
+
State_3
|
|
331
|
+
> {
|
|
332
|
+
private subscriberKey;
|
|
333
|
+
private mentionListRef?;
|
|
334
|
+
static defaultProps: {
|
|
335
|
+
onSelection: () => void;
|
|
336
|
+
onOpen: () => void;
|
|
337
|
+
onClose: () => void;
|
|
338
|
+
};
|
|
339
|
+
constructor(
|
|
340
|
+
props: Props_4 &
|
|
341
|
+
WithAnalyticsEventsProps_2 & {
|
|
342
|
+
intl: IntlShape;
|
|
343
|
+
},
|
|
344
|
+
);
|
|
345
|
+
componentDidMount(): void;
|
|
346
|
+
UNSAFE_componentWillReceiveProps(
|
|
347
|
+
nextProps: Props_4 & WithAnalyticsEventsProps_2,
|
|
348
|
+
): void;
|
|
349
|
+
componentWillUnmount(): void;
|
|
350
|
+
selectNext: () => void;
|
|
351
|
+
selectPrevious: () => void;
|
|
352
|
+
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
353
|
+
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
354
|
+
chooseCurrentSelection: () => void;
|
|
355
|
+
mentionsCount: () => number;
|
|
356
|
+
private applyPropChanges;
|
|
357
|
+
private subscribeResourceProvider;
|
|
358
|
+
private unsubscribeResourceProvider;
|
|
359
|
+
/**
|
|
360
|
+
* Called after the 'visible' state is changed to decide whether the onOpen or onClose
|
|
361
|
+
* handlers should be called.
|
|
362
|
+
*
|
|
363
|
+
* It should be noted that the visible state of the component is not considered in
|
|
364
|
+
* this function. Instead the old state and new state should be passed as parameters.
|
|
365
|
+
*/
|
|
366
|
+
private onFilterVisibilityChange;
|
|
367
|
+
private filterChange;
|
|
368
|
+
private filterError;
|
|
369
|
+
private filterInfo;
|
|
370
|
+
private handleMentionListRef;
|
|
371
|
+
render(): JSX.Element;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
declare const MentionPickerWithAnalytics: React_2.ForwardRefExoticComponent<
|
|
375
|
+
Omit<
|
|
376
|
+
Pick<
|
|
377
|
+
WithIntlProps<
|
|
378
|
+
React_2.PropsWithChildren<
|
|
379
|
+
Props_4 &
|
|
380
|
+
WithAnalyticsEventsProps_2 & {
|
|
381
|
+
intl: IntlShape;
|
|
382
|
+
}
|
|
383
|
+
>
|
|
384
|
+
>,
|
|
385
|
+
'children' | 'createAnalyticsEvent' | keyof Props_4 | 'forwardedRef'
|
|
386
|
+
> &
|
|
387
|
+
React_2.RefAttributes<any>,
|
|
388
|
+
keyof WithAnalyticsEventsProps_2
|
|
389
|
+
> &
|
|
390
|
+
React_2.RefAttributes<any>
|
|
391
|
+
>;
|
|
392
|
+
|
|
393
|
+
declare type MentionPickerWithAnalytics = MentionPicker_2;
|
|
394
|
+
export { MentionPickerWithAnalytics as MentionPicker };
|
|
395
|
+
export default MentionPickerWithAnalytics;
|
|
396
|
+
|
|
397
|
+
export declare interface MentionProvider
|
|
398
|
+
extends ResourceProvider<MentionDescription[]>,
|
|
399
|
+
InviteFromMentionProvider {
|
|
400
|
+
filter(query?: string, contextIdentifier?: MentionContextIdentifier): void;
|
|
401
|
+
recordMentionSelection(
|
|
402
|
+
mention: MentionDescription,
|
|
403
|
+
contextIdentifier?: MentionContextIdentifier,
|
|
404
|
+
): void;
|
|
405
|
+
shouldHighlightMention(mention: MentionDescription): boolean;
|
|
406
|
+
isFiltering(query: string): boolean;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Provides a Javascript API
|
|
411
|
+
*/
|
|
412
|
+
export declare class MentionResource
|
|
413
|
+
extends AbstractMentionResource
|
|
414
|
+
implements ResolvingMentionProvider {
|
|
415
|
+
private config;
|
|
416
|
+
private lastReturnedSearch;
|
|
417
|
+
private activeSearches;
|
|
418
|
+
productName?: string;
|
|
419
|
+
shouldEnableInvite: boolean;
|
|
420
|
+
inviteExperimentCohort?: InviteExperimentCohort;
|
|
421
|
+
userRole: UserRole;
|
|
422
|
+
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
423
|
+
constructor(config: MentionResourceConfig);
|
|
424
|
+
shouldHighlightMention(mention: MentionDescription): boolean;
|
|
425
|
+
notify(
|
|
426
|
+
searchTime: number,
|
|
427
|
+
mentionResult: MentionsResult,
|
|
428
|
+
query?: string,
|
|
429
|
+
): void;
|
|
430
|
+
notifyError(error: Error, query?: string): void;
|
|
431
|
+
filter(
|
|
432
|
+
query?: string,
|
|
433
|
+
contextIdentifier?: MentionContextIdentifier,
|
|
434
|
+
): Promise<void>;
|
|
435
|
+
recordMentionSelection(
|
|
436
|
+
mention: MentionDescription,
|
|
437
|
+
contextIdentifier?: MentionContextIdentifier,
|
|
438
|
+
): Promise<void>;
|
|
439
|
+
isFiltering(query: string): boolean;
|
|
440
|
+
resolveMentionName(
|
|
441
|
+
id: string,
|
|
442
|
+
): Promise<MentionNameDetails> | MentionNameDetails;
|
|
443
|
+
cacheMentionName(id: string, mentionName: string): void;
|
|
444
|
+
supportsMentionNameResolving(): boolean;
|
|
445
|
+
protected updateActiveSearches(query: string): void;
|
|
446
|
+
protected verifyMentionConfig(config: MentionResourceConfig): void;
|
|
447
|
+
private initialState;
|
|
448
|
+
/**
|
|
449
|
+
* Clear a context object to generate query params by removing empty
|
|
450
|
+
* strings, `undefined` and empty values.
|
|
451
|
+
*
|
|
452
|
+
* @param contextIdentifier the current context identifier
|
|
453
|
+
* @returns a safe context for query encoding
|
|
454
|
+
*/
|
|
455
|
+
private clearContext;
|
|
456
|
+
private getQueryParams;
|
|
457
|
+
/**
|
|
458
|
+
* Returns the initial mention display list before a search is performed for the specified
|
|
459
|
+
* container.
|
|
460
|
+
*
|
|
461
|
+
* @param contextIdentifier
|
|
462
|
+
* @returns Promise
|
|
463
|
+
*/
|
|
464
|
+
protected remoteInitialState(
|
|
465
|
+
contextIdentifier?: MentionContextIdentifier,
|
|
466
|
+
): Promise<MentionsResult>;
|
|
467
|
+
private search;
|
|
468
|
+
protected remoteSearch(
|
|
469
|
+
query: string,
|
|
470
|
+
contextIdentifier?: MentionContextIdentifier,
|
|
471
|
+
): Promise<MentionsResult>;
|
|
472
|
+
private transformServiceResponse;
|
|
473
|
+
recordSelection(
|
|
474
|
+
mention: MentionDescription,
|
|
475
|
+
contextIdentifier?: MentionContextIdentifier,
|
|
476
|
+
): Promise<void>;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export declare interface MentionResourceConfig extends ServiceConfig {
|
|
480
|
+
containerId?: string;
|
|
481
|
+
productId?: string;
|
|
482
|
+
shouldHighlightMention?: (mention: MentionDescription) => boolean;
|
|
483
|
+
inviteExperimentCohort?: InviteExperimentCohort;
|
|
484
|
+
mentionNameResolver?: MentionNameResolver;
|
|
485
|
+
shouldEnableInvite?: boolean;
|
|
486
|
+
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
487
|
+
userRole?: UserRole;
|
|
488
|
+
productName?: string;
|
|
489
|
+
debounceTime?: number;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export declare interface MentionsResult {
|
|
493
|
+
mentions: MentionDescription[];
|
|
494
|
+
query: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export declare type MentionStats = {
|
|
498
|
+
[key: string]: any;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
declare interface OnClose {
|
|
502
|
+
(): void;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
declare interface OnMentionEvent {
|
|
506
|
+
(mention: MentionDescription, event?: SyntheticEvent<any>): void;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
declare interface OnOpen {
|
|
510
|
+
(): void;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
declare type OwnProps = {
|
|
514
|
+
id: string;
|
|
515
|
+
text: string;
|
|
516
|
+
isHighlighted?: boolean;
|
|
517
|
+
accessLevel?: string;
|
|
518
|
+
onClick?: MentionEventHandler;
|
|
519
|
+
onMouseEnter?: MentionEventHandler;
|
|
520
|
+
onMouseLeave?: MentionEventHandler;
|
|
521
|
+
onHover?: () => void;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
declare interface OwnProps_2 {
|
|
525
|
+
createTeamLink?: string;
|
|
526
|
+
/** Callback to track the event where user click on x icon */
|
|
527
|
+
onClose: () => void;
|
|
528
|
+
onCreateTeamLinkClick?: () => void;
|
|
529
|
+
onViewed?: () => void;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
declare type Position = 'above' | 'below' | 'auto';
|
|
533
|
+
|
|
534
|
+
declare interface Presence {
|
|
535
|
+
time?: string;
|
|
536
|
+
status?: string;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare interface PresenceBulk {
|
|
540
|
+
userId: string;
|
|
541
|
+
state: null | string;
|
|
542
|
+
type: null | string;
|
|
543
|
+
date: null | string;
|
|
544
|
+
message: null | string;
|
|
545
|
+
stateMetadata?: string;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare interface PresenceCache {
|
|
549
|
+
contains(userId: string): boolean;
|
|
550
|
+
get(userId: string): Presence;
|
|
551
|
+
getBulk(userIds: string[]): PresenceMap;
|
|
552
|
+
getMissingUserIds(userIds: string[]): string[];
|
|
553
|
+
update(presUpdate: PresenceMap): void;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
declare interface PresenceMap {
|
|
557
|
+
[userId: string]: Presence;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
declare interface PresenceParser {
|
|
561
|
+
mapState(state: string): string;
|
|
562
|
+
parse(response: PresenceResponse): PresenceMap;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export declare interface PresenceProvider
|
|
566
|
+
extends ResourceProvider<PresenceMap> {
|
|
567
|
+
refreshPresence(userIds: string[]): void;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export declare class PresenceResource extends AbstractPresenceResource {
|
|
571
|
+
private config;
|
|
572
|
+
private presenceCache;
|
|
573
|
+
private presenceParser;
|
|
574
|
+
constructor(config: PresenceResourceConfig);
|
|
575
|
+
refreshPresence(userIds: string[]): void;
|
|
576
|
+
private retrievePresence;
|
|
577
|
+
private queryDirectoryForPresences;
|
|
578
|
+
private static cleanUrl;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
declare interface PresenceResourceConfig {
|
|
582
|
+
url: string;
|
|
583
|
+
cloudId: string;
|
|
584
|
+
productId?: string;
|
|
585
|
+
cache?: PresenceCache;
|
|
586
|
+
cacheExpiry?: number;
|
|
587
|
+
parser?: PresenceParser;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
declare interface PresenceResponse {
|
|
591
|
+
data: Data;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
declare interface Props {
|
|
595
|
+
mention: MentionDescription;
|
|
596
|
+
selected?: boolean;
|
|
597
|
+
onMouseMove?: OnMentionEvent;
|
|
598
|
+
onMouseEnter?: OnMentionEvent;
|
|
599
|
+
onSelection?: OnMentionEvent;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
declare interface Props_2 {
|
|
603
|
+
mentions: MentionDescription[];
|
|
604
|
+
resourceError?: Error;
|
|
605
|
+
onSelection?: OnMentionEvent;
|
|
606
|
+
initialHighlightElement?: React_2.ReactElement | null;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
declare interface Props_3 {
|
|
610
|
+
resourceProvider: MentionProvider;
|
|
611
|
+
presenceProvider?: PresenceProvider;
|
|
612
|
+
query?: string;
|
|
613
|
+
onSelection?: OnMentionEvent;
|
|
614
|
+
resourceError?: Error;
|
|
615
|
+
isTeamMentionHighlightEnabled?: boolean;
|
|
616
|
+
createTeamPath?: string;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
declare interface Props_4 {
|
|
620
|
+
resourceProvider: MentionProvider;
|
|
621
|
+
presenceProvider?: PresenceProvider;
|
|
622
|
+
query?: string;
|
|
623
|
+
onSelection?: OnMentionEvent;
|
|
624
|
+
onOpen?: OnOpen;
|
|
625
|
+
onClose?: OnClose;
|
|
626
|
+
target?: string;
|
|
627
|
+
position?: Position;
|
|
628
|
+
zIndex?: number | string;
|
|
629
|
+
offsetX?: number;
|
|
630
|
+
offsetY?: number;
|
|
631
|
+
showTeamMentionsHighlight?: boolean;
|
|
632
|
+
createTeamPath?: string;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
declare type Props_5 = OwnProps & WithAnalyticsEventsProps_2;
|
|
636
|
+
|
|
637
|
+
declare interface Props_6 {
|
|
638
|
+
id: string;
|
|
639
|
+
text: string;
|
|
640
|
+
accessLevel?: string;
|
|
641
|
+
mentionProvider?: Promise<MentionProvider>;
|
|
642
|
+
onClick?: MentionEventHandler;
|
|
643
|
+
onMouseEnter?: MentionEventHandler;
|
|
644
|
+
onMouseLeave?: MentionEventHandler;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare type Props_7 = OwnProps_2 & WithAnalyticsEventsProps_2;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Support
|
|
651
|
+
*/
|
|
652
|
+
export declare interface ResolvingMentionProvider extends MentionProvider {
|
|
653
|
+
resolveMentionName(
|
|
654
|
+
id: string,
|
|
655
|
+
): Promise<MentionNameDetails> | MentionNameDetails;
|
|
656
|
+
cacheMentionName(id: string, mentionName: string): void;
|
|
657
|
+
supportsMentionNameResolving(): boolean;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export declare class ResourcedMention extends React_2.PureComponent<
|
|
661
|
+
Props_6,
|
|
662
|
+
State_4
|
|
663
|
+
> {
|
|
664
|
+
_isMounted: boolean;
|
|
665
|
+
constructor(props: Props_6);
|
|
666
|
+
componentDidMount(): void;
|
|
667
|
+
componentWillUnmount(): void;
|
|
668
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_6): void;
|
|
669
|
+
private setStateSafely;
|
|
670
|
+
private processName;
|
|
671
|
+
private handleMentionProvider;
|
|
672
|
+
render(): JSX.Element;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export declare const ResourcedMentionList: React_2.ForwardRefExoticComponent<
|
|
676
|
+
Omit<Props_3 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> &
|
|
677
|
+
React_2.RefAttributes<any>
|
|
678
|
+
>;
|
|
679
|
+
|
|
680
|
+
export declare type ResourcedMentionList = ResourcedMentionListWithoutAnalytics;
|
|
681
|
+
|
|
682
|
+
declare class ResourcedMentionListWithoutAnalytics extends React_2.PureComponent<
|
|
683
|
+
Props_3 & WithAnalyticsEventsProps,
|
|
684
|
+
State_2
|
|
685
|
+
> {
|
|
686
|
+
private subscriberKey;
|
|
687
|
+
private mentionListRef?;
|
|
688
|
+
constructor(props: Props_3 & WithAnalyticsEventsProps);
|
|
689
|
+
componentDidMount(): void;
|
|
690
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_3): void;
|
|
691
|
+
componentWillUnmount(): void;
|
|
692
|
+
selectNext: () => void;
|
|
693
|
+
selectPrevious: () => void;
|
|
694
|
+
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
695
|
+
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
696
|
+
chooseCurrentSelection: () => void;
|
|
697
|
+
mentionsCount: () => number;
|
|
698
|
+
private subscribeMentionProvider;
|
|
699
|
+
private subscribePresenceProvider;
|
|
700
|
+
private unsubscribeMentionProvider;
|
|
701
|
+
private unsubscribePresenceProvider;
|
|
702
|
+
private applyPropChanges;
|
|
703
|
+
private refreshPresences;
|
|
704
|
+
private filterChange;
|
|
705
|
+
private sendAnalytics;
|
|
706
|
+
private filterError;
|
|
707
|
+
private presenceUpdate;
|
|
708
|
+
private notifySelection;
|
|
709
|
+
private handleMentionListRef;
|
|
710
|
+
private closeHighlight;
|
|
711
|
+
private mentionsHighlight;
|
|
712
|
+
render(): JSX.Element;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare interface ResourceProvider<Result> {
|
|
716
|
+
/**
|
|
717
|
+
* Subscribe to ResourceProvider results
|
|
718
|
+
*
|
|
719
|
+
* @param {string} key subscriber key used to unsubscribe
|
|
720
|
+
* @param {ResultCallback<Result>} callback This callback only receives latest results
|
|
721
|
+
* @param {ErrorCallback} errCallback This callback will errors
|
|
722
|
+
* @param {InfoCallback} infoCallback This callback will info
|
|
723
|
+
* @param {ResultCallback<Result>} allResultsCallback This callback will receive all results
|
|
724
|
+
*/
|
|
725
|
+
subscribe(
|
|
726
|
+
key: string,
|
|
727
|
+
callback?: ResultCallback<Result>,
|
|
728
|
+
errCallback?: ErrorCallback_2,
|
|
729
|
+
infoCallback?: InfoCallback,
|
|
730
|
+
allResultsCallback?: ResultCallback<Result>,
|
|
731
|
+
analyticsCallback?: AnalyticsCallback,
|
|
732
|
+
): void;
|
|
733
|
+
/**
|
|
734
|
+
* Unsubscribe to this resource provider results
|
|
735
|
+
* @param {string} key key used when subscribing
|
|
736
|
+
*/
|
|
737
|
+
unsubscribe(key: string): void;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
declare interface ResultCallback<T> {
|
|
741
|
+
(result: T, query?: string, stats?: MentionStats): void;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
declare interface State {
|
|
745
|
+
selectedKey?: string;
|
|
746
|
+
selectedIndex: number;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
declare interface State_2 {
|
|
750
|
+
resourceError?: Error;
|
|
751
|
+
mentions: MentionDescription[];
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
declare interface State_3 {
|
|
755
|
+
visible: boolean;
|
|
756
|
+
info?: string;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
declare interface State_4 {
|
|
760
|
+
isHighlighted: boolean;
|
|
761
|
+
resolvedMentionName?: string;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
declare interface State_5 {
|
|
765
|
+
isHighlightHidden: boolean;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
export declare interface TeamMember {
|
|
769
|
+
id: string;
|
|
770
|
+
name: string;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
export declare const TeamMentionHighlight: React_2.ForwardRefExoticComponent<
|
|
774
|
+
Pick<
|
|
775
|
+
Omit<Props_7, keyof WithAnalyticsEventsProps_2>,
|
|
776
|
+
'onClose' | 'onCreateTeamLinkClick' | 'onViewed'
|
|
777
|
+
> &
|
|
778
|
+
Partial<
|
|
779
|
+
Pick<Omit<Props_7, keyof WithAnalyticsEventsProps_2>, 'createTeamLink'>
|
|
780
|
+
> &
|
|
781
|
+
Partial<
|
|
782
|
+
Pick<
|
|
783
|
+
{
|
|
784
|
+
createTeamLink: string;
|
|
785
|
+
},
|
|
786
|
+
never
|
|
787
|
+
>
|
|
788
|
+
> &
|
|
789
|
+
React_2.RefAttributes<any>
|
|
790
|
+
>;
|
|
791
|
+
|
|
792
|
+
export declare type TeamMentionHighlight = TeamMentionHighlightInternal;
|
|
793
|
+
|
|
794
|
+
export declare class TeamMentionHighlightController {
|
|
795
|
+
private static readFromLocalStorage;
|
|
796
|
+
private static saveToLocalStorage;
|
|
797
|
+
private static markAsDone;
|
|
798
|
+
static isHighlightEnabled: () => boolean;
|
|
799
|
+
static registerRender: () => TeamMentionState;
|
|
800
|
+
static getSeenCount: () => number;
|
|
801
|
+
static registerCreateLinkClick: () => void;
|
|
802
|
+
static registerTeamMention: () => void;
|
|
803
|
+
static registerClosed: () => void;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
declare class TeamMentionHighlightInternal extends React_2.Component<
|
|
807
|
+
Props_7,
|
|
808
|
+
State_5
|
|
809
|
+
> {
|
|
810
|
+
elWrapper: RefObject<HTMLDivElement>;
|
|
811
|
+
elCloseWrapper: RefObject<HTMLDivElement>;
|
|
812
|
+
elCreateTeamWrapper: RefObject<HTMLDivElement>;
|
|
813
|
+
static defaultProps: {
|
|
814
|
+
createTeamLink: string;
|
|
815
|
+
};
|
|
816
|
+
constructor(props: Props_7);
|
|
817
|
+
componentDidMount(): void;
|
|
818
|
+
componentWillUnmount(): void;
|
|
819
|
+
onCreateTeamLinkClick: () => void;
|
|
820
|
+
private preventClickOnCard;
|
|
821
|
+
private addEventHandler;
|
|
822
|
+
private removeEventHandler;
|
|
823
|
+
onCloseClick: () => void;
|
|
824
|
+
render(): JSX.Element | null;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
declare interface TeamMentionProvider extends MentionProvider {
|
|
828
|
+
mentionTypeaheadHighlightEnabled: () => boolean;
|
|
829
|
+
mentionTypeaheadCreateTeamPath: () => string | undefined;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Provides a Javascript API to fetch users and teams
|
|
834
|
+
* In future we will have a new endpoint to return both users and teams, we can
|
|
835
|
+
* remove this class at this point
|
|
836
|
+
*/
|
|
837
|
+
export declare class TeamMentionResource
|
|
838
|
+
extends MentionResource
|
|
839
|
+
implements TeamMentionProvider {
|
|
840
|
+
private readonly teamMentionConfig;
|
|
841
|
+
private lastSearchQuery?;
|
|
842
|
+
private lastReturnedSearchTeam;
|
|
843
|
+
constructor(
|
|
844
|
+
userMentionConfig: MentionResourceConfig,
|
|
845
|
+
teamMentionConfig: TeamMentionResourceConfig,
|
|
846
|
+
);
|
|
847
|
+
filter(
|
|
848
|
+
query?: string,
|
|
849
|
+
contextIdentifier?: MentionContextIdentifier,
|
|
850
|
+
): Promise<void>;
|
|
851
|
+
mentionTypeaheadHighlightEnabled: () => boolean;
|
|
852
|
+
mentionTypeaheadCreateTeamPath: () => string | undefined;
|
|
853
|
+
/**
|
|
854
|
+
* Returns the initial mention display list before a search is performed for the specified
|
|
855
|
+
* container.
|
|
856
|
+
*/
|
|
857
|
+
private remoteInitialStateTeamAndUsers;
|
|
858
|
+
/**
|
|
859
|
+
* Both user and team requests are not blocked together
|
|
860
|
+
* If users request arrives first, show users. Show teams when team request arrives.
|
|
861
|
+
* If team request arrives first, block waiting for user request, then show both
|
|
862
|
+
* If one errors, show the non-erroring one
|
|
863
|
+
* If both error, show error
|
|
864
|
+
*/
|
|
865
|
+
private handleBothRequests;
|
|
866
|
+
notify(
|
|
867
|
+
searchTime: number,
|
|
868
|
+
mentionResult: MentionsResult,
|
|
869
|
+
query?: string,
|
|
870
|
+
): void;
|
|
871
|
+
private getQueryParamsOfTeamMentionConfig;
|
|
872
|
+
private remoteUserSearch;
|
|
873
|
+
private remoteTeamSearch;
|
|
874
|
+
private convertTeamResultToMentionResult;
|
|
875
|
+
private trimTeamARI;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export declare interface TeamMentionResourceConfig
|
|
879
|
+
extends MentionResourceConfig {
|
|
880
|
+
teamLinkResolver?: (teamId: string) => string;
|
|
881
|
+
teamHighlightEnabled?: boolean;
|
|
882
|
+
createTeamPath?: string;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
declare interface TeamMentionState {
|
|
886
|
+
seenCount: number;
|
|
887
|
+
dontShow: boolean;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export declare enum UserAccessLevel {
|
|
891
|
+
NONE = 0,
|
|
892
|
+
SITE = 1,
|
|
893
|
+
APPLICATION = 2,
|
|
894
|
+
CONTAINER = 3,
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
export declare type UserRole = 'admin' | 'trusted' | 'basic';
|
|
898
|
+
|
|
899
|
+
export declare enum UserType {
|
|
900
|
+
DEFAULT = 0,
|
|
901
|
+
SPECIAL = 1,
|
|
902
|
+
APP = 2,
|
|
903
|
+
TEAM = 3,
|
|
904
|
+
SYSTEM = 4,
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export {};
|
|
908
|
+
```
|
package/resource/package.json
CHANGED
package/spotlight/package.json
CHANGED
package/typeahead/package.json
CHANGED