tvuikit 0.8.1 → 0.8.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.
@@ -12,12 +12,14 @@ type NotificateParameter = ReactNode | FunctionOfNotificationParameter;
12
12
  type ExtendedNotificationType = Omit<NotificationType, "text"> & {
13
13
  text: NotificateParameter;
14
14
  };
15
- /**
16
- * @param duration duration of notification in miliseconds
17
- * @param delay delay between notifications in miliseconds
18
- */
19
- export declare const useNotifications: (duration: number, delay?: number) => {
20
- NotificationComponent: import('react').ReactPortal;
15
+ export declare const useNotifications: ({ duration, delay, usePortal, }: {
16
+ /** duration of notification in miliseconds */
17
+ duration: number;
18
+ /** delay between notifications in miliseconds */
19
+ delay?: number;
20
+ usePortal?: boolean;
21
+ }) => {
22
+ NotificationComponent: import("react/jsx-runtime").JSX.Element | null;
21
23
  notifications: import('react').RefObject<{
22
24
  [key: string]: NotificationType;
23
25
  }>;