@adecore/agents-react 0.54.16 → 0.55.1
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/dist/agents/AgentModelLabel.d.ts +5 -0
- package/dist/agents/AgentModelLabel.js +32 -7
- package/dist/chat/account-choice.d.ts +1 -0
- package/dist/chat/account-choice.js +13 -4
- package/dist/chat/mentions.d.ts +24 -2
- package/dist/chat/mentions.js +84 -10
- package/dist/chat/subagent-list.d.ts +0 -1
- package/dist/chat/subagent-list.js +1 -9
- package/dist/chat/tag-suggestions.d.ts +22 -0
- package/dist/chat/tag-suggestions.js +71 -0
- package/dist/chat/ui/Composer.js +489 -447
- package/dist/chat/ui/ComposerInput.d.ts +1 -0
- package/dist/chat/ui/ComposerInput.js +9 -1
- package/dist/chat/ui/Markdown.js +41 -25
- package/dist/chat/ui/NamedChip.d.ts +5 -0
- package/dist/chat/ui/NamedChip.js +118 -0
- package/dist/chat/ui/Pickers.d.ts +0 -4
- package/dist/chat/ui/Pickers.js +1 -141
- package/dist/chat/ui/PromptEditor.js +2 -1
- package/dist/chat/ui/ReferenceChip.d.ts +3 -2
- package/dist/chat/ui/ReferenceChip.js +58 -36
- package/dist/chat/ui/RunSettings.d.ts +3 -2
- package/dist/chat/ui/RunSettings.js +386 -361
- package/dist/chat/ui/SubagentInfo.js +98 -114
- package/dist/chat/ui/SubagentTimeline.js +65 -43
- package/dist/chat/ui/Timeline.js +14 -8
- package/dist/chat/ui/chip-clipboard.js +10 -0
- package/dist/chat/ui/composer/ComposerControls.d.ts +6 -1
- package/dist/chat/ui/composer/ComposerControls.js +171 -158
- package/dist/chat/ui/composer/ComposerMenu.js +184 -55
- package/dist/chat/ui/composer/ComposerPlusMenu.d.ts +18 -0
- package/dist/chat/ui/composer/ComposerPlusMenu.js +400 -0
- package/dist/chat/ui/composer/ComposerStatusLine.d.ts +4 -0
- package/dist/chat/ui/composer/ComposerStatusLine.js +239 -0
- package/dist/chat/ui/composer/chips.d.ts +2 -0
- package/dist/chat/ui/composer/chips.js +66 -5
- package/dist/chat/ui/composer/insert.d.ts +1 -0
- package/dist/chat/ui/composer/insert.js +24 -0
- package/dist/chat/ui/composer/use-composer-menus.js +34 -17
- package/dist/chat/ui/composer/use-prompt-menus.d.ts +10 -2
- package/dist/chat/ui/composer/use-prompt-menus.js +290 -202
- package/dist/chat/ui/covered-bottom.d.ts +1 -0
- package/dist/chat/ui/covered-bottom.js +6 -0
- package/dist/chat/ui/named-chip-look.d.ts +14 -0
- package/dist/chat/ui/named-chip-look.js +72 -0
- package/dist/chat/ui/rehype-chips.js +13 -2
- package/dist/host-hooks.d.ts +2 -1
- package/dist/host-hooks.js +6 -0
- package/dist/host.d.ts +17 -0
- package/dist/index.d.ts +1 -1
- package/dist/locales/en/agent-chat.d.ts +14 -2
- package/dist/locales/en/agent-chat.js +16 -4
- package/dist/locales/nl/agent-chat.d.ts +14 -2
- package/dist/locales/nl/agent-chat.js +16 -4
- package/dist/state/chats.d.ts +1 -0
- package/dist/state/chats.js +45 -0
- package/package.json +9 -9
- package/src/agents/AgentModelLabel.tsx +10 -1
- package/src/chat/account-choice.ts +8 -0
- package/src/chat/mentions.ts +110 -13
- package/src/chat/subagent-list.ts +1 -14
- package/src/chat/tag-suggestions.ts +121 -0
- package/src/chat/ui/Composer.tsx +24 -12
- package/src/chat/ui/ComposerInput.tsx +13 -1
- package/src/chat/ui/Markdown.tsx +5 -0
- package/src/chat/ui/NamedChip.tsx +34 -0
- package/src/chat/ui/Pickers.tsx +1 -51
- package/src/chat/ui/PromptEditor.tsx +7 -1
- package/src/chat/ui/ReferenceChip.tsx +15 -4
- package/src/chat/ui/RunSettings.tsx +51 -29
- package/src/chat/ui/SubagentInfo.tsx +17 -17
- package/src/chat/ui/SubagentTimeline.tsx +7 -2
- package/src/chat/ui/Timeline.tsx +11 -5
- package/src/chat/ui/chip-clipboard.ts +8 -1
- package/src/chat/ui/composer/ComposerControls.tsx +24 -17
- package/src/chat/ui/composer/ComposerMenu.tsx +82 -15
- package/src/chat/ui/composer/ComposerPlusMenu.tsx +158 -0
- package/src/chat/ui/composer/ComposerStatusLine.tsx +94 -0
- package/src/chat/ui/composer/chips.ts +78 -7
- package/src/chat/ui/composer/insert.ts +12 -0
- package/src/chat/ui/composer/use-composer-menus.ts +5 -2
- package/src/chat/ui/composer/use-prompt-menus.ts +55 -10
- package/src/chat/ui/covered-bottom.ts +7 -0
- package/src/chat/ui/named-chip-look.ts +64 -0
- package/src/chat/ui/rehype-chips.ts +17 -2
- package/src/host-hooks.ts +11 -1
- package/src/host.ts +29 -0
- package/src/index.ts +2 -0
- package/src/locales/en/agent-chat.ts +16 -4
- package/src/locales/nl/agent-chat.ts +16 -4
- package/src/state/chats.ts +26 -0
|
@@ -2,17 +2,17 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { holdsConversation } from '@adecore/agent-contracts';
|
|
3
3
|
import { Button, ErrorBoundary, Icon, Menu, Tooltip } from '@adecore/ui';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { ArrowUp, ChevronDown, Play,
|
|
5
|
+
import { ArrowUp, ChevronDown, Play, Square } from 'lucide-react';
|
|
6
6
|
import { useRef, useState } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { useChatHost } from '../../../host.js';
|
|
9
9
|
import { useChatScope } from '../../../scope.js';
|
|
10
10
|
import { useProviders } from '../../../state/providers.js';
|
|
11
|
-
import { useAccountChoice } from '../../account-choice.js';
|
|
11
|
+
import { useAccountChoice, useAccountColorId } from '../../account-choice.js';
|
|
12
12
|
import { composerStopLabel } from '../../subagent-list.js';
|
|
13
13
|
import { HostMenuItems } from '../HostMenuItems.js';
|
|
14
|
-
import { StashPicker } from '../Pickers.js';
|
|
15
14
|
import { RunSettings } from '../RunSettings.js';
|
|
15
|
+
import { ComposerPlusMenu } from './ComposerPlusMenu.js';
|
|
16
16
|
/* The send button, split with a chevron that opens the host's send actions when it has any. */
|
|
17
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
18
|
function SendButton(t0) {
|
|
@@ -218,20 +218,24 @@ function SendButton(t0) {
|
|
|
218
218
|
}
|
|
219
219
|
return t19;
|
|
220
220
|
}
|
|
221
|
-
/* The row under the box: attach, the chat's settings, the
|
|
221
|
+
/* The row under the box: the + with attach, the stash and the sigils, the chat's settings, the app's own control, and stop and send. */
|
|
222
222
|
export function ComposerControls(t0) {
|
|
223
|
-
const $ = _c(
|
|
223
|
+
const $ = _c(83);
|
|
224
224
|
const {
|
|
225
225
|
chatId,
|
|
226
226
|
info,
|
|
227
227
|
providerFixed,
|
|
228
228
|
writable,
|
|
229
229
|
attachable,
|
|
230
|
+
emptyDraft,
|
|
231
|
+
sigils,
|
|
230
232
|
controls,
|
|
231
233
|
send,
|
|
232
234
|
dictationToolbar,
|
|
233
235
|
onFiles,
|
|
234
236
|
onRestore,
|
|
237
|
+
onStash,
|
|
238
|
+
onSigil,
|
|
235
239
|
insert
|
|
236
240
|
} = t0;
|
|
237
241
|
const {
|
|
@@ -241,6 +245,7 @@ export function ComposerControls(t0) {
|
|
|
241
245
|
const Slot = useChatHost().ComposerSlot;
|
|
242
246
|
const providers = useProviders(_temp);
|
|
243
247
|
const accountChoice = useAccountChoice(info.provider, info.account, chatId);
|
|
248
|
+
const accountColorId = useAccountColorId(info.provider, info.account);
|
|
244
249
|
const fileInputRef = useRef(null);
|
|
245
250
|
const busy = info.activeTurnId !== null;
|
|
246
251
|
let t1;
|
|
@@ -276,31 +281,38 @@ export function ComposerControls(t0) {
|
|
|
276
281
|
}
|
|
277
282
|
const pickable = t3;
|
|
278
283
|
let t4;
|
|
279
|
-
if ($[11]
|
|
280
|
-
t4 =
|
|
281
|
-
|
|
282
|
-
name: true,
|
|
283
|
-
children: /*#__PURE__*/_jsx("button", {
|
|
284
|
-
type: "button",
|
|
285
|
-
className: "grid h-8 w-8 shrink-0 place-items-center rounded-full border border-border text-text-muted hover:bg-surface-hover-edged hover:text-text disabled:opacity-50",
|
|
286
|
-
disabled: !writable,
|
|
287
|
-
onClick: () => fileInputRef.current?.click(),
|
|
288
|
-
children: /*#__PURE__*/_jsx(Icon, {
|
|
289
|
-
icon: Plus,
|
|
290
|
-
size: 16
|
|
291
|
-
})
|
|
292
|
-
})
|
|
293
|
-
});
|
|
294
|
-
$[11] = attachable;
|
|
295
|
-
$[12] = t;
|
|
296
|
-
$[13] = writable;
|
|
297
|
-
$[14] = t4;
|
|
284
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
285
|
+
t4 = () => fileInputRef.current?.click();
|
|
286
|
+
$[11] = t4;
|
|
298
287
|
} else {
|
|
299
|
-
t4 = $[
|
|
288
|
+
t4 = $[11];
|
|
300
289
|
}
|
|
301
290
|
let t5;
|
|
302
|
-
if ($[15] !==
|
|
303
|
-
t5 = /*#__PURE__*/_jsx(
|
|
291
|
+
if ($[12] !== attachable || $[13] !== emptyDraft || $[14] !== onRestore || $[15] !== onSigil || $[16] !== onStash || $[17] !== sigils || $[18] !== writable) {
|
|
292
|
+
t5 = /*#__PURE__*/_jsx(ComposerPlusMenu, {
|
|
293
|
+
writable: writable,
|
|
294
|
+
attachable: attachable,
|
|
295
|
+
emptyDraft: emptyDraft,
|
|
296
|
+
sigils: sigils,
|
|
297
|
+
onAttach: t4,
|
|
298
|
+
onRestore: onRestore,
|
|
299
|
+
onStash: onStash,
|
|
300
|
+
onSigil: onSigil
|
|
301
|
+
});
|
|
302
|
+
$[12] = attachable;
|
|
303
|
+
$[13] = emptyDraft;
|
|
304
|
+
$[14] = onRestore;
|
|
305
|
+
$[15] = onSigil;
|
|
306
|
+
$[16] = onStash;
|
|
307
|
+
$[17] = sigils;
|
|
308
|
+
$[18] = writable;
|
|
309
|
+
$[19] = t5;
|
|
310
|
+
} else {
|
|
311
|
+
t5 = $[19];
|
|
312
|
+
}
|
|
313
|
+
let t6;
|
|
314
|
+
if ($[20] !== onFiles) {
|
|
315
|
+
t6 = /*#__PURE__*/_jsx("input", {
|
|
304
316
|
ref: fileInputRef,
|
|
305
317
|
type: "file",
|
|
306
318
|
multiple: true,
|
|
@@ -310,15 +322,15 @@ export function ComposerControls(t0) {
|
|
|
310
322
|
e.target.value = "";
|
|
311
323
|
}
|
|
312
324
|
});
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
325
|
+
$[20] = onFiles;
|
|
326
|
+
$[21] = t6;
|
|
315
327
|
} else {
|
|
316
|
-
|
|
328
|
+
t6 = $[21];
|
|
317
329
|
}
|
|
318
|
-
const
|
|
319
|
-
let
|
|
320
|
-
if ($[
|
|
321
|
-
|
|
330
|
+
const t7 = controls.configurationPending || !writable;
|
|
331
|
+
let t8;
|
|
332
|
+
if ($[22] !== controls || $[23] !== info.selection) {
|
|
333
|
+
t8 = (id, value) => controls.configure({
|
|
322
334
|
selection: {
|
|
323
335
|
...info.selection,
|
|
324
336
|
options: {
|
|
@@ -327,41 +339,51 @@ export function ComposerControls(t0) {
|
|
|
327
339
|
}
|
|
328
340
|
}
|
|
329
341
|
});
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
342
|
+
$[22] = controls;
|
|
343
|
+
$[23] = info.selection;
|
|
344
|
+
$[24] = t8;
|
|
333
345
|
} else {
|
|
334
|
-
|
|
346
|
+
t8 = $[24];
|
|
335
347
|
}
|
|
336
|
-
let
|
|
337
|
-
if ($[
|
|
338
|
-
|
|
348
|
+
let t9;
|
|
349
|
+
if ($[25] !== controls) {
|
|
350
|
+
t9 = runtimeMode => controls.configure({
|
|
339
351
|
runtimeMode
|
|
340
352
|
});
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
353
|
+
$[25] = controls;
|
|
354
|
+
$[26] = t9;
|
|
343
355
|
} else {
|
|
344
|
-
|
|
356
|
+
t9 = $[26];
|
|
345
357
|
}
|
|
346
|
-
const
|
|
347
|
-
let
|
|
348
|
-
if ($[
|
|
349
|
-
|
|
358
|
+
const t10 = busy || !writable;
|
|
359
|
+
let t11;
|
|
360
|
+
if ($[27] !== accountChoice || $[28] !== controls.chooseAccount || $[29] !== started) {
|
|
361
|
+
t11 = accountChoice === null ? null : {
|
|
350
362
|
choice: accountChoice,
|
|
351
363
|
started,
|
|
352
364
|
onPick: controls.chooseAccount
|
|
353
365
|
};
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
366
|
+
$[27] = accountChoice;
|
|
367
|
+
$[28] = controls.chooseAccount;
|
|
368
|
+
$[29] = started;
|
|
369
|
+
$[30] = t11;
|
|
358
370
|
} else {
|
|
359
|
-
|
|
371
|
+
t11 = $[30];
|
|
360
372
|
}
|
|
361
|
-
let
|
|
362
|
-
if ($[
|
|
363
|
-
|
|
364
|
-
|
|
373
|
+
let t12;
|
|
374
|
+
if ($[31] !== accountColorId) {
|
|
375
|
+
t12 = accountColorId === undefined ? {} : {
|
|
376
|
+
accountColorId
|
|
377
|
+
};
|
|
378
|
+
$[31] = accountColorId;
|
|
379
|
+
$[32] = t12;
|
|
380
|
+
} else {
|
|
381
|
+
t12 = $[32];
|
|
382
|
+
}
|
|
383
|
+
let t13;
|
|
384
|
+
if ($[33] !== controls.chooseModel || $[34] !== controls.compact || $[35] !== controls.modelPickerOpen || $[36] !== controls.setModelPickerOpen || $[37] !== info.effectiveRuntimeMode || $[38] !== info.permissionMode || $[39] !== info.provider || $[40] !== info.runtimeMode || $[41] !== info.selection || $[42] !== info.usage || $[43] !== model || $[44] !== pickable || $[45] !== t10 || $[46] !== t11 || $[47] !== t12 || $[48] !== t7 || $[49] !== t8 || $[50] !== t9) {
|
|
385
|
+
t13 = /*#__PURE__*/_jsx(RunSettings, {
|
|
386
|
+
disabled: t7,
|
|
365
387
|
providers: pickable,
|
|
366
388
|
provider: info.provider,
|
|
367
389
|
selection: info.selection,
|
|
@@ -372,47 +394,39 @@ export function ComposerControls(t0) {
|
|
|
372
394
|
open: controls.modelPickerOpen,
|
|
373
395
|
onOpenChange: controls.setModelPickerOpen,
|
|
374
396
|
onModel: controls.chooseModel,
|
|
375
|
-
onOption:
|
|
376
|
-
onMode:
|
|
397
|
+
onOption: t8,
|
|
398
|
+
onMode: t9,
|
|
377
399
|
usage: info.usage,
|
|
378
|
-
compactDisabled:
|
|
400
|
+
compactDisabled: t10,
|
|
379
401
|
onCompact: controls.compact,
|
|
380
|
-
account:
|
|
381
|
-
|
|
382
|
-
$[26] = controls.chooseModel;
|
|
383
|
-
$[27] = controls.compact;
|
|
384
|
-
$[28] = controls.modelPickerOpen;
|
|
385
|
-
$[29] = controls.setModelPickerOpen;
|
|
386
|
-
$[30] = info.effectiveRuntimeMode;
|
|
387
|
-
$[31] = info.permissionMode;
|
|
388
|
-
$[32] = info.provider;
|
|
389
|
-
$[33] = info.runtimeMode;
|
|
390
|
-
$[34] = info.selection;
|
|
391
|
-
$[35] = info.usage;
|
|
392
|
-
$[36] = model;
|
|
393
|
-
$[37] = pickable;
|
|
394
|
-
$[38] = t10;
|
|
395
|
-
$[39] = t6;
|
|
396
|
-
$[40] = t7;
|
|
397
|
-
$[41] = t8;
|
|
398
|
-
$[42] = t9;
|
|
399
|
-
$[43] = t11;
|
|
400
|
-
} else {
|
|
401
|
-
t11 = $[43];
|
|
402
|
-
}
|
|
403
|
-
let t12;
|
|
404
|
-
if ($[44] !== onRestore) {
|
|
405
|
-
t12 = /*#__PURE__*/_jsx(StashPicker, {
|
|
406
|
-
onRestore: onRestore
|
|
402
|
+
account: t11,
|
|
403
|
+
...t12
|
|
407
404
|
});
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
|
|
411
|
-
|
|
405
|
+
$[33] = controls.chooseModel;
|
|
406
|
+
$[34] = controls.compact;
|
|
407
|
+
$[35] = controls.modelPickerOpen;
|
|
408
|
+
$[36] = controls.setModelPickerOpen;
|
|
409
|
+
$[37] = info.effectiveRuntimeMode;
|
|
410
|
+
$[38] = info.permissionMode;
|
|
411
|
+
$[39] = info.provider;
|
|
412
|
+
$[40] = info.runtimeMode;
|
|
413
|
+
$[41] = info.selection;
|
|
414
|
+
$[42] = info.usage;
|
|
415
|
+
$[43] = model;
|
|
416
|
+
$[44] = pickable;
|
|
417
|
+
$[45] = t10;
|
|
418
|
+
$[46] = t11;
|
|
419
|
+
$[47] = t12;
|
|
420
|
+
$[48] = t7;
|
|
421
|
+
$[49] = t8;
|
|
422
|
+
$[50] = t9;
|
|
423
|
+
$[51] = t13;
|
|
424
|
+
} else {
|
|
425
|
+
t13 = $[51];
|
|
412
426
|
}
|
|
413
|
-
let
|
|
414
|
-
if ($[
|
|
415
|
-
|
|
427
|
+
let t14;
|
|
428
|
+
if ($[52] !== Slot || $[53] !== chatId || $[54] !== insert || $[55] !== scope || $[56] !== t || $[57] !== writable) {
|
|
429
|
+
t14 = Slot !== null && /*#__PURE__*/_jsx(ErrorBoundary, {
|
|
416
430
|
label: t("composer.slotFailed"),
|
|
417
431
|
resetKeys: [chatId],
|
|
418
432
|
compact: true,
|
|
@@ -424,39 +438,39 @@ export function ComposerControls(t0) {
|
|
|
424
438
|
insert: insert
|
|
425
439
|
})
|
|
426
440
|
});
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
441
|
+
$[52] = Slot;
|
|
442
|
+
$[53] = chatId;
|
|
443
|
+
$[54] = insert;
|
|
444
|
+
$[55] = scope;
|
|
445
|
+
$[56] = t;
|
|
446
|
+
$[57] = writable;
|
|
447
|
+
$[58] = t14;
|
|
434
448
|
} else {
|
|
435
|
-
|
|
449
|
+
t14 = $[58];
|
|
436
450
|
}
|
|
437
|
-
let
|
|
438
|
-
if ($[
|
|
439
|
-
|
|
451
|
+
let t15;
|
|
452
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
453
|
+
t15 = /*#__PURE__*/_jsx("span", {
|
|
440
454
|
className: "grow"
|
|
441
455
|
});
|
|
442
|
-
$[
|
|
456
|
+
$[59] = t15;
|
|
443
457
|
} else {
|
|
444
|
-
|
|
458
|
+
t15 = $[59];
|
|
445
459
|
}
|
|
446
|
-
let
|
|
447
|
-
if ($[
|
|
448
|
-
|
|
460
|
+
let t16;
|
|
461
|
+
if ($[60] !== dictationToolbar) {
|
|
462
|
+
t16 = /*#__PURE__*/_jsx("div", {
|
|
449
463
|
ref: dictationToolbar,
|
|
450
464
|
className: "flex items-center pl-1 empty:hidden [&_.icon-btn]:rounded-full"
|
|
451
465
|
});
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
466
|
+
$[60] = dictationToolbar;
|
|
467
|
+
$[61] = t16;
|
|
454
468
|
} else {
|
|
455
|
-
|
|
469
|
+
t16 = $[61];
|
|
456
470
|
}
|
|
457
|
-
let
|
|
458
|
-
if ($[
|
|
459
|
-
|
|
471
|
+
let t17;
|
|
472
|
+
if ($[62] !== busy || $[63] !== controls) {
|
|
473
|
+
t17 = busy && /*#__PURE__*/_jsx(Tooltip, {
|
|
460
474
|
label: composerStopLabel(),
|
|
461
475
|
name: true,
|
|
462
476
|
children: /*#__PURE__*/_jsx("button", {
|
|
@@ -468,15 +482,15 @@ export function ComposerControls(t0) {
|
|
|
468
482
|
})
|
|
469
483
|
})
|
|
470
484
|
});
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
485
|
+
$[62] = busy;
|
|
486
|
+
$[63] = controls;
|
|
487
|
+
$[64] = t17;
|
|
474
488
|
} else {
|
|
475
|
-
|
|
489
|
+
t17 = $[64];
|
|
476
490
|
}
|
|
477
|
-
let
|
|
478
|
-
if ($[
|
|
479
|
-
|
|
491
|
+
let t18;
|
|
492
|
+
if ($[65] !== controls.configurationPending || $[66] !== send.onContinue || $[67] !== t) {
|
|
493
|
+
t18 = send.onContinue !== null && /*#__PURE__*/_jsx(Tooltip, {
|
|
480
494
|
label: t("composer.continueHint"),
|
|
481
495
|
children: /*#__PURE__*/_jsxs(Button, {
|
|
482
496
|
variant: "primary",
|
|
@@ -489,56 +503,55 @@ export function ComposerControls(t0) {
|
|
|
489
503
|
}), t("composer.continue")]
|
|
490
504
|
})
|
|
491
505
|
});
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
506
|
+
$[65] = controls.configurationPending;
|
|
507
|
+
$[66] = send.onContinue;
|
|
508
|
+
$[67] = t;
|
|
509
|
+
$[68] = t18;
|
|
496
510
|
} else {
|
|
497
|
-
|
|
511
|
+
t18 = $[68];
|
|
498
512
|
}
|
|
499
|
-
let
|
|
500
|
-
if ($[
|
|
501
|
-
|
|
513
|
+
let t19;
|
|
514
|
+
if ($[69] !== send || $[70] !== writable) {
|
|
515
|
+
t19 = send.onContinue === null && send.visible && /*#__PURE__*/_jsx(SendButton, {
|
|
502
516
|
send: send,
|
|
503
517
|
writable: writable
|
|
504
518
|
});
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
519
|
+
$[69] = send;
|
|
520
|
+
$[70] = writable;
|
|
521
|
+
$[71] = t19;
|
|
508
522
|
} else {
|
|
509
|
-
|
|
523
|
+
t19 = $[71];
|
|
510
524
|
}
|
|
511
|
-
let
|
|
512
|
-
if ($[
|
|
513
|
-
|
|
525
|
+
let t20;
|
|
526
|
+
if ($[72] !== t16 || $[73] !== t17 || $[74] !== t18 || $[75] !== t19) {
|
|
527
|
+
t20 = /*#__PURE__*/_jsxs("div", {
|
|
514
528
|
className: "flex h-9 shrink-0 items-center gap-0.5 rounded-full bg-surface-hover",
|
|
515
|
-
children: [
|
|
529
|
+
children: [t16, t17, t18, t19]
|
|
516
530
|
});
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
531
|
+
$[72] = t16;
|
|
532
|
+
$[73] = t17;
|
|
533
|
+
$[74] = t18;
|
|
534
|
+
$[75] = t19;
|
|
535
|
+
$[76] = t20;
|
|
522
536
|
} else {
|
|
523
|
-
|
|
537
|
+
t20 = $[76];
|
|
524
538
|
}
|
|
525
|
-
let
|
|
526
|
-
if ($[
|
|
527
|
-
|
|
539
|
+
let t21;
|
|
540
|
+
if ($[77] !== t13 || $[78] !== t14 || $[79] !== t20 || $[80] !== t5 || $[81] !== t6) {
|
|
541
|
+
t21 = /*#__PURE__*/_jsxs("div", {
|
|
528
542
|
className: "flex items-center gap-2 pt-3 pr-3.5 pb-3.5 pl-5 @max-md/composer:gap-1.5 @max-md/composer:p-3 @max-md/composer:pt-2.5",
|
|
529
|
-
children: [
|
|
543
|
+
children: [t5, t6, t13, t14, t15, t20]
|
|
530
544
|
});
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
537
|
-
$[77] = t20;
|
|
545
|
+
$[77] = t13;
|
|
546
|
+
$[78] = t14;
|
|
547
|
+
$[79] = t20;
|
|
548
|
+
$[80] = t5;
|
|
549
|
+
$[81] = t6;
|
|
550
|
+
$[82] = t21;
|
|
538
551
|
} else {
|
|
539
|
-
|
|
552
|
+
t21 = $[82];
|
|
540
553
|
}
|
|
541
|
-
return
|
|
554
|
+
return t21;
|
|
542
555
|
}
|
|
543
556
|
function _temp2(entry_2) {
|
|
544
557
|
return entry_2.installed && entry_2.capabilities.chat;
|