@atlaskit/link-datasource 4.20.0 → 4.20.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 +14 -0
- package/dist/cjs/i18n/en.js +1 -0
- package/dist/cjs/i18n/en_GB.js +1 -0
- package/dist/cjs/i18n/en_ZZ.js +1 -0
- package/dist/es2019/i18n/en.js +1 -0
- package/dist/es2019/i18n/en_GB.js +1 -0
- package/dist/es2019/i18n/en_ZZ.js +1 -0
- package/dist/esm/i18n/en.js +1 -0
- package/dist/esm/i18n/en_GB.js +1 -0
- package/dist/esm/i18n/en_ZZ.js +1 -0
- package/dist/types/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +3 -3
- package/dist/types/analytics/ufoExperiences/types.d.ts +3 -3
- package/dist/types/common/types.d.ts +11 -11
- package/dist/types/common/ui/common/render-svg.d.ts +2 -2
- package/dist/types/hooks/useAssetsClient.d.ts +3 -3
- package/dist/types/hooks/useDatasourceTableFlag.d.ts +1 -1
- package/dist/types/hooks/useDatasourceTableState.d.ts +21 -21
- package/dist/types/hooks/useLoadOptions.d.ts +2 -2
- package/dist/types/hooks/useObjectSchemas.d.ts +3 -3
- package/dist/types/hooks/useValidateAqlText.d.ts +2 -2
- package/dist/types/i18n/en.d.ts +1 -0
- package/dist/types/i18n/en_GB.d.ts +1 -0
- package/dist/types/i18n/en_ZZ.d.ts +1 -0
- package/dist/types/services/useBasicFilterAGG.d.ts +1 -1
- package/dist/types/state/index.d.ts +1 -1
- package/dist/types/types/assets/types.d.ts +4 -4
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +10 -10
- package/dist/types/ui/assets-modal/search-container/aql-search-input/index.d.ts +2 -2
- package/dist/types/ui/assets-modal/search-container/index.d.ts +4 -4
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +3 -3
- package/dist/types/ui/assets-modal/types.d.ts +1 -1
- package/dist/types/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +3 -3
- package/dist/types/ui/common/initial-state-view/index.d.ts +3 -3
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +2 -2
- package/dist/types/ui/common/modal/datasource-context/index.d.ts +4 -4
- package/dist/types/ui/common/modal/datasource-modal/createDatasourceModal.d.ts +2 -2
- package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +2 -2
- package/dist/types/ui/common/modal/insert-button/index.d.ts +1 -1
- package/dist/types/ui/common/modal/mode-switcher/index.d.ts +3 -3
- package/dist/types/ui/common/modal/mode-switcher/useViewModeContext.d.ts +3 -3
- package/dist/types/ui/common/modal/popup-select/footer.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +10 -10
- package/dist/types/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/index.d.ts +5 -5
- package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/showMoreButton.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/trigger.d.ts +4 -4
- package/dist/types/ui/common/modal/popup-select/types.d.ts +7 -7
- package/dist/types/ui/common/modal/search-count/index.d.ts +2 -2
- package/dist/types/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.d.ts +2 -2
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useBasicFilterHydration.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +3 -3
- package/dist/types/ui/confluence-search-modal/basic-filters/index.d.ts +2 -2
- package/dist/types/ui/confluence-search-modal/confluence-search-container/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/types.d.ts +7 -7
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +2 -2
- package/dist/types/ui/issue-like-table/column-picker/types.d.ts +2 -2
- package/dist/types/ui/issue-like-table/drag-column-preview.d.ts +1 -1
- package/dist/types/ui/issue-like-table/draggable-table-heading.d.ts +5 -5
- package/dist/types/ui/issue-like-table/edit-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/edit-type/status/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/user/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-time/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/number/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/shared-components/icon/index.d.ts +4 -4
- package/dist/types/ui/issue-like-table/table-cell-content/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/table-cell-content/inline-edit.d.ts +1 -1
- package/dist/types/ui/issue-like-table/types.d.ts +29 -29
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +4 -4
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/types.d.ts +8 -8
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/index.d.ts +3 -3
- package/dist/types/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types/ui/table-footer/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +3 -3
- package/dist/types-ts4.5/analytics/ufoExperiences/types.d.ts +3 -3
- package/dist/types-ts4.5/common/types.d.ts +11 -11
- package/dist/types-ts4.5/common/ui/common/render-svg.d.ts +2 -2
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +3 -3
- package/dist/types-ts4.5/hooks/useDatasourceTableFlag.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +21 -21
- package/dist/types-ts4.5/hooks/useLoadOptions.d.ts +2 -2
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +3 -3
- package/dist/types-ts4.5/hooks/useValidateAqlText.d.ts +2 -2
- package/dist/types-ts4.5/i18n/en.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -0
- package/dist/types-ts4.5/services/useBasicFilterAGG.d.ts +1 -1
- package/dist/types-ts4.5/state/index.d.ts +1 -1
- package/dist/types-ts4.5/types/assets/types.d.ts +4 -4
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +10 -10
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/assets-modal/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/datasource-context/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/common/modal/datasource-modal/createDatasourceModal.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/insert-button/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/mode-switcher/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/modal/mode-switcher/useViewModeContext.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/modal/popup-select/footer.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/index.d.ts +10 -10
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/index.d.ts +5 -5
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/showMoreButton.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/trigger.d.ts +4 -4
- package/dist/types-ts4.5/ui/common/modal/popup-select/types.d.ts +7 -7
- package/dist/types-ts4.5/ui/common/modal/search-count/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.d.ts +2 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useBasicFilterHydration.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +3 -3
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/confluence-search-container/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/types.d.ts +7 -7
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +5 -5
- package/dist/types-ts4.5/ui/issue-like-table/edit-type/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/edit-type/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/edit-type/status/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/edit-type/user/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/number/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/shared-components/icon/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/issue-like-table/table-cell-content/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/table-cell-content/inline-edit.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +29 -29
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +4 -4
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/types.d.ts +8 -8
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/table-footer/index.d.ts +1 -1
- package/examples-helpers/buildAssetsIssuesTable.tsx +2 -2
- package/examples-helpers/buildConfluenceSearchTable.tsx +1 -1
- package/examples-helpers/buildIssueLikeTable.tsx +4 -4
- package/examples-helpers/buildJiraIssuesTable.tsx +2 -2
- package/package.json +10 -11
|
@@ -3,16 +3,16 @@ interface SharedIconComponentProps {
|
|
|
3
3
|
* URL or SVG for the priority icon
|
|
4
4
|
*/
|
|
5
5
|
iconUrl: string;
|
|
6
|
-
/**
|
|
7
|
-
* Text that labels the icon. Will not be capitalised.
|
|
8
|
-
*/
|
|
9
|
-
text?: string;
|
|
10
6
|
/**
|
|
11
7
|
* Label.
|
|
12
8
|
* Used for icon alt.
|
|
13
9
|
*/
|
|
14
10
|
label?: string;
|
|
15
11
|
testId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Text that labels the icon. Will not be capitalised.
|
|
14
|
+
*/
|
|
15
|
+
text?: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Renders a icon and text label.
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { type DatasourceType } from '@atlaskit/linking-types';
|
|
3
3
|
import { type TableViewPropsRenderType } from '../types';
|
|
4
4
|
interface TableCellContentProps {
|
|
5
|
-
id: string;
|
|
6
5
|
columnKey: string;
|
|
7
6
|
columnTitle: string;
|
|
8
7
|
columnType: DatasourceType['type'];
|
|
8
|
+
id: string;
|
|
9
9
|
/** Used to retrieve cell content from the store */
|
|
10
10
|
renderItem: TableViewPropsRenderType;
|
|
11
11
|
wrappedColumnKeys: string[] | undefined;
|
|
@@ -6,10 +6,10 @@ interface InlineEditProps {
|
|
|
6
6
|
ari: string;
|
|
7
7
|
columnKey: string;
|
|
8
8
|
columnTitle: string;
|
|
9
|
-
readView: React.ReactNode;
|
|
10
9
|
datasourceTypeWithValues: DatasourceTypeWithOnlyValues;
|
|
11
10
|
execute: (value: string | number) => Promise<AtomicActionExecuteResponse>;
|
|
12
11
|
executeFetch?: <E>(inputs: any) => Promise<E>;
|
|
12
|
+
readView: React.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* @returns String of the new field value, or ID of status transition / atlassian user ID / priority ID.
|
|
@@ -24,11 +24,10 @@ export interface ColumnSizesMap {
|
|
|
24
24
|
[key: string]: number;
|
|
25
25
|
}
|
|
26
26
|
export interface IssueLikeDataTableViewProps {
|
|
27
|
-
testId?: string;
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
28
|
+
* Map of column key to custom column width
|
|
30
29
|
*/
|
|
31
|
-
|
|
30
|
+
columnCustomSizes?: ColumnSizesMap;
|
|
32
31
|
/**
|
|
33
32
|
* All available columns/properties.
|
|
34
33
|
* Consumer should not reorder these columns to align with `visibleColumnKeys`.
|
|
@@ -36,15 +35,29 @@ export interface IssueLikeDataTableViewProps {
|
|
|
36
35
|
*/
|
|
37
36
|
columns: DatasourceResponseSchemaProperty[];
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
38
|
+
* Datasource extension key. Optional as value may not have been returned yet
|
|
40
39
|
*/
|
|
41
|
-
|
|
40
|
+
extensionKey?: string | null;
|
|
42
41
|
hasNextPage: boolean;
|
|
43
|
-
status: DatasourceTableStatusType;
|
|
44
|
-
items: DatasourceDataResponseItem[];
|
|
45
42
|
itemIds: string[];
|
|
46
|
-
|
|
43
|
+
items: DatasourceDataResponseItem[];
|
|
44
|
+
onColumnResize?: (key: string, width: number) => void;
|
|
47
45
|
onLoadDatasourceDetails: () => Promise<void>;
|
|
46
|
+
onNextPage: NextPageType;
|
|
47
|
+
/**
|
|
48
|
+
* Callback to be invoked whenever a user changes the visible columns in a datasource table
|
|
49
|
+
* either by selecting/unselecting or reordering (drag and drop)
|
|
50
|
+
*
|
|
51
|
+
* @param visibleColumnKeys the array of keys for all of the selected columns
|
|
52
|
+
*/
|
|
53
|
+
onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Callback to be invoked whenever user changes wrap attribute of the column.
|
|
56
|
+
*
|
|
57
|
+
* @param key Column key
|
|
58
|
+
* @param shouldWrap Whenever column should wrap
|
|
59
|
+
*/
|
|
60
|
+
onWrappedColumnChange?: (key: string, shouldWrap: boolean) => void;
|
|
48
61
|
/**
|
|
49
62
|
* A function to define new or override existing render components.
|
|
50
63
|
* eg:
|
|
@@ -58,40 +71,27 @@ export interface IssueLikeDataTableViewProps {
|
|
|
58
71
|
* };
|
|
59
72
|
*/
|
|
60
73
|
renderItem?: TableViewPropsRenderType;
|
|
61
|
-
/**
|
|
62
|
-
* Callback to be invoked whenever a user changes the visible columns in a datasource table
|
|
63
|
-
* either by selecting/unselecting or reordering (drag and drop)
|
|
64
|
-
*
|
|
65
|
-
* @param visibleColumnKeys the array of keys for all of the selected columns
|
|
66
|
-
*/
|
|
67
|
-
onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
|
|
68
74
|
/**
|
|
69
75
|
* If this number is set it will restrict (max-height) maximum size of the component AND make main container a scrollable container.
|
|
70
76
|
* It this number is undefined it will not restrict height and not make container scrollable.
|
|
71
77
|
*/
|
|
72
78
|
scrollableContainerHeight?: number;
|
|
79
|
+
status: DatasourceTableStatusType;
|
|
80
|
+
testId?: string;
|
|
73
81
|
/**
|
|
74
|
-
*
|
|
82
|
+
* List of properties/column keys that are visible/selected
|
|
75
83
|
*/
|
|
76
|
-
|
|
77
|
-
onColumnResize?: (key: string, width: number) => void;
|
|
84
|
+
visibleColumnKeys: string[];
|
|
78
85
|
/**
|
|
79
86
|
* List of column keys that needs to be shown without truncation (content will wrap to a new line)
|
|
80
87
|
*/
|
|
81
88
|
wrappedColumnKeys?: string[];
|
|
82
|
-
/**
|
|
83
|
-
* Callback to be invoked whenever user changes wrap attribute of the column.
|
|
84
|
-
*
|
|
85
|
-
* @param key Column key
|
|
86
|
-
* @param shouldWrap Whenever column should wrap
|
|
87
|
-
*/
|
|
88
|
-
onWrappedColumnChange?: (key: string, shouldWrap: boolean) => void;
|
|
89
89
|
}
|
|
90
90
|
export interface HeaderRowCellType {
|
|
91
|
+
content?: React.ReactNode | string;
|
|
91
92
|
key: string;
|
|
92
|
-
width?: number;
|
|
93
93
|
shouldTruncate?: boolean;
|
|
94
|
-
|
|
94
|
+
width?: number;
|
|
95
95
|
}
|
|
96
96
|
export interface RowType {
|
|
97
97
|
cells: Array<RowCellType>;
|
|
@@ -99,9 +99,9 @@ export interface RowType {
|
|
|
99
99
|
ref?: Ref<HTMLTableRowElement>;
|
|
100
100
|
}
|
|
101
101
|
export interface RowCellType {
|
|
102
|
+
content?: React.ReactNode | string;
|
|
102
103
|
key: string;
|
|
104
|
+
shouldTruncate?: boolean;
|
|
103
105
|
type?: DatasourceType['type'];
|
|
104
106
|
width?: number;
|
|
105
|
-
shouldTruncate?: boolean;
|
|
106
|
-
content?: React.ReactNode | string;
|
|
107
107
|
}
|
|
@@ -11,13 +11,13 @@ export interface FetchFilterOptionsProps {
|
|
|
11
11
|
searchString?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface FilterOptionsState {
|
|
14
|
-
|
|
14
|
+
errors: unknown[];
|
|
15
15
|
fetchFilterOptions: (prop?: FetchFilterOptionsProps) => Promise<void>;
|
|
16
|
-
|
|
17
|
-
totalCount: number;
|
|
16
|
+
filterOptions: SelectOption[];
|
|
18
17
|
pageCursor?: string;
|
|
18
|
+
reset: () => void;
|
|
19
19
|
status: 'empty' | 'loading' | 'resolved' | 'rejected' | 'loadingMore';
|
|
20
|
-
|
|
20
|
+
totalCount: number;
|
|
21
21
|
}
|
|
22
22
|
export declare const getAssigneeUnassignedFilterOption: (formatMessage: IntlShape["formatMessage"]) => AvatarLabelOption;
|
|
23
23
|
export declare const useFilterOptions: ({ filterType, site }: FilterOptionsProps) => FilterOptionsState;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type CommonBasicFilterHookState } from '../../../common/modal/popup-select/types';
|
|
2
2
|
import { type SelectedOptionsMap } from '../types';
|
|
3
3
|
export interface HydrateJqlState extends CommonBasicFilterHookState {
|
|
4
|
+
fetchHydratedJqlOptions: () => Promise<void>;
|
|
4
5
|
hydratedOptions: SelectedOptionsMap & {
|
|
5
6
|
basicInputTextValue?: string;
|
|
6
7
|
};
|
|
7
|
-
fetchHydratedJqlOptions: () => Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
export declare const useHydrateJqlQuery: (cloudId: string, jql: string) => HydrateJqlState;
|
|
@@ -33,13 +33,13 @@ type HydrateJqlQueryBody = {
|
|
|
33
33
|
};
|
|
34
34
|
type FieldValuesBody = {
|
|
35
35
|
fieldValues: {
|
|
36
|
-
totalCount: number;
|
|
37
|
-
pageInfo: {
|
|
38
|
-
endCursor?: string;
|
|
39
|
-
};
|
|
40
36
|
edges: Array<{
|
|
41
37
|
node: AggJqlBuilderFieldNode;
|
|
42
38
|
}>;
|
|
39
|
+
pageInfo: {
|
|
40
|
+
endCursor?: string;
|
|
41
|
+
};
|
|
42
|
+
totalCount: number;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
type JqlBuilderProject = {
|
|
@@ -62,13 +62,13 @@ type JqlBuilderStatusCategory = {
|
|
|
62
62
|
colorName: string;
|
|
63
63
|
};
|
|
64
64
|
export type AggJqlBuilderFieldNode = {
|
|
65
|
-
jqlTerm: string;
|
|
66
65
|
displayName: string;
|
|
67
|
-
|
|
68
|
-
user?: JqlBuilderUser;
|
|
66
|
+
group?: JqlBuilderGroup;
|
|
69
67
|
issueTypes?: Array<JqlBuilderIssueType>;
|
|
68
|
+
jqlTerm: string;
|
|
69
|
+
project?: JqlBuilderProject;
|
|
70
70
|
statusCategory?: JqlBuilderStatusCategory;
|
|
71
|
-
|
|
71
|
+
user?: JqlBuilderUser;
|
|
72
72
|
};
|
|
73
73
|
export type HydrateResponse = JQLBuilderResponse<HydrateJqlQueryBody>;
|
|
74
74
|
export type FieldValuesResponse = JQLBuilderResponse<FieldValuesBody>;
|
package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { type SelectOption } from '../../../../common/modal/popup-select/types';
|
|
|
4
4
|
import { type BasicFilterFieldType } from '../../types';
|
|
5
5
|
export interface AsyncPopupSelectProps {
|
|
6
6
|
filterType: BasicFilterFieldType;
|
|
7
|
-
|
|
7
|
+
isDisabled?: boolean;
|
|
8
8
|
isJQLHydrating: boolean;
|
|
9
9
|
onSelectionChange?: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
|
|
10
|
-
|
|
10
|
+
selection: SelectOption[];
|
|
11
11
|
site?: Site;
|
|
12
12
|
}
|
|
13
13
|
declare const AsyncPopupSelect: ({ filterType, site, selection, isJQLHydrating, onSelectionChange, isDisabled, }: AsyncPopupSelectProps) => React.JSX.Element;
|
|
@@ -4,11 +4,11 @@ import { type SelectOption } from '../../../common/modal/popup-select/types';
|
|
|
4
4
|
import type { BasicFilterFieldType, SelectedOptionsMap } from '../types';
|
|
5
5
|
export declare const availableBasicFilterTypes: BasicFilterFieldType[];
|
|
6
6
|
export interface BasicFilterContainerProps {
|
|
7
|
+
isJQLHydrating: boolean;
|
|
7
8
|
jql: string;
|
|
8
|
-
site?: Site;
|
|
9
|
-
selections: SelectedOptionsMap;
|
|
10
9
|
onChange: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
|
|
11
|
-
|
|
10
|
+
selections: SelectedOptionsMap;
|
|
11
|
+
site?: Site;
|
|
12
12
|
}
|
|
13
13
|
declare const BasicFilterContainer: ({ jql, site, onChange, selections, isJQLHydrating, }: BasicFilterContainerProps) => React.JSX.Element;
|
|
14
14
|
export default BasicFilterContainer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type SelectedOptionsMap } from '../basic-filters/types';
|
|
2
2
|
type BuildJQLInput = {
|
|
3
|
-
|
|
3
|
+
filterValues?: SelectedOptionsMap;
|
|
4
4
|
orderDirection?: string;
|
|
5
5
|
orderKey?: string;
|
|
6
|
-
|
|
6
|
+
rawSearch: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const fuzzyCharacter = "*";
|
|
9
9
|
export declare const buildJQL: (input: BuildJQLInput) => string;
|
|
@@ -4,13 +4,13 @@ import { type JiraIssueDatasourceParameters, type JiraIssueDatasourceParametersQ
|
|
|
4
4
|
export declare const DEFAULT_JQL_QUERY = "ORDER BY created DESC";
|
|
5
5
|
export declare const ALLOWED_ORDER_BY_KEYS: string[];
|
|
6
6
|
export interface SearchContainerProps {
|
|
7
|
+
initialSearchMethod: JiraSearchMethod;
|
|
7
8
|
isSearching?: boolean;
|
|
8
9
|
onSearch: (query: JiraIssueDatasourceParametersQuery, { searchMethod, basicFilterSelections, }: {
|
|
9
|
-
searchMethod: JiraSearchMethod;
|
|
10
10
|
basicFilterSelections: SelectedOptionsMap;
|
|
11
11
|
isQueryComplex: boolean;
|
|
12
|
+
searchMethod: JiraSearchMethod;
|
|
12
13
|
}) => void;
|
|
13
|
-
initialSearchMethod: JiraSearchMethod;
|
|
14
14
|
onSearchMethodChange: (searchMethod: JiraSearchMethod) => void;
|
|
15
15
|
parameters?: JiraIssueDatasourceParameters;
|
|
16
16
|
searchBarJql?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type TableFooterProps = {
|
|
2
2
|
datasourceId: string;
|
|
3
|
+
isLoading: boolean;
|
|
3
4
|
itemCount?: number;
|
|
4
5
|
onRefresh?: () => void;
|
|
5
|
-
isLoading: boolean;
|
|
6
6
|
url?: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const TableFooter: ({ datasourceId, itemCount, onRefresh, isLoading, url, }: TableFooterProps) => JSX.Element | null;
|
|
@@ -14,12 +14,12 @@ import SmartLinkClient from './smartLinkCustomClient';
|
|
|
14
14
|
import { useAssetsTableProps } from './useAssetsTableProps';
|
|
15
15
|
|
|
16
16
|
interface AssetsTableViewProps {
|
|
17
|
-
parameters?: DatasourceParameters;
|
|
18
|
-
mockDatasourceFetchRequest?: boolean;
|
|
19
17
|
/**
|
|
20
18
|
* Used to use the lazy loaded version for examples on atlaskit
|
|
21
19
|
*/
|
|
22
20
|
DatasourceTable?: typeof DataSourceTableViewNoSuspense | typeof DatasourceTableView;
|
|
21
|
+
mockDatasourceFetchRequest?: boolean;
|
|
22
|
+
parameters?: DatasourceParameters;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
const AssetsTableView = ({
|
|
@@ -13,8 +13,8 @@ import SmartLinkClient from './smartLinkCustomClient';
|
|
|
13
13
|
import { useCommonTableProps } from './useCommonTableProps';
|
|
14
14
|
|
|
15
15
|
interface ConfluenceSearchTableViewProps {
|
|
16
|
-
parameters?: DatasourceParameters;
|
|
17
16
|
mockDatasourceFetchRequest?: boolean;
|
|
17
|
+
parameters?: DatasourceParameters;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const ConfluenceSearchTableView = ({ parameters }: ConfluenceSearchTableViewProps) => {
|
|
@@ -21,17 +21,17 @@ import SmartLinkClient from './smartLinkCustomClient';
|
|
|
21
21
|
import { useCommonTableProps } from './useCommonTableProps';
|
|
22
22
|
|
|
23
23
|
type Props = {
|
|
24
|
-
isReadonly?: boolean;
|
|
25
|
-
canResizeColumns?: boolean;
|
|
26
24
|
canControlWrapping?: boolean;
|
|
27
|
-
|
|
25
|
+
canResizeColumns?: boolean;
|
|
28
26
|
forceLoading?: boolean;
|
|
29
|
-
|
|
27
|
+
isReadonly?: boolean;
|
|
30
28
|
/**
|
|
31
29
|
* Use infinity for an infinite delay (promise never resolves or rejects)
|
|
32
30
|
* Default is 600ms
|
|
33
31
|
*/
|
|
34
32
|
mockExecutionDelay?: number;
|
|
33
|
+
skipIntl?: boolean;
|
|
34
|
+
visibleColumnKeys?: string[];
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
@@ -15,12 +15,12 @@ import SmartLinkClient from './smartLinkCustomClient';
|
|
|
15
15
|
import { useCommonTableProps } from './useCommonTableProps';
|
|
16
16
|
|
|
17
17
|
type JiraIssuesTableViewProps = {
|
|
18
|
-
parameters?: DatasourceParameters;
|
|
19
|
-
mockDatasourceFetchRequest?: boolean;
|
|
20
18
|
/**
|
|
21
19
|
* Used to use the lazy loaded version for examples on atlaskit
|
|
22
20
|
*/
|
|
23
21
|
DatasourceTable?: typeof DataSourceTableViewNoSuspense | typeof DatasourceTableView;
|
|
22
|
+
mockDatasourceFetchRequest?: boolean;
|
|
23
|
+
parameters?: DatasourceParameters;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const JiraIssuesTableView = ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
39
|
+
"@atlaskit/adf-schema": "^50.2.2",
|
|
40
40
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
41
41
|
"@atlaskit/atlassian-context": "^0.5.0",
|
|
42
42
|
"@atlaskit/avatar": "^25.1.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
50
50
|
"@atlaskit/empty-state": "^10.1.0",
|
|
51
51
|
"@atlaskit/flag": "^17.3.0",
|
|
52
|
-
"@atlaskit/form": "^12.
|
|
52
|
+
"@atlaskit/form": "^12.2.0",
|
|
53
53
|
"@atlaskit/heading": "^5.2.0",
|
|
54
|
-
"@atlaskit/icon": "^28.
|
|
54
|
+
"@atlaskit/icon": "^28.1.0",
|
|
55
55
|
"@atlaskit/icon-object": "^7.2.0",
|
|
56
56
|
"@atlaskit/image": "^3.0.0",
|
|
57
57
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
75
75
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
|
|
76
76
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
77
|
-
"@atlaskit/primitives": "^14.
|
|
78
|
-
"@atlaskit/react-select": "^3.
|
|
77
|
+
"@atlaskit/primitives": "^14.12.0",
|
|
78
|
+
"@atlaskit/react-select": "^3.5.0",
|
|
79
79
|
"@atlaskit/select": "^21.2.0",
|
|
80
|
-
"@atlaskit/smart-card": "^40.
|
|
81
|
-
"@atlaskit/smart-user-picker": "^8.
|
|
80
|
+
"@atlaskit/smart-card": "^40.13.0",
|
|
81
|
+
"@atlaskit/smart-user-picker": "^8.2.0",
|
|
82
82
|
"@atlaskit/spinner": "^19.0.0",
|
|
83
83
|
"@atlaskit/tag": "^14.1.0",
|
|
84
84
|
"@atlaskit/textfield": "^8.0.0",
|
|
85
|
-
"@atlaskit/theme": "^
|
|
86
|
-
"@atlaskit/tokens": "^6.
|
|
85
|
+
"@atlaskit/theme": "^20.0.0",
|
|
86
|
+
"@atlaskit/tokens": "^6.1.0",
|
|
87
87
|
"@atlaskit/tooltip": "^20.4.0",
|
|
88
88
|
"@atlaskit/ufo": "^0.4.0",
|
|
89
89
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -108,7 +108,6 @@
|
|
|
108
108
|
"@atlaskit/link-provider": "^3.7.0",
|
|
109
109
|
"@atlaskit/link-test-helpers": "^8.3.0",
|
|
110
110
|
"@atlaskit/ssr": "workspace:^",
|
|
111
|
-
"@atlaskit/visual-regression": "workspace:^",
|
|
112
111
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
113
112
|
"@faker-js/faker": "^7.5.0",
|
|
114
113
|
"@testing-library/dom": "^10.1.0",
|