@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 +1,47 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import LinkGlyph from '@atlaskit/icon/glyph/link';
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
|
+
import { gs } from '../../../common/utils';
|
|
6
7
|
import { ExpandedFrame } from '../../components/ExpandedFrame';
|
|
7
8
|
import { ImageIcon } from '../../components/ImageIcon';
|
|
8
|
-
|
|
9
|
+
const containerStyles = css({
|
|
10
|
+
display: 'grid',
|
|
11
|
+
height: 'inherit'
|
|
12
|
+
});
|
|
13
|
+
const contentStyles = css({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
flexDirection: 'column',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
margin: 'auto',
|
|
19
|
+
padding: "var(--ds-space-200, 16px)",
|
|
20
|
+
gap: "var(--ds-space-250, 20px)",
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
maxWidth: gs(50)
|
|
23
|
+
});
|
|
24
|
+
const descriptionStyles = css({
|
|
25
|
+
fontSize: '1em',
|
|
26
|
+
textAlign: 'center'
|
|
27
|
+
});
|
|
28
|
+
const imageStyles = css({
|
|
29
|
+
height: '120px',
|
|
30
|
+
width: '180px',
|
|
31
|
+
objectFit: 'contain',
|
|
32
|
+
objectPosition: 'center center'
|
|
33
|
+
});
|
|
34
|
+
const titleStyles = css({
|
|
35
|
+
textAlign: 'center',
|
|
36
|
+
margin: 0,
|
|
37
|
+
padding: 0
|
|
38
|
+
});
|
|
9
39
|
const UnresolvedView = ({
|
|
10
40
|
button,
|
|
11
41
|
description,
|
|
12
42
|
frameStyle,
|
|
13
43
|
icon: iconUrlOrElement,
|
|
14
|
-
image,
|
|
44
|
+
image: imageUrlOrElement,
|
|
15
45
|
inheritDimensions,
|
|
16
46
|
isSelected,
|
|
17
47
|
onClick,
|
|
@@ -33,6 +63,23 @@ const UnresolvedView = ({
|
|
|
33
63
|
})
|
|
34
64
|
});
|
|
35
65
|
}, [iconUrlOrElement]);
|
|
66
|
+
const image = useMemo(() => {
|
|
67
|
+
if (!imageUrlOrElement) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
const imageTestId = `${testId}-unresolved-image`;
|
|
71
|
+
if (typeof imageUrlOrElement === 'string') {
|
|
72
|
+
return jsx("img", {
|
|
73
|
+
css: imageStyles,
|
|
74
|
+
"data-testid": imageTestId,
|
|
75
|
+
src: imageUrlOrElement
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return jsx("div", {
|
|
79
|
+
css: imageStyles,
|
|
80
|
+
"data-testid": imageTestId
|
|
81
|
+
}, imageUrlOrElement);
|
|
82
|
+
}, [imageUrlOrElement, testId]);
|
|
36
83
|
return jsx(ExpandedFrame, {
|
|
37
84
|
allowScrollBar: true
|
|
38
85
|
// EDM-9259: Fix embed frame showing on unresolved views when frameStyle is set to hide.
|
|
@@ -55,11 +102,7 @@ const UnresolvedView = ({
|
|
|
55
102
|
"data-testid": `${testId}-unresolved-container`
|
|
56
103
|
}, jsx("div", {
|
|
57
104
|
css: contentStyles
|
|
58
|
-
}, jsx("
|
|
59
|
-
css: imageStyles,
|
|
60
|
-
"data-testid": `${testId}-unresolved-image`,
|
|
61
|
-
src: image
|
|
62
|
-
}), jsx("h2", {
|
|
105
|
+
}, image, jsx("h2", {
|
|
63
106
|
css: titleStyles,
|
|
64
107
|
"data-testid": `${testId}-unresolved-title`
|
|
65
108
|
}, title), jsx("span", {
|
|
@@ -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.
|
|
10
|
+
packageVersion: "27.8.2",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -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.
|
|
18
|
+
packageVersion: "27.8.2"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -79,7 +79,7 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
79
79
|
// This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
|
|
80
80
|
// See: HOT-107830
|
|
81
81
|
,
|
|
82
|
-
contentEditable:
|
|
82
|
+
contentEditable: 'false',
|
|
83
83
|
suppressContentEditableWarning: true
|
|
84
84
|
}, children);
|
|
85
85
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export var ForbiddenSVG = function ForbiddenSVG() {
|
|
3
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4
|
+
viewBox: "0 0 168.8372 221.4874",
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
7
|
+
height: "100%",
|
|
8
|
+
width: "100%",
|
|
9
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
10
|
+
"data-testid": "forbidden-svg"
|
|
11
|
+
}, /*#__PURE__*/React.createElement("linearGradient", {
|
|
12
|
+
id: "a",
|
|
13
|
+
gradientUnits: "userSpaceOnUse",
|
|
14
|
+
x1: "49.4199",
|
|
15
|
+
x2: "122.662",
|
|
16
|
+
y1: "59.7673",
|
|
17
|
+
y2: "59.7673"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
19
|
+
offset: "0",
|
|
20
|
+
stopColor: "#0065ff"
|
|
21
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
22
|
+
offset: ".2188",
|
|
23
|
+
stopColor: "#0b6cff"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
25
|
+
offset: ".5999",
|
|
26
|
+
stopColor: "#2780ff"
|
|
27
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
28
|
+
offset: "1",
|
|
29
|
+
stopColor: "#4c9aff"
|
|
30
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
d: "m122.662 119.5347h-73.242v-82.9141a36.6211 36.6211 0 0 1 73.2422 0zm-61.2422-12h49.2422v-70.9141a24.6211 24.6211 0 0 0 -49.2422 0z",
|
|
32
|
+
fill: "url(#a)"
|
|
33
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
34
|
+
d: "m160.3239 111.17a65.4958 65.4958 0 0 1 -5.657-46.1172l.0022-.0088a5.0533 5.0533 0 0 0 -4.9039-6.273h-130.6932a5.0533 5.0533 0 0 0 -4.9038 6.273l.0015.0057a66.1488 66.1488 0 0 1 -5.7847 46.3674 75.4908 75.4908 0 0 0 65.21 110.0468c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0016c.0333.0008.0652-.0009.0977 0h.0024c.0325.0008.0645-.0009.0969 0h.0027c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0016c.0333.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0332.0008.0652-.0009.0977 0h.0023c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0017c.0332.0008.0651-.0009.0975 0h.0024c.0325.0008.0643-.0009.0968 0h.0026c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0025c.0325.0008.0643-.0009.0968 0h.0032c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0016c.0333.0008.0651-.0009.0975 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0651-.0009.0975 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0025c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0016c.0333.0008.0652-.0009.0977 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0025c.0333.0008.0651-.0009.0975 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0651-.0009.0975 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0016c.0333.0008.0652-.0009.0977 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0026c.0332.0008.0652-.0009.0977 0h.0023c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0016c.0333.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0017c.0332.0008.0651-.0009.0975 0h.0024c.0325.0008.0643-.0009.0968 0h.0026c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0017c.0332.0008.0651-.0009.0975 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0016c.0333.0008.0652-.0009.0977 0h.0031c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0016c.0333.0008.0651-.0009.0975 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0651-.0009.0975 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0025c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0651-.0009.0975 0h.0016c.0333.0008.0652-.0009.0977 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0025c.0333.0008.0652-.0009.0977 0h.0023c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0017c.0332.0008.0652-.0009.0977 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0643-.0009.0968 0h.0024c.0325.0008.0645-.0009.0969 0h.0024c.0325.0008.0642-.0009.0967 0h.0024c.0325.0008.0645-.0009.0969 0h.0017c.0332.0008.0651-.0009.0975 0h.0024c.0325.0008.0643-.0009.0968 0h.0024a75.491 75.491 0 0 0 68.8626-110.2939z",
|
|
35
|
+
fill: "#de350b"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
d: "m154.6669 65.0531.0022-.0088a5.0533 5.0533 0 0 0 -4.9039-6.273h-112.8264a5.0533 5.0533 0 0 0 -4.9039 6.273l.0014.0057a66.1491 66.1491 0 0 1 -5.7845 46.3674 75.4854 75.4854 0 1 0 134.072-.2471 65.4957 65.4957 0 0 1 -5.6569-46.1172z",
|
|
38
|
+
fill: "#ff5630"
|
|
39
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
40
|
+
d: "m93.3523 213.6q-.8454 0-1.6973-.0205a67.6029 67.6029 0 0 1 -58.3963-98.5383 74.3762 74.3762 0 0 0 7.2113-48.3823h105.7618a73.488 73.488 0 0 0 7.0986 48.16 67.6006 67.6006 0 0 1 -59.9755 98.7811z",
|
|
41
|
+
fill: "#ff7452"
|
|
42
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
43
|
+
d: "m90.0071 176.8851a16.3079 16.3079 0 0 1 -16.1149-18.8193l2.23-14.3217a24.1482 24.1482 0 0 1 16.087-41.053c.3821-.0176.7658-.0265 1.1435-.0265a24.1491 24.1491 0 0 1 17.229 41.0809l2.2312 14.32a16.31 16.31 0 0 1 -16.1149 18.8193z",
|
|
44
|
+
fill: "#ff5630"
|
|
45
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
46
|
+
d: "m108.481 126.8237a15.0613 15.0613 0 0 1 -4.83 11.0676 7.2219 7.2219 0 0 0 -2.1218 6.4121l2.3594 15.1531a7.2783 7.2783 0 0 1 -7.1916 8.3981h-6.69a7.2783 7.2783 0 0 1 -7.1916-8.3981l2.3872-15.3318a7.2321 7.2321 0 0 0 -2.2684-6.345 15.0639 15.0639 0 0 1 -4.6905-11.7523 15.1293 15.1293 0 0 1 30.2376.7963z",
|
|
47
|
+
fill: "#de350b"
|
|
48
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
49
|
+
d: "m82.8151 159.4565a7.2565 7.2565 0 1 0 14.3328 0l-2.3594-15.1531a7.2215 7.2215 0 0 1 2.1217-6.4121 15.1041 15.1041 0 0 0 -6.9452-25.804 15.2678 15.2678 0 0 0 -11.7216 13.94 15.0634 15.0634 0 0 0 4.6906 11.7527 7.232 7.232 0 0 1 2.2683 6.3449z",
|
|
50
|
+
fill: "#344563"
|
|
51
|
+
}));
|
|
52
|
+
};
|
|
@@ -4,11 +4,10 @@ var _excluded = ["context", "onAuthorize", "accessContext", "testId"];
|
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
-
import { di } from 'react-magnetic-di';
|
|
8
7
|
import { messages } from '../../../../messages';
|
|
9
8
|
import { toMessage } from '../../../../utils/intl-utils';
|
|
10
9
|
import UnresolvedView from '../unresolved-view';
|
|
11
|
-
import {
|
|
10
|
+
import { ForbiddenSVG } from './forbidden-svg';
|
|
12
11
|
var ForbiddenView = function ForbiddenView(_ref) {
|
|
13
12
|
var context = _ref.context,
|
|
14
13
|
onAuthorize = _ref.onAuthorize,
|
|
@@ -60,7 +59,7 @@ var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
60
59
|
}, [accessType, action === null || action === void 0 ? void 0 : action.id, action === null || action === void 0 ? void 0 : action.promise, callToActionMessageKey, onAuthorize, values]);
|
|
61
60
|
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, unresolvedViewProps, {
|
|
62
61
|
icon: icon,
|
|
63
|
-
image: image !== null && image !== void 0 ? image :
|
|
62
|
+
image: image !== null && image !== void 0 ? image : /*#__PURE__*/React.createElement(ForbiddenSVG, null),
|
|
64
63
|
testId: testId,
|
|
65
64
|
text: text,
|
|
66
65
|
title: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, toMessage(messages.invalid_permissions, titleMessageKey), {
|
|
@@ -3,11 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["context", "accessContext", "testId"];
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
-
import { di } from 'react-magnetic-di';
|
|
7
6
|
import { messages } from '../../../../messages';
|
|
8
7
|
import { toMessage } from '../../../../utils/intl-utils';
|
|
9
8
|
import UnresolvedView from '../unresolved-view';
|
|
10
|
-
import {
|
|
9
|
+
import { NotFoundSVG } from './not-found-svg';
|
|
11
10
|
var NotFoundView = function NotFoundView(_ref) {
|
|
12
11
|
var context = _ref.context,
|
|
13
12
|
accessContext = _ref.accessContext,
|
|
@@ -29,7 +28,7 @@ var NotFoundView = function NotFoundView(_ref) {
|
|
|
29
28
|
}, [text]);
|
|
30
29
|
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, unresolvedViewProps, {
|
|
31
30
|
icon: icon,
|
|
32
|
-
image: image !== null && image !== void 0 ? image :
|
|
31
|
+
image: image !== null && image !== void 0 ? image : /*#__PURE__*/React.createElement(NotFoundSVG, null),
|
|
33
32
|
testId: testId,
|
|
34
33
|
text: text,
|
|
35
34
|
title: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, toMessage(messages.not_found_title, titleMessageKey), {
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export var NotFoundSVG = function NotFoundSVG() {
|
|
3
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
6
|
+
viewBox: "0 0 200.55 269.99",
|
|
7
|
+
height: "100%",
|
|
8
|
+
width: "100%",
|
|
9
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
10
|
+
"data-testid": "not-found-svg"
|
|
11
|
+
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
12
|
+
id: "linear-gradient",
|
|
13
|
+
x1: "1316.98",
|
|
14
|
+
y1: "230.66",
|
|
15
|
+
x2: "1396.36",
|
|
16
|
+
y2: "230.66",
|
|
17
|
+
gradientTransform: "matrix(-1, 0, 0, 1, 1517.54, 0)",
|
|
18
|
+
gradientUnits: "userSpaceOnUse"
|
|
19
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
20
|
+
offset: "0",
|
|
21
|
+
stopColor: "#344563"
|
|
22
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
23
|
+
offset: "1",
|
|
24
|
+
stopColor: "#6c798f"
|
|
25
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
26
|
+
id: "linear-gradient-2",
|
|
27
|
+
x1: "170.3",
|
|
28
|
+
y1: "897.49",
|
|
29
|
+
x2: "365.15",
|
|
30
|
+
y2: "897.49",
|
|
31
|
+
gradientTransform: "translate(-125.06 -762.9) rotate(4.81)",
|
|
32
|
+
gradientUnits: "userSpaceOnUse"
|
|
33
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
34
|
+
offset: "0",
|
|
35
|
+
stopColor: "#fff"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
37
|
+
offset: "0.69",
|
|
38
|
+
stopColor: "#fff",
|
|
39
|
+
stopOpacity: "0.1"
|
|
40
|
+
}))), /*#__PURE__*/React.createElement("title", null, "Search error"), /*#__PURE__*/React.createElement("g", {
|
|
41
|
+
id: "Layer_2",
|
|
42
|
+
"data-name": "Layer 2"
|
|
43
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
44
|
+
id: "Objects"
|
|
45
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
46
|
+
fill: "#cfd4db",
|
|
47
|
+
d: "M126.84,210.1l-9.51-9.39,13-13.23,9.52,9.39a18,18,0,0,0,8.82,4.78h0a18.06,18.06,0,0,1,8.82,4.79l38.59,38.09a14.87,14.87,0,0,1,.13,21h0a14.87,14.87,0,0,1-21,.14l-38.59-38.09a18,18,0,0,1-4.9-8.75h0A18,18,0,0,0,126.84,210.1Z"
|
|
48
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
49
|
+
id: "_Path_",
|
|
50
|
+
"data-name": "<Path>",
|
|
51
|
+
fill: "url(#linear-gradient)",
|
|
52
|
+
d: "M126.84,210.1l-2.9-2.86a9.31,9.31,0,0,1-.09-13.15h0A9.3,9.3,0,0,1,137,194l2.9,2.86a18,18,0,0,0,8.82,4.78h0a18.06,18.06,0,0,1,8.82,4.79l38.59,38.09a14.87,14.87,0,0,1,.13,21h0a14.87,14.87,0,0,1-21,.14l-38.59-38.09a18,18,0,0,1-4.9-8.75h0A18,18,0,0,0,126.84,210.1Z"
|
|
53
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
54
|
+
fill: "#091e42",
|
|
55
|
+
opacity: 0.1,
|
|
56
|
+
d: "M131.63,218.46a18,18,0,0,0-4.79-8.36l-2.9-2.86a9.31,9.31,0,0,1-.09-13.15h0A9.3,9.3,0,0,1,137,194l2.9,2.86a18,18,0,0,0,8.41,4.68,79.1,79.1,0,0,1-7.72,9.12A77.4,77.4,0,0,1,131.63,218.46Z"
|
|
57
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
58
|
+
fill: "#344563",
|
|
59
|
+
d: "M155.47,145.8A77.74,77.74,0,0,0,22.41,91.7,77.24,77.24,0,0,0,0,146.82H0a77.22,77.22,0,0,0,23.13,54.81h0A77.74,77.74,0,0,0,155.47,145.8Z"
|
|
60
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
61
|
+
id: "_Clipping_Path_",
|
|
62
|
+
"data-name": "<Clipping Path>",
|
|
63
|
+
fill: "#deebff",
|
|
64
|
+
d: "M35.62,104.74a59.17,59.17,0,1,1-17.06,42A58.81,58.81,0,0,1,35.62,104.74Z"
|
|
65
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
66
|
+
id: "_Path_2",
|
|
67
|
+
"data-name": "<Path>",
|
|
68
|
+
fill: "#b2d4ff",
|
|
69
|
+
d: "M39.54,101.12A59.19,59.19,0,1,0,82.69,87.36,58.82,58.82,0,0,0,39.54,101.12Z"
|
|
70
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
71
|
+
fill: "#cce0ff",
|
|
72
|
+
d: "M78.09,94.6a59.17,59.17,0,0,0-52.5,23.71,59.2,59.2,0,0,0,99.68,63.28,59.2,59.2,0,0,0-47.18-87Z"
|
|
73
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
74
|
+
fill: "url(#linear-gradient-2)",
|
|
75
|
+
d: "M72.77,205.3A59.25,59.25,0,0,0,133.92,165a59.2,59.2,0,0,1-6.42.62c-19.4.74-33.31-8.64-40-13.32-20.19-14-20.75-28.19-33.7-41.34A56,56,0,0,0,40,100.76l-.44.36A59.18,59.18,0,0,0,72.77,205.3Z"
|
|
76
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
77
|
+
id: "_Path_3",
|
|
78
|
+
"data-name": "<Path>",
|
|
79
|
+
fill: "#5e6c84",
|
|
80
|
+
points: "105.15 132.36 94.03 121.33 78.7 136.79 63.24 121.45 52.22 132.57 67.68 147.9 52.34 163.35 63.45 174.38 78.79 158.92 94.24 174.26 105.27 163.15 89.81 147.81 105.15 132.36"
|
|
81
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
82
|
+
fill: "#ffc400",
|
|
83
|
+
d: "M82.29,29.4,72.12.45A.68.68,0,0,0,70.81.6L67.53,28.65l-6.48-.75a.67.67,0,0,0-.72.89l10.17,29a.68.68,0,0,0,1.31-.15l3.28-28.05,6.48.76A.68.68,0,0,0,82.29,29.4Z"
|
|
84
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
85
|
+
fill: "#ffc400",
|
|
86
|
+
d: "M50.28,47.8,37.64,39.17a.29.29,0,0,0-.42.39l7,12.21-2.84,1.62a.29.29,0,0,0,0,.5L54,62.52a.3.3,0,0,0,.43-.39l-7-12.21,2.84-1.62A.29.29,0,0,0,50.28,47.8Z"
|
|
87
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
88
|
+
fill: "none",
|
|
89
|
+
strokeLinecap: "round",
|
|
90
|
+
strokeMiterlimit: 10,
|
|
91
|
+
strokeWidth: "2px",
|
|
92
|
+
stroke: "#344563",
|
|
93
|
+
d: "M104.31,36.05c-.7,2.07-9.75-1-10.44,1.11s8.35,5.11,7.66,7.18-9.75-1-10.44,1.12,8.35,5.11,7.66,7.18-9.75-1-10.44,1.12S96.66,58.87,96,61"
|
|
94
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
95
|
+
fill: "none",
|
|
96
|
+
strokeLinecap: "round",
|
|
97
|
+
strokeMiterlimit: 10,
|
|
98
|
+
strokeWidth: "2px",
|
|
99
|
+
stroke: "#5e6c84",
|
|
100
|
+
d: "M125.53,59.72c-1.59,1.49-7.85-5.2-9.45-3.71s4.66,8.19,3.06,9.69-7.86-5.21-9.46-3.72c-.74.7.21,2.51,1.28,4.4"
|
|
101
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
102
|
+
fill: "none",
|
|
103
|
+
strokeLinecap: "round",
|
|
104
|
+
strokeMiterlimit: 10,
|
|
105
|
+
strokeWidth: "2px",
|
|
106
|
+
stroke: "#5e6c84",
|
|
107
|
+
d: "M20.83,59.86c2.17.27,1.06,9.37,3.23,9.63s3.28-8.83,5.46-8.57,1.05,9.37,3.22,9.63c1,.13,1.79-1.76,2.56-3.8"
|
|
108
|
+
}))));
|
|
109
|
+
};
|
|
@@ -4,11 +4,10 @@ var _excluded = ["analytics", "context", "extensionKey", "isProductIntegrationSu
|
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import React, { useCallback, useMemo } from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
-
import { di } from 'react-magnetic-di';
|
|
8
7
|
import { messages } from '../../../../messages';
|
|
9
8
|
import UnauthorisedViewContent from '../../../common/UnauthorisedViewContent';
|
|
10
|
-
import { getUnresolvedEmbedCardImage } from '../../utils';
|
|
11
9
|
import UnresolvedView from '../unresolved-view';
|
|
10
|
+
import { UnauthorizedSVG } from './unauthorized-svg';
|
|
12
11
|
var UnauthorizedView = function UnauthorizedView(_ref) {
|
|
13
12
|
var _context$image;
|
|
14
13
|
var analytics = _ref.analytics,
|
|
@@ -84,7 +83,7 @@ var UnauthorizedView = function UnauthorizedView(_ref) {
|
|
|
84
83
|
}, [analytics, context === null || context === void 0 ? void 0 : context.text, handleOnAuthorizeClick, isProductIntegrationSupported, onAuthorize, testId]);
|
|
85
84
|
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, unresolvedViewProps, content, {
|
|
86
85
|
icon: context === null || context === void 0 ? void 0 : context.icon,
|
|
87
|
-
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image :
|
|
86
|
+
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : /*#__PURE__*/React.createElement(UnauthorizedSVG, null),
|
|
88
87
|
testId: testId,
|
|
89
88
|
text: context === null || context === void 0 ? void 0 : context.text
|
|
90
89
|
}));
|