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