@atlaskit/link-picker 2.1.0 → 3.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 +8 -0
- package/dist/cjs/common/generic-error-svg/index.js +2 -10
- package/dist/cjs/common/ui/empty-state/index.js +2 -10
- package/dist/cjs/common/ui/min-height-container/index.js +2 -14
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +2 -9
- package/dist/cjs/ui/link-picker/form-footer/index.js +3 -11
- package/dist/cjs/ui/link-picker/index.js +3 -10
- package/dist/cjs/ui/link-picker/search-results/index.js +2 -10
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +2 -13
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -10
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +2 -15
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +2 -10
- package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +2 -10
- package/dist/cjs/ui/link-picker/text-input/index.js +2 -9
- package/dist/cjs/ui/loader-fallback/index.js +2 -10
- package/dist/cjs/ui/main.js +3 -11
- package/dist/es2019/common/generic-error-svg/index.js +1 -9
- package/dist/es2019/common/ui/empty-state/index.js +1 -9
- package/dist/es2019/common/ui/min-height-container/index.js +1 -13
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +1 -8
- package/dist/es2019/ui/link-picker/form-footer/index.js +2 -10
- package/dist/es2019/ui/link-picker/index.js +2 -9
- package/dist/es2019/ui/link-picker/search-results/index.js +1 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +1 -12
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +1 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +1 -14
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +1 -9
- package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +1 -9
- package/dist/es2019/ui/link-picker/text-input/index.js +1 -8
- package/dist/es2019/ui/loader-fallback/index.js +1 -9
- package/dist/es2019/ui/main.js +2 -10
- package/dist/esm/common/generic-error-svg/index.js +1 -9
- package/dist/esm/common/ui/empty-state/index.js +1 -9
- package/dist/esm/common/ui/min-height-container/index.js +1 -13
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +1 -8
- package/dist/esm/ui/link-picker/form-footer/index.js +2 -10
- package/dist/esm/ui/link-picker/index.js +2 -9
- package/dist/esm/ui/link-picker/search-results/index.js +1 -9
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +1 -12
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +1 -9
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +1 -14
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +1 -9
- package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +1 -9
- package/dist/esm/ui/link-picker/text-input/index.js +1 -8
- package/dist/esm/ui/loader-fallback/index.js +1 -9
- package/dist/esm/ui/main.js +2 -10
- package/dist/types/common/generic-error-svg/index.d.ts +0 -1
- package/dist/types/common/ui/empty-state/index.d.ts +1 -2
- package/dist/types/common/ui/min-height-container/index.d.ts +0 -3
- package/dist/types/ui/error-boundary/error-boundary-fallback/index.d.ts +0 -1
- package/dist/types/ui/index.d.ts +2 -2
- package/dist/types/ui/lazy.d.ts +1 -1
- package/dist/types/ui/link-picker/form-footer/index.d.ts +1 -2
- package/dist/types/ui/link-picker/index.d.ts +1 -2
- package/dist/types/ui/link-picker/search-results/index.d.ts +1 -2
- package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +0 -1
- package/dist/types/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
- package/dist/types/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +0 -1
- package/dist/types/ui/link-picker/search-results/scrolling-tabs/index.d.ts +0 -1
- package/dist/types/ui/link-picker/search-results/search-results-container/index.d.ts +1 -2
- package/dist/types/ui/link-picker/text-input/index.d.ts +1 -2
- package/dist/types/ui/loader-fallback/index.d.ts +0 -1
- package/dist/types/ui/main.d.ts +1 -2
- package/dist/types-ts4.5/common/generic-error-svg/index.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +1 -2
- package/dist/types-ts4.5/common/ui/min-height-container/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-fallback/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/lazy.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/loader-fallback/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/main.d.ts +1 -2
- package/package.json +1 -5
- package/report.api.md +1 -1
- package/dist/cjs/common/generic-error-svg/old/index.js +0 -66
- package/dist/cjs/common/ui/empty-state/old/index.js +0 -38
- package/dist/cjs/common/ui/min-height-container/old/index.js +0 -34
- package/dist/cjs/common/ui/min-height-container/old/styled.js +0 -16
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/old/index.js +0 -50
- package/dist/cjs/ui/link-picker/form-footer/old/index.js +0 -116
- package/dist/cjs/ui/link-picker/old/index.js +0 -435
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.js +0 -70
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/old/index.js +0 -145
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/old/styled.js +0 -91
- package/dist/cjs/ui/link-picker/search-results/link-search-list/old/index.js +0 -188
- package/dist/cjs/ui/link-picker/search-results/link-search-list/old/styled.js +0 -45
- package/dist/cjs/ui/link-picker/search-results/old/index.js +0 -105
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/old/index.js +0 -163
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/old/styles.js +0 -74
- package/dist/cjs/ui/link-picker/search-results/search-results-container/old/index.js +0 -43
- package/dist/cjs/ui/link-picker/text-input/old/index.js +0 -125
- package/dist/cjs/ui/loader-fallback/old/index.js +0 -67
- package/dist/cjs/ui/old/main.js +0 -75
- package/dist/es2019/common/generic-error-svg/old/index.js +0 -58
- package/dist/es2019/common/ui/empty-state/old/index.js +0 -32
- package/dist/es2019/common/ui/min-height-container/old/index.js +0 -25
- package/dist/es2019/common/ui/min-height-container/old/styled.js +0 -10
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/old/index.js +0 -41
- package/dist/es2019/ui/link-picker/form-footer/old/index.js +0 -104
- package/dist/es2019/ui/link-picker/old/index.js +0 -436
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.js +0 -63
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/old/index.js +0 -132
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/old/styled.js +0 -83
- package/dist/es2019/ui/link-picker/search-results/link-search-list/old/index.js +0 -178
- package/dist/es2019/ui/link-picker/search-results/link-search-list/old/styled.js +0 -38
- package/dist/es2019/ui/link-picker/search-results/old/index.js +0 -98
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/old/index.js +0 -130
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/old/styles.js +0 -67
- package/dist/es2019/ui/link-picker/search-results/search-results-container/old/index.js +0 -37
- package/dist/es2019/ui/link-picker/text-input/old/index.js +0 -121
- package/dist/es2019/ui/loader-fallback/old/index.js +0 -60
- package/dist/es2019/ui/old/main.js +0 -73
- package/dist/esm/common/generic-error-svg/old/index.js +0 -58
- package/dist/esm/common/ui/empty-state/old/index.js +0 -31
- package/dist/esm/common/ui/min-height-container/old/index.js +0 -25
- package/dist/esm/common/ui/min-height-container/old/styled.js +0 -10
- package/dist/esm/ui/error-boundary/error-boundary-fallback/old/index.js +0 -43
- package/dist/esm/ui/link-picker/form-footer/old/index.js +0 -108
- package/dist/esm/ui/link-picker/old/index.js +0 -432
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.js +0 -63
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/old/index.js +0 -136
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/old/styled.js +0 -84
- package/dist/esm/ui/link-picker/search-results/link-search-list/old/index.js +0 -186
- package/dist/esm/ui/link-picker/search-results/link-search-list/old/styled.js +0 -38
- package/dist/esm/ui/link-picker/search-results/old/index.js +0 -100
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/old/index.js +0 -158
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/old/styles.js +0 -67
- package/dist/esm/ui/link-picker/search-results/search-results-container/old/index.js +0 -36
- package/dist/esm/ui/link-picker/text-input/old/index.js +0 -121
- package/dist/esm/ui/loader-fallback/old/index.js +0 -59
- package/dist/esm/ui/old/main.js +0 -64
- package/dist/types/common/generic-error-svg/old/index.d.ts +0 -6
- package/dist/types/common/ui/empty-state/old/index.d.ts +0 -9
- package/dist/types/common/ui/min-height-container/old/index.d.ts +0 -8
- package/dist/types/common/ui/min-height-container/old/styled.d.ts +0 -1
- package/dist/types/ui/error-boundary/error-boundary-fallback/old/index.d.ts +0 -6
- package/dist/types/ui/link-picker/form-footer/old/index.d.ts +0 -42
- package/dist/types/ui/link-picker/old/index.d.ts +0 -25
- package/dist/types/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.d.ts +0 -6
- package/dist/types/ui/link-picker/search-results/link-search-list/list-item/old/index.d.ts +0 -23
- package/dist/types/ui/link-picker/search-results/link-search-list/list-item/old/styled.d.ts +0 -7
- package/dist/types/ui/link-picker/search-results/link-search-list/old/index.d.ts +0 -52
- package/dist/types/ui/link-picker/search-results/link-search-list/old/styled.d.ts +0 -4
- package/dist/types/ui/link-picker/search-results/old/index.d.ts +0 -45
- package/dist/types/ui/link-picker/search-results/scrolling-tabs/old/index.d.ts +0 -7
- package/dist/types/ui/link-picker/search-results/scrolling-tabs/old/styles.d.ts +0 -6
- package/dist/types/ui/link-picker/search-results/search-results-container/old/index.d.ts +0 -10
- package/dist/types/ui/link-picker/text-input/old/index.d.ts +0 -18
- package/dist/types/ui/loader-fallback/old/index.d.ts +0 -17
- package/dist/types/ui/old/main.d.ts +0 -13
- package/dist/types-ts4.5/common/generic-error-svg/old/index.d.ts +0 -6
- package/dist/types-ts4.5/common/ui/empty-state/old/index.d.ts +0 -9
- package/dist/types-ts4.5/common/ui/min-height-container/old/index.d.ts +0 -8
- package/dist/types-ts4.5/common/ui/min-height-container/old/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-fallback/old/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/link-picker/form-footer/old/index.d.ts +0 -42
- package/dist/types-ts4.5/ui/link-picker/old/index.d.ts +0 -25
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/old/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/old/styled.d.ts +0 -7
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/old/index.d.ts +0 -52
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/old/styled.d.ts +0 -4
- package/dist/types-ts4.5/ui/link-picker/search-results/old/index.d.ts +0 -45
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/old/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/old/styles.d.ts +0 -6
- package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/old/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/link-picker/text-input/old/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/loader-fallback/old/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/old/main.d.ts +0 -13
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { type MessageDescriptor } from 'react-intl-next';
|
|
4
|
-
import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../../common/types';
|
|
5
|
-
export declare const messages: {
|
|
6
|
-
cancelButton: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
submittingStatusMessage: {
|
|
12
|
-
id: string;
|
|
13
|
-
defaultMessage: string;
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const testIds: {
|
|
18
|
-
readonly insertButton: "link-picker-insert-button";
|
|
19
|
-
readonly cancelButton: "link-picker-cancel-button";
|
|
20
|
-
readonly actionButton: "link-picker-action-button";
|
|
21
|
-
readonly submitStatusA11yIndicator: "link-picker-submit-status-a11y-indicator";
|
|
22
|
-
/** Feature discovery for action button (css pulse) */
|
|
23
|
-
readonly actionButtonDiscovery: "link-picker-action-button-discovery";
|
|
24
|
-
};
|
|
25
|
-
interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
26
|
-
/** If the results section appears to be loading, impact whether the submit button is disabled */
|
|
27
|
-
isLoading: boolean;
|
|
28
|
-
/** Controls showing a "submission in-progres" UX */
|
|
29
|
-
isSubmitting?: boolean;
|
|
30
|
-
error: unknown | null;
|
|
31
|
-
url: string;
|
|
32
|
-
queryState: LinkPickerState | null;
|
|
33
|
-
items: LinkSearchListItemData[] | null;
|
|
34
|
-
isEditing?: boolean;
|
|
35
|
-
onCancel?: () => void;
|
|
36
|
-
action?: LinkPickerPluginAction;
|
|
37
|
-
customSubmitButtonLabel?: MessageDescriptor;
|
|
38
|
-
submitMessageId?: string;
|
|
39
|
-
hideSubmitButton?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export declare const FormFooterOld: import("react").MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, ...restProps }: FormFooterProps) => jsx.JSX.Element | null>;
|
|
42
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { LinkPickerProps } from '../../../common/types';
|
|
3
|
-
export declare const testIds: {
|
|
4
|
-
readonly urlError: string;
|
|
5
|
-
readonly clearUrlButton: string;
|
|
6
|
-
readonly insertButton: "link-picker-insert-button";
|
|
7
|
-
readonly cancelButton: "link-picker-cancel-button";
|
|
8
|
-
readonly actionButton: "link-picker-action-button";
|
|
9
|
-
readonly submitStatusA11yIndicator: "link-picker-submit-status-a11y-indicator";
|
|
10
|
-
readonly tabsLoadingIndicator: string;
|
|
11
|
-
readonly tabList: string;
|
|
12
|
-
readonly tabItem: string;
|
|
13
|
-
readonly resultListTitle: string;
|
|
14
|
-
readonly searchResultList: string;
|
|
15
|
-
readonly searchResultLoadingIndicator: string;
|
|
16
|
-
readonly searchResultItem: string;
|
|
17
|
-
readonly searchResultIcon: string;
|
|
18
|
-
readonly emptyResultPage: string;
|
|
19
|
-
readonly searchError: string;
|
|
20
|
-
readonly linkPickerRoot: "link-picker-root";
|
|
21
|
-
readonly linkPicker: "link-picker";
|
|
22
|
-
readonly urlInputField: "link-url";
|
|
23
|
-
readonly textInputField: "link-text";
|
|
24
|
-
};
|
|
25
|
-
export declare const LinkPickerOld: import("react").ComponentType<LinkPickerProps>;
|
package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/old/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type KeyboardEvent } from 'react';
|
|
6
|
-
import { type LinkSearchListItemData } from '../../../../../../common/types';
|
|
7
|
-
export declare const testIds: {
|
|
8
|
-
searchResultItem: string;
|
|
9
|
-
searchResultIcon: string;
|
|
10
|
-
};
|
|
11
|
-
export interface 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 LinkSearchListItemOld: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/old/styled.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const composeListItemStyles: (selected?: boolean) => import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const itemNameStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const listItemContextStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const listItemContainerStyles: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const listItemContainerInnerStyles: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const itemIconStyles: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const imgStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,52 +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 messages: {
|
|
8
|
-
titleRecentlyViewed: {
|
|
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
|
-
}
|
|
51
|
-
export declare const LinkSearchListOld: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
52
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const listContainerStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const spinnerContainerStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const listStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const listTitleStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type KeyboardEvent } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../../common/types';
|
|
8
|
-
export declare const testIds: {
|
|
9
|
-
tabsLoadingIndicator: string;
|
|
10
|
-
tabList: string;
|
|
11
|
-
tabItem: string;
|
|
12
|
-
resultListTitle: string;
|
|
13
|
-
searchResultList: string;
|
|
14
|
-
searchResultLoadingIndicator: string;
|
|
15
|
-
searchResultItem: string;
|
|
16
|
-
searchResultIcon: string;
|
|
17
|
-
emptyResultPage: string;
|
|
18
|
-
searchError: string;
|
|
19
|
-
};
|
|
20
|
-
export type SearchResultsProps = {
|
|
21
|
-
activePlugin?: LinkPickerPlugin;
|
|
22
|
-
tabs: {
|
|
23
|
-
tabTitle: string;
|
|
24
|
-
}[];
|
|
25
|
-
isLoadingPlugins?: boolean;
|
|
26
|
-
isLoadingResults: boolean;
|
|
27
|
-
isSubmitting?: boolean;
|
|
28
|
-
activeTab: number;
|
|
29
|
-
handleTabChange: (activeTab: number) => void;
|
|
30
|
-
handleSearchListOnChange: (id: string) => void;
|
|
31
|
-
featureFlags?: Record<string, unknown>;
|
|
32
|
-
linkSearchListId: string;
|
|
33
|
-
queryState?: {
|
|
34
|
-
query: string;
|
|
35
|
-
};
|
|
36
|
-
items?: LinkSearchListItemData[] | null;
|
|
37
|
-
activeIndex: number;
|
|
38
|
-
selectedIndex: number;
|
|
39
|
-
handleSelected: (objectId: string) => void;
|
|
40
|
-
handleKeyDown: (e: KeyboardEvent<HTMLElement>) => void;
|
|
41
|
-
error?: unknown;
|
|
42
|
-
adaptiveHeight: boolean;
|
|
43
|
-
retry: () => void;
|
|
44
|
-
};
|
|
45
|
-
export declare const SearchResultsOld: ({ tabs, activeTab, activePlugin, isLoadingPlugins, isLoadingResults, isSubmitting, handleTabChange, handleSearchListOnChange, featureFlags, linkSearchListId, error, queryState, items, activeIndex, selectedIndex, handleSelected, handleKeyDown, adaptiveHeight, retry, }: SearchResultsProps) => jsx.JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
export declare const scrollingContainerStyles: SerializedStyles;
|
|
3
|
-
export declare const containerStyles: SerializedStyles;
|
|
4
|
-
export declare const buttonContainerStyles: SerializedStyles;
|
|
5
|
-
export declare const backButtonStyles: SerializedStyles;
|
|
6
|
-
export declare const nextButtonStyles: SerializedStyles;
|
package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/old/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
type SearchResultsContainerProps = {
|
|
4
|
-
adaptiveHeight: boolean;
|
|
5
|
-
isLoadingResults: boolean;
|
|
6
|
-
hasTabs?: boolean;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare const SearchResultsContainerOld: ({ hasTabs, adaptiveHeight, isLoadingResults, children, }: SearchResultsContainerProps) => jsx.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import { type TextFieldProps } from '@atlaskit/textfield';
|
|
3
|
-
import { type ConditionalSpotlightTargetWrapperProps } from '../conditional-spotlight-target-wrapper';
|
|
4
|
-
export type TextInputProps = Omit<TextFieldProps, 'name' | 'value'> & Pick<ConditionalSpotlightTargetWrapperProps, 'spotlightTargetName'> & {
|
|
5
|
-
name: string;
|
|
6
|
-
value: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
onUndo?: Function;
|
|
9
|
-
onRedo?: Function;
|
|
10
|
-
onClear?: (name: string) => void;
|
|
11
|
-
clearLabel?: string;
|
|
12
|
-
error?: string | null;
|
|
13
|
-
};
|
|
14
|
-
export declare const testIds: {
|
|
15
|
-
urlError: string;
|
|
16
|
-
clearUrlButton: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const TextInputOld: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, ...restProps }: TextInputProps) => jsx.JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
export type LoaderFallbackProps = {
|
|
7
|
-
url?: string;
|
|
8
|
-
hideDisplayText?: boolean;
|
|
9
|
-
isLoadingPlugins?: boolean;
|
|
10
|
-
plugins?: unknown[];
|
|
11
|
-
name?: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Loader / skeleton for the Link Picker. Takes LoaderFallbackProps (hideDisplayText, isLoadingPlugins, plugins)
|
|
15
|
-
* to determine the height to prevent jumps in height when loading
|
|
16
|
-
*/
|
|
17
|
-
export declare const LoaderFallbackOld: (props: LoaderFallbackProps) => jsx.JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { LinkPickerProps } from '../../common/types';
|
|
8
|
-
import type { PackageMetaDataType } from '../../common/utils/analytics/analytics.codegen';
|
|
9
|
-
export declare const testIds: {
|
|
10
|
-
linkPickerRoot: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const PACKAGE_DATA: PackageMetaDataType;
|
|
13
|
-
export declare const composeLinkPickerOld: (Component: React.ComponentType<LinkPickerProps>) => React.MemoExoticComponent<(props: LinkPickerProps) => jsx.JSX.Element>;
|