analytica-frontend-lib 1.1.55 → 1.1.57
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 +1 -1
- package/dist/NotificationCard/index.d.ts +1 -1
- package/dist/NotificationCard/index.js +166 -82
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +166 -82
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/{NotificationCard-kGUKNOqT.d.mts → NotificationCard-DpSGkWEa.d.mts} +10 -0
- package/dist/{NotificationCard-kGUKNOqT.d.ts → NotificationCard-DpSGkWEa.d.ts} +10 -0
- package/dist/index.css +19 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +165 -82
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +165 -82
- package/dist/index.mjs.map +1 -1
- package/dist/mock-content-K2CDVG6P.png +0 -0
- package/dist/styles.css +19 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
|
@@ -52,6 +52,10 @@ interface Notification {
|
|
|
52
52
|
* ID of the entity this notification refers to (optional)
|
|
53
53
|
*/
|
|
54
54
|
entityId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Action link for global notifications (optional)
|
|
57
|
+
*/
|
|
58
|
+
actionLink?: string | null;
|
|
55
59
|
/**
|
|
56
60
|
* Sender information (optional)
|
|
57
61
|
*/
|
|
@@ -90,6 +94,7 @@ interface BackendNotification {
|
|
|
90
94
|
description: string;
|
|
91
95
|
entityType: string | null;
|
|
92
96
|
entityId: string | null;
|
|
97
|
+
actionLink?: string | null;
|
|
93
98
|
read: boolean;
|
|
94
99
|
createdAt: string;
|
|
95
100
|
updatedAt: string;
|
|
@@ -292,6 +297,10 @@ interface NotificationListMode extends BaseNotificationProps {
|
|
|
292
297
|
* Callback when user navigates from a notification in list mode
|
|
293
298
|
*/
|
|
294
299
|
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
300
|
+
/**
|
|
301
|
+
* Callback when user clicks on a global notification
|
|
302
|
+
*/
|
|
303
|
+
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
295
304
|
/**
|
|
296
305
|
* Function to get action label for a notification
|
|
297
306
|
*/
|
|
@@ -377,6 +386,7 @@ interface LegacyNotificationCardProps extends BaseNotificationProps {
|
|
|
377
386
|
onMarkAsReadById?: (id: string) => void;
|
|
378
387
|
onDeleteById?: (id: string) => void;
|
|
379
388
|
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
389
|
+
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
380
390
|
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
381
391
|
renderEmpty?: () => ReactNode;
|
|
382
392
|
variant?: 'card' | 'center';
|
|
@@ -52,6 +52,10 @@ interface Notification {
|
|
|
52
52
|
* ID of the entity this notification refers to (optional)
|
|
53
53
|
*/
|
|
54
54
|
entityId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Action link for global notifications (optional)
|
|
57
|
+
*/
|
|
58
|
+
actionLink?: string | null;
|
|
55
59
|
/**
|
|
56
60
|
* Sender information (optional)
|
|
57
61
|
*/
|
|
@@ -90,6 +94,7 @@ interface BackendNotification {
|
|
|
90
94
|
description: string;
|
|
91
95
|
entityType: string | null;
|
|
92
96
|
entityId: string | null;
|
|
97
|
+
actionLink?: string | null;
|
|
93
98
|
read: boolean;
|
|
94
99
|
createdAt: string;
|
|
95
100
|
updatedAt: string;
|
|
@@ -292,6 +297,10 @@ interface NotificationListMode extends BaseNotificationProps {
|
|
|
292
297
|
* Callback when user navigates from a notification in list mode
|
|
293
298
|
*/
|
|
294
299
|
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
300
|
+
/**
|
|
301
|
+
* Callback when user clicks on a global notification
|
|
302
|
+
*/
|
|
303
|
+
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
295
304
|
/**
|
|
296
305
|
* Function to get action label for a notification
|
|
297
306
|
*/
|
|
@@ -377,6 +386,7 @@ interface LegacyNotificationCardProps extends BaseNotificationProps {
|
|
|
377
386
|
onMarkAsReadById?: (id: string) => void;
|
|
378
387
|
onDeleteById?: (id: string) => void;
|
|
379
388
|
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
389
|
+
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
380
390
|
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
381
391
|
renderEmpty?: () => ReactNode;
|
|
382
392
|
variant?: 'card' | 'center';
|
package/dist/index.css
CHANGED
|
@@ -18655,6 +18655,25 @@
|
|
|
18655
18655
|
--shadow-soft-shadow-4: 0px 0px 40px rgba(38, 38, 38, 0.2);
|
|
18656
18656
|
}
|
|
18657
18657
|
}
|
|
18658
|
+
textarea {
|
|
18659
|
+
outline: none !important;
|
|
18660
|
+
}
|
|
18661
|
+
textarea:not(:focus) {
|
|
18662
|
+
border-width: 1px !important;
|
|
18663
|
+
border-color: var(--color-border-300) !important;
|
|
18664
|
+
}
|
|
18665
|
+
textarea:focus {
|
|
18666
|
+
border-width: 2px !important;
|
|
18667
|
+
border-color: var(--color-primary-950) !important;
|
|
18668
|
+
}
|
|
18669
|
+
div textarea:not(:focus) {
|
|
18670
|
+
border-width: 1px !important;
|
|
18671
|
+
border-color: var(--color-border-300) !important;
|
|
18672
|
+
}
|
|
18673
|
+
div textarea:focus {
|
|
18674
|
+
border-width: 2px !important;
|
|
18675
|
+
border-color: var(--color-primary-950) !important;
|
|
18676
|
+
}
|
|
18658
18677
|
@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
|
|
18659
18678
|
@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
|
|
18660
18679
|
@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }
|