@openfin/web-notifications 2.14.1 → 45.0.0-alpha-4647

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.
@@ -1445,7 +1445,8 @@ type Immutable<T> = {
1445
1445
  };
1446
1446
 
1447
1447
  type NotificationCenterTheme = {
1448
- palette: CustomPaletteSet;
1448
+ palette?: CustomPaletteSet;
1449
+ scheme?: 'light' | 'dark';
1449
1450
  };
1450
1451
  type NotificationCenterStartupOptions = {
1451
1452
  /**
@@ -1486,6 +1487,26 @@ type NotificationCenterInitOptions = NotificationCenterStartupOptions & {
1486
1487
  * The UI is optimized for containers with a width of 345px.
1487
1488
  */
1488
1489
  container: HTMLElement;
1490
+ /**
1491
+ * Optional container element for notification toasts. The toaster custom element
1492
+ * is appended to this container and positioned relative to it. Defaults to
1493
+ * `document.body` with fixed positioning when omitted.
1494
+ * @optional
1495
+ */
1496
+ toastContainer?: HTMLElement;
1497
+ /**
1498
+ * Optional configuration for notification toasts. When provided, created notifications
1499
+ * (with toast !== 'none') are displayed as toasts with the specified options.
1500
+ * @optional
1501
+ */
1502
+ toastOptions?: WebToastOptions;
1503
+ };
1504
+ type WebToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
1505
+ type WebToastOptions = {
1506
+ /** Position of toasts within the toast container. Defaults to 'top-right'. */
1507
+ position?: WebToastPosition;
1508
+ /** Default duration in ms for transient toasts. Sticky toasts ignore this. */
1509
+ duration?: number;
1489
1510
  };
1490
1511
  type CustomPaletteSet = DefaultPaletteSet & {
1491
1512
  functional1?: string;
@@ -1544,4 +1565,4 @@ declare function show(): Promise<void>;
1544
1565
  declare function hide(): Promise<void>;
1545
1566
 
1546
1567
  export { addNotificationCountListener, addVisibilityListener, applySnapshot, getSnapshot, hide, initNotificationCenter, removeNotificationCountListener, removeVisibilityListener, setTheme, show };
1547
- export type { CustomPaletteSet, DefaultPaletteSet, ListenerContext, NotificationCenterInitOptions, NotificationCenterSnapshot, NotificationCenterStartupOptions, NotificationCenterTheme };
1568
+ export type { CustomPaletteSet, DefaultPaletteSet, ListenerContext, NotificationCenterInitOptions, NotificationCenterSnapshot, NotificationCenterStartupOptions, NotificationCenterTheme, WebToastOptions, WebToastPosition };