@atlaskit/link-datasource 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/analytics/constants.js +1 -1
  3. package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
  4. package/dist/cjs/ui/jira-issues-modal/modal/index.js +4 -2
  5. package/dist/es2019/analytics/constants.js +1 -1
  6. package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
  7. package/dist/es2019/ui/jira-issues-modal/modal/index.js +3 -2
  8. package/dist/esm/analytics/constants.js +1 -1
  9. package/dist/esm/ui/assets-modal/modal/index.js +1 -1
  10. package/dist/esm/ui/jira-issues-modal/modal/index.js +4 -2
  11. package/dist/types/ui/jira-issues-modal/types.d.ts +1 -0
  12. package/dist/types-ts4.5/analytics/constants.d.ts +3 -0
  13. package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +134 -0
  14. package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +31 -0
  15. package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +7 -0
  16. package/dist/types-ts4.5/analytics/index.d.ts +8 -0
  17. package/dist/types-ts4.5/analytics/types.d.ts +18 -0
  18. package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +2 -0
  19. package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +22 -0
  20. package/dist/types-ts4.5/analytics/ufoExperiences/index.d.ts +5 -0
  21. package/dist/types-ts4.5/analytics/ufoExperiences/types.d.ts +14 -0
  22. package/dist/types-ts4.5/analytics/utils.d.ts +3 -0
  23. package/dist/types-ts4.5/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +3 -0
  24. package/dist/types-ts4.5/analytics/wrappers/render-failed/index.d.ts +2 -0
  25. package/dist/types-ts4.5/common/types.d.ts +1 -0
  26. package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +9 -0
  27. package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +31 -0
  28. package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +8 -0
  29. package/dist/types-ts4.5/hooks/useValidateAqlText.d.ts +7 -0
  30. package/dist/types-ts4.5/i18n/cs.d.ts +54 -0
  31. package/dist/types-ts4.5/i18n/da.d.ts +54 -0
  32. package/dist/types-ts4.5/i18n/de.d.ts +54 -0
  33. package/dist/types-ts4.5/i18n/en.d.ts +55 -0
  34. package/dist/types-ts4.5/i18n/en_GB.d.ts +55 -0
  35. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +55 -0
  36. package/dist/types-ts4.5/i18n/es.d.ts +54 -0
  37. package/dist/types-ts4.5/i18n/fi.d.ts +54 -0
  38. package/dist/types-ts4.5/i18n/fr.d.ts +54 -0
  39. package/dist/types-ts4.5/i18n/hu.d.ts +54 -0
  40. package/dist/types-ts4.5/i18n/it.d.ts +54 -0
  41. package/dist/types-ts4.5/i18n/ja.d.ts +54 -0
  42. package/dist/types-ts4.5/i18n/ko.d.ts +54 -0
  43. package/dist/types-ts4.5/i18n/nb.d.ts +54 -0
  44. package/dist/types-ts4.5/i18n/nl.d.ts +54 -0
  45. package/dist/types-ts4.5/i18n/pl.d.ts +54 -0
  46. package/dist/types-ts4.5/i18n/pt_BR.d.ts +54 -0
  47. package/dist/types-ts4.5/i18n/ru.d.ts +54 -0
  48. package/dist/types-ts4.5/i18n/sv.d.ts +54 -0
  49. package/dist/types-ts4.5/i18n/th.d.ts +54 -0
  50. package/dist/types-ts4.5/i18n/tr.d.ts +54 -0
  51. package/dist/types-ts4.5/i18n/uk.d.ts +54 -0
  52. package/dist/types-ts4.5/i18n/vi.d.ts +54 -0
  53. package/dist/types-ts4.5/i18n/zh.d.ts +54 -0
  54. package/dist/types-ts4.5/i18n/zh_TW.d.ts +54 -0
  55. package/dist/types-ts4.5/index.d.ts +10 -0
  56. package/dist/types-ts4.5/services/cmdbService.d.ts +7 -0
  57. package/dist/types-ts4.5/services/getAvailableJiraSites.d.ts +6 -0
  58. package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +6 -0
  59. package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +5 -0
  60. package/dist/types-ts4.5/types/assets/types.d.ts +34 -0
  61. package/dist/types-ts4.5/ui/assets-modal/index.d.ts +5 -0
  62. package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +3 -0
  63. package/dist/types-ts4.5/ui/assets-modal/modal/messages.d.ts +17 -0
  64. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +17 -0
  65. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg.d.ts +2 -0
  66. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +3 -0
  67. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.d.ts +17 -0
  68. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +9 -0
  69. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +3 -0
  70. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/messages.d.ts +12 -0
  71. package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +17 -0
  72. package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +8 -0
  73. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +21 -0
  74. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +3 -0
  75. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/messages.d.ts +17 -0
  76. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +2 -0
  77. package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +19 -0
  78. package/dist/types-ts4.5/ui/assets-modal/types.d.ts +23 -0
  79. package/dist/types-ts4.5/ui/common/error-state/access-required-svg.d.ts +2 -0
  80. package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +6 -0
  81. package/dist/types-ts4.5/ui/common/error-state/loading-error-svg.d.ts +2 -0
  82. package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +6 -0
  83. package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +47 -0
  84. package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +6 -0
  85. package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +6 -0
  86. package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +3 -0
  87. package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +4 -0
  88. package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +8 -0
  89. package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +5 -0
  90. package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +3 -0
  91. package/dist/types-ts4.5/ui/issue-like-table/column-picker/messages.d.ts +17 -0
  92. package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +8 -0
  93. package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +7 -0
  94. package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +12 -0
  95. package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +9 -0
  96. package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +6 -0
  97. package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +6 -0
  98. package/dist/types-ts4.5/ui/issue-like-table/empty-state/types.d.ts +2 -0
  99. package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +18 -0
  100. package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +9 -0
  101. package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/messages.d.ts +12 -0
  102. package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +10 -0
  103. package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +8 -0
  104. package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +2 -0
  105. package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +8 -0
  106. package/dist/types-ts4.5/ui/issue-like-table/render-type/number/index.d.ts +9 -0
  107. package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +6 -0
  108. package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +8 -0
  109. package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +9 -0
  110. package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +9 -0
  111. package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +11 -0
  112. package/dist/types-ts4.5/ui/issue-like-table/render-type/user/messages.d.ts +7 -0
  113. package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +18 -0
  114. package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +53 -0
  115. package/dist/types-ts4.5/ui/issue-like-table/useIsOnScreen.d.ts +1 -0
  116. package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/index.d.ts +12 -0
  117. package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/messages.d.ts +7 -0
  118. package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +5 -0
  119. package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.d.ts +2 -0
  120. package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/index.d.ts +3 -0
  121. package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/messages.d.ts +17 -0
  122. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/hooks/useBasicFilterHook.d.ts +4 -0
  123. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/index.d.ts +1 -0
  124. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/common/dropdown/index.d.ts +3 -0
  125. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/containers/project/index.d.ts +3 -0
  126. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/index.d.ts +3 -0
  127. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +7 -0
  128. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +10 -0
  129. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/messages.d.ts +7 -0
  130. package/dist/types-ts4.5/ui/jira-issues-modal/jql-editor/index.d.ts +9 -0
  131. package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +11 -0
  132. package/dist/types-ts4.5/ui/jira-issues-modal/modal/messages.d.ts +42 -0
  133. package/dist/types-ts4.5/ui/jira-issues-modal/mode-switcher/index.d.ts +12 -0
  134. package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/index.d.ts +10 -0
  135. package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/messages.d.ts +12 -0
  136. package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +44 -0
  137. package/dist/types-ts4.5/ui/table-footer/index.d.ts +8 -0
  138. package/dist/types-ts4.5/ui/table-footer/messages.d.ts +17 -0
  139. package/dist/types-ts4.5/ui/table-footer/sync-info/index.d.ts +4 -0
  140. package/dist/types-ts4.5/ui/table-footer/sync-info/messages.d.ts +12 -0
  141. package/package.json +3 -3
  142. package/report.api.md +10 -7
  143. package/tmp/api-report-tmp.d.ts +156 -0
@@ -0,0 +1,6 @@
1
+ import { GetAutocompleteInitialData } from '@atlaskit/jql-editor-autocomplete-rest';
2
+ export type AutocompleteInitialDataResponse = {
3
+ jqlFields: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFields'];
4
+ jqlFunctions: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFunctions'];
5
+ };
6
+ export declare const makeGetJqlAutocompleteData: (cloudId: string) => (url: string) => Promise<AutocompleteInitialDataResponse>;
@@ -0,0 +1,5 @@
1
+ import { GetAutocompleteSuggestions } from '@atlaskit/jql-editor-autocomplete-rest';
2
+ export type AutocompleteSuggestionsResponse = {
3
+ results: Awaited<ReturnType<GetAutocompleteSuggestions>>['results'];
4
+ };
5
+ export declare const makeGetJqlSuggestionsData: (cloudId: string) => (url: string) => Promise<AutocompleteSuggestionsResponse>;
@@ -0,0 +1,34 @@
1
+ export type GetWorkspaceDetailsResponse = {
2
+ results: [
3
+ {
4
+ id: string;
5
+ }
6
+ ];
7
+ };
8
+ export type ObjectSchema = {
9
+ id: string;
10
+ name: string;
11
+ };
12
+ export type ObjectSchemaOption = {
13
+ label: string;
14
+ value: string;
15
+ };
16
+ export type FetchObjectSchemaResponse = ObjectSchema;
17
+ export type FetchObjectSchemasResponse = {
18
+ startAt: number;
19
+ maxResults: number;
20
+ total: number;
21
+ values: ObjectSchema[];
22
+ isLast: boolean;
23
+ };
24
+ export type AqlValidateResponse = {
25
+ isValid: boolean;
26
+ errorMessages: string[];
27
+ errors: {};
28
+ };
29
+ export declare const objectSchemaKey: "objectSchema";
30
+ export declare const aqlKey: "aql";
31
+ export type SearchForm = {
32
+ [objectSchemaKey]: ObjectSchemaOption | undefined | null;
33
+ [aqlKey]: string;
34
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { AssetsConfigModalProps } from './types';
3
+ export declare const ASSETS_LIST_OF_LINKS_DATASOURCE_ID = "361d618a-3c04-40ad-9b27-3c8ea6927020";
4
+ declare const AssetsConfigModalWithWrappers: (props: AssetsConfigModalProps) => JSX.Element;
5
+ export default AssetsConfigModalWithWrappers;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { AssetsConfigModalProps } from '../types';
3
+ export declare const AssetsConfigModal: import("react").ForwardRefExoticComponent<AssetsConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,17 @@
1
+ export declare const modalMessages: {
2
+ cancelButtonText: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ insertIssuesButtonText: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ insertObjectsTitle: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
17
+ };
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types';
3
+ export interface RenderAssetsContentProps {
4
+ status: DatasourceTableStatusType;
5
+ responseItems: DatasourceDataResponseItem[];
6
+ visibleColumnKeys?: string[];
7
+ datasourceId: string;
8
+ aql?: string;
9
+ schemaId?: String;
10
+ onNextPage: () => void;
11
+ hasNextPage: boolean;
12
+ loadDatasourceDetails: () => void;
13
+ columns: DatasourceResponseSchemaProperty[];
14
+ defaultVisibleColumnKeys: string[];
15
+ onVisibleColumnKeysChange: (visibleColumnKeys: string[]) => void;
16
+ }
17
+ export declare const RenderAssetsContent: (props: RenderAssetsContentProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CrystalBallSVG: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ export declare const InitialStateView: () => jsx.JSX.Element;
@@ -0,0 +1,17 @@
1
+ export declare const initialStateViewMessages: {
2
+ searchTitle: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ searchDescription: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ learnMoreLink: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
17
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx } from '@emotion/react';
2
+ export interface AqlSearchInputProps {
3
+ value: string;
4
+ workspaceId: string;
5
+ testId?: string;
6
+ isSearching: boolean;
7
+ }
8
+ export declare const SEARCH_DEBOUNCE_MS = 350;
9
+ export declare const AqlSearchInput: ({ value, workspaceId, testId, isSearching, }: AqlSearchInputProps) => jsx.JSX.Element;
@@ -0,0 +1,3 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ export declare const AssetsAqlSearchInputSkeleton: () => jsx.JSX.Element;
@@ -0,0 +1,12 @@
1
+ export declare const searchInputMessages: {
2
+ placeholder: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ helpTooltipText: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ };
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ /** @jsx jsx */
3
+ import { jsx } from '@emotion/react';
4
+ import type { ObjectSchema } from '../../../types/assets/types';
5
+ type InitialSearchData = {
6
+ objectSchema?: ObjectSchema;
7
+ aql?: string;
8
+ };
9
+ export interface SearchContainerProps {
10
+ workspaceId: string;
11
+ initialSearchData: InitialSearchData;
12
+ onSearch: (aql: string, schemaId: string) => void;
13
+ modalTitle?: JSX.Element;
14
+ isSearching: boolean;
15
+ }
16
+ export declare const AssetsSearchContainer: (props: SearchContainerProps) => jsx.JSX.Element;
17
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ /** @jsx jsx */
3
+ import { jsx } from '@emotion/react';
4
+ type AssetsSearchConatinerLoadingProps = {
5
+ modalTitle?: JSX.Element;
6
+ };
7
+ export declare const AssetsSearchContainerLoading: ({ modalTitle, }: AssetsSearchConatinerLoadingProps) => jsx.JSX.Element;
8
+ export {};
@@ -0,0 +1,21 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { ObjectSchema } from '../../../../types/assets/types';
4
+ type AssetsObjectSchemaSelectProps = {
5
+ value: ObjectSchema | undefined;
6
+ workspaceId: string;
7
+ classNamePrefix?: string;
8
+ };
9
+ export declare const SEARCH_DEBOUNCE_MS = 350;
10
+ /**
11
+ * Rendering a `<Select>` in a `<Modal>` results in the select options getting cut off by the bottom of the modal and
12
+ * scrolling. This is a work-around for that, see https://atlassian.slack.com/archives/CFJ9DU39U/p1623179496484100
13
+ */
14
+ export declare const selectInAModalStyleFixProps: {
15
+ styles: {
16
+ menuPortal: (base: any) => any;
17
+ };
18
+ menuPortalTarget: HTMLElement;
19
+ };
20
+ export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, classNamePrefix, }: AssetsObjectSchemaSelectProps) => jsx.JSX.Element;
21
+ export {};
@@ -0,0 +1,3 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ export declare const AssetsObjectSchemaSelectSkeleton: () => jsx.JSX.Element;
@@ -0,0 +1,17 @@
1
+ export declare const objectSchemaSelectMessages: {
2
+ label: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ placeholder: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ schemaRequired: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
17
+ };
@@ -0,0 +1,2 @@
1
+ import { ObjectSchema, ObjectSchemaOption } from '../../../../types/assets/types';
2
+ export declare const objectSchemaToSelectOption: (objectSchema: ObjectSchema) => ObjectSchemaOption;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ export declare const FormRowContainer: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ isNarrowGap?: boolean | undefined;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const FormContainer: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ }, import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
12
+ export declare const FieldContainer: import("@emotion/styled").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const SchemaSelectContainer: import("@emotion/styled").StyledComponent<{
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,23 @@
1
+ import { DatasourceAdf, DatasourceAdfView, InlineCardAdf } from '@atlaskit/linking-common/types';
2
+ export interface AssetsDatasourceParameters {
3
+ workspaceId: string;
4
+ aql: string;
5
+ schemaId: string;
6
+ }
7
+ export interface AssetsDatasourceAdf extends DatasourceAdf {
8
+ attrs: {
9
+ url?: string;
10
+ datasource: {
11
+ id: string;
12
+ parameters: AssetsDatasourceParameters;
13
+ views: DatasourceAdfView[];
14
+ };
15
+ };
16
+ }
17
+ export interface AssetsConfigModalProps {
18
+ datasourceId: string;
19
+ visibleColumnKeys?: string[];
20
+ parameters?: AssetsDatasourceParameters;
21
+ onCancel: () => void;
22
+ onInsert: (adf: InlineCardAdf | AssetsDatasourceAdf) => void;
23
+ }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const AccessRequiredSVG: () => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx } from '@emotion/react';
2
+ interface AccessRequiredProps {
3
+ siteName?: string;
4
+ }
5
+ export declare const AccessRequired: ({ siteName }: AccessRequiredProps) => jsx.JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoadingErrorSVG: () => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx } from '@emotion/react';
2
+ interface LoadingErrorProps {
3
+ onRefresh?: () => void;
4
+ }
5
+ export declare const LoadingError: ({ onRefresh }: LoadingErrorProps) => jsx.JSX.Element;
6
+ export {};
@@ -0,0 +1,47 @@
1
+ export declare const loadingErrorMessages: {
2
+ accessInstructions: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ accessRequired: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ accessRequiredWithSite: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
17
+ checkConnection: {
18
+ id: string;
19
+ description: string;
20
+ defaultMessage: string;
21
+ };
22
+ checkConnectionWithSource: {
23
+ id: string;
24
+ description: string;
25
+ defaultMessage: string;
26
+ };
27
+ noResultsFound: {
28
+ id: string;
29
+ description: string;
30
+ defaultMessage: string;
31
+ };
32
+ refresh: {
33
+ id: string;
34
+ description: string;
35
+ defaultMessage: string;
36
+ };
37
+ unableToLoadItems: {
38
+ id: string;
39
+ description: string;
40
+ defaultMessage: string;
41
+ };
42
+ unableToLoadResults: {
43
+ id: string;
44
+ description: string;
45
+ defaultMessage: string;
46
+ };
47
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx } from '@emotion/react';
2
+ interface ModalLoadingErrorProps {
3
+ url?: string;
4
+ }
5
+ export declare const ModalLoadingError: ({ url }: ModalLoadingErrorProps) => jsx.JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx } from '@emotion/react';
2
+ interface NoResultsProps {
3
+ onRefresh?: () => void;
4
+ }
5
+ export declare const NoResults: ({ onRefresh }: NoResultsProps) => jsx.JSX.Element;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DatasourceTableViewProps } from './types';
3
+ export declare const DatasourceTableView: import("react").ForwardRefExoticComponent<DatasourceTableViewProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DatasourceTableViewProps } from './types';
3
+ declare const DatasourceTableViewWithWrappers: (props: DatasourceTableViewProps) => JSX.Element;
4
+ export default DatasourceTableViewWithWrappers;
@@ -0,0 +1,8 @@
1
+ export interface DatasourceTableViewProps {
2
+ datasourceId: string;
3
+ parameters: object;
4
+ fields?: string[];
5
+ onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
6
+ visibleColumnKeys?: string[];
7
+ url?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { MenuListComponentProps, OptionType } from '@atlaskit/select';
4
+ export declare const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
5
+ export declare const ConcatenatedMenuList: ({ children, ...props }: MenuListComponentProps<OptionType, true>) => jsx.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { ColumnPickerProps } from './types';
3
+ export declare const ColumnPicker: ({ columns, selectedColumnKeys, onSelectedColumnKeysChange, onOpen, parentContainerRenderInstanceId, }: ColumnPickerProps) => jsx.JSX.Element;
@@ -0,0 +1,17 @@
1
+ export declare const columnPickerMessages: {
2
+ maximumItemsShownLine1: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ maximumItemsShownLine2: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ search: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
17
+ };
@@ -0,0 +1,8 @@
1
+ import { DatasourceResponseSchemaProperty } from '@atlaskit/linking-types';
2
+ export type ColumnPickerProps = {
3
+ columns: DatasourceResponseSchemaProperty[];
4
+ selectedColumnKeys: string[];
5
+ onSelectedColumnKeysChange: (selectedColumnKeys: string[]) => void;
6
+ onOpen?: () => void;
7
+ parentContainerRenderInstanceId?: string;
8
+ };
@@ -0,0 +1,7 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ export declare const DragColumnPreview: ({ title, rows, }: {
5
+ title: React.ReactNode;
6
+ rows: React.ReactNode[];
7
+ }) => jsx.JSX.Element;
@@ -0,0 +1,12 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ export declare const DraggableTableHeading: ({ children, id, index, tableId, dndPreviewHeight, dragPreview, maxWidth, }: {
5
+ children: ReactNode;
6
+ id: string;
7
+ index: number;
8
+ tableId: Symbol;
9
+ dndPreviewHeight: number;
10
+ dragPreview: React.ReactNode;
11
+ maxWidth?: number | undefined;
12
+ }) => jsx.JSX.Element;
@@ -0,0 +1,9 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ export interface Props {
4
+ isCompact?: boolean;
5
+ isLoading?: boolean;
6
+ testId?: string;
7
+ }
8
+ declare const _default: ({ isCompact, isLoading, testId }: Props) => jsx.JSX.Element;
9
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { IssuePriority } from './types';
3
+ declare const _default: ({ priority }: {
4
+ priority: IssuePriority;
5
+ }) => JSX.Element;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { IssueType } from './types';
3
+ declare const _default: ({ type }: {
4
+ type: IssueType;
5
+ }) => JSX.Element;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export type IssuePriority = 'low' | 'medium' | 'high' | 'blocker';
2
+ export type IssueType = 'issue' | 'commit' | 'story' | 'epic' | 'bug' | 'task';
@@ -0,0 +1,18 @@
1
+ /** @jsx jsx */
2
+ import { Ref } from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ import { DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
5
+ import { IssueLikeDataTableViewProps } from './types';
6
+ export interface RowType {
7
+ cells: Array<RowCellType>;
8
+ key?: string;
9
+ ref?: Ref<HTMLTableRowElement>;
10
+ }
11
+ export interface RowCellType {
12
+ key: string;
13
+ content?: React.ReactNode | string;
14
+ maxWidth?: number;
15
+ }
16
+ export declare const orderColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
17
+ export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, status, hasNextPage, scrollableContainerHeight, parentContainerRenderInstanceId, extensionKey, }: IssueLikeDataTableViewProps) => jsx.JSX.Element;
18
+ export declare const EmptyState: ({ isCompact, isLoading, testId }: import("./empty-state").Props) => jsx.JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { BooleanType } from '@atlaskit/linking-types';
3
+ interface BooleanProps {
4
+ testId?: string;
5
+ value: BooleanType['value'];
6
+ }
7
+ export declare const BOOLEAN_TYPE_TEST_ID = "link-datasource-render-type--boolean";
8
+ declare const BooleanRenderType: ({ value, testId, }: BooleanProps) => JSX.Element;
9
+ export default BooleanRenderType;
@@ -0,0 +1,12 @@
1
+ export declare const booleanTypeMessages: {
2
+ booleanTruthyValue: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ booleanFalsyValue: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { DateTimeType, DateType, TimeType } from '@atlaskit/linking-types';
3
+ export interface DateProps {
4
+ testId?: string;
5
+ value: (DateType | TimeType | DateTimeType)['value'];
6
+ display: (DateType | TimeType | DateTimeType)['type'];
7
+ }
8
+ export declare const DATETIME_TYPE_TEST_ID = "link-datasource-render-type--datetime";
9
+ declare const DateTimeRenderType: ({ value, testId, display, }: DateProps) => JSX.Element;
10
+ export default DateTimeRenderType;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Icon } from '@atlaskit/linking-types';
3
+ interface IconProps extends Icon {
4
+ testId?: string;
5
+ }
6
+ export declare const ICON_TYPE_TEST_ID = "link-datasource-render-type--icon";
7
+ declare const IconRenderType: ({ label, source, testId, }: IconProps) => JSX.Element;
8
+ export default IconRenderType;
@@ -0,0 +1,2 @@
1
+ import { TableViewPropsRenderType } from '../types';
2
+ export declare const fallbackRenderType: TableViewPropsRenderType;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Link } from '@atlaskit/linking-types';
3
+ interface LinkProps extends Link {
4
+ testId?: string;
5
+ }
6
+ export declare const LINK_TYPE_TEST_ID = "link-datasource-render-type--link";
7
+ declare const _default: React.MemoExoticComponent<({ style, url, text, testId, }: LinkProps) => JSX.Element | null>;
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { NumberType } from '@atlaskit/linking-types';
3
+ interface NumberProps {
4
+ testId?: string;
5
+ number: NumberType['value'];
6
+ }
7
+ export declare const NUMBER_TYPE_TEST_ID = "link-datasource-render-type--number";
8
+ declare const NumberRenderType: ({ number, testId, }: NumberProps) => JSX.Element;
9
+ export default NumberRenderType;
@@ -0,0 +1,6 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { RichText } from '@atlaskit/linking-types';
3
+ declare const RichTextType: ({ value }: {
4
+ value: RichText;
5
+ }) => jsx.JSX.Element;
6
+ export default RichTextType;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Status } from '@atlaskit/linking-types';
3
+ interface StatusProps extends Status {
4
+ testId?: string;
5
+ }
6
+ export declare const STATUS_TYPE_TEST_ID = "link-datasource-render-type--status";
7
+ declare const StatusRenderType: ({ text, style, testId, }: StatusProps) => JSX.Element;
8
+ export default StatusRenderType;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { TagType } from '@atlaskit/linking-types';
3
+ interface TagProps {
4
+ tag: TagType['value'];
5
+ testId?: string;
6
+ }
7
+ export declare const TAG_TYPE_TEST_ID = "link-datasource-render-type--tag";
8
+ declare const TagRenderType: ({ tag, testId }: TagProps) => JSX.Element;
9
+ export default TagRenderType;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { StringType } from '@atlaskit/linking-types';
3
+ interface TextProps {
4
+ testId?: string;
5
+ text: StringType['value'];
6
+ }
7
+ export declare const TEXT_TYPE_TEST_ID = "link-datasource-render-type--text";
8
+ declare const TextRenderType: ({ text, testId }: TextProps) => JSX.Element;
9
+ export default TextRenderType;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { SizeType } from '@atlaskit/avatar';
3
+ import { User } from '@atlaskit/linking-types';
4
+ interface UserProps extends User {
5
+ children?: React.ReactElement;
6
+ testId?: string;
7
+ avatarSize?: SizeType;
8
+ }
9
+ export declare const USER_TYPE_TEST_ID = "link-datasource-render-type--user";
10
+ declare const UserType: ({ avatarSource, avatarSize, displayName, testId, children, }: UserProps) => JSX.Element;
11
+ export default UserType;
@@ -0,0 +1,7 @@
1
+ export declare const userTypeMessages: {
2
+ userDefaultdisplayNameValue: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ };