@atlaskit/smart-card 35.1.5 → 35.1.6

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 (25) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +2 -2
  4. package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
  5. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +2 -2
  6. package/dist/cjs/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.js +2 -1
  7. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +6 -4
  8. package/dist/cjs/view/LinkUrl/index.js +1 -1
  9. package/dist/es2019/utils/analytics/analytics.js +1 -1
  10. package/dist/es2019/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +2 -2
  11. package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
  12. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +2 -2
  13. package/dist/es2019/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.js +2 -1
  14. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +6 -4
  15. package/dist/es2019/view/LinkUrl/index.js +1 -1
  16. package/dist/esm/utils/analytics/analytics.js +1 -1
  17. package/dist/esm/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +2 -2
  18. package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
  19. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +2 -2
  20. package/dist/esm/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.js +2 -1
  21. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +6 -4
  22. package/dist/esm/view/LinkUrl/index.js +1 -1
  23. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +9 -1
  24. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +9 -1
  25. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 35.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#121115](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/121115)
8
+ [`3a14e5f9f3d6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a14e5f9f3d6e) -
9
+ Deprecate overrideCss props exported publicly
10
+
3
11
  ## 35.1.5
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: "35.1.5"
14
+ packageVersion: "35.1.6"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -81,11 +81,11 @@ var UnresolvedViewOld = function UnresolvedViewOld(_ref) {
81
81
  }
82
82
  var imageTestId = "".concat(testId, "-unresolved-image");
83
83
  if (typeof imageUrlOrElement === 'string') {
84
- // eslint-disable-next-line jsx-a11y/alt-text
85
84
  return (0, _react2.jsx)("img", {
86
85
  css: imageStyles,
87
86
  "data-testid": imageTestId,
88
- src: imageUrlOrElement
87
+ src: imageUrlOrElement,
88
+ alt: ""
89
89
  });
90
90
  }
91
91
  return (0, _react2.jsx)("div", {
@@ -55,10 +55,10 @@ var UnresolvedView = function UnresolvedView(_ref) {
55
55
  }
56
56
  var imageTestId = "".concat(testId, "-unresolved-image");
57
57
  if (typeof imageUrlOrElement === 'string') {
58
- // eslint-disable-next-line jsx-a11y/alt-text
59
58
  return /*#__PURE__*/_react.default.createElement("img", {
60
59
  "data-testid": imageTestId,
61
60
  src: imageUrlOrElement,
61
+ alt: "",
62
62
  className: (0, _runtime.ax)(["_4t3i68cl _1bsbmgvx _5ral1f51 _rsufaqso"])
63
63
  });
64
64
  }
@@ -39,10 +39,10 @@ var ImageIcon = function ImageIcon(_ref) {
39
39
  loading: /*#__PURE__*/_react.default.createElement(_loadingSkeleton.LoadingSkeletonOld, {
40
40
  testId: "".concat(testId, "-loading")
41
41
  }),
42
- // eslint-disable-next-line jsx-a11y/alt-text
43
42
  loaded: /*#__PURE__*/_react.default.createElement("img", {
44
43
  src: url,
45
- "data-testid": "".concat(testId, "-image")
44
+ "data-testid": "".concat(testId, "-image"),
45
+ alt: ""
46
46
  })
47
47
  }, {
48
48
  errored: defaultIcon,
@@ -113,7 +113,8 @@ var IconAndTitleLayoutOld = exports.IconAndTitleLayoutOld = /*#__PURE__*/functio
113
113
  , {
114
114
  className: "smart-link-icon",
115
115
  src: url,
116
- "data-testid": "".concat(testId, "-image")
116
+ "data-testid": "".concat(testId, "-image"),
117
+ alt: ""
117
118
  }),
118
119
  errored: errored,
119
120
  loading: /*#__PURE__*/_react.default.createElement(_Icon.Shimmer, {
@@ -125,13 +125,15 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
125
125
  });
126
126
  }
127
127
  return /*#__PURE__*/_react.default.createElement(_reactRenderImage.default, {
128
- src: icon
128
+ src: icon,
129
+ loaded:
130
+ /*#__PURE__*/
129
131
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
130
- ,
131
- loaded: /*#__PURE__*/_react.default.createElement(_Icon.Icon, {
132
+ _react.default.createElement(_Icon.Icon, {
132
133
  className: "smart-link-icon",
133
134
  src: icon,
134
- "data-testid": "".concat(testId, "-image")
135
+ "data-testid": "".concat(testId, "-image"),
136
+ alt: ""
135
137
  }),
136
138
  errored: errored,
137
139
  loading: /*#__PURE__*/_react.default.createElement(_Icon.Shimmer, {
@@ -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: "35.1.5",
23
+ packageVersion: "35.1.6",
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: "35.1.5"
5
+ packageVersion: "35.1.6"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -71,11 +71,11 @@ const UnresolvedViewOld = ({
71
71
  }
72
72
  const imageTestId = `${testId}-unresolved-image`;
73
73
  if (typeof imageUrlOrElement === 'string') {
74
- // eslint-disable-next-line jsx-a11y/alt-text
75
74
  return jsx("img", {
76
75
  css: imageStyles,
77
76
  "data-testid": imageTestId,
78
- src: imageUrlOrElement
77
+ src: imageUrlOrElement,
78
+ alt: ""
79
79
  });
80
80
  }
81
81
  return jsx("div", {
@@ -46,10 +46,10 @@ const UnresolvedView = ({
46
46
  }
47
47
  const imageTestId = `${testId}-unresolved-image`;
48
48
  if (typeof imageUrlOrElement === 'string') {
49
- // eslint-disable-next-line jsx-a11y/alt-text
50
49
  return /*#__PURE__*/React.createElement("img", {
51
50
  "data-testid": imageTestId,
52
51
  src: imageUrlOrElement,
52
+ alt: "",
53
53
  className: ax(["_4t3i68cl _1bsbmgvx _5ral1f51 _rsufaqso"])
54
54
  });
55
55
  }
@@ -32,10 +32,10 @@ const ImageIcon = ({
32
32
  loading: /*#__PURE__*/React.createElement(LoadingSkeletonOld, {
33
33
  testId: `${testId}-loading`
34
34
  }),
35
- // eslint-disable-next-line jsx-a11y/alt-text
36
35
  loaded: /*#__PURE__*/React.createElement("img", {
37
36
  src: url,
38
- "data-testid": `${testId}-image`
37
+ "data-testid": `${testId}-image`,
38
+ alt: ""
39
39
  })
40
40
  }, {
41
41
  errored: defaultIcon,
@@ -95,7 +95,8 @@ export class IconAndTitleLayoutOld extends React.Component {
95
95
  , {
96
96
  className: "smart-link-icon",
97
97
  src: url,
98
- "data-testid": `${testId}-image`
98
+ "data-testid": `${testId}-image`,
99
+ alt: ""
99
100
  }),
100
101
  errored: errored,
101
102
  loading: /*#__PURE__*/React.createElement(Shimmer, {
@@ -110,13 +110,15 @@ const IconAndTitleLayoutNew = ({
110
110
  });
111
111
  }
112
112
  return /*#__PURE__*/React.createElement(ImageLoader, {
113
- src: icon
113
+ src: icon,
114
+ loaded:
115
+ /*#__PURE__*/
114
116
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
115
- ,
116
- loaded: /*#__PURE__*/React.createElement(Icon, {
117
+ React.createElement(Icon, {
117
118
  className: "smart-link-icon",
118
119
  src: icon,
119
- "data-testid": `${testId}-image`
120
+ "data-testid": `${testId}-image`,
121
+ alt: ""
120
122
  }),
121
123
  errored: errored,
122
124
  loading: /*#__PURE__*/React.createElement(Shimmer, {
@@ -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: "35.1.5",
13
+ packageVersion: "35.1.6",
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: "35.1.5"
7
+ packageVersion: "35.1.6"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -70,11 +70,11 @@ var UnresolvedViewOld = function UnresolvedViewOld(_ref) {
70
70
  }
71
71
  var imageTestId = "".concat(testId, "-unresolved-image");
72
72
  if (typeof imageUrlOrElement === 'string') {
73
- // eslint-disable-next-line jsx-a11y/alt-text
74
73
  return jsx("img", {
75
74
  css: imageStyles,
76
75
  "data-testid": imageTestId,
77
- src: imageUrlOrElement
76
+ src: imageUrlOrElement,
77
+ alt: ""
78
78
  });
79
79
  }
80
80
  return jsx("div", {
@@ -45,10 +45,10 @@ var UnresolvedView = function UnresolvedView(_ref) {
45
45
  }
46
46
  var imageTestId = "".concat(testId, "-unresolved-image");
47
47
  if (typeof imageUrlOrElement === 'string') {
48
- // eslint-disable-next-line jsx-a11y/alt-text
49
48
  return /*#__PURE__*/React.createElement("img", {
50
49
  "data-testid": imageTestId,
51
50
  src: imageUrlOrElement,
51
+ alt: "",
52
52
  className: ax(["_4t3i68cl _1bsbmgvx _5ral1f51 _rsufaqso"])
53
53
  });
54
54
  }
@@ -32,10 +32,10 @@ var ImageIcon = function ImageIcon(_ref) {
32
32
  loading: /*#__PURE__*/React.createElement(LoadingSkeletonOld, {
33
33
  testId: "".concat(testId, "-loading")
34
34
  }),
35
- // eslint-disable-next-line jsx-a11y/alt-text
36
35
  loaded: /*#__PURE__*/React.createElement("img", {
37
36
  src: url,
38
- "data-testid": "".concat(testId, "-image")
37
+ "data-testid": "".concat(testId, "-image"),
38
+ alt: ""
39
39
  })
40
40
  }, {
41
41
  errored: defaultIcon,
@@ -106,7 +106,8 @@ export var IconAndTitleLayoutOld = /*#__PURE__*/function (_React$Component) {
106
106
  , {
107
107
  className: "smart-link-icon",
108
108
  src: url,
109
- "data-testid": "".concat(testId, "-image")
109
+ "data-testid": "".concat(testId, "-image"),
110
+ alt: ""
110
111
  }),
111
112
  errored: errored,
112
113
  loading: /*#__PURE__*/React.createElement(Shimmer, {
@@ -116,13 +116,15 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
116
116
  });
117
117
  }
118
118
  return /*#__PURE__*/React.createElement(ImageLoader, {
119
- src: icon
119
+ src: icon,
120
+ loaded:
121
+ /*#__PURE__*/
120
122
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
121
- ,
122
- loaded: /*#__PURE__*/React.createElement(Icon, {
123
+ React.createElement(Icon, {
123
124
  className: "smart-link-icon",
124
125
  src: icon,
125
- "data-testid": "".concat(testId, "-image")
126
+ "data-testid": "".concat(testId, "-image"),
127
+ alt: ""
126
128
  }),
127
129
  errored: errored,
128
130
  loading: /*#__PURE__*/React.createElement(Shimmer, {
@@ -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: "35.1.5",
16
+ packageVersion: "35.1.6",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -62,7 +62,10 @@ export type BlockProps = {
62
62
  */
63
63
  export type ElementItem = {
64
64
  /**
65
- * Any additional CSS properties to apply to the element.
65
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-24430 Internal documentation for deprecation (no external access)}
66
+ * No planned alternative.
67
+ *
68
+ * Additional CSS properties on the element.
66
69
  */
67
70
  overrideCss?: SerializedStyles;
68
71
  /**
@@ -106,6 +109,8 @@ export type BaseActionItem = {
106
109
  */
107
110
  content?: React.ReactNode;
108
111
  /**
112
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-24430 Internal documentation for deprecation (no external access)}
113
+ * No planned alternative.
109
114
  * Additional CSS properties on the Action.
110
115
  */
111
116
  overrideCss?: SerializedStyles;
@@ -147,6 +152,9 @@ export type BaseDataActionItem = {
147
152
  */
148
153
  onClick?: () => any;
149
154
  /**
155
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-24430 Internal documentation for deprecation (no external access)}
156
+ * No planned alternative.
157
+ *
150
158
  * Additional CSS properties on the Action.
151
159
  */
152
160
  overrideCss?: SerializedStyles;
@@ -62,7 +62,10 @@ export type BlockProps = {
62
62
  */
63
63
  export type ElementItem = {
64
64
  /**
65
- * Any additional CSS properties to apply to the element.
65
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-24430 Internal documentation for deprecation (no external access)}
66
+ * No planned alternative.
67
+ *
68
+ * Additional CSS properties on the element.
66
69
  */
67
70
  overrideCss?: SerializedStyles;
68
71
  /**
@@ -106,6 +109,8 @@ export type BaseActionItem = {
106
109
  */
107
110
  content?: React.ReactNode;
108
111
  /**
112
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-24430 Internal documentation for deprecation (no external access)}
113
+ * No planned alternative.
109
114
  * Additional CSS properties on the Action.
110
115
  */
111
116
  overrideCss?: SerializedStyles;
@@ -147,6 +152,9 @@ export type BaseDataActionItem = {
147
152
  */
148
153
  onClick?: () => any;
149
154
  /**
155
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-24430 Internal documentation for deprecation (no external access)}
156
+ * No planned alternative.
157
+ *
150
158
  * Additional CSS properties on the Action.
151
159
  */
152
160
  overrideCss?: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "35.1.5",
3
+ "version": "35.1.6",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/linking-common": "^8.0.0",
53
53
  "@atlaskit/linking-types": "^9.6.0",
54
54
  "@atlaskit/logo": "^16.0.0",
55
- "@atlaskit/lozenge": "^12.0.0",
55
+ "@atlaskit/lozenge": "^12.1.0",
56
56
  "@atlaskit/menu": "^3.1.0",
57
57
  "@atlaskit/modal-dialog": "^13.0.0",
58
58
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
@@ -65,7 +65,7 @@
65
65
  "@atlaskit/textarea": "^8.0.0",
66
66
  "@atlaskit/textfield": "^8.0.0",
67
67
  "@atlaskit/theme": "^17.0.0",
68
- "@atlaskit/tokens": "^4.2.0",
68
+ "@atlaskit/tokens": "^4.3.0",
69
69
  "@atlaskit/tooltip": "^20.0.0",
70
70
  "@atlaskit/ufo": "^0.4.0",
71
71
  "@babel/runtime": "^7.0.0",
@@ -98,12 +98,12 @@
98
98
  "@atlaskit/css-reset": "^7.0.0",
99
99
  "@atlaskit/link-test-helpers": "^8.0.0",
100
100
  "@atlaskit/media-test-helpers": "^35.0.0",
101
- "@atlaskit/react-ufo": "^3.1.0",
101
+ "@atlaskit/react-ufo": "^3.2.0",
102
102
  "@atlaskit/ssr": "*",
103
103
  "@atlaskit/visual-regression": "*",
104
104
  "@atlassian/analytics-tooling": "*",
105
105
  "@atlassian/feature-flags-test-utils": "^0.3.0",
106
- "@atlassian/gemini": "1.16.4",
106
+ "@atlassian/gemini": "1.16.5",
107
107
  "@testing-library/dom": "^10.1.0",
108
108
  "@testing-library/jest-dom": "^6.4.5",
109
109
  "@testing-library/react": "^13.4.0",