@superinterface/react 5.4.0 → 5.4.2
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 +143 -206
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +143 -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,97 @@ 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 nextRunStepIndex = runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(function(runStep) {
|
|
43164
|
+
return runStep.step_details.type === "message_creation";
|
|
43165
|
+
});
|
|
43166
|
+
if (nextRunStepIndex === -1) {
|
|
43167
|
+
nextRunStepIndex = 0;
|
|
43168
|
+
}
|
|
43169
|
+
var laterRunSteps = runSteps.slice(nextRunStepIndex, messageCreationRunStepIndex);
|
|
43170
|
+
var prevRunStepIndex = runSteps.slice(messageCreationRunStepIndex + 1).findIndex(function(runStep) {
|
|
43171
|
+
return runStep.step_details.type === "message_creation";
|
|
43172
|
+
});
|
|
43173
|
+
var olderRunSteps;
|
|
43174
|
+
if (prevRunStepIndex === -1) {
|
|
43175
|
+
olderRunSteps = runSteps.slice(messageCreationRunStepIndex + 1);
|
|
43176
|
+
} else {
|
|
43177
|
+
olderRunSteps = runSteps.slice(messageCreationRunStepIndex + 1, messageCreationRunStepIndex + 1 + prevRunStepIndex);
|
|
43178
|
+
}
|
|
43179
|
+
return [
|
|
43180
|
+
olderRunSteps,
|
|
43181
|
+
laterRunSteps
|
|
43182
|
+
];
|
|
43183
|
+
};
|
|
43140
43184
|
// src/components/threads/Thread/Message/index.tsx
|
|
43141
43185
|
import { jsx as _jsx62, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43142
43186
|
var Message = function(t0) {
|
|
43143
|
-
var $ = _c60(
|
|
43187
|
+
var $ = _c60(21);
|
|
43144
43188
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43145
43189
|
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
43190
|
var t22;
|
|
43262
|
-
if ($[
|
|
43263
|
-
t22 = {
|
|
43191
|
+
if ($[0] !== message.id || $[1] !== message.runSteps) {
|
|
43192
|
+
t22 = splitRunSteps({
|
|
43193
|
+
messageId: message.id,
|
|
43194
|
+
runSteps: message.runSteps
|
|
43195
|
+
});
|
|
43196
|
+
$[0] = message.id;
|
|
43197
|
+
$[1] = message.runSteps;
|
|
43198
|
+
$[2] = t22;
|
|
43199
|
+
} else {
|
|
43200
|
+
t22 = $[2];
|
|
43201
|
+
}
|
|
43202
|
+
t1 = t22;
|
|
43203
|
+
var _t1 = _sliced_to_array(t1, 2), olderRunSteps = _t1[0], laterRunSteps = _t1[1];
|
|
43204
|
+
var t3;
|
|
43205
|
+
if ($[3] !== message) {
|
|
43206
|
+
t3 = {
|
|
43264
43207
|
message: message
|
|
43265
43208
|
};
|
|
43266
|
-
$[
|
|
43267
|
-
$[
|
|
43209
|
+
$[3] = message;
|
|
43210
|
+
$[4] = t3;
|
|
43268
43211
|
} else {
|
|
43269
|
-
|
|
43212
|
+
t3 = $[4];
|
|
43270
43213
|
}
|
|
43271
|
-
var
|
|
43272
|
-
if ($[
|
|
43273
|
-
|
|
43274
|
-
runSteps:
|
|
43214
|
+
var t4;
|
|
43215
|
+
if ($[5] !== olderRunSteps) {
|
|
43216
|
+
t4 = /* @__PURE__ */ _jsx62(RunSteps, {
|
|
43217
|
+
runSteps: olderRunSteps
|
|
43275
43218
|
});
|
|
43276
|
-
$[
|
|
43277
|
-
$[
|
|
43219
|
+
$[5] = olderRunSteps;
|
|
43220
|
+
$[6] = t4;
|
|
43278
43221
|
} else {
|
|
43279
|
-
|
|
43222
|
+
t4 = $[6];
|
|
43280
43223
|
}
|
|
43281
|
-
var
|
|
43282
|
-
if ($[
|
|
43283
|
-
|
|
43224
|
+
var t5;
|
|
43225
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43226
|
+
t5 = {
|
|
43284
43227
|
wordBreak: "break-word"
|
|
43285
43228
|
};
|
|
43286
|
-
$[
|
|
43229
|
+
$[7] = t5;
|
|
43287
43230
|
} else {
|
|
43288
|
-
|
|
43231
|
+
t5 = $[7];
|
|
43289
43232
|
}
|
|
43290
|
-
var
|
|
43291
|
-
if ($[
|
|
43292
|
-
|
|
43293
|
-
style:
|
|
43233
|
+
var t6;
|
|
43234
|
+
if ($[8] !== message) {
|
|
43235
|
+
t6 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43236
|
+
style: t5,
|
|
43294
43237
|
children: [
|
|
43295
43238
|
/* @__PURE__ */ _jsx62(Attachments, {
|
|
43296
43239
|
message: message
|
|
@@ -43300,61 +43243,55 @@ var Message = function(t0) {
|
|
|
43300
43243
|
})
|
|
43301
43244
|
]
|
|
43302
43245
|
});
|
|
43303
|
-
$[
|
|
43304
|
-
$[
|
|
43246
|
+
$[8] = message;
|
|
43247
|
+
$[9] = t6;
|
|
43305
43248
|
} else {
|
|
43306
|
-
|
|
43249
|
+
t6 = $[9];
|
|
43307
43250
|
}
|
|
43308
|
-
var
|
|
43309
|
-
if ($[
|
|
43310
|
-
|
|
43311
|
-
runSteps:
|
|
43251
|
+
var t7;
|
|
43252
|
+
if ($[10] !== laterRunSteps) {
|
|
43253
|
+
t7 = /* @__PURE__ */ _jsx62(RunSteps, {
|
|
43254
|
+
runSteps: laterRunSteps
|
|
43312
43255
|
});
|
|
43313
|
-
$[
|
|
43314
|
-
$[
|
|
43256
|
+
$[10] = laterRunSteps;
|
|
43257
|
+
$[11] = t7;
|
|
43315
43258
|
} else {
|
|
43316
|
-
|
|
43259
|
+
t7 = $[11];
|
|
43317
43260
|
}
|
|
43318
|
-
var
|
|
43319
|
-
if ($[
|
|
43320
|
-
|
|
43261
|
+
var t8;
|
|
43262
|
+
if ($[12] !== className || $[13] !== style || $[14] !== t4 || $[15] !== t6 || $[16] !== t7) {
|
|
43263
|
+
t8 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43321
43264
|
className: className,
|
|
43322
43265
|
style: style,
|
|
43323
43266
|
children: [
|
|
43324
|
-
|
|
43325
|
-
|
|
43326
|
-
|
|
43267
|
+
t4,
|
|
43268
|
+
t6,
|
|
43269
|
+
t7
|
|
43327
43270
|
]
|
|
43328
43271
|
});
|
|
43329
|
-
$[
|
|
43330
|
-
$[
|
|
43331
|
-
$[
|
|
43332
|
-
$[
|
|
43333
|
-
$[
|
|
43334
|
-
$[
|
|
43272
|
+
$[12] = className;
|
|
43273
|
+
$[13] = style;
|
|
43274
|
+
$[14] = t4;
|
|
43275
|
+
$[15] = t6;
|
|
43276
|
+
$[16] = t7;
|
|
43277
|
+
$[17] = t8;
|
|
43335
43278
|
} else {
|
|
43336
|
-
|
|
43279
|
+
t8 = $[17];
|
|
43337
43280
|
}
|
|
43338
|
-
var
|
|
43339
|
-
if ($[
|
|
43340
|
-
|
|
43341
|
-
value:
|
|
43342
|
-
children:
|
|
43281
|
+
var t9;
|
|
43282
|
+
if ($[18] !== t3 || $[19] !== t8) {
|
|
43283
|
+
t9 = /* @__PURE__ */ _jsx62(Provider, {
|
|
43284
|
+
value: t3,
|
|
43285
|
+
children: t8
|
|
43343
43286
|
});
|
|
43344
|
-
$[
|
|
43345
|
-
$[
|
|
43346
|
-
$[
|
|
43287
|
+
$[18] = t3;
|
|
43288
|
+
$[19] = t8;
|
|
43289
|
+
$[20] = t9;
|
|
43347
43290
|
} else {
|
|
43348
|
-
|
|
43291
|
+
t9 = $[20];
|
|
43349
43292
|
}
|
|
43350
|
-
return
|
|
43293
|
+
return t9;
|
|
43351
43294
|
};
|
|
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
43295
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43359
43296
|
import { c as _c62 } from "react-compiler-runtime";
|
|
43360
43297
|
import { useEffect as useEffect3 } from "react";
|
|
@@ -45025,7 +44962,7 @@ var useCreateFile = function(t0) {
|
|
|
45025
44962
|
var t1;
|
|
45026
44963
|
if ($[0] !== t0) {
|
|
45027
44964
|
t1 = t0 === void 0 ? {
|
|
45028
|
-
onError:
|
|
44965
|
+
onError: _temp3
|
|
45029
44966
|
} : t0;
|
|
45030
44967
|
$[0] = t0;
|
|
45031
44968
|
$[1] = t1;
|
|
@@ -45035,7 +44972,7 @@ var useCreateFile = function(t0) {
|
|
|
45035
44972
|
var t22 = t1.onError;
|
|
45036
44973
|
var t3;
|
|
45037
44974
|
if ($[2] !== t22) {
|
|
45038
|
-
t3 = t22 === void 0 ?
|
|
44975
|
+
t3 = t22 === void 0 ? _temp22 : t22;
|
|
45039
44976
|
$[2] = t22;
|
|
45040
44977
|
$[3] = t3;
|
|
45041
44978
|
} else {
|
|
@@ -45094,8 +45031,8 @@ var useCreateFile = function(t0) {
|
|
|
45094
45031
|
}
|
|
45095
45032
|
return t6;
|
|
45096
45033
|
};
|
|
45097
|
-
function
|
|
45098
|
-
function
|
|
45034
|
+
function _temp3() {}
|
|
45035
|
+
function _temp22() {}
|
|
45099
45036
|
// src/hooks/files/useChangeFilesField/index.ts
|
|
45100
45037
|
function asyncGeneratorStep8(n4, t3, e3, r2, o2, a3, c2) {
|
|
45101
45038
|
try {
|
|
@@ -45750,7 +45687,7 @@ var ToastsProvider = function(t0) {
|
|
|
45750
45687
|
}
|
|
45751
45688
|
var t5;
|
|
45752
45689
|
if ($[4] !== toasts) {
|
|
45753
|
-
t5 = Array.from(toasts).map(
|
|
45690
|
+
t5 = Array.from(toasts).map(_temp4);
|
|
45754
45691
|
$[4] = toasts;
|
|
45755
45692
|
$[5] = t5;
|
|
45756
45693
|
} else {
|
|
@@ -45810,7 +45747,7 @@ var ToastsProvider = function(t0) {
|
|
|
45810
45747
|
}
|
|
45811
45748
|
return t8;
|
|
45812
45749
|
};
|
|
45813
|
-
function
|
|
45750
|
+
function _temp4(toast_0, index4) {
|
|
45814
45751
|
return /* @__PURE__ */ _jsx77(CustomToast, {
|
|
45815
45752
|
toast: toast_0
|
|
45816
45753
|
}, index4);
|
|
@@ -46408,7 +46345,7 @@ var Root14 = function(t0) {
|
|
|
46408
46345
|
var t3;
|
|
46409
46346
|
if ($[2] !== setIsOpen) {
|
|
46410
46347
|
t3 = function() {
|
|
46411
|
-
return setIsOpen(
|
|
46348
|
+
return setIsOpen(_temp5);
|
|
46412
46349
|
};
|
|
46413
46350
|
$[2] = setIsOpen;
|
|
46414
46351
|
$[3] = t3;
|
|
@@ -46483,7 +46420,7 @@ var Trigger = function(args) {
|
|
|
46483
46420
|
};
|
|
46484
46421
|
Trigger.Root = Root14;
|
|
46485
46422
|
Trigger.Button = Button4;
|
|
46486
|
-
function
|
|
46423
|
+
function _temp5(prev) {
|
|
46487
46424
|
return !prev;
|
|
46488
46425
|
}
|
|
46489
46426
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
@@ -46512,7 +46449,7 @@ var Close = function() {
|
|
|
46512
46449
|
var t22;
|
|
46513
46450
|
if ($[2] !== setIsOpen) {
|
|
46514
46451
|
t22 = function() {
|
|
46515
|
-
return setIsOpen(
|
|
46452
|
+
return setIsOpen(_temp6);
|
|
46516
46453
|
};
|
|
46517
46454
|
$[2] = setIsOpen;
|
|
46518
46455
|
$[3] = t22;
|
|
@@ -46562,7 +46499,7 @@ var Close = function() {
|
|
|
46562
46499
|
}
|
|
46563
46500
|
return t5;
|
|
46564
46501
|
};
|
|
46565
|
-
function
|
|
46502
|
+
function _temp6(prev) {
|
|
46566
46503
|
return !prev;
|
|
46567
46504
|
}
|
|
46568
46505
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
@@ -46969,7 +46906,7 @@ import { c as _c87 } from "react-compiler-runtime";
|
|
|
46969
46906
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
46970
46907
|
var useInterval = function(callback, delay) {
|
|
46971
46908
|
var $ = _c87(5);
|
|
46972
|
-
var savedCallback = useRef6(
|
|
46909
|
+
var savedCallback = useRef6(_temp7);
|
|
46973
46910
|
var t0;
|
|
46974
46911
|
if ($[0] !== callback) {
|
|
46975
46912
|
t0 = function() {
|
|
@@ -47006,7 +46943,7 @@ var useInterval = function(callback, delay) {
|
|
|
47006
46943
|
}
|
|
47007
46944
|
useEffect8(t1, t22);
|
|
47008
46945
|
};
|
|
47009
|
-
function
|
|
46946
|
+
function _temp7() {}
|
|
47010
46947
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
47011
46948
|
function ownKeys46(e3, r2) {
|
|
47012
46949
|
var t3 = Object.keys(e3);
|
|
@@ -73101,7 +73038,7 @@ var useMessageAudio = function(t0) {
|
|
|
73101
73038
|
} else {
|
|
73102
73039
|
t15 = $[55];
|
|
73103
73040
|
}
|
|
73104
|
-
useEffect10(
|
|
73041
|
+
useEffect10(_temp8, t15);
|
|
73105
73042
|
var _useState94 = _sliced_to_array(useState9(null), 2), audioEngine = _useState94[0], setAudioEngine = _useState94[1];
|
|
73106
73043
|
var isAudioEngineInited = useRef8(false);
|
|
73107
73044
|
var t16;
|
|
@@ -73185,7 +73122,7 @@ var useMessageAudio = function(t0) {
|
|
|
73185
73122
|
}
|
|
73186
73123
|
return t20;
|
|
73187
73124
|
};
|
|
73188
|
-
function
|
|
73125
|
+
function _temp8() {
|
|
73189
73126
|
if (isHtmlAudioSupported) {
|
|
73190
73127
|
var _Howler$_howls$;
|
|
73191
73128
|
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 +73275,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
73338
73275
|
if ($[4] !== createMessageProps) {
|
|
73339
73276
|
t22 = {
|
|
73340
73277
|
isStopOnSilence: true,
|
|
73341
|
-
onStart:
|
|
73278
|
+
onStart: _temp9,
|
|
73342
73279
|
onStop: function() {
|
|
73343
73280
|
var _onStop = _asyncToGenerator11(function(_event, chunks3) {
|
|
73344
73281
|
var blob, audioContent;
|
|
@@ -73478,18 +73415,18 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
73478
73415
|
t5 = t8;
|
|
73479
73416
|
return t5;
|
|
73480
73417
|
};
|
|
73481
|
-
function
|
|
73482
|
-
return
|
|
73418
|
+
function _temp9() {
|
|
73419
|
+
return _temp23.apply(this, arguments);
|
|
73483
73420
|
}
|
|
73484
|
-
function
|
|
73485
|
-
|
|
73421
|
+
function _temp23() {
|
|
73422
|
+
_temp23 = _asyncToGenerator11(function() {
|
|
73486
73423
|
return _ts_generator(this, function(_state) {
|
|
73487
73424
|
return [
|
|
73488
73425
|
2
|
|
73489
73426
|
];
|
|
73490
73427
|
});
|
|
73491
73428
|
});
|
|
73492
|
-
return
|
|
73429
|
+
return _temp23.apply(this, arguments);
|
|
73493
73430
|
}
|
|
73494
73431
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
73495
73432
|
import { jsx as _jsx87 } from "react/jsx-runtime";
|
|
@@ -75661,7 +75598,7 @@ var useLatestAssistantMessage = function() {
|
|
|
75661
75598
|
var t1;
|
|
75662
75599
|
if ($[0] !== messages2) {
|
|
75663
75600
|
var _messages$find;
|
|
75664
|
-
t1 = (_messages$find = messages2.find(
|
|
75601
|
+
t1 = (_messages$find = messages2.find(_temp10)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
75665
75602
|
$[0] = messages2;
|
|
75666
75603
|
$[1] = t1;
|
|
75667
75604
|
} else {
|
|
@@ -75680,7 +75617,7 @@ var useLatestAssistantMessage = function() {
|
|
|
75680
75617
|
t0 = t22;
|
|
75681
75618
|
return t0;
|
|
75682
75619
|
};
|
|
75683
|
-
function
|
|
75620
|
+
function _temp10(message) {
|
|
75684
75621
|
return message.role === "assistant";
|
|
75685
75622
|
}
|
|
75686
75623
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
@@ -75694,7 +75631,7 @@ var useLatestAssistantMessageWithContent = function() {
|
|
|
75694
75631
|
var t1;
|
|
75695
75632
|
if ($[0] !== messages2) {
|
|
75696
75633
|
var _messages$find;
|
|
75697
|
-
t1 = (_messages$find = messages2.find(
|
|
75634
|
+
t1 = (_messages$find = messages2.find(_temp24)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
75698
75635
|
$[0] = messages2;
|
|
75699
75636
|
$[1] = t1;
|
|
75700
75637
|
} else {
|
|
@@ -75713,11 +75650,11 @@ var useLatestAssistantMessageWithContent = function() {
|
|
|
75713
75650
|
t0 = t22;
|
|
75714
75651
|
return t0;
|
|
75715
75652
|
};
|
|
75716
|
-
function
|
|
75653
|
+
function _temp11(content2) {
|
|
75717
75654
|
return content2.type === "text" && !isEmpty3(content2.text.value);
|
|
75718
75655
|
}
|
|
75719
|
-
function
|
|
75720
|
-
return message.role === "assistant" && message.content.some(
|
|
75656
|
+
function _temp24(message) {
|
|
75657
|
+
return message.role === "assistant" && message.content.some(_temp11);
|
|
75721
75658
|
}
|
|
75722
75659
|
// src/components/gui/Gui/index.tsx
|
|
75723
75660
|
import { jsx as _jsx99, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
@@ -75797,7 +75734,7 @@ var Progress2 = function(t0) {
|
|
|
75797
75734
|
var t22;
|
|
75798
75735
|
if ($[0] !== latestAssistantMessage.runSteps) {
|
|
75799
75736
|
var _latestAssistantMessa;
|
|
75800
|
-
t22 = (_latestAssistantMessa = latestAssistantMessage.runSteps.find(
|
|
75737
|
+
t22 = (_latestAssistantMessa = latestAssistantMessage.runSteps.find(_temp12)) !== null && _latestAssistantMessa !== void 0 ? _latestAssistantMessa : null;
|
|
75801
75738
|
$[0] = latestAssistantMessage.runSteps;
|
|
75802
75739
|
$[1] = t22;
|
|
75803
75740
|
} else {
|
|
@@ -75902,7 +75839,7 @@ var Gui = function() {
|
|
|
75902
75839
|
}
|
|
75903
75840
|
return t22;
|
|
75904
75841
|
};
|
|
75905
|
-
function
|
|
75842
|
+
function _temp12(rs) {
|
|
75906
75843
|
return rs.status === "in_progress";
|
|
75907
75844
|
}
|
|
75908
75845
|
// src/components/markdown/MarkdownProvider/index.tsx
|