@atlaskit/link-picker 5.3.3 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/ui/main.js +1 -1
- package/dist/types/common/types.d.ts +8 -0
- package/errors/package.json +1 -8
- package/lazy/package.json +1 -8
- package/link-picker/package.json +1 -8
- package/loader-fallback/package.json +1 -8
- package/package.json +26 -34
- package/types/package.json +1 -8
- package/dist/types-ts4.5/common/analytics/context.d.ts +0 -31
- package/dist/types-ts4.5/common/analytics/experiences.d.ts +0 -11
- package/dist/types-ts4.5/common/analytics/index.d.ts +0 -2
- package/dist/types-ts4.5/common/analytics/input-field-tracking.d.ts +0 -17
- package/dist/types-ts4.5/common/constants.d.ts +0 -5
- package/dist/types-ts4.5/common/generic-error-svg/index.d.ts +0 -1
- package/dist/types-ts4.5/common/types.d.ts +0 -199
- package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +0 -10
- package/dist/types-ts4.5/common/ui/min-height-container/index.d.ts +0 -8
- package/dist/types-ts4.5/common/utils/analytics/analytics.codegen.d.ts +0 -65
- package/dist/types-ts4.5/common/utils/date.d.ts +0 -1
- package/dist/types-ts4.5/common/utils/dateUtils.d.ts +0 -8
- package/dist/types-ts4.5/common/utils/errors.d.ts +0 -6
- package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +0 -2
- package/dist/types-ts4.5/controllers/session-provider/index.d.ts +0 -10
- package/dist/types-ts4.5/entry-points/errors.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/lazy-link-picker.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/link-picker.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/loader-fallback.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -41
- package/dist/types-ts4.5/i18n/da.d.ts +0 -41
- package/dist/types-ts4.5/i18n/de.d.ts +0 -41
- package/dist/types-ts4.5/i18n/en.d.ts +0 -42
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -42
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -42
- package/dist/types-ts4.5/i18n/es.d.ts +0 -41
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -41
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -41
- package/dist/types-ts4.5/i18n/index.d.ts +0 -1
- package/dist/types-ts4.5/i18n/it.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -41
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -32
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -41
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -39
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -41
- package/dist/types-ts4.5/i18n/th.d.ts +0 -41
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -41
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -41
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -41
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -41
- package/dist/types-ts4.5/index.d.ts +0 -12
- package/dist/types-ts4.5/lazy.d.ts +0 -1
- package/dist/types-ts4.5/services/use-plugins/index.d.ts +0 -15
- package/dist/types-ts4.5/services/use-plugins/reducer.d.ts +0 -33
- package/dist/types-ts4.5/services/use-plugins/utils.d.ts +0 -18
- package/dist/types-ts4.5/services/use-search-query/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-fallback/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/index.d.ts +0 -16
- package/dist/types-ts4.5/ui/lazy.d.ts +0 -4
- package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +0 -22
- package/dist/types-ts4.5/ui/link-picker/autoSubmitOnChange.d.ts +0 -9
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +0 -43
- package/dist/types-ts4.5/ui/link-picker/form-footer/link-picker-submit-button/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/link-picker/form-footer/link-picker-submit-button/utils.d.ts +0 -2
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +0 -30
- package/dist/types-ts4.5/ui/link-picker/messages.d.ts +0 -95
- package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +0 -45
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-error/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +0 -55
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/index.d.ts +0 -19
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +0 -11
- package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/link-picker/search-results/track-tab-viewed/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +0 -27
- package/dist/types-ts4.5/ui/link-picker/text-input/utils.d.ts +0 -3
- package/dist/types-ts4.5/ui/link-picker/track-mount/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/link-picker/transformTimeStamp.d.ts +0 -2
- package/dist/types-ts4.5/ui/link-picker/utils.d.ts +0 -7
- package/dist/types-ts4.5/ui/loader-fallback/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/main.d.ts +0 -12
- package/dist/types-ts4.5/ui/messages-provider/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +0 -2
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.linkPicker.button.cancel': string;
|
|
9
|
-
'fabric.linkPicker.button.insert': string;
|
|
10
|
-
'fabric.linkPicker.button.save': string;
|
|
11
|
-
'fabric.linkPicker.clearLink': string;
|
|
12
|
-
'fabric.linkPicker.clearLinkText': string;
|
|
13
|
-
'fabric.linkPicker.hyperlink.searchLinkResults': string;
|
|
14
|
-
'fabric.linkPicker.linkAriaLabel': string;
|
|
15
|
-
'fabric.linkPicker.linkHelperTextAriaLabel': string;
|
|
16
|
-
'fabric.linkPicker.linkHelperTextLabel': string;
|
|
17
|
-
'fabric.linkPicker.linkInvalid': string;
|
|
18
|
-
'fabric.linkPicker.linkLabel': string;
|
|
19
|
-
'fabric.linkPicker.linkPlaceholder': string;
|
|
20
|
-
'fabric.linkPicker.linkTextAriaLabel': string;
|
|
21
|
-
'fabric.linkPicker.linkTextLabel': string;
|
|
22
|
-
'fabric.linkPicker.linkTextPlaceholder': string;
|
|
23
|
-
'fabric.linkPicker.listTitle.recentlyViewed': string;
|
|
24
|
-
'fabric.linkPicker.listTitle.recentlyViewedFormatted': string;
|
|
25
|
-
'fabric.linkPicker.listTitle.results': string;
|
|
26
|
-
'fabric.linkPicker.noEmbed': string;
|
|
27
|
-
'fabric.linkPicker.search.error.description': string;
|
|
28
|
-
'fabric.linkPicker.search.error.heading': string;
|
|
29
|
-
'fabric.linkPicker.search.error.retry': string;
|
|
30
|
-
'fabric.linkPicker.search.linkAriaLabel': string;
|
|
31
|
-
'fabric.linkPicker.search.linkLabel': string;
|
|
32
|
-
'fabric.linkPicker.search.linkPlaceholder': string;
|
|
33
|
-
'fabric.linkPicker.search.noResults.description': string;
|
|
34
|
-
'fabric.linkPicker.search.noResults.heading': string;
|
|
35
|
-
'fabric.linkPicker.status.submitting': string;
|
|
36
|
-
'fabric.linkPicker.time.message.updated': string;
|
|
37
|
-
'fabric.linkPicker.time.message.viewed': string;
|
|
38
|
-
'fabric.linkPicker.unhandledError.description': string;
|
|
39
|
-
'fabric.linkPicker.unhandledError.heading': string;
|
|
40
|
-
};
|
|
41
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @deprecated Use @atlaskit/link-picker/link-picker */
|
|
2
|
-
export { default } from './ui';
|
|
3
|
-
/** @deprecated Use @atlaskit/link-picker/lazy */
|
|
4
|
-
export { DeprecatedLazyLinkPickerExport as LinkPicker } from './ui';
|
|
5
|
-
/** @deprecated Use @atlaskit/link-picker/types */
|
|
6
|
-
export type { LinkPickerProps } from './common/types';
|
|
7
|
-
/** @deprecated Use @atlaskit/link-picker/types */
|
|
8
|
-
export type { LinkInputType, LinkPickerPluginAction, LinkPickerPlugin, LinkPickerState, LinkSearchListItemData, LinkPickerPluginErrorFallback, LinkPickerPluginEmptyStateNoResults, LinkPickerUiOptions, } from './common/types';
|
|
9
|
-
/** @deprecated Use @atlaskit/link-picker/errors */
|
|
10
|
-
export { UnauthenticatedError } from './common/utils/errors';
|
|
11
|
-
/** @deprecated Use @atlaskit/link-picker/loader-fallback */
|
|
12
|
-
export { LoaderFallback } from './ui/loader-fallback';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LazyLinkPicker } from './ui/lazy';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type LinkPickerPlugin, type LinkPickerPluginAction, type LinkPickerPluginErrorFallback, type LinkPickerState, type LinkSearchListItemData } from '../../common/types';
|
|
2
|
-
export interface LinkPickerPluginsService {
|
|
3
|
-
items: LinkSearchListItemData[] | null;
|
|
4
|
-
isLoading: boolean;
|
|
5
|
-
isActivePlugin: boolean;
|
|
6
|
-
activePlugin?: LinkPickerPlugin;
|
|
7
|
-
tabs: {
|
|
8
|
-
tabTitle: string;
|
|
9
|
-
}[];
|
|
10
|
-
error: unknown | null;
|
|
11
|
-
retry: () => void;
|
|
12
|
-
errorFallback?: LinkPickerPluginErrorFallback;
|
|
13
|
-
pluginAction?: LinkPickerPluginAction;
|
|
14
|
-
}
|
|
15
|
-
export declare function usePlugins(state: LinkPickerState | null, activeTab: number, plugins?: LinkPickerPlugin[], recentSearchListSize?: number, alwaysShowTabs?: boolean): LinkPickerPluginsService;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type Dispatch } from 'react';
|
|
2
|
-
import { type LinkSearchListItemData } from '../../common/types';
|
|
3
|
-
export interface PluginState {
|
|
4
|
-
items: LinkSearchListItemData[] | null;
|
|
5
|
-
error: unknown | null;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const ACTION_CLEAR = "CLEAR";
|
|
9
|
-
export declare const ACTION_LOADING = "LOADING";
|
|
10
|
-
export declare const ACTION_SUCCESS = "SUCCESS";
|
|
11
|
-
export declare const ACTION_ERRORED = "ERROR";
|
|
12
|
-
interface ClearAction {
|
|
13
|
-
type: typeof ACTION_CLEAR;
|
|
14
|
-
}
|
|
15
|
-
interface ResolveLoadingAction {
|
|
16
|
-
type: typeof ACTION_LOADING;
|
|
17
|
-
}
|
|
18
|
-
interface ResolveSuccessAction {
|
|
19
|
-
type: typeof ACTION_SUCCESS;
|
|
20
|
-
payload: Pick<PluginState, 'items' | 'isLoading'>;
|
|
21
|
-
}
|
|
22
|
-
interface ResolveErrorAction {
|
|
23
|
-
type: typeof ACTION_ERRORED;
|
|
24
|
-
payload: PluginState['error'];
|
|
25
|
-
}
|
|
26
|
-
export type ReducerAction = ClearAction | ResolveLoadingAction | ResolveSuccessAction | ResolveErrorAction;
|
|
27
|
-
export declare const INITIAL_STATE: PluginState;
|
|
28
|
-
export declare function reducer(state: PluginState, action: ReducerAction): PluginState;
|
|
29
|
-
export declare const usePluginReducer: () => [
|
|
30
|
-
PluginState,
|
|
31
|
-
Dispatch<ReducerAction>
|
|
32
|
-
];
|
|
33
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type LinkPickerPlugin, type LinkPickerState, type ResolveResult } from '../../common/types';
|
|
2
|
-
export declare class CancellationError extends Error {
|
|
3
|
-
}
|
|
4
|
-
export declare const cancellable: <T extends unknown>(promise: Promise<T>) => {
|
|
5
|
-
promise: Promise<T>;
|
|
6
|
-
cancel: () => void;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Wraps the resolve with a cancellation wrapper and makes promise + generator plugin resolves more compatible
|
|
10
|
-
* Calling cancel for generator plugin prevents it from yielding any further updates
|
|
11
|
-
*/
|
|
12
|
-
export declare const resolvePluginUpdates: (plugin: LinkPickerPlugin, state: LinkPickerState) => {
|
|
13
|
-
cancel: () => void;
|
|
14
|
-
next: () => Promise<{
|
|
15
|
-
done?: boolean;
|
|
16
|
-
value: ResolveResult;
|
|
17
|
-
}>;
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
2
|
-
export type ErrorBoundaryErrorInfo = {
|
|
3
|
-
componentStack: string;
|
|
4
|
-
};
|
|
5
|
-
type BaseErrorBoundaryState = {
|
|
6
|
-
hasError: boolean;
|
|
7
|
-
};
|
|
8
|
-
interface BaseErrorBoundaryProps {
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
ErrorComponent?: React.ComponentType;
|
|
11
|
-
onError?: (error: Error, info?: ErrorInfo) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare class BaseErrorBoundary extends Component<BaseErrorBoundaryProps, BaseErrorBoundaryState> {
|
|
14
|
-
constructor(props: BaseErrorBoundaryProps);
|
|
15
|
-
componentDidCatch(error: Error, info?: ErrorInfo): void;
|
|
16
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ErrorBoundaryFallback: () => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { MemoExoticComponent } from 'react';
|
|
2
|
-
import type { LinkPickerProps } from '../common/types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated A `/lazy` entrypoint has been added.
|
|
5
|
-
* @example Prefer the default export from the default entrypoint if you do not want a lazy-loaded version.
|
|
6
|
-
* ```tsx
|
|
7
|
-
* import LinkPicker from '@atlaskit/link-picker';
|
|
8
|
-
* ```
|
|
9
|
-
* @example Prefer the `LazyLinkPicker` export from the `/lazy` entrypoint if you want a lazy-loaded version.
|
|
10
|
-
* ```tsx
|
|
11
|
-
* import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export declare const DeprecatedLazyLinkPickerExport: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
|
|
15
|
-
declare const _default_1: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
|
|
16
|
-
export default _default_1;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { type AriaAttributes, type Ref } from 'react';
|
|
2
|
-
type AnnouncerProps = {
|
|
3
|
-
ref?: Ref<HTMLDivElement>;
|
|
4
|
-
/** Set 'false' for announcing only changed text
|
|
5
|
-
* (not announce duplicate part of string after second render),
|
|
6
|
-
* and 'true' for announcing all the string after each render */
|
|
7
|
-
ariaAtomic?: AriaAttributes['aria-atomic'];
|
|
8
|
-
/** Set politeness settings */
|
|
9
|
-
ariaLive?: AriaAttributes['aria-live'];
|
|
10
|
-
/** Used to describe what types of changes have occurred to an aria-live region */
|
|
11
|
-
ariaRelevant?: AriaAttributes['aria-relevant'];
|
|
12
|
-
/** Role used to set attribute role. See more details https://dequeuniversity.com/library/aria/liveregion-playground#configOptions */
|
|
13
|
-
role?: 'status' | 'log' | 'alert' | 'timer' | 'marquee';
|
|
14
|
-
/** Text message that will be announced */
|
|
15
|
-
text: string;
|
|
16
|
-
/** Debounce delay.
|
|
17
|
-
* Set delay (ms) to prevent announce the same string multiple times.
|
|
18
|
-
* It can be useful for cases when the parent component re-renders with the same announcer's text. */
|
|
19
|
-
delay?: number;
|
|
20
|
-
};
|
|
21
|
-
export declare const Announcer: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<AnnouncerProps, 'ref'> & React.RefAttributes<HTMLDivElement>>>;
|
|
22
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface AutoSubmitOnChangeProps {
|
|
2
|
-
url: string;
|
|
3
|
-
isSubmitting: boolean;
|
|
4
|
-
isSelectedItem: boolean;
|
|
5
|
-
onSubmit: () => void;
|
|
6
|
-
onClearInvalidUrl: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const AutoSubmitOnChange: ({ url, isSubmitting, isSelectedItem, onSubmit, onClearInvalidUrl, }: AutoSubmitOnChangeProps) => null;
|
|
9
|
-
export default AutoSubmitOnChange;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type MemoExoticComponent } from 'react';
|
|
6
|
-
import { type MessageDescriptor } from 'react-intl';
|
|
7
|
-
import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
|
|
8
|
-
export declare const messages: {
|
|
9
|
-
cancelButton: {
|
|
10
|
-
id: string;
|
|
11
|
-
defaultMessage: string;
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
|
-
submittingStatusMessage: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
description: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export declare const testIds: {
|
|
21
|
-
readonly insertButton: "link-picker-insert-button";
|
|
22
|
-
readonly cancelButton: "link-picker-cancel-button";
|
|
23
|
-
readonly actionButton: "link-picker-action-button";
|
|
24
|
-
readonly submitStatusA11yIndicator: "link-picker-submit-status-a11y-indicator";
|
|
25
|
-
};
|
|
26
|
-
interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
27
|
-
/** If the results section appears to be loading, impact whether the submit button is disabled */
|
|
28
|
-
isLoading: boolean;
|
|
29
|
-
/** Controls showing a "submission in-progres" UX */
|
|
30
|
-
isSubmitting?: boolean;
|
|
31
|
-
error: unknown | null;
|
|
32
|
-
url: string;
|
|
33
|
-
queryState: LinkPickerState | null;
|
|
34
|
-
items: LinkSearchListItemData[] | null;
|
|
35
|
-
isEditing?: boolean;
|
|
36
|
-
onCancel?: () => void;
|
|
37
|
-
action?: LinkPickerPluginAction;
|
|
38
|
-
customSubmitButtonLabel?: MessageDescriptor;
|
|
39
|
-
submitMessageId?: string;
|
|
40
|
-
hideSubmitButton?: boolean;
|
|
41
|
-
}
|
|
42
|
-
export declare const FormFooter: MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, className, ...restProps }: FormFooterProps) => JSX.Element | null>;
|
|
43
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
-
import type { LinkPickerState, LinkSearchListItemData } from '../../../../common/types';
|
|
4
|
-
type LinkPickerButtonGroupProps = {
|
|
5
|
-
isEditing?: boolean;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
isSubmitting: boolean;
|
|
8
|
-
customSubmitButtonLabel?: MessageDescriptor;
|
|
9
|
-
error: unknown | null;
|
|
10
|
-
items: LinkSearchListItemData[] | null;
|
|
11
|
-
queryState: LinkPickerState | null;
|
|
12
|
-
submitMessageId?: string;
|
|
13
|
-
testId?: string;
|
|
14
|
-
url: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const messages: {
|
|
17
|
-
saveButton: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
insertButton: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare const LinkPickerSubmitButton: ({ isEditing, isLoading, isSubmitting, customSubmitButtonLabel, error, items, queryState, submitMessageId, testId, url, }: LinkPickerButtonGroupProps) => React.JSX.Element;
|
|
29
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { type LinkPickerState, type LinkSearchListItemData } from '../../../../common/types';
|
|
2
|
-
export declare const checkSubmitDisabled: (isLoading: boolean, isSubmitting: boolean, error: unknown | null, url: string, queryState: LinkPickerState | null, items: LinkSearchListItemData[] | null) => boolean;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType } from 'react';
|
|
6
|
-
import type { LinkPickerProps } from '../../common/types';
|
|
7
|
-
export declare const testIds: {
|
|
8
|
-
readonly urlError: string;
|
|
9
|
-
readonly clearUrlButton: string;
|
|
10
|
-
readonly linkHelperText: string;
|
|
11
|
-
readonly insertButton: 'link-picker-insert-button';
|
|
12
|
-
readonly cancelButton: 'link-picker-cancel-button';
|
|
13
|
-
readonly actionButton: 'link-picker-action-button';
|
|
14
|
-
readonly submitStatusA11yIndicator: 'link-picker-submit-status-a11y-indicator';
|
|
15
|
-
readonly tabsLoadingIndicator: string;
|
|
16
|
-
readonly tabList: string;
|
|
17
|
-
readonly tabItem: string;
|
|
18
|
-
readonly resultListTitle: string;
|
|
19
|
-
readonly searchResultList: string;
|
|
20
|
-
readonly searchResultLoadingIndicator: string;
|
|
21
|
-
readonly searchResultItem: string;
|
|
22
|
-
readonly searchResultIcon: string;
|
|
23
|
-
readonly emptyResultPage: string;
|
|
24
|
-
readonly searchError: string;
|
|
25
|
-
readonly linkPickerRoot: 'link-picker-root';
|
|
26
|
-
readonly linkPicker: 'link-picker';
|
|
27
|
-
readonly urlInputField: 'link-url';
|
|
28
|
-
readonly textInputField: 'link-text';
|
|
29
|
-
};
|
|
30
|
-
export declare const LinkPicker: ComponentType<LinkPickerProps>;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
export declare const searchMessages: {
|
|
2
|
-
linkLabel: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
linkAriaLabel: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
linkPlaceholder: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare const linkMessages: {
|
|
19
|
-
linkLabel: {
|
|
20
|
-
id: string;
|
|
21
|
-
defaultMessage: string;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
linkAriaLabel: {
|
|
25
|
-
id: string;
|
|
26
|
-
defaultMessage: string;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
linkPlaceholder: {
|
|
30
|
-
id: string;
|
|
31
|
-
defaultMessage: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare const formMessages: {
|
|
36
|
-
linkInvalid: {
|
|
37
|
-
id: string;
|
|
38
|
-
defaultMessage: string;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
clearLink: {
|
|
42
|
-
id: string;
|
|
43
|
-
defaultMessage: string;
|
|
44
|
-
description: string;
|
|
45
|
-
};
|
|
46
|
-
noEmbedAvailable: {
|
|
47
|
-
id: string;
|
|
48
|
-
defaultMessage: string;
|
|
49
|
-
description: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export declare const linkTextMessages: {
|
|
53
|
-
linkTextLabel: {
|
|
54
|
-
id: string;
|
|
55
|
-
defaultMessage: string;
|
|
56
|
-
description: string;
|
|
57
|
-
};
|
|
58
|
-
linkTextAriaLabel: {
|
|
59
|
-
id: string;
|
|
60
|
-
defaultMessage: string;
|
|
61
|
-
description: string;
|
|
62
|
-
};
|
|
63
|
-
linkTextPlaceholder: {
|
|
64
|
-
id: string;
|
|
65
|
-
defaultMessage: string;
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
clearLinkText: {
|
|
69
|
-
id: string;
|
|
70
|
-
defaultMessage: string;
|
|
71
|
-
description: string;
|
|
72
|
-
};
|
|
73
|
-
linkHelperTextLabel: {
|
|
74
|
-
id: string;
|
|
75
|
-
defaultMessage: string;
|
|
76
|
-
description: string;
|
|
77
|
-
};
|
|
78
|
-
linkHelperTextAriaLabel: {
|
|
79
|
-
id: string;
|
|
80
|
-
defaultMessage: string;
|
|
81
|
-
description: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
export declare const timeMessages: {
|
|
85
|
-
updated: {
|
|
86
|
-
id: string;
|
|
87
|
-
defaultMessage: string;
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
90
|
-
viewed: {
|
|
91
|
-
id: string;
|
|
92
|
-
defaultMessage: string;
|
|
93
|
-
description: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type KeyboardEvent } from 'react';
|
|
6
|
-
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../common/types';
|
|
7
|
-
export declare const testIds: {
|
|
8
|
-
tabsLoadingIndicator: string;
|
|
9
|
-
tabList: string;
|
|
10
|
-
tabItem: string;
|
|
11
|
-
resultListTitle: string;
|
|
12
|
-
searchResultList: string;
|
|
13
|
-
searchResultLoadingIndicator: string;
|
|
14
|
-
searchResultItem: string;
|
|
15
|
-
searchResultIcon: string;
|
|
16
|
-
emptyResultPage: string;
|
|
17
|
-
searchError: string;
|
|
18
|
-
};
|
|
19
|
-
export type SearchResultsProps = {
|
|
20
|
-
activePlugin?: LinkPickerPlugin;
|
|
21
|
-
tabs: {
|
|
22
|
-
tabTitle: string;
|
|
23
|
-
}[];
|
|
24
|
-
isLoadingPlugins?: boolean;
|
|
25
|
-
isLoadingResults: boolean;
|
|
26
|
-
isSubmitting?: boolean;
|
|
27
|
-
activeTab: number;
|
|
28
|
-
handleTabChange: (activeTab: number) => void;
|
|
29
|
-
handleSearchListOnChange: (id: string) => void;
|
|
30
|
-
featureFlags?: Record<string, unknown>;
|
|
31
|
-
linkSearchListId: string;
|
|
32
|
-
queryState?: {
|
|
33
|
-
query: string;
|
|
34
|
-
};
|
|
35
|
-
items?: LinkSearchListItemData[] | null;
|
|
36
|
-
activeIndex: number;
|
|
37
|
-
selectedIndex: number;
|
|
38
|
-
handleSelected: (objectId: string) => void;
|
|
39
|
-
handleKeyDown: (e: KeyboardEvent<HTMLElement>) => void;
|
|
40
|
-
error?: unknown;
|
|
41
|
-
adaptiveHeight: boolean;
|
|
42
|
-
retry: () => void;
|
|
43
|
-
shouldRenderNoResultsImage?: boolean;
|
|
44
|
-
};
|
|
45
|
-
export declare const SearchResults: ({ tabs, activeTab, activePlugin, isLoadingPlugins, isLoadingResults, isSubmitting, handleTabChange, handleSearchListOnChange, featureFlags, linkSearchListId, error, queryState, items, activeIndex, selectedIndex, handleSelected, handleKeyDown, adaptiveHeight, retry, shouldRenderNoResultsImage, }: SearchResultsProps) => JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const CONTACT_SUPPORT_LINK = "https://support.atlassian.com/contact/";
|
|
3
|
-
export declare const CONTACT_SUPPORT_LINK_FEDRAMP = "https://gcs.atlassian-us-gov-mod.net/servicedesk/customer/portals";
|
|
4
|
-
export declare const messages: {
|
|
5
|
-
searchErrorHeader: {
|
|
6
|
-
id: string;
|
|
7
|
-
defaultMessage: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
searchErrorDescription: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
searchErrorAction: {
|
|
16
|
-
id: string;
|
|
17
|
-
defaultMessage: string;
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export declare const testIds: {
|
|
22
|
-
searchError: string;
|
|
23
|
-
};
|
|
24
|
-
type LinkSearchErrorProps = {
|
|
25
|
-
/** Only used if fg `platform-linking-visual-refresh-link-picker` is enabled */
|
|
26
|
-
onRetry?: () => void;
|
|
27
|
-
};
|
|
28
|
-
export declare const LinkSearchError: ({ onRetry }: LinkSearchErrorProps) => React.JSX.Element;
|
|
29
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ForwardRefExoticComponent, type KeyboardEvent, type RefAttributes } from 'react';
|
|
6
|
-
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../../common/types';
|
|
7
|
-
export declare const messages: {
|
|
8
|
-
titleRecentlyViewedFormatted: {
|
|
9
|
-
id: string;
|
|
10
|
-
defaultMessage: string;
|
|
11
|
-
description: string;
|
|
12
|
-
};
|
|
13
|
-
titleResults: {
|
|
14
|
-
id: string;
|
|
15
|
-
defaultMessage: string;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
searchLinkResults: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
description: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const testIds: {
|
|
25
|
-
resultListTitle: string;
|
|
26
|
-
searchResultList: string;
|
|
27
|
-
searchResultLoadingIndicator: string;
|
|
28
|
-
tabsLoadingIndicator: string;
|
|
29
|
-
searchResultItem: string;
|
|
30
|
-
searchResultIcon: string;
|
|
31
|
-
emptyResultPage: string;
|
|
32
|
-
};
|
|
33
|
-
type LinkSearchListElement = HTMLElement;
|
|
34
|
-
export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearchListElement>, 'onSelect' | 'onChange'> {
|
|
35
|
-
items?: LinkSearchListItemData[] | null;
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
selectedIndex: number;
|
|
38
|
-
activeIndex: number;
|
|
39
|
-
adaptiveHeight: boolean;
|
|
40
|
-
onChange: (objectId: string) => void;
|
|
41
|
-
onSelect: (objectId: string) => void;
|
|
42
|
-
onKeyDown?: (e: KeyboardEvent<LinkSearchListElement>) => void;
|
|
43
|
-
ariaControls?: string;
|
|
44
|
-
ariaLabelledBy?: string;
|
|
45
|
-
ariaReadOnly?: boolean;
|
|
46
|
-
role?: string;
|
|
47
|
-
id?: string;
|
|
48
|
-
hasSearchTerm?: boolean;
|
|
49
|
-
activePlugin?: LinkPickerPlugin;
|
|
50
|
-
/** Because we don't use the DST TabPanels component, tabPanelId is needed to set the correct aria-controls for a11y. */
|
|
51
|
-
tabPanelId?: string;
|
|
52
|
-
shouldRenderNoResultsImage?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export declare const LinkSearchList: ForwardRefExoticComponent<LinkSearchListProps & RefAttributes<HTMLDivElement>>;
|
|
55
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const messages: {
|
|
3
|
-
noResults: {
|
|
4
|
-
id: string;
|
|
5
|
-
defaultMessage: string;
|
|
6
|
-
description: string;
|
|
7
|
-
};
|
|
8
|
-
noResultsDescription: {
|
|
9
|
-
id: string;
|
|
10
|
-
defaultMessage: string;
|
|
11
|
-
description: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const testIds: {
|
|
15
|
-
emptyResultPage: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const NoResults: ({ shouldRenderImage, }: {
|
|
18
|
-
shouldRenderImage?: boolean;
|
|
19
|
-
}) => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const NoResultsSVG: () => JSX.Element;
|
package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ForwardRefExoticComponent, type KeyboardEvent, type RefAttributes } from 'react';
|
|
6
|
-
import { type LinkSearchListItemData } from '../../../../../common/types';
|
|
7
|
-
export declare const testIds: {
|
|
8
|
-
searchResultItem: string;
|
|
9
|
-
searchResultIcon: string;
|
|
10
|
-
};
|
|
11
|
-
export type LinkSearchListItemProps = {
|
|
12
|
-
item: LinkSearchListItemData;
|
|
13
|
-
selected: boolean;
|
|
14
|
-
active: boolean;
|
|
15
|
-
tabIndex?: number;
|
|
16
|
-
onSelect: (objectId: string) => void;
|
|
17
|
-
onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
-
onFocus: () => void;
|
|
19
|
-
id?: string;
|
|
20
|
-
role?: string;
|
|
21
|
-
nameMaxLines?: number;
|
|
22
|
-
};
|
|
23
|
-
export declare const LinkSearchListItem: ForwardRefExoticComponent<LinkSearchListItemProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
|
-
export interface ConditionalButtons {
|
|
3
|
-
back: boolean;
|
|
4
|
-
forward: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const scrollBack: (ref: RefObject<HTMLDivElement>) => void;
|
|
7
|
-
export declare const scrollForward: (ref: RefObject<HTMLDivElement>) => void;
|
|
8
|
-
export declare const calculateConditionalButtons: (container: HTMLElement | null | undefined, hideButtons: boolean) => ConditionalButtons;
|
|
9
|
-
export declare const createGhost: () => HTMLDivElement;
|
|
10
|
-
export declare const getTabList: (ref: RefObject<HTMLDivElement>) => Element | null | undefined;
|
|
11
|
-
export declare const getContainer: (ref: RefObject<HTMLDivElement>) => HTMLElement | null | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type SearchResultsContainerProps = {
|
|
2
|
-
adaptiveHeight: boolean;
|
|
3
|
-
isLoadingResults: boolean;
|
|
4
|
-
hasTabs?: boolean;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
};
|
|
7
|
-
export declare const SearchResultsContainer: ({ hasTabs, adaptiveHeight, isLoadingResults, children, }: SearchResultsContainerProps) => JSX.Element;
|
|
8
|
-
export {};
|
package/dist/types-ts4.5/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ConditionalSpotlightTargetWrapperProps {
|
|
3
|
-
spotlightTargetName?: string;
|
|
4
|
-
children: React.ReactElement;
|
|
5
|
-
}
|
|
6
|
-
export declare const ConditionalSpotlightTargetWrapper: ({ spotlightTargetName, children, }: ConditionalSpotlightTargetWrapperProps) => React.JSX.Element;
|