@novu/js 3.8.1 → 3.9.1

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/js",
3
- "version": "3.8.1",
3
+ "version": "3.9.1",
4
4
  "repository": "https://github.com/novuhq/novu",
5
5
  "description": "Novu JavaScript SDK for <Inbox />",
6
6
  "author": "",
@@ -1,143 +0,0 @@
1
- import { N as Notification, b as Novu, P as Preference } from './novu-D6fucMvr.js';
2
- import { N as NotificationFilter, d as NovuOptions } from './types-CiFWY1AG.js';
3
-
4
- declare const appearanceKeys: readonly ["button", "input", "icon", "badge", "popoverContent", "popoverTrigger", "popoverClose", "dropdownContent", "dropdownTrigger", "dropdownItem", "dropdownItemLabel", "dropdownItemLabelContainer", "dropdownItemLeft__icon", "dropdownItemRight__icon", "dropdownItem__icon", "collapsible", "tooltipContent", "tooltipTrigger", "datePicker", "datePickerGrid", "datePickerGridRow", "datePickerGridCell", "datePickerGridCellTrigger", "datePickerTrigger", "datePickerGridHeader", "datePickerControl", "datePickerControlPrevTrigger", "datePickerControlNextTrigger", "datePickerControlPrevTrigger__icon", "datePickerControlNextTrigger__icon", "datePickerCalendar", "datePickerHeaderMonth", "datePickerCalendarDay__button", "timePicker", "timePicker__hourSelect", "timePicker__minuteSelect", "timePicker__periodSelect", "timePicker__separator", "timePickerHour__input", "timePickerMinute__input", "snoozeDatePicker", "snoozeDatePicker__actions", "snoozeDatePickerCancel__button", "snoozeDatePickerApply__button", "snoozeDatePicker__timePickerContainer", "snoozeDatePicker__timePickerLabel", "back__button", "skeletonText", "skeletonAvatar", "skeletonSwitch", "skeletonSwitchThumb", "tabsRoot", "tabsList", "tabsContent", "tabsTrigger", "dots", "root", "bellIcon", "lockIcon", "bellContainer", "bellDot", "preferences__button", "preferencesContainer", "inboxHeader", "loading", "inboxContent", "inbox__popoverTrigger", "inbox__popoverContent", "notificationListContainer", "notificationList", "notificationListEmptyNoticeContainer", "notificationListEmptyNoticeOverlay", "notificationListEmptyNoticeIcon", "notificationListEmptyNotice", "notificationList__skeleton", "notificationList__skeletonContent", "notificationList__skeletonItem", "notificationList__skeletonAvatar", "notificationList__skeletonText", "notificationListNewNotificationsNotice__button", "notification", "notificationContent", "notificationTextContainer", "notificationDot", "notificationSubject", "notificationSubject__strong", "notificationBody", "notificationBody__strong", "notificationBodyContainer", "notificationImage", "notificationImageLoadingFallback", "notificationDate", "notificationDateActionsContainer", "notificationDefaultActions", "notificationCustomActions", "notificationPrimaryAction__button", "notificationSecondaryAction__button", "notificationRead__button", "notificationUnread__button", "notificationArchive__button", "notificationUnarchive__button", "notificationSnooze__button", "notificationUnsnooze__button", "notificationRead__icon", "notificationUnread__icon", "notificationArchive__icon", "notificationUnarchive__icon", "notificationSnooze__icon", "notificationUnsnooze__icon", "notificationsTabs__tabsRoot", "notificationsTabs__tabsList", "notificationsTabs__tabsContent", "notificationsTabs__tabsTrigger", "notificationsTabsTriggerLabel", "notificationsTabsTriggerCount", "inboxStatus__title", "inboxStatus__dropdownTrigger", "inboxStatus__dropdownContent", "inboxStatus__dropdownItem", "inboxStatus__dropdownItemLabel", "inboxStatus__dropdownItemLabelContainer", "inboxStatus__dropdownItemLeft__icon", "inboxStatus__dropdownItemRight__icon", "inboxStatus__dropdownItem__icon", "inboxStatus__dropdownItemCheck__icon", "moreActionsContainer", "moreActions__dropdownTrigger", "moreActions__dropdownContent", "moreActions__dropdownItem", "moreActions__dropdownItemLabel", "moreActions__dropdownItemLeft__icon", "moreActions__dots", "moreTabs__button", "moreTabs__icon", "moreTabs__dropdownTrigger", "moreTabs__dropdownContent", "moreTabs__dropdownItem", "moreTabs__dropdownItemLabel", "moreTabs__dropdownItemRight__icon", "workflowContainer", "workflowLabel", "workflowLabelHeader", "workflowLabelHeaderContainer", "workflowLabelIcon", "workflowLabelContainer", "workflowContainerDisabledNotice", "workflowLabelDisabled__icon", "workflowContainerRight__icon", "workflowArrow__icon", "workflowDescription", "preferencesGroupContainer", "preferencesGroupHeader", "preferencesGroupLabelContainer", "preferencesGroupLabelIcon", "preferencesGroupLabel", "preferencesGroupActionsContainer", "preferencesGroupActionsContainerRight__icon", "preferencesGroupBody", "preferencesGroupChannels", "preferencesGroupInfo", "preferencesGroupInfoIcon", "preferencesGroupWorkflows", "channelContainer", "channelIconContainer", "channel__icon", "channelsContainerCollapsible", "channelsContainer", "channelLabel", "channelLabelContainer", "channelName", "channelSwitchContainer", "channelSwitch", "channelSwitchThumb", "preferencesHeader", "preferencesHeader__back__button", "preferencesHeader__back__button__icon", "preferencesHeader__title", "preferencesHeader__icon", "preferencesListEmptyNoticeContainer", "preferencesListEmptyNotice", "preferencesList__skeleton", "preferencesList__skeletonContent", "preferencesList__skeletonItem", "preferencesList__skeletonIcon", "preferencesList__skeletonSwitch", "preferencesList__skeletonSwitchThumb", "preferencesList__skeletonText", "notificationSnooze__dropdownContent", "notificationSnooze__dropdownItem", "notificationSnooze__dropdownItem__icon", "notificationSnoozeCustomTime_popoverContent", "notificationDeliveredAt__badge", "notificationDeliveredAt__icon", "notificationSnoozedUntil__icon", "strong"];
5
-
6
- declare const defaultLocalization: {
7
- readonly locale: "en-US";
8
- readonly 'inbox.filters.dropdownOptions.unread': "Unread only";
9
- readonly 'inbox.filters.dropdownOptions.default': "Unread & read";
10
- readonly 'inbox.filters.dropdownOptions.archived': "Archived";
11
- readonly 'inbox.filters.dropdownOptions.snoozed': "Snoozed";
12
- readonly 'inbox.filters.labels.unread': "Unread";
13
- readonly 'inbox.filters.labels.default': "Inbox";
14
- readonly 'inbox.filters.labels.archived': "Archived";
15
- readonly 'inbox.filters.labels.snoozed': "Snoozed";
16
- readonly 'notifications.emptyNotice': "Quiet for now. Check back later.";
17
- readonly 'notifications.actions.readAll': "Mark all as read";
18
- readonly 'notifications.actions.archiveAll': "Archive all";
19
- readonly 'notifications.actions.archiveRead': "Archive read";
20
- readonly 'notifications.newNotifications': ({ notificationCount }: {
21
- notificationCount: number;
22
- }) => string;
23
- readonly 'notification.actions.read.tooltip': "Mark as read";
24
- readonly 'notification.actions.unread.tooltip': "Mark as unread";
25
- readonly 'notification.actions.archive.tooltip': "Archive";
26
- readonly 'notification.actions.unarchive.tooltip': "Unarchive";
27
- readonly 'notification.actions.snooze.tooltip': "Snooze";
28
- readonly 'notification.actions.unsnooze.tooltip': "Unsnooze";
29
- readonly 'notification.snoozedUntil': "Snoozed until";
30
- readonly 'preferences.title': "Preferences";
31
- readonly 'preferences.emptyNotice': "No notification specific preferences yet.";
32
- readonly 'preferences.global': "Global Preferences";
33
- readonly 'preferences.workflow.disabled.notice': "Contact admin to enable subscription management for this critical notification.";
34
- readonly 'preferences.workflow.disabled.tooltip': "Contact admin to edit";
35
- readonly 'preferences.group.info': "Applies to all notifications under this group.";
36
- readonly 'snooze.datePicker.timePickerLabel': "Time";
37
- readonly 'snooze.datePicker.apply': "Apply";
38
- readonly 'snooze.datePicker.cancel': "Cancel";
39
- readonly 'snooze.options.anHourFromNow': "An hour from now";
40
- readonly 'snooze.datePicker.pastDateTooltip': "Selected time must be at least 3 minutes in the future";
41
- readonly 'snooze.datePicker.noDateSelectedTooltip': "Please select a date";
42
- readonly 'snooze.datePicker.exceedingLimitTooltip': ({ days }: {
43
- days: number;
44
- }) => string;
45
- readonly 'snooze.options.customTime': "Custom time...";
46
- readonly 'snooze.options.inOneDay': "Tomorrow";
47
- readonly 'snooze.options.inOneWeek': "Next week";
48
- };
49
-
50
- type LocalizationKey = keyof typeof defaultLocalization;
51
- type Localization = {
52
- [K in LocalizationKey]?: (typeof defaultLocalization)[K] extends (...args: infer P) => any ? ((...args: P) => ReturnType<(typeof defaultLocalization)[K]>) | string : string;
53
- } & {
54
- dynamic?: Record<string, string>;
55
- };
56
-
57
- type NotificationClickHandler = (notification: Notification) => void;
58
- type NotificationActionClickHandler = (notification: Notification) => void;
59
- type NotificationRenderer = (el: HTMLDivElement, notification: Notification) => () => void;
60
- type SubjectRenderer = (el: HTMLDivElement, notification: Notification) => () => void;
61
- type BodyRenderer = (el: HTMLDivElement, notification: Notification) => () => void;
62
- type BellRenderer = (el: HTMLDivElement, unreadCount: number) => () => void;
63
- type RouterPush = (path: string) => void;
64
- type Tab = {
65
- label: string;
66
- /**
67
- * @deprecated Use `filter` instead
68
- */
69
- value?: Array<string>;
70
- filter?: Pick<NotificationFilter, 'tags' | 'data'>;
71
- };
72
- type CSSProperties = {
73
- [key: string]: string | number;
74
- };
75
- type ElementStyles = string | CSSProperties;
76
- type Variables = {
77
- colorBackground?: string;
78
- colorForeground?: string;
79
- colorPrimary?: string;
80
- colorPrimaryForeground?: string;
81
- colorSecondary?: string;
82
- colorSecondaryForeground?: string;
83
- colorCounter?: string;
84
- colorCounterForeground?: string;
85
- colorNeutral?: string;
86
- colorShadow?: string;
87
- colorRing?: string;
88
- fontSize?: string;
89
- borderRadius?: string;
90
- colorStripes?: string;
91
- };
92
- type AppearanceKey = (typeof appearanceKeys)[number];
93
- type Elements = Partial<Record<AppearanceKey, ElementStyles>>;
94
- type IconKey = 'bell' | 'clock' | 'arrowDropDown' | 'dots' | 'markAsRead' | 'cogs' | 'trash' | 'markAsArchived' | 'markAsArchivedRead' | 'markAsUnread' | 'markAsUnarchived' | 'unsnooze' | 'arrowRight' | 'arrowLeft' | 'unread' | 'sms' | 'inApp' | 'email' | 'push' | 'chat' | 'check' | 'arrowDown' | 'routeFill' | 'info' | 'nodeTree';
95
- type IconRenderer = (el: HTMLDivElement, props: {
96
- class?: string;
97
- }) => () => void;
98
- type IconOverrides = {
99
- [key in IconKey]?: IconRenderer;
100
- };
101
- type Theme = {
102
- variables?: Variables;
103
- elements?: Elements;
104
- animations?: boolean;
105
- icons?: IconOverrides;
106
- };
107
- type Appearance = Theme & {
108
- baseTheme?: Theme | Theme[];
109
- };
110
- type BaseNovuProviderProps = {
111
- container?: Node | string | null;
112
- appearance?: Appearance;
113
- localization?: Localization;
114
- options: NovuOptions;
115
- tabs?: Array<Tab>;
116
- preferencesFilter?: PreferencesFilter;
117
- preferenceGroups?: PreferenceGroups;
118
- routerPush?: RouterPush;
119
- novu?: Novu;
120
- };
121
- type NovuProviderProps = BaseNovuProviderProps & {
122
- renderNotification?: NotificationRenderer;
123
- renderBell?: BellRenderer;
124
- };
125
- declare enum NotificationStatus {
126
- UNREAD_READ = "unreadRead",
127
- UNREAD = "unread",
128
- ARCHIVED = "archived",
129
- SNOOZED = "snoozed"
130
- }
131
- type PreferencesFilter = Pick<NotificationFilter, 'tags'>;
132
- type PreferenceFilterFunction = (args: {
133
- preferences: Preference[];
134
- }) => Preference[];
135
- type PreferenceGroupFilter = (PreferencesFilter & {
136
- workflowIds?: string[];
137
- }) | PreferenceFilterFunction;
138
- type PreferenceGroups = Array<{
139
- name: string;
140
- filter: PreferenceGroupFilter;
141
- }>;
142
-
143
- export { type Appearance as A, type BellRenderer as B, type ElementStyles as E, type IconKey as I, type Localization as L, type NotificationClickHandler as N, type PreferencesFilter as P, type RouterPush as R, type SubjectRenderer as S, type Tab as T, type Variables as V, type NotificationActionClickHandler as a, type NotificationRenderer as b, type BodyRenderer as c, type NovuProviderProps as d, type BaseNovuProviderProps as e, type PreferenceGroups as f, type AppearanceKey as g, type Elements as h, type IconOverrides as i, type IconRenderer as j, type LocalizationKey as k, NotificationStatus as l, type Theme as m };
@@ -1,143 +0,0 @@
1
- import { N as Notification, b as Novu, P as Preference } from './novu-CktM1OXQ.mjs';
2
- import { N as NotificationFilter, d as NovuOptions } from './types-CiFWY1AG.mjs';
3
-
4
- declare const appearanceKeys: readonly ["button", "input", "icon", "badge", "popoverContent", "popoverTrigger", "popoverClose", "dropdownContent", "dropdownTrigger", "dropdownItem", "dropdownItemLabel", "dropdownItemLabelContainer", "dropdownItemLeft__icon", "dropdownItemRight__icon", "dropdownItem__icon", "collapsible", "tooltipContent", "tooltipTrigger", "datePicker", "datePickerGrid", "datePickerGridRow", "datePickerGridCell", "datePickerGridCellTrigger", "datePickerTrigger", "datePickerGridHeader", "datePickerControl", "datePickerControlPrevTrigger", "datePickerControlNextTrigger", "datePickerControlPrevTrigger__icon", "datePickerControlNextTrigger__icon", "datePickerCalendar", "datePickerHeaderMonth", "datePickerCalendarDay__button", "timePicker", "timePicker__hourSelect", "timePicker__minuteSelect", "timePicker__periodSelect", "timePicker__separator", "timePickerHour__input", "timePickerMinute__input", "snoozeDatePicker", "snoozeDatePicker__actions", "snoozeDatePickerCancel__button", "snoozeDatePickerApply__button", "snoozeDatePicker__timePickerContainer", "snoozeDatePicker__timePickerLabel", "back__button", "skeletonText", "skeletonAvatar", "skeletonSwitch", "skeletonSwitchThumb", "tabsRoot", "tabsList", "tabsContent", "tabsTrigger", "dots", "root", "bellIcon", "lockIcon", "bellContainer", "bellDot", "preferences__button", "preferencesContainer", "inboxHeader", "loading", "inboxContent", "inbox__popoverTrigger", "inbox__popoverContent", "notificationListContainer", "notificationList", "notificationListEmptyNoticeContainer", "notificationListEmptyNoticeOverlay", "notificationListEmptyNoticeIcon", "notificationListEmptyNotice", "notificationList__skeleton", "notificationList__skeletonContent", "notificationList__skeletonItem", "notificationList__skeletonAvatar", "notificationList__skeletonText", "notificationListNewNotificationsNotice__button", "notification", "notificationContent", "notificationTextContainer", "notificationDot", "notificationSubject", "notificationSubject__strong", "notificationBody", "notificationBody__strong", "notificationBodyContainer", "notificationImage", "notificationImageLoadingFallback", "notificationDate", "notificationDateActionsContainer", "notificationDefaultActions", "notificationCustomActions", "notificationPrimaryAction__button", "notificationSecondaryAction__button", "notificationRead__button", "notificationUnread__button", "notificationArchive__button", "notificationUnarchive__button", "notificationSnooze__button", "notificationUnsnooze__button", "notificationRead__icon", "notificationUnread__icon", "notificationArchive__icon", "notificationUnarchive__icon", "notificationSnooze__icon", "notificationUnsnooze__icon", "notificationsTabs__tabsRoot", "notificationsTabs__tabsList", "notificationsTabs__tabsContent", "notificationsTabs__tabsTrigger", "notificationsTabsTriggerLabel", "notificationsTabsTriggerCount", "inboxStatus__title", "inboxStatus__dropdownTrigger", "inboxStatus__dropdownContent", "inboxStatus__dropdownItem", "inboxStatus__dropdownItemLabel", "inboxStatus__dropdownItemLabelContainer", "inboxStatus__dropdownItemLeft__icon", "inboxStatus__dropdownItemRight__icon", "inboxStatus__dropdownItem__icon", "inboxStatus__dropdownItemCheck__icon", "moreActionsContainer", "moreActions__dropdownTrigger", "moreActions__dropdownContent", "moreActions__dropdownItem", "moreActions__dropdownItemLabel", "moreActions__dropdownItemLeft__icon", "moreActions__dots", "moreTabs__button", "moreTabs__icon", "moreTabs__dropdownTrigger", "moreTabs__dropdownContent", "moreTabs__dropdownItem", "moreTabs__dropdownItemLabel", "moreTabs__dropdownItemRight__icon", "workflowContainer", "workflowLabel", "workflowLabelHeader", "workflowLabelHeaderContainer", "workflowLabelIcon", "workflowLabelContainer", "workflowContainerDisabledNotice", "workflowLabelDisabled__icon", "workflowContainerRight__icon", "workflowArrow__icon", "workflowDescription", "preferencesGroupContainer", "preferencesGroupHeader", "preferencesGroupLabelContainer", "preferencesGroupLabelIcon", "preferencesGroupLabel", "preferencesGroupActionsContainer", "preferencesGroupActionsContainerRight__icon", "preferencesGroupBody", "preferencesGroupChannels", "preferencesGroupInfo", "preferencesGroupInfoIcon", "preferencesGroupWorkflows", "channelContainer", "channelIconContainer", "channel__icon", "channelsContainerCollapsible", "channelsContainer", "channelLabel", "channelLabelContainer", "channelName", "channelSwitchContainer", "channelSwitch", "channelSwitchThumb", "preferencesHeader", "preferencesHeader__back__button", "preferencesHeader__back__button__icon", "preferencesHeader__title", "preferencesHeader__icon", "preferencesListEmptyNoticeContainer", "preferencesListEmptyNotice", "preferencesList__skeleton", "preferencesList__skeletonContent", "preferencesList__skeletonItem", "preferencesList__skeletonIcon", "preferencesList__skeletonSwitch", "preferencesList__skeletonSwitchThumb", "preferencesList__skeletonText", "notificationSnooze__dropdownContent", "notificationSnooze__dropdownItem", "notificationSnooze__dropdownItem__icon", "notificationSnoozeCustomTime_popoverContent", "notificationDeliveredAt__badge", "notificationDeliveredAt__icon", "notificationSnoozedUntil__icon", "strong"];
5
-
6
- declare const defaultLocalization: {
7
- readonly locale: "en-US";
8
- readonly 'inbox.filters.dropdownOptions.unread': "Unread only";
9
- readonly 'inbox.filters.dropdownOptions.default': "Unread & read";
10
- readonly 'inbox.filters.dropdownOptions.archived': "Archived";
11
- readonly 'inbox.filters.dropdownOptions.snoozed': "Snoozed";
12
- readonly 'inbox.filters.labels.unread': "Unread";
13
- readonly 'inbox.filters.labels.default': "Inbox";
14
- readonly 'inbox.filters.labels.archived': "Archived";
15
- readonly 'inbox.filters.labels.snoozed': "Snoozed";
16
- readonly 'notifications.emptyNotice': "Quiet for now. Check back later.";
17
- readonly 'notifications.actions.readAll': "Mark all as read";
18
- readonly 'notifications.actions.archiveAll': "Archive all";
19
- readonly 'notifications.actions.archiveRead': "Archive read";
20
- readonly 'notifications.newNotifications': ({ notificationCount }: {
21
- notificationCount: number;
22
- }) => string;
23
- readonly 'notification.actions.read.tooltip': "Mark as read";
24
- readonly 'notification.actions.unread.tooltip': "Mark as unread";
25
- readonly 'notification.actions.archive.tooltip': "Archive";
26
- readonly 'notification.actions.unarchive.tooltip': "Unarchive";
27
- readonly 'notification.actions.snooze.tooltip': "Snooze";
28
- readonly 'notification.actions.unsnooze.tooltip': "Unsnooze";
29
- readonly 'notification.snoozedUntil': "Snoozed until";
30
- readonly 'preferences.title': "Preferences";
31
- readonly 'preferences.emptyNotice': "No notification specific preferences yet.";
32
- readonly 'preferences.global': "Global Preferences";
33
- readonly 'preferences.workflow.disabled.notice': "Contact admin to enable subscription management for this critical notification.";
34
- readonly 'preferences.workflow.disabled.tooltip': "Contact admin to edit";
35
- readonly 'preferences.group.info': "Applies to all notifications under this group.";
36
- readonly 'snooze.datePicker.timePickerLabel': "Time";
37
- readonly 'snooze.datePicker.apply': "Apply";
38
- readonly 'snooze.datePicker.cancel': "Cancel";
39
- readonly 'snooze.options.anHourFromNow': "An hour from now";
40
- readonly 'snooze.datePicker.pastDateTooltip': "Selected time must be at least 3 minutes in the future";
41
- readonly 'snooze.datePicker.noDateSelectedTooltip': "Please select a date";
42
- readonly 'snooze.datePicker.exceedingLimitTooltip': ({ days }: {
43
- days: number;
44
- }) => string;
45
- readonly 'snooze.options.customTime': "Custom time...";
46
- readonly 'snooze.options.inOneDay': "Tomorrow";
47
- readonly 'snooze.options.inOneWeek': "Next week";
48
- };
49
-
50
- type LocalizationKey = keyof typeof defaultLocalization;
51
- type Localization = {
52
- [K in LocalizationKey]?: (typeof defaultLocalization)[K] extends (...args: infer P) => any ? ((...args: P) => ReturnType<(typeof defaultLocalization)[K]>) | string : string;
53
- } & {
54
- dynamic?: Record<string, string>;
55
- };
56
-
57
- type NotificationClickHandler = (notification: Notification) => void;
58
- type NotificationActionClickHandler = (notification: Notification) => void;
59
- type NotificationRenderer = (el: HTMLDivElement, notification: Notification) => () => void;
60
- type SubjectRenderer = (el: HTMLDivElement, notification: Notification) => () => void;
61
- type BodyRenderer = (el: HTMLDivElement, notification: Notification) => () => void;
62
- type BellRenderer = (el: HTMLDivElement, unreadCount: number) => () => void;
63
- type RouterPush = (path: string) => void;
64
- type Tab = {
65
- label: string;
66
- /**
67
- * @deprecated Use `filter` instead
68
- */
69
- value?: Array<string>;
70
- filter?: Pick<NotificationFilter, 'tags' | 'data'>;
71
- };
72
- type CSSProperties = {
73
- [key: string]: string | number;
74
- };
75
- type ElementStyles = string | CSSProperties;
76
- type Variables = {
77
- colorBackground?: string;
78
- colorForeground?: string;
79
- colorPrimary?: string;
80
- colorPrimaryForeground?: string;
81
- colorSecondary?: string;
82
- colorSecondaryForeground?: string;
83
- colorCounter?: string;
84
- colorCounterForeground?: string;
85
- colorNeutral?: string;
86
- colorShadow?: string;
87
- colorRing?: string;
88
- fontSize?: string;
89
- borderRadius?: string;
90
- colorStripes?: string;
91
- };
92
- type AppearanceKey = (typeof appearanceKeys)[number];
93
- type Elements = Partial<Record<AppearanceKey, ElementStyles>>;
94
- type IconKey = 'bell' | 'clock' | 'arrowDropDown' | 'dots' | 'markAsRead' | 'cogs' | 'trash' | 'markAsArchived' | 'markAsArchivedRead' | 'markAsUnread' | 'markAsUnarchived' | 'unsnooze' | 'arrowRight' | 'arrowLeft' | 'unread' | 'sms' | 'inApp' | 'email' | 'push' | 'chat' | 'check' | 'arrowDown' | 'routeFill' | 'info' | 'nodeTree';
95
- type IconRenderer = (el: HTMLDivElement, props: {
96
- class?: string;
97
- }) => () => void;
98
- type IconOverrides = {
99
- [key in IconKey]?: IconRenderer;
100
- };
101
- type Theme = {
102
- variables?: Variables;
103
- elements?: Elements;
104
- animations?: boolean;
105
- icons?: IconOverrides;
106
- };
107
- type Appearance = Theme & {
108
- baseTheme?: Theme | Theme[];
109
- };
110
- type BaseNovuProviderProps = {
111
- container?: Node | string | null;
112
- appearance?: Appearance;
113
- localization?: Localization;
114
- options: NovuOptions;
115
- tabs?: Array<Tab>;
116
- preferencesFilter?: PreferencesFilter;
117
- preferenceGroups?: PreferenceGroups;
118
- routerPush?: RouterPush;
119
- novu?: Novu;
120
- };
121
- type NovuProviderProps = BaseNovuProviderProps & {
122
- renderNotification?: NotificationRenderer;
123
- renderBell?: BellRenderer;
124
- };
125
- declare enum NotificationStatus {
126
- UNREAD_READ = "unreadRead",
127
- UNREAD = "unread",
128
- ARCHIVED = "archived",
129
- SNOOZED = "snoozed"
130
- }
131
- type PreferencesFilter = Pick<NotificationFilter, 'tags'>;
132
- type PreferenceFilterFunction = (args: {
133
- preferences: Preference[];
134
- }) => Preference[];
135
- type PreferenceGroupFilter = (PreferencesFilter & {
136
- workflowIds?: string[];
137
- }) | PreferenceFilterFunction;
138
- type PreferenceGroups = Array<{
139
- name: string;
140
- filter: PreferenceGroupFilter;
141
- }>;
142
-
143
- export { type Appearance as A, type BellRenderer as B, type ElementStyles as E, type IconKey as I, type Localization as L, type NotificationClickHandler as N, type PreferencesFilter as P, type RouterPush as R, type SubjectRenderer as S, type Tab as T, type Variables as V, type NotificationActionClickHandler as a, type NotificationRenderer as b, type BodyRenderer as c, type NovuProviderProps as d, type BaseNovuProviderProps as e, type PreferenceGroups as f, type AppearanceKey as g, type Elements as h, type IconOverrides as i, type IconRenderer as j, type LocalizationKey as k, NotificationStatus as l, type Theme as m };