mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
* Add new levels of notification * feat: proper support * chore: changeset * fix: remove unrelated change * test: add test * feat: implement new icons * fix: go back to previous layout * fix: custom app number --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
17 lines
337 B
Markdown
17 lines
337 B
Markdown
---
|
|
"astro": minor
|
|
---
|
|
|
|
Adds support for emitting warning and info notifications from dev toolbar apps.
|
|
|
|
When using the `toggle-notification` event, the severity can be specified through `detail.level`:
|
|
|
|
```ts
|
|
eventTarget.dispatchEvent(
|
|
new CustomEvent("toggle-notification", {
|
|
detail: {
|
|
level: "warning",
|
|
},
|
|
})
|
|
);
|
|
```
|