@aws/mynah-ui 4.19.0 → 4.20.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/dist/components/button.d.ts +1 -0
- package/dist/components/syntax-highlighter.d.ts +4 -0
- package/dist/helper/tabs-store.d.ts +6 -1
- package/dist/main.d.ts +5 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +1 -0
- package/docs/DATAMODEL.md +25 -0
- package/docs/USAGE.md +38 -1
- package/docs/img/data-model/chatItems/fillState-hover.png +0 -0
- package/docs/img/data-model/chatItems/fillState.png +0 -0
- package/docs/img/splashLoader.png +0 -0
- package/package.json +1 -1
- package/ui-tests/dist/main.js +1 -1
- package/ui-tests/dist/main.js.map +1 -1
- package/ui-tests/jest.config.js +1 -1
|
@@ -19,6 +19,7 @@ export interface ButtonProps {
|
|
|
19
19
|
primary?: boolean;
|
|
20
20
|
border?: boolean;
|
|
21
21
|
status?: 'main' | 'primary' | 'info' | 'success' | 'warning' | 'error' | 'clear';
|
|
22
|
+
fillState?: 'hover' | 'always';
|
|
22
23
|
additionalEvents?: Partial<Record<GenericEvents, DomBuilderEventHandler | DomBuilderEventHandlerWithOptions>>;
|
|
23
24
|
onClick: (e: Event) => void;
|
|
24
25
|
onHover?: (e: Event) => void;
|
|
@@ -19,13 +19,17 @@ import 'prismjs/components/prism-markdown.min';
|
|
|
19
19
|
import 'prismjs/components/prism-mongodb.min';
|
|
20
20
|
import 'prismjs/components/prism-c.min';
|
|
21
21
|
import 'prismjs/components/prism-bash.min';
|
|
22
|
+
import 'prismjs/components/prism-go.min';
|
|
22
23
|
import 'prismjs/components/prism-csharp.min';
|
|
23
24
|
import 'prismjs/components/prism-objectivec.min';
|
|
24
25
|
import 'prismjs/components/prism-python.min';
|
|
25
26
|
import 'prismjs/components/prism-regex.min';
|
|
27
|
+
import 'prismjs/components/prism-swift.min';
|
|
26
28
|
import 'prismjs/components/prism-scala.min';
|
|
27
29
|
import 'prismjs/components/prism-scss.min';
|
|
28
30
|
import 'prismjs/components/prism-less.min';
|
|
31
|
+
import 'prismjs/components/prism-ruby.min';
|
|
32
|
+
import 'prismjs/components/prism-rust.min';
|
|
29
33
|
import 'prismjs/plugins/line-numbers/prism-line-numbers.js';
|
|
30
34
|
import 'prismjs/plugins/keep-markup/prism-keep-markup.js';
|
|
31
35
|
import 'prismjs/plugins/diff-highlight/prism-diff-highlight.min';
|
|
@@ -13,9 +13,9 @@ export declare class EmptyMynahUITabsStoreModel {
|
|
|
13
13
|
export declare class MynahUITabsStore {
|
|
14
14
|
private static instance;
|
|
15
15
|
private readonly subscriptions;
|
|
16
|
-
private readonly tabDefaults;
|
|
17
16
|
private readonly tabsStore;
|
|
18
17
|
private readonly tabsDataStore;
|
|
18
|
+
private tabDefaults;
|
|
19
19
|
private constructor();
|
|
20
20
|
private readonly deselectAllTabs;
|
|
21
21
|
readonly addTab: (tabData?: MynahUITabStoreTab) => string | undefined;
|
|
@@ -84,5 +84,10 @@ export declare class MynahUITabsStore {
|
|
|
84
84
|
* @returns tabs length
|
|
85
85
|
*/
|
|
86
86
|
tabsLength: () => number;
|
|
87
|
+
/**
|
|
88
|
+
* Updates defaults of the tab store
|
|
89
|
+
* @param defaults MynahUITabStoreTab
|
|
90
|
+
*/
|
|
91
|
+
updateTabDefaults: (defaults: MynahUITabStoreTab) => void;
|
|
87
92
|
}
|
|
88
93
|
export {};
|
package/dist/main.d.ts
CHANGED
|
@@ -143,6 +143,11 @@ export declare class MynahUI {
|
|
|
143
143
|
* @param data A full or partial set of data with values.
|
|
144
144
|
*/
|
|
145
145
|
updateStore: (tabId: string | '', data: MynahUIDataModel) => string | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Updates defaults of the tab store
|
|
148
|
+
* @param defaults MynahUITabStoreTab
|
|
149
|
+
*/
|
|
150
|
+
updateTabDefaults: (defaults: MynahUITabStoreTab) => void;
|
|
146
151
|
/**
|
|
147
152
|
* This function returns the selected tab id if there is any, otherwise returns undefined
|
|
148
153
|
* @returns string selectedTabId or undefined
|