@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 +346 -95
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +346 -95
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -357,7 +357,7 @@ var require_lib = __commonJS({
|
|
|
357
357
|
Object.defineProperty(exports, "__esModule", {
|
|
358
358
|
value: true
|
|
359
359
|
});
|
|
360
|
-
function
|
|
360
|
+
function _objectWithoutPropertiesLoose10(r, e) {
|
|
361
361
|
if (null == r) return {};
|
|
362
362
|
var t = {};
|
|
363
363
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -717,7 +717,7 @@ var require_lib = __commonJS({
|
|
|
717
717
|
PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.",
|
|
718
718
|
PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'
|
|
719
719
|
});
|
|
720
|
-
var
|
|
720
|
+
var _excluded10 = [
|
|
721
721
|
"message"
|
|
722
722
|
];
|
|
723
723
|
function defineHidden(obj, key2, value) {
|
|
@@ -792,7 +792,7 @@ var require_lib = __commonJS({
|
|
|
792
792
|
}
|
|
793
793
|
} : typeof template === "function" ? {
|
|
794
794
|
message: template
|
|
795
|
-
} : template, message = _ref.message, rest =
|
|
795
|
+
} : template, message = _ref.message, rest = _objectWithoutPropertiesLoose10(_ref, _excluded10);
|
|
796
796
|
var toMessage = typeof message === "string" ? function() {
|
|
797
797
|
return message;
|
|
798
798
|
} : message;
|
|
@@ -47006,9 +47006,9 @@ ThreadDialog.Root = Root9;
|
|
|
47006
47006
|
ThreadDialog.Trigger = Trigger;
|
|
47007
47007
|
ThreadDialog.Content = Content7;
|
|
47008
47008
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47009
|
-
import { c as
|
|
47009
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
47010
47010
|
// src/components/threads/AudioThread/index.tsx
|
|
47011
|
-
import { c as
|
|
47011
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
47012
47012
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47013
47013
|
import { c as _c86 } from "react-compiler-runtime";
|
|
47014
47014
|
import { Flex as Flex30 } from "@radix-ui/themes";
|
|
@@ -48256,7 +48256,8 @@ var Root12 = function(t0) {
|
|
|
48256
48256
|
return t3;
|
|
48257
48257
|
};
|
|
48258
48258
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48259
|
-
import {
|
|
48259
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
48260
|
+
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext17, createContext as createContext14 } from "react";
|
|
48260
48261
|
import _9 from "lodash";
|
|
48261
48262
|
import { Flex as Flex32 } from "@radix-ui/themes";
|
|
48262
48263
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
@@ -48376,6 +48377,18 @@ var useStatus = function() {
|
|
|
48376
48377
|
};
|
|
48377
48378
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48378
48379
|
import { jsx as _jsx86, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
48380
|
+
var _excluded6 = [
|
|
48381
|
+
"children"
|
|
48382
|
+
];
|
|
48383
|
+
var _excluded23 = [
|
|
48384
|
+
"height",
|
|
48385
|
+
"barWidth"
|
|
48386
|
+
];
|
|
48387
|
+
var _excluded32 = [
|
|
48388
|
+
"children",
|
|
48389
|
+
"height",
|
|
48390
|
+
"width"
|
|
48391
|
+
];
|
|
48379
48392
|
function ownKeys47(e, r) {
|
|
48380
48393
|
var t = Object.keys(e);
|
|
48381
48394
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -48419,13 +48432,33 @@ function _toPrimitive47(t, r) {
|
|
|
48419
48432
|
}
|
|
48420
48433
|
return ("string" === r ? String : Number)(t);
|
|
48421
48434
|
}
|
|
48422
|
-
|
|
48423
|
-
|
|
48435
|
+
function _objectWithoutProperties6(e, t) {
|
|
48436
|
+
if (null == e) return {};
|
|
48437
|
+
var o, r, i = _objectWithoutPropertiesLoose6(e, t);
|
|
48438
|
+
if (Object.getOwnPropertySymbols) {
|
|
48439
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
48440
|
+
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
48441
|
+
}
|
|
48442
|
+
return i;
|
|
48443
|
+
}
|
|
48444
|
+
function _objectWithoutPropertiesLoose6(r, e) {
|
|
48445
|
+
if (null == r) return {};
|
|
48446
|
+
var t = {};
|
|
48447
|
+
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
48448
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
48449
|
+
t[n] = r[n];
|
|
48450
|
+
}
|
|
48451
|
+
return t;
|
|
48452
|
+
}
|
|
48453
|
+
var AudioThreadVisualizationContext = /* @__PURE__ */ createContext14({
|
|
48454
|
+
scale: 0
|
|
48455
|
+
});
|
|
48456
|
+
var Provider6 = function(_ref) {
|
|
48457
|
+
var children = _ref.children;
|
|
48424
48458
|
var audioThreadContext = useAudioThreadContext();
|
|
48425
|
-
var assistantNameContext = useContext17(AssistantNameContext);
|
|
48426
48459
|
var _useState11 = _sliced_to_array(useState11(0), 2), scale = _useState11[0], setScale = _useState11[1];
|
|
48427
|
-
var draw = useCallback8(function(
|
|
48428
|
-
var visualizationAnalyser =
|
|
48460
|
+
var draw = useCallback8(function(_ref2) {
|
|
48461
|
+
var visualizationAnalyser = _ref2.visualizationAnalyser;
|
|
48429
48462
|
if (!visualizationAnalyser) {
|
|
48430
48463
|
setScale(1);
|
|
48431
48464
|
return;
|
|
@@ -48447,49 +48480,266 @@ var Visualization = function(props) {
|
|
|
48447
48480
|
draw,
|
|
48448
48481
|
audioThreadContext
|
|
48449
48482
|
]);
|
|
48450
|
-
return /* @__PURE__ */
|
|
48451
|
-
|
|
48452
|
-
|
|
48453
|
-
|
|
48454
|
-
|
|
48455
|
-
|
|
48456
|
-
|
|
48457
|
-
|
|
48458
|
-
|
|
48483
|
+
return /* @__PURE__ */ _jsx86(AudioThreadVisualizationContext.Provider, {
|
|
48484
|
+
value: {
|
|
48485
|
+
scale: scale
|
|
48486
|
+
},
|
|
48487
|
+
children: children
|
|
48488
|
+
});
|
|
48489
|
+
};
|
|
48490
|
+
var Root13 = function(t0) {
|
|
48491
|
+
var $ = _c88(6);
|
|
48492
|
+
var children;
|
|
48493
|
+
var rest;
|
|
48494
|
+
if ($[0] !== t0) {
|
|
48495
|
+
var _t = t0;
|
|
48496
|
+
children = _t.children;
|
|
48497
|
+
rest = _objectWithoutProperties6(_t, _excluded6);
|
|
48498
|
+
_t;
|
|
48499
|
+
$[0] = t0;
|
|
48500
|
+
$[1] = children;
|
|
48501
|
+
$[2] = rest;
|
|
48502
|
+
} else {
|
|
48503
|
+
children = $[1];
|
|
48504
|
+
rest = $[2];
|
|
48505
|
+
}
|
|
48506
|
+
var t1;
|
|
48507
|
+
if ($[3] !== children || $[4] !== rest) {
|
|
48508
|
+
t1 = /* @__PURE__ */ _jsx86(Provider6, {
|
|
48509
|
+
children: /* @__PURE__ */ _jsx86(Flex32, _objectSpread47(_objectSpread47({
|
|
48510
|
+
direction: "column",
|
|
48459
48511
|
align: "center",
|
|
48460
48512
|
justify: "center",
|
|
48461
|
-
|
|
48462
|
-
|
|
48463
|
-
|
|
48464
|
-
|
|
48465
|
-
|
|
48466
|
-
|
|
48467
|
-
|
|
48468
|
-
|
|
48469
|
-
|
|
48470
|
-
|
|
48471
|
-
|
|
48472
|
-
|
|
48473
|
-
|
|
48474
|
-
|
|
48475
|
-
|
|
48476
|
-
|
|
48477
|
-
|
|
48478
|
-
|
|
48479
|
-
|
|
48480
|
-
|
|
48481
|
-
|
|
48482
|
-
|
|
48483
|
-
|
|
48484
|
-
|
|
48485
|
-
|
|
48486
|
-
]
|
|
48487
|
-
|
|
48513
|
+
mb: "3",
|
|
48514
|
+
flexGrow: "1"
|
|
48515
|
+
}, rest), {}, {
|
|
48516
|
+
children: children
|
|
48517
|
+
}))
|
|
48518
|
+
});
|
|
48519
|
+
$[3] = children;
|
|
48520
|
+
$[4] = rest;
|
|
48521
|
+
$[5] = t1;
|
|
48522
|
+
} else {
|
|
48523
|
+
t1 = $[5];
|
|
48524
|
+
}
|
|
48525
|
+
return t1;
|
|
48526
|
+
};
|
|
48527
|
+
var BarsVisualizer2 = function(t0) {
|
|
48528
|
+
var $ = _c88(10);
|
|
48529
|
+
var rest;
|
|
48530
|
+
var t1;
|
|
48531
|
+
var t2;
|
|
48532
|
+
if ($[0] !== t0) {
|
|
48533
|
+
var _t2 = t0;
|
|
48534
|
+
var ref;
|
|
48535
|
+
ref = _t2, t1 = ref.height, t2 = ref.barWidth, ref;
|
|
48536
|
+
rest = _objectWithoutProperties6(_t2, _excluded23);
|
|
48537
|
+
_t2;
|
|
48538
|
+
$[0] = t0;
|
|
48539
|
+
$[1] = rest;
|
|
48540
|
+
$[2] = t1;
|
|
48541
|
+
$[3] = t2;
|
|
48542
|
+
} else {
|
|
48543
|
+
rest = $[1];
|
|
48544
|
+
t1 = $[2];
|
|
48545
|
+
t2 = $[3];
|
|
48546
|
+
}
|
|
48547
|
+
var height = t1 === void 0 ? "40px" : t1;
|
|
48548
|
+
var barWidth = t2 === void 0 ? "24px" : t2;
|
|
48549
|
+
var status = useStatus().status;
|
|
48550
|
+
var audioThreadContext = useAudioThreadContext();
|
|
48551
|
+
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48552
|
+
var t4;
|
|
48553
|
+
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
48554
|
+
t4 = /* @__PURE__ */ _jsx86(BarsVisualizer, _objectSpread47({
|
|
48555
|
+
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
48556
|
+
backgroundColor: t3,
|
|
48557
|
+
height: height,
|
|
48558
|
+
barWidth: barWidth
|
|
48559
|
+
}, rest));
|
|
48560
|
+
$[4] = audioThreadContext.audioRuntime.assistant.visualizationAnalyser;
|
|
48561
|
+
$[5] = barWidth;
|
|
48562
|
+
$[6] = height;
|
|
48563
|
+
$[7] = rest;
|
|
48564
|
+
$[8] = t3;
|
|
48565
|
+
$[9] = t4;
|
|
48566
|
+
} else {
|
|
48567
|
+
t4 = $[9];
|
|
48568
|
+
}
|
|
48569
|
+
return t4;
|
|
48488
48570
|
};
|
|
48571
|
+
var AssistantVisualizationRoot = function(t0) {
|
|
48572
|
+
var $ = _c88(17);
|
|
48573
|
+
var children;
|
|
48574
|
+
var rest;
|
|
48575
|
+
var t1;
|
|
48576
|
+
var t2;
|
|
48577
|
+
if ($[0] !== t0) {
|
|
48578
|
+
var _t3 = t0;
|
|
48579
|
+
var ref;
|
|
48580
|
+
ref = _t3, children = ref.children, t1 = ref.height, t2 = ref.width, ref;
|
|
48581
|
+
rest = _objectWithoutProperties6(_t3, _excluded32);
|
|
48582
|
+
_t3;
|
|
48583
|
+
$[0] = t0;
|
|
48584
|
+
$[1] = children;
|
|
48585
|
+
$[2] = rest;
|
|
48586
|
+
$[3] = t1;
|
|
48587
|
+
$[4] = t2;
|
|
48588
|
+
} else {
|
|
48589
|
+
children = $[1];
|
|
48590
|
+
rest = $[2];
|
|
48591
|
+
t1 = $[3];
|
|
48592
|
+
t2 = $[4];
|
|
48593
|
+
}
|
|
48594
|
+
var height = t1 === void 0 ? "200px" : t1;
|
|
48595
|
+
var width2 = t2 === void 0 ? "200px" : t2;
|
|
48596
|
+
var status = useStatus().status;
|
|
48597
|
+
var scale = useContext17(AudioThreadVisualizationContext).scale;
|
|
48598
|
+
var t3 = status === "playing" ? "var(--accent-4)" : "var(--gray-4)";
|
|
48599
|
+
var t4;
|
|
48600
|
+
if ($[5] !== rest.style) {
|
|
48601
|
+
var _rest$style;
|
|
48602
|
+
t4 = (_rest$style = rest.style) !== null && _rest$style !== void 0 ? _rest$style : {};
|
|
48603
|
+
$[5] = rest.style;
|
|
48604
|
+
$[6] = t4;
|
|
48605
|
+
} else {
|
|
48606
|
+
t4 = $[6];
|
|
48607
|
+
}
|
|
48608
|
+
var t5;
|
|
48609
|
+
if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
|
|
48610
|
+
t5 = _objectSpread47({
|
|
48611
|
+
backgroundColor: t3,
|
|
48612
|
+
borderRadius: "9999px",
|
|
48613
|
+
scale: scale
|
|
48614
|
+
}, t4);
|
|
48615
|
+
$[7] = scale;
|
|
48616
|
+
$[8] = t3;
|
|
48617
|
+
$[9] = t4;
|
|
48618
|
+
$[10] = t5;
|
|
48619
|
+
} else {
|
|
48620
|
+
t5 = $[10];
|
|
48621
|
+
}
|
|
48622
|
+
var t6;
|
|
48623
|
+
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
48624
|
+
t6 = /* @__PURE__ */ _jsx86(Flex32, _objectSpread47(_objectSpread47({
|
|
48625
|
+
align: "center",
|
|
48626
|
+
justify: "center",
|
|
48627
|
+
height: height,
|
|
48628
|
+
width: width2,
|
|
48629
|
+
style: t5
|
|
48630
|
+
}, rest), {}, {
|
|
48631
|
+
children: children
|
|
48632
|
+
}));
|
|
48633
|
+
$[11] = children;
|
|
48634
|
+
$[12] = height;
|
|
48635
|
+
$[13] = rest;
|
|
48636
|
+
$[14] = t5;
|
|
48637
|
+
$[15] = width2;
|
|
48638
|
+
$[16] = t6;
|
|
48639
|
+
} else {
|
|
48640
|
+
t6 = $[16];
|
|
48641
|
+
}
|
|
48642
|
+
return t6;
|
|
48643
|
+
};
|
|
48644
|
+
var AssistantVisualization = function(props) {
|
|
48645
|
+
var $ = _c88(3);
|
|
48646
|
+
var t0;
|
|
48647
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48648
|
+
t0 = /* @__PURE__ */ _jsx86(BarsVisualizer2, {});
|
|
48649
|
+
$[0] = t0;
|
|
48650
|
+
} else {
|
|
48651
|
+
t0 = $[0];
|
|
48652
|
+
}
|
|
48653
|
+
var t1;
|
|
48654
|
+
if ($[1] !== props) {
|
|
48655
|
+
t1 = /* @__PURE__ */ _jsx86(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
|
|
48656
|
+
children: t0
|
|
48657
|
+
}));
|
|
48658
|
+
$[1] = props;
|
|
48659
|
+
$[2] = t1;
|
|
48660
|
+
} else {
|
|
48661
|
+
t1 = $[2];
|
|
48662
|
+
}
|
|
48663
|
+
return t1;
|
|
48664
|
+
};
|
|
48665
|
+
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
48666
|
+
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
48667
|
+
var AssistantInfo = function(props) {
|
|
48668
|
+
var $ = _c88(6);
|
|
48669
|
+
var assistantNameContext = useContext17(AssistantNameContext);
|
|
48670
|
+
var t0;
|
|
48671
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48672
|
+
t0 = /* @__PURE__ */ _jsx86(AssistantAvatar, {});
|
|
48673
|
+
$[0] = t0;
|
|
48674
|
+
} else {
|
|
48675
|
+
t0 = $[0];
|
|
48676
|
+
}
|
|
48677
|
+
var t1;
|
|
48678
|
+
if ($[1] !== assistantNameContext) {
|
|
48679
|
+
t1 = /* @__PURE__ */ _jsx86(Name, {
|
|
48680
|
+
children: assistantNameContext
|
|
48681
|
+
});
|
|
48682
|
+
$[1] = assistantNameContext;
|
|
48683
|
+
$[2] = t1;
|
|
48684
|
+
} else {
|
|
48685
|
+
t1 = $[2];
|
|
48686
|
+
}
|
|
48687
|
+
var t2;
|
|
48688
|
+
if ($[3] !== props || $[4] !== t1) {
|
|
48689
|
+
t2 = /* @__PURE__ */ _jsxs32(Flex32, _objectSpread47(_objectSpread47({
|
|
48690
|
+
ml: "-22.5px",
|
|
48691
|
+
gap: "3",
|
|
48692
|
+
pt: "5"
|
|
48693
|
+
}, props), {}, {
|
|
48694
|
+
children: [
|
|
48695
|
+
t0,
|
|
48696
|
+
t1
|
|
48697
|
+
]
|
|
48698
|
+
}));
|
|
48699
|
+
$[3] = props;
|
|
48700
|
+
$[4] = t1;
|
|
48701
|
+
$[5] = t2;
|
|
48702
|
+
} else {
|
|
48703
|
+
t2 = $[5];
|
|
48704
|
+
}
|
|
48705
|
+
return t2;
|
|
48706
|
+
};
|
|
48707
|
+
var Visualization = function(props) {
|
|
48708
|
+
var $ = _c88(4);
|
|
48709
|
+
var t0;
|
|
48710
|
+
var t1;
|
|
48711
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48712
|
+
t0 = /* @__PURE__ */ _jsx86(AssistantVisualization, {});
|
|
48713
|
+
t1 = /* @__PURE__ */ _jsx86(AssistantInfo, {});
|
|
48714
|
+
$[0] = t0;
|
|
48715
|
+
$[1] = t1;
|
|
48716
|
+
} else {
|
|
48717
|
+
t0 = $[0];
|
|
48718
|
+
t1 = $[1];
|
|
48719
|
+
}
|
|
48720
|
+
var t2;
|
|
48721
|
+
if ($[2] !== props) {
|
|
48722
|
+
t2 = /* @__PURE__ */ _jsxs32(Root13, _objectSpread47(_objectSpread47({}, props), {}, {
|
|
48723
|
+
children: [
|
|
48724
|
+
t0,
|
|
48725
|
+
t1
|
|
48726
|
+
]
|
|
48727
|
+
}));
|
|
48728
|
+
$[2] = props;
|
|
48729
|
+
$[3] = t2;
|
|
48730
|
+
} else {
|
|
48731
|
+
t2 = $[3];
|
|
48732
|
+
}
|
|
48733
|
+
return t2;
|
|
48734
|
+
};
|
|
48735
|
+
Visualization.Root = Root13;
|
|
48736
|
+
Visualization.Provider = Provider6;
|
|
48737
|
+
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48738
|
+
Visualization.AssistantInfo = AssistantInfo;
|
|
48489
48739
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
48490
|
-
import { c as
|
|
48740
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
48491
48741
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
48492
|
-
import { c as
|
|
48742
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
48493
48743
|
import { Flex as Flex33, Text as Text9 } from "@radix-ui/themes";
|
|
48494
48744
|
import { jsx as _jsx87, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
48495
48745
|
var html = function(_ref) {
|
|
@@ -48499,7 +48749,7 @@ var html = function(_ref) {
|
|
|
48499
48749
|
}).join(""), "\n }");
|
|
48500
48750
|
};
|
|
48501
48751
|
var StatusMessages = function(t0) {
|
|
48502
|
-
var $ =
|
|
48752
|
+
var $ = _c89(9);
|
|
48503
48753
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
48504
48754
|
var t1;
|
|
48505
48755
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -48507,7 +48757,8 @@ var StatusMessages = function(t0) {
|
|
|
48507
48757
|
size: "2",
|
|
48508
48758
|
weight: "regular",
|
|
48509
48759
|
color: "gray",
|
|
48510
|
-
className: "status-messages-texts"
|
|
48760
|
+
className: "status-messages-texts",
|
|
48761
|
+
align: "center"
|
|
48511
48762
|
});
|
|
48512
48763
|
$[0] = t1;
|
|
48513
48764
|
} else {
|
|
@@ -48602,7 +48853,7 @@ function _toPrimitive48(t, r) {
|
|
|
48602
48853
|
return ("string" === r ? String : Number)(t);
|
|
48603
48854
|
}
|
|
48604
48855
|
var Status = function(props) {
|
|
48605
|
-
var $ =
|
|
48856
|
+
var $ = _c90(12);
|
|
48606
48857
|
var status = useStatus().status;
|
|
48607
48858
|
if (status === "recording") {
|
|
48608
48859
|
var _t;
|
|
@@ -48699,10 +48950,10 @@ var Status = function(props) {
|
|
|
48699
48950
|
return t1;
|
|
48700
48951
|
};
|
|
48701
48952
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
48702
|
-
import { c as
|
|
48953
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
48703
48954
|
import { Flex as Flex35 } from "@radix-ui/themes";
|
|
48704
48955
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
48705
|
-
import { c as
|
|
48956
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
48706
48957
|
import { jsx as _jsx89 } from "react/jsx-runtime";
|
|
48707
48958
|
function ownKeys49(e, r) {
|
|
48708
48959
|
var t = Object.keys(e);
|
|
@@ -48748,7 +48999,7 @@ function _toPrimitive49(t, r) {
|
|
|
48748
48999
|
return ("string" === r ? String : Number)(t);
|
|
48749
49000
|
}
|
|
48750
49001
|
var MicIcon = function(props) {
|
|
48751
|
-
var $ =
|
|
49002
|
+
var $ = _c91(3);
|
|
48752
49003
|
var t0;
|
|
48753
49004
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48754
49005
|
t0 = /* @__PURE__ */ _jsx89("path", {
|
|
@@ -48780,12 +49031,12 @@ var MicIcon = function(props) {
|
|
|
48780
49031
|
return t1;
|
|
48781
49032
|
};
|
|
48782
49033
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
48783
|
-
import { c as
|
|
49034
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
48784
49035
|
import { Flex as Flex34, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
48785
49036
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
48786
49037
|
import { jsx as _jsx90, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
48787
49038
|
var ActionButton = function() {
|
|
48788
|
-
var $ =
|
|
49039
|
+
var $ = _c92(27);
|
|
48789
49040
|
var status = useStatus().status;
|
|
48790
49041
|
var audioThreadContext = useAudioThreadContext();
|
|
48791
49042
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -49023,7 +49274,7 @@ function _toPrimitive50(t, r) {
|
|
|
49023
49274
|
return ("string" === r ? String : Number)(t);
|
|
49024
49275
|
}
|
|
49025
49276
|
var Form = function(props) {
|
|
49026
|
-
var $ =
|
|
49277
|
+
var $ = _c93(17);
|
|
49027
49278
|
var status = useStatus().status;
|
|
49028
49279
|
var audioThreadContext = useAudioThreadContext();
|
|
49029
49280
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
@@ -49173,7 +49424,7 @@ function _toPrimitive51(t, r) {
|
|
|
49173
49424
|
return ("string" === r ? String : Number)(t);
|
|
49174
49425
|
}
|
|
49175
49426
|
var AudioThread = function(props) {
|
|
49176
|
-
var $ =
|
|
49427
|
+
var $ = _c94(5);
|
|
49177
49428
|
var t0;
|
|
49178
49429
|
var t1;
|
|
49179
49430
|
var t2;
|
|
@@ -49255,7 +49506,7 @@ function _toPrimitive52(t, r) {
|
|
|
49255
49506
|
return ("string" === r ? String : Number)(t);
|
|
49256
49507
|
}
|
|
49257
49508
|
var AudioThreadDialog = function(props) {
|
|
49258
|
-
var $ =
|
|
49509
|
+
var $ = _c95(4);
|
|
49259
49510
|
var t0;
|
|
49260
49511
|
var t1;
|
|
49261
49512
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49777,10 +50028,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
49777
50028
|
]);
|
|
49778
50029
|
};
|
|
49779
50030
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
49780
|
-
import { c as
|
|
50031
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
49781
50032
|
import { jsx as _jsx94 } from "react/jsx-runtime";
|
|
49782
50033
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
49783
|
-
var $ =
|
|
50034
|
+
var $ = _c96(5);
|
|
49784
50035
|
var children = t0.children;
|
|
49785
50036
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
49786
50037
|
var t1;
|
|
@@ -49808,22 +50059,22 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
49808
50059
|
return t2;
|
|
49809
50060
|
};
|
|
49810
50061
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
49811
|
-
import { c as
|
|
50062
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
49812
50063
|
import { useMemo as useMemo21 } from "react";
|
|
49813
50064
|
import { jsx as _jsx95 } from "react/jsx-runtime";
|
|
49814
|
-
var
|
|
50065
|
+
var _excluded7 = [
|
|
49815
50066
|
"children"
|
|
49816
50067
|
];
|
|
49817
|
-
function
|
|
50068
|
+
function _objectWithoutProperties7(e, t) {
|
|
49818
50069
|
if (null == e) return {};
|
|
49819
|
-
var o, r, i =
|
|
50070
|
+
var o, r, i = _objectWithoutPropertiesLoose7(e, t);
|
|
49820
50071
|
if (Object.getOwnPropertySymbols) {
|
|
49821
50072
|
var n = Object.getOwnPropertySymbols(e);
|
|
49822
50073
|
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
49823
50074
|
}
|
|
49824
50075
|
return i;
|
|
49825
50076
|
}
|
|
49826
|
-
function
|
|
50077
|
+
function _objectWithoutPropertiesLoose7(r, e) {
|
|
49827
50078
|
if (null == r) return {};
|
|
49828
50079
|
var t = {};
|
|
49829
50080
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -49833,13 +50084,13 @@ function _objectWithoutPropertiesLoose6(r, e) {
|
|
|
49833
50084
|
return t;
|
|
49834
50085
|
}
|
|
49835
50086
|
var MarkdownProvider = function(t0) {
|
|
49836
|
-
var $ =
|
|
50087
|
+
var $ = _c97(9);
|
|
49837
50088
|
var children;
|
|
49838
50089
|
var rest;
|
|
49839
50090
|
if ($[0] !== t0) {
|
|
49840
50091
|
var _t = t0;
|
|
49841
50092
|
children = _t.children;
|
|
49842
|
-
rest =
|
|
50093
|
+
rest = _objectWithoutProperties7(_t, _excluded7);
|
|
49843
50094
|
_t;
|
|
49844
50095
|
$[0] = t0;
|
|
49845
50096
|
$[1] = children;
|
|
@@ -49876,18 +50127,18 @@ var MarkdownProvider = function(t0) {
|
|
|
49876
50127
|
return t3;
|
|
49877
50128
|
};
|
|
49878
50129
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
49879
|
-
import { c as
|
|
50130
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
49880
50131
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
49881
|
-
import { c as
|
|
50132
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
49882
50133
|
import { useState as useState13 } from "react";
|
|
49883
50134
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
49884
50135
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
49885
50136
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
49886
|
-
import { c as
|
|
50137
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
49887
50138
|
import { Flex as Flex36, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
49888
50139
|
import { jsx as _jsx96 } from "react/jsx-runtime";
|
|
49889
50140
|
var Content9 = function(t0) {
|
|
49890
|
-
var $ =
|
|
50141
|
+
var $ = _c98(5);
|
|
49891
50142
|
var fileId = t0.fileId;
|
|
49892
50143
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
49893
50144
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -49953,7 +50204,7 @@ var Content9 = function(t0) {
|
|
|
49953
50204
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
49954
50205
|
import { jsx as _jsx97, jsxs as _jsxs38, Fragment as _Fragment5 } from "react/jsx-runtime";
|
|
49955
50206
|
var FileCitation = function(t0) {
|
|
49956
|
-
var $ =
|
|
50207
|
+
var $ = _c99(18);
|
|
49957
50208
|
var annotation = t0.annotation;
|
|
49958
50209
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
49959
50210
|
var t1;
|
|
@@ -50080,19 +50331,19 @@ var FileCitation = function(t0) {
|
|
|
50080
50331
|
};
|
|
50081
50332
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50082
50333
|
import { jsx as _jsx98 } from "react/jsx-runtime";
|
|
50083
|
-
var
|
|
50334
|
+
var _excluded8 = [
|
|
50084
50335
|
"children"
|
|
50085
50336
|
];
|
|
50086
|
-
function
|
|
50337
|
+
function _objectWithoutProperties8(e, t) {
|
|
50087
50338
|
if (null == e) return {};
|
|
50088
|
-
var o, r, i =
|
|
50339
|
+
var o, r, i = _objectWithoutPropertiesLoose8(e, t);
|
|
50089
50340
|
if (Object.getOwnPropertySymbols) {
|
|
50090
50341
|
var n = Object.getOwnPropertySymbols(e);
|
|
50091
50342
|
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
50092
50343
|
}
|
|
50093
50344
|
return i;
|
|
50094
50345
|
}
|
|
50095
|
-
function
|
|
50346
|
+
function _objectWithoutPropertiesLoose8(r, e) {
|
|
50096
50347
|
if (null == r) return {};
|
|
50097
50348
|
var t = {};
|
|
50098
50349
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -50102,13 +50353,13 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50102
50353
|
return t;
|
|
50103
50354
|
}
|
|
50104
50355
|
var SourceAnnotation = function(t0) {
|
|
50105
|
-
var $ =
|
|
50356
|
+
var $ = _c100(10);
|
|
50106
50357
|
var children;
|
|
50107
50358
|
var rest;
|
|
50108
50359
|
if ($[0] !== t0) {
|
|
50109
50360
|
var _t = t0;
|
|
50110
50361
|
children = _t.children;
|
|
50111
|
-
rest =
|
|
50362
|
+
rest = _objectWithoutProperties8(_t, _excluded8);
|
|
50112
50363
|
_t;
|
|
50113
50364
|
$[0] = t0;
|
|
50114
50365
|
$[1] = children;
|
|
@@ -50159,7 +50410,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50159
50410
|
return null;
|
|
50160
50411
|
};
|
|
50161
50412
|
// src/components/avatars/Avatar.tsx
|
|
50162
|
-
import { c as
|
|
50413
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50163
50414
|
// src/lib/enums/index.ts
|
|
50164
50415
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
50165
50416
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -50184,7 +50435,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
50184
50435
|
// src/components/avatars/Avatar.tsx
|
|
50185
50436
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
50186
50437
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50187
|
-
import { c as
|
|
50438
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50188
50439
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
50189
50440
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
50190
50441
|
var width = function(_ref) {
|
|
@@ -50238,7 +50489,7 @@ var optimizedSrc = function(_ref) {
|
|
|
50238
50489
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50239
50490
|
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50240
50491
|
var ImageAvatar = function(t0) {
|
|
50241
|
-
var $ =
|
|
50492
|
+
var $ = _c101(9);
|
|
50242
50493
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50243
50494
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50244
50495
|
var t1;
|
|
@@ -50275,7 +50526,7 @@ var ImageAvatar = function(t0) {
|
|
|
50275
50526
|
return t2;
|
|
50276
50527
|
};
|
|
50277
50528
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50278
|
-
import { c as
|
|
50529
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50279
50530
|
import { useMemo as useMemo22 } from "react";
|
|
50280
50531
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
50281
50532
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -50285,7 +50536,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
|
|
|
50285
50536
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50286
50537
|
import { jsx as _jsx100 } from "react/jsx-runtime";
|
|
50287
50538
|
var IconAvatar = function(t0) {
|
|
50288
|
-
var $ =
|
|
50539
|
+
var $ = _c102(7);
|
|
50289
50540
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50290
50541
|
var t1;
|
|
50291
50542
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
@@ -50319,7 +50570,7 @@ var IconAvatar = function(t0) {
|
|
|
50319
50570
|
// src/components/avatars/Avatar.tsx
|
|
50320
50571
|
import { jsx as _jsx101 } from "react/jsx-runtime";
|
|
50321
50572
|
var Avatar6 = function(t0) {
|
|
50322
|
-
var $ =
|
|
50573
|
+
var $ = _c103(14);
|
|
50323
50574
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
50324
50575
|
var size = t1 === void 0 ? "1" : t1;
|
|
50325
50576
|
if (avatar) {
|
|
@@ -50380,7 +50631,7 @@ var Avatar6 = function(t0) {
|
|
|
50380
50631
|
return t2;
|
|
50381
50632
|
};
|
|
50382
50633
|
// src/components/components/ComponentsProvider.tsx
|
|
50383
|
-
import { c as
|
|
50634
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50384
50635
|
import { useMemo as useMemo23 } from "react";
|
|
50385
50636
|
// src/hooks/components/useComponents.ts
|
|
50386
50637
|
import { useContext as useContext18 } from "react";
|
|
@@ -50389,19 +50640,19 @@ var useComponents = function() {
|
|
|
50389
50640
|
};
|
|
50390
50641
|
// src/components/components/ComponentsProvider.tsx
|
|
50391
50642
|
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
50392
|
-
var
|
|
50643
|
+
var _excluded9 = [
|
|
50393
50644
|
"children"
|
|
50394
50645
|
];
|
|
50395
|
-
function
|
|
50646
|
+
function _objectWithoutProperties9(e, t) {
|
|
50396
50647
|
if (null == e) return {};
|
|
50397
|
-
var o, r, i =
|
|
50648
|
+
var o, r, i = _objectWithoutPropertiesLoose9(e, t);
|
|
50398
50649
|
if (Object.getOwnPropertySymbols) {
|
|
50399
50650
|
var n = Object.getOwnPropertySymbols(e);
|
|
50400
50651
|
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
50401
50652
|
}
|
|
50402
50653
|
return i;
|
|
50403
50654
|
}
|
|
50404
|
-
function
|
|
50655
|
+
function _objectWithoutPropertiesLoose9(r, e) {
|
|
50405
50656
|
if (null == r) return {};
|
|
50406
50657
|
var t = {};
|
|
50407
50658
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -50411,13 +50662,13 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
50411
50662
|
return t;
|
|
50412
50663
|
}
|
|
50413
50664
|
var ComponentsProvider = function(t0) {
|
|
50414
|
-
var $ =
|
|
50665
|
+
var $ = _c104(9);
|
|
50415
50666
|
var children;
|
|
50416
50667
|
var rest;
|
|
50417
50668
|
if ($[0] !== t0) {
|
|
50418
50669
|
var _t = t0;
|
|
50419
50670
|
children = _t.children;
|
|
50420
|
-
rest =
|
|
50671
|
+
rest = _objectWithoutProperties9(_t, _excluded9);
|
|
50421
50672
|
_t;
|
|
50422
50673
|
$[0] = t0;
|
|
50423
50674
|
$[1] = children;
|
|
@@ -50454,11 +50705,11 @@ var ComponentsProvider = function(t0) {
|
|
|
50454
50705
|
return t3;
|
|
50455
50706
|
};
|
|
50456
50707
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
50457
|
-
import { c as
|
|
50708
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50458
50709
|
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
50459
50710
|
var AssistantProvider = function(t0) {
|
|
50460
50711
|
var _assistant$name;
|
|
50461
|
-
var $ =
|
|
50712
|
+
var $ = _c105(10);
|
|
50462
50713
|
var children = t0.children;
|
|
50463
50714
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50464
50715
|
var t1;
|