@superinterface/react 2.16.3 → 2.16.5

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.js CHANGED
@@ -414,7 +414,7 @@ var SuperinterfaceProvider = function(param) {
414
414
  });
415
415
  };
416
416
  // src/components/threads/Thread/Messages/index.tsx
417
- import { Flex as Flex12 } from "@radix-ui/themes";
417
+ import { Flex as Flex13 } from "@radix-ui/themes";
418
418
  // src/components/threads/Thread/Messages/Content/index.tsx
419
419
  import { useEffect } from "react";
420
420
  // src/hooks/messages/useMessages/index.tsx
@@ -787,7 +787,7 @@ var UserAvatar = function() {
787
787
  });
788
788
  };
789
789
  // src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
790
- import { Flex as Flex10 } from "@radix-ui/themes";
790
+ import { Flex as Flex11 } from "@radix-ui/themes";
791
791
  // src/components/threads/Thread/Message/index.tsx
792
792
  import { useMemo as useMemo5, Fragment } from "react";
793
793
  import { isEmpty } from "radash";
@@ -808,27 +808,25 @@ var StartingContentSkeleton = function() {
808
808
  });
809
809
  };
810
810
  // src/components/runSteps/RunSteps/index.tsx
811
- import { Flex as Flex8 } from "@radix-ui/themes";
811
+ import { Flex as Flex9 } from "@radix-ui/themes";
812
812
  import { useContext as useContext6 } from "react";
813
813
  // src/contexts/components/ComponentsContext/index.tsx
814
814
  import { createContext as createContext7 } from "react";
815
815
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
816
- import { Flex as Flex7 } from "@radix-ui/themes";
816
+ import { Flex as Flex8 } from "@radix-ui/themes";
817
817
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/index.tsx
818
818
  import { useContext as useContext5 } from "react";
819
819
  // src/contexts/functions/FunctionComponentsContext/index.tsx
820
820
  import { createContext as createContext6 } from "react";
821
821
  var FunctionComponentsContext = createContext6({});
822
822
  // src/components/functions/FunctionBase/index.tsx
823
- import { Popover } from "@radix-ui/themes";
823
+ import { Popover, Flex as Flex7 } from "@radix-ui/themes";
824
824
  // src/components/toolCalls/ToolCallBase/index.tsx
825
- import { forwardRef as forwardRef3 } from "react";
826
825
  import { Flex as Flex6, Button } from "@radix-ui/themes";
827
826
  import { jsx as jsx10 } from "react/jsx-runtime";
828
- var ToolCallBase = forwardRef3(function ToolCallBase2(param, ref) {
827
+ var ToolCallBase = function(param) {
829
828
  var children = param.children;
830
829
  return /* @__PURE__ */ jsx10(Flex6, {
831
- ref: ref,
832
830
  py: "1",
833
831
  ml: "-2",
834
832
  children: /* @__PURE__ */ jsx10(Button, {
@@ -841,7 +839,7 @@ var ToolCallBase = forwardRef3(function ToolCallBase2(param, ref) {
841
839
  children: children
842
840
  })
843
841
  });
844
- });
842
+ };
845
843
  // src/components/toolCalls/ToolCallBase/ToolCallTitle.tsx
846
844
  import { Text as Text2 } from "@radix-ui/themes";
847
845
  import { jsx as jsx11 } from "react/jsx-runtime";
@@ -865,34 +863,36 @@ var ToolCallIcon = function(param) {
865
863
  return /* @__PURE__ */ jsx12(CircleIcon, {});
866
864
  }
867
865
  };
868
- // src/components/functions/FunctionBase/Content.tsx
866
+ // src/components/functions/FunctionBase/Content/index.tsx
869
867
  import { useMemo as useMemo3 } from "react";
870
868
  import { Code, Box as Box2 } from "@radix-ui/themes";
869
+ // src/components/functions/FunctionBase/Content/lib/formattedJsonOrRaw.ts
870
+ var formattedJsonOrRaw = function(param) {
871
+ var value = param.value;
872
+ if (!value) {
873
+ return null;
874
+ }
875
+ try {
876
+ return JSON.stringify(JSON.parse(value), null, 2);
877
+ } catch (error) {
878
+ return value;
879
+ }
880
+ };
881
+ // src/components/functions/FunctionBase/Content/index.tsx
871
882
  import { jsx as jsx13, jsxs as jsxs2 } from "react/jsx-runtime";
872
883
  var Content = function(param) {
873
884
  var fn = param.fn;
874
885
  var args = useMemo3(function() {
875
- var result = null;
876
- try {
877
- result = JSON.parse(fn.arguments);
878
- } catch (error) {
879
- console.error(error);
880
- }
881
- return result;
886
+ return formattedJsonOrRaw({
887
+ value: fn.arguments
888
+ });
882
889
  }, [
883
890
  fn
884
891
  ]);
885
892
  var output = useMemo3(function() {
886
- if (!fn.output) {
887
- return null;
888
- }
889
- var result = null;
890
- try {
891
- result = JSON.parse(fn.output);
892
- } catch (error) {
893
- console.error(error);
894
- }
895
- return result;
893
+ return formattedJsonOrRaw({
894
+ value: fn.output
895
+ });
896
896
  }, [
897
897
  fn
898
898
  ]);
@@ -908,10 +908,10 @@ var Content = function(param) {
908
908
  },
909
909
  children: [
910
910
  /* @__PURE__ */ jsx13(Box2, {
911
- children: args && JSON.stringify(args, null, 2)
911
+ children: args
912
912
  }),
913
913
  /* @__PURE__ */ jsx13(Box2, {
914
- children: output && JSON.stringify(output, null, 2)
914
+ children: output
915
915
  })
916
916
  ]
917
917
  });
@@ -923,15 +923,17 @@ var FunctionBase = function(param) {
923
923
  return /* @__PURE__ */ jsxs3(Popover.Root, {
924
924
  children: [
925
925
  /* @__PURE__ */ jsx14(Popover.Trigger, {
926
- children: /* @__PURE__ */ jsxs3(ToolCallBase, {
927
- children: [
928
- /* @__PURE__ */ jsx14(ToolCallIcon, {
929
- runStep: runStep
930
- }),
931
- /* @__PURE__ */ jsx14(ToolCallTitle, {
932
- children: title2
933
- })
934
- ]
926
+ children: /* @__PURE__ */ jsx14(Flex7, {
927
+ children: /* @__PURE__ */ jsxs3(ToolCallBase, {
928
+ children: [
929
+ /* @__PURE__ */ jsx14(ToolCallIcon, {
930
+ runStep: runStep
931
+ }),
932
+ /* @__PURE__ */ jsx14(ToolCallTitle, {
933
+ children: title2
934
+ })
935
+ ]
936
+ })
935
937
  })
936
938
  }),
937
939
  /* @__PURE__ */ jsx14(Popover.Content, {
@@ -1086,7 +1088,7 @@ var Starting = function() {
1086
1088
  import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
1087
1089
  var Root = function(param) {
1088
1090
  var children = param.children;
1089
- return /* @__PURE__ */ jsx22(Flex7, {
1091
+ return /* @__PURE__ */ jsx22(Flex8, {
1090
1092
  direction: "column",
1091
1093
  children: children
1092
1094
  });
@@ -1133,7 +1135,7 @@ var RunSteps = function(param) {
1133
1135
  var runSteps = param.runSteps;
1134
1136
  var componentsContext = useContext6(ComponentsContext);
1135
1137
  var Component = componentsContext.components.RunStep;
1136
- return /* @__PURE__ */ jsx24(Flex8, {
1138
+ return /* @__PURE__ */ jsx24(Flex9, {
1137
1139
  direction: "column-reverse",
1138
1140
  children: runSteps.map(function(runStep) {
1139
1141
  return /* @__PURE__ */ jsx24(Component, {
@@ -1319,14 +1321,14 @@ var TextContent = function(param) {
1319
1321
  }));
1320
1322
  };
1321
1323
  // src/components/threads/Thread/Message/Attachments/index.tsx
1322
- import { Flex as Flex9, Badge } from "@radix-ui/themes";
1324
+ import { Flex as Flex10, Badge } from "@radix-ui/themes";
1323
1325
  import { FileIcon } from "@radix-ui/react-icons";
1324
1326
  import { jsx as jsx35, jsxs as jsxs9 } from "react/jsx-runtime";
1325
1327
  var Attachments = function(param) {
1326
1328
  var message = param.message;
1327
1329
  var _message_attachments;
1328
1330
  if (!((_message_attachments = message.attachments) === null || _message_attachments === void 0 ? void 0 : _message_attachments.length)) return null;
1329
- return /* @__PURE__ */ jsx35(Flex9, {
1331
+ return /* @__PURE__ */ jsx35(Flex10, {
1330
1332
  align: "start",
1331
1333
  pb: "1",
1332
1334
  children: /* @__PURE__ */ jsxs9(Badge, {
@@ -1425,7 +1427,7 @@ var Message = function(param) {
1425
1427
  import { jsx as jsx37 } from "react/jsx-runtime";
1426
1428
  var Content2 = function(param) {
1427
1429
  var messageGroup = param.messageGroup;
1428
- return /* @__PURE__ */ jsx37(Flex10, {
1430
+ return /* @__PURE__ */ jsx37(Flex11, {
1429
1431
  direction: "column-reverse",
1430
1432
  children: messageGroup.messages.map(function(message) {
1431
1433
  return /* @__PURE__ */ jsx37(Message, {
@@ -1550,7 +1552,7 @@ var Progress = function() {
1550
1552
  return /* @__PURE__ */ jsx41(StartingSkeleton, {});
1551
1553
  };
1552
1554
  // src/components/threads/Thread/Messages/Root/index.tsx
1553
- import { Flex as Flex11 } from "@radix-ui/themes";
1555
+ import { Flex as Flex12 } from "@radix-ui/themes";
1554
1556
  // src/hooks/misc/useInfiniteScroll/index.tsx
1555
1557
  import { useRef as useRef3 } from "react";
1556
1558
  import { useInView } from "react-intersection-observer";
@@ -1615,7 +1617,7 @@ var Root2 = function(param) {
1615
1617
  hasNextPage: hasNextPage,
1616
1618
  fetchNextPage: fetchNextPage
1617
1619
  }), containerRef = _useInfiniteScroll.containerRef, loaderRef = _useInfiniteScroll.loaderRef;
1618
- return /* @__PURE__ */ jsxs13(Flex11, {
1620
+ return /* @__PURE__ */ jsxs13(Flex12, {
1619
1621
  ref: containerRef,
1620
1622
  direction: "column-reverse",
1621
1623
  flexGrow: "1",
@@ -1624,10 +1626,10 @@ var Root2 = function(param) {
1624
1626
  }),
1625
1627
  children: [
1626
1628
  children,
1627
- hasNextPage && /* @__PURE__ */ jsx42(Flex11, {
1629
+ hasNextPage && /* @__PURE__ */ jsx42(Flex12, {
1628
1630
  ref: loaderRef
1629
1631
  }),
1630
- /* @__PURE__ */ jsx42(Flex11, {
1632
+ /* @__PURE__ */ jsx42(Flex12, {
1631
1633
  flexShrink: "0",
1632
1634
  flexGrow: "1"
1633
1635
  })
@@ -1650,7 +1652,7 @@ var Messages = function(param) {
1650
1652
  return /* @__PURE__ */ jsxs14(Root2, {
1651
1653
  style: style,
1652
1654
  children: [
1653
- /* @__PURE__ */ jsx44(Flex12, {
1655
+ /* @__PURE__ */ jsx44(Flex13, {
1654
1656
  flexShrink: "0",
1655
1657
  height: "var(--space-3)"
1656
1658
  }),
@@ -1658,7 +1660,7 @@ var Messages = function(param) {
1658
1660
  children,
1659
1661
  /* @__PURE__ */ jsx44(Content3, {}),
1660
1662
  /* @__PURE__ */ jsx44(NextPageSkeleton, {}),
1661
- /* @__PURE__ */ jsx44(Flex12, {
1663
+ /* @__PURE__ */ jsx44(Flex13, {
1662
1664
  flexShrink: "0",
1663
1665
  flexGrow: "1"
1664
1666
  })
@@ -1670,7 +1672,7 @@ Messages.Message = Message;
1670
1672
  Messages.NextPageSkeleton = NextPageSkeleton;
1671
1673
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
1672
1674
  import { ArrowUpIcon, StopIcon } from "@radix-ui/react-icons";
1673
- import { IconButton, Flex as Flex13 } from "@radix-ui/themes";
1675
+ import { IconButton, Flex as Flex14 } from "@radix-ui/themes";
1674
1676
  // src/hooks/messages/useMessageFormContext/index.ts
1675
1677
  import { useContext as useContext10 } from "react";
1676
1678
  // src/contexts/messages/MessageFormContext/index.ts
@@ -1690,7 +1692,7 @@ var useMessageFormContext = function() {
1690
1692
  import { jsx as jsx45 } from "react/jsx-runtime";
1691
1693
  var Root3 = function(param) {
1692
1694
  var children = param.children;
1693
- return /* @__PURE__ */ jsx45(Flex13, {
1695
+ return /* @__PURE__ */ jsx45(Flex14, {
1694
1696
  flexShrink: "0",
1695
1697
  align: "end",
1696
1698
  children: children
@@ -2480,17 +2482,17 @@ var Root4 = function(param) {
2480
2482
  };
2481
2483
  // src/components/threads/Thread/MessageForm/Field/index.tsx
2482
2484
  import { useFormContext as useFormContext2 } from "react-hook-form";
2483
- import { Container as RadixContainer, Flex as Flex17 } from "@radix-ui/themes";
2485
+ import { Container as RadixContainer, Flex as Flex18 } from "@radix-ui/themes";
2484
2486
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
2485
- import { Flex as Flex14 } from "@radix-ui/themes";
2487
+ import { Flex as Flex15 } from "@radix-ui/themes";
2486
2488
  import { useFormContext } from "react-hook-form";
2487
2489
  import { usePrevious } from "react-use";
2488
2490
  import { useContext as useContext11, useMemo as useMemo9, useRef as useRef4, useEffect as useEffect3 } from "react";
2489
2491
  // src/components/textareas/TextareaBase/index.tsx
2490
- import { forwardRef as forwardRef4 } from "react";
2492
+ import { forwardRef as forwardRef3 } from "react";
2491
2493
  import TextareaAutosize from "react-textarea-autosize";
2492
2494
  import { Fragment as Fragment3, jsx as jsx47, jsxs as jsxs15 } from "react/jsx-runtime";
2493
- var TextareaBase = forwardRef4(function TextareaBase2(props, ref) {
2495
+ var TextareaBase = forwardRef3(function TextareaBase2(props, ref) {
2494
2496
  return /* @__PURE__ */ jsxs15(Fragment3, {
2495
2497
  children: [
2496
2498
  /* @__PURE__ */ jsx47("style", {
@@ -2516,7 +2518,7 @@ var TextareaBase = forwardRef4(function TextareaBase2(props, ref) {
2516
2518
  import { jsx as jsx48 } from "react/jsx-runtime";
2517
2519
  var Root5 = function(param) {
2518
2520
  var children = param.children;
2519
- return /* @__PURE__ */ jsx48(Flex14, {
2521
+ return /* @__PURE__ */ jsx48(Flex15, {
2520
2522
  flexGrow: "1",
2521
2523
  pt: "4px",
2522
2524
  children: children
@@ -2572,7 +2574,7 @@ var Control = function() {
2572
2574
  Control.Root = Root5;
2573
2575
  Control.Input = Input;
2574
2576
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
2575
- import { Flex as Flex15, Card as Card2, Spinner, Text as Text6, IconButton as IconButton2 } from "@radix-ui/themes";
2577
+ import { Flex as Flex16, Card as Card2, Spinner, Text as Text6, IconButton as IconButton2 } from "@radix-ui/themes";
2576
2578
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
2577
2579
  import { jsx as jsx49, jsxs as jsxs16 } from "react/jsx-runtime";
2578
2580
  var Preview = function() {
@@ -2580,7 +2582,7 @@ var Preview = function() {
2580
2582
  if (!files.length) {
2581
2583
  return null;
2582
2584
  }
2583
- return /* @__PURE__ */ jsx49(Flex15, {
2585
+ return /* @__PURE__ */ jsx49(Flex16, {
2584
2586
  flexBasis: "100%",
2585
2587
  direction: "column",
2586
2588
  pb: "2",
@@ -2588,19 +2590,19 @@ var Preview = function() {
2588
2590
  children: files.map(function(file) {
2589
2591
  return /* @__PURE__ */ jsx49(Card2, {
2590
2592
  variant: "ghost",
2591
- children: /* @__PURE__ */ jsxs16(Flex15, {
2593
+ children: /* @__PURE__ */ jsxs16(Flex16, {
2592
2594
  align: "center",
2593
2595
  justify: "between",
2594
2596
  gap: "1",
2595
2597
  children: [
2596
- /* @__PURE__ */ jsxs16(Flex15, {
2598
+ /* @__PURE__ */ jsxs16(Flex16, {
2597
2599
  align: "center",
2598
2600
  gap: "1",
2599
2601
  flexShrink: "1",
2600
2602
  minWidth: "0",
2601
2603
  maxWidth: "250px",
2602
2604
  children: [
2603
- /* @__PURE__ */ jsx49(Flex15, {
2605
+ /* @__PURE__ */ jsx49(Flex16, {
2604
2606
  flexShrink: "0",
2605
2607
  children: /* @__PURE__ */ jsx49(Spinner, {
2606
2608
  loading: isOptimistic({
@@ -2617,7 +2619,7 @@ var Preview = function() {
2617
2619
  })
2618
2620
  ]
2619
2621
  }),
2620
- /* @__PURE__ */ jsx49(Flex15, {
2622
+ /* @__PURE__ */ jsx49(Flex16, {
2621
2623
  flexShrink: "0",
2622
2624
  children: /* @__PURE__ */ jsx49(IconButton2, {
2623
2625
  onClick: function() {
@@ -2644,7 +2646,7 @@ import { useCallback as useCallback2 } from "react";
2644
2646
  import { omit as omit4 } from "radash";
2645
2647
  import dayjs2 from "dayjs";
2646
2648
  import { FilePlusIcon } from "@radix-ui/react-icons";
2647
- import { IconButton as IconButton3, Flex as Flex16 } from "@radix-ui/themes";
2649
+ import { IconButton as IconButton3, Flex as Flex17 } from "@radix-ui/themes";
2648
2650
  // src/hooks/files/useCreateFile/index.ts
2649
2651
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
2650
2652
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
@@ -2929,7 +2931,7 @@ var Control2 = function() {
2929
2931
  createFile,
2930
2932
  setFiles
2931
2933
  ]);
2932
- return /* @__PURE__ */ jsx50(Flex16, {
2934
+ return /* @__PURE__ */ jsx50(Flex17, {
2933
2935
  pt: "2",
2934
2936
  pr: "2",
2935
2937
  flexGrow: "0",
@@ -2976,13 +2978,13 @@ var Root6 = function(param) {
2976
2978
  return /* @__PURE__ */ jsx51(RadixContainer, {
2977
2979
  size: "2",
2978
2980
  flexGrow: "0",
2979
- children: /* @__PURE__ */ jsx51(Flex17, {
2981
+ children: /* @__PURE__ */ jsx51(Flex18, {
2980
2982
  direction: "column",
2981
2983
  flexShrink: "0",
2982
- children: /* @__PURE__ */ jsx51(Flex17, {
2984
+ children: /* @__PURE__ */ jsx51(Flex18, {
2983
2985
  direction: "column",
2984
2986
  flexShrink: "0",
2985
- children: /* @__PURE__ */ jsx51(Flex17, {
2987
+ children: /* @__PURE__ */ jsx51(Flex18, {
2986
2988
  style: _object_spread({
2987
2989
  borderRadius: "var(--radius-2)",
2988
2990
  borderWidth: "1px",
@@ -3021,7 +3023,7 @@ MessageForm.Root = Root4;
3021
3023
  MessageForm.Field = Field;
3022
3024
  MessageForm.Submit = Submit;
3023
3025
  // src/components/threads/Thread/Root/index.tsx
3024
- import { Flex as Flex18 } from "@radix-ui/themes";
3026
+ import { Flex as Flex19 } from "@radix-ui/themes";
3025
3027
  // src/components/threads/Thread/Provider/index.tsx
3026
3028
  var Provider2 = SuperinterfaceProvider;
3027
3029
  // src/components/threads/Thread/Root/index.tsx
@@ -3031,7 +3033,7 @@ var Root7 = function(_param) {
3031
3033
  "children"
3032
3034
  ]);
3033
3035
  return /* @__PURE__ */ jsx53(Provider2, _object_spread_props(_object_spread({}, rest), {
3034
- children: /* @__PURE__ */ jsx53(Flex18, {
3036
+ children: /* @__PURE__ */ jsx53(Flex19, {
3035
3037
  direction: "column",
3036
3038
  flexGrow: "1",
3037
3039
  children: children
@@ -3088,7 +3090,7 @@ import { useState as useState3, useCallback as useCallback3 } from "react";
3088
3090
  import * as Toast2 from "@radix-ui/react-toast";
3089
3091
  // src/components/toasts/ToastsProvider/CustomToast.tsx
3090
3092
  import * as Toast from "@radix-ui/react-toast";
3091
- import { Card as Card3, Text as Text7, Flex as Flex19 } from "@radix-ui/themes";
3093
+ import { Card as Card3, Text as Text7, Flex as Flex20 } from "@radix-ui/themes";
3092
3094
  import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
3093
3095
  import { jsx as jsx56, jsxs as jsxs20 } from "react/jsx-runtime";
3094
3096
  var CustomToast = function(param) {
@@ -3096,9 +3098,9 @@ var CustomToast = function(param) {
3096
3098
  return /* @__PURE__ */ jsx56(Toast.Root, {
3097
3099
  children: /* @__PURE__ */ jsx56(Card3, {
3098
3100
  children: /* @__PURE__ */ jsx56(Toast.Title, {
3099
- children: /* @__PURE__ */ jsxs20(Flex19, {
3101
+ children: /* @__PURE__ */ jsxs20(Flex20, {
3100
3102
  children: [
3101
- /* @__PURE__ */ jsx56(Flex19, {
3103
+ /* @__PURE__ */ jsx56(Flex20, {
3102
3104
  pr: "2",
3103
3105
  height: "14px",
3104
3106
  align: "center",
@@ -3176,7 +3178,7 @@ var Root9 = function(param) {
3176
3178
  });
3177
3179
  };
3178
3180
  // src/components/threads/ThreadDialog/Trigger/index.tsx
3179
- import { Flex as Flex20 } from "@radix-ui/themes";
3181
+ import { Flex as Flex21 } from "@radix-ui/themes";
3180
3182
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
3181
3183
  import { IconButton as IconButton4 } from "@radix-ui/themes";
3182
3184
  import { ChatBubbleIcon } from "@radix-ui/react-icons";
@@ -3193,7 +3195,7 @@ import { jsx as jsx60 } from "react/jsx-runtime";
3193
3195
  var Root10 = function(param) {
3194
3196
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
3195
3197
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
3196
- return /* @__PURE__ */ jsx60(Flex20, {
3198
+ return /* @__PURE__ */ jsx60(Flex21, {
3197
3199
  display: {
3198
3200
  initial: isOpen ? "none" : "flex",
3199
3201
  sm: "flex"
@@ -3224,14 +3226,14 @@ var Trigger = function(args) {
3224
3226
  Trigger.Root = Root10;
3225
3227
  Trigger.Button = Button3;
3226
3228
  // src/components/threads/ThreadDialog/Content/index.tsx
3227
- import { Card as Card4, Inset, Flex as Flex22 } from "@radix-ui/themes";
3229
+ import { Card as Card4, Inset, Flex as Flex23 } from "@radix-ui/themes";
3228
3230
  // src/components/threads/ThreadDialog/Close/index.tsx
3229
3231
  import { Cross1Icon } from "@radix-ui/react-icons";
3230
- import { IconButton as IconButton5, Flex as Flex21 } from "@radix-ui/themes";
3232
+ import { IconButton as IconButton5, Flex as Flex22 } from "@radix-ui/themes";
3231
3233
  import { jsx as jsx61 } from "react/jsx-runtime";
3232
3234
  var Close = function() {
3233
3235
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
3234
- return /* @__PURE__ */ jsx61(Flex21, {
3236
+ return /* @__PURE__ */ jsx61(Flex22, {
3235
3237
  display: {
3236
3238
  initial: isOpen ? "flex" : "none",
3237
3239
  sm: "none"
@@ -3264,7 +3266,7 @@ var Root11 = function(param) {
3264
3266
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
3265
3267
  var isOpen = useThreadDialogContext().isOpen;
3266
3268
  if (!isOpen) return null;
3267
- return /* @__PURE__ */ jsx62(Flex22, {
3269
+ return /* @__PURE__ */ jsx62(Flex23, {
3268
3270
  direction: "column",
3269
3271
  justify: "end",
3270
3272
  position: "fixed",
@@ -3329,7 +3331,7 @@ var Messages2 = function() {
3329
3331
  };
3330
3332
  var FormContainer = function(param) {
3331
3333
  var children = param.children;
3332
- return /* @__PURE__ */ jsx62(Flex22, {
3334
+ return /* @__PURE__ */ jsx62(Flex23, {
3333
3335
  direction: "column",
3334
3336
  pl: "5",
3335
3337
  pr: "5",
@@ -3370,7 +3372,7 @@ ThreadDialog.Trigger = Trigger;
3370
3372
  ThreadDialog.Content = Content4;
3371
3373
  // src/components/threads/AudioThread/Root/index.tsx
3372
3374
  import "regenerator-runtime/runtime";
3373
- import { Flex as Flex23 } from "@radix-ui/themes";
3375
+ import { Flex as Flex24 } from "@radix-ui/themes";
3374
3376
  // src/contexts/threads/AudioThreadContext/index.ts
3375
3377
  import { createContext as createContext12 } from "react";
3376
3378
  var AudioThreadContext = createContext12({
@@ -3871,7 +3873,7 @@ var Root12 = function(param) {
3871
3873
  recorderProps: recorderProps,
3872
3874
  messageAudioProps: messageAudioProps
3873
3875
  },
3874
- children: /* @__PURE__ */ jsx64(Flex23, {
3876
+ children: /* @__PURE__ */ jsx64(Flex24, {
3875
3877
  direction: "column",
3876
3878
  flexGrow: "1",
3877
3879
  p: "9",
@@ -3882,7 +3884,7 @@ var Root12 = function(param) {
3882
3884
  // src/components/threads/AudioThread/Visualization/index.tsx
3883
3885
  import { useContext as useContext15, useState as useState7, useCallback as useCallback6, useEffect as useEffect7 } from "react";
3884
3886
  import _9 from "lodash";
3885
- import { Flex as Flex25 } from "@radix-ui/themes";
3887
+ import { Flex as Flex26 } from "@radix-ui/themes";
3886
3888
  // src/hooks/threads/useAudioThreadContext/index.ts
3887
3889
  import { useContext as useContext14 } from "react";
3888
3890
  var useAudioThreadContext = function() {
@@ -3890,7 +3892,7 @@ var useAudioThreadContext = function() {
3890
3892
  };
3891
3893
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
3892
3894
  import _8 from "lodash";
3893
- import { Flex as Flex24, Grid } from "@radix-ui/themes";
3895
+ import { Flex as Flex25, Grid } from "@radix-ui/themes";
3894
3896
  import { useState as useState6, useEffect as useEffect6, useCallback as useCallback5 } from "react";
3895
3897
  import { cluster } from "radash";
3896
3898
  import { jsx as jsx65 } from "react/jsx-runtime";
@@ -3933,12 +3935,12 @@ var BarsVisualizer = function(param) {
3933
3935
  gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
3934
3936
  },
3935
3937
  children: barHeights.map(function(barHeight, index) {
3936
- return /* @__PURE__ */ jsx65(Flex24, {
3938
+ return /* @__PURE__ */ jsx65(Flex25, {
3937
3939
  direction: "column",
3938
3940
  align: "center",
3939
3941
  justify: "center",
3940
3942
  height: height,
3941
- children: /* @__PURE__ */ jsx65(Flex24, {
3943
+ children: /* @__PURE__ */ jsx65(Flex25, {
3942
3944
  minHeight: "50%",
3943
3945
  maxHeight: "100%",
3944
3946
  height: "".concat(barHeight + 20, "%"),
@@ -3981,14 +3983,14 @@ var Visualization = function() {
3981
3983
  draw,
3982
3984
  audioThreadContext
3983
3985
  ]);
3984
- return /* @__PURE__ */ jsxs24(Flex25, {
3986
+ return /* @__PURE__ */ jsxs24(Flex26, {
3985
3987
  direction: "column",
3986
3988
  align: "center",
3987
3989
  justify: "center",
3988
3990
  mb: "3",
3989
3991
  flexGrow: "1",
3990
3992
  children: [
3991
- /* @__PURE__ */ jsx66(Flex25, {
3993
+ /* @__PURE__ */ jsx66(Flex26, {
3992
3994
  align: "center",
3993
3995
  justify: "center",
3994
3996
  height: "200px",
@@ -4005,7 +4007,7 @@ var Visualization = function() {
4005
4007
  barWidth: "24px"
4006
4008
  })
4007
4009
  }),
4008
- /* @__PURE__ */ jsxs24(Flex25, {
4010
+ /* @__PURE__ */ jsxs24(Flex26, {
4009
4011
  ml: "-22.5px",
4010
4012
  gap: "3",
4011
4013
  pt: "5",
@@ -4020,7 +4022,7 @@ var Visualization = function() {
4020
4022
  });
4021
4023
  };
4022
4024
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
4023
- import { Flex as Flex26, Text as Text8 } from "@radix-ui/themes";
4025
+ import { Flex as Flex27, Text as Text8 } from "@radix-ui/themes";
4024
4026
  import { jsx as jsx67, jsxs as jsxs25 } from "react/jsx-runtime";
4025
4027
  var html = function(param) {
4026
4028
  var texts = param.texts;
@@ -4030,7 +4032,7 @@ var html = function(param) {
4030
4032
  };
4031
4033
  var StatusMessages = function(param) {
4032
4034
  var texts = param.texts;
4033
- return /* @__PURE__ */ jsxs25(Flex26, {
4035
+ return /* @__PURE__ */ jsxs25(Flex27, {
4034
4036
  justify: "center",
4035
4037
  pb: "5",
4036
4038
  children: [
@@ -4089,7 +4091,7 @@ var Status = function() {
4089
4091
  });
4090
4092
  };
4091
4093
  // src/components/threads/AudioThread/Form/index.tsx
4092
- import { Flex as Flex28 } from "@radix-ui/themes";
4094
+ import { Flex as Flex29 } from "@radix-ui/themes";
4093
4095
  // src/components/threads/AudioThread/Form/MicIcon.tsx
4094
4096
  import { jsx as jsx69 } from "react/jsx-runtime";
4095
4097
  var MicIcon = function(props) {
@@ -4109,17 +4111,17 @@ var MicIcon = function(props) {
4109
4111
  }));
4110
4112
  };
4111
4113
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
4112
- import { Flex as Flex27, IconButton as IconButton6 } from "@radix-ui/themes";
4114
+ import { Flex as Flex28, IconButton as IconButton6 } from "@radix-ui/themes";
4113
4115
  import { StopIcon as StopIcon2, PauseIcon, ArrowUpIcon as ArrowUpIcon2, ResumeIcon } from "@radix-ui/react-icons";
4114
4116
  import { jsx as jsx70, jsxs as jsxs26 } from "react/jsx-runtime";
4115
4117
  var ActionButton = function() {
4116
4118
  var audioThreadContext = useAudioThreadContext();
4117
4119
  var superinterfaceContext = useSuperinterfaceContext();
4118
4120
  if (audioThreadContext.status === "recording") {
4119
- return /* @__PURE__ */ jsxs26(Flex27, {
4121
+ return /* @__PURE__ */ jsxs26(Flex28, {
4120
4122
  align: "center",
4121
4123
  children: [
4122
- /* @__PURE__ */ jsx70(Flex27, {
4124
+ /* @__PURE__ */ jsx70(Flex28, {
4123
4125
  mr: "3",
4124
4126
  ml: "-7",
4125
4127
  children: /* @__PURE__ */ jsx70(IconButton6, {
@@ -4190,15 +4192,15 @@ var ActionButton = function() {
4190
4192
  import { jsx as jsx71, jsxs as jsxs27 } from "react/jsx-runtime";
4191
4193
  var Form = function() {
4192
4194
  var audioThreadContext = useAudioThreadContext();
4193
- return /* @__PURE__ */ jsxs27(Flex28, {
4195
+ return /* @__PURE__ */ jsxs27(Flex29, {
4194
4196
  direction: "column",
4195
4197
  align: "center",
4196
4198
  children: [
4197
- /* @__PURE__ */ jsxs27(Flex28, {
4199
+ /* @__PURE__ */ jsxs27(Flex29, {
4198
4200
  pb: "3",
4199
4201
  align: "center",
4200
4202
  children: [
4201
- /* @__PURE__ */ jsx71(Flex28, {
4203
+ /* @__PURE__ */ jsx71(Flex29, {
4202
4204
  ml: "-22.5px",
4203
4205
  mr: "2",
4204
4206
  align: "center",
@@ -4208,7 +4210,7 @@ var Form = function() {
4208
4210
  }
4209
4211
  })
4210
4212
  }),
4211
- /* @__PURE__ */ jsx71(Flex28, {
4213
+ /* @__PURE__ */ jsx71(Flex29, {
4212
4214
  px: "2",
4213
4215
  py: "1",
4214
4216
  style: {
@@ -4263,7 +4265,7 @@ import { useMemo as useMemo14 } from "react";
4263
4265
  import { useMemo as useMemo13 } from "react";
4264
4266
  import { isEmpty as isEmpty3 } from "radash";
4265
4267
  import { onlyText } from "react-children-utilities";
4266
- import { Flex as Flex29 } from "@radix-ui/themes";
4268
+ import { Flex as Flex30 } from "@radix-ui/themes";
4267
4269
  // src/components/suggestions/Suggestions/Item.tsx
4268
4270
  import { ArrowUpIcon as ArrowUpIcon3 } from "@radix-ui/react-icons";
4269
4271
  import { Text as Text9, Button as Button4, Spinner as Spinner2 } from "@radix-ui/themes";
@@ -4327,7 +4329,7 @@ var Content6 = function(param) {
4327
4329
  children
4328
4330
  ]);
4329
4331
  if (isEmpty3(suggestions)) return null;
4330
- return /* @__PURE__ */ jsx75(Flex29, {
4332
+ return /* @__PURE__ */ jsx75(Flex30, {
4331
4333
  gap: "2",
4332
4334
  py: "2",
4333
4335
  wrap: "wrap",