@memberjunction/ng-notifications 5.40.2 → 5.41.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.
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.service.d.ts","sourceRoot":"","sources":["../../src/lib/notifications.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAsC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAkB,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzF,OAAO,EAAmB,UAAU,EAAW,MAAM,MAAM,CAAC;;AAG5D;;;GAGG;AACH;;;GAGG;AACH,qBAGa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAyC;IAChF,OAAO,CAAC,MAAM,CAAC,OAAO,CAAkB;IAExC,OAAO,CAAC,SAAS,CAAkC;IACnD,IAAW,QAAQ,IAAI,iBAAiB,CAEvC;IACD,IAAW,QAAQ,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,EAElD;IAED,OAAO,CAAC,MAAM,CAAC,UAAU,CAAuC;IAChE,OAAO,CAAC,SAAS,CAAiB;IAClC,UAAU,sBAAiC;IAE3C;;;;;;OAMG;IACH,gBAAuB,cAAc,EAAE,UAAU,CAAC,wBAAwB,EAAE,CAAC,CAIzE;IAEJ;;;OAGG;IACH,gBAAuB,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,CAInD;IAEJ;;;;;OAKG;IACI,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC;;IAmFtE,iBAAiB,IAAI,UAAU,CAAC,MAAM,CAAC;IAK9C,WAAkB,QAAQ,IAAI,qBAAqB,CAElD;IAED;;;OAGG;IACH,WAAkB,iBAAiB,IAAI,wBAAwB,EAAE,CAEhE;IAED;;OAEG;IACH,WAAkB,uBAAuB,IAAI,wBAAwB,EAAE,CAEtE;IA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ACI,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAkB,EAAE,SAAS,CAAC,EAAE,MAAM;IAIzI;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;OAEG;IACH,OAAO,CAAC,SAAS;IA+DjB;;OAEG;IACH,OAAO,CAAC,UAAU;yCAnVP,qBAAqB;6CAArB,qBAAqB;CAwVjC"}
@@ -110,8 +110,10 @@ export class MJNotificationService {
110
110
  }
111
111
  }
112
112
  else {
113
- // otherwise just post it as a simple notification, except Skip messages, we will let Skip handle those
114
- if (type !== 'askskip' && type !== 'entityobjectstatusmessage' && typeof statusObj.message === 'string') {
113
+ // otherwise just post it as a simple notification, except Skip messages, we will let Skip handle those.
114
+ // 'realtimedelegationprogress' carries a per-step message that the voice session consumes + narrates
115
+ // itself — it must NOT raise a toast (otherwise a live voice call spams a toast per progress step).
116
+ if (type !== 'askskip' && type !== 'entityobjectstatusmessage' && type !== 'realtimedelegationprogress' && typeof statusObj.message === 'string') {
115
117
  this.CreateSimpleNotification(statusObj.message, "success", 2500);
116
118
  }
117
119
  }
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.service.js","sourceRoot":"","sources":["../../src/lib/notifications.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAqB,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,cAAc,EAA4B,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAwC,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE3H,OAAO,EAAE,eAAe,EAAc,OAAO,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;AAElD;;;GAGG;AACH;;;GA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,SAAS,CAAC,CAAC,CAAC,EAAE;8BACrD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAC9C,CAAC,SAAS,CAAC,CAAC,CAAC,6KAA6K,CAAC,CAAC,CAAC,EAAE;KAClM,CAAC;QAEF,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAC/C,QAAQ,EAAE,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACnD,CAAC;QAED,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAE7B,0CAA0C;QAC1C,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,CAAC;YACnD,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAChD,OAAO,CAAC,EAAE,GAAG,oBAAoB,CAAC;YAClC,OAAO,CAAC,WAAW,GAAG;;;OAGrB,CAAC;YACF,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;QAED,IAAI,SAAS,EAAE,CAAC;YACd,UAAU,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAED;;OAEG;IACK,UAAU,CAAC,IAAY;QAC7B,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC1C,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;QACvB,OAAO,GAAG,CAAC,SAAS,CAAC;IACvB,CAAC;+GArVU,qBAAqB;gEAArB,qBAAqB,WAArB,qBAAqB,mBAFpB,MAAM;;iFAEP,qBAAqB;cAHjC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { IMetadataProvider, LogError, Metadata, StartupManager } from '@memberjunction/core';\nimport { UserInfoEngine, MJUserNotificationEntity } from '@memberjunction/core-entities';\nimport { DisplaySimpleNotificationRequestData, MJEventType, MJGlobal, GetGlobalObjectStore } from '@memberjunction/global';\nimport { GraphQLDataProvider } from '@memberjunction/graphql-dataprovider';\nimport { BehaviorSubject, Observable, Subject } from 'rxjs';\nimport { map, shareReplay } from 'rxjs/operators';\n\n/**\n * This injectable service is also available as a singleton MJNotificationService.Instance globally within an Angular application/library process space. It is responsible for displaying notifications to the user and also is able to manage the User Notifications entity\n * in the database.\n */\n/**\n * Multi-provider note: callers under a non-default provider should set\n * `service.Provider = component.ProviderToUse` before invoking any methods.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class MJNotificationService {\n private static readonly _globalStoreKey = '___SINGLETON__MJNotificationService';\n private static _loaded: boolean = false;\n\n private _provider: IMetadataProvider | null = null;\n public get Provider(): IMetadataProvider {\n return this._provider ?? Metadata.Provider;\n }\n public set Provider(value: IMetadataProvider | null) {\n this._provider = value;\n }\n\n private static isLoading$ = new BehaviorSubject<boolean>(false);\n private tabChange = new Subject();\n tabChange$ = this.tabChange.asObservable();\n\n /**\n * Observable stream of the current user's notifications, derived from\n * UserInfoEngine.UserNotifications$. Emits immediately on subscribe (shareReplay\n * buffers the latest value) and re-emits whenever the engine's notifications\n * cache is mutated — by save, delete, remote-invalidate, or refresh. Each\n * emission re-runs the engine's per-user filter+sort.\n */\n public static readonly Notifications$: Observable<MJUserNotificationEntity[]> =\n UserInfoEngine.Instance.UserNotifications$.pipe(\n map(() => UserInfoEngine.Instance.UserNotifications),\n shareReplay({ bufferSize: 1, refCount: false })\n );\n\n /**\n * Observable stream of the current user's unread notification count, derived\n * from Notifications$. Same emission lifecycle as Notifications$.\n */\n public static readonly UnreadCount$: Observable<number> =\n MJNotificationService.Notifications$.pipe(\n map((arr) => arr.filter((n) => n.Unread).length),\n shareReplay({ bufferSize: 1, refCount: false })\n );\n\n /**\n * Optional callback that consuming apps can set to suppress toast notifications\n * for specific events (e.g., when the user is actively viewing the conversation\n * that triggered the notification). Return true to suppress the toast.\n * The notification DB record is still created and the badge count still updates.\n */\n public ShouldSuppressToast?: (statusObj: Record<string, unknown>) => boolean;\n\n constructor() {\n const g = GetGlobalObjectStore()!;\n if (g[MJNotificationService._globalStoreKey]) {\n return g[MJNotificationService._globalStoreKey] as MJNotificationService;\n }\n g[MJNotificationService._globalStoreKey] = this;\n\n MJGlobal.Instance.GetEventListener(true).subscribe( (event) => {\n switch (event.event) {\n case MJEventType.DisplaySimpleNotificationRequest: \n // received the message to display a notification to the user, so do that...\n const messageData: DisplaySimpleNotificationRequestData = <DisplaySimpleNotificationRequestData>event.args;\n this.CreateSimpleNotification(messageData.message,messageData.style, messageData.DisplayDuration);\n break;\n case MJEventType.ComponentEvent:\n if (event.eventCode === \"UserNotificationsUpdated\") {\n // refresh the user notifications\n MJNotificationService.RefreshUserNotifications();\n }\n break;\n case MJEventType.LoggedIn:\n if (MJNotificationService._loaded === false) {\n // Wait for StartupManager to complete before refreshing notifications.\n // UserInfoEngine (which backs RefreshUserNotifications) is @RegisterForStartup\n // and its _metadataConfigs are only populated during Config() which runs\n // as part of StartupManager.Startup(). Calling RefreshItem() before that\n // completes would silently find no config and return nothing.\n StartupManager.Instance.Startup().then(() => {\n MJNotificationService.RefreshUserNotifications();\n });\n }\n\n // Notifications$ / UnreadCount$ are derived from UserInfoEngine.UserNotifications$\n // at static-init time, so they auto-update whenever the engine's cache mutates.\n // No per-login subscription wiring is needed.\n\n // got the login, now subscribe to push status updates here so we can then raise them as events in MJ Global locally\n this.PushStatusUpdates().subscribe( (message: string) => {\n // Handle undefined/null messages gracefully\n if (!message) {\n return;\n }\n\n const statusObj = JSON.parse(message);\n\n // pass along as an event so anyone else who wants to know about the push status update can do stuff\n MJGlobal.Instance.RaiseEvent({\n event: MJEventType.ComponentEvent,\n eventCode: \"PushStatusUpdates\",\n args: statusObj,\n component: this\n })\n\n const type = statusObj.type?.trim().toLowerCase();\n if (type === 'notification' || type === 'usernotifications') {\n // Server sends type:'notification', legacy used 'usernotifications' — support both\n const action = statusObj.action?.trim().toLowerCase()\n || statusObj.details?.action?.trim().toLowerCase();\n if (action === 'create') {\n // Check if the consuming app wants to suppress this toast\n // (e.g., user is actively viewing the conversation that triggered it)\n const suppress = this.ShouldSuppressToast?.(statusObj) ?? false;\n if (!suppress) {\n this.CreateSimpleNotification(statusObj.title || 'New Notification Available', \"success\", 3000);\n }\n // Always refresh the notification list (badge count, unread state)\n MJNotificationService.RefreshUserNotifications();\n }\n }\n else {\n // otherwise just post it as a simple notification, except Skip messages, we will let Skip handle those\n if (type !== 'askskip' && type !== 'entityobjectstatusmessage' && typeof statusObj.message === 'string') {\n this.CreateSimpleNotification(statusObj.message, \"success\", 2500);\n }\n }\n });\n break;\n } \n });\n }\n\n public PushStatusUpdates(): Observable<string> {\n const gp: GraphQLDataProvider = <GraphQLDataProvider><unknown>this.Provider;\n return gp.PushStatusUpdates();\n }\n\n public static get Instance(): MJNotificationService {\n return GetGlobalObjectStore()![MJNotificationService._globalStoreKey] as MJNotificationService;\n }\n \n /**\n * The current user's notifications, delegated to UserInfoEngine which owns the\n * cache. Applies the per-user filter and newest-first sort on each access.\n */\n public static get UserNotifications(): MJUserNotificationEntity[] {\n return UserInfoEngine.Instance.UserNotifications;\n }\n\n /**\n * The current user's unread notifications, delegated to UserInfoEngine.\n */\n public static get UnreadUserNotifications(): MJUserNotificationEntity[] {\n return UserInfoEngine.Instance.UnreadNotifications;\n }\n\n /**\n * The current user's unread notification count, delegated to UserInfoEngine.\n */\n public static get UnreadUserNotificationCount(): number {\n return UserInfoEngine.Instance.UnreadNotificationCount;\n }\n\n /**\n * Instance method to access Notifications$ observable\n */\n public get notifications$(): Observable<MJUserNotificationEntity[]> {\n return MJNotificationService.Notifications$;\n }\n\n /**\n * Instance method to access UnreadCount$ observable\n */\n public get unreadCount$(): Observable<number> {\n return MJNotificationService.UnreadCount$;\n }\n\n\n /**\n * Creates a user notification in the database and refreshes the UI. Returns the notification object.\n * @param title \n * @param message \n * @param resourceTypeId \n * @param resourceRecordId \n * @param resourceConfiguration Any object, it is converted to a string by JSON.stringify and stored in the database\n * @returns \n */\n public async CreateNotification(title: string, message: string, resourceTypeId: string | null, resourceRecordId: string | null, resourceConfiguration: any | null, displayToUser: boolean = true): Promise<MJUserNotificationEntity> {\n const md = this.Provider;\n const notification = <MJUserNotificationEntity>await md.GetEntityObject('MJ: User Notifications');\n notification.Title = title;\n notification.Message = message;\n if (resourceTypeId)\n notification.ResourceTypeID = resourceTypeId;\n if (resourceRecordId)\n notification.ResourceRecordID = resourceRecordId;\n if (resourceConfiguration)\n notification.ResourceConfiguration = JSON.stringify(resourceConfiguration);\n \n notification.UserID = md.CurrentUser.ID;\n notification.Unread = true;\n const result = await notification.Save();\n if (result) {\n MJNotificationService.RefreshUserNotifications();\n }\n\n if (displayToUser)\n this.CreateSimpleNotification(notification.Message, \"success\", 2500);\n\n return notification;\n }\n\n /**\n * Refresh user notifications from the server. Delegates to UserInfoEngine.RefreshItem,\n * whose successful reload mutates the engine's notifications cache and triggers an\n * emission on Notifications$/UnreadCount$ via the BaseEngine observable plumbing —\n * subscribers are updated automatically with no manual re-emit required here.\n *\n * Uses RefreshItem() rather than relying solely on the global CACHE_INVALIDATION\n * listener: when this method is called in response to a PushStatusUpdates message,\n * the cache-invalidation event may not have arrived yet (separate WebSocket message,\n * potential race). RefreshItem() eliminates that race by doing a targeted RunView\n * for just notifications.\n */\n public static async RefreshUserNotifications() {\n try {\n await UserInfoEngine.Instance.RefreshItem('_UserNotifications');\n MJNotificationService._loaded = true;\n }\n catch (e) {\n LogError(e);\n }\n }\n\n /**\n * @deprecated Kept as a no-op for backward compatibility. Observable emissions are now\n * driven by UserInfoEngine.UserNotifications$, which auto-emits on save/delete/\n * remote-invalidate/refresh. External callers no longer need to manually push updates.\n */\n public static UpdateNotificationObservables() {\n // No-op — see JSDoc above.\n }\n\n /**\n * Creates a message that is not saved to the User Notifications table, but is displayed to the user.\n * Uses a lightweight DOM-based toast notification.\n * @param message - text to display\n * @param style - display styling\n * @param hideAfter - option to auto hide after the specified delay in milliseconds\n */\n public CreateSimpleNotification(message: string, style: \"none\" | \"success\" | \"error\" | \"warning\" | \"info\" = \"success\", hideAfter?: number) {\n this.showToast(message, style, hideAfter);\n }\n\n /**\n * Ensures the toast container element exists in the DOM.\n */\n private ensureToastContainer(): HTMLElement {\n let container = document.getElementById('mj-toast-container');\n if (!container) {\n container = document.createElement('div');\n container.id = 'mj-toast-container';\n container.style.cssText = `\n position: fixed; top: 16px; left: 50%; transform: translateX(-50%);\n z-index: 100000; display: flex; flex-direction: column; align-items: center; gap: 8px;\n pointer-events: none;\n `;\n document.body.appendChild(container);\n }\n return container;\n }\n\n /**\n * Shows a lightweight toast notification using DOM elements.\n */\n private showToast(message: string, style: string, hideAfter?: number): void {\n const container = this.ensureToastContainer();\n\n const toast = document.createElement('div');\n toast.style.cssText = `\n pointer-events: auto; padding: 12px 20px; border-radius: 6px; font-size: 14px;\n font-family: inherit; max-width: 500px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);\n display: flex; align-items: center; gap: 8px; animation: mj-toast-slide-in 0.3s ease-out;\n color: var(--mj-text-inverse);\n `;\n\n const bgColors: Record<string, string> = {\n success: 'var(--mj-status-success)',\n error: 'var(--mj-status-error)',\n warning: 'var(--mj-status-warning)',\n info: 'var(--mj-status-info)',\n none: 'var(--mj-text-secondary)'\n };\n toast.style.backgroundColor = bgColors[style] || bgColors['none'];\n\n const iconMap: Record<string, string> = {\n success: '\\u2713',\n error: '\\u2717',\n warning: '\\u26A0',\n info: '\\u2139',\n none: ''\n };\n const icon = iconMap[style] || '';\n\n const removeToast = () => {\n toast.style.animation = 'mj-toast-slide-out 0.3s ease-in forwards';\n toast.addEventListener('animationend', () => toast.remove());\n };\n\n toast.innerHTML = `\n ${icon ? `<span style=\"font-size:16px;font-weight:bold;\">${icon}</span>` : ''}\n <span style=\"flex:1;\">${this.escapeHtml(message)}</span>\n ${!hideAfter ? `<button style=\"background:none;border:none;color:var(--mj-text-inverse);cursor:pointer;font-size:18px;padding:0 0 0 8px;line-height:1;\" aria-label=\"Close\">&times;</button>` : ''}\n `;\n\n if (!hideAfter) {\n const closeBtn = toast.querySelector('button');\n closeBtn?.addEventListener('click', removeToast);\n }\n\n container.appendChild(toast);\n\n // Inject keyframes if not already present\n if (!document.getElementById('mj-toast-keyframes')) {\n const styleEl = document.createElement('style');\n styleEl.id = 'mj-toast-keyframes';\n styleEl.textContent = `\n @keyframes mj-toast-slide-in { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }\n @keyframes mj-toast-slide-out { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-20px); } }\n `;\n document.head.appendChild(styleEl);\n }\n\n if (hideAfter) {\n setTimeout(removeToast, hideAfter);\n }\n }\n\n /**\n * Escapes HTML entities to prevent XSS in toast messages.\n */\n private escapeHtml(text: string): string {\n const div = document.createElement('div');\n div.textContent = text;\n return div.innerHTML;\n }\n}"]}
1
+ {"version":3,"file":"notifications.service.js","sourceRoot":"","sources":["../../src/lib/notifications.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAqB,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,cAAc,EAA4B,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAwC,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE3H,OAAO,EAAE,eAAe,EAAc,OAAO,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;AAElD;;;GAGG;AACH;;;GAGG;AAIH,MAAM,OAAO,qBAAqB;IACxB,MAAM,CAAU,eAAe,GAAG,qCAAqC,CAAC;IACxE,MAAM,CAAC,OAAO,GAAY,KAAK,CAAC;IAEhC,SAAS,GAA6B,IAAI,CAA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SAAS,CAAC,CAAC,CAAC,6KAA6K,CAAC,CAAC,CAAC,EAAE;KAClM,CAAC;QAEF,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAC/C,QAAQ,EAAE,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACnD,CAAC;QAED,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAE7B,0CAA0C;QAC1C,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,CAAC;YACnD,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAChD,OAAO,CAAC,EAAE,GAAG,oBAAoB,CAAC;YAClC,OAAO,CAAC,WAAW,GAAG;;;OAGrB,CAAC;YACF,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;QAED,IAAI,SAAS,EAAE,CAAC;YACd,UAAU,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAED;;OAEG;IACK,UAAU,CAAC,IAAY;QAC7B,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC1C,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;QACvB,OAAO,GAAG,CAAC,SAAS,CAAC;IACvB,CAAC;+GAvVU,qBAAqB;gEAArB,qBAAqB,WAArB,qBAAqB,mBAFpB,MAAM;;iFAEP,qBAAqB;cAHjC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { IMetadataProvider, LogError, Metadata, StartupManager } from '@memberjunction/core';\nimport { UserInfoEngine, MJUserNotificationEntity } from '@memberjunction/core-entities';\nimport { DisplaySimpleNotificationRequestData, MJEventType, MJGlobal, GetGlobalObjectStore } from '@memberjunction/global';\nimport { GraphQLDataProvider } from '@memberjunction/graphql-dataprovider';\nimport { BehaviorSubject, Observable, Subject } from 'rxjs';\nimport { map, shareReplay } from 'rxjs/operators';\n\n/**\n * This injectable service is also available as a singleton MJNotificationService.Instance globally within an Angular application/library process space. It is responsible for displaying notifications to the user and also is able to manage the User Notifications entity\n * in the database.\n */\n/**\n * Multi-provider note: callers under a non-default provider should set\n * `service.Provider = component.ProviderToUse` before invoking any methods.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class MJNotificationService {\n private static readonly _globalStoreKey = '___SINGLETON__MJNotificationService';\n private static _loaded: boolean = false;\n\n private _provider: IMetadataProvider | null = null;\n public get Provider(): IMetadataProvider {\n return this._provider ?? Metadata.Provider;\n }\n public set Provider(value: IMetadataProvider | null) {\n this._provider = value;\n }\n\n private static isLoading$ = new BehaviorSubject<boolean>(false);\n private tabChange = new Subject();\n tabChange$ = this.tabChange.asObservable();\n\n /**\n * Observable stream of the current user's notifications, derived from\n * UserInfoEngine.UserNotifications$. Emits immediately on subscribe (shareReplay\n * buffers the latest value) and re-emits whenever the engine's notifications\n * cache is mutated — by save, delete, remote-invalidate, or refresh. Each\n * emission re-runs the engine's per-user filter+sort.\n */\n public static readonly Notifications$: Observable<MJUserNotificationEntity[]> =\n UserInfoEngine.Instance.UserNotifications$.pipe(\n map(() => UserInfoEngine.Instance.UserNotifications),\n shareReplay({ bufferSize: 1, refCount: false })\n );\n\n /**\n * Observable stream of the current user's unread notification count, derived\n * from Notifications$. Same emission lifecycle as Notifications$.\n */\n public static readonly UnreadCount$: Observable<number> =\n MJNotificationService.Notifications$.pipe(\n map((arr) => arr.filter((n) => n.Unread).length),\n shareReplay({ bufferSize: 1, refCount: false })\n );\n\n /**\n * Optional callback that consuming apps can set to suppress toast notifications\n * for specific events (e.g., when the user is actively viewing the conversation\n * that triggered the notification). Return true to suppress the toast.\n * The notification DB record is still created and the badge count still updates.\n */\n public ShouldSuppressToast?: (statusObj: Record<string, unknown>) => boolean;\n\n constructor() {\n const g = GetGlobalObjectStore()!;\n if (g[MJNotificationService._globalStoreKey]) {\n return g[MJNotificationService._globalStoreKey] as MJNotificationService;\n }\n g[MJNotificationService._globalStoreKey] = this;\n\n MJGlobal.Instance.GetEventListener(true).subscribe( (event) => {\n switch (event.event) {\n case MJEventType.DisplaySimpleNotificationRequest: \n // received the message to display a notification to the user, so do that...\n const messageData: DisplaySimpleNotificationRequestData = <DisplaySimpleNotificationRequestData>event.args;\n this.CreateSimpleNotification(messageData.message,messageData.style, messageData.DisplayDuration);\n break;\n case MJEventType.ComponentEvent:\n if (event.eventCode === \"UserNotificationsUpdated\") {\n // refresh the user notifications\n MJNotificationService.RefreshUserNotifications();\n }\n break;\n case MJEventType.LoggedIn:\n if (MJNotificationService._loaded === false) {\n // Wait for StartupManager to complete before refreshing notifications.\n // UserInfoEngine (which backs RefreshUserNotifications) is @RegisterForStartup\n // and its _metadataConfigs are only populated during Config() which runs\n // as part of StartupManager.Startup(). Calling RefreshItem() before that\n // completes would silently find no config and return nothing.\n StartupManager.Instance.Startup().then(() => {\n MJNotificationService.RefreshUserNotifications();\n });\n }\n\n // Notifications$ / UnreadCount$ are derived from UserInfoEngine.UserNotifications$\n // at static-init time, so they auto-update whenever the engine's cache mutates.\n // No per-login subscription wiring is needed.\n\n // got the login, now subscribe to push status updates here so we can then raise them as events in MJ Global locally\n this.PushStatusUpdates().subscribe( (message: string) => {\n // Handle undefined/null messages gracefully\n if (!message) {\n return;\n }\n\n const statusObj = JSON.parse(message);\n\n // pass along as an event so anyone else who wants to know about the push status update can do stuff\n MJGlobal.Instance.RaiseEvent({\n event: MJEventType.ComponentEvent,\n eventCode: \"PushStatusUpdates\",\n args: statusObj,\n component: this\n })\n\n const type = statusObj.type?.trim().toLowerCase();\n if (type === 'notification' || type === 'usernotifications') {\n // Server sends type:'notification', legacy used 'usernotifications' — support both\n const action = statusObj.action?.trim().toLowerCase()\n || statusObj.details?.action?.trim().toLowerCase();\n if (action === 'create') {\n // Check if the consuming app wants to suppress this toast\n // (e.g., user is actively viewing the conversation that triggered it)\n const suppress = this.ShouldSuppressToast?.(statusObj) ?? false;\n if (!suppress) {\n this.CreateSimpleNotification(statusObj.title || 'New Notification Available', \"success\", 3000);\n }\n // Always refresh the notification list (badge count, unread state)\n MJNotificationService.RefreshUserNotifications();\n }\n }\n else {\n // otherwise just post it as a simple notification, except Skip messages, we will let Skip handle those.\n // 'realtimedelegationprogress' carries a per-step message that the voice session consumes + narrates\n // itself — it must NOT raise a toast (otherwise a live voice call spams a toast per progress step).\n if (type !== 'askskip' && type !== 'entityobjectstatusmessage' && type !== 'realtimedelegationprogress' && typeof statusObj.message === 'string') {\n this.CreateSimpleNotification(statusObj.message, \"success\", 2500);\n }\n }\n });\n break;\n } \n });\n }\n\n public PushStatusUpdates(): Observable<string> {\n const gp: GraphQLDataProvider = <GraphQLDataProvider><unknown>this.Provider;\n return gp.PushStatusUpdates();\n }\n\n public static get Instance(): MJNotificationService {\n return GetGlobalObjectStore()![MJNotificationService._globalStoreKey] as MJNotificationService;\n }\n \n /**\n * The current user's notifications, delegated to UserInfoEngine which owns the\n * cache. Applies the per-user filter and newest-first sort on each access.\n */\n public static get UserNotifications(): MJUserNotificationEntity[] {\n return UserInfoEngine.Instance.UserNotifications;\n }\n\n /**\n * The current user's unread notifications, delegated to UserInfoEngine.\n */\n public static get UnreadUserNotifications(): MJUserNotificationEntity[] {\n return UserInfoEngine.Instance.UnreadNotifications;\n }\n\n /**\n * The current user's unread notification count, delegated to UserInfoEngine.\n */\n public static get UnreadUserNotificationCount(): number {\n return UserInfoEngine.Instance.UnreadNotificationCount;\n }\n\n /**\n * Instance method to access Notifications$ observable\n */\n public get notifications$(): Observable<MJUserNotificationEntity[]> {\n return MJNotificationService.Notifications$;\n }\n\n /**\n * Instance method to access UnreadCount$ observable\n */\n public get unreadCount$(): Observable<number> {\n return MJNotificationService.UnreadCount$;\n }\n\n\n /**\n * Creates a user notification in the database and refreshes the UI. Returns the notification object.\n * @param title \n * @param message \n * @param resourceTypeId \n * @param resourceRecordId \n * @param resourceConfiguration Any object, it is converted to a string by JSON.stringify and stored in the database\n * @returns \n */\n public async CreateNotification(title: string, message: string, resourceTypeId: string | null, resourceRecordId: string | null, resourceConfiguration: any | null, displayToUser: boolean = true): Promise<MJUserNotificationEntity> {\n const md = this.Provider;\n const notification = <MJUserNotificationEntity>await md.GetEntityObject('MJ: User Notifications');\n notification.Title = title;\n notification.Message = message;\n if (resourceTypeId)\n notification.ResourceTypeID = resourceTypeId;\n if (resourceRecordId)\n notification.ResourceRecordID = resourceRecordId;\n if (resourceConfiguration)\n notification.ResourceConfiguration = JSON.stringify(resourceConfiguration);\n \n notification.UserID = md.CurrentUser.ID;\n notification.Unread = true;\n const result = await notification.Save();\n if (result) {\n MJNotificationService.RefreshUserNotifications();\n }\n\n if (displayToUser)\n this.CreateSimpleNotification(notification.Message, \"success\", 2500);\n\n return notification;\n }\n\n /**\n * Refresh user notifications from the server. Delegates to UserInfoEngine.RefreshItem,\n * whose successful reload mutates the engine's notifications cache and triggers an\n * emission on Notifications$/UnreadCount$ via the BaseEngine observable plumbing —\n * subscribers are updated automatically with no manual re-emit required here.\n *\n * Uses RefreshItem() rather than relying solely on the global CACHE_INVALIDATION\n * listener: when this method is called in response to a PushStatusUpdates message,\n * the cache-invalidation event may not have arrived yet (separate WebSocket message,\n * potential race). RefreshItem() eliminates that race by doing a targeted RunView\n * for just notifications.\n */\n public static async RefreshUserNotifications() {\n try {\n await UserInfoEngine.Instance.RefreshItem('_UserNotifications');\n MJNotificationService._loaded = true;\n }\n catch (e) {\n LogError(e);\n }\n }\n\n /**\n * @deprecated Kept as a no-op for backward compatibility. Observable emissions are now\n * driven by UserInfoEngine.UserNotifications$, which auto-emits on save/delete/\n * remote-invalidate/refresh. External callers no longer need to manually push updates.\n */\n public static UpdateNotificationObservables() {\n // No-op — see JSDoc above.\n }\n\n /**\n * Creates a message that is not saved to the User Notifications table, but is displayed to the user.\n * Uses a lightweight DOM-based toast notification.\n * @param message - text to display\n * @param style - display styling\n * @param hideAfter - option to auto hide after the specified delay in milliseconds\n */\n public CreateSimpleNotification(message: string, style: \"none\" | \"success\" | \"error\" | \"warning\" | \"info\" = \"success\", hideAfter?: number) {\n this.showToast(message, style, hideAfter);\n }\n\n /**\n * Ensures the toast container element exists in the DOM.\n */\n private ensureToastContainer(): HTMLElement {\n let container = document.getElementById('mj-toast-container');\n if (!container) {\n container = document.createElement('div');\n container.id = 'mj-toast-container';\n container.style.cssText = `\n position: fixed; top: 16px; left: 50%; transform: translateX(-50%);\n z-index: 100000; display: flex; flex-direction: column; align-items: center; gap: 8px;\n pointer-events: none;\n `;\n document.body.appendChild(container);\n }\n return container;\n }\n\n /**\n * Shows a lightweight toast notification using DOM elements.\n */\n private showToast(message: string, style: string, hideAfter?: number): void {\n const container = this.ensureToastContainer();\n\n const toast = document.createElement('div');\n toast.style.cssText = `\n pointer-events: auto; padding: 12px 20px; border-radius: 6px; font-size: 14px;\n font-family: inherit; max-width: 500px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);\n display: flex; align-items: center; gap: 8px; animation: mj-toast-slide-in 0.3s ease-out;\n color: var(--mj-text-inverse);\n `;\n\n const bgColors: Record<string, string> = {\n success: 'var(--mj-status-success)',\n error: 'var(--mj-status-error)',\n warning: 'var(--mj-status-warning)',\n info: 'var(--mj-status-info)',\n none: 'var(--mj-text-secondary)'\n };\n toast.style.backgroundColor = bgColors[style] || bgColors['none'];\n\n const iconMap: Record<string, string> = {\n success: '\\u2713',\n error: '\\u2717',\n warning: '\\u26A0',\n info: '\\u2139',\n none: ''\n };\n const icon = iconMap[style] || '';\n\n const removeToast = () => {\n toast.style.animation = 'mj-toast-slide-out 0.3s ease-in forwards';\n toast.addEventListener('animationend', () => toast.remove());\n };\n\n toast.innerHTML = `\n ${icon ? `<span style=\"font-size:16px;font-weight:bold;\">${icon}</span>` : ''}\n <span style=\"flex:1;\">${this.escapeHtml(message)}</span>\n ${!hideAfter ? `<button style=\"background:none;border:none;color:var(--mj-text-inverse);cursor:pointer;font-size:18px;padding:0 0 0 8px;line-height:1;\" aria-label=\"Close\">&times;</button>` : ''}\n `;\n\n if (!hideAfter) {\n const closeBtn = toast.querySelector('button');\n closeBtn?.addEventListener('click', removeToast);\n }\n\n container.appendChild(toast);\n\n // Inject keyframes if not already present\n if (!document.getElementById('mj-toast-keyframes')) {\n const styleEl = document.createElement('style');\n styleEl.id = 'mj-toast-keyframes';\n styleEl.textContent = `\n @keyframes mj-toast-slide-in { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }\n @keyframes mj-toast-slide-out { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-20px); } }\n `;\n document.head.appendChild(styleEl);\n }\n\n if (hideAfter) {\n setTimeout(removeToast, hideAfter);\n }\n }\n\n /**\n * Escapes HTML entities to prevent XSS in toast messages.\n */\n private escapeHtml(text: string): string {\n const div = document.createElement('div');\n div.textContent = text;\n return div.innerHTML;\n }\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-notifications",
3
- "version": "5.40.2",
3
+ "version": "5.41.0",
4
4
  "description": "MemberJunction: Simple Angular library for displaying user notifications",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -8,7 +8,7 @@
8
8
  "/dist"
9
9
  ],
10
10
  "scripts": {
11
- "test": "echo \"No tests configured yet\"",
11
+ "test": "vitest run",
12
12
  "build": "ngc",
13
13
  "test:watch": "vitest"
14
14
  },
@@ -25,11 +25,11 @@
25
25
  "@angular/core": "21.1.3"
26
26
  },
27
27
  "dependencies": {
28
- "@memberjunction/core": "5.40.2",
29
- "@memberjunction/ng-base-types": "5.40.2",
30
- "@memberjunction/core-entities": "5.40.2",
31
- "@memberjunction/global": "5.40.2",
32
- "@memberjunction/graphql-dataprovider": "5.40.2",
28
+ "@memberjunction/core": "5.41.0",
29
+ "@memberjunction/ng-base-types": "5.41.0",
30
+ "@memberjunction/core-entities": "5.41.0",
31
+ "@memberjunction/global": "5.41.0",
32
+ "@memberjunction/graphql-dataprovider": "5.41.0",
33
33
  "tslib": "^2.8.1",
34
34
  "rxjs": "^7.8.2"
35
35
  },