@adia-ai/web-components 0.4.7 → 0.4.9
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.
- package/README.md +39 -0
- package/USAGE.md +255 -2
- package/components/accordion/accordion.a2ui.json +3 -0
- package/components/accordion/accordion.d.ts +12 -2
- package/components/accordion/accordion.yaml +4 -0
- package/components/action-list/action-list.a2ui.json +18 -1
- package/components/action-list/action-list.d.ts +21 -2
- package/components/action-list/action-list.yaml +14 -0
- package/components/agent-artifact/agent-artifact.a2ui.json +11 -1
- package/components/agent-artifact/agent-artifact.d.ts +17 -2
- package/components/agent-artifact/agent-artifact.yaml +9 -0
- package/components/agent-feedback-bar/agent-feedback-bar.a2ui.json +10 -1
- package/components/agent-feedback-bar/agent-feedback-bar.d.ts +19 -2
- package/components/agent-feedback-bar/agent-feedback-bar.yaml +8 -0
- package/components/agent-questions/agent-questions.a2ui.json +14 -1
- package/components/agent-questions/agent-questions.d.ts +19 -2
- package/components/agent-questions/agent-questions.yaml +11 -0
- package/components/agent-reasoning/agent-reasoning.a2ui.json +29 -3
- package/components/agent-reasoning/agent-reasoning.d.ts +33 -2
- package/components/agent-reasoning/agent-reasoning.yaml +20 -0
- package/components/agent-suggestions/agent-suggestions.a2ui.json +18 -1
- package/components/agent-suggestions/agent-suggestions.d.ts +21 -2
- package/components/agent-suggestions/agent-suggestions.yaml +14 -0
- package/components/agent-trace/agent-trace.a2ui.json +8 -1
- package/components/agent-trace/agent-trace.d.ts +17 -2
- package/components/agent-trace/agent-trace.yaml +4 -0
- package/components/alert/alert.a2ui.json +1 -0
- package/components/alert/alert.d.ts +12 -2
- package/components/aside/aside.a2ui.json +1 -0
- package/components/avatar/avatar.a2ui.json +3 -0
- package/components/avatar/avatar.d.ts +3 -2
- package/components/avatar/avatar.yaml +4 -0
- package/components/badge/badge.a2ui.json +3 -0
- package/components/badge/badge.d.ts +3 -2
- package/components/badge/badge.yaml +4 -0
- package/components/block/block.a2ui.json +1 -0
- package/components/block/block.d.ts +3 -2
- package/components/breadcrumb/breadcrumb.a2ui.json +5 -0
- package/components/breadcrumb/breadcrumb.d.ts +3 -2
- package/components/breadcrumb/breadcrumb.yaml +6 -0
- package/components/button/button.a2ui.json +3 -0
- package/components/button/button.d.ts +12 -2
- package/components/button/button.yaml +5 -0
- package/components/calendar-picker/calendar-picker.a2ui.json +1 -0
- package/components/canvas/canvas.a2ui.json +1 -0
- package/components/canvas/canvas.d.ts +18 -2
- package/components/canvas/canvas.yaml +12 -0
- package/components/card/card.a2ui.json +1 -0
- package/components/card/card.d.ts +12 -2
- package/components/chart/chart.a2ui.json +4 -0
- package/components/chart/chart.d.ts +18 -2
- package/components/chart/chart.yaml +5 -0
- package/components/chart-legend/chart-legend.a2ui.json +19 -1
- package/components/chart-legend/chart-legend.d.ts +21 -2
- package/components/chart-legend/chart-legend.yaml +15 -0
- package/components/chat-thread/chat-thread.a2ui.json +12 -1
- package/components/chat-thread/chat-thread.d.ts +19 -2
- package/components/chat-thread/chat-thread.yaml +7 -0
- package/components/check/check.a2ui.json +1 -0
- package/components/code/code.a2ui.json +37 -7
- package/components/code/code.d.ts +30 -0
- package/components/code/code.yaml +29 -6
- package/components/col/col.a2ui.json +1 -0
- package/components/col/col.d.ts +3 -2
- package/components/color-picker/class.js +59 -1
- package/components/color-picker/color-picker.a2ui.json +37 -0
- package/components/color-picker/color-picker.d.ts +70 -8
- package/components/color-picker/color-picker.yaml +53 -0
- package/components/command/command.a2ui.json +12 -1
- package/components/command/command.d.ts +21 -2
- package/components/command/command.yaml +7 -0
- package/components/demo-toggle/demo-toggle.a2ui.json +8 -1
- package/components/demo-toggle/demo-toggle.d.ts +17 -2
- package/components/demo-toggle/demo-toggle.yaml +4 -0
- package/components/description-list/description-list.a2ui.json +1 -0
- package/components/description-list/description-list.d.ts +3 -2
- package/components/divider/divider.a2ui.json +1 -0
- package/components/divider/divider.d.ts +3 -2
- package/components/drawer/drawer.a2ui.json +1 -0
- package/components/drawer/drawer.d.ts +12 -2
- package/components/embed/embed.a2ui.json +1 -0
- package/components/embed/embed.d.ts +3 -2
- package/components/empty-state/empty-state.a2ui.json +3 -0
- package/components/empty-state/empty-state.d.ts +3 -2
- package/components/empty-state/empty-state.yaml +4 -0
- package/components/feed/feed.a2ui.json +9 -1
- package/components/feed/feed.d.ts +12 -2
- package/components/feed/feed.yaml +8 -1
- package/components/field/field.a2ui.json +1 -0
- package/components/field/field.d.ts +3 -2
- package/components/fields/fields.a2ui.json +1 -0
- package/components/fields/fields.d.ts +3 -2
- package/components/footer/footer.a2ui.json +1 -0
- package/components/grid/grid.a2ui.json +1 -0
- package/components/grid/grid.d.ts +3 -2
- package/components/header/header.a2ui.json +1 -0
- package/components/heatmap/heatmap.a2ui.json +12 -2
- package/components/heatmap/heatmap.d.ts +20 -2
- package/components/heatmap/heatmap.yaml +17 -2
- package/components/icon/icon.a2ui.json +1 -0
- package/components/icon/icon.d.ts +3 -2
- package/components/image/image.a2ui.json +3 -0
- package/components/image/image.d.ts +3 -2
- package/components/image/image.yaml +4 -0
- package/components/index.js +8 -0
- package/components/input/input.a2ui.json +4 -0
- package/components/input/input.yaml +6 -0
- package/components/inspector/inspector.a2ui.json +5 -0
- package/components/inspector/inspector.d.ts +3 -2
- package/components/inspector/inspector.yaml +6 -0
- package/components/kbd/kbd.a2ui.json +1 -0
- package/components/kbd/kbd.d.ts +3 -2
- package/components/link/link.a2ui.json +12 -1
- package/components/link/link.d.ts +19 -2
- package/components/link/link.yaml +7 -0
- package/components/list/list.a2ui.json +14 -1
- package/components/list/list.d.ts +19 -2
- package/components/list/list.yaml +11 -0
- package/components/menu/menu.a2ui.json +14 -1
- package/components/menu/menu.d.ts +19 -2
- package/components/menu/menu.yaml +11 -0
- package/components/modal/modal.a2ui.json +1 -0
- package/components/modal/modal.d.ts +12 -2
- package/components/nav/nav.a2ui.json +16 -1
- package/components/nav/nav.d.ts +21 -2
- package/components/nav/nav.yaml +10 -0
- package/components/nav-group/nav-group.a2ui.json +12 -1
- package/components/nav-group/nav-group.d.ts +19 -2
- package/components/nav-group/nav-group.yaml +7 -0
- package/components/nav-item/nav-item.a2ui.json +16 -1
- package/components/nav-item/nav-item.d.ts +21 -2
- package/components/nav-item/nav-item.yaml +10 -0
- package/components/noodles/noodles.a2ui.json +47 -2
- package/components/noodles/noodles.d.ts +42 -2
- package/components/noodles/noodles.yaml +32 -0
- package/components/option-card/option-card.a2ui.json +3 -0
- package/components/option-card/option-card.yaml +4 -0
- package/components/otp-input/otp-input.a2ui.json +15 -2
- package/components/otp-input/otp-input.d.ts +11 -0
- package/components/otp-input/otp-input.yaml +10 -2
- package/components/page/page.a2ui.json +1 -0
- package/components/page/page.d.ts +3 -2
- package/components/pagination/pagination.a2ui.json +8 -1
- package/components/pagination/pagination.d.ts +17 -2
- package/components/pagination/pagination.yaml +4 -0
- package/components/pane/pane.a2ui.json +8 -1
- package/components/pane/pane.d.ts +12 -2
- package/components/pane/pane.yaml +7 -1
- package/components/pipeline-status/pipeline-status.a2ui.json +1 -0
- package/components/pipeline-status/pipeline-status.d.ts +3 -2
- package/components/popover/popover.a2ui.json +1 -0
- package/components/popover/popover.d.ts +3 -2
- package/components/progress/progress.a2ui.json +1 -0
- package/components/progress/progress.d.ts +3 -2
- package/components/progress-row/progress-row.a2ui.json +3 -0
- package/components/progress-row/progress-row.d.ts +3 -2
- package/components/progress-row/progress-row.yaml +4 -0
- package/components/radio/radio.a2ui.json +1 -0
- package/components/range/range.a2ui.json +1 -0
- package/components/rating/rating.a2ui.json +1 -0
- package/components/richtext/richtext.a2ui.json +1 -0
- package/components/richtext/richtext.d.ts +3 -2
- package/components/row/row.a2ui.json +1 -0
- package/components/row/row.d.ts +12 -2
- package/components/search/search.a2ui.json +1 -0
- package/components/section/section.a2ui.json +1 -0
- package/components/segment/segment.a2ui.json +3 -0
- package/components/segment/segment.d.ts +3 -2
- package/components/segment/segment.yaml +4 -0
- package/components/segmented/segmented.a2ui.json +1 -0
- package/components/select/select.a2ui.json +3 -0
- package/components/select/select.yaml +4 -0
- package/components/skeleton/skeleton.a2ui.json +1 -0
- package/components/skeleton/skeleton.d.ts +3 -2
- package/components/slider/slider.a2ui.json +1 -0
- package/components/stack/stack.a2ui.json +1 -0
- package/components/stack/stack.d.ts +3 -2
- package/components/stat/stat.a2ui.json +1 -0
- package/components/step-progress/step-progress.a2ui.json +1 -0
- package/components/step-progress/step-progress.d.ts +3 -2
- package/components/stepper/stepper.a2ui.json +3 -0
- package/components/stepper/stepper.d.ts +3 -2
- package/components/stepper/stepper.yaml +4 -0
- package/components/stream/stream.a2ui.json +8 -1
- package/components/stream/stream.d.ts +21 -2
- package/components/stream/stream.yaml +4 -0
- package/components/swatch/class.js +362 -15
- package/components/swatch/swatch.a2ui.json +69 -1
- package/components/swatch/swatch.css +150 -0
- package/components/swatch/swatch.d.ts +46 -2
- package/components/swatch/swatch.yaml +67 -1
- package/components/swiper/swiper.a2ui.json +21 -2
- package/components/swiper/swiper.d.ts +28 -2
- package/components/swiper/swiper.yaml +15 -0
- package/components/switch/switch.a2ui.json +1 -0
- package/components/table/table.a2ui.json +87 -5
- package/components/table/table.d.ts +73 -2
- package/components/table/table.yaml +62 -2
- package/components/table-toolbar/table-toolbar.a2ui.json +12 -0
- package/components/table-toolbar/table-toolbar.d.ts +18 -2
- package/components/table-toolbar/table-toolbar.yaml +13 -0
- package/components/tabs/tabs.a2ui.json +10 -1
- package/components/tabs/tabs.d.ts +17 -2
- package/components/tabs/tabs.yaml +8 -0
- package/components/tag/tag.a2ui.json +12 -1
- package/components/tag/tag.d.ts +19 -2
- package/components/tag/tag.yaml +7 -0
- package/components/text/text.a2ui.json +1 -0
- package/components/text/text.d.ts +3 -2
- package/components/textarea/textarea.a2ui.json +1 -0
- package/components/timeline/timeline.a2ui.json +14 -1
- package/components/timeline/timeline.d.ts +17 -2
- package/components/timeline/timeline.yaml +11 -1
- package/components/toast/toast.a2ui.json +1 -0
- package/components/toast/toast.d.ts +12 -2
- package/components/toggle-group/toggle-group.a2ui.json +8 -1
- package/components/toggle-group/toggle-group.d.ts +17 -2
- package/components/toggle-group/toggle-group.yaml +4 -0
- package/components/toggle-scheme/toggle-scheme.a2ui.json +14 -1
- package/components/toggle-scheme/toggle-scheme.d.ts +19 -2
- package/components/toggle-scheme/toggle-scheme.yaml +11 -0
- package/components/toolbar/toolbar.a2ui.json +3 -0
- package/components/toolbar/toolbar.d.ts +3 -2
- package/components/toolbar/toolbar.yaml +4 -0
- package/components/tooltip/tooltip.a2ui.json +1 -0
- package/components/tooltip/tooltip.d.ts +3 -2
- package/components/tree/tree.a2ui.json +18 -1
- package/components/tree/tree.d.ts +21 -2
- package/components/tree/tree.yaml +14 -0
- package/components/upload/upload.a2ui.json +1 -0
- package/core/icons-phosphor.js +93 -0
- package/core/icons.js +92 -90
- package/core/index.js +5 -0
- package/index.d.ts +87 -79
- package/index.js +7 -0
- package/package.json +3 -2
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
7
7
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
8
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
9
|
-
* or hand-author this file fully if rich event types are
|
|
8
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
9
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
10
|
+
* needed beyond what the yaml `events:` block can express.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { UIElement } from '../../core/element.js';
|
package/components/row/row.d.ts
CHANGED
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
7
7
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
8
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
9
|
-
* or hand-author this file fully if rich event types are
|
|
8
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
9
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
10
|
+
* needed beyond what the yaml `events:` block can express.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { UIElement } from '../../core/element.js';
|
|
13
14
|
|
|
15
|
+
export type RowDragEndEvent = CustomEvent<unknown>;
|
|
16
|
+
|
|
14
17
|
export class UIRow extends UIElement {
|
|
15
18
|
/** Align items */
|
|
16
19
|
align: string;
|
|
@@ -24,4 +27,11 @@ export class UIRow extends UIElement {
|
|
|
24
27
|
justify: string;
|
|
25
28
|
/** Enable flex wrap */
|
|
26
29
|
wrap: boolean;
|
|
30
|
+
|
|
31
|
+
addEventListener<K extends keyof HTMLElementEventMap>(
|
|
32
|
+
type: K,
|
|
33
|
+
listener: (this: UIRow, ev: HTMLElementEventMap[K]) => unknown,
|
|
34
|
+
options?: boolean | AddEventListenerOptions,
|
|
35
|
+
): void;
|
|
36
|
+
addEventListener(type: 'drag-end', listener: (ev: RowDragEndEvent) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
27
37
|
}
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
7
7
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
8
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
9
|
-
* or hand-author this file fully if rich event types are
|
|
8
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
9
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
10
|
+
* needed beyond what the yaml `events:` block can express.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { UIElement } from '../../core/element.js';
|
|
@@ -7,6 +7,10 @@ component: Segment
|
|
|
7
7
|
category: navigation
|
|
8
8
|
version: 1
|
|
9
9
|
description: Individual segment option, child of segmented-ui.
|
|
10
|
+
# Per ADR-0027 — primitives that programmatically create other primitives
|
|
11
|
+
# do NOT auto-import them. Consumer (or demo shell) must explicitly import.
|
|
12
|
+
composes:
|
|
13
|
+
- icon-ui
|
|
10
14
|
props:
|
|
11
15
|
disabled:
|
|
12
16
|
description: Disables this segment.
|
|
@@ -7,6 +7,10 @@ component: Select
|
|
|
7
7
|
category: input
|
|
8
8
|
version: 1
|
|
9
9
|
description: Alias for ChoicePicker. Dropdown select with options.
|
|
10
|
+
# Per ADR-0027 — primitives that programmatically create other primitives
|
|
11
|
+
# do NOT auto-import them. Consumer (or demo shell) must explicitly import.
|
|
12
|
+
composes:
|
|
13
|
+
- icon-ui # chevron + option-row affixes (created in render)
|
|
10
14
|
props:
|
|
11
15
|
name:
|
|
12
16
|
description: Form control name for form data submission
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
7
7
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
8
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
9
|
-
* or hand-author this file fully if rich event types are
|
|
8
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
9
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
10
|
+
* needed beyond what the yaml `events:` block can express.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { UIElement } from '../../core/element.js';
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
7
7
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
8
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
9
|
-
* or hand-author this file fully if rich event types are
|
|
8
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
9
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
10
|
+
* needed beyond what the yaml `events:` block can express.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { UIElement } from '../../core/element.js';
|
|
@@ -11,8 +11,9 @@ primitive.
|
|
|
11
11
|
*
|
|
12
12
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
13
13
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
14
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
15
|
-
* or hand-author this file fully if rich event types are
|
|
14
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
15
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
16
|
+
* needed beyond what the yaml `events:` block can express.
|
|
16
17
|
*/
|
|
17
18
|
|
|
18
19
|
import { UIElement } from '../../core/element.js';
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
7
7
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
8
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
9
|
-
* or hand-author this file fully if rich event types are
|
|
8
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
9
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
10
|
+
* needed beyond what the yaml `events:` block can express.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { UIElement } from '../../core/element.js';
|
|
@@ -7,6 +7,10 @@ component: Stepper
|
|
|
7
7
|
category: navigation
|
|
8
8
|
version: 1
|
|
9
9
|
description: Wizard / process stepper — parent step index drives numbered children.
|
|
10
|
+
# Per ADR-0027 — primitives that programmatically create other primitives
|
|
11
|
+
# do NOT auto-import them. Consumer (or demo shell) must explicitly import.
|
|
12
|
+
composes:
|
|
13
|
+
- icon-ui
|
|
10
14
|
props:
|
|
11
15
|
orientation:
|
|
12
16
|
description: horizontal | vertical
|
|
@@ -39,12 +39,19 @@
|
|
|
39
39
|
"x-adiaui": {
|
|
40
40
|
"anti_patterns": [],
|
|
41
41
|
"category": "agent",
|
|
42
|
+
"composes": [],
|
|
42
43
|
"events": {
|
|
43
44
|
"stream-end": {
|
|
44
45
|
"description": "Fired when stream completes naturally"
|
|
45
46
|
},
|
|
46
47
|
"stream-error": {
|
|
47
|
-
"description": "Fired on stream error, detail: { error }"
|
|
48
|
+
"description": "Fired on stream error, detail: { error }",
|
|
49
|
+
"detail": {
|
|
50
|
+
"error": {
|
|
51
|
+
"description": "Error object or message.",
|
|
52
|
+
"type": "object"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
48
55
|
},
|
|
49
56
|
"stream-start": {
|
|
50
57
|
"description": "Fired when streaming begins"
|
|
@@ -5,15 +5,34 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Type declarations generated by scripts/build/dts-codegen.mjs from
|
|
7
7
|
* the component's `.a2ui.json` sidecar. Edit the source `.yaml`,
|
|
8
|
-
* run `npm run components`, then `npm run codegen:dts` to
|
|
9
|
-
* or hand-author this file fully if rich event types are
|
|
8
|
+
* run `npm run build:components`, then `npm run codegen:dts` to
|
|
9
|
+
* regenerate; or hand-author this file fully if rich event types are
|
|
10
|
+
* needed beyond what the yaml `events:` block can express.
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { UIElement } from '../../core/element.js';
|
|
13
14
|
|
|
15
|
+
export type StreamEndEvent = CustomEvent<unknown>;
|
|
16
|
+
export interface StreamErrorEventDetail {
|
|
17
|
+
/** Error object or message. */
|
|
18
|
+
error: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type StreamErrorEvent = CustomEvent<StreamErrorEventDetail>;
|
|
22
|
+
export type StreamStartEvent = CustomEvent<unknown>;
|
|
23
|
+
|
|
14
24
|
export class UIStream extends UIElement {
|
|
15
25
|
/** Milliseconds between character renders. 0 = real-time. */
|
|
16
26
|
pace: number;
|
|
17
27
|
/** Read-only reflected state, true while stream is active */
|
|
18
28
|
streaming: boolean;
|
|
29
|
+
|
|
30
|
+
addEventListener<K extends keyof HTMLElementEventMap>(
|
|
31
|
+
type: K,
|
|
32
|
+
listener: (this: UIStream, ev: HTMLElementEventMap[K]) => unknown,
|
|
33
|
+
options?: boolean | AddEventListenerOptions,
|
|
34
|
+
): void;
|
|
35
|
+
addEventListener(type: 'stream-end', listener: (ev: StreamEndEvent) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
36
|
+
addEventListener(type: 'stream-error', listener: (ev: StreamErrorEvent) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
37
|
+
addEventListener(type: 'stream-start', listener: (ev: StreamStartEvent) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
19
38
|
}
|
|
@@ -25,6 +25,10 @@ events:
|
|
|
25
25
|
description: Fired when stream completes naturally
|
|
26
26
|
stream-error:
|
|
27
27
|
description: "Fired on stream error, detail: { error }"
|
|
28
|
+
detail:
|
|
29
|
+
error:
|
|
30
|
+
type: object
|
|
31
|
+
description: Error object or message.
|
|
28
32
|
stream-start:
|
|
29
33
|
description: Fired when streaming begins
|
|
30
34
|
slots:
|