@atlaskit/link-datasource 4.19.1 → 4.19.3
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 +19 -0
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +36 -24
- package/dist/cjs/ui/common/error-state/provider-auth-required.js +2 -9
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +2 -18
- package/dist/cjs/ui/common/modal/popup-select/control.js +2 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +8 -2
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +2 -9
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +2 -18
- package/dist/es2019/ui/common/modal/popup-select/control.js +2 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +37 -25
- package/dist/esm/ui/common/error-state/provider-auth-required.js +2 -9
- package/dist/esm/ui/common/modal/basic-search-input/index.js +2 -18
- package/dist/esm/ui/common/modal/popup-select/control.js +2 -1
- package/dist/types/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types/analytics/generated/use-analytics-events.d.ts +2 -1
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +0 -1
- package/dist/types/common/ui/common/render-svg.d.ts +0 -1
- package/dist/types/hooks/useErrorLogger.d.ts +4 -4
- package/dist/types/services/getAvailableSites.d.ts +1 -1
- package/dist/types/services/useAvailableSites.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +3 -3
- package/dist/types/ui/assets-modal/modal/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/loading-state.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/styled.d.ts +0 -1
- package/dist/types/ui/common/error-state/access-required.d.ts +0 -1
- package/dist/types/ui/common/error-state/loading-error.d.ts +0 -1
- package/dist/types/ui/common/error-state/modal-loading-error.d.ts +0 -1
- package/dist/types/ui/common/error-state/no-instances.d.ts +0 -1
- package/dist/types/ui/common/error-state/no-results.d.ts +0 -1
- package/dist/types/ui/common/error-state/provider-auth-required-svg.d.ts +0 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +0 -1
- package/dist/types/ui/common/initial-state-view/index.d.ts +0 -1
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +0 -1
- package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +0 -1
- package/dist/types/ui/common/modal/mode-switcher/index.d.ts +0 -1
- package/dist/types/ui/common/modal/popup-select/custom-checkbox-option.d.ts +0 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/search-count/index.d.ts +1 -1
- package/dist/types/ui/common/modal/site-selector/index.d.ts +0 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.d.ts +0 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +2 -2
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +4 -5
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -1
- package/dist/types/ui/issue-like-table/edit-type/index.d.ts +5 -5
- package/dist/types/ui/issue-like-table/empty-state/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/render-type/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/richtext/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/shared-components/icon/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/truncate-text-tag/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/utils.d.ts +2 -3
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -1
- package/dist/types/ui/table-footer/index.d.ts +0 -1
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/common/render-svg.d.ts +0 -1
- package/dist/types-ts4.5/hooks/useErrorLogger.d.ts +7 -4
- package/dist/types-ts4.5/services/getAvailableSites.d.ts +1 -1
- package/dist/types-ts4.5/services/useAvailableSites.d.ts +1 -1
- package/dist/types-ts4.5/state/actions/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required-svg.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/mode-switcher/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/custom-checkbox-option.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/search-count/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +2 -2
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +4 -5
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/edit-type/index.d.ts +5 -5
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/shared-components/icon/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/truncate-text-tag/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/utils.d.ts +2 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/table-footer/index.d.ts +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.19.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#199487](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199487)
|
|
8
|
+
[`13c28edd2823a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/13c28edd2823a) -
|
|
9
|
+
[ux] NAVX-1053 fixing the debounce for asset modal schema selector input
|
|
10
|
+
- [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
|
|
11
|
+
[`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
|
|
12
|
+
Internal changes to how border radius values are applied. No visual change.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 4.19.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`493a31bb8da8e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/493a31bb8da8e) -
|
|
20
|
+
[ux] Clean up FG replace-legacy-button-in-sllv
|
|
21
|
+
|
|
3
22
|
## 4.19.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -14,14 +14,12 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
|
-
var _button = require("@atlaskit/button");
|
|
18
17
|
var _new = require("@atlaskit/button/new");
|
|
19
18
|
var _form = require("@atlaskit/form");
|
|
20
19
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle"));
|
|
21
20
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
|
|
22
21
|
var _searchEditorSearch = _interopRequireDefault(require("@atlaskit/icon/core/migration/search--editor-search"));
|
|
23
22
|
var _statusSuccessCheckCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-success--check-circle"));
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
23
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
26
24
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
27
25
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
@@ -49,7 +47,6 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
49
47
|
}
|
|
50
48
|
var buttonBaseStyles = null;
|
|
51
49
|
var AQLSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/';
|
|
52
|
-
var searchButtonStyles = null;
|
|
53
50
|
var styles = {
|
|
54
51
|
searchButtonContainer: "_2hwx12x7"
|
|
55
52
|
};
|
|
@@ -125,7 +122,7 @@ var AqlSearchInput = exports.AqlSearchInput = function AqlSearchInput(_ref2) {
|
|
|
125
122
|
LEGACY_size: "medium",
|
|
126
123
|
testId: "assets-datasource-modal-help",
|
|
127
124
|
spacing: "spacious"
|
|
128
|
-
}))),
|
|
125
|
+
}))), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
129
126
|
xcss: styles.searchButtonContainer
|
|
130
127
|
}, /*#__PURE__*/React.createElement(_new.IconButton, {
|
|
131
128
|
appearance: "primary",
|
|
@@ -142,21 +139,7 @@ var AqlSearchInput = exports.AqlSearchInput = function AqlSearchInput(_ref2) {
|
|
|
142
139
|
label: formatMessage(_messages.searchInputMessages.placeholder),
|
|
143
140
|
isDisabled: lastValidationResult.type !== 'valid',
|
|
144
141
|
testId: "assets-datasource-modal--aql-search-button"
|
|
145
|
-
}))
|
|
146
|
-
appearance: "primary",
|
|
147
|
-
iconBefore: /*#__PURE__*/React.createElement(_searchEditorSearch.default, {
|
|
148
|
-
label: formatMessage(_messages.searchInputMessages.placeholder),
|
|
149
|
-
LEGACY_size: "medium",
|
|
150
|
-
color: "currentColor",
|
|
151
|
-
spacing: "spacious"
|
|
152
|
-
}),
|
|
153
|
-
isLoading: isSearching,
|
|
154
|
-
spacing: "none",
|
|
155
|
-
testId: "assets-datasource-modal--aql-search-button",
|
|
156
|
-
type: "submit",
|
|
157
|
-
isDisabled: lastValidationResult.type !== 'valid',
|
|
158
|
-
className: (0, _runtime.ax)(["_2hwx12x7"])
|
|
159
|
-
})),
|
|
142
|
+
}))),
|
|
160
143
|
placeholder: formatMessage(_messages.searchInputMessages.placeholder),
|
|
161
144
|
testId: testId,
|
|
162
145
|
"aria-label": formatMessage(_messages.searchInputMessages.placeholder)
|
|
@@ -122,27 +122,39 @@ var AssetsObjectSchemaSelect = exports.AssetsObjectSchemaSelect = function Asset
|
|
|
122
122
|
}
|
|
123
123
|
return undefined;
|
|
124
124
|
};
|
|
125
|
+
var debounceTimeout = (0, _react.useRef)(null);
|
|
125
126
|
var handleInputChange = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
126
|
-
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
127
|
-
return _regenerator.default.wrap(function
|
|
128
|
-
while (1) switch (
|
|
127
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(newSearchTerm, actionMeta) {
|
|
128
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
129
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
129
130
|
case 0:
|
|
130
|
-
if (
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
if (actionMeta.action === 'input-change' && newSearchTerm !== searchTerm) {
|
|
132
|
+
setSearchTerm(newSearchTerm);
|
|
133
|
+
if (debounceTimeout.current) {
|
|
134
|
+
clearTimeout(debounceTimeout.current);
|
|
135
|
+
}
|
|
136
|
+
debounceTimeout.current = setTimeout( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
137
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
138
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
139
|
+
case 0:
|
|
140
|
+
_context2.t0 = setOptions;
|
|
141
|
+
_context2.next = 3;
|
|
142
|
+
return debouncedLoadOptions(newSearchTerm);
|
|
143
|
+
case 3:
|
|
144
|
+
_context2.t1 = _context2.sent;
|
|
145
|
+
(0, _context2.t0)(_context2.t1);
|
|
146
|
+
case 5:
|
|
147
|
+
case "end":
|
|
148
|
+
return _context2.stop();
|
|
149
|
+
}
|
|
150
|
+
}, _callee2);
|
|
151
|
+
})), SEARCH_DEBOUNCE_MS);
|
|
133
152
|
}
|
|
134
|
-
|
|
135
|
-
_context2.t0 = setOptions;
|
|
136
|
-
_context2.next = 5;
|
|
137
|
-
return debouncedLoadOptions(newSearchTerm);
|
|
138
|
-
case 5:
|
|
139
|
-
_context2.t1 = _context2.sent;
|
|
140
|
-
(0, _context2.t0)(_context2.t1);
|
|
141
|
-
case 7:
|
|
153
|
+
case 1:
|
|
142
154
|
case "end":
|
|
143
|
-
return
|
|
155
|
+
return _context3.stop();
|
|
144
156
|
}
|
|
145
|
-
},
|
|
157
|
+
}, _callee3);
|
|
146
158
|
}));
|
|
147
159
|
return function (_x2, _x3) {
|
|
148
160
|
return _ref4.apply(this, arguments);
|
|
@@ -159,11 +171,11 @@ var AssetsObjectSchemaSelect = exports.AssetsObjectSchemaSelect = function Asset
|
|
|
159
171
|
return validateSchema(value);
|
|
160
172
|
},
|
|
161
173
|
testId: testId
|
|
162
|
-
}, function (
|
|
163
|
-
var
|
|
164
|
-
_onChange =
|
|
165
|
-
onFocus =
|
|
166
|
-
restFieldProps = (0, _objectWithoutProperties2.default)(
|
|
174
|
+
}, function (_ref6) {
|
|
175
|
+
var _ref6$fieldProps = _ref6.fieldProps,
|
|
176
|
+
_onChange = _ref6$fieldProps.onChange,
|
|
177
|
+
onFocus = _ref6$fieldProps.onFocus,
|
|
178
|
+
restFieldProps = (0, _objectWithoutProperties2.default)(_ref6$fieldProps, _excluded2);
|
|
167
179
|
return (0, _platformFeatureFlags.fg)('linking-platform-assests-schema-selector-refresh') ? /*#__PURE__*/React.createElement(_select.PopupSelect, (0, _extends2.default)({
|
|
168
180
|
autoFocus: true,
|
|
169
181
|
maxMenuWidth: 300,
|
|
@@ -181,10 +193,10 @@ var AssetsObjectSchemaSelect = exports.AssetsObjectSchemaSelect = function Asset
|
|
|
181
193
|
onMenuClose: onClose
|
|
182
194
|
}, restFieldProps, {
|
|
183
195
|
label: formatMessage(_messages.objectSchemaSelectMessages.placeholder),
|
|
184
|
-
target: function target(
|
|
196
|
+
target: function target(_ref7) {
|
|
185
197
|
var _restFieldProps$value;
|
|
186
|
-
var isOpen =
|
|
187
|
-
triggerProps = (0, _objectWithoutProperties2.default)(
|
|
198
|
+
var isOpen = _ref7.isOpen,
|
|
199
|
+
triggerProps = (0, _objectWithoutProperties2.default)(_ref7, _excluded3);
|
|
188
200
|
return /*#__PURE__*/React.createElement(_new.default, (0, _extends2.default)({}, triggerProps, {
|
|
189
201
|
isSelected: isOpen,
|
|
190
202
|
iconAfter: function iconAfter() {
|
|
@@ -14,18 +14,15 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
|
-
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
18
17
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
19
18
|
var _emptyState = _interopRequireDefault(require("@atlaskit/empty-state"));
|
|
20
19
|
var _outboundAuthFlowClient = require("@atlaskit/outbound-auth-flow-client");
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
21
|
var _analytics = require("../../../analytics");
|
|
24
22
|
var _useErrorLogger2 = _interopRequireDefault(require("../../../hooks/useErrorLogger"));
|
|
25
23
|
var _messages = require("./messages");
|
|
26
24
|
var _providerAuthRequiredSvg = require("./provider-auth-required-svg");
|
|
27
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
28
|
-
var buttonStyles = null;
|
|
29
26
|
var styles = {
|
|
30
27
|
buttonContainer: "_19pkpxbi"
|
|
31
28
|
};
|
|
@@ -99,16 +96,12 @@ var ProviderAuthRequired = exports.ProviderAuthRequired = function ProviderAuthR
|
|
|
99
96
|
}, formatMessage(_messages.loadingErrorMessages.learnMoreAboutSmartLinks)));
|
|
100
97
|
};
|
|
101
98
|
var renderAuthConnectButton = function renderAuthConnectButton() {
|
|
102
|
-
return
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
103
100
|
xcss: styles.buttonContainer
|
|
104
101
|
}, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
105
102
|
onClick: onAuthRequest,
|
|
106
103
|
appearance: "primary"
|
|
107
|
-
}, formatMessage(_messages.loadingErrorMessages.authConnectButtonText)))
|
|
108
|
-
onClick: onAuthRequest,
|
|
109
|
-
appearance: "primary",
|
|
110
|
-
className: (0, _runtime.ax)(["_19pkpxbi"])
|
|
111
|
-
}, formatMessage(_messages.loadingErrorMessages.authConnectButtonText));
|
|
104
|
+
}, formatMessage(_messages.loadingErrorMessages.authConnectButtonText)));
|
|
112
105
|
};
|
|
113
106
|
return /*#__PURE__*/_react.default.createElement(_emptyState.default, {
|
|
114
107
|
testId: "datasource--access-required-with-auth",
|
|
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
|
-
var _button = require("@atlaskit/button");
|
|
16
15
|
var _new = require("@atlaskit/button/new");
|
|
17
16
|
var _searchEditorSearch = _interopRequireDefault(require("@atlaskit/icon/core/migration/search--editor-search"));
|
|
18
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
@@ -21,7 +20,6 @@ var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
|
21
20
|
var _analytics = require("../../../../analytics");
|
|
22
21
|
var _messages = require("./messages");
|
|
23
22
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
24
|
-
var searchButtonStyles = null;
|
|
25
23
|
var styles = {
|
|
26
24
|
searchButtonContainer: "_2hwx12x7"
|
|
27
25
|
};
|
|
@@ -52,7 +50,7 @@ var BasicSearchInput = exports.BasicSearchInput = function BasicSearchInput(_ref
|
|
|
52
50
|
onSubmit: handleFormSubmit,
|
|
53
51
|
className: (0, _runtime.ax)([fullWidth ? "_16jlkb7n _1o9zkb7n _i0dlf1ug" : "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12f1mjv"])
|
|
54
52
|
}, /*#__PURE__*/React.createElement(_textfield.default, {
|
|
55
|
-
elemAfterInput:
|
|
53
|
+
elemAfterInput: /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
56
54
|
xcss: styles.searchButtonContainer
|
|
57
55
|
}, /*#__PURE__*/React.createElement(_new.IconButton, {
|
|
58
56
|
appearance: "primary",
|
|
@@ -70,21 +68,7 @@ var BasicSearchInput = exports.BasicSearchInput = function BasicSearchInput(_ref
|
|
|
70
68
|
isDisabled: isDisabled,
|
|
71
69
|
testId: "".concat(testId, "--basic-search-button"),
|
|
72
70
|
onClick: handleSearchWithAnalytics
|
|
73
|
-
}))
|
|
74
|
-
appearance: "primary",
|
|
75
|
-
iconBefore: /*#__PURE__*/React.createElement(_searchEditorSearch.default, {
|
|
76
|
-
label: formatMessage((0, _platformFeatureFlags.fg)('confluence-issue-terminology-refresh') ? _messages.basicSearchInputMessages.basicTextSearchLabelIssueTermRefresh : _messages.basicSearchInputMessages.basicTextSearchLabel),
|
|
77
|
-
LEGACY_size: "medium",
|
|
78
|
-
color: "currentColor",
|
|
79
|
-
spacing: "spacious"
|
|
80
|
-
}),
|
|
81
|
-
isDisabled: isDisabled,
|
|
82
|
-
isLoading: isSearching,
|
|
83
|
-
onClick: handleSearchWithAnalytics,
|
|
84
|
-
spacing: "none",
|
|
85
|
-
testId: "".concat(testId, "--basic-search-button"),
|
|
86
|
-
className: (0, _runtime.ax)(["_2hwx12x7"])
|
|
87
|
-
}),
|
|
71
|
+
})),
|
|
88
72
|
autoFocus: true,
|
|
89
73
|
onChange: onChange,
|
|
90
74
|
testId: "".concat(testId, "--basic-search-input"),
|
|
@@ -17,7 +17,8 @@ var _excluded = ["children"];
|
|
|
17
17
|
var getPopupCustomControlStyles = function getPopupCustomControlStyles() {
|
|
18
18
|
return {
|
|
19
19
|
display: 'flex',
|
|
20
|
-
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
21
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
21
22
|
border: "solid 1px ".concat("var(--ds-border-input, #8C8F97)"),
|
|
22
23
|
minHeight: 'auto'
|
|
23
24
|
};
|
|
@@ -6,14 +6,12 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { Fragment } from 'react';
|
|
8
8
|
import { useIntl } from 'react-intl-next';
|
|
9
|
-
import { LoadingButton } from '@atlaskit/button';
|
|
10
9
|
import { IconButton } from '@atlaskit/button/new';
|
|
11
10
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
12
11
|
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
13
12
|
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
14
13
|
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
15
14
|
import CheckCircleIcon from '@atlaskit/icon/core/migration/status-success--check-circle';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
15
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
18
16
|
import Spinner from '@atlaskit/spinner';
|
|
19
17
|
import Textfield from '@atlaskit/textfield';
|
|
@@ -40,7 +38,6 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
40
38
|
}
|
|
41
39
|
const buttonBaseStyles = null;
|
|
42
40
|
const AQLSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/';
|
|
43
|
-
const searchButtonStyles = null;
|
|
44
41
|
const styles = {
|
|
45
42
|
searchButtonContainer: "_2hwx12x7"
|
|
46
43
|
};
|
|
@@ -118,7 +115,7 @@ export const AqlSearchInput = ({
|
|
|
118
115
|
LEGACY_size: "medium",
|
|
119
116
|
testId: "assets-datasource-modal-help",
|
|
120
117
|
spacing: "spacious"
|
|
121
|
-
}))),
|
|
118
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
122
119
|
xcss: styles.searchButtonContainer
|
|
123
120
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
124
121
|
appearance: "primary",
|
|
@@ -133,21 +130,7 @@ export const AqlSearchInput = ({
|
|
|
133
130
|
label: formatMessage(searchInputMessages.placeholder),
|
|
134
131
|
isDisabled: lastValidationResult.type !== 'valid',
|
|
135
132
|
testId: "assets-datasource-modal--aql-search-button"
|
|
136
|
-
}))
|
|
137
|
-
appearance: "primary",
|
|
138
|
-
iconBefore: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
139
|
-
label: formatMessage(searchInputMessages.placeholder),
|
|
140
|
-
LEGACY_size: "medium",
|
|
141
|
-
color: "currentColor",
|
|
142
|
-
spacing: "spacious"
|
|
143
|
-
}),
|
|
144
|
-
isLoading: isSearching,
|
|
145
|
-
spacing: "none",
|
|
146
|
-
testId: "assets-datasource-modal--aql-search-button",
|
|
147
|
-
type: "submit",
|
|
148
|
-
isDisabled: lastValidationResult.type !== 'valid',
|
|
149
|
-
className: ax(["_2hwx12x7"])
|
|
150
|
-
})),
|
|
133
|
+
}))),
|
|
151
134
|
placeholder: formatMessage(searchInputMessages.placeholder),
|
|
152
135
|
testId: testId,
|
|
153
136
|
"aria-label": formatMessage(searchInputMessages.placeholder)
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
|
-
import { useCallback, useState } from 'react';
|
|
7
|
+
import { useCallback, useRef, useState } from 'react';
|
|
8
8
|
import debounce from 'debounce-promise';
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
10
|
import Button from '@atlaskit/button/new';
|
|
@@ -81,10 +81,16 @@ export const AssetsObjectSchemaSelect = ({
|
|
|
81
81
|
}
|
|
82
82
|
return undefined;
|
|
83
83
|
};
|
|
84
|
+
const debounceTimeout = useRef(null);
|
|
84
85
|
const handleInputChange = useCallback(async (newSearchTerm, actionMeta) => {
|
|
85
86
|
if (actionMeta.action === 'input-change' && newSearchTerm !== searchTerm) {
|
|
86
87
|
setSearchTerm(newSearchTerm);
|
|
87
|
-
|
|
88
|
+
if (debounceTimeout.current) {
|
|
89
|
+
clearTimeout(debounceTimeout.current);
|
|
90
|
+
}
|
|
91
|
+
debounceTimeout.current = setTimeout(async () => {
|
|
92
|
+
setOptions(await debouncedLoadOptions(newSearchTerm));
|
|
93
|
+
}, SEARCH_DEBOUNCE_MS);
|
|
88
94
|
}
|
|
89
95
|
}, [debouncedLoadOptions, searchTerm]);
|
|
90
96
|
const onClose = useCallback(() => {
|
|
@@ -3,17 +3,14 @@ import "./provider-auth-required.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
|
-
import ButtonOld from '@atlaskit/button';
|
|
7
6
|
import Button from '@atlaskit/button/new';
|
|
8
7
|
import EmptyState from '@atlaskit/empty-state';
|
|
9
8
|
import { AuthError, auth as outboundAuth } from '@atlaskit/outbound-auth-flow-client';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
9
|
import { Anchor, Box } from '@atlaskit/primitives/compiled';
|
|
12
10
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
13
11
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
14
12
|
import { loadingErrorMessages } from './messages';
|
|
15
13
|
import { ProviderAuthRequiredSVG } from './provider-auth-required-svg';
|
|
16
|
-
const buttonStyles = null;
|
|
17
14
|
const styles = {
|
|
18
15
|
buttonContainer: "_19pkpxbi"
|
|
19
16
|
};
|
|
@@ -68,16 +65,12 @@ export const ProviderAuthRequired = ({
|
|
|
68
65
|
target: "_blank",
|
|
69
66
|
rel: "noreferrer noopener"
|
|
70
67
|
}, formatMessage(loadingErrorMessages.learnMoreAboutSmartLinks)));
|
|
71
|
-
const renderAuthConnectButton = () =>
|
|
68
|
+
const renderAuthConnectButton = () => /*#__PURE__*/React.createElement(Box, {
|
|
72
69
|
xcss: styles.buttonContainer
|
|
73
70
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
74
71
|
onClick: onAuthRequest,
|
|
75
72
|
appearance: "primary"
|
|
76
|
-
}, formatMessage(loadingErrorMessages.authConnectButtonText)))
|
|
77
|
-
onClick: onAuthRequest,
|
|
78
|
-
appearance: "primary",
|
|
79
|
-
className: ax(["_19pkpxbi"])
|
|
80
|
-
}, formatMessage(loadingErrorMessages.authConnectButtonText));
|
|
73
|
+
}, formatMessage(loadingErrorMessages.authConnectButtonText)));
|
|
81
74
|
return /*#__PURE__*/React.createElement(EmptyState, {
|
|
82
75
|
testId: "datasource--access-required-with-auth",
|
|
83
76
|
header: formatMessage(loadingErrorMessages.authScreenHeaderText, {
|
|
@@ -4,7 +4,6 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useIntl } from 'react-intl-next';
|
|
7
|
-
import { LoadingButton } from '@atlaskit/button';
|
|
8
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
9
8
|
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
10
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -12,7 +11,6 @@ import { Box } from '@atlaskit/primitives/compiled';
|
|
|
12
11
|
import Textfield from '@atlaskit/textfield';
|
|
13
12
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
14
13
|
import { basicSearchInputMessages } from './messages';
|
|
15
|
-
const searchButtonStyles = null;
|
|
16
14
|
const styles = {
|
|
17
15
|
searchButtonContainer: "_2hwx12x7"
|
|
18
16
|
};
|
|
@@ -46,7 +44,7 @@ export const BasicSearchInput = ({
|
|
|
46
44
|
onSubmit: handleFormSubmit,
|
|
47
45
|
className: ax([fullWidth ? "_16jlkb7n _1o9zkb7n _i0dlf1ug" : "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12f1mjv"])
|
|
48
46
|
}, /*#__PURE__*/React.createElement(Textfield, {
|
|
49
|
-
elemAfterInput:
|
|
47
|
+
elemAfterInput: /*#__PURE__*/React.createElement(Box, {
|
|
50
48
|
xcss: styles.searchButtonContainer
|
|
51
49
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
52
50
|
appearance: "primary",
|
|
@@ -62,21 +60,7 @@ export const BasicSearchInput = ({
|
|
|
62
60
|
isDisabled: isDisabled,
|
|
63
61
|
testId: `${testId}--basic-search-button`,
|
|
64
62
|
onClick: handleSearchWithAnalytics
|
|
65
|
-
}))
|
|
66
|
-
appearance: "primary",
|
|
67
|
-
iconBefore: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
68
|
-
label: formatMessage(fg('confluence-issue-terminology-refresh') ? basicSearchInputMessages.basicTextSearchLabelIssueTermRefresh : basicSearchInputMessages.basicTextSearchLabel),
|
|
69
|
-
LEGACY_size: "medium",
|
|
70
|
-
color: "currentColor",
|
|
71
|
-
spacing: "spacious"
|
|
72
|
-
}),
|
|
73
|
-
isDisabled: isDisabled,
|
|
74
|
-
isLoading: isSearching,
|
|
75
|
-
onClick: handleSearchWithAnalytics,
|
|
76
|
-
spacing: "none",
|
|
77
|
-
testId: `${testId}--basic-search-button`,
|
|
78
|
-
className: ax(["_2hwx12x7"])
|
|
79
|
-
}),
|
|
63
|
+
})),
|
|
80
64
|
autoFocus: true,
|
|
81
65
|
onChange: onChange,
|
|
82
66
|
testId: `${testId}--basic-search-input`,
|
|
@@ -7,7 +7,8 @@ import { Box } from '@atlaskit/primitives/compiled';
|
|
|
7
7
|
import { components } from '@atlaskit/select';
|
|
8
8
|
const getPopupCustomControlStyles = () => ({
|
|
9
9
|
display: 'flex',
|
|
10
|
-
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
11
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
11
12
|
border: `solid 1px ${"var(--ds-border-input, #8C8F97)"}`,
|
|
12
13
|
minHeight: 'auto'
|
|
13
14
|
});
|
|
@@ -8,14 +8,12 @@ import * as React from 'react';
|
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import { Fragment } from 'react';
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
|
-
import { LoadingButton } from '@atlaskit/button';
|
|
12
11
|
import { IconButton } from '@atlaskit/button/new';
|
|
13
12
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
14
13
|
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
15
14
|
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
16
15
|
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
17
16
|
import CheckCircleIcon from '@atlaskit/icon/core/migration/status-success--check-circle';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
17
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
20
18
|
import Spinner from '@atlaskit/spinner';
|
|
21
19
|
import Textfield from '@atlaskit/textfield';
|
|
@@ -42,7 +40,6 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
42
40
|
}
|
|
43
41
|
var buttonBaseStyles = null;
|
|
44
42
|
var AQLSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/';
|
|
45
|
-
var searchButtonStyles = null;
|
|
46
43
|
var styles = {
|
|
47
44
|
searchButtonContainer: "_2hwx12x7"
|
|
48
45
|
};
|
|
@@ -118,7 +115,7 @@ export var AqlSearchInput = function AqlSearchInput(_ref2) {
|
|
|
118
115
|
LEGACY_size: "medium",
|
|
119
116
|
testId: "assets-datasource-modal-help",
|
|
120
117
|
spacing: "spacious"
|
|
121
|
-
}))),
|
|
118
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
122
119
|
xcss: styles.searchButtonContainer
|
|
123
120
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
124
121
|
appearance: "primary",
|
|
@@ -135,21 +132,7 @@ export var AqlSearchInput = function AqlSearchInput(_ref2) {
|
|
|
135
132
|
label: formatMessage(searchInputMessages.placeholder),
|
|
136
133
|
isDisabled: lastValidationResult.type !== 'valid',
|
|
137
134
|
testId: "assets-datasource-modal--aql-search-button"
|
|
138
|
-
}))
|
|
139
|
-
appearance: "primary",
|
|
140
|
-
iconBefore: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
141
|
-
label: formatMessage(searchInputMessages.placeholder),
|
|
142
|
-
LEGACY_size: "medium",
|
|
143
|
-
color: "currentColor",
|
|
144
|
-
spacing: "spacious"
|
|
145
|
-
}),
|
|
146
|
-
isLoading: isSearching,
|
|
147
|
-
spacing: "none",
|
|
148
|
-
testId: "assets-datasource-modal--aql-search-button",
|
|
149
|
-
type: "submit",
|
|
150
|
-
isDisabled: lastValidationResult.type !== 'valid',
|
|
151
|
-
className: ax(["_2hwx12x7"])
|
|
152
|
-
})),
|
|
135
|
+
}))),
|
|
153
136
|
placeholder: formatMessage(searchInputMessages.placeholder),
|
|
154
137
|
testId: testId,
|
|
155
138
|
"aria-label": formatMessage(searchInputMessages.placeholder)
|
|
@@ -14,7 +14,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
14
14
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
|
-
import { useCallback, useState } from 'react';
|
|
17
|
+
import { useCallback, useRef, useState } from 'react';
|
|
18
18
|
import debounce from 'debounce-promise';
|
|
19
19
|
import { useIntl } from 'react-intl-next';
|
|
20
20
|
import Button from '@atlaskit/button/new';
|
|
@@ -115,27 +115,39 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
|
|
|
115
115
|
}
|
|
116
116
|
return undefined;
|
|
117
117
|
};
|
|
118
|
+
var debounceTimeout = useRef(null);
|
|
118
119
|
var handleInputChange = useCallback( /*#__PURE__*/function () {
|
|
119
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
120
|
-
return _regeneratorRuntime.wrap(function
|
|
121
|
-
while (1) switch (
|
|
120
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(newSearchTerm, actionMeta) {
|
|
121
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
122
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
122
123
|
case 0:
|
|
123
|
-
if (
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
if (actionMeta.action === 'input-change' && newSearchTerm !== searchTerm) {
|
|
125
|
+
setSearchTerm(newSearchTerm);
|
|
126
|
+
if (debounceTimeout.current) {
|
|
127
|
+
clearTimeout(debounceTimeout.current);
|
|
128
|
+
}
|
|
129
|
+
debounceTimeout.current = setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
130
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
131
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
132
|
+
case 0:
|
|
133
|
+
_context2.t0 = setOptions;
|
|
134
|
+
_context2.next = 3;
|
|
135
|
+
return debouncedLoadOptions(newSearchTerm);
|
|
136
|
+
case 3:
|
|
137
|
+
_context2.t1 = _context2.sent;
|
|
138
|
+
(0, _context2.t0)(_context2.t1);
|
|
139
|
+
case 5:
|
|
140
|
+
case "end":
|
|
141
|
+
return _context2.stop();
|
|
142
|
+
}
|
|
143
|
+
}, _callee2);
|
|
144
|
+
})), SEARCH_DEBOUNCE_MS);
|
|
126
145
|
}
|
|
127
|
-
|
|
128
|
-
_context2.t0 = setOptions;
|
|
129
|
-
_context2.next = 5;
|
|
130
|
-
return debouncedLoadOptions(newSearchTerm);
|
|
131
|
-
case 5:
|
|
132
|
-
_context2.t1 = _context2.sent;
|
|
133
|
-
(0, _context2.t0)(_context2.t1);
|
|
134
|
-
case 7:
|
|
146
|
+
case 1:
|
|
135
147
|
case "end":
|
|
136
|
-
return
|
|
148
|
+
return _context3.stop();
|
|
137
149
|
}
|
|
138
|
-
},
|
|
150
|
+
}, _callee3);
|
|
139
151
|
}));
|
|
140
152
|
return function (_x2, _x3) {
|
|
141
153
|
return _ref4.apply(this, arguments);
|
|
@@ -152,11 +164,11 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
|
|
|
152
164
|
return validateSchema(value);
|
|
153
165
|
},
|
|
154
166
|
testId: testId
|
|
155
|
-
}, function (
|
|
156
|
-
var
|
|
157
|
-
_onChange =
|
|
158
|
-
onFocus =
|
|
159
|
-
restFieldProps = _objectWithoutProperties(
|
|
167
|
+
}, function (_ref6) {
|
|
168
|
+
var _ref6$fieldProps = _ref6.fieldProps,
|
|
169
|
+
_onChange = _ref6$fieldProps.onChange,
|
|
170
|
+
onFocus = _ref6$fieldProps.onFocus,
|
|
171
|
+
restFieldProps = _objectWithoutProperties(_ref6$fieldProps, _excluded2);
|
|
160
172
|
return fg('linking-platform-assests-schema-selector-refresh') ? /*#__PURE__*/React.createElement(PopupSelect, _extends({
|
|
161
173
|
autoFocus: true,
|
|
162
174
|
maxMenuWidth: 300,
|
|
@@ -174,10 +186,10 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
|
|
|
174
186
|
onMenuClose: onClose
|
|
175
187
|
}, restFieldProps, {
|
|
176
188
|
label: formatMessage(objectSchemaSelectMessages.placeholder),
|
|
177
|
-
target: function target(
|
|
189
|
+
target: function target(_ref7) {
|
|
178
190
|
var _restFieldProps$value;
|
|
179
|
-
var isOpen =
|
|
180
|
-
triggerProps = _objectWithoutProperties(
|
|
191
|
+
var isOpen = _ref7.isOpen,
|
|
192
|
+
triggerProps = _objectWithoutProperties(_ref7, _excluded3);
|
|
181
193
|
return /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
182
194
|
isSelected: isOpen,
|
|
183
195
|
iconAfter: function iconAfter() {
|
|
@@ -6,17 +6,14 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useEffect } from 'react';
|
|
8
8
|
import { useIntl } from 'react-intl-next';
|
|
9
|
-
import ButtonOld from '@atlaskit/button';
|
|
10
9
|
import Button from '@atlaskit/button/new';
|
|
11
10
|
import EmptyState from '@atlaskit/empty-state';
|
|
12
11
|
import { AuthError, auth as outboundAuth } from '@atlaskit/outbound-auth-flow-client';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
12
|
import { Anchor, Box } from '@atlaskit/primitives/compiled';
|
|
15
13
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
16
14
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
17
15
|
import { loadingErrorMessages } from './messages';
|
|
18
16
|
import { ProviderAuthRequiredSVG } from './provider-auth-required-svg';
|
|
19
|
-
var buttonStyles = null;
|
|
20
17
|
var styles = {
|
|
21
18
|
buttonContainer: "_19pkpxbi"
|
|
22
19
|
};
|
|
@@ -90,16 +87,12 @@ export var ProviderAuthRequired = function ProviderAuthRequired(_ref) {
|
|
|
90
87
|
}, formatMessage(loadingErrorMessages.learnMoreAboutSmartLinks)));
|
|
91
88
|
};
|
|
92
89
|
var renderAuthConnectButton = function renderAuthConnectButton() {
|
|
93
|
-
return
|
|
90
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
94
91
|
xcss: styles.buttonContainer
|
|
95
92
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
96
93
|
onClick: onAuthRequest,
|
|
97
94
|
appearance: "primary"
|
|
98
|
-
}, formatMessage(loadingErrorMessages.authConnectButtonText)))
|
|
99
|
-
onClick: onAuthRequest,
|
|
100
|
-
appearance: "primary",
|
|
101
|
-
className: ax(["_19pkpxbi"])
|
|
102
|
-
}, formatMessage(loadingErrorMessages.authConnectButtonText));
|
|
95
|
+
}, formatMessage(loadingErrorMessages.authConnectButtonText)));
|
|
103
96
|
};
|
|
104
97
|
return /*#__PURE__*/React.createElement(EmptyState, {
|
|
105
98
|
testId: "datasource--access-required-with-auth",
|