identity-admin-ui 1.12.37 → 1.12.39
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/lib/cjs/index.js +135 -135
- package/lib/cjs/types/components/Notifications/NotificationsLocalization.d.ts +6 -2
- package/lib/cjs/types/context/NotificationsContext.d.ts +2 -0
- package/lib/cjs/types/hooks/useNotifications.d.ts +2 -0
- package/lib/cjs/types/layouts/dashboard/header/NotificationsPopover.d.ts +0 -12
- package/lib/esm/index.js +135 -135
- package/lib/esm/types/components/Notifications/NotificationsLocalization.d.ts +6 -2
- package/lib/esm/types/context/NotificationsContext.d.ts +2 -0
- package/lib/esm/types/hooks/useNotifications.d.ts +2 -0
- package/lib/esm/types/layouts/dashboard/header/NotificationsPopover.d.ts +0 -12
- package/lib/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,12 +3,16 @@ export declare enum ArabicNotification {
|
|
|
3
3
|
youHave = "\u0644\u062F\u064A\u0643",
|
|
4
4
|
unreadMessages = "\u0631\u0633\u0627\u0626\u0644 \u063A\u064A\u0631 \u0645\u0642\u0631\u0648\u0621\u0629",
|
|
5
5
|
showMore = "\u0639\u0631\u0636 \u0627\u0644\u0645\u0632\u064A\u062F",
|
|
6
|
-
showLess = "\u0639\u0631\u0636 \u0623\u0642\u0644"
|
|
6
|
+
showLess = "\u0639\u0631\u0636 \u0623\u0642\u0644",
|
|
7
|
+
viewAll = "\u0639\u0631\u0636 \u0627\u0644\u0643\u0644",
|
|
8
|
+
markAllAsRead = "\u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u0643\u0644 \u0643\u0645\u0642\u0631\u0648\u0621"
|
|
7
9
|
}
|
|
8
10
|
export declare enum EnglishNotification {
|
|
9
11
|
notifications = "Notifications",
|
|
10
12
|
youHave = "You have",
|
|
11
13
|
unreadMessages = "unread messages",
|
|
12
14
|
showMore = "Show more",
|
|
13
|
-
showLess = "Show less"
|
|
15
|
+
showLess = "Show less",
|
|
16
|
+
viewAll = "View all",
|
|
17
|
+
markAllAsRead = "Mark all as read"
|
|
14
18
|
}
|
|
@@ -4,6 +4,8 @@ import { IDashboardNotification } from '../components/Notifications/IDashboardNo
|
|
|
4
4
|
declare const NotificationContext: import("react").Context<{
|
|
5
5
|
notifications?: IDashboardNotification[] | undefined;
|
|
6
6
|
getNotifications: () => void;
|
|
7
|
+
markOneRead: (id: string) => void;
|
|
8
|
+
markAllAsRead: () => void;
|
|
7
9
|
state: RequestState;
|
|
8
10
|
clearNotifications: () => void;
|
|
9
11
|
}>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const useNotifications: () => {
|
|
2
2
|
notifications?: import("../components/Notifications/IDashboardNotifications").IDashboardNotification[] | undefined;
|
|
3
3
|
getNotifications: () => void;
|
|
4
|
+
markOneRead: (id: string) => void;
|
|
5
|
+
markAllAsRead: () => void;
|
|
4
6
|
state: import("./RequetState").RequestState;
|
|
5
7
|
clearNotifications: () => void;
|
|
6
8
|
};
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
export interface IDashboardNotifications {
|
|
2
|
-
id: string;
|
|
3
|
-
text: string;
|
|
4
|
-
createdAt: Date;
|
|
5
|
-
clickable: boolean;
|
|
6
|
-
redirectUrl?: string;
|
|
7
|
-
redirectUrlType: any;
|
|
8
|
-
isRead: boolean;
|
|
9
|
-
priority: any;
|
|
10
|
-
type?: string;
|
|
11
|
-
data?: string;
|
|
12
|
-
}
|
|
13
1
|
export default function NotificationsPopover(): import("react/jsx-runtime").JSX.Element;
|
package/lib/index.d.ts
CHANGED
|
@@ -453,6 +453,8 @@ interface IDashboardNotification {
|
|
|
453
453
|
declare const NotificationContext: react.Context<{
|
|
454
454
|
notifications?: IDashboardNotification[] | undefined;
|
|
455
455
|
getNotifications: () => void;
|
|
456
|
+
markOneRead: (id: string) => void;
|
|
457
|
+
markAllAsRead: () => void;
|
|
456
458
|
state: RequestState;
|
|
457
459
|
clearNotifications: () => void;
|
|
458
460
|
}>;
|
|
@@ -895,6 +897,8 @@ declare const useDialogs: () => {
|
|
|
895
897
|
declare const useNotifications: () => {
|
|
896
898
|
notifications?: IDashboardNotification[] | undefined;
|
|
897
899
|
getNotifications: () => void;
|
|
900
|
+
markOneRead: (id: string) => void;
|
|
901
|
+
markAllAsRead: () => void;
|
|
898
902
|
state: RequestState;
|
|
899
903
|
clearNotifications: () => void;
|
|
900
904
|
};
|