@atlaskit/mention 19.9.6 → 20.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 +18 -0
- package/dist/cjs/api/MentionResource.js +4 -6
- package/dist/cjs/api/SmartMentionResource.js +2 -2
- package/dist/cjs/api/TeamMentionResource.js +2 -2
- package/dist/cjs/components/LockCircleIcon/index.js +28 -0
- package/dist/cjs/components/Mention/PrimitiveMention.js +118 -0
- package/dist/cjs/components/Mention/index.js +19 -16
- package/dist/cjs/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +5 -5
- package/dist/cjs/components/MentionDescriptionByline/styles.js +4 -2
- package/dist/cjs/components/MentionItem/index.js +14 -8
- package/dist/cjs/components/MentionItem/styles.js +12 -10
- package/dist/cjs/components/MentionList/index.js +4 -2
- package/dist/cjs/components/MentionList/styles.js +5 -3
- package/dist/cjs/components/MentionListError/styles.js +7 -5
- package/dist/cjs/components/MentionPicker/index.js +12 -4
- package/dist/cjs/components/MentionPicker/styles.js +5 -3
- package/dist/cjs/components/MessagesIntlProvider/index.js +57 -0
- package/dist/cjs/components/NoAccessTooltip/index.js +29 -0
- package/dist/cjs/components/{NoAccessTooltip.js → NoAccessTooltip/main.js} +4 -2
- package/dist/cjs/components/ResourcedMentionList/index.js +14 -6
- package/dist/cjs/components/Scrollable/index.js +1 -1
- package/dist/cjs/components/Scrollable/styles.js +4 -2
- package/dist/cjs/components/TeamMentionHighlight/index.js +6 -4
- package/dist/cjs/components/TeamMentionHighlight/lazy.js +28 -0
- package/dist/cjs/components/TeamMentionHighlight/styles.js +11 -9
- package/dist/cjs/components/i18n.js +2 -2
- package/dist/cjs/shared-styles.js +4 -2
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/cjs/util/i18n.js +297 -26
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/LockCircleIcon/index.js +7 -0
- package/dist/es2019/components/Mention/PrimitiveMention.js +117 -0
- package/dist/es2019/components/Mention/index.js +16 -13
- package/dist/es2019/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/es2019/components/MentionDescriptionByline/styles.js +3 -4
- package/dist/es2019/components/MentionItem/index.js +11 -7
- package/dist/es2019/components/MentionItem/styles.js +6 -7
- package/dist/es2019/components/MentionList/index.js +3 -2
- package/dist/es2019/components/MentionList/styles.js +3 -4
- package/dist/es2019/components/MentionListError/GenericErrorIllustration.js +1 -0
- package/dist/es2019/components/MentionListError/styles.js +5 -6
- package/dist/es2019/components/MentionPicker/index.js +11 -4
- package/dist/es2019/components/MentionPicker/styles.js +4 -5
- package/dist/es2019/components/MessagesIntlProvider/index.js +38 -0
- package/dist/es2019/components/NoAccessTooltip/index.js +9 -0
- package/dist/es2019/components/{NoAccessTooltip.js → NoAccessTooltip/main.js} +4 -2
- package/dist/es2019/components/ResourcedMentionList/index.js +6 -4
- package/dist/es2019/components/Scrollable/index.js +1 -1
- package/dist/es2019/components/Scrollable/styles.js +3 -4
- package/dist/es2019/components/TeamMentionHighlight/index.js +4 -3
- package/dist/es2019/components/TeamMentionHighlight/lazy.js +6 -0
- package/dist/es2019/components/TeamMentionHighlight/styles.js +3 -2
- package/dist/es2019/components/i18n.js +1 -1
- package/dist/es2019/shared-styles.js +3 -2
- package/dist/es2019/util/i18n.js +260 -18
- package/dist/es2019/version.json +1 -1
- package/dist/esm/api/MentionResource.js +4 -4
- package/dist/esm/api/SmartMentionResource.js +2 -2
- package/dist/esm/api/TeamMentionResource.js +2 -2
- package/dist/esm/components/LockCircleIcon/index.js +11 -0
- package/dist/esm/components/Mention/PrimitiveMention.js +100 -0
- package/dist/esm/components/Mention/index.js +17 -14
- package/dist/esm/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/styles.js +3 -4
- package/dist/esm/components/MentionItem/index.js +11 -7
- package/dist/esm/components/MentionItem/styles.js +6 -7
- package/dist/esm/components/MentionList/index.js +3 -2
- package/dist/esm/components/MentionList/styles.js +4 -5
- package/dist/esm/components/MentionListError/GenericErrorIllustration.js +1 -0
- package/dist/esm/components/MentionListError/styles.js +3 -4
- package/dist/esm/components/MentionPicker/index.js +11 -4
- package/dist/esm/components/MentionPicker/styles.js +3 -4
- package/dist/esm/components/MessagesIntlProvider/index.js +41 -0
- package/dist/esm/components/NoAccessTooltip/index.js +11 -0
- package/dist/esm/components/{NoAccessTooltip.js → NoAccessTooltip/main.js} +4 -2
- package/dist/esm/components/ResourcedMentionList/index.js +8 -6
- package/dist/esm/components/Scrollable/index.js +1 -1
- package/dist/esm/components/Scrollable/styles.js +3 -4
- package/dist/esm/components/TeamMentionHighlight/index.js +4 -3
- package/dist/esm/components/TeamMentionHighlight/lazy.js +10 -0
- package/dist/esm/components/TeamMentionHighlight/styles.js +3 -2
- package/dist/esm/components/i18n.js +1 -1
- package/dist/esm/shared-styles.js +3 -2
- package/dist/esm/util/analytics.js +2 -2
- package/dist/esm/util/i18n.js +284 -23
- package/dist/esm/version.json +1 -1
- package/dist/types/components/LockCircleIcon/index.d.ts +3 -0
- package/dist/types/components/Mention/PrimitiveMention.d.ts +7 -0
- package/dist/types/components/Mention/index.d.ts +1 -1
- package/dist/types/components/MentionDescriptionByline/styles.d.ts +2 -2
- package/dist/types/components/MentionItem/MentionHighlightHelpers.d.ts +2 -3
- package/dist/types/components/MentionItem/styles.d.ts +9 -9
- package/dist/types/components/MentionList/styles.d.ts +2 -2
- package/dist/types/components/MentionListError/styles.d.ts +5 -5
- package/dist/types/components/MentionPicker/index.d.ts +11 -8
- package/dist/types/components/MentionPicker/styles.d.ts +3 -3
- package/dist/types/components/MessagesIntlProvider/index.d.ts +3 -0
- package/dist/types/components/NoAccessTooltip/index.d.ts +6 -0
- package/dist/types/components/{NoAccessTooltip.d.ts → NoAccessTooltip/main.d.ts} +0 -0
- package/dist/types/components/Scrollable/styles.d.ts +2 -4
- package/dist/types/components/TeamMentionHighlight/index.d.ts +1 -1
- package/dist/types/components/TeamMentionHighlight/lazy.d.ts +4 -0
- package/dist/types/components/TeamMentionHighlight/styles.d.ts +8 -8
- package/dist/types/shared-styles.d.ts +2 -2
- package/dist/types/util/i18n.d.ts +32 -17
- package/package.json +22 -11
- package/dist/cjs/components/Mention/styles.js +0 -66
- package/dist/es2019/components/Mention/styles.js +0 -61
- package/dist/esm/components/Mention/styles.js +0 -50
- package/dist/types/components/Mention/styles.d.ts +0 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export var LazyTeamMentionHighlight = /*#__PURE__*/React.lazy(function () {
|
|
3
|
+
return import(
|
|
4
|
+
/* webpackChunkName: "@atlaskit-internal_@atlassian/mention/TeamMentionHighlight" */
|
|
5
|
+
'./').then(function (module) {
|
|
6
|
+
return {
|
|
7
|
+
default: module.default
|
|
8
|
+
};
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -2,14 +2,15 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
4
4
|
|
|
5
|
-
import styled from 'styled
|
|
5
|
+
import styled from '@emotion/styled';
|
|
6
6
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
7
7
|
import { P50 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { h400 } from '@atlaskit/theme/typography';
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
export var Actions = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n justify-content: flex-end;\n margin-top: -", "px; /* Negative margin is used to middle align x button with title*/\n margin-right: ", "px;\n"])), gridSize() * 0.5, gridSize() * 0.5);
|
|
10
11
|
export var Title = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n margin-top: 0px;\n"])), h400);
|
|
11
12
|
export var Heading = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: ", "px;\n margin-bottom: ", "px;\n"])), gridSize() * 2, gridSize() * 0.5);
|
|
12
|
-
export var Card = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n background-color: ", ";\n overflow: hidden;\n line-height: 21px;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: 0px;\n margin-top: -", "px; /* Negative margin is used to fill the entire top of the mention dropdown with background colour of highlight*/\n"])), P50, gridSize() * 2, gridSize() * 2, gridSize() * 2, gridSize() * 0.5);
|
|
13
|
+
export var Card = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n background-color: ", ";\n overflow: hidden;\n line-height: 21px;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: 0px;\n margin-top: -", "px; /* Negative margin is used to fill the entire top of the mention dropdown with background colour of highlight*/\n"])), token('color.background.discovery', P50), gridSize() * 2, gridSize() * 2, gridSize() * 2, gridSize() * 0.5);
|
|
13
14
|
export var Content = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: 290px;\n display: flex;\n"])));
|
|
14
15
|
export var Section = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([""])));
|
|
15
16
|
export var Aside = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n opacity: 0.8;\n"])));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
2
2
|
import { N40 } from '@atlaskit/theme/colors';
|
|
3
|
-
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
4
|
+
export var noDialogContainerBorderColor = token('color.border', N40); // This has not been confirmed by the ADG yet
|
|
4
5
|
|
|
5
6
|
export var noDialogContainerBorderRadius = "".concat(borderRadius(), "px");
|
|
6
|
-
export var noDialogContainerBoxShadow = '0 4px 8px -2px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31)'; // Copied from droplist style
|
|
7
|
+
export var noDialogContainerBoxShadow = token('elevation.shadow.overlay', '0 4px 8px -2px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31)'); // Copied from droplist style
|
|
7
8
|
|
|
8
9
|
export var scrollableMaxHeight = '264px';
|
|
9
10
|
export var mentionListWidth = '340px';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
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; }
|
|
6
6
|
|
|
7
7
|
import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
8
8
|
import { ELEMENTS_CHANNEL } from '../_constants';
|
package/dist/esm/util/i18n.js
CHANGED
|
@@ -1,29 +1,290 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
4
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
5
6
|
import { messages } from '../components/i18n';
|
|
6
|
-
export var
|
|
7
|
-
return function (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
props = _objectWithoutProperties(_ref, ["name"]);
|
|
7
|
+
export var propFormatter = function propFormatter(messageDescriptor) {
|
|
8
|
+
return function (_ref) {
|
|
9
|
+
var values = _ref.values,
|
|
10
|
+
children = _ref.children;
|
|
11
|
+
|
|
12
|
+
var _useIntl = useIntl(),
|
|
13
|
+
formatMessage = _useIntl.formatMessage;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var message = formatMessage(messageDescriptor, values);
|
|
16
|
+
|
|
17
|
+
if (typeof children === 'function') {
|
|
18
|
+
return children(message);
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
|
|
21
|
+
return /*#__PURE__*/React.createElement(FormattedMessage, _extends({
|
|
22
|
+
values: values
|
|
23
|
+
}, messageDescriptor));
|
|
24
|
+
};
|
|
20
25
|
};
|
|
21
|
-
export var
|
|
22
|
-
export var
|
|
23
|
-
export var
|
|
24
|
-
export var
|
|
25
|
-
export var
|
|
26
|
-
export var
|
|
27
|
-
export var
|
|
28
|
-
export var
|
|
29
|
-
export var
|
|
26
|
+
export var UnknownUserError = propFormatter(messages.unknownUserError);
|
|
27
|
+
export var NoAccessWarning = propFormatter(messages.noAccessWarning);
|
|
28
|
+
export var NoAccessLabel = propFormatter(messages.noAccessLabel);
|
|
29
|
+
export var DefaultHeadline = propFormatter(messages.defaultHeadline);
|
|
30
|
+
export var DefaultAdvisedAction = propFormatter(messages.defaultAdvisedAction);
|
|
31
|
+
export var LoginAgain = propFormatter(messages.loginAgain);
|
|
32
|
+
export var DifferentText = propFormatter(messages.differentText);
|
|
33
|
+
export var TeamMentionHighlightTitle = propFormatter(messages.TeamMentionHighlightTitle);
|
|
34
|
+
export var TeamMentionHighlightCloseTooltip = propFormatter(messages.TeamMentionHighlightCloseButtonToolTip);
|
|
35
|
+
export var TeamMentionHighlightDescription = propFormatter(messages.TeamMentionHighlightDescription);
|
|
36
|
+
export var TeamMentionHighlightDescriptionLink = propFormatter(messages.TeamMentionHighlightDescriptionLink);
|
|
37
|
+
/**
|
|
38
|
+
* Tries to get the most specific messages bundle for a given locale.
|
|
39
|
+
*
|
|
40
|
+
* Strategy:
|
|
41
|
+
* 1. Try to find messages with the exact string (i.e. 'fr_FR')
|
|
42
|
+
* 2. If that doesn't work, try to find messages for the country locale (i.e. 'fr')
|
|
43
|
+
* 3. If that doesn't work, return english messages as a fallback.
|
|
44
|
+
*
|
|
45
|
+
* @param locale string specifying the locale like 'en_GB', or 'fr'.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
export var getMessagesForLocale = /*#__PURE__*/function () {
|
|
49
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
|
|
50
|
+
var fragments;
|
|
51
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
52
|
+
while (1) {
|
|
53
|
+
switch (_context.prev = _context.next) {
|
|
54
|
+
case 0:
|
|
55
|
+
_context.t0 = locale;
|
|
56
|
+
_context.next = _context.t0 === 'cs' ? 3 : _context.t0 === 'da' ? 4 : _context.t0 === 'de' ? 5 : _context.t0 === 'en' ? 6 : _context.t0 === 'en_GB' ? 7 : _context.t0 === 'es' ? 8 : _context.t0 === 'et' ? 9 : _context.t0 === 'fi' ? 10 : _context.t0 === 'fr' ? 11 : _context.t0 === 'hu' ? 12 : _context.t0 === 'is' ? 13 : _context.t0 === 'it' ? 14 : _context.t0 === 'ja' ? 15 : _context.t0 === 'ko' ? 16 : _context.t0 === 'nb' ? 17 : _context.t0 === 'nl' ? 18 : _context.t0 === 'pl' ? 19 : _context.t0 === 'pt_BR' ? 20 : _context.t0 === 'pt-BR' ? 20 : _context.t0 === 'pt_PT' ? 21 : _context.t0 === 'pt-PT' ? 21 : _context.t0 === 'ro' ? 22 : _context.t0 === 'ru' ? 23 : _context.t0 === 'sk' ? 24 : _context.t0 === 'sv' ? 25 : _context.t0 === 'th' ? 26 : _context.t0 === 'tr' ? 27 : _context.t0 === 'uk' ? 28 : _context.t0 === 'vi' ? 29 : _context.t0 === 'zh_TW' ? 30 : _context.t0 === 'zh' ? 31 : 32;
|
|
57
|
+
break;
|
|
58
|
+
|
|
59
|
+
case 3:
|
|
60
|
+
return _context.abrupt("return", import(
|
|
61
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-cs" */
|
|
62
|
+
'../i18n/cs').then(function (mod) {
|
|
63
|
+
return mod.default;
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
case 4:
|
|
67
|
+
return _context.abrupt("return", import(
|
|
68
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-da" */
|
|
69
|
+
'../i18n/da').then(function (mod) {
|
|
70
|
+
return mod.default;
|
|
71
|
+
}));
|
|
72
|
+
|
|
73
|
+
case 5:
|
|
74
|
+
return _context.abrupt("return", import(
|
|
75
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-de" */
|
|
76
|
+
'../i18n/de').then(function (mod) {
|
|
77
|
+
return mod.default;
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
case 6:
|
|
81
|
+
return _context.abrupt("return", import(
|
|
82
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-en" */
|
|
83
|
+
'../i18n/en').then(function (mod) {
|
|
84
|
+
return mod.default;
|
|
85
|
+
}));
|
|
86
|
+
|
|
87
|
+
case 7:
|
|
88
|
+
return _context.abrupt("return", import(
|
|
89
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-en_GB" */
|
|
90
|
+
'../i18n/en_GB').then(function (mod) {
|
|
91
|
+
return mod.default;
|
|
92
|
+
}));
|
|
93
|
+
|
|
94
|
+
case 8:
|
|
95
|
+
return _context.abrupt("return", import(
|
|
96
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-es" */
|
|
97
|
+
'../i18n/es').then(function (mod) {
|
|
98
|
+
return mod.default;
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
case 9:
|
|
102
|
+
return _context.abrupt("return", import(
|
|
103
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-et" */
|
|
104
|
+
'../i18n/et').then(function (mod) {
|
|
105
|
+
return mod.default;
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
case 10:
|
|
109
|
+
return _context.abrupt("return", import(
|
|
110
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-fi" */
|
|
111
|
+
'../i18n/fi').then(function (mod) {
|
|
112
|
+
return mod.default;
|
|
113
|
+
}));
|
|
114
|
+
|
|
115
|
+
case 11:
|
|
116
|
+
return _context.abrupt("return", import(
|
|
117
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-fr" */
|
|
118
|
+
'../i18n/fr').then(function (mod) {
|
|
119
|
+
return mod.default;
|
|
120
|
+
}));
|
|
121
|
+
|
|
122
|
+
case 12:
|
|
123
|
+
return _context.abrupt("return", import(
|
|
124
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-hu" */
|
|
125
|
+
'../i18n/hu').then(function (mod) {
|
|
126
|
+
return mod.default;
|
|
127
|
+
}));
|
|
128
|
+
|
|
129
|
+
case 13:
|
|
130
|
+
return _context.abrupt("return", import(
|
|
131
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-is" */
|
|
132
|
+
'../i18n/is').then(function (mod) {
|
|
133
|
+
return mod.default;
|
|
134
|
+
}));
|
|
135
|
+
|
|
136
|
+
case 14:
|
|
137
|
+
return _context.abrupt("return", import(
|
|
138
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-it" */
|
|
139
|
+
'../i18n/it').then(function (mod) {
|
|
140
|
+
return mod.default;
|
|
141
|
+
}));
|
|
142
|
+
|
|
143
|
+
case 15:
|
|
144
|
+
return _context.abrupt("return", import(
|
|
145
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-ja" */
|
|
146
|
+
'../i18n/ja').then(function (mod) {
|
|
147
|
+
return mod.default;
|
|
148
|
+
}));
|
|
149
|
+
|
|
150
|
+
case 16:
|
|
151
|
+
return _context.abrupt("return", import(
|
|
152
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-ko" */
|
|
153
|
+
'../i18n/ko').then(function (mod) {
|
|
154
|
+
return mod.default;
|
|
155
|
+
}));
|
|
156
|
+
|
|
157
|
+
case 17:
|
|
158
|
+
return _context.abrupt("return", import(
|
|
159
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-nb" */
|
|
160
|
+
'../i18n/nb').then(function (mod) {
|
|
161
|
+
return mod.default;
|
|
162
|
+
}));
|
|
163
|
+
|
|
164
|
+
case 18:
|
|
165
|
+
return _context.abrupt("return", import(
|
|
166
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-nl" */
|
|
167
|
+
'../i18n/nl').then(function (mod) {
|
|
168
|
+
return mod.default;
|
|
169
|
+
}));
|
|
170
|
+
|
|
171
|
+
case 19:
|
|
172
|
+
return _context.abrupt("return", import(
|
|
173
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-pl" */
|
|
174
|
+
'../i18n/pl').then(function (mod) {
|
|
175
|
+
return mod.default;
|
|
176
|
+
}));
|
|
177
|
+
|
|
178
|
+
case 20:
|
|
179
|
+
return _context.abrupt("return", import(
|
|
180
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-pt_BR" */
|
|
181
|
+
'../i18n/pt_BR').then(function (mod) {
|
|
182
|
+
return mod.default;
|
|
183
|
+
}));
|
|
184
|
+
|
|
185
|
+
case 21:
|
|
186
|
+
return _context.abrupt("return", import(
|
|
187
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-pt_PT" */
|
|
188
|
+
'../i18n/pt_PT').then(function (mod) {
|
|
189
|
+
return mod.default;
|
|
190
|
+
}));
|
|
191
|
+
|
|
192
|
+
case 22:
|
|
193
|
+
return _context.abrupt("return", import(
|
|
194
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-ro" */
|
|
195
|
+
'../i18n/ro').then(function (mod) {
|
|
196
|
+
return mod.default;
|
|
197
|
+
}));
|
|
198
|
+
|
|
199
|
+
case 23:
|
|
200
|
+
return _context.abrupt("return", import(
|
|
201
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-ru" */
|
|
202
|
+
'../i18n/ru').then(function (mod) {
|
|
203
|
+
return mod.default;
|
|
204
|
+
}));
|
|
205
|
+
|
|
206
|
+
case 24:
|
|
207
|
+
return _context.abrupt("return", import(
|
|
208
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-sk" */
|
|
209
|
+
'../i18n/sk').then(function (mod) {
|
|
210
|
+
return mod.default;
|
|
211
|
+
}));
|
|
212
|
+
|
|
213
|
+
case 25:
|
|
214
|
+
return _context.abrupt("return", import(
|
|
215
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-sv" */
|
|
216
|
+
'../i18n/sv').then(function (mod) {
|
|
217
|
+
return mod.default;
|
|
218
|
+
}));
|
|
219
|
+
|
|
220
|
+
case 26:
|
|
221
|
+
return _context.abrupt("return", import(
|
|
222
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-th" */
|
|
223
|
+
'../i18n/th').then(function (mod) {
|
|
224
|
+
return mod.default;
|
|
225
|
+
}));
|
|
226
|
+
|
|
227
|
+
case 27:
|
|
228
|
+
return _context.abrupt("return", import(
|
|
229
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-tr" */
|
|
230
|
+
'../i18n/tr').then(function (mod) {
|
|
231
|
+
return mod.default;
|
|
232
|
+
}));
|
|
233
|
+
|
|
234
|
+
case 28:
|
|
235
|
+
return _context.abrupt("return", import(
|
|
236
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-uk" */
|
|
237
|
+
'../i18n/uk').then(function (mod) {
|
|
238
|
+
return mod.default;
|
|
239
|
+
}));
|
|
240
|
+
|
|
241
|
+
case 29:
|
|
242
|
+
return _context.abrupt("return", import(
|
|
243
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-vi" */
|
|
244
|
+
'../i18n/vi').then(function (mod) {
|
|
245
|
+
return mod.default;
|
|
246
|
+
}));
|
|
247
|
+
|
|
248
|
+
case 30:
|
|
249
|
+
return _context.abrupt("return", import(
|
|
250
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-zh_TW" */
|
|
251
|
+
'../i18n/zh_TW').then(function (mod) {
|
|
252
|
+
return mod.default;
|
|
253
|
+
}));
|
|
254
|
+
|
|
255
|
+
case 31:
|
|
256
|
+
return _context.abrupt("return", import(
|
|
257
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-zh" */
|
|
258
|
+
'../i18n/zh').then(function (mod) {
|
|
259
|
+
return mod.default;
|
|
260
|
+
}));
|
|
261
|
+
|
|
262
|
+
case 32:
|
|
263
|
+
fragments = locale.split(/[_-]/);
|
|
264
|
+
|
|
265
|
+
if (!(fragments.length === 2)) {
|
|
266
|
+
_context.next = 37;
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return _context.abrupt("return", getMessagesForLocale(fragments[0]));
|
|
271
|
+
|
|
272
|
+
case 37:
|
|
273
|
+
return _context.abrupt("return", import(
|
|
274
|
+
/* webpackChunkName: "@atlaskit-internal_mention-i18n-en" */
|
|
275
|
+
'../i18n/en').then(function (mod) {
|
|
276
|
+
return mod.default;
|
|
277
|
+
}));
|
|
278
|
+
|
|
279
|
+
case 38:
|
|
280
|
+
case "end":
|
|
281
|
+
return _context.stop();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}, _callee);
|
|
285
|
+
}));
|
|
286
|
+
|
|
287
|
+
return function getMessagesForLocale(_x) {
|
|
288
|
+
return _ref2.apply(this, arguments);
|
|
289
|
+
};
|
|
290
|
+
}();
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MentionType } from '../../types';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
export interface PrimitiveMentionProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
mentionType: MentionType;
|
|
5
|
+
}
|
|
6
|
+
declare const PrimitiveMention: import("react").ForwardRefExoticComponent<PrimitiveMentionProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
export default PrimitiveMention;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MentionEventHandler } from '../../types';
|
|
3
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
4
|
export declare const ANALYTICS_HOVER_DELAY = 1000;
|
|
5
5
|
export declare const UNKNOWN_USER_ID = "_|unknown|_";
|
|
6
6
|
export declare type OwnProps = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const DescriptionBylineStyle:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DescriptionBylineStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "style" | "title" | "is" | "onError" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, any>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
2
|
import { HighlightDetail } from '../../types';
|
|
3
|
-
export declare
|
|
4
|
-
export declare function renderHighlight(ReactComponent: ReactComponentConstructor, value?: string, highlights?: HighlightDetail[], prefix?: string): JSX.Element | null;
|
|
3
|
+
export declare function renderHighlight(ReactComponent: ComponentType<any>, value?: string, highlights?: HighlightDetail[], prefix?: string): JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export interface MentionItemStyleProps {
|
|
3
3
|
selected?: boolean;
|
|
4
4
|
}
|
|
@@ -11,12 +11,12 @@ export interface NameSectionStyleProps {
|
|
|
11
11
|
export interface InfoSectionStyleProps {
|
|
12
12
|
restricted?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const RowStyle:
|
|
15
|
-
export declare const AvatarStyle:
|
|
16
|
-
export declare const NameSectionStyle:
|
|
17
|
-
export declare const FullNameStyle:
|
|
18
|
-
export declare const InfoSectionStyle:
|
|
19
|
-
export declare const TimeStyle:
|
|
14
|
+
export declare const RowStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "style" | "title" | "is" | "onError" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, any>;
|
|
15
|
+
export declare const AvatarStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, AvatarSectionStyleProps, any>;
|
|
16
|
+
export declare const NameSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, NameSectionStyleProps, any>;
|
|
17
|
+
export declare const FullNameStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "style" | "title" | "is" | "onError" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, any>;
|
|
18
|
+
export declare const InfoSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InfoSectionStyleProps, any>;
|
|
19
|
+
export declare const TimeStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "style" | "title" | "is" | "onError" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, any>;
|
|
20
20
|
export declare const MENTION_ITEM_HEIGHT = 48;
|
|
21
|
-
export declare const MentionItemStyle:
|
|
22
|
-
export declare const AccessSectionStyle:
|
|
21
|
+
export declare const MentionItemStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionItemStyleProps, any>;
|
|
22
|
+
export declare const AccessSectionStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "style" | "title" | "is" | "onError" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export interface MentionListStyleProps {
|
|
3
3
|
empty?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const MentionListStyle:
|
|
5
|
+
export declare const MentionListStyle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MentionListStyleProps, any>;
|