@atlaskit/link-datasource 2.4.1 → 2.4.3
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 +15 -0
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +0 -6
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +5 -2
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +0 -2
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +5 -2
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +0 -6
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +5 -2
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 2.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#113897](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113897)
|
|
14
|
+
[`d074d3df7025a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d074d3df7025a) -
|
|
15
|
+
Update Assets LoL table footer refresh button to clear column and visible key state
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.4.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -125,9 +125,6 @@ var DateRangePicker = exports.DateRangePicker = function DateRangePicker(_ref) {
|
|
|
125
125
|
testId: "date-from-picker",
|
|
126
126
|
dateFormat: "D MMM YYYY",
|
|
127
127
|
onChange: setCustomFromDate,
|
|
128
|
-
onDelete: function onDelete() {
|
|
129
|
-
return setCustomFromDate(undefined);
|
|
130
|
-
},
|
|
131
128
|
defaultValue: fromDate,
|
|
132
129
|
placeholder: formatMessage(_messages.dateRangeMessages.dateRangeFrom),
|
|
133
130
|
isInvalid: Boolean(invalidDateRange),
|
|
@@ -151,9 +148,6 @@ var DateRangePicker = exports.DateRangePicker = function DateRangePicker(_ref) {
|
|
|
151
148
|
testId: "date-to-picker",
|
|
152
149
|
dateFormat: "D MMM YYYY",
|
|
153
150
|
onChange: setCustomToDate,
|
|
154
|
-
onDelete: function onDelete() {
|
|
155
|
-
return setCustomToDate(undefined);
|
|
156
|
-
},
|
|
157
151
|
defaultValue: toDate,
|
|
158
152
|
placeholder: formatMessage(_messages.dateRangeMessages.dateRangeTo),
|
|
159
153
|
isInvalid: Boolean(invalidDateRange),
|
|
@@ -9,6 +9,7 @@ var _react = require("react");
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
11
11
|
var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _analytics = require("../../analytics");
|
|
13
14
|
var _constants = require("../../analytics/constants");
|
|
14
15
|
var _ufoExperiences = require("../../analytics/ufoExperiences");
|
|
@@ -19,6 +20,7 @@ var _datasourceExperienceId = require("../../contexts/datasource-experience-id")
|
|
|
19
20
|
var _useDatasourceTableState = require("../../hooks/useDatasourceTableState");
|
|
20
21
|
var _en = _interopRequireDefault(require("../../i18n/en"));
|
|
21
22
|
var _styled = require("../../ui/issue-like-table/styled");
|
|
23
|
+
var _assetsModal = require("../assets-modal");
|
|
22
24
|
var _accessRequired = require("../common/error-state/access-required");
|
|
23
25
|
var _loadingError = require("../common/error-state/loading-error");
|
|
24
26
|
var _noResults = require("../common/error-state/no-results");
|
|
@@ -115,9 +117,10 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
115
117
|
});
|
|
116
118
|
var forcedReset = (0, _react.useCallback)(function () {
|
|
117
119
|
reset({
|
|
118
|
-
shouldForceRequest: true
|
|
120
|
+
shouldForceRequest: true,
|
|
121
|
+
shouldResetColumns: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.datasource-assets_update_refresh_button_dt3qk') && datasourceId === _assetsModal.ASSETS_LIST_OF_LINKS_DATASOURCE_ID
|
|
119
122
|
});
|
|
120
|
-
}, [reset]);
|
|
123
|
+
}, [reset, datasourceId]);
|
|
121
124
|
var onRefresh = (0, _react.useCallback)(function () {
|
|
122
125
|
fireEvent('ui.button.clicked.sync', {
|
|
123
126
|
extensionKey: extensionKey,
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -96,7 +96,6 @@ export const DateRangePicker = ({
|
|
|
96
96
|
testId: "date-from-picker",
|
|
97
97
|
dateFormat: "D MMM YYYY",
|
|
98
98
|
onChange: setCustomFromDate,
|
|
99
|
-
onDelete: () => setCustomFromDate(undefined),
|
|
100
99
|
defaultValue: fromDate,
|
|
101
100
|
placeholder: formatMessage(dateRangeMessages.dateRangeFrom),
|
|
102
101
|
isInvalid: Boolean(invalidDateRange),
|
|
@@ -119,7 +118,6 @@ export const DateRangePicker = ({
|
|
|
119
118
|
testId: "date-to-picker",
|
|
120
119
|
dateFormat: "D MMM YYYY",
|
|
121
120
|
onChange: setCustomToDate,
|
|
122
|
-
onDelete: () => setCustomToDate(undefined),
|
|
123
121
|
defaultValue: toDate,
|
|
124
122
|
placeholder: formatMessage(dateRangeMessages.dateRangeTo),
|
|
125
123
|
isInvalid: Boolean(invalidDateRange),
|
|
@@ -5,6 +5,7 @@ import { useCallback, useEffect, useRef } from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
8
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
9
10
|
import { componentMetadata } from '../../analytics/constants';
|
|
10
11
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
@@ -15,6 +16,7 @@ import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../..
|
|
|
15
16
|
import { useDatasourceTableState } from '../../hooks/useDatasourceTableState';
|
|
16
17
|
import i18nEN from '../../i18n/en';
|
|
17
18
|
import { ScrollableContainerHeight } from '../../ui/issue-like-table/styled';
|
|
19
|
+
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
18
20
|
import { AccessRequired } from '../common/error-state/access-required';
|
|
19
21
|
import { LoadingError } from '../common/error-state/loading-error';
|
|
20
22
|
import { NoResults } from '../common/error-state/no-results';
|
|
@@ -109,9 +111,10 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
109
111
|
});
|
|
110
112
|
const forcedReset = useCallback(() => {
|
|
111
113
|
reset({
|
|
112
|
-
shouldForceRequest: true
|
|
114
|
+
shouldForceRequest: true,
|
|
115
|
+
shouldResetColumns: getBooleanFF('platform.linking-platform.datasource-assets_update_refresh_button_dt3qk') && datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID
|
|
113
116
|
});
|
|
114
|
-
}, [reset]);
|
|
117
|
+
}, [reset, datasourceId]);
|
|
115
118
|
const onRefresh = useCallback(() => {
|
|
116
119
|
fireEvent('ui.button.clicked.sync', {
|
|
117
120
|
extensionKey,
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -115,9 +115,6 @@ export var DateRangePicker = function DateRangePicker(_ref) {
|
|
|
115
115
|
testId: "date-from-picker",
|
|
116
116
|
dateFormat: "D MMM YYYY",
|
|
117
117
|
onChange: setCustomFromDate,
|
|
118
|
-
onDelete: function onDelete() {
|
|
119
|
-
return setCustomFromDate(undefined);
|
|
120
|
-
},
|
|
121
118
|
defaultValue: fromDate,
|
|
122
119
|
placeholder: formatMessage(dateRangeMessages.dateRangeFrom),
|
|
123
120
|
isInvalid: Boolean(invalidDateRange),
|
|
@@ -141,9 +138,6 @@ export var DateRangePicker = function DateRangePicker(_ref) {
|
|
|
141
138
|
testId: "date-to-picker",
|
|
142
139
|
dateFormat: "D MMM YYYY",
|
|
143
140
|
onChange: setCustomToDate,
|
|
144
|
-
onDelete: function onDelete() {
|
|
145
|
-
return setCustomToDate(undefined);
|
|
146
|
-
},
|
|
147
141
|
defaultValue: toDate,
|
|
148
142
|
placeholder: formatMessage(dateRangeMessages.dateRangeTo),
|
|
149
143
|
isInvalid: Boolean(invalidDateRange),
|
|
@@ -5,6 +5,7 @@ import { useCallback, useEffect, useRef } from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
8
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
9
10
|
import { componentMetadata } from '../../analytics/constants';
|
|
10
11
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
@@ -15,6 +16,7 @@ import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../..
|
|
|
15
16
|
import { useDatasourceTableState } from '../../hooks/useDatasourceTableState';
|
|
16
17
|
import i18nEN from '../../i18n/en';
|
|
17
18
|
import { ScrollableContainerHeight } from '../../ui/issue-like-table/styled';
|
|
19
|
+
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
18
20
|
import { AccessRequired } from '../common/error-state/access-required';
|
|
19
21
|
import { LoadingError } from '../common/error-state/loading-error';
|
|
20
22
|
import { NoResults } from '../common/error-state/no-results';
|
|
@@ -107,9 +109,10 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
107
109
|
});
|
|
108
110
|
var forcedReset = useCallback(function () {
|
|
109
111
|
reset({
|
|
110
|
-
shouldForceRequest: true
|
|
112
|
+
shouldForceRequest: true,
|
|
113
|
+
shouldResetColumns: getBooleanFF('platform.linking-platform.datasource-assets_update_refresh_button_dt3qk') && datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID
|
|
111
114
|
});
|
|
112
|
-
}, [reset]);
|
|
115
|
+
}, [reset, datasourceId]);
|
|
113
116
|
var onRefresh = useCallback(function () {
|
|
114
117
|
fireEvent('ui.button.clicked.sync', {
|
|
115
118
|
extensionKey: extensionKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/empty-state": "^7.9.0",
|
|
48
48
|
"@atlaskit/form": "^10.4.0",
|
|
49
49
|
"@atlaskit/heading": "^2.4.0",
|
|
50
|
-
"@atlaskit/icon": "^22.
|
|
50
|
+
"@atlaskit/icon": "^22.5.0",
|
|
51
51
|
"@atlaskit/icon-object": "^6.4.0",
|
|
52
52
|
"@atlaskit/image": "^1.3.0",
|
|
53
53
|
"@atlaskit/intl-messages-provider": "^1.0.0",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
68
68
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.1.0",
|
|
69
69
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
70
|
-
"@atlaskit/primitives": "^
|
|
70
|
+
"@atlaskit/primitives": "^9.0.0",
|
|
71
71
|
"@atlaskit/select": "^17.11.0",
|
|
72
|
-
"@atlaskit/smart-card": "^27.
|
|
72
|
+
"@atlaskit/smart-card": "^27.7.0",
|
|
73
73
|
"@atlaskit/smart-user-picker": "6.9.3",
|
|
74
74
|
"@atlaskit/spinner": "^16.2.0",
|
|
75
75
|
"@atlaskit/tag": "^12.3.0",
|
|
@@ -158,6 +158,9 @@
|
|
|
158
158
|
"platform.linking-platform.datasource-assets_add_version_parameter": {
|
|
159
159
|
"type": "boolean"
|
|
160
160
|
},
|
|
161
|
+
"platform.linking-platform.datasource-assets_update_refresh_button_dt3qk": {
|
|
162
|
+
"type": "boolean"
|
|
163
|
+
},
|
|
161
164
|
"platform.linking-platform.datasource.show-jlol-basic-filters": {
|
|
162
165
|
"type": "boolean"
|
|
163
166
|
},
|