@aws/mynah-ui 1.1.13 → 1.2.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/dist/static.d.ts CHANGED
@@ -13,10 +13,8 @@ export interface MynahUIDataModel {
13
13
  codeQuery?: SearchPayloadCodeQuery;
14
14
  matchPolicy?: SearchPayloadMatchPolicy;
15
15
  invisibleContextItems?: string[];
16
- navigationTabs?: {
17
- selected?: string;
18
- tabs: ToggleOption[];
19
- };
16
+ selectedNavigationTab?: string | null;
17
+ navigationTabs?: ToggleOption[];
20
18
  userAddedContext?: string[];
21
19
  suggestions?: Suggestion[];
22
20
  autoCompleteSuggestions?: AutocompleteItem[];
@@ -30,9 +28,9 @@ export interface MynahUIDataModel {
30
28
  export declare enum MynahEventNames {
31
29
  RESET_STORE = "resetStore",
32
30
  CONTEXT_VISIBILITY_CHANGE = "contextVisibilityChange",
33
- REQUEST_AUTOCOMPLETE_SUGGESTIONS = "requestAutocompleteSuggestions",
34
31
  AUTOCOMPLETE_SUGGESTION_CLICK = "autoCompleteSuggestionClick",
35
32
  SEARCH = "search",
33
+ INPUT_QUERY_CHANGE = "inputQueryChange",
36
34
  REQUEST_SEARCH_HISTORY = "requestSearchHistory",
37
35
  SEARCH_HISTORY_ITEM_CLICK = "searchHistoryItemClick",
38
36
  LIVE_SEARCH_STATE_CHANGED = "liveSearchStateChanged",
@@ -80,6 +78,7 @@ export interface SearchPayload {
80
78
  codeSelection: SearchPayloadCodeSelection;
81
79
  codeQuery?: SearchPayloadCodeQuery;
82
80
  code?: string;
81
+ selectedTab?: string;
83
82
  }
84
83
  export interface SuggestionMetaData {
85
84
  stars?: number;
@@ -91,6 +90,12 @@ export interface SuggestionMetaData {
91
90
  lastActivityDate?: number;
92
91
  }
93
92
  export declare type SuggestionMetaDataUnion = Record<string, SuggestionMetaData>;
93
+ export interface CanonicalExample {
94
+ canonicalExample: {
95
+ body: string;
96
+ url: string;
97
+ };
98
+ }
94
99
  export interface Suggestion {
95
100
  id: string;
96
101
  title: string;
@@ -98,7 +103,7 @@ export interface Suggestion {
98
103
  body: string;
99
104
  context: string[];
100
105
  type?: string;
101
- metadata?: SuggestionMetaDataUnion;
106
+ metadata?: SuggestionMetaDataUnion | CanonicalExample;
102
107
  }
103
108
  export declare enum KeyMap {
104
109
  ESCAPE = "Escape",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws/mynah-ui",
3
3
  "displayName": "AWS Mynah UI",
4
- "version": "1.1.13",
4
+ "version": "1.2.1",
5
5
  "description": "AWS Tookit VSCode and Intellij IDE Extension Mynah UI",
6
6
  "publisher": "Amazon Web Services",
7
7
  "license": "Apache License 2.0",