brows3r — TypeScript API
    Preparing search index...

    Function dispatch

    • Fan-out helper: given a notification payload and a presentation policy placement, push to the appropriate surfaces.

      • Always pushes to the Zustand notifications store (panel) unless placement is "silent" or "inline".
      • Conditionally pushes to the toast bus when placement contains +toast.

      The store import is lazy (dynamic) to avoid a circular dependency between errors.ts and store/notifications.ts. Call sites that already imported the store can also push directly.

      OCP: adding a fourth surface (e.g. status bar) = one new branch here + one new component. No other callers change.

      Parameters

      • notification: {
            category: "userInitiated" | "background";
            details: unknown;
            id: string;
            message: string;
            operation: string | null;
            resource: string | null;
            severity: "info" | "warning" | "error" | "success";
            timestamp: number;
            title: string;
        }
      • placement: "silent" | "panel" | "panel+toast" | "panel+inline" | "inline"

      Returns Promise<void>