@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.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- package/dist/cjs/ui/common/error-state/provider-auth-required.js +2 -9
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +2 -18
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +2 -9
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +2 -18
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +2 -19
- package/dist/esm/ui/common/error-state/provider-auth-required.js +2 -9
- package/dist/esm/ui/common/modal/basic-search-input/index.js +2 -18
- package/dist/types/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types/analytics/generated/use-analytics-events.d.ts +2 -1
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +0 -1
- package/dist/types/common/ui/common/render-svg.d.ts +0 -1
- package/dist/types/hooks/useErrorLogger.d.ts +4 -4
- package/dist/types/services/getAvailableSites.d.ts +1 -1
- package/dist/types/services/useAvailableSites.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +3 -3
- package/dist/types/ui/assets-modal/modal/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/loading-state.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -1
- package/dist/types/ui/assets-modal/search-container/styled.d.ts +0 -1
- package/dist/types/ui/common/error-state/access-required.d.ts +0 -1
- package/dist/types/ui/common/error-state/loading-error.d.ts +0 -1
- package/dist/types/ui/common/error-state/modal-loading-error.d.ts +0 -1
- package/dist/types/ui/common/error-state/no-instances.d.ts +0 -1
- package/dist/types/ui/common/error-state/no-results.d.ts +0 -1
- package/dist/types/ui/common/error-state/provider-auth-required-svg.d.ts +0 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +0 -1
- package/dist/types/ui/common/initial-state-view/index.d.ts +0 -1
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +0 -1
- package/dist/types/ui/common/modal/datasource-modal/index.d.ts +1 -1
- package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +0 -1
- package/dist/types/ui/common/modal/mode-switcher/index.d.ts +0 -1
- package/dist/types/ui/common/modal/popup-select/custom-checkbox-option.d.ts +0 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/search-count/index.d.ts +1 -1
- package/dist/types/ui/common/modal/site-selector/index.d.ts +0 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.d.ts +0 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +2 -2
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +4 -5
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -1
- package/dist/types/ui/issue-like-table/edit-type/index.d.ts +5 -5
- package/dist/types/ui/issue-like-table/empty-state/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/render-type/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/richtext/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/shared-components/icon/index.d.ts +0 -1
- package/dist/types/ui/issue-like-table/truncate-text-tag/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/utils.d.ts +2 -3
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -1
- package/dist/types/ui/table-footer/index.d.ts +0 -1
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/common/render-svg.d.ts +0 -1
- package/dist/types-ts4.5/hooks/useErrorLogger.d.ts +7 -4
- package/dist/types-ts4.5/services/getAvailableSites.d.ts +1 -1
- package/dist/types-ts4.5/services/useAvailableSites.d.ts +1 -1
- package/dist/types-ts4.5/state/actions/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required-svg.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/datasource-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/datasources-table-in-modal-preview/use-column-visibility/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/mode-switcher/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/custom-checkbox-option.d.ts +0 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/search-count/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +2 -2
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +4 -5
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/edit-type/index.d.ts +5 -5
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/shared-components/icon/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/issue-like-table/truncate-text-tag/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/utils.d.ts +2 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/table-footer/index.d.ts +0 -1
- package/package.json +6 -7
|
@@ -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>;
|
|
@@ -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,
|
|
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;
|
package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts
CHANGED
|
@@ -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[
|
|
5
|
-
export declare const getCurrentOptionLabel: (formatDate: IntlShape[
|
|
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
|
|
6
|
-
} & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "
|
|
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
|
|
11
|
-
} & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "
|
|
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
|
|
9
|
+
labelId?: string;
|
|
10
10
|
setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
|
|
11
|
-
executeFetch?: ExecuteFetch
|
|
12
|
-
}) => Pick<React.ComponentProps<typeof InlineEdit>,
|
|
13
|
-
export declare const isEditTypeSupported: (type: DatasourceType[
|
|
14
|
-
export declare const isEditTypeSelectable: (type: DatasourceType[
|
|
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
|
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[
|
|
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 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>,
|
|
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[
|
|
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';
|
|
@@ -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
|
|
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
|
|
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
|
|
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,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,
|
|
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[
|
|
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:
|
|
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:
|
|
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"
|
|
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?: (
|
|
117
|
-
executeFetch?: ExecuteFetch
|
|
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,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>;
|
|
@@ -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,
|
|
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,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[
|
|
5
|
-
export declare const getCurrentOptionLabel: (formatDate: IntlShape[
|
|
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
|
|
6
|
-
} & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "
|
|
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
|
|
11
|
-
} & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "
|
|
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
|
|
9
|
+
labelId?: string;
|
|
10
10
|
setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
|
|
11
|
-
executeFetch?: ExecuteFetch
|
|
12
|
-
}) => Pick<React.ComponentProps<typeof InlineEdit>,
|
|
13
|
-
export declare const isEditTypeSupported: (type: DatasourceType[
|
|
14
|
-
export declare const isEditTypeSelectable: (type: DatasourceType[
|
|
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
|
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[
|
|
4
|
+
export declare const stringifyType: ({ type, value }: DatasourceType, formatMessage: IntlShape["formatMessage"], formatDate: IntlShape["formatDate"]) => string;
|
|
5
5
|
export declare const renderType: TableViewPropsRenderType;
|