@atlaskit/link-datasource 6.6.0 → 6.8.0
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 +28 -0
- package/dist/cjs/hooks/useDatasourceTableState.js +3 -3
- package/dist/cjs/state/actions/index.js +3 -3
- package/dist/cjs/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +5 -1
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +14 -0
- package/dist/cjs/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/cjs/ui/issue-like-table/index.js +142 -89
- package/dist/cjs/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/cjs/ui/issue-like-table/table-settings-menu/index.js +96 -0
- package/dist/cjs/ui/issue-like-table/table-settings-menu/messages.js +24 -0
- package/dist/es2019/hooks/useDatasourceTableState.js +1 -1
- package/dist/es2019/state/actions/index.js +1 -1
- package/dist/es2019/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +5 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +33 -17
- package/dist/es2019/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/es2019/ui/issue-like-table/index.js +53 -5
- package/dist/es2019/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/es2019/ui/issue-like-table/table-settings-menu/index.js +76 -0
- package/dist/es2019/ui/issue-like-table/table-settings-menu/messages.js +18 -0
- package/dist/esm/hooks/useDatasourceTableState.js +1 -1
- package/dist/esm/state/actions/index.js +1 -1
- package/dist/esm/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +5 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.js +14 -0
- package/dist/esm/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/esm/ui/issue-like-table/index.js +140 -87
- package/dist/esm/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/esm/ui/issue-like-table/table-settings-menu/index.js +87 -0
- package/dist/esm/ui/issue-like-table/table-settings-menu/messages.js +18 -0
- package/dist/types/state/actions/index.d.ts +1 -1
- package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +2 -2
- package/dist/types/ui/datasource-table-view/types.d.ts +1 -1
- package/dist/types/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/table-settings-menu/index.d.ts +8 -0
- package/dist/types/ui/issue-like-table/table-settings-menu/messages.d.ts +17 -0
- package/dist/types/ui/issue-like-table/types.d.ts +6 -0
- package/examples-helpers/buildAssetsIssuesTable.tsx +2 -0
- package/examples-helpers/buildConfluenceSearchTable.tsx +2 -0
- package/examples-helpers/buildIssueLikeTable.tsx +2 -0
- package/examples-helpers/buildJiraIssuesTable.tsx +2 -0
- package/examples-helpers/useAssetsTableProps.tsx +6 -0
- package/examples-helpers/useCommonTableProps.tsx +5 -2
- package/package.json +62 -58
- package/report.api.md +0 -191
|
@@ -2,5 +2,5 @@ import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/d
|
|
|
2
2
|
import { type Props } from './empty-state';
|
|
3
3
|
import { type IssueLikeDataTableViewProps } from './types';
|
|
4
4
|
export declare const getOrderedColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
|
|
5
|
-
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, itemIds, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, onColumnSort, wrappedColumnKeys, onWrappedColumnChange, sortState, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => JSX.Element;
|
|
5
|
+
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, itemIds, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, onColumnSort, wrappedColumnKeys, onWrappedColumnChange, onWrappedColumnsChange, sortState, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => JSX.Element;
|
|
6
6
|
export declare const EmptyState: ({ isCompact, testId }: Props) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type TableSettingsMenuProps = {
|
|
2
|
+
wrapTextSetting?: {
|
|
3
|
+
isChecked: boolean;
|
|
4
|
+
onChange: () => void;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const hasAvailableTableSettings: ({ wrapTextSetting }: TableSettingsMenuProps) => boolean;
|
|
8
|
+
export declare const TableSettingsMenu: (props: TableSettingsMenuProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const tableSettingsMenuMessages: {
|
|
2
|
+
moreActions: {
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
tableSettings: {
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
wrapTextOnAllColumns: {
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -67,6 +67,12 @@ export interface IssueLikeDataTableViewProps {
|
|
|
67
67
|
* @param shouldWrap Whenever column should wrap
|
|
68
68
|
*/
|
|
69
69
|
onWrappedColumnChange?: (key: string, shouldWrap: boolean) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Callback to be invoked whenever wrap is toggled for all currently visible columns.
|
|
72
|
+
*
|
|
73
|
+
* @param wrappedColumnKeys the full list of column keys that should wrap after the change
|
|
74
|
+
*/
|
|
75
|
+
onWrappedColumnsChange?: (wrappedColumnKeys: string[]) => void;
|
|
70
76
|
/**
|
|
71
77
|
* A function to define new or override existing render components.
|
|
72
78
|
* eg:
|
|
@@ -38,6 +38,7 @@ const AssetsTableView = ({
|
|
|
38
38
|
onColumnResize,
|
|
39
39
|
wrappedColumnKeys,
|
|
40
40
|
onWrappedColumnChange,
|
|
41
|
+
onWrappedColumnsChange,
|
|
41
42
|
} = useAssetsTableProps({
|
|
42
43
|
defaultColumnCustomSizes: {
|
|
43
44
|
people: 100,
|
|
@@ -53,6 +54,7 @@ const AssetsTableView = ({
|
|
|
53
54
|
columnCustomSizes={columnCustomSizes}
|
|
54
55
|
onColumnResize={onColumnResize}
|
|
55
56
|
onWrappedColumnChange={onWrappedColumnChange}
|
|
57
|
+
onWrappedColumnsChange={onWrappedColumnsChange}
|
|
56
58
|
wrappedColumnKeys={wrappedColumnKeys}
|
|
57
59
|
/>
|
|
58
60
|
);
|
|
@@ -35,6 +35,7 @@ const ConfluenceSearchTableView = ({ parameters }: ConfluenceSearchTableViewProp
|
|
|
35
35
|
onColumnResize,
|
|
36
36
|
wrappedColumnKeys,
|
|
37
37
|
onWrappedColumnChange,
|
|
38
|
+
onWrappedColumnsChange,
|
|
38
39
|
} = useCommonTableProps({
|
|
39
40
|
defaultColumnCustomSizes: {
|
|
40
41
|
people: 100,
|
|
@@ -50,6 +51,7 @@ const ConfluenceSearchTableView = ({ parameters }: ConfluenceSearchTableViewProp
|
|
|
50
51
|
columnCustomSizes={columnCustomSizes}
|
|
51
52
|
onColumnResize={onColumnResize}
|
|
52
53
|
onWrappedColumnChange={onWrappedColumnChange}
|
|
54
|
+
onWrappedColumnsChange={onWrappedColumnsChange}
|
|
53
55
|
wrappedColumnKeys={wrappedColumnKeys}
|
|
54
56
|
/>
|
|
55
57
|
);
|
|
@@ -83,6 +83,7 @@ const ExampleBody = ({
|
|
|
83
83
|
onColumnResize,
|
|
84
84
|
wrappedColumnKeys,
|
|
85
85
|
onWrappedColumnChange,
|
|
86
|
+
onWrappedColumnsChange,
|
|
86
87
|
} = useCommonTableProps({
|
|
87
88
|
defaultColumnCustomSizes: {
|
|
88
89
|
summary: 180,
|
|
@@ -121,6 +122,7 @@ const ExampleBody = ({
|
|
|
121
122
|
onColumnResize={isReadonly || !canResizeColumns ? undefined : onColumnResize}
|
|
122
123
|
columnCustomSizes={columnCustomSizes}
|
|
123
124
|
onWrappedColumnChange={canControlWrapping ? onWrappedColumnChange : undefined}
|
|
125
|
+
onWrappedColumnsChange={canControlWrapping ? onWrappedColumnsChange : undefined}
|
|
124
126
|
wrappedColumnKeys={wrappedColumnKeys}
|
|
125
127
|
/>
|
|
126
128
|
) : (
|
|
@@ -49,6 +49,7 @@ const JiraIssuesTableView = ({
|
|
|
49
49
|
onColumnResize,
|
|
50
50
|
wrappedColumnKeys,
|
|
51
51
|
onWrappedColumnChange,
|
|
52
|
+
onWrappedColumnsChange,
|
|
52
53
|
} = useCommonTableProps({
|
|
53
54
|
defaultColumnCustomSizes: {
|
|
54
55
|
people: 100,
|
|
@@ -71,6 +72,7 @@ const JiraIssuesTableView = ({
|
|
|
71
72
|
columnCustomSizes={columnCustomSizes}
|
|
72
73
|
onColumnResize={onColumnResize}
|
|
73
74
|
onWrappedColumnChange={onWrappedColumnChange}
|
|
75
|
+
onWrappedColumnsChange={onWrappedColumnsChange}
|
|
74
76
|
wrappedColumnKeys={wrappedColumnKeys}
|
|
75
77
|
scrollableContainerHeight={scrollableContainerHeight}
|
|
76
78
|
/>
|
|
@@ -14,6 +14,7 @@ export const useAssetsTableProps = (
|
|
|
14
14
|
| 'onVisibleColumnKeysChange'
|
|
15
15
|
| 'wrappedColumnKeys'
|
|
16
16
|
| 'onWrappedColumnChange'
|
|
17
|
+
| 'onWrappedColumnsChange'
|
|
17
18
|
| 'onColumnResize'
|
|
18
19
|
>
|
|
19
20
|
> &
|
|
@@ -46,6 +47,10 @@ export const useAssetsTableProps = (
|
|
|
46
47
|
[wrappedColumnKeys],
|
|
47
48
|
);
|
|
48
49
|
|
|
50
|
+
const onWrappedColumnsChange = useCallback((nextWrappedColumnKeys: string[]) => {
|
|
51
|
+
setWrappedColumnKeys(nextWrappedColumnKeys);
|
|
52
|
+
}, []);
|
|
53
|
+
|
|
49
54
|
return {
|
|
50
55
|
visibleColumnKeys,
|
|
51
56
|
onVisibleColumnKeysChange,
|
|
@@ -53,5 +58,6 @@ export const useAssetsTableProps = (
|
|
|
53
58
|
onColumnResize,
|
|
54
59
|
wrappedColumnKeys,
|
|
55
60
|
onWrappedColumnChange,
|
|
61
|
+
onWrappedColumnsChange,
|
|
56
62
|
};
|
|
57
63
|
};
|
|
@@ -19,14 +19,16 @@ export const useCommonTableProps = (
|
|
|
19
19
|
| 'onColumnResize'
|
|
20
20
|
>
|
|
21
21
|
> &
|
|
22
|
-
Pick<DatasourceTableViewProps, 'columnCustomSizes'> => {
|
|
22
|
+
Pick<DatasourceTableViewProps, 'columnCustomSizes' | 'onWrappedColumnsChange'> => {
|
|
23
23
|
const [visibleColumnKeys, onVisibleColumnKeysChange] = useState<string[]>(
|
|
24
24
|
props.visibleColumnKeys ?? defaultInitialVisibleJiraColumnKeys,
|
|
25
25
|
);
|
|
26
26
|
|
|
27
27
|
const { columnCustomSizes, onColumnResize } = useColumnResize(props.defaultColumnCustomSizes);
|
|
28
28
|
|
|
29
|
-
const { wrappedColumnKeys, onWrappedColumnChange } = useColumnWrapping(
|
|
29
|
+
const { wrappedColumnKeys, onWrappedColumnChange, onWrappedColumnsChange } = useColumnWrapping(
|
|
30
|
+
[],
|
|
31
|
+
);
|
|
30
32
|
|
|
31
33
|
return {
|
|
32
34
|
visibleColumnKeys,
|
|
@@ -35,5 +37,6 @@ export const useCommonTableProps = (
|
|
|
35
37
|
onColumnResize,
|
|
36
38
|
wrappedColumnKeys,
|
|
37
39
|
onWrappedColumnChange,
|
|
40
|
+
onWrappedColumnsChange,
|
|
38
41
|
};
|
|
39
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,64 +35,65 @@
|
|
|
35
35
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/adf-schema": "^57.
|
|
38
|
+
"@atlaskit/adf-schema": "^57.2.0",
|
|
39
39
|
"@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.201.0",
|
|
40
40
|
"@atlaskit/analytics-cross-product": "^2.1.0",
|
|
41
|
-
"@atlaskit/analytics-next": "^12.
|
|
41
|
+
"@atlaskit/analytics-next": "^12.5.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
43
|
-
"@atlaskit/avatar": "^27.
|
|
44
|
-
"@atlaskit/avatar-group": "^14.
|
|
45
|
-
"@atlaskit/badge": "^21.
|
|
46
|
-
"@atlaskit/button": "^25.
|
|
47
|
-
"@atlaskit/css": "^1.
|
|
48
|
-
"@atlaskit/datetime-picker": "^18.
|
|
49
|
-
"@atlaskit/dropdown-menu": "^18.
|
|
43
|
+
"@atlaskit/avatar": "^27.3.0",
|
|
44
|
+
"@atlaskit/avatar-group": "^14.3.0",
|
|
45
|
+
"@atlaskit/badge": "^21.2.0",
|
|
46
|
+
"@atlaskit/button": "^25.3.0",
|
|
47
|
+
"@atlaskit/css": "^1.1.0",
|
|
48
|
+
"@atlaskit/datetime-picker": "^18.5.0",
|
|
49
|
+
"@atlaskit/dropdown-menu": "^18.3.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
51
|
-
"@atlaskit/empty-state": "^12.
|
|
51
|
+
"@atlaskit/empty-state": "^12.2.0",
|
|
52
52
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
53
|
-
"@atlaskit/flag": "^18.
|
|
54
|
-
"@atlaskit/form": "^17.
|
|
55
|
-
"@atlaskit/heading": "^7.
|
|
56
|
-
"@atlaskit/icon": "^37.
|
|
57
|
-
"@atlaskit/image": "^5.
|
|
58
|
-
"@atlaskit/inline-edit": "^16.
|
|
59
|
-
"@atlaskit/intl-messages-provider": "^4.
|
|
60
|
-
"@atlaskit/jql-ast": "^4.
|
|
61
|
-
"@atlaskit/jql-editor": "^7.
|
|
62
|
-
"@atlaskit/jql-editor-autocomplete-rest": "^4.
|
|
63
|
-
"@atlaskit/layering": "^5.
|
|
53
|
+
"@atlaskit/flag": "^18.5.0",
|
|
54
|
+
"@atlaskit/form": "^17.2.0",
|
|
55
|
+
"@atlaskit/heading": "^7.2.0",
|
|
56
|
+
"@atlaskit/icon": "^37.6.0",
|
|
57
|
+
"@atlaskit/image": "^5.2.0",
|
|
58
|
+
"@atlaskit/inline-edit": "^16.4.0",
|
|
59
|
+
"@atlaskit/intl-messages-provider": "^4.3.0",
|
|
60
|
+
"@atlaskit/jql-ast": "^4.2.0",
|
|
61
|
+
"@atlaskit/jql-editor": "^7.7.0",
|
|
62
|
+
"@atlaskit/jql-editor-autocomplete-rest": "^4.6.0",
|
|
63
|
+
"@atlaskit/layering": "^5.2.0",
|
|
64
64
|
"@atlaskit/link": "^5.1.0",
|
|
65
|
-
"@atlaskit/link-client-extension": "^7.
|
|
66
|
-
"@atlaskit/link-provider": "^5.
|
|
67
|
-
"@atlaskit/linking-common": "^12.
|
|
68
|
-
"@atlaskit/linking-types": "^15.
|
|
69
|
-
"@atlaskit/logo": "^21.
|
|
70
|
-
"@atlaskit/lozenge": "^15.
|
|
71
|
-
"@atlaskit/modal-dialog": "^16.
|
|
65
|
+
"@atlaskit/link-client-extension": "^7.3.0",
|
|
66
|
+
"@atlaskit/link-provider": "^5.5.0",
|
|
67
|
+
"@atlaskit/linking-common": "^12.1.0",
|
|
68
|
+
"@atlaskit/linking-types": "^15.2.0",
|
|
69
|
+
"@atlaskit/logo": "^21.6.0",
|
|
70
|
+
"@atlaskit/lozenge": "^15.4.0",
|
|
71
|
+
"@atlaskit/modal-dialog": "^16.6.0",
|
|
72
72
|
"@atlaskit/object": "^2.3.0",
|
|
73
|
-
"@atlaskit/outbound-auth-flow-client": "^4.
|
|
74
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
75
|
-
"@atlaskit/platform-feature-flags-react": "^1.
|
|
76
|
-
"@atlaskit/popup": "^6.
|
|
77
|
-
"@atlaskit/pragmatic-drag-and-drop": "^3.
|
|
78
|
-
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.
|
|
79
|
-
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^3.
|
|
80
|
-
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.
|
|
81
|
-
"@atlaskit/primitives": "^22.
|
|
73
|
+
"@atlaskit/outbound-auth-flow-client": "^4.2.0",
|
|
74
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
75
|
+
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
76
|
+
"@atlaskit/popup": "^6.3.0",
|
|
77
|
+
"@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
|
|
78
|
+
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.2.0",
|
|
79
|
+
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^3.2.0",
|
|
80
|
+
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.2.0",
|
|
81
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
82
82
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
83
|
-
"@atlaskit/react-select": "^4.
|
|
84
|
-
"@atlaskit/select": "^22.
|
|
85
|
-
"@atlaskit/smart-card": "^45.
|
|
86
|
-
"@atlaskit/smart-user-picker": "^11.
|
|
87
|
-
"@atlaskit/spinner": "^20.
|
|
88
|
-
"@atlaskit/tag": "^15.
|
|
89
|
-
"@atlaskit/textfield": "^10.
|
|
90
|
-
"@atlaskit/theme": "^28.
|
|
91
|
-
"@atlaskit/
|
|
92
|
-
"@atlaskit/
|
|
93
|
-
"@atlaskit/
|
|
94
|
-
"@atlaskit/
|
|
95
|
-
"@atlaskit/
|
|
83
|
+
"@atlaskit/react-select": "^4.9.0",
|
|
84
|
+
"@atlaskit/select": "^22.11.0",
|
|
85
|
+
"@atlaskit/smart-card": "^45.19.0",
|
|
86
|
+
"@atlaskit/smart-user-picker": "^11.6.0",
|
|
87
|
+
"@atlaskit/spinner": "^20.4.0",
|
|
88
|
+
"@atlaskit/tag": "^15.8.0",
|
|
89
|
+
"@atlaskit/textfield": "^10.2.0",
|
|
90
|
+
"@atlaskit/theme": "^28.2.0",
|
|
91
|
+
"@atlaskit/toggle": "^17.3.0",
|
|
92
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
93
|
+
"@atlaskit/tooltip": "^24.3.0",
|
|
94
|
+
"@atlaskit/ufo": "^1.1.0",
|
|
95
|
+
"@atlaskit/visually-hidden": "^4.4.0",
|
|
96
|
+
"@atlaskit/width-detector": "^7.2.0",
|
|
96
97
|
"@babel/runtime": "^7.0.0",
|
|
97
98
|
"@compiled/react": "^1.0.2",
|
|
98
99
|
"@types/dompurify": "^2.2.3",
|
|
@@ -113,15 +114,15 @@
|
|
|
113
114
|
"devDependencies": {
|
|
114
115
|
"@af/integration-testing": "workspace:^",
|
|
115
116
|
"@af/visual-regression": "workspace:^",
|
|
116
|
-
"@atlaskit/code": "^19.
|
|
117
|
+
"@atlaskit/code": "^19.2.0",
|
|
117
118
|
"@atlaskit/json-ld-types": "^2.0.0",
|
|
118
|
-
"@atlaskit/link-test-helpers": "^11.
|
|
119
|
-
"@atlaskit/radio": "^10.
|
|
119
|
+
"@atlaskit/link-test-helpers": "^11.2.0",
|
|
120
|
+
"@atlaskit/radio": "^10.2.0",
|
|
120
121
|
"@atlaskit/ssr": "workspace:^",
|
|
121
|
-
"@atlaskit/textarea": "^10.
|
|
122
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
123
|
-
"@atlassian/a11y-playwright-testing": "^0.
|
|
124
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
122
|
+
"@atlaskit/textarea": "^10.2.0",
|
|
123
|
+
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
124
|
+
"@atlassian/a11y-playwright-testing": "^0.12.0",
|
|
125
|
+
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
125
126
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
126
127
|
"@faker-js/faker": "^7.5.0",
|
|
127
128
|
"@testing-library/dom": "^10.1.0",
|
|
@@ -196,6 +197,9 @@
|
|
|
196
197
|
"navx-5509-sllv-link-new-tab-hint": {
|
|
197
198
|
"type": "boolean"
|
|
198
199
|
},
|
|
200
|
+
"platform_lp_sllv_table_settings_menu": {
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
},
|
|
199
203
|
"astral_units_workspace_host_resolver": {
|
|
200
204
|
"type": "boolean"
|
|
201
205
|
},
|
package/report.api.md
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/link-datasource"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
/// <reference types="react" />
|
|
20
|
-
|
|
21
|
-
import { DatasourceAdf } from '@atlaskit/linking-common/types';
|
|
22
|
-
import { DatasourceAdfTableView } from '@atlaskit/linking-common/types';
|
|
23
|
-
import { DatasourceAdfView } from '@atlaskit/linking-common/types';
|
|
24
|
-
import { InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
25
|
-
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
26
|
-
|
|
27
|
-
// @public (undocumented)
|
|
28
|
-
export const ASSETS_LIST_OF_LINKS_DATASOURCE_ID = '361d618a-3c04-40ad-9b27-3c8ea6927020';
|
|
29
|
-
|
|
30
|
-
// @public (undocumented)
|
|
31
|
-
interface AssetsConfigModalProps {
|
|
32
|
-
// (undocumented)
|
|
33
|
-
datasourceId: string;
|
|
34
|
-
// (undocumented)
|
|
35
|
-
onCancel: () => void;
|
|
36
|
-
// (undocumented)
|
|
37
|
-
onInsert: (adf: AssetsDatasourceAdf | InlineCardAdf, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
38
|
-
// (undocumented)
|
|
39
|
-
parameters?: AssetsDatasourceParameters;
|
|
40
|
-
// (undocumented)
|
|
41
|
-
visibleColumnKeys?: string[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// @public (undocumented)
|
|
45
|
-
const AssetsConfigModalWithWrappers: (props: AssetsConfigModalProps) => JSX.Element;
|
|
46
|
-
export { AssetsConfigModalWithWrappers as AssetsConfigModal };
|
|
47
|
-
export { AssetsConfigModalWithWrappers as JSMAssetsConfigModal };
|
|
48
|
-
|
|
49
|
-
// @public (undocumented)
|
|
50
|
-
export interface AssetsDatasourceAdf extends DatasourceAdf {
|
|
51
|
-
// (undocumented)
|
|
52
|
-
attrs: {
|
|
53
|
-
url?: string;
|
|
54
|
-
datasource: {
|
|
55
|
-
id: string;
|
|
56
|
-
parameters: AssetsDatasourceParameters;
|
|
57
|
-
views: DatasourceAdfView[];
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// @public (undocumented)
|
|
63
|
-
export interface AssetsDatasourceParameters {
|
|
64
|
-
// (undocumented)
|
|
65
|
-
aql: string;
|
|
66
|
-
// (undocumented)
|
|
67
|
-
schemaId: string;
|
|
68
|
-
// (undocumented)
|
|
69
|
-
workspaceId: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export { DatasourceAdf };
|
|
73
|
-
|
|
74
|
-
export { DatasourceAdfTableView };
|
|
75
|
-
|
|
76
|
-
export { DatasourceAdfView };
|
|
77
|
-
|
|
78
|
-
// @public (undocumented)
|
|
79
|
-
export const DatasourceTableView: (props: DatasourceTableViewProps) => JSX.Element;
|
|
80
|
-
|
|
81
|
-
// @public (undocumented)
|
|
82
|
-
interface DatasourceTableViewProps {
|
|
83
|
-
// (undocumented)
|
|
84
|
-
columnCustomSizes?: {
|
|
85
|
-
[key: string]: number;
|
|
86
|
-
};
|
|
87
|
-
datasourceId: string;
|
|
88
|
-
// (undocumented)
|
|
89
|
-
fields?: string[];
|
|
90
|
-
// (undocumented)
|
|
91
|
-
onColumnResize?: (key: string, width: number) => void;
|
|
92
|
-
onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
|
|
93
|
-
parameters: object;
|
|
94
|
-
url?: string;
|
|
95
|
-
visibleColumnKeys?: string[];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// @public (undocumented)
|
|
99
|
-
export const JIRA_LIST_OF_LINKS_DATASOURCE_ID = 'd8b75300-dfda-4519-b6cd-e49abbd50401';
|
|
100
|
-
|
|
101
|
-
// @public (undocumented)
|
|
102
|
-
export type JiraIssueDatasourceParameters = {
|
|
103
|
-
cloudId: string;
|
|
104
|
-
} & JiraIssueDatasourceParametersQuery;
|
|
105
|
-
|
|
106
|
-
// @public (undocumented)
|
|
107
|
-
type JiraIssueDatasourceParametersQuery = XOR<
|
|
108
|
-
{
|
|
109
|
-
jql: string;
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
filter: string;
|
|
113
|
-
}
|
|
114
|
-
>;
|
|
115
|
-
|
|
116
|
-
// @public (undocumented)
|
|
117
|
-
export const JiraIssuesConfigModal: (props: JiraIssuesConfigModalProps) => JSX.Element;
|
|
118
|
-
|
|
119
|
-
// @public (undocumented)
|
|
120
|
-
interface JiraIssuesConfigModalProps {
|
|
121
|
-
// (undocumented)
|
|
122
|
-
columnCustomSizes?: {
|
|
123
|
-
[key: string]: number;
|
|
124
|
-
};
|
|
125
|
-
datasourceId: string;
|
|
126
|
-
onCancel: () => void;
|
|
127
|
-
onInsert: (
|
|
128
|
-
adf: InlineCardAdf | JiraIssuesDatasourceAdf,
|
|
129
|
-
analyticsEvent?: UIAnalyticsEvent,
|
|
130
|
-
) => void;
|
|
131
|
-
parameters?: JiraIssueDatasourceParameters;
|
|
132
|
-
url?: string;
|
|
133
|
-
viewMode?: JiraIssueViewModes;
|
|
134
|
-
visibleColumnKeys?: string[];
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// @public (undocumented)
|
|
138
|
-
export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
139
|
-
// (undocumented)
|
|
140
|
-
attrs: {
|
|
141
|
-
url?: string;
|
|
142
|
-
datasource: {
|
|
143
|
-
id: string;
|
|
144
|
-
parameters: JiraIssueDatasourceParameters;
|
|
145
|
-
views: [
|
|
146
|
-
{
|
|
147
|
-
type: 'table';
|
|
148
|
-
properties?: {
|
|
149
|
-
columns: {
|
|
150
|
-
key: string;
|
|
151
|
-
width?: number;
|
|
152
|
-
}[];
|
|
153
|
-
};
|
|
154
|
-
},
|
|
155
|
-
];
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// @public (undocumented)
|
|
161
|
-
type JiraIssueViewModes = 'count' | 'issue';
|
|
162
|
-
|
|
163
|
-
// @public (undocumented)
|
|
164
|
-
export const LazyLoadedDatasourceRenderFailedAnalyticsWrapper: (props: any) => JSX.Element;
|
|
165
|
-
|
|
166
|
-
// @public (undocumented)
|
|
167
|
-
type XOR<T1, T2> =
|
|
168
|
-
| (T1 & {
|
|
169
|
-
[k in Exclude<keyof T2, keyof T1>]?: never;
|
|
170
|
-
})
|
|
171
|
-
| (T2 & {
|
|
172
|
-
[k in Exclude<keyof T1, keyof T2>]?: never;
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
// (No @packageDocumentation comment for this package)
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
<!--SECTION END: Main Entry Types-->
|
|
179
|
-
|
|
180
|
-
### Peer Dependencies
|
|
181
|
-
|
|
182
|
-
<!--SECTION START: Peer Dependencies-->
|
|
183
|
-
|
|
184
|
-
```json
|
|
185
|
-
{
|
|
186
|
-
"react": "^16.8.0",
|
|
187
|
-
"react-intl": "npm:react-intl@^5.18.1"
|
|
188
|
-
}
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
<!--SECTION END: Peer Dependencies-->
|