@aws/mynah-ui 1.1.12 → 1.2.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/README.md +16 -1
- package/dist/components/navigation-tabs.d.ts +15 -0
- package/dist/components/toggle.d.ts +3 -1
- package/dist/helper/payload-transformer.d.ts +13 -0
- package/dist/helper/store.d.ts +5 -1
- package/dist/main.d.ts +8 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +13 -2
- package/package.json +1 -1
package/dist/static.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
import { ToggleOption } from './components/toggle';
|
|
5
6
|
export interface MynahUIDataModel {
|
|
6
7
|
loading?: boolean;
|
|
7
8
|
liveSearchState?: LiveSearchState;
|
|
@@ -11,6 +12,9 @@ export interface MynahUIDataModel {
|
|
|
11
12
|
codeSelection?: SearchPayloadCodeSelection;
|
|
12
13
|
codeQuery?: SearchPayloadCodeQuery;
|
|
13
14
|
matchPolicy?: SearchPayloadMatchPolicy;
|
|
15
|
+
invisibleContextItems?: string[];
|
|
16
|
+
selectedNavigationTab?: string | null;
|
|
17
|
+
navigationTabs?: ToggleOption[];
|
|
14
18
|
userAddedContext?: string[];
|
|
15
19
|
suggestions?: Suggestion[];
|
|
16
20
|
autoCompleteSuggestions?: AutocompleteItem[];
|
|
@@ -24,9 +28,9 @@ export interface MynahUIDataModel {
|
|
|
24
28
|
export declare enum MynahEventNames {
|
|
25
29
|
RESET_STORE = "resetStore",
|
|
26
30
|
CONTEXT_VISIBILITY_CHANGE = "contextVisibilityChange",
|
|
27
|
-
REQUEST_AUTOCOMPLETE_SUGGESTIONS = "requestAutocompleteSuggestions",
|
|
28
31
|
AUTOCOMPLETE_SUGGESTION_CLICK = "autoCompleteSuggestionClick",
|
|
29
32
|
SEARCH = "search",
|
|
33
|
+
INPUT_QUERY_CHANGE = "inputQueryChange",
|
|
30
34
|
REQUEST_SEARCH_HISTORY = "requestSearchHistory",
|
|
31
35
|
SEARCH_HISTORY_ITEM_CLICK = "searchHistoryItemClick",
|
|
32
36
|
LIVE_SEARCH_STATE_CHANGED = "liveSearchStateChanged",
|
|
@@ -74,6 +78,7 @@ export interface SearchPayload {
|
|
|
74
78
|
codeSelection: SearchPayloadCodeSelection;
|
|
75
79
|
codeQuery?: SearchPayloadCodeQuery;
|
|
76
80
|
code?: string;
|
|
81
|
+
selectedTab?: string;
|
|
77
82
|
}
|
|
78
83
|
export interface SuggestionMetaData {
|
|
79
84
|
stars?: number;
|
|
@@ -85,6 +90,12 @@ export interface SuggestionMetaData {
|
|
|
85
90
|
lastActivityDate?: number;
|
|
86
91
|
}
|
|
87
92
|
export declare type SuggestionMetaDataUnion = Record<string, SuggestionMetaData>;
|
|
93
|
+
export interface CanonicalExample {
|
|
94
|
+
canonicalExample: {
|
|
95
|
+
body: string;
|
|
96
|
+
url: string;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
88
99
|
export interface Suggestion {
|
|
89
100
|
id: string;
|
|
90
101
|
title: string;
|
|
@@ -92,7 +103,7 @@ export interface Suggestion {
|
|
|
92
103
|
body: string;
|
|
93
104
|
context: string[];
|
|
94
105
|
type?: string;
|
|
95
|
-
metadata?: SuggestionMetaDataUnion;
|
|
106
|
+
metadata?: SuggestionMetaDataUnion | CanonicalExample;
|
|
96
107
|
}
|
|
97
108
|
export declare enum KeyMap {
|
|
98
109
|
ESCAPE = "Escape",
|
package/package.json
CHANGED