@atlaskit/link-datasource 1.27.0 → 1.27.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 +12 -0
- package/dist/cjs/ui/common/error-state/no-instances.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/index.js +5 -1
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/es2019/ui/common/error-state/no-instances.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/index.js +5 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +2 -2
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/esm/ui/common/error-state/no-instances.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/index.js +5 -1
- package/dist/esm/ui/confluence-search-modal/modal/index.js +2 -2
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.27.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#90953](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90953) [`d1d4bbc1afeb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d1d4bbc1afeb) - The change here fixes a bug where basic filter dropdown does not show initial options after menu close.
|
|
8
|
+
|
|
9
|
+
## 1.27.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#89629](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89629) [`cb82b58b4ae2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb82b58b4ae2) - Update xcss usages to align to new types.
|
|
14
|
+
|
|
3
15
|
## 1.27.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -19,7 +19,7 @@ var descriptionStyles = (0, _react.css)({
|
|
|
19
19
|
marginTop: "var(--ds-space-100, 8px)"
|
|
20
20
|
});
|
|
21
21
|
var containerStyles = (0, _primitives.xcss)({
|
|
22
|
-
marginTop: '
|
|
22
|
+
marginTop: 'space.800'
|
|
23
23
|
});
|
|
24
24
|
var NoInstancesView = exports.NoInstancesView = function NoInstancesView(_ref) {
|
|
25
25
|
var title = _ref.title,
|
|
@@ -124,13 +124,17 @@ var FilterPopupSelect = exports.FilterPopupSelect = function FilterPopupSelect(_
|
|
|
124
124
|
*/
|
|
125
125
|
if (searchTerm) {
|
|
126
126
|
setSearchTerm('');
|
|
127
|
+
onInputChange('', {
|
|
128
|
+
action: 'input-change',
|
|
129
|
+
prevInputValue: searchTerm
|
|
130
|
+
});
|
|
127
131
|
}
|
|
128
132
|
onMenuClose === null || onMenuClose === void 0 || onMenuClose();
|
|
129
133
|
fireEvent('ui.dropdown.closed.basicSearchDropdown', {
|
|
130
134
|
filterName: filterName,
|
|
131
135
|
selectionCount: selectedOptions.length
|
|
132
136
|
});
|
|
133
|
-
}, [filterName, fireEvent, onMenuClose, searchTerm, selectedOptions.length]);
|
|
137
|
+
}, [filterName, fireEvent, onInputChange, onMenuClose, searchTerm, selectedOptions.length]);
|
|
134
138
|
var handleInputChange = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
135
139
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(newSearchTerm, actionMeta) {
|
|
136
140
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
@@ -354,7 +354,7 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
|
|
|
354
354
|
var shouldShowResultsCount = !!totalCount && currentViewMode === 'table';
|
|
355
355
|
var onInsertPressed = (0, _react.useCallback)(function (e, analyticsEvent) {
|
|
356
356
|
var _insertButtonClickedE;
|
|
357
|
-
if (!isParametersSet || !cloudId) {
|
|
357
|
+
if (!isParametersSet || !cloudId || !confluenceSearchUrl) {
|
|
358
358
|
return;
|
|
359
359
|
}
|
|
360
360
|
var insertButtonClickedEvent = analyticsEvent.update({
|
|
@@ -400,7 +400,7 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
|
|
|
400
400
|
})
|
|
401
401
|
}
|
|
402
402
|
}]
|
|
403
|
-
}), consumerEvent);
|
|
403
|
+
}, confluenceSearchUrl), consumerEvent);
|
|
404
404
|
}
|
|
405
405
|
}, [isParametersSet, cloudId, analyticsPayload, totalCount, currentViewMode, onInsert, confluenceSearchUrl, datasourceId, parameters, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys]);
|
|
406
406
|
var handleViewModeChange = function handleViewModeChange(selectedMode) {
|
|
@@ -27,7 +27,7 @@ var userWrapperStyles = (0, _primitives.xcss)({
|
|
|
27
27
|
fontSize: "".concat(_styled2.fieldTextFontSize, "px")
|
|
28
28
|
});
|
|
29
29
|
var avatarWrapperStyles = (0, _primitives.xcss)({
|
|
30
|
-
marginRight: '
|
|
30
|
+
marginRight: 'space.100'
|
|
31
31
|
});
|
|
32
32
|
var widthObserverWrapperStyles = (0, _primitives.xcss)({
|
|
33
33
|
position: 'relative'
|
|
@@ -91,13 +91,17 @@ export const FilterPopupSelect = ({
|
|
|
91
91
|
*/
|
|
92
92
|
if (searchTerm) {
|
|
93
93
|
setSearchTerm('');
|
|
94
|
+
onInputChange('', {
|
|
95
|
+
action: 'input-change',
|
|
96
|
+
prevInputValue: searchTerm
|
|
97
|
+
});
|
|
94
98
|
}
|
|
95
99
|
onMenuClose === null || onMenuClose === void 0 ? void 0 : onMenuClose();
|
|
96
100
|
fireEvent('ui.dropdown.closed.basicSearchDropdown', {
|
|
97
101
|
filterName,
|
|
98
102
|
selectionCount: selectedOptions.length
|
|
99
103
|
});
|
|
100
|
-
}, [filterName, fireEvent, onMenuClose, searchTerm, selectedOptions.length]);
|
|
104
|
+
}, [filterName, fireEvent, onInputChange, onMenuClose, searchTerm, selectedOptions.length]);
|
|
101
105
|
const handleInputChange = useCallback(async (newSearchTerm, actionMeta) => {
|
|
102
106
|
if (actionMeta.action === 'input-change' && newSearchTerm !== searchTerm) {
|
|
103
107
|
setSearchTerm(newSearchTerm);
|
|
@@ -292,7 +292,7 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
292
292
|
const shouldShowResultsCount = !!totalCount && currentViewMode === 'table';
|
|
293
293
|
const onInsertPressed = useCallback((e, analyticsEvent) => {
|
|
294
294
|
var _insertButtonClickedE;
|
|
295
|
-
if (!isParametersSet || !cloudId) {
|
|
295
|
+
if (!isParametersSet || !cloudId || !confluenceSearchUrl) {
|
|
296
296
|
return;
|
|
297
297
|
}
|
|
298
298
|
const insertButtonClickedEvent = analyticsEvent.update({
|
|
@@ -342,7 +342,7 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
342
342
|
})
|
|
343
343
|
}
|
|
344
344
|
}]
|
|
345
|
-
}), consumerEvent);
|
|
345
|
+
}, confluenceSearchUrl), consumerEvent);
|
|
346
346
|
}
|
|
347
347
|
}, [isParametersSet, cloudId, analyticsPayload, totalCount, currentViewMode, onInsert, confluenceSearchUrl, datasourceId, parameters, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys]);
|
|
348
348
|
const handleViewModeChange = selectedMode => {
|
|
@@ -114,13 +114,17 @@ export var FilterPopupSelect = function FilterPopupSelect(_ref) {
|
|
|
114
114
|
*/
|
|
115
115
|
if (searchTerm) {
|
|
116
116
|
setSearchTerm('');
|
|
117
|
+
onInputChange('', {
|
|
118
|
+
action: 'input-change',
|
|
119
|
+
prevInputValue: searchTerm
|
|
120
|
+
});
|
|
117
121
|
}
|
|
118
122
|
onMenuClose === null || onMenuClose === void 0 || onMenuClose();
|
|
119
123
|
fireEvent('ui.dropdown.closed.basicSearchDropdown', {
|
|
120
124
|
filterName: filterName,
|
|
121
125
|
selectionCount: selectedOptions.length
|
|
122
126
|
});
|
|
123
|
-
}, [filterName, fireEvent, onMenuClose, searchTerm, selectedOptions.length]);
|
|
127
|
+
}, [filterName, fireEvent, onInputChange, onMenuClose, searchTerm, selectedOptions.length]);
|
|
124
128
|
var handleInputChange = useCallback( /*#__PURE__*/function () {
|
|
125
129
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSearchTerm, actionMeta) {
|
|
126
130
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -345,7 +345,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
345
345
|
var shouldShowResultsCount = !!totalCount && currentViewMode === 'table';
|
|
346
346
|
var onInsertPressed = useCallback(function (e, analyticsEvent) {
|
|
347
347
|
var _insertButtonClickedE;
|
|
348
|
-
if (!isParametersSet || !cloudId) {
|
|
348
|
+
if (!isParametersSet || !cloudId || !confluenceSearchUrl) {
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
351
|
var insertButtonClickedEvent = analyticsEvent.update({
|
|
@@ -391,7 +391,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
391
391
|
})
|
|
392
392
|
}
|
|
393
393
|
}]
|
|
394
|
-
}), consumerEvent);
|
|
394
|
+
}, confluenceSearchUrl), consumerEvent);
|
|
395
395
|
}
|
|
396
396
|
}, [isParametersSet, cloudId, analyticsPayload, totalCount, currentViewMode, onInsert, confluenceSearchUrl, datasourceId, parameters, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys]);
|
|
397
397
|
var handleViewModeChange = function handleViewModeChange(selectedMode) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/dropdown-menu": "^12.8.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
42
42
|
"@atlaskit/empty-state": "^7.7.0",
|
|
43
|
-
"@atlaskit/form": "^9.
|
|
43
|
+
"@atlaskit/form": "^9.2.0",
|
|
44
44
|
"@atlaskit/heading": "^2.1.0",
|
|
45
45
|
"@atlaskit/icon": "^22.1.0",
|
|
46
46
|
"@atlaskit/icon-object": "^6.3.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
63
63
|
"@atlaskit/primitives": "^5.5.0",
|
|
64
64
|
"@atlaskit/select": "^17.6.0",
|
|
65
|
-
"@atlaskit/smart-card": "^26.
|
|
65
|
+
"@atlaskit/smart-card": "^26.55.0",
|
|
66
66
|
"@atlaskit/spinner": "^16.0.0",
|
|
67
67
|
"@atlaskit/tag": "^12.0.0",
|
|
68
68
|
"@atlaskit/textfield": "6.1.3",
|