@atlaskit/link-datasource 0.34.0 → 0.34.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/hooks/useDatasourceTableState.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +5 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +1 -0
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/es2019/hooks/useDatasourceTableState.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +5 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +1 -0
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/esm/hooks/useDatasourceTableState.js +1 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +5 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +1 -0
- package/dist/esm/ui/jira-issues-modal/modal/index.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 0.34.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4929f0c37cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4929f0c37cc) - [ux] Update empty state in assets modal with link
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 0.34.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`0260eb48f1a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0260eb48f1a) - [ux] Skip column schema apply if no results on initial query
|
|
15
|
+
|
|
3
16
|
## 0.34.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -188,7 +188,7 @@ var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
188
188
|
if (fieldKeys.length > 0) {
|
|
189
189
|
setLastRequestedFieldKeys(fieldKeys);
|
|
190
190
|
}
|
|
191
|
-
if (isSchemaFromData && schema) {
|
|
191
|
+
if (isSchemaFromData && schema && items.length > 0) {
|
|
192
192
|
applySchemaProperties(schema.properties);
|
|
193
193
|
}
|
|
194
194
|
_context2.next = 33;
|
|
@@ -26,6 +26,7 @@ var searchTitleStyles = (0, _react.css)({
|
|
|
26
26
|
paddingTop: "var(--ds-space-200, 16px)",
|
|
27
27
|
paddingBottom: "var(--ds-space-100, 8px)"
|
|
28
28
|
});
|
|
29
|
+
var AQLSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/';
|
|
29
30
|
var InitialStateView = function InitialStateView() {
|
|
30
31
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
31
32
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -36,6 +37,9 @@ var InitialStateView = function InitialStateView() {
|
|
|
36
37
|
css: svgAndTextsWrapperStyles
|
|
37
38
|
}, (0, _react.jsx)(_crystalBallSvg.CrystalBallSVG, null), (0, _react.jsx)("div", {
|
|
38
39
|
css: searchTitleStyles
|
|
39
|
-
}, formatMessage(_messages.initialStateViewMessages.searchTitle)), (0, _react.jsx)("div", null, formatMessage(_messages.initialStateViewMessages.searchDescription)), (0, _react.jsx)("a",
|
|
40
|
+
}, formatMessage(_messages.initialStateViewMessages.searchTitle)), (0, _react.jsx)("div", null, formatMessage(_messages.initialStateViewMessages.searchDescription)), (0, _react.jsx)("a", {
|
|
41
|
+
href: AQLSupportDocumentLink,
|
|
42
|
+
target: "_blank"
|
|
43
|
+
}, formatMessage(_messages.initialStateViewMessages.learnMoreLink))));
|
|
40
44
|
};
|
|
41
45
|
exports.InitialStateView = InitialStateView;
|
|
@@ -9,7 +9,7 @@ var initialStateViewMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
9
9
|
searchTitle: {
|
|
10
10
|
id: 'linkDataSource.assets.configModal.renderAssetsContent.initialStateView.searchTitle',
|
|
11
11
|
description: 'The initial search state title that gives the user some idea about how to get information',
|
|
12
|
-
defaultMessage: 'Search for objects
|
|
12
|
+
defaultMessage: 'Search for objects'
|
|
13
13
|
},
|
|
14
14
|
searchDescription: {
|
|
15
15
|
id: 'linkDataSource.assets.configModal.renderAssetsContent.initialStateView.searchDescription',
|
|
@@ -96,6 +96,7 @@ var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref) {
|
|
|
96
96
|
onFocus = _ref3$fieldProps.onFocus,
|
|
97
97
|
restFieldProps = (0, _objectWithoutProperties2.default)(_ref3$fieldProps, _excluded);
|
|
98
98
|
return (0, _react.jsx)(_select.AsyncSelect, (0, _extends2.default)({
|
|
99
|
+
autoFocus: true,
|
|
99
100
|
classNamePrefix: classNamePrefix,
|
|
100
101
|
isLoading: objectSchemasLoading,
|
|
101
102
|
defaultOptions: true // setting to true causes the loadOptions to be called on mount
|
|
@@ -344,7 +344,7 @@ var analyticsContextAttributes = {
|
|
|
344
344
|
};
|
|
345
345
|
var analyticsContextData = {
|
|
346
346
|
packageName: "@atlaskit/link-datasource",
|
|
347
|
-
packageVersion: "0.34.
|
|
347
|
+
packageVersion: "0.34.2",
|
|
348
348
|
source: 'datasourceConfigModal'
|
|
349
349
|
};
|
|
350
350
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -109,7 +109,7 @@ export const useDatasourceTableState = ({
|
|
|
109
109
|
if (fieldKeys.length > 0) {
|
|
110
110
|
setLastRequestedFieldKeys(fieldKeys);
|
|
111
111
|
}
|
|
112
|
-
if (isSchemaFromData && schema) {
|
|
112
|
+
if (isSchemaFromData && schema && items.length > 0) {
|
|
113
113
|
applySchemaProperties(schema.properties);
|
|
114
114
|
}
|
|
115
115
|
} catch (e) {
|
|
@@ -20,6 +20,7 @@ const searchTitleStyles = css({
|
|
|
20
20
|
paddingTop: "var(--ds-space-200, 16px)",
|
|
21
21
|
paddingBottom: "var(--ds-space-100, 8px)"
|
|
22
22
|
});
|
|
23
|
+
const AQLSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/';
|
|
23
24
|
export const InitialStateView = () => {
|
|
24
25
|
const {
|
|
25
26
|
formatMessage
|
|
@@ -31,5 +32,8 @@ export const InitialStateView = () => {
|
|
|
31
32
|
css: svgAndTextsWrapperStyles
|
|
32
33
|
}, jsx(CrystalBallSVG, null), jsx("div", {
|
|
33
34
|
css: searchTitleStyles
|
|
34
|
-
}, formatMessage(initialStateViewMessages.searchTitle)), jsx("div", null, formatMessage(initialStateViewMessages.searchDescription)), jsx("a",
|
|
35
|
+
}, formatMessage(initialStateViewMessages.searchTitle)), jsx("div", null, formatMessage(initialStateViewMessages.searchDescription)), jsx("a", {
|
|
36
|
+
href: AQLSupportDocumentLink,
|
|
37
|
+
target: "_blank"
|
|
38
|
+
}, formatMessage(initialStateViewMessages.learnMoreLink))));
|
|
35
39
|
};
|
package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.js
CHANGED
|
@@ -3,7 +3,7 @@ export const initialStateViewMessages = defineMessages({
|
|
|
3
3
|
searchTitle: {
|
|
4
4
|
id: 'linkDataSource.assets.configModal.renderAssetsContent.initialStateView.searchTitle',
|
|
5
5
|
description: 'The initial search state title that gives the user some idea about how to get information',
|
|
6
|
-
defaultMessage: 'Search for objects
|
|
6
|
+
defaultMessage: 'Search for objects'
|
|
7
7
|
},
|
|
8
8
|
searchDescription: {
|
|
9
9
|
id: 'linkDataSource.assets.configModal.renderAssetsContent.initialStateView.searchDescription',
|
|
@@ -63,6 +63,7 @@ export const AssetsObjectSchemaSelect = ({
|
|
|
63
63
|
...restFieldProps
|
|
64
64
|
}
|
|
65
65
|
}) => jsx(AsyncSelect, _extends({
|
|
66
|
+
autoFocus: true,
|
|
66
67
|
classNamePrefix: classNamePrefix,
|
|
67
68
|
isLoading: objectSchemasLoading,
|
|
68
69
|
defaultOptions: true // setting to true causes the loadOptions to be called on mount
|
|
@@ -290,7 +290,7 @@ const analyticsContextAttributes = {
|
|
|
290
290
|
};
|
|
291
291
|
const analyticsContextData = {
|
|
292
292
|
packageName: "@atlaskit/link-datasource",
|
|
293
|
-
packageVersion: "0.34.
|
|
293
|
+
packageVersion: "0.34.2",
|
|
294
294
|
source: 'datasourceConfigModal'
|
|
295
295
|
};
|
|
296
296
|
const contextData = {
|
|
@@ -181,7 +181,7 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
181
181
|
if (fieldKeys.length > 0) {
|
|
182
182
|
setLastRequestedFieldKeys(fieldKeys);
|
|
183
183
|
}
|
|
184
|
-
if (isSchemaFromData && schema) {
|
|
184
|
+
if (isSchemaFromData && schema && items.length > 0) {
|
|
185
185
|
applySchemaProperties(schema.properties);
|
|
186
186
|
}
|
|
187
187
|
_context2.next = 33;
|
|
@@ -20,6 +20,7 @@ var searchTitleStyles = css({
|
|
|
20
20
|
paddingTop: "var(--ds-space-200, 16px)",
|
|
21
21
|
paddingBottom: "var(--ds-space-100, 8px)"
|
|
22
22
|
});
|
|
23
|
+
var AQLSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/';
|
|
23
24
|
export var InitialStateView = function InitialStateView() {
|
|
24
25
|
var _useIntl = useIntl(),
|
|
25
26
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -30,5 +31,8 @@ export var InitialStateView = function InitialStateView() {
|
|
|
30
31
|
css: svgAndTextsWrapperStyles
|
|
31
32
|
}, jsx(CrystalBallSVG, null), jsx("div", {
|
|
32
33
|
css: searchTitleStyles
|
|
33
|
-
}, formatMessage(initialStateViewMessages.searchTitle)), jsx("div", null, formatMessage(initialStateViewMessages.searchDescription)), jsx("a",
|
|
34
|
+
}, formatMessage(initialStateViewMessages.searchTitle)), jsx("div", null, formatMessage(initialStateViewMessages.searchDescription)), jsx("a", {
|
|
35
|
+
href: AQLSupportDocumentLink,
|
|
36
|
+
target: "_blank"
|
|
37
|
+
}, formatMessage(initialStateViewMessages.learnMoreLink))));
|
|
34
38
|
};
|
|
@@ -3,7 +3,7 @@ export var initialStateViewMessages = defineMessages({
|
|
|
3
3
|
searchTitle: {
|
|
4
4
|
id: 'linkDataSource.assets.configModal.renderAssetsContent.initialStateView.searchTitle',
|
|
5
5
|
description: 'The initial search state title that gives the user some idea about how to get information',
|
|
6
|
-
defaultMessage: 'Search for objects
|
|
6
|
+
defaultMessage: 'Search for objects'
|
|
7
7
|
},
|
|
8
8
|
searchDescription: {
|
|
9
9
|
id: 'linkDataSource.assets.configModal.renderAssetsContent.initialStateView.searchDescription',
|
|
@@ -89,6 +89,7 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref) {
|
|
|
89
89
|
onFocus = _ref3$fieldProps.onFocus,
|
|
90
90
|
restFieldProps = _objectWithoutProperties(_ref3$fieldProps, _excluded);
|
|
91
91
|
return jsx(AsyncSelect, _extends({
|
|
92
|
+
autoFocus: true,
|
|
92
93
|
classNamePrefix: classNamePrefix,
|
|
93
94
|
isLoading: objectSchemasLoading,
|
|
94
95
|
defaultOptions: true // setting to true causes the loadOptions to be called on mount
|
|
@@ -334,7 +334,7 @@ var analyticsContextAttributes = {
|
|
|
334
334
|
};
|
|
335
335
|
var analyticsContextData = {
|
|
336
336
|
packageName: "@atlaskit/link-datasource",
|
|
337
|
-
packageVersion: "0.34.
|
|
337
|
+
packageVersion: "0.34.2",
|
|
338
338
|
source: 'datasourceConfigModal'
|
|
339
339
|
};
|
|
340
340
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/linking-types": "^8.2.0",
|
|
48
48
|
"@atlaskit/lozenge": "^11.4.0",
|
|
49
49
|
"@atlaskit/modal-dialog": "^12.6.0",
|
|
50
|
-
"@atlaskit/pragmatic-drag-and-drop": "^0.
|
|
50
|
+
"@atlaskit/pragmatic-drag-and-drop": "^0.22.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^0.11.0",
|
|
52
52
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.16.0",
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED