synos-helena 21.12.0 → 21.12.7-beta.0
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/CHANGELOG.md +3 -1
- package/lib/dark.css.map +1 -1
- package/lib/helena.css.map +1 -1
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +32 -3
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/light.css.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -495,11 +495,25 @@ export interface HLModulesMenuPropTypes {
|
|
|
495
495
|
export const HLModulesMenu: React.FC<HLModulesMenuPropTypes>;
|
|
496
496
|
|
|
497
497
|
|
|
498
|
+
interface DateObject {
|
|
499
|
+
chronology: any;
|
|
500
|
+
dayOfMonth: number;
|
|
501
|
+
dayOfWeek: string;
|
|
502
|
+
dayOfYear: number;
|
|
503
|
+
hour: number;
|
|
504
|
+
minute: number;
|
|
505
|
+
month: string;
|
|
506
|
+
monthValue: number;
|
|
507
|
+
nano: number;
|
|
508
|
+
second: number;
|
|
509
|
+
year: number;
|
|
510
|
+
}
|
|
511
|
+
|
|
498
512
|
interface Notification {
|
|
499
513
|
title: string;
|
|
500
514
|
description: string;
|
|
501
515
|
type: string;
|
|
502
|
-
date:
|
|
516
|
+
date: DateObject | string;
|
|
503
517
|
isVisualized: boolean;
|
|
504
518
|
link?: string;
|
|
505
519
|
onClick?: React.MouseEvent<HTMLElement>;
|
|
@@ -524,6 +538,7 @@ export interface HLNotificationPropTypes {
|
|
|
524
538
|
| 'rightBottom';
|
|
525
539
|
Link?: Link;
|
|
526
540
|
notifications?: Notification[];
|
|
541
|
+
markAsReadCallback: (notification: Record<string, string>) => void;
|
|
527
542
|
fetchNewNotifications: () => void;
|
|
528
543
|
showFormat: string;
|
|
529
544
|
refreshInterval: number;
|
|
@@ -532,11 +547,25 @@ export interface HLNotificationPropTypes {
|
|
|
532
547
|
export const HLNotification: React.FC<HLNotificationPropTypes>;
|
|
533
548
|
|
|
534
549
|
|
|
550
|
+
interface DateObject {
|
|
551
|
+
chronology: any;
|
|
552
|
+
dayOfMonth: number;
|
|
553
|
+
dayOfWeek: string;
|
|
554
|
+
dayOfYear: number;
|
|
555
|
+
hour: number;
|
|
556
|
+
minute: number;
|
|
557
|
+
month: string;
|
|
558
|
+
monthValue: number;
|
|
559
|
+
nano: number;
|
|
560
|
+
second: number;
|
|
561
|
+
year: number;
|
|
562
|
+
}
|
|
563
|
+
|
|
535
564
|
interface Notification {
|
|
536
565
|
title: string;
|
|
537
566
|
description: string;
|
|
538
567
|
type: string;
|
|
539
|
-
date:
|
|
568
|
+
date: DateObject | string;
|
|
540
569
|
isVisualized: boolean;
|
|
541
570
|
link?: string;
|
|
542
571
|
onClick?: React.MouseEvent<HTMLElement>;
|
|
@@ -544,7 +573,7 @@ interface Notification {
|
|
|
544
573
|
|
|
545
574
|
export interface NotificationListPropTypes {
|
|
546
575
|
Link?: Link;
|
|
547
|
-
onClickNotification
|
|
576
|
+
onClickNotification: (notification: Record<string, string>) => void;
|
|
548
577
|
notifications?: Notification[];
|
|
549
578
|
useDayjs?: boolean;
|
|
550
579
|
}
|