@ada-support/embed2 1.6.28 → 1.6.30

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.
@@ -1,6 +1,6 @@
1
1
  export declare const browserHasNotificationSupport: boolean;
2
2
  export declare function checkIfUserHasGivenPermission(): boolean;
3
- export declare function requestNotificationPermission(): Promise<NotificationPermission | undefined> | null;
3
+ export declare function requestNotificationPermission(): Promise<NotificationPermission> | null;
4
4
  export declare function createNotification(title: string, isChatOpen: boolean, onClickHandler?: (...args: unknown[]) => unknown, options?: {
5
5
  body?: string;
6
6
  icon?: string;
@@ -8,4 +8,4 @@ export declare function createNotification(title: string, isChatOpen: boolean, o
8
8
  /**
9
9
  * Used to listen for changes in Notification permission state
10
10
  */
11
- export declare function notificationPermListener(notificationPermChangeHandler: (notificationStatus: NotificationPermission) => void): void;
11
+ export declare function notificationPermissionsListener(notificationPermissionsChangeHandler: (notificationStatus: NotificationPermission) => void): void;