@kodiak-finance/orderly-ui-notification 2.8.18-rc.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.
@@ -0,0 +1,45 @@
1
+ import { FC } from 'react';
2
+ import { API, AnnouncementType, RouterAdapter } from '@kodiak-finance/orderly-types';
3
+
4
+ declare const AnnouncementCenterUI: FC<{
5
+ dataSource: API.AnnouncementRow[];
6
+ onItemClick: (url: string) => void;
7
+ }>;
8
+
9
+ declare const AnnouncementItem: FC<{
10
+ expanded: boolean;
11
+ url?: string | null;
12
+ onItemClick: (url: string) => void;
13
+ onExpandToggle?: () => void;
14
+ type: AnnouncementType | undefined | null;
15
+ message: string;
16
+ updatedTime: number;
17
+ className?: string;
18
+ showDivider?: boolean;
19
+ }>;
20
+
21
+ interface NotificationProps {
22
+ className?: string;
23
+ dataSource: API.AnnouncementRow[];
24
+ onClose?: () => void;
25
+ }
26
+ declare const NotificationUI: FC<NotificationProps & {
27
+ maintenanceMessage?: string;
28
+ onItemClick: (url: string) => void;
29
+ }>;
30
+
31
+ declare const AnnouncementCenterPage: FC<{
32
+ routerAdapter?: RouterAdapter;
33
+ }>;
34
+
35
+ type AnnouncementOptions = {
36
+ hideTips?: boolean;
37
+ };
38
+ declare const useAnnouncement: (options?: AnnouncementOptions) => {
39
+ maintenanceDialogInfo: string | undefined;
40
+ tips: API.AnnouncementRow[];
41
+ closeTips: () => void;
42
+ showAnnouncement: boolean;
43
+ };
44
+
45
+ export { AnnouncementCenterPage, AnnouncementCenterUI, AnnouncementItem, NotificationUI, useAnnouncement };
@@ -0,0 +1,45 @@
1
+ import { FC } from 'react';
2
+ import { API, AnnouncementType, RouterAdapter } from '@kodiak-finance/orderly-types';
3
+
4
+ declare const AnnouncementCenterUI: FC<{
5
+ dataSource: API.AnnouncementRow[];
6
+ onItemClick: (url: string) => void;
7
+ }>;
8
+
9
+ declare const AnnouncementItem: FC<{
10
+ expanded: boolean;
11
+ url?: string | null;
12
+ onItemClick: (url: string) => void;
13
+ onExpandToggle?: () => void;
14
+ type: AnnouncementType | undefined | null;
15
+ message: string;
16
+ updatedTime: number;
17
+ className?: string;
18
+ showDivider?: boolean;
19
+ }>;
20
+
21
+ interface NotificationProps {
22
+ className?: string;
23
+ dataSource: API.AnnouncementRow[];
24
+ onClose?: () => void;
25
+ }
26
+ declare const NotificationUI: FC<NotificationProps & {
27
+ maintenanceMessage?: string;
28
+ onItemClick: (url: string) => void;
29
+ }>;
30
+
31
+ declare const AnnouncementCenterPage: FC<{
32
+ routerAdapter?: RouterAdapter;
33
+ }>;
34
+
35
+ type AnnouncementOptions = {
36
+ hideTips?: boolean;
37
+ };
38
+ declare const useAnnouncement: (options?: AnnouncementOptions) => {
39
+ maintenanceDialogInfo: string | undefined;
40
+ tips: API.AnnouncementRow[];
41
+ closeTips: () => void;
42
+ showAnnouncement: boolean;
43
+ };
44
+
45
+ export { AnnouncementCenterPage, AnnouncementCenterUI, AnnouncementItem, NotificationUI, useAnnouncement };