@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
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
2
|
interface DataRenderedUfoExperienceProps {
|
|
3
|
-
status: DatasourceTableStatusType;
|
|
4
|
-
experienceId: string;
|
|
5
|
-
itemCount: number;
|
|
6
3
|
canBeLink?: boolean;
|
|
4
|
+
experienceId: string;
|
|
7
5
|
extensionKey?: string | null;
|
|
6
|
+
itemCount: number;
|
|
7
|
+
status: DatasourceTableStatusType;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Hook to mark DataRendered UFO experience as either Success or Failure
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
interface DatasourceRendered {
|
|
2
|
-
name: 'datasource-rendered';
|
|
3
2
|
metadata?: {
|
|
4
3
|
extensionKey?: string;
|
|
5
4
|
};
|
|
5
|
+
name: 'datasource-rendered';
|
|
6
6
|
}
|
|
7
7
|
interface ColumnPickerRendered {
|
|
8
|
-
name: 'column-picker-rendered';
|
|
9
8
|
metadata?: {
|
|
10
9
|
extensionKey?: string;
|
|
11
10
|
};
|
|
11
|
+
name: 'column-picker-rendered';
|
|
12
12
|
}
|
|
13
13
|
interface InlineEditRendered {
|
|
14
|
-
name: 'inline-edit-rendered';
|
|
15
14
|
metadata?: {
|
|
16
15
|
extensionKey?: string;
|
|
17
16
|
};
|
|
17
|
+
name: 'inline-edit-rendered';
|
|
18
18
|
}
|
|
19
19
|
export type UfoExperience = DatasourceRendered | ColumnPickerRendered | InlineEditRendered;
|
|
20
20
|
export {};
|
|
@@ -13,26 +13,26 @@ export type OnInsertFunction<ADF> = (adf: ADF, analyticsEvent?: UIAnalyticsEvent
|
|
|
13
13
|
export type ConfigModalProps<ADF, Parameters> = {
|
|
14
14
|
/** Unique identifier for which type of datasource is being rendered and for making its requests */
|
|
15
15
|
datasourceId: string;
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/** Parameters for making the data requests necessary to render data within the table */
|
|
19
|
-
parameters?: Parameters;
|
|
16
|
+
/** Disable the view mode display dropdown */
|
|
17
|
+
disableDisplayDropdown?: boolean;
|
|
20
18
|
/** Callback function to be invoked when the modal is closed either via cancel button click, esc keydown, or modal blanket click */
|
|
21
19
|
onCancel: () => void;
|
|
22
20
|
/** Callback function to be invoked when the insert issues button is clicked */
|
|
23
21
|
onInsert: OnInsertFunction<ADF>;
|
|
22
|
+
/** Parameters for making the data requests necessary to render data within the table */
|
|
23
|
+
parameters?: Parameters;
|
|
24
|
+
/**
|
|
25
|
+
* Set the focus to return to the element that had focus before focus lock was activated or pass through a specific ref element
|
|
26
|
+
* Defaults to false, meaning focus remains where it was when the FocusLock was deactivated
|
|
27
|
+
*/
|
|
28
|
+
shouldReturnFocus?: ShouldReturnFocus;
|
|
29
|
+
/** The url that was used to insert a List of Links */
|
|
30
|
+
url?: string;
|
|
24
31
|
/**
|
|
25
32
|
* The view mode that the modal will show on open:
|
|
26
33
|
* - Table = Displays a list of links in table format
|
|
27
34
|
* - Inline = Presents a smart link that shows the count of query results. However, if there's only one result, it converts to an inline smart link of that issue.
|
|
28
35
|
*/
|
|
29
36
|
viewMode?: DisplayViewModes;
|
|
30
|
-
/** Disable the view mode display dropdown */
|
|
31
|
-
disableDisplayDropdown?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Set the focus to return to the element that had focus before focus lock was activated or pass through a specific ref element
|
|
34
|
-
* Defaults to false, meaning focus remains where it was when the FocusLock was deactivated
|
|
35
|
-
*/
|
|
36
|
-
shouldReturnFocus?: ShouldReturnFocus;
|
|
37
37
|
} & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'wrappedColumnKeys' | 'columnCustomSizes'>>;
|
|
38
38
|
export {};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
export type RenderSVGProps = {
|
|
6
|
-
size?: 'xlarge' | 'large' | 'medium';
|
|
7
6
|
alt: string;
|
|
7
|
+
size?: 'xlarge' | 'large' | 'medium';
|
|
8
8
|
};
|
|
9
9
|
type RenderSVGInternalProps = RenderSVGProps & {
|
|
10
|
+
className?: string;
|
|
10
11
|
src: string;
|
|
11
12
|
srcDark?: string;
|
|
12
|
-
className?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const RenderSVG: ({ alt, size, src, srcDark }: RenderSVGInternalProps) => JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type ObjectSchema } from '../types/assets/types';
|
|
2
2
|
import { type AssetsDatasourceParameters } from '../ui/assets-modal/types';
|
|
3
3
|
export type UseAssetsClientState = {
|
|
4
|
-
|
|
5
|
-
workspaceError: Error | undefined;
|
|
4
|
+
assetsClientLoading: boolean;
|
|
6
5
|
existingObjectSchema: ObjectSchema | undefined;
|
|
7
6
|
existingObjectSchemaError: Error | undefined;
|
|
8
7
|
objectSchemas: ObjectSchema[] | undefined;
|
|
9
8
|
objectSchemasError: Error | undefined;
|
|
10
9
|
totalObjectSchemas: number | undefined;
|
|
11
|
-
|
|
10
|
+
workspaceError: Error | undefined;
|
|
11
|
+
workspaceId: string | undefined;
|
|
12
12
|
};
|
|
13
13
|
export declare const useAssetsClient: (initialParameters?: AssetsDatasourceParameters) => UseAssetsClientState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CreateFlagArgs } from '@atlaskit/flag';
|
|
2
2
|
interface DatasourceTableFlagOptions {
|
|
3
|
-
url?: string;
|
|
4
3
|
isFetchAction?: boolean;
|
|
4
|
+
url?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const useDatasourceTableFlag: (options?: DatasourceTableFlagOptions) => {
|
|
7
7
|
showErrorFlag: (args?: Partial<CreateFlagArgs> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type DatasourceDataResponseItem, type DatasourceMeta, type DatasourceParameters, type DatasourceResponseSchemaProperty, type DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
2
|
export interface onNextPageProps {
|
|
3
3
|
isSchemaFromData?: boolean;
|
|
4
|
-
shouldRequestFirstPage?: boolean;
|
|
5
4
|
shouldForceRequest?: boolean;
|
|
5
|
+
shouldRequestFirstPage?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export type NextPageType = (requestInfo?: onNextPageProps) => void;
|
|
8
8
|
interface ResetOptions {
|
|
@@ -12,42 +12,42 @@ interface ResetOptions {
|
|
|
12
12
|
shouldResetColumns?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export interface DatasourceTableState {
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/** Requests the available data with pagination and also sets column headers if not already available */
|
|
18
|
-
onNextPage: NextPageType;
|
|
19
|
-
/** Resets state of the hook to be as if it is a first time it is being called. */
|
|
20
|
-
reset: (options?: ResetOptions) => void;
|
|
21
|
-
/** Requests the available column schemas that can be displayed within the table */
|
|
22
|
-
loadDatasourceDetails: () => Promise<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[];
|
|
25
|
-
/** Items to be rendered within the table */
|
|
26
|
-
responseItems: DatasourceDataResponseItem[];
|
|
27
|
-
/** Indicates whether there is still more data that can be paginated */
|
|
28
|
-
hasNextPage: boolean;
|
|
15
|
+
/** Auth info used to connect to the provider account. */
|
|
16
|
+
authDetails?: DatasourceMeta['auth'];
|
|
29
17
|
/** All available columns for a datasource table to display */
|
|
30
18
|
columns: DatasourceResponseSchemaProperty[];
|
|
31
19
|
/** The keys belonging to all of the currently visible columns in a table */
|
|
32
20
|
defaultVisibleColumnKeys: string[];
|
|
33
|
-
/** Total count of response items available for pagination in a query */
|
|
34
|
-
totalCount?: number;
|
|
35
21
|
/** List of objects types that will be included in the reponse (e.g. 'issues' for Jira) */
|
|
36
22
|
destinationObjectTypes: string[];
|
|
37
23
|
/** Used as an indicated of which provider type is being used - originates from ORS */
|
|
38
24
|
extensionKey?: string;
|
|
25
|
+
/** Indicates whether there is still more data that can be paginated */
|
|
26
|
+
hasNextPage: boolean;
|
|
27
|
+
/** Requests the available column schemas that can be displayed within the table */
|
|
28
|
+
loadDatasourceDetails: () => Promise<void>;
|
|
29
|
+
/** Requests the available data with pagination and also sets column headers if not already available */
|
|
30
|
+
onNextPage: NextPageType;
|
|
39
31
|
/** Indicates which provider name is being used - originates from ORS */
|
|
40
32
|
providerName?: string;
|
|
41
|
-
/**
|
|
42
|
-
|
|
33
|
+
/** Resets state of the hook to be as if it is a first time it is being called. */
|
|
34
|
+
reset: (options?: ResetOptions) => void;
|
|
35
|
+
/** Item ids to be hydrated from a store by consumers [NOTE: They must be in the same order as responseItems] */
|
|
36
|
+
responseItemIds: string[];
|
|
37
|
+
/** Items to be rendered within the table */
|
|
38
|
+
responseItems: DatasourceDataResponseItem[];
|
|
39
|
+
/** The current status of the table for rendering of the different UI states (e.g.: loading, error, etc). */
|
|
40
|
+
status: DatasourceTableStatusType;
|
|
41
|
+
/** Total count of response items available for pagination in a query */
|
|
42
|
+
totalCount?: number;
|
|
43
43
|
}
|
|
44
44
|
export interface DatasourceTableStateProps {
|
|
45
45
|
/** Unique identifier for which type of datasource is being rendered and for making its requests */
|
|
46
46
|
datasourceId: string;
|
|
47
|
-
/** Parameters for making the data requests necessary to render data within the table */
|
|
48
|
-
parameters?: DatasourceParameters;
|
|
49
47
|
/** Keys for each of the columns to be shown in the table */
|
|
50
48
|
fieldKeys?: string[];
|
|
49
|
+
/** Parameters for making the data requests necessary to render data within the table */
|
|
50
|
+
parameters?: DatasourceParameters;
|
|
51
51
|
}
|
|
52
52
|
export declare const useDatasourceTableState: ({ datasourceId, parameters, fieldKeys, }: DatasourceTableStateProps) => DatasourceTableState;
|
|
53
53
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type AtomicActionExecuteRequest } from '@atlaskit/linking-types';
|
|
2
2
|
import type { ExecuteFetch } from '../state/actions';
|
|
3
3
|
export type LoadOptionsProps<T> = {
|
|
4
|
-
fetchInputs?: AtomicActionExecuteRequest['parameters']['inputs'];
|
|
5
|
-
executeFetch?: ExecuteFetch;
|
|
6
4
|
emptyOption?: T;
|
|
5
|
+
executeFetch?: ExecuteFetch;
|
|
6
|
+
fetchInputs?: AtomicActionExecuteRequest['parameters']['inputs'];
|
|
7
7
|
};
|
|
8
8
|
export declare const useLoadOptions: <T>({ fetchInputs, executeFetch, emptyOption, }: LoadOptionsProps<T>) => {
|
|
9
9
|
options: T[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type ObjectSchema } from '../types/assets/types';
|
|
2
2
|
export type FetchObjectSchemasDetails = Pick<UseObjectSchemasState, 'objectSchemas' | 'totalObjectSchemas'>;
|
|
3
3
|
export type UseObjectSchemasState = {
|
|
4
|
-
|
|
5
|
-
objectSchemasError: Error | undefined;
|
|
4
|
+
fetchObjectSchemas: (query: string) => Promise<FetchObjectSchemasDetails>;
|
|
6
5
|
objectSchemas: ObjectSchema[] | undefined;
|
|
6
|
+
objectSchemasError: Error | undefined;
|
|
7
|
+
objectSchemasLoading: boolean;
|
|
7
8
|
totalObjectSchemas: number | undefined;
|
|
8
|
-
fetchObjectSchemas: (query: string) => Promise<FetchObjectSchemasDetails>;
|
|
9
9
|
};
|
|
10
10
|
export declare const useObjectSchemas: (workspaceId: string) => UseObjectSchemasState;
|
|
@@ -9,8 +9,8 @@ export type ValidResult = {
|
|
|
9
9
|
validatedAql: string;
|
|
10
10
|
};
|
|
11
11
|
export type InvalidResult = {
|
|
12
|
-
type: 'invalid';
|
|
13
12
|
error: string;
|
|
13
|
+
type: 'invalid';
|
|
14
14
|
};
|
|
15
15
|
export type AqlValidationResult = IdleResult | LoadingResult | ValidResult | InvalidResult;
|
|
16
16
|
export type AqlValidationResponse = {
|
|
@@ -19,8 +19,8 @@ export type AqlValidationResponse = {
|
|
|
19
19
|
};
|
|
20
20
|
export type UseValidateAqlTextState = {
|
|
21
21
|
debouncedValidation: (value: string | undefined) => Promise<string | undefined>;
|
|
22
|
-
validateAqlText: (aql: string) => Promise<'error' | undefined>;
|
|
23
22
|
lastValidationResult: AqlValidationResult;
|
|
23
|
+
validateAqlText: (aql: string) => Promise<'error' | undefined>;
|
|
24
24
|
};
|
|
25
25
|
export declare const SEARCH_DEBOUNCE = 350;
|
|
26
26
|
export declare const useValidateAqlText: (workspaceId: string, initialValue: string) => UseValidateAqlTextState;
|
|
@@ -79,6 +79,7 @@ declare const _default: {
|
|
|
79
79
|
'linkDataSource.confluence-search.no.confluence.sites.access.title': string;
|
|
80
80
|
'linkDataSource.datasource.table.authConnectButtonText': string;
|
|
81
81
|
'linkDataSource.datasource.table.authScreenDescriptionText': string;
|
|
82
|
+
'linkDataSource.datasource.table.authScreenDescriptionText-appify': string;
|
|
82
83
|
'linkDataSource.datasource.table.authScreenHeaderText': string;
|
|
83
84
|
'linkDataSource.datasource.table.learnMoreAboutSmartLinks': string;
|
|
84
85
|
'linkDataSource.issue-line-table.edit-button-label.non-final': string;
|
|
@@ -79,6 +79,7 @@ declare const _default: {
|
|
|
79
79
|
'linkDataSource.confluence-search.no.confluence.sites.access.title': string;
|
|
80
80
|
'linkDataSource.datasource.table.authConnectButtonText': string;
|
|
81
81
|
'linkDataSource.datasource.table.authScreenDescriptionText': string;
|
|
82
|
+
'linkDataSource.datasource.table.authScreenDescriptionText-appify': string;
|
|
82
83
|
'linkDataSource.datasource.table.authScreenHeaderText': string;
|
|
83
84
|
'linkDataSource.datasource.table.learnMoreAboutSmartLinks': string;
|
|
84
85
|
'linkDataSource.issue-line-table.edit-button-label.non-final': string;
|
|
@@ -79,6 +79,7 @@ declare const _default: {
|
|
|
79
79
|
'linkDataSource.confluence-search.no.confluence.sites.access.title': string;
|
|
80
80
|
'linkDataSource.datasource.table.authConnectButtonText': string;
|
|
81
81
|
'linkDataSource.datasource.table.authScreenDescriptionText': string;
|
|
82
|
+
'linkDataSource.datasource.table.authScreenDescriptionText-appify': string;
|
|
82
83
|
'linkDataSource.datasource.table.authScreenHeaderText': string;
|
|
83
84
|
'linkDataSource.datasource.table.learnMoreAboutSmartLinks': string;
|
|
84
85
|
'linkDataSource.issue-line-table.edit-button-label.non-final': string;
|
|
@@ -4,8 +4,8 @@ interface GetFieldValuesProps {
|
|
|
4
4
|
cloudId: string;
|
|
5
5
|
jql: string;
|
|
6
6
|
jqlTerm: BasicFilterFieldType;
|
|
7
|
-
searchString: string;
|
|
8
7
|
pageCursor?: string;
|
|
8
|
+
searchString: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const useBasicFilterAGG: () => {
|
|
11
11
|
getHydratedJQL: (cloudId: string, jql: string) => Promise<HydrateResponse>;
|
|
@@ -4,9 +4,9 @@ import type { DatasourceDataResponseItem } from '@atlaskit/linking-types';
|
|
|
4
4
|
type UniqueIdentifier = string;
|
|
5
5
|
export interface DatasourceItem {
|
|
6
6
|
ari: string | undefined;
|
|
7
|
+
data: DatasourceDataResponseItem;
|
|
7
8
|
entityType: string | undefined;
|
|
8
9
|
integrationKey: string | undefined;
|
|
9
|
-
data: DatasourceDataResponseItem;
|
|
10
10
|
}
|
|
11
11
|
export interface State {
|
|
12
12
|
items: Record<UniqueIdentifier, DatasourceItem>;
|
|
@@ -15,23 +15,23 @@ export type ObjectSchemaOption = {
|
|
|
15
15
|
};
|
|
16
16
|
export type FetchObjectSchemaResponse = ObjectSchema;
|
|
17
17
|
export type FetchObjectSchemasResponse = {
|
|
18
|
-
|
|
18
|
+
isLast: boolean;
|
|
19
19
|
maxResults: number;
|
|
20
|
+
startAt: number;
|
|
20
21
|
total: number;
|
|
21
22
|
values: ObjectSchema[];
|
|
22
|
-
isLast: boolean;
|
|
23
23
|
};
|
|
24
24
|
export type ValidationError = {
|
|
25
25
|
iql?: string;
|
|
26
26
|
};
|
|
27
27
|
export type AqlValidateResponse = {
|
|
28
|
-
isValid: boolean;
|
|
29
28
|
errorMessages: string[];
|
|
30
29
|
errors?: ValidationError;
|
|
30
|
+
isValid: boolean;
|
|
31
31
|
};
|
|
32
32
|
export declare const objectSchemaKey: "objectSchema";
|
|
33
33
|
export declare const aqlKey: "aql";
|
|
34
34
|
export type SearchForm = {
|
|
35
|
-
[objectSchemaKey]: ObjectSchemaOption | undefined | null;
|
|
36
35
|
[aqlKey]: string;
|
|
36
|
+
[objectSchemaKey]: ObjectSchemaOption | undefined | null;
|
|
37
37
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { type DatasourceDataResponseItem, type DatasourceResponseSchemaProperty, type DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
2
|
export interface RenderAssetsContentProps {
|
|
3
|
-
isFetchingInitialData: boolean;
|
|
4
|
-
status: DatasourceTableStatusType;
|
|
5
|
-
responseItems: DatasourceDataResponseItem[];
|
|
6
|
-
responseItemIds: string[];
|
|
7
|
-
visibleColumnKeys?: string[];
|
|
8
|
-
datasourceId: string;
|
|
9
3
|
aql?: string;
|
|
10
|
-
schemaId?: string;
|
|
11
|
-
onNextPage: () => void;
|
|
12
|
-
hasNextPage: boolean;
|
|
13
|
-
loadDatasourceDetails: () => Promise<void>;
|
|
14
4
|
columns: DatasourceResponseSchemaProperty[];
|
|
5
|
+
datasourceId: string;
|
|
15
6
|
defaultVisibleColumnKeys: string[];
|
|
7
|
+
hasNextPage: boolean;
|
|
8
|
+
isFetchingInitialData: boolean;
|
|
9
|
+
loadDatasourceDetails: () => Promise<void>;
|
|
10
|
+
onNextPage: () => void;
|
|
16
11
|
onVisibleColumnKeysChange: (visibleColumnKeys: string[]) => void;
|
|
12
|
+
responseItemIds: string[];
|
|
13
|
+
responseItems: DatasourceDataResponseItem[];
|
|
14
|
+
schemaId?: string;
|
|
15
|
+
status: DatasourceTableStatusType;
|
|
16
|
+
visibleColumnKeys?: string[];
|
|
17
17
|
}
|
|
18
18
|
export declare const MODAL_HEIGHT = 420;
|
|
19
19
|
export declare const RenderAssetsContent: (props: RenderAssetsContentProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface AqlSearchInputProps {
|
|
2
|
+
isSearching: boolean;
|
|
3
|
+
testId?: string;
|
|
2
4
|
value: string;
|
|
3
5
|
workspaceId: string;
|
|
4
|
-
testId?: string;
|
|
5
|
-
isSearching: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const AqlSearchInput: ({ value, workspaceId, testId, isSearching, }: AqlSearchInputProps) => JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ObjectSchema } from '../../../types/assets/types';
|
|
2
2
|
export type InitialSearchData = {
|
|
3
|
+
aql?: string;
|
|
3
4
|
objectSchema?: ObjectSchema;
|
|
4
5
|
objectSchemas?: ObjectSchema[];
|
|
5
|
-
aql?: string;
|
|
6
6
|
};
|
|
7
7
|
export interface SearchContainerProps {
|
|
8
|
-
workspaceId: string;
|
|
9
8
|
initialSearchData: InitialSearchData;
|
|
10
|
-
onSearch: (aql: string, schemaId: string) => void;
|
|
11
|
-
modalTitle?: JSX.Element;
|
|
12
9
|
isSearching: boolean;
|
|
10
|
+
modalTitle?: JSX.Element;
|
|
11
|
+
onSearch: (aql: string, schemaId: string) => void;
|
|
12
|
+
workspaceId: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const AssetsSearchContainer: (props: SearchContainerProps) => JSX.Element;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type ObjectSchema } from '../../../../types/assets/types';
|
|
6
6
|
type AssetsObjectSchemaSelectProps = {
|
|
7
|
-
value: ObjectSchema | undefined;
|
|
8
|
-
workspaceId: string;
|
|
9
|
-
initialObjectSchemas: ObjectSchema[] | undefined;
|
|
10
7
|
classNamePrefix?: string;
|
|
8
|
+
initialObjectSchemas: ObjectSchema[] | undefined;
|
|
11
9
|
testId?: string;
|
|
10
|
+
value: ObjectSchema | undefined;
|
|
11
|
+
workspaceId: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const SEARCH_DEBOUNCE_MS = 350;
|
|
14
14
|
/**
|