@atlaskit/link-picker 1.18.2 → 1.18.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 +14 -0
- package/dist/cjs/ui/link-picker/index.js +61 -60
- package/dist/cjs/ui/link-picker/link-search-list/index.js +53 -7
- package/dist/cjs/ui/link-picker/list-item/index.js +14 -17
- package/dist/cjs/ui/link-picker/list-item/styled.js +14 -15
- package/dist/cjs/ui/link-picker/utils.js +25 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/ui/link-picker/index.js +58 -58
- package/dist/es2019/ui/link-picker/link-search-list/index.js +50 -6
- package/dist/es2019/ui/link-picker/list-item/index.js +16 -15
- package/dist/es2019/ui/link-picker/list-item/styled.js +16 -6
- package/dist/es2019/ui/link-picker/utils.js +23 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/ui/link-picker/index.js +62 -61
- package/dist/esm/ui/link-picker/link-search-list/index.js +54 -8
- package/dist/esm/ui/link-picker/list-item/index.js +15 -18
- package/dist/esm/ui/link-picker/list-item/styled.js +15 -16
- package/dist/esm/ui/link-picker/utils.js +23 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/ui/link-picker/link-search-list/index.d.ts +6 -4
- package/dist/types/ui/link-picker/list-item/index.d.ts +7 -8
- package/dist/types/ui/link-picker/list-item/styled.d.ts +1 -1
- package/dist/types/ui/link-picker/utils.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { KeyboardEvent } from 'react';
|
|
2
3
|
import { LinkSearchListItemData } from '../../types';
|
|
3
4
|
export declare const messages: {
|
|
4
5
|
titleRecentlyViewed: {
|
|
@@ -24,14 +25,15 @@ export declare const testIds: {
|
|
|
24
25
|
searchResultLoadingIndicator: string;
|
|
25
26
|
emptyResultPage: string;
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
+
declare type LinkSearchListElement = HTMLElement;
|
|
29
|
+
export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearchListElement>, 'onSelect' | 'onChange'> {
|
|
28
30
|
items?: LinkSearchListItemData[] | null;
|
|
29
31
|
isLoading: boolean;
|
|
30
32
|
selectedIndex: number;
|
|
31
33
|
activeIndex: number;
|
|
34
|
+
onChange: (objectId: string) => void;
|
|
32
35
|
onSelect: (objectId: string) => void;
|
|
33
|
-
|
|
34
|
-
onMouseLeave: (objectId: string) => void;
|
|
36
|
+
onKeyDown?: (e: KeyboardEvent<LinkSearchListElement>) => void;
|
|
35
37
|
ariaControls?: string;
|
|
36
38
|
ariaLabelledBy?: string;
|
|
37
39
|
role?: string;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { KeyboardEvent } from 'react';
|
|
3
3
|
import { LinkSearchListItemData } from '../../types';
|
|
4
4
|
export interface Props {
|
|
5
5
|
item: LinkSearchListItemData;
|
|
6
6
|
selected: boolean;
|
|
7
7
|
active: boolean;
|
|
8
|
+
tabIndex?: number;
|
|
8
9
|
onSelect: (objectId: string) => void;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
11
|
+
onFocus: () => void;
|
|
11
12
|
id?: string;
|
|
12
13
|
role?: string;
|
|
13
14
|
}
|
|
14
|
-
declare const
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
15
|
+
declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export default LinkSearchListItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const relativeFontSizeToBase16: (px: number | string) => string;
|
|
2
|
-
export declare const composeListItemStyles: (
|
|
2
|
+
export declare const composeListItemStyles: (selected?: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const itemNameStyles: import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const listItemNameStyles: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const listItemContextStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -8,3 +8,4 @@ export declare const isRedoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolea
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const getDataSource: (item: LinkSearchListItemData, plugin?: LinkPickerPlugin | undefined) => string;
|
|
10
10
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.4",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
34
34
|
"@atlaskit/button": "^16.6.0",
|
|
35
35
|
"@atlaskit/empty-state": "^7.4.0",
|
|
36
|
-
"@atlaskit/form": "^8.
|
|
36
|
+
"@atlaskit/form": "^8.9.0",
|
|
37
37
|
"@atlaskit/frontend-utilities": "^2.4.0",
|
|
38
38
|
"@atlaskit/icon": "^21.11.0",
|
|
39
39
|
"@atlaskit/linking-common": "^2.4.0",
|
|
40
40
|
"@atlaskit/spinner": "^15.4.0",
|
|
41
41
|
"@atlaskit/tabs": "^13.3.0",
|
|
42
42
|
"@atlaskit/textfield": "^5.3.0",
|
|
43
|
-
"@atlaskit/theme": "^12.
|
|
43
|
+
"@atlaskit/theme": "^12.4.0",
|
|
44
44
|
"@atlaskit/tokens": "^1.2.0",
|
|
45
45
|
"@atlaskit/tooltip": "^17.7.0",
|
|
46
46
|
"@atlaskit/ufo": "^0.1.0",
|