@bymos/agentkit-sdk 0.6.3 → 0.7.0
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 +111 -33
- package/agentkit-widget.iife.js +119 -94
- package/agentkit-widget.js +2239 -1994
- package/index.cjs +120 -95
- package/index.d.ts +22 -4
- package/index.js +3033 -2767
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -14,13 +14,11 @@ import { ErrorState } from '../../../packages/widget-ui/src/index.ts';
|
|
|
14
14
|
import { EventEmitter } from '../../../packages/widget-sdk/src/index.ts';
|
|
15
15
|
import { getSessionId } from '../../../packages/widget-sdk/src/index.ts';
|
|
16
16
|
import { Header } from '../../../packages/widget-ui/src/index.ts';
|
|
17
|
-
import { init } from '../../../packages/widget-sdk/src/index.ts';
|
|
18
17
|
import { injectStyles } from '../../../packages/widget-sdk/src/index.ts';
|
|
19
18
|
import { Launcher } from '../../../packages/widget-ui/src/index.ts';
|
|
20
19
|
import { listWidgets } from '../../../packages/widget-sdk/src/index.ts';
|
|
21
20
|
import { MessageBubble } from '../../../packages/widget-ui/src/index.ts';
|
|
22
21
|
import { MessageList } from '../../../packages/widget-ui/src/index.ts';
|
|
23
|
-
import { mount } from '../../../packages/widget-sdk/src/index.ts';
|
|
24
22
|
import { normalizeConfig } from '../../../packages/widget-sdk/src/index.ts';
|
|
25
23
|
import { NormalizedWidgetConfig } from '../../../packages/widget-sdk/src/index.ts';
|
|
26
24
|
import { prepareInlineContainer } from '../../../packages/widget-sdk/src/index.ts';
|
|
@@ -40,6 +38,7 @@ import { widgetCSS } from '../../../packages/widget-ui/src/index.ts';
|
|
|
40
38
|
import { WidgetEventMap } from '../../../packages/widget-sdk/src/index.ts';
|
|
41
39
|
import { WidgetInstance } from '../../../packages/widget-sdk/src/index.ts';
|
|
42
40
|
import { WidgetMessage } from '../../../packages/widget-sdk/src/index.ts';
|
|
41
|
+
import { WidgetProgressEvent } from '../../../packages/widget-sdk/src/index.ts';
|
|
43
42
|
import { WidgetShell } from '../../../packages/widget-ui/src/index.ts';
|
|
44
43
|
import { WidgetState } from '../../../packages/widget-sdk/src/index.ts';
|
|
45
44
|
|
|
@@ -65,6 +64,9 @@ export { createShadowHost }
|
|
|
65
64
|
|
|
66
65
|
export { createWidget }
|
|
67
66
|
|
|
67
|
+
/** Destroy a widget by registry ID, or all widgets if no ID is given. */
|
|
68
|
+
export declare function destroy(id?: string): void;
|
|
69
|
+
|
|
68
70
|
export { destroyWidget }
|
|
69
71
|
|
|
70
72
|
export { ErrorState }
|
|
@@ -75,7 +77,11 @@ export { getSessionId }
|
|
|
75
77
|
|
|
76
78
|
export { Header }
|
|
77
79
|
|
|
78
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Create a floating widget anchored to document.body.
|
|
82
|
+
* Returns a WidgetInstance for programmatic control.
|
|
83
|
+
*/
|
|
84
|
+
export declare function init(config: AgentKitWidgetConfig, render?: RenderFn, css?: string): WidgetInstance;
|
|
79
85
|
|
|
80
86
|
export { injectStyles }
|
|
81
87
|
|
|
@@ -87,7 +93,17 @@ export { MessageBubble }
|
|
|
87
93
|
|
|
88
94
|
export { MessageList }
|
|
89
95
|
|
|
90
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Mount a widget inline inside the given DOM element.
|
|
98
|
+
* Returns a WidgetInstance for programmatic control.
|
|
99
|
+
*/
|
|
100
|
+
export declare function mount(element: HTMLElement, config: AgentKitWidgetConfig, render?: RenderFn, css?: string): WidgetInstance;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Mount a floating widget contained inside a specific element rather than the page.
|
|
104
|
+
* Used for previews where the launcher must stay within a bounded frame.
|
|
105
|
+
*/
|
|
106
|
+
export declare function mountFloating(element: HTMLElement, config: AgentKitWidgetConfig, render?: RenderFn, css?: string): WidgetInstance;
|
|
91
107
|
|
|
92
108
|
export { normalizeConfig }
|
|
93
109
|
|
|
@@ -127,6 +143,8 @@ export { WidgetInstance }
|
|
|
127
143
|
|
|
128
144
|
export { WidgetMessage }
|
|
129
145
|
|
|
146
|
+
export { WidgetProgressEvent }
|
|
147
|
+
|
|
130
148
|
export { WidgetShell }
|
|
131
149
|
|
|
132
150
|
export { WidgetState }
|