@superinterface/react 2.13.4 → 2.14.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.js CHANGED
@@ -672,7 +672,7 @@ var useToasts = function() {
672
672
  return useContext2(ToastsContext);
673
673
  };
674
674
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
675
- import { useContext as useContext6 } from "react";
675
+ import { useContext as useContext7 } from "react";
676
676
  import { Box as Box10, Avatar as Avatar3 } from "@radix-ui/themes";
677
677
  import { PersonIcon } from "@radix-ui/react-icons";
678
678
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
@@ -727,6 +727,9 @@ var StartingContentSkeleton = function() {
727
727
  };
728
728
  // src/components/runSteps/RunSteps/index.tsx
729
729
  import { Flex as Flex9 } from "@radix-ui/themes";
730
+ import { useContext as useContext5 } from "react";
731
+ // src/contexts/components/ComponentsContext/index.tsx
732
+ import { createContext as createContext6 } from "react";
730
733
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
731
734
  import { Flex as Flex8 } from "@radix-ui/themes";
732
735
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
@@ -953,10 +956,16 @@ var Starting = function() {
953
956
  };
954
957
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
955
958
  import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
959
+ var Root = function(param) {
960
+ var children = param.children;
961
+ return /* @__PURE__ */ jsx18(Flex8, {
962
+ direction: "column",
963
+ children: children
964
+ });
965
+ };
956
966
  var ToolCalls = function(param) {
957
967
  var stepDetails = param.stepDetails, runStep = param.runStep;
958
- return /* @__PURE__ */ jsxs5(Flex8, {
959
- direction: "column",
968
+ return /* @__PURE__ */ jsxs5(Root, {
960
969
  children: [
961
970
  !stepDetails.tool_calls.length && /* @__PURE__ */ jsx18(Starting, {}),
962
971
  stepDetails.tool_calls.map(function(toolCall) {
@@ -968,6 +977,9 @@ var ToolCalls = function(param) {
968
977
  ]
969
978
  });
970
979
  };
980
+ ToolCalls.Root = Root;
981
+ ToolCalls.Starting = Starting;
982
+ ToolCalls.ToolCall = ToolCall;
971
983
  // src/components/runSteps/RunStep/index.tsx
972
984
  import { jsx as jsx19 } from "react/jsx-runtime";
973
985
  var RunStep = function(param) {
@@ -980,14 +992,23 @@ var RunStep = function(param) {
980
992
  }
981
993
  return null;
982
994
  };
995
+ RunStep.ToolCalls = ToolCalls;
996
+ // src/contexts/components/ComponentsContext/index.tsx
997
+ var ComponentsContext = createContext6({
998
+ components: {
999
+ RunStep: RunStep
1000
+ }
1001
+ });
983
1002
  // src/components/runSteps/RunSteps/index.tsx
984
1003
  import { jsx as jsx20 } from "react/jsx-runtime";
985
1004
  var RunSteps = function(param) {
986
1005
  var runSteps = param.runSteps;
1006
+ var componentsContext = useContext5(ComponentsContext);
1007
+ var Component = componentsContext.components.RunStep;
987
1008
  return /* @__PURE__ */ jsx20(Flex9, {
988
1009
  direction: "column-reverse",
989
1010
  children: runSteps.map(function(runStep) {
990
- return /* @__PURE__ */ jsx20(RunStep, {
1011
+ return /* @__PURE__ */ jsx20(Component, {
991
1012
  runStep: runStep
992
1013
  }, runStep.id);
993
1014
  })
@@ -1012,8 +1033,8 @@ var useIsMutatingMessage = function() {
1012
1033
  return isMutatingMessage;
1013
1034
  };
1014
1035
  // src/contexts/messages/MessageContext/index.ts
1015
- import { createContext as createContext6 } from "react";
1016
- var MessageContext = createContext6({
1036
+ import { createContext as createContext7 } from "react";
1037
+ var MessageContext = createContext7({
1017
1038
  message: null
1018
1039
  });
1019
1040
  // src/components/threads/Thread/Message/Provider.tsx
@@ -1021,9 +1042,9 @@ var Provider = MessageContext.Provider;
1021
1042
  // src/components/threads/Thread/Message/TextContent.tsx
1022
1043
  import { useRemarkSync } from "react-remark";
1023
1044
  // src/hooks/markdown/useMarkdownContext/index.ts
1024
- import { useContext as useContext5 } from "react";
1045
+ import { useContext as useContext6 } from "react";
1025
1046
  // src/contexts/markdown/MarkdownContext/index.ts
1026
- import { createContext as createContext7 } from "react";
1047
+ import { createContext as createContext8 } from "react";
1027
1048
  // src/contexts/markdown/MarkdownContext/lib/components/Paragraph.tsx
1028
1049
  import { Box as Box3, Text as Text4 } from "@radix-ui/themes";
1029
1050
  import { jsx as jsx21 } from "react/jsx-runtime";
@@ -1153,7 +1174,7 @@ var components = {
1153
1174
  img: Img
1154
1175
  };
1155
1176
  // src/contexts/markdown/MarkdownContext/index.ts
1156
- var MarkdownContext = createContext7({
1177
+ var MarkdownContext = createContext8({
1157
1178
  remarkPlugins: [],
1158
1179
  rehypeReactOptions: {
1159
1180
  components: components
@@ -1161,7 +1182,7 @@ var MarkdownContext = createContext7({
1161
1182
  });
1162
1183
  // src/hooks/markdown/useMarkdownContext/index.ts
1163
1184
  var useMarkdownContext = function() {
1164
- return useContext5(MarkdownContext);
1185
+ return useContext6(MarkdownContext);
1165
1186
  };
1166
1187
  // src/components/threads/Thread/Message/TextContent.tsx
1167
1188
  var TextContent = function(param) {
@@ -1260,7 +1281,7 @@ var Content2 = function(param) {
1260
1281
  import { jsx as jsx32, jsxs as jsxs7 } from "react/jsx-runtime";
1261
1282
  var MessageGroup = function(param) {
1262
1283
  var messageGroup = param.messageGroup;
1263
- var assistantNameContext = useContext6(AssistantNameContext);
1284
+ var assistantNameContext = useContext7(AssistantNameContext);
1264
1285
  return /* @__PURE__ */ jsxs7(MessageGroupBase, {
1265
1286
  children: [
1266
1287
  messageGroup.role === "user" ? /* @__PURE__ */ jsx32(Avatar3, {
@@ -1314,12 +1335,12 @@ var Content3 = function() {
1314
1335
  // src/components/threads/Thread/Messages/Progress/index.tsx
1315
1336
  import { useMemo as useMemo7 } from "react";
1316
1337
  // src/components/skeletons/StartingSkeleton/index.tsx
1317
- import { useContext as useContext7 } from "react";
1338
+ import { useContext as useContext8 } from "react";
1318
1339
  import { Box as Box11 } from "@radix-ui/themes";
1319
1340
  import { jsx as jsx34, jsxs as jsxs8 } from "react/jsx-runtime";
1320
1341
  var StartingSkeleton = function(param) {
1321
1342
  var children = param.children;
1322
- var assistantNameContext = useContext7(AssistantNameContext);
1343
+ var assistantNameContext = useContext8(AssistantNameContext);
1323
1344
  return /* @__PURE__ */ jsxs8(MessageGroupBase, {
1324
1345
  children: [
1325
1346
  /* @__PURE__ */ jsx34(AssistantAvatar, {}),
@@ -1432,7 +1453,7 @@ var useInfiniteScroll = function(param) {
1432
1453
  };
1433
1454
  // src/components/threads/Thread/Messages/Root/index.tsx
1434
1455
  import { jsx as jsx36, jsxs as jsxs9 } from "react/jsx-runtime";
1435
- var Root = function(param) {
1456
+ var Root2 = function(param) {
1436
1457
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
1437
1458
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
1438
1459
  var _useInfiniteScroll = useInfiniteScroll({
@@ -1472,7 +1493,7 @@ var NextPageSkeleton = function() {
1472
1493
  import { jsx as jsx38, jsxs as jsxs10 } from "react/jsx-runtime";
1473
1494
  var Messages = function(param) {
1474
1495
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
1475
- return /* @__PURE__ */ jsxs10(Root, {
1496
+ return /* @__PURE__ */ jsxs10(Root2, {
1476
1497
  style: style,
1477
1498
  children: [
1478
1499
  /* @__PURE__ */ jsx38(Flex12, {
@@ -1490,7 +1511,7 @@ var Messages = function(param) {
1490
1511
  ]
1491
1512
  });
1492
1513
  };
1493
- Messages.Root = Root;
1514
+ Messages.Root = Root2;
1494
1515
  Messages.Message = Message;
1495
1516
  Messages.NextPageSkeleton = NextPageSkeleton;
1496
1517
  // src/components/threads/Thread/MessageForm/index.tsx
@@ -1499,16 +1520,16 @@ import { Flex as Flex14, Text as Text5 } from "@radix-ui/themes";
1499
1520
  import { ArrowUpIcon, StopIcon } from "@radix-ui/react-icons";
1500
1521
  import { IconButton } from "@radix-ui/themes";
1501
1522
  // src/hooks/messages/useMessageFormContext/index.ts
1502
- import { useContext as useContext8 } from "react";
1523
+ import { useContext as useContext9 } from "react";
1503
1524
  // src/contexts/messages/MessageFormContext/index.ts
1504
- import { createContext as createContext8 } from "react";
1505
- var MessageFormContext = createContext8({
1525
+ import { createContext as createContext9 } from "react";
1526
+ var MessageFormContext = createContext9({
1506
1527
  isDisabled: false,
1507
1528
  isLoading: false
1508
1529
  });
1509
1530
  // src/hooks/messages/useMessageFormContext/index.ts
1510
1531
  var useMessageFormContext = function() {
1511
- return useContext8(MessageFormContext);
1532
+ return useContext9(MessageFormContext);
1512
1533
  };
1513
1534
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
1514
1535
  import { jsx as jsx39 } from "react/jsx-runtime";
@@ -2156,7 +2177,7 @@ var formOptions = {
2156
2177
  };
2157
2178
  // src/components/threads/Thread/MessageForm/Root/index.tsx
2158
2179
  import { jsx as jsx40 } from "react/jsx-runtime";
2159
- var Root2 = function(param) {
2180
+ var Root3 = function(param) {
2160
2181
  var children = param.children;
2161
2182
  var formProps = useForm(formOptions);
2162
2183
  var handleSubmit = formProps.handleSubmit, isSubmitting = formProps.formState.isSubmitting, reset = formProps.reset;
@@ -2246,7 +2267,7 @@ var Root2 = function(param) {
2246
2267
  };
2247
2268
  // src/components/threads/Thread/MessageForm/Field/index.tsx
2248
2269
  import { usePrevious } from "react-use";
2249
- import { useContext as useContext9, useMemo as useMemo9, useRef as useRef4, useEffect as useEffect3 } from "react";
2270
+ import { useContext as useContext10, useMemo as useMemo9, useRef as useRef4, useEffect as useEffect3 } from "react";
2250
2271
  // src/components/textareas/TextareaBase/index.tsx
2251
2272
  import { forwardRef as forwardRef3 } from "react";
2252
2273
  import TextareaAutosize from "react-textarea-autosize";
@@ -2284,7 +2305,7 @@ var TextareaBase = forwardRef3(function TextareaBase2(props, ref) {
2284
2305
  import { useFormContext } from "react-hook-form";
2285
2306
  import { Container as Container2, Flex as Flex13 } from "@radix-ui/themes";
2286
2307
  import { jsx as jsx42 } from "react/jsx-runtime";
2287
- var Root3 = function(param) {
2308
+ var Root4 = function(param) {
2288
2309
  var children = param.children;
2289
2310
  var _useFormContext = useFormContext(), errors = _useFormContext.formState.errors;
2290
2311
  return /* @__PURE__ */ jsx42(Container2, {
@@ -2314,7 +2335,7 @@ var Root3 = function(param) {
2314
2335
  });
2315
2336
  };
2316
2337
  var Control = function() {
2317
- var assistantNameContext = useContext9(AssistantNameContext);
2338
+ var assistantNameContext = useContext10(AssistantNameContext);
2318
2339
  var register = useFormContext().register;
2319
2340
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
2320
2341
  var isSubmitDisabled = useMemo9(function() {
@@ -2356,13 +2377,13 @@ var Control = function() {
2356
2377
  }));
2357
2378
  };
2358
2379
  var Field = {
2359
- Root: Root3,
2380
+ Root: Root4,
2360
2381
  Control: Control
2361
2382
  };
2362
2383
  // src/components/threads/Thread/MessageForm/index.tsx
2363
2384
  import { jsx as jsx43, jsxs as jsxs12 } from "react/jsx-runtime";
2364
2385
  var MessageForm = function() {
2365
- return /* @__PURE__ */ jsx43(Root2, {
2386
+ return /* @__PURE__ */ jsx43(Root3, {
2366
2387
  children: /* @__PURE__ */ jsxs12(Field.Root, {
2367
2388
  children: [
2368
2389
  /* @__PURE__ */ jsx43(Text5, {
@@ -2385,7 +2406,7 @@ var MessageForm = function() {
2385
2406
  })
2386
2407
  });
2387
2408
  };
2388
- MessageForm.Root = Root2;
2409
+ MessageForm.Root = Root3;
2389
2410
  MessageForm.Field = Field;
2390
2411
  MessageForm.Submit = Submit;
2391
2412
  // src/components/threads/Thread/Root/index.tsx
@@ -2394,7 +2415,7 @@ import { Flex as Flex15 } from "@radix-ui/themes";
2394
2415
  var Provider2 = SuperinterfaceProvider;
2395
2416
  // src/components/threads/Thread/Root/index.tsx
2396
2417
  import { jsx as jsx44 } from "react/jsx-runtime";
2397
- var Root4 = function(_param) {
2418
+ var Root5 = function(_param) {
2398
2419
  var children = _param.children, rest = _object_without_properties(_param, [
2399
2420
  "children"
2400
2421
  ]);
@@ -2409,33 +2430,33 @@ var Root4 = function(_param) {
2409
2430
  // src/components/threads/Thread/index.tsx
2410
2431
  import { jsx as jsx45, jsxs as jsxs13 } from "react/jsx-runtime";
2411
2432
  var Thread = function(props) {
2412
- return /* @__PURE__ */ jsxs13(Root4, _object_spread_props(_object_spread({}, props), {
2433
+ return /* @__PURE__ */ jsxs13(Root5, _object_spread_props(_object_spread({}, props), {
2413
2434
  children: [
2414
2435
  /* @__PURE__ */ jsx45(Messages, {}),
2415
2436
  /* @__PURE__ */ jsx45(MessageForm, {})
2416
2437
  ]
2417
2438
  }));
2418
2439
  };
2419
- Thread.Root = Root4;
2440
+ Thread.Root = Root5;
2420
2441
  Thread.Messages = Messages;
2421
2442
  Thread.MessageForm = MessageForm;
2422
2443
  // src/hooks/messages/useMessageContext/index.ts
2423
- import { useContext as useContext10 } from "react";
2444
+ import { useContext as useContext11 } from "react";
2424
2445
  var useMessageContext = function() {
2425
- return useContext10(MessageContext);
2446
+ return useContext11(MessageContext);
2426
2447
  };
2427
2448
  // src/components/threads/ThreadDialog/Provider/index.tsx
2428
2449
  import { useState } from "react";
2429
2450
  // src/contexts/threads/ThreadDialogContext/index.ts
2430
- import { createContext as createContext9 } from "react";
2431
- var ThreadDialogContext = createContext9({
2451
+ import { createContext as createContext10 } from "react";
2452
+ var ThreadDialogContext = createContext10({
2432
2453
  isOpen: false,
2433
2454
  setIsOpen: function() {}
2434
2455
  });
2435
2456
  // src/hooks/threads/useThreadDialogContext/index.ts
2436
- import { useContext as useContext11 } from "react";
2457
+ import { useContext as useContext12 } from "react";
2437
2458
  var useThreadDialogContext = function() {
2438
- return useContext11(ThreadDialogContext);
2459
+ return useContext12(ThreadDialogContext);
2439
2460
  };
2440
2461
  // src/components/threads/ThreadDialog/Provider/index.tsx
2441
2462
  import { jsx as jsx46 } from "react/jsx-runtime";
@@ -2535,7 +2556,7 @@ var ToastsProvider = function(param) {
2535
2556
  };
2536
2557
  // src/components/threads/ThreadDialog/Root/index.tsx
2537
2558
  import { jsx as jsx49 } from "react/jsx-runtime";
2538
- var Root6 = function(param) {
2559
+ var Root7 = function(param) {
2539
2560
  var children = param.children;
2540
2561
  return /* @__PURE__ */ jsx49(ToastsProvider, {
2541
2562
  children: /* @__PURE__ */ jsx49(Provider3, {
@@ -2620,7 +2641,7 @@ var Close = function() {
2620
2641
  };
2621
2642
  // src/components/threads/ThreadDialog/Content/index.tsx
2622
2643
  import { jsx as jsx53, jsxs as jsxs16 } from "react/jsx-runtime";
2623
- var Root7 = function(param) {
2644
+ var Root8 = function(param) {
2624
2645
  var children = param.children, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
2625
2646
  var isOpen = useThreadDialogContext().isOpen;
2626
2647
  if (!isOpen) return null;
@@ -2680,7 +2701,7 @@ var Root7 = function(param) {
2680
2701
  };
2681
2702
  var Content4 = function(param) {
2682
2703
  var _param_style = param.style, style = _param_style === void 0 ? {} : _param_style;
2683
- return /* @__PURE__ */ jsx53(Root7, {
2704
+ return /* @__PURE__ */ jsx53(Root8, {
2684
2705
  style: style,
2685
2706
  children: /* @__PURE__ */ jsxs16(Thread.Root, {
2686
2707
  children: [
@@ -2703,11 +2724,11 @@ var Content4 = function(param) {
2703
2724
  })
2704
2725
  });
2705
2726
  };
2706
- Content4.Root = Root7;
2727
+ Content4.Root = Root8;
2707
2728
  // src/components/threads/ThreadDialog/index.tsx
2708
2729
  import { jsx as jsx54, jsxs as jsxs17 } from "react/jsx-runtime";
2709
2730
  var ThreadDialog = function() {
2710
- return /* @__PURE__ */ jsxs17(Root6, {
2731
+ return /* @__PURE__ */ jsxs17(Root7, {
2711
2732
  children: [
2712
2733
  /* @__PURE__ */ jsx54(Content4, {}),
2713
2734
  /* @__PURE__ */ jsx54(Trigger, {
@@ -2716,7 +2737,7 @@ var ThreadDialog = function() {
2716
2737
  ]
2717
2738
  });
2718
2739
  };
2719
- ThreadDialog.Root = Root6;
2740
+ ThreadDialog.Root = Root7;
2720
2741
  ThreadDialog.Trigger = Trigger;
2721
2742
  ThreadDialog.Button = Button2;
2722
2743
  ThreadDialog.Content = Content4;
@@ -2724,8 +2745,8 @@ ThreadDialog.Content = Content4;
2724
2745
  import "regenerator-runtime/runtime";
2725
2746
  import { Flex as Flex20 } from "@radix-ui/themes";
2726
2747
  // src/contexts/threads/AudioThreadContext/index.ts
2727
- import { createContext as createContext10 } from "react";
2728
- var AudioThreadContext = createContext10({
2748
+ import { createContext as createContext11 } from "react";
2749
+ var AudioThreadContext = createContext11({
2729
2750
  status: "idle",
2730
2751
  recorderProps: {
2731
2752
  status: "idle",
@@ -3160,7 +3181,7 @@ var useMessageAudio = function(param) {
3160
3181
  };
3161
3182
  // src/components/threads/AudioThread/Root/index.tsx
3162
3183
  import { jsx as jsx55 } from "react/jsx-runtime";
3163
- var Root8 = function(param) {
3184
+ var Root9 = function(param) {
3164
3185
  var children = param.children;
3165
3186
  var createMessageProps = useCreateMessage();
3166
3187
  var recorderProps = useRecorder({
@@ -3232,13 +3253,13 @@ var Root8 = function(param) {
3232
3253
  });
3233
3254
  };
3234
3255
  // src/components/threads/AudioThread/Visualization/index.tsx
3235
- import { useContext as useContext13, useState as useState6, useCallback as useCallback5, useEffect as useEffect7 } from "react";
3256
+ import { useContext as useContext14, useState as useState6, useCallback as useCallback5, useEffect as useEffect7 } from "react";
3236
3257
  import _9 from "lodash";
3237
3258
  import { Flex as Flex22 } from "@radix-ui/themes";
3238
3259
  // src/hooks/threads/useAudioThreadContext/index.ts
3239
- import { useContext as useContext12 } from "react";
3260
+ import { useContext as useContext13 } from "react";
3240
3261
  var useAudioThreadContext = function() {
3241
- return useContext12(AudioThreadContext);
3262
+ return useContext13(AudioThreadContext);
3242
3263
  };
3243
3264
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
3244
3265
  import _8 from "lodash";
@@ -3308,7 +3329,7 @@ var BarsVisualizer = function(param) {
3308
3329
  import { jsx as jsx57, jsxs as jsxs18 } from "react/jsx-runtime";
3309
3330
  var Visualization = function() {
3310
3331
  var audioThreadContext = useAudioThreadContext();
3311
- var assistantNameContext = useContext13(AssistantNameContext);
3332
+ var assistantNameContext = useContext14(AssistantNameContext);
3312
3333
  var _useState6 = _sliced_to_array(useState6(0), 2), scale = _useState6[0], setScale = _useState6[1];
3313
3334
  var draw = useCallback5(function(param) {
3314
3335
  var visualizationAnalyser = param.visualizationAnalyser;
@@ -3583,7 +3604,7 @@ var Form = function() {
3583
3604
  // src/components/threads/AudioThread/index.tsx
3584
3605
  import { jsx as jsx63, jsxs as jsxs22 } from "react/jsx-runtime";
3585
3606
  var AudioThread = function(props) {
3586
- return /* @__PURE__ */ jsxs22(Root8, _object_spread_props(_object_spread({}, props), {
3607
+ return /* @__PURE__ */ jsxs22(Root9, _object_spread_props(_object_spread({}, props), {
3587
3608
  children: [
3588
3609
  /* @__PURE__ */ jsx63(Visualization, {}),
3589
3610
  /* @__PURE__ */ jsx63(Status, {}),
@@ -3591,13 +3612,13 @@ var AudioThread = function(props) {
3591
3612
  ]
3592
3613
  }));
3593
3614
  };
3594
- AudioThread.Root = Root8;
3615
+ AudioThread.Root = Root9;
3595
3616
  AudioThread.Visualization = Visualization;
3596
3617
  AudioThread.Form = Form;
3597
3618
  // src/components/threads/AudioThreadDialog/index.tsx
3598
3619
  import { jsx as jsx64, jsxs as jsxs23 } from "react/jsx-runtime";
3599
3620
  var AudioThreadDialog = function() {
3600
- return /* @__PURE__ */ jsxs23(Root6, {
3621
+ return /* @__PURE__ */ jsxs23(Root7, {
3601
3622
  children: [
3602
3623
  /* @__PURE__ */ jsx64(Content4.Root, {
3603
3624
  children: /* @__PURE__ */ jsx64(AudioThread, {})
@@ -3608,7 +3629,7 @@ var AudioThreadDialog = function() {
3608
3629
  ]
3609
3630
  });
3610
3631
  };
3611
- AudioThreadDialog.Root = Root6;
3632
+ AudioThreadDialog.Root = Root7;
3612
3633
  AudioThreadDialog.Trigger = Trigger;
3613
3634
  AudioThreadDialog.Button = Button2;
3614
3635
  AudioThreadDialog.Content = Content4;
@@ -3732,5 +3753,30 @@ var MarkdownProvider = function(_param) {
3732
3753
  children: children
3733
3754
  });
3734
3755
  };
3735
- export { AssistantAvatarContext, AssistantNameContext, AudioThread, AudioThreadDialog, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, useCreateMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext };
3756
+ // src/components/components/ComponentsProvider.tsx
3757
+ import { useMemo as useMemo16 } from "react";
3758
+ // src/hooks/components/useComponents.ts
3759
+ import { useContext as useContext15 } from "react";
3760
+ var useComponents = function() {
3761
+ return useContext15(ComponentsContext);
3762
+ };
3763
+ // src/components/components/ComponentsProvider.tsx
3764
+ import { jsx as jsx69 } from "react/jsx-runtime";
3765
+ var ComponentsProvider = function(_param) {
3766
+ var children = _param.children, rest = _object_without_properties(_param, [
3767
+ "children"
3768
+ ]);
3769
+ var prevComponents = useComponents();
3770
+ var value = useMemo16(function() {
3771
+ return merge(prevComponents, rest);
3772
+ }, [
3773
+ rest,
3774
+ prevComponents
3775
+ ]);
3776
+ return /* @__PURE__ */ jsx69(ComponentsContext.Provider, {
3777
+ value: value,
3778
+ children: children
3779
+ });
3780
+ };
3781
+ export { AssistantAvatarContext, AssistantNameContext, AudioThread, AudioThreadDialog, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, RunStep, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, useComponents, useCreateMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext };
3736
3782
  //# sourceMappingURL=index.js.map