@atlaskit/smart-card 26.50.5 → 26.50.7

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 (94) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client/package.json +1 -1
  3. package/dist/cjs/utils/analytics/analytics.js +1 -1
  4. package/dist/cjs/view/BlockCard/components/ActionIcon.js +2 -0
  5. package/dist/cjs/view/BlockCard/components/ActionList.js +4 -1
  6. package/dist/cjs/view/BlockCard/components/Content.js +1 -0
  7. package/dist/cjs/view/BlockCard/components/ContentFooter.js +1 -0
  8. package/dist/cjs/view/BlockCard/components/Frame.js +1 -0
  9. package/dist/cjs/view/BlockCard/components/Name.js +1 -0
  10. package/dist/cjs/view/BlockCard/components/Provider.js +1 -0
  11. package/dist/cjs/view/BlockCard/views/ResolvingView.js +2 -1
  12. package/dist/cjs/view/EmbedCard/components/styled.js +4 -5
  13. package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -0
  14. package/dist/cjs/view/EmbedModal/components/link-info/styled.js +55 -8
  15. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +7 -17
  16. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +38 -10
  17. package/dist/cjs/view/InlineCard/Icon.js +16 -4
  18. package/dist/cjs/view/LinkUrl/index.js +1 -1
  19. package/dist/cjs/view/common/Byline.js +1 -0
  20. package/dist/cjs/view/common/MetadataList.js +1 -0
  21. package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +5 -5
  22. package/dist/cjs/view/common/ai-prism/constants.js +1 -2
  23. package/dist/cjs/view/common/utils.js +3 -0
  24. package/dist/es2019/utils/analytics/analytics.js +1 -1
  25. package/dist/es2019/view/BlockCard/components/ActionIcon.js +2 -0
  26. package/dist/es2019/view/BlockCard/components/ActionList.js +4 -1
  27. package/dist/es2019/view/BlockCard/components/Content.js +1 -0
  28. package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -0
  29. package/dist/es2019/view/BlockCard/components/Frame.js +1 -0
  30. package/dist/es2019/view/BlockCard/components/Name.js +1 -0
  31. package/dist/es2019/view/BlockCard/components/Provider.js +1 -0
  32. package/dist/es2019/view/BlockCard/views/ResolvingView.js +2 -1
  33. package/dist/es2019/view/EmbedCard/components/styled.js +4 -5
  34. package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -0
  35. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +45 -57
  36. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -18
  37. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +35 -45
  38. package/dist/es2019/view/InlineCard/Icon.js +16 -14
  39. package/dist/es2019/view/LinkUrl/index.js +1 -1
  40. package/dist/es2019/view/common/Byline.js +1 -0
  41. package/dist/es2019/view/common/MetadataList.js +1 -0
  42. package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +6 -6
  43. package/dist/es2019/view/common/ai-prism/constants.js +0 -1
  44. package/dist/es2019/view/common/utils.js +4 -0
  45. package/dist/esm/utils/analytics/analytics.js +1 -1
  46. package/dist/esm/view/BlockCard/components/ActionIcon.js +2 -0
  47. package/dist/esm/view/BlockCard/components/ActionList.js +4 -1
  48. package/dist/esm/view/BlockCard/components/Content.js +1 -0
  49. package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -0
  50. package/dist/esm/view/BlockCard/components/Frame.js +1 -0
  51. package/dist/esm/view/BlockCard/components/Name.js +1 -0
  52. package/dist/esm/view/BlockCard/components/Provider.js +1 -0
  53. package/dist/esm/view/BlockCard/views/ResolvingView.js +2 -1
  54. package/dist/esm/view/EmbedCard/components/styled.js +4 -5
  55. package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -0
  56. package/dist/esm/view/EmbedModal/components/link-info/styled.js +55 -7
  57. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -18
  58. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +38 -9
  59. package/dist/esm/view/InlineCard/Icon.js +16 -4
  60. package/dist/esm/view/LinkUrl/index.js +1 -1
  61. package/dist/esm/view/common/Byline.js +1 -0
  62. package/dist/esm/view/common/MetadataList.js +1 -0
  63. package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +6 -6
  64. package/dist/esm/view/common/ai-prism/constants.js +0 -1
  65. package/dist/esm/view/common/utils.js +4 -0
  66. package/dist/types/common/analytics/generated/create-event-payload.d.ts +1 -1
  67. package/dist/types/common/analytics/generated/use-analytics-events.d.ts +1 -1
  68. package/dist/types/state/analytics/useLinkClicked.d.ts +2 -2
  69. package/dist/types/utils/actions/create-invoke-request.d.ts +1 -1
  70. package/dist/types/utils/analytics/click.d.ts +1 -1
  71. package/dist/types/view/Card/index.d.ts +1 -1
  72. package/dist/types/view/EmbedCard/constants.d.ts +3 -3
  73. package/dist/types/view/EmbedCard/utils.d.ts +1 -1
  74. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +8 -0
  75. package/dist/types/view/LinkUrl/LinkWarningModal/index.d.ts +2 -2
  76. package/dist/types/view/common/ai-prism/constants.d.ts +0 -1
  77. package/dist/types-ts4.5/common/analytics/generated/create-event-payload.d.ts +1 -1
  78. package/dist/types-ts4.5/common/analytics/generated/use-analytics-events.d.ts +1 -1
  79. package/dist/types-ts4.5/state/analytics/useLinkClicked.d.ts +2 -2
  80. package/dist/types-ts4.5/utils/actions/create-invoke-request.d.ts +1 -1
  81. package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
  82. package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
  83. package/dist/types-ts4.5/view/EmbedCard/constants.d.ts +3 -3
  84. package/dist/types-ts4.5/view/EmbedCard/utils.d.ts +1 -1
  85. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +8 -0
  86. package/dist/types-ts4.5/view/LinkUrl/LinkWarningModal/index.d.ts +2 -2
  87. package/dist/types-ts4.5/view/common/ai-prism/constants.d.ts +0 -1
  88. package/hooks/package.json +1 -1
  89. package/hover-card/package.json +1 -1
  90. package/in-product/package.json +1 -1
  91. package/link-url/package.json +1 -1
  92. package/package.json +2 -2
  93. package/ssr/package.json +1 -1
  94. package/types/package.json +1 -1
@@ -1,73 +1,61 @@
1
1
  import { css } from '@emotion/react';
2
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
3
- export const containerStyles = css`
4
- align-items: center;
5
- display: flex;
6
- gap: ${"var(--ds-space-100, 8px)"};
7
- justify-content: space-between;
2
+ export const containerStyles = css({
3
+ alignItems: 'center',
4
+ display: 'flex',
5
+ gap: "var(--ds-space-100, 8px)",
6
+ justifyContent: 'space-between',
8
7
  // AK ModalBody has 2px padding top and bottom.
9
8
  // Using 14px here to create 16px gap between
10
9
  // link info and iframe
11
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 14px
12
- ${"var(--ds-space-300, 24px)"};
13
- `;
10
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 14px ${"var(--ds-space-300, 24px)"}`
11
+ });
14
12
  const iconSize = '24px';
15
13
  // EDM-7328: CSS Specificity
16
14
  // An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
17
15
  // Specify flex ui icon selector to increase specificity weight to 0-2-1.
18
- export const iconCss = css`
19
- &,
20
- [data-smart-element-icon] img,
21
- [data-smart-element-icon] span,
22
- [data-smart-element-icon] svg,
23
- img,
24
- span,
25
- svg {
26
- height: ${iconSize};
27
- min-height: ${iconSize};
28
- max-height: ${iconSize};
29
- width: ${iconSize};
30
- min-width: ${iconSize};
31
- max-width: ${iconSize};
16
+ export const iconCss = css({
17
+ '&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
18
+ height: iconSize,
19
+ minHeight: iconSize,
20
+ maxHeight: iconSize,
21
+ width: iconSize,
22
+ minWidth: iconSize,
23
+ maxWidth: iconSize
32
24
  }
33
- `;
25
+ });
34
26
  const height = '20px';
35
- export const titleCss = css`
36
- flex: 1 1 auto;
37
-
38
- h3 {
39
- flex: 1 1 auto;
40
- font-size: 16px;
41
- font-weight: 400;
42
- line-height: ${height};
43
-
44
- display: -webkit-box;
45
- margin-bottom: 0;
46
- overflow: hidden;
47
- text-overflow: ellipsis;
48
- word-break: break-word;
49
- -webkit-line-clamp: 1;
50
- -webkit-box-orient: vertical;
51
- // Fallback options
52
- @supports not (-webkit-line-clamp: 1) {
53
- max-height: ${height};
27
+ export const titleCss = css({
28
+ flex: '1 1 auto',
29
+ h3: {
30
+ flex: '1 1 auto',
31
+ fontSize: '16px',
32
+ fontWeight: 400,
33
+ lineHeight: height,
34
+ display: '-webkit-box',
35
+ marginBottom: 0,
36
+ overflow: 'hidden',
37
+ textOverflow: 'ellipsis',
38
+ wordBreak: 'break-word',
39
+ WebkitLineClamp: 1,
40
+ WebkitBoxOrient: 'vertical',
41
+ '@supports not (-webkit-line-clamp: 1)': {
42
+ maxHeight: height
54
43
  }
55
44
  }
56
- `;
57
- export const actionCss = css`
58
- display: flex;
59
- flex: 0 0 auto;
60
- gap: ${"var(--ds-space-050, 4px)"};
61
- line-height: ${height};
62
- span {
63
- line-height: ${height};
64
- }
65
-
66
- @media only screen and (max-width: 980px) {
45
+ });
46
+ export const actionCss = css({
47
+ display: 'flex',
48
+ flex: '0 0 auto',
49
+ gap: "var(--ds-space-050, 4px)",
50
+ lineHeight: height,
51
+ span: {
52
+ lineHeight: height
53
+ },
54
+ '@media only screen and (max-width: 980px)': {
67
55
  // Hide resize button if the screen is smaller than the min width
68
56
  // or too small to have enough impact to matter.
69
- .smart-link-resize-button {
70
- display: none;
57
+ '.smart-link-resize-button': {
58
+ display: 'none'
71
59
  }
72
60
  }
73
- `;
61
+ });
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import Loadable from 'react-loadable';
3
- import { B200, B400, N700, R400 } from '@atlaskit/theme/colors';
3
+ import { R400 } from '@atlaskit/theme/colors';
4
+ import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
4
5
  import DocumentIcon from '@atlaskit/icon-file-type/glyph/document/16';
5
6
  import BlogIcon from '@atlaskit/icon-object/glyph/blog/16';
6
7
  import { IconType } from '../../../../../constants';
@@ -113,25 +114,14 @@ const AtlaskitIcon = ({
113
114
  const ImportedIcon = importIcon(importFn);
114
115
  switch (icon) {
115
116
  case IconType.Confluence:
116
- return /*#__PURE__*/React.createElement(ImportedIcon, {
117
- testId: testId,
118
- textColor: `var(--ds-text-subtle, ${N700})`
119
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
120
- iconColor: B200,
121
- iconGradientStart: B400,
122
- iconGradientStop: B200
123
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
117
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, {
118
+ appearance: "brand",
119
+ testId: testId
124
120
  });
125
121
  case IconType.Jira:
126
- // Logo component has a different prop set from other icon components
127
- return /*#__PURE__*/React.createElement(ImportedIcon, {
128
- testId: testId,
129
- textColor: `var(--ds-text-subtle, ${N700})`
130
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
131
- iconColor: B200,
132
- iconGradientStart: B400,
133
- iconGradientStop: B200
134
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
122
+ return /*#__PURE__*/React.createElement(JiraIcon, {
123
+ appearance: "brand",
124
+ testId: testId
135
125
  });
136
126
  case IconType.Error:
137
127
  case IconType.Forbidden:
@@ -1,51 +1,41 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N800 } from '@atlaskit/theme/colors';
3
3
  import { getTruncateStyles } from '../../../../utils';
4
- export const dropdownItemGroupStyles = css`
5
- button {
6
- width: 220px;
7
-
8
- &:hover {
9
- background-color: inherit;
10
- cursor: default;
4
+ export const dropdownItemGroupStyles = css({
5
+ button: {
6
+ width: '220px',
7
+ '&:hover': {
8
+ backgroundColor: 'inherit',
9
+ cursor: 'default'
11
10
  }
12
11
  }
13
- `;
14
- const sharedBlockStyles = css`
15
- display: flex;
16
- gap: 0.5rem;
17
- line-height: 1rem;
18
- min-width: 0;
19
- overflow: hidden;
20
- flex-direction: row;
21
- align-items: center;
22
- `;
23
- export const contentStyles = css`
24
- ${sharedBlockStyles};
25
-
26
- margin-top: ${"var(--ds-space-025, 2px)"};
27
- align-items: flex-start;
28
-
29
- > span,
30
- > div {
31
- font-size: 0.875rem;
32
- line-height: 1.25rem;
33
- color: ${`var(--ds-text, ${N800})`};
12
+ });
13
+ const sharedBlockStyles = css({
14
+ display: 'flex',
15
+ gap: '0.5rem',
16
+ lineHeight: '1rem',
17
+ minWidth: 0,
18
+ overflow: 'hidden',
19
+ flexDirection: 'row',
20
+ alignItems: 'center'
21
+ });
22
+ export const contentStyles = css(sharedBlockStyles, {
23
+ marginTop: "var(--ds-space-025, 2px)",
24
+ alignItems: 'flex-start',
25
+ '> span, > div': {
26
+ fontSize: '0.875rem',
27
+ lineHeight: '1.25rem',
28
+ color: `var(--ds-text, ${N800})`
34
29
  }
35
- `;
36
-
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
38
- export const linkStyles = css`
39
- ${sharedBlockStyles};
40
-
41
- cursor: pointer;
42
- font-size: 0.875rem;
43
- margin-top: 10px;
44
- margin-left: ${"var(--ds-space-400, 32px)"};
45
- margin-bottom: ${"var(--ds-space-025, 2px)"};
46
- `;
47
- export const textStyles = maxLines => css`
48
- line-height: 1rem;
49
- white-space: normal;
50
- ${getTruncateStyles(maxLines)};
51
- `;
30
+ });
31
+ export const linkStyles = css(sharedBlockStyles, {
32
+ cursor: 'pointer',
33
+ fontSize: '0.875rem',
34
+ marginTop: "var(--ds-space-100, 8px)",
35
+ marginLeft: "var(--ds-space-400, 32px)",
36
+ marginBottom: "var(--ds-space-025, 2px)"
37
+ });
38
+ export const textStyles = maxLines => css({
39
+ lineHeight: '1rem',
40
+ whiteSpace: 'normal'
41
+ }, getTruncateStyles(maxLines));
@@ -7,30 +7,32 @@ import React from 'react';
7
7
  // Current rationale: vertically positioned at the top of
8
8
  // the smart card container (when set to 0). Offset this
9
9
  // to position it with appropriate whitespace from the top.
10
- export const Icon = styled.img`
11
- height: 14px;
12
- width: 14px;
13
- margin-right: ${"var(--ds-space-050, 4px)"};
14
- border-radius: 2px;
15
- user-select: none;
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- transform: translate(-50%, -50%);
20
- `;
10
+ export const Icon = styled.img({
11
+ height: '14px',
12
+ width: '14px',
13
+ marginRight: "var(--ds-space-050, 4px)",
14
+ borderRadius: '2px',
15
+ userSelect: 'none',
16
+ position: 'absolute',
17
+ top: '50%',
18
+ left: '50%',
19
+ transform: 'translate(-50%, -50%)'
20
+ });
21
21
 
22
22
  // Used for 'untrue' icons which claim to be 16x16 but
23
23
  // are less than that in height/width.
24
24
  // TODO: Replace this override with proper AtlasKit solution.
25
- export const AKIconWrapper = styled.span`
26
- margin-right: ${"var(--ds-space-negative-025, -2px)"};
27
- `;
25
+ export const AKIconWrapper = styled.span({
26
+ marginRight: "var(--ds-space-negative-025, -2px)"
27
+ });
28
28
  export const Shimmer = ({
29
29
  testId
30
30
  }) => {
31
31
  const skeletonCustomStyles = {
32
32
  position: 'absolute',
33
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
33
34
  top: '50%',
35
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
34
36
  left: '50%',
35
37
  transform: 'translate(-50%, -50%)',
36
38
  marginRight: "var(--ds-space-050, 4px)"
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "26.50.5",
10
+ packageVersion: "26.50.7",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -13,6 +13,7 @@ export const Byline = ({
13
13
  lineHeight: gs(2.5),
14
14
  color: `${`var(--ds-text-subtlest, ${N300})`}`,
15
15
  fontWeight: 'normal',
16
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
16
17
  marginTop: gs(0.5),
17
18
  // Spec: only allow two lines MAX to be shown.
18
19
  display: '-webkit-box',
@@ -11,6 +11,7 @@ export const MetadataList = ({
11
11
  return jsx("div", {
12
12
  css: {
13
13
  display: 'flex',
14
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
14
15
  marginTop: gs(0.5),
15
16
  alignItems: 'center',
16
17
  '&:last-child': {
@@ -1,18 +1,18 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import React, { useEffect, useRef } from 'react';
4
- import { GLOW_SIZE, OUTER_BORDER_RADIUS } from '../constants';
4
+ import { OUTER_BORDER_RADIUS } from '../constants';
5
5
  let namespaceUUID = 0;
6
6
  const svgStyles = css({
7
7
  position: 'absolute',
8
8
  borderRadius: OUTER_BORDER_RADIUS
9
9
  });
10
10
  const blurredStyles = css({
11
- width: `calc(100% - ${GLOW_SIZE / 2}px)`,
12
- height: `calc(100% - ${GLOW_SIZE / 2}px)`,
13
- top: GLOW_SIZE / 2,
14
- left: GLOW_SIZE / 2,
15
- filter: `blur(${GLOW_SIZE}px)`,
11
+ width: `calc(100% - ${"var(--ds-space-050, 4px)"})`,
12
+ height: `calc(100% - ${"var(--ds-space-050, 4px)"})`,
13
+ top: "var(--ds-space-050, 4px)",
14
+ left: "var(--ds-space-050, 4px)",
15
+ filter: `blur(${"var(--ds-space-100, 8px)"})`,
16
16
  // for safari... : https://stackoverflow.com/a/71353198
17
17
  backfaceVisibility: 'hidden',
18
18
  transform: 'translate3d(0, 0, 0)'
@@ -4,7 +4,6 @@
4
4
  * with modifications.
5
5
  */
6
6
 
7
- export const GLOW_SIZE = 8;
8
7
  export const INNER_BORDER_RADIUS = 8;
9
8
  export const OUTER_BORDER_RADIUS = 10;
10
9
 
@@ -1,4 +1,8 @@
1
1
  import facepaint from 'facepaint';
2
+
3
+ // this function is used for spacing, fontsize and line height,
4
+ // once design tokens have been established for the all of these categories
5
+ // then this function can be replaced with the tokens
2
6
  const gs = times => `${8 * times}px`;
3
7
  const br = (times = 1) => `${3 * times}px`;
4
8
  const mq = facepaint(['@media(min-width: 576px)']);
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "26.50.5"
18
+ packageVersion: "26.50.7"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -8,7 +8,9 @@ import CrossIcon from '@atlaskit/icon/glyph/cross';
8
8
  export var spinnerStyles = {
9
9
  display: 'flex',
10
10
  position: 'absolute',
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
11
12
  left: '50%',
13
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
12
14
  top: '50%',
13
15
  transform: 'translate(-50%, -50%)'
14
16
  };
@@ -17,13 +17,16 @@ export var ActionList = function ActionList(_ref) {
17
17
  return jsx("div", {
18
18
  css: mq({
19
19
  display: 'flex',
20
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
20
21
  marginTop: [gs(2), 0]
21
22
  })
22
23
  }, jsx(ButtonGroup, null, actionsToShow.map(function (action) {
23
24
  return jsx(Action, _extends({
24
25
  key: action.id
25
26
  }, action));
26
- })), actionsToList.length ? jsx("div", {
27
+ })), actionsToList.length ?
28
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
29
+ jsx("div", {
27
30
  css: {
28
31
  marginLeft: gs(0.5)
29
32
  }
@@ -14,6 +14,7 @@ export var Content = function Content(_ref) {
14
14
  isCompact = _ref$isCompact === void 0 ? false : _ref$isCompact;
15
15
  return jsx("div", {
16
16
  css: mq({
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
17
18
  padding: isCompact ? gs(1) : gs(2),
18
19
  display: 'flex',
19
20
  flexDirection: 'column',
@@ -13,6 +13,7 @@ export var ContentFooter = function ContentFooter(_ref) {
13
13
  flexGrow: [1, 'unset'],
14
14
  justifyContent: [hasSpaceBetween ? 'space-between' : 'flex-end', 'space-between'],
15
15
  alignItems: ['unset', 'center'],
16
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
16
17
  marginTop: [gs(1), gs(1.5)]
17
18
  }),
18
19
  className: contentFooterClassName
@@ -65,6 +65,7 @@ export var CompactFrame = function CompactFrame(_ref2) {
65
65
  height: inheritDimensions ? '100%' : gs(5),
66
66
  backgroundColor: "var(--ds-background-neutral, ".concat(N20A, ")"),
67
67
  width: ['calc(100% - 16px)', '100%'],
68
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
68
69
  padding: ["0px ".concat(gs(1)), '0']
69
70
  })),
70
71
  "data-testid": testId,
@@ -19,6 +19,7 @@ export var Name = function Name(_ref) {
19
19
  css: {
20
20
  fontSize: "".concat(fontSize(), "px"),
21
21
  fontWeight: 500,
22
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
22
23
  marginLeft: isLeftPadded ? gs(1) : '0',
23
24
  lineHeight: gs(2.5),
24
25
  // Spec: show max two lines.
@@ -27,6 +27,7 @@ export var Provider = function Provider(_ref) {
27
27
  css: {
28
28
  color: "var(--ds-text-subtlest, ".concat(N300, ")"),
29
29
  margin: 0,
30
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
30
31
  marginLeft: gs(0.5),
31
32
  // EDM-713: fixes copy-paste from renderer to editor for Firefox
32
33
  // due to HTML its unwrapping behaviour on paste.
@@ -4,9 +4,9 @@ import DocumentFilledIcon from '@atlaskit/icon/glyph/document-filled';
4
4
  import { N50, N90 } from '@atlaskit/theme/colors';
5
5
  import { fontSize } from '@atlaskit/theme/constants';
6
6
  import { Frame } from '../components/Frame';
7
- import { gs } from '../../common/utils';
8
7
  import { FormattedMessage } from 'react-intl-next';
9
8
  import { messages } from '../../../messages';
9
+ import { gs } from '../../common/utils';
10
10
  /**
11
11
  * Class name for selecting non-flexible resolving block card
12
12
  *
@@ -34,6 +34,7 @@ export var ResolvingView = function ResolvingView(_ref) {
34
34
  css: {
35
35
  fontSize: "".concat(fontSize(), "px"),
36
36
  color: "var(--ds-text-subtlest, ".concat(N90, ")"),
37
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
37
38
  marginLeft: gs(0.5)
38
39
  }
39
40
  }, jsx(FormattedMessage, messages.loading)));
@@ -71,11 +71,12 @@ function visible(_ref7) {
71
71
  export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " &:hover {\n text-decoration: none;\n }\n"])), function (props) {
72
72
  return wrapperStyles(props);
73
73
  });
74
-
75
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
76
74
  export var Wrapper = styled.div(function (props) {
77
75
  return wrapperStyles(props);
78
76
  }, {
77
+ // We are keeping this margin as a hardcoded variable as it is not a standard token size and needs
78
+ // to be thoroughly checked with a designer so that we do not miss an unintended visual change
79
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
79
80
  marginTop: '10px'
80
81
  });
81
82
  export var embedHeaderHeight = 32;
@@ -160,10 +161,8 @@ export var Byline = styled.div({
160
161
  fontWeight: 'normal',
161
162
  lineHeight: 16 / 12
162
163
  }, ellipsis('100%'));
163
-
164
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
165
164
  export var Description = styled.div({
166
- marginTop: '7px',
165
+ marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
167
166
  color: "var(--ds-text, ".concat(colors.N800, ")"),
168
167
  fontSize: '12px',
169
168
  fontWeight: 'normal',
@@ -27,7 +27,9 @@ export var EmbedCardErroredView = function EmbedCardErroredView(_ref) {
27
27
  }), jsx("span", {
28
28
  css: {
29
29
  fontSize: "".concat(fontSize(), "px"),
30
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
30
31
  marginLeft: gs(0.5),
32
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
31
33
  marginRight: gs(0.5),
32
34
  display: '-webkit-box',
33
35
  overflow: 'hidden',
@@ -1,13 +1,61 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
1
  import { css } from '@emotion/react';
4
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
5
- export var containerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n gap: ", ";\n justify-content: space-between;\n // AK ModalBody has 2px padding top and bottom.\n // Using 14px here to create 16px gap between\n // link info and iframe\n padding: ", " ", " 14px\n ", ";\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
2
+ export var containerStyles = css({
3
+ alignItems: 'center',
4
+ display: 'flex',
5
+ gap: "var(--ds-space-100, 8px)",
6
+ justifyContent: 'space-between',
7
+ // AK ModalBody has 2px padding top and bottom.
8
+ // Using 14px here to create 16px gap between
9
+ // link info and iframe
10
+ padding: "var(--ds-space-300, 24px)".concat(" ", "var(--ds-space-300, 24px)", " 14px ", "var(--ds-space-300, 24px)")
11
+ });
6
12
  var iconSize = '24px';
7
13
  // EDM-7328: CSS Specificity
8
14
  // An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
9
15
  // Specify flex ui icon selector to increase specificity weight to 0-2-1.
10
- export var iconCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &,\n [data-smart-element-icon] img,\n [data-smart-element-icon] span,\n [data-smart-element-icon] svg,\n img,\n span,\n svg {\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n"])), iconSize, iconSize, iconSize, iconSize, iconSize, iconSize);
16
+ export var iconCss = css({
17
+ '&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
18
+ height: iconSize,
19
+ minHeight: iconSize,
20
+ maxHeight: iconSize,
21
+ width: iconSize,
22
+ minWidth: iconSize,
23
+ maxWidth: iconSize
24
+ }
25
+ });
11
26
  var height = '20px';
12
- export var titleCss = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex: 1 1 auto;\n\n h3 {\n flex: 1 1 auto;\n font-size: 16px;\n font-weight: 400;\n line-height: ", ";\n\n display: -webkit-box;\n margin-bottom: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-word;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n // Fallback options\n @supports not (-webkit-line-clamp: 1) {\n max-height: ", ";\n }\n }\n"])), height, height);
13
- export var actionCss = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex: 0 0 auto;\n gap: ", ";\n line-height: ", ";\n span {\n line-height: ", ";\n }\n\n @media only screen and (max-width: 980px) {\n // Hide resize button if the screen is smaller than the min width\n // or too small to have enough impact to matter.\n .smart-link-resize-button {\n display: none;\n }\n }\n"])), "var(--ds-space-050, 4px)", height, height);
27
+ export var titleCss = css({
28
+ flex: '1 1 auto',
29
+ h3: {
30
+ flex: '1 1 auto',
31
+ fontSize: '16px',
32
+ fontWeight: 400,
33
+ lineHeight: height,
34
+ display: '-webkit-box',
35
+ marginBottom: 0,
36
+ overflow: 'hidden',
37
+ textOverflow: 'ellipsis',
38
+ wordBreak: 'break-word',
39
+ WebkitLineClamp: 1,
40
+ WebkitBoxOrient: 'vertical',
41
+ '@supports not (-webkit-line-clamp: 1)': {
42
+ maxHeight: height
43
+ }
44
+ }
45
+ });
46
+ export var actionCss = css({
47
+ display: 'flex',
48
+ flex: '0 0 auto',
49
+ gap: "var(--ds-space-050, 4px)",
50
+ lineHeight: height,
51
+ span: {
52
+ lineHeight: height
53
+ },
54
+ '@media only screen and (max-width: 980px)': {
55
+ // Hide resize button if the screen is smaller than the min width
56
+ // or too small to have enough impact to matter.
57
+ '.smart-link-resize-button': {
58
+ display: 'none'
59
+ }
60
+ }
61
+ });
@@ -2,7 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  var _importIconMapper;
3
3
  import React from 'react';
4
4
  import Loadable from 'react-loadable';
5
- import { B200, B400, N700, R400 } from '@atlaskit/theme/colors';
5
+ import { R400 } from '@atlaskit/theme/colors';
6
+ import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
6
7
  import DocumentIcon from '@atlaskit/icon-file-type/glyph/document/16';
7
8
  import BlogIcon from '@atlaskit/icon-object/glyph/blog/16';
8
9
  import { IconType } from '../../../../../constants';
@@ -179,25 +180,14 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
179
180
  var ImportedIcon = importIcon(importFn);
180
181
  switch (icon) {
181
182
  case IconType.Confluence:
182
- return /*#__PURE__*/React.createElement(ImportedIcon, {
183
- testId: testId,
184
- textColor: "var(--ds-text-subtle, ".concat(N700, ")")
185
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
186
- iconColor: B200,
187
- iconGradientStart: B400,
188
- iconGradientStop: B200
189
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
183
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, {
184
+ appearance: "brand",
185
+ testId: testId
190
186
  });
191
187
  case IconType.Jira:
192
- // Logo component has a different prop set from other icon components
193
- return /*#__PURE__*/React.createElement(ImportedIcon, {
194
- testId: testId,
195
- textColor: "var(--ds-text-subtle, ".concat(N700, ")")
196
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
197
- iconColor: B200,
198
- iconGradientStart: B400,
199
- iconGradientStop: B200
200
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
188
+ return /*#__PURE__*/React.createElement(JiraIcon, {
189
+ appearance: "brand",
190
+ testId: testId
201
191
  });
202
192
  case IconType.Error:
203
193
  case IconType.Forbidden: