@aws/mynah-ui 4.18.1-beta.1 → 4.19.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 CHANGED
@@ -48,8 +48,8 @@ Please refer to the following guides:
48
48
  * [Startup guide](./docs/STARTUP.md)
49
49
  * [Constructor properties](./docs/PROPERTIES.md)
50
50
  * [Configuration](./docs/CONFIG.md)
51
- * [Usage](./docs/USAGE.md)
52
51
  * [Data model](./docs/DATAMODEL.md)
52
+ * [Usage](./docs/USAGE.md)
53
53
  * [Styling](./docs/STYLING.md)
54
54
  * [Developer guidelines (contribution)](./docs/DEVELOPER.md)
55
55
 
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { ExtendedHTMLElement } from '../../helper/dom';
6
+ import '../../styles/components/_spinner.scss';
7
+ export declare class Spinner {
8
+ render: ExtendedHTMLElement;
9
+ constructor();
10
+ }
@@ -69,7 +69,7 @@ export declare class DomBuilder {
69
69
  build: (domBuilderObject: DomBuilderObject) => ExtendedHTMLElement;
70
70
  update: (domToUpdate: ExtendedHTMLElement, domBuilderObject: DomBuilderObjectFilled) => ExtendedHTMLElement;
71
71
  createPortal: (portalName: string, builderObject: DomBuilderObject, position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend') => ExtendedHTMLElement;
72
- getPortal: (portalName: string) => ExtendedHTMLElement;
72
+ getPortal: (portalName: string) => ExtendedHTMLElement | undefined;
73
73
  removePortal: (portalName: string) => void;
74
74
  removeAllPortals: (portalsWithName: MynahPortalNames) => void;
75
75
  }
package/dist/main.d.ts CHANGED
@@ -21,6 +21,10 @@ export { default as MynahUITestIds } from './helper/test-ids';
21
21
  export interface MynahUIProps {
22
22
  rootSelector?: string;
23
23
  defaults?: MynahUITabStoreTab;
24
+ splashScreenInitialStatus?: {
25
+ visible: boolean;
26
+ text: string;
27
+ };
24
28
  tabs?: MynahUITabStoreModel;
25
29
  config?: Partial<ConfigModel>;
26
30
  onShowMoreWebResultsClick?: (tabId: string, messageId: string, eventId?: string) => void;
@@ -80,6 +84,8 @@ export declare class MynahUI {
80
84
  private readonly render;
81
85
  private lastEventId;
82
86
  private readonly props;
87
+ private readonly splashLoader;
88
+ private readonly splashLoaderText;
83
89
  private readonly tabsWrapper;
84
90
  private readonly tabContentsWrapper;
85
91
  private readonly feedbackForm?;
@@ -147,6 +153,10 @@ export declare class MynahUI {
147
153
  * @returns string selectedTabId or undefined
148
154
  */
149
155
  getAllTabs: () => MynahUITabStoreModel;
156
+ /**
157
+ * Toggles the visibility of the splash loader screen
158
+ */
159
+ toggleSplashLoader: (visible: boolean, text?: string) => void;
150
160
  /**
151
161
  * Simply creates and shows a notification
152
162
  * @param props NotificationProps