@superinterface/react 2.16.3 → 2.16.4

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";
@@ -923,15 +921,17 @@ var FunctionBase = function(param) {
923
921
  return /* @__PURE__ */ jsxs3(Popover.Root, {
924
922
  children: [
925
923
  /* @__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
- ]
924
+ children: /* @__PURE__ */ jsx14(Flex7, {
925
+ children: /* @__PURE__ */ jsxs3(ToolCallBase, {
926
+ children: [
927
+ /* @__PURE__ */ jsx14(ToolCallIcon, {
928
+ runStep: runStep
929
+ }),
930
+ /* @__PURE__ */ jsx14(ToolCallTitle, {
931
+ children: title2
932
+ })
933
+ ]
934
+ })
935
935
  })
936
936
  }),
937
937
  /* @__PURE__ */ jsx14(Popover.Content, {
@@ -1086,7 +1086,7 @@ var Starting = function() {
1086
1086
  import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
1087
1087
  var Root = function(param) {
1088
1088
  var children = param.children;
1089
- return /* @__PURE__ */ jsx22(Flex7, {
1089
+ return /* @__PURE__ */ jsx22(Flex8, {
1090
1090
  direction: "column",
1091
1091
  children: children
1092
1092
  });
@@ -1133,7 +1133,7 @@ var RunSteps = function(param) {
1133
1133
  var runSteps = param.runSteps;
1134
1134
  var componentsContext = useContext6(ComponentsContext);
1135
1135
  var Component = componentsContext.components.RunStep;
1136
- return /* @__PURE__ */ jsx24(Flex8, {
1136
+ return /* @__PURE__ */ jsx24(Flex9, {
1137
1137
  direction: "column-reverse",
1138
1138
  children: runSteps.map(function(runStep) {
1139
1139
  return /* @__PURE__ */ jsx24(Component, {
@@ -1319,14 +1319,14 @@ var TextContent = function(param) {
1319
1319
  }));
1320
1320
  };
1321
1321
  // src/components/threads/Thread/Message/Attachments/index.tsx
1322
- import { Flex as Flex9, Badge } from "@radix-ui/themes";
1322
+ import { Flex as Flex10, Badge } from "@radix-ui/themes";
1323
1323
  import { FileIcon } from "@radix-ui/react-icons";
1324
1324
  import { jsx as jsx35, jsxs as jsxs9 } from "react/jsx-runtime";
1325
1325
  var Attachments = function(param) {
1326
1326
  var message = param.message;
1327
1327
  var _message_attachments;
1328
1328
  if (!((_message_attachments = message.attachments) === null || _message_attachments === void 0 ? void 0 : _message_attachments.length)) return null;
1329
- return /* @__PURE__ */ jsx35(Flex9, {
1329
+ return /* @__PURE__ */ jsx35(Flex10, {
1330
1330
  align: "start",
1331
1331
  pb: "1",
1332
1332
  children: /* @__PURE__ */ jsxs9(Badge, {
@@ -1425,7 +1425,7 @@ var Message = function(param) {
1425
1425
  import { jsx as jsx37 } from "react/jsx-runtime";
1426
1426
  var Content2 = function(param) {
1427
1427
  var messageGroup = param.messageGroup;
1428
- return /* @__PURE__ */ jsx37(Flex10, {
1428
+ return /* @__PURE__ */ jsx37(Flex11, {
1429
1429
  direction: "column-reverse",
1430
1430
  children: messageGroup.messages.map(function(message) {
1431
1431
  return /* @__PURE__ */ jsx37(Message, {
@@ -1550,7 +1550,7 @@ var Progress = function() {
1550
1550
  return /* @__PURE__ */ jsx41(StartingSkeleton, {});
1551
1551
  };
1552
1552
  // src/components/threads/Thread/Messages/Root/index.tsx
1553
- import { Flex as Flex11 } from "@radix-ui/themes";
1553
+ import { Flex as Flex12 } from "@radix-ui/themes";
1554
1554
  // src/hooks/misc/useInfiniteScroll/index.tsx
1555
1555
  import { useRef as useRef3 } from "react";
1556
1556
  import { useInView } from "react-intersection-observer";
@@ -1615,7 +1615,7 @@ var Root2 = function(param) {
1615
1615
  hasNextPage: hasNextPage,
1616
1616
  fetchNextPage: fetchNextPage
1617
1617
  }), containerRef = _useInfiniteScroll.containerRef, loaderRef = _useInfiniteScroll.loaderRef;
1618
- return /* @__PURE__ */ jsxs13(Flex11, {
1618
+ return /* @__PURE__ */ jsxs13(Flex12, {
1619
1619
  ref: containerRef,
1620
1620
  direction: "column-reverse",
1621
1621
  flexGrow: "1",
@@ -1624,10 +1624,10 @@ var Root2 = function(param) {
1624
1624
  }),
1625
1625
  children: [
1626
1626
  children,
1627
- hasNextPage && /* @__PURE__ */ jsx42(Flex11, {
1627
+ hasNextPage && /* @__PURE__ */ jsx42(Flex12, {
1628
1628
  ref: loaderRef
1629
1629
  }),
1630
- /* @__PURE__ */ jsx42(Flex11, {
1630
+ /* @__PURE__ */ jsx42(Flex12, {
1631
1631
  flexShrink: "0",
1632
1632
  flexGrow: "1"
1633
1633
  })
@@ -1650,7 +1650,7 @@ var Messages = function(param) {
1650
1650
  return /* @__PURE__ */ jsxs14(Root2, {
1651
1651
  style: style,
1652
1652
  children: [
1653
- /* @__PURE__ */ jsx44(Flex12, {
1653
+ /* @__PURE__ */ jsx44(Flex13, {
1654
1654
  flexShrink: "0",
1655
1655
  height: "var(--space-3)"
1656
1656
  }),
@@ -1658,7 +1658,7 @@ var Messages = function(param) {
1658
1658
  children,
1659
1659
  /* @__PURE__ */ jsx44(Content3, {}),
1660
1660
  /* @__PURE__ */ jsx44(NextPageSkeleton, {}),
1661
- /* @__PURE__ */ jsx44(Flex12, {
1661
+ /* @__PURE__ */ jsx44(Flex13, {
1662
1662
  flexShrink: "0",
1663
1663
  flexGrow: "1"
1664
1664
  })
@@ -1670,7 +1670,7 @@ Messages.Message = Message;
1670
1670
  Messages.NextPageSkeleton = NextPageSkeleton;
1671
1671
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
1672
1672
  import { ArrowUpIcon, StopIcon } from "@radix-ui/react-icons";
1673
- import { IconButton, Flex as Flex13 } from "@radix-ui/themes";
1673
+ import { IconButton, Flex as Flex14 } from "@radix-ui/themes";
1674
1674
  // src/hooks/messages/useMessageFormContext/index.ts
1675
1675
  import { useContext as useContext10 } from "react";
1676
1676
  // src/contexts/messages/MessageFormContext/index.ts
@@ -1690,7 +1690,7 @@ var useMessageFormContext = function() {
1690
1690
  import { jsx as jsx45 } from "react/jsx-runtime";
1691
1691
  var Root3 = function(param) {
1692
1692
  var children = param.children;
1693
- return /* @__PURE__ */ jsx45(Flex13, {
1693
+ return /* @__PURE__ */ jsx45(Flex14, {
1694
1694
  flexShrink: "0",
1695
1695
  align: "end",
1696
1696
  children: children
@@ -2480,17 +2480,17 @@ var Root4 = function(param) {
2480
2480
  };
2481
2481
  // src/components/threads/Thread/MessageForm/Field/index.tsx
2482
2482
  import { useFormContext as useFormContext2 } from "react-hook-form";
2483
- import { Container as RadixContainer, Flex as Flex17 } from "@radix-ui/themes";
2483
+ import { Container as RadixContainer, Flex as Flex18 } from "@radix-ui/themes";
2484
2484
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
2485
- import { Flex as Flex14 } from "@radix-ui/themes";
2485
+ import { Flex as Flex15 } from "@radix-ui/themes";
2486
2486
  import { useFormContext } from "react-hook-form";
2487
2487
  import { usePrevious } from "react-use";
2488
2488
  import { useContext as useContext11, useMemo as useMemo9, useRef as useRef4, useEffect as useEffect3 } from "react";
2489
2489
  // src/components/textareas/TextareaBase/index.tsx
2490
- import { forwardRef as forwardRef4 } from "react";
2490
+ import { forwardRef as forwardRef3 } from "react";
2491
2491
  import TextareaAutosize from "react-textarea-autosize";
2492
2492
  import { Fragment as Fragment3, jsx as jsx47, jsxs as jsxs15 } from "react/jsx-runtime";
2493
- var TextareaBase = forwardRef4(function TextareaBase2(props, ref) {
2493
+ var TextareaBase = forwardRef3(function TextareaBase2(props, ref) {
2494
2494
  return /* @__PURE__ */ jsxs15(Fragment3, {
2495
2495
  children: [
2496
2496
  /* @__PURE__ */ jsx47("style", {
@@ -2516,7 +2516,7 @@ var TextareaBase = forwardRef4(function TextareaBase2(props, ref) {
2516
2516
  import { jsx as jsx48 } from "react/jsx-runtime";
2517
2517
  var Root5 = function(param) {
2518
2518
  var children = param.children;
2519
- return /* @__PURE__ */ jsx48(Flex14, {
2519
+ return /* @__PURE__ */ jsx48(Flex15, {
2520
2520
  flexGrow: "1",
2521
2521
  pt: "4px",
2522
2522
  children: children
@@ -2572,7 +2572,7 @@ var Control = function() {
2572
2572
  Control.Root = Root5;
2573
2573
  Control.Input = Input;
2574
2574
  // 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";
2575
+ import { Flex as Flex16, Card as Card2, Spinner, Text as Text6, IconButton as IconButton2 } from "@radix-ui/themes";
2576
2576
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
2577
2577
  import { jsx as jsx49, jsxs as jsxs16 } from "react/jsx-runtime";
2578
2578
  var Preview = function() {
@@ -2580,7 +2580,7 @@ var Preview = function() {
2580
2580
  if (!files.length) {
2581
2581
  return null;
2582
2582
  }
2583
- return /* @__PURE__ */ jsx49(Flex15, {
2583
+ return /* @__PURE__ */ jsx49(Flex16, {
2584
2584
  flexBasis: "100%",
2585
2585
  direction: "column",
2586
2586
  pb: "2",
@@ -2588,19 +2588,19 @@ var Preview = function() {
2588
2588
  children: files.map(function(file) {
2589
2589
  return /* @__PURE__ */ jsx49(Card2, {
2590
2590
  variant: "ghost",
2591
- children: /* @__PURE__ */ jsxs16(Flex15, {
2591
+ children: /* @__PURE__ */ jsxs16(Flex16, {
2592
2592
  align: "center",
2593
2593
  justify: "between",
2594
2594
  gap: "1",
2595
2595
  children: [
2596
- /* @__PURE__ */ jsxs16(Flex15, {
2596
+ /* @__PURE__ */ jsxs16(Flex16, {
2597
2597
  align: "center",
2598
2598
  gap: "1",
2599
2599
  flexShrink: "1",
2600
2600
  minWidth: "0",
2601
2601
  maxWidth: "250px",
2602
2602
  children: [
2603
- /* @__PURE__ */ jsx49(Flex15, {
2603
+ /* @__PURE__ */ jsx49(Flex16, {
2604
2604
  flexShrink: "0",
2605
2605
  children: /* @__PURE__ */ jsx49(Spinner, {
2606
2606
  loading: isOptimistic({
@@ -2617,7 +2617,7 @@ var Preview = function() {
2617
2617
  })
2618
2618
  ]
2619
2619
  }),
2620
- /* @__PURE__ */ jsx49(Flex15, {
2620
+ /* @__PURE__ */ jsx49(Flex16, {
2621
2621
  flexShrink: "0",
2622
2622
  children: /* @__PURE__ */ jsx49(IconButton2, {
2623
2623
  onClick: function() {
@@ -2644,7 +2644,7 @@ import { useCallback as useCallback2 } from "react";
2644
2644
  import { omit as omit4 } from "radash";
2645
2645
  import dayjs2 from "dayjs";
2646
2646
  import { FilePlusIcon } from "@radix-ui/react-icons";
2647
- import { IconButton as IconButton3, Flex as Flex16 } from "@radix-ui/themes";
2647
+ import { IconButton as IconButton3, Flex as Flex17 } from "@radix-ui/themes";
2648
2648
  // src/hooks/files/useCreateFile/index.ts
2649
2649
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
2650
2650
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
@@ -2929,7 +2929,7 @@ var Control2 = function() {
2929
2929
  createFile,
2930
2930
  setFiles
2931
2931
  ]);
2932
- return /* @__PURE__ */ jsx50(Flex16, {
2932
+ return /* @__PURE__ */ jsx50(Flex17, {
2933
2933
  pt: "2",
2934
2934
  pr: "2",
2935
2935
  flexGrow: "0",
@@ -2976,13 +2976,13 @@ var Root6 = function(param) {
2976
2976
  return /* @__PURE__ */ jsx51(RadixContainer, {
2977
2977
  size: "2",
2978
2978
  flexGrow: "0",
2979
- children: /* @__PURE__ */ jsx51(Flex17, {
2979
+ children: /* @__PURE__ */ jsx51(Flex18, {
2980
2980
  direction: "column",
2981
2981
  flexShrink: "0",
2982
- children: /* @__PURE__ */ jsx51(Flex17, {
2982
+ children: /* @__PURE__ */ jsx51(Flex18, {
2983
2983
  direction: "column",
2984
2984
  flexShrink: "0",
2985
- children: /* @__PURE__ */ jsx51(Flex17, {
2985
+ children: /* @__PURE__ */ jsx51(Flex18, {
2986
2986
  style: _object_spread({
2987
2987
  borderRadius: "var(--radius-2)",
2988
2988
  borderWidth: "1px",
@@ -3021,7 +3021,7 @@ MessageForm.Root = Root4;
3021
3021
  MessageForm.Field = Field;
3022
3022
  MessageForm.Submit = Submit;
3023
3023
  // src/components/threads/Thread/Root/index.tsx
3024
- import { Flex as Flex18 } from "@radix-ui/themes";
3024
+ import { Flex as Flex19 } from "@radix-ui/themes";
3025
3025
  // src/components/threads/Thread/Provider/index.tsx
3026
3026
  var Provider2 = SuperinterfaceProvider;
3027
3027
  // src/components/threads/Thread/Root/index.tsx
@@ -3031,7 +3031,7 @@ var Root7 = function(_param) {
3031
3031
  "children"
3032
3032
  ]);
3033
3033
  return /* @__PURE__ */ jsx53(Provider2, _object_spread_props(_object_spread({}, rest), {
3034
- children: /* @__PURE__ */ jsx53(Flex18, {
3034
+ children: /* @__PURE__ */ jsx53(Flex19, {
3035
3035
  direction: "column",
3036
3036
  flexGrow: "1",
3037
3037
  children: children
@@ -3088,7 +3088,7 @@ import { useState as useState3, useCallback as useCallback3 } from "react";
3088
3088
  import * as Toast2 from "@radix-ui/react-toast";
3089
3089
  // src/components/toasts/ToastsProvider/CustomToast.tsx
3090
3090
  import * as Toast from "@radix-ui/react-toast";
3091
- import { Card as Card3, Text as Text7, Flex as Flex19 } from "@radix-ui/themes";
3091
+ import { Card as Card3, Text as Text7, Flex as Flex20 } from "@radix-ui/themes";
3092
3092
  import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
3093
3093
  import { jsx as jsx56, jsxs as jsxs20 } from "react/jsx-runtime";
3094
3094
  var CustomToast = function(param) {
@@ -3096,9 +3096,9 @@ var CustomToast = function(param) {
3096
3096
  return /* @__PURE__ */ jsx56(Toast.Root, {
3097
3097
  children: /* @__PURE__ */ jsx56(Card3, {
3098
3098
  children: /* @__PURE__ */ jsx56(Toast.Title, {
3099
- children: /* @__PURE__ */ jsxs20(Flex19, {
3099
+ children: /* @__PURE__ */ jsxs20(Flex20, {
3100
3100
  children: [
3101
- /* @__PURE__ */ jsx56(Flex19, {
3101
+ /* @__PURE__ */ jsx56(Flex20, {
3102
3102
  pr: "2",
3103
3103
  height: "14px",
3104
3104
  align: "center",
@@ -3176,7 +3176,7 @@ var Root9 = function(param) {
3176
3176
  });
3177
3177
  };
3178
3178
  // src/components/threads/ThreadDialog/Trigger/index.tsx
3179
- import { Flex as Flex20 } from "@radix-ui/themes";
3179
+ import { Flex as Flex21 } from "@radix-ui/themes";
3180
3180
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
3181
3181
  import { IconButton as IconButton4 } from "@radix-ui/themes";
3182
3182
  import { ChatBubbleIcon } from "@radix-ui/react-icons";
@@ -3193,7 +3193,7 @@ import { jsx as jsx60 } from "react/jsx-runtime";
3193
3193
  var Root10 = function(param) {
3194
3194
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
3195
3195
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
3196
- return /* @__PURE__ */ jsx60(Flex20, {
3196
+ return /* @__PURE__ */ jsx60(Flex21, {
3197
3197
  display: {
3198
3198
  initial: isOpen ? "none" : "flex",
3199
3199
  sm: "flex"
@@ -3224,14 +3224,14 @@ var Trigger = function(args) {
3224
3224
  Trigger.Root = Root10;
3225
3225
  Trigger.Button = Button3;
3226
3226
  // src/components/threads/ThreadDialog/Content/index.tsx
3227
- import { Card as Card4, Inset, Flex as Flex22 } from "@radix-ui/themes";
3227
+ import { Card as Card4, Inset, Flex as Flex23 } from "@radix-ui/themes";
3228
3228
  // src/components/threads/ThreadDialog/Close/index.tsx
3229
3229
  import { Cross1Icon } from "@radix-ui/react-icons";
3230
- import { IconButton as IconButton5, Flex as Flex21 } from "@radix-ui/themes";
3230
+ import { IconButton as IconButton5, Flex as Flex22 } from "@radix-ui/themes";
3231
3231
  import { jsx as jsx61 } from "react/jsx-runtime";
3232
3232
  var Close = function() {
3233
3233
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
3234
- return /* @__PURE__ */ jsx61(Flex21, {
3234
+ return /* @__PURE__ */ jsx61(Flex22, {
3235
3235
  display: {
3236
3236
  initial: isOpen ? "flex" : "none",
3237
3237
  sm: "none"
@@ -3264,7 +3264,7 @@ var Root11 = function(param) {
3264
3264
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
3265
3265
  var isOpen = useThreadDialogContext().isOpen;
3266
3266
  if (!isOpen) return null;
3267
- return /* @__PURE__ */ jsx62(Flex22, {
3267
+ return /* @__PURE__ */ jsx62(Flex23, {
3268
3268
  direction: "column",
3269
3269
  justify: "end",
3270
3270
  position: "fixed",
@@ -3329,7 +3329,7 @@ var Messages2 = function() {
3329
3329
  };
3330
3330
  var FormContainer = function(param) {
3331
3331
  var children = param.children;
3332
- return /* @__PURE__ */ jsx62(Flex22, {
3332
+ return /* @__PURE__ */ jsx62(Flex23, {
3333
3333
  direction: "column",
3334
3334
  pl: "5",
3335
3335
  pr: "5",
@@ -3370,7 +3370,7 @@ ThreadDialog.Trigger = Trigger;
3370
3370
  ThreadDialog.Content = Content4;
3371
3371
  // src/components/threads/AudioThread/Root/index.tsx
3372
3372
  import "regenerator-runtime/runtime";
3373
- import { Flex as Flex23 } from "@radix-ui/themes";
3373
+ import { Flex as Flex24 } from "@radix-ui/themes";
3374
3374
  // src/contexts/threads/AudioThreadContext/index.ts
3375
3375
  import { createContext as createContext12 } from "react";
3376
3376
  var AudioThreadContext = createContext12({
@@ -3871,7 +3871,7 @@ var Root12 = function(param) {
3871
3871
  recorderProps: recorderProps,
3872
3872
  messageAudioProps: messageAudioProps
3873
3873
  },
3874
- children: /* @__PURE__ */ jsx64(Flex23, {
3874
+ children: /* @__PURE__ */ jsx64(Flex24, {
3875
3875
  direction: "column",
3876
3876
  flexGrow: "1",
3877
3877
  p: "9",
@@ -3882,7 +3882,7 @@ var Root12 = function(param) {
3882
3882
  // src/components/threads/AudioThread/Visualization/index.tsx
3883
3883
  import { useContext as useContext15, useState as useState7, useCallback as useCallback6, useEffect as useEffect7 } from "react";
3884
3884
  import _9 from "lodash";
3885
- import { Flex as Flex25 } from "@radix-ui/themes";
3885
+ import { Flex as Flex26 } from "@radix-ui/themes";
3886
3886
  // src/hooks/threads/useAudioThreadContext/index.ts
3887
3887
  import { useContext as useContext14 } from "react";
3888
3888
  var useAudioThreadContext = function() {
@@ -3890,7 +3890,7 @@ var useAudioThreadContext = function() {
3890
3890
  };
3891
3891
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
3892
3892
  import _8 from "lodash";
3893
- import { Flex as Flex24, Grid } from "@radix-ui/themes";
3893
+ import { Flex as Flex25, Grid } from "@radix-ui/themes";
3894
3894
  import { useState as useState6, useEffect as useEffect6, useCallback as useCallback5 } from "react";
3895
3895
  import { cluster } from "radash";
3896
3896
  import { jsx as jsx65 } from "react/jsx-runtime";
@@ -3933,12 +3933,12 @@ var BarsVisualizer = function(param) {
3933
3933
  gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
3934
3934
  },
3935
3935
  children: barHeights.map(function(barHeight, index) {
3936
- return /* @__PURE__ */ jsx65(Flex24, {
3936
+ return /* @__PURE__ */ jsx65(Flex25, {
3937
3937
  direction: "column",
3938
3938
  align: "center",
3939
3939
  justify: "center",
3940
3940
  height: height,
3941
- children: /* @__PURE__ */ jsx65(Flex24, {
3941
+ children: /* @__PURE__ */ jsx65(Flex25, {
3942
3942
  minHeight: "50%",
3943
3943
  maxHeight: "100%",
3944
3944
  height: "".concat(barHeight + 20, "%"),
@@ -3981,14 +3981,14 @@ var Visualization = function() {
3981
3981
  draw,
3982
3982
  audioThreadContext
3983
3983
  ]);
3984
- return /* @__PURE__ */ jsxs24(Flex25, {
3984
+ return /* @__PURE__ */ jsxs24(Flex26, {
3985
3985
  direction: "column",
3986
3986
  align: "center",
3987
3987
  justify: "center",
3988
3988
  mb: "3",
3989
3989
  flexGrow: "1",
3990
3990
  children: [
3991
- /* @__PURE__ */ jsx66(Flex25, {
3991
+ /* @__PURE__ */ jsx66(Flex26, {
3992
3992
  align: "center",
3993
3993
  justify: "center",
3994
3994
  height: "200px",
@@ -4005,7 +4005,7 @@ var Visualization = function() {
4005
4005
  barWidth: "24px"
4006
4006
  })
4007
4007
  }),
4008
- /* @__PURE__ */ jsxs24(Flex25, {
4008
+ /* @__PURE__ */ jsxs24(Flex26, {
4009
4009
  ml: "-22.5px",
4010
4010
  gap: "3",
4011
4011
  pt: "5",
@@ -4020,7 +4020,7 @@ var Visualization = function() {
4020
4020
  });
4021
4021
  };
4022
4022
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
4023
- import { Flex as Flex26, Text as Text8 } from "@radix-ui/themes";
4023
+ import { Flex as Flex27, Text as Text8 } from "@radix-ui/themes";
4024
4024
  import { jsx as jsx67, jsxs as jsxs25 } from "react/jsx-runtime";
4025
4025
  var html = function(param) {
4026
4026
  var texts = param.texts;
@@ -4030,7 +4030,7 @@ var html = function(param) {
4030
4030
  };
4031
4031
  var StatusMessages = function(param) {
4032
4032
  var texts = param.texts;
4033
- return /* @__PURE__ */ jsxs25(Flex26, {
4033
+ return /* @__PURE__ */ jsxs25(Flex27, {
4034
4034
  justify: "center",
4035
4035
  pb: "5",
4036
4036
  children: [
@@ -4089,7 +4089,7 @@ var Status = function() {
4089
4089
  });
4090
4090
  };
4091
4091
  // src/components/threads/AudioThread/Form/index.tsx
4092
- import { Flex as Flex28 } from "@radix-ui/themes";
4092
+ import { Flex as Flex29 } from "@radix-ui/themes";
4093
4093
  // src/components/threads/AudioThread/Form/MicIcon.tsx
4094
4094
  import { jsx as jsx69 } from "react/jsx-runtime";
4095
4095
  var MicIcon = function(props) {
@@ -4109,17 +4109,17 @@ var MicIcon = function(props) {
4109
4109
  }));
4110
4110
  };
4111
4111
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
4112
- import { Flex as Flex27, IconButton as IconButton6 } from "@radix-ui/themes";
4112
+ import { Flex as Flex28, IconButton as IconButton6 } from "@radix-ui/themes";
4113
4113
  import { StopIcon as StopIcon2, PauseIcon, ArrowUpIcon as ArrowUpIcon2, ResumeIcon } from "@radix-ui/react-icons";
4114
4114
  import { jsx as jsx70, jsxs as jsxs26 } from "react/jsx-runtime";
4115
4115
  var ActionButton = function() {
4116
4116
  var audioThreadContext = useAudioThreadContext();
4117
4117
  var superinterfaceContext = useSuperinterfaceContext();
4118
4118
  if (audioThreadContext.status === "recording") {
4119
- return /* @__PURE__ */ jsxs26(Flex27, {
4119
+ return /* @__PURE__ */ jsxs26(Flex28, {
4120
4120
  align: "center",
4121
4121
  children: [
4122
- /* @__PURE__ */ jsx70(Flex27, {
4122
+ /* @__PURE__ */ jsx70(Flex28, {
4123
4123
  mr: "3",
4124
4124
  ml: "-7",
4125
4125
  children: /* @__PURE__ */ jsx70(IconButton6, {
@@ -4190,15 +4190,15 @@ var ActionButton = function() {
4190
4190
  import { jsx as jsx71, jsxs as jsxs27 } from "react/jsx-runtime";
4191
4191
  var Form = function() {
4192
4192
  var audioThreadContext = useAudioThreadContext();
4193
- return /* @__PURE__ */ jsxs27(Flex28, {
4193
+ return /* @__PURE__ */ jsxs27(Flex29, {
4194
4194
  direction: "column",
4195
4195
  align: "center",
4196
4196
  children: [
4197
- /* @__PURE__ */ jsxs27(Flex28, {
4197
+ /* @__PURE__ */ jsxs27(Flex29, {
4198
4198
  pb: "3",
4199
4199
  align: "center",
4200
4200
  children: [
4201
- /* @__PURE__ */ jsx71(Flex28, {
4201
+ /* @__PURE__ */ jsx71(Flex29, {
4202
4202
  ml: "-22.5px",
4203
4203
  mr: "2",
4204
4204
  align: "center",
@@ -4208,7 +4208,7 @@ var Form = function() {
4208
4208
  }
4209
4209
  })
4210
4210
  }),
4211
- /* @__PURE__ */ jsx71(Flex28, {
4211
+ /* @__PURE__ */ jsx71(Flex29, {
4212
4212
  px: "2",
4213
4213
  py: "1",
4214
4214
  style: {
@@ -4263,7 +4263,7 @@ import { useMemo as useMemo14 } from "react";
4263
4263
  import { useMemo as useMemo13 } from "react";
4264
4264
  import { isEmpty as isEmpty3 } from "radash";
4265
4265
  import { onlyText } from "react-children-utilities";
4266
- import { Flex as Flex29 } from "@radix-ui/themes";
4266
+ import { Flex as Flex30 } from "@radix-ui/themes";
4267
4267
  // src/components/suggestions/Suggestions/Item.tsx
4268
4268
  import { ArrowUpIcon as ArrowUpIcon3 } from "@radix-ui/react-icons";
4269
4269
  import { Text as Text9, Button as Button4, Spinner as Spinner2 } from "@radix-ui/themes";
@@ -4327,7 +4327,7 @@ var Content6 = function(param) {
4327
4327
  children
4328
4328
  ]);
4329
4329
  if (isEmpty3(suggestions)) return null;
4330
- return /* @__PURE__ */ jsx75(Flex29, {
4330
+ return /* @__PURE__ */ jsx75(Flex30, {
4331
4331
  gap: "2",
4332
4332
  py: "2",
4333
4333
  wrap: "wrap",