feat(notifications): add overlay notifications with position config (#110)

This commit is contained in:
2026-06-10 22:46:52 -07:00
committed by GitHub
parent c09d009a3e
commit 7be1843c41
177 changed files with 7524 additions and 440 deletions
@@ -76,6 +76,22 @@ function collectInteractiveRects(ctx: RendererContext): OverlayContentRect[] {
}
}
if (ctx.dom.overlayNotificationStack?.children.length > 0) {
const notificationRect = toMeasuredRect(
ctx.dom.overlayNotificationStack.getBoundingClientRect(),
);
if (notificationRect && hasArea(notificationRect)) {
rects.push(notificationRect);
}
}
if (ctx.state?.notificationHistoryOpen) {
const historyRect = toMeasuredRect(ctx.dom.overlayNotificationHistory.getBoundingClientRect());
if (historyRect && hasArea(historyRect)) {
rects.push(historyRect);
}
}
return rects;
}