@superinterface/react 3.20.2 → 3.21.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
@@ -369,7 +369,7 @@ var require_lib = __commonJS({
369
369
  Object.defineProperty(exports2, "__esModule", {
370
370
  value: true
371
371
  });
372
- function _objectWithoutPropertiesLoose9(r, e) {
372
+ function _objectWithoutPropertiesLoose10(r, e) {
373
373
  if (null == r) return {};
374
374
  var t = {};
375
375
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -729,7 +729,7 @@ var require_lib = __commonJS({
729
729
  PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.",
730
730
  PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'
731
731
  });
732
- var _excluded9 = [
732
+ var _excluded10 = [
733
733
  "message"
734
734
  ];
735
735
  function defineHidden(obj, key2, value) {
@@ -804,7 +804,7 @@ var require_lib = __commonJS({
804
804
  }
805
805
  } : typeof template === "function" ? {
806
806
  message: template
807
- } : template, message = _ref.message, rest = _objectWithoutPropertiesLoose9(_ref, _excluded9);
807
+ } : template, message = _ref.message, rest = _objectWithoutPropertiesLoose10(_ref, _excluded10);
808
808
  var toMessage = typeof message === "string" ? function() {
809
809
  return message;
810
810
  } : message;
@@ -47136,9 +47136,9 @@ ThreadDialog.Root = Root9;
47136
47136
  ThreadDialog.Trigger = Trigger;
47137
47137
  ThreadDialog.Content = Content7;
47138
47138
  // src/components/threads/AudioThreadDialog/index.tsx
47139
- var import_react_compiler_runtime94 = require("react-compiler-runtime");
47139
+ var import_react_compiler_runtime95 = require("react-compiler-runtime");
47140
47140
  // src/components/threads/AudioThread/index.tsx
47141
- var import_react_compiler_runtime93 = require("react-compiler-runtime");
47141
+ var import_react_compiler_runtime94 = require("react-compiler-runtime");
47142
47142
  // src/components/threads/AudioThread/Root/index.tsx
47143
47143
  var import_react_compiler_runtime86 = require("react-compiler-runtime");
47144
47144
  var import_themes59 = require("@radix-ui/themes");
@@ -48386,6 +48386,7 @@ var Root12 = function(t0) {
48386
48386
  return t3;
48387
48387
  };
48388
48388
  // src/components/threads/AudioThread/Visualization/index.tsx
48389
+ var import_react_compiler_runtime88 = require("react-compiler-runtime");
48389
48390
  var import_react68 = require("react");
48390
48391
  var import_lodash9 = __toESM(require("lodash"), 1);
48391
48392
  var import_themes61 = require("@radix-ui/themes");
@@ -48506,6 +48507,18 @@ var useStatus = function() {
48506
48507
  };
48507
48508
  // src/components/threads/AudioThread/Visualization/index.tsx
48508
48509
  var import_jsx_runtime86 = require("react/jsx-runtime");
48510
+ var _excluded6 = [
48511
+ "children"
48512
+ ];
48513
+ var _excluded23 = [
48514
+ "height",
48515
+ "barWidth"
48516
+ ];
48517
+ var _excluded32 = [
48518
+ "children",
48519
+ "height",
48520
+ "width"
48521
+ ];
48509
48522
  function ownKeys47(e, r) {
48510
48523
  var t = Object.keys(e);
48511
48524
  if (Object.getOwnPropertySymbols) {
@@ -48549,13 +48562,33 @@ function _toPrimitive47(t, r) {
48549
48562
  }
48550
48563
  return ("string" === r ? String : Number)(t);
48551
48564
  }
48552
- var Visualization = function(props) {
48553
- var status = useStatus().status;
48565
+ function _objectWithoutProperties6(e, t) {
48566
+ if (null == e) return {};
48567
+ var o, r, i = _objectWithoutPropertiesLoose6(e, t);
48568
+ if (Object.getOwnPropertySymbols) {
48569
+ var n = Object.getOwnPropertySymbols(e);
48570
+ for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
48571
+ }
48572
+ return i;
48573
+ }
48574
+ function _objectWithoutPropertiesLoose6(r, e) {
48575
+ if (null == r) return {};
48576
+ var t = {};
48577
+ for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
48578
+ if (-1 !== e.indexOf(n)) continue;
48579
+ t[n] = r[n];
48580
+ }
48581
+ return t;
48582
+ }
48583
+ var AudioThreadVisualizationContext = /* @__PURE__ */ (0, import_react68.createContext)({
48584
+ scale: 0
48585
+ });
48586
+ var Provider6 = function(_ref) {
48587
+ var children = _ref.children;
48554
48588
  var audioThreadContext = useAudioThreadContext();
48555
- var assistantNameContext = (0, import_react68.useContext)(AssistantNameContext);
48556
- var _ref = _sliced_to_array((0, import_react68.useState)(0), 2), scale = _ref[0], setScale = _ref[1];
48557
- var draw = (0, import_react68.useCallback)(function(_ref) {
48558
- var visualizationAnalyser = _ref.visualizationAnalyser;
48589
+ var _$_ref = _sliced_to_array((0, import_react68.useState)(0), 2), scale = _$_ref[0], setScale = _$_ref[1];
48590
+ var draw = (0, import_react68.useCallback)(function(_ref2) {
48591
+ var visualizationAnalyser = _ref2.visualizationAnalyser;
48559
48592
  if (!visualizationAnalyser) {
48560
48593
  setScale(1);
48561
48594
  return;
@@ -48577,49 +48610,266 @@ var Visualization = function(props) {
48577
48610
  draw,
48578
48611
  audioThreadContext
48579
48612
  ]);
48580
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes61.Flex, _objectSpread47(_objectSpread47({
48581
- direction: "column",
48582
- align: "center",
48583
- justify: "center",
48584
- mb: "3",
48585
- flexGrow: "1"
48586
- }, props), {}, {
48587
- children: [
48588
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes61.Flex, {
48613
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AudioThreadVisualizationContext.Provider, {
48614
+ value: {
48615
+ scale: scale
48616
+ },
48617
+ children: children
48618
+ });
48619
+ };
48620
+ var Root13 = function(t0) {
48621
+ var $ = (0, import_react_compiler_runtime88.c)(6);
48622
+ var children;
48623
+ var rest;
48624
+ if ($[0] !== t0) {
48625
+ var _t = t0;
48626
+ children = _t.children;
48627
+ rest = _objectWithoutProperties6(_t, _excluded6);
48628
+ _t;
48629
+ $[0] = t0;
48630
+ $[1] = children;
48631
+ $[2] = rest;
48632
+ } else {
48633
+ children = $[1];
48634
+ rest = $[2];
48635
+ }
48636
+ var t1;
48637
+ if ($[3] !== children || $[4] !== rest) {
48638
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Provider6, {
48639
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes61.Flex, _objectSpread47(_objectSpread47({
48640
+ direction: "column",
48589
48641
  align: "center",
48590
48642
  justify: "center",
48591
- height: "200px",
48592
- width: "200px",
48593
- style: {
48594
- backgroundColor: status === "playing" ? "var(--accent-4)" : "var(--gray-4)",
48595
- borderRadius: "9999px",
48596
- scale: scale
48597
- },
48598
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(BarsVisualizer, {
48599
- visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
48600
- backgroundColor: status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
48601
- height: "40px",
48602
- barWidth: "24px"
48603
- })
48604
- }),
48605
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes61.Flex, {
48606
- ml: "-22.5px",
48607
- gap: "3",
48608
- pt: "5",
48609
- children: [
48610
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AssistantAvatar, {}),
48611
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Name, {
48612
- children: assistantNameContext
48613
- })
48614
- ]
48615
- })
48616
- ]
48617
- }));
48643
+ mb: "3",
48644
+ flexGrow: "1"
48645
+ }, rest), {}, {
48646
+ children: children
48647
+ }))
48648
+ });
48649
+ $[3] = children;
48650
+ $[4] = rest;
48651
+ $[5] = t1;
48652
+ } else {
48653
+ t1 = $[5];
48654
+ }
48655
+ return t1;
48656
+ };
48657
+ var BarsVisualizer2 = function(t0) {
48658
+ var $ = (0, import_react_compiler_runtime88.c)(10);
48659
+ var rest;
48660
+ var t1;
48661
+ var t2;
48662
+ if ($[0] !== t0) {
48663
+ var _t2 = t0;
48664
+ var ref;
48665
+ ref = _t2, t1 = ref.height, t2 = ref.barWidth, ref;
48666
+ rest = _objectWithoutProperties6(_t2, _excluded23);
48667
+ _t2;
48668
+ $[0] = t0;
48669
+ $[1] = rest;
48670
+ $[2] = t1;
48671
+ $[3] = t2;
48672
+ } else {
48673
+ rest = $[1];
48674
+ t1 = $[2];
48675
+ t2 = $[3];
48676
+ }
48677
+ var height = t1 === void 0 ? "40px" : t1;
48678
+ var barWidth = t2 === void 0 ? "24px" : t2;
48679
+ var status = useStatus().status;
48680
+ var audioThreadContext = useAudioThreadContext();
48681
+ var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
48682
+ var t4;
48683
+ if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
48684
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(BarsVisualizer, _objectSpread47({
48685
+ visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
48686
+ backgroundColor: t3,
48687
+ height: height,
48688
+ barWidth: barWidth
48689
+ }, rest));
48690
+ $[4] = audioThreadContext.audioRuntime.assistant.visualizationAnalyser;
48691
+ $[5] = barWidth;
48692
+ $[6] = height;
48693
+ $[7] = rest;
48694
+ $[8] = t3;
48695
+ $[9] = t4;
48696
+ } else {
48697
+ t4 = $[9];
48698
+ }
48699
+ return t4;
48618
48700
  };
48701
+ var AssistantVisualizationRoot = function(t0) {
48702
+ var $ = (0, import_react_compiler_runtime88.c)(17);
48703
+ var children;
48704
+ var rest;
48705
+ var t1;
48706
+ var t2;
48707
+ if ($[0] !== t0) {
48708
+ var _t3 = t0;
48709
+ var ref;
48710
+ ref = _t3, children = ref.children, t1 = ref.height, t2 = ref.width, ref;
48711
+ rest = _objectWithoutProperties6(_t3, _excluded32);
48712
+ _t3;
48713
+ $[0] = t0;
48714
+ $[1] = children;
48715
+ $[2] = rest;
48716
+ $[3] = t1;
48717
+ $[4] = t2;
48718
+ } else {
48719
+ children = $[1];
48720
+ rest = $[2];
48721
+ t1 = $[3];
48722
+ t2 = $[4];
48723
+ }
48724
+ var height = t1 === void 0 ? "200px" : t1;
48725
+ var width2 = t2 === void 0 ? "200px" : t2;
48726
+ var status = useStatus().status;
48727
+ var scale = (0, import_react68.useContext)(AudioThreadVisualizationContext).scale;
48728
+ var t3 = status === "playing" ? "var(--accent-4)" : "var(--gray-4)";
48729
+ var t4;
48730
+ if ($[5] !== rest.style) {
48731
+ var _rest$style;
48732
+ t4 = (_rest$style = rest.style) !== null && _rest$style !== void 0 ? _rest$style : {};
48733
+ $[5] = rest.style;
48734
+ $[6] = t4;
48735
+ } else {
48736
+ t4 = $[6];
48737
+ }
48738
+ var t5;
48739
+ if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
48740
+ t5 = _objectSpread47({
48741
+ backgroundColor: t3,
48742
+ borderRadius: "9999px",
48743
+ scale: scale
48744
+ }, t4);
48745
+ $[7] = scale;
48746
+ $[8] = t3;
48747
+ $[9] = t4;
48748
+ $[10] = t5;
48749
+ } else {
48750
+ t5 = $[10];
48751
+ }
48752
+ var t6;
48753
+ if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
48754
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes61.Flex, _objectSpread47(_objectSpread47({
48755
+ align: "center",
48756
+ justify: "center",
48757
+ height: height,
48758
+ width: width2,
48759
+ style: t5
48760
+ }, rest), {}, {
48761
+ children: children
48762
+ }));
48763
+ $[11] = children;
48764
+ $[12] = height;
48765
+ $[13] = rest;
48766
+ $[14] = t5;
48767
+ $[15] = width2;
48768
+ $[16] = t6;
48769
+ } else {
48770
+ t6 = $[16];
48771
+ }
48772
+ return t6;
48773
+ };
48774
+ var AssistantVisualization = function(props) {
48775
+ var $ = (0, import_react_compiler_runtime88.c)(3);
48776
+ var t0;
48777
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48778
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(BarsVisualizer2, {});
48779
+ $[0] = t0;
48780
+ } else {
48781
+ t0 = $[0];
48782
+ }
48783
+ var t1;
48784
+ if ($[1] !== props) {
48785
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
48786
+ children: t0
48787
+ }));
48788
+ $[1] = props;
48789
+ $[2] = t1;
48790
+ } else {
48791
+ t1 = $[2];
48792
+ }
48793
+ return t1;
48794
+ };
48795
+ AssistantVisualization.Root = AssistantVisualizationRoot;
48796
+ AssistantVisualization.BarsVisualizer = BarsVisualizer2;
48797
+ var AssistantInfo = function(props) {
48798
+ var $ = (0, import_react_compiler_runtime88.c)(6);
48799
+ var assistantNameContext = (0, import_react68.useContext)(AssistantNameContext);
48800
+ var t0;
48801
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48802
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AssistantAvatar, {});
48803
+ $[0] = t0;
48804
+ } else {
48805
+ t0 = $[0];
48806
+ }
48807
+ var t1;
48808
+ if ($[1] !== assistantNameContext) {
48809
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Name, {
48810
+ children: assistantNameContext
48811
+ });
48812
+ $[1] = assistantNameContext;
48813
+ $[2] = t1;
48814
+ } else {
48815
+ t1 = $[2];
48816
+ }
48817
+ var t2;
48818
+ if ($[3] !== props || $[4] !== t1) {
48819
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes61.Flex, _objectSpread47(_objectSpread47({
48820
+ ml: "-22.5px",
48821
+ gap: "3",
48822
+ pt: "5"
48823
+ }, props), {}, {
48824
+ children: [
48825
+ t0,
48826
+ t1
48827
+ ]
48828
+ }));
48829
+ $[3] = props;
48830
+ $[4] = t1;
48831
+ $[5] = t2;
48832
+ } else {
48833
+ t2 = $[5];
48834
+ }
48835
+ return t2;
48836
+ };
48837
+ var Visualization = function(props) {
48838
+ var $ = (0, import_react_compiler_runtime88.c)(4);
48839
+ var t0;
48840
+ var t1;
48841
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48842
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AssistantVisualization, {});
48843
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AssistantInfo, {});
48844
+ $[0] = t0;
48845
+ $[1] = t1;
48846
+ } else {
48847
+ t0 = $[0];
48848
+ t1 = $[1];
48849
+ }
48850
+ var t2;
48851
+ if ($[2] !== props) {
48852
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Root13, _objectSpread47(_objectSpread47({}, props), {}, {
48853
+ children: [
48854
+ t0,
48855
+ t1
48856
+ ]
48857
+ }));
48858
+ $[2] = props;
48859
+ $[3] = t2;
48860
+ } else {
48861
+ t2 = $[3];
48862
+ }
48863
+ return t2;
48864
+ };
48865
+ Visualization.Root = Root13;
48866
+ Visualization.Provider = Provider6;
48867
+ Visualization.AssistantVisualization = AssistantVisualization;
48868
+ Visualization.AssistantInfo = AssistantInfo;
48619
48869
  // src/components/threads/AudioThread/Status/index.tsx
48620
- var import_react_compiler_runtime89 = require("react-compiler-runtime");
48870
+ var import_react_compiler_runtime90 = require("react-compiler-runtime");
48621
48871
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
48622
- var import_react_compiler_runtime88 = require("react-compiler-runtime");
48872
+ var import_react_compiler_runtime89 = require("react-compiler-runtime");
48623
48873
  var import_themes62 = require("@radix-ui/themes");
48624
48874
  var import_jsx_runtime87 = require("react/jsx-runtime");
48625
48875
  var html = function(_ref) {
@@ -48629,7 +48879,7 @@ var html = function(_ref) {
48629
48879
  }).join(""), "\n }");
48630
48880
  };
48631
48881
  var StatusMessages = function(t0) {
48632
- var $ = (0, import_react_compiler_runtime88.c)(9);
48882
+ var $ = (0, import_react_compiler_runtime89.c)(9);
48633
48883
  var texts = t0.texts, className = t0.className, style = t0.style;
48634
48884
  var t1;
48635
48885
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -48637,7 +48887,8 @@ var StatusMessages = function(t0) {
48637
48887
  size: "2",
48638
48888
  weight: "regular",
48639
48889
  color: "gray",
48640
- className: "status-messages-texts"
48890
+ className: "status-messages-texts",
48891
+ align: "center"
48641
48892
  });
48642
48893
  $[0] = t1;
48643
48894
  } else {
@@ -48732,7 +48983,7 @@ function _toPrimitive48(t, r) {
48732
48983
  return ("string" === r ? String : Number)(t);
48733
48984
  }
48734
48985
  var Status = function(props) {
48735
- var $ = (0, import_react_compiler_runtime89.c)(12);
48986
+ var $ = (0, import_react_compiler_runtime90.c)(12);
48736
48987
  var status = useStatus().status;
48737
48988
  if (status === "recording") {
48738
48989
  var _t;
@@ -48829,10 +49080,10 @@ var Status = function(props) {
48829
49080
  return t1;
48830
49081
  };
48831
49082
  // src/components/threads/AudioThread/Form/index.tsx
48832
- var import_react_compiler_runtime92 = require("react-compiler-runtime");
49083
+ var import_react_compiler_runtime93 = require("react-compiler-runtime");
48833
49084
  var import_themes64 = require("@radix-ui/themes");
48834
49085
  // src/components/threads/AudioThread/Form/MicIcon.tsx
48835
- var import_react_compiler_runtime90 = require("react-compiler-runtime");
49086
+ var import_react_compiler_runtime91 = require("react-compiler-runtime");
48836
49087
  var import_jsx_runtime89 = require("react/jsx-runtime");
48837
49088
  function ownKeys49(e, r) {
48838
49089
  var t = Object.keys(e);
@@ -48878,7 +49129,7 @@ function _toPrimitive49(t, r) {
48878
49129
  return ("string" === r ? String : Number)(t);
48879
49130
  }
48880
49131
  var MicIcon = function(props) {
48881
- var $ = (0, import_react_compiler_runtime90.c)(3);
49132
+ var $ = (0, import_react_compiler_runtime91.c)(3);
48882
49133
  var t0;
48883
49134
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48884
49135
  t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", {
@@ -48910,12 +49161,12 @@ var MicIcon = function(props) {
48910
49161
  return t1;
48911
49162
  };
48912
49163
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
48913
- var import_react_compiler_runtime91 = require("react-compiler-runtime");
49164
+ var import_react_compiler_runtime92 = require("react-compiler-runtime");
48914
49165
  var import_themes63 = require("@radix-ui/themes");
48915
49166
  var import_react_icons17 = require("@radix-ui/react-icons");
48916
49167
  var import_jsx_runtime90 = require("react/jsx-runtime");
48917
49168
  var ActionButton = function() {
48918
- var $ = (0, import_react_compiler_runtime91.c)(27);
49169
+ var $ = (0, import_react_compiler_runtime92.c)(27);
48919
49170
  var status = useStatus().status;
48920
49171
  var audioThreadContext = useAudioThreadContext();
48921
49172
  var superinterfaceContext = useSuperinterfaceContext();
@@ -49153,7 +49404,7 @@ function _toPrimitive50(t, r) {
49153
49404
  return ("string" === r ? String : Number)(t);
49154
49405
  }
49155
49406
  var Form = function(props) {
49156
- var $ = (0, import_react_compiler_runtime92.c)(17);
49407
+ var $ = (0, import_react_compiler_runtime93.c)(17);
49157
49408
  var status = useStatus().status;
49158
49409
  var audioThreadContext = useAudioThreadContext();
49159
49410
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
@@ -49303,7 +49554,7 @@ function _toPrimitive51(t, r) {
49303
49554
  return ("string" === r ? String : Number)(t);
49304
49555
  }
49305
49556
  var AudioThread = function(props) {
49306
- var $ = (0, import_react_compiler_runtime93.c)(5);
49557
+ var $ = (0, import_react_compiler_runtime94.c)(5);
49307
49558
  var t0;
49308
49559
  var t1;
49309
49560
  var t2;
@@ -49385,7 +49636,7 @@ function _toPrimitive52(t, r) {
49385
49636
  return ("string" === r ? String : Number)(t);
49386
49637
  }
49387
49638
  var AudioThreadDialog = function(props) {
49388
- var $ = (0, import_react_compiler_runtime94.c)(4);
49639
+ var $ = (0, import_react_compiler_runtime95.c)(4);
49389
49640
  var t0;
49390
49641
  var t1;
49391
49642
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -49907,10 +50158,10 @@ var useWebrtcAudioRuntime = function() {
49907
50158
  ]);
49908
50159
  };
49909
50160
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
49910
- var import_react_compiler_runtime95 = require("react-compiler-runtime");
50161
+ var import_react_compiler_runtime96 = require("react-compiler-runtime");
49911
50162
  var import_jsx_runtime94 = require("react/jsx-runtime");
49912
50163
  var WebrtcAudioRuntimeProvider = function(t0) {
49913
- var $ = (0, import_react_compiler_runtime95.c)(5);
50164
+ var $ = (0, import_react_compiler_runtime96.c)(5);
49914
50165
  var children = t0.children;
49915
50166
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
49916
50167
  var t1;
@@ -49938,22 +50189,22 @@ var WebrtcAudioRuntimeProvider = function(t0) {
49938
50189
  return t2;
49939
50190
  };
49940
50191
  // src/components/markdown/MarkdownProvider/index.tsx
49941
- var import_react_compiler_runtime96 = require("react-compiler-runtime");
50192
+ var import_react_compiler_runtime97 = require("react-compiler-runtime");
49942
50193
  var import_react70 = require("react");
49943
50194
  var import_jsx_runtime95 = require("react/jsx-runtime");
49944
- var _excluded6 = [
50195
+ var _excluded7 = [
49945
50196
  "children"
49946
50197
  ];
49947
- function _objectWithoutProperties6(e, t) {
50198
+ function _objectWithoutProperties7(e, t) {
49948
50199
  if (null == e) return {};
49949
- var o, r, i = _objectWithoutPropertiesLoose6(e, t);
50200
+ var o, r, i = _objectWithoutPropertiesLoose7(e, t);
49950
50201
  if (Object.getOwnPropertySymbols) {
49951
50202
  var n = Object.getOwnPropertySymbols(e);
49952
50203
  for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
49953
50204
  }
49954
50205
  return i;
49955
50206
  }
49956
- function _objectWithoutPropertiesLoose6(r, e) {
50207
+ function _objectWithoutPropertiesLoose7(r, e) {
49957
50208
  if (null == r) return {};
49958
50209
  var t = {};
49959
50210
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -49963,13 +50214,13 @@ function _objectWithoutPropertiesLoose6(r, e) {
49963
50214
  return t;
49964
50215
  }
49965
50216
  var MarkdownProvider = function(t0) {
49966
- var $ = (0, import_react_compiler_runtime96.c)(9);
50217
+ var $ = (0, import_react_compiler_runtime97.c)(9);
49967
50218
  var children;
49968
50219
  var rest;
49969
50220
  if ($[0] !== t0) {
49970
50221
  var _t = t0;
49971
50222
  children = _t.children;
49972
- rest = _objectWithoutProperties6(_t, _excluded6);
50223
+ rest = _objectWithoutProperties7(_t, _excluded7);
49973
50224
  _t;
49974
50225
  $[0] = t0;
49975
50226
  $[1] = children;
@@ -50006,18 +50257,18 @@ var MarkdownProvider = function(t0) {
50006
50257
  return t3;
50007
50258
  };
50008
50259
  // src/components/annotations/SourceAnnotation/index.tsx
50009
- var import_react_compiler_runtime99 = require("react-compiler-runtime");
50260
+ var import_react_compiler_runtime100 = require("react-compiler-runtime");
50010
50261
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50011
- var import_react_compiler_runtime98 = require("react-compiler-runtime");
50262
+ var import_react_compiler_runtime99 = require("react-compiler-runtime");
50012
50263
  var import_react71 = require("react");
50013
50264
  var import_react_icons18 = require("@radix-ui/react-icons");
50014
50265
  var import_themes66 = require("@radix-ui/themes");
50015
50266
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
50016
- var import_react_compiler_runtime97 = require("react-compiler-runtime");
50267
+ var import_react_compiler_runtime98 = require("react-compiler-runtime");
50017
50268
  var import_themes65 = require("@radix-ui/themes");
50018
50269
  var import_jsx_runtime96 = require("react/jsx-runtime");
50019
50270
  var Content9 = function(t0) {
50020
- var $ = (0, import_react_compiler_runtime97.c)(5);
50271
+ var $ = (0, import_react_compiler_runtime98.c)(5);
50021
50272
  var fileId = t0.fileId;
50022
50273
  var superinterfaceContext = useSuperinterfaceContext();
50023
50274
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -50083,7 +50334,7 @@ var Content9 = function(t0) {
50083
50334
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50084
50335
  var import_jsx_runtime97 = require("react/jsx-runtime");
50085
50336
  var FileCitation = function(t0) {
50086
- var $ = (0, import_react_compiler_runtime98.c)(18);
50337
+ var $ = (0, import_react_compiler_runtime99.c)(18);
50087
50338
  var annotation = t0.annotation;
50088
50339
  var _ref = _sliced_to_array((0, import_react71.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
50089
50340
  var t1;
@@ -50210,19 +50461,19 @@ var FileCitation = function(t0) {
50210
50461
  };
50211
50462
  // src/components/annotations/SourceAnnotation/index.tsx
50212
50463
  var import_jsx_runtime98 = require("react/jsx-runtime");
50213
- var _excluded7 = [
50464
+ var _excluded8 = [
50214
50465
  "children"
50215
50466
  ];
50216
- function _objectWithoutProperties7(e, t) {
50467
+ function _objectWithoutProperties8(e, t) {
50217
50468
  if (null == e) return {};
50218
- var o, r, i = _objectWithoutPropertiesLoose7(e, t);
50469
+ var o, r, i = _objectWithoutPropertiesLoose8(e, t);
50219
50470
  if (Object.getOwnPropertySymbols) {
50220
50471
  var n = Object.getOwnPropertySymbols(e);
50221
50472
  for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
50222
50473
  }
50223
50474
  return i;
50224
50475
  }
50225
- function _objectWithoutPropertiesLoose7(r, e) {
50476
+ function _objectWithoutPropertiesLoose8(r, e) {
50226
50477
  if (null == r) return {};
50227
50478
  var t = {};
50228
50479
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -50232,13 +50483,13 @@ function _objectWithoutPropertiesLoose7(r, e) {
50232
50483
  return t;
50233
50484
  }
50234
50485
  var SourceAnnotation = function(t0) {
50235
- var $ = (0, import_react_compiler_runtime99.c)(10);
50486
+ var $ = (0, import_react_compiler_runtime100.c)(10);
50236
50487
  var children;
50237
50488
  var rest;
50238
50489
  if ($[0] !== t0) {
50239
50490
  var _t = t0;
50240
50491
  children = _t.children;
50241
- rest = _objectWithoutProperties7(_t, _excluded7);
50492
+ rest = _objectWithoutProperties8(_t, _excluded8);
50242
50493
  _t;
50243
50494
  $[0] = t0;
50244
50495
  $[1] = children;
@@ -50289,7 +50540,7 @@ var SourceAnnotation = function(t0) {
50289
50540
  return null;
50290
50541
  };
50291
50542
  // src/components/avatars/Avatar.tsx
50292
- var import_react_compiler_runtime102 = require("react-compiler-runtime");
50543
+ var import_react_compiler_runtime103 = require("react-compiler-runtime");
50293
50544
  // src/lib/enums/index.ts
50294
50545
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
50295
50546
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -50314,7 +50565,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
50314
50565
  // src/components/avatars/Avatar.tsx
50315
50566
  var import_themes69 = require("@radix-ui/themes");
50316
50567
  // src/components/imageAvatars/ImageAvatar/index.tsx
50317
- var import_react_compiler_runtime100 = require("react-compiler-runtime");
50568
+ var import_react_compiler_runtime101 = require("react-compiler-runtime");
50318
50569
  var import_themes67 = require("@radix-ui/themes");
50319
50570
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
50320
50571
  var width = function(_ref) {
@@ -50368,7 +50619,7 @@ var optimizedSrc = function(_ref) {
50368
50619
  // src/components/imageAvatars/ImageAvatar/index.tsx
50369
50620
  var import_jsx_runtime99 = require("react/jsx-runtime");
50370
50621
  var ImageAvatar = function(t0) {
50371
- var $ = (0, import_react_compiler_runtime100.c)(9);
50622
+ var $ = (0, import_react_compiler_runtime101.c)(9);
50372
50623
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
50373
50624
  var superinterfaceContext = useSuperinterfaceContext();
50374
50625
  var t1;
@@ -50405,7 +50656,7 @@ var ImageAvatar = function(t0) {
50405
50656
  return t2;
50406
50657
  };
50407
50658
  // src/components/iconAvatars/IconAvatar.tsx
50408
- var import_react_compiler_runtime101 = require("react-compiler-runtime");
50659
+ var import_react_compiler_runtime102 = require("react-compiler-runtime");
50409
50660
  var import_react72 = require("react");
50410
50661
  var import_themes68 = require("@radix-ui/themes");
50411
50662
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -50415,7 +50666,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
50415
50666
  // src/components/iconAvatars/IconAvatar.tsx
50416
50667
  var import_jsx_runtime100 = require("react/jsx-runtime");
50417
50668
  var IconAvatar = function(t0) {
50418
- var $ = (0, import_react_compiler_runtime101.c)(7);
50669
+ var $ = (0, import_react_compiler_runtime102.c)(7);
50419
50670
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
50420
50671
  var t1;
50421
50672
  t1 = iconAvatarComponents[iconAvatar.name];
@@ -50449,7 +50700,7 @@ var IconAvatar = function(t0) {
50449
50700
  // src/components/avatars/Avatar.tsx
50450
50701
  var import_jsx_runtime101 = require("react/jsx-runtime");
50451
50702
  var Avatar6 = function(t0) {
50452
- var $ = (0, import_react_compiler_runtime102.c)(14);
50703
+ var $ = (0, import_react_compiler_runtime103.c)(14);
50453
50704
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
50454
50705
  var size = t1 === void 0 ? "1" : t1;
50455
50706
  if (avatar) {
@@ -50510,7 +50761,7 @@ var Avatar6 = function(t0) {
50510
50761
  return t2;
50511
50762
  };
50512
50763
  // src/components/components/ComponentsProvider.tsx
50513
- var import_react_compiler_runtime103 = require("react-compiler-runtime");
50764
+ var import_react_compiler_runtime104 = require("react-compiler-runtime");
50514
50765
  var import_react74 = require("react");
50515
50766
  // src/hooks/components/useComponents.ts
50516
50767
  var import_react73 = require("react");
@@ -50519,19 +50770,19 @@ var useComponents = function() {
50519
50770
  };
50520
50771
  // src/components/components/ComponentsProvider.tsx
50521
50772
  var import_jsx_runtime102 = require("react/jsx-runtime");
50522
- var _excluded8 = [
50773
+ var _excluded9 = [
50523
50774
  "children"
50524
50775
  ];
50525
- function _objectWithoutProperties8(e, t) {
50776
+ function _objectWithoutProperties9(e, t) {
50526
50777
  if (null == e) return {};
50527
- var o, r, i = _objectWithoutPropertiesLoose8(e, t);
50778
+ var o, r, i = _objectWithoutPropertiesLoose9(e, t);
50528
50779
  if (Object.getOwnPropertySymbols) {
50529
50780
  var n = Object.getOwnPropertySymbols(e);
50530
50781
  for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
50531
50782
  }
50532
50783
  return i;
50533
50784
  }
50534
- function _objectWithoutPropertiesLoose8(r, e) {
50785
+ function _objectWithoutPropertiesLoose9(r, e) {
50535
50786
  if (null == r) return {};
50536
50787
  var t = {};
50537
50788
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -50541,13 +50792,13 @@ function _objectWithoutPropertiesLoose8(r, e) {
50541
50792
  return t;
50542
50793
  }
50543
50794
  var ComponentsProvider = function(t0) {
50544
- var $ = (0, import_react_compiler_runtime103.c)(9);
50795
+ var $ = (0, import_react_compiler_runtime104.c)(9);
50545
50796
  var children;
50546
50797
  var rest;
50547
50798
  if ($[0] !== t0) {
50548
50799
  var _t = t0;
50549
50800
  children = _t.children;
50550
- rest = _objectWithoutProperties8(_t, _excluded8);
50801
+ rest = _objectWithoutProperties9(_t, _excluded9);
50551
50802
  _t;
50552
50803
  $[0] = t0;
50553
50804
  $[1] = children;
@@ -50584,11 +50835,11 @@ var ComponentsProvider = function(t0) {
50584
50835
  return t3;
50585
50836
  };
50586
50837
  // src/components/assistants/AssistantProvider/index.tsx
50587
- var import_react_compiler_runtime104 = require("react-compiler-runtime");
50838
+ var import_react_compiler_runtime105 = require("react-compiler-runtime");
50588
50839
  var import_jsx_runtime103 = require("react/jsx-runtime");
50589
50840
  var AssistantProvider = function(t0) {
50590
50841
  var _assistant$name;
50591
- var $ = (0, import_react_compiler_runtime104.c)(10);
50842
+ var $ = (0, import_react_compiler_runtime105.c)(10);
50592
50843
  var children = t0.children;
50593
50844
  var superinterfaceContext = useSuperinterfaceContext();
50594
50845
  var t1;