@dudko.dev/agent-web-react 0.0.43 → 0.0.44
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 +25 -11
- package/dist/{elicitation-B5t9hdaJ.d.cts → elicitation-B-1TS-pY.d.cts} +64 -7
- package/dist/{elicitation-rJu93Z3o.d.ts → elicitation-DCr7b6IH.d.ts} +64 -7
- package/dist/index.cjs +2412 -1215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +375 -20
- package/dist/index.d.ts +375 -20
- package/dist/index.js +2070 -897
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.cts +2 -2
- package/dist/mcp.d.ts +2 -2
- package/dist/styles.css +323 -11
- package/package.json +2 -2
package/dist/mcp.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { McpSkillConsent, AgentToolSet } from '@dudko.dev/agent-web';
|
|
2
|
-
import {
|
|
2
|
+
import { b1 as McpOAuthRegistration, b2 as McpProtocolMode, P as PendingElicitation, f as McpElicitationResult, b3 as McpElicitationOptions, b4 as McpCatalogEntry, b5 as McpServerProtocol, b6 as McpOAuthRegistrationKind, b7 as McpOAuthCallback, b8 as McpServerResult, b9 as McpModule, ba as ConnectedMcp, bb as BrowserOAuthProviderOptions, bc as BrowserOAuthProvider } from './elicitation-B-1TS-pY.cjs';
|
|
3
3
|
import { McpAppsConnectionLike } from './index.cjs';
|
|
4
|
-
export {
|
|
4
|
+
export { bd as ElicitationQueue, be as ElicitationQueueOptions, ar as McpElicitationFieldSchema, bf as McpElicitationHandler, as as McpElicitationRequest, at as McpElicitationSchema, bg as McpServerInstructions, bh as createElicitationQueue, bi as elicitationConnectOptions, bj as elicitationSettings, bk as elicitationTimeoutOf } from './elicitation-B-1TS-pY.cjs';
|
|
5
5
|
import './mcp-app-policy-BhBIsbBy.cjs';
|
|
6
6
|
|
|
7
7
|
type McpStatus = 'idle' | 'connecting' | 'connected' | 'needs-authorization' | 'error';
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { McpSkillConsent, AgentToolSet } from '@dudko.dev/agent-web';
|
|
2
|
-
import {
|
|
2
|
+
import { b1 as McpOAuthRegistration, b2 as McpProtocolMode, P as PendingElicitation, f as McpElicitationResult, b3 as McpElicitationOptions, b4 as McpCatalogEntry, b5 as McpServerProtocol, b6 as McpOAuthRegistrationKind, b7 as McpOAuthCallback, b8 as McpServerResult, b9 as McpModule, ba as ConnectedMcp, bb as BrowserOAuthProviderOptions, bc as BrowserOAuthProvider } from './elicitation-DCr7b6IH.js';
|
|
3
3
|
import { McpAppsConnectionLike } from './index.js';
|
|
4
|
-
export {
|
|
4
|
+
export { bd as ElicitationQueue, be as ElicitationQueueOptions, ar as McpElicitationFieldSchema, bf as McpElicitationHandler, as as McpElicitationRequest, at as McpElicitationSchema, bg as McpServerInstructions, bh as createElicitationQueue, bi as elicitationConnectOptions, bj as elicitationSettings, bk as elicitationTimeoutOf } from './elicitation-DCr7b6IH.js';
|
|
5
5
|
import './mcp-app-policy-BhBIsbBy.js';
|
|
6
6
|
|
|
7
7
|
type McpStatus = 'idle' | 'connecting' | 'connected' | 'needs-authorization' | 'error';
|
package/dist/styles.css
CHANGED
|
@@ -103,21 +103,34 @@
|
|
|
103
103
|
}
|
|
104
104
|
.awr-chat__closeside {
|
|
105
105
|
display: none;
|
|
106
|
-
position: absolute;
|
|
107
|
-
top: 6px;
|
|
108
|
-
right: 6px;
|
|
109
106
|
font-size: 18px;
|
|
110
107
|
line-height: 1;
|
|
111
108
|
}
|
|
112
|
-
/*
|
|
109
|
+
/* A side panel's × belongs to the narrow layout only (`.awr-iconbtn`, later in this sheet, would
|
|
110
|
+
show it on a wide chat too). */
|
|
111
|
+
.awr-chat:not(.awr-chat--narrow) .awr-chat__closeside {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
/* What `slots.sidebar` holds lays out as if it had no wrapper; the narrow panel's rules below
|
|
115
|
+
leave it alone. */
|
|
116
|
+
.awr-chat__slot {
|
|
117
|
+
display: contents;
|
|
118
|
+
}
|
|
119
|
+
/* Narrow panels (a phone): the side panels overlay the chat instead of squeezing it, with a
|
|
120
|
+
strip of the shaded chat left beside them (a tap on it closes the panel). The panel scrolls
|
|
121
|
+
by itself - never the page behind it - and its header row stays on top while it does. */
|
|
113
122
|
.awr-chat--narrow > .awr-chat__sidebar,
|
|
114
123
|
.awr-chat--narrow > .awr-chat__files {
|
|
115
124
|
position: absolute;
|
|
116
125
|
top: 0;
|
|
117
126
|
bottom: 0;
|
|
118
127
|
z-index: 5;
|
|
119
|
-
width: min(
|
|
128
|
+
width: min(88%, 360px);
|
|
120
129
|
box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
|
|
130
|
+
overscroll-behavior: contain;
|
|
131
|
+
/* A row the focus moves to is scrolled clear of the sticky header bar (56 px and its line). */
|
|
132
|
+
scroll-padding-top: 64px;
|
|
133
|
+
outline: none;
|
|
121
134
|
}
|
|
122
135
|
/* Beside an open side panel: the chat under a shade, and a tap on it closes the panel. */
|
|
123
136
|
.awr-chat__scrim {
|
|
@@ -139,10 +152,142 @@
|
|
|
139
152
|
.awr-chat--narrow .awr-status__text {
|
|
140
153
|
display: none;
|
|
141
154
|
}
|
|
142
|
-
/*
|
|
143
|
-
.awr-chat--narrow .awr-chat__sidebar .awr-
|
|
144
|
-
.awr-chat--narrow .awr-chat__files .awr-
|
|
145
|
-
|
|
155
|
+
/* A host's own panel that draws no `headerEnd`: its × in the corner. */
|
|
156
|
+
.awr-chat--narrow > .awr-chat__sidebar > .awr-chat__closeside--corner,
|
|
157
|
+
.awr-chat--narrow > .awr-chat__files > .awr-chat__closeside--corner {
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: 6px;
|
|
160
|
+
right: 6px;
|
|
161
|
+
width: 44px;
|
|
162
|
+
height: 44px;
|
|
163
|
+
z-index: 2;
|
|
164
|
+
}
|
|
165
|
+
/* The panel itself (the chats list, the files panel - also inside a host's own component; never
|
|
166
|
+
what `slots.sidebar` holds) on a narrow chat. Its wrapper steps aside (`display: contents`:
|
|
167
|
+
a box style given to it with `className` does not show here) so the header row sticks to the
|
|
168
|
+
top of the WHOLE panel - list, preview and whatever is under them scroll beneath it - and
|
|
169
|
+
what it holds keeps its height (a flex item that scrolls by itself, the file preview, would
|
|
170
|
+
be squeezed). */
|
|
171
|
+
.awr-chat--narrow
|
|
172
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
173
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *)) {
|
|
174
|
+
display: contents;
|
|
175
|
+
}
|
|
176
|
+
.awr-chat--narrow
|
|
177
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
178
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
179
|
+
> * {
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
}
|
|
182
|
+
/* Its header: a header bar - as tall as the chat's, on its own background with a line under it,
|
|
183
|
+
the title at the chat title's size, every control a 44 px target, the × in the row. */
|
|
184
|
+
.awr-chat--narrow
|
|
185
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
186
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
187
|
+
> .awr-panel__head {
|
|
188
|
+
position: sticky;
|
|
189
|
+
top: 0;
|
|
190
|
+
z-index: 1;
|
|
191
|
+
flex: none;
|
|
192
|
+
box-sizing: border-box;
|
|
193
|
+
min-height: 56px;
|
|
194
|
+
margin: 0 0 6px;
|
|
195
|
+
padding: 6px 4px 6px 16px;
|
|
196
|
+
gap: 4px;
|
|
197
|
+
background: var(--awr-bg);
|
|
198
|
+
border-bottom: 1px solid var(--awr-border);
|
|
199
|
+
}
|
|
200
|
+
.awr-chat--narrow
|
|
201
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
202
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
203
|
+
> .awr-panel__head
|
|
204
|
+
.awr-panel__title {
|
|
205
|
+
min-width: 0;
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
white-space: nowrap;
|
|
209
|
+
font-size: inherit;
|
|
210
|
+
color: var(--awr-fg);
|
|
211
|
+
}
|
|
212
|
+
.awr-chat--narrow
|
|
213
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
214
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
215
|
+
> .awr-panel__head
|
|
216
|
+
.awr-iconbtn {
|
|
217
|
+
width: 44px;
|
|
218
|
+
height: 44px;
|
|
219
|
+
}
|
|
220
|
+
.awr-chat--narrow .awr-panel__head .awr-chat__closeside {
|
|
221
|
+
font-size: 26px;
|
|
222
|
+
font-weight: 300;
|
|
223
|
+
color: var(--awr-fg);
|
|
224
|
+
}
|
|
225
|
+
.awr-chat--narrow
|
|
226
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
227
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
228
|
+
.awr-history__new {
|
|
229
|
+
flex: none;
|
|
230
|
+
min-height: 44px;
|
|
231
|
+
padding: 0 12px;
|
|
232
|
+
font-size: 14px;
|
|
233
|
+
white-space: nowrap;
|
|
234
|
+
}
|
|
235
|
+
.awr-chat--narrow
|
|
236
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
237
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
238
|
+
> .awr-panel__empty {
|
|
239
|
+
padding: 8px 16px;
|
|
240
|
+
font-size: 13px;
|
|
241
|
+
}
|
|
242
|
+
/* The rows: the whole row opens the chat (at least 44 px tall, the title at the body's size, the
|
|
243
|
+
time and count under it); its × is a 44 px target of its own, a gap away from it. */
|
|
244
|
+
.awr-chat--narrow
|
|
245
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
246
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
247
|
+
> :is(.awr-history__list, .awr-filelist) {
|
|
248
|
+
flex: none;
|
|
249
|
+
padding: 0 6px 12px;
|
|
250
|
+
}
|
|
251
|
+
.awr-chat--narrow
|
|
252
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
253
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
254
|
+
:is(.awr-history__item, .awr-filelist__item) {
|
|
255
|
+
gap: 8px;
|
|
256
|
+
}
|
|
257
|
+
.awr-chat--narrow
|
|
258
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
259
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
260
|
+
.awr-history__open {
|
|
261
|
+
min-height: 52px;
|
|
262
|
+
justify-content: center;
|
|
263
|
+
gap: 2px;
|
|
264
|
+
padding: 8px 10px;
|
|
265
|
+
}
|
|
266
|
+
.awr-chat--narrow
|
|
267
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
268
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
269
|
+
.awr-history__title {
|
|
270
|
+
font-size: inherit;
|
|
271
|
+
}
|
|
272
|
+
.awr-chat--narrow
|
|
273
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
274
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
275
|
+
.awr-history__meta {
|
|
276
|
+
font-size: 12px;
|
|
277
|
+
}
|
|
278
|
+
.awr-chat--narrow
|
|
279
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
280
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
281
|
+
.awr-filelist__open {
|
|
282
|
+
min-height: 44px;
|
|
283
|
+
}
|
|
284
|
+
.awr-chat--narrow
|
|
285
|
+
> :is(.awr-chat__sidebar, .awr-chat__files)
|
|
286
|
+
:where(:is(.awr-history, .awr-filespanel):not(.awr-chat__slot *))
|
|
287
|
+
:is(.awr-history__item, .awr-filelist__item)
|
|
288
|
+
.awr-iconbtn {
|
|
289
|
+
width: 44px;
|
|
290
|
+
height: 44px;
|
|
146
291
|
}
|
|
147
292
|
/* The header and the footer keep their height: only the transcript between them gives way.
|
|
148
293
|
(As flex items they would shrink a little with every line the transcript grows - the header
|
|
@@ -186,7 +331,9 @@
|
|
|
186
331
|
/* A fling that reaches the end of the transcript stops there: it is not handed on to the
|
|
187
332
|
page, which on a phone would scroll or bounce the whole window. */
|
|
188
333
|
overscroll-behavior: contain;
|
|
189
|
-
padding:
|
|
334
|
+
/* Its top padding, as a property: a tall app's sticky head sits flush with the top (below). */
|
|
335
|
+
--awr-chat-pad-top: 16px;
|
|
336
|
+
padding: var(--awr-chat-pad-top) 16px 16px;
|
|
190
337
|
display: flex;
|
|
191
338
|
flex-direction: column;
|
|
192
339
|
gap: 12px;
|
|
@@ -1077,6 +1224,28 @@
|
|
|
1077
1224
|
field-sizing: content;
|
|
1078
1225
|
min-height: 2.6em;
|
|
1079
1226
|
}
|
|
1227
|
+
/* The box's counter near its limit (`longText`): quiet, under the end of the input. */
|
|
1228
|
+
.awr-composer2__count {
|
|
1229
|
+
align-self: flex-end;
|
|
1230
|
+
margin-top: -4px;
|
|
1231
|
+
padding: 0 6px;
|
|
1232
|
+
font-size: 11px;
|
|
1233
|
+
line-height: 14px;
|
|
1234
|
+
color: var(--awr-muted);
|
|
1235
|
+
font-variant-numeric: tabular-nums;
|
|
1236
|
+
white-space: nowrap;
|
|
1237
|
+
}
|
|
1238
|
+
.awr-composer2__count.is-full {
|
|
1239
|
+
color: var(--awr-warn);
|
|
1240
|
+
}
|
|
1241
|
+
.awr-composer2__sr {
|
|
1242
|
+
position: absolute;
|
|
1243
|
+
width: 1px;
|
|
1244
|
+
height: 1px;
|
|
1245
|
+
overflow: hidden;
|
|
1246
|
+
clip-path: inset(50%);
|
|
1247
|
+
white-space: nowrap;
|
|
1248
|
+
}
|
|
1080
1249
|
.awr-composer2__interim {
|
|
1081
1250
|
font-size: 12px;
|
|
1082
1251
|
color: var(--awr-muted);
|
|
@@ -1727,7 +1896,8 @@
|
|
|
1727
1896
|
max-width: 100%;
|
|
1728
1897
|
}
|
|
1729
1898
|
.awr-chat__body {
|
|
1730
|
-
|
|
1899
|
+
--awr-chat-pad-top: 12px;
|
|
1900
|
+
padding: var(--awr-chat-pad-top) 10px 12px;
|
|
1731
1901
|
}
|
|
1732
1902
|
.awr-chat__footer {
|
|
1733
1903
|
padding: 6px 8px 8px;
|
|
@@ -3693,3 +3863,145 @@
|
|
|
3693
3863
|
.awr-viewer__nav--next {
|
|
3694
3864
|
right: max(8px, env(safe-area-inset-right, 0px));
|
|
3695
3865
|
}
|
|
3866
|
+
/* An app's prompts where the app is (panel, sheet, full screen): host-drawn chrome ABOVE the
|
|
3867
|
+
frame - a flex item of its own, so the frame's box never meets it, never under the app and never
|
|
3868
|
+
scrolled away with the app's content. It scrolls itself when it is tall; the app keeps the rest. */
|
|
3869
|
+
.awr-frame__prompts {
|
|
3870
|
+
position: relative;
|
|
3871
|
+
z-index: 1;
|
|
3872
|
+
flex: 0 1 auto;
|
|
3873
|
+
max-height: 60%;
|
|
3874
|
+
min-height: 0;
|
|
3875
|
+
overflow: auto;
|
|
3876
|
+
overscroll-behavior: contain;
|
|
3877
|
+
padding: 8px 10px;
|
|
3878
|
+
border-top: 1px solid color-mix(in srgb, var(--awr-warn) 45%, var(--awr-border));
|
|
3879
|
+
background: var(--awr-bg);
|
|
3880
|
+
}
|
|
3881
|
+
.awr-frame__prompts:focus {
|
|
3882
|
+
outline: none;
|
|
3883
|
+
}
|
|
3884
|
+
.awr-frame__prompts .awr-approvals {
|
|
3885
|
+
margin: 0;
|
|
3886
|
+
}
|
|
3887
|
+
.awr-frame--app.has-prompts .awr-frame__iframe {
|
|
3888
|
+
min-height: 120px;
|
|
3889
|
+
}
|
|
3890
|
+
button.awr-frame__state {
|
|
3891
|
+
cursor: pointer;
|
|
3892
|
+
background: transparent;
|
|
3893
|
+
font: inherit;
|
|
3894
|
+
font-size: 11px;
|
|
3895
|
+
}
|
|
3896
|
+
button.awr-frame__state:hover,
|
|
3897
|
+
button.awr-frame__state:focus-visible {
|
|
3898
|
+
background: color-mix(in srgb, var(--awr-warn) 14%, transparent);
|
|
3899
|
+
}
|
|
3900
|
+
.awr-frame__tall {
|
|
3901
|
+
display: flex;
|
|
3902
|
+
flex-wrap: wrap;
|
|
3903
|
+
align-items: center;
|
|
3904
|
+
gap: 4px 6px;
|
|
3905
|
+
padding: 5px 10px;
|
|
3906
|
+
border-top: 1px solid color-mix(in srgb, var(--awr-fg) 14%, var(--awr-border));
|
|
3907
|
+
font-size: 11.5px;
|
|
3908
|
+
color: var(--awr-muted);
|
|
3909
|
+
min-width: 0;
|
|
3910
|
+
overflow-wrap: anywhere;
|
|
3911
|
+
}
|
|
3912
|
+
.awr-frame__tall .awr-frame__show {
|
|
3913
|
+
margin-left: auto;
|
|
3914
|
+
}
|
|
3915
|
+
/* A "yes" to an MCP App before it takes a press (`ArmedButton`): shown, not yet armed. */
|
|
3916
|
+
.awr-btn.is-arming {
|
|
3917
|
+
opacity: 0.55;
|
|
3918
|
+
cursor: default;
|
|
3919
|
+
}
|
|
3920
|
+
/* An inline app taller than the view keeps the host's label in sight while it scrolls by: the
|
|
3921
|
+
head sticks to the top of the transcript (`overflow: clip` - not `hidden` - lets it), so a
|
|
3922
|
+
tall app cannot pass for the chat over several screens. A sticky box stops at the scroller's
|
|
3923
|
+
padding: `top` takes the transcript's top padding back (`--awr-chat-pad-top`, set where that
|
|
3924
|
+
padding is), so the head is flush with the visible top and no strip of the app shows above
|
|
3925
|
+
it. A host that changes the transcript's top padding sets the property with it. */
|
|
3926
|
+
.awr-frame--app:not(.awr-frame--panel):not(.awr-frame--fullscreen) {
|
|
3927
|
+
overflow: clip;
|
|
3928
|
+
}
|
|
3929
|
+
.awr-frame--app:not(.awr-frame--panel):not(.awr-frame--fullscreen) > .awr-frame__head {
|
|
3930
|
+
position: sticky;
|
|
3931
|
+
top: calc(-1 * var(--awr-chat-pad-top, 0px));
|
|
3932
|
+
z-index: 2;
|
|
3933
|
+
background: var(--awr-bg);
|
|
3934
|
+
border-radius: 10px 10px 0 0;
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
/* ── A link in an answer to a workspace file: inline text that reads as a link ───
|
|
3938
|
+
A span (role="button"), never a <button>: a button is one box, and its words could not
|
|
3939
|
+
break across lines with the text around them. */
|
|
3940
|
+
.awr-filelink {
|
|
3941
|
+
color: var(--awr-accent);
|
|
3942
|
+
text-decoration: underline;
|
|
3943
|
+
text-underline-offset: 2px;
|
|
3944
|
+
cursor: pointer;
|
|
3945
|
+
border-radius: 2px;
|
|
3946
|
+
-webkit-tap-highlight-color: transparent;
|
|
3947
|
+
}
|
|
3948
|
+
.awr-filelink:hover {
|
|
3949
|
+
text-decoration-thickness: 2px;
|
|
3950
|
+
}
|
|
3951
|
+
.awr-filelink:focus-visible {
|
|
3952
|
+
outline: 2px solid var(--awr-accent);
|
|
3953
|
+
outline-offset: 2px;
|
|
3954
|
+
}
|
|
3955
|
+
.awr-filelink code {
|
|
3956
|
+
color: inherit;
|
|
3957
|
+
}
|
|
3958
|
+
/* Its file's preview, over the chat. */
|
|
3959
|
+
.awr-filedialog {
|
|
3960
|
+
position: fixed;
|
|
3961
|
+
inset: 0;
|
|
3962
|
+
z-index: 60;
|
|
3963
|
+
display: flex;
|
|
3964
|
+
align-items: center;
|
|
3965
|
+
justify-content: center;
|
|
3966
|
+
padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
|
|
3967
|
+
max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
|
|
3968
|
+
background: color-mix(in srgb, var(--awr-bg) 80%, transparent);
|
|
3969
|
+
color: var(--awr-fg);
|
|
3970
|
+
font-family: var(--awr-font);
|
|
3971
|
+
font-size: 14px;
|
|
3972
|
+
}
|
|
3973
|
+
.awr-filedialog__panel {
|
|
3974
|
+
display: flex;
|
|
3975
|
+
flex-direction: column;
|
|
3976
|
+
gap: 8px;
|
|
3977
|
+
width: min(760px, 100%);
|
|
3978
|
+
max-height: 100%;
|
|
3979
|
+
min-width: 0;
|
|
3980
|
+
overflow: auto;
|
|
3981
|
+
overscroll-behavior: contain;
|
|
3982
|
+
padding: 8px 12px 12px;
|
|
3983
|
+
border: 1px solid var(--awr-border);
|
|
3984
|
+
border-radius: 12px;
|
|
3985
|
+
background: var(--awr-bg);
|
|
3986
|
+
box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
|
|
3987
|
+
}
|
|
3988
|
+
.awr-filedialog__bar {
|
|
3989
|
+
display: flex;
|
|
3990
|
+
align-items: center;
|
|
3991
|
+
gap: 8px;
|
|
3992
|
+
}
|
|
3993
|
+
.awr-filedialog__name {
|
|
3994
|
+
flex: 1 1 auto;
|
|
3995
|
+
min-width: 0;
|
|
3996
|
+
overflow: hidden;
|
|
3997
|
+
text-overflow: ellipsis;
|
|
3998
|
+
white-space: nowrap;
|
|
3999
|
+
font-weight: 600;
|
|
4000
|
+
}
|
|
4001
|
+
.awr-filedialog .awr-iconbtn {
|
|
4002
|
+
width: 36px;
|
|
4003
|
+
height: 36px;
|
|
4004
|
+
}
|
|
4005
|
+
.awr-filedialog .awr-fileview {
|
|
4006
|
+
margin: 0;
|
|
4007
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudko.dev/agent-web-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"description": "React bindings for @dudko.dev/agent-web: a headless useAgent hook, an AgentProvider context, and optional pre-styled components (chat panel, plan/step view, BYOK key form, WebLLM load bar) that connect the in-browser LLM agent to any React site. UI you can drop in — or a headless reducer you can build your own around.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"typescript": "^6.0.3",
|
|
147
147
|
"zod": "^4.6.7",
|
|
148
148
|
"@dudko.dev/test-servers": "0.0.0",
|
|
149
|
-
"@dudko.dev/agent-web": "0.0.
|
|
149
|
+
"@dudko.dev/agent-web": "0.0.53"
|
|
150
150
|
},
|
|
151
151
|
"scripts": {
|
|
152
152
|
"build": "tsup",
|