@novu/js 3.0.0-canary.2 → 3.0.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.
@@ -84,7 +84,7 @@ var isSameFilter = (filter1, filter2) => {
84
84
  // src/api/http-client.ts
85
85
  var DEFAULT_API_VERSION = "v1";
86
86
  var DEFAULT_BACKEND_URL = "https://api.novu.co";
87
- var DEFAULT_USER_AGENT = `${"@novu/js"}@${"3.0.0-canary.2"}`;
87
+ var DEFAULT_USER_AGENT = `${"@novu/js"}@${"3.0.1"}`;
88
88
  var HttpClient = class {
89
89
  constructor(options = {}) {
90
90
  const {
@@ -1515,6 +1515,12 @@ var Session = class {
1515
1515
  __privateSet(this, _inboxService2, inboxServiceInstance);
1516
1516
  __privateSet(this, _options, options);
1517
1517
  }
1518
+ get applicationIdentifier() {
1519
+ return __privateGet(this, _options).applicationIdentifier;
1520
+ }
1521
+ get subscriberId() {
1522
+ return __privateGet(this, _options).subscriberId;
1523
+ }
1518
1524
  initialize() {
1519
1525
  return __async(this, null, function* () {
1520
1526
  try {
@@ -1768,6 +1774,12 @@ var Novu = class {
1768
1774
  __privateGet(this, _emitter7).off(eventName, listener);
1769
1775
  };
1770
1776
  }
1777
+ get applicationIdentifier() {
1778
+ return __privateGet(this, _session).applicationIdentifier;
1779
+ }
1780
+ get subscriberId() {
1781
+ return __privateGet(this, _session).subscriberId;
1782
+ }
1771
1783
  };
1772
1784
  _emitter7 = new WeakMap();
1773
1785
  _session = new WeakMap();
@@ -1,5 +1,5 @@
1
- import { N as NotificationFilter } from './novu-C2hAbM3b.mjs';
2
- export { k as Action, A as ActionTypeEnum, m as ChannelPreference, f as ChannelType, C as CtaType, E as EventHandler, a as Events, F as FiltersCountResponse, q as IPreferenceOverride, I as InboxNotification, L as ListNotificationsResponse, i as MessageAction, M as MessageButton, u as Notification, e as NotificationActionStatus, d as NotificationButton, c as NotificationStatus, b as Novu, w as NovuError, s as NovuOptions, n as PaginatedResponse, v as Preference, P as PreferenceLevel, g as PreferenceOverrideSource, p as PreferenceOverrideSourceEnum, o as PreferencesResponse, t as Prettify, R as Redirect, r as Result, h as Session, S as SocketEventNames, j as Subscriber, T as TODO, W as WebSocketEvent, l as Workflow } from './novu-C2hAbM3b.mjs';
1
+ import { N as NotificationFilter } from './novu-CalZFixf.mjs';
2
+ export { k as Action, A as ActionTypeEnum, m as ChannelPreference, f as ChannelType, C as CtaType, E as EventHandler, a as Events, F as FiltersCountResponse, q as IPreferenceOverride, I as InboxNotification, L as ListNotificationsResponse, i as MessageAction, M as MessageButton, u as Notification, e as NotificationActionStatus, d as NotificationButton, c as NotificationStatus, b as Novu, w as NovuError, s as NovuOptions, n as PaginatedResponse, v as Preference, P as PreferenceLevel, g as PreferenceOverrideSource, p as PreferenceOverrideSourceEnum, o as PreferencesResponse, t as Prettify, R as Redirect, r as Result, h as Session, S as SocketEventNames, j as Subscriber, T as TODO, W as WebSocketEvent, l as Workflow } from './novu-CalZFixf.mjs';
3
3
 
4
4
  declare const areTagsEqual: (tags1?: string[], tags2?: string[]) => boolean;
5
5
  declare const isSameFilter: (filter1: NotificationFilter, filter2: NotificationFilter) => boolean;
@@ -1,2 +1,2 @@
1
- export { ActionTypeEnum, ChannelType, CtaType, NotificationActionStatus, NotificationButton, NotificationStatus, Novu, PreferenceLevel, PreferenceOverrideSource, PreferenceOverrideSourceEnum, WebSocketEvent, areTagsEqual, isSameFilter } from './chunk-54BVY6WN.mjs';
1
+ export { ActionTypeEnum, ChannelType, CtaType, NotificationActionStatus, NotificationButton, NotificationStatus, Novu, PreferenceLevel, PreferenceOverrideSource, PreferenceOverrideSourceEnum, WebSocketEvent, areTagsEqual, isSameFilter } from './chunk-MT6EQHGN.mjs';
2
2
  import './chunk-STZMOEWR.mjs';
@@ -96,6 +96,7 @@ type Session = {
96
96
  token: string;
97
97
  totalUnreadCount: number;
98
98
  removeNovuBranding: boolean;
99
+ isDevelopmentMode: boolean;
99
100
  };
100
101
  type MessageButton = {
101
102
  type: NotificationButton;
@@ -564,6 +565,8 @@ declare class Novu implements Pick<NovuEventEmitter, 'on'> {
564
565
  * Use the cleanup function returned by the "on" method instead.
565
566
  */
566
567
  off: <Key extends EventNames>(eventName: Key, listener: EventHandler<Events[Key]>) => void;
568
+ get applicationIdentifier(): string;
569
+ get subscriberId(): string;
567
570
  constructor(options: NovuOptions);
568
571
  }
569
572
 
@@ -1,5 +1,5 @@
1
- import { h as Theme } from '../types-Bi5NkU2g.mjs';
2
- import '../novu-C2hAbM3b.mjs';
1
+ import { h as Theme } from '../types-DC-kqier.mjs';
2
+ import '../novu-CalZFixf.mjs';
3
3
 
4
4
  declare const dark: Theme;
5
5
 
@@ -9,7 +9,8 @@ var dark = {
9
9
  colorSecondary: "#383838",
10
10
  colorSecondaryForeground: "#EDEDEF",
11
11
  colorShadow: "black",
12
- colorRing: "#E1E4EA"
12
+ colorRing: "#E1E4EA",
13
+ colorStripes: "#FF8447"
13
14
  }
14
15
  };
15
16
 
@@ -1,4 +1,4 @@
1
- import { u as Notification, N as NotificationFilter, s as NovuOptions, b as Novu } from './novu-C2hAbM3b.js';
1
+ import { u as Notification, N as NotificationFilter, s as NovuOptions, b as Novu } from './novu-CalZFixf.mjs';
2
2
 
3
3
  declare const appearanceKeys: readonly ["button", "icon", "popoverContent", "popoverTrigger", "dropdownContent", "dropdownTrigger", "dropdownItem", "dropdownItemLabel", "dropdownItemLabelContainer", "dropdownItemLeft__icon", "dropdownItemRight__icon", "dropdownItem__icon", "collapsible", "tooltipContent", "tooltipTrigger", "back__button", "skeletonText", "skeletonAvatar", "skeletonSwitch", "skeletonSwitchThumb", "tabsRoot", "tabsList", "tabsContent", "tabsTrigger", "dots", "root", "bellIcon", "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", "notificationRead__icon", "notificationUnread__icon", "notificationArchive__icon", "notificationUnarchive__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", "workflowLabelContainer", "workflowContainerDisabledNotice", "workflowLabelDisabled__icon", "workflowContainerRight__icon", "workflowArrow__icon", "workflowDescription", "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", "strong"];
4
4
 
@@ -68,6 +68,7 @@ type Variables = {
68
68
  colorRing?: string;
69
69
  fontSize?: string;
70
70
  borderRadius?: string;
71
+ colorStripes?: string;
71
72
  };
72
73
  type AppearanceKey = (typeof appearanceKeys)[number];
73
74
  type Elements = Partial<Record<AppearanceKey, ElementStyles>>;
@@ -1,7 +1,7 @@
1
- import { s as NovuOptions } from '../novu-C2hAbM3b.mjs';
2
- export { u as Notification } from '../novu-C2hAbM3b.mjs';
3
- import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, S as SubjectRenderer, c as BodyRenderer, d as NovuProviderProps, e as BaseNovuProviderProps, A as Appearance, L as Localization, T as Tab, P as PreferencesFilter, R as RouterPush } from '../types-Bi5NkU2g.mjs';
4
- export { f as AppearanceKey, C as CSSProperties, E as ElementStyles, g as Elements, j as LocalizationKey, i as NotificationStatus, h as Theme, V as Variables } from '../types-Bi5NkU2g.mjs';
1
+ import { s as NovuOptions } from '../novu-CalZFixf.mjs';
2
+ export { u as Notification } from '../novu-CalZFixf.mjs';
3
+ import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, S as SubjectRenderer, c as BodyRenderer, d as NovuProviderProps, e as BaseNovuProviderProps, A as Appearance, L as Localization, T as Tab, P as PreferencesFilter, R as RouterPush } from '../types-DC-kqier.mjs';
4
+ export { f as AppearanceKey, C as CSSProperties, E as ElementStyles, g as Elements, j as LocalizationKey, i as NotificationStatus, h as Theme, V as Variables } from '../types-DC-kqier.mjs';
5
5
  import { Placement, OffsetOptions } from '@floating-ui/dom';
6
6
  import * as solid_js from 'solid-js';
7
7
  import { ComponentProps } from 'solid-js';