@atlaskit/link-picker 1.25.2 → 1.25.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/.eslintrc.js +18 -0
- package/CHANGELOG.md +12 -0
- package/compass.yml +43 -0
- package/dist/cjs/common/analytics/context.js +1 -1
- package/dist/cjs/common/analytics/input-field-tracking.js +3 -3
- package/dist/cjs/common/constants.js +4 -2
- package/dist/cjs/common/generic-error-svg/index.js +2 -3
- package/dist/cjs/common/utils/handleNavKeyDown.js +29 -0
- package/dist/cjs/controllers/use-fix-height/index.js +2 -3
- package/dist/cjs/services/use-plugins/index.js +7 -8
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +5 -3
- package/dist/cjs/ui/error-boundary/index.js +8 -9
- package/dist/cjs/ui/index.js +13 -10
- package/dist/cjs/ui/link-picker/announcer.js +4 -5
- package/dist/cjs/ui/link-picker/form-footer/index.js +13 -14
- package/dist/cjs/ui/link-picker/index.js +37 -49
- package/dist/cjs/ui/link-picker/link-search-error/index.js +4 -5
- package/dist/cjs/ui/link-picker/link-search-list/index.js +18 -23
- package/dist/cjs/ui/link-picker/link-search-list/link-search-no-results/index.js +5 -6
- package/dist/cjs/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
- package/dist/cjs/ui/link-picker/{list-item → link-search-list/list-item}/index.js +47 -43
- package/dist/cjs/ui/link-picker/{list-item → link-search-list/list-item}/styled.js +5 -3
- package/dist/cjs/ui/{scrolling-tabs → link-picker/scrolling-tabs}/index.js +5 -4
- package/dist/cjs/ui/link-picker/styled.js +5 -23
- package/dist/cjs/ui/link-picker/text-input/index.js +6 -7
- package/dist/cjs/ui/link-picker/text-input/utils.js +28 -0
- package/dist/cjs/ui/link-picker/track-mount/index.js +3 -5
- package/dist/cjs/ui/link-picker/track-tab-viewed/index.js +3 -5
- package/dist/cjs/ui/link-picker/transformTimeStamp.js +2 -2
- package/dist/cjs/ui/link-picker/utils.js +1 -48
- package/dist/cjs/ui/loader-fallback/index.js +1 -1
- package/dist/cjs/ui/loader-fallback/styled.js +21 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/analytics/context.js +1 -1
- package/dist/es2019/common/analytics/input-field-tracking.js +2 -2
- package/dist/es2019/common/constants.js +2 -1
- package/dist/es2019/common/generic-error-svg/index.js +2 -3
- package/dist/es2019/common/utils/handleNavKeyDown.js +22 -0
- package/dist/es2019/controllers/use-fix-height/index.js +2 -3
- package/dist/es2019/services/use-plugins/index.js +5 -6
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +3 -2
- package/dist/es2019/ui/error-boundary/index.js +10 -9
- package/dist/es2019/ui/index.js +10 -7
- package/dist/es2019/ui/link-picker/announcer.js +3 -4
- package/dist/es2019/ui/link-picker/form-footer/index.js +6 -7
- package/dist/es2019/ui/link-picker/index.js +23 -34
- package/dist/es2019/ui/link-picker/link-search-error/index.js +4 -5
- package/dist/es2019/ui/link-picker/link-search-list/index.js +11 -12
- package/dist/es2019/ui/link-picker/link-search-list/link-search-no-results/index.js +4 -5
- package/dist/es2019/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
- package/dist/es2019/ui/link-picker/{list-item → link-search-list/list-item}/index.js +42 -40
- package/dist/es2019/ui/link-picker/{list-item → link-search-list/list-item}/styled.js +2 -2
- package/dist/es2019/ui/link-picker/link-search-list/styled.js +1 -0
- package/dist/es2019/ui/{scrolling-tabs → link-picker/scrolling-tabs}/index.js +7 -5
- package/dist/es2019/ui/link-picker/styled.js +0 -30
- package/dist/es2019/ui/link-picker/text-input/index.js +7 -8
- package/dist/es2019/ui/link-picker/text-input/utils.js +22 -0
- package/dist/es2019/ui/link-picker/track-mount/index.js +3 -4
- package/dist/es2019/ui/link-picker/track-tab-viewed/index.js +3 -4
- package/dist/es2019/ui/link-picker/transformTimeStamp.js +2 -2
- package/dist/es2019/ui/link-picker/utils.js +1 -45
- package/dist/es2019/ui/loader-fallback/index.js +1 -1
- package/dist/es2019/ui/loader-fallback/styled.js +25 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/analytics/context.js +1 -1
- package/dist/esm/common/analytics/input-field-tracking.js +2 -2
- package/dist/esm/common/constants.js +2 -1
- package/dist/esm/common/generic-error-svg/index.js +2 -3
- package/dist/esm/common/utils/handleNavKeyDown.js +22 -0
- package/dist/esm/controllers/use-fix-height/index.js +2 -3
- package/dist/esm/services/use-plugins/index.js +5 -6
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +3 -2
- package/dist/esm/ui/error-boundary/index.js +9 -9
- package/dist/esm/ui/index.js +13 -9
- package/dist/esm/ui/link-picker/announcer.js +3 -4
- package/dist/esm/ui/link-picker/form-footer/index.js +6 -7
- package/dist/esm/ui/link-picker/index.js +23 -34
- package/dist/esm/ui/link-picker/link-search-error/index.js +4 -5
- package/dist/esm/ui/link-picker/link-search-list/index.js +11 -13
- package/dist/esm/ui/link-picker/link-search-list/link-search-no-results/index.js +4 -5
- package/dist/esm/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
- package/dist/esm/ui/link-picker/{list-item → link-search-list/list-item}/index.js +42 -40
- package/dist/esm/ui/link-picker/{list-item → link-search-list/list-item}/styled.js +2 -2
- package/dist/esm/ui/link-picker/link-search-list/styled.js +1 -0
- package/dist/esm/ui/{scrolling-tabs → link-picker/scrolling-tabs}/index.js +7 -5
- package/dist/esm/ui/link-picker/styled.js +4 -19
- package/dist/esm/ui/link-picker/text-input/index.js +7 -8
- package/dist/esm/ui/link-picker/text-input/utils.js +20 -0
- package/dist/esm/ui/link-picker/track-mount/index.js +3 -4
- package/dist/esm/ui/link-picker/track-tab-viewed/index.js +3 -4
- package/dist/esm/ui/link-picker/transformTimeStamp.js +2 -2
- package/dist/esm/ui/link-picker/utils.js +1 -43
- package/dist/esm/ui/loader-fallback/index.js +1 -1
- package/dist/esm/ui/loader-fallback/styled.js +16 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/common/analytics/context.d.ts +1 -1
- package/dist/types/common/constants.d.ts +1 -0
- package/dist/types/common/generic-error-svg/index.d.ts +1 -2
- package/dist/types/{ui → common}/types.d.ts +10 -0
- package/dist/types/common/utils/handleNavKeyDown.d.ts +2 -0
- package/dist/types/controllers/use-fix-height/index.d.ts +1 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/use-plugins/index.d.ts +1 -1
- package/dist/types/services/use-plugins/reducer.d.ts +1 -1
- package/dist/types/services/use-plugins/utils.d.ts +1 -1
- package/dist/types/services/use-search-query/index.d.ts +1 -2
- package/dist/types/ui/error-boundary/index.d.ts +4 -5
- package/dist/types/ui/index.d.ts +0 -1
- package/dist/types/ui/link-picker/announcer.d.ts +2 -2
- package/dist/types/ui/link-picker/form-footer/index.d.ts +3 -4
- package/dist/types/ui/link-picker/form-footer/utils.d.ts +1 -1
- package/dist/types/ui/link-picker/index.d.ts +5 -16
- package/dist/types/ui/link-picker/link-search-error/index.d.ts +1 -2
- package/dist/types/ui/link-picker/link-search-list/index.d.ts +5 -4
- package/dist/types/ui/link-picker/link-search-list/link-search-no-results/index.d.ts +1 -2
- package/dist/types/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
- package/dist/types/ui/link-picker/link-search-list/list-item/index.d.ts +19 -0
- package/dist/types/ui/link-picker/link-search-list/use-track-results-shown/index.d.ts +1 -1
- package/dist/{types-ts4.5/ui → types/ui/link-picker}/scrolling-tabs/index.d.ts +1 -1
- package/dist/types/ui/link-picker/styled.d.ts +0 -5
- package/dist/types/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.d.ts +1 -2
- package/dist/types/ui/link-picker/text-input/index.d.ts +2 -3
- package/dist/types/ui/link-picker/text-input/utils.d.ts +3 -0
- package/dist/types/ui/link-picker/track-mount/index.d.ts +1 -2
- package/dist/types/ui/link-picker/track-tab-viewed/index.d.ts +1 -2
- package/dist/types/ui/link-picker/utils.d.ts +1 -5
- package/dist/types/ui/loader-fallback/styled.d.ts +3 -0
- package/dist/types-ts4.5/common/analytics/context.d.ts +1 -1
- package/dist/types-ts4.5/common/constants.d.ts +1 -0
- package/dist/types-ts4.5/common/generic-error-svg/index.d.ts +1 -2
- package/dist/types-ts4.5/{ui → common}/types.d.ts +10 -0
- package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +2 -0
- package/dist/types-ts4.5/controllers/use-fix-height/index.d.ts +1 -2
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/services/use-plugins/index.d.ts +1 -1
- package/dist/types-ts4.5/services/use-plugins/reducer.d.ts +1 -1
- package/dist/types-ts4.5/services/use-plugins/utils.d.ts +1 -1
- package/dist/types-ts4.5/services/use-search-query/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +4 -5
- package/dist/types-ts4.5/ui/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +3 -4
- package/dist/types-ts4.5/ui/link-picker/form-footer/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +5 -16
- package/dist/types-ts4.5/ui/link-picker/link-search-error/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/link-search-list/index.d.ts +5 -4
- package/dist/types-ts4.5/ui/link-picker/link-search-list/link-search-no-results/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/link-search-list/list-item/index.d.ts +19 -0
- package/dist/types-ts4.5/ui/link-picker/link-search-list/use-track-results-shown/index.d.ts +1 -1
- package/dist/{types/ui → types-ts4.5/ui/link-picker}/scrolling-tabs/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/styled.d.ts +0 -5
- package/dist/types-ts4.5/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/link-picker/text-input/utils.d.ts +3 -0
- package/dist/types-ts4.5/ui/link-picker/track-mount/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/track-tab-viewed/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/utils.d.ts +1 -5
- package/dist/types-ts4.5/ui/loader-fallback/styled.d.ts +3 -0
- package/package.json +26 -6
- package/dist/types/ui/link-picker/list-item/index.d.ts +0 -16
- package/dist/types-ts4.5/ui/link-picker/list-item/index.d.ts +0 -16
- /package/dist/cjs/{ui → common}/types.js +0 -0
- /package/dist/cjs/ui/{scrolling-tabs → link-picker/scrolling-tabs}/scrolling-tabs.js +0 -0
- /package/dist/cjs/ui/{scrolling-tabs → link-picker/scrolling-tabs}/styles.js +0 -0
- /package/dist/cjs/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.js +0 -0
- /package/dist/es2019/{ui → common}/types.js +0 -0
- /package/dist/es2019/ui/{scrolling-tabs → link-picker/scrolling-tabs}/scrolling-tabs.js +0 -0
- /package/dist/es2019/ui/{scrolling-tabs → link-picker/scrolling-tabs}/styles.js +0 -0
- /package/dist/es2019/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.js +0 -0
- /package/dist/esm/{ui → common}/types.js +0 -0
- /package/dist/esm/ui/{scrolling-tabs → link-picker/scrolling-tabs}/scrolling-tabs.js +0 -0
- /package/dist/esm/ui/{scrolling-tabs → link-picker/scrolling-tabs}/styles.js +0 -0
- /package/dist/esm/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.js +0 -0
- /package/dist/types/ui/link-picker/{list-item → link-search-list/list-item}/styled.d.ts +0 -0
- /package/dist/types/ui/{scrolling-tabs → link-picker/scrolling-tabs}/scrolling-tabs.d.ts +0 -0
- /package/dist/types/ui/{scrolling-tabs → link-picker/scrolling-tabs}/styles.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{list-item → link-search-list/list-item}/styled.d.ts +0 -0
- /package/dist/types-ts4.5/ui/{scrolling-tabs → link-picker/scrolling-tabs}/scrolling-tabs.d.ts +0 -0
- /package/dist/types-ts4.5/ui/{scrolling-tabs → link-picker/scrolling-tabs}/styles.d.ts +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { LinkInputType, LinkPickerPlugin } from '
|
|
4
|
-
export declare const RECENT_SEARCH_LIST_SIZE = 5;
|
|
3
|
+
import { LinkInputType, LinkPickerPlugin } from '../../common/types';
|
|
5
4
|
export declare const testIds: {
|
|
6
5
|
readonly tabList: "link-picker-tabs";
|
|
7
6
|
readonly tabItem: "link-picker-tab";
|
|
8
7
|
readonly urlError: string;
|
|
9
8
|
readonly clearUrlButton: string;
|
|
10
9
|
readonly resultListTitle: string;
|
|
11
|
-
readonly searchResultItem: string;
|
|
12
10
|
readonly searchResultList: string;
|
|
13
11
|
readonly searchResultLoadingIndicator: string;
|
|
14
12
|
readonly tabsLoadingIndicator: string;
|
|
13
|
+
readonly searchResultItem: string;
|
|
14
|
+
readonly searchResultIcon: string;
|
|
15
15
|
readonly emptyResultPage: string;
|
|
16
16
|
readonly searchError: string;
|
|
17
17
|
readonly insertButton: "link-picker-insert-button";
|
|
@@ -21,7 +21,6 @@ export declare const testIds: {
|
|
|
21
21
|
readonly linkPicker: "link-picker";
|
|
22
22
|
readonly urlInputField: "link-url";
|
|
23
23
|
readonly textInputField: "link-text";
|
|
24
|
-
readonly searchIcon: "link-picker-search-icon";
|
|
25
24
|
};
|
|
26
25
|
interface Meta {
|
|
27
26
|
/** Indicates how the link was picked. */
|
|
@@ -69,15 +68,5 @@ export interface LinkPickerProps {
|
|
|
69
68
|
hideDisplayText?: boolean;
|
|
70
69
|
featureFlags?: Record<string, unknown>;
|
|
71
70
|
}
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
activeIndex: number;
|
|
75
|
-
url: string;
|
|
76
|
-
displayText: string;
|
|
77
|
-
invalidUrl: boolean;
|
|
78
|
-
activeTab: number;
|
|
79
|
-
/** When true, even if the selected index is -1, don't hide the recents. */
|
|
80
|
-
preventHidingRecents: boolean;
|
|
81
|
-
}
|
|
82
|
-
declare const _default: import("react").ComponentType<LinkPickerProps>;
|
|
83
|
-
export default _default;
|
|
71
|
+
export declare const LinkPicker: import("react").ComponentType<LinkPickerProps>;
|
|
72
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { KeyboardEvent } from 'react';
|
|
3
|
-
import { LinkPickerPlugin, LinkSearchListItemData } from '
|
|
3
|
+
import { LinkPickerPlugin, LinkSearchListItemData } from '../../../common/types';
|
|
4
4
|
export declare const messages: {
|
|
5
5
|
titleRecentlyViewed: {
|
|
6
6
|
id: string;
|
|
@@ -20,10 +20,11 @@ export declare const messages: {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const testIds: {
|
|
22
22
|
resultListTitle: string;
|
|
23
|
-
searchResultItem: string;
|
|
24
23
|
searchResultList: string;
|
|
25
24
|
searchResultLoadingIndicator: string;
|
|
26
25
|
tabsLoadingIndicator: string;
|
|
26
|
+
searchResultItem: string;
|
|
27
|
+
searchResultIcon: string;
|
|
27
28
|
emptyResultPage: string;
|
|
28
29
|
};
|
|
29
30
|
type LinkSearchListElement = HTMLElement;
|
|
@@ -42,5 +43,5 @@ export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearc
|
|
|
42
43
|
hasSearchTerm?: boolean;
|
|
43
44
|
activePlugin?: LinkPickerPlugin;
|
|
44
45
|
}
|
|
45
|
-
declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
-
export
|
|
46
|
+
export declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { KeyboardEvent } from 'react';
|
|
3
|
+
import { LinkSearchListItemData } from '../../../../common/types';
|
|
4
|
+
export declare const testIds: {
|
|
5
|
+
searchResultItem: string;
|
|
6
|
+
searchResultIcon: string;
|
|
7
|
+
};
|
|
8
|
+
export interface LinkSearchListItemProps {
|
|
9
|
+
item: LinkSearchListItemData;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
active: boolean;
|
|
12
|
+
tabIndex?: number;
|
|
13
|
+
onSelect: (objectId: string) => void;
|
|
14
|
+
onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
15
|
+
onFocus: () => void;
|
|
16
|
+
id?: string;
|
|
17
|
+
role?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LinkSearchListItemData } from '
|
|
1
|
+
import { LinkSearchListItemData } from '../../../../common/types';
|
|
2
2
|
export declare const useTrackResultsShown: (isLoading: boolean, items?: LinkSearchListItemData[] | null | undefined, hasSearchTerm?: boolean) => void;
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
* Half padding on the top as the form field has a `gridSize()` margin top that cannot be overridden
|
|
3
3
|
*/
|
|
4
4
|
export declare const rootContainerStyles: import("@emotion/react").SerializedStyles;
|
|
5
|
-
/** Link Picker loader / skeleton will be taller in height when displayText field is shown */
|
|
6
|
-
export declare const rootContainerStylesForLoaderWithDisplaytext: import("@emotion/react").SerializedStyles;
|
|
7
|
-
/** Link Picker loader / skeleton will be shorter in height when displayText field isn't shown */
|
|
8
|
-
export declare const rootContainerStylesForLoaderWithoutDisplaytext: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const searchIconStyles: import("@emotion/react").SerializedStyles;
|
|
10
5
|
export declare const tabsWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
11
6
|
export declare const flexColumnStyles: import("@emotion/react").SerializedStyles;
|
|
12
7
|
export declare const formFooterMargin: import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import { TextFieldProps } from '@atlaskit/textfield';
|
|
3
|
-
import { ConditionalSpotlightTargetWrapperProps } from '
|
|
3
|
+
import { ConditionalSpotlightTargetWrapperProps } from './conditional-spotlight-target-wrapper';
|
|
4
4
|
export type TextInputProps = Omit<TextFieldProps, 'name' | 'value'> & Pick<ConditionalSpotlightTargetWrapperProps, 'spotlightTargetName'> & {
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
@@ -15,5 +15,4 @@ export declare const testIds: {
|
|
|
15
15
|
urlError: string;
|
|
16
16
|
clearUrlButton: string;
|
|
17
17
|
};
|
|
18
|
-
declare const TextInput: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, ...restProps }: TextInputProps) => jsx.JSX.Element;
|
|
19
|
-
export default TextInput;
|
|
18
|
+
export declare const TextInput: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, ...restProps }: TextInputProps) => jsx.JSX.Element;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { KeyboardEvent } from 'react';
|
|
2
1
|
import { IntlShape } from 'react-intl-next';
|
|
3
|
-
import { LinkPickerPlugin, LinkSearchListItemData } from '
|
|
4
|
-
export declare const isUndoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
|
|
5
|
-
export declare const isRedoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
|
|
2
|
+
import { LinkPickerPlugin, LinkSearchListItemData } from '../../common/types';
|
|
6
3
|
/**
|
|
7
4
|
* Retrieve the data source for a link given the item and the plugin that resolved it
|
|
8
5
|
*/
|
|
9
6
|
export declare const getDataSource: (item: LinkSearchListItemData, plugin?: LinkPickerPlugin) => string;
|
|
10
7
|
export declare function getScreenReaderText(items: LinkSearchListItemData[], selectedIndex: number, intl: IntlShape): string | undefined;
|
|
11
|
-
export declare const handleNavKeyDown: (event: KeyboardEvent<HTMLElement>, itemsLength: number, activeIndex: number) => number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const rootContainerStylesForLoaderWithDisplaytext: import("@emotion/react").SerializedStyles;
|
|
2
|
+
/** Link Picker loader / skeleton will be shorter in height when displayText field isn't shown */
|
|
3
|
+
export declare const rootContainerStylesForLoaderWithoutDisplaytext: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.4",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@atlaskit/form": "^8.11.0",
|
|
53
53
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
54
54
|
"@atlaskit/icon": "^21.12.0",
|
|
55
|
-
"@atlaskit/linking-common": "^3.
|
|
55
|
+
"@atlaskit/linking-common": "^3.1.0",
|
|
56
56
|
"@atlaskit/onboarding": "^10.8.2",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
58
58
|
"@atlaskit/spinner": "^15.5.0",
|
|
59
59
|
"@atlaskit/tabs": "^13.4.0",
|
|
60
60
|
"@atlaskit/textfield": "^5.5.0",
|
|
61
61
|
"@atlaskit/theme": "^12.5.0",
|
|
62
|
-
"@atlaskit/tokens": "^1.
|
|
62
|
+
"@atlaskit/tokens": "^1.10.0",
|
|
63
63
|
"@atlaskit/tooltip": "^17.8.0",
|
|
64
64
|
"@atlaskit/ufo": "^0.2.0",
|
|
65
65
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
@@ -81,15 +81,15 @@
|
|
|
81
81
|
"@atlaskit/dropdown-menu": "^11.10.0",
|
|
82
82
|
"@atlaskit/link-analytics": "^8.0.0",
|
|
83
83
|
"@atlaskit/link-provider": "^1.6.0",
|
|
84
|
-
"@atlaskit/link-test-helpers": "^4.
|
|
85
|
-
"@atlaskit/linking-common": "^3.
|
|
84
|
+
"@atlaskit/link-test-helpers": "^4.1.0",
|
|
85
|
+
"@atlaskit/linking-common": "^3.1.0",
|
|
86
86
|
"@atlaskit/popup": "^1.8.0",
|
|
87
87
|
"@atlaskit/toggle": "^12.6.0",
|
|
88
88
|
"@atlaskit/visual-regression": "*",
|
|
89
89
|
"@atlaskit/webdriver-runner": "*",
|
|
90
90
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
91
91
|
"@atlassian/feature-flags-test-utils": "*",
|
|
92
|
-
"@atlassian/link-picker-atlassian-plugin": "^34.
|
|
92
|
+
"@atlassian/link-picker-atlassian-plugin": "^34.1.0",
|
|
93
93
|
"@atlassian/link-picker-plugins": "^23.0.0",
|
|
94
94
|
"@atlassian/recent-work-client": "^1.8.0",
|
|
95
95
|
"@testing-library/dom": "^8.17.1",
|
|
@@ -108,12 +108,32 @@
|
|
|
108
108
|
"typescript": "~4.9.5"
|
|
109
109
|
},
|
|
110
110
|
"techstack": {
|
|
111
|
+
"@atlassian/frontend": {
|
|
112
|
+
"code-structure": [
|
|
113
|
+
"tangerine-next"
|
|
114
|
+
],
|
|
115
|
+
"import-structure": [
|
|
116
|
+
"atlassian-conventions"
|
|
117
|
+
],
|
|
118
|
+
"circular-dependencies": [
|
|
119
|
+
"file-and-folder-level"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
111
122
|
"@repo/internal": {
|
|
123
|
+
"dom-events": "use-bind-event-listener",
|
|
124
|
+
"analytics": [
|
|
125
|
+
"analytics-next"
|
|
126
|
+
],
|
|
112
127
|
"design-tokens": [
|
|
113
128
|
"color",
|
|
114
129
|
"spacing"
|
|
115
130
|
]
|
|
116
131
|
}
|
|
117
132
|
},
|
|
133
|
+
"techstackIgnore": {
|
|
134
|
+
"stricter": [
|
|
135
|
+
"@atlassian/tangerine/project-structure"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
118
138
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
119
139
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { KeyboardEvent } from 'react';
|
|
3
|
-
import { LinkSearchListItemData } from '../../types';
|
|
4
|
-
export interface Props {
|
|
5
|
-
item: LinkSearchListItemData;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
active: boolean;
|
|
8
|
-
tabIndex?: number;
|
|
9
|
-
onSelect: (objectId: string) => void;
|
|
10
|
-
onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
11
|
-
onFocus: () => void;
|
|
12
|
-
id?: string;
|
|
13
|
-
role?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export default LinkSearchListItem;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { KeyboardEvent } from 'react';
|
|
3
|
-
import { LinkSearchListItemData } from '../../types';
|
|
4
|
-
export interface Props {
|
|
5
|
-
item: LinkSearchListItemData;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
active: boolean;
|
|
8
|
-
tabIndex?: number;
|
|
9
|
-
onSelect: (objectId: string) => void;
|
|
10
|
-
onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
11
|
-
onFocus: () => void;
|
|
12
|
-
id?: string;
|
|
13
|
-
role?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export default LinkSearchListItem;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types-ts4.5/ui/link-picker/{list-item → link-search-list/list-item}/styled.d.ts
RENAMED
|
File without changes
|
/package/dist/types-ts4.5/ui/{scrolling-tabs → link-picker/scrolling-tabs}/scrolling-tabs.d.ts
RENAMED
|
File without changes
|
|
File without changes
|