@openfin/web-notifications 2.14.0-alpha-4509 → 2.14.0-alpha-4520

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