@atlaskit/link-datasource 2.4.1 → 2.4.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 2.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#113897](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113897)
|
|
8
|
+
[`d074d3df7025a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d074d3df7025a) -
|
|
9
|
+
Update Assets LoL table footer refresh button to clear column and visible key state
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.4.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.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": "^8.
|
|
70
|
+
"@atlaskit/primitives": "^8.2.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
|
},
|