@superinterface/react 4.2.2 → 5.0.0-beta.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 +238 -177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +235 -178
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +6 -3
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +6 -3
- package/dist/server.js.map +1 -1
- package/dist/utils.cjs +6 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +3 -1
- package/dist/utils.d.ts +3 -1
- package/dist/utils.js +3 -1
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -37811,7 +37811,7 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37811
37811
|
});
|
|
37812
37812
|
};
|
|
37813
37813
|
// src/components/threads/Thread/index.tsx
|
|
37814
|
-
import { c as
|
|
37814
|
+
import { c as _c76 } from "react-compiler-runtime";
|
|
37815
37815
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37816
37816
|
import { c as _c65 } from "react-compiler-runtime";
|
|
37817
37817
|
import { Flex as Flex18 } from "@radix-ui/themes";
|
|
@@ -44554,7 +44554,7 @@ Messages2.Message = Message;
|
|
|
44554
44554
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44555
44555
|
Messages2.Content = Content7;
|
|
44556
44556
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44557
|
-
import { c as
|
|
44557
|
+
import { c as _c72 } from "react-compiler-runtime";
|
|
44558
44558
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44559
44559
|
import { c as _c66 } from "react-compiler-runtime";
|
|
44560
44560
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
@@ -45380,11 +45380,13 @@ var Preview = function(props) {
|
|
|
45380
45380
|
return t1;
|
|
45381
45381
|
};
|
|
45382
45382
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45383
|
+
import { c as _c71 } from "react-compiler-runtime";
|
|
45384
|
+
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45385
|
+
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
45386
|
+
// src/hooks/files/useChangeFilesField/index.ts
|
|
45383
45387
|
import { useCallback as useCallback3 } from "react";
|
|
45384
45388
|
import { omit as omit4 } from "radash";
|
|
45385
45389
|
import dayjs2 from "dayjs";
|
|
45386
|
-
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45387
|
-
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
45388
45390
|
// src/hooks/files/useCreateFile/index.ts
|
|
45389
45391
|
import { c as _c70 } from "react-compiler-runtime";
|
|
45390
45392
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
@@ -45697,51 +45699,7 @@ var useCreateFile = function(t0) {
|
|
|
45697
45699
|
};
|
|
45698
45700
|
function _temp4() {}
|
|
45699
45701
|
function _temp23() {}
|
|
45700
|
-
// src/
|
|
45701
|
-
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45702
|
-
function ownKeys36(e, r) {
|
|
45703
|
-
var t = Object.keys(e);
|
|
45704
|
-
if (Object.getOwnPropertySymbols) {
|
|
45705
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
45706
|
-
r && (o = o.filter(function(r2) {
|
|
45707
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45708
|
-
})), t.push.apply(t, o);
|
|
45709
|
-
}
|
|
45710
|
-
return t;
|
|
45711
|
-
}
|
|
45712
|
-
function _objectSpread36(e) {
|
|
45713
|
-
for(var r = 1; r < arguments.length; r++){
|
|
45714
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
45715
|
-
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45716
|
-
_defineProperty36(e, r2, t[r2]);
|
|
45717
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45718
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45719
|
-
});
|
|
45720
|
-
}
|
|
45721
|
-
return e;
|
|
45722
|
-
}
|
|
45723
|
-
function _defineProperty36(e, r, t) {
|
|
45724
|
-
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45725
|
-
value: t,
|
|
45726
|
-
enumerable: true,
|
|
45727
|
-
configurable: true,
|
|
45728
|
-
writable: true
|
|
45729
|
-
}) : e[r] = t, e;
|
|
45730
|
-
}
|
|
45731
|
-
function _toPropertyKey36(t) {
|
|
45732
|
-
var i = _toPrimitive36(t, "string");
|
|
45733
|
-
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45734
|
-
}
|
|
45735
|
-
function _toPrimitive36(t, r) {
|
|
45736
|
-
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45737
|
-
var e = t[Symbol.toPrimitive];
|
|
45738
|
-
if (void 0 !== e) {
|
|
45739
|
-
var i = e.call(t, r || "default");
|
|
45740
|
-
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
45741
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45742
|
-
}
|
|
45743
|
-
return ("string" === r ? String : Number)(t);
|
|
45744
|
-
}
|
|
45702
|
+
// src/hooks/files/useChangeFilesField/index.ts
|
|
45745
45703
|
function asyncGeneratorStep8(n, t, e, r, o, a, c) {
|
|
45746
45704
|
try {
|
|
45747
45705
|
var i = n[a](c), u = i.value;
|
|
@@ -45806,7 +45764,6 @@ function AsyncFromSyncIterator(r) {
|
|
|
45806
45764
|
}
|
|
45807
45765
|
}, new AsyncFromSyncIterator(r);
|
|
45808
45766
|
}
|
|
45809
|
-
var accept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
|
|
45810
45767
|
var purpose = function(_ref) {
|
|
45811
45768
|
var fileObject = _ref.fileObject;
|
|
45812
45769
|
if (fileObject.type.startsWith("image/")) {
|
|
@@ -45814,11 +45771,11 @@ var purpose = function(_ref) {
|
|
|
45814
45771
|
}
|
|
45815
45772
|
return "assistants";
|
|
45816
45773
|
};
|
|
45817
|
-
var
|
|
45818
|
-
var
|
|
45774
|
+
var useChangeFilesField = function() {
|
|
45775
|
+
var setFiles = useMessageFormContext().setFiles;
|
|
45819
45776
|
var createFile = useCreateFile().createFile;
|
|
45820
45777
|
var addToast = useToasts().addToast;
|
|
45821
|
-
var
|
|
45778
|
+
var changeFilesField = useCallback3(/* @__PURE__ */ function() {
|
|
45822
45779
|
var _ref2 = _asyncToGenerator8(function(event) {
|
|
45823
45780
|
var fileObjects, newFiles, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
|
|
45824
45781
|
return _ts_generator(this, function(_state) {
|
|
@@ -45989,40 +45946,140 @@ var Control2 = function(props) {
|
|
|
45989
45946
|
createFile,
|
|
45990
45947
|
setFiles
|
|
45991
45948
|
]);
|
|
45992
|
-
return
|
|
45993
|
-
|
|
45994
|
-
|
|
45995
|
-
|
|
45996
|
-
|
|
45997
|
-
|
|
45949
|
+
return {
|
|
45950
|
+
changeFilesField: changeFilesField
|
|
45951
|
+
};
|
|
45952
|
+
};
|
|
45953
|
+
// src/lib/files/filesFieldAccept.ts
|
|
45954
|
+
var filesFieldAccept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
|
|
45955
|
+
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45956
|
+
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45957
|
+
function ownKeys36(e, r) {
|
|
45958
|
+
var t = Object.keys(e);
|
|
45959
|
+
if (Object.getOwnPropertySymbols) {
|
|
45960
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
45961
|
+
r && (o = o.filter(function(r2) {
|
|
45962
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45963
|
+
})), t.push.apply(t, o);
|
|
45964
|
+
}
|
|
45965
|
+
return t;
|
|
45966
|
+
}
|
|
45967
|
+
function _objectSpread36(e) {
|
|
45968
|
+
for(var r = 1; r < arguments.length; r++){
|
|
45969
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
45970
|
+
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45971
|
+
_defineProperty36(e, r2, t[r2]);
|
|
45972
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45973
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45974
|
+
});
|
|
45975
|
+
}
|
|
45976
|
+
return e;
|
|
45977
|
+
}
|
|
45978
|
+
function _defineProperty36(e, r, t) {
|
|
45979
|
+
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45980
|
+
value: t,
|
|
45981
|
+
enumerable: true,
|
|
45982
|
+
configurable: true,
|
|
45983
|
+
writable: true
|
|
45984
|
+
}) : e[r] = t, e;
|
|
45985
|
+
}
|
|
45986
|
+
function _toPropertyKey36(t) {
|
|
45987
|
+
var i = _toPrimitive36(t, "string");
|
|
45988
|
+
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45989
|
+
}
|
|
45990
|
+
function _toPrimitive36(t, r) {
|
|
45991
|
+
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45992
|
+
var e = t[Symbol.toPrimitive];
|
|
45993
|
+
if (void 0 !== e) {
|
|
45994
|
+
var i = e.call(t, r || "default");
|
|
45995
|
+
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
45996
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45997
|
+
}
|
|
45998
|
+
return ("string" === r ? String : Number)(t);
|
|
45999
|
+
}
|
|
46000
|
+
var Control2 = function(props) {
|
|
46001
|
+
var $ = _c71(11);
|
|
46002
|
+
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
|
|
46003
|
+
var changeFilesField = useChangeFilesField().changeFilesField;
|
|
46004
|
+
var t0 = isDisabled || isLoading;
|
|
46005
|
+
var t1;
|
|
46006
|
+
var t2;
|
|
46007
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46008
|
+
t1 = {
|
|
46009
|
+
position: "relative",
|
|
46010
|
+
overflow: "hidden"
|
|
46011
|
+
};
|
|
46012
|
+
t2 = /* @__PURE__ */ _jsx72(FilePlusIcon, {});
|
|
46013
|
+
$[0] = t1;
|
|
46014
|
+
$[1] = t2;
|
|
46015
|
+
} else {
|
|
46016
|
+
t1 = $[0];
|
|
46017
|
+
t2 = $[1];
|
|
46018
|
+
}
|
|
46019
|
+
var t3;
|
|
46020
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46021
|
+
t3 = {
|
|
46022
|
+
cursor: "pointer",
|
|
46023
|
+
position: "absolute",
|
|
46024
|
+
top: 0,
|
|
46025
|
+
left: 0,
|
|
46026
|
+
right: 0,
|
|
46027
|
+
bottom: 0,
|
|
46028
|
+
opacity: 0
|
|
46029
|
+
};
|
|
46030
|
+
$[2] = t3;
|
|
46031
|
+
} else {
|
|
46032
|
+
t3 = $[2];
|
|
46033
|
+
}
|
|
46034
|
+
var t4;
|
|
46035
|
+
if ($[3] !== changeFilesField) {
|
|
46036
|
+
t4 = /* @__PURE__ */ _jsx72("input", {
|
|
46037
|
+
type: "file",
|
|
46038
|
+
multiple: true,
|
|
46039
|
+
accept: filesFieldAccept,
|
|
46040
|
+
onChange: changeFilesField,
|
|
46041
|
+
style: t3
|
|
46042
|
+
});
|
|
46043
|
+
$[3] = changeFilesField;
|
|
46044
|
+
$[4] = t4;
|
|
46045
|
+
} else {
|
|
46046
|
+
t4 = $[4];
|
|
46047
|
+
}
|
|
46048
|
+
var t5;
|
|
46049
|
+
if ($[5] !== t0 || $[6] !== t4) {
|
|
46050
|
+
t5 = /* @__PURE__ */ _jsxs24(IconButton7, {
|
|
45998
46051
|
type: "button",
|
|
45999
46052
|
variant: "ghost",
|
|
46000
46053
|
color: "gray",
|
|
46001
|
-
disabled:
|
|
46002
|
-
style:
|
|
46003
|
-
position: "relative",
|
|
46004
|
-
overflow: "hidden"
|
|
46005
|
-
},
|
|
46054
|
+
disabled: t0,
|
|
46055
|
+
style: t1,
|
|
46006
46056
|
children: [
|
|
46007
|
-
|
|
46008
|
-
|
|
46009
|
-
type: "file",
|
|
46010
|
-
multiple: true,
|
|
46011
|
-
accept: accept,
|
|
46012
|
-
onChange: onChange,
|
|
46013
|
-
style: {
|
|
46014
|
-
cursor: "pointer",
|
|
46015
|
-
position: "absolute",
|
|
46016
|
-
top: 0,
|
|
46017
|
-
left: 0,
|
|
46018
|
-
right: 0,
|
|
46019
|
-
bottom: 0,
|
|
46020
|
-
opacity: 0
|
|
46021
|
-
}
|
|
46022
|
-
})
|
|
46057
|
+
t2,
|
|
46058
|
+
t4
|
|
46023
46059
|
]
|
|
46024
|
-
})
|
|
46025
|
-
|
|
46060
|
+
});
|
|
46061
|
+
$[5] = t0;
|
|
46062
|
+
$[6] = t4;
|
|
46063
|
+
$[7] = t5;
|
|
46064
|
+
} else {
|
|
46065
|
+
t5 = $[7];
|
|
46066
|
+
}
|
|
46067
|
+
var t6;
|
|
46068
|
+
if ($[8] !== props || $[9] !== t5) {
|
|
46069
|
+
t6 = /* @__PURE__ */ _jsx72(Flex22, _objectSpread36(_objectSpread36({
|
|
46070
|
+
pt: "2",
|
|
46071
|
+
pr: "2",
|
|
46072
|
+
flexGrow: "0"
|
|
46073
|
+
}, props), {}, {
|
|
46074
|
+
children: t5
|
|
46075
|
+
}));
|
|
46076
|
+
$[8] = props;
|
|
46077
|
+
$[9] = t5;
|
|
46078
|
+
$[10] = t6;
|
|
46079
|
+
} else {
|
|
46080
|
+
t6 = $[10];
|
|
46081
|
+
}
|
|
46082
|
+
return t6;
|
|
46026
46083
|
};
|
|
46027
46084
|
// src/components/threads/Thread/MessageForm/Field/Files/index.tsx
|
|
46028
46085
|
var Files = {
|
|
@@ -46158,7 +46215,7 @@ function _toPrimitive38(t, r) {
|
|
|
46158
46215
|
return ("string" === r ? String : Number)(t);
|
|
46159
46216
|
}
|
|
46160
46217
|
var MessageForm = function(props) {
|
|
46161
|
-
var $ =
|
|
46218
|
+
var $ = _c72(3);
|
|
46162
46219
|
var t0;
|
|
46163
46220
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46164
46221
|
t0 = /* @__PURE__ */ _jsxs25(Field.Root, {
|
|
@@ -46187,22 +46244,22 @@ MessageForm.Root = Root8;
|
|
|
46187
46244
|
MessageForm.Field = Field;
|
|
46188
46245
|
MessageForm.Submit = Submit;
|
|
46189
46246
|
// src/components/threads/Thread/Root/index.tsx
|
|
46190
|
-
import { c as
|
|
46247
|
+
import { c as _c75 } from "react-compiler-runtime";
|
|
46191
46248
|
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
46192
46249
|
// src/components/threads/Thread/Provider/index.tsx
|
|
46193
46250
|
var Provider2 = SuperinterfaceProvider;
|
|
46194
46251
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46195
|
-
import { c as
|
|
46252
|
+
import { c as _c74 } from "react-compiler-runtime";
|
|
46196
46253
|
import { useState as useState5, useCallback as useCallback4 } from "react";
|
|
46197
46254
|
import * as Toast2 from "@radix-ui/react-toast";
|
|
46198
46255
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
46199
|
-
import { c as
|
|
46256
|
+
import { c as _c73 } from "react-compiler-runtime";
|
|
46200
46257
|
import * as Toast from "@radix-ui/react-toast";
|
|
46201
46258
|
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
46202
46259
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
46203
46260
|
import { jsx as _jsx75, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
46204
46261
|
var CustomToast = function(t0) {
|
|
46205
|
-
var $ =
|
|
46262
|
+
var $ = _c73(7);
|
|
46206
46263
|
var toast = t0.toast;
|
|
46207
46264
|
var t1;
|
|
46208
46265
|
if ($[0] !== toast.type) {
|
|
@@ -46258,7 +46315,7 @@ var CustomToast = function(t0) {
|
|
|
46258
46315
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46259
46316
|
import { jsx as _jsx76, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
46260
46317
|
var ToastsProvider = function(t0) {
|
|
46261
|
-
var $ =
|
|
46318
|
+
var $ = _c74(15);
|
|
46262
46319
|
var children = t0.children, t1 = t0.bottom;
|
|
46263
46320
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
46264
46321
|
var t2;
|
|
@@ -46430,7 +46487,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46430
46487
|
return t;
|
|
46431
46488
|
}
|
|
46432
46489
|
var Root12 = function(t0) {
|
|
46433
|
-
var $ =
|
|
46490
|
+
var $ = _c75(12);
|
|
46434
46491
|
var children;
|
|
46435
46492
|
var className;
|
|
46436
46493
|
var rest;
|
|
@@ -46530,7 +46587,7 @@ function _toPrimitive40(t, r) {
|
|
|
46530
46587
|
return ("string" === r ? String : Number)(t);
|
|
46531
46588
|
}
|
|
46532
46589
|
var Thread = function(props) {
|
|
46533
|
-
var $ =
|
|
46590
|
+
var $ = _c76(4);
|
|
46534
46591
|
var t0;
|
|
46535
46592
|
var t1;
|
|
46536
46593
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -46566,7 +46623,7 @@ var useMessageContext = function() {
|
|
|
46566
46623
|
return useContext17(MessageContext);
|
|
46567
46624
|
};
|
|
46568
46625
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46569
|
-
import { c as
|
|
46626
|
+
import { c as _c77 } from "react-compiler-runtime";
|
|
46570
46627
|
import { useMemo as useMemo15 } from "react";
|
|
46571
46628
|
import { useQuery } from "@tanstack/react-query";
|
|
46572
46629
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
@@ -46716,7 +46773,7 @@ function _toPrimitive41(t, r) {
|
|
|
46716
46773
|
return ("string" === r ? String : Number)(t);
|
|
46717
46774
|
}
|
|
46718
46775
|
var useAssistant = function(t0) {
|
|
46719
|
-
var $ =
|
|
46776
|
+
var $ = _c77(6);
|
|
46720
46777
|
var assistantId = t0.assistantId;
|
|
46721
46778
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46722
46779
|
var t1;
|
|
@@ -46749,11 +46806,11 @@ var useAssistant = function(t0) {
|
|
|
46749
46806
|
return t2;
|
|
46750
46807
|
};
|
|
46751
46808
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46752
|
-
import { c as
|
|
46809
|
+
import { c as _c84 } from "react-compiler-runtime";
|
|
46753
46810
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46754
|
-
import { c as
|
|
46811
|
+
import { c as _c79 } from "react-compiler-runtime";
|
|
46755
46812
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46756
|
-
import { c as
|
|
46813
|
+
import { c as _c78 } from "react-compiler-runtime";
|
|
46757
46814
|
import { useState as useState6 } from "react";
|
|
46758
46815
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46759
46816
|
import { createContext as createContext12 } from "react";
|
|
@@ -46769,7 +46826,7 @@ var useThreadDialogContext = function() {
|
|
|
46769
46826
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46770
46827
|
import { jsx as _jsx79 } from "react/jsx-runtime";
|
|
46771
46828
|
var Provider4 = function(t0) {
|
|
46772
|
-
var $ =
|
|
46829
|
+
var $ = _c78(5);
|
|
46773
46830
|
var children = t0.children;
|
|
46774
46831
|
var threadDialogContext = useThreadDialogContext();
|
|
46775
46832
|
var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
|
|
@@ -46801,7 +46858,7 @@ var Provider4 = function(t0) {
|
|
|
46801
46858
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46802
46859
|
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
46803
46860
|
var Root13 = function(t0) {
|
|
46804
|
-
var $ =
|
|
46861
|
+
var $ = _c79(2);
|
|
46805
46862
|
var children = t0.children;
|
|
46806
46863
|
var t1;
|
|
46807
46864
|
if ($[0] !== children) {
|
|
@@ -46816,10 +46873,10 @@ var Root13 = function(t0) {
|
|
|
46816
46873
|
return t1;
|
|
46817
46874
|
};
|
|
46818
46875
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46819
|
-
import { c as
|
|
46876
|
+
import { c as _c81 } from "react-compiler-runtime";
|
|
46820
46877
|
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
46821
46878
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46822
|
-
import { c as
|
|
46879
|
+
import { c as _c80 } from "react-compiler-runtime";
|
|
46823
46880
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46824
46881
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46825
46882
|
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
@@ -46867,7 +46924,7 @@ function _toPrimitive42(t, r) {
|
|
|
46867
46924
|
return ("string" === r ? String : Number)(t);
|
|
46868
46925
|
}
|
|
46869
46926
|
var Button4 = function(props) {
|
|
46870
|
-
var $ =
|
|
46927
|
+
var $ = _c80(3);
|
|
46871
46928
|
var t0;
|
|
46872
46929
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46873
46930
|
t0 = /* @__PURE__ */ _jsx81(ChatBubbleIcon, {});
|
|
@@ -46936,7 +46993,7 @@ function _toPrimitive43(t, r) {
|
|
|
46936
46993
|
return ("string" === r ? String : Number)(t);
|
|
46937
46994
|
}
|
|
46938
46995
|
var Root14 = function(t0) {
|
|
46939
|
-
var $ =
|
|
46996
|
+
var $ = _c81(14);
|
|
46940
46997
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46941
46998
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46942
46999
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -47007,7 +47064,7 @@ var Root14 = function(t0) {
|
|
|
47007
47064
|
return t6;
|
|
47008
47065
|
};
|
|
47009
47066
|
var Trigger = function(args) {
|
|
47010
|
-
var $ =
|
|
47067
|
+
var $ = _c81(3);
|
|
47011
47068
|
var t0;
|
|
47012
47069
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47013
47070
|
t0 = /* @__PURE__ */ _jsx82(Button4, {});
|
|
@@ -47033,15 +47090,15 @@ function _temp6(prev) {
|
|
|
47033
47090
|
return !prev;
|
|
47034
47091
|
}
|
|
47035
47092
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
47036
|
-
import { c as
|
|
47093
|
+
import { c as _c83 } from "react-compiler-runtime";
|
|
47037
47094
|
import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
|
|
47038
47095
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
47039
|
-
import { c as
|
|
47096
|
+
import { c as _c82 } from "react-compiler-runtime";
|
|
47040
47097
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
47041
47098
|
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
47042
47099
|
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
47043
47100
|
var Close = function() {
|
|
47044
|
-
var $ =
|
|
47101
|
+
var $ = _c82(9);
|
|
47045
47102
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
47046
47103
|
var t0 = isOpen ? "flex" : "none";
|
|
47047
47104
|
var t1;
|
|
@@ -47157,7 +47214,7 @@ function _toPrimitive44(t, r) {
|
|
|
47157
47214
|
return ("string" === r ? String : Number)(t);
|
|
47158
47215
|
}
|
|
47159
47216
|
var Root15 = function(t0) {
|
|
47160
|
-
var $ =
|
|
47217
|
+
var $ = _c83(19);
|
|
47161
47218
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47162
47219
|
var isOpen = useThreadDialogContext().isOpen;
|
|
47163
47220
|
if (!isOpen) {
|
|
@@ -47304,7 +47361,7 @@ var Root15 = function(t0) {
|
|
|
47304
47361
|
return t13;
|
|
47305
47362
|
};
|
|
47306
47363
|
var Messages3 = function(t0) {
|
|
47307
|
-
var $ =
|
|
47364
|
+
var $ = _c83(5);
|
|
47308
47365
|
var className = t0.className, style = t0.style;
|
|
47309
47366
|
var t1;
|
|
47310
47367
|
if ($[0] !== style) {
|
|
@@ -47333,7 +47390,7 @@ var Messages3 = function(t0) {
|
|
|
47333
47390
|
return t2;
|
|
47334
47391
|
};
|
|
47335
47392
|
var FormContainer = function(t0) {
|
|
47336
|
-
var $ =
|
|
47393
|
+
var $ = _c83(4);
|
|
47337
47394
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47338
47395
|
var t1;
|
|
47339
47396
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -47357,7 +47414,7 @@ var FormContainer = function(t0) {
|
|
|
47357
47414
|
return t1;
|
|
47358
47415
|
};
|
|
47359
47416
|
var Content8 = function(props) {
|
|
47360
|
-
var $ =
|
|
47417
|
+
var $ = _c83(4);
|
|
47361
47418
|
var t0;
|
|
47362
47419
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47363
47420
|
t0 = /* @__PURE__ */ _jsx84(Messages3, {});
|
|
@@ -47397,7 +47454,7 @@ Content8.FormContainer = FormContainer;
|
|
|
47397
47454
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47398
47455
|
import { jsx as _jsx85, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
47399
47456
|
var ThreadDialog = function() {
|
|
47400
|
-
var $ =
|
|
47457
|
+
var $ = _c84(1);
|
|
47401
47458
|
var t0;
|
|
47402
47459
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47403
47460
|
t0 = /* @__PURE__ */ _jsxs30(Root13, {
|
|
@@ -47416,11 +47473,11 @@ ThreadDialog.Root = Root13;
|
|
|
47416
47473
|
ThreadDialog.Trigger = Trigger;
|
|
47417
47474
|
ThreadDialog.Content = Content8;
|
|
47418
47475
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47419
|
-
import { c as
|
|
47476
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
47420
47477
|
// src/components/threads/AudioThread/index.tsx
|
|
47421
|
-
import { c as
|
|
47478
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
47422
47479
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47423
|
-
import { c as
|
|
47480
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
47424
47481
|
import { Flex as Flex29 } from "@radix-ui/themes";
|
|
47425
47482
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47426
47483
|
import { createContext as createContext13 } from "react";
|
|
@@ -47433,12 +47490,12 @@ var useAudioThreadContext = function() {
|
|
|
47433
47490
|
return useContext19(AudioThreadContext);
|
|
47434
47491
|
};
|
|
47435
47492
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47436
|
-
import { c as
|
|
47493
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
47437
47494
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
47438
|
-
import { c as
|
|
47495
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
47439
47496
|
import { useMemo as useMemo18 } from "react";
|
|
47440
47497
|
// src/hooks/misc/usePermission/index.ts
|
|
47441
|
-
import { c as
|
|
47498
|
+
import { c as _c85 } from "react-compiler-runtime";
|
|
47442
47499
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
47443
47500
|
// src/hooks/misc/usePermission/util.ts
|
|
47444
47501
|
var noop = function() {};
|
|
@@ -47462,7 +47519,7 @@ function off(obj) {
|
|
|
47462
47519
|
}
|
|
47463
47520
|
// src/hooks/misc/usePermission/index.ts
|
|
47464
47521
|
var usePermission = function(permissionDesc) {
|
|
47465
|
-
var $ =
|
|
47522
|
+
var $ = _c85(3);
|
|
47466
47523
|
var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
|
|
47467
47524
|
var t0;
|
|
47468
47525
|
var t1;
|
|
@@ -47511,10 +47568,10 @@ import { useAudioCapture } from "use-audio-capture";
|
|
|
47511
47568
|
import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
|
|
47512
47569
|
import { useAudioPlayer } from "react-use-audio-player";
|
|
47513
47570
|
// src/hooks/misc/useInterval.ts
|
|
47514
|
-
import { c as
|
|
47571
|
+
import { c as _c86 } from "react-compiler-runtime";
|
|
47515
47572
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
47516
47573
|
var useInterval = function(callback, delay) {
|
|
47517
|
-
var $ =
|
|
47574
|
+
var $ = _c86(5);
|
|
47518
47575
|
var savedCallback = useRef6(_temp8);
|
|
47519
47576
|
var t0;
|
|
47520
47577
|
if ($[0] !== callback) {
|
|
@@ -47767,7 +47824,7 @@ var useRecorder = function(_ref) {
|
|
|
47767
47824
|
});
|
|
47768
47825
|
};
|
|
47769
47826
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47770
|
-
import { c as
|
|
47827
|
+
import { c as _c87 } from "react-compiler-runtime";
|
|
47771
47828
|
import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
|
|
47772
47829
|
import nlp from "compromise";
|
|
47773
47830
|
import { Howler } from "howler";
|
|
@@ -47850,7 +47907,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47850
47907
|
};
|
|
47851
47908
|
var useMessageAudio = function(t0) {
|
|
47852
47909
|
var _latestMessageProps$l;
|
|
47853
|
-
var $ =
|
|
47910
|
+
var $ = _c87(49);
|
|
47854
47911
|
var _onEnd = t0.onEnd, passedPlay = t0.play;
|
|
47855
47912
|
var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
|
|
47856
47913
|
var t1;
|
|
@@ -48230,7 +48287,7 @@ function _asyncToGenerator11(n) {
|
|
|
48230
48287
|
};
|
|
48231
48288
|
}
|
|
48232
48289
|
var useTtsAudioRuntime = function(t0) {
|
|
48233
|
-
var $ =
|
|
48290
|
+
var $ = _c88(30);
|
|
48234
48291
|
var play = t0.play;
|
|
48235
48292
|
var addToast = useToasts().addToast;
|
|
48236
48293
|
var queryClient = useQueryClient6();
|
|
@@ -48406,7 +48463,7 @@ function _temp24() {
|
|
|
48406
48463
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
48407
48464
|
import { jsx as _jsx86 } from "react/jsx-runtime";
|
|
48408
48465
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
48409
|
-
var $ =
|
|
48466
|
+
var $ = _c89(7);
|
|
48410
48467
|
var children = t0.children, play = t0.play;
|
|
48411
48468
|
var t1;
|
|
48412
48469
|
if ($[0] !== play) {
|
|
@@ -48516,7 +48573,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48516
48573
|
return t;
|
|
48517
48574
|
}
|
|
48518
48575
|
var Content9 = function(t0) {
|
|
48519
|
-
var $ =
|
|
48576
|
+
var $ = _c90(4);
|
|
48520
48577
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48521
48578
|
var t1;
|
|
48522
48579
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -48538,7 +48595,7 @@ var Content9 = function(t0) {
|
|
|
48538
48595
|
return t1;
|
|
48539
48596
|
};
|
|
48540
48597
|
var AudioRuntimeProvider = function(t0) {
|
|
48541
|
-
var $ =
|
|
48598
|
+
var $ = _c90(3);
|
|
48542
48599
|
var children = t0.children, play = t0.play;
|
|
48543
48600
|
var audioThreadContext = useAudioThreadContext();
|
|
48544
48601
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48559,7 +48616,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48559
48616
|
return t1;
|
|
48560
48617
|
};
|
|
48561
48618
|
var Provider5 = function(t0) {
|
|
48562
|
-
var $ =
|
|
48619
|
+
var $ = _c90(9);
|
|
48563
48620
|
var children;
|
|
48564
48621
|
var rest;
|
|
48565
48622
|
if ($[0] !== t0) {
|
|
@@ -48599,7 +48656,7 @@ var Provider5 = function(t0) {
|
|
|
48599
48656
|
return t2;
|
|
48600
48657
|
};
|
|
48601
48658
|
var Root16 = function(t0) {
|
|
48602
|
-
var $ =
|
|
48659
|
+
var $ = _c90(16);
|
|
48603
48660
|
var children;
|
|
48604
48661
|
var className;
|
|
48605
48662
|
var play;
|
|
@@ -48666,7 +48723,7 @@ var Root16 = function(t0) {
|
|
|
48666
48723
|
return t3;
|
|
48667
48724
|
};
|
|
48668
48725
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48669
|
-
import { c as
|
|
48726
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
48670
48727
|
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
|
|
48671
48728
|
import _9 from "lodash";
|
|
48672
48729
|
import { Flex as Flex31 } from "@radix-ui/themes";
|
|
@@ -48735,10 +48792,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48735
48792
|
});
|
|
48736
48793
|
};
|
|
48737
48794
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48738
|
-
import { c as
|
|
48795
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
48739
48796
|
import { useMemo as useMemo19 } from "react";
|
|
48740
48797
|
var useStatus = function() {
|
|
48741
|
-
var $ =
|
|
48798
|
+
var $ = _c91(2);
|
|
48742
48799
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48743
48800
|
var t0;
|
|
48744
48801
|
bb0: {
|
|
@@ -48898,7 +48955,7 @@ var Provider6 = function(_ref) {
|
|
|
48898
48955
|
});
|
|
48899
48956
|
};
|
|
48900
48957
|
var Root17 = function(t0) {
|
|
48901
|
-
var $ =
|
|
48958
|
+
var $ = _c92(6);
|
|
48902
48959
|
var children;
|
|
48903
48960
|
var rest;
|
|
48904
48961
|
if ($[0] !== t0) {
|
|
@@ -48935,7 +48992,7 @@ var Root17 = function(t0) {
|
|
|
48935
48992
|
return t1;
|
|
48936
48993
|
};
|
|
48937
48994
|
var BarsVisualizer2 = function(t0) {
|
|
48938
|
-
var $ =
|
|
48995
|
+
var $ = _c92(10);
|
|
48939
48996
|
var rest;
|
|
48940
48997
|
var t1;
|
|
48941
48998
|
var t2;
|
|
@@ -48979,7 +49036,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48979
49036
|
return t4;
|
|
48980
49037
|
};
|
|
48981
49038
|
var AssistantVisualizationRoot = function(t0) {
|
|
48982
|
-
var $ =
|
|
49039
|
+
var $ = _c92(17);
|
|
48983
49040
|
var children;
|
|
48984
49041
|
var rest;
|
|
48985
49042
|
var t1;
|
|
@@ -49052,7 +49109,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
49052
49109
|
return t6;
|
|
49053
49110
|
};
|
|
49054
49111
|
var AssistantVisualization = function(props) {
|
|
49055
|
-
var $ =
|
|
49112
|
+
var $ = _c92(3);
|
|
49056
49113
|
var t0;
|
|
49057
49114
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49058
49115
|
t0 = /* @__PURE__ */ _jsx89(BarsVisualizer2, {});
|
|
@@ -49075,7 +49132,7 @@ var AssistantVisualization = function(props) {
|
|
|
49075
49132
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
49076
49133
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
49077
49134
|
var AssistantInfo = function(props) {
|
|
49078
|
-
var $ =
|
|
49135
|
+
var $ = _c92(6);
|
|
49079
49136
|
var assistantNameContext = useContext20(AssistantNameContext);
|
|
49080
49137
|
var t0;
|
|
49081
49138
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49115,7 +49172,7 @@ var AssistantInfo = function(props) {
|
|
|
49115
49172
|
return t2;
|
|
49116
49173
|
};
|
|
49117
49174
|
var Visualization = function(props) {
|
|
49118
|
-
var $ =
|
|
49175
|
+
var $ = _c92(4);
|
|
49119
49176
|
var t0;
|
|
49120
49177
|
var t1;
|
|
49121
49178
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49147,9 +49204,9 @@ Visualization.Provider = Provider6;
|
|
|
49147
49204
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
49148
49205
|
Visualization.AssistantInfo = AssistantInfo;
|
|
49149
49206
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49150
|
-
import { c as
|
|
49207
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
49151
49208
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
49152
|
-
import { c as
|
|
49209
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
49153
49210
|
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
49154
49211
|
import { jsx as _jsx90, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
49155
49212
|
var html = function(_ref) {
|
|
@@ -49159,7 +49216,7 @@ var html = function(_ref) {
|
|
|
49159
49216
|
}).join(""), "\n }");
|
|
49160
49217
|
};
|
|
49161
49218
|
var StatusMessages = function(t0) {
|
|
49162
|
-
var $ =
|
|
49219
|
+
var $ = _c93(9);
|
|
49163
49220
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
49164
49221
|
var t1;
|
|
49165
49222
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49263,7 +49320,7 @@ function _toPrimitive49(t, r) {
|
|
|
49263
49320
|
return ("string" === r ? String : Number)(t);
|
|
49264
49321
|
}
|
|
49265
49322
|
var Status = function(props) {
|
|
49266
|
-
var $ =
|
|
49323
|
+
var $ = _c94(12);
|
|
49267
49324
|
var status = useStatus().status;
|
|
49268
49325
|
if (status === "recording") {
|
|
49269
49326
|
var _t;
|
|
@@ -49360,10 +49417,10 @@ var Status = function(props) {
|
|
|
49360
49417
|
return t1;
|
|
49361
49418
|
};
|
|
49362
49419
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49363
|
-
import { c as
|
|
49420
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
49364
49421
|
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
49365
49422
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49366
|
-
import { c as
|
|
49423
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
49367
49424
|
import { jsx as _jsx92 } from "react/jsx-runtime";
|
|
49368
49425
|
function ownKeys50(e, r) {
|
|
49369
49426
|
var t = Object.keys(e);
|
|
@@ -49409,7 +49466,7 @@ function _toPrimitive50(t, r) {
|
|
|
49409
49466
|
return ("string" === r ? String : Number)(t);
|
|
49410
49467
|
}
|
|
49411
49468
|
var MicIcon = function(props) {
|
|
49412
|
-
var $ =
|
|
49469
|
+
var $ = _c95(3);
|
|
49413
49470
|
var t0;
|
|
49414
49471
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49415
49472
|
t0 = /* @__PURE__ */ _jsx92("path", {
|
|
@@ -49441,12 +49498,12 @@ var MicIcon = function(props) {
|
|
|
49441
49498
|
return t1;
|
|
49442
49499
|
};
|
|
49443
49500
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49444
|
-
import { c as
|
|
49501
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
49445
49502
|
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
49446
49503
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
49447
49504
|
import { jsx as _jsx93, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
49448
49505
|
var ActionButton = function() {
|
|
49449
|
-
var $ =
|
|
49506
|
+
var $ = _c96(27);
|
|
49450
49507
|
var status = useStatus().status;
|
|
49451
49508
|
var audioThreadContext = useAudioThreadContext();
|
|
49452
49509
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -49684,7 +49741,7 @@ function _toPrimitive51(t, r) {
|
|
|
49684
49741
|
return ("string" === r ? String : Number)(t);
|
|
49685
49742
|
}
|
|
49686
49743
|
var Form = function(props) {
|
|
49687
|
-
var $ =
|
|
49744
|
+
var $ = _c97(17);
|
|
49688
49745
|
var status = useStatus().status;
|
|
49689
49746
|
var audioThreadContext = useAudioThreadContext();
|
|
49690
49747
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
@@ -49834,7 +49891,7 @@ function _toPrimitive52(t, r) {
|
|
|
49834
49891
|
return ("string" === r ? String : Number)(t);
|
|
49835
49892
|
}
|
|
49836
49893
|
var AudioThread = function(props) {
|
|
49837
|
-
var $ =
|
|
49894
|
+
var $ = _c98(5);
|
|
49838
49895
|
var t0;
|
|
49839
49896
|
var t1;
|
|
49840
49897
|
var t2;
|
|
@@ -49916,7 +49973,7 @@ function _toPrimitive53(t, r) {
|
|
|
49916
49973
|
return ("string" === r ? String : Number)(t);
|
|
49917
49974
|
}
|
|
49918
49975
|
var AudioThreadDialog = function(props) {
|
|
49919
|
-
var $ =
|
|
49976
|
+
var $ = _c99(4);
|
|
49920
49977
|
var t0;
|
|
49921
49978
|
var t1;
|
|
49922
49979
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -50438,10 +50495,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
50438
50495
|
]);
|
|
50439
50496
|
};
|
|
50440
50497
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
50441
|
-
import { c as
|
|
50498
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
50442
50499
|
import { jsx as _jsx97 } from "react/jsx-runtime";
|
|
50443
50500
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
50444
|
-
var $ =
|
|
50501
|
+
var $ = _c100(5);
|
|
50445
50502
|
var children = t0.children;
|
|
50446
50503
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
50447
50504
|
var t1;
|
|
@@ -50469,14 +50526,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50469
50526
|
return t2;
|
|
50470
50527
|
};
|
|
50471
50528
|
// src/components/gui/Gui/index.tsx
|
|
50472
|
-
import { c as
|
|
50529
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50473
50530
|
import { useMemo as useMemo23 } from "react";
|
|
50474
50531
|
import { Flex as Flex35, Card as Card5, Spinner as Spinner3 } from "@radix-ui/themes";
|
|
50475
50532
|
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50476
|
-
import { c as
|
|
50533
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50477
50534
|
import { useMemo as useMemo21 } from "react";
|
|
50478
50535
|
var useLatestAssistantMessage = function() {
|
|
50479
|
-
var $ =
|
|
50536
|
+
var $ = _c101(4);
|
|
50480
50537
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50481
50538
|
var t0;
|
|
50482
50539
|
var t1;
|
|
@@ -50505,11 +50562,11 @@ function _temp11(message) {
|
|
|
50505
50562
|
return message.role === "assistant";
|
|
50506
50563
|
}
|
|
50507
50564
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50508
|
-
import { c as
|
|
50565
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50509
50566
|
import { isEmpty as isEmpty3 } from "radash";
|
|
50510
50567
|
import { useMemo as useMemo22 } from "react";
|
|
50511
50568
|
var useLatestAssistantMessageWithContent = function() {
|
|
50512
|
-
var $ =
|
|
50569
|
+
var $ = _c102(4);
|
|
50513
50570
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50514
50571
|
var t0;
|
|
50515
50572
|
var t1;
|
|
@@ -50543,7 +50600,7 @@ function _temp25(message) {
|
|
|
50543
50600
|
// src/components/gui/Gui/index.tsx
|
|
50544
50601
|
import { jsx as _jsx98, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
50545
50602
|
var StartingToolCalls3 = function() {
|
|
50546
|
-
var $ =
|
|
50603
|
+
var $ = _c103(2);
|
|
50547
50604
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50548
50605
|
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50549
50606
|
var t1;
|
|
@@ -50557,7 +50614,7 @@ var StartingToolCalls3 = function() {
|
|
|
50557
50614
|
return t1;
|
|
50558
50615
|
};
|
|
50559
50616
|
var Content10 = function(t0) {
|
|
50560
|
-
var $ =
|
|
50617
|
+
var $ = _c103(5);
|
|
50561
50618
|
var latestRunStep = t0.latestRunStep;
|
|
50562
50619
|
var t1;
|
|
50563
50620
|
bb0: {
|
|
@@ -50611,7 +50668,7 @@ var Content10 = function(t0) {
|
|
|
50611
50668
|
return t2;
|
|
50612
50669
|
};
|
|
50613
50670
|
var Progress2 = function(t0) {
|
|
50614
|
-
var $ =
|
|
50671
|
+
var $ = _c103(5);
|
|
50615
50672
|
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50616
50673
|
var isMutatingMessage = useIsMutatingMessage();
|
|
50617
50674
|
var t1;
|
|
@@ -50661,7 +50718,7 @@ var Progress2 = function(t0) {
|
|
|
50661
50718
|
return t4;
|
|
50662
50719
|
};
|
|
50663
50720
|
var Gui = function() {
|
|
50664
|
-
var $ =
|
|
50721
|
+
var $ = _c103(8);
|
|
50665
50722
|
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50666
50723
|
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50667
50724
|
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
@@ -50727,7 +50784,7 @@ function _temp13(rs) {
|
|
|
50727
50784
|
return rs.status === "in_progress";
|
|
50728
50785
|
}
|
|
50729
50786
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50730
|
-
import { c as
|
|
50787
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50731
50788
|
import { useMemo as useMemo24 } from "react";
|
|
50732
50789
|
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50733
50790
|
var _excluded7 = [
|
|
@@ -50752,7 +50809,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50752
50809
|
return t;
|
|
50753
50810
|
}
|
|
50754
50811
|
var MarkdownProvider = function(t0) {
|
|
50755
|
-
var $ =
|
|
50812
|
+
var $ = _c104(9);
|
|
50756
50813
|
var children;
|
|
50757
50814
|
var rest;
|
|
50758
50815
|
if ($[0] !== t0) {
|
|
@@ -50795,18 +50852,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50795
50852
|
return t3;
|
|
50796
50853
|
};
|
|
50797
50854
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50798
|
-
import { c as
|
|
50855
|
+
import { c as _c107 } from "react-compiler-runtime";
|
|
50799
50856
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50800
|
-
import { c as
|
|
50857
|
+
import { c as _c106 } from "react-compiler-runtime";
|
|
50801
50858
|
import { useState as useState13 } from "react";
|
|
50802
50859
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
50803
50860
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50804
50861
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50805
|
-
import { c as
|
|
50862
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50806
50863
|
import { Flex as Flex36, Card as Card6, Inset as Inset3 } from "@radix-ui/themes";
|
|
50807
50864
|
import { jsx as _jsx100 } from "react/jsx-runtime";
|
|
50808
50865
|
var Content11 = function(t0) {
|
|
50809
|
-
var $ =
|
|
50866
|
+
var $ = _c105(5);
|
|
50810
50867
|
var fileId = t0.fileId;
|
|
50811
50868
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50812
50869
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50872,7 +50929,7 @@ var Content11 = function(t0) {
|
|
|
50872
50929
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50873
50930
|
import { jsx as _jsx101, jsxs as _jsxs38, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50874
50931
|
var FileCitation = function(t0) {
|
|
50875
|
-
var $ =
|
|
50932
|
+
var $ = _c106(18);
|
|
50876
50933
|
var annotation = t0.annotation;
|
|
50877
50934
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
50878
50935
|
var t1;
|
|
@@ -51021,7 +51078,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
51021
51078
|
return t;
|
|
51022
51079
|
}
|
|
51023
51080
|
var SourceAnnotation = function(t0) {
|
|
51024
|
-
var $ =
|
|
51081
|
+
var $ = _c107(10);
|
|
51025
51082
|
var children;
|
|
51026
51083
|
var rest;
|
|
51027
51084
|
if ($[0] !== t0) {
|
|
@@ -51078,7 +51135,7 @@ var SourceAnnotation = function(t0) {
|
|
|
51078
51135
|
return null;
|
|
51079
51136
|
};
|
|
51080
51137
|
// src/components/avatars/Avatar.tsx
|
|
51081
|
-
import { c as
|
|
51138
|
+
import { c as _c110 } from "react-compiler-runtime";
|
|
51082
51139
|
// src/enums/index.ts
|
|
51083
51140
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
51084
51141
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -51103,7 +51160,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
51103
51160
|
// src/components/avatars/Avatar.tsx
|
|
51104
51161
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
51105
51162
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51106
|
-
import { c as
|
|
51163
|
+
import { c as _c108 } from "react-compiler-runtime";
|
|
51107
51164
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
51108
51165
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
51109
51166
|
var width = function(_ref) {
|
|
@@ -51157,7 +51214,7 @@ var optimizedSrc = function(_ref) {
|
|
|
51157
51214
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51158
51215
|
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
51159
51216
|
var ImageAvatar = function(t0) {
|
|
51160
|
-
var $ =
|
|
51217
|
+
var $ = _c108(9);
|
|
51161
51218
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51162
51219
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51163
51220
|
var t1;
|
|
@@ -51194,7 +51251,7 @@ var ImageAvatar = function(t0) {
|
|
|
51194
51251
|
return t2;
|
|
51195
51252
|
};
|
|
51196
51253
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51197
|
-
import { c as
|
|
51254
|
+
import { c as _c109 } from "react-compiler-runtime";
|
|
51198
51255
|
import { useMemo as useMemo25 } from "react";
|
|
51199
51256
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
51200
51257
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -51204,7 +51261,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
|
|
|
51204
51261
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51205
51262
|
import { jsx as _jsx104 } from "react/jsx-runtime";
|
|
51206
51263
|
var IconAvatar = function(t0) {
|
|
51207
|
-
var $ =
|
|
51264
|
+
var $ = _c109(7);
|
|
51208
51265
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51209
51266
|
var t1;
|
|
51210
51267
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
@@ -51238,7 +51295,7 @@ var IconAvatar = function(t0) {
|
|
|
51238
51295
|
// src/components/avatars/Avatar.tsx
|
|
51239
51296
|
import { jsx as _jsx105 } from "react/jsx-runtime";
|
|
51240
51297
|
var Avatar6 = function(t0) {
|
|
51241
|
-
var $ =
|
|
51298
|
+
var $ = _c110(14);
|
|
51242
51299
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
51243
51300
|
var size = t1 === void 0 ? "1" : t1;
|
|
51244
51301
|
if (avatar) {
|
|
@@ -51299,7 +51356,7 @@ var Avatar6 = function(t0) {
|
|
|
51299
51356
|
return t2;
|
|
51300
51357
|
};
|
|
51301
51358
|
// src/components/components/ComponentsProvider.tsx
|
|
51302
|
-
import { c as
|
|
51359
|
+
import { c as _c111 } from "react-compiler-runtime";
|
|
51303
51360
|
import { useMemo as useMemo26 } from "react";
|
|
51304
51361
|
import { jsx as _jsx106 } from "react/jsx-runtime";
|
|
51305
51362
|
var _excluded9 = [
|
|
@@ -51324,7 +51381,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
51324
51381
|
return t;
|
|
51325
51382
|
}
|
|
51326
51383
|
var ComponentsProvider = function(t0) {
|
|
51327
|
-
var $ =
|
|
51384
|
+
var $ = _c111(9);
|
|
51328
51385
|
var children;
|
|
51329
51386
|
var rest;
|
|
51330
51387
|
if ($[0] !== t0) {
|
|
@@ -51367,11 +51424,11 @@ var ComponentsProvider = function(t0) {
|
|
|
51367
51424
|
return t3;
|
|
51368
51425
|
};
|
|
51369
51426
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
51370
|
-
import { c as
|
|
51427
|
+
import { c as _c112 } from "react-compiler-runtime";
|
|
51371
51428
|
import { jsx as _jsx107 } from "react/jsx-runtime";
|
|
51372
51429
|
var AssistantProvider = function(t0) {
|
|
51373
51430
|
var _assistant$name;
|
|
51374
|
-
var $ =
|
|
51431
|
+
var $ = _c112(10);
|
|
51375
51432
|
var children = t0.children;
|
|
51376
51433
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51377
51434
|
var t1;
|
|
@@ -51423,5 +51480,5 @@ var AssistantProvider = function(t0) {
|
|
|
51423
51480
|
}
|
|
51424
51481
|
return t6;
|
|
51425
51482
|
};
|
|
51426
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, Gui, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, MessagesSkeleton, RunStep, SourceAnnotation, StartingContentSkeleton, 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 };
|
|
51483
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, Gui, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, MessagesSkeleton, RunStep, SourceAnnotation, StartingContentSkeleton, StartingSkeleton, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useChangeFilesField, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
51427
51484
|
//# sourceMappingURL=index.js.map
|