@atlaskit/smart-card 27.8.3 → 27.8.4

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 (68) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/BlockCard/views/flexible/styled.js +4 -4
  4. package/dist/cjs/view/EmbedModal/components/link-info/styled.js +4 -4
  5. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
  6. package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +3 -1
  7. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  8. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +7 -3
  9. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
  10. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
  11. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
  12. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
  13. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
  14. package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +3 -3
  15. package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +3 -3
  16. package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +3 -3
  17. package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +3 -3
  18. package/dist/cjs/view/HoverCard/styled.js +4 -4
  19. package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +1 -1
  20. package/dist/cjs/view/LinkUrl/index.js +1 -1
  21. package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
  22. package/dist/cjs/view/common/ai-icon/index.js +24 -26
  23. package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +1 -1
  24. package/dist/es2019/utils/analytics/analytics.js +1 -1
  25. package/dist/es2019/view/BlockCard/views/flexible/styled.js +4 -4
  26. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +4 -4
  27. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
  28. package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +3 -1
  29. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  30. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +4 -1
  31. package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
  32. package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
  33. package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -1
  34. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
  35. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
  36. package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +3 -3
  37. package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +3 -3
  38. package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +3 -3
  39. package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +3 -3
  40. package/dist/es2019/view/HoverCard/styled.js +4 -4
  41. package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +1 -1
  42. package/dist/es2019/view/LinkUrl/index.js +1 -1
  43. package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
  44. package/dist/es2019/view/common/ai-icon/index.js +100 -104
  45. package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +1 -1
  46. package/dist/esm/utils/analytics/analytics.js +1 -1
  47. package/dist/esm/view/BlockCard/views/flexible/styled.js +4 -4
  48. package/dist/esm/view/EmbedModal/components/link-info/styled.js +4 -4
  49. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
  50. package/dist/esm/view/FlexibleCard/components/actions/action/index.js +3 -1
  51. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  52. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +7 -3
  53. package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
  54. package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
  55. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  56. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
  57. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
  58. package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +3 -3
  59. package/dist/esm/view/HoverCard/components/views/resolved/styled.js +3 -3
  60. package/dist/esm/view/HoverCard/components/views/resolving/styled.js +3 -3
  61. package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +3 -3
  62. package/dist/esm/view/HoverCard/styled.js +4 -4
  63. package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +1 -1
  64. package/dist/esm/view/LinkUrl/index.js +1 -1
  65. package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
  66. package/dist/esm/view/common/ai-icon/index.js +25 -27
  67. package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +1 -1
  68. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
4
  export const containerStyles = css({
5
5
  alignItems: 'center',
6
6
  display: 'flex',
@@ -15,7 +15,7 @@ const iconSize = '24px';
15
15
  // EDM-7328: CSS Specificity
16
16
  // An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
17
17
  // Specify flex ui icon selector to increase specificity weight to 0-2-1.
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
19
19
  export const iconCss = css({
20
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
21
21
  '&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
@@ -28,7 +28,7 @@ export const iconCss = css({
28
28
  }
29
29
  });
30
30
  const height = '20px';
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
32
32
  export const titleCss = css({
33
33
  flex: '1 1 auto',
34
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -50,7 +50,7 @@ export const titleCss = css({
50
50
  }
51
51
  });
52
52
 
53
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
53
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
54
54
  export const actionCss = css({
55
55
  display: 'flex',
56
56
  flex: '0 0 auto',
@@ -50,17 +50,21 @@ const ActionButton = ({
50
50
  }),
51
51
  size: size
52
52
  }) : iconOption;
53
- return /*#__PURE__*/React.createElement(Pressable, _extends({
54
- xcss: [buttonStyles, xcss]
55
- }, tooltipProps, {
56
- onClick: onClick,
57
- testId: testId
58
- }), /*#__PURE__*/React.createElement(Inline, {
59
- alignBlock: "center",
60
- grow: "fill",
61
- space: space
62
- }, icon, /*#__PURE__*/React.createElement(Box, {
63
- xcss: contentStyles
64
- }, content)));
53
+ return (
54
+ /*#__PURE__*/
55
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
56
+ React.createElement(Pressable, _extends({
57
+ xcss: [buttonStyles, xcss]
58
+ }, tooltipProps, {
59
+ onClick: onClick,
60
+ testId: testId
61
+ }), /*#__PURE__*/React.createElement(Inline, {
62
+ alignBlock: "center",
63
+ grow: "fill",
64
+ space: space
65
+ }, icon, /*#__PURE__*/React.createElement(Box, {
66
+ xcss: contentStyles
67
+ }, content)))
68
+ );
65
69
  };
66
70
  export default ActionButton;
@@ -60,7 +60,9 @@ const Action = ({
60
60
  onClick: onClick,
61
61
  size: size,
62
62
  testId: testId,
63
- tooltipMessage: tooltipMessage || content,
63
+ tooltipMessage: tooltipMessage || content
64
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
65
+ ,
64
66
  xcss: xcss,
65
67
  tooltipOnHide: tooltipOnHide,
66
68
  hideTooltipOnMouseDown: hideTooltipOnMouseDown,
@@ -70,7 +70,7 @@ const ActionBlock = ({
70
70
  onError: onError,
71
71
  onLoadingChange: onLoadingChange,
72
72
  size: size
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
74
74
  ,
75
75
  xcss: xcss({
76
76
  paddingInline: padding
@@ -25,7 +25,10 @@ const AIIndicatorTooltip = ({
25
25
  component: AIIndicatorTooltipPrimitive,
26
26
  content: content,
27
27
  tag: "span"
28
- }, tooltipProps => /*#__PURE__*/React.createElement(Box, _extends({
28
+ }, tooltipProps =>
29
+ /*#__PURE__*/
30
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
31
+ React.createElement(Box, _extends({
29
32
  xcss: [triggerStyles, overrideXcss]
30
33
  }, tooltipProps), trigger));
31
34
  };
@@ -22,7 +22,7 @@ const RelatedUrlList = ({
22
22
  const intl = useIntl();
23
23
  return resolvedResults.length > 0 ?
24
24
  /*#__PURE__*/
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
26
26
  React.createElement(Stack, {
27
27
  testId: testId,
28
28
  xcss: xcss({
@@ -21,7 +21,7 @@ const ResolvedResultsStack = ({
21
21
  space: "space.050",
22
22
  testId: `${testId}-items-wrapper`,
23
23
  as: "ul"
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
25
25
  ,
26
26
  xcss: xcss({
27
27
  paddingLeft: 'space.0',
@@ -104,7 +104,7 @@ getDirectionStyles(direction), {
104
104
  }
105
105
  });
106
106
 
107
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
107
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
108
108
  export const highlightRemoveStyles = css`
109
109
  outline: none !important;
110
110
  outline-color: inherit;
@@ -3,7 +3,7 @@ import { css } from '@emotion/react';
3
3
  import { N800 } from '@atlaskit/theme/colors';
4
4
  import { getTruncateStyles } from '../../../../utils';
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
7
7
  export const dropdownItemGroupStyles = css({
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
9
9
  button: {
@@ -24,7 +24,7 @@ const sharedBlockStyles = css({
24
24
  alignItems: 'center'
25
25
  });
26
26
 
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
28
28
  export const contentStyles = css(sharedBlockStyles, {
29
29
  marginTop: "var(--ds-space-025, 2px)",
30
30
  alignItems: 'flex-start',
@@ -36,7 +36,7 @@ export const contentStyles = css(sharedBlockStyles, {
36
36
  }
37
37
  });
38
38
 
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
40
40
  export const linkStyles = css(sharedBlockStyles, {
41
41
  cursor: 'pointer',
42
42
  fontSize: '0.875rem',
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
4
  export const triggerButtonStyles = css({
5
5
  all: 'unset',
6
6
  backgroundColor: 'transparent',
@@ -24,7 +24,7 @@ export const triggerButtonStyles = css({
24
24
  }
25
25
  });
26
26
 
27
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
27
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
28
28
  export const triggerLozengeStyles = css({
29
29
  alignItems: 'center',
30
30
  display: 'flex',
@@ -34,7 +34,7 @@ export const triggerLozengeStyles = css({
34
34
  }
35
35
  });
36
36
 
37
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
38
38
  export const dropdownItemGroupStyles = css({
39
39
  maxHeight: '300px',
40
40
  overflowY: 'auto',
@@ -2,14 +2,14 @@
2
2
  import { css } from '@emotion/react';
3
3
  const titleFontWeight = '600';
4
4
 
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
6
6
  export const titleBlockStyles = css({
7
7
  justifyContent: 'center',
8
8
  fontWeight: titleFontWeight,
9
9
  marginTop: "var(--ds-space-100, 8px)"
10
10
  });
11
11
 
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
13
13
  export const mainTextStyles = css({
14
14
  display: 'inline',
15
15
  justifyContent: 'center',
@@ -18,7 +18,7 @@ export const mainTextStyles = css({
18
18
  textAlign: 'center'
19
19
  });
20
20
 
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
22
22
  export const connectButtonStyles = css({
23
23
  justifyContent: 'center',
24
24
  marginTop: "var(--ds-space-100, 8px)"
@@ -3,7 +3,7 @@ import { css } from '@emotion/react';
3
3
  import { separatorCss } from '../../../styled';
4
4
  const elementGap = '0.5rem';
5
5
 
6
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
6
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
7
7
  export const metadataBlockCss = css`
8
8
  gap: 0px;
9
9
  /* primary element group */
@@ -32,12 +32,12 @@ export const metadataBlockCss = css`
32
32
  }
33
33
  `;
34
34
 
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
36
36
  export const footerBlockCss = css({
37
37
  height: '1.5rem'
38
38
  });
39
39
 
40
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
41
41
  export const hiddenSnippetStyles = css({
42
42
  visibility: 'hidden',
43
43
  position: 'absolute'
@@ -1,14 +1,14 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
 
4
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
5
  export const loadingViewContainer = css({
6
6
  display: 'flex',
7
7
  flexDirection: 'column',
8
8
  padding: "var(--ds-space-200, 1rem)"
9
9
  });
10
10
 
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
12
12
  export const skeletonContainer = css({
13
13
  display: 'flex',
14
14
  flexDirection: 'column',
@@ -28,7 +28,7 @@ export const getTitleStyles = height => {
28
28
  });
29
29
  };
30
30
 
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
32
32
  export const titleBlockStyles = css({
33
33
  width: '100%',
34
34
  gap: "var(--ds-space-100, 0.5rem)"
@@ -4,13 +4,13 @@ const blockGap = '0.5rem';
4
4
  const iconGap = '0.5rem';
5
5
  const titleFontWeight = '500';
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
8
8
  export const connectButtonStyles = css({
9
9
  justifyContent: 'flex-end',
10
10
  marginTop: blockGap
11
11
  });
12
12
 
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
14
  export const titleBlockStyles = css({
15
15
  gap: `${blockGap} ${iconGap}`,
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -19,7 +19,7 @@ export const titleBlockStyles = css({
19
19
  }
20
20
  });
21
21
 
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
23
23
  export const mainTextStyles = css({
24
24
  marginTop: blockGap,
25
25
  fontSize: '0.75rem'
@@ -21,7 +21,7 @@ export const CARD_GAP_PX = 10;
21
21
  const blockGap = '0.5rem';
22
22
  const elementGap = '0.5rem';
23
23
 
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
25
25
  export const separatorCss = css({
26
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
27
27
  '[data-separator] + [data-separator]:before': {
@@ -29,7 +29,7 @@ export const separatorCss = css({
29
29
  }
30
30
  });
31
31
 
32
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
32
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
33
  export const HoverCardContainer = css`
34
34
  background: none;
35
35
  border-width: 0;
@@ -41,7 +41,7 @@ export const HoverCardContainer = css`
41
41
  }
42
42
  `;
43
43
 
44
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
44
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
45
45
  export const titleBlockCss = css`
46
46
  gap: ${blockGap};
47
47
 
@@ -70,7 +70,7 @@ export const getTransitionStyles = snippetHeight => css({
70
70
  height: `${snippetHeight}px`
71
71
  });
72
72
 
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
74
74
  export const popupContainerStyles = css({
75
75
  borderRadius: "var(--ds-border-radius-200, 8px)",
76
76
  backgroundColor: "var(--ds-surface-overlay, white)",
@@ -1,7 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
 
4
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
5
  export const breakWordsCss = css({
6
6
  whiteSpace: 'pre-line',
7
7
  wordBreak: 'break-all'
@@ -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: "27.8.3",
10
+ packageVersion: "27.8.4",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -15,7 +15,7 @@ const RelatedLinksList = ({
15
15
  testId: testId
16
16
  }, jsx(Box, {
17
17
  paddingBlockStart: "space.050"
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
19
19
  ,
20
20
  xcss: xcss({
21
21
  font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
@@ -27,7 +27,7 @@ const RelatedLinksList = ({
27
27
  url: url,
28
28
  testId: `${testId}-item-${idx}`
29
29
  })))), urls.length === 0 &&
30
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
31
31
  jsx(Box, {
32
32
  paddingBlock: "space.100",
33
33
  xcss: xcss({
@@ -1,113 +1,109 @@
1
1
  import React from 'react';
2
2
  import SVG from '@atlaskit/icon/svg';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { B200, B400 } from '@atlaskit/theme/colors';
5
5
  /**
6
6
  * The bulk of this file is originally from
7
7
  * https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
8
8
  * with modifications
9
9
  */
10
- const AiIcon = props => {
11
- const iconColor = getBooleanFF('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`;
12
- const textColor = getBooleanFF('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-text-accent-blue, ${B400})`;
13
- return /*#__PURE__*/React.createElement(SVG, props, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
14
- id: "ai_icon_lg0",
15
- x1: "21",
16
- y1: "12",
17
- x2: "17.5",
18
- y2: "12",
19
- gradientUnits: "userSpaceOnUse"
20
- }, /*#__PURE__*/React.createElement("stop", {
21
- offset: "0.270833",
22
- stopColor: iconColor,
23
- color: iconColor
24
- }), /*#__PURE__*/React.createElement("stop", {
25
- offset: "1",
26
- stopColor: textColor,
27
- color: textColor
28
- })), /*#__PURE__*/React.createElement("linearGradient", {
29
- id: "ai_icon_lg1",
30
- x1: "12.5",
31
- y1: "3",
32
- x2: "12.5",
33
- y2: "6.5",
34
- gradientUnits: "userSpaceOnUse"
35
- }, /*#__PURE__*/React.createElement("stop", {
36
- offset: "0.1875",
37
- stopColor: iconColor,
38
- color: iconColor
39
- }), /*#__PURE__*/React.createElement("stop", {
40
- offset: "1",
41
- stopColor: textColor,
42
- color: textColor
43
- })), /*#__PURE__*/React.createElement("linearGradient", {
44
- id: "ai_icon_lg2",
45
- x1: "6.82996",
46
- y1: "12",
47
- x2: "3.32996",
48
- y2: "12",
49
- gradientUnits: "userSpaceOnUse"
50
- }, /*#__PURE__*/React.createElement("stop", {
51
- stopColor: textColor,
52
- color: textColor
53
- }), /*#__PURE__*/React.createElement("stop", {
54
- offset: "0.791667",
55
- stopColor: iconColor,
56
- color: iconColor
57
- })), /*#__PURE__*/React.createElement("linearGradient", {
58
- id: "ai_icon_lg3",
59
- x1: "12.5",
60
- y1: "17",
61
- x2: "12.5",
62
- y2: "21",
63
- gradientUnits: "userSpaceOnUse"
64
- }, /*#__PURE__*/React.createElement("stop", {
65
- stopColor: textColor,
66
- color: textColor
67
- }), /*#__PURE__*/React.createElement("stop", {
68
- offset: "0.802083",
69
- stopColor: iconColor,
70
- color: iconColor
71
- }))), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
72
- fillRule: "evenodd",
73
- clipRule: "evenodd",
74
- d: "M17.17 12C17.17 11.4477 17.6177 11 18.17 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H18.17C17.6177 13 17.17 12.5523 17.17 12Z",
75
- fill: "url(#ai_icon_lg0)"
76
- }), /*#__PURE__*/React.createElement("path", {
77
- fillRule: "evenodd",
78
- clipRule: "evenodd",
79
- d: "M12 3C12.5523 3 13 3.44772 13 4V5.83C13 6.38228 12.5523 6.83 12 6.83C11.4477 6.83 11 6.38228 11 5.83V4C11 3.44772 11.4477 3 12 3Z",
80
- fill: "url(#ai_icon_lg1)"
81
- }), /*#__PURE__*/React.createElement("path", {
82
- fillRule: "evenodd",
83
- clipRule: "evenodd",
84
- d: "M3 12C3 11.4477 3.44772 11 4 11H5.83C6.38228 11 6.83 11.4477 6.83 12C6.83 12.5523 6.38228 13 5.83 13H4C3.44772 13 3 12.5523 3 12Z",
85
- fill: "url(#ai_icon_lg2)"
86
- }), /*#__PURE__*/React.createElement("path", {
87
- fillRule: "evenodd",
88
- clipRule: "evenodd",
89
- d: "M12 17.17C12.5523 17.17 13 17.6177 13 18.17V20C13 20.5523 12.5523 21 12 21C11.4477 21 11 20.5523 11 20V18.17C11 17.6177 11.4477 17.17 12 17.17Z",
90
- fill: "url(#ai_icon_lg3)"
91
- }), /*#__PURE__*/React.createElement("path", {
92
- fillRule: "evenodd",
93
- clipRule: "evenodd",
94
- d: "M14.2929 14.2929C14.6835 13.9024 15.3166 13.9024 15.7071 14.2929L19.7071 18.2929C20.0977 18.6834 20.0977 19.3166 19.7071 19.7071C19.3166 20.0976 18.6835 20.0976 18.2929 19.7071L14.2929 15.7071C13.9024 15.3166 13.9024 14.6834 14.2929 14.2929Z",
95
- fill: iconColor
96
- }), /*#__PURE__*/React.createElement("path", {
97
- fillRule: "evenodd",
98
- clipRule: "evenodd",
99
- d: "M19.7071 4.29289C20.0977 4.68342 20.0977 5.31658 19.7071 5.70711L15.7071 9.70711C15.3166 10.0976 14.6835 10.0976 14.2929 9.70711C13.9024 9.31658 13.9024 8.68342 14.2929 8.29289L18.2929 4.29289C18.6835 3.90237 19.3166 3.90237 19.7071 4.29289Z",
100
- fill: iconColor
101
- }), /*#__PURE__*/React.createElement("path", {
102
- fillRule: "evenodd",
103
- clipRule: "evenodd",
104
- d: "M4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L9.70711 8.29289C10.0976 8.68342 10.0976 9.31658 9.70711 9.70711C9.31658 10.0976 8.68342 10.0976 8.29289 9.70711L4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289Z",
105
- fill: iconColor
106
- }), /*#__PURE__*/React.createElement("path", {
107
- fillRule: "evenodd",
108
- clipRule: "evenodd",
109
- d: "M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",
110
- fill: iconColor
111
- })));
112
- };
10
+ const AiIcon = props => /*#__PURE__*/React.createElement(SVG, props, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
11
+ id: "ai_icon_lg0",
12
+ x1: "21",
13
+ y1: "12",
14
+ x2: "17.5",
15
+ y2: "12",
16
+ gradientUnits: "userSpaceOnUse"
17
+ }, /*#__PURE__*/React.createElement("stop", {
18
+ offset: "0.270833",
19
+ stopColor: `var(--ds-icon-accent-blue, ${B200})`,
20
+ color: `var(--ds-icon-accent-blue, ${B200})`
21
+ }), /*#__PURE__*/React.createElement("stop", {
22
+ offset: "1",
23
+ stopColor: `var(--ds-text-accent-blue, ${B400})`,
24
+ color: `var(--ds-text-accent-blue, ${B400})`
25
+ })), /*#__PURE__*/React.createElement("linearGradient", {
26
+ id: "ai_icon_lg1",
27
+ x1: "12.5",
28
+ y1: "3",
29
+ x2: "12.5",
30
+ y2: "6.5",
31
+ gradientUnits: "userSpaceOnUse"
32
+ }, /*#__PURE__*/React.createElement("stop", {
33
+ offset: "0.1875",
34
+ stopColor: `var(--ds-icon-accent-blue, ${B200})`,
35
+ color: `var(--ds-icon-accent-blue, ${B200})`
36
+ }), /*#__PURE__*/React.createElement("stop", {
37
+ offset: "1",
38
+ stopColor: `var(--ds-text-accent-blue, ${B400})`,
39
+ color: `var(--ds-text-accent-blue, ${B400})`
40
+ })), /*#__PURE__*/React.createElement("linearGradient", {
41
+ id: "ai_icon_lg2",
42
+ x1: "6.82996",
43
+ y1: "12",
44
+ x2: "3.32996",
45
+ y2: "12",
46
+ gradientUnits: "userSpaceOnUse"
47
+ }, /*#__PURE__*/React.createElement("stop", {
48
+ stopColor: `var(--ds-text-accent-blue, ${B400})`,
49
+ color: `var(--ds-text-accent-blue, ${B400})`
50
+ }), /*#__PURE__*/React.createElement("stop", {
51
+ offset: "0.791667",
52
+ stopColor: `var(--ds-icon-accent-blue, ${B200})`,
53
+ color: `var(--ds-icon-accent-blue, ${B200})`
54
+ })), /*#__PURE__*/React.createElement("linearGradient", {
55
+ id: "ai_icon_lg3",
56
+ x1: "12.5",
57
+ y1: "17",
58
+ x2: "12.5",
59
+ y2: "21",
60
+ gradientUnits: "userSpaceOnUse"
61
+ }, /*#__PURE__*/React.createElement("stop", {
62
+ stopColor: `var(--ds-text-accent-blue, ${B400})`,
63
+ color: `var(--ds-text-accent-blue, ${B400})`
64
+ }), /*#__PURE__*/React.createElement("stop", {
65
+ offset: "0.802083",
66
+ stopColor: `var(--ds-icon-accent-blue, ${B200})`,
67
+ color: `var(--ds-icon-accent-blue, ${B200})`
68
+ }))), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
69
+ fillRule: "evenodd",
70
+ clipRule: "evenodd",
71
+ d: "M17.17 12C17.17 11.4477 17.6177 11 18.17 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H18.17C17.6177 13 17.17 12.5523 17.17 12Z",
72
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg0)'
73
+ }), /*#__PURE__*/React.createElement("path", {
74
+ fillRule: "evenodd",
75
+ clipRule: "evenodd",
76
+ d: "M12 3C12.5523 3 13 3.44772 13 4V5.83C13 6.38228 12.5523 6.83 12 6.83C11.4477 6.83 11 6.38228 11 5.83V4C11 3.44772 11.4477 3 12 3Z",
77
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg1)'
78
+ }), /*#__PURE__*/React.createElement("path", {
79
+ fillRule: "evenodd",
80
+ clipRule: "evenodd",
81
+ d: "M3 12C3 11.4477 3.44772 11 4 11H5.83C6.38228 11 6.83 11.4477 6.83 12C6.83 12.5523 6.38228 13 5.83 13H4C3.44772 13 3 12.5523 3 12Z",
82
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg2)'
83
+ }), /*#__PURE__*/React.createElement("path", {
84
+ fillRule: "evenodd",
85
+ clipRule: "evenodd",
86
+ d: "M12 17.17C12.5523 17.17 13 17.6177 13 18.17V20C13 20.5523 12.5523 21 12 21C11.4477 21 11 20.5523 11 20V18.17C11 17.6177 11.4477 17.17 12 17.17Z",
87
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg3)'
88
+ }), /*#__PURE__*/React.createElement("path", {
89
+ fillRule: "evenodd",
90
+ clipRule: "evenodd",
91
+ d: "M14.2929 14.2929C14.6835 13.9024 15.3166 13.9024 15.7071 14.2929L19.7071 18.2929C20.0977 18.6834 20.0977 19.3166 19.7071 19.7071C19.3166 20.0976 18.6835 20.0976 18.2929 19.7071L14.2929 15.7071C13.9024 15.3166 13.9024 14.6834 14.2929 14.2929Z",
92
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
93
+ }), /*#__PURE__*/React.createElement("path", {
94
+ fillRule: "evenodd",
95
+ clipRule: "evenodd",
96
+ d: "M19.7071 4.29289C20.0977 4.68342 20.0977 5.31658 19.7071 5.70711L15.7071 9.70711C15.3166 10.0976 14.6835 10.0976 14.2929 9.70711C13.9024 9.31658 13.9024 8.68342 14.2929 8.29289L18.2929 4.29289C18.6835 3.90237 19.3166 3.90237 19.7071 4.29289Z",
97
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
98
+ }), /*#__PURE__*/React.createElement("path", {
99
+ fillRule: "evenodd",
100
+ clipRule: "evenodd",
101
+ d: "M4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L9.70711 8.29289C10.0976 8.68342 10.0976 9.31658 9.70711 9.70711C9.31658 10.0976 8.68342 10.0976 8.29289 9.70711L4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289Z",
102
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
103
+ }), /*#__PURE__*/React.createElement("path", {
104
+ fillRule: "evenodd",
105
+ clipRule: "evenodd",
106
+ d: "M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",
107
+ fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
108
+ })));
113
109
  export default AiIcon;
@@ -11,7 +11,7 @@ const borderContainerStyles = css({
11
11
  width: 'fit-content'
12
12
  });
13
13
 
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
15
15
  export const borderContentStyles = css({
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
17
17
  borderRadius: INNER_BORDER_RADIUS,
@@ -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: "27.8.3"
18
+ packageVersion: "27.8.4"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";