@atlaskit/link-picker 5.3.3 → 5.3.4
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 +8 -0
- 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 +3 -3
- 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,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;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
* @jsxFrag React.Fragment
|
|
5
|
-
*/
|
|
6
|
-
import React, { type Ref } from 'react';
|
|
7
|
-
import { type TextFieldProps } from '@atlaskit/textfield';
|
|
8
|
-
import { type ConditionalSpotlightTargetWrapperProps } from './conditional-spotlight-target-wrapper';
|
|
9
|
-
export type TextInputProps = Omit<TextFieldProps, 'name' | 'value'> & Pick<ConditionalSpotlightTargetWrapperProps, 'spotlightTargetName'> & {
|
|
10
|
-
name: string;
|
|
11
|
-
value: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
onUndo?: () => void;
|
|
14
|
-
onRedo?: () => void;
|
|
15
|
-
onClear?: (name: string) => void;
|
|
16
|
-
clearLabel?: string;
|
|
17
|
-
error?: React.ReactNode;
|
|
18
|
-
/** Ref to the link picker search input. */
|
|
19
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
20
|
-
helperMessage?: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const testIds: {
|
|
23
|
-
urlError: string;
|
|
24
|
-
clearUrlButton: string;
|
|
25
|
-
linkHelperText: string;
|
|
26
|
-
};
|
|
27
|
-
export declare const TextInput: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, inputRef: inputRefProp, isRequired, helperMessage, ...restProps }: TextInputProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl';
|
|
2
|
-
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../common/types';
|
|
3
|
-
/**
|
|
4
|
-
* Retrieve the data source for a link given the item and the plugin that resolved it
|
|
5
|
-
*/
|
|
6
|
-
export declare const getDataSource: (item: LinkSearchListItemData, plugin?: LinkPickerPlugin) => string;
|
|
7
|
-
export declare function getScreenReaderText(items: LinkSearchListItemData[], selectedIndex: number, intl: IntlShape): string | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type LoaderFallbackProps = {
|
|
2
|
-
url?: string;
|
|
3
|
-
hideDisplayText?: boolean;
|
|
4
|
-
isLoadingPlugins?: boolean;
|
|
5
|
-
plugins?: unknown[];
|
|
6
|
-
name?: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Loader / skeleton for the Link Picker. Takes LoaderFallbackProps (hideDisplayText, isLoadingPlugins, plugins)
|
|
10
|
-
* to determine the height to prevent jumps in height when loading
|
|
11
|
-
*/
|
|
12
|
-
export declare const LoaderFallback: (props: LoaderFallbackProps) => JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { LinkPickerProps } from '../common/types';
|
|
7
|
-
import type { PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
8
|
-
export declare const testIds: {
|
|
9
|
-
linkPickerRoot: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const PACKAGE_DATA: PackageMetaDataType;
|
|
12
|
-
export declare const composeLinkPicker: (Component: React.ComponentType<LinkPickerProps>) => React.MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
|