@atlaskit/link-datasource 4.32.0 → 4.32.1
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 +8 -0
- package/dist/cjs/ui/issue-like-table/edit-type/icon/index.js +1 -0
- package/dist/cjs/ui/issue-like-table/edit-type/status/index.js +1 -0
- package/dist/cjs/ui/issue-like-table/edit-type/user/index.js +1 -0
- package/dist/es2019/ui/issue-like-table/edit-type/icon/index.js +1 -0
- package/dist/es2019/ui/issue-like-table/edit-type/status/index.js +1 -0
- package/dist/es2019/ui/issue-like-table/edit-type/user/index.js +1 -0
- package/dist/esm/ui/issue-like-table/edit-type/icon/index.js +1 -0
- package/dist/esm/ui/issue-like-table/edit-type/status/index.js +1 -0
- package/dist/esm/ui/issue-like-table/edit-type/user/index.js +1 -0
- package/dist/types/ui/issue-like-table/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +1 -1
- package/examples-helpers/buildIssueLikeTable.tsx +5 -8
- package/examples-helpers/fakeModalDialogContainer.tsx +28 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.32.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1d8c8a19192b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1d8c8a19192b2) -
|
|
8
|
+
[ux] For Jira inlne editing dropdown (status, assignee) are now show over the edge of scrallable
|
|
9
|
+
table. Behind FG platform_navx_sllv_j2ws_dropdown_for_single_row
|
|
10
|
+
|
|
3
11
|
## 4.32.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -48,6 +48,7 @@ var IconEditType = function IconEditType(props) {
|
|
|
48
48
|
return /*#__PURE__*/_react.default.createElement(_layering.Layering, {
|
|
49
49
|
isDisabled: false
|
|
50
50
|
}, /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, (0, _utils.getCleanedSelectProps)(props), {
|
|
51
|
+
menuPortalTarget: (0, _platformFeatureFlags.fg)('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
51
52
|
autoFocus: true,
|
|
52
53
|
blurInputOnSelect: true,
|
|
53
54
|
defaultMenuIsOpen: true
|
|
@@ -48,6 +48,7 @@ var StatusEditType = function StatusEditType(props) {
|
|
|
48
48
|
return /*#__PURE__*/_react.default.createElement(_layering.Layering, {
|
|
49
49
|
isDisabled: false
|
|
50
50
|
}, /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, (0, _utils.getCleanedSelectProps)(props), {
|
|
51
|
+
menuPortalTarget: (0, _platformFeatureFlags.fg)('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
51
52
|
autoFocus: true,
|
|
52
53
|
options: options,
|
|
53
54
|
defaultMenuIsOpen: true,
|
|
@@ -78,6 +78,7 @@ var UserEditType = function UserEditType(props) {
|
|
|
78
78
|
return /*#__PURE__*/_react.default.createElement(_layering.Layering, {
|
|
79
79
|
isDisabled: false
|
|
80
80
|
}, /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, (0, _utils.getCleanedSelectProps)(props), {
|
|
81
|
+
menuPortalTarget: (0, _platformFeatureFlags.fg)('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
81
82
|
autoFocus: true,
|
|
82
83
|
defaultMenuIsOpen: true,
|
|
83
84
|
blurInputOnSelect: true,
|
|
@@ -42,6 +42,7 @@ const IconEditType = props => {
|
|
|
42
42
|
return /*#__PURE__*/React.createElement(Layering, {
|
|
43
43
|
isDisabled: false
|
|
44
44
|
}, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
|
|
45
|
+
menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
45
46
|
autoFocus: true,
|
|
46
47
|
blurInputOnSelect: true,
|
|
47
48
|
defaultMenuIsOpen: true
|
|
@@ -42,6 +42,7 @@ const StatusEditType = props => {
|
|
|
42
42
|
return /*#__PURE__*/React.createElement(Layering, {
|
|
43
43
|
isDisabled: false
|
|
44
44
|
}, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
|
|
45
|
+
menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
45
46
|
autoFocus: true,
|
|
46
47
|
options: options,
|
|
47
48
|
defaultMenuIsOpen: true,
|
|
@@ -63,6 +63,7 @@ const UserEditType = props => {
|
|
|
63
63
|
return /*#__PURE__*/React.createElement(Layering, {
|
|
64
64
|
isDisabled: false
|
|
65
65
|
}, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
|
|
66
|
+
menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
66
67
|
autoFocus: true,
|
|
67
68
|
defaultMenuIsOpen: true,
|
|
68
69
|
blurInputOnSelect: true,
|
|
@@ -39,6 +39,7 @@ var IconEditType = function IconEditType(props) {
|
|
|
39
39
|
return /*#__PURE__*/React.createElement(Layering, {
|
|
40
40
|
isDisabled: false
|
|
41
41
|
}, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
|
|
42
|
+
menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
42
43
|
autoFocus: true,
|
|
43
44
|
blurInputOnSelect: true,
|
|
44
45
|
defaultMenuIsOpen: true
|
|
@@ -39,6 +39,7 @@ var StatusEditType = function StatusEditType(props) {
|
|
|
39
39
|
return /*#__PURE__*/React.createElement(Layering, {
|
|
40
40
|
isDisabled: false
|
|
41
41
|
}, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
|
|
42
|
+
menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
42
43
|
autoFocus: true,
|
|
43
44
|
options: options,
|
|
44
45
|
defaultMenuIsOpen: true,
|
|
@@ -69,6 +69,7 @@ var UserEditType = function UserEditType(props) {
|
|
|
69
69
|
return /*#__PURE__*/React.createElement(Layering, {
|
|
70
70
|
isDisabled: false
|
|
71
71
|
}, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
|
|
72
|
+
menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
|
|
72
73
|
autoFocus: true,
|
|
73
74
|
defaultMenuIsOpen: true,
|
|
74
75
|
blurInputOnSelect: true,
|
|
@@ -73,7 +73,7 @@ export interface IssueLikeDataTableViewProps {
|
|
|
73
73
|
renderItem?: TableViewPropsRenderType;
|
|
74
74
|
/**
|
|
75
75
|
* If this number is set it will restrict (max-height) maximum size of the component AND make main container a scrollable container.
|
|
76
|
-
* It this number is
|
|
76
|
+
* It this number is 0 it will not restrict height and not make container scrollable.
|
|
77
77
|
*/
|
|
78
78
|
scrollableContainerHeight?: number;
|
|
79
79
|
status: DatasourceTableStatusType;
|
|
@@ -73,7 +73,7 @@ export interface IssueLikeDataTableViewProps {
|
|
|
73
73
|
renderItem?: TableViewPropsRenderType;
|
|
74
74
|
/**
|
|
75
75
|
* If this number is set it will restrict (max-height) maximum size of the component AND make main container a scrollable container.
|
|
76
|
-
* It this number is
|
|
76
|
+
* It this number is 0 it will not restrict height and not make container scrollable.
|
|
77
77
|
*/
|
|
78
78
|
scrollableContainerHeight?: number;
|
|
79
79
|
status: DatasourceTableStatusType;
|
|
@@ -23,16 +23,12 @@ import { useCommonTableProps } from './useCommonTableProps';
|
|
|
23
23
|
type Props = {
|
|
24
24
|
canControlWrapping?: boolean;
|
|
25
25
|
canResizeColumns?: boolean;
|
|
26
|
+
cloudId?: string;
|
|
26
27
|
forceLoading?: boolean;
|
|
27
28
|
isReadonly?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Use infinity for an infinite delay (promise never resolves or rejects)
|
|
30
|
-
* Default is 600ms
|
|
31
|
-
*/
|
|
32
|
-
mockExecutionDelay?: number;
|
|
33
29
|
skipIntl?: boolean;
|
|
34
30
|
visibleColumnKeys?: string[];
|
|
35
|
-
};
|
|
31
|
+
} & Parameters<typeof mockDatasourceFetchRequests>[0];
|
|
36
32
|
|
|
37
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
38
34
|
const TableViewWrapper = styled.div({
|
|
@@ -50,13 +46,14 @@ const ExampleBody = ({
|
|
|
50
46
|
forceLoading = false,
|
|
51
47
|
visibleColumnKeys: overrideVisibleColumnKeys,
|
|
52
48
|
mockExecutionDelay = 600,
|
|
49
|
+
cloudId,
|
|
53
50
|
}: Props) => {
|
|
54
51
|
const parameters = useMemo<JiraIssueDatasourceParameters>(
|
|
55
52
|
() => ({
|
|
56
|
-
cloudId: 'some-cloud-id',
|
|
53
|
+
cloudId: cloudId ?? 'some-cloud-id',
|
|
57
54
|
jql: 'some-jql',
|
|
58
55
|
}),
|
|
59
|
-
[],
|
|
56
|
+
[cloudId],
|
|
60
57
|
);
|
|
61
58
|
|
|
62
59
|
useEffect(() => {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { cssMap, cx } from '@atlaskit/css';
|
|
4
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
6
|
+
|
|
7
|
+
const styles = cssMap({
|
|
8
|
+
tableWrapper: {
|
|
9
|
+
marginInline: 'auto',
|
|
10
|
+
marginTop: token('space.200'),
|
|
11
|
+
width: '90%',
|
|
12
|
+
borderRadius: token('radius.large'),
|
|
13
|
+
borderWidth: token('border.width'),
|
|
14
|
+
borderStyle: 'solid',
|
|
15
|
+
borderColor: token('color.border'),
|
|
16
|
+
},
|
|
17
|
+
hasOverflow: {
|
|
18
|
+
overflow: 'hidden',
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const FakeModalDialogContainer = ({ children, hasOverflow = true }: { children: React.ReactNode, hasOverflow?: boolean }): React.JSX.Element => {
|
|
23
|
+
return (
|
|
24
|
+
<Box xcss={cx(styles.tableWrapper, hasOverflow && styles.hasOverflow)}>
|
|
25
|
+
{children}
|
|
26
|
+
</Box>
|
|
27
|
+
);
|
|
28
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.32.
|
|
3
|
+
"version": "4.32.1",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -186,6 +186,9 @@
|
|
|
186
186
|
},
|
|
187
187
|
"lp_disable_datasource_table_max_height_restriction": {
|
|
188
188
|
"type": "boolean"
|
|
189
|
+
},
|
|
190
|
+
"platform_navx_sllv_j2ws_dropdown_for_single_row": {
|
|
191
|
+
"type": "boolean"
|
|
189
192
|
}
|
|
190
193
|
},
|
|
191
194
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/9c893299-a527-4457-9b46-f3bc4c828766"
|