@atlaskit/mention 24.6.4 → 25.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 +21 -0
- package/dist/cjs/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +5 -5
- package/dist/cjs/components/MentionDescriptionByline/index.js +2 -2
- package/dist/cjs/components/MentionPicker/index.js +3 -3
- package/dist/cjs/components/MessagesIntlProvider/index.js +3 -3
- package/dist/cjs/components/i18n.js +2 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/i18n.js +3 -3
- package/dist/es2019/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/es2019/components/MentionDescriptionByline/index.js +1 -1
- package/dist/es2019/components/MentionPicker/index.js +1 -1
- package/dist/es2019/components/MessagesIntlProvider/index.js +1 -1
- package/dist/es2019/components/i18n.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/i18n.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/index.js +1 -1
- package/dist/esm/components/MentionPicker/index.js +1 -1
- package/dist/esm/components/MessagesIntlProvider/index.js +1 -1
- package/dist/esm/components/i18n.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/i18n.js +1 -1
- package/dist/types/components/MentionPicker/index.d.ts +1 -1
- package/dist/types/util/i18n.d.ts +1 -1
- package/dist/types-ts4.5/components/MentionPicker/index.d.ts +1 -1
- package/dist/types-ts4.5/util/i18n.d.ts +1 -1
- package/package.json +10 -10
- package/report.api.md +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 25.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`deb3d6a6498e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deb3d6a6498e8) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
## 24.6.5
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 24.6.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _styles = require("./styles");
|
|
18
18
|
var _i18n = require("../i18n");
|
|
19
19
|
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)); }
|
|
@@ -29,18 +29,18 @@ var TeamMentionDescriptionByline = exports.default = /*#__PURE__*/function (_Rea
|
|
|
29
29
|
(0, _defineProperty2.default)(_this, "renderByline", function (memberCount, includesYou) {
|
|
30
30
|
if (includesYou) {
|
|
31
31
|
if (memberCount > 50) {
|
|
32
|
-
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(
|
|
32
|
+
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.plus50MembersWithYou));
|
|
33
33
|
}
|
|
34
|
-
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(
|
|
34
|
+
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithYou, {
|
|
35
35
|
values: {
|
|
36
36
|
0: memberCount
|
|
37
37
|
}
|
|
38
38
|
})));
|
|
39
39
|
} else {
|
|
40
40
|
if (memberCount > 50) {
|
|
41
|
-
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.plus50MembersWithoutYou));
|
|
42
42
|
}
|
|
43
|
-
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(
|
|
43
|
+
return _this.getBylineComponent( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithoutYou, {
|
|
44
44
|
values: {
|
|
45
45
|
0: memberCount
|
|
46
46
|
}
|
|
@@ -11,7 +11,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
11
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _types = require("../../types");
|
|
16
16
|
var _UserMentionDescriptionByline = _interopRequireDefault(require("./UserMentionDescriptionByline"));
|
|
17
17
|
var _TeamMentionDescriptionByline = _interopRequireDefault(require("./TeamMentionDescriptionByline"));
|
|
@@ -32,7 +32,7 @@ var MentionDescriptionByline = exports.default = /*#__PURE__*/function (_React$P
|
|
|
32
32
|
userType = _this$props$mention.userType,
|
|
33
33
|
isXProductUser = _this$props$mention.isXProductUser;
|
|
34
34
|
if (isXProductUser) {
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(_styles.DescriptionBylineStyle, null, /*#__PURE__*/_react.default.createElement(
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_styles.DescriptionBylineStyle, null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.xProductMentionDescription));
|
|
36
36
|
}
|
|
37
37
|
switch (userType) {
|
|
38
38
|
case _types.UserType[_types.UserType.TEAM]:
|
|
@@ -12,7 +12,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
17
|
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
18
18
|
var _analytics = require("../../util/analytics");
|
|
@@ -202,7 +202,7 @@ var MentionPicker = exports.MentionPicker = /*#__PURE__*/function (_React$PureCo
|
|
|
202
202
|
zIndex: zIndex,
|
|
203
203
|
offsetX: offsetX,
|
|
204
204
|
offsetY: offsetY
|
|
205
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
205
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
|
|
206
206
|
locale: (intl === null || intl === void 0 ? void 0 : intl.locale) || 'en'
|
|
207
207
|
}, /*#__PURE__*/_react.default.createElement("div", null, resourceMentionList, infoContent)));
|
|
208
208
|
} else {
|
|
@@ -230,7 +230,7 @@ var MentionPicker = exports.MentionPicker = /*#__PURE__*/function (_React$PureCo
|
|
|
230
230
|
onOpen: function onOpen() {},
|
|
231
231
|
onClose: function onClose() {}
|
|
232
232
|
});
|
|
233
|
-
var MentionPickerWithIntl = (0,
|
|
233
|
+
var MentionPickerWithIntl = (0, _reactIntl.injectIntl)(MentionPicker, {
|
|
234
234
|
forwardRef: true
|
|
235
235
|
});
|
|
236
236
|
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
12
|
var _i18n = require("../../util/i18n");
|
|
13
13
|
var EMPTY = {};
|
|
14
14
|
var useI18n = function useI18n(locale) {
|
|
@@ -35,9 +35,9 @@ var useI18n = function useI18n(locale) {
|
|
|
35
35
|
};
|
|
36
36
|
var MessagesIntlProvider = function MessagesIntlProvider(props) {
|
|
37
37
|
var children = props.children;
|
|
38
|
-
var intl = (0,
|
|
38
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
39
39
|
var messages = useI18n(intl.locale);
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, (0, _extends2.default)({}, intl, {
|
|
41
41
|
messages: messages
|
|
42
42
|
}), children);
|
|
43
43
|
};
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
unknownUserError: {
|
|
10
10
|
id: 'fabric.mention.unknow.user.error',
|
|
11
11
|
defaultMessage: 'Unknown user {userId}',
|
|
@@ -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) {
|
package/dist/cjs/util/i18n.js
CHANGED
|
@@ -10,20 +10,20 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _i18n = require("../components/i18n");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
var propFormatter = exports.propFormatter = function propFormatter(messageDescriptor) {
|
|
17
17
|
return function (_ref) {
|
|
18
18
|
var values = _ref.values,
|
|
19
19
|
children = _ref.children;
|
|
20
|
-
var _useIntl = (0,
|
|
20
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
21
21
|
formatMessage = _useIntl.formatMessage;
|
|
22
22
|
var message = formatMessage(messageDescriptor, values);
|
|
23
23
|
if (typeof children === 'function') {
|
|
24
24
|
return children(message);
|
|
25
25
|
}
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({
|
|
27
27
|
values: values
|
|
28
28
|
}, messageDescriptor));
|
|
29
29
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { FormattedMessage } from 'react-intl
|
|
4
|
+
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import { DescriptionBylineStyle } from './styles';
|
|
6
6
|
import { messages } from '../i18n';
|
|
7
7
|
export default class TeamMentionDescriptionByline extends React.PureComponent {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import { UserType } from '../../types';
|
|
4
4
|
import UserMentionDescriptionByline from './UserMentionDescriptionByline';
|
|
5
5
|
import TeamMentionDescriptionByline from './TeamMentionDescriptionByline';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IntlProvider, injectIntl } from 'react-intl
|
|
3
|
+
import { IntlProvider, injectIntl } from 'react-intl';
|
|
4
4
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
6
6
|
import { fireAnalyticsMentionTypeaheadEvent } from '../../util/analytics';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IntlProvider, useIntl } from 'react-intl
|
|
3
|
+
import { IntlProvider, useIntl } from 'react-intl';
|
|
4
4
|
import { getMessagesForLocale } from '../../util/i18n';
|
|
5
5
|
const EMPTY = {};
|
|
6
6
|
const useI18n = locale => {
|
|
@@ -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) => {
|
package/dist/es2019/util/i18n.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
3
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { messages } from '../components/i18n';
|
|
5
5
|
export const propFormatter = messageDescriptor => ({
|
|
6
6
|
values,
|
|
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { FormattedMessage } from 'react-intl
|
|
11
|
+
import { FormattedMessage } from 'react-intl';
|
|
12
12
|
import { DescriptionBylineStyle } from './styles';
|
|
13
13
|
import { messages } from '../i18n';
|
|
14
14
|
var TeamMentionDescriptionByline = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { FormattedMessage } from 'react-intl
|
|
9
|
+
import { FormattedMessage } from 'react-intl';
|
|
10
10
|
import { UserType } from '../../types';
|
|
11
11
|
import UserMentionDescriptionByline from './UserMentionDescriptionByline';
|
|
12
12
|
import TeamMentionDescriptionByline from './TeamMentionDescriptionByline';
|
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { IntlProvider, injectIntl } from 'react-intl
|
|
10
|
+
import { IntlProvider, injectIntl } from 'react-intl';
|
|
11
11
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
13
13
|
import { fireAnalyticsMentionTypeaheadEvent } from '../../util/analytics';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { IntlProvider, useIntl } from 'react-intl
|
|
4
|
+
import { IntlProvider, useIntl } from 'react-intl';
|
|
5
5
|
import { getMessagesForLocale } from '../../util/i18n';
|
|
6
6
|
var EMPTY = {};
|
|
7
7
|
var useI18n = function useI18n(locale) {
|
|
@@ -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) {
|
package/dist/esm/util/i18n.js
CHANGED
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
5
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import { messages } from '../components/i18n';
|
|
7
7
|
export var propFormatter = function propFormatter(messageDescriptor) {
|
|
8
8
|
return function (_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type IntlShape, type WithIntlProps } from 'react-intl
|
|
2
|
+
import { type IntlShape, type WithIntlProps } from 'react-intl';
|
|
3
3
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
4
|
import { type MentionProvider } from '../../api/MentionResource';
|
|
5
5
|
import { type PresenceProvider } from '../../api/PresenceResource';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type IntlShape, type WithIntlProps } from 'react-intl
|
|
2
|
+
import { type IntlShape, type WithIntlProps } from 'react-intl';
|
|
3
3
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
4
|
import { type MentionProvider } from '../../api/MentionResource';
|
|
5
5
|
import { type PresenceProvider } from '../../api/PresenceResource';
|
package/package.json
CHANGED
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
24
24
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
25
25
|
"@atlaskit/avatar": "^25.11.0",
|
|
26
|
-
"@atlaskit/focus-ring": "^3.
|
|
26
|
+
"@atlaskit/focus-ring": "^3.1.0",
|
|
27
27
|
"@atlaskit/heading": "^5.4.0",
|
|
28
|
-
"@atlaskit/icon": "^34.
|
|
29
|
-
"@atlaskit/lozenge": "^13.
|
|
28
|
+
"@atlaskit/icon": "^34.1.0",
|
|
29
|
+
"@atlaskit/lozenge": "^13.7.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
31
|
-
"@atlaskit/primitives": "^
|
|
32
|
-
"@atlaskit/tag": "^14.
|
|
33
|
-
"@atlaskit/teams-avatar": "^2.
|
|
34
|
-
"@atlaskit/tokens": "^
|
|
31
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
32
|
+
"@atlaskit/tag": "^14.9.0",
|
|
33
|
+
"@atlaskit/teams-avatar": "^2.5.0",
|
|
34
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
35
35
|
"@atlaskit/tooltip": "^21.1.0",
|
|
36
36
|
"@atlaskit/ufo": "^0.4.0",
|
|
37
37
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"query-string": "^7.1.3",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
|
-
"react-intl
|
|
63
|
+
"react-intl": "^6.6.2",
|
|
64
64
|
"serialize-javascript": "^5.0.1"
|
|
65
65
|
},
|
|
66
66
|
"keywords": [
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^18.2.0",
|
|
79
79
|
"react-dom": "^18.2.0",
|
|
80
|
-
"react-intl
|
|
80
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
81
81
|
},
|
|
82
82
|
"platform-feature-flags": {
|
|
83
83
|
"jira_ai_agent_avatar_issue_view_comment_mentions": {
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
]
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
-
"version": "
|
|
115
|
+
"version": "25.0.0"
|
|
116
116
|
}
|
package/report.api.md
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
<!--SECTION START: Main Entry Types-->
|
|
17
17
|
|
|
18
18
|
```ts
|
|
19
|
-
import { IntlShape } from 'react-intl
|
|
19
|
+
import { IntlShape } from 'react-intl';
|
|
20
20
|
import { default as React_2 } from 'react';
|
|
21
21
|
import { ServiceConfig } from '@atlaskit/util-service-support/types';
|
|
22
22
|
import { SyntheticEvent } from 'react';
|
|
23
23
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
24
24
|
import { WithAnalyticsEventsProps as WithAnalyticsEventsProps_2 } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
25
|
-
import { WithIntlProps } from 'react-intl
|
|
25
|
+
import { WithIntlProps } from 'react-intl';
|
|
26
26
|
|
|
27
27
|
// @public (undocumented)
|
|
28
28
|
export class AbstractMentionResource
|
|
@@ -946,7 +946,7 @@ export enum UserType {
|
|
|
946
946
|
{
|
|
947
947
|
"react": "^16.8.0",
|
|
948
948
|
"react-dom": "^16.8.0",
|
|
949
|
-
"react-intl
|
|
949
|
+
"react-intl": "npm:react-intl@^5.18.1"
|
|
950
950
|
}
|
|
951
951
|
```
|
|
952
952
|
|