@atlaskit/link-datasource 1.18.1 → 1.19.0

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/analytics/constants.js +1 -1
  3. package/dist/cjs/ui/common/error-state/messages.js +10 -0
  4. package/dist/cjs/ui/common/error-state/no-instances-svg.js +154 -0
  5. package/dist/cjs/ui/common/error-state/no-instances.js +36 -0
  6. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +1 -1
  7. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +28 -21
  8. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/index.js +10 -34
  9. package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +50 -18
  10. package/dist/cjs/ui/jira-issues-modal/modal/index.js +11 -9
  11. package/dist/cjs/ui/jira-issues-modal/site-selector/index.js +3 -3
  12. package/dist/es2019/analytics/constants.js +1 -1
  13. package/dist/es2019/ui/common/error-state/messages.js +10 -0
  14. package/dist/es2019/ui/common/error-state/no-instances-svg.js +147 -0
  15. package/dist/es2019/ui/common/error-state/no-instances.js +27 -0
  16. package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +1 -1
  17. package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +17 -14
  18. package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/index.js +17 -32
  19. package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +50 -15
  20. package/dist/es2019/ui/jira-issues-modal/modal/index.js +10 -8
  21. package/dist/es2019/ui/jira-issues-modal/site-selector/index.js +3 -3
  22. package/dist/esm/analytics/constants.js +1 -1
  23. package/dist/esm/ui/common/error-state/messages.js +10 -0
  24. package/dist/esm/ui/common/error-state/no-instances-svg.js +147 -0
  25. package/dist/esm/ui/common/error-state/no-instances.js +29 -0
  26. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +1 -1
  27. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +29 -22
  28. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/index.js +10 -31
  29. package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +50 -16
  30. package/dist/esm/ui/jira-issues-modal/modal/index.js +11 -9
  31. package/dist/esm/ui/jira-issues-modal/site-selector/index.js +3 -3
  32. package/dist/types/ui/common/error-state/messages.d.ts +10 -0
  33. package/dist/types/ui/common/error-state/no-instances-svg.d.ts +2 -0
  34. package/dist/types/ui/common/error-state/no-instances.d.ts +3 -0
  35. package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -1
  36. package/dist/types/ui/jira-issues-modal/basic-filters/ui/index.d.ts +6 -4
  37. package/dist/types/ui/jira-issues-modal/site-selector/index.d.ts +1 -1
  38. package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +10 -0
  39. package/dist/types-ts4.5/ui/common/error-state/no-instances-svg.d.ts +2 -0
  40. package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +3 -0
  41. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -1
  42. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/index.d.ts +6 -4
  43. package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/index.d.ts +1 -1
  44. package/package.json +2 -2
@@ -0,0 +1,147 @@
1
+ import React from 'react';
2
+ export var NoInstancesSvg = function NoInstancesSvg() {
3
+ return /*#__PURE__*/React.createElement("svg", {
4
+ width: "147",
5
+ height: "171",
6
+ viewBox: "0 0 147 171",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, /*#__PURE__*/React.createElement("g", {
10
+ clipPath: "url(#clip0_1442_1679)"
11
+ }, /*#__PURE__*/React.createElement("rect", {
12
+ width: "146.22",
13
+ height: "169.36",
14
+ transform: "translate(0.0300293 0.875)",
15
+ fill: "white",
16
+ fillOpacity: "0.01"
17
+ }), /*#__PURE__*/React.createElement("path", {
18
+ opacity: "0.3",
19
+ d: "M110.62 170.234H97.46C96.31 170.234 95.38 169.304 95.38 168.154C95.38 167.004 96.31 166.074 97.46 166.074H110.62C111.77 166.074 112.7 167.004 112.7 168.154C112.7 169.304 111.77 170.234 110.62 170.234Z",
20
+ fill: "#B3BAC5"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ opacity: "0.3",
23
+ d: "M85.24 170.234H72.08C70.93 170.234 70 169.304 70 168.154C70 167.004 70.93 166.074 72.08 166.074H85.24C86.39 166.074 87.32 167.004 87.32 168.154C87.32 169.304 86.39 170.234 85.24 170.234Z",
24
+ fill: "#B3BAC5"
25
+ }), /*#__PURE__*/React.createElement("path", {
26
+ opacity: "0.3",
27
+ d: "M59.86 170.234H46.71C45.56 170.234 44.63 169.304 44.63 168.154C44.63 167.004 45.56 166.074 46.71 166.074H59.87C61.02 166.074 61.95 167.004 61.95 168.154C61.95 169.304 61.01 170.234 59.86 170.234Z",
28
+ fill: "#B3BAC5"
29
+ }), /*#__PURE__*/React.createElement("path", {
30
+ opacity: "0.3",
31
+ d: "M34.49 170.234H21.33C20.18 170.234 19.25 169.304 19.25 168.154C19.25 167.004 20.18 166.074 21.33 166.074H34.49C35.64 166.074 36.57 167.004 36.57 168.154C36.57 169.304 35.64 170.234 34.49 170.234Z",
32
+ fill: "#B3BAC5"
33
+ }), /*#__PURE__*/React.createElement("path", {
34
+ opacity: "0.3",
35
+ d: "M9.11003 170.234H2.11003C0.960029 170.234 0.0300293 169.304 0.0300293 168.154V161.154C0.0300293 160.004 0.960029 159.074 2.11003 159.074C3.26003 159.074 4.19003 160.004 4.19003 161.154V166.074H9.11003C10.26 166.074 11.19 167.004 11.19 168.154C11.19 169.304 10.26 170.234 9.11003 170.234Z",
36
+ fill: "#B3BAC5"
37
+ }), /*#__PURE__*/React.createElement("path", {
38
+ opacity: "0.3",
39
+ d: "M2.11003 149.954C0.960029 149.954 0.0300293 149.024 0.0300293 147.874V133.574C0.0300293 132.424 0.960029 131.494 2.11003 131.494C3.26003 131.494 4.19003 132.424 4.19003 133.574V147.874C4.19003 149.024 3.26003 149.954 2.11003 149.954Z",
40
+ fill: "#B3BAC5"
41
+ }), /*#__PURE__*/React.createElement("path", {
42
+ opacity: "0.3",
43
+ d: "M2.11003 122.374C0.960029 122.374 0.0300293 121.444 0.0300293 120.294V105.994C0.0300293 104.844 0.960029 103.914 2.11003 103.914C3.26003 103.914 4.19003 104.844 4.19003 105.994V120.294C4.19003 121.444 3.26003 122.374 2.11003 122.374Z",
44
+ fill: "#B3BAC5"
45
+ }), /*#__PURE__*/React.createElement("path", {
46
+ opacity: "0.3",
47
+ d: "M2.11003 94.7942C0.960029 94.7942 0.0300293 93.8542 0.0300293 92.7042V78.4042C0.0300293 77.2542 0.960029 76.3242 2.11003 76.3242C3.26003 76.3242 4.19003 77.2542 4.19003 78.4042V92.7042C4.19003 93.8542 3.26003 94.7942 2.11003 94.7942Z",
48
+ fill: "#B3BAC5"
49
+ }), /*#__PURE__*/React.createElement("path", {
50
+ opacity: "0.3",
51
+ d: "M2.11003 67.2041C0.960029 67.2041 0.0300293 66.2741 0.0300293 65.1241V50.8241C0.0300293 49.6741 0.960029 48.7441 2.11003 48.7441C3.26003 48.7441 4.19003 49.6741 4.19003 50.8241V65.1241C4.19003 66.2741 3.26003 67.2041 2.11003 67.2041Z",
52
+ fill: "#B3BAC5"
53
+ }), /*#__PURE__*/React.createElement("path", {
54
+ opacity: "0.3",
55
+ d: "M2.11003 39.6241C0.960029 39.6241 0.0300293 38.6841 0.0300293 37.5441V23.2441C0.0300293 22.0941 0.960029 21.1641 2.11003 21.1641C3.26003 21.1641 4.19003 22.0941 4.19003 23.2441V37.5441C4.19003 38.6841 3.26003 39.6241 2.11003 39.6241Z",
56
+ fill: "#B3BAC5"
57
+ }), /*#__PURE__*/React.createElement("path", {
58
+ opacity: "0.3",
59
+ d: "M2.11003 12.035C0.960029 12.035 0.0300293 11.105 0.0300293 9.955V2.955C0.0300293 1.805 0.960029 0.875 2.11003 0.875H9.11003C10.26 0.875 11.19 1.805 11.19 2.955C11.19 4.105 10.26 5.035 9.11003 5.035H4.19003V9.955C4.19003 11.105 3.26003 12.035 2.11003 12.035Z",
60
+ fill: "#B3BAC5"
61
+ }), /*#__PURE__*/React.createElement("path", {
62
+ opacity: "0.3",
63
+ d: "M110.6 5.035H97.44C96.29 5.035 95.36 4.105 95.36 2.955C95.36 1.805 96.29 0.875 97.44 0.875H110.6C111.75 0.875 112.68 1.805 112.68 2.955C112.68 4.105 111.74 5.035 110.6 5.035Z",
64
+ fill: "#B3BAC5"
65
+ }), /*#__PURE__*/React.createElement("path", {
66
+ opacity: "0.3",
67
+ d: "M85.22 5.035H72.07C70.92 5.035 69.99 4.105 69.99 2.955C69.99 1.805 70.92 0.875 72.07 0.875H85.23C86.38 0.875 87.31 1.805 87.31 2.955C87.31 4.105 86.37 5.035 85.22 5.035Z",
68
+ fill: "#B3BAC5"
69
+ }), /*#__PURE__*/React.createElement("path", {
70
+ opacity: "0.3",
71
+ d: "M59.85 5.035H46.7C45.55 5.035 44.62 4.105 44.62 2.955C44.62 1.805 45.55 0.875 46.7 0.875H59.86C61.01 0.875 61.94 1.805 61.94 2.955C61.94 4.105 61 5.035 59.85 5.035Z",
72
+ fill: "#B3BAC5"
73
+ }), /*#__PURE__*/React.createElement("path", {
74
+ opacity: "0.3",
75
+ d: "M34.48 5.035H21.33C20.18 5.035 19.25 4.105 19.25 2.955C19.25 1.805 20.18 0.875 21.33 0.875H34.49C35.64 0.875 36.57 1.805 36.57 2.955C36.57 4.105 35.63 5.035 34.48 5.035Z",
76
+ fill: "#B3BAC5"
77
+ }), /*#__PURE__*/React.createElement("path", {
78
+ opacity: "0.3",
79
+ d: "M129.81 12.035C128.66 12.035 127.73 11.105 127.73 9.955V5.035H122.81C121.66 5.035 120.73 4.105 120.73 2.955C120.73 1.805 121.66 0.875 122.81 0.875H129.81C130.96 0.875 131.89 1.805 131.89 2.955V9.955C131.89 11.105 130.96 12.035 129.81 12.035Z",
80
+ fill: "#B3BAC5"
81
+ }), /*#__PURE__*/React.createElement("path", {
82
+ opacity: "0.3",
83
+ d: "M129.83 122.374C128.68 122.374 127.75 121.444 127.75 120.294V105.994C127.75 104.844 128.68 103.914 129.83 103.914C130.98 103.914 131.91 104.844 131.91 105.994V120.294C131.91 121.444 130.98 122.374 129.83 122.374Z",
84
+ fill: "#B3BAC5"
85
+ }), /*#__PURE__*/React.createElement("path", {
86
+ opacity: "0.3",
87
+ d: "M129.82 94.7842C128.67 94.7842 127.74 93.8542 127.74 92.7042V78.4042C127.74 77.2542 128.67 76.3242 129.82 76.3242C130.97 76.3242 131.9 77.2542 131.9 78.4042V92.7042C131.91 93.8542 130.97 94.7842 129.82 94.7842Z",
88
+ fill: "#B3BAC5"
89
+ }), /*#__PURE__*/React.createElement("path", {
90
+ opacity: "0.3",
91
+ d: "M129.82 67.2041C128.67 67.2041 127.74 66.2741 127.74 65.1241V50.8241C127.74 49.6741 128.67 48.7441 129.82 48.7441C130.97 48.7441 131.9 49.6741 131.9 50.8241V65.1241C131.9 66.2741 130.97 67.2041 129.82 67.2041Z",
92
+ fill: "#B3BAC5"
93
+ }), /*#__PURE__*/React.createElement("path", {
94
+ opacity: "0.3",
95
+ d: "M129.82 39.6241C128.67 39.6241 127.74 38.6941 127.74 37.5441V23.2441C127.74 22.0941 128.67 21.1641 129.82 21.1641C130.97 21.1641 131.9 22.0941 131.9 23.2441V37.5441C131.9 38.6841 130.96 39.6241 129.82 39.6241Z",
96
+ fill: "#B3BAC5"
97
+ }), /*#__PURE__*/React.createElement("path", {
98
+ d: "M107.63 118.355L101.57 112.375L93.26 120.795L99.32 126.775C100.87 128.305 101.95 130.235 102.44 132.345C102.93 134.465 104.01 136.395 105.56 137.915L130.13 162.155C133.85 165.825 139.85 165.785 143.52 162.065C147.19 158.345 147.15 152.345 143.43 148.675L118.86 124.435C117.31 122.905 115.37 121.855 113.24 121.385C111.13 120.935 109.18 119.885 107.63 118.355Z",
99
+ fill: "#CFD4DB"
100
+ }), /*#__PURE__*/React.createElement("path", {
101
+ d: "M107.63 118.355L105.79 116.535C103.46 114.235 99.72 114.265 97.42 116.595C95.12 118.925 95.15 122.665 97.48 124.965L99.32 126.785C100.87 128.315 101.95 130.245 102.44 132.355C102.93 134.475 104.01 136.405 105.56 137.925L130.13 162.165C133.85 165.835 139.85 165.795 143.52 162.075C147.19 158.355 147.15 152.355 143.43 148.685L118.86 124.445C117.31 122.915 115.37 121.865 113.24 121.395C111.13 120.935 109.18 119.885 107.63 118.355Z",
102
+ fill: "url(#paint0_linear_1442_1679)"
103
+ }), /*#__PURE__*/React.createElement("path", {
104
+ d: "M113 121.335C110.98 120.845 109.12 119.815 107.63 118.355L105.79 116.535C103.46 114.235 99.72 114.265 97.42 116.595C95.12 118.925 95.15 122.665 97.48 124.965L99.32 126.785C100.8 128.245 101.85 130.085 102.37 132.105C104.39 130.605 106.31 128.935 108.11 127.115C109.9 125.295 111.53 123.365 113 121.335Z",
105
+ fill: "#B3BAC5"
106
+ }), /*#__PURE__*/React.createElement("path", {
107
+ d: "M66.94 137.126C53.72 137.216 41.26 132.146 31.85 122.866C12.44 103.696 12.23 72.3057 31.39 52.8757C40.67 43.4657 53.07 38.2357 66.28 38.1457C79.5 38.0557 91.96 43.1257 101.37 52.4057C110.78 61.6857 116.01 74.0857 116.1 87.2957C116.19 100.506 111.12 112.976 101.84 122.386C92.55 131.806 80.16 137.036 66.94 137.126ZM39.8 61.1757C32.73 68.3357 28.88 77.8257 28.94 87.8857C29.08 108.656 46.09 125.446 66.87 125.316C76.93 125.246 86.37 121.266 93.44 114.106C100.51 106.946 104.37 97.4557 104.3 87.3957C104.23 77.3357 100.25 67.8957 93.09 60.8257C85.93 53.7557 76.44 49.8957 66.38 49.9657C56.3 50.0357 46.87 54.0157 39.8 61.1757Z",
108
+ fill: "url(#paint1_linear_1442_1679)"
109
+ }), /*#__PURE__*/React.createElement("path", {
110
+ d: "M84.27 75.5345L79.11 70.3345C78.35 69.5645 77.11 69.5645 76.34 70.3245L66.64 79.9545L57.03 70.2545C56.27 69.4845 55.03 69.4845 54.26 70.2445L49.06 75.4045C48.29 76.1645 48.29 77.4045 49.05 78.1745L58.68 87.8745L48.98 97.5045C48.21 98.2645 48.21 99.5045 48.97 100.275L54.13 105.475C54.89 106.245 56.13 106.245 56.9 105.485L66.6 95.8545L76.23 105.555C76.99 106.325 78.23 106.325 79 105.565L84.2 100.405C84.97 99.6445 84.97 98.4045 84.21 97.6345L74.58 87.9345L84.28 78.3045C85.03 77.5345 85.04 76.2945 84.27 75.5345Z",
111
+ fill: "#C1C7D0"
112
+ })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
113
+ id: "paint0_linear_1442_1679",
114
+ x1: "95.4796",
115
+ y1: "139.562",
116
+ x2: "146.445",
117
+ y2: "140.204",
118
+ gradientUnits: "userSpaceOnUse"
119
+ }, /*#__PURE__*/React.createElement("stop", {
120
+ stopColor: "#B3BAC5"
121
+ }), /*#__PURE__*/React.createElement("stop", {
122
+ offset: "1",
123
+ stopColor: "#DFE1E5",
124
+ stopOpacity: "0.5"
125
+ })), /*#__PURE__*/React.createElement("linearGradient", {
126
+ id: "paint1_linear_1442_1679",
127
+ x1: "31.1877",
128
+ y1: "122.181",
129
+ x2: "102.046",
130
+ y2: "53.0865",
131
+ gradientUnits: "userSpaceOnUse"
132
+ }, /*#__PURE__*/React.createElement("stop", {
133
+ offset: "0.5572",
134
+ stopColor: "#C1C7D0"
135
+ }), /*#__PURE__*/React.createElement("stop", {
136
+ offset: "0.966",
137
+ stopColor: "#E9EBEF",
138
+ stopOpacity: "0.5"
139
+ })), /*#__PURE__*/React.createElement("clipPath", {
140
+ id: "clip0_1442_1679"
141
+ }, /*#__PURE__*/React.createElement("rect", {
142
+ width: "146.22",
143
+ height: "169.36",
144
+ fill: "white",
145
+ transform: "translate(0.0300293 0.875)"
146
+ }))));
147
+ };
@@ -0,0 +1,29 @@
1
+ /** @jsx jsx */
2
+ import { css, jsx } from '@emotion/react';
3
+ import { FormattedMessage } from 'react-intl-next';
4
+ import { Flex, xcss } from '@atlaskit/primitives';
5
+ import { loadingErrorMessages } from './messages';
6
+ import { NoInstancesSvg } from './no-instances-svg';
7
+ var titleStyles = css({
8
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
9
+ fontSize: "var(--ds-font-size-200, 16px)",
10
+ marginTop: "var(--ds-space-200, 16px)"
11
+ });
12
+ var descriptionStyles = css({
13
+ marginTop: "var(--ds-space-100, 8px)"
14
+ });
15
+ var containerStyles = xcss({
16
+ marginTop: '60px'
17
+ });
18
+ export var NoInstancesView = function NoInstancesView() {
19
+ return jsx(Flex, {
20
+ testId: "no-jira-instances-content",
21
+ direction: "column",
22
+ alignItems: "center",
23
+ xcss: containerStyles
24
+ }, jsx(NoInstancesSvg, null), jsx("span", {
25
+ css: titleStyles
26
+ }, jsx(FormattedMessage, loadingErrorMessages.noAccessToJiraSitesTitle)), jsx("span", {
27
+ css: descriptionStyles
28
+ }, jsx(FormattedMessage, loadingErrorMessages.noAccessToJiraSitesDescription)));
29
+ };
@@ -28,6 +28,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
28
28
  var filterType = _ref.filterType,
29
29
  cloudId = _ref.cloudId,
30
30
  selection = _ref.selection,
31
+ isJQLHydrating = _ref.isJQLHydrating,
31
32
  _ref$onSelectionChang = _ref.onSelectionChange,
32
33
  onSelectionChange = _ref$onSelectionChang === void 0 ? function () {} : _ref$onSelectionChang,
33
34
  _ref$onReset = _ref.onReset,
@@ -190,7 +191,6 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
190
191
  }
191
192
  }, [selectedOptions, selection]);
192
193
  var filterOptionsLength = filterOptions.length;
193
- var isJQLHydrating = false;
194
194
  var isError = status === 'rejected';
195
195
  var isLoading = status === 'loading' || status === 'empty';
196
196
  var isLoadingMore = status === 'loadingMore';
@@ -1,5 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import React, { forwardRef } from 'react';
2
+ import React, { forwardRef, useCallback } from 'react';
3
3
  import styled from '@emotion/styled';
4
4
  import { FormattedMessage } from 'react-intl-next';
5
5
  import Badge from '@atlaskit/badge';
@@ -40,33 +40,40 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
40
40
  var _ref2 = selectedOptions || [],
41
41
  _ref3 = _slicedToArray(_ref2, 1),
42
42
  firstOption = _ref3[0];
43
- var testId = "jlol-basic-filter-".concat(filterType, "-trigger");
44
43
  var hasOptions = selectedOptions && selectedOptions.length > 0;
45
44
  var showButtonLoading = !isDisabled && isLoading;
46
- if (showButtonLoading) {
45
+ var LoadingButton = useCallback(function () {
47
46
  return /*#__PURE__*/React.createElement(LoadingStateAnimationWrapper, null, /*#__PURE__*/React.createElement(Button, {
48
47
  iconAfter: /*#__PURE__*/React.createElement(Spinner, {
49
48
  size: 'xsmall'
50
- }),
51
- testId: testId
49
+ })
52
50
  }, /*#__PURE__*/React.createElement(FormattedMessage, asyncPopupSelectMessages["".concat(filterType, "Label")])));
53
- }
54
- return /*#__PURE__*/React.createElement(Button, {
51
+ }, [filterType]);
52
+ var DefaultButton = useCallback(function () {
53
+ return /*#__PURE__*/React.createElement(Button, {
54
+ appearance: "default",
55
+ isSelected: isSelected || hasOptions,
56
+ isDisabled: isDisabled,
57
+ iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
58
+ label: ""
59
+ })
60
+ }, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
61
+ xcss: triggerButtonLabelStyles
62
+ }, /*#__PURE__*/React.createElement(FormattedMessage, asyncPopupSelectMessages["".concat(filterType, "Label")]), firstOption && /*#__PURE__*/React.createElement(React.Fragment, null, ": ", firstOption.label)), selectedOptions && selectedOptions.length > 1 && /*#__PURE__*/React.createElement(Flex, {
63
+ xcss: badgeStyles,
64
+ alignItems: "center"
65
+ }, /*#__PURE__*/React.createElement(Badge, {
66
+ appearance: "primary"
67
+ }, "+", selectedOptions.length - 1))));
68
+ }, [filterType, firstOption, hasOptions, isDisabled, isSelected, selectedOptions]);
69
+
70
+ /**
71
+ * We had an issue with the popup component referencing a stale DOM ref for the trigger button.
72
+ * Hence introducing a Box to make sure ref is always the same and only content is refreshed on re-renders
73
+ */
74
+ return /*#__PURE__*/React.createElement(Box, {
55
75
  ref: ref,
56
- appearance: "default",
57
- isSelected: isSelected || hasOptions,
58
- isDisabled: isDisabled,
59
- testId: testId,
60
- iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
61
- label: ""
62
- })
63
- }, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
64
- xcss: triggerButtonLabelStyles
65
- }, /*#__PURE__*/React.createElement(FormattedMessage, asyncPopupSelectMessages["".concat(filterType, "Label")]), firstOption && /*#__PURE__*/React.createElement(React.Fragment, null, ": ", firstOption.label)), selectedOptions && selectedOptions.length > 1 && /*#__PURE__*/React.createElement(Flex, {
66
- xcss: badgeStyles,
67
- alignItems: "center"
68
- }, /*#__PURE__*/React.createElement(Badge, {
69
- appearance: "primary"
70
- }, "+", selectedOptions.length - 1))));
76
+ testId: "jlol-basic-filter-".concat(filterType, "-trigger")
77
+ }, showButtonLoading ? /*#__PURE__*/React.createElement(LoadingButton, null) : /*#__PURE__*/React.createElement(DefaultButton, null));
71
78
  });
72
79
  export default PopupTrigger;
@@ -1,38 +1,16 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- import React, { useCallback, useEffect, useState } from 'react';
1
+ import React from 'react';
6
2
  import { Flex, xcss } from '@atlaskit/primitives';
7
- import { isValidJql } from '../utils';
8
3
  import AsyncPopupSelect from './async-popup-select';
9
4
  var availableBasicFilterTypes = ['project', 'issuetype', 'status', 'assignee'];
10
5
  var basicFilterContainerStyles = xcss({
11
6
  paddingLeft: "var(--ds-space-100, 8px)"
12
7
  });
13
8
  var BasicFilterContainer = function BasicFilterContainer(_ref) {
14
- var jql = _ref.jql,
15
- cloudId = _ref.cloudId,
16
- onChange = _ref.onChange;
17
- var _useState = useState({}),
18
- _useState2 = _slicedToArray(_useState, 2),
19
- selection = _useState2[0],
20
- setSelection = _useState2[1];
21
- useEffect(function () {
22
- if (isValidJql(jql)) {
23
- // hydrate hook call goes in here
24
- }
25
- }, [jql]);
26
- var handleSelectionChange = useCallback(function (filterType, options) {
27
- var updatedSelection = _objectSpread(_objectSpread({}, selection), {}, _defineProperty({}, filterType, options));
28
- setSelection(updatedSelection);
29
- onChange(updatedSelection);
30
- }, [onChange, selection]);
31
- var handleReset = useCallback(function () {
32
- if (Object.keys(selection).length > 0) {
33
- setSelection({});
34
- }
35
- }, [selection]);
9
+ var cloudId = _ref.cloudId,
10
+ onChange = _ref.onChange,
11
+ selections = _ref.selections,
12
+ onReset = _ref.onReset,
13
+ isJQLHydrating = _ref.isJQLHydrating;
36
14
  return /*#__PURE__*/React.createElement(Flex, {
37
15
  xcss: basicFilterContainerStyles,
38
16
  gap: "space.100",
@@ -42,10 +20,11 @@ var BasicFilterContainer = function BasicFilterContainer(_ref) {
42
20
  cloudId: cloudId,
43
21
  filterType: filter,
44
22
  key: filter,
45
- selection: selection[filter] || [],
23
+ selection: selections[filter] || [],
24
+ isJQLHydrating: isJQLHydrating,
46
25
  isDisabled: !cloudId,
47
- onSelectionChange: handleSelectionChange,
48
- onReset: handleReset
26
+ onSelectionChange: onChange,
27
+ onReset: onReset
49
28
  });
50
29
  }));
51
30
  };
@@ -1,4 +1,7 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2
5
  /** @jsx jsx */
3
6
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
4
7
  import { css, jsx } from '@emotion/react';
@@ -8,6 +11,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
11
  import { Flex, xcss } from '@atlaskit/primitives';
9
12
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
10
13
  import { BasicFilters } from '../basic-filters';
14
+ import { useHydrateJqlQuery } from '../basic-filters/hooks/useHydrateJqlQuery';
11
15
  import { SEARCH_DEBOUNCE_MS } from '../basic-filters/ui/async-popup-select';
12
16
  import { isQueryTooComplex } from '../basic-filters/utils/isQueryTooComplex';
13
17
  import { BasicSearchInput } from '../basic-search-input';
@@ -65,8 +69,18 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
65
69
  setOrderDirection = _useState12[1];
66
70
  var _useState13 = useState({}),
67
71
  _useState14 = _slicedToArray(_useState13, 2),
68
- filters = _useState14[0],
69
- setFilters = _useState14[1];
72
+ filterSelections = _useState14[0],
73
+ setFilterSelections = _useState14[1];
74
+ var showBasicFilters = useMemo(function () {
75
+ if (getBooleanFF('platform.linking-platform.datasource.show-jlol-basic-filters')) {
76
+ return true;
77
+ }
78
+ return false;
79
+ }, []);
80
+ var _useHydrateJqlQuery = useHydrateJqlQuery(cloudId || '', jql),
81
+ hydratedOptions = _useHydrateJqlQuery.hydratedOptions,
82
+ fetchHydratedJqlOptions = _useHydrateJqlQuery.fetchHydratedJqlOptions,
83
+ basicFilterHydrationStatus = _useHydrateJqlQuery.status;
70
84
  var onSearchMethodChange = useCallback(function (searchMethod) {
71
85
  onSearchMethodChangeCallback(searchMethod);
72
86
  setCurrentSearchMethod(searchMethod);
@@ -76,11 +90,11 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
76
90
  setBasicSearchTerm(rawSearch);
77
91
  setJql(buildJQL({
78
92
  rawSearch: rawSearch,
79
- filterValues: filters,
93
+ filterValues: filterSelections,
80
94
  orderDirection: orderDirection,
81
95
  orderKey: orderKey
82
96
  }));
83
- }, [filters, orderDirection, orderKey]);
97
+ }, [filterSelections, orderDirection, orderKey]);
84
98
  var onQueryChange = useCallback(function (query) {
85
99
  var _query$split$map$filt, _fragments$at, _fragments$at2, _fragments$at3;
86
100
  // determine if order keys have been set so they can be saved and persisted when changes occur in basic search
@@ -102,13 +116,17 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
102
116
  onSearch({
103
117
  jql: jql
104
118
  }, currentSearchMethod);
105
- setIsComplexQuery(isQueryTooComplex(jql));
106
119
  if (currentSearchMethod === 'basic') {
107
120
  fireEvent('ui.form.submitted.basicSearch', {});
108
121
  } else if (currentSearchMethod === 'jql') {
109
122
  fireEvent('ui.jqlEditor.searched', {});
123
+ var isCurrentQueryComplex = isQueryTooComplex(jql);
124
+ setIsComplexQuery(isCurrentQueryComplex);
125
+ if (showBasicFilters && !isCurrentQueryComplex) {
126
+ fetchHydratedJqlOptions();
127
+ }
110
128
  }
111
- }, [currentSearchMethod, fireEvent, jql, onSearch]);
129
+ }, [currentSearchMethod, fetchHydratedJqlOptions, fireEvent, jql, onSearch, showBasicFilters]);
112
130
  var _useDebouncedCallback = useDebouncedCallback(function (filterValues) {
113
131
  var jqlWithFilterValues = buildJQL({
114
132
  rawSearch: basicSearchTerm,
@@ -124,21 +142,35 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
124
142
  _useDebouncedCallback2 = _slicedToArray(_useDebouncedCallback, 1),
125
143
  debouncedBasicFilterSelectionChange = _useDebouncedCallback2[0];
126
144
  var handleBasicFilterSelectionChange = useCallback(function (filterValues) {
127
- setFilters(filterValues);
145
+ setFilterSelections(filterValues);
128
146
  debouncedBasicFilterSelectionChange(filterValues);
129
147
  }, [debouncedBasicFilterSelectionChange]);
130
148
  useEffect(function () {
131
- setIsComplexQuery(isQueryTooComplex(jql));
149
+ var isCurrentQueryComplex = isQueryTooComplex(jql);
150
+ setIsComplexQuery(isCurrentQueryComplex);
151
+ if (showBasicFilters && !isCurrentQueryComplex && jql !== DEFAULT_JQL_QUERY) {
152
+ fetchHydratedJqlOptions();
153
+ }
132
154
  // eslint-disable-next-line react-hooks/exhaustive-deps
133
155
  }, []);
134
- var showBasicFilters = useMemo(function () {
135
- if (getBooleanFF('platform.linking-platform.datasource.show-jlol-basic-filters')) {
136
- return true;
156
+ useEffect(function () {
157
+ if (basicFilterHydrationStatus === 'resolved') {
158
+ setFilterSelections(hydratedOptions);
137
159
  }
138
- return false;
139
- }, []);
160
+ }, [hydratedOptions, basicFilterHydrationStatus]);
161
+ var handleSelectionChange = useCallback(function (filterType, options) {
162
+ var updatedSelection = _objectSpread(_objectSpread({}, filterSelections), {}, _defineProperty({}, filterType, options));
163
+ setFilterSelections(updatedSelection);
164
+ handleBasicFilterSelectionChange(updatedSelection);
165
+ }, [handleBasicFilterSelectionChange, filterSelections]);
166
+ var handleBasicFiltersReset = useCallback(function () {
167
+ if (Object.keys(filterSelections).length > 0) {
168
+ setFilterSelections({});
169
+ }
170
+ }, [filterSelections]);
140
171
  return jsx("div", {
141
- css: inputContainerStyles
172
+ css: inputContainerStyles,
173
+ "data-testid": "jira-search-container"
142
174
  }, currentSearchMethod === 'basic' && jsx(Flex, {
143
175
  alignItems: "center",
144
176
  xcss: basicSearchInputContainerStyles
@@ -148,9 +180,11 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
148
180
  onSearch: handleSearch,
149
181
  searchTerm: basicSearchTerm
150
182
  }), showBasicFilters && jsx(BasicFilters, {
151
- jql: jql,
152
183
  cloudId: cloudId || '',
153
- onChange: handleBasicFilterSelectionChange
184
+ onChange: handleSelectionChange,
185
+ selections: filterSelections,
186
+ onReset: handleBasicFiltersReset,
187
+ isJQLHydrating: basicFilterHydrationStatus === 'loading'
154
188
  })), currentSearchMethod === 'jql' && jsx(JiraJQLEditor, {
155
189
  cloudId: cloudId || '',
156
190
  isSearching: isSearching,
@@ -27,6 +27,7 @@ import { useDatasourceTableState } from '../../../hooks/useDatasourceTableState'
27
27
  import { getAvailableJiraSites } from '../../../services/getAvailableJiraSites';
28
28
  import { AccessRequired } from '../../common/error-state/access-required';
29
29
  import { ModalLoadingError } from '../../common/error-state/modal-loading-error';
30
+ import { NoInstancesView } from '../../common/error-state/no-instances';
30
31
  import { NoResults } from '../../common/error-state/no-results';
31
32
  import { EmptyState, IssueLikeDataTableView } from '../../issue-like-table';
32
33
  import LinkRenderType from '../../issue-like-table/render-type/link';
@@ -99,7 +100,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
99
100
  initialParameters = props.parameters,
100
101
  urlBeingEdited = props.url,
101
102
  initialVisibleColumnKeys = props.visibleColumnKeys;
102
- var _useState = useState([]),
103
+ var _useState = useState(undefined),
103
104
  _useState2 = _slicedToArray(_useState, 2),
104
105
  availableSites = _useState2[0],
105
106
  setAvailableSites = _useState2[1];
@@ -169,14 +170,14 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
169
170
  modalRenderInstanceId = _useRef.current;
170
171
  var selectedJiraSite = useMemo(function () {
171
172
  if (cloudId) {
172
- return availableSites.find(function (jiraSite) {
173
+ return availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(function (jiraSite) {
173
174
  return jiraSite.cloudId === cloudId;
174
175
  });
175
176
  } else {
176
177
  var currentlyLoggedInSiteUrl = window.location.origin;
177
- return availableSites.find(function (jiraSite) {
178
+ return (availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(function (jiraSite) {
178
179
  return jiraSite.url === currentlyLoggedInSiteUrl;
179
- }) || availableSites[0];
180
+ })) || (availableSites === null || availableSites === void 0 ? void 0 : availableSites[0]);
180
181
  }
181
182
  }, [availableSites, cloudId]);
182
183
  var analyticsPayload = useMemo(function () {
@@ -190,6 +191,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
190
191
  var isInsertDisabled = !isParametersSet || status === 'rejected' || status === 'unauthorized' || status === 'loading';
191
192
  var shouldShowIssueCount = !!totalCount && totalCount !== 1 && currentViewMode === 'issue';
192
193
  var isDataReady = (visibleColumnKeys || []).length > 0;
194
+ var hasNoJiraSites = availableSites && availableSites.length === 0;
193
195
  useEffect(function () {
194
196
  var shouldStartUfoExperience = status === 'loading';
195
197
  if (shouldStartUfoExperience) {
@@ -506,12 +508,12 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
506
508
  shouldScrollInViewport: true
507
509
  }, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx("div", {
508
510
  css: dropdownContainerStyles
509
- }, availableSites.length < 2 ? jsx(FormattedMessage, modalMessages.insertIssuesTitle) : jsx(Fragment, null, jsx(FormattedMessage, modalMessages.insertIssuesTitleManySites), jsx(JiraSiteSelector, {
511
+ }, availableSites && availableSites.length > 1 ? jsx(Fragment, null, jsx(FormattedMessage, modalMessages.insertIssuesTitleManySites), jsx(JiraSiteSelector, {
510
512
  availableSites: availableSites,
511
513
  onSiteSelection: onSiteSelection,
512
514
  selectedJiraSite: selectedJiraSite,
513
515
  testId: "jira-jql-datasource-modal--site-selector"
514
- })))), jsx(ModeSwitcher, {
516
+ })) : jsx(FormattedMessage, modalMessages.insertIssuesTitle))), !hasNoJiraSites && jsx(ModeSwitcher, {
515
517
  isCompact: true,
516
518
  options: [{
517
519
  label: formatMessage(modalMessages.issueViewModeLabel),
@@ -522,13 +524,13 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
522
524
  }],
523
525
  onOptionValueChange: handleViewModeChange,
524
526
  selectedOptionValue: currentViewMode
525
- })), jsx(ModalBody, null, jsx(JiraSearchContainer, {
527
+ })), jsx(ModalBody, null, !hasNoJiraSites ? jsx(Fragment, null, jsx(JiraSearchContainer, {
526
528
  isSearching: status === 'loading',
527
529
  parameters: parameters,
528
530
  onSearch: onSearch,
529
531
  initialSearchMethod: initialSearchMethod,
530
532
  onSearchMethodChange: setCurrentSearchMethod
531
- }), currentViewMode === 'count' ? renderCountModeContent() : renderIssuesModeContent()), jsx(ModalFooter, null, shouldShowIssueCount && jsx("div", {
533
+ }), currentViewMode === 'count' ? renderCountModeContent() : renderIssuesModeContent()) : jsx(NoInstancesView, null)), jsx(ModalFooter, null, shouldShowIssueCount && jsx("div", {
532
534
  "data-testid": "jira-jql-datasource-modal-total-issues-count",
533
535
  css: issueCountStyles
534
536
  }, jsx(LinkUrl, {
@@ -547,7 +549,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
547
549
  })))), jsx(Button, {
548
550
  appearance: "default",
549
551
  onClick: onCancelClick
550
- }, jsx(FormattedMessage, modalMessages.cancelButtonText)), jsx(Button, {
552
+ }, jsx(FormattedMessage, modalMessages.cancelButtonText)), !hasNoJiraSites && jsx(Button, {
551
553
  appearance: "primary",
552
554
  onClick: onInsertPressed,
553
555
  isDisabled: isInsertDisabled,
@@ -24,7 +24,7 @@ export var JiraSiteSelector = function JiraSiteSelector(props) {
24
24
  var _useIntl = useIntl(),
25
25
  formatMessage = _useIntl.formatMessage;
26
26
  var onChange = function onChange(newValue) {
27
- var selectedSite = availableSites.find(function (site) {
27
+ var selectedSite = availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(function (site) {
28
28
  return site.cloudId === (newValue === null || newValue === void 0 ? void 0 : newValue.value);
29
29
  });
30
30
  if (selectedSite) {
@@ -32,7 +32,7 @@ export var JiraSiteSelector = function JiraSiteSelector(props) {
32
32
  }
33
33
  };
34
34
  var availableSitesOptions = useMemo(function () {
35
- return availableSites.map(function (site) {
35
+ return availableSites === null || availableSites === void 0 ? void 0 : availableSites.map(function (site) {
36
36
  return {
37
37
  label: site.displayName,
38
38
  value: site.cloudId
@@ -48,7 +48,7 @@ export var JiraSiteSelector = function JiraSiteSelector(props) {
48
48
  }, jsx(Select, {
49
49
  css: selectStyles,
50
50
  classNamePrefix: testId,
51
- isLoading: availableSites.length === 0,
51
+ isLoading: !availableSites,
52
52
  onChange: onChange,
53
53
  options: availableSitesOptions,
54
54
  placeholder: formatMessage(siteSelectorMessages.chooseSite),
@@ -44,4 +44,14 @@ export declare const loadingErrorMessages: {
44
44
  description: string;
45
45
  defaultMessage: string;
46
46
  };
47
+ noAccessToJiraSitesTitle: {
48
+ id: string;
49
+ description: string;
50
+ defaultMessage: string;
51
+ };
52
+ noAccessToJiraSitesDescription: {
53
+ id: string;
54
+ description: string;
55
+ defaultMessage: string;
56
+ };
47
57
  };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NoInstancesSvg: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ export declare const NoInstancesView: () => jsx.JSX.Element;
@@ -4,10 +4,11 @@ export interface AsyncPopupSelectProps {
4
4
  filterType: BasicFilterFieldType;
5
5
  cloudId: string;
6
6
  selection: SelectOption[];
7
+ isJQLHydrating: boolean;
7
8
  onSelectionChange?: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
8
9
  onReset?: () => void;
9
10
  isDisabled?: boolean;
10
11
  }
11
12
  export declare const SEARCH_DEBOUNCE_MS = 350;
12
- declare const AsyncPopupSelect: ({ filterType, cloudId, selection, onSelectionChange, onReset: resetSelection, isDisabled, }: AsyncPopupSelectProps) => JSX.Element;
13
+ declare const AsyncPopupSelect: ({ filterType, cloudId, selection, isJQLHydrating, onSelectionChange, onReset: resetSelection, isDisabled, }: AsyncPopupSelectProps) => JSX.Element;
13
14
  export default AsyncPopupSelect;
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
- import type { SelectedOptionsMap } from '../types';
2
+ import type { BasicFilterFieldType, SelectedOptionsMap, SelectOption } from '../types';
3
3
  export interface BasicFilterContainerProps {
4
- jql: string;
5
4
  cloudId: string;
6
- onChange: (selection: SelectedOptionsMap) => void;
5
+ selections: SelectedOptionsMap;
6
+ onChange: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
7
+ onReset: () => void;
8
+ isJQLHydrating: boolean;
7
9
  }
8
- declare const BasicFilterContainer: ({ jql, cloudId, onChange, }: BasicFilterContainerProps) => JSX.Element;
10
+ declare const BasicFilterContainer: ({ cloudId, onChange, selections, onReset, isJQLHydrating, }: BasicFilterContainerProps) => JSX.Element;
9
11
  export default BasicFilterContainer;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { Site } from '../../../services/getAvailableJiraSites';
3
3
  export interface JiraSiteSelectorProps {
4
- availableSites: Site[];
4
+ availableSites: Site[] | undefined;
5
5
  onSiteSelection: (selectedSite: Site) => void;
6
6
  selectedJiraSite?: Site;
7
7
  testId?: string;
@@ -44,4 +44,14 @@ export declare const loadingErrorMessages: {
44
44
  description: string;
45
45
  defaultMessage: string;
46
46
  };
47
+ noAccessToJiraSitesTitle: {
48
+ id: string;
49
+ description: string;
50
+ defaultMessage: string;
51
+ };
52
+ noAccessToJiraSitesDescription: {
53
+ id: string;
54
+ description: string;
55
+ defaultMessage: string;
56
+ };
47
57
  };