@atlaskit/smart-card 32.2.0 → 32.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 32.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167504](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167504)
8
+ [`83a2ce1f5117e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/83a2ce1f5117e) -
9
+ Replaced deprecated typography styles with new components and tokens.
10
+ - Updated dependencies
11
+
3
12
  ## 32.2.0
4
13
 
5
14
  ### Minor Changes
@@ -17,7 +17,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
17
17
  var context = exports.context = {
18
18
  componentName: 'smart-cards',
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "32.2.0"
20
+ packageVersion: "32.2.1"
21
21
  };
22
22
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
23
23
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -21,8 +21,12 @@ var _utils = require("../../common/utils");
21
21
  var blockCardContentHeaderNameClassName = exports.blockCardContentHeaderNameClassName = 'block-card-content-header-name';
22
22
  var baseStyles = (0, _react.css)({
23
23
  font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
- lineHeight: (0, _utils.gs)(2.5),
24
+ /**
25
+ * The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
26
+ * but 16px in legacy theme which causes alignment issues.
27
+ * Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
28
+ */
29
+ lineHeight: '20px',
26
30
  // Spec: show max two lines.
27
31
  display: '-webkit-box',
28
32
  overflow: 'hidden',
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "32.2.0",
20
+ packageVersion: "32.2.1",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "32.2.0"
7
+ packageVersion: "32.2.1"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -14,8 +14,12 @@ import { gs } from '../../common/utils';
14
14
  export const blockCardContentHeaderNameClassName = 'block-card-content-header-name';
15
15
  const baseStyles = css({
16
16
  font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
- lineHeight: gs(2.5),
17
+ /**
18
+ * The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
19
+ * but 16px in legacy theme which causes alignment issues.
20
+ * Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
21
+ */
22
+ lineHeight: '20px',
19
23
  // Spec: show max two lines.
20
24
  display: '-webkit-box',
21
25
  overflow: 'hidden',
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
7
7
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "32.2.0",
10
+ packageVersion: "32.2.1",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -10,7 +10,7 @@ export var ANALYTICS_CHANNEL = 'media';
10
10
  export var context = {
11
11
  componentName: 'smart-cards',
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "32.2.0"
13
+ packageVersion: "32.2.1"
14
14
  };
15
15
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
16
16
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -14,8 +14,12 @@ import { gs } from '../../common/utils';
14
14
  export var blockCardContentHeaderNameClassName = 'block-card-content-header-name';
15
15
  var baseStyles = css({
16
16
  font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
- lineHeight: gs(2.5),
17
+ /**
18
+ * The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
19
+ * but 16px in legacy theme which causes alignment issues.
20
+ * Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
21
+ */
22
+ lineHeight: '20px',
19
23
  // Spec: show max two lines.
20
24
  display: '-webkit-box',
21
25
  overflow: 'hidden',
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "32.2.0",
13
+ packageVersion: "32.2.1",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "32.2.0",
3
+ "version": "32.2.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,9 +36,9 @@
36
36
  "@atlaskit/form": "^10.6.0",
37
37
  "@atlaskit/frontend-utilities": "^2.7.0",
38
38
  "@atlaskit/heading": "^3.1.0",
39
- "@atlaskit/icon": "^22.27.0",
39
+ "@atlaskit/icon": "^22.28.0",
40
40
  "@atlaskit/icon-file-type": "^6.7.0",
41
- "@atlaskit/icon-object": "^6.7.0",
41
+ "@atlaskit/icon-object": "^6.8.0",
42
42
  "@atlaskit/icon-priority": "^6.3.0",
43
43
  "@atlaskit/legacy-custom-icons": "^0.20.0",
44
44
  "@atlaskit/link-analytics": "^8.5.0",