perf: lazy-load js-yaml (~107KB) as needed (#2551)

- Closes: #2532
This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 3fe5e4004a
commit d833edb65b
18 changed files with 413 additions and 134 deletions
+9 -9
View File
@@ -354,15 +354,15 @@ advanced_camera_card_action: notification
### `notification`
| Parameter | Description |
| ------------- | ---------------------------------------------------------------------------------------------------------- |
| `heading` | An optional heading. Uses the same format as [`metadata`](README.md?id=metadata) below. |
| `body` | An optional body. Uses the same format as [`metadata`](README.md?id=metadata) below. |
| `metadata` | An optional list of metadata to show with the notification. See [`metadata`](README.md?id=metadata) below. |
| `context` | An optional list of preformatted text strings shown as a technical detail block (e.g. YAML). |
| `link` | An optional link displayed below the body. See [`link`](#link) below. |
| `in_progress` | If `true`, shows a loading indicator. |
| `controls` | An optional list of controls. See [`controls`](README.md?id=controls) below. |
| Parameter | Description |
| ------------- | ------------------------------------------------------------------------------------------------------------------- |
| `heading` | An optional heading. Uses the same format as [`metadata`](README.md?id=metadata) below. |
| `body` | An optional body. Uses the same format as [`metadata`](README.md?id=metadata) below. |
| `metadata` | An optional list of metadata to show with the notification. See [`metadata`](README.md?id=metadata) below. |
| `context` | An optional list of items shown as a technical detail block: strings are shown as-is, objects are rendered as YAML. |
| `link` | An optional link displayed below the body. See [`link`](#link) below. |
| `in_progress` | If `true`, shows a loading indicator. |
| `controls` | An optional list of controls. See [`controls`](README.md?id=controls) below. |
### Metadata