@atlaskit/editor-plugin-card 0.15.1 → 0.15.2

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,11 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#65152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65152) [`7b55d001d263`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7b55d001d263) - remove unused css and small refactor
8
+
3
9
  ## 0.15.1
4
10
 
5
11
  ### Patch Changes
@@ -52,7 +52,6 @@ var containerStyles = (0, _react2.css)({
52
52
  var overlayStyles = (0, _react2.css)({
53
53
  // Set default styling to be invisible but available in dom for width calculation.
54
54
  visibility: 'hidden',
55
- // Layout
56
55
  position: 'absolute',
57
56
  display: 'inline-flex',
58
57
  justifyContent: 'flex-end',
@@ -65,13 +64,6 @@ var overlayStyles = (0, _react2.css)({
65
64
  overflow: 'hidden',
66
65
  // EDM-1717: box-shadow Safari fix bring load wrapper zIndex to 1
67
66
  zIndex: 2,
68
- // Appearance
69
- color: "var(--ds-text-subtlest, ".concat(_colors.N700, ")"),
70
- // Using `&` twice to increase specificity. (These are not nested styles.)
71
- '&&:link, &&:active, &&:focus, &&:hover, &&:visited': {
72
- color: "var(--ds-text-subtlest, ".concat(_colors.N700, ")"),
73
- textDecoration: 'none'
74
- },
75
67
  pointerEvents: 'none'
76
68
  });
77
69
  var showOverlayStyles = (0, _react2.css)({
@@ -90,14 +82,15 @@ var labelStyles = (0, _react2.css)({
90
82
  width: 'max-content'
91
83
  });
92
84
  var iconAndLabelStyles = (0, _react2.css)({
93
- background: SMART_LINK_BACKGROUND_COLOR,
94
85
  display: 'flex',
95
86
  alignItems: 'center',
96
87
  height: '100%',
97
88
  gap: "var(--ds-space-050, 4px)",
98
89
  paddingRight: "var(--ds-space-050, 4px)",
99
90
  // Margin to avoid the background covering the link border
100
- marginRight: "var(--ds-space-025, 2px)"
91
+ marginRight: "var(--ds-space-025, 2px)",
92
+ background: SMART_LINK_BACKGROUND_COLOR,
93
+ color: "var(--ds-text-subtlest, ".concat(_colors.N700, ")")
101
94
  });
102
95
  var overflowingContainerStyles = (0, _react2.css)({
103
96
  display: 'flex',
@@ -41,7 +41,6 @@ const containerStyles = css({
41
41
  const overlayStyles = css({
42
42
  // Set default styling to be invisible but available in dom for width calculation.
43
43
  visibility: 'hidden',
44
- // Layout
45
44
  position: 'absolute',
46
45
  display: 'inline-flex',
47
46
  justifyContent: 'flex-end',
@@ -54,13 +53,6 @@ const overlayStyles = css({
54
53
  overflow: 'hidden',
55
54
  // EDM-1717: box-shadow Safari fix bring load wrapper zIndex to 1
56
55
  zIndex: 2,
57
- // Appearance
58
- color: `var(--ds-text-subtlest, ${N700})`,
59
- // Using `&` twice to increase specificity. (These are not nested styles.)
60
- '&&:link, &&:active, &&:focus, &&:hover, &&:visited': {
61
- color: `var(--ds-text-subtlest, ${N700})`,
62
- textDecoration: 'none'
63
- },
64
56
  pointerEvents: 'none'
65
57
  });
66
58
  const showOverlayStyles = css({
@@ -79,14 +71,15 @@ const labelStyles = css({
79
71
  width: 'max-content'
80
72
  });
81
73
  const iconAndLabelStyles = css({
82
- background: SMART_LINK_BACKGROUND_COLOR,
83
74
  display: 'flex',
84
75
  alignItems: 'center',
85
76
  height: '100%',
86
77
  gap: "var(--ds-space-050, 4px)",
87
78
  paddingRight: "var(--ds-space-050, 4px)",
88
79
  // Margin to avoid the background covering the link border
89
- marginRight: "var(--ds-space-025, 2px)"
80
+ marginRight: "var(--ds-space-025, 2px)",
81
+ background: SMART_LINK_BACKGROUND_COLOR,
82
+ color: `var(--ds-text-subtlest, ${N700})`
90
83
  });
91
84
  const overflowingContainerStyles = css({
92
85
  display: 'flex',
@@ -43,7 +43,6 @@ var containerStyles = css({
43
43
  var overlayStyles = css({
44
44
  // Set default styling to be invisible but available in dom for width calculation.
45
45
  visibility: 'hidden',
46
- // Layout
47
46
  position: 'absolute',
48
47
  display: 'inline-flex',
49
48
  justifyContent: 'flex-end',
@@ -56,13 +55,6 @@ var overlayStyles = css({
56
55
  overflow: 'hidden',
57
56
  // EDM-1717: box-shadow Safari fix bring load wrapper zIndex to 1
58
57
  zIndex: 2,
59
- // Appearance
60
- color: "var(--ds-text-subtlest, ".concat(N700, ")"),
61
- // Using `&` twice to increase specificity. (These are not nested styles.)
62
- '&&:link, &&:active, &&:focus, &&:hover, &&:visited': {
63
- color: "var(--ds-text-subtlest, ".concat(N700, ")"),
64
- textDecoration: 'none'
65
- },
66
58
  pointerEvents: 'none'
67
59
  });
68
60
  var showOverlayStyles = css({
@@ -81,14 +73,15 @@ var labelStyles = css({
81
73
  width: 'max-content'
82
74
  });
83
75
  var iconAndLabelStyles = css({
84
- background: SMART_LINK_BACKGROUND_COLOR,
85
76
  display: 'flex',
86
77
  alignItems: 'center',
87
78
  height: '100%',
88
79
  gap: "var(--ds-space-050, 4px)",
89
80
  paddingRight: "var(--ds-space-050, 4px)",
90
81
  // Margin to avoid the background covering the link border
91
- marginRight: "var(--ds-space-025, 2px)"
82
+ marginRight: "var(--ds-space-025, 2px)",
83
+ background: SMART_LINK_BACKGROUND_COLOR,
84
+ color: "var(--ds-text-subtlest, ".concat(N700, ")")
92
85
  });
93
86
  var overflowingContainerStyles = css({
94
87
  display: 'flex',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",