@atlaskit/link-datasource 4.33.0 → 4.33.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 +13 -0
- package/dist/cjs/hooks/useDatasourceTableState.js +1 -5
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +1 -5
- package/dist/cjs/ui/issue-like-table/index.js +1 -4
- package/dist/es2019/hooks/useDatasourceTableState.js +1 -5
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +1 -5
- package/dist/es2019/ui/issue-like-table/index.compiled.css +1 -1
- package/dist/es2019/ui/issue-like-table/index.js +2 -5
- package/dist/esm/hooks/useDatasourceTableState.js +1 -5
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +1 -5
- package/dist/esm/ui/issue-like-table/index.js +1 -4
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.33.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.33.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ea409a683cd48`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ea409a683cd48) -
|
|
14
|
+
fg cleanup: lp_disable_datasource_table_max_height_restriction
|
|
15
|
+
|
|
3
16
|
## 4.33.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -13,7 +13,6 @@ var _react = require("react");
|
|
|
13
13
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
14
14
|
var _atlassianContext = require("@atlaskit/atlassian-context");
|
|
15
15
|
var _linkClientExtension = require("@atlaskit/link-client-extension");
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _analytics = require("../analytics");
|
|
18
17
|
var _state = require("../state");
|
|
19
18
|
var _actions = require("../state/actions");
|
|
@@ -38,10 +37,7 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
|
|
|
38
37
|
fireEvent: fireEvent
|
|
39
38
|
}),
|
|
40
39
|
discoverActions = _useDiscoverActions.discoverActions;
|
|
41
|
-
|
|
42
|
-
var isInPDFRender = (0, _platformFeatureFlags.fg)('lp_disable_datasource_table_max_height_restriction') ?
|
|
43
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
44
|
-
(0, _useIsInPDFRender.useIsInPDFRender)() : false;
|
|
40
|
+
var isInPDFRender = (0, _useIsInPDFRender.useIsInPDFRender)();
|
|
45
41
|
var idFieldCount = 1;
|
|
46
42
|
var keyFieldCount = 1;
|
|
47
43
|
var _useState = (0, _react.useState)([]),
|
|
@@ -69,11 +69,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
69
69
|
providerName = _useDatasourceTableSt.providerName,
|
|
70
70
|
destinationObjectTypes = _useDatasourceTableSt.destinationObjectTypes,
|
|
71
71
|
authDetails = _useDatasourceTableSt.authDetails;
|
|
72
|
-
|
|
73
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
74
|
-
var isInPDFRender = (0, _platformFeatureFlags.fg)('lp_disable_datasource_table_max_height_restriction') ?
|
|
75
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
76
|
-
(0, _useIsInPDFRender.useIsInPDFRender)() : false;
|
|
72
|
+
var isInPDFRender = (0, _useIsInPDFRender.useIsInPDFRender)();
|
|
77
73
|
var _useDatasourceAnalyti = (0, _analytics.useDatasourceAnalyticsEvents)(),
|
|
78
74
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
79
75
|
var experienceId = (0, _datasourceExperienceId.useDatasourceExperienceId)();
|
|
@@ -21,7 +21,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
21
21
|
var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
|
|
22
22
|
var _flag = require("@atlaskit/flag");
|
|
23
23
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
24
|
var _closestEdge = require("@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge");
|
|
26
25
|
var _reorderWithEdge = require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge");
|
|
27
26
|
var _pragmaticDragAndDropReactBeautifulDndAutoscroll = require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll");
|
|
@@ -215,9 +214,7 @@ var IssueLikeDataTableView = exports.IssueLikeDataTableView = function IssueLike
|
|
|
215
214
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
216
215
|
hasFullSchema = _useState4[0],
|
|
217
216
|
setHasFullSchema = _useState4[1];
|
|
218
|
-
var isInPDFRender = (0,
|
|
219
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
220
|
-
(0, _useIsInPDFRender.useIsInPDFRender)() : false;
|
|
217
|
+
var isInPDFRender = (0, _useIsInPDFRender.useIsInPDFRender)();
|
|
221
218
|
var isBottomOfTableVisibleRaw = (0, _useIsOnScreen.useIsOnScreen)(lastRowElement) && !isInPDFRender;
|
|
222
219
|
var containerRef = (0, _react.useRef)(null);
|
|
223
220
|
var _useState5 = (0, _react.useState)(function () {
|
|
@@ -2,7 +2,6 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
3
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
4
4
|
import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
7
6
|
import { useDatasourceActions } from '../state';
|
|
8
7
|
import { useDiscoverActions } from '../state/actions';
|
|
@@ -31,10 +30,7 @@ export const useDatasourceTableState = ({
|
|
|
31
30
|
captureError,
|
|
32
31
|
fireEvent
|
|
33
32
|
});
|
|
34
|
-
|
|
35
|
-
const isInPDFRender = fg('lp_disable_datasource_table_max_height_restriction') ?
|
|
36
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
37
|
-
useIsInPDFRender() : false;
|
|
33
|
+
const isInPDFRender = useIsInPDFRender();
|
|
38
34
|
const idFieldCount = 1;
|
|
39
35
|
const keyFieldCount = 1;
|
|
40
36
|
const [initialEmptyArray] = useState([]);
|
|
@@ -60,11 +60,7 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
60
60
|
parameters,
|
|
61
61
|
fieldKeys: visibleColumnKeys
|
|
62
62
|
});
|
|
63
|
-
|
|
64
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
65
|
-
const isInPDFRender = fg('lp_disable_datasource_table_max_height_restriction') ?
|
|
66
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
67
|
-
useIsInPDFRender() : false;
|
|
63
|
+
const isInPDFRender = useIsInPDFRender();
|
|
68
64
|
const {
|
|
69
65
|
fireEvent
|
|
70
66
|
} = useDatasourceAnalyticsEvents();
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
.ProseMirror .pm-table-wrapper>table thead ._19xw13hi:last-of-type{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,var(--ds-elevation-surface-current,#fff) 10%)}
|
|
5
5
|
.ProseMirror .pm-table-wrapper>table thead ._2eacidpf:last-of-type{border:0}
|
|
6
6
|
.ProseMirror .pm-table-wrapper>table thead ._aks5idpf{border:0}
|
|
7
|
-
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
8
7
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
8
|
+
._11c8rpcx{font:var(--ds-font-body-small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
9
9
|
._13xs13hi:last-of-type{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,var(--ds-elevation-surface-current,#fff) 10%)}
|
|
10
10
|
._19itidpf{border:0}
|
|
11
11
|
._1bqmidpf:last-of-type{border:0}
|
|
@@ -10,7 +10,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
10
10
|
import invariant from 'tiny-invariant';
|
|
11
11
|
import { FlagsProvider } from '@atlaskit/flag';
|
|
12
12
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
15
14
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
16
15
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll';
|
|
@@ -186,9 +185,7 @@ export const IssueLikeDataTableView = ({
|
|
|
186
185
|
const tableHeaderRowRef = useRef(null);
|
|
187
186
|
const [lastRowElement, setLastRowElement] = useState(null);
|
|
188
187
|
const [hasFullSchema, setHasFullSchema] = useState(false);
|
|
189
|
-
const isInPDFRender =
|
|
190
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
191
|
-
useIsInPDFRender() : false;
|
|
188
|
+
const isInPDFRender = useIsInPDFRender();
|
|
192
189
|
const isBottomOfTableVisibleRaw = useIsOnScreen(lastRowElement) && !isInPDFRender;
|
|
193
190
|
const containerRef = useRef(null);
|
|
194
191
|
const [orderedColumns, setOrderedColumns] = useState(() => getOrderedColumns([...columns], [...visibleColumnKeys]));
|
|
@@ -450,7 +447,7 @@ export const IssueLikeDataTableView = ({
|
|
|
450
447
|
testId: 'datasource-header-content'
|
|
451
448
|
}, /*#__PURE__*/React.createElement("span", {
|
|
452
449
|
id: getFieldLabelById(key),
|
|
453
|
-
className: ax(["
|
|
450
|
+
className: ax(["_11c8rpcx _k48p1wq8"])
|
|
454
451
|
}, content));
|
|
455
452
|
const isHeadingOutsideButton = !isEditable || !onWrappedColumnChange;
|
|
456
453
|
if (isHeadingOutsideButton) {
|
|
@@ -6,7 +6,6 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
6
6
|
import isEqual from 'lodash/isEqual';
|
|
7
7
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
8
8
|
import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
11
10
|
import { useDatasourceActions } from '../state';
|
|
12
11
|
import { useDiscoverActions } from '../state/actions';
|
|
@@ -31,10 +30,7 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
31
30
|
fireEvent: fireEvent
|
|
32
31
|
}),
|
|
33
32
|
discoverActions = _useDiscoverActions.discoverActions;
|
|
34
|
-
|
|
35
|
-
var isInPDFRender = fg('lp_disable_datasource_table_max_height_restriction') ?
|
|
36
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
37
|
-
useIsInPDFRender() : false;
|
|
33
|
+
var isInPDFRender = useIsInPDFRender();
|
|
38
34
|
var idFieldCount = 1;
|
|
39
35
|
var keyFieldCount = 1;
|
|
40
36
|
var _useState = useState([]),
|
|
@@ -60,11 +60,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
60
60
|
providerName = _useDatasourceTableSt.providerName,
|
|
61
61
|
destinationObjectTypes = _useDatasourceTableSt.destinationObjectTypes,
|
|
62
62
|
authDetails = _useDatasourceTableSt.authDetails;
|
|
63
|
-
|
|
64
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
65
|
-
var isInPDFRender = fg('lp_disable_datasource_table_max_height_restriction') ?
|
|
66
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
67
|
-
useIsInPDFRender() : false;
|
|
63
|
+
var isInPDFRender = useIsInPDFRender();
|
|
68
64
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
69
65
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
70
66
|
var experienceId = useDatasourceExperienceId();
|
|
@@ -22,7 +22,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
22
22
|
import invariant from 'tiny-invariant';
|
|
23
23
|
import { FlagsProvider } from '@atlaskit/flag';
|
|
24
24
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
27
26
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
28
27
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll';
|
|
@@ -208,9 +207,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
208
207
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
209
208
|
hasFullSchema = _useState4[0],
|
|
210
209
|
setHasFullSchema = _useState4[1];
|
|
211
|
-
var isInPDFRender =
|
|
212
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
213
|
-
useIsInPDFRender() : false;
|
|
210
|
+
var isInPDFRender = useIsInPDFRender();
|
|
214
211
|
var isBottomOfTableVisibleRaw = useIsOnScreen(lastRowElement) && !isInPDFRender;
|
|
215
212
|
var containerRef = useRef(null);
|
|
216
213
|
var _useState5 = useState(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.33.
|
|
3
|
+
"version": "4.33.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
78
78
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
|
|
79
79
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
80
|
-
"@atlaskit/primitives": "^
|
|
80
|
+
"@atlaskit/primitives": "^18.0.0",
|
|
81
81
|
"@atlaskit/react-select": "^3.13.0",
|
|
82
82
|
"@atlaskit/select": "^21.7.0",
|
|
83
83
|
"@atlaskit/smart-card": "^43.23.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@atlaskit/tag": "^14.3.0",
|
|
87
87
|
"@atlaskit/textfield": "^8.2.0",
|
|
88
88
|
"@atlaskit/theme": "^21.0.0",
|
|
89
|
-
"@atlaskit/tokens": "^
|
|
89
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
90
90
|
"@atlaskit/tooltip": "^20.14.0",
|
|
91
91
|
"@atlaskit/ufo": "^0.4.0",
|
|
92
92
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -185,9 +185,6 @@
|
|
|
185
185
|
"jpd_confluence_date_fields_improvements": {
|
|
186
186
|
"type": "boolean"
|
|
187
187
|
},
|
|
188
|
-
"lp_disable_datasource_table_max_height_restriction": {
|
|
189
|
-
"type": "boolean"
|
|
190
|
-
},
|
|
191
188
|
"platform_navx_sllv_dropdown_escape_and_focus_fix": {
|
|
192
189
|
"type": "boolean"
|
|
193
190
|
},
|