@atlaskit/link-datasource 4.25.3 → 4.25.4
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 +8 -0
- package/dist/cjs/ui/assets-modal/search-container/index.compiled.css +1 -2
- package/dist/cjs/ui/assets-modal/search-container/index.js +7 -30
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +3 -10
- package/dist/cjs/ui/issue-like-table/index.js +0 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +3 -9
- package/dist/es2019/ui/assets-modal/search-container/index.compiled.css +1 -2
- package/dist/es2019/ui/assets-modal/search-container/index.js +2 -24
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +2 -10
- package/dist/es2019/ui/issue-like-table/index.js +0 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +2 -9
- package/dist/esm/ui/assets-modal/search-container/index.compiled.css +1 -2
- package/dist/esm/ui/assets-modal/search-container/index.js +7 -30
- package/dist/esm/ui/confluence-search-modal/modal/index.js +2 -10
- package/dist/esm/ui/issue-like-table/index.js +0 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +2 -9
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.25.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4f3b60691a4d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f3b60691a4d6) -
|
|
8
|
+
NAVX-1976 cleaning up navx-1483-a11y-close-button-in-modal-updates
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 4.25.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,14 +15,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
16
|
var _form = _interopRequireDefault(require("@atlaskit/form"));
|
|
17
17
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _analytics = require("../../../analytics");
|
|
21
20
|
var _aqlSearchInput = require("./aql-search-input");
|
|
22
21
|
var _objectSchemaSelect = require("./object-schema-select");
|
|
23
22
|
var _styled = require("./styled");
|
|
24
|
-
var _excluded = ["as", "style"]
|
|
25
|
-
_excluded2 = ["as", "style"];
|
|
23
|
+
var _excluded = ["as", "style"];
|
|
26
24
|
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); }
|
|
27
25
|
var styles = {
|
|
28
26
|
modalTitleContainer: "_zulppxbi _4cvr1h6o",
|
|
@@ -32,27 +30,11 @@ var DEFAULT_AQL_QUERY = '';
|
|
|
32
30
|
var SEARCH_FORM_ID = 'linkDataSource.assets.configModal.searchContainer-form';
|
|
33
31
|
|
|
34
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
35
|
-
var
|
|
33
|
+
var FormContainer = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
36
34
|
var _ref$as = _ref.as,
|
|
37
|
-
C = _ref$as === void 0 ? "
|
|
35
|
+
C = _ref$as === void 0 ? "form" : _ref$as,
|
|
38
36
|
__cmpls = _ref.style,
|
|
39
37
|
__cmplp = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
40
|
-
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
|
|
41
|
-
style: __cmpls,
|
|
42
|
-
ref: __cmplr,
|
|
43
|
-
className: (0, _runtime.ax)(["_1bsb1osq _p12ffkat", __cmplp.className])
|
|
44
|
-
}));
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
48
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
49
|
-
SchemaSelectContainer.displayName = 'SchemaSelectContainer';
|
|
50
|
-
}
|
|
51
|
-
var FormContainer = (0, _react.forwardRef)(function (_ref2, __cmplr) {
|
|
52
|
-
var _ref2$as = _ref2.as,
|
|
53
|
-
C = _ref2$as === void 0 ? "form" : _ref2$as,
|
|
54
|
-
__cmpls = _ref2.style,
|
|
55
|
-
__cmplp = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
56
38
|
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
|
|
57
39
|
style: __cmpls,
|
|
58
40
|
ref: __cmplr,
|
|
@@ -82,14 +64,14 @@ var AssetsSearchContainer = exports.AssetsSearchContainer = function AssetsSearc
|
|
|
82
64
|
};
|
|
83
65
|
return /*#__PURE__*/React.createElement(_form.default, {
|
|
84
66
|
onSubmit: onFormSubmit
|
|
85
|
-
}, function (
|
|
86
|
-
var _initialSearchData$ob, _initialSearchData$ob2, _initialSearchData$
|
|
87
|
-
var formProps =
|
|
67
|
+
}, function (_ref2) {
|
|
68
|
+
var _initialSearchData$ob, _initialSearchData$ob2, _initialSearchData$aq;
|
|
69
|
+
var formProps = _ref2.formProps;
|
|
88
70
|
return /*#__PURE__*/React.createElement(FormContainer, (0, _extends2.default)({}, formProps, {
|
|
89
71
|
id: SEARCH_FORM_ID
|
|
90
72
|
}), /*#__PURE__*/React.createElement(_styled.FormRowContainer, {
|
|
91
73
|
isNarrowGap: true
|
|
92
|
-
},
|
|
74
|
+
}, /*#__PURE__*/React.createElement(_compiled.Flex, {
|
|
93
75
|
gap: "space.200",
|
|
94
76
|
justifyContent: "space-between",
|
|
95
77
|
xcss: styles.flexStyles
|
|
@@ -105,11 +87,6 @@ var AssetsSearchContainer = exports.AssetsSearchContainer = function AssetsSearc
|
|
|
105
87
|
workspaceId: workspaceId,
|
|
106
88
|
initialObjectSchemas: (_initialSearchData$ob2 = initialSearchData.objectSchemas) !== null && _initialSearchData$ob2 !== void 0 ? _initialSearchData$ob2 : undefined,
|
|
107
89
|
classNamePrefix: "assets-datasource-modal--object-schema-select"
|
|
108
|
-
}))) : /*#__PURE__*/React.createElement("div", null, modalTitle, /*#__PURE__*/React.createElement(SchemaSelectContainer, null, /*#__PURE__*/React.createElement(_objectSchemaSelect.AssetsObjectSchemaSelect, {
|
|
109
|
-
value: (_initialSearchData$ob3 = initialSearchData.objectSchema) !== null && _initialSearchData$ob3 !== void 0 ? _initialSearchData$ob3 : undefined,
|
|
110
|
-
workspaceId: workspaceId,
|
|
111
|
-
initialObjectSchemas: (_initialSearchData$ob4 = initialSearchData.objectSchemas) !== null && _initialSearchData$ob4 !== void 0 ? _initialSearchData$ob4 : undefined,
|
|
112
|
-
classNamePrefix: "assets-datasource-modal--object-schema-select"
|
|
113
90
|
})))), /*#__PURE__*/React.createElement(_styled.FormRowContainer, null, /*#__PURE__*/React.createElement(_aqlSearchInput.AqlSearchInput, {
|
|
114
91
|
value: (_initialSearchData$aq = initialSearchData.aql) !== null && _initialSearchData$aq !== void 0 ? _initialSearchData$aq : DEFAULT_AQL_QUERY,
|
|
115
92
|
workspaceId: workspaceId,
|
|
@@ -17,7 +17,6 @@ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gat
|
|
|
17
17
|
var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
|
|
18
18
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
19
19
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
21
|
var _analytics = require("../../../analytics");
|
|
23
22
|
var _types = require("../../../analytics/types");
|
|
@@ -49,7 +48,7 @@ var _confluenceSearchContainer = _interopRequireDefault(require("../confluence-s
|
|
|
49
48
|
var _messages = require("./messages");
|
|
50
49
|
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); }
|
|
51
50
|
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; }
|
|
52
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
51
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
53
52
|
var styles = {
|
|
54
53
|
inputContainerStyles: "_4cvr1q9y _1e0c1txw _1tket9kd",
|
|
55
54
|
modalTitleContainer: "_zulppxbi _4cvr1h6o",
|
|
@@ -335,7 +334,7 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
|
|
|
335
334
|
}, /*#__PURE__*/_react.default.createElement(_datasourceModal.DatasourceModal, {
|
|
336
335
|
testId: "confluence-search-datasource-modal",
|
|
337
336
|
onClose: onCancel
|
|
338
|
-
},
|
|
337
|
+
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
339
338
|
gap: "space.200",
|
|
340
339
|
justifyContent: "space-between",
|
|
341
340
|
xcss: styles.flexStyles
|
|
@@ -353,13 +352,7 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
|
|
|
353
352
|
selectedSite: selectedConfluenceSite,
|
|
354
353
|
testId: "confluence-search-datasource-modal--site-selector",
|
|
355
354
|
label: siteSelectorLabel
|
|
356
|
-
})))))
|
|
357
|
-
availableSites: availableSites,
|
|
358
|
-
onSiteSelection: onSiteSelection,
|
|
359
|
-
selectedSite: selectedConfluenceSite,
|
|
360
|
-
testId: "confluence-search-datasource-modal--site-selector",
|
|
361
|
-
label: siteSelectorLabel
|
|
362
|
-
})), !hasNoConfluenceSites && /*#__PURE__*/_react.default.createElement(_modeSwitcher.DatasourceViewModeDropDown, null)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, !hasNoConfluenceSites ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
355
|
+
}))))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, !hasNoConfluenceSites ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
363
356
|
xcss: styles.inputContainerStyles
|
|
364
357
|
}, /*#__PURE__*/_react.default.createElement(_confluenceSearchContainer.default, {
|
|
365
358
|
isSearching: status === 'loading',
|
|
@@ -385,7 +385,6 @@ var IssueLikeDataTableView = exports.IssueLikeDataTableView = function IssueLike
|
|
|
385
385
|
return {
|
|
386
386
|
key: key,
|
|
387
387
|
columnKey: key,
|
|
388
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
389
388
|
content: /*#__PURE__*/React.createElement(_tableCellContent.TableCellContent, {
|
|
390
389
|
id: id,
|
|
391
390
|
columnKey: key,
|
|
@@ -60,7 +60,7 @@ var _jiraSearchContainer = require("../jira-search-container");
|
|
|
60
60
|
var _messages3 = require("./messages");
|
|
61
61
|
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); }
|
|
62
62
|
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; }
|
|
63
|
-
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) { (0, _defineProperty2.default)(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; } /* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
63
|
+
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) { (0, _defineProperty2.default)(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; } /* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
64
64
|
var styles = {
|
|
65
65
|
modalTitleContainer: "_zulppxbi _4cvr1h6o",
|
|
66
66
|
viewModeContainer: "_zulpu2gc _4cvr1h6o",
|
|
@@ -381,7 +381,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
381
381
|
testId: "jira-datasource-modal",
|
|
382
382
|
onClose: onCancel,
|
|
383
383
|
shouldReturnFocus: shouldReturnFocus
|
|
384
|
-
},
|
|
384
|
+
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
385
385
|
gap: "space.200",
|
|
386
386
|
justifyContent: "space-between",
|
|
387
387
|
xcss: styles.flexStyles
|
|
@@ -399,13 +399,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
399
399
|
selectedSite: selectedJiraSite,
|
|
400
400
|
testId: "jira-datasource-modal--site-selector",
|
|
401
401
|
label: siteSelectorLabel
|
|
402
|
-
})))))
|
|
403
|
-
availableSites: availableSites,
|
|
404
|
-
onSiteSelection: onSiteSelection,
|
|
405
|
-
selectedSite: selectedJiraSite,
|
|
406
|
-
testId: "jira-datasource-modal--site-selector",
|
|
407
|
-
label: siteSelectorLabel
|
|
408
|
-
})), !hasNoJiraSites && /*#__PURE__*/_react.default.createElement(_modeSwitcher.DatasourceViewModeDropDown, null)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, !hasNoJiraSites ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_jiraSearchContainer.JiraSearchContainer, {
|
|
402
|
+
}))))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, !hasNoJiraSites ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_jiraSearchContainer.JiraSearchContainer, {
|
|
409
403
|
setSearchBarJql: setSearchBarJql,
|
|
410
404
|
searchBarJql: searchBarJql,
|
|
411
405
|
isSearching: status === 'loading',
|
|
@@ -6,7 +6,6 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import Form from '@atlaskit/form';
|
|
8
8
|
import { CloseButton } from '@atlaskit/modal-dialog';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
12
11
|
import { AqlSearchInput } from './aql-search-input';
|
|
@@ -20,22 +19,6 @@ const DEFAULT_AQL_QUERY = '';
|
|
|
20
19
|
const SEARCH_FORM_ID = 'linkDataSource.assets.configModal.searchContainer-form';
|
|
21
20
|
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
23
|
-
const SchemaSelectContainer = forwardRef(({
|
|
24
|
-
as: C = "div",
|
|
25
|
-
style: __cmpls,
|
|
26
|
-
...__cmplp
|
|
27
|
-
}, __cmplr) => {
|
|
28
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
29
|
-
style: __cmpls,
|
|
30
|
-
ref: __cmplr,
|
|
31
|
-
className: ax(["_1bsb1osq _p12ffkat", __cmplp.className])
|
|
32
|
-
}));
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
36
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
37
|
-
SchemaSelectContainer.displayName = 'SchemaSelectContainer';
|
|
38
|
-
}
|
|
39
22
|
const FormContainer = forwardRef(({
|
|
40
23
|
as: C = "form",
|
|
41
24
|
style: __cmpls,
|
|
@@ -78,12 +61,12 @@ export const AssetsSearchContainer = props => {
|
|
|
78
61
|
}, ({
|
|
79
62
|
formProps
|
|
80
63
|
}) => {
|
|
81
|
-
var _initialSearchData$ob, _initialSearchData$ob2, _initialSearchData$
|
|
64
|
+
var _initialSearchData$ob, _initialSearchData$ob2, _initialSearchData$aq;
|
|
82
65
|
return /*#__PURE__*/React.createElement(FormContainer, _extends({}, formProps, {
|
|
83
66
|
id: SEARCH_FORM_ID
|
|
84
67
|
}), /*#__PURE__*/React.createElement(FormRowContainer, {
|
|
85
68
|
isNarrowGap: true
|
|
86
|
-
},
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
87
70
|
gap: "space.200",
|
|
88
71
|
justifyContent: "space-between",
|
|
89
72
|
xcss: styles.flexStyles
|
|
@@ -99,11 +82,6 @@ export const AssetsSearchContainer = props => {
|
|
|
99
82
|
workspaceId: workspaceId,
|
|
100
83
|
initialObjectSchemas: (_initialSearchData$ob2 = initialSearchData.objectSchemas) !== null && _initialSearchData$ob2 !== void 0 ? _initialSearchData$ob2 : undefined,
|
|
101
84
|
classNamePrefix: "assets-datasource-modal--object-schema-select"
|
|
102
|
-
}))) : /*#__PURE__*/React.createElement("div", null, modalTitle, /*#__PURE__*/React.createElement(SchemaSelectContainer, null, /*#__PURE__*/React.createElement(AssetsObjectSchemaSelect, {
|
|
103
|
-
value: (_initialSearchData$ob3 = initialSearchData.objectSchema) !== null && _initialSearchData$ob3 !== void 0 ? _initialSearchData$ob3 : undefined,
|
|
104
|
-
workspaceId: workspaceId,
|
|
105
|
-
initialObjectSchemas: (_initialSearchData$ob4 = initialSearchData.objectSchemas) !== null && _initialSearchData$ob4 !== void 0 ? _initialSearchData$ob4 : undefined,
|
|
106
|
-
classNamePrefix: "assets-datasource-modal--object-schema-select"
|
|
107
85
|
})))), /*#__PURE__*/React.createElement(FormRowContainer, null, /*#__PURE__*/React.createElement(AqlSearchInput, {
|
|
108
86
|
value: (_initialSearchData$aq = initialSearchData.aql) !== null && _initialSearchData$aq !== void 0 ? _initialSearchData$aq : DEFAULT_AQL_QUERY,
|
|
109
87
|
workspaceId: workspaceId,
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
/* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
6
5
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
7
6
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
8
7
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
9
8
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
10
9
|
import LinkComponent from '@atlaskit/link';
|
|
11
10
|
import { CloseButton, ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
11
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
14
12
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
15
13
|
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
@@ -319,7 +317,7 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
319
317
|
}, /*#__PURE__*/React.createElement(DatasourceModal, {
|
|
320
318
|
testId: "confluence-search-datasource-modal",
|
|
321
319
|
onClose: onCancel
|
|
322
|
-
},
|
|
320
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Flex, {
|
|
323
321
|
gap: "space.200",
|
|
324
322
|
justifyContent: "space-between",
|
|
325
323
|
xcss: styles.flexStyles
|
|
@@ -337,13 +335,7 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
337
335
|
selectedSite: selectedConfluenceSite,
|
|
338
336
|
testId: "confluence-search-datasource-modal--site-selector",
|
|
339
337
|
label: siteSelectorLabel
|
|
340
|
-
})))))
|
|
341
|
-
availableSites: availableSites,
|
|
342
|
-
onSiteSelection: onSiteSelection,
|
|
343
|
-
selectedSite: selectedConfluenceSite,
|
|
344
|
-
testId: "confluence-search-datasource-modal--site-selector",
|
|
345
|
-
label: siteSelectorLabel
|
|
346
|
-
})), !hasNoConfluenceSites && /*#__PURE__*/React.createElement(DatasourceViewModeDropDown, null)), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoConfluenceSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
338
|
+
}))))), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoConfluenceSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
347
339
|
xcss: styles.inputContainerStyles
|
|
348
340
|
}, /*#__PURE__*/React.createElement(ConfluenceSearchContainer, {
|
|
349
341
|
isSearching: status === 'loading',
|
|
@@ -337,7 +337,6 @@ export const IssueLikeDataTableView = ({
|
|
|
337
337
|
return {
|
|
338
338
|
key,
|
|
339
339
|
columnKey: key,
|
|
340
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
341
340
|
content: /*#__PURE__*/React.createElement(TableCellContent, {
|
|
342
341
|
id: id,
|
|
343
342
|
columnKey: key,
|
|
@@ -3,7 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
6
|
-
/* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
7
6
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
7
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
9
8
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
@@ -368,7 +367,7 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
368
367
|
testId: "jira-datasource-modal",
|
|
369
368
|
onClose: onCancel,
|
|
370
369
|
shouldReturnFocus: shouldReturnFocus
|
|
371
|
-
},
|
|
370
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Flex, {
|
|
372
371
|
gap: "space.200",
|
|
373
372
|
justifyContent: "space-between",
|
|
374
373
|
xcss: styles.flexStyles
|
|
@@ -386,13 +385,7 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
386
385
|
selectedSite: selectedJiraSite,
|
|
387
386
|
testId: "jira-datasource-modal--site-selector",
|
|
388
387
|
label: siteSelectorLabel
|
|
389
|
-
})))))
|
|
390
|
-
availableSites: availableSites,
|
|
391
|
-
onSiteSelection: onSiteSelection,
|
|
392
|
-
selectedSite: selectedJiraSite,
|
|
393
|
-
testId: "jira-datasource-modal--site-selector",
|
|
394
|
-
label: siteSelectorLabel
|
|
395
|
-
})), !hasNoJiraSites && /*#__PURE__*/React.createElement(DatasourceViewModeDropDown, null)), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoJiraSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(JiraSearchContainer, {
|
|
388
|
+
}))))), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoJiraSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(JiraSearchContainer, {
|
|
396
389
|
setSearchBarJql: setSearchBarJql,
|
|
397
390
|
searchBarJql: searchBarJql,
|
|
398
391
|
isSearching: status === 'loading',
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["as", "style"]
|
|
5
|
-
_excluded2 = ["as", "style"];
|
|
4
|
+
var _excluded = ["as", "style"];
|
|
6
5
|
import "./index.compiled.css";
|
|
7
6
|
import { forwardRef } from 'react';
|
|
8
7
|
import * as React from 'react';
|
|
9
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
9
|
import Form from '@atlaskit/form';
|
|
11
10
|
import { CloseButton } from '@atlaskit/modal-dialog';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
11
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
14
12
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
15
13
|
import { AqlSearchInput } from './aql-search-input';
|
|
@@ -23,27 +21,11 @@ var DEFAULT_AQL_QUERY = '';
|
|
|
23
21
|
var SEARCH_FORM_ID = 'linkDataSource.assets.configModal.searchContainer-form';
|
|
24
22
|
|
|
25
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
26
|
-
var
|
|
24
|
+
var FormContainer = forwardRef(function (_ref, __cmplr) {
|
|
27
25
|
var _ref$as = _ref.as,
|
|
28
|
-
C = _ref$as === void 0 ? "
|
|
26
|
+
C = _ref$as === void 0 ? "form" : _ref$as,
|
|
29
27
|
__cmpls = _ref.style,
|
|
30
28
|
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
32
|
-
style: __cmpls,
|
|
33
|
-
ref: __cmplr,
|
|
34
|
-
className: ax(["_1bsb1osq _p12ffkat", __cmplp.className])
|
|
35
|
-
}));
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
39
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
40
|
-
SchemaSelectContainer.displayName = 'SchemaSelectContainer';
|
|
41
|
-
}
|
|
42
|
-
var FormContainer = forwardRef(function (_ref2, __cmplr) {
|
|
43
|
-
var _ref2$as = _ref2.as,
|
|
44
|
-
C = _ref2$as === void 0 ? "form" : _ref2$as,
|
|
45
|
-
__cmpls = _ref2.style,
|
|
46
|
-
__cmplp = _objectWithoutProperties(_ref2, _excluded2);
|
|
47
29
|
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
48
30
|
style: __cmpls,
|
|
49
31
|
ref: __cmplr,
|
|
@@ -73,14 +55,14 @@ export var AssetsSearchContainer = function AssetsSearchContainer(props) {
|
|
|
73
55
|
};
|
|
74
56
|
return /*#__PURE__*/React.createElement(Form, {
|
|
75
57
|
onSubmit: onFormSubmit
|
|
76
|
-
}, function (
|
|
77
|
-
var _initialSearchData$ob, _initialSearchData$ob2, _initialSearchData$
|
|
78
|
-
var formProps =
|
|
58
|
+
}, function (_ref2) {
|
|
59
|
+
var _initialSearchData$ob, _initialSearchData$ob2, _initialSearchData$aq;
|
|
60
|
+
var formProps = _ref2.formProps;
|
|
79
61
|
return /*#__PURE__*/React.createElement(FormContainer, _extends({}, formProps, {
|
|
80
62
|
id: SEARCH_FORM_ID
|
|
81
63
|
}), /*#__PURE__*/React.createElement(FormRowContainer, {
|
|
82
64
|
isNarrowGap: true
|
|
83
|
-
},
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
84
66
|
gap: "space.200",
|
|
85
67
|
justifyContent: "space-between",
|
|
86
68
|
xcss: styles.flexStyles
|
|
@@ -96,11 +78,6 @@ export var AssetsSearchContainer = function AssetsSearchContainer(props) {
|
|
|
96
78
|
workspaceId: workspaceId,
|
|
97
79
|
initialObjectSchemas: (_initialSearchData$ob2 = initialSearchData.objectSchemas) !== null && _initialSearchData$ob2 !== void 0 ? _initialSearchData$ob2 : undefined,
|
|
98
80
|
classNamePrefix: "assets-datasource-modal--object-schema-select"
|
|
99
|
-
}))) : /*#__PURE__*/React.createElement("div", null, modalTitle, /*#__PURE__*/React.createElement(SchemaSelectContainer, null, /*#__PURE__*/React.createElement(AssetsObjectSchemaSelect, {
|
|
100
|
-
value: (_initialSearchData$ob3 = initialSearchData.objectSchema) !== null && _initialSearchData$ob3 !== void 0 ? _initialSearchData$ob3 : undefined,
|
|
101
|
-
workspaceId: workspaceId,
|
|
102
|
-
initialObjectSchemas: (_initialSearchData$ob4 = initialSearchData.objectSchemas) !== null && _initialSearchData$ob4 !== void 0 ? _initialSearchData$ob4 : undefined,
|
|
103
|
-
classNamePrefix: "assets-datasource-modal--object-schema-select"
|
|
104
81
|
})))), /*#__PURE__*/React.createElement(FormRowContainer, null, /*#__PURE__*/React.createElement(AqlSearchInput, {
|
|
105
82
|
value: (_initialSearchData$aq = initialSearchData.aql) !== null && _initialSearchData$aq !== void 0 ? _initialSearchData$aq : DEFAULT_AQL_QUERY,
|
|
106
83
|
workspaceId: workspaceId,
|
|
@@ -5,14 +5,12 @@ import "./index.compiled.css";
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
|
-
/* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
9
8
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
10
9
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
11
10
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
12
11
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
13
12
|
import LinkComponent from '@atlaskit/link';
|
|
14
13
|
import { CloseButton, ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
14
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
17
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
18
16
|
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
@@ -327,7 +325,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
327
325
|
}, /*#__PURE__*/React.createElement(DatasourceModal, {
|
|
328
326
|
testId: "confluence-search-datasource-modal",
|
|
329
327
|
onClose: onCancel
|
|
330
|
-
},
|
|
328
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Flex, {
|
|
331
329
|
gap: "space.200",
|
|
332
330
|
justifyContent: "space-between",
|
|
333
331
|
xcss: styles.flexStyles
|
|
@@ -345,13 +343,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
345
343
|
selectedSite: selectedConfluenceSite,
|
|
346
344
|
testId: "confluence-search-datasource-modal--site-selector",
|
|
347
345
|
label: siteSelectorLabel
|
|
348
|
-
})))))
|
|
349
|
-
availableSites: availableSites,
|
|
350
|
-
onSiteSelection: onSiteSelection,
|
|
351
|
-
selectedSite: selectedConfluenceSite,
|
|
352
|
-
testId: "confluence-search-datasource-modal--site-selector",
|
|
353
|
-
label: siteSelectorLabel
|
|
354
|
-
})), !hasNoConfluenceSites && /*#__PURE__*/React.createElement(DatasourceViewModeDropDown, null)), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoConfluenceSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
346
|
+
}))))), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoConfluenceSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
355
347
|
xcss: styles.inputContainerStyles
|
|
356
348
|
}, /*#__PURE__*/React.createElement(ConfluenceSearchContainer, {
|
|
357
349
|
isSearching: status === 'loading',
|
|
@@ -378,7 +378,6 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
378
378
|
return {
|
|
379
379
|
key: key,
|
|
380
380
|
columnKey: key,
|
|
381
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
382
381
|
content: /*#__PURE__*/React.createElement(TableCellContent, {
|
|
383
382
|
id: id,
|
|
384
383
|
columnKey: key,
|
|
@@ -7,7 +7,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
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; }
|
|
8
8
|
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; }
|
|
9
9
|
/* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
10
|
-
/* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
11
10
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
12
11
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
13
12
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
@@ -374,7 +373,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
374
373
|
testId: "jira-datasource-modal",
|
|
375
374
|
onClose: onCancel,
|
|
376
375
|
shouldReturnFocus: shouldReturnFocus
|
|
377
|
-
},
|
|
376
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Flex, {
|
|
378
377
|
gap: "space.200",
|
|
379
378
|
justifyContent: "space-between",
|
|
380
379
|
xcss: styles.flexStyles
|
|
@@ -392,13 +391,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
392
391
|
selectedSite: selectedJiraSite,
|
|
393
392
|
testId: "jira-datasource-modal--site-selector",
|
|
394
393
|
label: siteSelectorLabel
|
|
395
|
-
})))))
|
|
396
|
-
availableSites: availableSites,
|
|
397
|
-
onSiteSelection: onSiteSelection,
|
|
398
|
-
selectedSite: selectedJiraSite,
|
|
399
|
-
testId: "jira-datasource-modal--site-selector",
|
|
400
|
-
label: siteSelectorLabel
|
|
401
|
-
})), !hasNoJiraSites && /*#__PURE__*/React.createElement(DatasourceViewModeDropDown, null)), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoJiraSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(JiraSearchContainer, {
|
|
394
|
+
}))))), /*#__PURE__*/React.createElement(ModalBody, null, !hasNoJiraSites ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(JiraSearchContainer, {
|
|
402
395
|
setSearchBarJql: setSearchBarJql,
|
|
403
396
|
searchBarJql: searchBarJql,
|
|
404
397
|
isSearching: status === 'loading',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.4",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
66
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
67
67
|
"@atlaskit/linking-common": "^9.7.0",
|
|
68
|
-
"@atlaskit/linking-types": "^14.
|
|
68
|
+
"@atlaskit/linking-types": "^14.1.0",
|
|
69
69
|
"@atlaskit/logo": "^19.9.0",
|
|
70
70
|
"@atlaskit/lozenge": "^13.0.0",
|
|
71
71
|
"@atlaskit/modal-dialog": "^14.5.0",
|
|
@@ -179,9 +179,6 @@
|
|
|
179
179
|
"lp_enable_datasource-table-view_height_override": {
|
|
180
180
|
"type": "boolean"
|
|
181
181
|
},
|
|
182
|
-
"navx-1483-a11y-close-button-in-modal-updates": {
|
|
183
|
-
"type": "boolean"
|
|
184
|
-
},
|
|
185
182
|
"navx-1334-datasource-deep-compare-params": {
|
|
186
183
|
"type": "boolean"
|
|
187
184
|
},
|