analytica-frontend-lib 1.1.35 → 1.1.37
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/NotificationCard/index.d.mts +3 -104
- package/dist/NotificationCard/index.d.ts +3 -104
- package/dist/NotificationCard/index.js +611 -43
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +607 -43
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/NotificationCard-IYDURfYp.d.mts +402 -0
- package/dist/NotificationCard-IYDURfYp.d.ts +402 -0
- package/dist/Quiz/index.js +4 -4
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +4 -4
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/index.css +31 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +125 -2
- package/dist/index.d.ts +125 -2
- package/dist/index.js +499 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +497 -33
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +31 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
|
@@ -1,104 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
interface NotificationItem {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
message: string;
|
|
8
|
-
time: string;
|
|
9
|
-
isRead: boolean;
|
|
10
|
-
entityType?: string;
|
|
11
|
-
entityId?: string;
|
|
12
|
-
createdAt: string | Date;
|
|
13
|
-
}
|
|
14
|
-
interface NotificationGroup {
|
|
15
|
-
label: string;
|
|
16
|
-
notifications: NotificationItem[];
|
|
17
|
-
}
|
|
18
|
-
interface NotificationCardProps {
|
|
19
|
-
/**
|
|
20
|
-
* The notification title
|
|
21
|
-
*/
|
|
22
|
-
title?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The notification message content
|
|
25
|
-
*/
|
|
26
|
-
message?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Time displayed (e.g., "Há 3h", "12 Fev")
|
|
29
|
-
*/
|
|
30
|
-
time?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Whether the notification has been read
|
|
33
|
-
*/
|
|
34
|
-
isRead?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Callback when user marks notification as read
|
|
37
|
-
*/
|
|
38
|
-
onMarkAsRead?: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* Callback when user deletes notification
|
|
41
|
-
*/
|
|
42
|
-
onDelete?: () => void;
|
|
43
|
-
/**
|
|
44
|
-
* Optional callback for navigation action
|
|
45
|
-
*/
|
|
46
|
-
onNavigate?: () => void;
|
|
47
|
-
/**
|
|
48
|
-
* Label for the action button (only shown if onNavigate is provided)
|
|
49
|
-
*/
|
|
50
|
-
actionLabel?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Array of notifications for list mode
|
|
53
|
-
*/
|
|
54
|
-
notifications?: NotificationItem[];
|
|
55
|
-
/**
|
|
56
|
-
* Array of grouped notifications
|
|
57
|
-
*/
|
|
58
|
-
groupedNotifications?: NotificationGroup[];
|
|
59
|
-
/**
|
|
60
|
-
* Loading state for list mode
|
|
61
|
-
*/
|
|
62
|
-
loading?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Error state for list mode
|
|
65
|
-
*/
|
|
66
|
-
error?: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* Callback for retry when error occurs
|
|
69
|
-
*/
|
|
70
|
-
onRetry?: () => void;
|
|
71
|
-
/**
|
|
72
|
-
* Callback when user marks a notification as read in list mode
|
|
73
|
-
*/
|
|
74
|
-
onMarkAsReadById?: (id: string) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Callback when user deletes a notification in list mode
|
|
77
|
-
*/
|
|
78
|
-
onDeleteById?: (id: string) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Callback when user navigates from a notification in list mode
|
|
81
|
-
*/
|
|
82
|
-
onNavigateById?: (entityType?: string, entityId?: string) => void;
|
|
83
|
-
/**
|
|
84
|
-
* Function to get action label for a notification
|
|
85
|
-
*/
|
|
86
|
-
getActionLabel?: (entityType?: string) => string | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* Custom empty state component
|
|
89
|
-
*/
|
|
90
|
-
renderEmpty?: () => ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* Additional CSS classes
|
|
93
|
-
*/
|
|
94
|
-
className?: string;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* NotificationCard component - can display single notification or list of notifications
|
|
98
|
-
*
|
|
99
|
-
* @param props - The notification card properties
|
|
100
|
-
* @returns JSX element representing the notification card or list
|
|
101
|
-
*/
|
|
102
|
-
declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
103
|
-
|
|
104
|
-
export { type NotificationCardProps, type NotificationGroup, type NotificationItem, NotificationCard as default };
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, d as NotificationItem, c as default } from '../NotificationCard-IYDURfYp.mjs';
|
|
@@ -1,104 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
interface NotificationItem {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
message: string;
|
|
8
|
-
time: string;
|
|
9
|
-
isRead: boolean;
|
|
10
|
-
entityType?: string;
|
|
11
|
-
entityId?: string;
|
|
12
|
-
createdAt: string | Date;
|
|
13
|
-
}
|
|
14
|
-
interface NotificationGroup {
|
|
15
|
-
label: string;
|
|
16
|
-
notifications: NotificationItem[];
|
|
17
|
-
}
|
|
18
|
-
interface NotificationCardProps {
|
|
19
|
-
/**
|
|
20
|
-
* The notification title
|
|
21
|
-
*/
|
|
22
|
-
title?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The notification message content
|
|
25
|
-
*/
|
|
26
|
-
message?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Time displayed (e.g., "Há 3h", "12 Fev")
|
|
29
|
-
*/
|
|
30
|
-
time?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Whether the notification has been read
|
|
33
|
-
*/
|
|
34
|
-
isRead?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Callback when user marks notification as read
|
|
37
|
-
*/
|
|
38
|
-
onMarkAsRead?: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* Callback when user deletes notification
|
|
41
|
-
*/
|
|
42
|
-
onDelete?: () => void;
|
|
43
|
-
/**
|
|
44
|
-
* Optional callback for navigation action
|
|
45
|
-
*/
|
|
46
|
-
onNavigate?: () => void;
|
|
47
|
-
/**
|
|
48
|
-
* Label for the action button (only shown if onNavigate is provided)
|
|
49
|
-
*/
|
|
50
|
-
actionLabel?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Array of notifications for list mode
|
|
53
|
-
*/
|
|
54
|
-
notifications?: NotificationItem[];
|
|
55
|
-
/**
|
|
56
|
-
* Array of grouped notifications
|
|
57
|
-
*/
|
|
58
|
-
groupedNotifications?: NotificationGroup[];
|
|
59
|
-
/**
|
|
60
|
-
* Loading state for list mode
|
|
61
|
-
*/
|
|
62
|
-
loading?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Error state for list mode
|
|
65
|
-
*/
|
|
66
|
-
error?: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* Callback for retry when error occurs
|
|
69
|
-
*/
|
|
70
|
-
onRetry?: () => void;
|
|
71
|
-
/**
|
|
72
|
-
* Callback when user marks a notification as read in list mode
|
|
73
|
-
*/
|
|
74
|
-
onMarkAsReadById?: (id: string) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Callback when user deletes a notification in list mode
|
|
77
|
-
*/
|
|
78
|
-
onDeleteById?: (id: string) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Callback when user navigates from a notification in list mode
|
|
81
|
-
*/
|
|
82
|
-
onNavigateById?: (entityType?: string, entityId?: string) => void;
|
|
83
|
-
/**
|
|
84
|
-
* Function to get action label for a notification
|
|
85
|
-
*/
|
|
86
|
-
getActionLabel?: (entityType?: string) => string | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* Custom empty state component
|
|
89
|
-
*/
|
|
90
|
-
renderEmpty?: () => ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* Additional CSS classes
|
|
93
|
-
*/
|
|
94
|
-
className?: string;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* NotificationCard component - can display single notification or list of notifications
|
|
98
|
-
*
|
|
99
|
-
* @param props - The notification card properties
|
|
100
|
-
* @returns JSX element representing the notification card or list
|
|
101
|
-
*/
|
|
102
|
-
declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
103
|
-
|
|
104
|
-
export { type NotificationCardProps, type NotificationGroup, type NotificationItem, NotificationCard as default };
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, d as NotificationItem, c as default } from '../NotificationCard-IYDURfYp.js';
|