@atlaskit/smart-card 39.2.2 → 39.3.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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +4 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +6 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +4 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 39.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#181067](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181067)
|
|
8
|
+
[`a3e35ac6a074e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3e35ac6a074e) -
|
|
9
|
+
[ux] Enabled data separator for avatar group
|
|
10
|
+
|
|
3
11
|
## 39.2.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "39.2.
|
|
14
|
+
packageVersion: "39.2.2"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js
CHANGED
|
@@ -11,9 +11,11 @@ require("./index.compiled.css");
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
16
|
var _reactIntlNext = require("react-intl-next");
|
|
16
17
|
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
19
|
var _constants = require("../../../../../../constants");
|
|
18
20
|
var _messages = require("../../../../../../messages");
|
|
19
21
|
var _utils = require("../../../utils");
|
|
@@ -87,14 +89,14 @@ var BaseAvatarGroup = function BaseAvatarGroup(_ref) {
|
|
|
87
89
|
if (!data.length) {
|
|
88
90
|
return null;
|
|
89
91
|
}
|
|
90
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
92
|
+
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform-linking-enable-avatar-data-separator') ? (0, _defineProperty2.default)({}, 'data-separator', true) : {}, {
|
|
91
93
|
"data-smart-element": name,
|
|
92
94
|
"data-smart-element-avatar-group": true,
|
|
93
95
|
"data-testid": testId
|
|
94
96
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
95
97
|
,
|
|
96
98
|
className: (0, _runtime.ax)([stylesMap[size], "_1ul91ns9", className])
|
|
97
|
-
}, /*#__PURE__*/React.createElement(_avatarGroup.default, {
|
|
99
|
+
}), /*#__PURE__*/React.createElement(_avatarGroup.default, {
|
|
98
100
|
maxCount: maxCount,
|
|
99
101
|
appearance: "stack",
|
|
100
102
|
size: "small",
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "39.2.
|
|
23
|
+
packageVersion: "39.2.2",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "39.2.
|
|
5
|
+
packageVersion: "39.2.2"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
6
|
import { useMemo } from 'react';
|
|
6
7
|
import { useIntl } from 'react-intl-next';
|
|
7
8
|
import AtlaskitAvatarGroup from '@atlaskit/avatar-group';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { ElementName, SmartLinkSize } from '../../../../../../constants';
|
|
9
11
|
import { messages } from '../../../../../../messages';
|
|
10
12
|
import { getFormattedMessageAsString } from '../../../utils';
|
|
@@ -71,14 +73,16 @@ const BaseAvatarGroup = ({
|
|
|
71
73
|
if (!data.length) {
|
|
72
74
|
return null;
|
|
73
75
|
}
|
|
74
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
76
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, fg('platform-linking-enable-avatar-data-separator') ? {
|
|
77
|
+
['data-separator']: true
|
|
78
|
+
} : {}, {
|
|
75
79
|
"data-smart-element": name,
|
|
76
80
|
"data-smart-element-avatar-group": true,
|
|
77
81
|
"data-testid": testId
|
|
78
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
79
83
|
,
|
|
80
84
|
className: ax([stylesMap[size], "_1ul91ns9", className])
|
|
81
|
-
}, /*#__PURE__*/React.createElement(AtlaskitAvatarGroup, {
|
|
85
|
+
}), /*#__PURE__*/React.createElement(AtlaskitAvatarGroup, {
|
|
82
86
|
maxCount: maxCount,
|
|
83
87
|
appearance: "stack",
|
|
84
88
|
size: "small",
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "39.2.
|
|
13
|
+
packageVersion: "39.2.2",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "39.2.
|
|
7
|
+
packageVersion: "39.2.2"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import "./index.compiled.css";
|
|
4
5
|
import * as React from 'react';
|
|
@@ -8,6 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
9
|
import { useMemo } from 'react';
|
|
9
10
|
import { useIntl } from 'react-intl-next';
|
|
10
11
|
import AtlaskitAvatarGroup from '@atlaskit/avatar-group';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
13
|
import { ElementName, SmartLinkSize } from '../../../../../../constants';
|
|
12
14
|
import { messages } from '../../../../../../messages';
|
|
13
15
|
import { getFormattedMessageAsString } from '../../../utils';
|
|
@@ -78,14 +80,14 @@ var BaseAvatarGroup = function BaseAvatarGroup(_ref) {
|
|
|
78
80
|
if (!data.length) {
|
|
79
81
|
return null;
|
|
80
82
|
}
|
|
81
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
83
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, fg('platform-linking-enable-avatar-data-separator') ? _defineProperty({}, 'data-separator', true) : {}, {
|
|
82
84
|
"data-smart-element": name,
|
|
83
85
|
"data-smart-element-avatar-group": true,
|
|
84
86
|
"data-testid": testId
|
|
85
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
86
88
|
,
|
|
87
89
|
className: ax([stylesMap[size], "_1ul91ns9", className])
|
|
88
|
-
}, /*#__PURE__*/React.createElement(AtlaskitAvatarGroup, {
|
|
90
|
+
}), /*#__PURE__*/React.createElement(AtlaskitAvatarGroup, {
|
|
89
91
|
maxCount: maxCount,
|
|
90
92
|
appearance: "stack",
|
|
91
93
|
size: "small",
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "39.2.
|
|
16
|
+
packageVersion: "39.2.2",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "39.
|
|
3
|
+
"version": "39.3.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -252,6 +252,9 @@
|
|
|
252
252
|
},
|
|
253
253
|
"platform_renderer_blindspots": {
|
|
254
254
|
"type": "boolean"
|
|
255
|
+
},
|
|
256
|
+
"platform-linking-enable-avatar-data-separator": {
|
|
257
|
+
"type": "boolean"
|
|
255
258
|
}
|
|
256
259
|
},
|
|
257
260
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"
|