@atlaskit/link-datasource 4.19.0 → 4.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- 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/es2019/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- 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/esm/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- 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/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/datasource-modal/index.d.ts +1 -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/datasource-modal/index.d.ts +1 -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 +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.19.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`493a31bb8da8e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/493a31bb8da8e) -
|
|
8
|
+
[ux] Clean up FG replace-legacy-button-in-sllv
|
|
9
|
+
|
|
10
|
+
## 4.19.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 4.19.0
|
|
4
17
|
|
|
5
18
|
### Minor 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)
|
|
@@ -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"),
|
|
@@ -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)
|
|
@@ -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`,
|
|
@@ -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)
|
|
@@ -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",
|
|
@@ -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
|
-
var searchButtonStyles = null;
|
|
16
14
|
var styles = {
|
|
17
15
|
searchButtonContainer: "_2hwx12x7"
|
|
18
16
|
};
|
|
@@ -43,7 +41,7 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
43
41
|
onSubmit: handleFormSubmit,
|
|
44
42
|
className: ax([fullWidth ? "_16jlkb7n _1o9zkb7n _i0dlf1ug" : "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12f1mjv"])
|
|
45
43
|
}, /*#__PURE__*/React.createElement(Textfield, {
|
|
46
|
-
elemAfterInput:
|
|
44
|
+
elemAfterInput: /*#__PURE__*/React.createElement(Box, {
|
|
47
45
|
xcss: styles.searchButtonContainer
|
|
48
46
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
49
47
|
appearance: "primary",
|
|
@@ -61,21 +59,7 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
61
59
|
isDisabled: isDisabled,
|
|
62
60
|
testId: "".concat(testId, "--basic-search-button"),
|
|
63
61
|
onClick: handleSearchWithAnalytics
|
|
64
|
-
}))
|
|
65
|
-
appearance: "primary",
|
|
66
|
-
iconBefore: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
67
|
-
label: formatMessage(fg('confluence-issue-terminology-refresh') ? basicSearchInputMessages.basicTextSearchLabelIssueTermRefresh : basicSearchInputMessages.basicTextSearchLabel),
|
|
68
|
-
LEGACY_size: "medium",
|
|
69
|
-
color: "currentColor",
|
|
70
|
-
spacing: "spacious"
|
|
71
|
-
}),
|
|
72
|
-
isDisabled: isDisabled,
|
|
73
|
-
isLoading: isSearching,
|
|
74
|
-
onClick: handleSearchWithAnalytics,
|
|
75
|
-
spacing: "none",
|
|
76
|
-
testId: "".concat(testId, "--basic-search-button"),
|
|
77
|
-
className: ax(["_2hwx12x7"])
|
|
78
|
-
}),
|
|
62
|
+
})),
|
|
79
63
|
autoFocus: true,
|
|
80
64
|
onChange: onChange,
|
|
81
65
|
testId: "".concat(testId, "--basic-search-input"),
|
|
@@ -23,5 +23,5 @@ type EventPayload<K extends EventKey> = {
|
|
|
23
23
|
actionSubjectId?: string;
|
|
24
24
|
attributes?: AnalyticsEventAttributes[K];
|
|
25
25
|
};
|
|
26
|
-
declare const createEventPayload: <K extends
|
|
26
|
+
declare const createEventPayload: <K extends EventKey>(eventKey: K, ...[attributes]: EventPayloadAttributes<K>) => ScreenEventPayload<K> | EventPayload<K>;
|
|
27
27
|
export default createEventPayload;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type EventKey } from './analytics.types';
|
|
1
2
|
export declare const useAnalyticsEvents: () => {
|
|
2
|
-
fireEvent: <K extends
|
|
3
|
+
fireEvent: <K extends EventKey>(eventKey: K, ...params: undefined extends import("./analytics.types").AnalyticsEventAttributes[K] ? [param?: import("./analytics.types").AnalyticsEventAttributes[K] | undefined] : [param: import("./analytics.types").AnalyticsEventAttributes[K]]) => void;
|
|
3
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { EVENT_CHANNEL } from './constants';
|
|
2
2
|
export declare const useDatasourceAnalyticsEvents: () => {
|
|
3
|
-
fireEvent: <K extends
|
|
3
|
+
fireEvent: <K extends import("./generated/analytics.types").EventKey>(eventKey: K, ...params: undefined extends import("./generated/analytics.types").AnalyticsEventAttributes[K] ? [param?: import("./generated/analytics.types").AnalyticsEventAttributes[K] | undefined] : [param: import("./generated/analytics.types").AnalyticsEventAttributes[K]]) => void;
|
|
4
4
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { captureException } from '@atlaskit/linking-common/sentry';
|
|
1
2
|
import { type DatasourceOperationFailedAttributesType } from '../analytics/generated/analytics.types';
|
|
3
|
+
type Tail<T extends any[]> = T extends [infer A, ...infer R] ? R : never;
|
|
2
4
|
/**
|
|
3
5
|
* This function is just a wrapper around captureException that checks if the enable-sentry-client FF is enabled
|
|
4
6
|
* and error is instanceof Error. We have to override the type of error from captureException to unknown so we use
|
|
5
7
|
* a helper Tail type which removes the first element of the tuple
|
|
6
8
|
*/
|
|
7
|
-
export declare const logToSentry: (error: unknown,
|
|
8
|
-
[key: string]: string | number | bigint | boolean | symbol | null | undefined;
|
|
9
|
-
} | undefined) => void;
|
|
9
|
+
export declare const logToSentry: (error: unknown, ...captureExceptionParams: Tail<Parameters<typeof captureException>>) => void;
|
|
10
10
|
interface UseErrorLoggerPropsDatasource {
|
|
11
11
|
datasourceId: string;
|
|
12
12
|
}
|
|
@@ -15,6 +15,6 @@ interface UseErrorLoggerPropsActions {
|
|
|
15
15
|
}
|
|
16
16
|
export type UseErrorLoggerProps = UseErrorLoggerPropsDatasource | UseErrorLoggerPropsActions;
|
|
17
17
|
declare const useErrorLogger: (loggerProps: UseErrorLoggerProps) => {
|
|
18
|
-
captureError: (errorLocation: DatasourceOperationFailedAttributesType[
|
|
18
|
+
captureError: (errorLocation: DatasourceOperationFailedAttributesType["errorLocation"], error: unknown) => void;
|
|
19
19
|
};
|
|
20
20
|
export default useErrorLogger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Site } from '../common/types';
|
|
2
|
-
export declare const getAvailableSites: (product:
|
|
2
|
+
export declare const getAvailableSites: (product: "jira" | "confluence") => Promise<Site[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Site } from '../common/types';
|
|
2
|
-
export declare const useAvailableSites: (product:
|
|
2
|
+
export declare const useAvailableSites: (product: "confluence" | "jira", cloudId?: string) => {
|
|
3
3
|
availableSites: Site[] | undefined;
|
|
4
4
|
selectedSite: Site | undefined;
|
|
5
5
|
};
|
|
@@ -86,7 +86,7 @@ export declare const useAtomicUpdateActionSchema: import("react-sweet-state").Ho
|
|
|
86
86
|
fetchSchema?: undefined;
|
|
87
87
|
} | {
|
|
88
88
|
schema: Pick<AtomicActionInterface, "actionKey" | "type" | "description"> & {
|
|
89
|
-
fetchAction?: Pick<AtomicActionInterface, "actionKey" | "type" | "inputs"
|
|
89
|
+
fetchAction?: Pick<AtomicActionInterface, "actionKey" | "type" | "inputs">;
|
|
90
90
|
};
|
|
91
91
|
fetchSchema: Pick<AtomicActionInterface, "actionKey" | "type" | "inputs"> | undefined;
|
|
92
92
|
}, import("react-sweet-state").BoundActions<ActionsStoreState, {
|
|
@@ -113,7 +113,7 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
|
|
|
113
113
|
fieldKey: string;
|
|
114
114
|
integrationKey: string;
|
|
115
115
|
}) => {
|
|
116
|
-
execute?: (
|
|
117
|
-
executeFetch?: ExecuteFetch
|
|
116
|
+
execute?: (value: string | number) => Promise<AtomicActionExecuteResponse<unknown>>;
|
|
117
|
+
executeFetch?: ExecuteFetch;
|
|
118
118
|
};
|
|
119
119
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type AssetsConfigModalProps } from '../types';
|
|
3
2
|
export declare const AssetsConfigModal: import("react").ForwardRefExoticComponent<AssetsConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|