@atlaskit/link-datasource 4.30.8 → 4.30.9
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
|
+
## 4.30.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`76f021290097e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76f021290097e) -
|
|
8
|
+
Remove the max height restriction for exporting data source table to PDF in Confluence. FG:
|
|
9
|
+
lp_disable_datasource_table_max_height_restriction
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 4.30.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -13,6 +13,7 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
15
15
|
var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
|
|
16
|
+
var _linkProvider = require("@atlaskit/link-provider");
|
|
16
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _analytics = require("../../analytics");
|
|
18
19
|
var _constants = require("../../analytics/constants");
|
|
@@ -37,6 +38,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
37
38
|
var containerStyles = null;
|
|
38
39
|
var DefaultScrollableContainerHeight = 590;
|
|
39
40
|
var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAnalytics(_ref) {
|
|
41
|
+
var _smartCardContext$val;
|
|
40
42
|
var datasourceId = _ref.datasourceId,
|
|
41
43
|
parameters = _ref.parameters,
|
|
42
44
|
visibleColumnKeys = _ref.visibleColumnKeys,
|
|
@@ -68,6 +70,12 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
68
70
|
providerName = _useDatasourceTableSt.providerName,
|
|
69
71
|
destinationObjectTypes = _useDatasourceTableSt.destinationObjectTypes,
|
|
70
72
|
authDetails = _useDatasourceTableSt.authDetails;
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
75
|
+
var smartCardContext = (0, _platformFeatureFlags.fg)('lp_disable_datasource_table_max_height_restriction') ?
|
|
76
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
77
|
+
(0, _linkProvider.useSmartCardContext)() : undefined;
|
|
78
|
+
var shouldNotRestrictHeight = (smartCardContext === null || smartCardContext === void 0 || (_smartCardContext$val = smartCardContext.value) === null || _smartCardContext$val === void 0 ? void 0 : _smartCardContext$val.shouldControlDataExport) && (0, _platformFeatureFlags.fg)('lp_disable_datasource_table_max_height_restriction');
|
|
71
79
|
var _useDatasourceAnalyti = (0, _analytics.useDatasourceAnalyticsEvents)(),
|
|
72
80
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
73
81
|
var experienceId = (0, _datasourceExperienceId.useDatasourceExperienceId)();
|
|
@@ -84,7 +92,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
84
92
|
if ((0, _platformFeatureFlags.fg)('navx-1334-datasource-deep-compare-params')) {
|
|
85
93
|
// parameters is an object that we want to track, and when something inside it changes we want to
|
|
86
94
|
// call effect callback. Normal useEffect will not do deep comparison, but only reference one.
|
|
87
|
-
// This hook will do deep comparison making sure we don
|
|
95
|
+
// This hook will do deep comparison making sure we don't call reset() when only reference to an object
|
|
88
96
|
// has changed but not the content.
|
|
89
97
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
90
98
|
(0, _useDeepEffect.useDeepEffect)(function () {
|
|
@@ -193,7 +201,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
193
201
|
onColumnResize: onColumnResize,
|
|
194
202
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
195
203
|
onWrappedColumnChange: onWrappedColumnChange,
|
|
196
|
-
scrollableContainerHeight: (0, _platformFeatureFlags.fg)('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
204
|
+
scrollableContainerHeight: shouldNotRestrictHeight ? undefined : (0, _platformFeatureFlags.fg)('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
197
205
|
extensionKey: extensionKey
|
|
198
206
|
}) : /*#__PURE__*/React.createElement(_emptyState.default, {
|
|
199
207
|
testId: "datasource-table-view-skeleton",
|
|
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useCallback, useEffect, useRef } from 'react';
|
|
6
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
8
|
+
import { useSmartCardContext } from '@atlaskit/link-provider';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
10
11
|
import { componentMetadata } from '../../analytics/constants';
|
|
@@ -39,6 +40,7 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
39
40
|
onWrappedColumnChange,
|
|
40
41
|
scrollableContainerHeight = DefaultScrollableContainerHeight
|
|
41
42
|
}) => {
|
|
43
|
+
var _smartCardContext$val;
|
|
42
44
|
const {
|
|
43
45
|
reset,
|
|
44
46
|
status,
|
|
@@ -59,6 +61,12 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
59
61
|
parameters,
|
|
60
62
|
fieldKeys: visibleColumnKeys
|
|
61
63
|
});
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
66
|
+
const smartCardContext = fg('lp_disable_datasource_table_max_height_restriction') ?
|
|
67
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
68
|
+
useSmartCardContext() : undefined;
|
|
69
|
+
const shouldNotRestrictHeight = (smartCardContext === null || smartCardContext === void 0 ? void 0 : (_smartCardContext$val = smartCardContext.value) === null || _smartCardContext$val === void 0 ? void 0 : _smartCardContext$val.shouldControlDataExport) && fg('lp_disable_datasource_table_max_height_restriction');
|
|
62
70
|
const {
|
|
63
71
|
fireEvent
|
|
64
72
|
} = useDatasourceAnalyticsEvents();
|
|
@@ -76,7 +84,7 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
76
84
|
if (fg('navx-1334-datasource-deep-compare-params')) {
|
|
77
85
|
// parameters is an object that we want to track, and when something inside it changes we want to
|
|
78
86
|
// call effect callback. Normal useEffect will not do deep comparison, but only reference one.
|
|
79
|
-
// This hook will do deep comparison making sure we don
|
|
87
|
+
// This hook will do deep comparison making sure we don't call reset() when only reference to an object
|
|
80
88
|
// has changed but not the content.
|
|
81
89
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
82
90
|
useDeepEffect(() => {
|
|
@@ -185,7 +193,7 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
185
193
|
onColumnResize: onColumnResize,
|
|
186
194
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
187
195
|
onWrappedColumnChange: onWrappedColumnChange,
|
|
188
|
-
scrollableContainerHeight: fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
196
|
+
scrollableContainerHeight: shouldNotRestrictHeight ? undefined : fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
189
197
|
extensionKey: extensionKey
|
|
190
198
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
191
199
|
testId: "datasource-table-view-skeleton",
|
|
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useCallback, useEffect, useRef } from 'react';
|
|
6
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
8
|
+
import { useSmartCardContext } from '@atlaskit/link-provider';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
10
11
|
import { componentMetadata } from '../../analytics/constants';
|
|
@@ -28,6 +29,7 @@ import { TableFooter } from '../table-footer';
|
|
|
28
29
|
var containerStyles = null;
|
|
29
30
|
var DefaultScrollableContainerHeight = 590;
|
|
30
31
|
var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAnalytics(_ref) {
|
|
32
|
+
var _smartCardContext$val;
|
|
31
33
|
var datasourceId = _ref.datasourceId,
|
|
32
34
|
parameters = _ref.parameters,
|
|
33
35
|
visibleColumnKeys = _ref.visibleColumnKeys,
|
|
@@ -59,6 +61,12 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
59
61
|
providerName = _useDatasourceTableSt.providerName,
|
|
60
62
|
destinationObjectTypes = _useDatasourceTableSt.destinationObjectTypes,
|
|
61
63
|
authDetails = _useDatasourceTableSt.authDetails;
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
66
|
+
var smartCardContext = fg('lp_disable_datasource_table_max_height_restriction') ?
|
|
67
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
68
|
+
useSmartCardContext() : undefined;
|
|
69
|
+
var shouldNotRestrictHeight = (smartCardContext === null || smartCardContext === void 0 || (_smartCardContext$val = smartCardContext.value) === null || _smartCardContext$val === void 0 ? void 0 : _smartCardContext$val.shouldControlDataExport) && fg('lp_disable_datasource_table_max_height_restriction');
|
|
62
70
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
63
71
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
64
72
|
var experienceId = useDatasourceExperienceId();
|
|
@@ -75,7 +83,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
75
83
|
if (fg('navx-1334-datasource-deep-compare-params')) {
|
|
76
84
|
// parameters is an object that we want to track, and when something inside it changes we want to
|
|
77
85
|
// call effect callback. Normal useEffect will not do deep comparison, but only reference one.
|
|
78
|
-
// This hook will do deep comparison making sure we don
|
|
86
|
+
// This hook will do deep comparison making sure we don't call reset() when only reference to an object
|
|
79
87
|
// has changed but not the content.
|
|
80
88
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
81
89
|
useDeepEffect(function () {
|
|
@@ -184,7 +192,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
184
192
|
onColumnResize: onColumnResize,
|
|
185
193
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
186
194
|
onWrappedColumnChange: onWrappedColumnChange,
|
|
187
|
-
scrollableContainerHeight: fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
195
|
+
scrollableContainerHeight: shouldNotRestrictHeight ? undefined : fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
|
|
188
196
|
extensionKey: extensionKey
|
|
189
197
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
190
198
|
testId: "datasource-table-view-skeleton",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.30.
|
|
3
|
+
"version": "4.30.9",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,11 +59,12 @@
|
|
|
59
59
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
60
60
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
61
61
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
62
|
-
"@atlaskit/jql-editor": "^5.
|
|
62
|
+
"@atlaskit/jql-editor": "^5.9.0",
|
|
63
63
|
"@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
|
|
64
64
|
"@atlaskit/layering": "^3.4.0",
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
66
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
67
|
+
"@atlaskit/link-provider": "^4.0.0",
|
|
67
68
|
"@atlaskit/linking-common": "^9.9.0",
|
|
68
69
|
"@atlaskit/linking-types": "^14.2.0",
|
|
69
70
|
"@atlaskit/logo": "^19.9.0",
|
|
@@ -110,7 +111,6 @@
|
|
|
110
111
|
"@af/integration-testing": "workspace:^",
|
|
111
112
|
"@af/visual-regression": "workspace:^",
|
|
112
113
|
"@atlaskit/json-ld-types": "^1.4.0",
|
|
113
|
-
"@atlaskit/link-provider": "^4.0.0",
|
|
114
114
|
"@atlaskit/link-test-helpers": "^8.5.0",
|
|
115
115
|
"@atlaskit/ssr": "workspace:^",
|
|
116
116
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
@@ -188,6 +188,9 @@
|
|
|
188
188
|
"jpd_confluence_date_fields_improvements": {
|
|
189
189
|
"type": "boolean"
|
|
190
190
|
},
|
|
191
|
+
"lp_disable_datasource_table_max_height_restriction": {
|
|
192
|
+
"type": "boolean"
|
|
193
|
+
},
|
|
191
194
|
"navx-2825-eslint-translation-fix-linking-platform": {
|
|
192
195
|
"type": "boolean"
|
|
193
196
|
}
|