@atlaskit/link-datasource 2.5.5 → 2.5.7
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 +17 -0
- package/dist/cjs/ui/common/modal/datasource-context/DatasourceContext.js +18 -0
- package/dist/cjs/ui/common/modal/datasource-context/DatasourceContextProvider.js +35 -0
- package/dist/cjs/ui/common/modal/search-count/index.js +40 -9
- package/dist/cjs/ui/confluence-search-modal/modal/ModalOld.js +451 -0
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +18 -23
- package/dist/cjs/ui/datasources-table-in-modal-preview/index.js +26 -0
- package/dist/cjs/ui/table-footer/index.js +10 -2
- package/dist/es2019/ui/common/modal/datasource-context/DatasourceContext.js +9 -0
- package/dist/es2019/ui/common/modal/datasource-context/DatasourceContextProvider.js +27 -0
- package/dist/es2019/ui/common/modal/search-count/index.js +34 -2
- package/dist/es2019/ui/confluence-search-modal/modal/ModalOld.js +426 -0
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +33 -37
- package/dist/es2019/ui/datasources-table-in-modal-preview/index.js +20 -0
- package/dist/es2019/ui/table-footer/index.js +7 -2
- package/dist/esm/ui/common/modal/datasource-context/DatasourceContext.js +9 -0
- package/dist/esm/ui/common/modal/datasource-context/DatasourceContextProvider.js +26 -0
- package/dist/esm/ui/common/modal/search-count/index.js +40 -9
- package/dist/esm/ui/confluence-search-modal/modal/ModalOld.js +447 -0
- package/dist/esm/ui/confluence-search-modal/modal/index.js +19 -24
- package/dist/esm/ui/datasources-table-in-modal-preview/index.js +19 -0
- package/dist/esm/ui/table-footer/index.js +7 -2
- package/dist/types/ui/common/modal/datasource-context/DatasourceContext.d.ts +11 -0
- package/dist/types/ui/common/modal/datasource-context/DatasourceContextProvider.d.ts +10 -0
- package/dist/types/ui/common/modal/search-count/index.d.ts +5 -0
- package/dist/types/ui/confluence-search-modal/modal/ModalOld.d.ts +3 -0
- package/dist/types/ui/datasources-table-in-modal-preview/index.d.ts +20 -0
- package/dist/types-ts4.5/ui/common/modal/datasource-context/DatasourceContext.d.ts +11 -0
- package/dist/types-ts4.5/ui/common/modal/datasource-context/DatasourceContextProvider.d.ts +10 -0
- package/dist/types-ts4.5/ui/common/modal/search-count/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/confluence-search-modal/modal/ModalOld.d.ts +3 -0
- package/dist/types-ts4.5/ui/datasources-table-in-modal-preview/index.d.ts +20 -0
- package/package.json +11 -5
|
@@ -9,10 +9,11 @@ import styled from '@emotion/styled';
|
|
|
9
9
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
10
10
|
import Button from '@atlaskit/button';
|
|
11
11
|
import RefreshIcon from '@atlaskit/icon/glyph/refresh';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { Flex } from '@atlaskit/primitives';
|
|
13
14
|
import { N0, N40, N90 } from '@atlaskit/theme/colors';
|
|
14
15
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
15
|
-
import TableSearchCount from '../common/modal/search-count';
|
|
16
|
+
import TableSearchCount, { AssetsItemCount } from '../common/modal/search-count';
|
|
16
17
|
import { footerMessages } from './messages';
|
|
17
18
|
import { PoweredByJSMAssets } from './powered-by-jsm-assets';
|
|
18
19
|
import { SyncInfo } from './sync-info';
|
|
@@ -69,7 +70,11 @@ export var TableFooter = function TableFooter(_ref) {
|
|
|
69
70
|
// ensure correct positioning since 'justify-content: space-between' is used).
|
|
70
71
|
return onRefresh || showItemCount ? jsx(FooterWrapper, {
|
|
71
72
|
"data-testid": "table-footer"
|
|
72
|
-
}, jsx(TopBorderWrapper, null, showItemCount && jsx(Flex, null, jsx(
|
|
73
|
+
}, jsx(TopBorderWrapper, null, showItemCount && jsx(Flex, null, datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID && fg('platform.linking-platform.datasource.limit-total-results_8wqcd') ? jsx(AssetsItemCount, {
|
|
74
|
+
searchCount: itemCount,
|
|
75
|
+
url: url,
|
|
76
|
+
testId: "item-count"
|
|
77
|
+
}) : jsx(TableSearchCount, {
|
|
73
78
|
searchCount: itemCount,
|
|
74
79
|
url: url,
|
|
75
80
|
prefixTextType: "item",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ColumnSizesMap } from '../../../issue-like-table/types';
|
|
3
|
+
type DatasourceContextStore = {
|
|
4
|
+
columnCustomSizes?: ColumnSizesMap;
|
|
5
|
+
onColumnResize: (key: string, width: number) => void;
|
|
6
|
+
wrappedColumnKeys?: string[];
|
|
7
|
+
onWrappedColumnChange: (key: string, isWrapped: boolean) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const DatasourceContext: React.Context<DatasourceContextStore | null>;
|
|
10
|
+
export declare const useDatasourceContext: () => DatasourceContextStore;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ColumnSizesMap } from '../../../issue-like-table/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
initialColumnCustomSizes?: ColumnSizesMap | undefined;
|
|
5
|
+
initialWrappedColumnKeys?: string[] | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare const DatasourceContextProvider: ({ children, initialColumnCustomSizes, initialWrappedColumnKeys, }: Props & {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare const AssetsItemCount: ({ searchCount, url, testId, }: {
|
|
3
|
+
searchCount: number;
|
|
4
|
+
url: string | undefined;
|
|
5
|
+
testId: string;
|
|
6
|
+
}) => JSX.Element;
|
|
2
7
|
interface TableSearchCountProps {
|
|
3
8
|
url?: string;
|
|
4
9
|
prefixTextType: 'issue' | 'result' | 'item';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
3
|
+
import type { NextPageType } from '../../hooks/useDatasourceTableState';
|
|
4
|
+
import { type TableViewPropsRenderType } from '../issue-like-table/types';
|
|
5
|
+
export interface DatasourcesTableProps {
|
|
6
|
+
testId?: string;
|
|
7
|
+
extensionKey?: string | null;
|
|
8
|
+
columns: DatasourceResponseSchemaProperty[];
|
|
9
|
+
visibleColumnKeys: string[];
|
|
10
|
+
hasNextPage: boolean;
|
|
11
|
+
status: DatasourceTableStatusType;
|
|
12
|
+
items: DatasourceDataResponseItem[];
|
|
13
|
+
onNextPage: NextPageType;
|
|
14
|
+
onLoadDatasourceDetails: () => void;
|
|
15
|
+
renderItem?: TableViewPropsRenderType;
|
|
16
|
+
onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
|
|
17
|
+
scrollableContainerHeight?: number;
|
|
18
|
+
}
|
|
19
|
+
declare const Table: (props: DatasourcesTableProps) => JSX.Element;
|
|
20
|
+
export default Table;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ColumnSizesMap } from '../../../issue-like-table/types';
|
|
3
|
+
type DatasourceContextStore = {
|
|
4
|
+
columnCustomSizes?: ColumnSizesMap;
|
|
5
|
+
onColumnResize: (key: string, width: number) => void;
|
|
6
|
+
wrappedColumnKeys?: string[];
|
|
7
|
+
onWrappedColumnChange: (key: string, isWrapped: boolean) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const DatasourceContext: React.Context<DatasourceContextStore | null>;
|
|
10
|
+
export declare const useDatasourceContext: () => DatasourceContextStore;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ColumnSizesMap } from '../../../issue-like-table/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
initialColumnCustomSizes?: ColumnSizesMap | undefined;
|
|
5
|
+
initialWrappedColumnKeys?: string[] | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare const DatasourceContextProvider: ({ children, initialColumnCustomSizes, initialWrappedColumnKeys, }: Props & {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare const AssetsItemCount: ({ searchCount, url, testId, }: {
|
|
3
|
+
searchCount: number;
|
|
4
|
+
url: string | undefined;
|
|
5
|
+
testId: string;
|
|
6
|
+
}) => JSX.Element;
|
|
2
7
|
interface TableSearchCountProps {
|
|
3
8
|
url?: string;
|
|
4
9
|
prefixTextType: 'issue' | 'result' | 'item';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
3
|
+
import type { NextPageType } from '../../hooks/useDatasourceTableState';
|
|
4
|
+
import { type TableViewPropsRenderType } from '../issue-like-table/types';
|
|
5
|
+
export interface DatasourcesTableProps {
|
|
6
|
+
testId?: string;
|
|
7
|
+
extensionKey?: string | null;
|
|
8
|
+
columns: DatasourceResponseSchemaProperty[];
|
|
9
|
+
visibleColumnKeys: string[];
|
|
10
|
+
hasNextPage: boolean;
|
|
11
|
+
status: DatasourceTableStatusType;
|
|
12
|
+
items: DatasourceDataResponseItem[];
|
|
13
|
+
onNextPage: NextPageType;
|
|
14
|
+
onLoadDatasourceDetails: () => void;
|
|
15
|
+
renderItem?: TableViewPropsRenderType;
|
|
16
|
+
onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
|
|
17
|
+
scrollableContainerHeight?: number;
|
|
18
|
+
}
|
|
19
|
+
declare const Table: (props: DatasourcesTableProps) => JSX.Element;
|
|
20
|
+
export default Table;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.7",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@atlaskit/avatar": "^21.11.0",
|
|
41
41
|
"@atlaskit/avatar-group": "^9.9.0",
|
|
42
42
|
"@atlaskit/badge": "^16.3.0",
|
|
43
|
-
"@atlaskit/button": "^18.
|
|
43
|
+
"@atlaskit/button": "^18.2.0",
|
|
44
44
|
"@atlaskit/datetime-picker": "^13.7.0",
|
|
45
45
|
"@atlaskit/dropdown-menu": "^12.14.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "4.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.6.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",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
68
68
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.2.0",
|
|
69
69
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
70
|
-
"@atlaskit/primitives": "^10.
|
|
70
|
+
"@atlaskit/primitives": "^10.1.0",
|
|
71
71
|
"@atlaskit/select": "^17.11.0",
|
|
72
|
-
"@atlaskit/smart-card": "^27.
|
|
72
|
+
"@atlaskit/smart-card": "^27.9.0",
|
|
73
73
|
"@atlaskit/smart-user-picker": "6.9.3",
|
|
74
74
|
"@atlaskit/spinner": "^16.2.0",
|
|
75
75
|
"@atlaskit/tag": "^12.3.0",
|
|
@@ -176,8 +176,14 @@
|
|
|
176
176
|
"platform.linking-platform.datasources.enable-sentry-client": {
|
|
177
177
|
"type": "boolean"
|
|
178
178
|
},
|
|
179
|
+
"platform.linking-platform.datasources.use-refactored-config-modal": {
|
|
180
|
+
"type": "boolean"
|
|
181
|
+
},
|
|
179
182
|
"platform.editor-update-tag-link-and-color_x6hcf": {
|
|
180
183
|
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
"platform.linking-platform.datasource.limit-total-results_8wqcd": {
|
|
186
|
+
"type": "boolean"
|
|
181
187
|
}
|
|
182
188
|
}
|
|
183
189
|
}
|