@atlaskit/link-datasource 2.9.1 → 2.9.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 +10 -0
- package/dist/cjs/hooks/useDatasourceTableState.js +2 -0
- package/dist/cjs/ui/assets-modal/modal/index.js +2 -0
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +3 -1
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/index.js +2 -0
- package/dist/cjs/ui/confluence-search-modal/modal/ModalOld.js +3 -1
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +2 -0
- package/dist/cjs/ui/issue-like-table/index.js +56 -66
- package/dist/cjs/ui/issue-like-table/styled.js +25 -3
- package/dist/cjs/ui/issue-like-table/table-cell-content/index.js +54 -0
- package/dist/cjs/ui/issue-like-table/truncate-text-tag/index.js +32 -0
- package/dist/cjs/ui/jira-issues-modal/modal/ModalOld.js +3 -1
- package/dist/es2019/hooks/useDatasourceTableState.js +2 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +2 -0
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +3 -1
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/index.js +2 -0
- package/dist/es2019/ui/confluence-search-modal/modal/ModalOld.js +3 -1
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +2 -0
- package/dist/es2019/ui/issue-like-table/index.js +32 -52
- package/dist/es2019/ui/issue-like-table/styled.js +33 -0
- package/dist/es2019/ui/issue-like-table/table-cell-content/index.js +44 -0
- package/dist/es2019/ui/issue-like-table/truncate-text-tag/index.js +21 -0
- package/dist/es2019/ui/jira-issues-modal/modal/ModalOld.js +3 -1
- package/dist/esm/hooks/useDatasourceTableState.js +2 -0
- package/dist/esm/ui/assets-modal/modal/index.js +2 -0
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +3 -1
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/index.js +2 -0
- package/dist/esm/ui/confluence-search-modal/modal/ModalOld.js +3 -1
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +2 -0
- package/dist/esm/ui/issue-like-table/index.js +53 -61
- package/dist/esm/ui/issue-like-table/styled.js +24 -2
- package/dist/esm/ui/issue-like-table/table-cell-content/index.js +47 -0
- package/dist/esm/ui/issue-like-table/truncate-text-tag/index.js +21 -0
- package/dist/esm/ui/jira-issues-modal/modal/ModalOld.js +3 -1
- package/dist/types/hooks/useDatasourceTableState.d.ts +2 -0
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -0
- package/dist/types/ui/issue-like-table/index.d.ts +1 -17
- package/dist/types/ui/issue-like-table/styled.d.ts +4 -0
- package/dist/types/ui/issue-like-table/table-cell-content/index.d.ts +12 -0
- package/dist/types/ui/issue-like-table/truncate-text-tag/index.d.ts +6 -0
- package/dist/types/ui/issue-like-table/types.d.ts +20 -1
- package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +2 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +1 -17
- package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +4 -0
- package/dist/types-ts4.5/ui/issue-like-table/table-cell-content/index.d.ts +12 -0
- package/dist/types-ts4.5/ui/issue-like-table/truncate-text-tag/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +20 -1
- package/examples-helpers/buildIssueLikeTable.tsx +2 -0
- package/package.json +8 -8
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
4
|
+
import { useDatasourceItem } from '../../../state';
|
|
5
|
+
import { stringifyType } from '../render-type';
|
|
6
|
+
import { TruncateTextTag } from '../truncate-text-tag';
|
|
7
|
+
export var TableCellContent = function TableCellContent(_ref) {
|
|
8
|
+
var _rowData$columnKey;
|
|
9
|
+
var columnKey = _ref.columnKey,
|
|
10
|
+
columnType = _ref.columnType,
|
|
11
|
+
id = _ref.id,
|
|
12
|
+
renderItem = _ref.renderItem,
|
|
13
|
+
wrappedColumnKeys = _ref.wrappedColumnKeys;
|
|
14
|
+
var intl = useIntl();
|
|
15
|
+
var rowData = useDatasourceItem({
|
|
16
|
+
id: id
|
|
17
|
+
});
|
|
18
|
+
if (!rowData || !columnKey || !rowData[columnKey]) {
|
|
19
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Need to make sure we keep falsy values like 0 and '', as well as the boolean false.
|
|
23
|
+
var value = (_rowData$columnKey = rowData[columnKey]) === null || _rowData$columnKey === void 0 ? void 0 : _rowData$columnKey.data;
|
|
24
|
+
var values = Array.isArray(value) ? value : [value];
|
|
25
|
+
var renderedValues = renderItem({
|
|
26
|
+
type: columnType,
|
|
27
|
+
values: values
|
|
28
|
+
});
|
|
29
|
+
var stringifiedContent = values.map(function (value) {
|
|
30
|
+
return stringifyType({
|
|
31
|
+
type: columnType,
|
|
32
|
+
value: value
|
|
33
|
+
}, intl.formatMessage, intl.formatDate);
|
|
34
|
+
}).filter(function (value) {
|
|
35
|
+
return value !== '';
|
|
36
|
+
}).join(', ');
|
|
37
|
+
if (stringifiedContent && !(wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(columnKey))) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(Tooltip
|
|
39
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
40
|
+
, {
|
|
41
|
+
tag: TruncateTextTag,
|
|
42
|
+
content: stringifiedContent,
|
|
43
|
+
testId: "issues-table-cell-tooltip"
|
|
44
|
+
}, renderedValues);
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, renderedValues);
|
|
47
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
10
|
+
var truncateTextStyles = css({
|
|
11
|
+
overflow: 'hidden',
|
|
12
|
+
textOverflow: 'ellipsis',
|
|
13
|
+
whiteSpace: 'nowrap'
|
|
14
|
+
});
|
|
15
|
+
export var TruncateTextTag = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
16
|
+
return jsx("span", _extends({
|
|
17
|
+
css: truncateTextStyles
|
|
18
|
+
}, props, {
|
|
19
|
+
ref: ref
|
|
20
|
+
}), props.children);
|
|
21
|
+
});
|
|
@@ -129,6 +129,7 @@ export var PlainJiraIssuesConfigModalOld = function PlainJiraIssuesConfigModalOl
|
|
|
129
129
|
status = _useDatasourceTableSt.status,
|
|
130
130
|
onNextPage = _useDatasourceTableSt.onNextPage,
|
|
131
131
|
responseItems = _useDatasourceTableSt.responseItems,
|
|
132
|
+
responseItemIds = _useDatasourceTableSt.responseItemIds,
|
|
132
133
|
hasNextPage = _useDatasourceTableSt.hasNextPage,
|
|
133
134
|
columns = _useDatasourceTableSt.columns,
|
|
134
135
|
defaultVisibleColumnKeys = _useDatasourceTableSt.defaultVisibleColumnKeys,
|
|
@@ -366,6 +367,7 @@ export var PlainJiraIssuesConfigModalOld = function PlainJiraIssuesConfigModalOl
|
|
|
366
367
|
status: status,
|
|
367
368
|
columns: columns,
|
|
368
369
|
items: responseItems,
|
|
370
|
+
itemIds: responseItemIds,
|
|
369
371
|
hasNextPage: hasNextPage,
|
|
370
372
|
visibleColumnKeys: visibleColumnKeys || defaultVisibleColumnKeys,
|
|
371
373
|
onNextPage: handleOnNextPage,
|
|
@@ -377,7 +379,7 @@ export var PlainJiraIssuesConfigModalOld = function PlainJiraIssuesConfigModalOl
|
|
|
377
379
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
378
380
|
onWrappedColumnChange: fg('platform.linking-platform.datasource-word_wrap') ? onWrappedColumnChange : undefined
|
|
379
381
|
}));
|
|
380
|
-
}, [status, columns, responseItems, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, handleOnNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange, extensionKey, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange]);
|
|
382
|
+
}, [status, columns, responseItems, responseItemIds, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, handleOnNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange, extensionKey, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange]);
|
|
381
383
|
var renderCountModeContent = useCallback(function () {
|
|
382
384
|
var selectedJiraSiteUrl = selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url;
|
|
383
385
|
if (status === 'unauthorized') {
|
|
@@ -20,6 +20,8 @@ export interface DatasourceTableState {
|
|
|
20
20
|
reset: (options?: ResetOptions) => void;
|
|
21
21
|
/** Requests the available column schemas that can be displayed within the table */
|
|
22
22
|
loadDatasourceDetails: () => void;
|
|
23
|
+
/** Item ids to be hydrated from a store by consumers [NOTE: They must be in the same order as responseItems] */
|
|
24
|
+
responseItemIds: string[];
|
|
23
25
|
/** Items to be rendered within the table */
|
|
24
26
|
responseItems: DatasourceDataResponseItem[];
|
|
25
27
|
/** Indicates whether there is still more data that can be paginated */
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type Ref } from 'react';
|
|
6
1
|
import { jsx } from '@emotion/react';
|
|
7
2
|
import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
8
3
|
import { type IssueLikeDataTableViewProps } from './types';
|
|
@@ -13,17 +8,6 @@ export declare const scrollableContainerShadowsCssComponents: {
|
|
|
13
8
|
backgroundSize: string;
|
|
14
9
|
backgroundAttachment: string;
|
|
15
10
|
};
|
|
16
|
-
export interface RowType {
|
|
17
|
-
cells: Array<RowCellType>;
|
|
18
|
-
key?: string;
|
|
19
|
-
ref?: Ref<HTMLTableRowElement>;
|
|
20
|
-
}
|
|
21
|
-
export interface RowCellType {
|
|
22
|
-
key: string;
|
|
23
|
-
width?: number;
|
|
24
|
-
shouldTruncate?: boolean;
|
|
25
|
-
content?: React.ReactNode | string;
|
|
26
|
-
}
|
|
27
11
|
export declare const getOrderedColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
|
|
28
|
-
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => jsx.JSX.Element;
|
|
12
|
+
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, itemIds, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => jsx.JSX.Element;
|
|
29
13
|
export declare const EmptyState: ({ isCompact, testId }: import("./empty-state").Props) => jsx.JSX.Element;
|
|
@@ -18,3 +18,7 @@ export declare const TableHeading: import("@emotion/styled").StyledComponent<{
|
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
as?: import("react").ElementType<any> | undefined;
|
|
20
20
|
}, import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
|
|
21
|
+
export declare const TableCell: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type TableViewPropsRenderType } from '../types';
|
|
3
|
+
interface TableCellContentProps {
|
|
4
|
+
id: string;
|
|
5
|
+
columnKey: string | null;
|
|
6
|
+
columnType: string;
|
|
7
|
+
/** Used to retrieve cell content from the store */
|
|
8
|
+
renderItem: TableViewPropsRenderType;
|
|
9
|
+
wrappedColumnKeys: string[] | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const TableCellContent: ({ columnKey, columnType, id, renderItem, wrappedColumnKeys, }: TableCellContentProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Ref } from 'react';
|
|
2
2
|
import type { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType, DatasourceType } from '@atlaskit/linking-types';
|
|
3
3
|
import type { NextPageType } from '../../hooks/useDatasourceTableState';
|
|
4
4
|
export type DatasourceTypeWithOnlyValues = {
|
|
@@ -32,6 +32,7 @@ export interface IssueLikeDataTableViewProps {
|
|
|
32
32
|
hasNextPage: boolean;
|
|
33
33
|
status: DatasourceTableStatusType;
|
|
34
34
|
items: DatasourceDataResponseItem[];
|
|
35
|
+
itemIds: string[];
|
|
35
36
|
onNextPage: NextPageType;
|
|
36
37
|
onLoadDatasourceDetails: () => void;
|
|
37
38
|
/**
|
|
@@ -76,3 +77,21 @@ export interface IssueLikeDataTableViewProps {
|
|
|
76
77
|
*/
|
|
77
78
|
onWrappedColumnChange?: (key: string, shouldWrap: boolean) => void;
|
|
78
79
|
}
|
|
80
|
+
export interface HeaderRowCellType {
|
|
81
|
+
key: string;
|
|
82
|
+
width?: number;
|
|
83
|
+
shouldTruncate?: boolean;
|
|
84
|
+
content?: React.ReactNode | string;
|
|
85
|
+
}
|
|
86
|
+
export interface RowType {
|
|
87
|
+
cells: Array<RowCellType>;
|
|
88
|
+
key?: string;
|
|
89
|
+
ref?: Ref<HTMLTableRowElement>;
|
|
90
|
+
}
|
|
91
|
+
export interface RowCellType {
|
|
92
|
+
key: string;
|
|
93
|
+
type?: DatasourceType['type'];
|
|
94
|
+
width?: number;
|
|
95
|
+
shouldTruncate?: boolean;
|
|
96
|
+
content?: React.ReactNode | string;
|
|
97
|
+
}
|
|
@@ -20,6 +20,8 @@ export interface DatasourceTableState {
|
|
|
20
20
|
reset: (options?: ResetOptions) => void;
|
|
21
21
|
/** Requests the available column schemas that can be displayed within the table */
|
|
22
22
|
loadDatasourceDetails: () => void;
|
|
23
|
+
/** Item ids to be hydrated from a store by consumers [NOTE: They must be in the same order as responseItems] */
|
|
24
|
+
responseItemIds: string[];
|
|
23
25
|
/** Items to be rendered within the table */
|
|
24
26
|
responseItems: DatasourceDataResponseItem[];
|
|
25
27
|
/** Indicates whether there is still more data that can be paginated */
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type Ref } from 'react';
|
|
6
1
|
import { jsx } from '@emotion/react';
|
|
7
2
|
import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
8
3
|
import { type IssueLikeDataTableViewProps } from './types';
|
|
@@ -13,17 +8,6 @@ export declare const scrollableContainerShadowsCssComponents: {
|
|
|
13
8
|
backgroundSize: string;
|
|
14
9
|
backgroundAttachment: string;
|
|
15
10
|
};
|
|
16
|
-
export interface RowType {
|
|
17
|
-
cells: Array<RowCellType>;
|
|
18
|
-
key?: string;
|
|
19
|
-
ref?: Ref<HTMLTableRowElement>;
|
|
20
|
-
}
|
|
21
|
-
export interface RowCellType {
|
|
22
|
-
key: string;
|
|
23
|
-
width?: number;
|
|
24
|
-
shouldTruncate?: boolean;
|
|
25
|
-
content?: React.ReactNode | string;
|
|
26
|
-
}
|
|
27
11
|
export declare const getOrderedColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
|
|
28
|
-
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => jsx.JSX.Element;
|
|
12
|
+
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, itemIds, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => jsx.JSX.Element;
|
|
29
13
|
export declare const EmptyState: ({ isCompact, testId }: import("./empty-state").Props) => jsx.JSX.Element;
|
|
@@ -18,3 +18,7 @@ export declare const TableHeading: import("@emotion/styled").StyledComponent<{
|
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
as?: import("react").ElementType<any> | undefined;
|
|
20
20
|
}, import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
|
|
21
|
+
export declare const TableCell: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type TableViewPropsRenderType } from '../types';
|
|
3
|
+
interface TableCellContentProps {
|
|
4
|
+
id: string;
|
|
5
|
+
columnKey: string | null;
|
|
6
|
+
columnType: string;
|
|
7
|
+
/** Used to retrieve cell content from the store */
|
|
8
|
+
renderItem: TableViewPropsRenderType;
|
|
9
|
+
wrappedColumnKeys: string[] | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const TableCellContent: ({ columnKey, columnType, id, renderItem, wrappedColumnKeys, }: TableCellContentProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Ref } from 'react';
|
|
2
2
|
import type { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType, DatasourceType } from '@atlaskit/linking-types';
|
|
3
3
|
import type { NextPageType } from '../../hooks/useDatasourceTableState';
|
|
4
4
|
export type DatasourceTypeWithOnlyValues = {
|
|
@@ -32,6 +32,7 @@ export interface IssueLikeDataTableViewProps {
|
|
|
32
32
|
hasNextPage: boolean;
|
|
33
33
|
status: DatasourceTableStatusType;
|
|
34
34
|
items: DatasourceDataResponseItem[];
|
|
35
|
+
itemIds: string[];
|
|
35
36
|
onNextPage: NextPageType;
|
|
36
37
|
onLoadDatasourceDetails: () => void;
|
|
37
38
|
/**
|
|
@@ -76,3 +77,21 @@ export interface IssueLikeDataTableViewProps {
|
|
|
76
77
|
*/
|
|
77
78
|
onWrappedColumnChange?: (key: string, shouldWrap: boolean) => void;
|
|
78
79
|
}
|
|
80
|
+
export interface HeaderRowCellType {
|
|
81
|
+
key: string;
|
|
82
|
+
width?: number;
|
|
83
|
+
shouldTruncate?: boolean;
|
|
84
|
+
content?: React.ReactNode | string;
|
|
85
|
+
}
|
|
86
|
+
export interface RowType {
|
|
87
|
+
cells: Array<RowCellType>;
|
|
88
|
+
key?: string;
|
|
89
|
+
ref?: Ref<HTMLTableRowElement>;
|
|
90
|
+
}
|
|
91
|
+
export interface RowCellType {
|
|
92
|
+
key: string;
|
|
93
|
+
type?: DatasourceType['type'];
|
|
94
|
+
width?: number;
|
|
95
|
+
shouldTruncate?: boolean;
|
|
96
|
+
content?: React.ReactNode | string;
|
|
97
|
+
}
|
|
@@ -53,6 +53,7 @@ const ExampleBody = ({ isReadonly, canResizeColumns = true, canControlWrapping =
|
|
|
53
53
|
status,
|
|
54
54
|
onNextPage,
|
|
55
55
|
responseItems,
|
|
56
|
+
responseItemIds,
|
|
56
57
|
hasNextPage,
|
|
57
58
|
defaultVisibleColumnKeys,
|
|
58
59
|
columns,
|
|
@@ -83,6 +84,7 @@ const ExampleBody = ({ isReadonly, canResizeColumns = true, canControlWrapping =
|
|
|
83
84
|
<IssueLikeDataTableView
|
|
84
85
|
testId="link-datasource"
|
|
85
86
|
items={responseItems}
|
|
87
|
+
itemIds={responseItemIds}
|
|
86
88
|
onNextPage={onNextPage}
|
|
87
89
|
onLoadDatasourceDetails={loadDatasourceDetails}
|
|
88
90
|
hasNextPage={hasNextPage}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/adf-schema": "^40.3.0",
|
|
39
39
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
40
|
-
"@atlaskit/avatar": "^21.
|
|
40
|
+
"@atlaskit/avatar": "^21.12.0",
|
|
41
41
|
"@atlaskit/avatar-group": "^9.9.0",
|
|
42
42
|
"@atlaskit/badge": "^16.3.0",
|
|
43
43
|
"@atlaskit/button": "^19.1.0",
|
|
44
44
|
"@atlaskit/datetime-picker": "^13.7.0",
|
|
45
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
45
|
+
"@atlaskit/dropdown-menu": "^12.15.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
47
47
|
"@atlaskit/empty-state": "^7.9.0",
|
|
48
48
|
"@atlaskit/form": "^10.4.0",
|
|
49
49
|
"@atlaskit/heading": "^2.4.0",
|
|
50
|
-
"@atlaskit/icon": "^22.
|
|
50
|
+
"@atlaskit/icon": "^22.9.0",
|
|
51
51
|
"@atlaskit/icon-object": "^6.4.0",
|
|
52
52
|
"@atlaskit/image": "^1.3.0",
|
|
53
53
|
"@atlaskit/intl-messages-provider": "^1.0.0",
|
|
54
54
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
55
55
|
"@atlaskit/jql-editor": "^4.4.0",
|
|
56
56
|
"@atlaskit/jql-editor-autocomplete-rest": "^2.0.0",
|
|
57
|
-
"@atlaskit/link-client-extension": "^1.
|
|
58
|
-
"@atlaskit/linking-common": "^5.
|
|
57
|
+
"@atlaskit/link-client-extension": "^1.11.0",
|
|
58
|
+
"@atlaskit/linking-common": "^5.8.0",
|
|
59
59
|
"@atlaskit/linking-types": "^8.12.0",
|
|
60
60
|
"@atlaskit/logo": "^14.1.0",
|
|
61
61
|
"@atlaskit/lozenge": "^11.9.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
70
70
|
"@atlaskit/primitives": "^11.1.0",
|
|
71
71
|
"@atlaskit/select": "^17.11.0",
|
|
72
|
-
"@atlaskit/smart-card": "^27.
|
|
72
|
+
"@atlaskit/smart-card": "^27.12.0",
|
|
73
73
|
"@atlaskit/smart-user-picker": "6.10.0",
|
|
74
74
|
"@atlaskit/spinner": "^16.2.0",
|
|
75
75
|
"@atlaskit/tag": "^12.4.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@af/integration-testing": "*",
|
|
99
99
|
"@af/visual-regression": "*",
|
|
100
|
-
"@atlaskit/link-provider": "^1.
|
|
100
|
+
"@atlaskit/link-provider": "^1.14.0",
|
|
101
101
|
"@atlaskit/link-test-helpers": "^7.0.0",
|
|
102
102
|
"@atlaskit/ssr": "*",
|
|
103
103
|
"@atlaskit/visual-regression": "*",
|