@propknot/shared-ui 1.0.1 → 1.0.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.
package/dist/index.js CHANGED
@@ -14473,7 +14473,9 @@ __export(index_exports, {
14473
14473
  getNotificationPermission: () => getNotificationPermission,
14474
14474
  getRelativeLuminance: () => getRelativeLuminance,
14475
14475
  getStatusContrastColors: () => getStatusContrastColors,
14476
+ hasNotificationPermission: () => hasNotificationPermission,
14476
14477
  isColorDark: () => isColorDark,
14478
+ isNotificationSupported: () => isNotificationSupported,
14477
14479
  isPushNotificationSupported: () => isPushNotificationSupported,
14478
14480
  isPushSubscribed: () => isPushSubscribed,
14479
14481
  isTenantAuthenticated: () => isTenantAuthenticated,
@@ -14487,6 +14489,7 @@ __export(index_exports, {
14487
14489
  notifyMessage: () => notifyMessage,
14488
14490
  notifySuccess: () => notifySuccess,
14489
14491
  notifyTicketUpdate: () => notifyTicketUpdate,
14492
+ requestNotificationPermission: () => requestNotificationPermission2,
14490
14493
  rgbToHex: () => rgbToHex,
14491
14494
  sendTestNotification: () => sendTestNotification,
14492
14495
  setSocketContext: () => setSocketContext,
@@ -19011,6 +19014,15 @@ var notificationManager = new NotificationManager2();
19011
19014
  var showMessageNotification = (senderName, messageContent, propertyAddress) => {
19012
19015
  notificationManager.showMessageNotification(senderName, messageContent, propertyAddress);
19013
19016
  };
19017
+ var requestNotificationPermission2 = () => {
19018
+ return notificationManager.requestPermission();
19019
+ };
19020
+ var hasNotificationPermission = () => {
19021
+ return notificationManager.hasPermission();
19022
+ };
19023
+ var isNotificationSupported = () => {
19024
+ return NotificationManager2.isSupported();
19025
+ };
19014
19026
 
19015
19027
  // src/utils/pushNotifications.js
19016
19028
  var isPushNotificationSupported = () => {
@@ -19114,7 +19126,9 @@ var isTenantAuthenticated = () => {
19114
19126
  getNotificationPermission,
19115
19127
  getRelativeLuminance,
19116
19128
  getStatusContrastColors,
19129
+ hasNotificationPermission,
19117
19130
  isColorDark,
19131
+ isNotificationSupported,
19118
19132
  isPushNotificationSupported,
19119
19133
  isPushSubscribed,
19120
19134
  isTenantAuthenticated,
@@ -19128,6 +19142,7 @@ var isTenantAuthenticated = () => {
19128
19142
  notifyMessage,
19129
19143
  notifySuccess,
19130
19144
  notifyTicketUpdate,
19145
+ requestNotificationPermission,
19131
19146
  rgbToHex,
19132
19147
  sendTestNotification,
19133
19148
  setSocketContext,
package/dist/index.mjs CHANGED
@@ -19026,6 +19026,15 @@ var notificationManager = new NotificationManager2();
19026
19026
  var showMessageNotification = (senderName, messageContent, propertyAddress) => {
19027
19027
  notificationManager.showMessageNotification(senderName, messageContent, propertyAddress);
19028
19028
  };
19029
+ var requestNotificationPermission2 = () => {
19030
+ return notificationManager.requestPermission();
19031
+ };
19032
+ var hasNotificationPermission = () => {
19033
+ return notificationManager.hasPermission();
19034
+ };
19035
+ var isNotificationSupported = () => {
19036
+ return NotificationManager2.isSupported();
19037
+ };
19029
19038
 
19030
19039
  // src/utils/pushNotifications.js
19031
19040
  var isPushNotificationSupported = () => {
@@ -19128,7 +19137,9 @@ export {
19128
19137
  getNotificationPermission,
19129
19138
  getRelativeLuminance,
19130
19139
  getStatusContrastColors,
19140
+ hasNotificationPermission,
19131
19141
  isColorDark,
19142
+ isNotificationSupported,
19132
19143
  isPushNotificationSupported,
19133
19144
  isPushSubscribed,
19134
19145
  isTenantAuthenticated,
@@ -19142,6 +19153,7 @@ export {
19142
19153
  notifyMessage,
19143
19154
  notifySuccess,
19144
19155
  notifyTicketUpdate,
19156
+ requestNotificationPermission2 as requestNotificationPermission,
19145
19157
  rgbToHex,
19146
19158
  sendTestNotification,
19147
19159
  setSocketContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propknot/shared-ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [