@atlaskit/smart-card 34.5.1 → 34.5.2

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 34.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#104833](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104833)
8
+ [`0b0aae2a7e26e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0b0aae2a7e26e) -
9
+ [ux] Migrate block card unresolved view icons
10
+
3
11
  ## 34.5.1
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: "34.5.1"
14
+ packageVersion: "34.5.2"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -9,7 +9,9 @@ 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 _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/warning"));
12
+ var _warning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning"));
13
+ var _warning2 = _interopRequireDefault(require("@atlaskit/icon/glyph/warning"));
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
15
  var _colors = require("@atlaskit/theme/colors");
14
16
  var _messages = require("../../../messages");
15
17
  var _text = _interopRequireDefault(require("../../FlexibleCard/components/elements/text"));
@@ -35,7 +37,15 @@ var ErroredView = function ErroredView(_ref) {
35
37
  return /*#__PURE__*/_react.default.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
36
38
  actions: actions,
37
39
  testId: testId
38
- }), /*#__PURE__*/_react.default.createElement(_warning.default, {
40
+ }), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_warning.default, {
41
+ label: "errored-warning-icon",
42
+ color: "var(--ds-icon-warning, #E56910)",
43
+ LEGACY_size: "small",
44
+ testId: "".concat(testId, "-warning-icon")
45
+ }) :
46
+ /*#__PURE__*/
47
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
48
+ _react.default.createElement(_warning2.default, {
39
49
  label: "errored-warning-icon",
40
50
  size: "small",
41
51
  primaryColor: "var(--ds-icon-warning, ".concat(_colors.R300, ")"),
@@ -12,8 +12,10 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _reactIntlNext = require("react-intl-next");
14
14
  var _analyticsNext = require("@atlaskit/analytics-next");
15
+ var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
15
16
  var _lock = _interopRequireDefault(require("@atlaskit/icon/glyph/lock"));
16
17
  var _linkExtractors = require("@atlaskit/link-extractors");
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
19
  var _colors = require("@atlaskit/theme/colors");
18
20
  var _extractAccessContext = require("../../../extractors/common/context/extractAccessContext");
19
21
  var _extractHostname = _interopRequireDefault(require("../../../extractors/common/hostname/extractHostname"));
@@ -85,7 +87,16 @@ var ForbiddenView = function ForbiddenView(_ref) {
85
87
  showPreview: true,
86
88
  testId: testId,
87
89
  title: title
88
- }), /*#__PURE__*/_react.default.createElement(_lock.default, {
90
+ }), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
91
+ label: "forbidden-lock-icon",
92
+ color: "var(--ds-icon-danger, #C9372C)",
93
+ LEGACY_fallbackIcon: _lock.default,
94
+ LEGACY_size: "small",
95
+ testId: "".concat(testId, "-lock-icon")
96
+ }) :
97
+ /*#__PURE__*/
98
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
99
+ _react.default.createElement(_lock.default, {
89
100
  label: "forbidden-lock-icon",
90
101
  size: "small",
91
102
  primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
@@ -10,8 +10,10 @@ 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
12
  var _reactIntlNext = require("react-intl-next");
13
+ var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
13
14
  var _lock = _interopRequireDefault(require("@atlaskit/icon/glyph/lock"));
14
15
  var _linkExtractors = require("@atlaskit/link-extractors");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
17
  var _colors = require("@atlaskit/theme/colors");
16
18
  var _messages = require("../../../messages");
17
19
  var _text = _interopRequireDefault(require("../../FlexibleCard/components/elements/text"));
@@ -51,7 +53,16 @@ var NotFoundView = function NotFoundView(_ref) {
51
53
  return /*#__PURE__*/_react.default.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
52
54
  testId: testId,
53
55
  title: title
54
- }), /*#__PURE__*/_react.default.createElement(_lock.default, {
56
+ }), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
57
+ label: "not-found-lock-icon",
58
+ color: "var(--ds-icon-danger, #C9372C)",
59
+ LEGACY_fallbackIcon: _lock.default,
60
+ LEGACY_size: "small",
61
+ testId: "".concat(testId, "-lock-icon")
62
+ }) :
63
+ /*#__PURE__*/
64
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
65
+ _react.default.createElement(_lock.default, {
55
66
  label: "not-found-lock-icon",
56
67
  size: "small",
57
68
  primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
@@ -1,15 +1,16 @@
1
- ._18s8v77o{margin:var(--ds-space-025,2px)}
1
+
2
2
  ._19itn8v0{border:var(--_vzvmm2)}
3
3
  ._1yt418y6{padding:var(--_1xumd0e)}
4
4
  ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
5
5
  ._zulp1jvo{gap:1.25rem 0}
6
6
  ._zulp1qos{gap:.5rem 0}
7
7
  ._zulpfzsm{gap:.25rem 0}
8
- ._zulph3jc{gap:1rem 0}
8
+ ._zulph3jc{gap:1rem 0}._18u0v77o{margin-left:var(--ds-space-025,2px)}
9
9
  ._19bv15sf{padding-left:calc(var(--preview-block-width) + 1.25rem)}
10
10
  ._19bv1ltm{padding-left:calc(var(--preview-block-width) + .25rem)}
11
11
  ._19bvf557{padding-left:calc(var(--preview-block-width) + 1rem)}
12
12
  ._19bvqox2{padding-left:calc(var(--preview-block-width) + .5rem)}
13
+ ._19pkv77o{margin-top:var(--ds-space-025,2px)}
13
14
  ._1e0c1txw{display:flex}
14
15
  ._1pcmkb7n:hover~.actions-button-group{opacity:1}
15
16
  ._1reo15vq{overflow-x:hidden}
@@ -20,11 +21,13 @@
20
21
  ._1yob1kwk{--container-gap-right:.5rem}
21
22
  ._1yob1wow{--container-gap-right:var(--_12k13bg)}
22
23
  ._1yob6mu8{--container-gap-right:.25rem}
24
+ ._2hwxv77o{margin-right:var(--ds-space-025,2px)}
23
25
  ._2lx21bp4{flex-direction:column}
24
26
  ._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
25
27
  ._jb7v18y6{--container-padding:var(--_1xumd0e)}
26
28
  ._kqswh2mm{position:relative}
27
29
  ._nqwih2mm .has-action, ._18ywh2mm a, ._1nq3h2mm button{position:relative}
30
+ ._otyrv77o{margin-bottom:var(--ds-space-025,2px)}
28
31
  ._r37x1r5k{--preview-block-width:30%}
29
32
  ._u5f315sf{padding-right:calc(var(--preview-block-width) + 1.25rem)}
30
33
  ._u5f31ltm{padding-right:calc(var(--preview-block-width) + .25rem)}
@@ -200,7 +200,7 @@ var ContainerNew = function ContainerNew(_ref3) {
200
200
  var container = /*#__PURE__*/_react.default.createElement("div", {
201
201
  "data-smart-link-container": true,
202
202
  "data-testid": testId,
203
- className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19itn8v0 _2rkopd34 _18s8v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
203
+ className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19itn8v0 _2rkopd34 _19pkv77o _2hwxv77o _otyrv77o _18u0v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
204
204
  style: {
205
205
  "--_1xumd0e": (0, _runtime.ix)(padding),
206
206
  "--_73mooq": (0, _runtime.ix)(previewOnLeft ? gap : padding),
@@ -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: "34.5.1",
23
+ packageVersion: "34.5.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: "34.5.1"
5
+ packageVersion: "34.5.2"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,6 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
- import WarningIcon from '@atlaskit/icon/glyph/warning';
3
+ import WarningIcon from '@atlaskit/icon/core/migration/warning';
4
+ import LegacyWarningIcon from '@atlaskit/icon/glyph/warning';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
4
6
  import { R300 } from '@atlaskit/theme/colors';
5
7
  import { messages } from '../../../messages';
6
8
  import Text from '../../FlexibleCard/components/elements/text';
@@ -22,7 +24,15 @@ const ErroredView = ({
22
24
  return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
23
25
  actions: actions,
24
26
  testId: testId
25
- }), /*#__PURE__*/React.createElement(WarningIcon, {
27
+ }), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(WarningIcon, {
28
+ label: "errored-warning-icon",
29
+ color: "var(--ds-icon-warning, #E56910)",
30
+ LEGACY_size: "small",
31
+ testId: `${testId}-warning-icon`
32
+ }) :
33
+ /*#__PURE__*/
34
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
35
+ React.createElement(LegacyWarningIcon, {
26
36
  label: "errored-warning-icon",
27
37
  size: "small",
28
38
  primaryColor: `var(--ds-icon-warning, ${R300})`,
@@ -2,8 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
3
  import { useIntl } from 'react-intl-next';
4
4
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
5
- import LockIcon from '@atlaskit/icon/glyph/lock';
5
+ import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
6
+ import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
6
7
  import { extractProvider } from '@atlaskit/link-extractors';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
7
9
  import { R300 } from '@atlaskit/theme/colors';
8
10
  import { extractRequestAccessContextImproved } from '../../../extractors/common/context/extractAccessContext';
9
11
  import extractHostname from '../../../extractors/common/hostname/extractHostname';
@@ -78,7 +80,16 @@ const ForbiddenView = ({
78
80
  showPreview: true,
79
81
  testId: testId,
80
82
  title: title
81
- }), /*#__PURE__*/React.createElement(LockIcon, {
83
+ }), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(LockLockedIcon, {
84
+ label: "forbidden-lock-icon",
85
+ color: "var(--ds-icon-danger, #C9372C)",
86
+ LEGACY_fallbackIcon: LegacyLockIcon,
87
+ LEGACY_size: "small",
88
+ testId: `${testId}-lock-icon`
89
+ }) :
90
+ /*#__PURE__*/
91
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
92
+ React.createElement(LegacyLockIcon, {
82
93
  label: "forbidden-lock-icon",
83
94
  size: "small",
84
95
  primaryColor: `var(--ds-icon-danger, ${R300})`,
@@ -1,8 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
3
  import { useIntl } from 'react-intl-next';
4
- import LockIcon from '@atlaskit/icon/glyph/lock';
4
+ import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
5
+ import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
5
6
  import { extractProvider } from '@atlaskit/link-extractors';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
6
8
  import { R300 } from '@atlaskit/theme/colors';
7
9
  import { messages } from '../../../messages';
8
10
  import Text from '../../FlexibleCard/components/elements/text';
@@ -38,7 +40,16 @@ const NotFoundView = ({
38
40
  return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
39
41
  testId: testId,
40
42
  title: title
41
- }), /*#__PURE__*/React.createElement(LockIcon, {
43
+ }), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(LockLockedIcon, {
44
+ label: "not-found-lock-icon",
45
+ color: "var(--ds-icon-danger, #C9372C)",
46
+ LEGACY_fallbackIcon: LegacyLockIcon,
47
+ LEGACY_size: "small",
48
+ testId: `${testId}-lock-icon`
49
+ }) :
50
+ /*#__PURE__*/
51
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
52
+ React.createElement(LegacyLockIcon, {
42
53
  label: "not-found-lock-icon",
43
54
  size: "small",
44
55
  primaryColor: `var(--ds-icon-danger, ${R300})`,
@@ -1,15 +1,16 @@
1
- ._18s8v77o{margin:var(--ds-space-025,2px)}
1
+
2
2
  ._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
3
3
  ._1yt418y6{padding:var(--_1xumd0e)}
4
4
  ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
5
5
  ._zulp1jvo{gap:1.25rem 0}
6
6
  ._zulp1qos{gap:.5rem 0}
7
7
  ._zulpfzsm{gap:.25rem 0}
8
- ._zulph3jc{gap:1rem 0}
8
+ ._zulph3jc{gap:1rem 0}._18u0v77o{margin-left:var(--ds-space-025,2px)}
9
9
  ._19bv15sf{padding-left:calc(var(--preview-block-width) + 1.25rem)}
10
10
  ._19bv1ltm{padding-left:calc(var(--preview-block-width) + .25rem)}
11
11
  ._19bvf557{padding-left:calc(var(--preview-block-width) + 1rem)}
12
12
  ._19bvqox2{padding-left:calc(var(--preview-block-width) + .5rem)}
13
+ ._19pkv77o{margin-top:var(--ds-space-025,2px)}
13
14
  ._1e0c1txw{display:flex}
14
15
  ._1pcmkb7n:hover~.actions-button-group{opacity:1}
15
16
  ._1reo15vq{overflow-x:hidden}
@@ -20,11 +21,13 @@
20
21
  ._1yob1kwk{--container-gap-right:.5rem}
21
22
  ._1yob1wow{--container-gap-right:var(--_12k13bg)}
22
23
  ._1yob6mu8{--container-gap-right:.25rem}
24
+ ._2hwxv77o{margin-right:var(--ds-space-025,2px)}
23
25
  ._2lx21bp4{flex-direction:column}
24
26
  ._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
25
27
  ._jb7v18y6{--container-padding:var(--_1xumd0e)}
26
28
  ._kqswh2mm{position:relative}
27
29
  ._nqwih2mm .has-action, ._18ywh2mm a, ._1nq3h2mm button{position:relative}
30
+ ._otyrv77o{margin-bottom:var(--ds-space-025,2px)}
28
31
  ._r37x1r5k{--preview-block-width:30%}
29
32
  ._u5f315sf{padding-right:calc(var(--preview-block-width) + 1.25rem)}
30
33
  ._u5f31ltm{padding-right:calc(var(--preview-block-width) + .25rem)}
@@ -180,7 +180,7 @@ const ContainerNew = ({
180
180
  const container = /*#__PURE__*/React.createElement("div", {
181
181
  "data-smart-link-container": true,
182
182
  "data-testid": testId,
183
- className: ax(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19ith6cr _2rkopd34 _18s8v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
183
+ className: ax(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19ith6cr _2rkopd34 _19pkv77o _2hwxv77o _otyrv77o _18u0v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
184
184
  style: {
185
185
  "--_1xumd0e": ix(padding),
186
186
  "--_73mooq": ix(previewOnLeft ? gap : padding),
@@ -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: "34.5.1",
13
+ packageVersion: "34.5.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: "34.5.1"
7
+ packageVersion: "34.5.2"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -2,7 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["testId"];
4
4
  import React, { useMemo } from 'react';
5
- import WarningIcon from '@atlaskit/icon/glyph/warning';
5
+ import WarningIcon from '@atlaskit/icon/core/migration/warning';
6
+ import LegacyWarningIcon from '@atlaskit/icon/glyph/warning';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
6
8
  import { R300 } from '@atlaskit/theme/colors';
7
9
  import { messages } from '../../../messages';
8
10
  import Text from '../../FlexibleCard/components/elements/text';
@@ -26,7 +28,15 @@ var ErroredView = function ErroredView(_ref) {
26
28
  return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
27
29
  actions: actions,
28
30
  testId: testId
29
- }), /*#__PURE__*/React.createElement(WarningIcon, {
31
+ }), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(WarningIcon, {
32
+ label: "errored-warning-icon",
33
+ color: "var(--ds-icon-warning, #E56910)",
34
+ LEGACY_size: "small",
35
+ testId: "".concat(testId, "-warning-icon")
36
+ }) :
37
+ /*#__PURE__*/
38
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
39
+ React.createElement(LegacyWarningIcon, {
30
40
  label: "errored-warning-icon",
31
41
  size: "small",
32
42
  primaryColor: "var(--ds-icon-warning, ".concat(R300, ")"),
@@ -5,8 +5,10 @@ var _excluded = ["testId"];
5
5
  import React, { useMemo } from 'react';
6
6
  import { useIntl } from 'react-intl-next';
7
7
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
8
- import LockIcon from '@atlaskit/icon/glyph/lock';
8
+ import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
9
+ import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
9
10
  import { extractProvider } from '@atlaskit/link-extractors';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
10
12
  import { R300 } from '@atlaskit/theme/colors';
11
13
  import { extractRequestAccessContextImproved } from '../../../extractors/common/context/extractAccessContext';
12
14
  import extractHostname from '../../../extractors/common/hostname/extractHostname';
@@ -76,7 +78,16 @@ var ForbiddenView = function ForbiddenView(_ref) {
76
78
  showPreview: true,
77
79
  testId: testId,
78
80
  title: title
79
- }), /*#__PURE__*/React.createElement(LockIcon, {
81
+ }), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(LockLockedIcon, {
82
+ label: "forbidden-lock-icon",
83
+ color: "var(--ds-icon-danger, #C9372C)",
84
+ LEGACY_fallbackIcon: LegacyLockIcon,
85
+ LEGACY_size: "small",
86
+ testId: "".concat(testId, "-lock-icon")
87
+ }) :
88
+ /*#__PURE__*/
89
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
90
+ React.createElement(LegacyLockIcon, {
80
91
  label: "forbidden-lock-icon",
81
92
  size: "small",
82
93
  primaryColor: "var(--ds-icon-danger, ".concat(R300, ")"),
@@ -3,8 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["testId"];
4
4
  import React, { useMemo } from 'react';
5
5
  import { useIntl } from 'react-intl-next';
6
- import LockIcon from '@atlaskit/icon/glyph/lock';
6
+ import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
7
+ import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
7
8
  import { extractProvider } from '@atlaskit/link-extractors';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
8
10
  import { R300 } from '@atlaskit/theme/colors';
9
11
  import { messages } from '../../../messages';
10
12
  import Text from '../../FlexibleCard/components/elements/text';
@@ -42,7 +44,16 @@ var NotFoundView = function NotFoundView(_ref) {
42
44
  return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
43
45
  testId: testId,
44
46
  title: title
45
- }), /*#__PURE__*/React.createElement(LockIcon, {
47
+ }), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(LockLockedIcon, {
48
+ label: "not-found-lock-icon",
49
+ color: "var(--ds-icon-danger, #C9372C)",
50
+ LEGACY_fallbackIcon: LegacyLockIcon,
51
+ LEGACY_size: "small",
52
+ testId: "".concat(testId, "-lock-icon")
53
+ }) :
54
+ /*#__PURE__*/
55
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
56
+ React.createElement(LegacyLockIcon, {
46
57
  label: "not-found-lock-icon",
47
58
  size: "small",
48
59
  primaryColor: "var(--ds-icon-danger, ".concat(R300, ")"),
@@ -1,15 +1,16 @@
1
- ._18s8v77o{margin:var(--ds-space-025,2px)}
1
+
2
2
  ._19itn8v0{border:var(--_vzvmm2)}
3
3
  ._1yt418y6{padding:var(--_1xumd0e)}
4
4
  ._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
5
5
  ._zulp1jvo{gap:1.25rem 0}
6
6
  ._zulp1qos{gap:.5rem 0}
7
7
  ._zulpfzsm{gap:.25rem 0}
8
- ._zulph3jc{gap:1rem 0}
8
+ ._zulph3jc{gap:1rem 0}._18u0v77o{margin-left:var(--ds-space-025,2px)}
9
9
  ._19bv15sf{padding-left:calc(var(--preview-block-width) + 1.25rem)}
10
10
  ._19bv1ltm{padding-left:calc(var(--preview-block-width) + .25rem)}
11
11
  ._19bvf557{padding-left:calc(var(--preview-block-width) + 1rem)}
12
12
  ._19bvqox2{padding-left:calc(var(--preview-block-width) + .5rem)}
13
+ ._19pkv77o{margin-top:var(--ds-space-025,2px)}
13
14
  ._1e0c1txw{display:flex}
14
15
  ._1pcmkb7n:hover~.actions-button-group{opacity:1}
15
16
  ._1reo15vq{overflow-x:hidden}
@@ -20,11 +21,13 @@
20
21
  ._1yob1kwk{--container-gap-right:.5rem}
21
22
  ._1yob1wow{--container-gap-right:var(--_12k13bg)}
22
23
  ._1yob6mu8{--container-gap-right:.25rem}
24
+ ._2hwxv77o{margin-right:var(--ds-space-025,2px)}
23
25
  ._2lx21bp4{flex-direction:column}
24
26
  ._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
25
27
  ._jb7v18y6{--container-padding:var(--_1xumd0e)}
26
28
  ._kqswh2mm{position:relative}
27
29
  ._nqwih2mm .has-action, ._18ywh2mm a, ._1nq3h2mm button{position:relative}
30
+ ._otyrv77o{margin-bottom:var(--ds-space-025,2px)}
28
31
  ._r37x1r5k{--preview-block-width:30%}
29
32
  ._u5f315sf{padding-right:calc(var(--preview-block-width) + 1.25rem)}
30
33
  ._u5f31ltm{padding-right:calc(var(--preview-block-width) + .25rem)}
@@ -185,7 +185,7 @@ var ContainerNew = function ContainerNew(_ref3) {
185
185
  var container = /*#__PURE__*/React.createElement("div", {
186
186
  "data-smart-link-container": true,
187
187
  "data-testid": testId,
188
- className: ax(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19itn8v0 _2rkopd34 _18s8v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
188
+ className: ax(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19itn8v0 _2rkopd34 _19pkv77o _2hwxv77o _otyrv77o _18u0v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
189
189
  style: {
190
190
  "--_1xumd0e": ix(padding),
191
191
  "--_73mooq": ix(previewOnLeft ? gap : padding),
@@ -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: "34.5.1",
16
+ packageVersion: "34.5.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": "34.5.1",
3
+ "version": "34.5.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -102,7 +102,7 @@
102
102
  "@atlaskit/visual-regression": "*",
103
103
  "@atlassian/analytics-tooling": "*",
104
104
  "@atlassian/feature-flags-test-utils": "^0.2.0",
105
- "@atlassian/gemini": "1.15.2",
105
+ "@atlassian/gemini": "1.15.3",
106
106
  "@testing-library/dom": "^10.1.0",
107
107
  "@testing-library/jest-dom": "^6.4.5",
108
108
  "@testing-library/react": "^12.1.5",
@@ -174,6 +174,14 @@
174
174
  "platform-visual-refresh-icons": {
175
175
  "type": "boolean"
176
176
  },
177
+ "platform-visual-refresh-icons-legacy-facade": {
178
+ "type": "boolean",
179
+ "showOnWebsiteForTransitiveDependencies": true
180
+ },
181
+ "platform-component-visual-refresh": {
182
+ "type": "boolean",
183
+ "showOnWebsiteForTransitiveDependencies": true
184
+ },
177
185
  "linking_platform_show_lozenge_atlassian_state": {
178
186
  "type": "boolean"
179
187
  },