@atlaskit/mention 24.5.3 → 24.5.5
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 +12 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/api/ContextMentionResource.js +1 -0
- package/dist/cjs/components/Mention/PrimitiveMention.js +1 -1
- package/dist/cjs/components/MentionDescriptionByline/styles.js +2 -0
- package/dist/cjs/components/MentionItem/index.js +33 -1
- package/dist/cjs/components/MentionItem/styles.js +10 -4
- package/dist/cjs/components/MentionList/styles.js +2 -0
- package/dist/cjs/components/MentionListError/styles.js +2 -0
- package/dist/cjs/components/MentionPicker/styles.js +2 -0
- package/dist/cjs/components/Scrollable/styles.js +2 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/api/ContextMentionResource.js +2 -0
- package/dist/es2019/components/Mention/PrimitiveMention.js +18 -18
- package/dist/es2019/components/MentionDescriptionByline/styles.js +2 -0
- package/dist/es2019/components/MentionItem/index.js +35 -1
- package/dist/es2019/components/MentionItem/styles.js +10 -4
- package/dist/es2019/components/MentionList/styles.js +2 -0
- package/dist/es2019/components/MentionListError/styles.js +2 -0
- package/dist/es2019/components/MentionPicker/styles.js +2 -0
- package/dist/es2019/components/Scrollable/styles.js +2 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/api/ContextMentionResource.js +2 -0
- package/dist/esm/components/Mention/PrimitiveMention.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/styles.js +2 -0
- package/dist/esm/components/MentionItem/index.js +33 -1
- package/dist/esm/components/MentionItem/styles.js +10 -4
- package/dist/esm/components/MentionList/styles.js +2 -0
- package/dist/esm/components/MentionListError/styles.js +2 -0
- package/dist/esm/components/MentionPicker/styles.js +2 -0
- package/dist/esm/components/Scrollable/styles.js +2 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/api/ContextMentionResource.d.ts +2 -2
- package/dist/types/components/LockCircleIcon/index.d.ts +4 -2
- package/dist/types/components/Mention/PrimitiveMention.d.ts +2 -2
- package/dist/types/components/MentionDescriptionByline/styles.d.ts +6 -3
- package/dist/types/components/MentionItem/index.d.ts +1 -1
- package/dist/types/components/MentionItem/styles.d.ts +27 -24
- package/dist/types/components/MentionList/styles.d.ts +6 -3
- package/dist/types/components/MentionListError/styles.d.ts +6 -3
- package/dist/types/components/MentionPicker/index.d.ts +3 -3
- package/dist/types/components/MentionPicker/styles.d.ts +9 -6
- package/dist/types/components/Scrollable/styles.d.ts +6 -3
- package/dist/types/shared-styles.d.ts +3 -3
- package/dist/types/types.d.ts +3 -3
- package/dist/types-ts4.5/api/ContextMentionResource.d.ts +2 -2
- package/dist/types-ts4.5/components/LockCircleIcon/index.d.ts +4 -2
- package/dist/types-ts4.5/components/Mention/PrimitiveMention.d.ts +2 -2
- package/dist/types-ts4.5/components/MentionDescriptionByline/styles.d.ts +6 -3
- package/dist/types-ts4.5/components/MentionItem/index.d.ts +1 -1
- package/dist/types-ts4.5/components/MentionItem/styles.d.ts +27 -24
- package/dist/types-ts4.5/components/MentionList/styles.d.ts +6 -3
- package/dist/types-ts4.5/components/MentionListError/styles.d.ts +6 -3
- package/dist/types-ts4.5/components/MentionPicker/index.d.ts +3 -3
- package/dist/types-ts4.5/components/MentionPicker/styles.d.ts +9 -6
- package/dist/types-ts4.5/components/Scrollable/styles.d.ts +6 -3
- package/dist/types-ts4.5/shared-styles.d.ts +3 -3
- package/dist/types-ts4.5/types.d.ts +3 -3
- package/package.json +11 -7
package/CHANGELOG.md
CHANGED
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -10,6 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _util = require("../util");
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
13
14
|
/**
|
|
14
15
|
* This component is stateful and should be instantianted per contextIdentifiers.
|
|
15
16
|
*/
|
|
@@ -52,7 +52,7 @@ var PrimitiveMention = /*#__PURE__*/(0, _react2.forwardRef)(function (_ref2, ref
|
|
|
52
52
|
ref: ref
|
|
53
53
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
54
54
|
,
|
|
55
|
-
css: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\
|
|
55
|
+
css: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\tdisplay: inline;\n\t\t\t\tborder: ", " solid ", ";\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: 20px;\n\t\t\t\tcursor: pointer;\n\t\t\t\tpadding: 0 0.3em 2px 0.23em;\n\t\t\t\tline-height: 1.714;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tword-break: break-word;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t\t&:active {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), "var(--ds-border-width, 1px)", getStyle({
|
|
56
56
|
mentionType: mentionType
|
|
57
57
|
}, 'borderColor'), getStyle({
|
|
58
58
|
mentionType: mentionType
|
|
@@ -9,6 +9,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
12
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
15
|
var DescriptionBylineStyle = exports.DescriptionBylineStyle = _styled.default.span({
|
|
14
16
|
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
@@ -20,6 +20,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
20
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
21
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
22
22
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
23
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
|
+
var _tag = _interopRequireDefault(require("@atlaskit/tag"));
|
|
23
25
|
var _react = _interopRequireDefault(require("react"));
|
|
24
26
|
var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
|
|
25
27
|
var _types = require("../../types");
|
|
@@ -34,6 +36,36 @@ var _MessagesIntlProvider = _interopRequireDefault(require("../MessagesIntlProvi
|
|
|
34
36
|
var _MentionAvatar = require("../MentionAvatar");
|
|
35
37
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
36
38
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39
|
+
var lozengeAppearanceToTagColor = {
|
|
40
|
+
default: 'standard',
|
|
41
|
+
success: 'lime',
|
|
42
|
+
removed: 'red',
|
|
43
|
+
inprogress: 'blue',
|
|
44
|
+
new: 'purple',
|
|
45
|
+
moved: 'orange'
|
|
46
|
+
};
|
|
47
|
+
function renderTag(lozenge) {
|
|
48
|
+
if (typeof lozenge === 'string') {
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
50
|
+
text: lozenge,
|
|
51
|
+
color: "standard",
|
|
52
|
+
isRemovable: false,
|
|
53
|
+
migration_fallback: "lozenge"
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if ((0, _typeof2.default)(lozenge) === 'object') {
|
|
57
|
+
var appearance = lozenge.appearance,
|
|
58
|
+
text = lozenge.text;
|
|
59
|
+
var color = appearance ? lozengeAppearanceToTagColor[appearance] : 'standard';
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
61
|
+
text: text,
|
|
62
|
+
color: color,
|
|
63
|
+
isRemovable: false,
|
|
64
|
+
migration_fallback: "lozenge"
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
37
69
|
function renderLozenge(lozenge) {
|
|
38
70
|
if (typeof lozenge === 'string') {
|
|
39
71
|
return /*#__PURE__*/_react.default.createElement(_lozenge.default, null, lozenge);
|
|
@@ -123,7 +155,7 @@ var MentionItem = exports.default = /*#__PURE__*/function (_React$PureComponent)
|
|
|
123
155
|
mention: mention
|
|
124
156
|
})), /*#__PURE__*/_react.default.createElement(_styles.InfoSectionStyle, {
|
|
125
157
|
restricted: restricted
|
|
126
|
-
}, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/_react.default.createElement(_react.default.Suspense, {
|
|
158
|
+
}, (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? renderTag(lozenge) : renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/_react.default.createElement(_react.default.Suspense, {
|
|
127
159
|
fallback: null
|
|
128
160
|
}, /*#__PURE__*/_react.default.createElement(_NoAccessTooltip.default, {
|
|
129
161
|
name: name
|
|
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.TimeStyle = exports.RowStyle = exports.NameSectionStyle = exports.MentionItemStyle = exports.MENTION_ITEM_HEIGHT = exports.InfoSectionStyle = exports.FullNameStyle = exports.AvatarStyle = exports.AccessSectionStyle = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
16
|
var RowStyle = exports.RowStyle = _styled.default.div({
|
|
14
17
|
alignItems: 'center',
|
|
@@ -61,9 +64,12 @@ var InfoSectionStyle = exports.InfoSectionStyle = _styled.default.div(function (
|
|
|
61
64
|
opacity: props.restricted ? '0.5' : 'inherit',
|
|
62
65
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
63
66
|
'&': {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
68
|
+
'& > span': (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? {
|
|
69
|
+
marginRight: "var(--ds-space-negative-025, -2px)",
|
|
70
|
+
marginBottom: "var(--ds-space-025, 2px)",
|
|
71
|
+
marginTop: "var(--ds-space-025, 2px)"
|
|
72
|
+
} : {
|
|
67
73
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
68
74
|
}
|
|
69
75
|
}
|
|
@@ -75,7 +81,7 @@ var TimeStyle = exports.TimeStyle = _styled.default.div({
|
|
|
75
81
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
76
82
|
flex: 'none',
|
|
77
83
|
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
78
|
-
font: "var(--ds-font-body-
|
|
84
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
79
85
|
});
|
|
80
86
|
var MENTION_ITEM_HEIGHT = exports.MENTION_ITEM_HEIGHT = 48;
|
|
81
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
@@ -9,6 +9,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
9
9
|
var _sharedStyles = require("../../shared-styles");
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
12
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
13
15
|
var MentionListStyle = exports.MentionListStyle = _styled.default.div(function (props) {
|
|
14
16
|
return {
|
|
@@ -8,6 +8,8 @@ exports.GenericErrorVisualStyle = void 0;
|
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
11
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
14
|
var GenericErrorVisualStyle = exports.GenericErrorVisualStyle = _styled.default.div({
|
|
13
15
|
width: "var(--ds-space-1000, 80px)"
|
|
@@ -10,6 +10,8 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
10
10
|
var _sharedStyles = require("../../shared-styles");
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
14
16
|
var MentionPickerStyle = exports.MentionPickerStyle = _styled.default.div(function (props) {
|
|
15
17
|
return {
|
|
@@ -9,6 +9,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
9
9
|
var _sharedStyles = require("../../shared-styles");
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
12
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
15
|
var ScrollableStyle = exports.ScrollableStyle = _styled.default.div({
|
|
14
16
|
display: 'block',
|
|
@@ -12,7 +12,7 @@ var _types = require("../types");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/mention";
|
|
15
|
-
var packageVersion = "
|
|
15
|
+
var packageVersion = "0.0.0-development";
|
|
16
16
|
var SLI_EVENT_TYPE = exports.SLI_EVENT_TYPE = 'sli';
|
|
17
17
|
var SMART_EVENT_TYPE = exports.SMART_EVENT_TYPE = 'smart';
|
|
18
18
|
var fireAnalyticsMentionTypeaheadEvent = exports.fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
3
|
+
|
|
2
4
|
import { padArray } from '../util';
|
|
3
5
|
/**
|
|
4
6
|
* This component is stateful and should be instantianted per contextIdentifiers.
|
|
@@ -47,34 +47,34 @@ const PrimitiveMention = /*#__PURE__*/forwardRef(({
|
|
|
47
47
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
48
48
|
,
|
|
49
49
|
css: css`
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
display: inline;
|
|
51
|
+
border: ${"var(--ds-border-width, 1px)"} solid ${getStyle({
|
|
52
52
|
mentionType
|
|
53
53
|
}, 'borderColor')};
|
|
54
|
-
|
|
54
|
+
background: ${getStyle({
|
|
55
55
|
mentionType
|
|
56
56
|
}, 'background')};
|
|
57
|
-
|
|
57
|
+
color: ${getStyle({
|
|
58
58
|
mentionType
|
|
59
59
|
}, 'text')};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
border-radius: 20px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
padding: 0 0.3em 2px 0.23em;
|
|
63
|
+
line-height: 1.714;
|
|
64
|
+
font-size: 1em;
|
|
65
|
+
font-weight: ${"var(--ds-font-weight-regular, 400)"};
|
|
66
|
+
word-break: break-word;
|
|
67
|
+
&:hover {
|
|
68
|
+
background: ${getStyle({
|
|
69
69
|
mentionType
|
|
70
70
|
}, 'hoveredBackground')};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
}
|
|
72
|
+
&:active {
|
|
73
|
+
background: ${getStyle({
|
|
74
74
|
mentionType
|
|
75
75
|
}, 'pressedBackground')};
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
}
|
|
77
|
+
`
|
|
78
78
|
}, other));
|
|
79
79
|
});
|
|
80
80
|
export default PrimitiveMention;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
import { N100 } from '@atlaskit/theme/colors';
|
|
4
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
7
|
export const DescriptionBylineStyle = styled.span({
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import Lozenge from '@atlaskit/lozenge';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import Tag from '@atlaskit/tag';
|
|
4
6
|
import React from 'react';
|
|
5
7
|
import EditorPanelIcon from '@atlaskit/icon/core/status-information';
|
|
6
8
|
import { isRestricted } from '../../types';
|
|
@@ -14,6 +16,38 @@ import MentionDescriptionByline from '../MentionDescriptionByline';
|
|
|
14
16
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
15
17
|
import { MentionAvatar } from '../MentionAvatar';
|
|
16
18
|
export { MENTION_ITEM_HEIGHT } from './styles';
|
|
19
|
+
const lozengeAppearanceToTagColor = {
|
|
20
|
+
default: 'standard',
|
|
21
|
+
success: 'lime',
|
|
22
|
+
removed: 'red',
|
|
23
|
+
inprogress: 'blue',
|
|
24
|
+
new: 'purple',
|
|
25
|
+
moved: 'orange'
|
|
26
|
+
};
|
|
27
|
+
function renderTag(lozenge) {
|
|
28
|
+
if (typeof lozenge === 'string') {
|
|
29
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
30
|
+
text: lozenge,
|
|
31
|
+
color: "standard",
|
|
32
|
+
isRemovable: false,
|
|
33
|
+
migration_fallback: "lozenge"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (typeof lozenge === 'object') {
|
|
37
|
+
const {
|
|
38
|
+
appearance,
|
|
39
|
+
text
|
|
40
|
+
} = lozenge;
|
|
41
|
+
const color = appearance ? lozengeAppearanceToTagColor[appearance] : 'standard';
|
|
42
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
43
|
+
text: text,
|
|
44
|
+
color: color,
|
|
45
|
+
isRemovable: false,
|
|
46
|
+
migration_fallback: "lozenge"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
17
51
|
function renderLozenge(lozenge) {
|
|
18
52
|
if (typeof lozenge === 'string') {
|
|
19
53
|
return /*#__PURE__*/React.createElement(Lozenge, null, lozenge);
|
|
@@ -100,7 +134,7 @@ export default class MentionItem extends React.PureComponent {
|
|
|
100
134
|
mention: mention
|
|
101
135
|
})), /*#__PURE__*/React.createElement(InfoSectionStyle, {
|
|
102
136
|
restricted: restricted
|
|
103
|
-
}, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
|
|
137
|
+
}, fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? renderTag(lozenge) : renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
|
|
104
138
|
fallback: null
|
|
105
139
|
}, /*#__PURE__*/React.createElement(AsyncNoAccessTooltip, {
|
|
106
140
|
name: name
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
6
|
import { N900, N100, N30, N500 } from '@atlaskit/theme/colors';
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
8
|
export const RowStyle = styled.div({
|
|
@@ -48,9 +51,12 @@ export const InfoSectionStyle = styled.div(props => ({
|
|
|
48
51
|
opacity: props.restricted ? '0.5' : 'inherit',
|
|
49
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
50
53
|
'&': {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
55
|
+
'& > span': fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? {
|
|
56
|
+
marginRight: "var(--ds-space-negative-025, -2px)",
|
|
57
|
+
marginBottom: "var(--ds-space-025, 2px)",
|
|
58
|
+
marginTop: "var(--ds-space-025, 2px)"
|
|
59
|
+
} : {
|
|
54
60
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
55
61
|
}
|
|
56
62
|
}
|
|
@@ -61,7 +67,7 @@ export const TimeStyle = styled.div({
|
|
|
61
67
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
62
68
|
flex: 'none',
|
|
63
69
|
color: `var(--ds-text-subtlest, ${N100})`,
|
|
64
|
-
font: "var(--ds-font-body-
|
|
70
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
65
71
|
});
|
|
66
72
|
export const MENTION_ITEM_HEIGHT = 48;
|
|
67
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
4
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
5
7
|
export const MentionListStyle = styled.div(props => ({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
6
|
export const GenericErrorVisualStyle = styled.div({
|
|
5
7
|
width: "var(--ds-space-1000, 80px)"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
import { N100 } from '@atlaskit/theme/colors';
|
|
4
6
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
5
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
|
|
5
|
+
import { scrollableMaxHeight } from '../../shared-styles';
|
|
5
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
7
|
export const ScrollableStyle = styled.div({
|
|
7
8
|
display: 'block',
|
|
@@ -2,7 +2,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
2
2
|
import { ELEMENTS_CHANNEL } from '../_constants';
|
|
3
3
|
import { ComponentNames, isSpecialMentionText } from '../types';
|
|
4
4
|
const packageName = "@atlaskit/mention";
|
|
5
|
-
const packageVersion = "
|
|
5
|
+
const packageVersion = "0.0.0-development";
|
|
6
6
|
export const SLI_EVENT_TYPE = 'sli';
|
|
7
7
|
export const SMART_EVENT_TYPE = 'smart';
|
|
8
8
|
export const fireAnalyticsMentionTypeaheadEvent = props => (action, duration, userIds = [], query) => {
|
|
@@ -2,6 +2,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
6
|
+
|
|
5
7
|
import { padArray } from '../util';
|
|
6
8
|
/**
|
|
7
9
|
* This component is stateful and should be instantianted per contextIdentifiers.
|
|
@@ -45,7 +45,7 @@ var PrimitiveMention = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
45
45
|
ref: ref
|
|
46
46
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
47
|
,
|
|
48
|
-
css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\
|
|
48
|
+
css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\tdisplay: inline;\n\t\t\t\tborder: ", " solid ", ";\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: 20px;\n\t\t\t\tcursor: pointer;\n\t\t\t\tpadding: 0 0.3em 2px 0.23em;\n\t\t\t\tline-height: 1.714;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tword-break: break-word;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t\t&:active {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), "var(--ds-border-width, 1px)", getStyle({
|
|
49
49
|
mentionType: mentionType
|
|
50
50
|
}, 'borderColor'), getStyle({
|
|
51
51
|
mentionType: mentionType
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
import { N100 } from '@atlaskit/theme/colors';
|
|
4
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
7
|
export var DescriptionBylineStyle = styled.span({
|
|
@@ -9,6 +9,8 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import Lozenge from '@atlaskit/lozenge';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import Tag from '@atlaskit/tag';
|
|
12
14
|
import React from 'react';
|
|
13
15
|
import EditorPanelIcon from '@atlaskit/icon/core/status-information';
|
|
14
16
|
import { isRestricted } from '../../types';
|
|
@@ -22,6 +24,36 @@ import MentionDescriptionByline from '../MentionDescriptionByline';
|
|
|
22
24
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
23
25
|
import { MentionAvatar } from '../MentionAvatar';
|
|
24
26
|
export { MENTION_ITEM_HEIGHT } from './styles';
|
|
27
|
+
var lozengeAppearanceToTagColor = {
|
|
28
|
+
default: 'standard',
|
|
29
|
+
success: 'lime',
|
|
30
|
+
removed: 'red',
|
|
31
|
+
inprogress: 'blue',
|
|
32
|
+
new: 'purple',
|
|
33
|
+
moved: 'orange'
|
|
34
|
+
};
|
|
35
|
+
function renderTag(lozenge) {
|
|
36
|
+
if (typeof lozenge === 'string') {
|
|
37
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
38
|
+
text: lozenge,
|
|
39
|
+
color: "standard",
|
|
40
|
+
isRemovable: false,
|
|
41
|
+
migration_fallback: "lozenge"
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (_typeof(lozenge) === 'object') {
|
|
45
|
+
var appearance = lozenge.appearance,
|
|
46
|
+
text = lozenge.text;
|
|
47
|
+
var color = appearance ? lozengeAppearanceToTagColor[appearance] : 'standard';
|
|
48
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
49
|
+
text: text,
|
|
50
|
+
color: color,
|
|
51
|
+
isRemovable: false,
|
|
52
|
+
migration_fallback: "lozenge"
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
25
57
|
function renderLozenge(lozenge) {
|
|
26
58
|
if (typeof lozenge === 'string') {
|
|
27
59
|
return /*#__PURE__*/React.createElement(Lozenge, null, lozenge);
|
|
@@ -111,7 +143,7 @@ var MentionItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
111
143
|
mention: mention
|
|
112
144
|
})), /*#__PURE__*/React.createElement(InfoSectionStyle, {
|
|
113
145
|
restricted: restricted
|
|
114
|
-
}, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
|
|
146
|
+
}, fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? renderTag(lozenge) : renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
|
|
115
147
|
fallback: null
|
|
116
148
|
}, /*#__PURE__*/React.createElement(AsyncNoAccessTooltip, {
|
|
117
149
|
name: name
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
6
|
import { N900, N100, N30, N500 } from '@atlaskit/theme/colors';
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
8
|
export var RowStyle = styled.div({
|
|
@@ -53,9 +56,12 @@ export var InfoSectionStyle = styled.div(function (props) {
|
|
|
53
56
|
opacity: props.restricted ? '0.5' : 'inherit',
|
|
54
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
55
58
|
'&': {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
60
|
+
'& > span': fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? {
|
|
61
|
+
marginRight: "var(--ds-space-negative-025, -2px)",
|
|
62
|
+
marginBottom: "var(--ds-space-025, 2px)",
|
|
63
|
+
marginTop: "var(--ds-space-025, 2px)"
|
|
64
|
+
} : {
|
|
59
65
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
60
66
|
}
|
|
61
67
|
}
|
|
@@ -67,7 +73,7 @@ export var TimeStyle = styled.div({
|
|
|
67
73
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
68
74
|
flex: 'none',
|
|
69
75
|
color: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
|
70
|
-
font: "var(--ds-font-body-
|
|
76
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
71
77
|
});
|
|
72
78
|
export var MENTION_ITEM_HEIGHT = 48;
|
|
73
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
4
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
5
7
|
export var MentionListStyle = styled.div(function (props) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
6
|
export var GenericErrorVisualStyle = styled.div({
|
|
5
7
|
width: "var(--ds-space-1000, 80px)"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
import { N100 } from '@atlaskit/theme/colors';
|
|
4
6
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
5
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
|
|
5
|
+
import { scrollableMaxHeight } from '../../shared-styles';
|
|
5
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
7
|
export var ScrollableStyle = styled.div({
|
|
7
8
|
display: 'block',
|
|
@@ -5,7 +5,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
5
5
|
import { ELEMENTS_CHANNEL } from '../_constants';
|
|
6
6
|
import { ComponentNames, isSpecialMentionText } from '../types';
|
|
7
7
|
var packageName = "@atlaskit/mention";
|
|
8
|
-
var packageVersion = "
|
|
8
|
+
var packageVersion = "0.0.0-development";
|
|
9
9
|
export var SLI_EVENT_TYPE = 'sli';
|
|
10
10
|
export var SMART_EVENT_TYPE = 'smart';
|
|
11
11
|
export var fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
|