@atlaskit/smart-card 27.8.0 → 27.8.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 +17 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +1 -1
- package/dist/cjs/view/EmbedCard/views/forbidden-view/forbidden-svg/index.js +59 -0
- package/dist/cjs/view/EmbedCard/views/forbidden-view/index.js +2 -3
- package/dist/cjs/view/EmbedCard/views/not-found-view/index.js +2 -3
- package/dist/cjs/view/EmbedCard/views/not-found-view/not-found-svg/index.js +116 -0
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +2 -3
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/unauthorized-svg/index.js +445 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +54 -11
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +1 -1
- package/dist/es2019/view/EmbedCard/views/forbidden-view/forbidden-svg/index.js +50 -0
- package/dist/es2019/view/EmbedCard/views/forbidden-view/index.js +2 -3
- package/dist/es2019/view/EmbedCard/views/not-found-view/index.js +2 -3
- package/dist/es2019/view/EmbedCard/views/not-found-view/not-found-svg/index.js +107 -0
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/index.js +2 -3
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/unauthorized-svg/index.js +436 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +51 -8
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +1 -1
- package/dist/esm/view/EmbedCard/views/forbidden-view/forbidden-svg/index.js +52 -0
- package/dist/esm/view/EmbedCard/views/forbidden-view/index.js +2 -3
- package/dist/esm/view/EmbedCard/views/not-found-view/index.js +2 -3
- package/dist/esm/view/EmbedCard/views/not-found-view/not-found-svg/index.js +109 -0
- package/dist/esm/view/EmbedCard/views/unauthorized-view/index.js +2 -3
- package/dist/esm/view/EmbedCard/views/unauthorized-view/unauthorized-svg/index.js +438 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +51 -8
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/EmbedCard/views/forbidden-view/forbidden-svg/index.d.ts +2 -0
- package/dist/types/view/EmbedCard/views/not-found-view/not-found-svg/index.d.ts +2 -0
- package/dist/types/view/EmbedCard/views/unauthorized-view/unauthorized-svg/index.d.ts +2 -0
- package/dist/types/view/EmbedCard/views/unresolved-view/types.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/views/forbidden-view/forbidden-svg/index.d.ts +2 -0
- package/dist/types-ts4.5/view/EmbedCard/views/not-found-view/not-found-svg/index.d.ts +2 -0
- package/dist/types-ts4.5/view/EmbedCard/views/unauthorized-view/unauthorized-svg/index.d.ts +2 -0
- package/dist/types-ts4.5/view/EmbedCard/views/unresolved-view/types.d.ts +1 -1
- package/package.json +5 -8
- package/dist/cjs/view/EmbedCard/constants.js +0 -10
- package/dist/cjs/view/EmbedCard/utils.js +0 -17
- package/dist/cjs/view/EmbedCard/views/unresolved-view/styled.js +0 -49
- package/dist/es2019/view/EmbedCard/constants.js +0 -4
- package/dist/es2019/view/EmbedCard/utils.js +0 -11
- package/dist/es2019/view/EmbedCard/views/unresolved-view/styled.js +0 -43
- package/dist/esm/view/EmbedCard/constants.js +0 -4
- package/dist/esm/view/EmbedCard/utils.js +0 -11
- package/dist/esm/view/EmbedCard/views/unresolved-view/styled.js +0 -43
- package/dist/types/view/EmbedCard/constants.d.ts +0 -3
- package/dist/types/view/EmbedCard/utils.d.ts +0 -1
- package/dist/types/view/EmbedCard/views/unresolved-view/styled.d.ts +0 -5
- package/dist/types-ts4.5/view/EmbedCard/constants.d.ts +0 -3
- package/dist/types-ts4.5/view/EmbedCard/utils.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedCard/views/unresolved-view/styled.d.ts +0 -5
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getUnresolvedEmbedCardImage = void 0;
|
|
7
|
-
var _constants = require("./constants");
|
|
8
|
-
var getUnresolvedEmbedCardImage = exports.getUnresolvedEmbedCardImage = function getUnresolvedEmbedCardImage(status) {
|
|
9
|
-
switch (status) {
|
|
10
|
-
case 'forbidden':
|
|
11
|
-
return _constants.LockImage;
|
|
12
|
-
case 'unauthorized':
|
|
13
|
-
return _constants.UnauthorisedImage;
|
|
14
|
-
case 'notFound':
|
|
15
|
-
return _constants.NotFoundImage;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.titleStyles = exports.imageStyles = exports.descriptionStyles = exports.contentStyles = exports.containerStyles = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _utils = require("../../../common/utils");
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
|
-
var containerStyles = exports.containerStyles = (0, _react.css)({
|
|
13
|
-
display: 'grid',
|
|
14
|
-
height: 'inherit'
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
18
|
-
var contentStyles = exports.contentStyles = (0, _react.css)({
|
|
19
|
-
display: 'flex',
|
|
20
|
-
flexDirection: 'column',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
margin: 'auto',
|
|
24
|
-
padding: "var(--ds-space-200, 16px)",
|
|
25
|
-
gap: "var(--ds-space-250, 20px)",
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
-
maxWidth: (0, _utils.gs)(50)
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
|
-
var imageStyles = exports.imageStyles = (0, _react.css)({
|
|
32
|
-
height: '120px',
|
|
33
|
-
width: '180px',
|
|
34
|
-
objectFit: 'contain',
|
|
35
|
-
objectPosition: 'center center'
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
39
|
-
var titleStyles = exports.titleStyles = (0, _react.css)({
|
|
40
|
-
textAlign: 'center',
|
|
41
|
-
margin: 0,
|
|
42
|
-
padding: 0
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
46
|
-
var descriptionStyles = exports.descriptionStyles = (0, _react.css)({
|
|
47
|
-
fontSize: '1em',
|
|
48
|
-
textAlign: 'center'
|
|
49
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LockImage, NotFoundImage, UnauthorisedImage } from './constants';
|
|
2
|
-
export const getUnresolvedEmbedCardImage = status => {
|
|
3
|
-
switch (status) {
|
|
4
|
-
case 'forbidden':
|
|
5
|
-
return LockImage;
|
|
6
|
-
case 'unauthorized':
|
|
7
|
-
return UnauthorisedImage;
|
|
8
|
-
case 'notFound':
|
|
9
|
-
return NotFoundImage;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import { gs } from '../../../common/utils';
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
|
-
export const containerStyles = css({
|
|
7
|
-
display: 'grid',
|
|
8
|
-
height: 'inherit'
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
|
-
export const contentStyles = css({
|
|
13
|
-
display: 'flex',
|
|
14
|
-
flexDirection: 'column',
|
|
15
|
-
justifyContent: 'center',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
margin: 'auto',
|
|
18
|
-
padding: "var(--ds-space-200, 16px)",
|
|
19
|
-
gap: "var(--ds-space-250, 20px)",
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
|
-
maxWidth: gs(50)
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
|
-
export const imageStyles = css({
|
|
26
|
-
height: '120px',
|
|
27
|
-
width: '180px',
|
|
28
|
-
objectFit: 'contain',
|
|
29
|
-
objectPosition: 'center center'
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
33
|
-
export const titleStyles = css({
|
|
34
|
-
textAlign: 'center',
|
|
35
|
-
margin: 0,
|
|
36
|
-
padding: 0
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
40
|
-
export const descriptionStyles = css({
|
|
41
|
-
fontSize: '1em',
|
|
42
|
-
textAlign: 'center'
|
|
43
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var CDN_BASE_URL = 'https://smart-links-cdn.us-east-1.prod.public.atl-paas.net';
|
|
2
|
-
export var LockImage = "".concat(CDN_BASE_URL, "/lock.svg");
|
|
3
|
-
export var NotFoundImage = "".concat(CDN_BASE_URL, "/not_found.svg");
|
|
4
|
-
export var UnauthorisedImage = "".concat(CDN_BASE_URL, "/unauth.svg");
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LockImage, NotFoundImage, UnauthorisedImage } from './constants';
|
|
2
|
-
export var getUnresolvedEmbedCardImage = function getUnresolvedEmbedCardImage(status) {
|
|
3
|
-
switch (status) {
|
|
4
|
-
case 'forbidden':
|
|
5
|
-
return LockImage;
|
|
6
|
-
case 'unauthorized':
|
|
7
|
-
return UnauthorisedImage;
|
|
8
|
-
case 'notFound':
|
|
9
|
-
return NotFoundImage;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import { gs } from '../../../common/utils';
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
|
-
export var containerStyles = css({
|
|
7
|
-
display: 'grid',
|
|
8
|
-
height: 'inherit'
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
|
-
export var contentStyles = css({
|
|
13
|
-
display: 'flex',
|
|
14
|
-
flexDirection: 'column',
|
|
15
|
-
justifyContent: 'center',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
margin: 'auto',
|
|
18
|
-
padding: "var(--ds-space-200, 16px)",
|
|
19
|
-
gap: "var(--ds-space-250, 20px)",
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
|
-
maxWidth: gs(50)
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
|
-
export var imageStyles = css({
|
|
26
|
-
height: '120px',
|
|
27
|
-
width: '180px',
|
|
28
|
-
objectFit: 'contain',
|
|
29
|
-
objectPosition: 'center center'
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
33
|
-
export var titleStyles = css({
|
|
34
|
-
textAlign: 'center',
|
|
35
|
-
margin: 0,
|
|
36
|
-
padding: 0
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
40
|
-
export var descriptionStyles = css({
|
|
41
|
-
fontSize: '1em',
|
|
42
|
-
textAlign: 'center'
|
|
43
|
-
});
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const LockImage = "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/lock.svg";
|
|
2
|
-
export declare const NotFoundImage = "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/not_found.svg";
|
|
3
|
-
export declare const UnauthorisedImage = "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/unauth.svg";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getUnresolvedEmbedCardImage: (status: 'forbidden' | 'unauthorized' | 'notFound') => "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/lock.svg" | "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/not_found.svg" | "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/unauth.svg";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const containerStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const contentStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const imageStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const titleStyles: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const descriptionStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const LockImage = "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/lock.svg";
|
|
2
|
-
export declare const NotFoundImage = "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/not_found.svg";
|
|
3
|
-
export declare const UnauthorisedImage = "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/unauth.svg";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getUnresolvedEmbedCardImage: (status: 'forbidden' | 'unauthorized' | 'notFound') => "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/lock.svg" | "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/not_found.svg" | "https://smart-links-cdn.us-east-1.prod.public.atl-paas.net/unauth.svg";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const containerStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const contentStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const imageStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const titleStyles: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const descriptionStyles: import("@emotion/react").SerializedStyles;
|