@atlaskit/smart-card 34.1.0 → 34.1.1

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +9 -11
  4. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.js +52 -0
  5. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +15 -0
  6. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +27 -38
  7. package/dist/cjs/view/LinkUrl/index.js +1 -1
  8. package/dist/es2019/utils/analytics/analytics.js +1 -1
  9. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +6 -10
  10. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.js +46 -0
  11. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +15 -0
  12. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +22 -37
  13. package/dist/es2019/view/LinkUrl/index.js +1 -1
  14. package/dist/esm/utils/analytics/analytics.js +1 -1
  15. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +6 -10
  16. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.js +45 -0
  17. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +15 -0
  18. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +23 -37
  19. package/dist/esm/view/LinkUrl/index.js +1 -1
  20. package/dist/types/view/FlexibleCard/components/common/image-icon/index.d.ts +2 -6
  21. package/dist/types/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +8 -0
  22. package/dist/types/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +2 -6
  23. package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  24. package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/index.d.ts +2 -6
  25. package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +8 -0
  26. package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +2 -6
  27. package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  28. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 34.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#102242](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102242)
8
+ [`2e082c5162f9a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2e082c5162f9a) -
9
+ Migrate FlexibleCard/common components to compiled
10
+
3
11
  ## 34.1.0
4
12
 
5
13
  ### Minor 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.1.0"
14
+ packageVersion: "34.1.1"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,34 +1,32 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
6
  Object.defineProperty(exports, "__esModule", {
5
7
  value: true
6
8
  });
7
9
  exports.default = void 0;
8
- var _react = require("@emotion/react");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
9
12
  var _reactRenderImage = _interopRequireDefault(require("react-render-image"));
10
13
  var _loadingSkeleton = _interopRequireDefault(require("../loading-skeleton"));
11
- /**
12
- * @jsxRuntime classic
13
- * @jsx jsx
14
- */
15
-
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
-
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
16
  var ImageIcon = function ImageIcon(_ref) {
19
17
  var defaultIcon = _ref.defaultIcon,
20
18
  testId = _ref.testId,
21
19
  url = _ref.url,
22
20
  onError = _ref.onError,
23
21
  onLoad = _ref.onLoad;
24
- return (0, _react.jsx)(_reactRenderImage.default, {
22
+ return /*#__PURE__*/React.createElement(_reactRenderImage.default, {
25
23
  src: url,
26
- loading: (0, _react.jsx)(_loadingSkeleton.default, {
24
+ loading: /*#__PURE__*/React.createElement(_loadingSkeleton.default, {
27
25
  testId: "".concat(testId, "-loading")
28
26
  })
29
27
  // eslint-disable-next-line jsx-a11y/alt-text
30
28
  ,
31
- loaded: (0, _react.jsx)("img", {
29
+ loaded: /*#__PURE__*/React.createElement("img", {
32
30
  src: url,
33
31
  "data-testid": "".concat(testId, "-image")
34
32
  }),
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = require("@emotion/react");
8
+ /**
9
+ * @jsxRuntime classic
10
+ * @jsx jsx
11
+ */
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
+
15
+ var LoadingSkeletonOld = function LoadingSkeletonOld(_ref) {
16
+ var testId = _ref.testId,
17
+ width = _ref.width,
18
+ height = _ref.height;
19
+ var animationNameStyles = (0, _react.keyframes)({
20
+ '0%': {
21
+ backgroundPosition: '50% 0'
22
+ },
23
+ '100%': {
24
+ backgroundPosition: '-50% 0'
25
+ }
26
+ });
27
+ var styles = (0, _react.css)({
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
+ width: "".concat(width, "rem"),
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
31
+ height: "".concat(height, "rem"),
32
+ borderRadius: '2px',
33
+ userSelect: 'none',
34
+ background: "var(--ds-skeleton-subtle, #f6f7f8)",
35
+ backgroundImage: "linear-gradient( to right, transparent 0%, ".concat("var(--ds-skeleton, #edeef1)", " 20%, transparent 40%, transparent 100% )"),
36
+ backgroundRepeat: 'no-repeat',
37
+ backgroundSize: '280% 100%',
38
+ display: 'inline-block',
39
+ animationDuration: '1s',
40
+ animationFillMode: 'forwards',
41
+ animationIterationCount: 'infinite',
42
+ animationName: animationNameStyles,
43
+ animationTimingFunction: 'linear'
44
+ });
45
+
46
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- needs dynamic css
47
+ return (0, _react.jsx)("span", {
48
+ css: styles,
49
+ "data-testid": testId
50
+ });
51
+ };
52
+ var _default = exports.default = LoadingSkeletonOld;
@@ -0,0 +1,15 @@
1
+
2
+ ._2rkoyh40{border-radius:2px}._12vemgnk{background-repeat:no-repeat}
3
+ ._1bsb9a7u{width:var(--_uc2kr6)}
4
+ ._1e0c1o8l{display:inline-block}
5
+ ._1itkx3i8{background-image:var(--_16116mi)}
6
+ ._1lrw6rms{background-size:280% 100%}
7
+ ._1o51q7pw{animation-fill-mode:forwards}
8
+ ._1pglp3kn{animation-timing-function:linear}
9
+ ._4t3iaym7{height:var(--_1nl18gq)}
10
+ ._5sag9cwz{animation-duration:1s}
11
+ ._bfhk178v{background-color:var(--ds-skeleton-subtle,#f6f7f8)}
12
+ ._j7hqqkar{animation-name:kc09ee}
13
+ ._tip812c5{animation-iteration-count:infinite}
14
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
15
+ @keyframes kc09ee{0%{background-position:50% 0}to{background-position:-50% 0}}
@@ -1,52 +1,41 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
2
  "use strict";
2
3
 
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
3
6
  Object.defineProperty(exports, "__esModule", {
4
7
  value: true
5
8
  });
6
9
  exports.default = void 0;
7
- var _react = require("@emotion/react");
8
- /**
9
- * @jsxRuntime classic
10
- * @jsx jsx
11
- */
12
-
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
-
15
- var LoadingSkeleton = function LoadingSkeleton(_ref) {
10
+ require("./index.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _LoadingSkeletonOld = _interopRequireDefault(require("./LoadingSkeletonOld"));
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ var animationNameStyles = null;
18
+ var LoadingSkeletonNew = function LoadingSkeletonNew(_ref) {
16
19
  var testId = _ref.testId,
17
20
  width = _ref.width,
18
21
  height = _ref.height;
19
- var animationNameStyles = (0, _react.keyframes)({
20
- '0%': {
21
- backgroundPosition: '50% 0'
22
- },
23
- '100%': {
24
- backgroundPosition: '-50% 0'
25
- }
26
- });
27
- var styles = (0, _react.css)({
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
- width: "".concat(width, "rem"),
30
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
31
- height: "".concat(height, "rem"),
32
- borderRadius: '2px',
33
- userSelect: 'none',
34
- background: "var(--ds-skeleton-subtle, #f6f7f8)",
35
- backgroundImage: "linear-gradient( to right, transparent 0%, ".concat("var(--ds-skeleton, #edeef1)", " 20%, transparent 40%, transparent 100% )"),
36
- backgroundRepeat: 'no-repeat',
37
- backgroundSize: '280% 100%',
38
- display: 'inline-block',
39
- animationDuration: '1s',
40
- animationFillMode: 'forwards',
41
- animationIterationCount: 'infinite',
42
- animationName: animationNameStyles,
43
- animationTimingFunction: 'linear'
44
- });
22
+ var styles = null;
45
23
 
46
24
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- needs dynamic css
47
- return (0, _react.jsx)("span", {
48
- css: styles,
49
- "data-testid": testId
25
+ return /*#__PURE__*/React.createElement("span", {
26
+ "data-testid": testId,
27
+ className: (0, _runtime.ax)(["_2rkoyh40 _1bsb9a7u _4t3iaym7 _uiztglyw _bfhk178v _1itkx3i8 _12vemgnk _1lrw6rms _1e0c1o8l _5sag9cwz _1o51q7pw _tip812c5 _j7hqqkar _1pglp3kn"]),
28
+ style: {
29
+ "--_uc2kr6": (0, _runtime.ix)("".concat(width, "rem")),
30
+ "--_1nl18gq": (0, _runtime.ix)("".concat(height, "rem")),
31
+ "--_16116mi": (0, _runtime.ix)("linear-gradient( to right, transparent 0%, ".concat("var(--ds-skeleton, #edeef1)", " 20%, transparent 40%, transparent 100% )"))
32
+ }
50
33
  });
51
34
  };
35
+ var LoadingSkeleton = function LoadingSkeleton(props) {
36
+ if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
37
+ return /*#__PURE__*/React.createElement(LoadingSkeletonNew, props);
38
+ }
39
+ return /*#__PURE__*/React.createElement(_LoadingSkeletonOld.default, props);
40
+ };
52
41
  var _default = exports.default = LoadingSkeleton;
@@ -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.1.0",
23
+ packageVersion: "34.1.1",
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.1.0"
5
+ packageVersion: "34.1.1"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,10 +1,6 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { jsx } from '@emotion/react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
+ import * as React from 'react';
3
+ import { ax, ix } from "@compiled/react/runtime";
8
4
  import ImageLoader from 'react-render-image';
9
5
  import LoadingSkeleton from '../loading-skeleton';
10
6
  const ImageIcon = ({
@@ -13,14 +9,14 @@ const ImageIcon = ({
13
9
  url,
14
10
  onError,
15
11
  onLoad
16
- }) => jsx(ImageLoader, {
12
+ }) => /*#__PURE__*/React.createElement(ImageLoader, {
17
13
  src: url,
18
- loading: jsx(LoadingSkeleton, {
14
+ loading: /*#__PURE__*/React.createElement(LoadingSkeleton, {
19
15
  testId: `${testId}-loading`
20
16
  })
21
17
  // eslint-disable-next-line jsx-a11y/alt-text
22
18
  ,
23
- loaded: jsx("img", {
19
+ loaded: /*#__PURE__*/React.createElement("img", {
24
20
  src: url,
25
21
  "data-testid": `${testId}-image`
26
22
  }),
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ import { css, jsx, keyframes } from '@emotion/react';
8
+ const LoadingSkeletonOld = ({
9
+ testId,
10
+ width,
11
+ height
12
+ }) => {
13
+ const animationNameStyles = keyframes({
14
+ '0%': {
15
+ backgroundPosition: '50% 0'
16
+ },
17
+ '100%': {
18
+ backgroundPosition: '-50% 0'
19
+ }
20
+ });
21
+ const styles = css({
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
+ width: `${width}rem`,
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
+ height: `${height}rem`,
26
+ borderRadius: '2px',
27
+ userSelect: 'none',
28
+ background: "var(--ds-skeleton-subtle, #f6f7f8)",
29
+ backgroundImage: `linear-gradient( to right, transparent 0%, ${"var(--ds-skeleton, #edeef1)"} 20%, transparent 40%, transparent 100% )`,
30
+ backgroundRepeat: 'no-repeat',
31
+ backgroundSize: '280% 100%',
32
+ display: 'inline-block',
33
+ animationDuration: '1s',
34
+ animationFillMode: 'forwards',
35
+ animationIterationCount: 'infinite',
36
+ animationName: animationNameStyles,
37
+ animationTimingFunction: 'linear'
38
+ });
39
+
40
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- needs dynamic css
41
+ return jsx("span", {
42
+ css: styles,
43
+ "data-testid": testId
44
+ });
45
+ };
46
+ export default LoadingSkeletonOld;
@@ -0,0 +1,15 @@
1
+
2
+ ._2rkoyh40{border-radius:2px}._12vemgnk{background-repeat:no-repeat}
3
+ ._1bsb9tg7{width:var(--_1ea5ebz)}
4
+ ._1e0c1o8l{display:inline-block}
5
+ ._1itkvl7m{background-image:linear-gradient(to right,transparent 0,var(--ds-skeleton,#edeef1) 20%,transparent 40%,transparent 100%)}
6
+ ._1lrw6rms{background-size:280% 100%}
7
+ ._1o51q7pw{animation-fill-mode:forwards}
8
+ ._1pglp3kn{animation-timing-function:linear}
9
+ ._4t3imry4{height:var(--_roksyz)}
10
+ ._5sag9cwz{animation-duration:1s}
11
+ ._bfhk178v{background-color:var(--ds-skeleton-subtle,#f6f7f8)}
12
+ ._j7hqqkar{animation-name:kc09ee}
13
+ ._tip812c5{animation-iteration-count:infinite}
14
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
15
+ @keyframes kc09ee{0%{background-position:50% 0}to{background-position:-50% 0}}
@@ -1,46 +1,31 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx, keyframes } from '@emotion/react';
8
- const LoadingSkeleton = ({
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
+ import LoadingSkeletonOld from './LoadingSkeletonOld';
7
+ const animationNameStyles = null;
8
+ const LoadingSkeletonNew = ({
9
9
  testId,
10
10
  width,
11
11
  height
12
12
  }) => {
13
- const animationNameStyles = keyframes({
14
- '0%': {
15
- backgroundPosition: '50% 0'
16
- },
17
- '100%': {
18
- backgroundPosition: '-50% 0'
19
- }
20
- });
21
- const styles = css({
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
- width: `${width}rem`,
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
- height: `${height}rem`,
26
- borderRadius: '2px',
27
- userSelect: 'none',
28
- background: "var(--ds-skeleton-subtle, #f6f7f8)",
29
- backgroundImage: `linear-gradient( to right, transparent 0%, ${"var(--ds-skeleton, #edeef1)"} 20%, transparent 40%, transparent 100% )`,
30
- backgroundRepeat: 'no-repeat',
31
- backgroundSize: '280% 100%',
32
- display: 'inline-block',
33
- animationDuration: '1s',
34
- animationFillMode: 'forwards',
35
- animationIterationCount: 'infinite',
36
- animationName: animationNameStyles,
37
- animationTimingFunction: 'linear'
38
- });
13
+ const styles = null;
39
14
 
40
15
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- needs dynamic css
41
- return jsx("span", {
42
- css: styles,
43
- "data-testid": testId
16
+ return /*#__PURE__*/React.createElement("span", {
17
+ "data-testid": testId,
18
+ className: ax(["_2rkoyh40 _1bsb9tg7 _4t3imry4 _uiztglyw _bfhk178v _1itkvl7m _12vemgnk _1lrw6rms _1e0c1o8l _5sag9cwz _1o51q7pw _tip812c5 _j7hqqkar _1pglp3kn"]),
19
+ style: {
20
+ "--_1ea5ebz": ix(width, "rem"),
21
+ "--_roksyz": ix(height, "rem")
22
+ }
44
23
  });
45
24
  };
25
+ const LoadingSkeleton = props => {
26
+ if (fg('bandicoots-compiled-migration-smartcard')) {
27
+ return /*#__PURE__*/React.createElement(LoadingSkeletonNew, props);
28
+ }
29
+ return /*#__PURE__*/React.createElement(LoadingSkeletonOld, props);
30
+ };
46
31
  export default LoadingSkeleton;
@@ -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.1.0",
13
+ packageVersion: "34.1.1",
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.1.0"
7
+ packageVersion: "34.1.1"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,10 +1,6 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { jsx } from '@emotion/react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
+ import * as React from 'react';
3
+ import { ax, ix } from "@compiled/react/runtime";
8
4
  import ImageLoader from 'react-render-image';
9
5
  import LoadingSkeleton from '../loading-skeleton';
10
6
  var ImageIcon = function ImageIcon(_ref) {
@@ -13,14 +9,14 @@ var ImageIcon = function ImageIcon(_ref) {
13
9
  url = _ref.url,
14
10
  onError = _ref.onError,
15
11
  onLoad = _ref.onLoad;
16
- return jsx(ImageLoader, {
12
+ return /*#__PURE__*/React.createElement(ImageLoader, {
17
13
  src: url,
18
- loading: jsx(LoadingSkeleton, {
14
+ loading: /*#__PURE__*/React.createElement(LoadingSkeleton, {
19
15
  testId: "".concat(testId, "-loading")
20
16
  })
21
17
  // eslint-disable-next-line jsx-a11y/alt-text
22
18
  ,
23
- loaded: jsx("img", {
19
+ loaded: /*#__PURE__*/React.createElement("img", {
24
20
  src: url,
25
21
  "data-testid": "".concat(testId, "-image")
26
22
  }),
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ import { css, jsx, keyframes } from '@emotion/react';
8
+ var LoadingSkeletonOld = function LoadingSkeletonOld(_ref) {
9
+ var testId = _ref.testId,
10
+ width = _ref.width,
11
+ height = _ref.height;
12
+ var animationNameStyles = keyframes({
13
+ '0%': {
14
+ backgroundPosition: '50% 0'
15
+ },
16
+ '100%': {
17
+ backgroundPosition: '-50% 0'
18
+ }
19
+ });
20
+ var styles = css({
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
+ width: "".concat(width, "rem"),
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
+ height: "".concat(height, "rem"),
25
+ borderRadius: '2px',
26
+ userSelect: 'none',
27
+ background: "var(--ds-skeleton-subtle, #f6f7f8)",
28
+ backgroundImage: "linear-gradient( to right, transparent 0%, ".concat("var(--ds-skeleton, #edeef1)", " 20%, transparent 40%, transparent 100% )"),
29
+ backgroundRepeat: 'no-repeat',
30
+ backgroundSize: '280% 100%',
31
+ display: 'inline-block',
32
+ animationDuration: '1s',
33
+ animationFillMode: 'forwards',
34
+ animationIterationCount: 'infinite',
35
+ animationName: animationNameStyles,
36
+ animationTimingFunction: 'linear'
37
+ });
38
+
39
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- needs dynamic css
40
+ return jsx("span", {
41
+ css: styles,
42
+ "data-testid": testId
43
+ });
44
+ };
45
+ export default LoadingSkeletonOld;
@@ -0,0 +1,15 @@
1
+
2
+ ._2rkoyh40{border-radius:2px}._12vemgnk{background-repeat:no-repeat}
3
+ ._1bsb9a7u{width:var(--_uc2kr6)}
4
+ ._1e0c1o8l{display:inline-block}
5
+ ._1itkx3i8{background-image:var(--_16116mi)}
6
+ ._1lrw6rms{background-size:280% 100%}
7
+ ._1o51q7pw{animation-fill-mode:forwards}
8
+ ._1pglp3kn{animation-timing-function:linear}
9
+ ._4t3iaym7{height:var(--_1nl18gq)}
10
+ ._5sag9cwz{animation-duration:1s}
11
+ ._bfhk178v{background-color:var(--ds-skeleton-subtle,#f6f7f8)}
12
+ ._j7hqqkar{animation-name:kc09ee}
13
+ ._tip812c5{animation-iteration-count:infinite}
14
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
15
+ @keyframes kc09ee{0%{background-position:50% 0}to{background-position:-50% 0}}
@@ -1,45 +1,31 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx, keyframes } from '@emotion/react';
8
- var LoadingSkeleton = function LoadingSkeleton(_ref) {
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
+ import LoadingSkeletonOld from './LoadingSkeletonOld';
7
+ var animationNameStyles = null;
8
+ var LoadingSkeletonNew = function LoadingSkeletonNew(_ref) {
9
9
  var testId = _ref.testId,
10
10
  width = _ref.width,
11
11
  height = _ref.height;
12
- var animationNameStyles = keyframes({
13
- '0%': {
14
- backgroundPosition: '50% 0'
15
- },
16
- '100%': {
17
- backgroundPosition: '-50% 0'
18
- }
19
- });
20
- var styles = css({
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
- width: "".concat(width, "rem"),
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
- height: "".concat(height, "rem"),
25
- borderRadius: '2px',
26
- userSelect: 'none',
27
- background: "var(--ds-skeleton-subtle, #f6f7f8)",
28
- backgroundImage: "linear-gradient( to right, transparent 0%, ".concat("var(--ds-skeleton, #edeef1)", " 20%, transparent 40%, transparent 100% )"),
29
- backgroundRepeat: 'no-repeat',
30
- backgroundSize: '280% 100%',
31
- display: 'inline-block',
32
- animationDuration: '1s',
33
- animationFillMode: 'forwards',
34
- animationIterationCount: 'infinite',
35
- animationName: animationNameStyles,
36
- animationTimingFunction: 'linear'
37
- });
12
+ var styles = null;
38
13
 
39
14
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- needs dynamic css
40
- return jsx("span", {
41
- css: styles,
42
- "data-testid": testId
15
+ return /*#__PURE__*/React.createElement("span", {
16
+ "data-testid": testId,
17
+ className: ax(["_2rkoyh40 _1bsb9a7u _4t3iaym7 _uiztglyw _bfhk178v _1itkx3i8 _12vemgnk _1lrw6rms _1e0c1o8l _5sag9cwz _1o51q7pw _tip812c5 _j7hqqkar _1pglp3kn"]),
18
+ style: {
19
+ "--_uc2kr6": ix("".concat(width, "rem")),
20
+ "--_1nl18gq": ix("".concat(height, "rem")),
21
+ "--_16116mi": ix("linear-gradient( to right, transparent 0%, ".concat("var(--ds-skeleton, #edeef1)", " 20%, transparent 40%, transparent 100% )"))
22
+ }
43
23
  });
44
24
  };
25
+ var LoadingSkeleton = function LoadingSkeleton(props) {
26
+ if (fg('bandicoots-compiled-migration-smartcard')) {
27
+ return /*#__PURE__*/React.createElement(LoadingSkeletonNew, props);
28
+ }
29
+ return /*#__PURE__*/React.createElement(LoadingSkeletonOld, props);
30
+ };
45
31
  export default LoadingSkeleton;
@@ -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.1.0",
16
+ packageVersion: "34.1.1",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type ImageIconProps } from './types';
7
- declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => jsx.JSX.Element;
3
+ declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => JSX.Element;
8
4
  export default ImageIcon;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type LoadingSkeletonProps } from './types';
7
+ declare const LoadingSkeletonOld: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
8
+ export default LoadingSkeletonOld;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type LoadingSkeletonProps } from './types';
7
- declare const LoadingSkeleton: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
3
+ declare const LoadingSkeleton: (props: LoadingSkeletonProps) => JSX.Element;
8
4
  export default LoadingSkeleton;
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
9
9
  * HoverCard border implementation is in ContentContainer where it can
10
10
  * change between the default border and prism border during runtime.
11
11
  */
12
- declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "shouldFitContainer" | "xcss" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default CustomPopupContainer;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type ImageIconProps } from './types';
7
- declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => jsx.JSX.Element;
3
+ declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => JSX.Element;
8
4
  export default ImageIcon;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type LoadingSkeletonProps } from './types';
7
+ declare const LoadingSkeletonOld: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
8
+ export default LoadingSkeletonOld;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type LoadingSkeletonProps } from './types';
7
- declare const LoadingSkeleton: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
3
+ declare const LoadingSkeleton: (props: LoadingSkeletonProps) => JSX.Element;
8
4
  export default LoadingSkeleton;
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
9
9
  * HoverCard border implementation is in ContentContainer where it can
10
10
  * change between the default border and prism border during runtime.
11
11
  */
12
- declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "shouldFitContainer" | "xcss" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default CustomPopupContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "34.1.0",
3
+ "version": "34.1.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"