@superinterface/react 3.1.0 → 3.2.1

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.d.cts CHANGED
@@ -118,15 +118,15 @@ declare const useMessages: () => {
118
118
  isLoading: false;
119
119
  isLoadingError: false;
120
120
  isRefetchError: true;
121
- isFetchNextPageError: false;
122
- isFetchPreviousPageError: false;
123
121
  isSuccess: false;
124
122
  status: "error";
125
123
  fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
126
124
  fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
127
125
  hasNextPage: boolean;
128
126
  hasPreviousPage: boolean;
127
+ isFetchNextPageError: boolean;
129
128
  isFetchingNextPage: boolean;
129
+ isFetchPreviousPageError: boolean;
130
130
  isFetchingPreviousPage: boolean;
131
131
  dataUpdatedAt: number;
132
132
  errorUpdatedAt: number;
@@ -143,6 +143,7 @@ declare const useMessages: () => {
143
143
  isStale: boolean;
144
144
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
145
145
  fetchStatus: _tanstack_react_query.FetchStatus;
146
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
146
147
  } | {
147
148
  messages: SerializedMessage[];
148
149
  data: InfiniteData<TQueryFnData, unknown>;
@@ -177,6 +178,7 @@ declare const useMessages: () => {
177
178
  isStale: boolean;
178
179
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
179
180
  fetchStatus: _tanstack_react_query.FetchStatus;
181
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
180
182
  };
181
183
 
182
184
  declare const useMessageContext: () => {
@@ -193,15 +195,15 @@ declare const useLatestMessage: () => {
193
195
  isLoading: false;
194
196
  isLoadingError: false;
195
197
  isRefetchError: true;
196
- isFetchNextPageError: false;
197
- isFetchPreviousPageError: false;
198
198
  isSuccess: false;
199
199
  status: "error";
200
200
  fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
201
201
  fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
202
202
  hasNextPage: boolean;
203
203
  hasPreviousPage: boolean;
204
+ isFetchNextPageError: boolean;
204
205
  isFetchingNextPage: boolean;
206
+ isFetchPreviousPageError: boolean;
205
207
  isFetchingPreviousPage: boolean;
206
208
  dataUpdatedAt: number;
207
209
  errorUpdatedAt: number;
@@ -218,6 +220,7 @@ declare const useLatestMessage: () => {
218
220
  isStale: boolean;
219
221
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
220
222
  fetchStatus: _tanstack_query_core.FetchStatus;
223
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
221
224
  } | {
222
225
  latestMessage: SerializedMessage;
223
226
  messages: SerializedMessage[];
@@ -253,6 +256,7 @@ declare const useLatestMessage: () => {
253
256
  isStale: boolean;
254
257
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
255
258
  fetchStatus: _tanstack_query_core.FetchStatus;
259
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
256
260
  };
257
261
 
258
262
  declare const useCreateMessage: ({ onError, }?: {
@@ -371,6 +375,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
371
375
  isStale: boolean;
372
376
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
373
377
  fetchStatus: _tanstack_react_query.FetchStatus;
378
+ promise: Promise<any>;
374
379
  } | {
375
380
  assistant: any;
376
381
  data: any;
@@ -397,6 +402,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
397
402
  isStale: boolean;
398
403
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
399
404
  fetchStatus: _tanstack_react_query.FetchStatus;
405
+ promise: Promise<any>;
400
406
  } | {
401
407
  assistant: any;
402
408
  data: undefined;
@@ -423,6 +429,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
423
429
  isStale: boolean;
424
430
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
425
431
  fetchStatus: _tanstack_react_query.FetchStatus;
432
+ promise: Promise<any>;
426
433
  } | {
427
434
  assistant: any;
428
435
  data: undefined;
@@ -449,6 +456,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
449
456
  isStale: boolean;
450
457
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
451
458
  fetchStatus: _tanstack_react_query.FetchStatus;
459
+ promise: Promise<any>;
452
460
  } | {
453
461
  assistant: any;
454
462
  data: undefined;
@@ -475,6 +483,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
475
483
  isStale: boolean;
476
484
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
477
485
  fetchStatus: _tanstack_react_query.FetchStatus;
486
+ promise: Promise<any>;
478
487
  };
479
488
 
480
489
  declare const ThreadDialog: {
@@ -573,7 +582,7 @@ declare const Suggestions: {
573
582
  declare const MarkdownContext: react.Context<{
574
583
  components: {
575
584
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
576
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
585
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
577
586
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
578
587
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
579
588
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
@@ -610,7 +619,7 @@ declare const MarkdownProvider: ({ children, ...rest }: {
610
619
  declare const useMarkdownContext: () => {
611
620
  components: {
612
621
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
613
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
622
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
614
623
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
615
624
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
616
625
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -118,15 +118,15 @@ declare const useMessages: () => {
118
118
  isLoading: false;
119
119
  isLoadingError: false;
120
120
  isRefetchError: true;
121
- isFetchNextPageError: false;
122
- isFetchPreviousPageError: false;
123
121
  isSuccess: false;
124
122
  status: "error";
125
123
  fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
126
124
  fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
127
125
  hasNextPage: boolean;
128
126
  hasPreviousPage: boolean;
127
+ isFetchNextPageError: boolean;
129
128
  isFetchingNextPage: boolean;
129
+ isFetchPreviousPageError: boolean;
130
130
  isFetchingPreviousPage: boolean;
131
131
  dataUpdatedAt: number;
132
132
  errorUpdatedAt: number;
@@ -143,6 +143,7 @@ declare const useMessages: () => {
143
143
  isStale: boolean;
144
144
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
145
145
  fetchStatus: _tanstack_react_query.FetchStatus;
146
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
146
147
  } | {
147
148
  messages: SerializedMessage[];
148
149
  data: InfiniteData<TQueryFnData, unknown>;
@@ -177,6 +178,7 @@ declare const useMessages: () => {
177
178
  isStale: boolean;
178
179
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
179
180
  fetchStatus: _tanstack_react_query.FetchStatus;
181
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
180
182
  };
181
183
 
182
184
  declare const useMessageContext: () => {
@@ -193,15 +195,15 @@ declare const useLatestMessage: () => {
193
195
  isLoading: false;
194
196
  isLoadingError: false;
195
197
  isRefetchError: true;
196
- isFetchNextPageError: false;
197
- isFetchPreviousPageError: false;
198
198
  isSuccess: false;
199
199
  status: "error";
200
200
  fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
201
201
  fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
202
202
  hasNextPage: boolean;
203
203
  hasPreviousPage: boolean;
204
+ isFetchNextPageError: boolean;
204
205
  isFetchingNextPage: boolean;
206
+ isFetchPreviousPageError: boolean;
205
207
  isFetchingPreviousPage: boolean;
206
208
  dataUpdatedAt: number;
207
209
  errorUpdatedAt: number;
@@ -218,6 +220,7 @@ declare const useLatestMessage: () => {
218
220
  isStale: boolean;
219
221
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
220
222
  fetchStatus: _tanstack_query_core.FetchStatus;
223
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
221
224
  } | {
222
225
  latestMessage: SerializedMessage;
223
226
  messages: SerializedMessage[];
@@ -253,6 +256,7 @@ declare const useLatestMessage: () => {
253
256
  isStale: boolean;
254
257
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
255
258
  fetchStatus: _tanstack_query_core.FetchStatus;
259
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
256
260
  };
257
261
 
258
262
  declare const useCreateMessage: ({ onError, }?: {
@@ -371,6 +375,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
371
375
  isStale: boolean;
372
376
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
373
377
  fetchStatus: _tanstack_react_query.FetchStatus;
378
+ promise: Promise<any>;
374
379
  } | {
375
380
  assistant: any;
376
381
  data: any;
@@ -397,6 +402,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
397
402
  isStale: boolean;
398
403
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
399
404
  fetchStatus: _tanstack_react_query.FetchStatus;
405
+ promise: Promise<any>;
400
406
  } | {
401
407
  assistant: any;
402
408
  data: undefined;
@@ -423,6 +429,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
423
429
  isStale: boolean;
424
430
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
425
431
  fetchStatus: _tanstack_react_query.FetchStatus;
432
+ promise: Promise<any>;
426
433
  } | {
427
434
  assistant: any;
428
435
  data: undefined;
@@ -449,6 +456,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
449
456
  isStale: boolean;
450
457
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
451
458
  fetchStatus: _tanstack_react_query.FetchStatus;
459
+ promise: Promise<any>;
452
460
  } | {
453
461
  assistant: any;
454
462
  data: undefined;
@@ -475,6 +483,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
475
483
  isStale: boolean;
476
484
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
477
485
  fetchStatus: _tanstack_react_query.FetchStatus;
486
+ promise: Promise<any>;
478
487
  };
479
488
 
480
489
  declare const ThreadDialog: {
@@ -573,7 +582,7 @@ declare const Suggestions: {
573
582
  declare const MarkdownContext: react.Context<{
574
583
  components: {
575
584
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
576
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
585
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
577
586
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
578
587
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
579
588
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
@@ -610,7 +619,7 @@ declare const MarkdownProvider: ({ children, ...rest }: {
610
619
  declare const useMarkdownContext: () => {
611
620
  components: {
612
621
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
613
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
622
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
614
623
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
615
624
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
616
625
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
package/dist/index.js CHANGED
@@ -2426,7 +2426,7 @@ var Annotation = function(param) {
2426
2426
  return null;
2427
2427
  };
2428
2428
  // src/contexts/markdown/MarkdownContext/lib/components/index.tsx
2429
- import { jsx as jsx43 } from "react/jsx-runtime";
2429
+ import { Fragment, jsx as jsx43, jsxs as jsxs15 } from "react/jsx-runtime";
2430
2430
  var components = {
2431
2431
  p: Paragraph,
2432
2432
  a: Link,
@@ -2480,10 +2480,17 @@ var components = {
2480
2480
  });
2481
2481
  },
2482
2482
  table: function(props) {
2483
- return /* @__PURE__ */ jsx43(Table.Root, _object_spread_props(_object_spread({}, props), {
2484
- variant: "surface",
2485
- mb: "3"
2486
- }));
2483
+ return /* @__PURE__ */ jsxs15(Fragment, {
2484
+ children: [
2485
+ /* @__PURE__ */ jsx43("style", {
2486
+ children: ".rt-TableRootTable { overflow: inherit; }"
2487
+ }),
2488
+ /* @__PURE__ */ jsx43(Table.Root, _object_spread_props(_object_spread({}, props), {
2489
+ variant: "surface",
2490
+ mb: "3"
2491
+ }))
2492
+ ]
2493
+ });
2487
2494
  },
2488
2495
  thead: Table.Header,
2489
2496
  tbody: Table.Body,
@@ -2715,7 +2722,7 @@ var ContentPart = function(param) {
2715
2722
  return null;
2716
2723
  };
2717
2724
  // src/components/threads/Thread/Message/index.tsx
2718
- import { jsx as jsx47, jsxs as jsxs15 } from "react/jsx-runtime";
2725
+ import { jsx as jsx47, jsxs as jsxs16 } from "react/jsx-runtime";
2719
2726
  var Message = function(param) {
2720
2727
  var message = param.message, className = param.className, style = param.style;
2721
2728
  var _useMemo8 = _sliced_to_array(useMemo8(function() {
@@ -2764,14 +2771,14 @@ var Message = function(param) {
2764
2771
  value: {
2765
2772
  message: message
2766
2773
  },
2767
- children: /* @__PURE__ */ jsxs15(Box9, {
2774
+ children: /* @__PURE__ */ jsxs16(Box9, {
2768
2775
  className: className,
2769
2776
  style: style,
2770
2777
  children: [
2771
2778
  /* @__PURE__ */ jsx47(RunSteps, {
2772
2779
  runSteps: olderRunSteps
2773
2780
  }),
2774
- /* @__PURE__ */ jsxs15(Box9, {
2781
+ /* @__PURE__ */ jsxs16(Box9, {
2775
2782
  children: [
2776
2783
  /* @__PURE__ */ jsx47(Attachments, {
2777
2784
  message: message
@@ -2905,9 +2912,9 @@ var Name = function(param) {
2905
2912
  });
2906
2913
  };
2907
2914
  // src/components/skeletons/MessagesSkeleton/index.tsx
2908
- import { jsx as jsx50, jsxs as jsxs16 } from "react/jsx-runtime";
2915
+ import { jsx as jsx50, jsxs as jsxs17 } from "react/jsx-runtime";
2909
2916
  var MessagesSkeleton = forwardRef2(function MessagesSkeleton2(_props, ref) {
2910
- return /* @__PURE__ */ jsxs16(MessageGroupBase, {
2917
+ return /* @__PURE__ */ jsxs17(MessageGroupBase, {
2911
2918
  ref: ref,
2912
2919
  children: [
2913
2920
  /* @__PURE__ */ jsx50(Skeleton2, {
@@ -2917,7 +2924,7 @@ var MessagesSkeleton = forwardRef2(function MessagesSkeleton2(_props, ref) {
2917
2924
  size: "1"
2918
2925
  })
2919
2926
  }),
2920
- /* @__PURE__ */ jsxs16(Box10, {
2927
+ /* @__PURE__ */ jsxs17(Box10, {
2921
2928
  pb: "3",
2922
2929
  children: [
2923
2930
  /* @__PURE__ */ jsx50(Name, {
@@ -3028,14 +3035,14 @@ var Content5 = function(param) {
3028
3035
  });
3029
3036
  };
3030
3037
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
3031
- import { jsx as jsx56, jsxs as jsxs17 } from "react/jsx-runtime";
3038
+ import { jsx as jsx56, jsxs as jsxs18 } from "react/jsx-runtime";
3032
3039
  var MessageGroup = function(param) {
3033
3040
  var messageGroup = param.messageGroup;
3034
3041
  var assistantNameContext = useContext8(AssistantNameContext);
3035
- return /* @__PURE__ */ jsxs17(MessageGroupBase, {
3042
+ return /* @__PURE__ */ jsxs18(MessageGroupBase, {
3036
3043
  children: [
3037
3044
  messageGroup.role === "user" ? /* @__PURE__ */ jsx56(UserAvatar, {}) : /* @__PURE__ */ jsx56(AssistantAvatar, {}),
3038
- /* @__PURE__ */ jsxs17(Box11, {
3045
+ /* @__PURE__ */ jsxs18(Box11, {
3039
3046
  flexGrow: "1",
3040
3047
  children: [
3041
3048
  /* @__PURE__ */ jsx56(Name, {
@@ -3050,7 +3057,7 @@ var MessageGroup = function(param) {
3050
3057
  });
3051
3058
  };
3052
3059
  // src/components/threads/Thread/Messages/Content/index.tsx
3053
- import { Fragment, jsx as jsx57 } from "react/jsx-runtime";
3060
+ import { Fragment as Fragment2, jsx as jsx57 } from "react/jsx-runtime";
3054
3061
  var Content6 = function() {
3055
3062
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
3056
3063
  var addToast = useToasts().addToast;
@@ -3071,7 +3078,7 @@ var Content6 = function() {
3071
3078
  if (isLoading || isLoadingError) {
3072
3079
  return /* @__PURE__ */ jsx57(MessagesSkeleton, {});
3073
3080
  }
3074
- return /* @__PURE__ */ jsx57(Fragment, {
3081
+ return /* @__PURE__ */ jsx57(Fragment2, {
3075
3082
  children: messageGroups2.map(function(messageGroup) {
3076
3083
  return /* @__PURE__ */ jsx57(MessageGroup, {
3077
3084
  messageGroup: messageGroup
@@ -3084,14 +3091,14 @@ import { useMemo as useMemo10 } from "react";
3084
3091
  // src/components/skeletons/StartingSkeleton/index.tsx
3085
3092
  import { useContext as useContext9 } from "react";
3086
3093
  import { Box as Box12 } from "@radix-ui/themes";
3087
- import { jsx as jsx58, jsxs as jsxs18 } from "react/jsx-runtime";
3094
+ import { jsx as jsx58, jsxs as jsxs19 } from "react/jsx-runtime";
3088
3095
  var StartingSkeleton = function(param) {
3089
3096
  var children = param.children;
3090
3097
  var assistantNameContext = useContext9(AssistantNameContext);
3091
- return /* @__PURE__ */ jsxs18(MessageGroupBase, {
3098
+ return /* @__PURE__ */ jsxs19(MessageGroupBase, {
3092
3099
  children: [
3093
3100
  /* @__PURE__ */ jsx58(AssistantAvatar, {}),
3094
- /* @__PURE__ */ jsxs18(Box12, {
3101
+ /* @__PURE__ */ jsxs19(Box12, {
3095
3102
  children: [
3096
3103
  /* @__PURE__ */ jsx58(Name, {
3097
3104
  children: assistantNameContext
@@ -3180,7 +3187,7 @@ var useInfiniteScroll = function(param) {
3180
3187
  };
3181
3188
  };
3182
3189
  // src/components/threads/Thread/Messages/Root/index.tsx
3183
- import { jsx as jsx60, jsxs as jsxs19 } from "react/jsx-runtime";
3190
+ import { jsx as jsx60, jsxs as jsxs20 } from "react/jsx-runtime";
3184
3191
  var Root2 = function(param) {
3185
3192
  var children = param.children, style = param.style, className = param.className;
3186
3193
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
@@ -3189,7 +3196,7 @@ var Root2 = function(param) {
3189
3196
  hasNextPage: hasNextPage,
3190
3197
  fetchNextPage: fetchNextPage
3191
3198
  }), containerRef = _useInfiniteScroll.containerRef, loaderRef = _useInfiniteScroll.loaderRef;
3192
- return /* @__PURE__ */ jsxs19(Flex17, {
3199
+ return /* @__PURE__ */ jsxs20(Flex17, {
3193
3200
  ref: containerRef,
3194
3201
  direction: "column-reverse",
3195
3202
  flexGrow: "1",
@@ -3219,10 +3226,10 @@ var NextPageSkeleton = function() {
3219
3226
  return /* @__PURE__ */ jsx61(MessagesSkeleton, {});
3220
3227
  };
3221
3228
  // src/components/threads/Thread/Messages/index.tsx
3222
- import { jsx as jsx62, jsxs as jsxs20 } from "react/jsx-runtime";
3229
+ import { jsx as jsx62, jsxs as jsxs21 } from "react/jsx-runtime";
3223
3230
  var Messages = function(param) {
3224
3231
  var children = param.children, className = param.className, style = param.style;
3225
- return /* @__PURE__ */ jsxs20(Root2, {
3232
+ return /* @__PURE__ */ jsxs21(Root2, {
3226
3233
  style: style,
3227
3234
  className: className,
3228
3235
  children: [
@@ -3456,13 +3463,13 @@ import { useContext as useContext11, useMemo as useMemo12, useRef as useRef5, us
3456
3463
  // src/components/textareas/TextareaBase/index.tsx
3457
3464
  import { forwardRef as forwardRef3 } from "react";
3458
3465
  import TextareaAutosize from "react-textarea-autosize";
3459
- import { Fragment as Fragment2, jsx as jsx65, jsxs as jsxs21 } from "react/jsx-runtime";
3466
+ import { Fragment as Fragment3, jsx as jsx65, jsxs as jsxs22 } from "react/jsx-runtime";
3460
3467
  var TextareaBase = forwardRef3(function TextareaBase2(_param, ref) {
3461
3468
  var style = _param.style, className = _param.className, rest = _object_without_properties(_param, [
3462
3469
  "style",
3463
3470
  "className"
3464
3471
  ]);
3465
- return /* @__PURE__ */ jsxs21(Fragment2, {
3472
+ return /* @__PURE__ */ jsxs22(Fragment3, {
3466
3473
  children: [
3467
3474
  /* @__PURE__ */ jsx65("style", {
3468
3475
  children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
@@ -3547,7 +3554,7 @@ Control.Input = Input;
3547
3554
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
3548
3555
  import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
3549
3556
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
3550
- import { jsx as jsx67, jsxs as jsxs22 } from "react/jsx-runtime";
3557
+ import { jsx as jsx67, jsxs as jsxs23 } from "react/jsx-runtime";
3551
3558
  var Preview = function(props) {
3552
3559
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
3553
3560
  if (!files.length) {
@@ -3562,12 +3569,12 @@ var Preview = function(props) {
3562
3569
  children: files.map(function(file) {
3563
3570
  return /* @__PURE__ */ jsx67(Card2, {
3564
3571
  variant: "ghost",
3565
- children: /* @__PURE__ */ jsxs22(Flex21, {
3572
+ children: /* @__PURE__ */ jsxs23(Flex21, {
3566
3573
  align: "center",
3567
3574
  justify: "between",
3568
3575
  gap: "1",
3569
3576
  children: [
3570
- /* @__PURE__ */ jsxs22(Flex21, {
3577
+ /* @__PURE__ */ jsxs23(Flex21, {
3571
3578
  align: "center",
3572
3579
  gap: "1",
3573
3580
  flexShrink: "1",
@@ -3729,7 +3736,7 @@ var useCreateFile = function() {
3729
3736
  });
3730
3737
  };
3731
3738
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
3732
- import { jsx as jsx68, jsxs as jsxs23 } from "react/jsx-runtime";
3739
+ import { jsx as jsx68, jsxs as jsxs24 } from "react/jsx-runtime";
3733
3740
  var accept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript";
3734
3741
  var Control2 = function(props) {
3735
3742
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, setFiles = _useMessageFormContext.setFiles;
@@ -3908,7 +3915,7 @@ var Control2 = function(props) {
3908
3915
  pr: "2",
3909
3916
  flexGrow: "0"
3910
3917
  }, props), {
3911
- children: /* @__PURE__ */ jsxs23(IconButton7, {
3918
+ children: /* @__PURE__ */ jsxs24(IconButton7, {
3912
3919
  type: "button",
3913
3920
  variant: "ghost",
3914
3921
  color: "gray",
@@ -3983,10 +3990,10 @@ var Field = {
3983
3990
  Files: Files
3984
3991
  };
3985
3992
  // src/components/threads/Thread/MessageForm/index.tsx
3986
- import { jsx as jsx70, jsxs as jsxs24 } from "react/jsx-runtime";
3993
+ import { jsx as jsx70, jsxs as jsxs25 } from "react/jsx-runtime";
3987
3994
  var MessageForm = function(props) {
3988
3995
  return /* @__PURE__ */ jsx70(Root4, _object_spread_props(_object_spread({}, props), {
3989
- children: /* @__PURE__ */ jsxs24(Field.Root, {
3996
+ children: /* @__PURE__ */ jsxs25(Field.Root, {
3990
3997
  children: [
3991
3998
  /* @__PURE__ */ jsx70(Field.Control, {}),
3992
3999
  /* @__PURE__ */ jsx70(Submit, {})
@@ -4008,13 +4015,13 @@ import * as Toast2 from "@radix-ui/react-toast";
4008
4015
  import * as Toast from "@radix-ui/react-toast";
4009
4016
  import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
4010
4017
  import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
4011
- import { jsx as jsx71, jsxs as jsxs25 } from "react/jsx-runtime";
4018
+ import { jsx as jsx71, jsxs as jsxs26 } from "react/jsx-runtime";
4012
4019
  var CustomToast = function(param) {
4013
4020
  var toast = param.toast;
4014
4021
  return /* @__PURE__ */ jsx71(Toast.Root, {
4015
4022
  children: /* @__PURE__ */ jsx71(Card3, {
4016
4023
  children: /* @__PURE__ */ jsx71(Toast.Title, {
4017
- children: /* @__PURE__ */ jsxs25(Flex24, {
4024
+ children: /* @__PURE__ */ jsxs26(Flex24, {
4018
4025
  children: [
4019
4026
  /* @__PURE__ */ jsx71(Flex24, {
4020
4027
  pr: "2",
@@ -4038,7 +4045,7 @@ var CustomToast = function(param) {
4038
4045
  });
4039
4046
  };
4040
4047
  // src/components/toasts/ToastsProvider/index.tsx
4041
- import { jsx as jsx72, jsxs as jsxs26 } from "react/jsx-runtime";
4048
+ import { jsx as jsx72, jsxs as jsxs27 } from "react/jsx-runtime";
4042
4049
  var ToastsProvider = function(param) {
4043
4050
  var children = param.children, _param_bottom = param.bottom, bottom = _param_bottom === void 0 ? 0 : _param_bottom;
4044
4051
  var _useState3 = _sliced_to_array(useState3([]), 2), toasts = _useState3[0], setToasts = _useState3[1];
@@ -4054,7 +4061,7 @@ var ToastsProvider = function(param) {
4054
4061
  toasts: toasts,
4055
4062
  addToast: addToast
4056
4063
  },
4057
- children: /* @__PURE__ */ jsxs26(Toast2.Provider, {
4064
+ children: /* @__PURE__ */ jsxs27(Toast2.Provider, {
4058
4065
  children: [
4059
4066
  children,
4060
4067
  Array.from(toasts).map(function(toast, index) {
@@ -4105,9 +4112,9 @@ var Root8 = function(_param) {
4105
4112
  });
4106
4113
  };
4107
4114
  // src/components/threads/Thread/index.tsx
4108
- import { jsx as jsx74, jsxs as jsxs27 } from "react/jsx-runtime";
4115
+ import { jsx as jsx74, jsxs as jsxs28 } from "react/jsx-runtime";
4109
4116
  var Thread = function(props) {
4110
- return /* @__PURE__ */ jsxs27(Root8, _object_spread_props(_object_spread({}, props), {
4117
+ return /* @__PURE__ */ jsxs28(Root8, _object_spread_props(_object_spread({}, props), {
4111
4118
  children: [
4112
4119
  /* @__PURE__ */ jsx74(Messages, {}),
4113
4120
  /* @__PURE__ */ jsx74(MessageForm, {})
@@ -4341,7 +4348,7 @@ var Close = function() {
4341
4348
  });
4342
4349
  };
4343
4350
  // src/components/threads/ThreadDialog/Content/index.tsx
4344
- import { jsx as jsx80, jsxs as jsxs28 } from "react/jsx-runtime";
4351
+ import { jsx as jsx80, jsxs as jsxs29 } from "react/jsx-runtime";
4345
4352
  var Root11 = function(param) {
4346
4353
  var children = param.children, className = param.className, style = param.style;
4347
4354
  var isOpen = useThreadDialogContext().isOpen;
@@ -4375,7 +4382,7 @@ var Root11 = function(param) {
4375
4382
  style: _object_spread({
4376
4383
  zIndex: 9999999999
4377
4384
  }, style),
4378
- children: /* @__PURE__ */ jsxs28(Card4, {
4385
+ children: /* @__PURE__ */ jsxs29(Card4, {
4379
4386
  mb: {
4380
4387
  initial: void 0,
4381
4388
  sm: "3"
@@ -4427,7 +4434,7 @@ var FormContainer = function(param) {
4427
4434
  };
4428
4435
  var Content7 = function(props) {
4429
4436
  return /* @__PURE__ */ jsx80(Root11, _object_spread_props(_object_spread({}, props), {
4430
- children: /* @__PURE__ */ jsxs28(Thread.Root, {
4437
+ children: /* @__PURE__ */ jsxs29(Thread.Root, {
4431
4438
  children: [
4432
4439
  /* @__PURE__ */ jsx80(Messages2, {}),
4433
4440
  /* @__PURE__ */ jsx80(FormContainer, {
@@ -4441,9 +4448,9 @@ Content7.Root = Root11;
4441
4448
  Content7.Messages = Messages2;
4442
4449
  Content7.FormContainer = FormContainer;
4443
4450
  // src/components/threads/ThreadDialog/index.tsx
4444
- import { jsx as jsx81, jsxs as jsxs29 } from "react/jsx-runtime";
4451
+ import { jsx as jsx81, jsxs as jsxs30 } from "react/jsx-runtime";
4445
4452
  var ThreadDialog = function() {
4446
- return /* @__PURE__ */ jsxs29(Root9, {
4453
+ return /* @__PURE__ */ jsxs30(Root9, {
4447
4454
  children: [
4448
4455
  /* @__PURE__ */ jsx81(Content7, {}),
4449
4456
  /* @__PURE__ */ jsx81(Trigger, {})
@@ -5134,7 +5141,7 @@ var BarsVisualizer = function(param) {
5134
5141
  });
5135
5142
  };
5136
5143
  // src/components/threads/AudioThread/Visualization/index.tsx
5137
- import { jsx as jsx84, jsxs as jsxs30 } from "react/jsx-runtime";
5144
+ import { jsx as jsx84, jsxs as jsxs31 } from "react/jsx-runtime";
5138
5145
  var Visualization = function(props) {
5139
5146
  var audioThreadContext = useAudioThreadContext();
5140
5147
  var assistantNameContext = useContext15(AssistantNameContext);
@@ -5162,7 +5169,7 @@ var Visualization = function(props) {
5162
5169
  draw,
5163
5170
  audioThreadContext
5164
5171
  ]);
5165
- return /* @__PURE__ */ jsxs30(Flex31, _object_spread_props(_object_spread({
5172
+ return /* @__PURE__ */ jsxs31(Flex31, _object_spread_props(_object_spread({
5166
5173
  direction: "column",
5167
5174
  align: "center",
5168
5175
  justify: "center",
@@ -5187,7 +5194,7 @@ var Visualization = function(props) {
5187
5194
  barWidth: "24px"
5188
5195
  })
5189
5196
  }),
5190
- /* @__PURE__ */ jsxs30(Flex31, {
5197
+ /* @__PURE__ */ jsxs31(Flex31, {
5191
5198
  ml: "-22.5px",
5192
5199
  gap: "3",
5193
5200
  pt: "5",
@@ -5203,7 +5210,7 @@ var Visualization = function(props) {
5203
5210
  };
5204
5211
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
5205
5212
  import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
5206
- import { jsx as jsx85, jsxs as jsxs31 } from "react/jsx-runtime";
5213
+ import { jsx as jsx85, jsxs as jsxs32 } from "react/jsx-runtime";
5207
5214
  var html = function(param) {
5208
5215
  var texts = param.texts;
5209
5216
  return "\n .status-messages-texts:after {\n content: '".concat(texts[0], "';\n animation: texts ").concat(texts.length * 5, "s linear infinite;\n }\n\n @keyframes texts {\n ").concat(texts.map(function(_10, i) {
@@ -5212,7 +5219,7 @@ var html = function(param) {
5212
5219
  };
5213
5220
  var StatusMessages = function(param) {
5214
5221
  var texts = param.texts, className = param.className, style = param.style;
5215
- return /* @__PURE__ */ jsxs31(Flex32, {
5222
+ return /* @__PURE__ */ jsxs32(Flex32, {
5216
5223
  justify: "center",
5217
5224
  pb: "5",
5218
5225
  className: className,
@@ -5295,12 +5302,12 @@ var MicIcon = function(props) {
5295
5302
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
5296
5303
  import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
5297
5304
  import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
5298
- import { jsx as jsx88, jsxs as jsxs32 } from "react/jsx-runtime";
5305
+ import { jsx as jsx88, jsxs as jsxs33 } from "react/jsx-runtime";
5299
5306
  var ActionButton = function() {
5300
5307
  var audioThreadContext = useAudioThreadContext();
5301
5308
  var superinterfaceContext = useSuperinterfaceContext();
5302
5309
  if (audioThreadContext.status === "recording") {
5303
- return /* @__PURE__ */ jsxs32(Flex33, {
5310
+ return /* @__PURE__ */ jsxs33(Flex33, {
5304
5311
  align: "center",
5305
5312
  children: [
5306
5313
  /* @__PURE__ */ jsx88(Flex33, {
@@ -5371,15 +5378,15 @@ var ActionButton = function() {
5371
5378
  });
5372
5379
  };
5373
5380
  // src/components/threads/AudioThread/Form/index.tsx
5374
- import { jsx as jsx89, jsxs as jsxs33 } from "react/jsx-runtime";
5381
+ import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
5375
5382
  var Form = function(props) {
5376
5383
  var audioThreadContext = useAudioThreadContext();
5377
- return /* @__PURE__ */ jsxs33(Flex34, _object_spread_props(_object_spread({
5384
+ return /* @__PURE__ */ jsxs34(Flex34, _object_spread_props(_object_spread({
5378
5385
  direction: "column",
5379
5386
  align: "center"
5380
5387
  }, props), {
5381
5388
  children: [
5382
- /* @__PURE__ */ jsxs33(Flex34, {
5389
+ /* @__PURE__ */ jsxs34(Flex34, {
5383
5390
  pb: "3",
5384
5391
  align: "center",
5385
5392
  children: [
@@ -5414,9 +5421,9 @@ var Form = function(props) {
5414
5421
  }));
5415
5422
  };
5416
5423
  // src/components/threads/AudioThread/index.tsx
5417
- import { jsx as jsx90, jsxs as jsxs34 } from "react/jsx-runtime";
5424
+ import { jsx as jsx90, jsxs as jsxs35 } from "react/jsx-runtime";
5418
5425
  var AudioThread = function(props) {
5419
- return /* @__PURE__ */ jsxs34(Root12, _object_spread_props(_object_spread({}, props), {
5426
+ return /* @__PURE__ */ jsxs35(Root12, _object_spread_props(_object_spread({}, props), {
5420
5427
  children: [
5421
5428
  /* @__PURE__ */ jsx90(Visualization, {}),
5422
5429
  /* @__PURE__ */ jsx90(Status, {}),
@@ -5429,9 +5436,9 @@ AudioThread.Visualization = Visualization;
5429
5436
  AudioThread.Status = Status;
5430
5437
  AudioThread.Form = Form;
5431
5438
  // src/components/threads/AudioThreadDialog/index.tsx
5432
- import { jsx as jsx91, jsxs as jsxs35 } from "react/jsx-runtime";
5439
+ import { jsx as jsx91, jsxs as jsxs36 } from "react/jsx-runtime";
5433
5440
  var AudioThreadDialog = function(props) {
5434
- return /* @__PURE__ */ jsxs35(Root9, _object_spread_props(_object_spread({}, props), {
5441
+ return /* @__PURE__ */ jsxs36(Root9, _object_spread_props(_object_spread({}, props), {
5435
5442
  children: [
5436
5443
  /* @__PURE__ */ jsx91(Content7.Root, {
5437
5444
  children: /* @__PURE__ */ jsx91(AudioThread, {})