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.
@@ -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; }