@atlaskit/smart-card 40.4.1 → 40.4.3
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 +17 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ErroredView.js +2 -2
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -2
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/delete-action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/comment-count-element/index.js +3 -9
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +5 -16
- package/dist/cjs/view/FlexibleCard/components/elements/modified-on-element/index.js +3 -8
- package/dist/cjs/view/FlexibleCard/components/elements/owned-by-element/index.js +3 -8
- package/dist/cjs/view/FlexibleCard/components/elements/owned-by-group-element/index.js +3 -8
- package/dist/cjs/view/FlexibleCard/components/elements/react-count-element/index.js +3 -8
- package/dist/cjs/view/FlexibleCard/external.js +32 -53
- package/dist/cjs/view/InlineCard/ErroredView/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/delete-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/comment-count-element/index.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +5 -16
- package/dist/es2019/view/FlexibleCard/components/elements/modified-on-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/components/elements/owned-by-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/components/elements/owned-by-group-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/components/elements/react-count-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/external.js +32 -53
- package/dist/es2019/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/delete-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/comment-count-element/index.js +3 -9
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +5 -16
- package/dist/esm/view/FlexibleCard/components/elements/modified-on-element/index.js +3 -8
- package/dist/esm/view/FlexibleCard/components/elements/owned-by-element/index.js +3 -8
- package/dist/esm/view/FlexibleCard/components/elements/owned-by-group-element/index.js +3 -8
- package/dist/esm/view/FlexibleCard/components/elements/react-count-element/index.js +3 -8
- package/dist/esm/view/FlexibleCard/external.js +32 -53
- package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 40.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#188952](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188952)
|
|
8
|
+
[`1a88e6e2601ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a88e6e2601ae) -
|
|
9
|
+
Migrated usage of renamed/deprecated icons
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 40.4.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#187879](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187879)
|
|
17
|
+
[`59db869a4c7ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/59db869a4c7ac) -
|
|
18
|
+
clean up platform-linking-additional-flexible-element-props fg
|
|
19
|
+
|
|
3
20
|
## 40.4.1
|
|
4
21
|
|
|
5
22
|
### 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: "40.4.
|
|
14
|
+
packageVersion: "40.4.2"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _statusWarningWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-warning--warning"));
|
|
13
13
|
var _messages = require("../../../messages");
|
|
14
14
|
var _baseTextElement = _interopRequireDefault(require("../../FlexibleCard/components/elements/common/base-text-element"));
|
|
15
15
|
var _RetryAction = require("../actions/RetryAction");
|
|
@@ -33,7 +33,7 @@ var ErroredView = function ErroredView(_ref) {
|
|
|
33
33
|
return /*#__PURE__*/_react.default.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
|
|
34
34
|
actions: actions,
|
|
35
35
|
testId: testId
|
|
36
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
36
|
+
}), /*#__PURE__*/_react.default.createElement(_statusWarningWarning.default, {
|
|
37
37
|
label: "errored-warning-icon",
|
|
38
38
|
color: "var(--ds-icon-warning, #E56910)",
|
|
39
39
|
LEGACY_size: "small",
|
|
@@ -13,7 +13,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
15
15
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
16
|
-
var
|
|
16
|
+
var _statusErrorError = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-error--error"));
|
|
17
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -35,7 +35,7 @@ var EmbedCardErroredView = exports.EmbedCardErroredView = function EmbedCardErro
|
|
|
35
35
|
compact: true,
|
|
36
36
|
isSelected: isSelected,
|
|
37
37
|
testId: testId
|
|
38
|
-
}, /*#__PURE__*/React.createElement(
|
|
38
|
+
}, /*#__PURE__*/React.createElement(_statusErrorError.default, {
|
|
39
39
|
LEGACY_size: "small",
|
|
40
40
|
color: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
41
41
|
label: "error-icon"
|
|
@@ -14,7 +14,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
14
14
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
15
|
var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
|
|
16
16
|
var _fullscreenExit = _interopRequireDefault(require("@atlaskit/icon/core/fullscreen-exit"));
|
|
17
|
-
var
|
|
17
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross"));
|
|
18
18
|
var _fullscreenEnterVidFullScreenOn = _interopRequireDefault(require("@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on"));
|
|
19
19
|
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
20
20
|
var _download2 = _interopRequireDefault(require("@atlaskit/icon/glyph/download"));
|
|
@@ -154,7 +154,7 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
154
154
|
}, downloadButton, urlButton, sizeButton, (0, _platformFeatureFlags.fg)('platform-smart-card-remove-legacy-button') ? /*#__PURE__*/_react.default.createElement(_linkInfoButton.default, {
|
|
155
155
|
content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
|
|
156
156
|
icon: function icon() {
|
|
157
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
157
|
+
return /*#__PURE__*/_react.default.createElement(_cross.default, {
|
|
158
158
|
label: _messages.messages.preview_close.defaultMessage,
|
|
159
159
|
color: "currentColor",
|
|
160
160
|
spacing: "spacious"
|
|
@@ -165,7 +165,7 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
165
165
|
testId: "".concat(testId, "-close")
|
|
166
166
|
}) : /*#__PURE__*/_react.default.createElement(_old.default, {
|
|
167
167
|
content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
|
|
168
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
168
|
+
icon: /*#__PURE__*/_react.default.createElement(_cross.default, {
|
|
169
169
|
label: _messages.messages.preview_close.defaultMessage,
|
|
170
170
|
color: "currentColor",
|
|
171
171
|
spacing: "spacious"
|
|
@@ -8,13 +8,13 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _reactIntlNext = require("react-intl-next");
|
|
11
|
-
var
|
|
11
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross"));
|
|
12
12
|
var _messages = require("../../../../../messages");
|
|
13
13
|
var _action = _interopRequireDefault(require("../action"));
|
|
14
14
|
var DeleteAction = function DeleteAction(props) {
|
|
15
15
|
return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
|
|
16
16
|
content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.delete),
|
|
17
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
17
|
+
icon: /*#__PURE__*/_react.default.createElement(_cross.default, {
|
|
18
18
|
color: "currentColor",
|
|
19
19
|
spacing: "spacious",
|
|
20
20
|
label: "Delete"
|
|
@@ -10,7 +10,7 @@ exports.ActionFooter = void 0;
|
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
13
|
+
var _statusErrorError = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-error--error"));
|
|
14
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
15
|
var _motionWrapper = _interopRequireDefault(require("../../../common/motion-wrapper"));
|
|
16
16
|
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); }
|
|
@@ -22,7 +22,7 @@ var styles = {
|
|
|
22
22
|
var getIcon = function getIcon(appearance) {
|
|
23
23
|
switch (appearance) {
|
|
24
24
|
case 'error':
|
|
25
|
-
return /*#__PURE__*/React.createElement(
|
|
25
|
+
return /*#__PURE__*/React.createElement(_statusErrorError.default, {
|
|
26
26
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
27
27
|
spacing: "compact",
|
|
28
28
|
label: "Error",
|
|
@@ -9,7 +9,6 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _constants = require("../../../../../constants");
|
|
14
13
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
15
14
|
var _common = require("../common");
|
|
@@ -22,14 +21,9 @@ var CommentCountElement = function CommentCountElement(props) {
|
|
|
22
21
|
var _ref = props || {},
|
|
23
22
|
onRender = _ref.onRender,
|
|
24
23
|
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
29
|
-
(0, _react.useEffect)(function () {
|
|
30
|
-
onRender === null || onRender === void 0 || onRender(!!data);
|
|
31
|
-
}, [data, onRender]);
|
|
32
|
-
}
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
onRender === null || onRender === void 0 || onRender(!!data);
|
|
26
|
+
}, [data, onRender]);
|
|
33
27
|
return data ? /*#__PURE__*/_react.default.createElement(_common.BaseBadgeElement, (0, _extends2.default)({
|
|
34
28
|
icon: _constants.IconType.Comment
|
|
35
29
|
}, data, restProps, {
|
|
@@ -11,7 +11,6 @@ require("./index.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
15
|
var _constants = require("../../../../../../constants");
|
|
17
16
|
var _messages = require("../../../../../../messages");
|
|
@@ -95,7 +94,7 @@ var BaseBadgeRefreshNew = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
95
94
|
"data-testid": testId,
|
|
96
95
|
ref: ref,
|
|
97
96
|
style: {
|
|
98
|
-
color: color
|
|
97
|
+
color: color
|
|
99
98
|
},
|
|
100
99
|
className: (0, _runtime.ax)([styles.container, colorMap[appearance]])
|
|
101
100
|
}, !hideIcon && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js
CHANGED
|
@@ -83,7 +83,7 @@ var BaseDateTimeElement = function BaseDateTimeElement(_ref) {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
var content;
|
|
86
|
-
if (hideDatePrefix
|
|
86
|
+
if (hideDatePrefix) {
|
|
87
87
|
content = context;
|
|
88
88
|
} else if (text) {
|
|
89
89
|
content = "".concat(text, " ").concat(context);
|
|
@@ -96,7 +96,7 @@ var BaseDateTimeElement = function BaseDateTimeElement(_ref) {
|
|
|
96
96
|
}
|
|
97
97
|
return /*#__PURE__*/React.createElement("span", {
|
|
98
98
|
style: {
|
|
99
|
-
color: color
|
|
99
|
+
color: color
|
|
100
100
|
},
|
|
101
101
|
"data-separator": true,
|
|
102
102
|
"data-smart-element": name,
|
|
@@ -13,7 +13,7 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
var _dropdownMenu = require("@atlaskit/dropdown-menu");
|
|
16
|
-
var
|
|
16
|
+
var _statusErrorError = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-error--error"));
|
|
17
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
var _useAnalyticsEvents2 = require("../../../../../../../../common/analytics/generated/use-analytics-events");
|
|
@@ -51,7 +51,7 @@ var LozengeActionError = function LozengeActionError(_ref) {
|
|
|
51
51
|
style: {
|
|
52
52
|
"--_ggxzyp": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N800, ")"))
|
|
53
53
|
}
|
|
54
|
-
}, /*#__PURE__*/React.createElement(
|
|
54
|
+
}, /*#__PURE__*/React.createElement(_statusErrorError.default, {
|
|
55
55
|
testId: "".concat(testId, "-icon"),
|
|
56
56
|
LEGACY_size: "medium",
|
|
57
57
|
color: "var(--ds-icon-danger, ".concat(_colors.R500, ")"),
|
|
@@ -42,8 +42,7 @@ var BaseTextElement = exports.BaseTextElement = function BaseTextElement(_ref) {
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
var dynamicCss = null;
|
|
45
|
-
var
|
|
46
|
-
var oldContent = (0, _utils.getFormattedMessage)(message) || content;
|
|
45
|
+
var formattedContent = hideFormat && content ? content : (0, _utils.getFormattedMessage)(message) || content;
|
|
47
46
|
return /*#__PURE__*/React.createElement("span", {
|
|
48
47
|
"data-separator": true,
|
|
49
48
|
"data-smart-element": name,
|
|
@@ -53,32 +52,22 @@ var BaseTextElement = exports.BaseTextElement = function BaseTextElement(_ref) {
|
|
|
53
52
|
,
|
|
54
53
|
className: (0, _runtime.ax)(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && (0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], "_1yyjr31u _102klxil", className]),
|
|
55
54
|
style: {
|
|
56
|
-
color: color
|
|
55
|
+
color: color,
|
|
57
56
|
"--_1erfju8": (0, _runtime.ix)(maxLines),
|
|
58
57
|
"--_ohw86c": (0, _runtime.ix)("calc(".concat(maxLines, " * 1rem)"))
|
|
59
58
|
}
|
|
60
|
-
},
|
|
59
|
+
}, formattedContent);
|
|
61
60
|
};
|
|
62
61
|
var _default = exports.default = BaseTextElement;
|
|
63
62
|
var toFormattedTextProps = exports.toFormattedTextProps = function toFormattedTextProps(descriptor, context) {
|
|
64
|
-
if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
|
|
65
|
-
return context ? {
|
|
66
|
-
message: {
|
|
67
|
-
descriptor: descriptor,
|
|
68
|
-
values: {
|
|
69
|
-
context: context
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
content: context
|
|
73
|
-
} : undefined;
|
|
74
|
-
}
|
|
75
63
|
return context ? {
|
|
76
64
|
message: {
|
|
77
65
|
descriptor: descriptor,
|
|
78
66
|
values: {
|
|
79
67
|
context: context
|
|
80
68
|
}
|
|
81
|
-
}
|
|
69
|
+
},
|
|
70
|
+
content: context
|
|
82
71
|
} : undefined;
|
|
83
72
|
};
|
|
84
73
|
var toTextProps = exports.toTextProps = function toTextProps(content) {
|
|
@@ -9,7 +9,6 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _constants = require("../../../../../constants");
|
|
14
13
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
15
14
|
var _common = require("../common");
|
|
@@ -21,13 +20,9 @@ var ModifiedOnElement = function ModifiedOnElement(props) {
|
|
|
21
20
|
var _ref = props || {},
|
|
22
21
|
onRender = _ref.onRender,
|
|
23
22
|
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(0, _react.useEffect)(function () {
|
|
28
|
-
onRender === null || onRender === void 0 || onRender(!!data);
|
|
29
|
-
}, [data, onRender]);
|
|
30
|
-
}
|
|
23
|
+
(0, _react.useEffect)(function () {
|
|
24
|
+
onRender === null || onRender === void 0 || onRender(!!data);
|
|
25
|
+
}, [data, onRender]);
|
|
31
26
|
return data ? /*#__PURE__*/_react.default.createElement(_common.BaseDateTimeElement, (0, _extends2.default)({}, data, restProps, {
|
|
32
27
|
name: _constants.ElementName.ModifiedOn
|
|
33
28
|
})) : null;
|
|
@@ -24,14 +24,9 @@ var OwnedByElement = function OwnedByElement(props) {
|
|
|
24
24
|
textPrefix = _ref$textPrefix === void 0 ? 'owned_by' : _ref$textPrefix,
|
|
25
25
|
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
26
26
|
var data = context ? (0, _common.toFormattedTextProps)((0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') ? _messages.messages[textPrefix] : _messages.messages.owned_by, context === null || context === void 0 ? void 0 : context.ownedBy) : null;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
31
|
-
(0, _react.useEffect)(function () {
|
|
32
|
-
onRender === null || onRender === void 0 || onRender(!!data);
|
|
33
|
-
}, [data, onRender]);
|
|
34
|
-
}
|
|
27
|
+
(0, _react.useEffect)(function () {
|
|
28
|
+
onRender === null || onRender === void 0 || onRender(!!data);
|
|
29
|
+
}, [data, onRender]);
|
|
35
30
|
return data ? /*#__PURE__*/_react.default.createElement(_common.BaseTextElement, (0, _extends2.default)({}, data, restProps, {
|
|
36
31
|
name: _constants.ElementName.OwnedBy
|
|
37
32
|
})) : null;
|
|
@@ -9,7 +9,6 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _constants = require("../../../../../constants");
|
|
14
13
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
15
14
|
var _common = require("../common");
|
|
@@ -21,13 +20,9 @@ var OwnedByGroupElement = function OwnedByGroupElement(props) {
|
|
|
21
20
|
var _ref = props || {},
|
|
22
21
|
onRender = _ref.onRender,
|
|
23
22
|
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(0, _react.useEffect)(function () {
|
|
28
|
-
onRender === null || onRender === void 0 || onRender(!!data);
|
|
29
|
-
}, [data, onRender]);
|
|
30
|
-
}
|
|
23
|
+
(0, _react.useEffect)(function () {
|
|
24
|
+
onRender === null || onRender === void 0 || onRender(!!data);
|
|
25
|
+
}, [data, onRender]);
|
|
31
26
|
return data ? /*#__PURE__*/_react.default.createElement(_common.BaseAvatarGroupElement, (0, _extends2.default)({}, data, restProps, {
|
|
32
27
|
name: _constants.ElementName.OwnedByGroup
|
|
33
28
|
})) : null;
|
|
@@ -9,7 +9,6 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _constants = require("../../../../../constants");
|
|
14
13
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
15
14
|
var _common = require("../common");
|
|
@@ -22,13 +21,9 @@ var ReactCountElement = function ReactCountElement(props) {
|
|
|
22
21
|
var _ref = props || {},
|
|
23
22
|
onRender = _ref.onRender,
|
|
24
23
|
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(0, _react.useEffect)(function () {
|
|
29
|
-
onRender === null || onRender === void 0 || onRender(!!data);
|
|
30
|
-
}, [data, onRender]);
|
|
31
|
-
}
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
onRender === null || onRender === void 0 || onRender(!!data);
|
|
26
|
+
}, [data, onRender]);
|
|
32
27
|
return data ? /*#__PURE__*/_react.default.createElement(_common.BaseBadgeElement, (0, _extends2.default)({
|
|
33
28
|
icon: _constants.IconType.React
|
|
34
29
|
}, data, restProps, {
|
|
@@ -59,13 +59,10 @@ var CollaboratorGroupElement = exports.CollaboratorGroupElement = function Colla
|
|
|
59
59
|
return /*#__PURE__*/_react.default.createElement(_elements.CollaboratorGroup, null);
|
|
60
60
|
};
|
|
61
61
|
var CommentCountElement = exports.CommentCountElement = function CommentCountElement(props) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
return /*#__PURE__*/_react.default.createElement(_elements.CommentCount, null);
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_elements.CommentCount, {
|
|
63
|
+
color: props === null || props === void 0 ? void 0 : props.color,
|
|
64
|
+
onRender: props === null || props === void 0 ? void 0 : props.onRender
|
|
65
|
+
});
|
|
69
66
|
};
|
|
70
67
|
var CreatedOnElement = exports.CreatedOnElement = function CreatedOnElement() {
|
|
71
68
|
return /*#__PURE__*/_react.default.createElement(_elements.CreatedOn, null);
|
|
@@ -80,13 +77,10 @@ var LatestCommitElement = exports.LatestCommitElement = function LatestCommitEle
|
|
|
80
77
|
return /*#__PURE__*/_react.default.createElement(_elements.LatestCommit, null);
|
|
81
78
|
};
|
|
82
79
|
var LinkIconElement = exports.LinkIconElement = function LinkIconElement(props) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
return /*#__PURE__*/_react.default.createElement(_elements.LinkIcon, null);
|
|
80
|
+
return /*#__PURE__*/_react.default.createElement(_elements.LinkIcon, {
|
|
81
|
+
size: (props === null || props === void 0 ? void 0 : props.iconTileSize) === 24 ? _constants.SmartLinkSize.Large : _constants.SmartLinkSize.Medium,
|
|
82
|
+
render: props === null || props === void 0 ? void 0 : props.render
|
|
83
|
+
});
|
|
90
84
|
};
|
|
91
85
|
var LocationElement = exports.LocationElement = function LocationElement() {
|
|
92
86
|
return /*#__PURE__*/_react.default.createElement(_elements.Location, null);
|
|
@@ -95,44 +89,32 @@ var ModifiedByElement = exports.ModifiedByElement = function ModifiedByElement()
|
|
|
95
89
|
return /*#__PURE__*/_react.default.createElement(_elements.ModifiedBy, null);
|
|
96
90
|
};
|
|
97
91
|
var ModifiedOnElement = exports.ModifiedOnElement = function ModifiedOnElement(props) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
return /*#__PURE__*/_react.default.createElement(_elements.ModifiedOn, null);
|
|
92
|
+
return /*#__PURE__*/_react.default.createElement(_elements.ModifiedOn, {
|
|
93
|
+
hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix,
|
|
94
|
+
color: props === null || props === void 0 ? void 0 : props.color,
|
|
95
|
+
onRender: props === null || props === void 0 ? void 0 : props.onRender,
|
|
96
|
+
fontSize: props === null || props === void 0 ? void 0 : props.fontSize
|
|
97
|
+
});
|
|
107
98
|
};
|
|
108
99
|
var OwnedByElement = exports.OwnedByElement = function OwnedByElement(props) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
} : undefined));
|
|
118
|
-
}
|
|
119
|
-
return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, null);
|
|
100
|
+
return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, (0, _extends2.default)({
|
|
101
|
+
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
|
|
102
|
+
color: props === null || props === void 0 ? void 0 : props.color,
|
|
103
|
+
onRender: props === null || props === void 0 ? void 0 : props.onRender
|
|
104
|
+
}, (0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') ? {
|
|
105
|
+
textPrefix: props === null || props === void 0 ? void 0 : props.textPrefix,
|
|
106
|
+
fontSize: props === null || props === void 0 ? void 0 : props.fontSize
|
|
107
|
+
} : undefined));
|
|
120
108
|
};
|
|
121
109
|
var OwnedByGroupElement = exports.OwnedByGroupElement = function OwnedByGroupElement(props) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
return /*#__PURE__*/_react.default.createElement(_elements.OwnedByGroup, null);
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement(_elements.OwnedByGroup, {
|
|
111
|
+
onRender: props === null || props === void 0 ? void 0 : props.onRender
|
|
112
|
+
});
|
|
128
113
|
};
|
|
129
114
|
var PreviewElement = exports.PreviewElement = function PreviewElement(props) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
return /*#__PURE__*/_react.default.createElement(_elements.Preview, null);
|
|
115
|
+
return /*#__PURE__*/_react.default.createElement(_elements.Preview, {
|
|
116
|
+
overrideUrl: props === null || props === void 0 ? void 0 : props.url
|
|
117
|
+
});
|
|
136
118
|
};
|
|
137
119
|
var PriorityElement = exports.PriorityElement = function PriorityElement() {
|
|
138
120
|
return /*#__PURE__*/_react.default.createElement(_elements.Priority, null);
|
|
@@ -144,13 +126,10 @@ var ProviderElement = exports.ProviderElement = function ProviderElement() {
|
|
|
144
126
|
return /*#__PURE__*/_react.default.createElement(_elements.Provider, null);
|
|
145
127
|
};
|
|
146
128
|
var ReactCountElement = exports.ReactCountElement = function ReactCountElement(props) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
return /*#__PURE__*/_react.default.createElement(_elements.ReactCount, null);
|
|
129
|
+
return /*#__PURE__*/_react.default.createElement(_elements.ReactCount, {
|
|
130
|
+
color: props === null || props === void 0 ? void 0 : props.color,
|
|
131
|
+
onRender: props === null || props === void 0 ? void 0 : props.onRender
|
|
132
|
+
});
|
|
154
133
|
};
|
|
155
134
|
var ReadTimeElement = exports.ReadTimeElement = function ReadTimeElement() {
|
|
156
135
|
return /*#__PURE__*/_react.default.createElement(_elements.ReadTime, null);
|
|
@@ -9,14 +9,14 @@ exports.InlineCardErroredView = void 0;
|
|
|
9
9
|
var _runtime = require("@compiled/react/runtime");
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var
|
|
12
|
+
var _statusErrorError = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-error--error"));
|
|
13
13
|
var _messages = require("../../../messages");
|
|
14
14
|
var _HoverCard = require("../../HoverCard");
|
|
15
15
|
var _actionButton = require("../common/action-button");
|
|
16
16
|
var _Frame = require("../Frame");
|
|
17
17
|
var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
18
18
|
var fallbackIcon = function fallbackIcon() {
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_statusErrorError.default, {
|
|
20
20
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
21
21
|
label: "error",
|
|
22
22
|
LEGACY_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: "40.4.
|
|
23
|
+
packageVersion: "40.4.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: "40.4.
|
|
5
|
+
packageVersion: "40.4.2"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import WarningIcon from '@atlaskit/icon/core/migration/warning';
|
|
3
|
+
import WarningIcon from '@atlaskit/icon/core/migration/status-warning--warning';
|
|
4
4
|
import { messages } from '../../../messages';
|
|
5
5
|
import Text from '../../FlexibleCard/components/elements/common/base-text-element';
|
|
6
6
|
import { RetryAction } from '../actions/RetryAction';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import ButtonOld from '@atlaskit/button';
|
|
7
7
|
import Button from '@atlaskit/button/new';
|
|
8
|
-
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
8
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/status-error--error';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
@@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
7
|
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
8
8
|
import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
|
|
9
|
-
import CrossIcon from '@atlaskit/icon/core/migration/
|
|
9
|
+
import CrossIcon from '@atlaskit/icon/core/migration/cross';
|
|
10
10
|
import VidFullScreenOnIcon from '@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on';
|
|
11
11
|
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
12
12
|
import DownloadIconLegacy from '@atlaskit/icon/glyph/download';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import CrossIcon from '@atlaskit/icon/core/migration/
|
|
4
|
+
import CrossIcon from '@atlaskit/icon/core/migration/cross';
|
|
5
5
|
import { messages } from '../../../../../messages';
|
|
6
6
|
import Action from '../action';
|
|
7
7
|
const DeleteAction = props => /*#__PURE__*/React.createElement(Action, _extends({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
5
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/status-error--error';
|
|
6
6
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import MotionWrapper from '../../../common/motion-wrapper';
|
|
8
8
|
const styles = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { ElementName, IconType } from '../../../../../constants';
|
|
5
4
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
6
5
|
import { BaseBadgeElement, toBadgeProps } from '../common';
|
|
@@ -12,14 +11,9 @@ const CommentCountElement = props => {
|
|
|
12
11
|
onRender,
|
|
13
12
|
...restProps
|
|
14
13
|
} = props || {};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
onRender === null || onRender === void 0 ? void 0 : onRender(!!data);
|
|
21
|
-
}, [data, onRender]);
|
|
22
|
-
}
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
onRender === null || onRender === void 0 ? void 0 : onRender(!!data);
|
|
16
|
+
}, [data, onRender]);
|
|
23
17
|
return data ? /*#__PURE__*/React.createElement(BaseBadgeElement, _extends({
|
|
24
18
|
icon: IconType.Comment
|
|
25
19
|
}, data, restProps, {
|
package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
7
|
import { IconType } from '../../../../../../constants';
|
|
9
8
|
import { messages } from '../../../../../../messages';
|
|
@@ -94,7 +93,7 @@ const BaseBadgeRefreshNew = /*#__PURE__*/forwardRef(({
|
|
|
94
93
|
"data-testid": testId,
|
|
95
94
|
ref: ref,
|
|
96
95
|
style: {
|
|
97
|
-
color
|
|
96
|
+
color
|
|
98
97
|
},
|
|
99
98
|
className: ax([styles.container, colorMap[appearance]])
|
|
100
99
|
}, !hideIcon && /*#__PURE__*/React.createElement(Box, {
|