@superinterface/react 3.26.0 → 3.27.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.js CHANGED
@@ -43375,6 +43375,31 @@ var StartingContentSkeleton = function() {
43375
43375
  // src/components/skeletons/StartingSkeleton/index.tsx
43376
43376
  import { jsx as _jsx55, jsxs as _jsxs16 } from "react/jsx-runtime";
43377
43377
  var StartingSkeleton = function(t0) {
43378
+ var $ = _c53(3);
43379
+ var children = t0.children;
43380
+ var t1;
43381
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43382
+ t1 = /* @__PURE__ */ _jsx55(Content6, {});
43383
+ $[0] = t1;
43384
+ } else {
43385
+ t1 = $[0];
43386
+ }
43387
+ var t2;
43388
+ if ($[1] !== children) {
43389
+ t2 = /* @__PURE__ */ _jsxs16(Root5, {
43390
+ children: [
43391
+ children,
43392
+ t1
43393
+ ]
43394
+ });
43395
+ $[1] = children;
43396
+ $[2] = t2;
43397
+ } else {
43398
+ t2 = $[2];
43399
+ }
43400
+ return t2;
43401
+ };
43402
+ var Root5 = function(t0) {
43378
43403
  var $ = _c53(7);
43379
43404
  var children = t0.children;
43380
43405
  var assistantNameContext = useContext13(AssistantNameContext);
@@ -43424,6 +43449,9 @@ var StartingSkeleton = function(t0) {
43424
43449
  }
43425
43450
  return t4;
43426
43451
  };
43452
+ var Content6 = StartingContentSkeleton;
43453
+ StartingSkeleton.Root = Root5;
43454
+ StartingSkeleton.Content = Content6;
43427
43455
  // src/contexts/components/ComponentsContext/index.tsx
43428
43456
  var ComponentsContext = /* @__PURE__ */ createContext9({
43429
43457
  components: {
@@ -44041,7 +44069,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
44041
44069
  });
44042
44070
  // src/components/threads/Thread/Messages/Content/index.tsx
44043
44071
  import { jsx as _jsx62, Fragment as _Fragment4 } from "react/jsx-runtime";
44044
- var Content6 = function() {
44072
+ var Content7 = function() {
44045
44073
  var $ = _c61(14);
44046
44074
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
44047
44075
  var addToast = useToasts().addToast;
@@ -44323,7 +44351,7 @@ function _toPrimitive27(t, r) {
44323
44351
  }
44324
44352
  return ("string" === r ? String : Number)(t);
44325
44353
  }
44326
- var Root5 = function(t0) {
44354
+ var Root6 = function(t0) {
44327
44355
  var $ = _c63(18);
44328
44356
  var children = t0.children, style = t0.style, className = t0.className;
44329
44357
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
@@ -44447,7 +44475,7 @@ var Messages2 = function(t0) {
44447
44475
  var t4;
44448
44476
  var t5;
44449
44477
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44450
- t3 = /* @__PURE__ */ _jsx66(Content6, {});
44478
+ t3 = /* @__PURE__ */ _jsx66(Content7, {});
44451
44479
  t4 = /* @__PURE__ */ _jsx66(NextPageSkeleton, {});
44452
44480
  t5 = /* @__PURE__ */ _jsx66(Flex18, {
44453
44481
  flexShrink: "0",
@@ -44464,7 +44492,7 @@ var Messages2 = function(t0) {
44464
44492
  }
44465
44493
  var t6;
44466
44494
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
44467
- t6 = /* @__PURE__ */ _jsxs21(Root5, {
44495
+ t6 = /* @__PURE__ */ _jsxs21(Root6, {
44468
44496
  style: style,
44469
44497
  className: className,
44470
44498
  children: [
@@ -44485,7 +44513,7 @@ var Messages2 = function(t0) {
44485
44513
  }
44486
44514
  return t6;
44487
44515
  };
44488
- Messages2.Root = Root5;
44516
+ Messages2.Root = Root6;
44489
44517
  Messages2.Message = Message;
44490
44518
  Messages2.NextPageSkeleton = NextPageSkeleton;
44491
44519
  // src/components/threads/Thread/MessageForm/index.tsx
@@ -44555,7 +44583,7 @@ function _toPrimitive28(t, r) {
44555
44583
  }
44556
44584
  return ("string" === r ? String : Number)(t);
44557
44585
  }
44558
- var Root6 = function(t0) {
44586
+ var Root7 = function(t0) {
44559
44587
  var $ = _c66(4);
44560
44588
  var children = t0.children, style = t0.style, className = t0.className;
44561
44589
  var t1;
@@ -44650,7 +44678,7 @@ var Submit = function(props) {
44650
44678
  }
44651
44679
  var t1;
44652
44680
  if ($[1] !== props) {
44653
- t1 = /* @__PURE__ */ _jsx67(Root6, _objectSpread28(_objectSpread28({}, props), {}, {
44681
+ t1 = /* @__PURE__ */ _jsx67(Root7, _objectSpread28(_objectSpread28({}, props), {}, {
44654
44682
  children: t0
44655
44683
  }));
44656
44684
  $[1] = props;
@@ -44660,7 +44688,7 @@ var Submit = function(props) {
44660
44688
  }
44661
44689
  return t1;
44662
44690
  };
44663
- Submit.Root = Root6;
44691
+ Submit.Root = Root7;
44664
44692
  Submit.Button = Button3;
44665
44693
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44666
44694
  import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
@@ -44745,7 +44773,7 @@ function _asyncToGenerator6(n) {
44745
44773
  });
44746
44774
  };
44747
44775
  }
44748
- var Root7 = function(_ref) {
44776
+ var Root8 = function(_ref) {
44749
44777
  "use no memo";
44750
44778
  var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
44751
44779
  var _useState4 = _sliced_to_array(useState4([]), 2), files = _useState4[0], setFiles = _useState4[1];
@@ -45070,7 +45098,7 @@ function _toPrimitive31(t, r) {
45070
45098
  }
45071
45099
  return ("string" === r ? String : Number)(t);
45072
45100
  }
45073
- var Root8 = function(t0) {
45101
+ var Root9 = function(t0) {
45074
45102
  var $ = _c68(4);
45075
45103
  var children = t0.children, style = t0.style, className = t0.className;
45076
45104
  var t1;
@@ -45146,7 +45174,7 @@ var Control = function(props) {
45146
45174
  }
45147
45175
  var t1;
45148
45176
  if ($[1] !== props) {
45149
- t1 = /* @__PURE__ */ _jsx70(Root8, _objectSpread31(_objectSpread31({}, props), {}, {
45177
+ t1 = /* @__PURE__ */ _jsx70(Root9, _objectSpread31(_objectSpread31({}, props), {}, {
45150
45178
  children: t0
45151
45179
  }));
45152
45180
  $[1] = props;
@@ -45156,7 +45184,7 @@ var Control = function(props) {
45156
45184
  }
45157
45185
  return t1;
45158
45186
  };
45159
- Control.Root = Root8;
45187
+ Control.Root = Root9;
45160
45188
  Control.Input = Input;
45161
45189
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
45162
45190
  import { c as _c69 } from "react-compiler-runtime";
@@ -45983,7 +46011,7 @@ function _toPrimitive37(t, r) {
45983
46011
  }
45984
46012
  return ("string" === r ? String : Number)(t);
45985
46013
  }
45986
- var Root9 = function(_ref) {
46014
+ var Root10 = function(_ref) {
45987
46015
  "use no memo";
45988
46016
  var children = _ref.children, className = _ref.className, style = _ref.style;
45989
46017
  var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
@@ -46017,7 +46045,7 @@ var Root9 = function(_ref) {
46017
46045
  });
46018
46046
  };
46019
46047
  var Field = {
46020
- Root: Root9,
46048
+ Root: Root10,
46021
46049
  Control: Control,
46022
46050
  Files: Files
46023
46051
  };
@@ -46082,7 +46110,7 @@ var MessageForm = function(props) {
46082
46110
  }
46083
46111
  var t1;
46084
46112
  if ($[1] !== props) {
46085
- t1 = /* @__PURE__ */ _jsx74(Root7, _objectSpread38(_objectSpread38({}, props), {}, {
46113
+ t1 = /* @__PURE__ */ _jsx74(Root8, _objectSpread38(_objectSpread38({}, props), {}, {
46086
46114
  children: t0
46087
46115
  }));
46088
46116
  $[1] = props;
@@ -46092,7 +46120,7 @@ var MessageForm = function(props) {
46092
46120
  }
46093
46121
  return t1;
46094
46122
  };
46095
- MessageForm.Root = Root7;
46123
+ MessageForm.Root = Root8;
46096
46124
  MessageForm.Field = Field;
46097
46125
  MessageForm.Submit = Submit;
46098
46126
  // src/components/threads/Thread/Root/index.tsx
@@ -46338,7 +46366,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
46338
46366
  }
46339
46367
  return t;
46340
46368
  }
46341
- var Root11 = function(t0) {
46369
+ var Root12 = function(t0) {
46342
46370
  var $ = _c74(12);
46343
46371
  var children;
46344
46372
  var className;
@@ -46453,7 +46481,7 @@ var Thread = function(props) {
46453
46481
  }
46454
46482
  var t2;
46455
46483
  if ($[2] !== props) {
46456
- t2 = /* @__PURE__ */ _jsxs28(Root11, _objectSpread40(_objectSpread40({}, props), {}, {
46484
+ t2 = /* @__PURE__ */ _jsxs28(Root12, _objectSpread40(_objectSpread40({}, props), {}, {
46457
46485
  children: [
46458
46486
  t0,
46459
46487
  t1
@@ -46466,7 +46494,7 @@ var Thread = function(props) {
46466
46494
  }
46467
46495
  return t2;
46468
46496
  };
46469
- Thread.Root = Root11;
46497
+ Thread.Root = Root12;
46470
46498
  Thread.Messages = Messages2;
46471
46499
  Thread.MessageForm = MessageForm;
46472
46500
  // src/hooks/messages/useMessageContext/index.ts
@@ -46709,7 +46737,7 @@ var Provider4 = function(t0) {
46709
46737
  };
46710
46738
  // src/components/threads/ThreadDialog/Root/index.tsx
46711
46739
  import { jsx as _jsx80 } from "react/jsx-runtime";
46712
- var Root12 = function(t0) {
46740
+ var Root13 = function(t0) {
46713
46741
  var $ = _c78(2);
46714
46742
  var children = t0.children;
46715
46743
  var t1;
@@ -46844,7 +46872,7 @@ function _toPrimitive43(t, r) {
46844
46872
  }
46845
46873
  return ("string" === r ? String : Number)(t);
46846
46874
  }
46847
- var Root13 = function(t0) {
46875
+ var Root14 = function(t0) {
46848
46876
  var $ = _c80(14);
46849
46877
  var children = t0.children, style = t0.style, className = t0.className;
46850
46878
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
@@ -46926,7 +46954,7 @@ var Trigger = function(args) {
46926
46954
  }
46927
46955
  var t1;
46928
46956
  if ($[1] !== args) {
46929
- t1 = /* @__PURE__ */ _jsx82(Root13, _objectSpread43(_objectSpread43({}, args), {}, {
46957
+ t1 = /* @__PURE__ */ _jsx82(Root14, _objectSpread43(_objectSpread43({}, args), {}, {
46930
46958
  children: t0
46931
46959
  }));
46932
46960
  $[1] = args;
@@ -46936,7 +46964,7 @@ var Trigger = function(args) {
46936
46964
  }
46937
46965
  return t1;
46938
46966
  };
46939
- Trigger.Root = Root13;
46967
+ Trigger.Root = Root14;
46940
46968
  Trigger.Button = Button4;
46941
46969
  function _temp6(prev) {
46942
46970
  return !prev;
@@ -47065,7 +47093,7 @@ function _toPrimitive44(t, r) {
47065
47093
  }
47066
47094
  return ("string" === r ? String : Number)(t);
47067
47095
  }
47068
- var Root14 = function(t0) {
47096
+ var Root15 = function(t0) {
47069
47097
  var $ = _c82(19);
47070
47098
  var children = t0.children, className = t0.className, style = t0.style;
47071
47099
  var isOpen = useThreadDialogContext().isOpen;
@@ -47265,7 +47293,7 @@ var FormContainer = function(t0) {
47265
47293
  }
47266
47294
  return t1;
47267
47295
  };
47268
- var Content7 = function(props) {
47296
+ var Content8 = function(props) {
47269
47297
  var $ = _c82(4);
47270
47298
  var t0;
47271
47299
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -47290,7 +47318,7 @@ var Content7 = function(props) {
47290
47318
  }
47291
47319
  var t2;
47292
47320
  if ($[2] !== props) {
47293
- t2 = /* @__PURE__ */ _jsx84(Root14, _objectSpread44(_objectSpread44({}, props), {}, {
47321
+ t2 = /* @__PURE__ */ _jsx84(Root15, _objectSpread44(_objectSpread44({}, props), {}, {
47294
47322
  children: t1
47295
47323
  }));
47296
47324
  $[2] = props;
@@ -47300,18 +47328,18 @@ var Content7 = function(props) {
47300
47328
  }
47301
47329
  return t2;
47302
47330
  };
47303
- Content7.Root = Root14;
47304
- Content7.Messages = Messages3;
47305
- Content7.FormContainer = FormContainer;
47331
+ Content8.Root = Root15;
47332
+ Content8.Messages = Messages3;
47333
+ Content8.FormContainer = FormContainer;
47306
47334
  // src/components/threads/ThreadDialog/index.tsx
47307
47335
  import { jsx as _jsx85, jsxs as _jsxs30 } from "react/jsx-runtime";
47308
47336
  var ThreadDialog = function() {
47309
47337
  var $ = _c83(1);
47310
47338
  var t0;
47311
47339
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47312
- t0 = /* @__PURE__ */ _jsxs30(Root12, {
47340
+ t0 = /* @__PURE__ */ _jsxs30(Root13, {
47313
47341
  children: [
47314
- /* @__PURE__ */ _jsx85(Content7, {}),
47342
+ /* @__PURE__ */ _jsx85(Content8, {}),
47315
47343
  /* @__PURE__ */ _jsx85(Trigger, {})
47316
47344
  ]
47317
47345
  });
@@ -47321,9 +47349,9 @@ var ThreadDialog = function() {
47321
47349
  }
47322
47350
  return t0;
47323
47351
  };
47324
- ThreadDialog.Root = Root12;
47352
+ ThreadDialog.Root = Root13;
47325
47353
  ThreadDialog.Trigger = Trigger;
47326
- ThreadDialog.Content = Content7;
47354
+ ThreadDialog.Content = Content8;
47327
47355
  // src/components/threads/AudioThreadDialog/index.tsx
47328
47356
  import { c as _c98 } from "react-compiler-runtime";
47329
47357
  // src/components/threads/AudioThread/index.tsx
@@ -48424,7 +48452,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
48424
48452
  }
48425
48453
  return t;
48426
48454
  }
48427
- var Content8 = function(t0) {
48455
+ var Content9 = function(t0) {
48428
48456
  var $ = _c89(4);
48429
48457
  var children = t0.children, className = t0.className, style = t0.style;
48430
48458
  var t1;
@@ -48507,7 +48535,7 @@ var Provider5 = function(t0) {
48507
48535
  }
48508
48536
  return t2;
48509
48537
  };
48510
- var Root15 = function(t0) {
48538
+ var Root16 = function(t0) {
48511
48539
  var $ = _c89(16);
48512
48540
  var children;
48513
48541
  var className;
@@ -48536,7 +48564,7 @@ var Root15 = function(t0) {
48536
48564
  var t1;
48537
48565
  if ($[6] !== children || $[7] !== className || $[8] !== style) {
48538
48566
  t1 = /* @__PURE__ */ _jsx87(ToastsProvider, {
48539
- children: /* @__PURE__ */ _jsx87(Content8, {
48567
+ children: /* @__PURE__ */ _jsx87(Content9, {
48540
48568
  className: className,
48541
48569
  style: style,
48542
48570
  children: children
@@ -48806,7 +48834,7 @@ var Provider6 = function(_ref) {
48806
48834
  children: children
48807
48835
  });
48808
48836
  };
48809
- var Root16 = function(t0) {
48837
+ var Root17 = function(t0) {
48810
48838
  var $ = _c91(6);
48811
48839
  var children;
48812
48840
  var rest;
@@ -49038,7 +49066,7 @@ var Visualization = function(props) {
49038
49066
  }
49039
49067
  var t2;
49040
49068
  if ($[2] !== props) {
49041
- t2 = /* @__PURE__ */ _jsxs31(Root16, _objectSpread48(_objectSpread48({}, props), {}, {
49069
+ t2 = /* @__PURE__ */ _jsxs31(Root17, _objectSpread48(_objectSpread48({}, props), {}, {
49042
49070
  children: [
49043
49071
  t0,
49044
49072
  t1
@@ -49051,7 +49079,7 @@ var Visualization = function(props) {
49051
49079
  }
49052
49080
  return t2;
49053
49081
  };
49054
- Visualization.Root = Root16;
49082
+ Visualization.Root = Root17;
49055
49083
  Visualization.Provider = Provider6;
49056
49084
  Visualization.AssistantVisualization = AssistantVisualization;
49057
49085
  Visualization.AssistantInfo = AssistantInfo;
@@ -49761,7 +49789,7 @@ var AudioThread = function(props) {
49761
49789
  }
49762
49790
  var t3;
49763
49791
  if ($[3] !== props) {
49764
- t3 = /* @__PURE__ */ _jsxs35(Root15, _objectSpread52(_objectSpread52({}, props), {}, {
49792
+ t3 = /* @__PURE__ */ _jsxs35(Root16, _objectSpread52(_objectSpread52({}, props), {}, {
49765
49793
  children: [
49766
49794
  t0,
49767
49795
  t1,
@@ -49775,7 +49803,7 @@ var AudioThread = function(props) {
49775
49803
  }
49776
49804
  return t3;
49777
49805
  };
49778
- AudioThread.Root = Root15;
49806
+ AudioThread.Root = Root16;
49779
49807
  AudioThread.Visualization = Visualization;
49780
49808
  AudioThread.Status = Status;
49781
49809
  AudioThread.Form = Form;
@@ -49829,7 +49857,7 @@ var AudioThreadDialog = function(props) {
49829
49857
  var t0;
49830
49858
  var t1;
49831
49859
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49832
- t0 = /* @__PURE__ */ _jsx96(Content7.Root, {
49860
+ t0 = /* @__PURE__ */ _jsx96(Content8.Root, {
49833
49861
  children: /* @__PURE__ */ _jsx96(AudioThread, {})
49834
49862
  });
49835
49863
  t1 = /* @__PURE__ */ _jsx96(Trigger, {});
@@ -49841,7 +49869,7 @@ var AudioThreadDialog = function(props) {
49841
49869
  }
49842
49870
  var t2;
49843
49871
  if ($[2] !== props) {
49844
- t2 = /* @__PURE__ */ _jsxs36(Root12, _objectSpread53(_objectSpread53({}, props), {}, {
49872
+ t2 = /* @__PURE__ */ _jsxs36(Root13, _objectSpread53(_objectSpread53({}, props), {}, {
49845
49873
  children: [
49846
49874
  t0,
49847
49875
  t1
@@ -49854,9 +49882,9 @@ var AudioThreadDialog = function(props) {
49854
49882
  }
49855
49883
  return t2;
49856
49884
  };
49857
- AudioThreadDialog.Root = Root12;
49885
+ AudioThreadDialog.Root = Root13;
49858
49886
  AudioThreadDialog.Trigger = Trigger;
49859
- AudioThreadDialog.Content = Content7;
49887
+ AudioThreadDialog.Content = Content8;
49860
49888
  // src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
49861
49889
  import { useEffect as useEffect13, useMemo as useMemo20, useRef as useRef9, useState as useState12 } from "react";
49862
49890
  function asyncGeneratorStep12(n, t, e, r, o, a, c) {
@@ -50456,7 +50484,7 @@ import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/th
50456
50484
  import { c as _c101 } from "react-compiler-runtime";
50457
50485
  import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
50458
50486
  import { jsx as _jsx99 } from "react/jsx-runtime";
50459
- var Content9 = function(t0) {
50487
+ var Content10 = function(t0) {
50460
50488
  var $ = _c101(5);
50461
50489
  var fileId = t0.fileId;
50462
50490
  var superinterfaceContext = useSuperinterfaceContext();
@@ -50593,7 +50621,7 @@ var FileCitation = function(t0) {
50593
50621
  }
50594
50622
  var t8;
50595
50623
  if ($[8] !== activeFileId) {
50596
- t8 = activeFileId && /* @__PURE__ */ _jsx100(Content9, {
50624
+ t8 = activeFileId && /* @__PURE__ */ _jsx100(Content10, {
50597
50625
  fileId: activeFileId
50598
50626
  });
50599
50627
  $[8] = activeFileId;
@@ -51074,5 +51102,5 @@ var AssistantProvider = function(t0) {
51074
51102
  }
51075
51103
  return t6;
51076
51104
  };
51077
- export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
51105
+ export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, RunStep, SourceAnnotation, StartingSkeleton, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
51078
51106
  //# sourceMappingURL=index.js.map