@atlaskit/link-datasource 1.7.2 → 1.7.3
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 +7 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +4 -2
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +3 -2
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +4 -2
- package/dist/types/ui/jira-issues-modal/types.d.ts +1 -0
- package/dist/types-ts4.5/analytics/constants.d.ts +3 -0
- package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +134 -0
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +31 -0
- package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +7 -0
- package/dist/types-ts4.5/analytics/index.d.ts +8 -0
- package/dist/types-ts4.5/analytics/types.d.ts +18 -0
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +2 -0
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +22 -0
- package/dist/types-ts4.5/analytics/ufoExperiences/index.d.ts +5 -0
- package/dist/types-ts4.5/analytics/ufoExperiences/types.d.ts +14 -0
- package/dist/types-ts4.5/analytics/utils.d.ts +3 -0
- package/dist/types-ts4.5/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +3 -0
- package/dist/types-ts4.5/analytics/wrappers/render-failed/index.d.ts +2 -0
- package/dist/types-ts4.5/common/types.d.ts +1 -0
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +9 -0
- package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +31 -0
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +8 -0
- package/dist/types-ts4.5/hooks/useValidateAqlText.d.ts +7 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +54 -0
- package/dist/types-ts4.5/i18n/da.d.ts +54 -0
- package/dist/types-ts4.5/i18n/de.d.ts +54 -0
- package/dist/types-ts4.5/i18n/en.d.ts +55 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +55 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +55 -0
- package/dist/types-ts4.5/i18n/es.d.ts +54 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +54 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +54 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +54 -0
- package/dist/types-ts4.5/i18n/it.d.ts +54 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +54 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +54 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +54 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +54 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +54 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +54 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +54 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +54 -0
- package/dist/types-ts4.5/i18n/th.d.ts +54 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +54 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +54 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +54 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +54 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +54 -0
- package/dist/types-ts4.5/index.d.ts +10 -0
- package/dist/types-ts4.5/services/cmdbService.d.ts +7 -0
- package/dist/types-ts4.5/services/getAvailableJiraSites.d.ts +6 -0
- package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +6 -0
- package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +5 -0
- package/dist/types-ts4.5/types/assets/types.d.ts +34 -0
- package/dist/types-ts4.5/ui/assets-modal/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +17 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg.d.ts +2 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +3 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/messages.d.ts +12 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +17 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +8 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +21 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +3 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +2 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +19 -0
- package/dist/types-ts4.5/ui/assets-modal/types.d.ts +23 -0
- package/dist/types-ts4.5/ui/common/error-state/access-required-svg.d.ts +2 -0
- package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +6 -0
- package/dist/types-ts4.5/ui/common/error-state/loading-error-svg.d.ts +2 -0
- package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +6 -0
- package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +47 -0
- package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +6 -0
- package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +6 -0
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +3 -0
- package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +8 -0
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +5 -0
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +8 -0
- package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +7 -0
- package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +12 -0
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +6 -0
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +6 -0
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +18 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/messages.d.ts +12 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/number/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +18 -0
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +53 -0
- package/dist/types-ts4.5/ui/issue-like-table/useIsOnScreen.d.ts +1 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/index.d.ts +12 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.d.ts +2 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/hooks/useBasicFilterHook.d.ts +4 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/common/dropdown/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/containers/project/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +7 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/jql-editor/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/messages.d.ts +42 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/mode-switcher/index.d.ts +12 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/messages.d.ts +12 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +44 -0
- package/dist/types-ts4.5/ui/table-footer/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/table-footer/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/table-footer/sync-info/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/table-footer/sync-info/messages.d.ts +12 -0
- package/package.json +3 -3
- package/report.api.md +10 -7
- package/tmp/api-report-tmp.d.ts +156 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FieldTextFontSize = "14px";
|
|
3
|
+
export declare const Table: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
|
|
7
|
+
export declare const TableHeading: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
|
|
11
|
+
export declare const EmptyStateTableHeading: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & {
|
|
15
|
+
children?: import("react").ReactNode;
|
|
16
|
+
} & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType, DatasourceType } from '@atlaskit/linking-types';
|
|
3
|
+
import { NextPageType } from '../../hooks/useDatasourceTableState';
|
|
4
|
+
export type TableViewPropsRenderType = (item: DatasourceType) => React.ReactNode;
|
|
5
|
+
export interface IssueLikeDataTableViewProps {
|
|
6
|
+
testId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Unique ID to indicate parent component instance to be used for UFO experiences
|
|
9
|
+
*/
|
|
10
|
+
parentContainerRenderInstanceId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Datasource extension key. Optional as value may not have been returned yet
|
|
13
|
+
*/
|
|
14
|
+
extensionKey?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* All available columns/properties.
|
|
17
|
+
* Consumer should not reorder these columns to align with `visibleColumnKeys`.
|
|
18
|
+
* UI will display them according to `visibleColumnKeys`
|
|
19
|
+
*/
|
|
20
|
+
columns: DatasourceResponseSchemaProperty[];
|
|
21
|
+
/**
|
|
22
|
+
* List of properties/column keys that are visible/selected
|
|
23
|
+
*/
|
|
24
|
+
visibleColumnKeys: string[];
|
|
25
|
+
hasNextPage: boolean;
|
|
26
|
+
status: DatasourceTableStatusType;
|
|
27
|
+
items: DatasourceDataResponseItem[];
|
|
28
|
+
onNextPage: NextPageType;
|
|
29
|
+
onLoadDatasourceDetails: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* A function to define new or override existing render components.
|
|
32
|
+
* eg:
|
|
33
|
+
* const renderItem: TableViewPropsRenderType = item => {
|
|
34
|
+
* if (item.type === 'icon') {
|
|
35
|
+
* return (
|
|
36
|
+
* <IconRenderType label={item.label} source={item.source} />
|
|
37
|
+
* );
|
|
38
|
+
* }
|
|
39
|
+
* return fallbackRenderType(item);
|
|
40
|
+
* };
|
|
41
|
+
*/
|
|
42
|
+
renderItem?: TableViewPropsRenderType;
|
|
43
|
+
/**
|
|
44
|
+
* Callback that is called in either column re-order or columns being selected/unselected
|
|
45
|
+
* @param visibleColumnKeys
|
|
46
|
+
*/
|
|
47
|
+
onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
|
|
48
|
+
/**
|
|
49
|
+
* If this number is set it will restrict (max-height) maximum size of the component AND make main container a scrollable container.
|
|
50
|
+
* It this number is undefined it will not restrict height and not make container scrollable.
|
|
51
|
+
*/
|
|
52
|
+
scrollableContainerHeight?: number;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsOnScreen: (el: HTMLElement | null) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
export interface BasicSearchInputProps {
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isSearching?: boolean;
|
|
7
|
+
onChange: React.FormEventHandler<HTMLInputElement>;
|
|
8
|
+
onSearch: (searchTerm: string) => void;
|
|
9
|
+
searchTerm: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const BasicSearchInput: ({ isDisabled, isSearching, onChange, onSearch, searchTerm, testId, }: BasicSearchInputProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { JiraIssuesConfigModalProps } from './types';
|
|
3
|
+
export declare const JIRA_LIST_OF_LINKS_DATASOURCE_ID = "d8b75300-dfda-4519-b6cd-e49abbd50401";
|
|
4
|
+
declare const JiraIssuesConfigModalWithWrappers: (props: JiraIssuesConfigModalProps) => JSX.Element;
|
|
5
|
+
export default JiraIssuesConfigModalWithWrappers;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const initialStateViewMessages: {
|
|
2
|
+
searchTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
searchDescription: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
learnMoreLink: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BasicFilters } from './ui';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { JiraSearchMethod } from '../../../common/types';
|
|
3
|
+
import { JiraIssueDatasourceParameters, JiraIssueDatasourceParametersQuery } from '../types';
|
|
4
|
+
export interface SearchContainerProps {
|
|
5
|
+
isSearching?: boolean;
|
|
6
|
+
onSearch: (query: JiraIssueDatasourceParametersQuery, searchMethod: JiraSearchMethod) => void;
|
|
7
|
+
parameters?: JiraIssueDatasourceParameters;
|
|
8
|
+
}
|
|
9
|
+
export declare const getInitialSearchMethod: (initialJql?: string) => JiraSearchMethod;
|
|
10
|
+
export declare const JiraSearchContainer: (props: SearchContainerProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { DatasourceAction } from '../../../analytics/types';
|
|
4
|
+
import { JiraIssuesConfigModalProps } from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* This method should be called when one atomic action is performed on columns: adding new item, removing one item, changing items order.
|
|
7
|
+
* The assumption is that since only one action is changed at each time, we don't have to verify the actual contents of the lists.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
|
|
10
|
+
export declare const PlainJiraIssuesConfigModal: (props: JiraIssuesConfigModalProps) => jsx.JSX.Element;
|
|
11
|
+
export declare const JiraIssuesConfigModal: import("react").ForwardRefExoticComponent<JiraIssuesConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const modalMessages: {
|
|
2
|
+
cancelButtonText: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
insertIssuesButtonText: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
insertIssuesTitle: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
insertIssuesTitleManySites: {
|
|
18
|
+
id: string;
|
|
19
|
+
description: string;
|
|
20
|
+
defaultMessage: string;
|
|
21
|
+
};
|
|
22
|
+
issueViewModeLabel: {
|
|
23
|
+
id: string;
|
|
24
|
+
description: string;
|
|
25
|
+
defaultMessage: string;
|
|
26
|
+
};
|
|
27
|
+
countViewModeLabel: {
|
|
28
|
+
id: string;
|
|
29
|
+
description: string;
|
|
30
|
+
defaultMessage: string;
|
|
31
|
+
};
|
|
32
|
+
issuesCountSmartCardPlaceholderText: {
|
|
33
|
+
id: string;
|
|
34
|
+
description: string;
|
|
35
|
+
defaultMessage: string;
|
|
36
|
+
};
|
|
37
|
+
issueText: {
|
|
38
|
+
id: string;
|
|
39
|
+
description: string;
|
|
40
|
+
defaultMessage: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
export interface ModeSwitcherProps<T extends string = string> {
|
|
3
|
+
isCompact?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
options: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: T;
|
|
8
|
+
}[];
|
|
9
|
+
onOptionValueChange: (selectedOptionValue: T) => void;
|
|
10
|
+
selectedOptionValue?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ModeSwitcher: <T extends string = string>(props: ModeSwitcherProps<T>) => jsx.JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { Site } from '../../../services/getAvailableJiraSites';
|
|
4
|
+
export interface JiraSiteSelectorProps {
|
|
5
|
+
availableSites: Site[];
|
|
6
|
+
onSiteSelection: (selectedSite: Site) => void;
|
|
7
|
+
selectedJiraSite?: Site;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const JiraSiteSelector: (props: JiraSiteSelectorProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { DatasourceAdf, InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
3
|
+
type XOR<T1, T2> = (T1 & {
|
|
4
|
+
[k in Exclude<keyof T2, keyof T1>]?: never;
|
|
5
|
+
}) | (T2 & {
|
|
6
|
+
[k in Exclude<keyof T1, keyof T2>]?: never;
|
|
7
|
+
});
|
|
8
|
+
export type JiraIssueDatasourceParametersQuery = XOR<{
|
|
9
|
+
jql: string;
|
|
10
|
+
}, {
|
|
11
|
+
filter: string;
|
|
12
|
+
}>;
|
|
13
|
+
export type JiraIssueDatasourceParameters = {
|
|
14
|
+
cloudId: string;
|
|
15
|
+
} & JiraIssueDatasourceParametersQuery;
|
|
16
|
+
export type JiraIssueViewModes = 'issue' | 'count';
|
|
17
|
+
export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
18
|
+
attrs: {
|
|
19
|
+
url?: string;
|
|
20
|
+
datasource: {
|
|
21
|
+
id: string;
|
|
22
|
+
parameters: JiraIssueDatasourceParameters;
|
|
23
|
+
views: [
|
|
24
|
+
{
|
|
25
|
+
type: 'table';
|
|
26
|
+
properties?: {
|
|
27
|
+
columns: {
|
|
28
|
+
key: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface JiraIssuesConfigModalProps {
|
|
37
|
+
datasourceId: string;
|
|
38
|
+
visibleColumnKeys?: string[];
|
|
39
|
+
parameters?: JiraIssueDatasourceParameters;
|
|
40
|
+
onCancel: () => void;
|
|
41
|
+
onInsert: (adf: InlineCardAdf | JiraIssuesDatasourceAdf, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
42
|
+
viewMode?: JiraIssueViewModes;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
export type TableFooterProps = {
|
|
3
|
+
itemCount?: number;
|
|
4
|
+
onRefresh?: () => void;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
url?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const TableFooter: ({ itemCount, onRefresh, isLoading, url, }: TableFooterProps) => jsx.JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const footerMessages: {
|
|
2
|
+
itemText: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
loadingText: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
refreshLabel: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/analytics-next": "^9.1.3",
|
|
35
35
|
"@atlaskit/avatar": "^21.4.0",
|
|
36
36
|
"@atlaskit/button": "^16.10.0",
|
|
37
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
37
|
+
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
39
39
|
"@atlaskit/empty-state": "^7.5.0",
|
|
40
40
|
"@atlaskit/form": "^8.11.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/tag": "^11.6.0",
|
|
61
61
|
"@atlaskit/textfield": "5.6.8",
|
|
62
62
|
"@atlaskit/theme": "^12.6.0",
|
|
63
|
-
"@atlaskit/tokens": "^1.
|
|
63
|
+
"@atlaskit/tokens": "^1.26.0",
|
|
64
64
|
"@atlaskit/tooltip": "^17.8.0",
|
|
65
65
|
"@atlaskit/ufo": "^0.2.4",
|
|
66
66
|
"@atlassianlabs/jql-ast": "^2.1.0",
|
package/report.api.md
CHANGED
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
import { DatasourceAdf } from '@atlaskit/linking-common/types';
|
|
21
21
|
import { DatasourceAdfTableView } from '@atlaskit/linking-common/types';
|
|
22
22
|
import { DatasourceAdfView } from '@atlaskit/linking-common/types';
|
|
23
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
24
23
|
import { InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
25
|
-
import { RefAttributes } from 'react';
|
|
26
24
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
27
25
|
|
|
28
26
|
// @public (undocumented)
|
|
@@ -79,11 +77,6 @@ export { DatasourceAdfTableView };
|
|
|
79
77
|
|
|
80
78
|
export { DatasourceAdfView };
|
|
81
79
|
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
export const DatasourceRenderFailedAnalyticsWrapper: ForwardRefExoticComponent<
|
|
84
|
-
Pick<any, number | string | symbol> & RefAttributes<any>
|
|
85
|
-
>;
|
|
86
|
-
|
|
87
80
|
// @public (undocumented)
|
|
88
81
|
export const DatasourceTableView: (
|
|
89
82
|
props: DatasourceTableViewProps,
|
|
@@ -143,6 +136,8 @@ interface JiraIssuesConfigModalProps {
|
|
|
143
136
|
// (undocumented)
|
|
144
137
|
parameters?: JiraIssueDatasourceParameters;
|
|
145
138
|
// (undocumented)
|
|
139
|
+
viewMode?: JiraIssueViewModes;
|
|
140
|
+
// (undocumented)
|
|
146
141
|
visibleColumnKeys?: string[];
|
|
147
142
|
}
|
|
148
143
|
|
|
@@ -168,6 +163,14 @@ export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
|
168
163
|
};
|
|
169
164
|
}
|
|
170
165
|
|
|
166
|
+
// @public (undocumented)
|
|
167
|
+
type JiraIssueViewModes = 'count' | 'issue';
|
|
168
|
+
|
|
169
|
+
// @public (undocumented)
|
|
170
|
+
export const LazyLoadedDatasourceRenderFailedAnalyticsWrapper: (
|
|
171
|
+
props: any,
|
|
172
|
+
) => JSX.Element;
|
|
173
|
+
|
|
171
174
|
// @public (undocumented)
|
|
172
175
|
type XOR<T1, T2> =
|
|
173
176
|
| (T1 & {
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/link-datasource"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import { DatasourceAdf } from '@atlaskit/linking-common/types';
|
|
10
|
+
import { DatasourceAdfTableView } from '@atlaskit/linking-common/types';
|
|
11
|
+
import { DatasourceAdfView } from '@atlaskit/linking-common/types';
|
|
12
|
+
import { InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
13
|
+
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
14
|
+
|
|
15
|
+
// @public (undocumented)
|
|
16
|
+
export const ASSETS_LIST_OF_LINKS_DATASOURCE_ID = "361d618a-3c04-40ad-9b27-3c8ea6927020";
|
|
17
|
+
|
|
18
|
+
// @public (undocumented)
|
|
19
|
+
interface AssetsConfigModalProps {
|
|
20
|
+
// (undocumented)
|
|
21
|
+
datasourceId: string;
|
|
22
|
+
// (undocumented)
|
|
23
|
+
onCancel: () => void;
|
|
24
|
+
// (undocumented)
|
|
25
|
+
onInsert: (adf: AssetsDatasourceAdf | InlineCardAdf) => void;
|
|
26
|
+
// (undocumented)
|
|
27
|
+
parameters?: AssetsDatasourceParameters;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
visibleColumnKeys?: string[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// @public (undocumented)
|
|
33
|
+
const AssetsConfigModalWithWrappers: (props: AssetsConfigModalProps) => JSX.Element;
|
|
34
|
+
export { AssetsConfigModalWithWrappers as AssetsConfigModal }
|
|
35
|
+
export { AssetsConfigModalWithWrappers as JSMAssetsConfigModal }
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export interface AssetsDatasourceAdf extends DatasourceAdf {
|
|
39
|
+
// (undocumented)
|
|
40
|
+
attrs: {
|
|
41
|
+
url?: string;
|
|
42
|
+
datasource: {
|
|
43
|
+
id: string;
|
|
44
|
+
parameters: AssetsDatasourceParameters;
|
|
45
|
+
views: DatasourceAdfView[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// @public (undocumented)
|
|
51
|
+
export interface AssetsDatasourceParameters {
|
|
52
|
+
// (undocumented)
|
|
53
|
+
aql: string;
|
|
54
|
+
// (undocumented)
|
|
55
|
+
schemaId: string;
|
|
56
|
+
// (undocumented)
|
|
57
|
+
workspaceId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { DatasourceAdf }
|
|
61
|
+
|
|
62
|
+
export { DatasourceAdfTableView }
|
|
63
|
+
|
|
64
|
+
export { DatasourceAdfView }
|
|
65
|
+
|
|
66
|
+
// @public (undocumented)
|
|
67
|
+
export const DatasourceTableView: (props: DatasourceTableViewProps) => JSX.Element;
|
|
68
|
+
|
|
69
|
+
// @public (undocumented)
|
|
70
|
+
interface DatasourceTableViewProps {
|
|
71
|
+
// (undocumented)
|
|
72
|
+
datasourceId: string;
|
|
73
|
+
// (undocumented)
|
|
74
|
+
fields?: string[];
|
|
75
|
+
// (undocumented)
|
|
76
|
+
onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
|
|
77
|
+
// (undocumented)
|
|
78
|
+
parameters: object;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
url?: string;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
visibleColumnKeys?: string[];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// @public (undocumented)
|
|
86
|
+
export const JIRA_LIST_OF_LINKS_DATASOURCE_ID = "d8b75300-dfda-4519-b6cd-e49abbd50401";
|
|
87
|
+
|
|
88
|
+
// @public (undocumented)
|
|
89
|
+
export type JiraIssueDatasourceParameters = {
|
|
90
|
+
cloudId: string;
|
|
91
|
+
} & JiraIssueDatasourceParametersQuery;
|
|
92
|
+
|
|
93
|
+
// @public (undocumented)
|
|
94
|
+
type JiraIssueDatasourceParametersQuery = XOR<{
|
|
95
|
+
jql: string;
|
|
96
|
+
}, {
|
|
97
|
+
filter: string;
|
|
98
|
+
}>;
|
|
99
|
+
|
|
100
|
+
// @public (undocumented)
|
|
101
|
+
export const JiraIssuesConfigModal: (props: JiraIssuesConfigModalProps) => JSX.Element;
|
|
102
|
+
|
|
103
|
+
// @public (undocumented)
|
|
104
|
+
interface JiraIssuesConfigModalProps {
|
|
105
|
+
// (undocumented)
|
|
106
|
+
datasourceId: string;
|
|
107
|
+
// (undocumented)
|
|
108
|
+
onCancel: () => void;
|
|
109
|
+
// (undocumented)
|
|
110
|
+
onInsert: (adf: InlineCardAdf | JiraIssuesDatasourceAdf, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
111
|
+
// (undocumented)
|
|
112
|
+
parameters?: JiraIssueDatasourceParameters;
|
|
113
|
+
// (undocumented)
|
|
114
|
+
viewMode?: JiraIssueViewModes;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
visibleColumnKeys?: string[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// @public (undocumented)
|
|
120
|
+
export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
121
|
+
// (undocumented)
|
|
122
|
+
attrs: {
|
|
123
|
+
url?: string;
|
|
124
|
+
datasource: {
|
|
125
|
+
id: string;
|
|
126
|
+
parameters: JiraIssueDatasourceParameters;
|
|
127
|
+
views: [
|
|
128
|
+
{
|
|
129
|
+
type: 'table';
|
|
130
|
+
properties?: {
|
|
131
|
+
columns: {
|
|
132
|
+
key: string;
|
|
133
|
+
}[];
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
];
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// @public (undocumented)
|
|
142
|
+
type JiraIssueViewModes = 'count' | 'issue';
|
|
143
|
+
|
|
144
|
+
// @public (undocumented)
|
|
145
|
+
export const LazyLoadedDatasourceRenderFailedAnalyticsWrapper: (props: any) => JSX.Element;
|
|
146
|
+
|
|
147
|
+
// @public (undocumented)
|
|
148
|
+
type XOR<T1, T2> = (T1 & {
|
|
149
|
+
[k in Exclude<keyof T2, keyof T1>]?: never;
|
|
150
|
+
}) | (T2 & {
|
|
151
|
+
[k in Exclude<keyof T1, keyof T2>]?: never;
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
// (No @packageDocumentation comment for this package)
|
|
155
|
+
|
|
156
|
+
```
|