@atlaskit/link-datasource 1.15.3 → 1.16.0

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/analytics/constants.js +1 -1
  3. package/dist/cjs/hooks/useAssetsClient.js +71 -27
  4. package/dist/cjs/services/cmdbService.js +128 -28
  5. package/dist/cjs/services/cmdbService.utils.js +64 -0
  6. package/dist/cjs/ui/assets-modal/modal/index.js +73 -9
  7. package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +25 -12
  8. package/dist/cjs/ui/assets-modal/search-container/index.js +2 -1
  9. package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +21 -63
  10. package/dist/cjs/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +14 -14
  11. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +18 -3
  12. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +5 -0
  13. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/showMoreButton.js +22 -0
  14. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +21 -4
  15. package/dist/es2019/analytics/constants.js +1 -1
  16. package/dist/es2019/hooks/useAssetsClient.js +39 -15
  17. package/dist/es2019/services/cmdbService.js +60 -14
  18. package/dist/es2019/services/cmdbService.utils.js +39 -0
  19. package/dist/es2019/ui/assets-modal/modal/index.js +70 -9
  20. package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +24 -9
  21. package/dist/es2019/ui/assets-modal/search-container/index.js +2 -1
  22. package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +2 -25
  23. package/dist/es2019/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +2 -2
  24. package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +18 -3
  25. package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +5 -0
  26. package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/showMoreButton.js +17 -0
  27. package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +18 -3
  28. package/dist/esm/analytics/constants.js +1 -1
  29. package/dist/esm/hooks/useAssetsClient.js +72 -28
  30. package/dist/esm/services/cmdbService.js +128 -28
  31. package/dist/esm/services/cmdbService.utils.js +57 -0
  32. package/dist/esm/ui/assets-modal/modal/index.js +73 -9
  33. package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +24 -9
  34. package/dist/esm/ui/assets-modal/search-container/index.js +2 -1
  35. package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +18 -60
  36. package/dist/esm/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +14 -14
  37. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +18 -3
  38. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +5 -0
  39. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/showMoreButton.js +15 -0
  40. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +21 -4
  41. package/dist/types/hooks/useAssetsClient.d.ts +5 -1
  42. package/dist/types/services/cmdbService.utils.d.ts +9 -0
  43. package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +3 -2
  44. package/dist/types/ui/assets-modal/search-container/index.d.ts +1 -0
  45. package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +2 -1
  46. package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
  47. package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +5 -0
  48. package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/showMoreButton.d.ts +6 -0
  49. package/dist/types/ui/jira-issues-modal/basic-filters/ui/menu-list/index.d.ts +4 -1
  50. package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +5 -1
  51. package/dist/types-ts4.5/services/cmdbService.utils.d.ts +9 -0
  52. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +3 -2
  53. package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +1 -0
  54. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +2 -1
  55. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
  56. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +5 -0
  57. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/showMoreButton.d.ts +6 -0
  58. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/menu-list/index.d.ts +4 -1
  59. package/package.json +1 -1
@@ -31,28 +31,29 @@ export var useFilterOptions = function useFilterOptions(_ref) {
31
31
  var _ref3,
32
32
  pageCursor,
33
33
  searchString,
34
+ isNewSearch,
34
35
  isRequestLikeInitialSearch,
35
36
  initialResponseData,
36
37
  response,
37
- isNewSearch,
38
38
  _args = arguments;
39
39
  return _regeneratorRuntime.wrap(function _callee$(_context) {
40
40
  while (1) switch (_context.prev = _context.next) {
41
41
  case 0:
42
42
  _ref3 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, pageCursor = _ref3.pageCursor, searchString = _ref3.searchString;
43
- setStatus('loading');
43
+ isNewSearch = !pageCursor;
44
+ isNewSearch ? setStatus('loading') : setStatus('loadingMore');
44
45
  isRequestLikeInitialSearch = !pageCursor && !searchString;
45
46
  initialResponseData = initialData.current;
46
- _context.prev = 4;
47
+ _context.prev = 5;
47
48
  if (!(isRequestLikeInitialSearch && initialResponseData)) {
48
- _context.next = 9;
49
+ _context.next = 10;
49
50
  break;
50
51
  }
51
52
  _context.t0 = initialResponseData;
52
- _context.next = 12;
53
+ _context.next = 13;
53
54
  break;
54
- case 9:
55
- _context.next = 11;
55
+ case 10:
56
+ _context.next = 12;
56
57
  return getFieldValues({
57
58
  cloudId: cloudId,
58
59
  jql: '',
@@ -60,18 +61,17 @@ export var useFilterOptions = function useFilterOptions(_ref) {
60
61
  searchString: searchString,
61
62
  pageCursor: pageCursor
62
63
  });
63
- case 11:
64
- _context.t0 = _context.sent;
65
64
  case 12:
65
+ _context.t0 = _context.sent;
66
+ case 13:
66
67
  response = _context.t0;
67
68
  if (!(response.errors && response.errors.length > 0)) {
68
- _context.next = 16;
69
+ _context.next = 17;
69
70
  break;
70
71
  }
71
72
  setStatus('rejected');
72
73
  return _context.abrupt("return");
73
- case 16:
74
- isNewSearch = !pageCursor;
74
+ case 17:
75
75
  if (isNewSearch) {
76
76
  setFilterOptions(mapFieldValuesToFilterOptions(response));
77
77
  if (isRequestLikeInitialSearch) {
@@ -91,13 +91,13 @@ export var useFilterOptions = function useFilterOptions(_ref) {
91
91
  break;
92
92
  case 23:
93
93
  _context.prev = 23;
94
- _context.t1 = _context["catch"](4);
94
+ _context.t1 = _context["catch"](5);
95
95
  setStatus('rejected');
96
96
  case 26:
97
97
  case "end":
98
98
  return _context.stop();
99
99
  }
100
- }, _callee, null, [[4, 23]]);
100
+ }, _callee, null, [[5, 23]]);
101
101
  })), [cloudId, filterOptions, filterType, getFieldValues]);
102
102
  return {
103
103
  filterOptions: filterOptions,
@@ -47,7 +47,8 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
47
47
  filterOptions = _useFilterOptions.filterOptions,
48
48
  fetchFilterOptions = _useFilterOptions.fetchFilterOptions,
49
49
  totalCount = _useFilterOptions.totalCount,
50
- status = _useFilterOptions.status;
50
+ status = _useFilterOptions.status,
51
+ pageCursor = _useFilterOptions.pageCursor;
51
52
  var _useDebouncedCallback = useDebouncedCallback(function (searchString) {
52
53
  fetchFilterOptions({
53
54
  searchString: searchString
@@ -86,6 +87,14 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
86
87
  });
87
88
  }
88
89
  }, [fetchFilterOptions, searchTerm, status]);
90
+ var handleShowMore = useCallback(function () {
91
+ if (pageCursor) {
92
+ fetchFilterOptions({
93
+ pageCursor: pageCursor,
94
+ searchString: searchTerm
95
+ });
96
+ }
97
+ }, [fetchFilterOptions, pageCursor, searchTerm]);
89
98
  useEffect(function () {
90
99
  if (status === 'resolved') {
91
100
  var _pickerRef$current;
@@ -96,8 +105,11 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
96
105
  var filterOptionsLength = filterOptions.length;
97
106
  var isError = status === 'rejected';
98
107
  var isLoading = status === 'loading' || status === 'empty';
108
+ var isLoadingMore = status === 'loadingMore';
99
109
  var isEmpty = status === 'resolved' && filterOptionsLength === 0;
100
- var shouldShowFooter = status === 'resolved' && filterOptionsLength > 0;
110
+ var areAllResultsLoaded = filterOptions.length === totalCount;
111
+ var shouldShowFooter = (status === 'resolved' || isLoadingMore) && filterOptions.length > 0; // footer should not disappear when there is an inline spinner for loading more data
112
+ var shouldDisplayShowMoreButton = status === 'resolved' && !!pageCursor && !areAllResultsLoaded;
101
113
  var options = isLoading || isError ? [] : filterOptions; // if not set to [], for eg: on loading, no loading UI will be shown
102
114
 
103
115
  return /*#__PURE__*/React.createElement(PopupSelect, {
@@ -126,7 +138,10 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
126
138
  return /*#__PURE__*/React.createElement(CustomMenuList, _extends({}, props, {
127
139
  isError: isError,
128
140
  isEmpty: isEmpty,
129
- isLoading: isLoading
141
+ isLoading: isLoading,
142
+ isLoadingMore: isLoadingMore,
143
+ showMore: shouldDisplayShowMoreButton,
144
+ handleShowMore: handleShowMore
130
145
  }));
131
146
  },
132
147
  DropdownIndicator: CustomDropdownIndicator,
@@ -28,5 +28,10 @@ export var asyncPopupSelectMessages = {
28
28
  id: 'linkDataSource.basic-filter.assignee.label',
29
29
  description: 'Label to be displayed for assignee filter dropdown button.',
30
30
  defaultMessage: 'Assignee'
31
+ },
32
+ showMoreMessage: {
33
+ id: 'linkDataSource.basic-filter.showMoreButton',
34
+ defaultMessage: 'Show more',
35
+ description: 'The text to show more options in dropdown'
31
36
  }
32
37
  };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { useIntl } from 'react-intl-next';
3
+ import Button from '@atlaskit/button';
4
+ import { asyncPopupSelectMessages } from './messages';
5
+ var ShowMoreButton = function ShowMoreButton(_ref) {
6
+ var onShowMore = _ref.onShowMore;
7
+ var _useIntl = useIntl(),
8
+ formatMessage = _useIntl.formatMessage;
9
+ return /*#__PURE__*/React.createElement(Button, {
10
+ onClick: onShowMore,
11
+ appearance: "link",
12
+ testId: "jlol-basic-filter-popup-select--show-more-button"
13
+ }, formatMessage(asyncPopupSelectMessages.showMoreMessage));
14
+ };
15
+ export default ShowMoreButton;
@@ -1,17 +1,32 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
- var _excluded = ["isLoading", "isError", "isEmpty", "children"];
2
+ var _excluded = ["isLoading", "isLoadingMore", "isError", "isEmpty", "showMore", "handleShowMore", "children"];
3
3
  import React from 'react';
4
+ import { Flex } from '@atlaskit/primitives';
4
5
  import { components } from '@atlaskit/select';
6
+ import Spinner from '@atlaskit/spinner';
7
+ import ShowMoreButton from '../async-popup-select/showMoreButton';
5
8
  import CustomErrorMessage from './errorMessage';
6
9
  import CustomDropdownLoadingMessage from './loadingMessage';
7
10
  import CustomNoOptionsMessage from './noOptionsMessage';
8
11
  var CustomMenuList = function CustomMenuList(_ref) {
9
12
  var isLoading = _ref.isLoading,
13
+ isLoadingMore = _ref.isLoadingMore,
10
14
  isError = _ref.isError,
11
15
  isEmpty = _ref.isEmpty,
16
+ showMore = _ref.showMore,
17
+ handleShowMore = _ref.handleShowMore,
12
18
  children = _ref.children,
13
19
  props = _objectWithoutProperties(_ref, _excluded);
14
- var getChildComponent = function getChildComponent() {
20
+ var shouldDisplayShowMore = showMore && !isLoadingMore;
21
+ var isLoadingMoreData = !shouldDisplayShowMore && isLoadingMore;
22
+ var InlineSpinner = function InlineSpinner() {
23
+ return /*#__PURE__*/React.createElement(Flex, {
24
+ justifyContent: "center"
25
+ }, /*#__PURE__*/React.createElement(Spinner, {
26
+ size: "medium"
27
+ }));
28
+ };
29
+ var renderChildren = function renderChildren() {
15
30
  if (isLoading) {
16
31
  return /*#__PURE__*/React.createElement(CustomDropdownLoadingMessage, null);
17
32
  }
@@ -21,8 +36,10 @@ var CustomMenuList = function CustomMenuList(_ref) {
21
36
  if (isEmpty) {
22
37
  return /*#__PURE__*/React.createElement(CustomNoOptionsMessage, null);
23
38
  }
24
- return children;
39
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children, shouldDisplayShowMore && /*#__PURE__*/React.createElement(ShowMoreButton, {
40
+ onShowMore: handleShowMore
41
+ }), isLoadingMoreData && /*#__PURE__*/React.createElement(InlineSpinner, null));
25
42
  };
26
- return /*#__PURE__*/React.createElement(components.MenuList, props, getChildComponent());
43
+ return /*#__PURE__*/React.createElement(components.MenuList, props, renderChildren());
27
44
  };
28
45
  export default CustomMenuList;
@@ -3,7 +3,11 @@ import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
3
3
  export type UseAssetsClientState = {
4
4
  workspaceId: string | undefined;
5
5
  workspaceError: Error | undefined;
6
- objectSchema: ObjectSchema | undefined;
6
+ existingObjectSchema: ObjectSchema | undefined;
7
+ existingObjectSchemaError: Error | undefined;
8
+ objectSchemas: ObjectSchema[] | undefined;
9
+ objectSchemasError: Error | undefined;
10
+ totalObjectSchemas: number | undefined;
7
11
  assetsClientLoading: boolean;
8
12
  };
9
13
  export declare const useAssetsClient: (initialParameters?: AssetsDatasourceParameters) => UseAssetsClientState;
@@ -0,0 +1,9 @@
1
+ export declare const mapFetchErrors: (error: any) => Error;
2
+ export declare const getStatusCodeGroup: (error: Error) => "1xx" | "3xx" | "4xx" | "5xx" | "unknown";
3
+ export declare class PermissionError extends Error {
4
+ constructor(message: string);
5
+ }
6
+ export declare class FetchError extends Error {
7
+ statusCode: number;
8
+ constructor(statusCode: number, message?: string);
9
+ }
@@ -1,6 +1,7 @@
1
- /// <reference types="react" />
1
+ import { jsx } from '@emotion/react';
2
2
  import { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types';
3
3
  export interface RenderAssetsContentProps {
4
+ isFetchingInitialData: boolean;
4
5
  status: DatasourceTableStatusType;
5
6
  responseItems: DatasourceDataResponseItem[];
6
7
  visibleColumnKeys?: string[];
@@ -15,4 +16,4 @@ export interface RenderAssetsContentProps {
15
16
  onVisibleColumnKeysChange: (visibleColumnKeys: string[]) => void;
16
17
  modalRenderInstanceId: string;
17
18
  }
18
- export declare const RenderAssetsContent: (props: RenderAssetsContentProps) => JSX.Element;
19
+ export declare const RenderAssetsContent: (props: RenderAssetsContentProps) => jsx.JSX.Element;
@@ -4,6 +4,7 @@ import { jsx } from '@emotion/react';
4
4
  import type { ObjectSchema } from '../../../types/assets/types';
5
5
  export type InitialSearchData = {
6
6
  objectSchema?: ObjectSchema;
7
+ objectSchemas?: ObjectSchema[];
7
8
  aql?: string;
8
9
  };
9
10
  export interface SearchContainerProps {
@@ -4,6 +4,7 @@ import { ObjectSchema } from '../../../../types/assets/types';
4
4
  type AssetsObjectSchemaSelectProps = {
5
5
  value: ObjectSchema | undefined;
6
6
  workspaceId: string;
7
+ initialObjectSchemas: ObjectSchema[] | undefined;
7
8
  classNamePrefix?: string;
8
9
  };
9
10
  export declare const SEARCH_DEBOUNCE_MS = 350;
@@ -17,5 +18,5 @@ export declare const selectInAModalStyleFixProps: {
17
18
  };
18
19
  menuPortalTarget: HTMLElement;
19
20
  };
20
- export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, classNamePrefix, }: AssetsObjectSchemaSelectProps) => jsx.JSX.Element;
21
+ export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, initialObjectSchemas, classNamePrefix, }: AssetsObjectSchemaSelectProps) => jsx.JSX.Element;
21
22
  export {};
@@ -12,7 +12,7 @@ export interface FilterOptionsState {
12
12
  fetchFilterOptions: (prop?: FetchFilterOptionsProps) => Promise<void>;
13
13
  totalCount: number;
14
14
  pageCursor?: string;
15
- status: 'empty' | 'loading' | 'resolved' | 'rejected';
15
+ status: 'empty' | 'loading' | 'resolved' | 'rejected' | 'loadingMore';
16
16
  }
17
17
  export declare const useFilterOptions: ({ filterType, cloudId, }: FilterOptionsProps) => FilterOptionsState;
18
18
  export {};
@@ -29,4 +29,9 @@ export declare const asyncPopupSelectMessages: {
29
29
  description: string;
30
30
  defaultMessage: string;
31
31
  };
32
+ showMoreMessage: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type ShowMoreButtonProps = {
3
+ onShowMore: () => void;
4
+ };
5
+ declare const ShowMoreButton: ({ onShowMore }: ShowMoreButtonProps) => JSX.Element;
6
+ export default ShowMoreButton;
@@ -4,7 +4,10 @@ import { SelectOption } from '../../types';
4
4
  type CustomProps = {
5
5
  isError?: boolean;
6
6
  isLoading?: boolean;
7
+ isLoadingMore?: boolean;
7
8
  isEmpty?: boolean;
9
+ showMore?: boolean;
10
+ handleShowMore: () => void;
8
11
  };
9
- declare const CustomMenuList: ({ isLoading, isError, isEmpty, children, ...props }: MenuListComponentProps<SelectOption, true> & CustomProps) => JSX.Element;
12
+ declare const CustomMenuList: ({ isLoading, isLoadingMore, isError, isEmpty, showMore, handleShowMore, children, ...props }: MenuListComponentProps<SelectOption, true> & CustomProps) => JSX.Element;
10
13
  export default CustomMenuList;
@@ -3,7 +3,11 @@ import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
3
3
  export type UseAssetsClientState = {
4
4
  workspaceId: string | undefined;
5
5
  workspaceError: Error | undefined;
6
- objectSchema: ObjectSchema | undefined;
6
+ existingObjectSchema: ObjectSchema | undefined;
7
+ existingObjectSchemaError: Error | undefined;
8
+ objectSchemas: ObjectSchema[] | undefined;
9
+ objectSchemasError: Error | undefined;
10
+ totalObjectSchemas: number | undefined;
7
11
  assetsClientLoading: boolean;
8
12
  };
9
13
  export declare const useAssetsClient: (initialParameters?: AssetsDatasourceParameters) => UseAssetsClientState;
@@ -0,0 +1,9 @@
1
+ export declare const mapFetchErrors: (error: any) => Error;
2
+ export declare const getStatusCodeGroup: (error: Error) => "1xx" | "3xx" | "4xx" | "5xx" | "unknown";
3
+ export declare class PermissionError extends Error {
4
+ constructor(message: string);
5
+ }
6
+ export declare class FetchError extends Error {
7
+ statusCode: number;
8
+ constructor(statusCode: number, message?: string);
9
+ }
@@ -1,6 +1,7 @@
1
- /// <reference types="react" />
1
+ import { jsx } from '@emotion/react';
2
2
  import { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types';
3
3
  export interface RenderAssetsContentProps {
4
+ isFetchingInitialData: boolean;
4
5
  status: DatasourceTableStatusType;
5
6
  responseItems: DatasourceDataResponseItem[];
6
7
  visibleColumnKeys?: string[];
@@ -15,4 +16,4 @@ export interface RenderAssetsContentProps {
15
16
  onVisibleColumnKeysChange: (visibleColumnKeys: string[]) => void;
16
17
  modalRenderInstanceId: string;
17
18
  }
18
- export declare const RenderAssetsContent: (props: RenderAssetsContentProps) => JSX.Element;
19
+ export declare const RenderAssetsContent: (props: RenderAssetsContentProps) => jsx.JSX.Element;
@@ -4,6 +4,7 @@ import { jsx } from '@emotion/react';
4
4
  import type { ObjectSchema } from '../../../types/assets/types';
5
5
  export type InitialSearchData = {
6
6
  objectSchema?: ObjectSchema;
7
+ objectSchemas?: ObjectSchema[];
7
8
  aql?: string;
8
9
  };
9
10
  export interface SearchContainerProps {
@@ -4,6 +4,7 @@ import { ObjectSchema } from '../../../../types/assets/types';
4
4
  type AssetsObjectSchemaSelectProps = {
5
5
  value: ObjectSchema | undefined;
6
6
  workspaceId: string;
7
+ initialObjectSchemas: ObjectSchema[] | undefined;
7
8
  classNamePrefix?: string;
8
9
  };
9
10
  export declare const SEARCH_DEBOUNCE_MS = 350;
@@ -17,5 +18,5 @@ export declare const selectInAModalStyleFixProps: {
17
18
  };
18
19
  menuPortalTarget: HTMLElement;
19
20
  };
20
- export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, classNamePrefix, }: AssetsObjectSchemaSelectProps) => jsx.JSX.Element;
21
+ export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, initialObjectSchemas, classNamePrefix, }: AssetsObjectSchemaSelectProps) => jsx.JSX.Element;
21
22
  export {};
@@ -12,7 +12,7 @@ export interface FilterOptionsState {
12
12
  fetchFilterOptions: (prop?: FetchFilterOptionsProps) => Promise<void>;
13
13
  totalCount: number;
14
14
  pageCursor?: string;
15
- status: 'empty' | 'loading' | 'resolved' | 'rejected';
15
+ status: 'empty' | 'loading' | 'resolved' | 'rejected' | 'loadingMore';
16
16
  }
17
17
  export declare const useFilterOptions: ({ filterType, cloudId, }: FilterOptionsProps) => FilterOptionsState;
18
18
  export {};
@@ -29,4 +29,9 @@ export declare const asyncPopupSelectMessages: {
29
29
  description: string;
30
30
  defaultMessage: string;
31
31
  };
32
+ showMoreMessage: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type ShowMoreButtonProps = {
3
+ onShowMore: () => void;
4
+ };
5
+ declare const ShowMoreButton: ({ onShowMore }: ShowMoreButtonProps) => JSX.Element;
6
+ export default ShowMoreButton;
@@ -4,7 +4,10 @@ import { SelectOption } from '../../types';
4
4
  type CustomProps = {
5
5
  isError?: boolean;
6
6
  isLoading?: boolean;
7
+ isLoadingMore?: boolean;
7
8
  isEmpty?: boolean;
9
+ showMore?: boolean;
10
+ handleShowMore: () => void;
8
11
  };
9
- declare const CustomMenuList: ({ isLoading, isError, isEmpty, children, ...props }: MenuListComponentProps<SelectOption, true> & CustomProps) => JSX.Element;
12
+ declare const CustomMenuList: ({ isLoading, isLoadingMore, isError, isEmpty, showMore, handleShowMore, children, ...props }: MenuListComponentProps<SelectOption, true> & CustomProps) => JSX.Element;
10
13
  export default CustomMenuList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "1.15.3",
3
+ "version": "1.16.0",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"