@atlaskit/smart-card 24.1.0 → 24.1.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -1
- package/dist/types/view/Card/types.d.ts +3 -0
- package/package.json +4 -3
- package/report.api.md +0 -1
- package/tmp/api-report-tmp.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 24.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ffa4b8db98b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ffa4b8db98b) - Bugfix: Hide a vertical scroll bar for a flex UI card in case it's a clickable container and has one line title with no paddings
|
|
8
|
+
|
|
3
9
|
## 24.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _useMouseDownEvent = _interopRequireDefault(require("../../../../../state/analytics/useMouseDownEvent"));
|
|
12
12
|
var _templateObject;
|
|
13
|
-
var styles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Stretch the invisible link over the whole of the post.\n // Hide the link\u2019s text.\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow
|
|
13
|
+
var styles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Stretch the invisible link over the whole of the post.\n // Hide the link\u2019s text.\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n text-indent: 100%;\n white-space: nowrap;\n\n // Needs a heightened specificity to trump other anchor.\n // Stack it under all other links in the post text.\n a&.layered-link {\n position: absolute;\n z-index: 0;\n }\n\n // When hovering over the layered link, any hidden action buttons inside\n // the Container should become visible.\n // As actions resides inside blocks and layered link is expected to be\n // on the same level of blocks. That makes the blocks, e.g. TitleBlock,\n // its sibling. Using general sibling combinator here to apply styling to\n // all the siblings of layered link.\n // The general sibling combinator (~) separates two selectors and matches all\n // iterations of the second element, that are following the first element\n // (though not necessarily immediately), and are children of the same parent\n // element.\n &:hover ~ * {\n .actions-button-group {\n opacity: 1;\n }\n }\n"])));
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* An anchor component to cover the entire container creating a clickable area.
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -4,7 +4,7 @@ var _templateObject;
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { jsx, css } from '@emotion/react';
|
|
6
6
|
import useMouseDownEvent from '../../../../../state/analytics/useMouseDownEvent';
|
|
7
|
-
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Stretch the invisible link over the whole of the post.\n // Hide the link\u2019s text.\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow
|
|
7
|
+
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Stretch the invisible link over the whole of the post.\n // Hide the link\u2019s text.\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n text-indent: 100%;\n white-space: nowrap;\n\n // Needs a heightened specificity to trump other anchor.\n // Stack it under all other links in the post text.\n a&.layered-link {\n position: absolute;\n z-index: 0;\n }\n\n // When hovering over the layered link, any hidden action buttons inside\n // the Container should become visible.\n // As actions resides inside blocks and layered link is expected to be\n // on the same level of blocks. That makes the blocks, e.g. TitleBlock,\n // its sibling. Using general sibling combinator here to apply styling to\n // all the siblings of layered link.\n // The general sibling combinator (~) separates two selectors and matches all\n // iterations of the second element, that are following the first element\n // (though not necessarily immediately), and are children of the same parent\n // element.\n &:hover ~ * {\n .actions-button-group {\n opacity: 1;\n }\n }\n"])));
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* An anchor component to cover the entire container creating a clickable area.
|
|
@@ -33,6 +33,9 @@ export interface CardProps extends WithAnalyticsEventsProps {
|
|
|
33
33
|
showActions?: boolean;
|
|
34
34
|
onResolve?: OnResolveCallback;
|
|
35
35
|
onError?: OnErrorCallback;
|
|
36
|
+
/** This props determines if dimensions of an embed card are to be inherited from the parent.
|
|
37
|
+
* The parent container needs to override a style '.loader-wrapper' and set the desirable height there. (for instance, 'height: 100%')
|
|
38
|
+
*/
|
|
36
39
|
inheritDimensions?: boolean;
|
|
37
40
|
embedIframeRef?: React.Ref<HTMLIFrameElement>;
|
|
38
41
|
inlinePreloaderStyle?: InlinePreloaderStyle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "24.1.
|
|
3
|
+
"version": "24.1.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
"jest-extended": "^0.11.2",
|
|
103
103
|
"jsdom": "^16.2.2",
|
|
104
104
|
"lorem-ipsum": "^1.0.6",
|
|
105
|
-
"mockdate": "^3.0.2",
|
|
106
105
|
"react": "^16.8.0",
|
|
107
106
|
"react-ace": "^6.1.0",
|
|
108
107
|
"react-beautiful-dnd": "^12.1.1",
|
|
@@ -126,7 +125,9 @@
|
|
|
126
125
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
127
126
|
"techstack": {
|
|
128
127
|
"@repo/internal": {
|
|
129
|
-
"
|
|
128
|
+
"design-tokens": [
|
|
129
|
+
"color"
|
|
130
|
+
]
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
}
|
package/report.api.md
CHANGED
|
@@ -298,7 +298,6 @@ export interface CardProps extends WithAnalyticsEventsProps {
|
|
|
298
298
|
id?: string;
|
|
299
299
|
// (undocumented)
|
|
300
300
|
importer?: (target: any) => void;
|
|
301
|
-
// (undocumented)
|
|
302
301
|
inheritDimensions?: boolean;
|
|
303
302
|
// (undocumented)
|
|
304
303
|
inlinePreloaderStyle?: InlinePreloaderStyle;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -210,7 +210,6 @@ export interface CardProps extends WithAnalyticsEventsProps {
|
|
|
210
210
|
id?: string;
|
|
211
211
|
// (undocumented)
|
|
212
212
|
importer?: (target: any) => void;
|
|
213
|
-
// (undocumented)
|
|
214
213
|
inheritDimensions?: boolean;
|
|
215
214
|
// (undocumented)
|
|
216
215
|
inlinePreloaderStyle?: InlinePreloaderStyle;
|