@atlaskit/quick-search 8.1.0 → 8.1.1
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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/QuickSearch.d.ts +4 -4
- package/dist/types/components/ResultItem/ResultItem.d.ts +1 -1
- package/dist/types/components/ResultItem/ResultItemGroup.d.ts +1 -1
- package/dist/types/components/Results/ContainerResult.d.ts +1 -1
- package/dist/types/components/Results/ObjectResult.d.ts +1 -1
- package/dist/types/components/Results/PersonResult.d.ts +1 -1
- package/dist/types/components/Results/ResultBase.d.ts +2 -2
- package/dist/types/components/Results/types.d.ts +6 -6
- package/dist/types/components/Search/Search.d.ts +1 -1
- package/dist/types/components/context.d.ts +1 -1
- package/dist/types/components/isReactElement.d.ts +1 -1
- package/package.json +11 -3
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +263 -0
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ResultData, SelectedResultId } from './Results/types';
|
|
3
3
|
import { ResultContextType } from './context';
|
|
4
4
|
import { ResultBase } from './Results/ResultBase';
|
|
5
|
-
export
|
|
5
|
+
export type Props = {
|
|
6
6
|
/** Search results in the form of ResultItemGroups containing Result components */
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
/** Set search loading state */
|
|
@@ -31,7 +31,7 @@ export declare type Props = {
|
|
|
31
31
|
/** One string that is used to autocomplete the current search query */
|
|
32
32
|
autocompleteText?: string;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type State = {
|
|
35
35
|
selectedResultId: SelectedResultId;
|
|
36
36
|
context: ResultContextType;
|
|
37
37
|
value?: string;
|
|
@@ -107,16 +107,16 @@ export declare class QuickSearch extends React.Component<Props, State> {
|
|
|
107
107
|
* Tab / ArrowRight - Accept autocomplete
|
|
108
108
|
*/
|
|
109
109
|
handleSearchKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
110
|
-
acceptAutocomplete: (event: React.KeyboardEvent<HTMLInputElement>, text?: string
|
|
110
|
+
acceptAutocomplete: (event: React.KeyboardEvent<HTMLInputElement>, text?: string) => void;
|
|
111
111
|
setSearchInputRef: (refs: any) => void;
|
|
112
112
|
focusSearchInput: () => void;
|
|
113
113
|
render(): JSX.Element;
|
|
114
114
|
}
|
|
115
|
-
declare const _default: React.ComponentClass<Props, any>;
|
|
116
115
|
/**
|
|
117
116
|
* HOCs:
|
|
118
117
|
* `decorateWithAnalyticsData` - Wrapper that decorates analytics events with additional data.
|
|
119
118
|
* `withAnalytics` - Injects analytics firing methods that are picked up by
|
|
120
119
|
* @atlaskit/analytics/AnalyticsListener.
|
|
121
120
|
*/
|
|
121
|
+
declare const _default: React.ComponentClass<Props, any>;
|
|
122
122
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
/** Text to appear to the right of the text. It has a lower font-weight. */
|
|
4
4
|
caption?: string;
|
|
5
5
|
/** Location to link out to on click. This is passed down to the custom link component if one is provided. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
/** Text to appear as heading above group. Will be auto-capitalised. */
|
|
4
4
|
title: React.ReactNode;
|
|
5
5
|
/** React Elements to be displayed within the group. This should generally be a collection of ResultItems. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CommonResultProps } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type Props = CommonResultProps & {
|
|
4
4
|
/** Name of the container. Provides the main text to be displayed as the item. */
|
|
5
5
|
name: React.ReactNode;
|
|
6
6
|
/** Text to appear to the right of the text. It has a lower font-weight. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CommonResultProps } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type Props = CommonResultProps & {
|
|
4
4
|
/** Name of the container. Provides the main text to be displayed as the item. */
|
|
5
5
|
name: React.ReactNode;
|
|
6
6
|
/** Text to appear to the right of the text. It has a lower font-weight. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CommonResultProps } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type Props = CommonResultProps & {
|
|
4
4
|
/** Name of the container. Provides the main text to be displayed as the item. */
|
|
5
5
|
name: React.ReactNode;
|
|
6
6
|
/** A user's custom handle. Appears to the right of their `name`. It has a lower font-weight. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnalyticsData, CommonResultProps } from './types';
|
|
3
3
|
import { ResultContextType } from '../context';
|
|
4
|
-
export
|
|
4
|
+
export type Props = CommonResultProps & {
|
|
5
5
|
/** Type of the result. This is passed as a parameter to certain callbacks. */
|
|
6
6
|
type: string;
|
|
7
7
|
/** Main text to be displayed as the item. */
|
|
@@ -15,7 +15,7 @@ export declare type Props = CommonResultProps & {
|
|
|
15
15
|
/** The context provided by QuickSearch. */
|
|
16
16
|
context?: ResultContextType;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
type DefaultProps = {
|
|
19
19
|
context: ResultContextType;
|
|
20
20
|
};
|
|
21
21
|
export declare class ResultBase extends React.PureComponent<DefaultProps & Props> {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
2
|
+
export type AnalyticsData = Object;
|
|
3
|
+
export type ResultId = string | number;
|
|
4
|
+
export type SelectedResultId = ResultId | null;
|
|
5
|
+
export type CancelableEvent = KeyboardEvent | MouseEvent | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLElement>;
|
|
6
|
+
export type ResultData = {
|
|
7
7
|
resultId: ResultId;
|
|
8
8
|
type: string;
|
|
9
9
|
event: CancelableEvent;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type CommonResultProps = {
|
|
12
12
|
/** Unique ID of the result. This is passed as a parameter to certain callbacks */
|
|
13
13
|
resultId: string | number;
|
|
14
14
|
/** Type of the result. This is passed as a parameter to certain callbacks. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const controlKeys: string[];
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
/** The elements to render as options to search from. */
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
/** The elements to render to the right of the search input. */
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { ResultData, ResultId, SelectedResultId } from './Results/types';
|
|
4
4
|
import { ResultBase } from './Results/ResultBase';
|
|
5
|
-
export
|
|
5
|
+
export type ResultContextType = {
|
|
6
6
|
/** Register result as keyboard navigation target */
|
|
7
7
|
registerResult: (result: ResultBase) => void;
|
|
8
8
|
/** Unregister result as keyboard navigation target */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: (element: any) => boolean;
|
|
2
1
|
/**
|
|
3
2
|
* Heuristically check whether an element is a react element or not.
|
|
4
3
|
* React elements have constructors for their type property but native elements use strings.
|
|
5
4
|
*/
|
|
5
|
+
declare const _default: (element: any) => boolean;
|
|
6
6
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/quick-search",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "A quick-search component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"atlaskit:src": "src/index.ts",
|
|
16
24
|
"atlassian": {
|
|
17
25
|
"team": "Search Platform: Search Experience",
|
|
@@ -27,7 +35,7 @@
|
|
|
27
35
|
"@atlaskit/item": "^12.1.0",
|
|
28
36
|
"@atlaskit/spinner": "^15.5.0",
|
|
29
37
|
"@atlaskit/theme": "^12.5.0",
|
|
30
|
-
"@atlaskit/tokens": "^1.
|
|
38
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
31
39
|
"@babel/runtime": "^7.0.0",
|
|
32
40
|
"keycode": "^2.1.7"
|
|
33
41
|
},
|
|
@@ -46,7 +54,7 @@
|
|
|
46
54
|
"prop-types": "^15.5.10",
|
|
47
55
|
"react": "^16.8.0",
|
|
48
56
|
"sinon": "^2.2.0",
|
|
49
|
-
"typescript": "4.
|
|
57
|
+
"typescript": "~4.9.5",
|
|
50
58
|
"uuid": "^3.1.0"
|
|
51
59
|
},
|
|
52
60
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/report.api.md
CHANGED
|
@@ -84,7 +84,7 @@ export type ContainerResultProps = CommonResultProps & {
|
|
|
84
84
|
subText?: React_2.ReactNode;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
// @public
|
|
87
|
+
// @public
|
|
88
88
|
const _default: React_2.ComponentClass<Props_3, any>;
|
|
89
89
|
export { _default as AkQuickSearch };
|
|
90
90
|
export { _default as QuickSearch };
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/quick-search"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { ComponentType } from 'react';
|
|
8
|
+
import { default as React_2 } from 'react';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
|
|
11
|
+
// @public (undocumented)
|
|
12
|
+
export class AkNavigationItem extends React_2.PureComponent<Props_2> {
|
|
13
|
+
// (undocumented)
|
|
14
|
+
static defaultProps: Partial<Props_2>;
|
|
15
|
+
// (undocumented)
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// @public (undocumented)
|
|
20
|
+
export class AkSearch extends React_2.PureComponent<Props_4> {
|
|
21
|
+
// (undocumented)
|
|
22
|
+
static defaultProps: Partial<Props_4>;
|
|
23
|
+
// (undocumented)
|
|
24
|
+
inputRef?: React_2.Ref<any>;
|
|
25
|
+
// (undocumented)
|
|
26
|
+
onInputKeyDown: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
render(): JSX.Element;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
renderInputControls: () => JSX.Element | null;
|
|
31
|
+
// (undocumented)
|
|
32
|
+
setInputRef: (ref: React_2.Ref<any>) => void;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
type AnalyticsData = Object;
|
|
37
|
+
|
|
38
|
+
// @public (undocumented)
|
|
39
|
+
export type CancelableEvent = KeyboardEvent | MouseEvent | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLElement>;
|
|
40
|
+
|
|
41
|
+
// @public (undocumented)
|
|
42
|
+
type CommonResultProps = {
|
|
43
|
+
resultId: number | string;
|
|
44
|
+
type?: string;
|
|
45
|
+
avatarUrl?: string;
|
|
46
|
+
avatar?: ReactNode;
|
|
47
|
+
elemAfter?: ReactNode;
|
|
48
|
+
selectedIcon?: ReactNode;
|
|
49
|
+
href?: string;
|
|
50
|
+
target?: string;
|
|
51
|
+
isCompact?: boolean;
|
|
52
|
+
onClick?: (resultData: ResultData) => void;
|
|
53
|
+
analyticsData?: (() => AnalyticsData) | AnalyticsData;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// @public
|
|
57
|
+
export class ContainerResult extends React_2.PureComponent<ContainerResultProps> {
|
|
58
|
+
// (undocumented)
|
|
59
|
+
getAvatar: () => {};
|
|
60
|
+
// (undocumented)
|
|
61
|
+
render(): JSX.Element;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// @public (undocumented)
|
|
65
|
+
export type ContainerResultProps = CommonResultProps & {
|
|
66
|
+
name: React_2.ReactNode;
|
|
67
|
+
caption?: string;
|
|
68
|
+
isPrivate?: boolean;
|
|
69
|
+
subText?: React_2.ReactNode;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// @public
|
|
73
|
+
const _default: React_2.ComponentClass<Props_3, any>;
|
|
74
|
+
export { _default as AkQuickSearch }
|
|
75
|
+
export { _default as QuickSearch }
|
|
76
|
+
|
|
77
|
+
// @public (undocumented)
|
|
78
|
+
type DefaultProps = {
|
|
79
|
+
context: ResultContextType;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// @public
|
|
83
|
+
export class ObjectResult extends React_2.PureComponent<ObjectResultProps> {
|
|
84
|
+
// (undocumented)
|
|
85
|
+
getAvatar: () => {};
|
|
86
|
+
// (undocumented)
|
|
87
|
+
getSubtext(): null | undefined | {};
|
|
88
|
+
// (undocumented)
|
|
89
|
+
render(): JSX.Element;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// @public (undocumented)
|
|
93
|
+
export type ObjectResultProps = CommonResultProps & {
|
|
94
|
+
name: React_2.ReactNode;
|
|
95
|
+
caption?: string;
|
|
96
|
+
containerName?: React_2.ReactNode;
|
|
97
|
+
isPrivate?: boolean;
|
|
98
|
+
objectKey?: React_2.ReactNode;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// @public (undocumented)
|
|
102
|
+
export class PersonResult extends React_2.PureComponent<PersonResultProps> {
|
|
103
|
+
// (undocumented)
|
|
104
|
+
static defaultProps: Partial<PersonResultProps>;
|
|
105
|
+
// (undocumented)
|
|
106
|
+
getAvatar: () => {};
|
|
107
|
+
// (undocumented)
|
|
108
|
+
getMention: () => string | undefined;
|
|
109
|
+
// (undocumented)
|
|
110
|
+
render(): JSX.Element;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// @public (undocumented)
|
|
114
|
+
export type PersonResultProps = CommonResultProps & {
|
|
115
|
+
name: React_2.ReactNode;
|
|
116
|
+
mentionName?: string;
|
|
117
|
+
mentionPrefix?: string;
|
|
118
|
+
presenceMessage?: React_2.ReactNode;
|
|
119
|
+
presenceState?: 'busy' | 'offline' | 'online' | null;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
// @public (undocumented)
|
|
123
|
+
type Props = {
|
|
124
|
+
title: React_2.ReactNode;
|
|
125
|
+
children?: React_2.ReactNode;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
// @public (undocumented)
|
|
129
|
+
type Props_2 = {
|
|
130
|
+
caption?: string;
|
|
131
|
+
href?: string;
|
|
132
|
+
target?: string;
|
|
133
|
+
icon?: React_2.ReactNode;
|
|
134
|
+
isCompact?: boolean;
|
|
135
|
+
isSelected?: boolean;
|
|
136
|
+
isMouseSelected?: boolean;
|
|
137
|
+
onClick?(e: MouseEvent): void;
|
|
138
|
+
onMouseEnter?: (e: MouseEvent) => void;
|
|
139
|
+
onMouseLeave?: (e: MouseEvent) => void;
|
|
140
|
+
subText?: React_2.ReactNode;
|
|
141
|
+
text?: React_2.ReactNode;
|
|
142
|
+
textAfter?: React_2.ReactNode;
|
|
143
|
+
selectedIcon?: React_2.ReactNode;
|
|
144
|
+
linkComponent?: React_2.ComponentType;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// @public (undocumented)
|
|
148
|
+
type Props_3 = {
|
|
149
|
+
children: React_2.ReactNode;
|
|
150
|
+
isLoading?: boolean;
|
|
151
|
+
onSearchBlur?: (event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
152
|
+
onSearchInput?: (event: React_2.FormEvent<HTMLInputElement>, isAutocompleted?: boolean) => void;
|
|
153
|
+
onSearchKeyDown?: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
|
|
154
|
+
onSearchSubmit?: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
|
|
155
|
+
placeholder?: string;
|
|
156
|
+
value?: string;
|
|
157
|
+
selectedResultId?: SelectedResultId;
|
|
158
|
+
onSelectedResultIdChanged?: (id: SelectedResultId) => void;
|
|
159
|
+
firePrivateAnalyticsEvent?: (eventName: string, eventData: Object) => void;
|
|
160
|
+
linkComponent?: React_2.ComponentType<any>;
|
|
161
|
+
inputControls?: React_2.ReactNode;
|
|
162
|
+
autocompleteText?: string;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
// @public (undocumented)
|
|
166
|
+
type Props_4 = {
|
|
167
|
+
children?: React_2.ReactNode;
|
|
168
|
+
inputControls?: React_2.ReactNode;
|
|
169
|
+
isLoading?: boolean;
|
|
170
|
+
onBlur?: (event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
171
|
+
onInput?: (event: React_2.FormEvent<HTMLInputElement>) => void;
|
|
172
|
+
onKeyDown?: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
|
|
173
|
+
placeholder?: string;
|
|
174
|
+
value?: string;
|
|
175
|
+
autocompleteText?: string;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
declare namespace quickSearchResultTypes {
|
|
179
|
+
export {
|
|
180
|
+
ContainerResult,
|
|
181
|
+
ObjectResult,
|
|
182
|
+
PersonResult,
|
|
183
|
+
ResultBase
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
export { quickSearchResultTypes }
|
|
187
|
+
|
|
188
|
+
// @public (undocumented)
|
|
189
|
+
export const ResultBase: (props: ResultBaseProps) => JSX.Element;
|
|
190
|
+
|
|
191
|
+
// @public (undocumented)
|
|
192
|
+
class ResultBase_2 extends React_2.PureComponent<DefaultProps & ResultBaseProps> {
|
|
193
|
+
// (undocumented)
|
|
194
|
+
componentDidMount(): void;
|
|
195
|
+
// (undocumented)
|
|
196
|
+
componentDidUpdate(): void;
|
|
197
|
+
// (undocumented)
|
|
198
|
+
componentWillUnmount(): void;
|
|
199
|
+
// (undocumented)
|
|
200
|
+
static defaultProps: Partial<ResultBaseProps>;
|
|
201
|
+
// (undocumented)
|
|
202
|
+
getAnalyticsData(): AnalyticsData;
|
|
203
|
+
// (undocumented)
|
|
204
|
+
handleClick: (e: MouseEvent) => void;
|
|
205
|
+
// (undocumented)
|
|
206
|
+
handleMouseEnter: (event: MouseEvent) => void;
|
|
207
|
+
// (undocumented)
|
|
208
|
+
handleMouseLeave: () => void;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
registerResult(): void;
|
|
211
|
+
// (undocumented)
|
|
212
|
+
render(): JSX.Element;
|
|
213
|
+
// (undocumented)
|
|
214
|
+
state: {
|
|
215
|
+
isMouseSelected: boolean;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// @public (undocumented)
|
|
220
|
+
export type ResultBaseProps = CommonResultProps & {
|
|
221
|
+
type: string;
|
|
222
|
+
text: React_2.ReactNode;
|
|
223
|
+
subText?: React_2.ReactNode;
|
|
224
|
+
caption?: string;
|
|
225
|
+
icon?: React_2.ReactNode;
|
|
226
|
+
context?: ResultContextType;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
// @public (undocumented)
|
|
230
|
+
type ResultContextType = {
|
|
231
|
+
registerResult: (result: ResultBase_2) => void;
|
|
232
|
+
unregisterResult: (result: ResultBase_2) => void;
|
|
233
|
+
onMouseEnter: (resultData: ResultData) => void;
|
|
234
|
+
onMouseLeave: () => void;
|
|
235
|
+
sendAnalytics?: (eventName: string, eventData: Object) => void;
|
|
236
|
+
getIndex: (resultId: ResultId) => null | number;
|
|
237
|
+
linkComponent?: ComponentType;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
// @public (undocumented)
|
|
241
|
+
export type ResultData = {
|
|
242
|
+
resultId: ResultId;
|
|
243
|
+
type: string;
|
|
244
|
+
event: CancelableEvent;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
// @public (undocumented)
|
|
248
|
+
type ResultId = number | string;
|
|
249
|
+
|
|
250
|
+
// @public (undocumented)
|
|
251
|
+
class ResultItemGroup extends React_2.Component<Props> {
|
|
252
|
+
// (undocumented)
|
|
253
|
+
render(): JSX.Element;
|
|
254
|
+
}
|
|
255
|
+
export { ResultItemGroup as AkNavigationItemGroup }
|
|
256
|
+
export { ResultItemGroup }
|
|
257
|
+
|
|
258
|
+
// @public (undocumented)
|
|
259
|
+
type SelectedResultId = ResultId | null;
|
|
260
|
+
|
|
261
|
+
// (No @packageDocumentation comment for this package)
|
|
262
|
+
|
|
263
|
+
```
|