@atlaskit/link-datasource 1.0.18 → 1.0.19
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/analytics/constants.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.js +241 -0
- package/dist/cjs/ui/jira-issues-modal/initial-state-view/index.js +47 -0
- package/dist/cjs/ui/jira-issues-modal/initial-state-view/messages.js +25 -0
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +6 -4
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.js +231 -0
- package/dist/es2019/ui/jira-issues-modal/initial-state-view/index.js +41 -0
- package/dist/es2019/ui/jira-issues-modal/initial-state-view/messages.js +18 -0
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +6 -4
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.js +233 -0
- package/dist/esm/ui/jira-issues-modal/initial-state-view/index.js +40 -0
- package/dist/esm/ui/jira-issues-modal/initial-state-view/messages.js +18 -0
- package/dist/esm/ui/jira-issues-modal/modal/index.js +6 -4
- package/dist/types/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.d.ts +2 -0
- package/dist/types/ui/jira-issues-modal/initial-state-view/index.d.ts +3 -0
- package/dist/types/ui/jira-issues-modal/initial-state-view/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.d.ts +2 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/messages.d.ts +17 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.0.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`dffd59c5534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dffd59c5534) - [ux] The initial Jira datasource modal now renders a search icon with a helpful prompt
|
|
8
|
+
|
|
3
9
|
## 1.0.18
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -231,7 +231,7 @@ var analyticsContextAttributes = {
|
|
|
231
231
|
};
|
|
232
232
|
var analyticsContextData = {
|
|
233
233
|
packageName: "@atlaskit/link-datasource",
|
|
234
|
-
packageVersion: "1.0.
|
|
234
|
+
packageVersion: "1.0.19",
|
|
235
235
|
source: 'datasourceConfigModal'
|
|
236
236
|
};
|
|
237
237
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.InitialStateSVG = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var InitialStateSVG = function InitialStateSVG() {
|
|
10
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
11
|
+
width: "188",
|
|
12
|
+
height: "112",
|
|
13
|
+
viewBox: "0 0 188 112",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
17
|
+
x: "25.5",
|
|
18
|
+
y: "1",
|
|
19
|
+
width: "127",
|
|
20
|
+
height: "97",
|
|
21
|
+
rx: "4",
|
|
22
|
+
fill: "white",
|
|
23
|
+
stroke: "#B7BDC8",
|
|
24
|
+
strokeWidth: "2"
|
|
25
|
+
}), /*#__PURE__*/_react.default.createElement("line", {
|
|
26
|
+
x1: "24.5",
|
|
27
|
+
y1: "10",
|
|
28
|
+
x2: "152.5",
|
|
29
|
+
y2: "10",
|
|
30
|
+
stroke: "#B7BDC8",
|
|
31
|
+
strokeWidth: "2"
|
|
32
|
+
}), /*#__PURE__*/_react.default.createElement("line", {
|
|
33
|
+
x1: "24.5",
|
|
34
|
+
y1: "32",
|
|
35
|
+
x2: "152.5",
|
|
36
|
+
y2: "32",
|
|
37
|
+
stroke: "#B7BDC8",
|
|
38
|
+
strokeWidth: "2"
|
|
39
|
+
}), /*#__PURE__*/_react.default.createElement("line", {
|
|
40
|
+
x1: "24.5",
|
|
41
|
+
y1: "54",
|
|
42
|
+
x2: "152.5",
|
|
43
|
+
y2: "54",
|
|
44
|
+
stroke: "#B7BDC8",
|
|
45
|
+
strokeWidth: "2"
|
|
46
|
+
}), /*#__PURE__*/_react.default.createElement("line", {
|
|
47
|
+
x1: "49.5",
|
|
48
|
+
y1: "1",
|
|
49
|
+
x2: "49.5",
|
|
50
|
+
y2: "99",
|
|
51
|
+
stroke: "#B7BDC8",
|
|
52
|
+
strokeWidth: "2"
|
|
53
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
54
|
+
x: "53.5",
|
|
55
|
+
y: "18",
|
|
56
|
+
width: "93",
|
|
57
|
+
height: "5",
|
|
58
|
+
rx: "2.5",
|
|
59
|
+
fill: "#C1C7D0",
|
|
60
|
+
fillOpacity: "0.4"
|
|
61
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
62
|
+
x: "53.5",
|
|
63
|
+
y: "41",
|
|
64
|
+
width: "93",
|
|
65
|
+
height: "5",
|
|
66
|
+
rx: "2.5",
|
|
67
|
+
fill: "#C1C7D0",
|
|
68
|
+
fillOpacity: "0.4"
|
|
69
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
70
|
+
x: "53.5",
|
|
71
|
+
y: "84",
|
|
72
|
+
width: "93",
|
|
73
|
+
height: "5",
|
|
74
|
+
rx: "2.5",
|
|
75
|
+
fill: "#C1C7D0",
|
|
76
|
+
fillOpacity: "0.4"
|
|
77
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
78
|
+
x: "53.5",
|
|
79
|
+
y: "62",
|
|
80
|
+
width: "93",
|
|
81
|
+
height: "5",
|
|
82
|
+
rx: "2.5",
|
|
83
|
+
fill: "#C1C7D0",
|
|
84
|
+
fillOpacity: "0.4"
|
|
85
|
+
}), /*#__PURE__*/_react.default.createElement("g", {
|
|
86
|
+
clipPath: "url(#clip0_2088_74131)"
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
88
|
+
width: "12",
|
|
89
|
+
height: "12",
|
|
90
|
+
transform: "translate(31.5 15)",
|
|
91
|
+
fill: "white",
|
|
92
|
+
fillOpacity: "0.01"
|
|
93
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
94
|
+
fillRule: "evenodd",
|
|
95
|
+
clipRule: "evenodd",
|
|
96
|
+
d: "M42 15C42.8284 15 43.5 15.6716 43.5 16.5V25.5C43.5 26.3284 42.8284 27 42 27H33C32.1716 27 31.5 26.3284 31.5 25.5V16.5C31.5 15.6716 32.1716 15 33 15H42ZM37.875 17.25C37.7625 17.25 37.665 17.3018 37.596 17.3798L34.6118 21.1088C34.6095 21.111 34.5847 21.1425 34.5847 21.1425C34.5352 21.2092 34.5 21.2865 34.5 21.375C34.5 21.582 34.668 21.75 34.875 21.75C34.896 21.75 34.9133 21.7537 34.9328 21.75H36.75V24.375C36.75 24.582 36.918 24.75 37.125 24.75C37.218 24.75 37.3005 24.7125 37.3658 24.657C37.3658 24.657 37.4123 24.6068 37.4295 24.582L40.38 20.8972C40.3943 20.8837 40.4033 20.868 40.4153 20.8522L40.4355 20.8275C40.4722 20.7667 40.5 20.7 40.5 20.625C40.5 20.418 40.332 20.25 40.125 20.25H38.25V17.625C38.25 17.418 38.082 17.25 37.875 17.25Z",
|
|
97
|
+
fill: "#6554C0",
|
|
98
|
+
fillOpacity: "0.5"
|
|
99
|
+
})), /*#__PURE__*/_react.default.createElement("g", {
|
|
100
|
+
clipPath: "url(#clip1_2088_74131)"
|
|
101
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
102
|
+
width: "12",
|
|
103
|
+
height: "12",
|
|
104
|
+
transform: "translate(31.5 37)",
|
|
105
|
+
fill: "white",
|
|
106
|
+
fillOpacity: "0.01"
|
|
107
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
108
|
+
fillRule: "evenodd",
|
|
109
|
+
clipRule: "evenodd",
|
|
110
|
+
d: "M33 37H42C42.3978 37 42.7794 37.158 43.0607 37.4393C43.342 37.7206 43.5 38.1022 43.5 38.5V47.5C43.5 47.8978 43.342 48.2794 43.0607 48.5607C42.7794 48.842 42.3978 49 42 49H33C32.6022 49 32.2206 48.842 31.9393 48.5607C31.658 48.2794 31.5 47.8978 31.5 47.5V38.5C31.5 38.1022 31.658 37.7206 31.9393 37.4393C32.2206 37.158 32.6022 37 33 37V37ZM37.5 45.25L35.3528 46.6165C35.0378 46.9015 34.5 46.6998 34.5 46.2963V40.1537C34.5 39.655 34.947 39.25 35.4998 39.25H39.5002C40.0522 39.25 40.5 39.6542 40.5 40.1545V46.297C40.5 46.6997 39.9608 46.9015 39.6458 46.6165L37.5 45.25ZM37.5 43.4717L39 44.4272V40.75H36V44.4265L37.5 43.4725V43.4717Z",
|
|
111
|
+
fill: "#36B37E",
|
|
112
|
+
fillOpacity: "0.5"
|
|
113
|
+
})), /*#__PURE__*/_react.default.createElement("g", {
|
|
114
|
+
clipPath: "url(#clip2_2088_74131)"
|
|
115
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
116
|
+
width: "12",
|
|
117
|
+
height: "12",
|
|
118
|
+
transform: "translate(31.5 59)",
|
|
119
|
+
fill: "white",
|
|
120
|
+
fillOpacity: "0.01"
|
|
121
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
122
|
+
fillRule: "evenodd",
|
|
123
|
+
clipRule: "evenodd",
|
|
124
|
+
d: "M33 59H42C42.3978 59 42.7794 59.158 43.0607 59.4393C43.342 59.7206 43.5 60.1022 43.5 60.5V69.5C43.5 69.8978 43.342 70.2794 43.0607 70.5607C42.7794 70.842 42.3978 71 42 71H33C32.6022 71 32.2206 70.842 31.9393 70.5607C31.658 70.2794 31.5 69.8978 31.5 69.5V60.5C31.5 60.1022 31.658 59.7206 31.9393 59.4393C32.2206 59.158 32.6022 59 33 59V59ZM37.5 68C38.2956 68 39.0587 67.6839 39.6213 67.1213C40.1839 66.5587 40.5 65.7956 40.5 65C40.5 64.2044 40.1839 63.4413 39.6213 62.8787C39.0587 62.3161 38.2956 62 37.5 62C36.7044 62 35.9413 62.3161 35.3787 62.8787C34.8161 63.4413 34.5 64.2044 34.5 65C34.5 65.7956 34.8161 66.5587 35.3787 67.1213C35.9413 67.6839 36.7044 68 37.5 68V68Z",
|
|
125
|
+
fill: "#FF5630",
|
|
126
|
+
fillOpacity: "0.5"
|
|
127
|
+
})), /*#__PURE__*/_react.default.createElement("line", {
|
|
128
|
+
x1: "24.5",
|
|
129
|
+
y1: "76",
|
|
130
|
+
x2: "152.5",
|
|
131
|
+
y2: "76",
|
|
132
|
+
stroke: "#B7BDC8",
|
|
133
|
+
strokeWidth: "2"
|
|
134
|
+
}), /*#__PURE__*/_react.default.createElement("g", {
|
|
135
|
+
clipPath: "url(#clip3_2088_74131)"
|
|
136
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
137
|
+
width: "12",
|
|
138
|
+
height: "12",
|
|
139
|
+
transform: "translate(31.5 80)",
|
|
140
|
+
fill: "white",
|
|
141
|
+
fillOpacity: "0.01"
|
|
142
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
143
|
+
fillRule: "evenodd",
|
|
144
|
+
clipRule: "evenodd",
|
|
145
|
+
d: "M31.5 81.4955C31.5 80.6698 32.1712 80 32.9955 80H42.0045C42.8302 80 43.5 80.6712 43.5 81.4955V90.5045C43.4998 90.9011 43.3422 91.2813 43.0618 91.5618C42.7813 91.8422 42.4011 91.9998 42.0045 92H32.9955C32.5989 91.9998 32.2187 91.8422 31.9382 91.5618C31.6578 91.2813 31.5002 90.9011 31.5 90.5045V81.4955ZM35.0002 82.25C34.3102 82.25 33.75 82.8095 33.75 83.5002V88.4998C33.75 89.1898 34.3095 89.75 35.0002 89.75H39.9998C40.6898 89.75 41.25 89.1905 41.25 88.4998V83.5002C41.25 82.8102 40.6905 82.25 39.9998 82.25H35.0002ZM35.25 83.75V88.25H39.75V83.75H35.25Z",
|
|
146
|
+
fill: "#2684FF",
|
|
147
|
+
fillOpacity: "0.5"
|
|
148
|
+
})), /*#__PURE__*/_react.default.createElement("g", {
|
|
149
|
+
clipPath: "url(#clip4_2088_74131)"
|
|
150
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
151
|
+
width: "72",
|
|
152
|
+
height: "72",
|
|
153
|
+
transform: "translate(100.5 40)",
|
|
154
|
+
fill: "white",
|
|
155
|
+
fillOpacity: "0.01"
|
|
156
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
157
|
+
d: "M146.011 90.5863L142.602 87.2258L147.303 82.5068L150.713 85.8673C151.581 86.7191 152.678 87.3026 153.872 87.5476C155.062 87.8209 156.155 88.4144 157.03 89.2635L170.885 102.884C171.892 103.879 172.464 105.229 172.477 106.641C172.491 108.053 171.944 109.414 170.956 110.427V110.427C169.953 111.425 168.595 111.989 167.177 111.996C165.759 112.002 164.396 111.452 163.383 110.463L149.529 96.8425C148.659 95.9783 148.049 94.8884 147.77 93.6965V93.6965C147.512 92.507 146.899 91.4229 146.011 90.5863Z",
|
|
158
|
+
fill: "#CFD4DB"
|
|
159
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
160
|
+
d: "M146.01 90.5855L144.97 89.5488C144.658 89.2428 144.411 88.8782 144.242 88.4762C144.073 88.0743 143.986 87.6429 143.986 87.2072C143.986 86.7714 144.073 86.3401 144.242 85.9381C144.411 85.5361 144.658 85.1715 144.97 84.8656V84.8656C145.274 84.553 145.639 84.3039 146.041 84.1327C146.443 83.9615 146.876 83.8716 147.313 83.8683C147.751 83.8649 148.184 83.9482 148.589 84.1133C148.994 84.2784 149.362 84.5219 149.672 84.8298L150.712 85.8665C151.58 86.7183 152.677 87.3019 153.871 87.5468C155.062 87.8201 156.154 88.4137 157.029 89.2628L170.884 102.883C171.891 103.878 172.463 105.228 172.477 106.64C172.49 108.053 171.943 109.413 170.956 110.427V110.427C169.952 111.425 168.594 111.988 167.176 111.995C165.758 112.002 164.395 111.451 163.382 110.462L149.528 96.8417C148.658 95.9776 148.048 94.8876 147.769 93.6957V93.6957C147.511 92.5062 146.898 91.4222 146.01 90.5855Z",
|
|
161
|
+
fill: "#8270DB"
|
|
162
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
163
|
+
opacity: "0.2",
|
|
164
|
+
d: "M147.733 93.5885C147.457 92.4447 146.86 91.4029 146.01 90.5855L144.97 89.5488C144.658 89.2428 144.411 88.8782 144.242 88.4763C144.073 88.0743 143.986 87.6429 143.986 87.2072C143.986 86.7714 144.073 86.3401 144.242 85.9381C144.411 85.5361 144.658 85.1715 144.97 84.8656V84.8656C145.274 84.553 145.639 84.3039 146.041 84.1327C146.443 83.9615 146.876 83.8716 147.313 83.8683C147.751 83.8649 148.184 83.9482 148.589 84.1133C148.994 84.2784 149.362 84.5219 149.672 84.8298L150.712 85.8666C151.538 86.6912 152.585 87.262 153.727 87.511C152.887 88.672 151.963 89.7712 150.964 90.8C149.955 91.8046 148.875 92.7364 147.733 93.5885V93.5885Z",
|
|
165
|
+
fill: "#403294"
|
|
166
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
167
|
+
d: "M156.312 67.5988C156.268 62.1045 154.591 56.7462 151.493 52.2002C148.394 47.6541 144.014 44.1239 138.903 42.0549C133.793 39.986 128.182 39.471 122.778 40.5751C117.374 41.6791 112.419 44.3526 108.539 48.2582C105.958 50.8489 103.918 53.9239 102.538 57.3051C101.158 60.6863 100.465 64.3066 100.499 67.9563V67.9563C100.514 71.6053 101.255 75.2152 102.678 78.5777C104.101 81.9402 106.178 84.9887 108.79 87.5472C112.72 91.4035 117.709 94.014 123.127 95.0492C128.545 96.0845 134.149 95.4981 139.233 93.3641C144.316 91.2301 148.652 87.6441 151.691 83.0586C154.731 78.4731 156.339 73.0936 156.312 67.5988V67.5988Z",
|
|
168
|
+
fill: "#66A3FF"
|
|
169
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
170
|
+
d: "M114.679 51.6187C110.936 54.7775 108.408 59.1308 107.526 63.9372C106.643 68.7436 107.461 73.7062 109.839 77.9798C112.217 82.2535 116.008 85.5741 120.568 87.3763C125.128 89.1785 130.174 89.3508 134.847 87.864C139.52 86.3771 143.531 83.323 146.197 79.2217C148.864 75.1203 150.021 70.2252 149.471 65.3699C148.921 60.5145 146.699 55.999 143.182 52.5922C139.665 49.1855 135.072 47.098 130.184 46.6852C127.4 46.4462 124.597 46.7592 121.935 47.606C119.274 48.4528 116.808 49.8166 114.679 51.6187V51.6187Z",
|
|
171
|
+
fill: "white"
|
|
172
|
+
}), /*#__PURE__*/_react.default.createElement("mask", {
|
|
173
|
+
id: "mask0_2088_74131",
|
|
174
|
+
maskUnits: "userSpaceOnUse",
|
|
175
|
+
x: "107",
|
|
176
|
+
y: "46",
|
|
177
|
+
width: "43",
|
|
178
|
+
height: "43"
|
|
179
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
180
|
+
d: "M114.659 51.7779C110.927 54.9499 108.415 59.3119 107.549 64.1214C106.684 68.9309 107.518 73.8906 109.911 78.1559C112.304 82.4212 116.108 85.7285 120.674 87.5147C125.24 89.3009 130.286 89.4555 134.954 87.9523C139.622 86.4492 143.622 83.381 146.274 79.2703C148.926 75.1597 150.066 70.2606 149.499 65.4072C148.932 60.5537 146.694 56.0461 143.166 52.6516C139.637 49.2572 135.037 47.1858 130.147 46.7902C127.363 46.5609 124.56 46.8837 121.902 47.7398C119.243 48.5959 116.782 49.9684 114.659 51.7779V51.7779Z",
|
|
181
|
+
fill: "white"
|
|
182
|
+
})), /*#__PURE__*/_react.default.createElement("g", {
|
|
183
|
+
mask: "url(#mask0_2088_74131)"
|
|
184
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
185
|
+
x: "-9.11719",
|
|
186
|
+
y: "60.6504",
|
|
187
|
+
width: "152.638",
|
|
188
|
+
height: "10.2857",
|
|
189
|
+
rx: "5.14286",
|
|
190
|
+
transform: "rotate(-0.200699 -9.11719 60.6504)",
|
|
191
|
+
fill: "#C1C7D0",
|
|
192
|
+
fillOpacity: "0.4"
|
|
193
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
194
|
+
d: "M68.3867 50.8848L151.463 50.5938",
|
|
195
|
+
stroke: "#B7BDC8",
|
|
196
|
+
strokeWidth: "4"
|
|
197
|
+
}), /*#__PURE__*/_react.default.createElement("line", {
|
|
198
|
+
x1: "68.4852",
|
|
199
|
+
y1: "78.9502",
|
|
200
|
+
x2: "151.562",
|
|
201
|
+
y2: "78.6592",
|
|
202
|
+
stroke: "#B7BDC8",
|
|
203
|
+
strokeWidth: "4"
|
|
204
|
+
}))), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
205
|
+
id: "clip0_2088_74131"
|
|
206
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
207
|
+
width: "12",
|
|
208
|
+
height: "12",
|
|
209
|
+
fill: "white",
|
|
210
|
+
transform: "translate(31.5 15)"
|
|
211
|
+
})), /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
212
|
+
id: "clip1_2088_74131"
|
|
213
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
214
|
+
width: "12",
|
|
215
|
+
height: "12",
|
|
216
|
+
fill: "white",
|
|
217
|
+
transform: "translate(31.5 37)"
|
|
218
|
+
})), /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
219
|
+
id: "clip2_2088_74131"
|
|
220
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
221
|
+
width: "12",
|
|
222
|
+
height: "12",
|
|
223
|
+
fill: "white",
|
|
224
|
+
transform: "translate(31.5 59)"
|
|
225
|
+
})), /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
226
|
+
id: "clip3_2088_74131"
|
|
227
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
228
|
+
width: "12",
|
|
229
|
+
height: "12",
|
|
230
|
+
fill: "white",
|
|
231
|
+
transform: "translate(31.5 80)"
|
|
232
|
+
})), /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
233
|
+
id: "clip4_2088_74131"
|
|
234
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
235
|
+
width: "72",
|
|
236
|
+
height: "72",
|
|
237
|
+
fill: "white",
|
|
238
|
+
transform: "translate(100.5 40)"
|
|
239
|
+
}))));
|
|
240
|
+
};
|
|
241
|
+
exports.InitialStateSVG = InitialStateSVG;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InitialStateView = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _reactIntlNext = require("react-intl-next");
|
|
9
|
+
var _initialStateSvg = require("./assets/initial-state-svg");
|
|
10
|
+
var _messages = require("./messages");
|
|
11
|
+
/** @jsx jsx */
|
|
12
|
+
|
|
13
|
+
var initialStateViewContainerStyles = (0, _react.css)({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
height: '100%'
|
|
17
|
+
});
|
|
18
|
+
var svgAndTextsWrapperStyles = (0, _react.css)({
|
|
19
|
+
textAlign: 'center',
|
|
20
|
+
alignSelf: 'center',
|
|
21
|
+
paddingTop: "var(--ds-space-600, 48px)",
|
|
22
|
+
paddingBottom: "var(--ds-space-600, 48px)"
|
|
23
|
+
});
|
|
24
|
+
var searchTitleStyles = (0, _react.css)({
|
|
25
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
26
|
+
fontSize: "var(--ds-font-size-200, 16px)",
|
|
27
|
+
lineHeight: "var(--ds-font-lineHeight-300, 24px)",
|
|
28
|
+
paddingTop: "var(--ds-space-200, 16px)",
|
|
29
|
+
paddingBottom: "var(--ds-space-100, 8px)"
|
|
30
|
+
});
|
|
31
|
+
var jqlSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/';
|
|
32
|
+
var InitialStateView = function InitialStateView() {
|
|
33
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
34
|
+
formatMessage = _useIntl.formatMessage;
|
|
35
|
+
return (0, _react.jsx)("div", {
|
|
36
|
+
css: initialStateViewContainerStyles,
|
|
37
|
+
"data-testid": "jlol-datasource-modal--initial-state-view"
|
|
38
|
+
}, (0, _react.jsx)("div", {
|
|
39
|
+
css: svgAndTextsWrapperStyles
|
|
40
|
+
}, (0, _react.jsx)(_initialStateSvg.InitialStateSVG, null), (0, _react.jsx)("div", {
|
|
41
|
+
css: searchTitleStyles
|
|
42
|
+
}, formatMessage(_messages.initialStateViewMessages.searchTitle)), (0, _react.jsx)("div", null, formatMessage(_messages.initialStateViewMessages.searchDescription)), (0, _react.jsx)("a", {
|
|
43
|
+
href: jqlSupportDocumentLink,
|
|
44
|
+
target: "_blank"
|
|
45
|
+
}, formatMessage(_messages.initialStateViewMessages.learnMoreLink))));
|
|
46
|
+
};
|
|
47
|
+
exports.InitialStateView = InitialStateView;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.initialStateViewMessages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var initialStateViewMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
searchTitle: {
|
|
10
|
+
id: 'linkDataSource.modal-initial-state.searchTitle',
|
|
11
|
+
description: 'The initial modal search state title that gives the user some idea about how to get information',
|
|
12
|
+
defaultMessage: 'Search for Jira issues'
|
|
13
|
+
},
|
|
14
|
+
searchDescription: {
|
|
15
|
+
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
16
|
+
description: 'The initial modal search state helper message displayed under the search title',
|
|
17
|
+
defaultMessage: 'Start typing or use JQL to search.'
|
|
18
|
+
},
|
|
19
|
+
learnMoreLink: {
|
|
20
|
+
id: 'linkDataSource.modal-initial-state.learnMoreLink',
|
|
21
|
+
description: 'The link that displays under the search description to help people know more about JQL',
|
|
22
|
+
defaultMessage: 'Learn more about searching with JQL.'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
exports.initialStateViewMessages = initialStateViewMessages;
|
|
@@ -29,6 +29,7 @@ var _modalLoadingError = require("../../common/error-state/modal-loading-error")
|
|
|
29
29
|
var _noResults = require("../../common/error-state/no-results");
|
|
30
30
|
var _issueLikeTable = require("../../issue-like-table");
|
|
31
31
|
var _link = _interopRequireDefault(require("../../issue-like-table/render-type/link"));
|
|
32
|
+
var _initialStateView = require("../initial-state-view");
|
|
32
33
|
var _jiraSearchContainer = require("../jira-search-container");
|
|
33
34
|
var _modeSwitcher = require("../mode-switcher");
|
|
34
35
|
var _siteSelector = require("../site-selector");
|
|
@@ -358,9 +359,10 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
358
359
|
// persist the empty state when making the initial /data request which contains the columns
|
|
359
360
|
return (0, _react2.jsx)("div", {
|
|
360
361
|
css: contentContainerStyles
|
|
361
|
-
}, (0, _react2.jsx)(_issueLikeTable.EmptyState, {
|
|
362
|
-
testId: "jira-jql-datasource-modal--empty-state"
|
|
363
|
-
|
|
362
|
+
}, !!jql ? (0, _react2.jsx)(_issueLikeTable.EmptyState, {
|
|
363
|
+
testId: "jira-jql-datasource-modal--empty-state",
|
|
364
|
+
isLoading: true
|
|
365
|
+
}) : (0, _react2.jsx)(_initialStateView.InitialStateView, null));
|
|
364
366
|
}
|
|
365
367
|
var firstIssueUrl = retrieveUrlForSmartCardRender();
|
|
366
368
|
if (responseItems.length === 1 && firstIssueUrl) {
|
|
@@ -371,7 +373,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
371
373
|
}));
|
|
372
374
|
}
|
|
373
375
|
return issueLikeDataTableView;
|
|
374
|
-
}, [status,
|
|
376
|
+
}, [status, jqlUrl, resolvedWithNoResults, columns.length, retrieveUrlForSmartCardRender, responseItems.length, issueLikeDataTableView, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.displayName, jql]);
|
|
375
377
|
return (0, _react2.jsx)(_modalDialog.ModalTransition, null, (0, _react2.jsx)(_modalDialog.default, {
|
|
376
378
|
testId: 'jira-jql-datasource-modal',
|
|
377
379
|
onClose: onCancel,
|
|
@@ -205,7 +205,7 @@ const analyticsContextAttributes = {
|
|
|
205
205
|
};
|
|
206
206
|
const analyticsContextData = {
|
|
207
207
|
packageName: "@atlaskit/link-datasource",
|
|
208
|
-
packageVersion: "1.0.
|
|
208
|
+
packageVersion: "1.0.19",
|
|
209
209
|
source: 'datasourceConfigModal'
|
|
210
210
|
};
|
|
211
211
|
const contextData = {
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const InitialStateSVG = () => /*#__PURE__*/React.createElement("svg", {
|
|
3
|
+
width: "188",
|
|
4
|
+
height: "112",
|
|
5
|
+
viewBox: "0 0 188 112",
|
|
6
|
+
fill: "none",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
9
|
+
x: "25.5",
|
|
10
|
+
y: "1",
|
|
11
|
+
width: "127",
|
|
12
|
+
height: "97",
|
|
13
|
+
rx: "4",
|
|
14
|
+
fill: "white",
|
|
15
|
+
stroke: "#B7BDC8",
|
|
16
|
+
strokeWidth: "2"
|
|
17
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
18
|
+
x1: "24.5",
|
|
19
|
+
y1: "10",
|
|
20
|
+
x2: "152.5",
|
|
21
|
+
y2: "10",
|
|
22
|
+
stroke: "#B7BDC8",
|
|
23
|
+
strokeWidth: "2"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
25
|
+
x1: "24.5",
|
|
26
|
+
y1: "32",
|
|
27
|
+
x2: "152.5",
|
|
28
|
+
y2: "32",
|
|
29
|
+
stroke: "#B7BDC8",
|
|
30
|
+
strokeWidth: "2"
|
|
31
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
32
|
+
x1: "24.5",
|
|
33
|
+
y1: "54",
|
|
34
|
+
x2: "152.5",
|
|
35
|
+
y2: "54",
|
|
36
|
+
stroke: "#B7BDC8",
|
|
37
|
+
strokeWidth: "2"
|
|
38
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
39
|
+
x1: "49.5",
|
|
40
|
+
y1: "1",
|
|
41
|
+
x2: "49.5",
|
|
42
|
+
y2: "99",
|
|
43
|
+
stroke: "#B7BDC8",
|
|
44
|
+
strokeWidth: "2"
|
|
45
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
46
|
+
x: "53.5",
|
|
47
|
+
y: "18",
|
|
48
|
+
width: "93",
|
|
49
|
+
height: "5",
|
|
50
|
+
rx: "2.5",
|
|
51
|
+
fill: "#C1C7D0",
|
|
52
|
+
fillOpacity: "0.4"
|
|
53
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
54
|
+
x: "53.5",
|
|
55
|
+
y: "41",
|
|
56
|
+
width: "93",
|
|
57
|
+
height: "5",
|
|
58
|
+
rx: "2.5",
|
|
59
|
+
fill: "#C1C7D0",
|
|
60
|
+
fillOpacity: "0.4"
|
|
61
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
62
|
+
x: "53.5",
|
|
63
|
+
y: "84",
|
|
64
|
+
width: "93",
|
|
65
|
+
height: "5",
|
|
66
|
+
rx: "2.5",
|
|
67
|
+
fill: "#C1C7D0",
|
|
68
|
+
fillOpacity: "0.4"
|
|
69
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
70
|
+
x: "53.5",
|
|
71
|
+
y: "62",
|
|
72
|
+
width: "93",
|
|
73
|
+
height: "5",
|
|
74
|
+
rx: "2.5",
|
|
75
|
+
fill: "#C1C7D0",
|
|
76
|
+
fillOpacity: "0.4"
|
|
77
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
78
|
+
clipPath: "url(#clip0_2088_74131)"
|
|
79
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
80
|
+
width: "12",
|
|
81
|
+
height: "12",
|
|
82
|
+
transform: "translate(31.5 15)",
|
|
83
|
+
fill: "white",
|
|
84
|
+
fillOpacity: "0.01"
|
|
85
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
86
|
+
fillRule: "evenodd",
|
|
87
|
+
clipRule: "evenodd",
|
|
88
|
+
d: "M42 15C42.8284 15 43.5 15.6716 43.5 16.5V25.5C43.5 26.3284 42.8284 27 42 27H33C32.1716 27 31.5 26.3284 31.5 25.5V16.5C31.5 15.6716 32.1716 15 33 15H42ZM37.875 17.25C37.7625 17.25 37.665 17.3018 37.596 17.3798L34.6118 21.1088C34.6095 21.111 34.5847 21.1425 34.5847 21.1425C34.5352 21.2092 34.5 21.2865 34.5 21.375C34.5 21.582 34.668 21.75 34.875 21.75C34.896 21.75 34.9133 21.7537 34.9328 21.75H36.75V24.375C36.75 24.582 36.918 24.75 37.125 24.75C37.218 24.75 37.3005 24.7125 37.3658 24.657C37.3658 24.657 37.4123 24.6068 37.4295 24.582L40.38 20.8972C40.3943 20.8837 40.4033 20.868 40.4153 20.8522L40.4355 20.8275C40.4722 20.7667 40.5 20.7 40.5 20.625C40.5 20.418 40.332 20.25 40.125 20.25H38.25V17.625C38.25 17.418 38.082 17.25 37.875 17.25Z",
|
|
89
|
+
fill: "#6554C0",
|
|
90
|
+
fillOpacity: "0.5"
|
|
91
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
92
|
+
clipPath: "url(#clip1_2088_74131)"
|
|
93
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
94
|
+
width: "12",
|
|
95
|
+
height: "12",
|
|
96
|
+
transform: "translate(31.5 37)",
|
|
97
|
+
fill: "white",
|
|
98
|
+
fillOpacity: "0.01"
|
|
99
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
100
|
+
fillRule: "evenodd",
|
|
101
|
+
clipRule: "evenodd",
|
|
102
|
+
d: "M33 37H42C42.3978 37 42.7794 37.158 43.0607 37.4393C43.342 37.7206 43.5 38.1022 43.5 38.5V47.5C43.5 47.8978 43.342 48.2794 43.0607 48.5607C42.7794 48.842 42.3978 49 42 49H33C32.6022 49 32.2206 48.842 31.9393 48.5607C31.658 48.2794 31.5 47.8978 31.5 47.5V38.5C31.5 38.1022 31.658 37.7206 31.9393 37.4393C32.2206 37.158 32.6022 37 33 37V37ZM37.5 45.25L35.3528 46.6165C35.0378 46.9015 34.5 46.6998 34.5 46.2963V40.1537C34.5 39.655 34.947 39.25 35.4998 39.25H39.5002C40.0522 39.25 40.5 39.6542 40.5 40.1545V46.297C40.5 46.6997 39.9608 46.9015 39.6458 46.6165L37.5 45.25ZM37.5 43.4717L39 44.4272V40.75H36V44.4265L37.5 43.4725V43.4717Z",
|
|
103
|
+
fill: "#36B37E",
|
|
104
|
+
fillOpacity: "0.5"
|
|
105
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
106
|
+
clipPath: "url(#clip2_2088_74131)"
|
|
107
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
108
|
+
width: "12",
|
|
109
|
+
height: "12",
|
|
110
|
+
transform: "translate(31.5 59)",
|
|
111
|
+
fill: "white",
|
|
112
|
+
fillOpacity: "0.01"
|
|
113
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
114
|
+
fillRule: "evenodd",
|
|
115
|
+
clipRule: "evenodd",
|
|
116
|
+
d: "M33 59H42C42.3978 59 42.7794 59.158 43.0607 59.4393C43.342 59.7206 43.5 60.1022 43.5 60.5V69.5C43.5 69.8978 43.342 70.2794 43.0607 70.5607C42.7794 70.842 42.3978 71 42 71H33C32.6022 71 32.2206 70.842 31.9393 70.5607C31.658 70.2794 31.5 69.8978 31.5 69.5V60.5C31.5 60.1022 31.658 59.7206 31.9393 59.4393C32.2206 59.158 32.6022 59 33 59V59ZM37.5 68C38.2956 68 39.0587 67.6839 39.6213 67.1213C40.1839 66.5587 40.5 65.7956 40.5 65C40.5 64.2044 40.1839 63.4413 39.6213 62.8787C39.0587 62.3161 38.2956 62 37.5 62C36.7044 62 35.9413 62.3161 35.3787 62.8787C34.8161 63.4413 34.5 64.2044 34.5 65C34.5 65.7956 34.8161 66.5587 35.3787 67.1213C35.9413 67.6839 36.7044 68 37.5 68V68Z",
|
|
117
|
+
fill: "#FF5630",
|
|
118
|
+
fillOpacity: "0.5"
|
|
119
|
+
})), /*#__PURE__*/React.createElement("line", {
|
|
120
|
+
x1: "24.5",
|
|
121
|
+
y1: "76",
|
|
122
|
+
x2: "152.5",
|
|
123
|
+
y2: "76",
|
|
124
|
+
stroke: "#B7BDC8",
|
|
125
|
+
strokeWidth: "2"
|
|
126
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
127
|
+
clipPath: "url(#clip3_2088_74131)"
|
|
128
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
129
|
+
width: "12",
|
|
130
|
+
height: "12",
|
|
131
|
+
transform: "translate(31.5 80)",
|
|
132
|
+
fill: "white",
|
|
133
|
+
fillOpacity: "0.01"
|
|
134
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
135
|
+
fillRule: "evenodd",
|
|
136
|
+
clipRule: "evenodd",
|
|
137
|
+
d: "M31.5 81.4955C31.5 80.6698 32.1712 80 32.9955 80H42.0045C42.8302 80 43.5 80.6712 43.5 81.4955V90.5045C43.4998 90.9011 43.3422 91.2813 43.0618 91.5618C42.7813 91.8422 42.4011 91.9998 42.0045 92H32.9955C32.5989 91.9998 32.2187 91.8422 31.9382 91.5618C31.6578 91.2813 31.5002 90.9011 31.5 90.5045V81.4955ZM35.0002 82.25C34.3102 82.25 33.75 82.8095 33.75 83.5002V88.4998C33.75 89.1898 34.3095 89.75 35.0002 89.75H39.9998C40.6898 89.75 41.25 89.1905 41.25 88.4998V83.5002C41.25 82.8102 40.6905 82.25 39.9998 82.25H35.0002ZM35.25 83.75V88.25H39.75V83.75H35.25Z",
|
|
138
|
+
fill: "#2684FF",
|
|
139
|
+
fillOpacity: "0.5"
|
|
140
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
141
|
+
clipPath: "url(#clip4_2088_74131)"
|
|
142
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
143
|
+
width: "72",
|
|
144
|
+
height: "72",
|
|
145
|
+
transform: "translate(100.5 40)",
|
|
146
|
+
fill: "white",
|
|
147
|
+
fillOpacity: "0.01"
|
|
148
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
149
|
+
d: "M146.011 90.5863L142.602 87.2258L147.303 82.5068L150.713 85.8673C151.581 86.7191 152.678 87.3026 153.872 87.5476C155.062 87.8209 156.155 88.4144 157.03 89.2635L170.885 102.884C171.892 103.879 172.464 105.229 172.477 106.641C172.491 108.053 171.944 109.414 170.956 110.427V110.427C169.953 111.425 168.595 111.989 167.177 111.996C165.759 112.002 164.396 111.452 163.383 110.463L149.529 96.8425C148.659 95.9783 148.049 94.8884 147.77 93.6965V93.6965C147.512 92.507 146.899 91.4229 146.011 90.5863Z",
|
|
150
|
+
fill: "#CFD4DB"
|
|
151
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
152
|
+
d: "M146.01 90.5855L144.97 89.5488C144.658 89.2428 144.411 88.8782 144.242 88.4762C144.073 88.0743 143.986 87.6429 143.986 87.2072C143.986 86.7714 144.073 86.3401 144.242 85.9381C144.411 85.5361 144.658 85.1715 144.97 84.8656V84.8656C145.274 84.553 145.639 84.3039 146.041 84.1327C146.443 83.9615 146.876 83.8716 147.313 83.8683C147.751 83.8649 148.184 83.9482 148.589 84.1133C148.994 84.2784 149.362 84.5219 149.672 84.8298L150.712 85.8665C151.58 86.7183 152.677 87.3019 153.871 87.5468C155.062 87.8201 156.154 88.4137 157.029 89.2628L170.884 102.883C171.891 103.878 172.463 105.228 172.477 106.64C172.49 108.053 171.943 109.413 170.956 110.427V110.427C169.952 111.425 168.594 111.988 167.176 111.995C165.758 112.002 164.395 111.451 163.382 110.462L149.528 96.8417C148.658 95.9776 148.048 94.8876 147.769 93.6957V93.6957C147.511 92.5062 146.898 91.4222 146.01 90.5855Z",
|
|
153
|
+
fill: "#8270DB"
|
|
154
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
155
|
+
opacity: "0.2",
|
|
156
|
+
d: "M147.733 93.5885C147.457 92.4447 146.86 91.4029 146.01 90.5855L144.97 89.5488C144.658 89.2428 144.411 88.8782 144.242 88.4763C144.073 88.0743 143.986 87.6429 143.986 87.2072C143.986 86.7714 144.073 86.3401 144.242 85.9381C144.411 85.5361 144.658 85.1715 144.97 84.8656V84.8656C145.274 84.553 145.639 84.3039 146.041 84.1327C146.443 83.9615 146.876 83.8716 147.313 83.8683C147.751 83.8649 148.184 83.9482 148.589 84.1133C148.994 84.2784 149.362 84.5219 149.672 84.8298L150.712 85.8666C151.538 86.6912 152.585 87.262 153.727 87.511C152.887 88.672 151.963 89.7712 150.964 90.8C149.955 91.8046 148.875 92.7364 147.733 93.5885V93.5885Z",
|
|
157
|
+
fill: "#403294"
|
|
158
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
159
|
+
d: "M156.312 67.5988C156.268 62.1045 154.591 56.7462 151.493 52.2002C148.394 47.6541 144.014 44.1239 138.903 42.0549C133.793 39.986 128.182 39.471 122.778 40.5751C117.374 41.6791 112.419 44.3526 108.539 48.2582C105.958 50.8489 103.918 53.9239 102.538 57.3051C101.158 60.6863 100.465 64.3066 100.499 67.9563V67.9563C100.514 71.6053 101.255 75.2152 102.678 78.5777C104.101 81.9402 106.178 84.9887 108.79 87.5472C112.72 91.4035 117.709 94.014 123.127 95.0492C128.545 96.0845 134.149 95.4981 139.233 93.3641C144.316 91.2301 148.652 87.6441 151.691 83.0586C154.731 78.4731 156.339 73.0936 156.312 67.5988V67.5988Z",
|
|
160
|
+
fill: "#66A3FF"
|
|
161
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
162
|
+
d: "M114.679 51.6187C110.936 54.7775 108.408 59.1308 107.526 63.9372C106.643 68.7436 107.461 73.7062 109.839 77.9798C112.217 82.2535 116.008 85.5741 120.568 87.3763C125.128 89.1785 130.174 89.3508 134.847 87.864C139.52 86.3771 143.531 83.323 146.197 79.2217C148.864 75.1203 150.021 70.2252 149.471 65.3699C148.921 60.5145 146.699 55.999 143.182 52.5922C139.665 49.1855 135.072 47.098 130.184 46.6852C127.4 46.4462 124.597 46.7592 121.935 47.606C119.274 48.4528 116.808 49.8166 114.679 51.6187V51.6187Z",
|
|
163
|
+
fill: "white"
|
|
164
|
+
}), /*#__PURE__*/React.createElement("mask", {
|
|
165
|
+
id: "mask0_2088_74131",
|
|
166
|
+
maskUnits: "userSpaceOnUse",
|
|
167
|
+
x: "107",
|
|
168
|
+
y: "46",
|
|
169
|
+
width: "43",
|
|
170
|
+
height: "43"
|
|
171
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
172
|
+
d: "M114.659 51.7779C110.927 54.9499 108.415 59.3119 107.549 64.1214C106.684 68.9309 107.518 73.8906 109.911 78.1559C112.304 82.4212 116.108 85.7285 120.674 87.5147C125.24 89.3009 130.286 89.4555 134.954 87.9523C139.622 86.4492 143.622 83.381 146.274 79.2703C148.926 75.1597 150.066 70.2606 149.499 65.4072C148.932 60.5537 146.694 56.0461 143.166 52.6516C139.637 49.2572 135.037 47.1858 130.147 46.7902C127.363 46.5609 124.56 46.8837 121.902 47.7398C119.243 48.5959 116.782 49.9684 114.659 51.7779V51.7779Z",
|
|
173
|
+
fill: "white"
|
|
174
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
175
|
+
mask: "url(#mask0_2088_74131)"
|
|
176
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
177
|
+
x: "-9.11719",
|
|
178
|
+
y: "60.6504",
|
|
179
|
+
width: "152.638",
|
|
180
|
+
height: "10.2857",
|
|
181
|
+
rx: "5.14286",
|
|
182
|
+
transform: "rotate(-0.200699 -9.11719 60.6504)",
|
|
183
|
+
fill: "#C1C7D0",
|
|
184
|
+
fillOpacity: "0.4"
|
|
185
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
186
|
+
d: "M68.3867 50.8848L151.463 50.5938",
|
|
187
|
+
stroke: "#B7BDC8",
|
|
188
|
+
strokeWidth: "4"
|
|
189
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
190
|
+
x1: "68.4852",
|
|
191
|
+
y1: "78.9502",
|
|
192
|
+
x2: "151.562",
|
|
193
|
+
y2: "78.6592",
|
|
194
|
+
stroke: "#B7BDC8",
|
|
195
|
+
strokeWidth: "4"
|
|
196
|
+
}))), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
197
|
+
id: "clip0_2088_74131"
|
|
198
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
199
|
+
width: "12",
|
|
200
|
+
height: "12",
|
|
201
|
+
fill: "white",
|
|
202
|
+
transform: "translate(31.5 15)"
|
|
203
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
204
|
+
id: "clip1_2088_74131"
|
|
205
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
206
|
+
width: "12",
|
|
207
|
+
height: "12",
|
|
208
|
+
fill: "white",
|
|
209
|
+
transform: "translate(31.5 37)"
|
|
210
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
211
|
+
id: "clip2_2088_74131"
|
|
212
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
213
|
+
width: "12",
|
|
214
|
+
height: "12",
|
|
215
|
+
fill: "white",
|
|
216
|
+
transform: "translate(31.5 59)"
|
|
217
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
218
|
+
id: "clip3_2088_74131"
|
|
219
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
220
|
+
width: "12",
|
|
221
|
+
height: "12",
|
|
222
|
+
fill: "white",
|
|
223
|
+
transform: "translate(31.5 80)"
|
|
224
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
225
|
+
id: "clip4_2088_74131"
|
|
226
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
227
|
+
width: "72",
|
|
228
|
+
height: "72",
|
|
229
|
+
fill: "white",
|
|
230
|
+
transform: "translate(100.5 40)"
|
|
231
|
+
}))));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
|
+
import { useIntl } from 'react-intl-next';
|
|
5
|
+
import { InitialStateSVG } from './assets/initial-state-svg';
|
|
6
|
+
import { initialStateViewMessages } from './messages';
|
|
7
|
+
const initialStateViewContainerStyles = css({
|
|
8
|
+
display: 'flex',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
height: '100%'
|
|
11
|
+
});
|
|
12
|
+
const svgAndTextsWrapperStyles = css({
|
|
13
|
+
textAlign: 'center',
|
|
14
|
+
alignSelf: 'center',
|
|
15
|
+
paddingTop: "var(--ds-space-600, 48px)",
|
|
16
|
+
paddingBottom: "var(--ds-space-600, 48px)"
|
|
17
|
+
});
|
|
18
|
+
const searchTitleStyles = css({
|
|
19
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
20
|
+
fontSize: "var(--ds-font-size-200, 16px)",
|
|
21
|
+
lineHeight: "var(--ds-font-lineHeight-300, 24px)",
|
|
22
|
+
paddingTop: "var(--ds-space-200, 16px)",
|
|
23
|
+
paddingBottom: "var(--ds-space-100, 8px)"
|
|
24
|
+
});
|
|
25
|
+
const jqlSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/';
|
|
26
|
+
export const InitialStateView = () => {
|
|
27
|
+
const {
|
|
28
|
+
formatMessage
|
|
29
|
+
} = useIntl();
|
|
30
|
+
return jsx("div", {
|
|
31
|
+
css: initialStateViewContainerStyles,
|
|
32
|
+
"data-testid": "jlol-datasource-modal--initial-state-view"
|
|
33
|
+
}, jsx("div", {
|
|
34
|
+
css: svgAndTextsWrapperStyles
|
|
35
|
+
}, jsx(InitialStateSVG, null), jsx("div", {
|
|
36
|
+
css: searchTitleStyles
|
|
37
|
+
}, formatMessage(initialStateViewMessages.searchTitle)), jsx("div", null, formatMessage(initialStateViewMessages.searchDescription)), jsx("a", {
|
|
38
|
+
href: jqlSupportDocumentLink,
|
|
39
|
+
target: "_blank"
|
|
40
|
+
}, formatMessage(initialStateViewMessages.learnMoreLink))));
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export const initialStateViewMessages = defineMessages({
|
|
3
|
+
searchTitle: {
|
|
4
|
+
id: 'linkDataSource.modal-initial-state.searchTitle',
|
|
5
|
+
description: 'The initial modal search state title that gives the user some idea about how to get information',
|
|
6
|
+
defaultMessage: 'Search for Jira issues'
|
|
7
|
+
},
|
|
8
|
+
searchDescription: {
|
|
9
|
+
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
10
|
+
description: 'The initial modal search state helper message displayed under the search title',
|
|
11
|
+
defaultMessage: 'Start typing or use JQL to search.'
|
|
12
|
+
},
|
|
13
|
+
learnMoreLink: {
|
|
14
|
+
id: 'linkDataSource.modal-initial-state.learnMoreLink',
|
|
15
|
+
description: 'The link that displays under the search description to help people know more about JQL',
|
|
16
|
+
defaultMessage: 'Learn more about searching with JQL.'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -18,6 +18,7 @@ import { ModalLoadingError } from '../../common/error-state/modal-loading-error'
|
|
|
18
18
|
import { NoResults } from '../../common/error-state/no-results';
|
|
19
19
|
import { EmptyState, IssueLikeDataTableView } from '../../issue-like-table';
|
|
20
20
|
import LinkRenderType from '../../issue-like-table/render-type/link';
|
|
21
|
+
import { InitialStateView } from '../initial-state-view';
|
|
21
22
|
import { JiraSearchContainer } from '../jira-search-container';
|
|
22
23
|
import { ModeSwitcher } from '../mode-switcher';
|
|
23
24
|
import { JiraSiteSelector } from '../site-selector';
|
|
@@ -304,9 +305,10 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
304
305
|
// persist the empty state when making the initial /data request which contains the columns
|
|
305
306
|
return jsx("div", {
|
|
306
307
|
css: contentContainerStyles
|
|
307
|
-
}, jsx(EmptyState, {
|
|
308
|
-
testId: `jira-jql-datasource-modal--empty-state
|
|
309
|
-
|
|
308
|
+
}, !!jql ? jsx(EmptyState, {
|
|
309
|
+
testId: `jira-jql-datasource-modal--empty-state`,
|
|
310
|
+
isLoading: true
|
|
311
|
+
}) : jsx(InitialStateView, null));
|
|
310
312
|
}
|
|
311
313
|
const firstIssueUrl = retrieveUrlForSmartCardRender();
|
|
312
314
|
if (responseItems.length === 1 && firstIssueUrl) {
|
|
@@ -317,7 +319,7 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
317
319
|
}));
|
|
318
320
|
}
|
|
319
321
|
return issueLikeDataTableView;
|
|
320
|
-
}, [status,
|
|
322
|
+
}, [status, jqlUrl, resolvedWithNoResults, columns.length, retrieveUrlForSmartCardRender, responseItems.length, issueLikeDataTableView, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.displayName, jql]);
|
|
321
323
|
return jsx(ModalTransition, null, jsx(Modal, {
|
|
322
324
|
testId: 'jira-jql-datasource-modal',
|
|
323
325
|
onClose: onCancel,
|
|
@@ -222,7 +222,7 @@ var analyticsContextAttributes = {
|
|
|
222
222
|
};
|
|
223
223
|
var analyticsContextData = {
|
|
224
224
|
packageName: "@atlaskit/link-datasource",
|
|
225
|
-
packageVersion: "1.0.
|
|
225
|
+
packageVersion: "1.0.19",
|
|
226
226
|
source: 'datasourceConfigModal'
|
|
227
227
|
};
|
|
228
228
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export var InitialStateSVG = function InitialStateSVG() {
|
|
3
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4
|
+
width: "188",
|
|
5
|
+
height: "112",
|
|
6
|
+
viewBox: "0 0 188 112",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
10
|
+
x: "25.5",
|
|
11
|
+
y: "1",
|
|
12
|
+
width: "127",
|
|
13
|
+
height: "97",
|
|
14
|
+
rx: "4",
|
|
15
|
+
fill: "white",
|
|
16
|
+
stroke: "#B7BDC8",
|
|
17
|
+
strokeWidth: "2"
|
|
18
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
19
|
+
x1: "24.5",
|
|
20
|
+
y1: "10",
|
|
21
|
+
x2: "152.5",
|
|
22
|
+
y2: "10",
|
|
23
|
+
stroke: "#B7BDC8",
|
|
24
|
+
strokeWidth: "2"
|
|
25
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
26
|
+
x1: "24.5",
|
|
27
|
+
y1: "32",
|
|
28
|
+
x2: "152.5",
|
|
29
|
+
y2: "32",
|
|
30
|
+
stroke: "#B7BDC8",
|
|
31
|
+
strokeWidth: "2"
|
|
32
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
33
|
+
x1: "24.5",
|
|
34
|
+
y1: "54",
|
|
35
|
+
x2: "152.5",
|
|
36
|
+
y2: "54",
|
|
37
|
+
stroke: "#B7BDC8",
|
|
38
|
+
strokeWidth: "2"
|
|
39
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
40
|
+
x1: "49.5",
|
|
41
|
+
y1: "1",
|
|
42
|
+
x2: "49.5",
|
|
43
|
+
y2: "99",
|
|
44
|
+
stroke: "#B7BDC8",
|
|
45
|
+
strokeWidth: "2"
|
|
46
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
47
|
+
x: "53.5",
|
|
48
|
+
y: "18",
|
|
49
|
+
width: "93",
|
|
50
|
+
height: "5",
|
|
51
|
+
rx: "2.5",
|
|
52
|
+
fill: "#C1C7D0",
|
|
53
|
+
fillOpacity: "0.4"
|
|
54
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
55
|
+
x: "53.5",
|
|
56
|
+
y: "41",
|
|
57
|
+
width: "93",
|
|
58
|
+
height: "5",
|
|
59
|
+
rx: "2.5",
|
|
60
|
+
fill: "#C1C7D0",
|
|
61
|
+
fillOpacity: "0.4"
|
|
62
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
63
|
+
x: "53.5",
|
|
64
|
+
y: "84",
|
|
65
|
+
width: "93",
|
|
66
|
+
height: "5",
|
|
67
|
+
rx: "2.5",
|
|
68
|
+
fill: "#C1C7D0",
|
|
69
|
+
fillOpacity: "0.4"
|
|
70
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
71
|
+
x: "53.5",
|
|
72
|
+
y: "62",
|
|
73
|
+
width: "93",
|
|
74
|
+
height: "5",
|
|
75
|
+
rx: "2.5",
|
|
76
|
+
fill: "#C1C7D0",
|
|
77
|
+
fillOpacity: "0.4"
|
|
78
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
79
|
+
clipPath: "url(#clip0_2088_74131)"
|
|
80
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
81
|
+
width: "12",
|
|
82
|
+
height: "12",
|
|
83
|
+
transform: "translate(31.5 15)",
|
|
84
|
+
fill: "white",
|
|
85
|
+
fillOpacity: "0.01"
|
|
86
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
87
|
+
fillRule: "evenodd",
|
|
88
|
+
clipRule: "evenodd",
|
|
89
|
+
d: "M42 15C42.8284 15 43.5 15.6716 43.5 16.5V25.5C43.5 26.3284 42.8284 27 42 27H33C32.1716 27 31.5 26.3284 31.5 25.5V16.5C31.5 15.6716 32.1716 15 33 15H42ZM37.875 17.25C37.7625 17.25 37.665 17.3018 37.596 17.3798L34.6118 21.1088C34.6095 21.111 34.5847 21.1425 34.5847 21.1425C34.5352 21.2092 34.5 21.2865 34.5 21.375C34.5 21.582 34.668 21.75 34.875 21.75C34.896 21.75 34.9133 21.7537 34.9328 21.75H36.75V24.375C36.75 24.582 36.918 24.75 37.125 24.75C37.218 24.75 37.3005 24.7125 37.3658 24.657C37.3658 24.657 37.4123 24.6068 37.4295 24.582L40.38 20.8972C40.3943 20.8837 40.4033 20.868 40.4153 20.8522L40.4355 20.8275C40.4722 20.7667 40.5 20.7 40.5 20.625C40.5 20.418 40.332 20.25 40.125 20.25H38.25V17.625C38.25 17.418 38.082 17.25 37.875 17.25Z",
|
|
90
|
+
fill: "#6554C0",
|
|
91
|
+
fillOpacity: "0.5"
|
|
92
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
93
|
+
clipPath: "url(#clip1_2088_74131)"
|
|
94
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
95
|
+
width: "12",
|
|
96
|
+
height: "12",
|
|
97
|
+
transform: "translate(31.5 37)",
|
|
98
|
+
fill: "white",
|
|
99
|
+
fillOpacity: "0.01"
|
|
100
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
101
|
+
fillRule: "evenodd",
|
|
102
|
+
clipRule: "evenodd",
|
|
103
|
+
d: "M33 37H42C42.3978 37 42.7794 37.158 43.0607 37.4393C43.342 37.7206 43.5 38.1022 43.5 38.5V47.5C43.5 47.8978 43.342 48.2794 43.0607 48.5607C42.7794 48.842 42.3978 49 42 49H33C32.6022 49 32.2206 48.842 31.9393 48.5607C31.658 48.2794 31.5 47.8978 31.5 47.5V38.5C31.5 38.1022 31.658 37.7206 31.9393 37.4393C32.2206 37.158 32.6022 37 33 37V37ZM37.5 45.25L35.3528 46.6165C35.0378 46.9015 34.5 46.6998 34.5 46.2963V40.1537C34.5 39.655 34.947 39.25 35.4998 39.25H39.5002C40.0522 39.25 40.5 39.6542 40.5 40.1545V46.297C40.5 46.6997 39.9608 46.9015 39.6458 46.6165L37.5 45.25ZM37.5 43.4717L39 44.4272V40.75H36V44.4265L37.5 43.4725V43.4717Z",
|
|
104
|
+
fill: "#36B37E",
|
|
105
|
+
fillOpacity: "0.5"
|
|
106
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
107
|
+
clipPath: "url(#clip2_2088_74131)"
|
|
108
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
109
|
+
width: "12",
|
|
110
|
+
height: "12",
|
|
111
|
+
transform: "translate(31.5 59)",
|
|
112
|
+
fill: "white",
|
|
113
|
+
fillOpacity: "0.01"
|
|
114
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
115
|
+
fillRule: "evenodd",
|
|
116
|
+
clipRule: "evenodd",
|
|
117
|
+
d: "M33 59H42C42.3978 59 42.7794 59.158 43.0607 59.4393C43.342 59.7206 43.5 60.1022 43.5 60.5V69.5C43.5 69.8978 43.342 70.2794 43.0607 70.5607C42.7794 70.842 42.3978 71 42 71H33C32.6022 71 32.2206 70.842 31.9393 70.5607C31.658 70.2794 31.5 69.8978 31.5 69.5V60.5C31.5 60.1022 31.658 59.7206 31.9393 59.4393C32.2206 59.158 32.6022 59 33 59V59ZM37.5 68C38.2956 68 39.0587 67.6839 39.6213 67.1213C40.1839 66.5587 40.5 65.7956 40.5 65C40.5 64.2044 40.1839 63.4413 39.6213 62.8787C39.0587 62.3161 38.2956 62 37.5 62C36.7044 62 35.9413 62.3161 35.3787 62.8787C34.8161 63.4413 34.5 64.2044 34.5 65C34.5 65.7956 34.8161 66.5587 35.3787 67.1213C35.9413 67.6839 36.7044 68 37.5 68V68Z",
|
|
118
|
+
fill: "#FF5630",
|
|
119
|
+
fillOpacity: "0.5"
|
|
120
|
+
})), /*#__PURE__*/React.createElement("line", {
|
|
121
|
+
x1: "24.5",
|
|
122
|
+
y1: "76",
|
|
123
|
+
x2: "152.5",
|
|
124
|
+
y2: "76",
|
|
125
|
+
stroke: "#B7BDC8",
|
|
126
|
+
strokeWidth: "2"
|
|
127
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
128
|
+
clipPath: "url(#clip3_2088_74131)"
|
|
129
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
130
|
+
width: "12",
|
|
131
|
+
height: "12",
|
|
132
|
+
transform: "translate(31.5 80)",
|
|
133
|
+
fill: "white",
|
|
134
|
+
fillOpacity: "0.01"
|
|
135
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
136
|
+
fillRule: "evenodd",
|
|
137
|
+
clipRule: "evenodd",
|
|
138
|
+
d: "M31.5 81.4955C31.5 80.6698 32.1712 80 32.9955 80H42.0045C42.8302 80 43.5 80.6712 43.5 81.4955V90.5045C43.4998 90.9011 43.3422 91.2813 43.0618 91.5618C42.7813 91.8422 42.4011 91.9998 42.0045 92H32.9955C32.5989 91.9998 32.2187 91.8422 31.9382 91.5618C31.6578 91.2813 31.5002 90.9011 31.5 90.5045V81.4955ZM35.0002 82.25C34.3102 82.25 33.75 82.8095 33.75 83.5002V88.4998C33.75 89.1898 34.3095 89.75 35.0002 89.75H39.9998C40.6898 89.75 41.25 89.1905 41.25 88.4998V83.5002C41.25 82.8102 40.6905 82.25 39.9998 82.25H35.0002ZM35.25 83.75V88.25H39.75V83.75H35.25Z",
|
|
139
|
+
fill: "#2684FF",
|
|
140
|
+
fillOpacity: "0.5"
|
|
141
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
142
|
+
clipPath: "url(#clip4_2088_74131)"
|
|
143
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
144
|
+
width: "72",
|
|
145
|
+
height: "72",
|
|
146
|
+
transform: "translate(100.5 40)",
|
|
147
|
+
fill: "white",
|
|
148
|
+
fillOpacity: "0.01"
|
|
149
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
150
|
+
d: "M146.011 90.5863L142.602 87.2258L147.303 82.5068L150.713 85.8673C151.581 86.7191 152.678 87.3026 153.872 87.5476C155.062 87.8209 156.155 88.4144 157.03 89.2635L170.885 102.884C171.892 103.879 172.464 105.229 172.477 106.641C172.491 108.053 171.944 109.414 170.956 110.427V110.427C169.953 111.425 168.595 111.989 167.177 111.996C165.759 112.002 164.396 111.452 163.383 110.463L149.529 96.8425C148.659 95.9783 148.049 94.8884 147.77 93.6965V93.6965C147.512 92.507 146.899 91.4229 146.011 90.5863Z",
|
|
151
|
+
fill: "#CFD4DB"
|
|
152
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
153
|
+
d: "M146.01 90.5855L144.97 89.5488C144.658 89.2428 144.411 88.8782 144.242 88.4762C144.073 88.0743 143.986 87.6429 143.986 87.2072C143.986 86.7714 144.073 86.3401 144.242 85.9381C144.411 85.5361 144.658 85.1715 144.97 84.8656V84.8656C145.274 84.553 145.639 84.3039 146.041 84.1327C146.443 83.9615 146.876 83.8716 147.313 83.8683C147.751 83.8649 148.184 83.9482 148.589 84.1133C148.994 84.2784 149.362 84.5219 149.672 84.8298L150.712 85.8665C151.58 86.7183 152.677 87.3019 153.871 87.5468C155.062 87.8201 156.154 88.4137 157.029 89.2628L170.884 102.883C171.891 103.878 172.463 105.228 172.477 106.64C172.49 108.053 171.943 109.413 170.956 110.427V110.427C169.952 111.425 168.594 111.988 167.176 111.995C165.758 112.002 164.395 111.451 163.382 110.462L149.528 96.8417C148.658 95.9776 148.048 94.8876 147.769 93.6957V93.6957C147.511 92.5062 146.898 91.4222 146.01 90.5855Z",
|
|
154
|
+
fill: "#8270DB"
|
|
155
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
156
|
+
opacity: "0.2",
|
|
157
|
+
d: "M147.733 93.5885C147.457 92.4447 146.86 91.4029 146.01 90.5855L144.97 89.5488C144.658 89.2428 144.411 88.8782 144.242 88.4763C144.073 88.0743 143.986 87.6429 143.986 87.2072C143.986 86.7714 144.073 86.3401 144.242 85.9381C144.411 85.5361 144.658 85.1715 144.97 84.8656V84.8656C145.274 84.553 145.639 84.3039 146.041 84.1327C146.443 83.9615 146.876 83.8716 147.313 83.8683C147.751 83.8649 148.184 83.9482 148.589 84.1133C148.994 84.2784 149.362 84.5219 149.672 84.8298L150.712 85.8666C151.538 86.6912 152.585 87.262 153.727 87.511C152.887 88.672 151.963 89.7712 150.964 90.8C149.955 91.8046 148.875 92.7364 147.733 93.5885V93.5885Z",
|
|
158
|
+
fill: "#403294"
|
|
159
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
160
|
+
d: "M156.312 67.5988C156.268 62.1045 154.591 56.7462 151.493 52.2002C148.394 47.6541 144.014 44.1239 138.903 42.0549C133.793 39.986 128.182 39.471 122.778 40.5751C117.374 41.6791 112.419 44.3526 108.539 48.2582C105.958 50.8489 103.918 53.9239 102.538 57.3051C101.158 60.6863 100.465 64.3066 100.499 67.9563V67.9563C100.514 71.6053 101.255 75.2152 102.678 78.5777C104.101 81.9402 106.178 84.9887 108.79 87.5472C112.72 91.4035 117.709 94.014 123.127 95.0492C128.545 96.0845 134.149 95.4981 139.233 93.3641C144.316 91.2301 148.652 87.6441 151.691 83.0586C154.731 78.4731 156.339 73.0936 156.312 67.5988V67.5988Z",
|
|
161
|
+
fill: "#66A3FF"
|
|
162
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
163
|
+
d: "M114.679 51.6187C110.936 54.7775 108.408 59.1308 107.526 63.9372C106.643 68.7436 107.461 73.7062 109.839 77.9798C112.217 82.2535 116.008 85.5741 120.568 87.3763C125.128 89.1785 130.174 89.3508 134.847 87.864C139.52 86.3771 143.531 83.323 146.197 79.2217C148.864 75.1203 150.021 70.2252 149.471 65.3699C148.921 60.5145 146.699 55.999 143.182 52.5922C139.665 49.1855 135.072 47.098 130.184 46.6852C127.4 46.4462 124.597 46.7592 121.935 47.606C119.274 48.4528 116.808 49.8166 114.679 51.6187V51.6187Z",
|
|
164
|
+
fill: "white"
|
|
165
|
+
}), /*#__PURE__*/React.createElement("mask", {
|
|
166
|
+
id: "mask0_2088_74131",
|
|
167
|
+
maskUnits: "userSpaceOnUse",
|
|
168
|
+
x: "107",
|
|
169
|
+
y: "46",
|
|
170
|
+
width: "43",
|
|
171
|
+
height: "43"
|
|
172
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
173
|
+
d: "M114.659 51.7779C110.927 54.9499 108.415 59.3119 107.549 64.1214C106.684 68.9309 107.518 73.8906 109.911 78.1559C112.304 82.4212 116.108 85.7285 120.674 87.5147C125.24 89.3009 130.286 89.4555 134.954 87.9523C139.622 86.4492 143.622 83.381 146.274 79.2703C148.926 75.1597 150.066 70.2606 149.499 65.4072C148.932 60.5537 146.694 56.0461 143.166 52.6516C139.637 49.2572 135.037 47.1858 130.147 46.7902C127.363 46.5609 124.56 46.8837 121.902 47.7398C119.243 48.5959 116.782 49.9684 114.659 51.7779V51.7779Z",
|
|
174
|
+
fill: "white"
|
|
175
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
176
|
+
mask: "url(#mask0_2088_74131)"
|
|
177
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
178
|
+
x: "-9.11719",
|
|
179
|
+
y: "60.6504",
|
|
180
|
+
width: "152.638",
|
|
181
|
+
height: "10.2857",
|
|
182
|
+
rx: "5.14286",
|
|
183
|
+
transform: "rotate(-0.200699 -9.11719 60.6504)",
|
|
184
|
+
fill: "#C1C7D0",
|
|
185
|
+
fillOpacity: "0.4"
|
|
186
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
187
|
+
d: "M68.3867 50.8848L151.463 50.5938",
|
|
188
|
+
stroke: "#B7BDC8",
|
|
189
|
+
strokeWidth: "4"
|
|
190
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
191
|
+
x1: "68.4852",
|
|
192
|
+
y1: "78.9502",
|
|
193
|
+
x2: "151.562",
|
|
194
|
+
y2: "78.6592",
|
|
195
|
+
stroke: "#B7BDC8",
|
|
196
|
+
strokeWidth: "4"
|
|
197
|
+
}))), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
198
|
+
id: "clip0_2088_74131"
|
|
199
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
200
|
+
width: "12",
|
|
201
|
+
height: "12",
|
|
202
|
+
fill: "white",
|
|
203
|
+
transform: "translate(31.5 15)"
|
|
204
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
205
|
+
id: "clip1_2088_74131"
|
|
206
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
207
|
+
width: "12",
|
|
208
|
+
height: "12",
|
|
209
|
+
fill: "white",
|
|
210
|
+
transform: "translate(31.5 37)"
|
|
211
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
212
|
+
id: "clip2_2088_74131"
|
|
213
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
214
|
+
width: "12",
|
|
215
|
+
height: "12",
|
|
216
|
+
fill: "white",
|
|
217
|
+
transform: "translate(31.5 59)"
|
|
218
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
219
|
+
id: "clip3_2088_74131"
|
|
220
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
221
|
+
width: "12",
|
|
222
|
+
height: "12",
|
|
223
|
+
fill: "white",
|
|
224
|
+
transform: "translate(31.5 80)"
|
|
225
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
226
|
+
id: "clip4_2088_74131"
|
|
227
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
228
|
+
width: "72",
|
|
229
|
+
height: "72",
|
|
230
|
+
fill: "white",
|
|
231
|
+
transform: "translate(100.5 40)"
|
|
232
|
+
}))));
|
|
233
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
|
+
import { useIntl } from 'react-intl-next';
|
|
5
|
+
import { InitialStateSVG } from './assets/initial-state-svg';
|
|
6
|
+
import { initialStateViewMessages } from './messages';
|
|
7
|
+
var initialStateViewContainerStyles = css({
|
|
8
|
+
display: 'flex',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
height: '100%'
|
|
11
|
+
});
|
|
12
|
+
var svgAndTextsWrapperStyles = css({
|
|
13
|
+
textAlign: 'center',
|
|
14
|
+
alignSelf: 'center',
|
|
15
|
+
paddingTop: "var(--ds-space-600, 48px)",
|
|
16
|
+
paddingBottom: "var(--ds-space-600, 48px)"
|
|
17
|
+
});
|
|
18
|
+
var searchTitleStyles = css({
|
|
19
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
20
|
+
fontSize: "var(--ds-font-size-200, 16px)",
|
|
21
|
+
lineHeight: "var(--ds-font-lineHeight-300, 24px)",
|
|
22
|
+
paddingTop: "var(--ds-space-200, 16px)",
|
|
23
|
+
paddingBottom: "var(--ds-space-100, 8px)"
|
|
24
|
+
});
|
|
25
|
+
var jqlSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/';
|
|
26
|
+
export var InitialStateView = function InitialStateView() {
|
|
27
|
+
var _useIntl = useIntl(),
|
|
28
|
+
formatMessage = _useIntl.formatMessage;
|
|
29
|
+
return jsx("div", {
|
|
30
|
+
css: initialStateViewContainerStyles,
|
|
31
|
+
"data-testid": "jlol-datasource-modal--initial-state-view"
|
|
32
|
+
}, jsx("div", {
|
|
33
|
+
css: svgAndTextsWrapperStyles
|
|
34
|
+
}, jsx(InitialStateSVG, null), jsx("div", {
|
|
35
|
+
css: searchTitleStyles
|
|
36
|
+
}, formatMessage(initialStateViewMessages.searchTitle)), jsx("div", null, formatMessage(initialStateViewMessages.searchDescription)), jsx("a", {
|
|
37
|
+
href: jqlSupportDocumentLink,
|
|
38
|
+
target: "_blank"
|
|
39
|
+
}, formatMessage(initialStateViewMessages.learnMoreLink))));
|
|
40
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var initialStateViewMessages = defineMessages({
|
|
3
|
+
searchTitle: {
|
|
4
|
+
id: 'linkDataSource.modal-initial-state.searchTitle',
|
|
5
|
+
description: 'The initial modal search state title that gives the user some idea about how to get information',
|
|
6
|
+
defaultMessage: 'Search for Jira issues'
|
|
7
|
+
},
|
|
8
|
+
searchDescription: {
|
|
9
|
+
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
10
|
+
description: 'The initial modal search state helper message displayed under the search title',
|
|
11
|
+
defaultMessage: 'Start typing or use JQL to search.'
|
|
12
|
+
},
|
|
13
|
+
learnMoreLink: {
|
|
14
|
+
id: 'linkDataSource.modal-initial-state.learnMoreLink',
|
|
15
|
+
description: 'The link that displays under the search description to help people know more about JQL',
|
|
16
|
+
defaultMessage: 'Learn more about searching with JQL.'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -24,6 +24,7 @@ import { ModalLoadingError } from '../../common/error-state/modal-loading-error'
|
|
|
24
24
|
import { NoResults } from '../../common/error-state/no-results';
|
|
25
25
|
import { EmptyState, IssueLikeDataTableView } from '../../issue-like-table';
|
|
26
26
|
import LinkRenderType from '../../issue-like-table/render-type/link';
|
|
27
|
+
import { InitialStateView } from '../initial-state-view';
|
|
27
28
|
import { JiraSearchContainer } from '../jira-search-container';
|
|
28
29
|
import { ModeSwitcher } from '../mode-switcher';
|
|
29
30
|
import { JiraSiteSelector } from '../site-selector';
|
|
@@ -348,9 +349,10 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
348
349
|
// persist the empty state when making the initial /data request which contains the columns
|
|
349
350
|
return jsx("div", {
|
|
350
351
|
css: contentContainerStyles
|
|
351
|
-
}, jsx(EmptyState, {
|
|
352
|
-
testId: "jira-jql-datasource-modal--empty-state"
|
|
353
|
-
|
|
352
|
+
}, !!jql ? jsx(EmptyState, {
|
|
353
|
+
testId: "jira-jql-datasource-modal--empty-state",
|
|
354
|
+
isLoading: true
|
|
355
|
+
}) : jsx(InitialStateView, null));
|
|
354
356
|
}
|
|
355
357
|
var firstIssueUrl = retrieveUrlForSmartCardRender();
|
|
356
358
|
if (responseItems.length === 1 && firstIssueUrl) {
|
|
@@ -361,7 +363,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
361
363
|
}));
|
|
362
364
|
}
|
|
363
365
|
return issueLikeDataTableView;
|
|
364
|
-
}, [status,
|
|
366
|
+
}, [status, jqlUrl, resolvedWithNoResults, columns.length, retrieveUrlForSmartCardRender, responseItems.length, issueLikeDataTableView, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.displayName, jql]);
|
|
365
367
|
return jsx(ModalTransition, null, jsx(Modal, {
|
|
366
368
|
testId: 'jira-jql-datasource-modal',
|
|
367
369
|
onClose: onCancel,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const initialStateViewMessages: {
|
|
2
|
+
searchTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
searchDescription: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
learnMoreLink: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const initialStateViewMessages: {
|
|
2
|
+
searchTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
searchDescription: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
learnMoreLink: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|