@atlaskit/smart-card 26.3.9 → 26.3.10

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,12 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 26.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d8263ae659f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8263ae659f) - [ux] Small css fix for avatar alignment in smart links
8
+ - [`438b90799c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/438b90799c4) - Removes urlHash from linking platform events.
9
+
3
10
  ## 26.3.9
4
11
 
5
12
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.LinkAnalyticsContext = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _analyticsNext = require("@atlaskit/analytics-next");
10
- var _resolvedAttributes = require("@atlaskit/link-analytics/resolved-attributes");
11
10
  /**
12
11
  * Provides an analytics context to supply attributes to events based on a URL
13
12
  */
@@ -18,15 +17,12 @@ var LinkAnalyticsContext = function LinkAnalyticsContext(_ref) {
18
17
  id = _ref.id,
19
18
  children = _ref.children,
20
19
  source = _ref.source;
21
- var _getUrlAttributes = (0, _resolvedAttributes.getUrlAttributes)(url),
22
- urlHash = _getUrlAttributes.urlHash;
23
20
  var displayCategory = display === 'url' ? 'link' : undefined;
24
21
  return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
25
22
  data: {
26
23
  source: source,
27
24
  attributes: {
28
25
  displayCategory: displayCategory,
29
- urlHash: urlHash,
30
26
  display: display,
31
27
  id: id
32
28
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.3.9",
3
+ "version": "26.3.10",
4
4
  "sideEffects": false
5
5
  }
@@ -14,7 +14,8 @@ var _templateObject, _templateObject2;
14
14
  /** @jsx jsx */
15
15
  var MAX_COUNT = 4;
16
16
  var getStyles = function getStyles(size) {
17
- var styles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n "])));
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
18
+ var styles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n ul {\n margin-right: 8px;\n }\n "])));
18
19
  switch (size) {
19
20
  case _constants.SmartLinkSize.XLarge:
20
21
  case _constants.SmartLinkSize.Large:
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { AnalyticsContext } from '@atlaskit/analytics-next';
3
- import { getUrlAttributes } from '@atlaskit/link-analytics/resolved-attributes';
4
3
  /**
5
4
  * Provides an analytics context to supply attributes to events based on a URL
6
5
  */
@@ -11,16 +10,12 @@ export const LinkAnalyticsContext = ({
11
10
  children,
12
11
  source
13
12
  }) => {
14
- const {
15
- urlHash
16
- } = getUrlAttributes(url);
17
13
  const displayCategory = display === 'url' ? 'link' : undefined;
18
14
  return /*#__PURE__*/React.createElement(AnalyticsContext, {
19
15
  data: {
20
16
  source,
21
17
  attributes: {
22
18
  displayCategory,
23
- urlHash,
24
19
  display,
25
20
  id
26
21
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.3.9",
3
+ "version": "26.3.10",
4
4
  "sideEffects": false
5
5
  }
@@ -5,8 +5,12 @@ import AtlaskitAvatarGroup from '@atlaskit/avatar-group';
5
5
  import { SmartLinkSize } from '../../../../../constants';
6
6
  const MAX_COUNT = 4;
7
7
  const getStyles = size => {
8
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
8
9
  const styles = css`
9
10
  display: inline-flex;
11
+ ul {
12
+ margin-right: 8px;
13
+ }
10
14
  `;
11
15
  switch (size) {
12
16
  case SmartLinkSize.XLarge:
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { AnalyticsContext } from '@atlaskit/analytics-next';
3
- import { getUrlAttributes } from '@atlaskit/link-analytics/resolved-attributes';
4
3
  /**
5
4
  * Provides an analytics context to supply attributes to events based on a URL
6
5
  */
@@ -11,15 +10,12 @@ export var LinkAnalyticsContext = function LinkAnalyticsContext(_ref) {
11
10
  id = _ref.id,
12
11
  children = _ref.children,
13
12
  source = _ref.source;
14
- var _getUrlAttributes = getUrlAttributes(url),
15
- urlHash = _getUrlAttributes.urlHash;
16
13
  var displayCategory = display === 'url' ? 'link' : undefined;
17
14
  return /*#__PURE__*/React.createElement(AnalyticsContext, {
18
15
  data: {
19
16
  source: source,
20
17
  attributes: {
21
18
  displayCategory: displayCategory,
22
- urlHash: urlHash,
23
19
  display: display,
24
20
  id: id
25
21
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.3.9",
3
+ "version": "26.3.10",
4
4
  "sideEffects": false
5
5
  }
@@ -7,7 +7,8 @@ import AtlaskitAvatarGroup from '@atlaskit/avatar-group';
7
7
  import { SmartLinkSize } from '../../../../../constants';
8
8
  var MAX_COUNT = 4;
9
9
  var getStyles = function getStyles(size) {
10
- var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n "])));
10
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
11
+ var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n ul {\n margin-right: 8px;\n }\n "])));
11
12
  switch (size) {
12
13
  case SmartLinkSize.XLarge:
13
14
  case SmartLinkSize.Large:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.3.9",
3
+ "version": "26.3.10",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"