@superinterface/react 2.12.0 → 2.13.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/index.cjs +198 -108
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +193 -103
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3232,6 +3232,7 @@ var Root8 = function(param) {
|
|
|
3232
3232
|
});
|
|
3233
3233
|
};
|
|
3234
3234
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
3235
|
+
import { useContext as useContext13 } from "react";
|
|
3235
3236
|
import { Flex as Flex22 } from "@radix-ui/themes";
|
|
3236
3237
|
// src/hooks/threads/useAudioThreadContext/index.ts
|
|
3237
3238
|
import { useContext as useContext12 } from "react";
|
|
@@ -3303,99 +3304,187 @@ var BarsVisualizer = function(param) {
|
|
|
3303
3304
|
});
|
|
3304
3305
|
};
|
|
3305
3306
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
3306
|
-
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3307
|
+
import { jsx as jsx57, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3307
3308
|
var Visualization = function() {
|
|
3308
3309
|
var audioThreadContext = useAudioThreadContext();
|
|
3309
|
-
|
|
3310
|
+
var assistantNameContext = useContext13(AssistantNameContext);
|
|
3311
|
+
return /* @__PURE__ */ jsxs18(Flex22, {
|
|
3310
3312
|
direction: "column",
|
|
3311
3313
|
align: "center",
|
|
3312
3314
|
justify: "center",
|
|
3313
3315
|
mb: "3",
|
|
3314
3316
|
flexGrow: "1",
|
|
3315
|
-
children:
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3317
|
+
children: [
|
|
3318
|
+
/* @__PURE__ */ jsx57(Flex22, {
|
|
3319
|
+
align: "center",
|
|
3320
|
+
justify: "center",
|
|
3321
|
+
height: "200px",
|
|
3322
|
+
width: "200px",
|
|
3323
|
+
style: {
|
|
3324
|
+
backgroundColor: audioThreadContext.status === "playing" ? "var(--accent-4)" : "var(--gray-4)",
|
|
3325
|
+
borderRadius: "9999px"
|
|
3326
|
+
},
|
|
3327
|
+
children: /* @__PURE__ */ jsx57(BarsVisualizer, {
|
|
3328
|
+
visualizationAnalyser: audioThreadContext.messageAudioProps.visualizationAnalyser,
|
|
3329
|
+
backgroundColor: audioThreadContext.status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
|
|
3330
|
+
height: "40px",
|
|
3331
|
+
barWidth: "24px"
|
|
3332
|
+
})
|
|
3333
|
+
}),
|
|
3334
|
+
/* @__PURE__ */ jsxs18(Flex22, {
|
|
3335
|
+
ml: "-22.5px",
|
|
3336
|
+
gap: "3",
|
|
3337
|
+
pt: "5",
|
|
3338
|
+
children: [
|
|
3339
|
+
/* @__PURE__ */ jsx57(AssistantAvatar, {}),
|
|
3340
|
+
/* @__PURE__ */ jsx57(Name, {
|
|
3341
|
+
children: assistantNameContext
|
|
3342
|
+
})
|
|
3343
|
+
]
|
|
3329
3344
|
})
|
|
3330
|
-
|
|
3345
|
+
]
|
|
3346
|
+
});
|
|
3347
|
+
};
|
|
3348
|
+
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
3349
|
+
import { Flex as Flex23, Text as Text7 } from "@radix-ui/themes";
|
|
3350
|
+
import { jsx as jsx58, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3351
|
+
var html = function(param) {
|
|
3352
|
+
var texts = param.texts;
|
|
3353
|
+
return "\n .status-messages-texts:after {\n content: '".concat(texts[0], "';\n animation: texts ").concat(texts.length * 3, "s linear infinite;\n }\n\n @keyframes texts {\n ").concat(texts.map(function(_9, i) {
|
|
3354
|
+
return "\n ".concat(i * 100 / texts.length, '% {\n content: "').concat(texts[i], '";\n }\n ');
|
|
3355
|
+
}).join(""), "\n }");
|
|
3356
|
+
};
|
|
3357
|
+
var StatusMessages = function(param) {
|
|
3358
|
+
var texts = param.texts;
|
|
3359
|
+
return /* @__PURE__ */ jsxs19(Flex23, {
|
|
3360
|
+
justify: "center",
|
|
3361
|
+
pb: "5",
|
|
3362
|
+
children: [
|
|
3363
|
+
/* @__PURE__ */ jsx58(Text7, {
|
|
3364
|
+
size: "2",
|
|
3365
|
+
weight: "regular",
|
|
3366
|
+
color: "gray",
|
|
3367
|
+
className: "status-messages-texts"
|
|
3368
|
+
}),
|
|
3369
|
+
/* @__PURE__ */ jsx58("style", {
|
|
3370
|
+
dangerouslySetInnerHTML: {
|
|
3371
|
+
__html: html({
|
|
3372
|
+
texts: texts
|
|
3373
|
+
})
|
|
3374
|
+
}
|
|
3375
|
+
})
|
|
3376
|
+
]
|
|
3377
|
+
});
|
|
3378
|
+
};
|
|
3379
|
+
// src/components/threads/AudioThread/Status/index.tsx
|
|
3380
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
3381
|
+
var Status = function() {
|
|
3382
|
+
var audioThreadContext = useAudioThreadContext();
|
|
3383
|
+
if (audioThreadContext.status === "recording") {
|
|
3384
|
+
return /* @__PURE__ */ jsx59(StatusMessages, {
|
|
3385
|
+
texts: [
|
|
3386
|
+
"Start speaking",
|
|
3387
|
+
"Listening",
|
|
3388
|
+
"Finish speaking to send",
|
|
3389
|
+
"Click the button below to send manually"
|
|
3390
|
+
]
|
|
3391
|
+
});
|
|
3392
|
+
}
|
|
3393
|
+
if ([
|
|
3394
|
+
"recorderPaused",
|
|
3395
|
+
"idle",
|
|
3396
|
+
"playerPaused"
|
|
3397
|
+
].includes(audioThreadContext.status)) {
|
|
3398
|
+
return /* @__PURE__ */ jsx59(StatusMessages, {
|
|
3399
|
+
texts: [
|
|
3400
|
+
"Click the button below to activate"
|
|
3401
|
+
]
|
|
3402
|
+
});
|
|
3403
|
+
}
|
|
3404
|
+
if (audioThreadContext.status === "playing") {
|
|
3405
|
+
return /* @__PURE__ */ jsx59(StatusMessages, {
|
|
3406
|
+
texts: [
|
|
3407
|
+
"Click the button below to interrupt"
|
|
3408
|
+
]
|
|
3409
|
+
});
|
|
3410
|
+
}
|
|
3411
|
+
return /* @__PURE__ */ jsx59(StatusMessages, {
|
|
3412
|
+
texts: [
|
|
3413
|
+
"Thinking"
|
|
3414
|
+
]
|
|
3331
3415
|
});
|
|
3332
3416
|
};
|
|
3333
3417
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
3334
|
-
import { Flex as
|
|
3418
|
+
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
3419
|
+
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
3420
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
3421
|
+
var MicIcon = function(props) {
|
|
3422
|
+
return /* @__PURE__ */ jsx60("svg", _object_spread_props(_object_spread({
|
|
3423
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3424
|
+
fill: "currentColor",
|
|
3425
|
+
stroke: "currentColor",
|
|
3426
|
+
strokeWidth: 0,
|
|
3427
|
+
viewBox: "0 0 384 512",
|
|
3428
|
+
height: "15",
|
|
3429
|
+
width: "15"
|
|
3430
|
+
}, props), {
|
|
3431
|
+
children: /* @__PURE__ */ jsx60("path", {
|
|
3432
|
+
stroke: "none",
|
|
3433
|
+
d: "M192 0c-53 0-96 43-96 96v160c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1 66.2 162.7 152 174.4V464h-48c-13.3 0-24 10.7-24 24s10.7 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24h-48v-33.6c85.8-11.7 152-85.3 152-174.4v-40c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 70.7-57.3 128-128 128S64 326.7 64 256v-40z"
|
|
3434
|
+
})
|
|
3435
|
+
}));
|
|
3436
|
+
};
|
|
3335
3437
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
3336
|
-
import { Flex as
|
|
3438
|
+
import { Flex as Flex24, IconButton as IconButton4 } from "@radix-ui/themes";
|
|
3337
3439
|
import { StopIcon as StopIcon2, PauseIcon, ArrowUpIcon as ArrowUpIcon2, ResumeIcon } from "@radix-ui/react-icons";
|
|
3338
|
-
import { jsx as
|
|
3440
|
+
import { jsx as jsx61, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3339
3441
|
var ActionButton = function() {
|
|
3340
3442
|
var audioThreadContext = useAudioThreadContext();
|
|
3341
3443
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
3342
3444
|
if (audioThreadContext.status === "recording") {
|
|
3343
|
-
return /* @__PURE__ */
|
|
3445
|
+
return /* @__PURE__ */ jsxs20(Flex24, {
|
|
3344
3446
|
align: "center",
|
|
3345
3447
|
children: [
|
|
3346
|
-
/* @__PURE__ */
|
|
3448
|
+
/* @__PURE__ */ jsx61(Flex24, {
|
|
3347
3449
|
mr: "3",
|
|
3348
3450
|
ml: "-7",
|
|
3349
|
-
children: /* @__PURE__ */
|
|
3451
|
+
children: /* @__PURE__ */ jsx61(IconButton4, {
|
|
3350
3452
|
onClick: audioThreadContext.recorderProps.pause,
|
|
3351
3453
|
color: "gray",
|
|
3352
|
-
radius: "full",
|
|
3353
3454
|
variant: "soft",
|
|
3354
3455
|
size: "1",
|
|
3355
|
-
children: /* @__PURE__ */
|
|
3456
|
+
children: /* @__PURE__ */ jsx61(PauseIcon, {})
|
|
3356
3457
|
})
|
|
3357
3458
|
}),
|
|
3358
|
-
/* @__PURE__ */
|
|
3459
|
+
/* @__PURE__ */ jsx61(IconButton4, {
|
|
3359
3460
|
onClick: audioThreadContext.recorderProps.stop,
|
|
3360
3461
|
highContrast: true,
|
|
3361
|
-
radius: "full",
|
|
3362
3462
|
variant: "soft",
|
|
3363
3463
|
size: "4",
|
|
3364
|
-
|
|
3365
|
-
border: "2px solid var(--gray-8)"
|
|
3366
|
-
},
|
|
3367
|
-
children: /* @__PURE__ */ jsx58(ArrowUpIcon2, {})
|
|
3464
|
+
children: /* @__PURE__ */ jsx61(ArrowUpIcon2, {})
|
|
3368
3465
|
})
|
|
3369
3466
|
]
|
|
3370
3467
|
});
|
|
3371
3468
|
}
|
|
3372
3469
|
if (audioThreadContext.status === "recorderPaused") {
|
|
3373
|
-
return /* @__PURE__ */
|
|
3470
|
+
return /* @__PURE__ */ jsx61(IconButton4, {
|
|
3374
3471
|
onClick: audioThreadContext.recorderProps.resume,
|
|
3375
3472
|
color: "red",
|
|
3376
|
-
radius: "full",
|
|
3377
3473
|
size: "4",
|
|
3378
|
-
|
|
3379
|
-
border: "2px solid var(--gray-8)"
|
|
3380
|
-
},
|
|
3381
|
-
children: /* @__PURE__ */ jsx58(ResumeIcon, {})
|
|
3474
|
+
children: /* @__PURE__ */ jsx61(ResumeIcon, {})
|
|
3382
3475
|
});
|
|
3383
3476
|
}
|
|
3384
3477
|
if (audioThreadContext.status === "idle") {
|
|
3385
|
-
return /* @__PURE__ */
|
|
3478
|
+
return /* @__PURE__ */ jsx61(IconButton4, {
|
|
3386
3479
|
onClick: function() {
|
|
3387
3480
|
return audioThreadContext.recorderProps.start();
|
|
3388
3481
|
},
|
|
3389
3482
|
size: "4",
|
|
3390
|
-
color: "red"
|
|
3391
|
-
radius: "full",
|
|
3392
|
-
style: {
|
|
3393
|
-
border: "2px solid var(--gray-8)"
|
|
3394
|
-
}
|
|
3483
|
+
color: "red"
|
|
3395
3484
|
});
|
|
3396
3485
|
}
|
|
3397
3486
|
if (audioThreadContext.status === "playing") {
|
|
3398
|
-
return /* @__PURE__ */
|
|
3487
|
+
return /* @__PURE__ */ jsx61(IconButton4, {
|
|
3399
3488
|
onClick: function() {
|
|
3400
3489
|
var _superinterfaceContext_createMessageAbortControllerRef_current;
|
|
3401
3490
|
audioThreadContext.messageAudioProps.stop();
|
|
@@ -3404,74 +3493,75 @@ var ActionButton = function() {
|
|
|
3404
3493
|
},
|
|
3405
3494
|
size: "4",
|
|
3406
3495
|
color: "gray",
|
|
3407
|
-
radius: "full",
|
|
3408
3496
|
variant: "soft",
|
|
3409
|
-
|
|
3410
|
-
border: "2px solid var(--gray-8)"
|
|
3411
|
-
},
|
|
3412
|
-
children: /* @__PURE__ */ jsx58(StopIcon2, {})
|
|
3497
|
+
children: /* @__PURE__ */ jsx61(StopIcon2, {})
|
|
3413
3498
|
});
|
|
3414
3499
|
}
|
|
3415
3500
|
if (audioThreadContext.status === "playerPaused") {
|
|
3416
|
-
return /* @__PURE__ */
|
|
3501
|
+
return /* @__PURE__ */ jsx61(IconButton4, {
|
|
3417
3502
|
onClick: function() {
|
|
3418
3503
|
return audioThreadContext.messageAudioProps.play();
|
|
3419
3504
|
},
|
|
3420
3505
|
size: "4",
|
|
3421
|
-
|
|
3422
|
-
style: {
|
|
3423
|
-
border: "2px solid var(--gray-8)"
|
|
3424
|
-
},
|
|
3425
|
-
children: /* @__PURE__ */ jsx58(ResumeIcon, {})
|
|
3506
|
+
children: /* @__PURE__ */ jsx61(ResumeIcon, {})
|
|
3426
3507
|
});
|
|
3427
3508
|
}
|
|
3428
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ jsx61(IconButton4, {
|
|
3429
3510
|
size: "4",
|
|
3430
|
-
radius: "full",
|
|
3431
3511
|
variant: "soft",
|
|
3432
|
-
disabled: true
|
|
3433
|
-
style: {
|
|
3434
|
-
border: "2px solid var(--gray-8)"
|
|
3435
|
-
}
|
|
3512
|
+
disabled: true
|
|
3436
3513
|
});
|
|
3437
3514
|
};
|
|
3438
3515
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
3439
|
-
import { jsx as
|
|
3516
|
+
import { jsx as jsx62, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3440
3517
|
var Form = function() {
|
|
3441
3518
|
var audioThreadContext = useAudioThreadContext();
|
|
3442
|
-
return /* @__PURE__ */
|
|
3519
|
+
return /* @__PURE__ */ jsxs21(Flex25, {
|
|
3443
3520
|
direction: "column",
|
|
3444
3521
|
align: "center",
|
|
3445
3522
|
children: [
|
|
3446
|
-
/* @__PURE__ */
|
|
3523
|
+
/* @__PURE__ */ jsxs21(Flex25, {
|
|
3447
3524
|
pb: "3",
|
|
3448
3525
|
align: "center",
|
|
3449
|
-
children:
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3526
|
+
children: [
|
|
3527
|
+
/* @__PURE__ */ jsx62(Flex25, {
|
|
3528
|
+
ml: "-22.5px",
|
|
3529
|
+
mr: "2",
|
|
3530
|
+
align: "center",
|
|
3531
|
+
children: /* @__PURE__ */ jsx62(MicIcon, {
|
|
3532
|
+
style: {
|
|
3533
|
+
color: audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)"
|
|
3534
|
+
}
|
|
3535
|
+
})
|
|
3536
|
+
}),
|
|
3537
|
+
/* @__PURE__ */ jsx62(Flex25, {
|
|
3538
|
+
px: "2",
|
|
3539
|
+
py: "1",
|
|
3540
|
+
style: {
|
|
3541
|
+
backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-4)" : "var(--gray-4)",
|
|
3542
|
+
borderRadius: "var(--radius-6)"
|
|
3543
|
+
},
|
|
3544
|
+
children: /* @__PURE__ */ jsx62(BarsVisualizer, {
|
|
3545
|
+
visualizationAnalyser: audioThreadContext.recorderProps.visualizationAnalyser,
|
|
3546
|
+
backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)",
|
|
3547
|
+
height: "20px",
|
|
3548
|
+
barWidth: "12px"
|
|
3549
|
+
})
|
|
3461
3550
|
})
|
|
3462
|
-
|
|
3551
|
+
]
|
|
3463
3552
|
}),
|
|
3464
|
-
/* @__PURE__ */
|
|
3553
|
+
/* @__PURE__ */ jsx62(ActionButton, {})
|
|
3465
3554
|
]
|
|
3466
3555
|
});
|
|
3467
3556
|
};
|
|
3468
3557
|
// src/components/threads/AudioThread/index.tsx
|
|
3469
|
-
import { jsx as
|
|
3558
|
+
import { jsx as jsx63, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3470
3559
|
var AudioThread = function(props) {
|
|
3471
|
-
return /* @__PURE__ */
|
|
3560
|
+
return /* @__PURE__ */ jsxs22(Root8, _object_spread_props(_object_spread({}, props), {
|
|
3472
3561
|
children: [
|
|
3473
|
-
/* @__PURE__ */
|
|
3474
|
-
/* @__PURE__ */
|
|
3562
|
+
/* @__PURE__ */ jsx63(Visualization, {}),
|
|
3563
|
+
/* @__PURE__ */ jsx63(Status, {}),
|
|
3564
|
+
/* @__PURE__ */ jsx63(Form, {})
|
|
3475
3565
|
]
|
|
3476
3566
|
}));
|
|
3477
3567
|
};
|
|
@@ -3479,15 +3569,15 @@ AudioThread.Root = Root8;
|
|
|
3479
3569
|
AudioThread.Visualization = Visualization;
|
|
3480
3570
|
AudioThread.Form = Form;
|
|
3481
3571
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
3482
|
-
import { jsx as
|
|
3572
|
+
import { jsx as jsx64, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3483
3573
|
var AudioThreadDialog = function() {
|
|
3484
|
-
return /* @__PURE__ */
|
|
3574
|
+
return /* @__PURE__ */ jsxs23(Root6, {
|
|
3485
3575
|
children: [
|
|
3486
|
-
/* @__PURE__ */
|
|
3487
|
-
children: /* @__PURE__ */
|
|
3576
|
+
/* @__PURE__ */ jsx64(Content4.Root, {
|
|
3577
|
+
children: /* @__PURE__ */ jsx64(AudioThread, {})
|
|
3488
3578
|
}),
|
|
3489
|
-
/* @__PURE__ */
|
|
3490
|
-
children: /* @__PURE__ */
|
|
3579
|
+
/* @__PURE__ */ jsx64(Trigger, {
|
|
3580
|
+
children: /* @__PURE__ */ jsx64(Button2, {})
|
|
3491
3581
|
})
|
|
3492
3582
|
]
|
|
3493
3583
|
});
|
|
@@ -3502,15 +3592,15 @@ import { useMemo as useMemo14 } from "react";
|
|
|
3502
3592
|
import { useMemo as useMemo13 } from "react";
|
|
3503
3593
|
import { isEmpty as isEmpty2 } from "radash";
|
|
3504
3594
|
import { onlyText } from "react-children-utilities";
|
|
3505
|
-
import { Flex as
|
|
3595
|
+
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
3506
3596
|
// src/components/suggestions/Suggestions/Item.tsx
|
|
3507
3597
|
import { ArrowUpIcon as ArrowUpIcon3 } from "@radix-ui/react-icons";
|
|
3508
|
-
import { Text as
|
|
3509
|
-
import { jsx as
|
|
3598
|
+
import { Text as Text8, Button as Button3, Spinner } from "@radix-ui/themes";
|
|
3599
|
+
import { jsx as jsx65, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3510
3600
|
var Item = function(param) {
|
|
3511
3601
|
var suggestion = param.suggestion, isDisabled = param.isDisabled;
|
|
3512
3602
|
var _useCreateMessage = useCreateMessage(), createMessage = _useCreateMessage.createMessage, isPending = _useCreateMessage.isPending;
|
|
3513
|
-
return /* @__PURE__ */
|
|
3603
|
+
return /* @__PURE__ */ jsx65(Content5, {
|
|
3514
3604
|
onClick: function() {
|
|
3515
3605
|
createMessage({
|
|
3516
3606
|
// @ts-ignore-next-line
|
|
@@ -3524,7 +3614,7 @@ var Item = function(param) {
|
|
|
3524
3614
|
};
|
|
3525
3615
|
var Content5 = function(param) {
|
|
3526
3616
|
var onClick = param.onClick, isDisabled = param.isDisabled, isPending = param.isPending, children = param.children;
|
|
3527
|
-
return /* @__PURE__ */
|
|
3617
|
+
return /* @__PURE__ */ jsxs24(Button3, {
|
|
3528
3618
|
variant: "soft",
|
|
3529
3619
|
onClick: onClick,
|
|
3530
3620
|
disabled: isDisabled,
|
|
@@ -3534,14 +3624,14 @@ var Content5 = function(param) {
|
|
|
3534
3624
|
flexShrink: 1
|
|
3535
3625
|
},
|
|
3536
3626
|
children: [
|
|
3537
|
-
/* @__PURE__ */
|
|
3627
|
+
/* @__PURE__ */ jsx65(Text8, {
|
|
3538
3628
|
size: "1",
|
|
3539
3629
|
weight: "regular",
|
|
3540
3630
|
children: children
|
|
3541
3631
|
}),
|
|
3542
|
-
/* @__PURE__ */
|
|
3632
|
+
/* @__PURE__ */ jsx65(Spinner, {
|
|
3543
3633
|
loading: isPending,
|
|
3544
|
-
children: /* @__PURE__ */
|
|
3634
|
+
children: /* @__PURE__ */ jsx65(ArrowUpIcon3, {
|
|
3545
3635
|
style: {
|
|
3546
3636
|
flexShrink: 0
|
|
3547
3637
|
}
|
|
@@ -3552,7 +3642,7 @@ var Content5 = function(param) {
|
|
|
3552
3642
|
};
|
|
3553
3643
|
Item.Content = Content5;
|
|
3554
3644
|
// src/components/suggestions/Suggestions/Content.tsx
|
|
3555
|
-
import { jsx as
|
|
3645
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
3556
3646
|
var Content6 = function(param) {
|
|
3557
3647
|
var children = param.children;
|
|
3558
3648
|
var isMutatingMessage = useIsMutatingMessage();
|
|
@@ -3566,12 +3656,12 @@ var Content6 = function(param) {
|
|
|
3566
3656
|
children
|
|
3567
3657
|
]);
|
|
3568
3658
|
if (isEmpty2(suggestions)) return null;
|
|
3569
|
-
return /* @__PURE__ */
|
|
3659
|
+
return /* @__PURE__ */ jsx66(Flex26, {
|
|
3570
3660
|
gap: "2",
|
|
3571
3661
|
py: "2",
|
|
3572
3662
|
wrap: "wrap",
|
|
3573
3663
|
children: suggestions.map(function(suggestion) {
|
|
3574
|
-
return /* @__PURE__ */
|
|
3664
|
+
return /* @__PURE__ */ jsx66(Item, {
|
|
3575
3665
|
suggestion: suggestion,
|
|
3576
3666
|
isDisabled: isMutatingMessage
|
|
3577
3667
|
}, suggestion);
|
|
@@ -3579,7 +3669,7 @@ var Content6 = function(param) {
|
|
|
3579
3669
|
});
|
|
3580
3670
|
};
|
|
3581
3671
|
// src/components/suggestions/Suggestions/index.tsx
|
|
3582
|
-
import { jsx as
|
|
3672
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
3583
3673
|
var Suggestions = function(param) {
|
|
3584
3674
|
var children = param.children;
|
|
3585
3675
|
var latestMessageProps = useLatestMessage();
|
|
@@ -3592,14 +3682,14 @@ var Suggestions = function(param) {
|
|
|
3592
3682
|
]);
|
|
3593
3683
|
if (latestMessageProps.isLoading) return null;
|
|
3594
3684
|
if (isDisabled) return null;
|
|
3595
|
-
return /* @__PURE__ */
|
|
3685
|
+
return /* @__PURE__ */ jsx67(Content6, {
|
|
3596
3686
|
children: children
|
|
3597
3687
|
});
|
|
3598
3688
|
};
|
|
3599
3689
|
Suggestions.Item = Item;
|
|
3600
3690
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
3601
3691
|
import { useMemo as useMemo15 } from "react";
|
|
3602
|
-
import { jsx as
|
|
3692
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
3603
3693
|
var MarkdownProvider = function(_param) {
|
|
3604
3694
|
var children = _param.children, rest = _object_without_properties(_param, [
|
|
3605
3695
|
"children"
|
|
@@ -3611,7 +3701,7 @@ var MarkdownProvider = function(_param) {
|
|
|
3611
3701
|
rest,
|
|
3612
3702
|
prevMarkdownContext
|
|
3613
3703
|
]);
|
|
3614
|
-
return /* @__PURE__ */
|
|
3704
|
+
return /* @__PURE__ */ jsx68(MarkdownContext.Provider, {
|
|
3615
3705
|
value: value,
|
|
3616
3706
|
children: children
|
|
3617
3707
|
});
|