@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 CHANGED
@@ -3359,6 +3359,7 @@ var Root8 = function(param) {
3359
3359
  });
3360
3360
  };
3361
3361
  // src/components/threads/AudioThread/Visualization/index.tsx
3362
+ var import_react44 = require("react");
3362
3363
  var import_themes43 = require("@radix-ui/themes");
3363
3364
  // src/hooks/threads/useAudioThreadContext/index.ts
3364
3365
  var import_react42 = require("react");
@@ -3433,96 +3434,184 @@ var BarsVisualizer = function(param) {
3433
3434
  var import_jsx_runtime57 = require("react/jsx-runtime");
3434
3435
  var Visualization = function() {
3435
3436
  var audioThreadContext = useAudioThreadContext();
3436
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes43.Flex, {
3437
+ var assistantNameContext = (0, import_react44.useContext)(AssistantNameContext);
3438
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes43.Flex, {
3437
3439
  direction: "column",
3438
3440
  align: "center",
3439
3441
  justify: "center",
3440
3442
  mb: "3",
3441
3443
  flexGrow: "1",
3442
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes43.Flex, {
3443
- align: "center",
3444
- justify: "center",
3445
- height: "200px",
3446
- width: "200px",
3447
- style: {
3448
- backgroundColor: audioThreadContext.status === "playing" ? "var(--accent-4)" : "var(--gray-4)",
3449
- borderRadius: "9999px"
3450
- },
3451
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BarsVisualizer, {
3452
- visualizationAnalyser: audioThreadContext.messageAudioProps.visualizationAnalyser,
3453
- backgroundColor: audioThreadContext.status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
3454
- height: "40px",
3455
- barWidth: "24px"
3444
+ children: [
3445
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes43.Flex, {
3446
+ align: "center",
3447
+ justify: "center",
3448
+ height: "200px",
3449
+ width: "200px",
3450
+ style: {
3451
+ backgroundColor: audioThreadContext.status === "playing" ? "var(--accent-4)" : "var(--gray-4)",
3452
+ borderRadius: "9999px"
3453
+ },
3454
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BarsVisualizer, {
3455
+ visualizationAnalyser: audioThreadContext.messageAudioProps.visualizationAnalyser,
3456
+ backgroundColor: audioThreadContext.status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
3457
+ height: "40px",
3458
+ barWidth: "24px"
3459
+ })
3460
+ }),
3461
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes43.Flex, {
3462
+ ml: "-22.5px",
3463
+ gap: "3",
3464
+ pt: "5",
3465
+ children: [
3466
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AssistantAvatar, {}),
3467
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Name, {
3468
+ children: assistantNameContext
3469
+ })
3470
+ ]
3456
3471
  })
3457
- })
3472
+ ]
3473
+ });
3474
+ };
3475
+ // src/components/threads/AudioThread/Status/StatusMessages.tsx
3476
+ var import_themes44 = require("@radix-ui/themes");
3477
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3478
+ var html = function(param) {
3479
+ var texts = param.texts;
3480
+ 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) {
3481
+ return "\n ".concat(i * 100 / texts.length, '% {\n content: "').concat(texts[i], '";\n }\n ');
3482
+ }).join(""), "\n }");
3483
+ };
3484
+ var StatusMessages = function(param) {
3485
+ var texts = param.texts;
3486
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes44.Flex, {
3487
+ justify: "center",
3488
+ pb: "5",
3489
+ children: [
3490
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.Text, {
3491
+ size: "2",
3492
+ weight: "regular",
3493
+ color: "gray",
3494
+ className: "status-messages-texts"
3495
+ }),
3496
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("style", {
3497
+ dangerouslySetInnerHTML: {
3498
+ __html: html({
3499
+ texts: texts
3500
+ })
3501
+ }
3502
+ })
3503
+ ]
3504
+ });
3505
+ };
3506
+ // src/components/threads/AudioThread/Status/index.tsx
3507
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3508
+ var Status = function() {
3509
+ var audioThreadContext = useAudioThreadContext();
3510
+ if (audioThreadContext.status === "recording") {
3511
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3512
+ texts: [
3513
+ "Start speaking",
3514
+ "Listening",
3515
+ "Finish speaking to send",
3516
+ "Click the button below to send manually"
3517
+ ]
3518
+ });
3519
+ }
3520
+ if ([
3521
+ "recorderPaused",
3522
+ "idle",
3523
+ "playerPaused"
3524
+ ].includes(audioThreadContext.status)) {
3525
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3526
+ texts: [
3527
+ "Click the button below to activate"
3528
+ ]
3529
+ });
3530
+ }
3531
+ if (audioThreadContext.status === "playing") {
3532
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3533
+ texts: [
3534
+ "Click the button below to interrupt"
3535
+ ]
3536
+ });
3537
+ }
3538
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3539
+ texts: [
3540
+ "Thinking"
3541
+ ]
3458
3542
  });
3459
3543
  };
3460
3544
  // src/components/threads/AudioThread/Form/index.tsx
3461
- var import_themes45 = require("@radix-ui/themes");
3545
+ var import_themes46 = require("@radix-ui/themes");
3546
+ // src/components/threads/AudioThread/Form/MicIcon.tsx
3547
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3548
+ var MicIcon = function(props) {
3549
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("svg", _object_spread_props(_object_spread({
3550
+ xmlns: "http://www.w3.org/2000/svg",
3551
+ fill: "currentColor",
3552
+ stroke: "currentColor",
3553
+ strokeWidth: 0,
3554
+ viewBox: "0 0 384 512",
3555
+ height: "15",
3556
+ width: "15"
3557
+ }, props), {
3558
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", {
3559
+ stroke: "none",
3560
+ 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"
3561
+ })
3562
+ }));
3563
+ };
3462
3564
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
3463
- var import_themes44 = require("@radix-ui/themes");
3565
+ var import_themes45 = require("@radix-ui/themes");
3464
3566
  var import_react_icons9 = require("@radix-ui/react-icons");
3465
- var import_jsx_runtime58 = require("react/jsx-runtime");
3567
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3466
3568
  var ActionButton = function() {
3467
3569
  var audioThreadContext = useAudioThreadContext();
3468
3570
  var superinterfaceContext = useSuperinterfaceContext();
3469
3571
  if (audioThreadContext.status === "recording") {
3470
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes44.Flex, {
3572
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes45.Flex, {
3471
3573
  align: "center",
3472
3574
  children: [
3473
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.Flex, {
3575
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.Flex, {
3474
3576
  mr: "3",
3475
3577
  ml: "-7",
3476
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.IconButton, {
3578
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3477
3579
  onClick: audioThreadContext.recorderProps.pause,
3478
3580
  color: "gray",
3479
- radius: "full",
3480
3581
  variant: "soft",
3481
3582
  size: "1",
3482
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons9.PauseIcon, {})
3583
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.PauseIcon, {})
3483
3584
  })
3484
3585
  }),
3485
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.IconButton, {
3586
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3486
3587
  onClick: audioThreadContext.recorderProps.stop,
3487
3588
  highContrast: true,
3488
- radius: "full",
3489
3589
  variant: "soft",
3490
3590
  size: "4",
3491
- style: {
3492
- border: "2px solid var(--gray-8)"
3493
- },
3494
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons9.ArrowUpIcon, {})
3591
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.ArrowUpIcon, {})
3495
3592
  })
3496
3593
  ]
3497
3594
  });
3498
3595
  }
3499
3596
  if (audioThreadContext.status === "recorderPaused") {
3500
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.IconButton, {
3597
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3501
3598
  onClick: audioThreadContext.recorderProps.resume,
3502
3599
  color: "red",
3503
- radius: "full",
3504
3600
  size: "4",
3505
- style: {
3506
- border: "2px solid var(--gray-8)"
3507
- },
3508
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons9.ResumeIcon, {})
3601
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.ResumeIcon, {})
3509
3602
  });
3510
3603
  }
3511
3604
  if (audioThreadContext.status === "idle") {
3512
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.IconButton, {
3605
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3513
3606
  onClick: function() {
3514
3607
  return audioThreadContext.recorderProps.start();
3515
3608
  },
3516
3609
  size: "4",
3517
- color: "red",
3518
- radius: "full",
3519
- style: {
3520
- border: "2px solid var(--gray-8)"
3521
- }
3610
+ color: "red"
3522
3611
  });
3523
3612
  }
3524
3613
  if (audioThreadContext.status === "playing") {
3525
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.IconButton, {
3614
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3526
3615
  onClick: function() {
3527
3616
  var _superinterfaceContext_createMessageAbortControllerRef_current;
3528
3617
  audioThreadContext.messageAudioProps.stop();
@@ -3531,74 +3620,75 @@ var ActionButton = function() {
3531
3620
  },
3532
3621
  size: "4",
3533
3622
  color: "gray",
3534
- radius: "full",
3535
3623
  variant: "soft",
3536
- style: {
3537
- border: "2px solid var(--gray-8)"
3538
- },
3539
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons9.StopIcon, {})
3624
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.StopIcon, {})
3540
3625
  });
3541
3626
  }
3542
3627
  if (audioThreadContext.status === "playerPaused") {
3543
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.IconButton, {
3628
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3544
3629
  onClick: function() {
3545
3630
  return audioThreadContext.messageAudioProps.play();
3546
3631
  },
3547
3632
  size: "4",
3548
- radius: "full",
3549
- style: {
3550
- border: "2px solid var(--gray-8)"
3551
- },
3552
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons9.ResumeIcon, {})
3633
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.ResumeIcon, {})
3553
3634
  });
3554
3635
  }
3555
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.IconButton, {
3636
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3556
3637
  size: "4",
3557
- radius: "full",
3558
3638
  variant: "soft",
3559
- disabled: true,
3560
- style: {
3561
- border: "2px solid var(--gray-8)"
3562
- }
3639
+ disabled: true
3563
3640
  });
3564
3641
  };
3565
3642
  // src/components/threads/AudioThread/Form/index.tsx
3566
- var import_jsx_runtime59 = require("react/jsx-runtime");
3643
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3567
3644
  var Form = function() {
3568
3645
  var audioThreadContext = useAudioThreadContext();
3569
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes45.Flex, {
3646
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes46.Flex, {
3570
3647
  direction: "column",
3571
3648
  align: "center",
3572
3649
  children: [
3573
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes45.Flex, {
3650
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes46.Flex, {
3574
3651
  pb: "3",
3575
3652
  align: "center",
3576
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes45.Flex, {
3577
- px: "2",
3578
- py: "1",
3579
- style: {
3580
- backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-4)" : "var(--gray-4)",
3581
- borderRadius: "var(--radius-6)"
3582
- },
3583
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(BarsVisualizer, {
3584
- visualizationAnalyser: audioThreadContext.recorderProps.visualizationAnalyser,
3585
- backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)",
3586
- height: "20px",
3587
- barWidth: "12px"
3653
+ children: [
3654
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes46.Flex, {
3655
+ ml: "-22.5px",
3656
+ mr: "2",
3657
+ align: "center",
3658
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MicIcon, {
3659
+ style: {
3660
+ color: audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)"
3661
+ }
3662
+ })
3663
+ }),
3664
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes46.Flex, {
3665
+ px: "2",
3666
+ py: "1",
3667
+ style: {
3668
+ backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-4)" : "var(--gray-4)",
3669
+ borderRadius: "var(--radius-6)"
3670
+ },
3671
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BarsVisualizer, {
3672
+ visualizationAnalyser: audioThreadContext.recorderProps.visualizationAnalyser,
3673
+ backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)",
3674
+ height: "20px",
3675
+ barWidth: "12px"
3676
+ })
3588
3677
  })
3589
- })
3678
+ ]
3590
3679
  }),
3591
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ActionButton, {})
3680
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ActionButton, {})
3592
3681
  ]
3593
3682
  });
3594
3683
  };
3595
3684
  // src/components/threads/AudioThread/index.tsx
3596
- var import_jsx_runtime60 = require("react/jsx-runtime");
3685
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3597
3686
  var AudioThread = function(props) {
3598
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Root8, _object_spread_props(_object_spread({}, props), {
3687
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Root8, _object_spread_props(_object_spread({}, props), {
3599
3688
  children: [
3600
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Visualization, {}),
3601
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Form, {})
3689
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Visualization, {}),
3690
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Status, {}),
3691
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Form, {})
3602
3692
  ]
3603
3693
  }));
3604
3694
  };
@@ -3606,15 +3696,15 @@ AudioThread.Root = Root8;
3606
3696
  AudioThread.Visualization = Visualization;
3607
3697
  AudioThread.Form = Form;
3608
3698
  // src/components/threads/AudioThreadDialog/index.tsx
3609
- var import_jsx_runtime61 = require("react/jsx-runtime");
3699
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3610
3700
  var AudioThreadDialog = function() {
3611
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Root6, {
3701
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Root6, {
3612
3702
  children: [
3613
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Content4.Root, {
3614
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AudioThread, {})
3703
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Content4.Root, {
3704
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(AudioThread, {})
3615
3705
  }),
3616
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Trigger, {
3617
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button2, {})
3706
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Trigger, {
3707
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button2, {})
3618
3708
  })
3619
3709
  ]
3620
3710
  });
@@ -3624,20 +3714,20 @@ AudioThreadDialog.Trigger = Trigger;
3624
3714
  AudioThreadDialog.Button = Button2;
3625
3715
  AudioThreadDialog.Content = Content4;
3626
3716
  // src/components/suggestions/Suggestions/index.tsx
3627
- var import_react45 = require("react");
3717
+ var import_react46 = require("react");
3628
3718
  // src/components/suggestions/Suggestions/Content.tsx
3629
- var import_react44 = require("react");
3719
+ var import_react45 = require("react");
3630
3720
  var import_radash13 = require("radash");
3631
3721
  var import_react_children_utilities = require("react-children-utilities");
3632
- var import_themes47 = require("@radix-ui/themes");
3722
+ var import_themes48 = require("@radix-ui/themes");
3633
3723
  // src/components/suggestions/Suggestions/Item.tsx
3634
3724
  var import_react_icons10 = require("@radix-ui/react-icons");
3635
- var import_themes46 = require("@radix-ui/themes");
3636
- var import_jsx_runtime62 = require("react/jsx-runtime");
3725
+ var import_themes47 = require("@radix-ui/themes");
3726
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3637
3727
  var Item = function(param) {
3638
3728
  var suggestion = param.suggestion, isDisabled = param.isDisabled;
3639
3729
  var _useCreateMessage = useCreateMessage(), createMessage = _useCreateMessage.createMessage, isPending = _useCreateMessage.isPending;
3640
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Content5, {
3730
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Content5, {
3641
3731
  onClick: function() {
3642
3732
  createMessage({
3643
3733
  // @ts-ignore-next-line
@@ -3651,7 +3741,7 @@ var Item = function(param) {
3651
3741
  };
3652
3742
  var Content5 = function(param) {
3653
3743
  var onClick = param.onClick, isDisabled = param.isDisabled, isPending = param.isPending, children = param.children;
3654
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes46.Button, {
3744
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes47.Button, {
3655
3745
  variant: "soft",
3656
3746
  onClick: onClick,
3657
3747
  disabled: isDisabled,
@@ -3661,14 +3751,14 @@ var Content5 = function(param) {
3661
3751
  flexShrink: 1
3662
3752
  },
3663
3753
  children: [
3664
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes46.Text, {
3754
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes47.Text, {
3665
3755
  size: "1",
3666
3756
  weight: "regular",
3667
3757
  children: children
3668
3758
  }),
3669
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes46.Spinner, {
3759
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes47.Spinner, {
3670
3760
  loading: isPending,
3671
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons10.ArrowUpIcon, {
3761
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons10.ArrowUpIcon, {
3672
3762
  style: {
3673
3763
  flexShrink: 0
3674
3764
  }
@@ -3679,11 +3769,11 @@ var Content5 = function(param) {
3679
3769
  };
3680
3770
  Item.Content = Content5;
3681
3771
  // src/components/suggestions/Suggestions/Content.tsx
3682
- var import_jsx_runtime63 = require("react/jsx-runtime");
3772
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3683
3773
  var Content6 = function(param) {
3684
3774
  var children = param.children;
3685
3775
  var isMutatingMessage = useIsMutatingMessage();
3686
- var suggestions = (0, import_react44.useMemo)(function() {
3776
+ var suggestions = (0, import_react45.useMemo)(function() {
3687
3777
  return (0, import_react_children_utilities.onlyText)(children).split(/\r?\n/).filter(function(c) {
3688
3778
  return !(0, import_radash13.isEmpty)(c);
3689
3779
  }).map(function(c) {
@@ -3693,12 +3783,12 @@ var Content6 = function(param) {
3693
3783
  children
3694
3784
  ]);
3695
3785
  if ((0, import_radash13.isEmpty)(suggestions)) return null;
3696
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes47.Flex, {
3786
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes48.Flex, {
3697
3787
  gap: "2",
3698
3788
  py: "2",
3699
3789
  wrap: "wrap",
3700
3790
  children: suggestions.map(function(suggestion) {
3701
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Item, {
3791
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Item, {
3702
3792
  suggestion: suggestion,
3703
3793
  isDisabled: isMutatingMessage
3704
3794
  }, suggestion);
@@ -3706,11 +3796,11 @@ var Content6 = function(param) {
3706
3796
  });
3707
3797
  };
3708
3798
  // src/components/suggestions/Suggestions/index.tsx
3709
- var import_jsx_runtime64 = require("react/jsx-runtime");
3799
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3710
3800
  var Suggestions = function(param) {
3711
3801
  var children = param.children;
3712
3802
  var latestMessageProps = useLatestMessage();
3713
- var isDisabled = (0, import_react45.useMemo)(function() {
3803
+ var isDisabled = (0, import_react46.useMemo)(function() {
3714
3804
  var // @ts-ignore-next-line
3715
3805
  _latestMessageProps_latestMessage_metadata, _latestMessageProps_latestMessage;
3716
3806
  return (_latestMessageProps_latestMessage = latestMessageProps.latestMessage) === null || _latestMessageProps_latestMessage === void 0 ? void 0 : (_latestMessageProps_latestMessage_metadata = _latestMessageProps_latestMessage.metadata) === null || _latestMessageProps_latestMessage_metadata === void 0 ? void 0 : _latestMessageProps_latestMessage_metadata.isBlocking;
@@ -3719,26 +3809,26 @@ var Suggestions = function(param) {
3719
3809
  ]);
3720
3810
  if (latestMessageProps.isLoading) return null;
3721
3811
  if (isDisabled) return null;
3722
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Content6, {
3812
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Content6, {
3723
3813
  children: children
3724
3814
  });
3725
3815
  };
3726
3816
  Suggestions.Item = Item;
3727
3817
  // src/components/markdown/MarkdownProvider/index.tsx
3728
- var import_react46 = require("react");
3729
- var import_jsx_runtime65 = require("react/jsx-runtime");
3818
+ var import_react47 = require("react");
3819
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3730
3820
  var MarkdownProvider = function(_param) {
3731
3821
  var children = _param.children, rest = _object_without_properties(_param, [
3732
3822
  "children"
3733
3823
  ]);
3734
3824
  var prevMarkdownContext = useMarkdownContext();
3735
- var value = (0, import_react46.useMemo)(function() {
3825
+ var value = (0, import_react47.useMemo)(function() {
3736
3826
  return merge(prevMarkdownContext, rest);
3737
3827
  }, [
3738
3828
  rest,
3739
3829
  prevMarkdownContext
3740
3830
  ]);
3741
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MarkdownContext.Provider, {
3831
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(MarkdownContext.Provider, {
3742
3832
  value: value,
3743
3833
  children: children
3744
3834
  });