@atlaskit/link-datasource 4.19.0 → 4.19.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
  3. package/dist/cjs/ui/common/error-state/provider-auth-required.js +2 -9
  4. package/dist/cjs/ui/common/modal/basic-search-input/index.js +2 -18
  5. package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
  6. package/dist/es2019/ui/common/error-state/provider-auth-required.js +2 -9
  7. package/dist/es2019/ui/common/modal/basic-search-input/index.js +2 -18
  8. package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
  9. package/dist/esm/ui/common/error-state/provider-auth-required.js +2 -9
  10. package/dist/esm/ui/common/modal/basic-search-input/index.js +2 -18
  11. package/dist/types/analytics/generated/create-event-payload.d.ts +1 -1
  12. package/dist/types/analytics/generated/use-analytics-events.d.ts +2 -1
  13. package/dist/types/analytics/index.d.ts +1 -1
  14. package/dist/types/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +0 -1
  15. package/dist/types/common/ui/common/render-svg.d.ts +0 -1
  16. package/dist/types/hooks/useErrorLogger.d.ts +4 -4
  17. package/dist/types/services/getAvailableSites.d.ts +1 -1
  18. package/dist/types/services/useAvailableSites.d.ts +1 -1
  19. package/dist/types/state/actions/index.d.ts +3 -3
  20. package/dist/types/ui/assets-modal/modal/index.d.ts +0 -1
  21. package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -1
  22. package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -1
  23. package/dist/types/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -1
  24. package/dist/types/ui/assets-modal/search-container/index.d.ts +0 -1
  25. package/dist/types/ui/assets-modal/search-container/loading-state.d.ts +0 -1
  26. package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -1
  27. package/dist/types/ui/assets-modal/search-container/styled.d.ts +0 -1
  28. package/dist/types/ui/common/error-state/access-required.d.ts +0 -1
  29. package/dist/types/ui/common/error-state/loading-error.d.ts +0 -1
  30. package/dist/types/ui/common/error-state/modal-loading-error.d.ts +0 -1
  31. package/dist/types/ui/common/error-state/no-instances.d.ts +0 -1
  32. package/dist/types/ui/common/error-state/no-results.d.ts +0 -1
  33. package/dist/types/ui/common/error-state/provider-auth-required-svg.d.ts +0 -1
  34. package/dist/types/ui/common/error-state/provider-auth-required.d.ts +0 -1
  35. package/dist/types/ui/common/initial-state-view/index.d.ts +0 -1
  36. package/dist/types/ui/common/modal/basic-search-input/index.d.ts +0 -1
  37. package/dist/types/ui/common/modal/datasource-modal/index.d.ts +1 -1
  38. package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +0 -1
  39. package/dist/types/ui/common/modal/mode-switcher/index.d.ts +0 -1
  40. package/dist/types/ui/common/modal/popup-select/custom-checkbox-option.d.ts +0 -1
  41. package/dist/types/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
  42. package/dist/types/ui/common/modal/search-count/index.d.ts +1 -1
  43. package/dist/types/ui/common/modal/site-selector/index.d.ts +0 -1
  44. package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.d.ts +0 -1
  45. package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +2 -2
  46. package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +4 -5
  47. package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -1
  48. package/dist/types/ui/issue-like-table/edit-type/index.d.ts +5 -5
  49. package/dist/types/ui/issue-like-table/empty-state/index.d.ts +0 -1
  50. package/dist/types/ui/issue-like-table/index.d.ts +0 -1
  51. package/dist/types/ui/issue-like-table/render-type/index.d.ts +1 -1
  52. package/dist/types/ui/issue-like-table/render-type/richtext/index.d.ts +0 -1
  53. package/dist/types/ui/issue-like-table/shared-components/icon/index.d.ts +0 -1
  54. package/dist/types/ui/issue-like-table/truncate-text-tag/index.d.ts +1 -1
  55. package/dist/types/ui/issue-like-table/utils.d.ts +2 -3
  56. package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
  57. package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -1
  58. package/dist/types/ui/table-footer/index.d.ts +0 -1
  59. package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +1 -1
  60. package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +2 -1
  61. package/dist/types-ts4.5/analytics/index.d.ts +1 -1
  62. package/dist/types-ts4.5/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +0 -1
  63. package/dist/types-ts4.5/common/ui/common/render-svg.d.ts +0 -1
  64. package/dist/types-ts4.5/hooks/useErrorLogger.d.ts +7 -4
  65. package/dist/types-ts4.5/services/getAvailableSites.d.ts +1 -1
  66. package/dist/types-ts4.5/services/useAvailableSites.d.ts +1 -1
  67. package/dist/types-ts4.5/state/actions/index.d.ts +3 -3
  68. package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +0 -1
  69. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -1
  70. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -1
  71. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -1
  72. package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +0 -1
  73. package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +0 -1
  74. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -1
  75. package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +0 -1
  76. package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +0 -1
  77. package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +0 -1
  78. package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +0 -1
  79. package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +0 -1
  80. package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +0 -1
  81. package/dist/types-ts4.5/ui/common/error-state/provider-auth-required-svg.d.ts +0 -1
  82. package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +0 -1
  83. package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +0 -1
  84. package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +0 -1
  85. package/dist/types-ts4.5/ui/common/modal/datasource-modal/index.d.ts +1 -1
  86. package/dist/types-ts4.5/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +0 -1
  87. package/dist/types-ts4.5/ui/common/modal/mode-switcher/index.d.ts +0 -1
  88. package/dist/types-ts4.5/ui/common/modal/popup-select/custom-checkbox-option.d.ts +0 -1
  89. package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
  90. package/dist/types-ts4.5/ui/common/modal/search-count/index.d.ts +1 -1
  91. package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +0 -1
  92. package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.d.ts +0 -1
  93. package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +2 -2
  94. package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +4 -5
  95. package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -1
  96. package/dist/types-ts4.5/ui/issue-like-table/edit-type/index.d.ts +5 -5
  97. package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +0 -1
  98. package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +0 -1
  99. package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +1 -1
  100. package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +0 -1
  101. package/dist/types-ts4.5/ui/issue-like-table/shared-components/icon/index.d.ts +0 -1
  102. package/dist/types-ts4.5/ui/issue-like-table/truncate-text-tag/index.d.ts +1 -1
  103. package/dist/types-ts4.5/ui/issue-like-table/utils.d.ts +2 -3
  104. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
  105. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -1
  106. package/dist/types-ts4.5/ui/table-footer/index.d.ts +0 -1
  107. package/package.json +6 -7
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type DatasourceMeta } from '@atlaskit/linking-types';
3
2
  interface ProviderAuthRequiredProps {
4
3
  auth: DatasourceMeta['auth'];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  interface InitialStateViewProps {
4
3
  icon: JSX.Element;
@@ -2,7 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /// <reference types="react" />
6
5
  import { type MessageDescriptor } from 'react-intl-next';
7
6
  export interface BasicSearchInputProps {
8
7
  isDisabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type ModalDialogProps } from '@atlaskit/modal-dialog';
3
3
  type DatasourceModalProps = Pick<ModalDialogProps, 'testId' | 'onClose' | 'children' | 'shouldReturnFocus'>;
4
- export declare const DatasourceModal: ({ testId, onClose, children, shouldReturnFocus }: DatasourceModalProps) => React.JSX.Element;
4
+ export declare const DatasourceModal: ({ testId, onClose, children, shouldReturnFocus, }: DatasourceModalProps) => React.JSX.Element;
5
5
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type IssueLikeDataTableViewProps } from '../../../../issue-like-table/types';
3
2
  export type ColumnVisibilityProps = Pick<IssueLikeDataTableViewProps, 'onVisibleColumnKeysChange'> & {
4
3
  visibleColumnCount: React.MutableRefObject<number>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ModeSwitcherPropsOption<T extends string = string> {
3
2
  label: string;
4
3
  value: T;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type OptionProps } from '@atlaskit/react-select';
3
2
  import type { SelectOption } from './types';
4
3
  export declare const CustomCheckboxOption: ({ children, ...props }: OptionProps<SelectOption, true>) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const CustomErrorMessage: ({ filterName, errors }: {
3
3
  filterName: string;
4
- errors?: unknown[] | undefined;
4
+ errors?: unknown[];
5
5
  }) => React.JSX.Element;
6
6
  export default CustomErrorMessage;
@@ -6,6 +6,6 @@ interface TableSearchCountProps {
6
6
  testId?: string;
7
7
  styles?: React.CSSProperties;
8
8
  }
9
- export declare const AssetsItemCount: ({ searchCount, url, testId, }: Pick<TableSearchCountProps, 'testId' | 'url' | 'searchCount'>) => React.JSX.Element;
9
+ export declare const AssetsItemCount: ({ searchCount, url, testId, }: Pick<TableSearchCountProps, "testId" | "url" | "searchCount">) => React.JSX.Element;
10
10
  declare const TableSearchCount: ({ url, searchCount, styles: additionalStyles, testId, prefixTextType, }: TableSearchCountProps) => React.JSX.Element;
11
11
  export default TableSearchCount;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  import type { Site } from '../../../../common/types';
4
3
  export interface SiteSelectorProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const CustomDropdownItem: (props: React.PropsWithChildren<{
3
2
  isSelected: boolean;
4
3
  onClick: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type IntlShape } from 'react-intl-next';
3
3
  import { type DateRangeType } from '../../../../common/modal/popup-select/types';
4
- export declare const getDropdownLabel: (option: DateRangeType | undefined, formatMessage: IntlShape['formatMessage']) => string;
5
- export declare const getCurrentOptionLabel: (formatDate: IntlShape['formatDate'], formatMessage: IntlShape['formatMessage'], value?: DateRangeType, to?: string, from?: string) => string;
4
+ export declare const getDropdownLabel: (option: DateRangeType | undefined, formatMessage: IntlShape["formatMessage"]) => string;
5
+ export declare const getCurrentOptionLabel: (formatDate: IntlShape["formatDate"], formatMessage: IntlShape["formatMessage"], value?: DateRangeType, to?: string, from?: string) => string;
6
6
  export declare const useInvalidDateRange: (from?: string, to?: string) => React.JSX.Element | null;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  export declare const DatasourceTableView: import("react").ForwardRefExoticComponent<{
3
2
  datasourceId: string;
4
3
  parameters: object;
5
- url?: string | undefined;
6
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
4
+ url?: string;
5
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onVisibleColumnKeysChange" | "scrollableContainerHeight" | "onColumnResize" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
7
6
  export declare const DataSourceTableViewNoSuspense: import("react").ForwardRefExoticComponent<{
8
7
  datasourceId: string;
9
8
  parameters: object;
10
- url?: string | undefined;
11
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
9
+ url?: string;
10
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onVisibleColumnKeysChange" | "scrollableContainerHeight" | "onColumnResize" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MenuListComponentProps, type OptionProps, type OptionType } from '@atlaskit/select';
3
2
  export declare const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
4
3
  export declare const ConcatenatedMenuList: ({ children, ...props }: MenuListComponentProps<OptionType, true>) => JSX.Element;
@@ -6,10 +6,10 @@ import { type DatasourceTypeWithOnlyValues } from '../types';
6
6
  export declare const editType: ({ defaultValue, currentValue, labelId, setEditValues, executeFetch, }: {
7
7
  defaultValue: DatasourceTypeWithOnlyValues;
8
8
  currentValue: DatasourceTypeWithOnlyValues;
9
- labelId?: string | undefined;
9
+ labelId?: string;
10
10
  setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
11
- executeFetch?: ExecuteFetch | undefined;
12
- }) => Pick<React.ComponentProps<typeof InlineEdit>, 'defaultValue' | 'editView'>;
13
- export declare const isEditTypeSupported: (type: DatasourceType['type']) => boolean;
14
- export declare const isEditTypeSelectable: (type: DatasourceType['type']) => boolean;
11
+ executeFetch?: ExecuteFetch;
12
+ }) => Pick<React.ComponentProps<typeof InlineEdit>, "defaultValue" | "editView">;
13
+ export declare const isEditTypeSupported: (type: DatasourceType["type"]) => boolean;
14
+ export declare const isEditTypeSelectable: (type: DatasourceType["type"]) => boolean;
15
15
  export declare const toValueType: <T>(typeWithValues: DatasourceTypeWithOnlyValues) => T;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface Props {
3
2
  isCompact?: boolean;
4
3
  testId?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
3
2
  import { type IssueLikeDataTableViewProps } from './types';
4
3
  export declare const getOrderedColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
@@ -1,5 +1,5 @@
1
1
  import { type IntlShape } from 'react-intl-next';
2
2
  import { type DatasourceType } from '@atlaskit/linking-types';
3
3
  import { type TableViewPropsRenderType } from '../types';
4
- export declare const stringifyType: ({ type, value }: DatasourceType, formatMessage: IntlShape['formatMessage'], formatDate: IntlShape['formatDate']) => string;
4
+ export declare const stringifyType: ({ type, value }: DatasourceType, formatMessage: IntlShape["formatMessage"], formatDate: IntlShape["formatDate"]) => string;
5
5
  export declare const renderType: TableViewPropsRenderType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type RichText } from '@atlaskit/linking-types';
3
2
  export declare const parseRichText: (value: RichText) => string | null;
4
3
  declare const RichTextType: ({ value }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SharedIconComponentProps {
3
2
  /**
4
3
  * URL or SVG for the priority icon
@@ -4,5 +4,5 @@
4
4
  */
5
5
  import React from 'react';
6
6
  export declare const TruncateTextTag: React.ForwardRefExoticComponent<{
7
- children?: React.ReactNode;
7
+ children?: React.ReactNode | undefined;
8
8
  } & React.RefAttributes<HTMLElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FieldProps } from '@atlaskit/form';
3
2
  import { DatasourceAction } from '../../analytics/types';
4
3
  export declare const COLUMN_BASE_WIDTH = 8;
@@ -25,7 +24,7 @@ export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibl
25
24
  /**
26
25
  * Remove deprecated `aria-labelledby` prop from select component props.
27
26
  */
28
- export declare const getCleanedSelectProps: (props: Omit<FieldProps<string>, 'value'>) => {
27
+ export declare const getCleanedSelectProps: (props: Omit<FieldProps<string>, "value">) => {
29
28
  name: string;
30
29
  id: string;
31
30
  'aria-describedby'?: string | undefined;
@@ -34,8 +33,8 @@ export declare const getCleanedSelectProps: (props: Omit<FieldProps<string>, 'va
34
33
  onBlur: () => void;
35
34
  onChange: (value: string | import("react").FormEvent<HTMLInputElement>) => void;
36
35
  isDisabled: boolean;
37
- isInvalid: boolean;
38
36
  isRequired: boolean;
37
+ isInvalid: boolean;
39
38
  };
40
39
  /**
41
40
  * Create id for table header to be used as aria-labelledby on form fields.
@@ -19,6 +19,6 @@ export interface FilterOptionsState {
19
19
  status: 'empty' | 'loading' | 'resolved' | 'rejected' | 'loadingMore';
20
20
  errors: unknown[];
21
21
  }
22
- export declare const getAssigneeUnassignedFilterOption: (formatMessage: IntlShape['formatMessage']) => AvatarLabelOption;
22
+ export declare const getAssigneeUnassignedFilterOption: (formatMessage: IntlShape["formatMessage"]) => AvatarLabelOption;
23
23
  export declare const useFilterOptions: ({ filterType, site }: FilterOptionsProps) => FilterOptionsState;
24
24
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { JiraSearchMethod, Site } from '../../../common/types';
3
2
  import { type SelectedOptionsMap } from '../basic-filters/types';
4
3
  import { type JiraIssueDatasourceParameters, type JiraIssueDatasourceParametersQuery } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type TableFooterProps = {
3
2
  datasourceId: string;
4
3
  itemCount?: number;
@@ -27,5 +27,5 @@ type EventPayload<K extends EventKey> = {
27
27
  actionSubjectId?: string;
28
28
  attributes?: AnalyticsEventAttributes[K];
29
29
  };
30
- declare const createEventPayload: <K extends keyof AnalyticsEventAttributes>(eventKey: K, ...[attributes]: EventPayloadAttributes<K>) => ScreenEventPayload<K> | EventPayload<K>;
30
+ declare const createEventPayload: <K extends EventKey>(eventKey: K, ...[attributes]: EventPayloadAttributes<K>) => ScreenEventPayload<K> | EventPayload<K>;
31
31
  export default createEventPayload;
@@ -1,5 +1,6 @@
1
+ import { type EventKey } from './analytics.types';
1
2
  export declare const useAnalyticsEvents: () => {
2
- fireEvent: <K extends keyof import("./analytics.types").AnalyticsEventAttributes>(eventKey: K, ...params_1: undefined extends import("./analytics.types").AnalyticsEventAttributes[K] ? [
3
+ fireEvent: <K extends EventKey>(eventKey: K, ...params: undefined extends import("./analytics.types").AnalyticsEventAttributes[K] ? [
3
4
  param?: import("./analytics.types").AnalyticsEventAttributes[K] | undefined
4
5
  ] : [
5
6
  param: import("./analytics.types").AnalyticsEventAttributes[K]
@@ -1,6 +1,6 @@
1
1
  export { EVENT_CHANNEL } from './constants';
2
2
  export declare const useDatasourceAnalyticsEvents: () => {
3
- fireEvent: <K extends keyof import("./generated/analytics.types").AnalyticsEventAttributes>(eventKey: K, ...params_1: undefined extends import("./generated/analytics.types").AnalyticsEventAttributes[K] ? [
3
+ fireEvent: <K extends import("./generated/analytics.types").EventKey>(eventKey: K, ...params: undefined extends import("./generated/analytics.types").AnalyticsEventAttributes[K] ? [
4
4
  param?: import("./generated/analytics.types").AnalyticsEventAttributes[K] | undefined
5
5
  ] : [
6
6
  param: import("./generated/analytics.types").AnalyticsEventAttributes[K]
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatasourceRenderFailedAnalyticsWrapper: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
3
2
  export default DatasourceRenderFailedAnalyticsWrapper;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -1,12 +1,15 @@
1
+ import { captureException } from '@atlaskit/linking-common/sentry';
1
2
  import { type DatasourceOperationFailedAttributesType } from '../analytics/generated/analytics.types';
3
+ type Tail<T extends any[]> = T extends [
4
+ infer A,
5
+ ...infer R
6
+ ] ? R : never;
2
7
  /**
3
8
  * This function is just a wrapper around captureException that checks if the enable-sentry-client FF is enabled
4
9
  * and error is instanceof Error. We have to override the type of error from captureException to unknown so we use
5
10
  * a helper Tail type which removes the first element of the tuple
6
11
  */
7
- export declare const logToSentry: (error: unknown, packageName: string, tags?: {
8
- [key: string]: string | number | bigint | boolean | symbol | null | undefined;
9
- } | undefined) => void;
12
+ export declare const logToSentry: (error: unknown, ...captureExceptionParams: Tail<Parameters<typeof captureException>>) => void;
10
13
  interface UseErrorLoggerPropsDatasource {
11
14
  datasourceId: string;
12
15
  }
@@ -15,6 +18,6 @@ interface UseErrorLoggerPropsActions {
15
18
  }
16
19
  export type UseErrorLoggerProps = UseErrorLoggerPropsDatasource | UseErrorLoggerPropsActions;
17
20
  declare const useErrorLogger: (loggerProps: UseErrorLoggerProps) => {
18
- captureError: (errorLocation: DatasourceOperationFailedAttributesType['errorLocation'], error: unknown) => void;
21
+ captureError: (errorLocation: DatasourceOperationFailedAttributesType["errorLocation"], error: unknown) => void;
19
22
  };
20
23
  export default useErrorLogger;
@@ -1,2 +1,2 @@
1
1
  import type { Site } from '../common/types';
2
- export declare const getAvailableSites: (product: 'jira' | 'confluence') => Promise<Site[]>;
2
+ export declare const getAvailableSites: (product: "jira" | "confluence") => Promise<Site[]>;
@@ -1,5 +1,5 @@
1
1
  import type { Site } from '../common/types';
2
- export declare const useAvailableSites: (product: 'confluence' | 'jira', cloudId?: string) => {
2
+ export declare const useAvailableSites: (product: "confluence" | "jira", cloudId?: string) => {
3
3
  availableSites: Site[] | undefined;
4
4
  selectedSite: Site | undefined;
5
5
  };
@@ -86,7 +86,7 @@ export declare const useAtomicUpdateActionSchema: import("react-sweet-state").Ho
86
86
  fetchSchema?: undefined;
87
87
  } | {
88
88
  schema: Pick<AtomicActionInterface, "actionKey" | "type" | "description"> & {
89
- fetchAction?: Pick<AtomicActionInterface, "actionKey" | "type" | "inputs"> | undefined;
89
+ fetchAction?: Pick<AtomicActionInterface, "actionKey" | "type" | "inputs">;
90
90
  };
91
91
  fetchSchema: Pick<AtomicActionInterface, "actionKey" | "type" | "inputs"> | undefined;
92
92
  }, import("react-sweet-state").BoundActions<ActionsStoreState, {
@@ -113,7 +113,7 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
113
113
  fieldKey: string;
114
114
  integrationKey: string;
115
115
  }) => {
116
- execute?: ((value: string | number) => Promise<AtomicActionExecuteResponse<unknown>>) | undefined;
117
- executeFetch?: ExecuteFetch | undefined;
116
+ execute?: (value: string | number) => Promise<AtomicActionExecuteResponse<unknown>>;
117
+ executeFetch?: ExecuteFetch;
118
118
  };
119
119
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { type AssetsConfigModalProps } from '../types';
3
2
  export declare const AssetsConfigModal: import("react").ForwardRefExoticComponent<AssetsConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type DatasourceDataResponseItem, type DatasourceResponseSchemaProperty, type DatasourceTableStatusType } from '@atlaskit/linking-types';
3
2
  export interface RenderAssetsContentProps {
4
3
  isFetchingInitialData: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface AqlSearchInputProps {
3
2
  value: string;
4
3
  workspaceId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ObjectSchema } from '../../../types/assets/types';
3
2
  export type InitialSearchData = {
4
3
  objectSchema?: ObjectSchema;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type AssetsSearchConatinerLoadingProps = {
3
2
  modalTitle?: JSX.Element;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const FormRowContainer: (props: React.PropsWithChildren<{
3
2
  isNarrowGap?: boolean;
4
3
  }>) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AccessRequiredProps {
3
2
  /** The url to be displayed to the user when they are unauthorized to query */
4
3
  url?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LoadingErrorProps {
3
2
  onRefresh?: () => void;
4
3
  url?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ModalLoadingErrorProps {
3
2
  errorMessage?: React.ReactNode;
4
3
  onRefresh?: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  interface NoInstanceViewProps {
4
3
  title: MessageDescriptor;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface NoResultsProps {
3
2
  onRefresh?: () => void;
4
3
  }
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ProviderAuthRequiredSVG: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type DatasourceMeta } from '@atlaskit/linking-types';
3
2
  interface ProviderAuthRequiredProps {
4
3
  auth: DatasourceMeta['auth'];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  interface InitialStateViewProps {
4
3
  icon: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type ModalDialogProps } from '@atlaskit/modal-dialog';
3
3
  type DatasourceModalProps = Pick<ModalDialogProps, 'testId' | 'onClose' | 'children' | 'shouldReturnFocus'>;
4
- export declare const DatasourceModal: ({ testId, onClose, children, shouldReturnFocus }: DatasourceModalProps) => React.JSX.Element;
4
+ export declare const DatasourceModal: ({ testId, onClose, children, shouldReturnFocus, }: DatasourceModalProps) => React.JSX.Element;
5
5
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type IssueLikeDataTableViewProps } from '../../../../issue-like-table/types';
3
2
  export type ColumnVisibilityProps = Pick<IssueLikeDataTableViewProps, 'onVisibleColumnKeysChange'> & {
4
3
  visibleColumnCount: React.MutableRefObject<number>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ModeSwitcherPropsOption<T extends string = string> {
3
2
  label: string;
4
3
  value: T;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type OptionProps } from '@atlaskit/react-select';
3
2
  import type { SelectOption } from './types';
4
3
  export declare const CustomCheckboxOption: ({ children, ...props }: OptionProps<SelectOption, true>) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const CustomErrorMessage: ({ filterName, errors }: {
3
3
  filterName: string;
4
- errors?: unknown[] | undefined;
4
+ errors?: unknown[];
5
5
  }) => React.JSX.Element;
6
6
  export default CustomErrorMessage;
@@ -6,6 +6,6 @@ interface TableSearchCountProps {
6
6
  testId?: string;
7
7
  styles?: React.CSSProperties;
8
8
  }
9
- export declare const AssetsItemCount: ({ searchCount, url, testId, }: Pick<TableSearchCountProps, 'testId' | 'url' | 'searchCount'>) => React.JSX.Element;
9
+ export declare const AssetsItemCount: ({ searchCount, url, testId, }: Pick<TableSearchCountProps, "testId" | "url" | "searchCount">) => React.JSX.Element;
10
10
  declare const TableSearchCount: ({ url, searchCount, styles: additionalStyles, testId, prefixTextType, }: TableSearchCountProps) => React.JSX.Element;
11
11
  export default TableSearchCount;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  import type { Site } from '../../../../common/types';
4
3
  export interface SiteSelectorProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const CustomDropdownItem: (props: React.PropsWithChildren<{
3
2
  isSelected: boolean;
4
3
  onClick: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type IntlShape } from 'react-intl-next';
3
3
  import { type DateRangeType } from '../../../../common/modal/popup-select/types';
4
- export declare const getDropdownLabel: (option: DateRangeType | undefined, formatMessage: IntlShape['formatMessage']) => string;
5
- export declare const getCurrentOptionLabel: (formatDate: IntlShape['formatDate'], formatMessage: IntlShape['formatMessage'], value?: DateRangeType, to?: string, from?: string) => string;
4
+ export declare const getDropdownLabel: (option: DateRangeType | undefined, formatMessage: IntlShape["formatMessage"]) => string;
5
+ export declare const getCurrentOptionLabel: (formatDate: IntlShape["formatDate"], formatMessage: IntlShape["formatMessage"], value?: DateRangeType, to?: string, from?: string) => string;
6
6
  export declare const useInvalidDateRange: (from?: string, to?: string) => React.JSX.Element | null;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  export declare const DatasourceTableView: import("react").ForwardRefExoticComponent<{
3
2
  datasourceId: string;
4
3
  parameters: object;
5
- url?: string | undefined;
6
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
4
+ url?: string;
5
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onVisibleColumnKeysChange" | "scrollableContainerHeight" | "onColumnResize" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
7
6
  export declare const DataSourceTableViewNoSuspense: import("react").ForwardRefExoticComponent<{
8
7
  datasourceId: string;
9
8
  parameters: object;
10
- url?: string | undefined;
11
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
9
+ url?: string;
10
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onVisibleColumnKeysChange" | "scrollableContainerHeight" | "onColumnResize" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MenuListComponentProps, type OptionProps, type OptionType } from '@atlaskit/select';
3
2
  export declare const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
4
3
  export declare const ConcatenatedMenuList: ({ children, ...props }: MenuListComponentProps<OptionType, true>) => JSX.Element;
@@ -6,10 +6,10 @@ import { type DatasourceTypeWithOnlyValues } from '../types';
6
6
  export declare const editType: ({ defaultValue, currentValue, labelId, setEditValues, executeFetch, }: {
7
7
  defaultValue: DatasourceTypeWithOnlyValues;
8
8
  currentValue: DatasourceTypeWithOnlyValues;
9
- labelId?: string | undefined;
9
+ labelId?: string;
10
10
  setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
11
- executeFetch?: ExecuteFetch | undefined;
12
- }) => Pick<React.ComponentProps<typeof InlineEdit>, 'defaultValue' | 'editView'>;
13
- export declare const isEditTypeSupported: (type: DatasourceType['type']) => boolean;
14
- export declare const isEditTypeSelectable: (type: DatasourceType['type']) => boolean;
11
+ executeFetch?: ExecuteFetch;
12
+ }) => Pick<React.ComponentProps<typeof InlineEdit>, "defaultValue" | "editView">;
13
+ export declare const isEditTypeSupported: (type: DatasourceType["type"]) => boolean;
14
+ export declare const isEditTypeSelectable: (type: DatasourceType["type"]) => boolean;
15
15
  export declare const toValueType: <T>(typeWithValues: DatasourceTypeWithOnlyValues) => T;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface Props {
3
2
  isCompact?: boolean;
4
3
  testId?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
3
2
  import { type IssueLikeDataTableViewProps } from './types';
4
3
  export declare const getOrderedColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
@@ -1,5 +1,5 @@
1
1
  import { type IntlShape } from 'react-intl-next';
2
2
  import { type DatasourceType } from '@atlaskit/linking-types';
3
3
  import { type TableViewPropsRenderType } from '../types';
4
- export declare const stringifyType: ({ type, value }: DatasourceType, formatMessage: IntlShape['formatMessage'], formatDate: IntlShape['formatDate']) => string;
4
+ export declare const stringifyType: ({ type, value }: DatasourceType, formatMessage: IntlShape["formatMessage"], formatDate: IntlShape["formatDate"]) => string;
5
5
  export declare const renderType: TableViewPropsRenderType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type RichText } from '@atlaskit/linking-types';
3
2
  export declare const parseRichText: (value: RichText) => string | null;
4
3
  declare const RichTextType: ({ value }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SharedIconComponentProps {
3
2
  /**
4
3
  * URL or SVG for the priority icon
@@ -4,5 +4,5 @@
4
4
  */
5
5
  import React from 'react';
6
6
  export declare const TruncateTextTag: React.ForwardRefExoticComponent<{
7
- children?: React.ReactNode;
7
+ children?: React.ReactNode | undefined;
8
8
  } & React.RefAttributes<HTMLElement>>;