@superinterface/react 5.4.0 → 5.4.3
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 +140 -206
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +140 -206
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +131 -14
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +131 -14
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -38200,7 +38200,8 @@ var UnorderedList = function(t0) {
|
|
|
38200
38200
|
var t1;
|
|
38201
38201
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38202
38202
|
t1 = {
|
|
38203
|
-
listStylePosition: "
|
|
38203
|
+
listStylePosition: "outside",
|
|
38204
|
+
listStyleType: "disc"
|
|
38204
38205
|
};
|
|
38205
38206
|
$[0] = t1;
|
|
38206
38207
|
} else {
|
|
@@ -38210,6 +38211,7 @@ var UnorderedList = function(t0) {
|
|
|
38210
38211
|
if ($[1] !== children) {
|
|
38211
38212
|
t22 = /* @__PURE__ */ _jsx21(Box4, {
|
|
38212
38213
|
pb: "3",
|
|
38214
|
+
pl: "5",
|
|
38213
38215
|
asChild: true,
|
|
38214
38216
|
children: /* @__PURE__ */ _jsx21("ul", {
|
|
38215
38217
|
style: t1,
|
|
@@ -38233,7 +38235,8 @@ var OrderedList = function(t0) {
|
|
|
38233
38235
|
var t1;
|
|
38234
38236
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38235
38237
|
t1 = {
|
|
38236
|
-
listStylePosition: "
|
|
38238
|
+
listStylePosition: "outside",
|
|
38239
|
+
listStyleType: "decimal"
|
|
38237
38240
|
};
|
|
38238
38241
|
$[0] = t1;
|
|
38239
38242
|
} else {
|
|
@@ -38243,6 +38246,7 @@ var OrderedList = function(t0) {
|
|
|
38243
38246
|
if ($[1] !== children) {
|
|
38244
38247
|
t22 = /* @__PURE__ */ _jsx22(Box5, {
|
|
38245
38248
|
pb: "3",
|
|
38249
|
+
pl: "5",
|
|
38246
38250
|
asChild: true,
|
|
38247
38251
|
children: /* @__PURE__ */ _jsx22("ol", {
|
|
38248
38252
|
style: t1,
|
|
@@ -38266,6 +38270,7 @@ var ListItem = function(t0) {
|
|
|
38266
38270
|
var t1;
|
|
38267
38271
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38268
38272
|
t1 = {
|
|
38273
|
+
display: "list-item",
|
|
38269
38274
|
wordBreak: "break-word"
|
|
38270
38275
|
};
|
|
38271
38276
|
$[0] = t1;
|
|
@@ -38276,6 +38281,7 @@ var ListItem = function(t0) {
|
|
|
38276
38281
|
if ($[1] !== children) {
|
|
38277
38282
|
t22 = /* @__PURE__ */ _jsx23(Box6, {
|
|
38278
38283
|
pb: "1",
|
|
38284
|
+
asChild: true,
|
|
38279
38285
|
children: /* @__PURE__ */ _jsx23("li", {
|
|
38280
38286
|
style: t1,
|
|
38281
38287
|
children: children
|
|
@@ -43137,160 +43143,94 @@ function _temp2(content2, index4) {
|
|
|
43137
43143
|
content: content2
|
|
43138
43144
|
}, index4);
|
|
43139
43145
|
}
|
|
43146
|
+
// src/components/threads/Thread/Message/lib/splitRunSteps.ts
|
|
43147
|
+
var splitRunSteps = function(_ref) {
|
|
43148
|
+
var messageId = _ref.messageId, runSteps = _ref.runSteps;
|
|
43149
|
+
if (!runSteps.length) return [
|
|
43150
|
+
[],
|
|
43151
|
+
[]
|
|
43152
|
+
];
|
|
43153
|
+
var messageCreationRunStepIndex = runSteps.findIndex(function(runStep) {
|
|
43154
|
+
if (runStep.step_details.type !== "message_creation") return;
|
|
43155
|
+
return runStep.step_details.message_creation.message_id === messageId;
|
|
43156
|
+
});
|
|
43157
|
+
if (messageCreationRunStepIndex === -1) {
|
|
43158
|
+
return [
|
|
43159
|
+
[],
|
|
43160
|
+
runSteps
|
|
43161
|
+
];
|
|
43162
|
+
}
|
|
43163
|
+
var prevMcIndex = runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(function(runStep) {
|
|
43164
|
+
return runStep.step_details.type === "message_creation";
|
|
43165
|
+
});
|
|
43166
|
+
var laterRunSteps = prevMcIndex === -1 ? runSteps.slice(0, messageCreationRunStepIndex) : [];
|
|
43167
|
+
var prevRunStepIndex = runSteps.slice(messageCreationRunStepIndex + 1).findIndex(function(runStep) {
|
|
43168
|
+
return runStep.step_details.type === "message_creation";
|
|
43169
|
+
});
|
|
43170
|
+
var olderRunSteps;
|
|
43171
|
+
if (prevRunStepIndex === -1) {
|
|
43172
|
+
olderRunSteps = runSteps.slice(messageCreationRunStepIndex + 1);
|
|
43173
|
+
} else {
|
|
43174
|
+
olderRunSteps = runSteps.slice(messageCreationRunStepIndex + 1, messageCreationRunStepIndex + 1 + prevRunStepIndex);
|
|
43175
|
+
}
|
|
43176
|
+
return [
|
|
43177
|
+
olderRunSteps,
|
|
43178
|
+
laterRunSteps
|
|
43179
|
+
];
|
|
43180
|
+
};
|
|
43140
43181
|
// src/components/threads/Thread/Message/index.tsx
|
|
43141
43182
|
import { jsx as _jsx62, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43142
43183
|
var Message = function(t0) {
|
|
43143
|
-
var $ = _c60(
|
|
43184
|
+
var $ = _c60(21);
|
|
43144
43185
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43145
43186
|
var t1;
|
|
43146
|
-
bb0: {
|
|
43147
|
-
if (!message.runSteps.length) {
|
|
43148
|
-
var _t;
|
|
43149
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43150
|
-
_t = [
|
|
43151
|
-
[],
|
|
43152
|
-
[]
|
|
43153
|
-
];
|
|
43154
|
-
$[0] = _t;
|
|
43155
|
-
} else {
|
|
43156
|
-
_t = $[0];
|
|
43157
|
-
}
|
|
43158
|
-
t1 = _t;
|
|
43159
|
-
break bb0;
|
|
43160
|
-
}
|
|
43161
|
-
var _t2;
|
|
43162
|
-
if ($[1] !== message.id) {
|
|
43163
|
-
_t2 = function(runStep) {
|
|
43164
|
-
if (runStep.step_details.type !== "message_creation") {
|
|
43165
|
-
return;
|
|
43166
|
-
}
|
|
43167
|
-
return runStep.step_details.message_creation.message_id === message.id;
|
|
43168
|
-
};
|
|
43169
|
-
$[1] = message.id;
|
|
43170
|
-
$[2] = _t2;
|
|
43171
|
-
} else {
|
|
43172
|
-
_t2 = $[2];
|
|
43173
|
-
}
|
|
43174
|
-
var messageCreationRunStepIndex = message.runSteps.findIndex(_t2);
|
|
43175
|
-
if (messageCreationRunStepIndex === -1) {
|
|
43176
|
-
var _t3;
|
|
43177
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43178
|
-
_t3 = [];
|
|
43179
|
-
$[3] = _t3;
|
|
43180
|
-
} else {
|
|
43181
|
-
_t3 = $[3];
|
|
43182
|
-
}
|
|
43183
|
-
var _t4;
|
|
43184
|
-
if ($[4] !== message.runSteps) {
|
|
43185
|
-
_t4 = [
|
|
43186
|
-
_t3,
|
|
43187
|
-
message.runSteps
|
|
43188
|
-
];
|
|
43189
|
-
$[4] = message.runSteps;
|
|
43190
|
-
$[5] = _t4;
|
|
43191
|
-
} else {
|
|
43192
|
-
_t4 = $[5];
|
|
43193
|
-
}
|
|
43194
|
-
t1 = _t4;
|
|
43195
|
-
break bb0;
|
|
43196
|
-
}
|
|
43197
|
-
var _t5;
|
|
43198
|
-
if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
|
|
43199
|
-
var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp3);
|
|
43200
|
-
if (nextRunStepIndex === -1) {
|
|
43201
|
-
nextRunStepIndex = 0;
|
|
43202
|
-
}
|
|
43203
|
-
_t5 = message.runSteps.slice(nextRunStepIndex, messageCreationRunStepIndex);
|
|
43204
|
-
$[6] = message.runSteps;
|
|
43205
|
-
$[7] = messageCreationRunStepIndex;
|
|
43206
|
-
$[8] = _t5;
|
|
43207
|
-
} else {
|
|
43208
|
-
_t5 = $[8];
|
|
43209
|
-
}
|
|
43210
|
-
var laterRunSteps = _t5;
|
|
43211
|
-
var _t6;
|
|
43212
|
-
if ($[9] !== message.runSteps || $[10] !== messageCreationRunStepIndex) {
|
|
43213
|
-
_t6 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
|
|
43214
|
-
$[9] = message.runSteps;
|
|
43215
|
-
$[10] = messageCreationRunStepIndex;
|
|
43216
|
-
$[11] = _t6;
|
|
43217
|
-
} else {
|
|
43218
|
-
_t6 = $[11];
|
|
43219
|
-
}
|
|
43220
|
-
var prevRunStepIndex = _t6;
|
|
43221
|
-
var olderRunSteps;
|
|
43222
|
-
if (prevRunStepIndex === -1) {
|
|
43223
|
-
var _t7;
|
|
43224
|
-
if ($[12] !== message.runSteps || $[13] !== messageCreationRunStepIndex) {
|
|
43225
|
-
_t7 = message.runSteps.slice(messageCreationRunStepIndex + 1);
|
|
43226
|
-
$[12] = message.runSteps;
|
|
43227
|
-
$[13] = messageCreationRunStepIndex;
|
|
43228
|
-
$[14] = _t7;
|
|
43229
|
-
} else {
|
|
43230
|
-
_t7 = $[14];
|
|
43231
|
-
}
|
|
43232
|
-
olderRunSteps = _t7;
|
|
43233
|
-
} else {
|
|
43234
|
-
var _t8;
|
|
43235
|
-
if ($[15] !== message.runSteps || $[16] !== messageCreationRunStepIndex || $[17] !== prevRunStepIndex) {
|
|
43236
|
-
_t8 = message.runSteps.slice(messageCreationRunStepIndex + 1, messageCreationRunStepIndex + prevRunStepIndex);
|
|
43237
|
-
$[15] = message.runSteps;
|
|
43238
|
-
$[16] = messageCreationRunStepIndex;
|
|
43239
|
-
$[17] = prevRunStepIndex;
|
|
43240
|
-
$[18] = _t8;
|
|
43241
|
-
} else {
|
|
43242
|
-
_t8 = $[18];
|
|
43243
|
-
}
|
|
43244
|
-
olderRunSteps = _t8;
|
|
43245
|
-
}
|
|
43246
|
-
var _t9;
|
|
43247
|
-
if ($[19] !== laterRunSteps || $[20] !== olderRunSteps) {
|
|
43248
|
-
_t9 = [
|
|
43249
|
-
olderRunSteps,
|
|
43250
|
-
laterRunSteps
|
|
43251
|
-
];
|
|
43252
|
-
$[19] = laterRunSteps;
|
|
43253
|
-
$[20] = olderRunSteps;
|
|
43254
|
-
$[21] = _t9;
|
|
43255
|
-
} else {
|
|
43256
|
-
_t9 = $[21];
|
|
43257
|
-
}
|
|
43258
|
-
t1 = _t9;
|
|
43259
|
-
}
|
|
43260
|
-
var _t1 = _sliced_to_array(t1, 2), olderRunSteps_0 = _t1[0], laterRunSteps_0 = _t1[1];
|
|
43261
43187
|
var t22;
|
|
43262
|
-
if ($[
|
|
43263
|
-
t22 = {
|
|
43188
|
+
if ($[0] !== message.id || $[1] !== message.runSteps) {
|
|
43189
|
+
t22 = splitRunSteps({
|
|
43190
|
+
messageId: message.id,
|
|
43191
|
+
runSteps: message.runSteps
|
|
43192
|
+
});
|
|
43193
|
+
$[0] = message.id;
|
|
43194
|
+
$[1] = message.runSteps;
|
|
43195
|
+
$[2] = t22;
|
|
43196
|
+
} else {
|
|
43197
|
+
t22 = $[2];
|
|
43198
|
+
}
|
|
43199
|
+
t1 = t22;
|
|
43200
|
+
var _t1 = _sliced_to_array(t1, 2), olderRunSteps = _t1[0], laterRunSteps = _t1[1];
|
|
43201
|
+
var t3;
|
|
43202
|
+
if ($[3] !== message) {
|
|
43203
|
+
t3 = {
|
|
43264
43204
|
message: message
|
|
43265
43205
|
};
|
|
43266
|
-
$[
|
|
43267
|
-
$[
|
|
43206
|
+
$[3] = message;
|
|
43207
|
+
$[4] = t3;
|
|
43268
43208
|
} else {
|
|
43269
|
-
|
|
43209
|
+
t3 = $[4];
|
|
43270
43210
|
}
|
|
43271
|
-
var
|
|
43272
|
-
if ($[
|
|
43273
|
-
|
|
43274
|
-
runSteps:
|
|
43211
|
+
var t4;
|
|
43212
|
+
if ($[5] !== olderRunSteps) {
|
|
43213
|
+
t4 = /* @__PURE__ */ _jsx62(RunSteps, {
|
|
43214
|
+
runSteps: olderRunSteps
|
|
43275
43215
|
});
|
|
43276
|
-
$[
|
|
43277
|
-
$[
|
|
43216
|
+
$[5] = olderRunSteps;
|
|
43217
|
+
$[6] = t4;
|
|
43278
43218
|
} else {
|
|
43279
|
-
|
|
43219
|
+
t4 = $[6];
|
|
43280
43220
|
}
|
|
43281
|
-
var
|
|
43282
|
-
if ($[
|
|
43283
|
-
|
|
43221
|
+
var t5;
|
|
43222
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43223
|
+
t5 = {
|
|
43284
43224
|
wordBreak: "break-word"
|
|
43285
43225
|
};
|
|
43286
|
-
$[
|
|
43226
|
+
$[7] = t5;
|
|
43287
43227
|
} else {
|
|
43288
|
-
|
|
43228
|
+
t5 = $[7];
|
|
43289
43229
|
}
|
|
43290
|
-
var
|
|
43291
|
-
if ($[
|
|
43292
|
-
|
|
43293
|
-
style:
|
|
43230
|
+
var t6;
|
|
43231
|
+
if ($[8] !== message) {
|
|
43232
|
+
t6 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43233
|
+
style: t5,
|
|
43294
43234
|
children: [
|
|
43295
43235
|
/* @__PURE__ */ _jsx62(Attachments, {
|
|
43296
43236
|
message: message
|
|
@@ -43300,61 +43240,55 @@ var Message = function(t0) {
|
|
|
43300
43240
|
})
|
|
43301
43241
|
]
|
|
43302
43242
|
});
|
|
43303
|
-
$[
|
|
43304
|
-
$[
|
|
43243
|
+
$[8] = message;
|
|
43244
|
+
$[9] = t6;
|
|
43305
43245
|
} else {
|
|
43306
|
-
|
|
43246
|
+
t6 = $[9];
|
|
43307
43247
|
}
|
|
43308
|
-
var
|
|
43309
|
-
if ($[
|
|
43310
|
-
|
|
43311
|
-
runSteps:
|
|
43248
|
+
var t7;
|
|
43249
|
+
if ($[10] !== laterRunSteps) {
|
|
43250
|
+
t7 = /* @__PURE__ */ _jsx62(RunSteps, {
|
|
43251
|
+
runSteps: laterRunSteps
|
|
43312
43252
|
});
|
|
43313
|
-
$[
|
|
43314
|
-
$[
|
|
43253
|
+
$[10] = laterRunSteps;
|
|
43254
|
+
$[11] = t7;
|
|
43315
43255
|
} else {
|
|
43316
|
-
|
|
43256
|
+
t7 = $[11];
|
|
43317
43257
|
}
|
|
43318
|
-
var
|
|
43319
|
-
if ($[
|
|
43320
|
-
|
|
43258
|
+
var t8;
|
|
43259
|
+
if ($[12] !== className || $[13] !== style || $[14] !== t4 || $[15] !== t6 || $[16] !== t7) {
|
|
43260
|
+
t8 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43321
43261
|
className: className,
|
|
43322
43262
|
style: style,
|
|
43323
43263
|
children: [
|
|
43324
|
-
|
|
43325
|
-
|
|
43326
|
-
|
|
43264
|
+
t4,
|
|
43265
|
+
t6,
|
|
43266
|
+
t7
|
|
43327
43267
|
]
|
|
43328
43268
|
});
|
|
43329
|
-
$[
|
|
43330
|
-
$[
|
|
43331
|
-
$[
|
|
43332
|
-
$[
|
|
43333
|
-
$[
|
|
43334
|
-
$[
|
|
43269
|
+
$[12] = className;
|
|
43270
|
+
$[13] = style;
|
|
43271
|
+
$[14] = t4;
|
|
43272
|
+
$[15] = t6;
|
|
43273
|
+
$[16] = t7;
|
|
43274
|
+
$[17] = t8;
|
|
43335
43275
|
} else {
|
|
43336
|
-
|
|
43276
|
+
t8 = $[17];
|
|
43337
43277
|
}
|
|
43338
|
-
var
|
|
43339
|
-
if ($[
|
|
43340
|
-
|
|
43341
|
-
value:
|
|
43342
|
-
children:
|
|
43278
|
+
var t9;
|
|
43279
|
+
if ($[18] !== t3 || $[19] !== t8) {
|
|
43280
|
+
t9 = /* @__PURE__ */ _jsx62(Provider, {
|
|
43281
|
+
value: t3,
|
|
43282
|
+
children: t8
|
|
43343
43283
|
});
|
|
43344
|
-
$[
|
|
43345
|
-
$[
|
|
43346
|
-
$[
|
|
43284
|
+
$[18] = t3;
|
|
43285
|
+
$[19] = t8;
|
|
43286
|
+
$[20] = t9;
|
|
43347
43287
|
} else {
|
|
43348
|
-
|
|
43288
|
+
t9 = $[20];
|
|
43349
43289
|
}
|
|
43350
|
-
return
|
|
43290
|
+
return t9;
|
|
43351
43291
|
};
|
|
43352
|
-
function _temp3(runStep_0) {
|
|
43353
|
-
return runStep_0.step_details.type === "message_creation";
|
|
43354
|
-
}
|
|
43355
|
-
function _temp22(runStep_1) {
|
|
43356
|
-
return runStep_1.step_details.type === "message_creation";
|
|
43357
|
-
}
|
|
43358
43292
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43359
43293
|
import { c as _c62 } from "react-compiler-runtime";
|
|
43360
43294
|
import { useEffect as useEffect3 } from "react";
|
|
@@ -45025,7 +44959,7 @@ var useCreateFile = function(t0) {
|
|
|
45025
44959
|
var t1;
|
|
45026
44960
|
if ($[0] !== t0) {
|
|
45027
44961
|
t1 = t0 === void 0 ? {
|
|
45028
|
-
onError:
|
|
44962
|
+
onError: _temp3
|
|
45029
44963
|
} : t0;
|
|
45030
44964
|
$[0] = t0;
|
|
45031
44965
|
$[1] = t1;
|
|
@@ -45035,7 +44969,7 @@ var useCreateFile = function(t0) {
|
|
|
45035
44969
|
var t22 = t1.onError;
|
|
45036
44970
|
var t3;
|
|
45037
44971
|
if ($[2] !== t22) {
|
|
45038
|
-
t3 = t22 === void 0 ?
|
|
44972
|
+
t3 = t22 === void 0 ? _temp22 : t22;
|
|
45039
44973
|
$[2] = t22;
|
|
45040
44974
|
$[3] = t3;
|
|
45041
44975
|
} else {
|
|
@@ -45094,8 +45028,8 @@ var useCreateFile = function(t0) {
|
|
|
45094
45028
|
}
|
|
45095
45029
|
return t6;
|
|
45096
45030
|
};
|
|
45097
|
-
function
|
|
45098
|
-
function
|
|
45031
|
+
function _temp3() {}
|
|
45032
|
+
function _temp22() {}
|
|
45099
45033
|
// src/hooks/files/useChangeFilesField/index.ts
|
|
45100
45034
|
function asyncGeneratorStep8(n4, t3, e3, r2, o2, a3, c2) {
|
|
45101
45035
|
try {
|
|
@@ -45750,7 +45684,7 @@ var ToastsProvider = function(t0) {
|
|
|
45750
45684
|
}
|
|
45751
45685
|
var t5;
|
|
45752
45686
|
if ($[4] !== toasts) {
|
|
45753
|
-
t5 = Array.from(toasts).map(
|
|
45687
|
+
t5 = Array.from(toasts).map(_temp4);
|
|
45754
45688
|
$[4] = toasts;
|
|
45755
45689
|
$[5] = t5;
|
|
45756
45690
|
} else {
|
|
@@ -45810,7 +45744,7 @@ var ToastsProvider = function(t0) {
|
|
|
45810
45744
|
}
|
|
45811
45745
|
return t8;
|
|
45812
45746
|
};
|
|
45813
|
-
function
|
|
45747
|
+
function _temp4(toast_0, index4) {
|
|
45814
45748
|
return /* @__PURE__ */ _jsx77(CustomToast, {
|
|
45815
45749
|
toast: toast_0
|
|
45816
45750
|
}, index4);
|
|
@@ -46408,7 +46342,7 @@ var Root14 = function(t0) {
|
|
|
46408
46342
|
var t3;
|
|
46409
46343
|
if ($[2] !== setIsOpen) {
|
|
46410
46344
|
t3 = function() {
|
|
46411
|
-
return setIsOpen(
|
|
46345
|
+
return setIsOpen(_temp5);
|
|
46412
46346
|
};
|
|
46413
46347
|
$[2] = setIsOpen;
|
|
46414
46348
|
$[3] = t3;
|
|
@@ -46483,7 +46417,7 @@ var Trigger = function(args) {
|
|
|
46483
46417
|
};
|
|
46484
46418
|
Trigger.Root = Root14;
|
|
46485
46419
|
Trigger.Button = Button4;
|
|
46486
|
-
function
|
|
46420
|
+
function _temp5(prev) {
|
|
46487
46421
|
return !prev;
|
|
46488
46422
|
}
|
|
46489
46423
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
@@ -46512,7 +46446,7 @@ var Close = function() {
|
|
|
46512
46446
|
var t22;
|
|
46513
46447
|
if ($[2] !== setIsOpen) {
|
|
46514
46448
|
t22 = function() {
|
|
46515
|
-
return setIsOpen(
|
|
46449
|
+
return setIsOpen(_temp6);
|
|
46516
46450
|
};
|
|
46517
46451
|
$[2] = setIsOpen;
|
|
46518
46452
|
$[3] = t22;
|
|
@@ -46562,7 +46496,7 @@ var Close = function() {
|
|
|
46562
46496
|
}
|
|
46563
46497
|
return t5;
|
|
46564
46498
|
};
|
|
46565
|
-
function
|
|
46499
|
+
function _temp6(prev) {
|
|
46566
46500
|
return !prev;
|
|
46567
46501
|
}
|
|
46568
46502
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
@@ -46969,7 +46903,7 @@ import { c as _c87 } from "react-compiler-runtime";
|
|
|
46969
46903
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
46970
46904
|
var useInterval = function(callback, delay) {
|
|
46971
46905
|
var $ = _c87(5);
|
|
46972
|
-
var savedCallback = useRef6(
|
|
46906
|
+
var savedCallback = useRef6(_temp7);
|
|
46973
46907
|
var t0;
|
|
46974
46908
|
if ($[0] !== callback) {
|
|
46975
46909
|
t0 = function() {
|
|
@@ -47006,7 +46940,7 @@ var useInterval = function(callback, delay) {
|
|
|
47006
46940
|
}
|
|
47007
46941
|
useEffect8(t1, t22);
|
|
47008
46942
|
};
|
|
47009
|
-
function
|
|
46943
|
+
function _temp7() {}
|
|
47010
46944
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
47011
46945
|
function ownKeys46(e3, r2) {
|
|
47012
46946
|
var t3 = Object.keys(e3);
|
|
@@ -73101,7 +73035,7 @@ var useMessageAudio = function(t0) {
|
|
|
73101
73035
|
} else {
|
|
73102
73036
|
t15 = $[55];
|
|
73103
73037
|
}
|
|
73104
|
-
useEffect10(
|
|
73038
|
+
useEffect10(_temp8, t15);
|
|
73105
73039
|
var _useState94 = _sliced_to_array(useState9(null), 2), audioEngine = _useState94[0], setAudioEngine = _useState94[1];
|
|
73106
73040
|
var isAudioEngineInited = useRef8(false);
|
|
73107
73041
|
var t16;
|
|
@@ -73185,7 +73119,7 @@ var useMessageAudio = function(t0) {
|
|
|
73185
73119
|
}
|
|
73186
73120
|
return t20;
|
|
73187
73121
|
};
|
|
73188
|
-
function
|
|
73122
|
+
function _temp8() {
|
|
73189
73123
|
if (isHtmlAudioSupported) {
|
|
73190
73124
|
var _Howler$_howls$;
|
|
73191
73125
|
if (!(Howler !== null && Howler !== void 0 && (_Howler$_howls$ = Howler._howls[0]) !== null && _Howler$_howls$ !== void 0 && (_Howler$_howls$ = _Howler$_howls$._sounds[0]) !== null && _Howler$_howls$ !== void 0 && _Howler$_howls$._node)) {
|
|
@@ -73338,7 +73272,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
73338
73272
|
if ($[4] !== createMessageProps) {
|
|
73339
73273
|
t22 = {
|
|
73340
73274
|
isStopOnSilence: true,
|
|
73341
|
-
onStart:
|
|
73275
|
+
onStart: _temp9,
|
|
73342
73276
|
onStop: function() {
|
|
73343
73277
|
var _onStop = _asyncToGenerator11(function(_event, chunks3) {
|
|
73344
73278
|
var blob, audioContent;
|
|
@@ -73478,18 +73412,18 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
73478
73412
|
t5 = t8;
|
|
73479
73413
|
return t5;
|
|
73480
73414
|
};
|
|
73481
|
-
function
|
|
73482
|
-
return
|
|
73415
|
+
function _temp9() {
|
|
73416
|
+
return _temp23.apply(this, arguments);
|
|
73483
73417
|
}
|
|
73484
|
-
function
|
|
73485
|
-
|
|
73418
|
+
function _temp23() {
|
|
73419
|
+
_temp23 = _asyncToGenerator11(function() {
|
|
73486
73420
|
return _ts_generator(this, function(_state) {
|
|
73487
73421
|
return [
|
|
73488
73422
|
2
|
|
73489
73423
|
];
|
|
73490
73424
|
});
|
|
73491
73425
|
});
|
|
73492
|
-
return
|
|
73426
|
+
return _temp23.apply(this, arguments);
|
|
73493
73427
|
}
|
|
73494
73428
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
73495
73429
|
import { jsx as _jsx87 } from "react/jsx-runtime";
|
|
@@ -75661,7 +75595,7 @@ var useLatestAssistantMessage = function() {
|
|
|
75661
75595
|
var t1;
|
|
75662
75596
|
if ($[0] !== messages2) {
|
|
75663
75597
|
var _messages$find;
|
|
75664
|
-
t1 = (_messages$find = messages2.find(
|
|
75598
|
+
t1 = (_messages$find = messages2.find(_temp10)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
75665
75599
|
$[0] = messages2;
|
|
75666
75600
|
$[1] = t1;
|
|
75667
75601
|
} else {
|
|
@@ -75680,7 +75614,7 @@ var useLatestAssistantMessage = function() {
|
|
|
75680
75614
|
t0 = t22;
|
|
75681
75615
|
return t0;
|
|
75682
75616
|
};
|
|
75683
|
-
function
|
|
75617
|
+
function _temp10(message) {
|
|
75684
75618
|
return message.role === "assistant";
|
|
75685
75619
|
}
|
|
75686
75620
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
@@ -75694,7 +75628,7 @@ var useLatestAssistantMessageWithContent = function() {
|
|
|
75694
75628
|
var t1;
|
|
75695
75629
|
if ($[0] !== messages2) {
|
|
75696
75630
|
var _messages$find;
|
|
75697
|
-
t1 = (_messages$find = messages2.find(
|
|
75631
|
+
t1 = (_messages$find = messages2.find(_temp24)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
75698
75632
|
$[0] = messages2;
|
|
75699
75633
|
$[1] = t1;
|
|
75700
75634
|
} else {
|
|
@@ -75713,11 +75647,11 @@ var useLatestAssistantMessageWithContent = function() {
|
|
|
75713
75647
|
t0 = t22;
|
|
75714
75648
|
return t0;
|
|
75715
75649
|
};
|
|
75716
|
-
function
|
|
75650
|
+
function _temp11(content2) {
|
|
75717
75651
|
return content2.type === "text" && !isEmpty3(content2.text.value);
|
|
75718
75652
|
}
|
|
75719
|
-
function
|
|
75720
|
-
return message.role === "assistant" && message.content.some(
|
|
75653
|
+
function _temp24(message) {
|
|
75654
|
+
return message.role === "assistant" && message.content.some(_temp11);
|
|
75721
75655
|
}
|
|
75722
75656
|
// src/components/gui/Gui/index.tsx
|
|
75723
75657
|
import { jsx as _jsx99, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
@@ -75797,7 +75731,7 @@ var Progress2 = function(t0) {
|
|
|
75797
75731
|
var t22;
|
|
75798
75732
|
if ($[0] !== latestAssistantMessage.runSteps) {
|
|
75799
75733
|
var _latestAssistantMessa;
|
|
75800
|
-
t22 = (_latestAssistantMessa = latestAssistantMessage.runSteps.find(
|
|
75734
|
+
t22 = (_latestAssistantMessa = latestAssistantMessage.runSteps.find(_temp12)) !== null && _latestAssistantMessa !== void 0 ? _latestAssistantMessa : null;
|
|
75801
75735
|
$[0] = latestAssistantMessage.runSteps;
|
|
75802
75736
|
$[1] = t22;
|
|
75803
75737
|
} else {
|
|
@@ -75902,7 +75836,7 @@ var Gui = function() {
|
|
|
75902
75836
|
}
|
|
75903
75837
|
return t22;
|
|
75904
75838
|
};
|
|
75905
|
-
function
|
|
75839
|
+
function _temp12(rs) {
|
|
75906
75840
|
return rs.status === "in_progress";
|
|
75907
75841
|
}
|
|
75908
75842
|
// src/components/markdown/MarkdownProvider/index.tsx
|