@atlaskit/link-datasource 2.1.3 → 2.1.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 +9 -0
- package/CONTRIBUTING.md +3 -0
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.js +7 -2
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.js +7 -2
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.js +7 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 2.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#99091](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99091)
|
|
8
|
+
[`8e2c83a11eb5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e2c83a11eb5) -
|
|
9
|
+
The changes here updates the Last Updated filter selection to be triggered without a
|
|
10
|
+
waiting(debounced) period.
|
|
11
|
+
|
|
3
12
|
## 2.1.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/CONTRIBUTING.md
ADDED
|
@@ -16,6 +16,7 @@ var _basicSearchInput = require("../../common/modal/basic-search-input");
|
|
|
16
16
|
var _constants = require("../../common/modal/popup-select/constants");
|
|
17
17
|
var _basicFilters = _interopRequireDefault(require("../basic-filters"));
|
|
18
18
|
var _useBasicFilterHydration = require("../basic-filters/hooks/useBasicFilterHydration");
|
|
19
|
+
var _types = require("../basic-filters/types");
|
|
19
20
|
var _messages = require("./messages");
|
|
20
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -74,8 +75,12 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
74
75
|
var handleBasicFilterSelectionChange = (0, _react.useCallback)(function (filterType, options) {
|
|
75
76
|
var updatedSelection = _objectSpread(_objectSpread({}, filterSelections), {}, (0, _defineProperty2.default)({}, filterType, Array.isArray(options) ? options : [options]));
|
|
76
77
|
setFilterSelections(updatedSelection);
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
if (filterType === _types.CLOLBasicFilters.lastModified) {
|
|
79
|
+
onSearch(searchBarSearchString, updatedSelection);
|
|
80
|
+
} else {
|
|
81
|
+
debouncedBasicFilterSelectionChange(updatedSelection);
|
|
82
|
+
}
|
|
83
|
+
}, [debouncedBasicFilterSelectionChange, filterSelections, onSearch, searchBarSearchString]);
|
|
79
84
|
|
|
80
85
|
// TODO: further refactoring in EDM-9573
|
|
81
86
|
// https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/pull-requests/82725/overview?commentId=6827913
|
|
@@ -6,6 +6,7 @@ import { BasicSearchInput } from '../../common/modal/basic-search-input';
|
|
|
6
6
|
import { FILTER_SELECTION_DEBOUNCE_MS } from '../../common/modal/popup-select/constants';
|
|
7
7
|
import BasicFilters from '../basic-filters';
|
|
8
8
|
import { useBasicFilterHydration } from '../basic-filters/hooks/useBasicFilterHydration';
|
|
9
|
+
import { CLOLBasicFilters } from '../basic-filters/types';
|
|
9
10
|
import { searchMessages } from './messages';
|
|
10
11
|
const basicSearchInputContainerStyles = xcss({
|
|
11
12
|
flexGrow: 1
|
|
@@ -53,8 +54,12 @@ const ConfluenceSearchContainer = ({
|
|
|
53
54
|
[filterType]: Array.isArray(options) ? options : [options]
|
|
54
55
|
};
|
|
55
56
|
setFilterSelections(updatedSelection);
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
if (filterType === CLOLBasicFilters.lastModified) {
|
|
58
|
+
onSearch(searchBarSearchString, updatedSelection);
|
|
59
|
+
} else {
|
|
60
|
+
debouncedBasicFilterSelectionChange(updatedSelection);
|
|
61
|
+
}
|
|
62
|
+
}, [debouncedBasicFilterSelectionChange, filterSelections, onSearch, searchBarSearchString]);
|
|
58
63
|
|
|
59
64
|
// TODO: further refactoring in EDM-9573
|
|
60
65
|
// https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/pull-requests/82725/overview?commentId=6827913
|
|
@@ -10,6 +10,7 @@ import { BasicSearchInput } from '../../common/modal/basic-search-input';
|
|
|
10
10
|
import { FILTER_SELECTION_DEBOUNCE_MS } from '../../common/modal/popup-select/constants';
|
|
11
11
|
import BasicFilters from '../basic-filters';
|
|
12
12
|
import { useBasicFilterHydration } from '../basic-filters/hooks/useBasicFilterHydration';
|
|
13
|
+
import { CLOLBasicFilters } from '../basic-filters/types';
|
|
13
14
|
import { searchMessages } from './messages';
|
|
14
15
|
var basicSearchInputContainerStyles = xcss({
|
|
15
16
|
flexGrow: 1
|
|
@@ -64,8 +65,12 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
64
65
|
var handleBasicFilterSelectionChange = useCallback(function (filterType, options) {
|
|
65
66
|
var updatedSelection = _objectSpread(_objectSpread({}, filterSelections), {}, _defineProperty({}, filterType, Array.isArray(options) ? options : [options]));
|
|
66
67
|
setFilterSelections(updatedSelection);
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
if (filterType === CLOLBasicFilters.lastModified) {
|
|
69
|
+
onSearch(searchBarSearchString, updatedSelection);
|
|
70
|
+
} else {
|
|
71
|
+
debouncedBasicFilterSelectionChange(updatedSelection);
|
|
72
|
+
}
|
|
73
|
+
}, [debouncedBasicFilterSelectionChange, filterSelections, onSearch, searchBarSearchString]);
|
|
69
74
|
|
|
70
75
|
// TODO: further refactoring in EDM-9573
|
|
71
76
|
// https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/pull-requests/82725/overview?commentId=6827913
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
67
67
|
"@atlaskit/primitives": "^6.1.0",
|
|
68
68
|
"@atlaskit/select": "^17.9.0",
|
|
69
|
-
"@atlaskit/smart-card": "^26.
|
|
69
|
+
"@atlaskit/smart-card": "^26.66.0",
|
|
70
70
|
"@atlaskit/smart-user-picker": "6.9.3",
|
|
71
71
|
"@atlaskit/spinner": "^16.1.0",
|
|
72
72
|
"@atlaskit/tag": "^12.2.0",
|
|
73
73
|
"@atlaskit/textfield": "6.3.1",
|
|
74
74
|
"@atlaskit/theme": "^12.8.0",
|
|
75
|
-
"@atlaskit/tokens": "^1.
|
|
75
|
+
"@atlaskit/tokens": "^1.48.0",
|
|
76
76
|
"@atlaskit/tooltip": "^18.3.0",
|
|
77
77
|
"@atlaskit/ufo": "^0.2.4",
|
|
78
78
|
"@atlaskit/width-detector": "^4.2.0",
|