@superinterface/react 2.14.0 → 2.15.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/dist/index.cjs CHANGED
@@ -1176,7 +1176,7 @@ var MessageContext = (0, import_react19.createContext)({
1176
1176
  // src/components/threads/Thread/Message/Provider.tsx
1177
1177
  var Provider = MessageContext.Provider;
1178
1178
  // src/components/threads/Thread/Message/TextContent.tsx
1179
- var import_react_remark = require("react-remark");
1179
+ var import_react_markdown = __toESM(require("react-markdown"), 1);
1180
1180
  // src/hooks/markdown/useMarkdownContext/index.ts
1181
1181
  var import_react21 = require("react");
1182
1182
  // src/contexts/markdown/MarkdownContext/index.ts
@@ -1321,13 +1321,16 @@ var useMarkdownContext = function() {
1321
1321
  return (0, import_react21.useContext)(MarkdownContext);
1322
1322
  };
1323
1323
  // src/components/threads/Thread/Message/TextContent.tsx
1324
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1324
1325
  var TextContent = function(param) {
1325
1326
  var content = param.content;
1326
1327
  var markdownContext = useMarkdownContext();
1327
- return (0, import_react_remark.useRemarkSync)(content.text.value, markdownContext);
1328
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_markdown.default, _object_spread_props(_object_spread({}, markdownContext), {
1329
+ children: content.text.value
1330
+ }));
1328
1331
  };
1329
1332
  // src/components/threads/Thread/Message/index.tsx
1330
- var import_jsx_runtime30 = require("react/jsx-runtime");
1333
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1331
1334
  var Message = function(param) {
1332
1335
  var message = param.message;
1333
1336
  var _ref = _sliced_to_array((0, import_react22.useMemo)(function() {
@@ -1372,28 +1375,28 @@ var Message = function(param) {
1372
1375
  }, [
1373
1376
  message
1374
1377
  ]);
1375
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Provider, {
1378
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Provider, {
1376
1379
  value: {
1377
1380
  message: message
1378
1381
  },
1379
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes25.Box, {
1382
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes25.Box, {
1380
1383
  children: [
1381
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RunSteps, {
1384
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RunSteps, {
1382
1385
  runSteps: olderRunSteps
1383
1386
  }),
1384
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes25.Box, {
1387
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes25.Box, {
1385
1388
  children: [
1386
1389
  message.content.map(function(content, index) {
1387
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react22.Fragment, {
1388
- children: content.type === "text" && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TextContent, {
1390
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react22.Fragment, {
1391
+ children: content.type === "text" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TextContent, {
1389
1392
  content: content
1390
1393
  })
1391
1394
  }, index);
1392
1395
  }),
1393
- isInProgress && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StartingContentSkeleton, {})
1396
+ isInProgress && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StartingContentSkeleton, {})
1394
1397
  ]
1395
1398
  }),
1396
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RunSteps, {
1399
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RunSteps, {
1397
1400
  runSteps: laterRunSteps
1398
1401
  })
1399
1402
  ]
@@ -1401,36 +1404,36 @@ var Message = function(param) {
1401
1404
  });
1402
1405
  };
1403
1406
  // src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
1404
- var import_jsx_runtime31 = require("react/jsx-runtime");
1407
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1405
1408
  var Content2 = function(param) {
1406
1409
  var messageGroup = param.messageGroup;
1407
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes26.Flex, {
1410
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes26.Flex, {
1408
1411
  direction: "column-reverse",
1409
1412
  children: messageGroup.messages.map(function(message) {
1410
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Message, {
1413
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Message, {
1411
1414
  message: message
1412
1415
  }, message.id);
1413
1416
  })
1414
1417
  });
1415
1418
  };
1416
1419
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
1417
- var import_jsx_runtime32 = require("react/jsx-runtime");
1420
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1418
1421
  var MessageGroup = function(param) {
1419
1422
  var messageGroup = param.messageGroup;
1420
1423
  var assistantNameContext = (0, import_react23.useContext)(AssistantNameContext);
1421
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(MessageGroupBase, {
1424
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(MessageGroupBase, {
1422
1425
  children: [
1423
- messageGroup.role === "user" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes27.Avatar, {
1424
- fallback: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_icons4.PersonIcon, {}),
1426
+ messageGroup.role === "user" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes27.Avatar, {
1427
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_icons4.PersonIcon, {}),
1425
1428
  size: "1"
1426
- }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AssistantAvatar, {}),
1427
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes27.Box, {
1429
+ }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AssistantAvatar, {}),
1430
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes27.Box, {
1428
1431
  flexGrow: "1",
1429
1432
  children: [
1430
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Name, {
1433
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Name, {
1431
1434
  children: messageGroup.role === "user" ? "You" : assistantNameContext
1432
1435
  }),
1433
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Content2, {
1436
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Content2, {
1434
1437
  messageGroup: messageGroup
1435
1438
  })
1436
1439
  ]
@@ -1439,7 +1442,7 @@ var MessageGroup = function(param) {
1439
1442
  });
1440
1443
  };
1441
1444
  // src/components/threads/Thread/Messages/Content/index.tsx
1442
- var import_jsx_runtime33 = require("react/jsx-runtime");
1445
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1443
1446
  var Content3 = function() {
1444
1447
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
1445
1448
  var addToast = useToasts().addToast;
@@ -1458,11 +1461,11 @@ var Content3 = function() {
1458
1461
  addToast
1459
1462
  ]);
1460
1463
  if (isLoading || isLoadingError) {
1461
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MessagesSkeleton, {});
1464
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(MessagesSkeleton, {});
1462
1465
  }
1463
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {
1466
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, {
1464
1467
  children: messageGroups2.map(function(messageGroup) {
1465
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MessageGroup, {
1468
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(MessageGroup, {
1466
1469
  messageGroup: messageGroup
1467
1470
  }, messageGroup.id);
1468
1471
  })
@@ -1473,20 +1476,20 @@ var import_react27 = require("react");
1473
1476
  // src/components/skeletons/StartingSkeleton/index.tsx
1474
1477
  var import_react25 = require("react");
1475
1478
  var import_themes28 = require("@radix-ui/themes");
1476
- var import_jsx_runtime34 = require("react/jsx-runtime");
1479
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1477
1480
  var StartingSkeleton = function(param) {
1478
1481
  var children = param.children;
1479
1482
  var assistantNameContext = (0, import_react25.useContext)(AssistantNameContext);
1480
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(MessageGroupBase, {
1483
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(MessageGroupBase, {
1481
1484
  children: [
1482
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AssistantAvatar, {}),
1483
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes28.Box, {
1485
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AssistantAvatar, {}),
1486
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes28.Box, {
1484
1487
  children: [
1485
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Name, {
1488
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Name, {
1486
1489
  children: assistantNameContext
1487
1490
  }),
1488
1491
  children,
1489
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StartingContentSkeleton, {})
1492
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StartingContentSkeleton, {})
1490
1493
  ]
1491
1494
  })
1492
1495
  ]
@@ -1511,7 +1514,7 @@ var isOptimistic = function(param) {
1511
1514
  return import_lodash4.default.startsWith(id, "-");
1512
1515
  };
1513
1516
  // src/components/threads/Thread/Messages/Progress/index.tsx
1514
- var import_jsx_runtime35 = require("react/jsx-runtime");
1517
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1515
1518
  var Progress = function() {
1516
1519
  var latestMessage = useLatestMessage().latestMessage;
1517
1520
  var isMutatingMessage = useIsMutatingMessage();
@@ -1529,7 +1532,7 @@ var Progress = function() {
1529
1532
  isMutatingMessage
1530
1533
  ]);
1531
1534
  if (!isVisible) return null;
1532
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StartingSkeleton, {});
1535
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StartingSkeleton, {});
1533
1536
  };
1534
1537
  // src/components/threads/Thread/Messages/Root/index.tsx
1535
1538
  var import_themes29 = require("@radix-ui/themes");
@@ -1588,7 +1591,7 @@ var useInfiniteScroll = function(param) {
1588
1591
  };
1589
1592
  };
1590
1593
  // src/components/threads/Thread/Messages/Root/index.tsx
1591
- var import_jsx_runtime36 = require("react/jsx-runtime");
1594
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1592
1595
  var Root2 = function(param) {
1593
1596
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
1594
1597
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
@@ -1597,7 +1600,7 @@ var Root2 = function(param) {
1597
1600
  hasNextPage: hasNextPage,
1598
1601
  fetchNextPage: fetchNextPage
1599
1602
  }), containerRef = _useInfiniteScroll.containerRef, loaderRef = _useInfiniteScroll.loaderRef;
1600
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes29.Flex, {
1603
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes29.Flex, {
1601
1604
  ref: containerRef,
1602
1605
  direction: "column-reverse",
1603
1606
  flexGrow: "1",
@@ -1606,10 +1609,10 @@ var Root2 = function(param) {
1606
1609
  }),
1607
1610
  children: [
1608
1611
  children,
1609
- hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes29.Flex, {
1612
+ hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes29.Flex, {
1610
1613
  ref: loaderRef
1611
1614
  }),
1612
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes29.Flex, {
1615
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes29.Flex, {
1613
1616
  flexShrink: "0",
1614
1617
  flexGrow: "1"
1615
1618
  })
@@ -1617,30 +1620,30 @@ var Root2 = function(param) {
1617
1620
  });
1618
1621
  };
1619
1622
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
1620
- var import_jsx_runtime37 = require("react/jsx-runtime");
1623
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1621
1624
  var NextPageSkeleton = function() {
1622
1625
  var hasNextPage = useMessages().hasNextPage;
1623
1626
  if (!hasNextPage) {
1624
1627
  return null;
1625
1628
  }
1626
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MessagesSkeleton, {});
1629
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MessagesSkeleton, {});
1627
1630
  };
1628
1631
  // src/components/threads/Thread/Messages/index.tsx
1629
- var import_jsx_runtime38 = require("react/jsx-runtime");
1632
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1630
1633
  var Messages = function(param) {
1631
1634
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
1632
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Root2, {
1635
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Root2, {
1633
1636
  style: style,
1634
1637
  children: [
1635
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes30.Flex, {
1638
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes30.Flex, {
1636
1639
  flexShrink: "0",
1637
1640
  height: "var(--space-3)"
1638
1641
  }),
1639
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Progress, {}),
1642
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Progress, {}),
1640
1643
  children,
1641
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Content3, {}),
1642
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(NextPageSkeleton, {}),
1643
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes30.Flex, {
1644
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Content3, {}),
1645
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NextPageSkeleton, {}),
1646
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes30.Flex, {
1644
1647
  flexShrink: "0",
1645
1648
  flexGrow: "1"
1646
1649
  })
@@ -1668,24 +1671,24 @@ var useMessageFormContext = function() {
1668
1671
  return (0, import_react31.useContext)(MessageFormContext);
1669
1672
  };
1670
1673
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
1671
- var import_jsx_runtime39 = require("react/jsx-runtime");
1674
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1672
1675
  var Submit = function() {
1673
1676
  var superinterfaceContext = useSuperinterfaceContext();
1674
1677
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
1675
1678
  if (isLoading) {
1676
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes31.IconButton, {
1679
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes31.IconButton, {
1677
1680
  type: "button",
1678
1681
  onClick: function() {
1679
1682
  var _superinterfaceContext_createMessageAbortControllerRef_current;
1680
1683
  return (_superinterfaceContext_createMessageAbortControllerRef_current = superinterfaceContext.createMessageAbortControllerRef.current) === null || _superinterfaceContext_createMessageAbortControllerRef_current === void 0 ? void 0 : _superinterfaceContext_createMessageAbortControllerRef_current.abort();
1681
1684
  },
1682
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons5.StopIcon, {})
1685
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.StopIcon, {})
1683
1686
  });
1684
1687
  }
1685
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes31.IconButton, {
1688
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes31.IconButton, {
1686
1689
  type: "submit",
1687
1690
  disabled: isDisabled,
1688
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons5.ArrowUpIcon, {})
1691
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.ArrowUpIcon, {})
1689
1692
  });
1690
1693
  };
1691
1694
  // src/components/threads/Thread/MessageForm/Root/index.tsx
@@ -2312,7 +2315,7 @@ var formOptions = {
2312
2315
  resolver: (0, import_zod2.zodResolver)(schema)
2313
2316
  };
2314
2317
  // src/components/threads/Thread/MessageForm/Root/index.tsx
2315
- var import_jsx_runtime40 = require("react/jsx-runtime");
2318
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2316
2319
  var Root3 = function(param) {
2317
2320
  var children = param.children;
2318
2321
  var formProps = (0, import_react_hook_form.useForm)(formOptions);
@@ -2384,16 +2387,16 @@ var Root3 = function(param) {
2384
2387
  latestMessage,
2385
2388
  isLoading
2386
2389
  ]);
2387
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(MessageFormContext.Provider, {
2390
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MessageFormContext.Provider, {
2388
2391
  value: {
2389
2392
  isDisabled: isDisabled,
2390
2393
  isLoading: isLoading
2391
2394
  },
2392
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_hook_form.FormProvider, _object_spread_props(_object_spread({}, formProps), {
2393
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes32.Box, {
2395
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_hook_form.FormProvider, _object_spread_props(_object_spread({}, formProps), {
2396
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes32.Box, {
2394
2397
  asChild: true,
2395
2398
  flexShrink: "0",
2396
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("form", {
2399
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("form", {
2397
2400
  onSubmit: handleSubmit(onSubmit),
2398
2401
  children: children
2399
2402
  })
@@ -2407,15 +2410,15 @@ var import_react34 = require("react");
2407
2410
  // src/components/textareas/TextareaBase/index.tsx
2408
2411
  var import_react33 = require("react");
2409
2412
  var import_react_textarea_autosize = __toESM(require("react-textarea-autosize"), 1);
2410
- var import_jsx_runtime41 = require("react/jsx-runtime");
2413
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2411
2414
  var UPSCALE_RATIO = 16 / 14;
2412
2415
  var TextareaBase = (0, import_react33.forwardRef)(function TextareaBase2(props, ref) {
2413
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, {
2416
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, {
2414
2417
  children: [
2415
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("style", {
2418
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("style", {
2416
2419
  children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
2417
2420
  }),
2418
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_textarea_autosize.default, _object_spread({
2421
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_textarea_autosize.default, _object_spread({
2419
2422
  ref: ref,
2420
2423
  className: "rt-reset superinterface-textarea",
2421
2424
  style: {
@@ -2440,20 +2443,20 @@ var TextareaBase = (0, import_react33.forwardRef)(function TextareaBase2(props,
2440
2443
  // src/components/threads/Thread/MessageForm/Field/index.tsx
2441
2444
  var import_react_hook_form2 = require("react-hook-form");
2442
2445
  var import_themes33 = require("@radix-ui/themes");
2443
- var import_jsx_runtime42 = require("react/jsx-runtime");
2446
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2444
2447
  var Root4 = function(param) {
2445
2448
  var children = param.children;
2446
2449
  var _ref = (0, import_react_hook_form2.useFormContext)(), errors = _ref.formState.errors;
2447
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes33.Container, {
2450
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes33.Container, {
2448
2451
  size: "2",
2449
2452
  flexGrow: "0",
2450
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes33.Flex, {
2453
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes33.Flex, {
2451
2454
  direction: "column",
2452
2455
  flexShrink: "0",
2453
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes33.Flex, {
2456
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes33.Flex, {
2454
2457
  direction: "column",
2455
2458
  flexShrink: "0",
2456
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes33.Flex, {
2459
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes33.Flex, {
2457
2460
  style: _object_spread({
2458
2461
  borderRadius: "var(--radius-2)",
2459
2462
  borderWidth: "1px",
@@ -2493,7 +2496,7 @@ var Control = function() {
2493
2496
  isDisabledPrevious,
2494
2497
  textareaProps
2495
2498
  ]);
2496
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TextareaBase, _object_spread_props(_object_spread({
2499
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TextareaBase, _object_spread_props(_object_spread({
2497
2500
  minRows: 1,
2498
2501
  placeholder: "Message ".concat(assistantNameContext, "..."),
2499
2502
  disabled: isDisabled,
@@ -2517,26 +2520,26 @@ var Field = {
2517
2520
  Control: Control
2518
2521
  };
2519
2522
  // src/components/threads/Thread/MessageForm/index.tsx
2520
- var import_jsx_runtime43 = require("react/jsx-runtime");
2523
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2521
2524
  var MessageForm = function() {
2522
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Root3, {
2523
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Field.Root, {
2525
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Root3, {
2526
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Field.Root, {
2524
2527
  children: [
2525
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes34.Text, {
2528
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes34.Text, {
2526
2529
  size: "2",
2527
2530
  style: {
2528
2531
  flexGrow: 1
2529
2532
  },
2530
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes34.Flex, {
2533
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes34.Flex, {
2531
2534
  flexGrow: "1",
2532
2535
  direction: "column",
2533
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Field.Control, {})
2536
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Field.Control, {})
2534
2537
  })
2535
2538
  }),
2536
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes34.Flex, {
2539
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes34.Flex, {
2537
2540
  flexShrink: "0",
2538
2541
  align: "end",
2539
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Submit, {})
2542
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Submit, {})
2540
2543
  })
2541
2544
  ]
2542
2545
  })
@@ -2550,13 +2553,13 @@ var import_themes35 = require("@radix-ui/themes");
2550
2553
  // src/components/threads/Thread/Provider/index.tsx
2551
2554
  var Provider2 = SuperinterfaceProvider;
2552
2555
  // src/components/threads/Thread/Root/index.tsx
2553
- var import_jsx_runtime44 = require("react/jsx-runtime");
2556
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2554
2557
  var Root5 = function(_param) {
2555
2558
  var children = _param.children, rest = _object_without_properties(_param, [
2556
2559
  "children"
2557
2560
  ]);
2558
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Provider2, _object_spread_props(_object_spread({}, rest), {
2559
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes35.Flex, {
2561
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Provider2, _object_spread_props(_object_spread({}, rest), {
2562
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes35.Flex, {
2560
2563
  direction: "column",
2561
2564
  flexGrow: "1",
2562
2565
  children: children
@@ -2564,12 +2567,12 @@ var Root5 = function(_param) {
2564
2567
  }));
2565
2568
  };
2566
2569
  // src/components/threads/Thread/index.tsx
2567
- var import_jsx_runtime45 = require("react/jsx-runtime");
2570
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2568
2571
  var Thread = function(props) {
2569
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Root5, _object_spread_props(_object_spread({}, props), {
2572
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Root5, _object_spread_props(_object_spread({}, props), {
2570
2573
  children: [
2571
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Messages, {}),
2572
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(MessageForm, {})
2574
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Messages, {}),
2575
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MessageForm, {})
2573
2576
  ]
2574
2577
  }));
2575
2578
  };
@@ -2595,12 +2598,12 @@ var useThreadDialogContext = function() {
2595
2598
  return (0, import_react37.useContext)(ThreadDialogContext);
2596
2599
  };
2597
2600
  // src/components/threads/ThreadDialog/Provider/index.tsx
2598
- var import_jsx_runtime46 = require("react/jsx-runtime");
2601
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2599
2602
  var Provider3 = function(param) {
2600
2603
  var children = param.children;
2601
2604
  var threadDialogContext = useThreadDialogContext();
2602
2605
  var _ref = _sliced_to_array((0, import_react38.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
2603
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ThreadDialogContext.Provider, {
2606
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ThreadDialogContext.Provider, {
2604
2607
  value: {
2605
2608
  isOpen: isOpen,
2606
2609
  setIsOpen: setIsOpen
@@ -2615,25 +2618,25 @@ var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
2615
2618
  var Toast = __toESM(require("@radix-ui/react-toast"), 1);
2616
2619
  var import_themes36 = require("@radix-ui/themes");
2617
2620
  var import_react_icons6 = require("@radix-ui/react-icons");
2618
- var import_jsx_runtime47 = require("react/jsx-runtime");
2621
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2619
2622
  var CustomToast = function(param) {
2620
2623
  var toast = param.toast;
2621
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Toast.Root, {
2622
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes36.Card, {
2623
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Toast.Title, {
2624
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes36.Flex, {
2624
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Toast.Root, {
2625
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes36.Card, {
2626
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Toast.Title, {
2627
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes36.Flex, {
2625
2628
  children: [
2626
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes36.Flex, {
2629
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes36.Flex, {
2627
2630
  pr: "2",
2628
2631
  height: "14px",
2629
2632
  align: "center",
2630
- children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons6.CheckCircledIcon, {
2633
+ children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_icons6.CheckCircledIcon, {
2631
2634
  color: "var(--accent-9)"
2632
- }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons6.CrossCircledIcon, {
2635
+ }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_icons6.CrossCircledIcon, {
2633
2636
  color: "var(--red-9)"
2634
2637
  })
2635
2638
  }),
2636
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes36.Text, {
2639
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes36.Text, {
2637
2640
  weight: "medium",
2638
2641
  size: "1",
2639
2642
  children: toast.message
@@ -2645,7 +2648,7 @@ var CustomToast = function(param) {
2645
2648
  });
2646
2649
  };
2647
2650
  // src/components/toasts/ToastsProvider/index.tsx
2648
- var import_jsx_runtime48 = require("react/jsx-runtime");
2651
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2649
2652
  var ToastsProvider = function(param) {
2650
2653
  var children = param.children;
2651
2654
  var _ref = _sliced_to_array((0, import_react39.useState)([]), 2), toasts = _ref[0], setToasts = _ref[1];
@@ -2656,20 +2659,20 @@ var ToastsProvider = function(param) {
2656
2659
  ]);
2657
2660
  });
2658
2661
  }, []);
2659
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ToastsContext.Provider, {
2662
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ToastsContext.Provider, {
2660
2663
  value: {
2661
2664
  toasts: toasts,
2662
2665
  addToast: addToast
2663
2666
  },
2664
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Toast2.Provider, {
2667
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Toast2.Provider, {
2665
2668
  children: [
2666
2669
  children,
2667
2670
  Array.from(toasts).map(function(toast, index) {
2668
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CustomToast, {
2671
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CustomToast, {
2669
2672
  toast: toast
2670
2673
  }, index);
2671
2674
  }),
2672
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Toast2.Viewport, {
2675
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Toast2.Viewport, {
2673
2676
  style: {
2674
2677
  position: "absolute",
2675
2678
  bottom: 0,
@@ -2691,22 +2694,22 @@ var ToastsProvider = function(param) {
2691
2694
  });
2692
2695
  };
2693
2696
  // src/components/threads/ThreadDialog/Root/index.tsx
2694
- var import_jsx_runtime49 = require("react/jsx-runtime");
2697
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2695
2698
  var Root7 = function(param) {
2696
2699
  var children = param.children;
2697
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ToastsProvider, {
2698
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Provider3, {
2700
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ToastsProvider, {
2701
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Provider3, {
2699
2702
  children: children
2700
2703
  })
2701
2704
  });
2702
2705
  };
2703
2706
  // src/components/threads/ThreadDialog/Trigger/index.tsx
2704
2707
  var import_themes37 = require("@radix-ui/themes");
2705
- var import_jsx_runtime50 = require("react/jsx-runtime");
2708
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2706
2709
  var Trigger = function(param) {
2707
2710
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
2708
2711
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
2709
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes37.Flex, {
2712
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes37.Flex, {
2710
2713
  display: {
2711
2714
  initial: isOpen ? "none" : "flex",
2712
2715
  sm: "flex"
@@ -2732,12 +2735,12 @@ var Trigger = function(param) {
2732
2735
  // src/components/threads/ThreadDialog/Button/index.tsx
2733
2736
  var import_themes38 = require("@radix-ui/themes");
2734
2737
  var import_react_icons7 = require("@radix-ui/react-icons");
2735
- var import_jsx_runtime51 = require("react/jsx-runtime");
2738
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2736
2739
  var Button2 = function() {
2737
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes38.IconButton, {
2740
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes38.IconButton, {
2738
2741
  size: "4",
2739
2742
  radius: "full",
2740
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons7.ChatBubbleIcon, {})
2743
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_icons7.ChatBubbleIcon, {})
2741
2744
  });
2742
2745
  };
2743
2746
  // src/components/threads/ThreadDialog/Content/index.tsx
@@ -2745,10 +2748,10 @@ var import_themes40 = require("@radix-ui/themes");
2745
2748
  // src/components/threads/ThreadDialog/Close/index.tsx
2746
2749
  var import_react_icons8 = require("@radix-ui/react-icons");
2747
2750
  var import_themes39 = require("@radix-ui/themes");
2748
- var import_jsx_runtime52 = require("react/jsx-runtime");
2751
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2749
2752
  var Close = function() {
2750
2753
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
2751
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes39.Flex, {
2754
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes39.Flex, {
2752
2755
  display: {
2753
2756
  initial: isOpen ? "flex" : "none",
2754
2757
  sm: "none"
@@ -2768,20 +2771,20 @@ var Close = function() {
2768
2771
  style: {
2769
2772
  zIndex: 9999999999
2770
2773
  },
2771
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes39.IconButton, {
2774
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes39.IconButton, {
2772
2775
  size: "2",
2773
2776
  variant: "soft",
2774
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_icons8.Cross1Icon, {})
2777
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons8.Cross1Icon, {})
2775
2778
  })
2776
2779
  });
2777
2780
  };
2778
2781
  // src/components/threads/ThreadDialog/Content/index.tsx
2779
- var import_jsx_runtime53 = require("react/jsx-runtime");
2782
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2780
2783
  var Root8 = function(param) {
2781
2784
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
2782
2785
  var isOpen = useThreadDialogContext().isOpen;
2783
2786
  if (!isOpen) return null;
2784
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes40.Flex, {
2787
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes40.Flex, {
2785
2788
  direction: "column",
2786
2789
  justify: "end",
2787
2790
  position: "fixed",
@@ -2809,7 +2812,7 @@ var Root8 = function(param) {
2809
2812
  style: _object_spread({
2810
2813
  zIndex: 9999999999
2811
2814
  }, style),
2812
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes40.Card, {
2815
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes40.Card, {
2813
2816
  mb: {
2814
2817
  initial: void 0,
2815
2818
  sm: "3"
@@ -2820,7 +2823,7 @@ var Root8 = function(param) {
2820
2823
  flexGrow: 1
2821
2824
  },
2822
2825
  children: [
2823
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes40.Inset, {
2826
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes40.Inset, {
2824
2827
  clip: "padding-box",
2825
2828
  side: "all",
2826
2829
  pb: "current",
@@ -2830,31 +2833,31 @@ var Root8 = function(param) {
2830
2833
  },
2831
2834
  children: children
2832
2835
  }),
2833
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Close, {})
2836
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Close, {})
2834
2837
  ]
2835
2838
  })
2836
2839
  });
2837
2840
  };
2838
2841
  var Content4 = function(param) {
2839
2842
  var _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
2840
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Root8, {
2843
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Root8, {
2841
2844
  style: style,
2842
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Thread.Root, {
2845
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Thread.Root, {
2843
2846
  children: [
2844
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Thread.Messages, {
2847
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Thread.Messages, {
2845
2848
  style: {
2846
2849
  paddingTop: "var(--space-5)",
2847
2850
  paddingRight: "var(--space-5)",
2848
2851
  paddingLeft: "var(--space-5)"
2849
2852
  }
2850
2853
  }),
2851
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes40.Flex, {
2854
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes40.Flex, {
2852
2855
  direction: "column",
2853
2856
  pl: "5",
2854
2857
  pr: "5",
2855
2858
  pb: "3",
2856
2859
  flexShrink: "0",
2857
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Thread.MessageForm, {})
2860
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Thread.MessageForm, {})
2858
2861
  })
2859
2862
  ]
2860
2863
  })
@@ -2862,13 +2865,13 @@ var Content4 = function(param) {
2862
2865
  };
2863
2866
  Content4.Root = Root8;
2864
2867
  // src/components/threads/ThreadDialog/index.tsx
2865
- var import_jsx_runtime54 = require("react/jsx-runtime");
2868
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2866
2869
  var ThreadDialog = function() {
2867
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Root7, {
2870
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Root7, {
2868
2871
  children: [
2869
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Content4, {}),
2870
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Trigger, {
2871
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button2, {})
2872
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Content4, {}),
2873
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Trigger, {
2874
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button2, {})
2872
2875
  })
2873
2876
  ]
2874
2877
  });
@@ -3316,7 +3319,7 @@ var useMessageAudio = function(param) {
3316
3319
  });
3317
3320
  };
3318
3321
  // src/components/threads/AudioThread/Root/index.tsx
3319
- var import_jsx_runtime55 = require("react/jsx-runtime");
3322
+ var import_jsx_runtime56 = require("react/jsx-runtime");
3320
3323
  var Root9 = function(param) {
3321
3324
  var children = param.children;
3322
3325
  var createMessageProps = useCreateMessage();
@@ -3374,13 +3377,13 @@ var Root9 = function(param) {
3374
3377
  createMessageProps: createMessageProps,
3375
3378
  messageAudioProps: messageAudioProps
3376
3379
  }).status;
3377
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(AudioThreadContext.Provider, {
3380
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(AudioThreadContext.Provider, {
3378
3381
  value: {
3379
3382
  status: status,
3380
3383
  recorderProps: recorderProps,
3381
3384
  messageAudioProps: messageAudioProps
3382
3385
  },
3383
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes41.Flex, {
3386
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes41.Flex, {
3384
3387
  direction: "column",
3385
3388
  flexGrow: "1",
3386
3389
  p: "9",
@@ -3402,7 +3405,7 @@ var import_lodash8 = __toESM(require("lodash"), 1);
3402
3405
  var import_themes42 = require("@radix-ui/themes");
3403
3406
  var import_react45 = require("react");
3404
3407
  var import_radash12 = require("radash");
3405
- var import_jsx_runtime56 = require("react/jsx-runtime");
3408
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3406
3409
  var barCount = 4;
3407
3410
  var BarsVisualizer = function(param) {
3408
3411
  var visualizationAnalyser = param.visualizationAnalyser, backgroundColor = param.backgroundColor, height = param.height, barWidth = param.barWidth;
@@ -3433,7 +3436,7 @@ var BarsVisualizer = function(param) {
3433
3436
  draw,
3434
3437
  visualizationAnalyser
3435
3438
  ]);
3436
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes42.Grid, {
3439
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes42.Grid, {
3437
3440
  columns: "".concat(barCount),
3438
3441
  gap: "1",
3439
3442
  width: "auto",
@@ -3442,12 +3445,12 @@ var BarsVisualizer = function(param) {
3442
3445
  gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
3443
3446
  },
3444
3447
  children: barHeights.map(function(barHeight, index) {
3445
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes42.Flex, {
3448
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes42.Flex, {
3446
3449
  direction: "column",
3447
3450
  align: "center",
3448
3451
  justify: "center",
3449
3452
  height: height,
3450
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes42.Flex, {
3453
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes42.Flex, {
3451
3454
  minHeight: "50%",
3452
3455
  maxHeight: "100%",
3453
3456
  height: "".concat(barHeight + 20, "%"),
@@ -3462,7 +3465,7 @@ var BarsVisualizer = function(param) {
3462
3465
  });
3463
3466
  };
3464
3467
  // src/components/threads/AudioThread/Visualization/index.tsx
3465
- var import_jsx_runtime57 = require("react/jsx-runtime");
3468
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3466
3469
  var Visualization = function() {
3467
3470
  var audioThreadContext = useAudioThreadContext();
3468
3471
  var assistantNameContext = (0, import_react46.useContext)(AssistantNameContext);
@@ -3490,14 +3493,14 @@ var Visualization = function() {
3490
3493
  draw,
3491
3494
  audioThreadContext
3492
3495
  ]);
3493
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes43.Flex, {
3496
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes43.Flex, {
3494
3497
  direction: "column",
3495
3498
  align: "center",
3496
3499
  justify: "center",
3497
3500
  mb: "3",
3498
3501
  flexGrow: "1",
3499
3502
  children: [
3500
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes43.Flex, {
3503
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes43.Flex, {
3501
3504
  align: "center",
3502
3505
  justify: "center",
3503
3506
  height: "200px",
@@ -3507,20 +3510,20 @@ var Visualization = function() {
3507
3510
  borderRadius: "9999px",
3508
3511
  scale: scale
3509
3512
  },
3510
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BarsVisualizer, {
3513
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BarsVisualizer, {
3511
3514
  visualizationAnalyser: audioThreadContext.messageAudioProps.visualizationAnalyser,
3512
3515
  backgroundColor: audioThreadContext.status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
3513
3516
  height: "40px",
3514
3517
  barWidth: "24px"
3515
3518
  })
3516
3519
  }),
3517
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes43.Flex, {
3520
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes43.Flex, {
3518
3521
  ml: "-22.5px",
3519
3522
  gap: "3",
3520
3523
  pt: "5",
3521
3524
  children: [
3522
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AssistantAvatar, {}),
3523
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Name, {
3525
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(AssistantAvatar, {}),
3526
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Name, {
3524
3527
  children: assistantNameContext
3525
3528
  })
3526
3529
  ]
@@ -3530,7 +3533,7 @@ var Visualization = function() {
3530
3533
  };
3531
3534
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
3532
3535
  var import_themes44 = require("@radix-ui/themes");
3533
- var import_jsx_runtime58 = require("react/jsx-runtime");
3536
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3534
3537
  var html = function(param) {
3535
3538
  var texts = param.texts;
3536
3539
  return "\n .status-messages-texts:after {\n content: '".concat(texts[0], "';\n animation: texts ").concat(texts.length * 5, "s linear infinite;\n }\n\n @keyframes texts {\n ").concat(texts.map(function(_10, i) {
@@ -3539,17 +3542,17 @@ var html = function(param) {
3539
3542
  };
3540
3543
  var StatusMessages = function(param) {
3541
3544
  var texts = param.texts;
3542
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes44.Flex, {
3545
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes44.Flex, {
3543
3546
  justify: "center",
3544
3547
  pb: "5",
3545
3548
  children: [
3546
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes44.Text, {
3549
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes44.Text, {
3547
3550
  size: "2",
3548
3551
  weight: "regular",
3549
3552
  color: "gray",
3550
3553
  className: "status-messages-texts"
3551
3554
  }),
3552
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("style", {
3555
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("style", {
3553
3556
  dangerouslySetInnerHTML: {
3554
3557
  __html: html({
3555
3558
  texts: texts
@@ -3560,11 +3563,11 @@ var StatusMessages = function(param) {
3560
3563
  });
3561
3564
  };
3562
3565
  // src/components/threads/AudioThread/Status/index.tsx
3563
- var import_jsx_runtime59 = require("react/jsx-runtime");
3566
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3564
3567
  var Status = function() {
3565
3568
  var audioThreadContext = useAudioThreadContext();
3566
3569
  if (audioThreadContext.status === "recording") {
3567
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3570
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StatusMessages, {
3568
3571
  texts: [
3569
3572
  "Start speaking",
3570
3573
  "Listening",
@@ -3578,20 +3581,20 @@ var Status = function() {
3578
3581
  "idle",
3579
3582
  "playerPaused"
3580
3583
  ].includes(audioThreadContext.status)) {
3581
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3584
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StatusMessages, {
3582
3585
  texts: [
3583
3586
  "Click the button below to activate"
3584
3587
  ]
3585
3588
  });
3586
3589
  }
3587
3590
  if (audioThreadContext.status === "playing") {
3588
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3591
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StatusMessages, {
3589
3592
  texts: [
3590
3593
  "Click the button below to interrupt"
3591
3594
  ]
3592
3595
  });
3593
3596
  }
3594
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StatusMessages, {
3597
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StatusMessages, {
3595
3598
  texts: [
3596
3599
  "Thinking"
3597
3600
  ]
@@ -3600,9 +3603,9 @@ var Status = function() {
3600
3603
  // src/components/threads/AudioThread/Form/index.tsx
3601
3604
  var import_themes46 = require("@radix-ui/themes");
3602
3605
  // src/components/threads/AudioThread/Form/MicIcon.tsx
3603
- var import_jsx_runtime60 = require("react/jsx-runtime");
3606
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3604
3607
  var MicIcon = function(props) {
3605
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("svg", _object_spread_props(_object_spread({
3608
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", _object_spread_props(_object_spread({
3606
3609
  xmlns: "http://www.w3.org/2000/svg",
3607
3610
  fill: "currentColor",
3608
3611
  stroke: "currentColor",
@@ -3611,7 +3614,7 @@ var MicIcon = function(props) {
3611
3614
  height: "15",
3612
3615
  width: "15"
3613
3616
  }, props), {
3614
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", {
3617
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", {
3615
3618
  stroke: "none",
3616
3619
  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"
3617
3620
  })
@@ -3620,45 +3623,45 @@ var MicIcon = function(props) {
3620
3623
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
3621
3624
  var import_themes45 = require("@radix-ui/themes");
3622
3625
  var import_react_icons9 = require("@radix-ui/react-icons");
3623
- var import_jsx_runtime61 = require("react/jsx-runtime");
3626
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3624
3627
  var ActionButton = function() {
3625
3628
  var audioThreadContext = useAudioThreadContext();
3626
3629
  var superinterfaceContext = useSuperinterfaceContext();
3627
3630
  if (audioThreadContext.status === "recording") {
3628
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes45.Flex, {
3631
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes45.Flex, {
3629
3632
  align: "center",
3630
3633
  children: [
3631
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.Flex, {
3634
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.Flex, {
3632
3635
  mr: "3",
3633
3636
  ml: "-7",
3634
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3637
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.IconButton, {
3635
3638
  onClick: audioThreadContext.recorderProps.pause,
3636
3639
  color: "gray",
3637
3640
  variant: "soft",
3638
3641
  size: "1",
3639
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.PauseIcon, {})
3642
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons9.PauseIcon, {})
3640
3643
  })
3641
3644
  }),
3642
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3645
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.IconButton, {
3643
3646
  onClick: audioThreadContext.recorderProps.stop,
3644
3647
  highContrast: true,
3645
3648
  variant: "soft",
3646
3649
  size: "4",
3647
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.ArrowUpIcon, {})
3650
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons9.ArrowUpIcon, {})
3648
3651
  })
3649
3652
  ]
3650
3653
  });
3651
3654
  }
3652
3655
  if (audioThreadContext.status === "recorderPaused") {
3653
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3656
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.IconButton, {
3654
3657
  onClick: audioThreadContext.recorderProps.resume,
3655
3658
  color: "red",
3656
3659
  size: "4",
3657
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.ResumeIcon, {})
3660
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons9.ResumeIcon, {})
3658
3661
  });
3659
3662
  }
3660
3663
  if (audioThreadContext.status === "idle") {
3661
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3664
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.IconButton, {
3662
3665
  onClick: function() {
3663
3666
  return audioThreadContext.recorderProps.start();
3664
3667
  },
@@ -3667,7 +3670,7 @@ var ActionButton = function() {
3667
3670
  });
3668
3671
  }
3669
3672
  if (audioThreadContext.status === "playing") {
3670
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3673
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.IconButton, {
3671
3674
  onClick: function() {
3672
3675
  var _superinterfaceContext_createMessageAbortControllerRef_current;
3673
3676
  audioThreadContext.messageAudioProps.stop();
@@ -3677,54 +3680,54 @@ var ActionButton = function() {
3677
3680
  size: "4",
3678
3681
  color: "gray",
3679
3682
  variant: "soft",
3680
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.StopIcon, {})
3683
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons9.StopIcon, {})
3681
3684
  });
3682
3685
  }
3683
3686
  if (audioThreadContext.status === "playerPaused") {
3684
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3687
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.IconButton, {
3685
3688
  onClick: function() {
3686
3689
  return audioThreadContext.messageAudioProps.play();
3687
3690
  },
3688
3691
  size: "4",
3689
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons9.ResumeIcon, {})
3692
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons9.ResumeIcon, {})
3690
3693
  });
3691
3694
  }
3692
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes45.IconButton, {
3695
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.IconButton, {
3693
3696
  size: "4",
3694
3697
  variant: "soft",
3695
3698
  disabled: true
3696
3699
  });
3697
3700
  };
3698
3701
  // src/components/threads/AudioThread/Form/index.tsx
3699
- var import_jsx_runtime62 = require("react/jsx-runtime");
3702
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3700
3703
  var Form = function() {
3701
3704
  var audioThreadContext = useAudioThreadContext();
3702
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes46.Flex, {
3705
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes46.Flex, {
3703
3706
  direction: "column",
3704
3707
  align: "center",
3705
3708
  children: [
3706
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes46.Flex, {
3709
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes46.Flex, {
3707
3710
  pb: "3",
3708
3711
  align: "center",
3709
3712
  children: [
3710
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes46.Flex, {
3713
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.Flex, {
3711
3714
  ml: "-22.5px",
3712
3715
  mr: "2",
3713
3716
  align: "center",
3714
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MicIcon, {
3717
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MicIcon, {
3715
3718
  style: {
3716
3719
  color: audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)"
3717
3720
  }
3718
3721
  })
3719
3722
  }),
3720
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes46.Flex, {
3723
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.Flex, {
3721
3724
  px: "2",
3722
3725
  py: "1",
3723
3726
  style: {
3724
3727
  backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-4)" : "var(--gray-4)",
3725
3728
  borderRadius: "var(--radius-6)"
3726
3729
  },
3727
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BarsVisualizer, {
3730
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(BarsVisualizer, {
3728
3731
  visualizationAnalyser: audioThreadContext.recorderProps.visualizationAnalyser,
3729
3732
  backgroundColor: audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)",
3730
3733
  height: "20px",
@@ -3733,18 +3736,18 @@ var Form = function() {
3733
3736
  })
3734
3737
  ]
3735
3738
  }),
3736
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ActionButton, {})
3739
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ActionButton, {})
3737
3740
  ]
3738
3741
  });
3739
3742
  };
3740
3743
  // src/components/threads/AudioThread/index.tsx
3741
- var import_jsx_runtime63 = require("react/jsx-runtime");
3744
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3742
3745
  var AudioThread = function(props) {
3743
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Root9, _object_spread_props(_object_spread({}, props), {
3746
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Root9, _object_spread_props(_object_spread({}, props), {
3744
3747
  children: [
3745
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Visualization, {}),
3746
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Status, {}),
3747
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Form, {})
3748
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Visualization, {}),
3749
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Status, {}),
3750
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Form, {})
3748
3751
  ]
3749
3752
  }));
3750
3753
  };
@@ -3752,15 +3755,15 @@ AudioThread.Root = Root9;
3752
3755
  AudioThread.Visualization = Visualization;
3753
3756
  AudioThread.Form = Form;
3754
3757
  // src/components/threads/AudioThreadDialog/index.tsx
3755
- var import_jsx_runtime64 = require("react/jsx-runtime");
3758
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3756
3759
  var AudioThreadDialog = function() {
3757
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Root7, {
3760
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Root7, {
3758
3761
  children: [
3759
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Content4.Root, {
3760
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(AudioThread, {})
3762
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Content4.Root, {
3763
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(AudioThread, {})
3761
3764
  }),
3762
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Trigger, {
3763
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button2, {})
3765
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Trigger, {
3766
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button2, {})
3764
3767
  })
3765
3768
  ]
3766
3769
  });
@@ -3779,11 +3782,11 @@ var import_themes48 = require("@radix-ui/themes");
3779
3782
  // src/components/suggestions/Suggestions/Item.tsx
3780
3783
  var import_react_icons10 = require("@radix-ui/react-icons");
3781
3784
  var import_themes47 = require("@radix-ui/themes");
3782
- var import_jsx_runtime65 = require("react/jsx-runtime");
3785
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3783
3786
  var Item = function(param) {
3784
3787
  var suggestion = param.suggestion, isDisabled = param.isDisabled;
3785
3788
  var _useCreateMessage = useCreateMessage(), createMessage = _useCreateMessage.createMessage, isPending = _useCreateMessage.isPending;
3786
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Content5, {
3789
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Content5, {
3787
3790
  onClick: function() {
3788
3791
  createMessage({
3789
3792
  // @ts-ignore-next-line
@@ -3797,7 +3800,7 @@ var Item = function(param) {
3797
3800
  };
3798
3801
  var Content5 = function(param) {
3799
3802
  var onClick = param.onClick, isDisabled = param.isDisabled, isPending = param.isPending, children = param.children;
3800
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes47.Button, {
3803
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes47.Button, {
3801
3804
  variant: "soft",
3802
3805
  onClick: onClick,
3803
3806
  disabled: isDisabled,
@@ -3807,14 +3810,14 @@ var Content5 = function(param) {
3807
3810
  flexShrink: 1
3808
3811
  },
3809
3812
  children: [
3810
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes47.Text, {
3813
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes47.Text, {
3811
3814
  size: "1",
3812
3815
  weight: "regular",
3813
3816
  children: children
3814
3817
  }),
3815
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes47.Spinner, {
3818
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes47.Spinner, {
3816
3819
  loading: isPending,
3817
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons10.ArrowUpIcon, {
3820
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons10.ArrowUpIcon, {
3818
3821
  style: {
3819
3822
  flexShrink: 0
3820
3823
  }
@@ -3825,7 +3828,7 @@ var Content5 = function(param) {
3825
3828
  };
3826
3829
  Item.Content = Content5;
3827
3830
  // src/components/suggestions/Suggestions/Content.tsx
3828
- var import_jsx_runtime66 = require("react/jsx-runtime");
3831
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3829
3832
  var Content6 = function(param) {
3830
3833
  var children = param.children;
3831
3834
  var isMutatingMessage = useIsMutatingMessage();
@@ -3839,12 +3842,12 @@ var Content6 = function(param) {
3839
3842
  children
3840
3843
  ]);
3841
3844
  if ((0, import_radash13.isEmpty)(suggestions)) return null;
3842
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes48.Flex, {
3845
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes48.Flex, {
3843
3846
  gap: "2",
3844
3847
  py: "2",
3845
3848
  wrap: "wrap",
3846
3849
  children: suggestions.map(function(suggestion) {
3847
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Item, {
3850
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Item, {
3848
3851
  suggestion: suggestion,
3849
3852
  isDisabled: isMutatingMessage
3850
3853
  }, suggestion);
@@ -3852,7 +3855,7 @@ var Content6 = function(param) {
3852
3855
  });
3853
3856
  };
3854
3857
  // src/components/suggestions/Suggestions/index.tsx
3855
- var import_jsx_runtime67 = require("react/jsx-runtime");
3858
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3856
3859
  var Suggestions = function(param) {
3857
3860
  var children = param.children;
3858
3861
  var latestMessageProps = useLatestMessage();
@@ -3865,14 +3868,14 @@ var Suggestions = function(param) {
3865
3868
  ]);
3866
3869
  if (latestMessageProps.isLoading) return null;
3867
3870
  if (isDisabled) return null;
3868
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Content6, {
3871
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Content6, {
3869
3872
  children: children
3870
3873
  });
3871
3874
  };
3872
3875
  Suggestions.Item = Item;
3873
3876
  // src/components/markdown/MarkdownProvider/index.tsx
3874
3877
  var import_react49 = require("react");
3875
- var import_jsx_runtime68 = require("react/jsx-runtime");
3878
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3876
3879
  var MarkdownProvider = function(_param) {
3877
3880
  var children = _param.children, rest = _object_without_properties(_param, [
3878
3881
  "children"
@@ -3884,7 +3887,7 @@ var MarkdownProvider = function(_param) {
3884
3887
  rest,
3885
3888
  prevMarkdownContext
3886
3889
  ]);
3887
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(MarkdownContext.Provider, {
3890
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(MarkdownContext.Provider, {
3888
3891
  value: value,
3889
3892
  children: children
3890
3893
  });
@@ -3897,7 +3900,7 @@ var useComponents = function() {
3897
3900
  return (0, import_react50.useContext)(ComponentsContext);
3898
3901
  };
3899
3902
  // src/components/components/ComponentsProvider.tsx
3900
- var import_jsx_runtime69 = require("react/jsx-runtime");
3903
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3901
3904
  var ComponentsProvider = function(_param) {
3902
3905
  var children = _param.children, rest = _object_without_properties(_param, [
3903
3906
  "children"
@@ -3909,7 +3912,7 @@ var ComponentsProvider = function(_param) {
3909
3912
  rest,
3910
3913
  prevComponents
3911
3914
  ]);
3912
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ComponentsContext.Provider, {
3915
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ComponentsContext.Provider, {
3913
3916
  value: value,
3914
3917
  children: children
3915
3918
  });