@superinterface/react 3.26.0 → 3.27.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.cjs CHANGED
@@ -43508,6 +43508,31 @@ var StartingContentSkeleton = function() {
43508
43508
  // src/components/skeletons/StartingSkeleton/index.tsx
43509
43509
  var import_jsx_runtime55 = require("react/jsx-runtime");
43510
43510
  var StartingSkeleton = function(t0) {
43511
+ var $ = (0, import_react_compiler_runtime53.c)(3);
43512
+ var children = t0.children;
43513
+ var t1;
43514
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43515
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Content6, {});
43516
+ $[0] = t1;
43517
+ } else {
43518
+ t1 = $[0];
43519
+ }
43520
+ var t2;
43521
+ if ($[1] !== children) {
43522
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Root5, {
43523
+ children: [
43524
+ children,
43525
+ t1
43526
+ ]
43527
+ });
43528
+ $[1] = children;
43529
+ $[2] = t2;
43530
+ } else {
43531
+ t2 = $[2];
43532
+ }
43533
+ return t2;
43534
+ };
43535
+ var Root5 = function(t0) {
43511
43536
  var $ = (0, import_react_compiler_runtime53.c)(7);
43512
43537
  var children = t0.children;
43513
43538
  var assistantNameContext = (0, import_react38.useContext)(AssistantNameContext);
@@ -43557,6 +43582,9 @@ var StartingSkeleton = function(t0) {
43557
43582
  }
43558
43583
  return t4;
43559
43584
  };
43585
+ var Content6 = StartingContentSkeleton;
43586
+ StartingSkeleton.Root = Root5;
43587
+ StartingSkeleton.Content = Content6;
43560
43588
  // src/contexts/components/ComponentsContext/index.tsx
43561
43589
  var ComponentsContext = /* @__PURE__ */ (0, import_react39.createContext)({
43562
43590
  components: {
@@ -44174,7 +44202,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react44.forwardRef)(function M
44174
44202
  });
44175
44203
  // src/components/threads/Thread/Messages/Content/index.tsx
44176
44204
  var import_jsx_runtime62 = require("react/jsx-runtime");
44177
- var Content6 = function() {
44205
+ var Content7 = function() {
44178
44206
  var $ = (0, import_react_compiler_runtime61.c)(14);
44179
44207
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
44180
44208
  var addToast = useToasts().addToast;
@@ -44456,7 +44484,7 @@ function _toPrimitive27(t, r) {
44456
44484
  }
44457
44485
  return ("string" === r ? String : Number)(t);
44458
44486
  }
44459
- var Root5 = function(t0) {
44487
+ var Root6 = function(t0) {
44460
44488
  var $ = (0, import_react_compiler_runtime63.c)(18);
44461
44489
  var children = t0.children, style = t0.style, className = t0.className;
44462
44490
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
@@ -44580,7 +44608,7 @@ var Messages2 = function(t0) {
44580
44608
  var t4;
44581
44609
  var t5;
44582
44610
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44583
- t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Content6, {});
44611
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Content7, {});
44584
44612
  t4 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NextPageSkeleton, {});
44585
44613
  t5 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes45.Flex, {
44586
44614
  flexShrink: "0",
@@ -44597,7 +44625,7 @@ var Messages2 = function(t0) {
44597
44625
  }
44598
44626
  var t6;
44599
44627
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
44600
- t6 = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Root5, {
44628
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Root6, {
44601
44629
  style: style,
44602
44630
  className: className,
44603
44631
  children: [
@@ -44618,7 +44646,7 @@ var Messages2 = function(t0) {
44618
44646
  }
44619
44647
  return t6;
44620
44648
  };
44621
- Messages2.Root = Root5;
44649
+ Messages2.Root = Root6;
44622
44650
  Messages2.Message = Message;
44623
44651
  Messages2.NextPageSkeleton = NextPageSkeleton;
44624
44652
  // src/components/threads/Thread/MessageForm/index.tsx
@@ -44688,7 +44716,7 @@ function _toPrimitive28(t, r) {
44688
44716
  }
44689
44717
  return ("string" === r ? String : Number)(t);
44690
44718
  }
44691
- var Root6 = function(t0) {
44719
+ var Root7 = function(t0) {
44692
44720
  var $ = (0, import_react_compiler_runtime66.c)(4);
44693
44721
  var children = t0.children, style = t0.style, className = t0.className;
44694
44722
  var t1;
@@ -44783,7 +44811,7 @@ var Submit = function(props) {
44783
44811
  }
44784
44812
  var t1;
44785
44813
  if ($[1] !== props) {
44786
- t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root6, _objectSpread28(_objectSpread28({}, props), {}, {
44814
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root7, _objectSpread28(_objectSpread28({}, props), {}, {
44787
44815
  children: t0
44788
44816
  }));
44789
44817
  $[1] = props;
@@ -44793,7 +44821,7 @@ var Submit = function(props) {
44793
44821
  }
44794
44822
  return t1;
44795
44823
  };
44796
- Submit.Root = Root6;
44824
+ Submit.Root = Root7;
44797
44825
  Submit.Button = Button3;
44798
44826
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44799
44827
  var import_react_query6 = require("@tanstack/react-query");
@@ -44878,7 +44906,7 @@ function _asyncToGenerator6(n) {
44878
44906
  });
44879
44907
  };
44880
44908
  }
44881
- var Root7 = function(_ref) {
44909
+ var Root8 = function(_ref) {
44882
44910
  "use no memo";
44883
44911
  var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
44884
44912
  var _$_ref = _sliced_to_array((0, import_react51.useState)([]), 2), files = _$_ref[0], setFiles = _$_ref[1];
@@ -45203,7 +45231,7 @@ function _toPrimitive31(t, r) {
45203
45231
  }
45204
45232
  return ("string" === r ? String : Number)(t);
45205
45233
  }
45206
- var Root8 = function(t0) {
45234
+ var Root9 = function(t0) {
45207
45235
  var $ = (0, import_react_compiler_runtime68.c)(4);
45208
45236
  var children = t0.children, style = t0.style, className = t0.className;
45209
45237
  var t1;
@@ -45279,7 +45307,7 @@ var Control = function(props) {
45279
45307
  }
45280
45308
  var t1;
45281
45309
  if ($[1] !== props) {
45282
- t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Root8, _objectSpread31(_objectSpread31({}, props), {}, {
45310
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Root9, _objectSpread31(_objectSpread31({}, props), {}, {
45283
45311
  children: t0
45284
45312
  }));
45285
45313
  $[1] = props;
@@ -45289,7 +45317,7 @@ var Control = function(props) {
45289
45317
  }
45290
45318
  return t1;
45291
45319
  };
45292
- Control.Root = Root8;
45320
+ Control.Root = Root9;
45293
45321
  Control.Input = Input;
45294
45322
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
45295
45323
  var import_react_compiler_runtime69 = require("react-compiler-runtime");
@@ -46116,7 +46144,7 @@ function _toPrimitive37(t, r) {
46116
46144
  }
46117
46145
  return ("string" === r ? String : Number)(t);
46118
46146
  }
46119
- var Root9 = function(_ref) {
46147
+ var Root10 = function(_ref) {
46120
46148
  "use no memo";
46121
46149
  var children = _ref.children, className = _ref.className, style = _ref.style;
46122
46150
  var _$_ref = (0, import_react_hook_form3.useFormContext)(), errors = _$_ref.formState.errors;
@@ -46150,7 +46178,7 @@ var Root9 = function(_ref) {
46150
46178
  });
46151
46179
  };
46152
46180
  var Field = {
46153
- Root: Root9,
46181
+ Root: Root10,
46154
46182
  Control: Control,
46155
46183
  Files: Files
46156
46184
  };
@@ -46215,7 +46243,7 @@ var MessageForm = function(props) {
46215
46243
  }
46216
46244
  var t1;
46217
46245
  if ($[1] !== props) {
46218
- t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Root7, _objectSpread38(_objectSpread38({}, props), {}, {
46246
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Root8, _objectSpread38(_objectSpread38({}, props), {}, {
46219
46247
  children: t0
46220
46248
  }));
46221
46249
  $[1] = props;
@@ -46225,7 +46253,7 @@ var MessageForm = function(props) {
46225
46253
  }
46226
46254
  return t1;
46227
46255
  };
46228
- MessageForm.Root = Root7;
46256
+ MessageForm.Root = Root8;
46229
46257
  MessageForm.Field = Field;
46230
46258
  MessageForm.Submit = Submit;
46231
46259
  // src/components/threads/Thread/Root/index.tsx
@@ -46471,7 +46499,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
46471
46499
  }
46472
46500
  return t;
46473
46501
  }
46474
- var Root11 = function(t0) {
46502
+ var Root12 = function(t0) {
46475
46503
  var $ = (0, import_react_compiler_runtime74.c)(12);
46476
46504
  var children;
46477
46505
  var className;
@@ -46586,7 +46614,7 @@ var Thread = function(props) {
46586
46614
  }
46587
46615
  var t2;
46588
46616
  if ($[2] !== props) {
46589
- t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Root11, _objectSpread40(_objectSpread40({}, props), {}, {
46617
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Root12, _objectSpread40(_objectSpread40({}, props), {}, {
46590
46618
  children: [
46591
46619
  t0,
46592
46620
  t1
@@ -46599,7 +46627,7 @@ var Thread = function(props) {
46599
46627
  }
46600
46628
  return t2;
46601
46629
  };
46602
- Thread.Root = Root11;
46630
+ Thread.Root = Root12;
46603
46631
  Thread.Messages = Messages2;
46604
46632
  Thread.MessageForm = MessageForm;
46605
46633
  // src/hooks/messages/useMessageContext/index.ts
@@ -46842,7 +46870,7 @@ var Provider4 = function(t0) {
46842
46870
  };
46843
46871
  // src/components/threads/ThreadDialog/Root/index.tsx
46844
46872
  var import_jsx_runtime80 = require("react/jsx-runtime");
46845
- var Root12 = function(t0) {
46873
+ var Root13 = function(t0) {
46846
46874
  var $ = (0, import_react_compiler_runtime78.c)(2);
46847
46875
  var children = t0.children;
46848
46876
  var t1;
@@ -46977,7 +47005,7 @@ function _toPrimitive43(t, r) {
46977
47005
  }
46978
47006
  return ("string" === r ? String : Number)(t);
46979
47007
  }
46980
- var Root13 = function(t0) {
47008
+ var Root14 = function(t0) {
46981
47009
  var $ = (0, import_react_compiler_runtime80.c)(14);
46982
47010
  var children = t0.children, style = t0.style, className = t0.className;
46983
47011
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
@@ -47059,7 +47087,7 @@ var Trigger = function(args) {
47059
47087
  }
47060
47088
  var t1;
47061
47089
  if ($[1] !== args) {
47062
- t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Root13, _objectSpread43(_objectSpread43({}, args), {}, {
47090
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Root14, _objectSpread43(_objectSpread43({}, args), {}, {
47063
47091
  children: t0
47064
47092
  }));
47065
47093
  $[1] = args;
@@ -47069,7 +47097,7 @@ var Trigger = function(args) {
47069
47097
  }
47070
47098
  return t1;
47071
47099
  };
47072
- Trigger.Root = Root13;
47100
+ Trigger.Root = Root14;
47073
47101
  Trigger.Button = Button4;
47074
47102
  function _temp6(prev) {
47075
47103
  return !prev;
@@ -47198,7 +47226,7 @@ function _toPrimitive44(t, r) {
47198
47226
  }
47199
47227
  return ("string" === r ? String : Number)(t);
47200
47228
  }
47201
- var Root14 = function(t0) {
47229
+ var Root15 = function(t0) {
47202
47230
  var $ = (0, import_react_compiler_runtime82.c)(19);
47203
47231
  var children = t0.children, className = t0.className, style = t0.style;
47204
47232
  var isOpen = useThreadDialogContext().isOpen;
@@ -47398,7 +47426,7 @@ var FormContainer = function(t0) {
47398
47426
  }
47399
47427
  return t1;
47400
47428
  };
47401
- var Content7 = function(props) {
47429
+ var Content8 = function(props) {
47402
47430
  var $ = (0, import_react_compiler_runtime82.c)(4);
47403
47431
  var t0;
47404
47432
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -47423,7 +47451,7 @@ var Content7 = function(props) {
47423
47451
  }
47424
47452
  var t2;
47425
47453
  if ($[2] !== props) {
47426
- t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Root14, _objectSpread44(_objectSpread44({}, props), {}, {
47454
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Root15, _objectSpread44(_objectSpread44({}, props), {}, {
47427
47455
  children: t1
47428
47456
  }));
47429
47457
  $[2] = props;
@@ -47433,18 +47461,18 @@ var Content7 = function(props) {
47433
47461
  }
47434
47462
  return t2;
47435
47463
  };
47436
- Content7.Root = Root14;
47437
- Content7.Messages = Messages3;
47438
- Content7.FormContainer = FormContainer;
47464
+ Content8.Root = Root15;
47465
+ Content8.Messages = Messages3;
47466
+ Content8.FormContainer = FormContainer;
47439
47467
  // src/components/threads/ThreadDialog/index.tsx
47440
47468
  var import_jsx_runtime85 = require("react/jsx-runtime");
47441
47469
  var ThreadDialog = function() {
47442
47470
  var $ = (0, import_react_compiler_runtime83.c)(1);
47443
47471
  var t0;
47444
47472
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47445
- t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root12, {
47473
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root13, {
47446
47474
  children: [
47447
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Content7, {}),
47475
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Content8, {}),
47448
47476
  /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Trigger, {})
47449
47477
  ]
47450
47478
  });
@@ -47454,9 +47482,9 @@ var ThreadDialog = function() {
47454
47482
  }
47455
47483
  return t0;
47456
47484
  };
47457
- ThreadDialog.Root = Root12;
47485
+ ThreadDialog.Root = Root13;
47458
47486
  ThreadDialog.Trigger = Trigger;
47459
- ThreadDialog.Content = Content7;
47487
+ ThreadDialog.Content = Content8;
47460
47488
  // src/components/threads/AudioThreadDialog/index.tsx
47461
47489
  var import_react_compiler_runtime98 = require("react-compiler-runtime");
47462
47490
  // src/components/threads/AudioThread/index.tsx
@@ -48557,7 +48585,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
48557
48585
  }
48558
48586
  return t;
48559
48587
  }
48560
- var Content8 = function(t0) {
48588
+ var Content9 = function(t0) {
48561
48589
  var $ = (0, import_react_compiler_runtime89.c)(4);
48562
48590
  var children = t0.children, className = t0.className, style = t0.style;
48563
48591
  var t1;
@@ -48640,7 +48668,7 @@ var Provider5 = function(t0) {
48640
48668
  }
48641
48669
  return t2;
48642
48670
  };
48643
- var Root15 = function(t0) {
48671
+ var Root16 = function(t0) {
48644
48672
  var $ = (0, import_react_compiler_runtime89.c)(16);
48645
48673
  var children;
48646
48674
  var className;
@@ -48669,7 +48697,7 @@ var Root15 = function(t0) {
48669
48697
  var t1;
48670
48698
  if ($[6] !== children || $[7] !== className || $[8] !== style) {
48671
48699
  t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ToastsProvider, {
48672
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Content8, {
48700
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Content9, {
48673
48701
  className: className,
48674
48702
  style: style,
48675
48703
  children: children
@@ -48939,7 +48967,7 @@ var Provider6 = function(_ref) {
48939
48967
  children: children
48940
48968
  });
48941
48969
  };
48942
- var Root16 = function(t0) {
48970
+ var Root17 = function(t0) {
48943
48971
  var $ = (0, import_react_compiler_runtime91.c)(6);
48944
48972
  var children;
48945
48973
  var rest;
@@ -49171,7 +49199,7 @@ var Visualization = function(props) {
49171
49199
  }
49172
49200
  var t2;
49173
49201
  if ($[2] !== props) {
49174
- t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Root16, _objectSpread48(_objectSpread48({}, props), {}, {
49202
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Root17, _objectSpread48(_objectSpread48({}, props), {}, {
49175
49203
  children: [
49176
49204
  t0,
49177
49205
  t1
@@ -49184,7 +49212,7 @@ var Visualization = function(props) {
49184
49212
  }
49185
49213
  return t2;
49186
49214
  };
49187
- Visualization.Root = Root16;
49215
+ Visualization.Root = Root17;
49188
49216
  Visualization.Provider = Provider6;
49189
49217
  Visualization.AssistantVisualization = AssistantVisualization;
49190
49218
  Visualization.AssistantInfo = AssistantInfo;
@@ -49894,7 +49922,7 @@ var AudioThread = function(props) {
49894
49922
  }
49895
49923
  var t3;
49896
49924
  if ($[3] !== props) {
49897
- t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root15, _objectSpread52(_objectSpread52({}, props), {}, {
49925
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root16, _objectSpread52(_objectSpread52({}, props), {}, {
49898
49926
  children: [
49899
49927
  t0,
49900
49928
  t1,
@@ -49908,7 +49936,7 @@ var AudioThread = function(props) {
49908
49936
  }
49909
49937
  return t3;
49910
49938
  };
49911
- AudioThread.Root = Root15;
49939
+ AudioThread.Root = Root16;
49912
49940
  AudioThread.Visualization = Visualization;
49913
49941
  AudioThread.Status = Status;
49914
49942
  AudioThread.Form = Form;
@@ -49962,7 +49990,7 @@ var AudioThreadDialog = function(props) {
49962
49990
  var t0;
49963
49991
  var t1;
49964
49992
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49965
- t0 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Content7.Root, {
49993
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Content8.Root, {
49966
49994
  children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AudioThread, {})
49967
49995
  });
49968
49996
  t1 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Trigger, {});
@@ -49974,7 +50002,7 @@ var AudioThreadDialog = function(props) {
49974
50002
  }
49975
50003
  var t2;
49976
50004
  if ($[2] !== props) {
49977
- t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Root12, _objectSpread53(_objectSpread53({}, props), {}, {
50005
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Root13, _objectSpread53(_objectSpread53({}, props), {}, {
49978
50006
  children: [
49979
50007
  t0,
49980
50008
  t1
@@ -49987,9 +50015,9 @@ var AudioThreadDialog = function(props) {
49987
50015
  }
49988
50016
  return t2;
49989
50017
  };
49990
- AudioThreadDialog.Root = Root12;
50018
+ AudioThreadDialog.Root = Root13;
49991
50019
  AudioThreadDialog.Trigger = Trigger;
49992
- AudioThreadDialog.Content = Content7;
50020
+ AudioThreadDialog.Content = Content8;
49993
50021
  // src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
49994
50022
  var import_react72 = require("react");
49995
50023
  function asyncGeneratorStep12(n, t, e, r, o, a, c) {
@@ -50589,7 +50617,7 @@ var import_themes65 = require("@radix-ui/themes");
50589
50617
  var import_react_compiler_runtime101 = require("react-compiler-runtime");
50590
50618
  var import_themes64 = require("@radix-ui/themes");
50591
50619
  var import_jsx_runtime99 = require("react/jsx-runtime");
50592
- var Content9 = function(t0) {
50620
+ var Content10 = function(t0) {
50593
50621
  var $ = (0, import_react_compiler_runtime101.c)(5);
50594
50622
  var fileId = t0.fileId;
50595
50623
  var superinterfaceContext = useSuperinterfaceContext();
@@ -50726,7 +50754,7 @@ var FileCitation = function(t0) {
50726
50754
  }
50727
50755
  var t8;
50728
50756
  if ($[8] !== activeFileId) {
50729
- t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Content9, {
50757
+ t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Content10, {
50730
50758
  fileId: activeFileId
50731
50759
  });
50732
50760
  $[8] = activeFileId;