@seamly/web-ui 22.3.3 → 22.3.4

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.
@@ -12164,7 +12164,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
12164
12164
  return {
12165
12165
  clientName: "@seamly/web-ui",
12166
12166
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
12167
- clientVersion: "22.3.3",
12167
+ clientVersion: "22.3.4",
12168
12168
  currentUrl: window.location.toString(),
12169
12169
  screenResolution: `${window.screen.width}x${window.screen.height}`,
12170
12170
  timezone: getTimeZone(),
@@ -19213,7 +19213,7 @@ const useNotification = () => {
19213
19213
  const [visibilityState, setVisibilityState] = (0,hooks_.useState)(document.visibilityState);
19214
19214
  const showNotifications = (0,es/* useSelector */.v9)(selectShowNotifications);
19215
19215
  const requestPermission = (0,hooks_.useCallback)(() => use_notifications_awaiter(void 0, void 0, void 0, function* () {
19216
- if (Notification && permission !== 'granted') {
19216
+ if (hasNotificationSupport && permission !== 'granted') {
19217
19217
  const notificationPermission = yield Notification.requestPermission();
19218
19218
  setPermission(notificationPermission);
19219
19219
  }