@aws/mynah-ui 2.0.0-beta.11.0 → 2.0.0-beta.11.2

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.
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { DomBuilderObject, ExtendedHTMLElement } from '../../helper/dom';
6
6
  import { NotificationType } from '../../static';
7
- declare type NotificationContentType = string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
7
+ type NotificationContentType = string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
8
8
  export interface NotificationProps {
9
9
  duration?: number;
10
10
  type?: NotificationType;
@@ -7,8 +7,6 @@ import { Suggestion } from '../../static';
7
7
  export interface SuggestionCardBodyProps {
8
8
  suggestion: Partial<Suggestion>;
9
9
  showFooterButtons?: boolean;
10
- onLinkMouseEnter?: (e: MouseEvent, url: string) => void;
11
- onLinkMouseLeave?: (e: MouseEvent, url: string) => void;
12
10
  }
13
11
  export declare class SuggestionCardBody {
14
12
  render: ExtendedHTMLElement;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -2,11 +2,11 @@
2
2
  * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- export declare const getTimeDiff: (differenceInMs: number, show?: 1 | 2 | 5 | 3 | 6 | {
6
- years?: boolean | undefined;
7
- months?: boolean | undefined;
8
- weeks?: boolean | undefined;
9
- days?: boolean | undefined;
10
- hours?: boolean | undefined;
11
- minutes?: boolean | undefined;
12
- } | 4 | undefined, separator?: string | undefined) => string;
5
+ export declare const getTimeDiff: (differenceInMs: number, show?: {
6
+ years?: boolean;
7
+ months?: boolean;
8
+ weeks?: boolean;
9
+ days?: boolean;
10
+ hours?: boolean;
11
+ minutes?: boolean;
12
+ } | 1 | 2 | 3 | 4 | 5 | 6, separator?: string) => string;
@@ -2,7 +2,7 @@
2
2
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- export declare type TreeNode = FolderNode | FileNode;
5
+ export type TreeNode = FolderNode | FileNode;
6
6
  export interface FileNode {
7
7
  name: string;
8
8
  type: 'file';
@@ -19,6 +19,6 @@ export declare class MynahUIDataStore {
19
19
  unsubscribe: (storeKey: keyof MynahUIDataModel, subscriptionId: string) => void;
20
20
  getValue: (storeKey: keyof MynahUIDataModel) => any;
21
21
  getDefaultValue: (storeKey: keyof MynahUIDataModel) => any;
22
- updateStore: (data: MynahUIDataModel, skipSubscribers?: boolean | undefined) => void;
22
+ updateStore: (data: MynahUIDataModel, skipSubscribers?: boolean) => void;
23
23
  resetStore: () => void;
24
24
  }
@@ -21,12 +21,12 @@ export declare class MynahUITabsStore {
21
21
  private readonly tabsDataStore;
22
22
  private constructor();
23
23
  private readonly deselectAllTabs;
24
- readonly addTab: (tabData?: MynahUITabStoreTab | undefined) => string;
24
+ readonly addTab: (tabData?: MynahUITabStoreTab) => string;
25
25
  readonly removeTab: (tabId: string) => string;
26
26
  readonly selectTab: (tabId: string) => void;
27
- updateTab: (tabId: string, tabData?: Partial<MynahUITabStoreTab> | undefined, skipSubscribers?: boolean | undefined) => void;
28
- static getInstance: (initialData?: MynahUITabStoreModel | undefined, defaults?: MynahUITabStoreTab | undefined) => MynahUITabsStore;
29
- addListener: (eventName: keyof TabStoreSubscription, handler: (tabId: string, tabData?: MynahUITabStoreTab | undefined) => void) => string;
27
+ updateTab: (tabId: string, tabData?: Partial<MynahUITabStoreTab>, skipSubscribers?: boolean) => void;
28
+ static getInstance: (initialData?: MynahUITabStoreModel, defaults?: MynahUITabStoreTab) => MynahUITabsStore;
29
+ addListener: (eventName: keyof TabStoreSubscription, handler: (tabId: string, tabData?: MynahUITabStoreTab) => void) => string;
30
30
  addListenerToDataStore: (tabId: string, storeKey: keyof MynahUIDataModel, handler: (newValue: any, oldValue?: any) => void) => string | null;
31
31
  removeListenerFromDataStore: (tabId: string, subscriptionId: string, storeKey: keyof MynahUIDataModel) => void;
32
32
  removeListener: (eventName: keyof TabStoreSubscription, subscriptionId: string) => void;