@atlaskit/link-datasource 1.6.3 → 1.7.1

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 (156) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/analytics/constants.js +1 -1
  3. package/dist/cjs/analytics/index.js +1 -14
  4. package/dist/cjs/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +21 -0
  5. package/dist/cjs/analytics/wrappers/render-failed/index.js +21 -0
  6. package/dist/cjs/hooks/useDatasourceTableState.js +16 -6
  7. package/dist/cjs/index.js +7 -7
  8. package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
  9. package/dist/es2019/analytics/constants.js +1 -1
  10. package/dist/es2019/analytics/index.js +1 -15
  11. package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +16 -0
  12. package/dist/es2019/analytics/wrappers/render-failed/index.js +5 -0
  13. package/dist/es2019/hooks/useDatasourceTableState.js +14 -6
  14. package/dist/es2019/index.js +1 -1
  15. package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
  16. package/dist/esm/analytics/constants.js +1 -1
  17. package/dist/esm/analytics/index.js +1 -14
  18. package/dist/esm/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +15 -0
  19. package/dist/esm/analytics/wrappers/render-failed/index.js +9 -0
  20. package/dist/esm/hooks/useDatasourceTableState.js +16 -6
  21. package/dist/esm/index.js +1 -1
  22. package/dist/esm/ui/assets-modal/modal/index.js +1 -1
  23. package/dist/types/analytics/generated/analytics.types.d.ts +2 -2
  24. package/dist/types/analytics/index.d.ts +0 -2
  25. package/dist/types/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +3 -0
  26. package/dist/types/analytics/wrappers/render-failed/index.d.ts +2 -0
  27. package/dist/types/index.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/dist/types-ts4.5/analytics/constants.d.ts +0 -3
  30. package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +0 -134
  31. package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +0 -31
  32. package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +0 -7
  33. package/dist/types-ts4.5/analytics/index.d.ts +0 -10
  34. package/dist/types-ts4.5/analytics/types.d.ts +0 -18
  35. package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +0 -2
  36. package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +0 -22
  37. package/dist/types-ts4.5/analytics/ufoExperiences/index.d.ts +0 -5
  38. package/dist/types-ts4.5/analytics/ufoExperiences/types.d.ts +0 -14
  39. package/dist/types-ts4.5/analytics/utils.d.ts +0 -3
  40. package/dist/types-ts4.5/common/types.d.ts +0 -1
  41. package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +0 -9
  42. package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +0 -31
  43. package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +0 -8
  44. package/dist/types-ts4.5/hooks/useValidateAqlText.d.ts +0 -7
  45. package/dist/types-ts4.5/i18n/cs.d.ts +0 -54
  46. package/dist/types-ts4.5/i18n/da.d.ts +0 -54
  47. package/dist/types-ts4.5/i18n/de.d.ts +0 -54
  48. package/dist/types-ts4.5/i18n/en.d.ts +0 -55
  49. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -55
  50. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -55
  51. package/dist/types-ts4.5/i18n/es.d.ts +0 -54
  52. package/dist/types-ts4.5/i18n/fi.d.ts +0 -54
  53. package/dist/types-ts4.5/i18n/fr.d.ts +0 -54
  54. package/dist/types-ts4.5/i18n/hu.d.ts +0 -54
  55. package/dist/types-ts4.5/i18n/it.d.ts +0 -54
  56. package/dist/types-ts4.5/i18n/ja.d.ts +0 -54
  57. package/dist/types-ts4.5/i18n/ko.d.ts +0 -54
  58. package/dist/types-ts4.5/i18n/nb.d.ts +0 -54
  59. package/dist/types-ts4.5/i18n/nl.d.ts +0 -54
  60. package/dist/types-ts4.5/i18n/pl.d.ts +0 -54
  61. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -54
  62. package/dist/types-ts4.5/i18n/ru.d.ts +0 -54
  63. package/dist/types-ts4.5/i18n/sv.d.ts +0 -54
  64. package/dist/types-ts4.5/i18n/th.d.ts +0 -54
  65. package/dist/types-ts4.5/i18n/tr.d.ts +0 -54
  66. package/dist/types-ts4.5/i18n/uk.d.ts +0 -54
  67. package/dist/types-ts4.5/i18n/vi.d.ts +0 -54
  68. package/dist/types-ts4.5/i18n/zh.d.ts +0 -54
  69. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -54
  70. package/dist/types-ts4.5/index.d.ts +0 -10
  71. package/dist/types-ts4.5/services/cmdbService.d.ts +0 -7
  72. package/dist/types-ts4.5/services/getAvailableJiraSites.d.ts +0 -6
  73. package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +0 -6
  74. package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +0 -5
  75. package/dist/types-ts4.5/types/assets/types.d.ts +0 -34
  76. package/dist/types-ts4.5/ui/assets-modal/index.d.ts +0 -5
  77. package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +0 -3
  78. package/dist/types-ts4.5/ui/assets-modal/modal/messages.d.ts +0 -17
  79. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -17
  80. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg.d.ts +0 -2
  81. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -3
  82. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.d.ts +0 -17
  83. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -9
  84. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +0 -3
  85. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/messages.d.ts +0 -12
  86. package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +0 -17
  87. package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +0 -8
  88. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -21
  89. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +0 -3
  90. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/messages.d.ts +0 -17
  91. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +0 -2
  92. package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +0 -19
  93. package/dist/types-ts4.5/ui/assets-modal/types.d.ts +0 -23
  94. package/dist/types-ts4.5/ui/common/error-state/access-required-svg.d.ts +0 -2
  95. package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +0 -6
  96. package/dist/types-ts4.5/ui/common/error-state/loading-error-svg.d.ts +0 -2
  97. package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +0 -6
  98. package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +0 -47
  99. package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +0 -6
  100. package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +0 -6
  101. package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +0 -3
  102. package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +0 -4
  103. package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +0 -8
  104. package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -5
  105. package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +0 -3
  106. package/dist/types-ts4.5/ui/issue-like-table/column-picker/messages.d.ts +0 -17
  107. package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +0 -8
  108. package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +0 -7
  109. package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +0 -12
  110. package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +0 -9
  111. package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +0 -6
  112. package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +0 -6
  113. package/dist/types-ts4.5/ui/issue-like-table/empty-state/types.d.ts +0 -2
  114. package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +0 -18
  115. package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +0 -9
  116. package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/messages.d.ts +0 -12
  117. package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +0 -10
  118. package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +0 -8
  119. package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +0 -2
  120. package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +0 -8
  121. package/dist/types-ts4.5/ui/issue-like-table/render-type/number/index.d.ts +0 -9
  122. package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +0 -6
  123. package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +0 -8
  124. package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +0 -9
  125. package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +0 -9
  126. package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +0 -11
  127. package/dist/types-ts4.5/ui/issue-like-table/render-type/user/messages.d.ts +0 -7
  128. package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +0 -18
  129. package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +0 -53
  130. package/dist/types-ts4.5/ui/issue-like-table/useIsOnScreen.d.ts +0 -1
  131. package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/index.d.ts +0 -12
  132. package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/messages.d.ts +0 -7
  133. package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +0 -5
  134. package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.d.ts +0 -2
  135. package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/index.d.ts +0 -3
  136. package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/messages.d.ts +0 -17
  137. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/hooks/useBasicFilterHook.d.ts +0 -4
  138. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/index.d.ts +0 -1
  139. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/common/dropdown/index.d.ts +0 -3
  140. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/containers/project/index.d.ts +0 -3
  141. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/index.d.ts +0 -3
  142. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +0 -7
  143. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -10
  144. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/messages.d.ts +0 -7
  145. package/dist/types-ts4.5/ui/jira-issues-modal/jql-editor/index.d.ts +0 -9
  146. package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +0 -11
  147. package/dist/types-ts4.5/ui/jira-issues-modal/modal/messages.d.ts +0 -42
  148. package/dist/types-ts4.5/ui/jira-issues-modal/mode-switcher/index.d.ts +0 -12
  149. package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/index.d.ts +0 -10
  150. package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/messages.d.ts +0 -12
  151. package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +0 -43
  152. package/dist/types-ts4.5/ui/table-footer/index.d.ts +0 -8
  153. package/dist/types-ts4.5/ui/table-footer/messages.d.ts +0 -17
  154. package/dist/types-ts4.5/ui/table-footer/sync-info/index.d.ts +0 -4
  155. package/dist/types-ts4.5/ui/table-footer/sync-info/messages.d.ts +0 -12
  156. package/tmp/api-report-tmp.d.ts +0 -153
@@ -1,47 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
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>>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { DatasourceTableViewProps } from './types';
3
- declare const DatasourceTableViewWithWrappers: (props: DatasourceTableViewProps) => JSX.Element;
4
- export default DatasourceTableViewWithWrappers;
@@ -1,8 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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;
@@ -1,3 +0,0 @@
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;
@@ -1,17 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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;
@@ -1,12 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { IssuePriority } from './types';
3
- declare const _default: ({ priority }: {
4
- priority: IssuePriority;
5
- }) => JSX.Element;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { IssueType } from './types';
3
- declare const _default: ({ type }: {
4
- type: IssueType;
5
- }) => JSX.Element;
6
- export default _default;
@@ -1,2 +0,0 @@
1
- export type IssuePriority = 'low' | 'medium' | 'high' | 'blocker';
2
- export type IssueType = 'issue' | 'commit' | 'story' | 'epic' | 'bug' | 'task';
@@ -1,18 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,12 +0,0 @@
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
- };
@@ -1,10 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- import { TableViewPropsRenderType } from '../types';
2
- export declare const fallbackRenderType: TableViewPropsRenderType;
@@ -1,8 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,6 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,11 +0,0 @@
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;
@@ -1,7 +0,0 @@
1
- export declare const userTypeMessages: {
2
- userDefaultdisplayNameValue: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- };
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const FieldTextFontSize = "14px";
3
- export declare const Table: import("@emotion/styled").StyledComponent<{
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- }, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
7
- export declare const TableHeading: import("@emotion/styled").StyledComponent<{
8
- theme?: import("@emotion/react").Theme | undefined;
9
- as?: import("react").ElementType<any> | undefined;
10
- }, import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
11
- export declare const EmptyStateTableHeading: import("@emotion/styled").StyledComponent<{
12
- theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
14
- } & import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & {
15
- children?: import("react").ReactNode;
16
- } & {
17
- theme?: import("@emotion/react").Theme | undefined;
18
- }, {}, {}>;
@@ -1,53 +0,0 @@
1
- /// <reference types="react" />
2
- import { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType, DatasourceType } from '@atlaskit/linking-types';
3
- import { NextPageType } from '../../hooks/useDatasourceTableState';
4
- export type TableViewPropsRenderType = (item: DatasourceType) => React.ReactNode;
5
- export interface IssueLikeDataTableViewProps {
6
- testId?: string;
7
- /**
8
- * Unique ID to indicate parent component instance to be used for UFO experiences
9
- */
10
- parentContainerRenderInstanceId?: string;
11
- /**
12
- * Datasource extension key. Optional as value may not have been returned yet
13
- */
14
- extensionKey?: string | null;
15
- /**
16
- * All available columns/properties.
17
- * Consumer should not reorder these columns to align with `visibleColumnKeys`.
18
- * UI will display them according to `visibleColumnKeys`
19
- */
20
- columns: DatasourceResponseSchemaProperty[];
21
- /**
22
- * List of properties/column keys that are visible/selected
23
- */
24
- visibleColumnKeys: string[];
25
- hasNextPage: boolean;
26
- status: DatasourceTableStatusType;
27
- items: DatasourceDataResponseItem[];
28
- onNextPage: NextPageType;
29
- onLoadDatasourceDetails: () => void;
30
- /**
31
- * A function to define new or override existing render components.
32
- * eg:
33
- * const renderItem: TableViewPropsRenderType = item => {
34
- * if (item.type === 'icon') {
35
- * return (
36
- * <IconRenderType label={item.label} source={item.source} />
37
- * );
38
- * }
39
- * return fallbackRenderType(item);
40
- * };
41
- */
42
- renderItem?: TableViewPropsRenderType;
43
- /**
44
- * Callback that is called in either column re-order or columns being selected/unselected
45
- * @param visibleColumnKeys
46
- */
47
- onVisibleColumnKeysChange?: (visibleColumnKeys: string[]) => void;
48
- /**
49
- * If this number is set it will restrict (max-height) maximum size of the component AND make main container a scrollable container.
50
- * It this number is undefined it will not restrict height and not make container scrollable.
51
- */
52
- scrollableContainerHeight?: number;
53
- }
@@ -1 +0,0 @@
1
- export declare const useIsOnScreen: (el: HTMLElement | null) => boolean;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- /** @jsx jsx */
3
- import { jsx } from '@emotion/react';
4
- export interface BasicSearchInputProps {
5
- isDisabled?: boolean;
6
- isSearching?: boolean;
7
- onChange: React.FormEventHandler<HTMLInputElement>;
8
- onSearch: (searchTerm: string) => void;
9
- searchTerm: string;
10
- testId?: string;
11
- }
12
- export declare const BasicSearchInput: ({ isDisabled, isSearching, onChange, onSearch, searchTerm, testId, }: BasicSearchInputProps) => jsx.JSX.Element;
@@ -1,7 +0,0 @@
1
- export declare const basicSearchInputMessages: {
2
- basicTextSearchLabel: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- };
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { JiraIssuesConfigModalProps } from './types';
3
- export declare const JIRA_LIST_OF_LINKS_DATASOURCE_ID = "d8b75300-dfda-4519-b6cd-e49abbd50401";
4
- declare const JiraIssuesConfigModalWithWrappers: (props: JiraIssuesConfigModalProps) => JSX.Element;
5
- export default JiraIssuesConfigModalWithWrappers;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const InitialStateSVG: () => JSX.Element;
@@ -1,3 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- export declare const InitialStateView: () => jsx.JSX.Element;
@@ -1,17 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export declare const useBasicFilterHook: () => {
2
- fetchFilterOptions: () => void;
3
- hydrateFilterValues: () => void;
4
- };
@@ -1 +0,0 @@
1
- export { default as BasicFilters } from './ui';
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const BasicFilterDropdown: () => JSX.Element;
3
- export default BasicFilterDropdown;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ProjectFilterContainer: () => JSX.Element;
3
- export default ProjectFilterContainer;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const BasicFilterContainer: () => JSX.Element;
3
- export default BasicFilterContainer;
@@ -1,7 +0,0 @@
1
- type BuildJQLInput = {
2
- rawSearch: string;
3
- orderDirection?: string;
4
- orderKey?: string;
5
- };
6
- export declare const buildJQL: (input: BuildJQLInput) => string;
7
- export {};
@@ -1,10 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { JiraSearchMethod } from '../../../common/types';
3
- import { JiraIssueDatasourceParameters, JiraIssueDatasourceParametersQuery } from '../types';
4
- export interface SearchContainerProps {
5
- isSearching?: boolean;
6
- onSearch: (query: JiraIssueDatasourceParametersQuery, searchMethod: JiraSearchMethod) => void;
7
- parameters?: JiraIssueDatasourceParameters;
8
- }
9
- export declare const getInitialSearchMethod: (initialJql?: string) => JiraSearchMethod;
10
- export declare const JiraSearchContainer: (props: SearchContainerProps) => jsx.JSX.Element;
@@ -1,7 +0,0 @@
1
- export declare const modeSwitcherMessages: {
2
- basicTextSearchLabel: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface JiraJQLEditorProps {
3
- cloudId: string;
4
- isSearching?: boolean;
5
- onChange?: (query: string) => void;
6
- onSearch: () => void;
7
- query: string;
8
- }
9
- export declare const JiraJQLEditor: React.FC<JiraJQLEditorProps>;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { jsx } from '@emotion/react';
3
- import { DatasourceAction } from '../../../analytics/types';
4
- import { JiraIssuesConfigModalProps } from '../types';
5
- /**
6
- * This method should be called when one atomic action is performed on columns: adding new item, removing one item, changing items order.
7
- * The assumption is that since only one action is changed at each time, we don't have to verify the actual contents of the lists.
8
- */
9
- export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
10
- export declare const PlainJiraIssuesConfigModal: (props: JiraIssuesConfigModalProps) => jsx.JSX.Element;
11
- export declare const JiraIssuesConfigModal: import("react").ForwardRefExoticComponent<JiraIssuesConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -1,42 +0,0 @@
1
- export declare const modalMessages: {
2
- cancelButtonText: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- insertIssuesButtonText: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- insertIssuesTitle: {
13
- id: string;
14
- description: string;
15
- defaultMessage: string;
16
- };
17
- insertIssuesTitleManySites: {
18
- id: string;
19
- description: string;
20
- defaultMessage: string;
21
- };
22
- issueViewModeLabel: {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- };
27
- countViewModeLabel: {
28
- id: string;
29
- description: string;
30
- defaultMessage: string;
31
- };
32
- issuesCountSmartCardPlaceholderText: {
33
- id: string;
34
- description: string;
35
- defaultMessage: string;
36
- };
37
- issueText: {
38
- id: string;
39
- description: string;
40
- defaultMessage: string;
41
- };
42
- };
@@ -1,12 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- export interface ModeSwitcherProps<T extends string = string> {
3
- isCompact?: boolean;
4
- isDisabled?: boolean;
5
- options: {
6
- label: string;
7
- value: T;
8
- }[];
9
- onOptionValueChange: (selectedOptionValue: T) => void;
10
- selectedOptionValue?: string;
11
- }
12
- export declare const ModeSwitcher: <T extends string = string>(props: ModeSwitcherProps<T>) => jsx.JSX.Element | null;
@@ -1,10 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import { Site } from '../../../services/getAvailableJiraSites';
4
- export interface JiraSiteSelectorProps {
5
- availableSites: Site[];
6
- onSiteSelection: (selectedSite: Site) => void;
7
- selectedJiraSite?: Site;
8
- testId?: string;
9
- }
10
- export declare const JiraSiteSelector: (props: JiraSiteSelectorProps) => jsx.JSX.Element;
@@ -1,12 +0,0 @@
1
- export declare const siteSelectorMessages: {
2
- dropdownChevronLabel: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- selectedJiraSiteLabel: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- };