@omniumretail/component-library 1.2.94 → 1.2.95

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.
@@ -0,0 +1,3 @@
1
+ import { BellNotificationsProps } from './types';
2
+ export declare const BellNotifications: ({ notifications, onFilterChange, onNotificationClick, handleMarkAllAsRead }: BellNotificationsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BellNotifications;
@@ -0,0 +1,14 @@
1
+ import { BellNotification } from './types';
2
+ interface NotificationItemProps {
3
+ notification: BellNotification;
4
+ isLoading: boolean;
5
+ isReading: boolean;
6
+ isSwiped: boolean;
7
+ onSwipe: (id: string) => void;
8
+ onSwipeClose: () => void;
9
+ onClick: (e: React.MouseEvent) => void;
10
+ onMarkAsRead: (e: React.MouseEvent) => void;
11
+ onMarkAsReadAndOpen: (e: React.MouseEvent) => void;
12
+ }
13
+ export declare const NotificationItem: ({ notification, isLoading, isReading, isSwiped, onSwipe, onSwipeClose, onClick, onMarkAsRead, onMarkAsReadAndOpen }: NotificationItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -1,22 +1,3 @@
1
- export interface Criticality {
2
- Id: string;
3
- Name: string;
4
- ColorHex: string;
5
- }
6
- export interface BellNotification {
7
- Id: string;
8
- Title: string;
9
- Description: string;
10
- RedirectURL: string;
11
- Icon: string;
12
- ExpirationDate: number;
13
- Criticality: Criticality;
14
- IsRead: boolean;
15
- }
16
- export interface BellNotificationsProps {
17
- notifications: BellNotification[];
18
- onFilterChange: (filter: 'all' | 'unread') => void;
19
- onNotificationClick: (id: string, url: string) => Promise<void> | void;
20
- handleMarkAllAsRead: () => Promise<void> | void;
21
- }
22
- export declare const BellNotifications: ({ notifications, onFilterChange, onNotificationClick, handleMarkAllAsRead }: BellNotificationsProps) => import("react/jsx-runtime").JSX.Element;
1
+ export { BellNotifications } from './BellNotifications';
2
+ export { NotificationItem } from './NotificationItem';
3
+ export type { BellNotification, BellNotificationsProps, Criticality } from './types';
@@ -0,0 +1,21 @@
1
+ export interface Criticality {
2
+ Id: string;
3
+ Name: string;
4
+ ColorHex: string;
5
+ }
6
+ export interface BellNotification {
7
+ Id: string;
8
+ Title: string;
9
+ Description: string;
10
+ RedirectURL: string;
11
+ Icon: string;
12
+ ExpirationDate: number;
13
+ Criticality: Criticality;
14
+ IsRead: boolean;
15
+ }
16
+ export interface BellNotificationsProps {
17
+ notifications: BellNotification[];
18
+ onFilterChange: (filter: 'all' | 'unread') => void;
19
+ onNotificationClick: (id: string, url: string) => Promise<void> | void;
20
+ handleMarkAllAsRead: () => Promise<void> | void;
21
+ }
@@ -138,7 +138,11 @@ declare const _default: {
138
138
  "noNotifications": "No notifications",
139
139
  "onlyShowNoRead": "Only show unread",
140
140
  "markAllAsRead": "Mark all as read",
141
- "noUnreadNotifications": "No unread notifications"
141
+ "noUnreadNotifications": "No unread notifications",
142
+ "swipeToRead": "Mark as read",
143
+ "swipeToOpen": "Open",
144
+ "swipeTutorialTitle": "Swipe to the left to mark as read or open",
145
+ "swipeTutorialTap": "Tap to continue"
142
146
  },
143
147
  "supportModal": {
144
148
  "title": "Support Center",
@@ -138,7 +138,11 @@ declare const _default: {
138
138
  "noNotifications": "Sin notificaciones",
139
139
  "onlyShowNoRead": "Mostrar sólo no leídas",
140
140
  "markAllAsRead": "Marcar todo como leído",
141
- "noUnreadNotifications": "No hay notificaciones no leídas"
141
+ "noUnreadNotifications": "No hay notificaciones no leídas",
142
+ "swipeToRead": "Marcar como leído",
143
+ "swipeToOpen": "Abrir",
144
+ "swipeTutorialTitle": "Desliza hacia la izquierda para marcar como leído o abrir",
145
+ "swipeTutorialTap": "Toque para continuar"
142
146
  },
143
147
  "supportModal": {
144
148
  "title": "Centro de Soporte",
@@ -138,7 +138,11 @@ declare const _default: {
138
138
  "noNotifications": "Sem notificações",
139
139
  "onlyShowNoRead": "Mostrar apenas não lidas",
140
140
  "markAllAsRead": "Marcar todas como lidas",
141
- "noUnreadNotifications": "Todas as notificações estão lidas"
141
+ "noUnreadNotifications": "Todas as notificações estão lidas",
142
+ "swipeToRead": "Marcar como lida",
143
+ "swipeToOpen": "Abrir",
144
+ "swipeTutorialTitle": "Deslize para a esquerda para marcar como lida ou abrir",
145
+ "swipeTutorialTap": "Toque para continuar"
142
146
  },
143
147
  "supportModal": {
144
148
  "title": "Centro de Suporte",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.2.94",
3
+ "version": "1.2.95",
4
4
  "private": false,
5
5
  "main": "dist/component-library.umd.js",
6
6
  "module": "dist/component-library.es.js",