@deepseek-ai/dsh-client-ui-chat 0.2.1-alpha.2 → 0.2.1-alpha.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/README.i18n.yaml +12 -12
- package/README.md +22 -10
- package/README.zh.md +22 -10
- package/lib/client.js +927 -1531
- package/lib/index.js +11 -1
- package/lib/types/chat-settings.d.ts +13 -0
- package/lib/types/client/chat/AssistantMarkdown.d.ts +3 -5
- package/lib/types/client/chat/AssistantNodeView.d.ts +2 -2
- package/lib/types/client/chat/ChatFlow.d.ts +1 -1
- package/lib/types/client/chat/ChatNodeSeat.d.ts +1 -1
- package/lib/types/client/chat/ChatView.d.ts +1 -1
- package/lib/types/client/chat/MessageItem.d.ts +10 -9
- package/lib/types/client/chat/TurnTailNodeView.d.ts +1 -1
- package/lib/types/client/chat/UserContent.d.ts +9 -0
- package/lib/types/client/chat/flow-motion.d.ts +49 -5
- package/lib/types/client/chat/use-chat-reading.d.ts +10 -0
- package/lib/types/client/chat/use-chat-scroll.d.ts +5 -1
- package/lib/types/client/chat/use-chat-viewport.d.ts +39 -4
- package/lib/types/client/contract/chat-nodes.d.ts +8 -0
- package/lib/types/client/contract/group-tree.d.ts +32 -0
- package/lib/types/client/contract/slots.d.ts +51 -19
- package/lib/types/client/contract/snapshot.d.ts +4 -1
- package/lib/types/client/contract/turn-process.d.ts +0 -2
- package/lib/types/client/conversation-nodes/common.d.ts +12 -1
- package/lib/types/client/conversation-nodes/group-tree-segments.d.ts +42 -0
- package/lib/types/client/index.d.ts +2 -1
- package/lib/types/client/locale.d.ts +4 -2
- package/lib/types/client/performance-usage.d.ts +2 -2
- package/lib/types/client/presentation-policy.d.ts +8 -11
- package/lib/types/client/settings/TranscriptViewRow.d.ts +3 -3
- package/lib/types/client/transcript-view.d.ts +3 -3
- package/lib/types/index.d.ts +5 -1
- package/locale/en.json +5 -0
- package/locale/zh.json +6 -0
- package/package.json +44 -44
package/lib/client.js
CHANGED
|
@@ -4,33 +4,11 @@ window.__ModuleLoader__.load({
|
|
|
4
4
|
var module = { exports: {} };
|
|
5
5
|
var exports = module.exports;
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
-
//#region \0rolldown/runtime.js
|
|
8
|
-
var __create = Object.create;
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
-
key = keys[i];
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
-
get: ((k) => from[k]).bind(null, key),
|
|
19
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
25
|
-
value: mod,
|
|
26
|
-
enumerable: true
|
|
27
|
-
}) : target, mod));
|
|
28
|
-
//#endregion
|
|
29
7
|
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
30
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
31
9
|
let react = require("react");
|
|
32
|
-
react = __toESM(react, 1);
|
|
33
10
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
11
|
+
let _tanstack_react_virtual = require("@tanstack/react-virtual");
|
|
34
12
|
let react_dom = require("react-dom");
|
|
35
13
|
//#region ../../util/workspace-path/lib/index.js
|
|
36
14
|
/**
|
|
@@ -193,1189 +171,21 @@ window.__ModuleLoader__.load({
|
|
|
193
171
|
}) ?? null;
|
|
194
172
|
}
|
|
195
173
|
//#endregion
|
|
196
|
-
//#region
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if (c >= 48 && c <= 57) {
|
|
203
|
-
const i = +prop;
|
|
204
|
-
if (Number.isInteger(i) && i >= 0 && i < count) {
|
|
205
|
-
let v = target[i];
|
|
206
|
-
if (!v) {
|
|
207
|
-
const s = flat[i * 2];
|
|
208
|
-
v = target[i] = {
|
|
209
|
-
index: i,
|
|
210
|
-
key: getItemKey(i),
|
|
211
|
-
start: s,
|
|
212
|
-
size: flat[i * 2 + 1],
|
|
213
|
-
end: s + flat[i * 2 + 1],
|
|
214
|
-
lane: 0
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
return v;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if (prop === "length") return count;
|
|
221
|
-
}
|
|
222
|
-
return Reflect.get(target, prop, receiver);
|
|
223
|
-
} });
|
|
224
|
-
}
|
|
225
|
-
//#endregion
|
|
226
|
-
//#region ../../../node_modules/.pnpm/@tanstack+virtual-core@3.17.8/node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
227
|
-
function memo$17(getDeps, fn, opts) {
|
|
228
|
-
let deps = opts.initialDeps ?? [];
|
|
229
|
-
let result;
|
|
230
|
-
let isInitial = true;
|
|
231
|
-
function memoizedFunction() {
|
|
232
|
-
const newDeps = getDeps();
|
|
233
|
-
if (!(newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep))) return result;
|
|
234
|
-
deps = newDeps;
|
|
235
|
-
result = fn(...newDeps);
|
|
236
|
-
if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) opts.onChange(result);
|
|
237
|
-
isInitial = false;
|
|
238
|
-
return result;
|
|
239
|
-
}
|
|
240
|
-
memoizedFunction.updateDeps = (newDeps) => {
|
|
241
|
-
deps = newDeps;
|
|
242
|
-
};
|
|
243
|
-
return memoizedFunction;
|
|
244
|
-
}
|
|
245
|
-
function notUndefined(value, msg) {
|
|
246
|
-
if (value === void 0) throw new Error(`Unexpected undefined${msg ? `: ${msg}` : ""}`);
|
|
247
|
-
else return value;
|
|
248
|
-
}
|
|
249
|
-
const approxEqual = (a, b) => Math.abs(a - b) < 1.01;
|
|
250
|
-
const debounce = (targetWindow, fn, ms) => {
|
|
251
|
-
let timeoutId;
|
|
252
|
-
return Object.assign(function(...args) {
|
|
253
|
-
targetWindow.clearTimeout(timeoutId);
|
|
254
|
-
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
255
|
-
}, { cancel: () => {
|
|
256
|
-
targetWindow.clearTimeout(timeoutId);
|
|
257
|
-
} });
|
|
258
|
-
};
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region ../../../node_modules/.pnpm/@tanstack+virtual-core@3.17.8/node_modules/@tanstack/virtual-core/dist/esm/index.js
|
|
261
|
-
let _isIOSResult;
|
|
262
|
-
const isIOSWebKit = () => {
|
|
263
|
-
if (_isIOSResult !== void 0) return _isIOSResult;
|
|
264
|
-
if (typeof navigator === "undefined") return _isIOSResult = false;
|
|
265
|
-
if (/iP(hone|od|ad)/.test(navigator.userAgent)) return _isIOSResult = true;
|
|
266
|
-
const mtp = navigator.maxTouchPoints;
|
|
267
|
-
return _isIOSResult = navigator.platform === "MacIntel" && mtp !== void 0 && mtp > 0;
|
|
268
|
-
};
|
|
269
|
-
const getRect = (element) => {
|
|
270
|
-
const { offsetWidth, offsetHeight } = element;
|
|
271
|
-
return {
|
|
272
|
-
width: offsetWidth,
|
|
273
|
-
height: offsetHeight
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
const defaultKeyExtractor = (index) => index;
|
|
277
|
-
const defaultRangeExtractor = (range) => {
|
|
278
|
-
const start = Math.max(range.startIndex - range.overscan, 0);
|
|
279
|
-
const len = Math.min(range.endIndex + range.overscan, range.count - 1) - start + 1;
|
|
280
|
-
const arr = new Array(len);
|
|
281
|
-
for (let i = 0; i < len; i++) arr[i] = start + i;
|
|
282
|
-
return arr;
|
|
283
|
-
};
|
|
284
|
-
const observeElementRect = (instance, cb) => {
|
|
285
|
-
const element = instance.scrollElement;
|
|
286
|
-
if (!element) return;
|
|
287
|
-
const targetWindow = instance.targetWindow;
|
|
288
|
-
if (!targetWindow) return;
|
|
289
|
-
const handler = (rect) => {
|
|
290
|
-
const { width, height } = rect;
|
|
291
|
-
cb({
|
|
292
|
-
width: Math.round(width),
|
|
293
|
-
height: Math.round(height)
|
|
294
|
-
});
|
|
295
|
-
};
|
|
296
|
-
handler(getRect(element));
|
|
297
|
-
if (!targetWindow.ResizeObserver) return () => {};
|
|
298
|
-
const observer = new targetWindow.ResizeObserver((entries) => {
|
|
299
|
-
const run = () => {
|
|
300
|
-
const entry = entries[0];
|
|
301
|
-
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
302
|
-
const box = entry.borderBoxSize[0];
|
|
303
|
-
if (box) {
|
|
304
|
-
handler({
|
|
305
|
-
width: box.inlineSize,
|
|
306
|
-
height: box.blockSize
|
|
307
|
-
});
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
handler(getRect(element));
|
|
312
|
-
};
|
|
313
|
-
instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
314
|
-
});
|
|
315
|
-
observer.observe(element, { box: "border-box" });
|
|
316
|
-
return () => {
|
|
317
|
-
observer.unobserve(element);
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
|
-
const addEventListenerOptions = { passive: true };
|
|
321
|
-
const supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
|
|
322
|
-
const observeOffset = (instance, cb, readOffset) => {
|
|
323
|
-
const element = instance.scrollElement;
|
|
324
|
-
if (!element) return;
|
|
325
|
-
const targetWindow = instance.targetWindow;
|
|
326
|
-
if (!targetWindow) return;
|
|
327
|
-
const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;
|
|
328
|
-
let offset = 0;
|
|
329
|
-
const fallback = registerScrollendEvent ? null : debounce(targetWindow, () => cb(offset, false), instance.options.isScrollingResetDelay);
|
|
330
|
-
const createHandler = (isScrolling) => () => {
|
|
331
|
-
offset = readOffset(element);
|
|
332
|
-
fallback?.();
|
|
333
|
-
cb(offset, isScrolling);
|
|
334
|
-
};
|
|
335
|
-
const handler = createHandler(true);
|
|
336
|
-
const endHandler = createHandler(false);
|
|
337
|
-
element.addEventListener("scroll", handler, addEventListenerOptions);
|
|
338
|
-
if (registerScrollendEvent) element.addEventListener("scrollend", endHandler, addEventListenerOptions);
|
|
339
|
-
return () => {
|
|
340
|
-
element.removeEventListener("scroll", handler);
|
|
341
|
-
if (registerScrollendEvent) element.removeEventListener("scrollend", endHandler);
|
|
342
|
-
fallback?.cancel();
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
const observeElementOffset = (instance, cb) => observeOffset(instance, cb, (el) => {
|
|
346
|
-
const { horizontal, isRtl } = instance.options;
|
|
347
|
-
return horizontal ? el.scrollLeft * (isRtl && -1 || 1) : el.scrollTop;
|
|
348
|
-
});
|
|
349
|
-
const measureElement = (element, entry, instance) => {
|
|
350
|
-
if (instance.options.useCachedMeasurements) {
|
|
351
|
-
const index = instance.indexFromElement(element);
|
|
352
|
-
const key = instance.options.getItemKey(index);
|
|
353
|
-
return instance.itemSizeCache.get(key) ?? instance.options.estimateSize(index);
|
|
354
|
-
}
|
|
355
|
-
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
356
|
-
const box = entry.borderBoxSize[0];
|
|
357
|
-
if (box) return Math.round(box[instance.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
358
|
-
}
|
|
359
|
-
if (!entry) {
|
|
360
|
-
const index = instance.indexFromElement(element);
|
|
361
|
-
const key = instance.options.getItemKey(index);
|
|
362
|
-
const cachedSize = instance.itemSizeCache.get(key);
|
|
363
|
-
if (cachedSize !== void 0) return cachedSize;
|
|
364
|
-
}
|
|
365
|
-
return element[instance.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
366
|
-
};
|
|
367
|
-
const scrollWithAdjustments = (offset, { adjustments = 0, behavior }, instance) => {
|
|
368
|
-
var _a, _b;
|
|
369
|
-
(_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null || _b.call(_a, {
|
|
370
|
-
[instance.options.horizontal ? "left" : "top"]: offset + adjustments,
|
|
371
|
-
behavior
|
|
372
|
-
});
|
|
373
|
-
};
|
|
374
|
-
const elementScroll = scrollWithAdjustments;
|
|
375
|
-
var Virtualizer = class {
|
|
376
|
-
constructor(opts) {
|
|
377
|
-
this.unsubs = [];
|
|
378
|
-
this.scrollElement = null;
|
|
379
|
-
this.targetWindow = null;
|
|
380
|
-
this.isScrolling = false;
|
|
381
|
-
this.scrollState = null;
|
|
382
|
-
this.measurementsCache = [];
|
|
383
|
-
this._flatMeasurements = null;
|
|
384
|
-
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
385
|
-
this.itemSizeCacheVersion = 0;
|
|
386
|
-
this.laneAssignments = /* @__PURE__ */ new Map();
|
|
387
|
-
this.pendingMin = null;
|
|
388
|
-
this.prevLanes = void 0;
|
|
389
|
-
this.lanesChangedFlag = false;
|
|
390
|
-
this.lanesSettling = false;
|
|
391
|
-
this.pendingScrollAnchor = null;
|
|
392
|
-
this.scrollRect = null;
|
|
393
|
-
this.scrollOffset = null;
|
|
394
|
-
this.scrollDirection = null;
|
|
395
|
-
this.scrollAdjustments = 0;
|
|
396
|
-
this._iosDeferredAdjustment = 0;
|
|
397
|
-
this._iosTouching = false;
|
|
398
|
-
this._iosJustTouchEnded = false;
|
|
399
|
-
this._iosTouchEndTimerId = null;
|
|
400
|
-
this._intendedScrollOffset = null;
|
|
401
|
-
this.elementsCache = /* @__PURE__ */ new Map();
|
|
402
|
-
this.now = () => {
|
|
403
|
-
var _a, _b, _c;
|
|
404
|
-
return ((_c = (_b = (_a = this.targetWindow) == null ? void 0 : _a.performance) == null ? void 0 : _b.now) == null ? void 0 : _c.call(_b)) ?? Date.now();
|
|
405
|
-
};
|
|
406
|
-
this.observer = /* @__PURE__ */ (() => {
|
|
407
|
-
let _ro = null;
|
|
408
|
-
const get = () => {
|
|
409
|
-
if (_ro) return _ro;
|
|
410
|
-
if (!this.targetWindow || !this.targetWindow.ResizeObserver) return null;
|
|
411
|
-
return _ro = new this.targetWindow.ResizeObserver((entries) => {
|
|
412
|
-
entries.forEach((entry) => {
|
|
413
|
-
const run = () => {
|
|
414
|
-
const node = entry.target;
|
|
415
|
-
const index = this.indexFromElement(node);
|
|
416
|
-
if (!node.isConnected) {
|
|
417
|
-
this.observer.unobserve(node);
|
|
418
|
-
for (const [cacheKey, cachedNode] of this.elementsCache) if (cachedNode === node) {
|
|
419
|
-
this.elementsCache.delete(cacheKey);
|
|
420
|
-
break;
|
|
421
|
-
}
|
|
422
|
-
return;
|
|
423
|
-
}
|
|
424
|
-
if (!this.isIndexInRange(index)) return;
|
|
425
|
-
if (this.shouldMeasureDuringScroll(index)) this.resizeItem(index, this.options.measureElement(node, entry, this));
|
|
426
|
-
};
|
|
427
|
-
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
428
|
-
});
|
|
429
|
-
});
|
|
430
|
-
};
|
|
431
|
-
return {
|
|
432
|
-
disconnect: () => {
|
|
433
|
-
var _a;
|
|
434
|
-
(_a = get()) == null || _a.disconnect();
|
|
435
|
-
_ro = null;
|
|
436
|
-
},
|
|
437
|
-
observe: (target) => {
|
|
438
|
-
var _a;
|
|
439
|
-
return (_a = get()) == null ? void 0 : _a.observe(target, { box: "border-box" });
|
|
440
|
-
},
|
|
441
|
-
unobserve: (target) => {
|
|
442
|
-
var _a;
|
|
443
|
-
return (_a = get()) == null ? void 0 : _a.unobserve(target);
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
})();
|
|
447
|
-
this.range = null;
|
|
448
|
-
this.setOptions = (opts2) => {
|
|
449
|
-
var _a, _b;
|
|
450
|
-
const merged = {
|
|
451
|
-
debug: false,
|
|
452
|
-
initialOffset: 0,
|
|
453
|
-
overscan: 1,
|
|
454
|
-
paddingStart: 0,
|
|
455
|
-
paddingEnd: 0,
|
|
456
|
-
scrollPaddingStart: 0,
|
|
457
|
-
scrollPaddingEnd: 0,
|
|
458
|
-
horizontal: false,
|
|
459
|
-
getItemKey: defaultKeyExtractor,
|
|
460
|
-
rangeExtractor: defaultRangeExtractor,
|
|
461
|
-
onChange: () => {},
|
|
462
|
-
measureElement,
|
|
463
|
-
initialRect: {
|
|
464
|
-
width: 0,
|
|
465
|
-
height: 0
|
|
466
|
-
},
|
|
467
|
-
scrollMargin: 0,
|
|
468
|
-
gap: 0,
|
|
469
|
-
indexAttribute: "data-index",
|
|
470
|
-
initialMeasurementsCache: [],
|
|
471
|
-
lanes: 1,
|
|
472
|
-
anchorTo: "start",
|
|
473
|
-
followOnAppend: false,
|
|
474
|
-
scrollEndThreshold: 1,
|
|
475
|
-
isScrollingResetDelay: 150,
|
|
476
|
-
enabled: true,
|
|
477
|
-
isRtl: false,
|
|
478
|
-
useScrollendEvent: false,
|
|
479
|
-
useAnimationFrameWithResizeObserver: false,
|
|
480
|
-
laneAssignmentMode: "estimate",
|
|
481
|
-
useCachedMeasurements: false
|
|
482
|
-
};
|
|
483
|
-
for (const key in opts2) {
|
|
484
|
-
const v = opts2[key];
|
|
485
|
-
if (v !== void 0) merged[key] = v;
|
|
486
|
-
}
|
|
487
|
-
const prevOptions = this.options;
|
|
488
|
-
let anchor = null;
|
|
489
|
-
let followOnAppend = null;
|
|
490
|
-
let edgeKeysChanged = false;
|
|
491
|
-
if (prevOptions !== void 0 && prevOptions.enabled && merged.enabled && merged.anchorTo === "end" && this.scrollElement !== null) {
|
|
492
|
-
const prevCount = prevOptions.count;
|
|
493
|
-
const nextCount = merged.count;
|
|
494
|
-
const measurements = this.getMeasurements();
|
|
495
|
-
const prevFirstKey = prevCount > 0 ? ((_a = measurements[0]) == null ? void 0 : _a.key) ?? prevOptions.getItemKey(0) : null;
|
|
496
|
-
const prevLastKey = prevCount > 0 ? ((_b = measurements[prevCount - 1]) == null ? void 0 : _b.key) ?? prevOptions.getItemKey(prevCount - 1) : null;
|
|
497
|
-
if (nextCount !== prevCount || prevCount > 0 && nextCount > 0 && (merged.getItemKey(0) !== prevFirstKey || merged.getItemKey(nextCount - 1) !== prevLastKey)) {
|
|
498
|
-
edgeKeysChanged = true;
|
|
499
|
-
const item = prevCount > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? measurements[0] : null;
|
|
500
|
-
if (item) anchor = [item.key, this.getScrollOffset() - item.start];
|
|
501
|
-
const behavior = merged.followOnAppend === true ? "auto" : merged.followOnAppend || null;
|
|
502
|
-
if (behavior && nextCount > prevCount && this.isAtEnd(prevOptions.scrollEndThreshold) && (prevCount === 0 || merged.getItemKey(nextCount - 1) !== prevLastKey)) followOnAppend = behavior;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
this.options = merged;
|
|
506
|
-
if (edgeKeysChanged) {
|
|
507
|
-
this.pendingMin = 0;
|
|
508
|
-
this.itemSizeCacheVersion++;
|
|
509
|
-
}
|
|
510
|
-
let anchorResolved = false;
|
|
511
|
-
let anchorDelta = 0;
|
|
512
|
-
if (anchor && this.scrollOffset !== null) {
|
|
513
|
-
const [anchorKey, anchorOffset] = anchor;
|
|
514
|
-
const newMeasurements = this.getMeasurements();
|
|
515
|
-
const { count, getItemKey } = this.options;
|
|
516
|
-
let idx = 0;
|
|
517
|
-
while (idx < count && getItemKey(idx) !== anchorKey) idx++;
|
|
518
|
-
if (idx < count) {
|
|
519
|
-
const anchorItem = newMeasurements[idx];
|
|
520
|
-
if (anchorItem) {
|
|
521
|
-
const newOffset = Math.max(0, anchorItem.start + anchorOffset);
|
|
522
|
-
if (newOffset !== this.scrollOffset) {
|
|
523
|
-
anchorDelta = newOffset - this.scrollOffset;
|
|
524
|
-
this.scrollOffset = newOffset;
|
|
525
|
-
anchorResolved = true;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
if (anchorResolved || followOnAppend) this.pendingScrollAnchor = [
|
|
531
|
-
anchorResolved ? anchor[0] : null,
|
|
532
|
-
anchorResolved ? anchor[1] : 0,
|
|
533
|
-
followOnAppend,
|
|
534
|
-
anchorDelta
|
|
535
|
-
];
|
|
536
|
-
};
|
|
537
|
-
this.notify = (sync) => {
|
|
538
|
-
var _a, _b;
|
|
539
|
-
(_b = (_a = this.options).onChange) == null || _b.call(_a, this, sync);
|
|
540
|
-
};
|
|
541
|
-
this.maybeNotify = memo$17(() => {
|
|
542
|
-
this.calculateRange();
|
|
543
|
-
return [
|
|
544
|
-
this.isScrolling,
|
|
545
|
-
this.range ? this.range.startIndex : null,
|
|
546
|
-
this.range ? this.range.endIndex : null
|
|
547
|
-
];
|
|
548
|
-
}, (isScrolling) => {
|
|
549
|
-
this.notify(isScrolling);
|
|
550
|
-
}, {
|
|
551
|
-
key: false,
|
|
552
|
-
debug: () => this.options.debug,
|
|
553
|
-
initialDeps: [
|
|
554
|
-
this.isScrolling,
|
|
555
|
-
this.range ? this.range.startIndex : null,
|
|
556
|
-
this.range ? this.range.endIndex : null
|
|
557
|
-
]
|
|
558
|
-
});
|
|
559
|
-
this.cleanup = () => {
|
|
560
|
-
this.unsubs.filter(Boolean).forEach((d) => d());
|
|
561
|
-
this.unsubs = [];
|
|
562
|
-
this.observer.disconnect();
|
|
563
|
-
if (this.rafId != null && this.targetWindow) {
|
|
564
|
-
this.targetWindow.cancelAnimationFrame(this.rafId);
|
|
565
|
-
this.rafId = null;
|
|
566
|
-
}
|
|
567
|
-
this.scrollState = null;
|
|
568
|
-
this.isScrolling = false;
|
|
569
|
-
this.scrollDirection = null;
|
|
570
|
-
this._iosDeferredAdjustment = 0;
|
|
571
|
-
this._iosTouching = false;
|
|
572
|
-
this._iosJustTouchEnded = false;
|
|
573
|
-
this.scrollElement = null;
|
|
574
|
-
this.targetWindow = null;
|
|
575
|
-
};
|
|
576
|
-
this._didMount = () => {
|
|
577
|
-
return () => {
|
|
578
|
-
this.cleanup();
|
|
579
|
-
};
|
|
580
|
-
};
|
|
581
|
-
this._willUpdate = () => {
|
|
582
|
-
var _a;
|
|
583
|
-
const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;
|
|
584
|
-
if (this.scrollElement !== scrollElement) {
|
|
585
|
-
this.cleanup();
|
|
586
|
-
if (!scrollElement) {
|
|
587
|
-
this.maybeNotify();
|
|
588
|
-
return;
|
|
589
|
-
}
|
|
590
|
-
this.scrollElement = scrollElement;
|
|
591
|
-
if (this.scrollElement && "ownerDocument" in this.scrollElement) this.targetWindow = this.scrollElement.ownerDocument.defaultView;
|
|
592
|
-
else this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
|
|
593
|
-
this.elementsCache.forEach((cached) => {
|
|
594
|
-
this.observer.observe(cached);
|
|
595
|
-
});
|
|
596
|
-
this.unsubs.push(this.options.observeElementRect(this, (rect) => {
|
|
597
|
-
this.scrollRect = rect;
|
|
598
|
-
this.maybeNotify();
|
|
599
|
-
}));
|
|
600
|
-
this.unsubs.push(this.options.observeElementOffset(this, (offset, isScrolling) => {
|
|
601
|
-
if (isScrolling && this._intendedScrollOffset === null && offset === this.scrollOffset) return;
|
|
602
|
-
if (this._intendedScrollOffset !== null && Math.abs(offset - this._intendedScrollOffset) < 1.5) offset = this._intendedScrollOffset;
|
|
603
|
-
this._intendedScrollOffset = null;
|
|
604
|
-
this.scrollAdjustments = 0;
|
|
605
|
-
const prevOffset = this.getScrollOffset();
|
|
606
|
-
this.scrollDirection = isScrolling ? prevOffset === offset ? this.scrollDirection : prevOffset < offset ? "forward" : "backward" : null;
|
|
607
|
-
this.scrollOffset = offset;
|
|
608
|
-
this.isScrolling = isScrolling;
|
|
609
|
-
this._flushIosDeferredIfReady();
|
|
610
|
-
if (this.scrollState) this.scheduleScrollReconcile();
|
|
611
|
-
this.maybeNotify();
|
|
612
|
-
}));
|
|
613
|
-
if ("addEventListener" in this.scrollElement) {
|
|
614
|
-
const scrollEl = this.scrollElement;
|
|
615
|
-
const onTouchStart = () => {
|
|
616
|
-
this._iosTouching = true;
|
|
617
|
-
this._iosJustTouchEnded = false;
|
|
618
|
-
if (this._iosTouchEndTimerId !== null && this.targetWindow != null) {
|
|
619
|
-
this.targetWindow.clearTimeout(this._iosTouchEndTimerId);
|
|
620
|
-
this._iosTouchEndTimerId = null;
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
const onTouchEnd = () => {
|
|
624
|
-
this._iosTouching = false;
|
|
625
|
-
if (!isIOSWebKit() || this.targetWindow == null) return;
|
|
626
|
-
this._iosJustTouchEnded = true;
|
|
627
|
-
this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
|
|
628
|
-
this._iosJustTouchEnded = false;
|
|
629
|
-
this._iosTouchEndTimerId = null;
|
|
630
|
-
this._flushIosDeferredIfReady();
|
|
631
|
-
}, 150);
|
|
632
|
-
};
|
|
633
|
-
scrollEl.addEventListener("touchstart", onTouchStart, addEventListenerOptions);
|
|
634
|
-
scrollEl.addEventListener("touchend", onTouchEnd, addEventListenerOptions);
|
|
635
|
-
this.unsubs.push(() => {
|
|
636
|
-
scrollEl.removeEventListener("touchstart", onTouchStart);
|
|
637
|
-
scrollEl.removeEventListener("touchend", onTouchEnd);
|
|
638
|
-
if (this._iosTouchEndTimerId !== null && this.targetWindow != null) {
|
|
639
|
-
this.targetWindow.clearTimeout(this._iosTouchEndTimerId);
|
|
640
|
-
this._iosTouchEndTimerId = null;
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
this._scrollToOffset(this.getScrollOffset(), {
|
|
645
|
-
adjustments: void 0,
|
|
646
|
-
behavior: void 0
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
const anchor = this.pendingScrollAnchor;
|
|
650
|
-
this.pendingScrollAnchor = null;
|
|
651
|
-
if (anchor && this.scrollElement && this.options.enabled) {
|
|
652
|
-
const [key, _offset, followOnAppend, anchorDelta] = anchor;
|
|
653
|
-
if (key !== null && !followOnAppend) if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) {
|
|
654
|
-
if (anchorDelta !== 0) this._iosDeferredAdjustment += anchorDelta;
|
|
655
|
-
} else this._scrollToOffset(this.getScrollOffset(), {
|
|
656
|
-
adjustments: void 0,
|
|
657
|
-
behavior: void 0
|
|
658
|
-
});
|
|
659
|
-
if (followOnAppend) this.scrollToEnd({ behavior: followOnAppend });
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
this._flushIosDeferredIfReady = () => {
|
|
663
|
-
if (this._iosDeferredAdjustment === 0) return;
|
|
664
|
-
if (this.isScrolling) return;
|
|
665
|
-
if (this._iosTouching) return;
|
|
666
|
-
if (this._iosJustTouchEnded) return;
|
|
667
|
-
const cur = this.getScrollOffset();
|
|
668
|
-
const max = this.getMaxScrollOffset();
|
|
669
|
-
if (cur < 0 || cur > max) return;
|
|
670
|
-
if (this._iosDeferredAdjustment < 0 && cur >= max - 1) {
|
|
671
|
-
this._iosDeferredAdjustment = 0;
|
|
672
|
-
return;
|
|
673
|
-
}
|
|
674
|
-
const delta = this._iosDeferredAdjustment;
|
|
675
|
-
this._iosDeferredAdjustment = 0;
|
|
676
|
-
this._scrollToOffset(cur, {
|
|
677
|
-
adjustments: this.scrollAdjustments += delta,
|
|
678
|
-
behavior: void 0
|
|
679
|
-
});
|
|
680
|
-
};
|
|
681
|
-
this.rafId = null;
|
|
682
|
-
this.getSize = () => {
|
|
683
|
-
if (!this.options.enabled) {
|
|
684
|
-
this.scrollRect = null;
|
|
685
|
-
return 0;
|
|
686
|
-
}
|
|
687
|
-
this.scrollRect = this.scrollRect ?? this.options.initialRect;
|
|
688
|
-
return this.scrollRect[this.options.horizontal ? "width" : "height"];
|
|
689
|
-
};
|
|
690
|
-
this.getScrollOffset = () => {
|
|
691
|
-
if (!this.options.enabled) {
|
|
692
|
-
this.scrollOffset = null;
|
|
693
|
-
return 0;
|
|
694
|
-
}
|
|
695
|
-
this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset);
|
|
696
|
-
return this.scrollOffset;
|
|
697
|
-
};
|
|
698
|
-
this.getMeasurementOptions = memo$17(() => [
|
|
699
|
-
this.options.count,
|
|
700
|
-
this.options.paddingStart,
|
|
701
|
-
this.options.scrollMargin,
|
|
702
|
-
this.options.getItemKey,
|
|
703
|
-
this.options.enabled,
|
|
704
|
-
this.options.lanes,
|
|
705
|
-
this.options.laneAssignmentMode,
|
|
706
|
-
this.options.gap
|
|
707
|
-
], (count, paddingStart, scrollMargin, getItemKey, enabled, lanes, laneAssignmentMode, gap) => {
|
|
708
|
-
if (this.prevLanes !== void 0 && this.prevLanes !== lanes) this.lanesChangedFlag = true;
|
|
709
|
-
this.prevLanes = lanes;
|
|
710
|
-
this.pendingMin = null;
|
|
711
|
-
return {
|
|
712
|
-
count,
|
|
713
|
-
paddingStart,
|
|
714
|
-
scrollMargin,
|
|
715
|
-
getItemKey,
|
|
716
|
-
enabled,
|
|
717
|
-
lanes,
|
|
718
|
-
laneAssignmentMode,
|
|
719
|
-
gap
|
|
720
|
-
};
|
|
721
|
-
}, { key: false });
|
|
722
|
-
this.isIndexInRange = (index) => index >= 0 && index < this.options.count;
|
|
723
|
-
this.getMeasurements = memo$17(() => [this.getMeasurementOptions(), this.itemSizeCacheVersion], ({ count, paddingStart, scrollMargin, getItemKey, enabled, lanes, laneAssignmentMode, gap }, _itemSizeCacheVersion) => {
|
|
724
|
-
const itemSizeCache = this.itemSizeCache;
|
|
725
|
-
if (!enabled) {
|
|
726
|
-
this.measurementsCache = [];
|
|
727
|
-
this.itemSizeCache.clear();
|
|
728
|
-
this.laneAssignments.clear();
|
|
729
|
-
return [];
|
|
730
|
-
}
|
|
731
|
-
if (this.laneAssignments.size > count) {
|
|
732
|
-
for (const index of this.laneAssignments.keys()) if (index >= count) this.laneAssignments.delete(index);
|
|
733
|
-
}
|
|
734
|
-
if (this.lanesChangedFlag) {
|
|
735
|
-
this.lanesChangedFlag = false;
|
|
736
|
-
this.lanesSettling = true;
|
|
737
|
-
this.measurementsCache = [];
|
|
738
|
-
this.itemSizeCache.clear();
|
|
739
|
-
this.laneAssignments.clear();
|
|
740
|
-
this.pendingMin = null;
|
|
741
|
-
}
|
|
742
|
-
if (this.measurementsCache.length === 0 && !this.lanesSettling) {
|
|
743
|
-
this.measurementsCache = this.options.initialMeasurementsCache;
|
|
744
|
-
this.measurementsCache.forEach((item) => {
|
|
745
|
-
this.itemSizeCache.set(item.key, item.size);
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
const min = this.lanesSettling ? 0 : this.pendingMin ?? 0;
|
|
749
|
-
this.pendingMin = null;
|
|
750
|
-
if (this.lanesSettling && this.measurementsCache.length === count) this.lanesSettling = false;
|
|
751
|
-
if (lanes === 1) {
|
|
752
|
-
const need = count * 2;
|
|
753
|
-
let flat = this._flatMeasurements;
|
|
754
|
-
if (!flat || flat.length < need) {
|
|
755
|
-
const next = new Float64Array(need);
|
|
756
|
-
if (flat && min > 0) next.set(flat.subarray(0, min * 2));
|
|
757
|
-
flat = next;
|
|
758
|
-
this._flatMeasurements = flat;
|
|
759
|
-
}
|
|
760
|
-
let runningStart;
|
|
761
|
-
if (min === 0) runningStart = paddingStart + scrollMargin;
|
|
762
|
-
else {
|
|
763
|
-
const prevIdx = min - 1;
|
|
764
|
-
runningStart = flat[prevIdx * 2] + flat[prevIdx * 2 + 1] + gap;
|
|
765
|
-
}
|
|
766
|
-
for (let i = min; i < count; i++) {
|
|
767
|
-
const key = getItemKey(i);
|
|
768
|
-
const measuredSize = itemSizeCache.get(key);
|
|
769
|
-
const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i);
|
|
770
|
-
flat[i * 2] = runningStart;
|
|
771
|
-
flat[i * 2 + 1] = size;
|
|
772
|
-
runningStart += size + gap;
|
|
773
|
-
}
|
|
774
|
-
const view = createLazyMeasurementsView(count, flat, getItemKey);
|
|
775
|
-
this.measurementsCache = view;
|
|
776
|
-
return view;
|
|
777
|
-
}
|
|
778
|
-
const measurements = this.measurementsCache.slice(0, min);
|
|
779
|
-
const laneLastIndex = new Array(lanes).fill(void 0);
|
|
780
|
-
const laneEnds = new Float64Array(lanes);
|
|
781
|
-
let filledLanes = 0;
|
|
782
|
-
for (let m = 0; m < min; m++) {
|
|
783
|
-
const item = measurements[m];
|
|
784
|
-
if (item) {
|
|
785
|
-
if (laneLastIndex[item.lane] === void 0) filledLanes++;
|
|
786
|
-
laneLastIndex[item.lane] = m;
|
|
787
|
-
laneEnds[item.lane] = item.end;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
for (let i = min; i < count; i++) {
|
|
791
|
-
const key = getItemKey(i);
|
|
792
|
-
const cachedLane = this.laneAssignments.get(i);
|
|
793
|
-
let lane;
|
|
794
|
-
let start;
|
|
795
|
-
const shouldCacheLane = laneAssignmentMode === "estimate" || itemSizeCache.has(key);
|
|
796
|
-
if (cachedLane !== void 0 && this.options.lanes > 1) {
|
|
797
|
-
lane = cachedLane;
|
|
798
|
-
const prevIndex = laneLastIndex[lane];
|
|
799
|
-
const prevInLane = prevIndex !== void 0 ? measurements[prevIndex] : void 0;
|
|
800
|
-
start = prevInLane ? prevInLane.end + gap : paddingStart + scrollMargin;
|
|
801
|
-
} else if (filledLanes === lanes) {
|
|
802
|
-
let bestLane = 0;
|
|
803
|
-
let bestEnd = laneEnds[0];
|
|
804
|
-
let bestIdx = laneLastIndex[0];
|
|
805
|
-
for (let l = 1; l < lanes; l++) {
|
|
806
|
-
const e = laneEnds[l];
|
|
807
|
-
if (e < bestEnd || e === bestEnd && laneLastIndex[l] < bestIdx) {
|
|
808
|
-
bestLane = l;
|
|
809
|
-
bestEnd = e;
|
|
810
|
-
bestIdx = laneLastIndex[l];
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
lane = bestLane;
|
|
814
|
-
start = bestEnd + gap;
|
|
815
|
-
if (shouldCacheLane) this.laneAssignments.set(i, lane);
|
|
816
|
-
} else {
|
|
817
|
-
lane = i % this.options.lanes;
|
|
818
|
-
start = paddingStart + scrollMargin;
|
|
819
|
-
if (shouldCacheLane) this.laneAssignments.set(i, lane);
|
|
820
|
-
}
|
|
821
|
-
const measuredSize = itemSizeCache.get(key);
|
|
822
|
-
const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i);
|
|
823
|
-
const end = start + size;
|
|
824
|
-
measurements[i] = {
|
|
825
|
-
index: i,
|
|
826
|
-
start,
|
|
827
|
-
size,
|
|
828
|
-
end,
|
|
829
|
-
key,
|
|
830
|
-
lane
|
|
831
|
-
};
|
|
832
|
-
if (laneLastIndex[lane] === void 0) filledLanes++;
|
|
833
|
-
laneLastIndex[lane] = i;
|
|
834
|
-
laneEnds[lane] = end;
|
|
835
|
-
}
|
|
836
|
-
this.measurementsCache = measurements;
|
|
837
|
-
return measurements;
|
|
838
|
-
}, {
|
|
839
|
-
key: false,
|
|
840
|
-
debug: () => this.options.debug
|
|
841
|
-
});
|
|
842
|
-
this.calculateRange = memo$17(() => [
|
|
843
|
-
this.getMeasurements(),
|
|
844
|
-
this.getSize(),
|
|
845
|
-
this.getScrollOffset(),
|
|
846
|
-
this.options.lanes
|
|
847
|
-
], (measurements, outerSize, scrollOffset, lanes) => {
|
|
848
|
-
if (measurements.length === 0 || outerSize === 0) {
|
|
849
|
-
this.range = null;
|
|
850
|
-
return null;
|
|
851
|
-
}
|
|
852
|
-
this.range = calculateRangeImpl(measurements, outerSize, scrollOffset, lanes, lanes === 1 && this._flatMeasurements != null ? this._flatMeasurements : null);
|
|
853
|
-
return this.range;
|
|
854
|
-
}, {
|
|
855
|
-
key: false,
|
|
856
|
-
debug: () => this.options.debug
|
|
857
|
-
});
|
|
858
|
-
this.getVirtualIndexes = memo$17(() => {
|
|
859
|
-
let startIndex = null;
|
|
860
|
-
let endIndex = null;
|
|
861
|
-
const range = this.calculateRange();
|
|
862
|
-
if (range) {
|
|
863
|
-
startIndex = range.startIndex;
|
|
864
|
-
endIndex = range.endIndex;
|
|
865
|
-
}
|
|
866
|
-
this.maybeNotify.updateDeps([
|
|
867
|
-
this.isScrolling,
|
|
868
|
-
startIndex,
|
|
869
|
-
endIndex
|
|
870
|
-
]);
|
|
871
|
-
return [
|
|
872
|
-
this.options.rangeExtractor,
|
|
873
|
-
this.options.overscan,
|
|
874
|
-
this.options.count,
|
|
875
|
-
startIndex,
|
|
876
|
-
endIndex
|
|
877
|
-
];
|
|
878
|
-
}, (rangeExtractor, overscan, count, startIndex, endIndex) => {
|
|
879
|
-
return startIndex === null || endIndex === null ? [] : rangeExtractor({
|
|
880
|
-
startIndex,
|
|
881
|
-
endIndex,
|
|
882
|
-
overscan,
|
|
883
|
-
count
|
|
884
|
-
});
|
|
885
|
-
}, {
|
|
886
|
-
key: false,
|
|
887
|
-
debug: () => this.options.debug
|
|
888
|
-
});
|
|
889
|
-
this.indexFromElement = (node) => {
|
|
890
|
-
const attributeName = this.options.indexAttribute;
|
|
891
|
-
const indexStr = node.getAttribute(attributeName);
|
|
892
|
-
if (!indexStr) {
|
|
893
|
-
console.warn(`Missing attribute name '${attributeName}={index}' on measured element.`);
|
|
894
|
-
return -1;
|
|
895
|
-
}
|
|
896
|
-
return parseInt(indexStr, 10);
|
|
897
|
-
};
|
|
898
|
-
this.shouldMeasureDuringScroll = (index) => {
|
|
899
|
-
var _a;
|
|
900
|
-
if (!this.scrollState || this.scrollState.behavior !== "smooth") return true;
|
|
901
|
-
const scrollIndex = this.scrollState.index ?? ((_a = this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)) == null ? void 0 : _a.index);
|
|
902
|
-
if (scrollIndex !== void 0 && this.range) {
|
|
903
|
-
const bufferSize = Math.max(this.options.overscan, Math.ceil((this.range.endIndex - this.range.startIndex) / 2));
|
|
904
|
-
const minIndex = Math.max(0, scrollIndex - bufferSize);
|
|
905
|
-
const maxIndex = Math.min(this.options.count - 1, scrollIndex + bufferSize);
|
|
906
|
-
return index >= minIndex && index <= maxIndex;
|
|
907
|
-
}
|
|
908
|
-
return true;
|
|
909
|
-
};
|
|
910
|
-
this.measureElement = (node) => {
|
|
911
|
-
if (!node) {
|
|
912
|
-
this.elementsCache.forEach((cached, key2) => {
|
|
913
|
-
if (!cached.isConnected) {
|
|
914
|
-
this.observer.unobserve(cached);
|
|
915
|
-
this.elementsCache.delete(key2);
|
|
916
|
-
}
|
|
917
|
-
});
|
|
918
|
-
return;
|
|
919
|
-
}
|
|
920
|
-
const index = this.indexFromElement(node);
|
|
921
|
-
if (!this.isIndexInRange(index)) return;
|
|
922
|
-
const key = this.options.getItemKey(index);
|
|
923
|
-
const prevNode = this.elementsCache.get(key);
|
|
924
|
-
if (prevNode !== node) {
|
|
925
|
-
if (prevNode) this.observer.unobserve(prevNode);
|
|
926
|
-
this.observer.observe(node);
|
|
927
|
-
this.elementsCache.set(key, node);
|
|
928
|
-
}
|
|
929
|
-
if ((!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(index)) this.resizeItem(index, this.options.measureElement(node, void 0, this));
|
|
930
|
-
};
|
|
931
|
-
this.resizeItem = (index, size) => {
|
|
932
|
-
var _a, _b;
|
|
933
|
-
if (!this.isIndexInRange(index)) return;
|
|
934
|
-
let cachedSize;
|
|
935
|
-
let itemStart;
|
|
936
|
-
let key;
|
|
937
|
-
const flat = this._flatMeasurements;
|
|
938
|
-
if (this.options.lanes === 1 && flat !== null) {
|
|
939
|
-
key = this.options.getItemKey(index);
|
|
940
|
-
itemStart = flat[index * 2];
|
|
941
|
-
cachedSize = flat[index * 2 + 1];
|
|
942
|
-
} else {
|
|
943
|
-
const item = this.measurementsCache[index];
|
|
944
|
-
if (!item) return;
|
|
945
|
-
key = item.key;
|
|
946
|
-
itemStart = item.start;
|
|
947
|
-
cachedSize = item.size;
|
|
948
|
-
}
|
|
949
|
-
const itemSize = this.itemSizeCache.get(key) ?? cachedSize;
|
|
950
|
-
const delta = size - itemSize;
|
|
951
|
-
if (delta !== 0) {
|
|
952
|
-
const wasAtEnd = this.options.anchorTo === "end" && ((_a = this.scrollState) == null ? void 0 : _a.behavior) !== "smooth" && this.getVirtualDistanceFromEnd() <= this.options.scrollEndThreshold;
|
|
953
|
-
const prevTotalSize = wasAtEnd ? this.getTotalSize() : 0;
|
|
954
|
-
const scrollOffsetWithAdj = this.getScrollOffset() + this.scrollAdjustments;
|
|
955
|
-
const defaultShouldAdjust = !this.itemSizeCache.has(key) ? itemStart < scrollOffsetWithAdj : itemStart + itemSize <= scrollOffsetWithAdj && this.scrollDirection !== "backward";
|
|
956
|
-
const shouldAdjustScroll = ((_b = this.scrollState) == null ? void 0 : _b.behavior) !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[index] ?? {
|
|
957
|
-
index,
|
|
958
|
-
key,
|
|
959
|
-
start: itemStart,
|
|
960
|
-
size: cachedSize,
|
|
961
|
-
end: itemStart + cachedSize,
|
|
962
|
-
lane: 0
|
|
963
|
-
}, delta, this) : defaultShouldAdjust);
|
|
964
|
-
if (this.pendingMin === null || index < this.pendingMin) this.pendingMin = index;
|
|
965
|
-
this.itemSizeCache.set(key, size);
|
|
966
|
-
this.itemSizeCacheVersion++;
|
|
967
|
-
let adjustedSync = false;
|
|
968
|
-
if (wasAtEnd) adjustedSync = this.applyScrollAdjustment(this.getTotalSize() - prevTotalSize);
|
|
969
|
-
else if (shouldAdjustScroll) adjustedSync = this.applyScrollAdjustment(delta);
|
|
970
|
-
this.notify(adjustedSync);
|
|
971
|
-
}
|
|
972
|
-
};
|
|
973
|
-
this.getVirtualItems = memo$17(() => [this.getVirtualIndexes(), this.getMeasurements()], (indexes, measurements) => {
|
|
974
|
-
const virtualItems = [];
|
|
975
|
-
for (let k = 0, len = indexes.length; k < len; k++) {
|
|
976
|
-
const measurement = measurements[indexes[k]];
|
|
977
|
-
virtualItems.push(measurement);
|
|
978
|
-
}
|
|
979
|
-
return virtualItems;
|
|
980
|
-
}, {
|
|
981
|
-
key: false,
|
|
982
|
-
debug: () => this.options.debug
|
|
983
|
-
});
|
|
984
|
-
this.getVirtualItemForOffset = (offset) => {
|
|
985
|
-
const measurements = this.getMeasurements();
|
|
986
|
-
if (measurements.length === 0) return;
|
|
987
|
-
const flat = this._flatMeasurements;
|
|
988
|
-
const useFlat = this.options.lanes === 1 && flat != null;
|
|
989
|
-
return notUndefined(measurements[findNearestBinarySearch(0, measurements.length - 1, useFlat ? (i) => flat[i * 2] : (i) => notUndefined(measurements[i]).start, offset)]);
|
|
990
|
-
};
|
|
991
|
-
this.getMaxScrollOffset = () => {
|
|
992
|
-
if (!this.scrollElement) return 0;
|
|
993
|
-
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
994
|
-
else {
|
|
995
|
-
const doc = this.scrollElement.document.documentElement;
|
|
996
|
-
return this.options.horizontal ? doc.scrollWidth - this.scrollElement.innerWidth : doc.scrollHeight - this.scrollElement.innerHeight;
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
this.getVirtualDistanceFromEnd = () => {
|
|
1000
|
-
return Math.max(this.getTotalSize() - this.getSize() - this.getScrollOffset(), 0);
|
|
1001
|
-
};
|
|
1002
|
-
this.getDistanceFromEnd = () => {
|
|
1003
|
-
return Math.max(this.getMaxScrollOffset() - this.getScrollOffset(), 0);
|
|
1004
|
-
};
|
|
1005
|
-
this.isAtEnd = (threshold = this.options.scrollEndThreshold) => {
|
|
1006
|
-
return this.getDistanceFromEnd() <= threshold;
|
|
1007
|
-
};
|
|
1008
|
-
this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {
|
|
1009
|
-
if (!this.scrollElement) return 0;
|
|
1010
|
-
const size = this.getSize();
|
|
1011
|
-
const scrollOffset = this.getScrollOffset();
|
|
1012
|
-
if (align === "auto") align = toOffset >= scrollOffset + size ? "end" : "start";
|
|
1013
|
-
if (align === "center") toOffset += (itemSize - size) / 2;
|
|
1014
|
-
else if (align === "end") toOffset -= size;
|
|
1015
|
-
const maxOffset = this.getMaxScrollOffset();
|
|
1016
|
-
return Math.max(Math.min(maxOffset, toOffset), 0);
|
|
1017
|
-
};
|
|
1018
|
-
this.getOffsetForIndex = (index, align = "auto") => {
|
|
1019
|
-
index = Math.max(0, Math.min(index, this.options.count - 1));
|
|
1020
|
-
const size = this.getSize();
|
|
1021
|
-
const scrollOffset = this.getScrollOffset();
|
|
1022
|
-
const item = this.measurementsCache[index];
|
|
1023
|
-
if (!item) return;
|
|
1024
|
-
if (align === "auto") if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) align = "end";
|
|
1025
|
-
else if (item.start <= scrollOffset + this.options.scrollPaddingStart) align = "start";
|
|
1026
|
-
else return [scrollOffset, align];
|
|
1027
|
-
if (align === "end" && index === this.options.count - 1) return [this.getMaxScrollOffset(), align];
|
|
1028
|
-
const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
|
|
1029
|
-
return [this.getOffsetForAlignment(toOffset, align, item.size), align];
|
|
1030
|
-
};
|
|
1031
|
-
this.scrollToOffset = (toOffset, { align = "start", behavior = "auto" } = {}) => {
|
|
1032
|
-
this._iosDeferredAdjustment = 0;
|
|
1033
|
-
const offset = this.getOffsetForAlignment(toOffset, align);
|
|
1034
|
-
const now = this.now();
|
|
1035
|
-
this.scrollState = {
|
|
1036
|
-
index: null,
|
|
1037
|
-
align,
|
|
1038
|
-
behavior,
|
|
1039
|
-
startedAt: now,
|
|
1040
|
-
lastTargetOffset: offset,
|
|
1041
|
-
stableFrames: 0
|
|
1042
|
-
};
|
|
1043
|
-
this._scrollToOffset(offset, {
|
|
1044
|
-
adjustments: void 0,
|
|
1045
|
-
behavior
|
|
1046
|
-
});
|
|
1047
|
-
this.scheduleScrollReconcile();
|
|
1048
|
-
};
|
|
1049
|
-
this.scrollToIndex = (index, { align: initialAlign = "auto", behavior = "auto" } = {}) => {
|
|
1050
|
-
this._iosDeferredAdjustment = 0;
|
|
1051
|
-
index = Math.max(0, Math.min(index, this.options.count - 1));
|
|
1052
|
-
const offsetInfo = this.getOffsetForIndex(index, initialAlign);
|
|
1053
|
-
if (!offsetInfo) return;
|
|
1054
|
-
const [offset, align] = offsetInfo;
|
|
1055
|
-
const now = this.now();
|
|
1056
|
-
this.scrollState = {
|
|
1057
|
-
index,
|
|
1058
|
-
align,
|
|
1059
|
-
behavior,
|
|
1060
|
-
startedAt: now,
|
|
1061
|
-
lastTargetOffset: offset,
|
|
1062
|
-
stableFrames: 0
|
|
1063
|
-
};
|
|
1064
|
-
this._scrollToOffset(offset, {
|
|
1065
|
-
adjustments: void 0,
|
|
1066
|
-
behavior
|
|
1067
|
-
});
|
|
1068
|
-
this.scheduleScrollReconcile();
|
|
1069
|
-
};
|
|
1070
|
-
this.scrollBy = (delta, { behavior = "auto" } = {}) => {
|
|
1071
|
-
const offset = this.getScrollOffset() + delta;
|
|
1072
|
-
const now = this.now();
|
|
1073
|
-
this.scrollState = {
|
|
1074
|
-
index: null,
|
|
1075
|
-
align: "start",
|
|
1076
|
-
behavior,
|
|
1077
|
-
startedAt: now,
|
|
1078
|
-
lastTargetOffset: offset,
|
|
1079
|
-
stableFrames: 0
|
|
1080
|
-
};
|
|
1081
|
-
this._scrollToOffset(offset, {
|
|
1082
|
-
adjustments: void 0,
|
|
1083
|
-
behavior
|
|
1084
|
-
});
|
|
1085
|
-
this.scheduleScrollReconcile();
|
|
1086
|
-
};
|
|
1087
|
-
this.scrollToEnd = ({ behavior = "auto" } = {}) => {
|
|
1088
|
-
if (this.options.count > 0) {
|
|
1089
|
-
this.scrollToIndex(this.options.count - 1, {
|
|
1090
|
-
align: "end",
|
|
1091
|
-
behavior
|
|
1092
|
-
});
|
|
1093
|
-
return;
|
|
1094
|
-
}
|
|
1095
|
-
this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), { behavior });
|
|
1096
|
-
};
|
|
1097
|
-
this.getTotalSize = () => {
|
|
1098
|
-
var _a;
|
|
1099
|
-
const measurements = this.getMeasurements();
|
|
1100
|
-
let end;
|
|
1101
|
-
if (measurements.length === 0) end = this.options.paddingStart;
|
|
1102
|
-
else if (this.options.lanes === 1) {
|
|
1103
|
-
const lastIdx = measurements.length - 1;
|
|
1104
|
-
const flat = this._flatMeasurements;
|
|
1105
|
-
if (flat != null) end = flat[lastIdx * 2] + flat[lastIdx * 2 + 1];
|
|
1106
|
-
else end = ((_a = measurements[lastIdx]) == null ? void 0 : _a.end) ?? 0;
|
|
1107
|
-
} else {
|
|
1108
|
-
const endByLane = Array(this.options.lanes).fill(null);
|
|
1109
|
-
let endIndex = measurements.length - 1;
|
|
1110
|
-
while (endIndex >= 0 && endByLane.some((val) => val === null)) {
|
|
1111
|
-
const item = measurements[endIndex];
|
|
1112
|
-
if (endByLane[item.lane] === null) endByLane[item.lane] = item.end;
|
|
1113
|
-
endIndex--;
|
|
1114
|
-
}
|
|
1115
|
-
end = Math.max(...endByLane.filter((val) => val !== null));
|
|
1116
|
-
}
|
|
1117
|
-
return Math.max(end - this.options.scrollMargin + this.options.paddingEnd, 0);
|
|
1118
|
-
};
|
|
1119
|
-
this.takeSnapshot = () => {
|
|
1120
|
-
const snapshot = [];
|
|
1121
|
-
if (this.itemSizeCache.size === 0) return snapshot;
|
|
1122
|
-
const m = this.getMeasurements();
|
|
1123
|
-
for (const item of m) if (item && this.itemSizeCache.has(item.key)) snapshot.push({
|
|
1124
|
-
index: item.index,
|
|
1125
|
-
key: item.key,
|
|
1126
|
-
start: item.start,
|
|
1127
|
-
size: item.size,
|
|
1128
|
-
end: item.end,
|
|
1129
|
-
lane: item.lane
|
|
1130
|
-
});
|
|
1131
|
-
return snapshot;
|
|
1132
|
-
};
|
|
1133
|
-
this._scrollToOffset = (offset, { adjustments, behavior }) => {
|
|
1134
|
-
this._intendedScrollOffset = offset + (adjustments ?? 0);
|
|
1135
|
-
this.options.scrollToFn(offset, {
|
|
1136
|
-
behavior,
|
|
1137
|
-
adjustments
|
|
1138
|
-
}, this);
|
|
1139
|
-
};
|
|
1140
|
-
this.measure = () => {
|
|
1141
|
-
this.pendingMin = null;
|
|
1142
|
-
this.itemSizeCache.clear();
|
|
1143
|
-
this.laneAssignments.clear();
|
|
1144
|
-
this.itemSizeCacheVersion++;
|
|
1145
|
-
this.notify(false);
|
|
1146
|
-
};
|
|
1147
|
-
this.setOptions(opts);
|
|
1148
|
-
}
|
|
1149
|
-
applyScrollAdjustment(delta, behavior) {
|
|
1150
|
-
if (delta === 0) return false;
|
|
1151
|
-
if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) {
|
|
1152
|
-
this._iosDeferredAdjustment += delta;
|
|
1153
|
-
return false;
|
|
1154
|
-
} else {
|
|
1155
|
-
this._scrollToOffset(this.getScrollOffset(), {
|
|
1156
|
-
adjustments: this.scrollAdjustments += delta,
|
|
1157
|
-
behavior
|
|
1158
|
-
});
|
|
1159
|
-
if (this.scrollOffset !== null) {
|
|
1160
|
-
this.scrollOffset += this.scrollAdjustments;
|
|
1161
|
-
if (this.scrollOffset < 0) this.scrollOffset = 0;
|
|
1162
|
-
this.scrollAdjustments = 0;
|
|
1163
|
-
}
|
|
1164
|
-
return true;
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
scheduleScrollReconcile() {
|
|
1168
|
-
if (!this.targetWindow) {
|
|
1169
|
-
this.scrollState = null;
|
|
1170
|
-
return;
|
|
1171
|
-
}
|
|
1172
|
-
if (this.rafId != null) return;
|
|
1173
|
-
this.rafId = this.targetWindow.requestAnimationFrame(() => {
|
|
1174
|
-
this.rafId = null;
|
|
1175
|
-
this.reconcileScroll();
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
reconcileScroll() {
|
|
1179
|
-
if (!this.scrollState) return;
|
|
1180
|
-
if (!this.scrollElement) return;
|
|
1181
|
-
if (this.now() - this.scrollState.startedAt > 5e3) {
|
|
1182
|
-
this.scrollState = null;
|
|
1183
|
-
return;
|
|
1184
|
-
}
|
|
1185
|
-
const offsetInfo = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0;
|
|
1186
|
-
const targetOffset = offsetInfo ? offsetInfo[0] : this.scrollState.lastTargetOffset;
|
|
1187
|
-
const STABLE_FRAMES = 1;
|
|
1188
|
-
const targetChanged = targetOffset !== this.scrollState.lastTargetOffset;
|
|
1189
|
-
if (!targetChanged && approxEqual(targetOffset, this.getScrollOffset())) {
|
|
1190
|
-
this.scrollState.stableFrames++;
|
|
1191
|
-
if (this.scrollState.stableFrames >= STABLE_FRAMES) {
|
|
1192
|
-
if (this.getScrollOffset() !== targetOffset) this._scrollToOffset(targetOffset, {
|
|
1193
|
-
adjustments: void 0,
|
|
1194
|
-
behavior: "auto"
|
|
1195
|
-
});
|
|
1196
|
-
this.scrollState = null;
|
|
1197
|
-
return;
|
|
1198
|
-
}
|
|
1199
|
-
} else {
|
|
1200
|
-
this.scrollState.stableFrames = 0;
|
|
1201
|
-
if (targetChanged) {
|
|
1202
|
-
const viewport = this.getSize() || 600;
|
|
1203
|
-
const distance = Math.abs(targetOffset - this.getScrollOffset());
|
|
1204
|
-
const keepSmooth = this.scrollState.behavior === "smooth" && distance > viewport;
|
|
1205
|
-
this.scrollState.lastTargetOffset = targetOffset;
|
|
1206
|
-
if (!keepSmooth) this.scrollState.behavior = "auto";
|
|
1207
|
-
this._scrollToOffset(targetOffset, {
|
|
1208
|
-
adjustments: void 0,
|
|
1209
|
-
behavior: keepSmooth ? "smooth" : "auto"
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
this.scheduleScrollReconcile();
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
|
-
const findNearestBinarySearch = (low, high, getCurrentValue, value) => {
|
|
1217
|
-
while (low <= high) {
|
|
1218
|
-
const middle = (low + high) / 2 | 0;
|
|
1219
|
-
const currentValue = getCurrentValue(middle);
|
|
1220
|
-
if (currentValue < value) low = middle + 1;
|
|
1221
|
-
else if (currentValue > value) high = middle - 1;
|
|
1222
|
-
else return middle;
|
|
1223
|
-
}
|
|
1224
|
-
if (low > 0) return low - 1;
|
|
1225
|
-
else return 0;
|
|
174
|
+
//#region lib/types/client/contract/group-tree.js
|
|
175
|
+
const DEPTH = {
|
|
176
|
+
exchange: 0,
|
|
177
|
+
input: 1,
|
|
178
|
+
turn: 2,
|
|
179
|
+
process: 3
|
|
1226
180
|
};
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
}
|
|
1236
|
-
return low > 0 ? low - 1 : 0;
|
|
1237
|
-
}
|
|
1238
|
-
function calculateRangeImpl(measurements, outerSize, scrollOffset, lanes, flat) {
|
|
1239
|
-
const lastIndex = measurements.length - 1;
|
|
1240
|
-
if (measurements.length <= lanes) return {
|
|
1241
|
-
startIndex: 0,
|
|
1242
|
-
endIndex: lastIndex
|
|
1243
|
-
};
|
|
1244
|
-
if (lanes === 1 && flat !== null) {
|
|
1245
|
-
const startIndex2 = findNearestBinarySearchFlat(flat, lastIndex, scrollOffset);
|
|
1246
|
-
let endIndex2 = startIndex2;
|
|
1247
|
-
const limit = scrollOffset + outerSize;
|
|
1248
|
-
while (endIndex2 < lastIndex && flat[endIndex2 * 2] + flat[endIndex2 * 2 + 1] < limit) endIndex2++;
|
|
1249
|
-
return {
|
|
1250
|
-
startIndex: startIndex2,
|
|
1251
|
-
endIndex: endIndex2
|
|
1252
|
-
};
|
|
1253
|
-
}
|
|
1254
|
-
const getStart = (index) => measurements[index].start;
|
|
1255
|
-
let startIndex = findNearestBinarySearch(0, lastIndex, getStart, scrollOffset);
|
|
1256
|
-
let endIndex = startIndex;
|
|
1257
|
-
if (lanes === 1) while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) endIndex++;
|
|
1258
|
-
else if (lanes > 1) {
|
|
1259
|
-
const endPerLane = Array(lanes).fill(0);
|
|
1260
|
-
while (endIndex < lastIndex && endPerLane.some((pos) => pos < scrollOffset + outerSize)) {
|
|
1261
|
-
const item = measurements[endIndex];
|
|
1262
|
-
endPerLane[item.lane] = item.end;
|
|
1263
|
-
endIndex++;
|
|
1264
|
-
}
|
|
1265
|
-
const startPerLane = Array(lanes).fill(scrollOffset + outerSize);
|
|
1266
|
-
while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
|
|
1267
|
-
const item = measurements[startIndex];
|
|
1268
|
-
startPerLane[item.lane] = item.start;
|
|
1269
|
-
startIndex--;
|
|
1270
|
-
}
|
|
1271
|
-
startIndex = Math.max(0, startIndex - startIndex % lanes);
|
|
1272
|
-
endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));
|
|
1273
|
-
}
|
|
1274
|
-
return {
|
|
1275
|
-
startIndex,
|
|
1276
|
-
endIndex
|
|
1277
|
-
};
|
|
1278
|
-
}
|
|
1279
|
-
//#endregion
|
|
1280
|
-
//#region ../../../node_modules/.pnpm/@tanstack+react-virtual@3.14.10_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
1281
|
-
const useIsomorphicLayoutEffect = typeof document !== "undefined" ? react.useLayoutEffect : react.useEffect;
|
|
1282
|
-
function useVirtualizerBase({ useFlushSync = true, directDomUpdates = false, directDomUpdatesMode = "transform", ...options }) {
|
|
1283
|
-
const rerender = react.useReducer((x) => x + 1, 0)[1];
|
|
1284
|
-
const directRef = react.useRef({
|
|
1285
|
-
enabled: directDomUpdates,
|
|
1286
|
-
mode: directDomUpdatesMode,
|
|
1287
|
-
container: null,
|
|
1288
|
-
lastSize: null,
|
|
1289
|
-
lastPositions: /* @__PURE__ */ new WeakMap(),
|
|
1290
|
-
prevRange: null
|
|
1291
|
-
});
|
|
1292
|
-
directRef.current.enabled = directDomUpdates;
|
|
1293
|
-
directRef.current.mode = directDomUpdatesMode;
|
|
1294
|
-
const applyContainerSize = (instance2) => {
|
|
1295
|
-
const state = directRef.current;
|
|
1296
|
-
if (!state.enabled || !state.container) return;
|
|
1297
|
-
const totalSize = instance2.getTotalSize();
|
|
1298
|
-
if (totalSize !== state.lastSize) {
|
|
1299
|
-
state.lastSize = totalSize;
|
|
1300
|
-
const sizeAxis = instance2.options.horizontal ? "width" : "height";
|
|
1301
|
-
state.container.style[sizeAxis] = `${totalSize}px`;
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
const applyDirectStyles = (instance2) => {
|
|
1305
|
-
const state = directRef.current;
|
|
1306
|
-
if (!state.enabled || !state.container) return;
|
|
1307
|
-
applyContainerSize(instance2);
|
|
1308
|
-
const horizontal = !!instance2.options.horizontal;
|
|
1309
|
-
const useTransform = state.mode === "transform";
|
|
1310
|
-
const posAxis = horizontal ? "left" : "top";
|
|
1311
|
-
const scrollMargin = instance2.options.scrollMargin;
|
|
1312
|
-
const items = instance2.getVirtualItems();
|
|
1313
|
-
for (const item of items) {
|
|
1314
|
-
const next = item.start - scrollMargin;
|
|
1315
|
-
const el = instance2.elementsCache.get(item.key);
|
|
1316
|
-
if (!el) continue;
|
|
1317
|
-
if (state.lastPositions.get(el) === next) continue;
|
|
1318
|
-
state.lastPositions.set(el, next);
|
|
1319
|
-
if (useTransform) el.style.transform = horizontal ? `translate3d(${next}px, 0, 0)` : `translate3d(0, ${next}px, 0)`;
|
|
1320
|
-
else el.style[posAxis] = `${next}px`;
|
|
1321
|
-
}
|
|
1322
|
-
};
|
|
1323
|
-
const resolvedOptions = {
|
|
1324
|
-
...options,
|
|
1325
|
-
onChange: (instance2, sync) => {
|
|
1326
|
-
var _a;
|
|
1327
|
-
const state = directRef.current;
|
|
1328
|
-
let shouldRerender = true;
|
|
1329
|
-
if (state.enabled) {
|
|
1330
|
-
applyDirectStyles(instance2);
|
|
1331
|
-
const range = instance2.range;
|
|
1332
|
-
const prev = state.prevRange;
|
|
1333
|
-
shouldRerender = !prev || prev.isScrolling !== instance2.isScrolling || prev.startIndex !== (range == null ? void 0 : range.startIndex) || prev.endIndex !== (range == null ? void 0 : range.endIndex);
|
|
1334
|
-
if (shouldRerender) state.prevRange = range ? {
|
|
1335
|
-
startIndex: range.startIndex,
|
|
1336
|
-
endIndex: range.endIndex,
|
|
1337
|
-
isScrolling: instance2.isScrolling
|
|
1338
|
-
} : null;
|
|
1339
|
-
}
|
|
1340
|
-
if (shouldRerender) if (useFlushSync && sync) (0, react_dom.flushSync)(rerender);
|
|
1341
|
-
else rerender();
|
|
1342
|
-
(_a = options.onChange) == null || _a.call(options, instance2, sync);
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
const [instance] = react.useState(() => {
|
|
1346
|
-
const v = new Virtualizer(resolvedOptions);
|
|
1347
|
-
return Object.assign(v, { containerRef: (node) => {
|
|
1348
|
-
const state = directRef.current;
|
|
1349
|
-
state.container = node;
|
|
1350
|
-
state.lastSize = null;
|
|
1351
|
-
if (node && state.enabled) {
|
|
1352
|
-
const total = v.getTotalSize();
|
|
1353
|
-
state.lastSize = total;
|
|
1354
|
-
const axis = v.options.horizontal ? "width" : "height";
|
|
1355
|
-
node.style[axis] = `${total}px`;
|
|
1356
|
-
}
|
|
1357
|
-
} });
|
|
1358
|
-
});
|
|
1359
|
-
instance.setOptions(resolvedOptions);
|
|
1360
|
-
useIsomorphicLayoutEffect(() => {
|
|
1361
|
-
return instance._didMount();
|
|
1362
|
-
}, []);
|
|
1363
|
-
useIsomorphicLayoutEffect(() => {
|
|
1364
|
-
applyContainerSize(instance);
|
|
1365
|
-
return instance._willUpdate();
|
|
1366
|
-
});
|
|
1367
|
-
useIsomorphicLayoutEffect(() => {
|
|
1368
|
-
applyDirectStyles(instance);
|
|
1369
|
-
});
|
|
1370
|
-
return instance;
|
|
1371
|
-
}
|
|
1372
|
-
function useVirtualizer(options) {
|
|
1373
|
-
return useVirtualizerBase({
|
|
1374
|
-
observeElementRect,
|
|
1375
|
-
observeElementOffset,
|
|
1376
|
-
scrollToFn: elementScroll,
|
|
1377
|
-
...options
|
|
1378
|
-
});
|
|
181
|
+
/**
|
|
182
|
+
* Test whether a Node stands at a group-tree position or outside it.
|
|
183
|
+
* @param node - Chat Node.
|
|
184
|
+
* @param position - group-tree position to compare against.
|
|
185
|
+
* @returns whether the Node's position is `position` or an outer one.
|
|
186
|
+
*/
|
|
187
|
+
function isAtOrOutside(node, position) {
|
|
188
|
+
return node.groupTree !== void 0 && DEPTH[node.groupTree] <= DEPTH[position];
|
|
1379
189
|
}
|
|
1380
190
|
//#endregion
|
|
1381
191
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/TurnNavigator.module.css.mjs
|
|
@@ -1477,7 +287,7 @@ window.__ModuleLoader__.load({
|
|
|
1477
287
|
setFocusedTurn(turn);
|
|
1478
288
|
setPreviewTurn(turn);
|
|
1479
289
|
}, []);
|
|
1480
|
-
const virtualizer = useVirtualizer({
|
|
290
|
+
const virtualizer = (0, _tanstack_react_virtual.useVirtualizer)({
|
|
1481
291
|
count: items.length,
|
|
1482
292
|
enabled: items.length >= 2,
|
|
1483
293
|
directDomUpdates: true,
|
|
@@ -1493,11 +303,11 @@ window.__ModuleLoader__.load({
|
|
|
1493
303
|
},
|
|
1494
304
|
initialOffset: 0,
|
|
1495
305
|
scrollToFn: (offset, options, instance) => {
|
|
1496
|
-
if (initialization.current.placed) elementScroll(offset, options, instance);
|
|
306
|
+
if (initialization.current.placed) (0, _tanstack_react_virtual.elementScroll)(offset, options, instance);
|
|
1497
307
|
},
|
|
1498
308
|
observeElementOffset: (instance, notify) => {
|
|
1499
309
|
initialization.current.publishOffset = notify;
|
|
1500
|
-
const dispose = observeElementOffset(instance, notify);
|
|
310
|
+
const dispose = (0, _tanstack_react_virtual.observeElementOffset)(instance, notify);
|
|
1501
311
|
return () => {
|
|
1502
312
|
dispose?.();
|
|
1503
313
|
initialization.current.placed = false;
|
|
@@ -1543,7 +353,7 @@ window.__ModuleLoader__.load({
|
|
|
1543
353
|
scrollPaddingEnd: FADE_PX,
|
|
1544
354
|
overscan: 3,
|
|
1545
355
|
rangeExtractor: (0, react.useCallback)((range) => {
|
|
1546
|
-
const indexes = defaultRangeExtractor(range);
|
|
356
|
+
const indexes = (0, _tanstack_react_virtual.defaultRangeExtractor)(range);
|
|
1547
357
|
if (focusedIndex !== void 0) {
|
|
1548
358
|
const last = Math.min(range.count - 1, focusedIndex + 1);
|
|
1549
359
|
for (let index = Math.max(0, focusedIndex - 1); index <= last; index++) if (!indexes.includes(index)) indexes.push(index);
|
|
@@ -2232,6 +1042,28 @@ window.__ModuleLoader__.load({
|
|
|
2232
1042
|
this.cancelPending();
|
|
2233
1043
|
this.commit(landing, true, this.viewport.latestTurn);
|
|
2234
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Follow the tail on the active fold's animation clock.
|
|
1047
|
+
* @returns whether a fold batch owns the tail movement instead of a separate scroll animation.
|
|
1048
|
+
*/
|
|
1049
|
+
followInputFold() {
|
|
1050
|
+
this.cancelPending();
|
|
1051
|
+
return this.viewport.followInputFold(this.follow);
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Let fold batches read follow intent and commit their tail landings.
|
|
1055
|
+
* @returns a disposer that disconnects this reading policy from the viewport.
|
|
1056
|
+
*/
|
|
1057
|
+
bindFolds() {
|
|
1058
|
+
return this.viewport.bindReader({
|
|
1059
|
+
follow: this.follow,
|
|
1060
|
+
landedAtTail: (landing) => {
|
|
1061
|
+
this.cancelPending();
|
|
1062
|
+
this.commit(landing, true, this.viewport.latestTurn);
|
|
1063
|
+
},
|
|
1064
|
+
pending: () => this.pending
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
2235
1067
|
/** Stop a native follow animation where it is; the next sampled position decides follow intent. */
|
|
2236
1068
|
interruptFollow() {
|
|
2237
1069
|
this.viewport.interruptFollow(this.follow);
|
|
@@ -2409,6 +1241,7 @@ window.__ModuleLoader__.load({
|
|
|
2409
1241
|
(0, react.useLayoutEffect)(() => {
|
|
2410
1242
|
reading.setStore(store);
|
|
2411
1243
|
}, [reading, store]);
|
|
1244
|
+
(0, react.useLayoutEffect)(() => reading.bindFolds(), [reading]);
|
|
2412
1245
|
(0, react.useLayoutEffect)(() => () => {
|
|
2413
1246
|
reading.dispose();
|
|
2414
1247
|
}, [reading]);
|
|
@@ -2459,9 +1292,10 @@ window.__ModuleLoader__.load({
|
|
|
2459
1292
|
//#endregion
|
|
2460
1293
|
//#region lib/types/client/chat/flow-motion.js
|
|
2461
1294
|
/**
|
|
2462
|
-
*
|
|
2463
|
-
* the
|
|
2464
|
-
* Motion is opt-in under `[data-chat-motion]`, respects reduced motion,
|
|
1295
|
+
* Fold transitions owned by one Chat viewport. Every batch containing a closing row moves its boxes and
|
|
1296
|
+
* the scrollport on one frame clock; a batch that only reveals rows, or a viewport without a reading
|
|
1297
|
+
* policy, uses CSS transitions. Motion is opt-in under `[data-chat-motion]`, respects reduced motion,
|
|
1298
|
+
* and clears temporary styles.
|
|
2465
1299
|
*/
|
|
2466
1300
|
const FADE_OUT_MS = 70;
|
|
2467
1301
|
/** The box starts closing while the fade finishes; by then the row is nearly transparent. */
|
|
@@ -2487,18 +1321,159 @@ window.__ModuleLoader__.load({
|
|
|
2487
1321
|
return element.hasAttribute("hidden") || element.dataset.chatMotion === "collapse";
|
|
2488
1322
|
}
|
|
2489
1323
|
/**
|
|
1324
|
+
* Opacity of a revealing box at batch progress, continuing from the share its own transition reached.
|
|
1325
|
+
* @param box - revealing box.
|
|
1326
|
+
* @param progress - shared eased progress from zero to one.
|
|
1327
|
+
* @returns opacity from zero to one.
|
|
1328
|
+
*/
|
|
1329
|
+
function revealedShare(box, progress) {
|
|
1330
|
+
const start = box.height === 0 ? 0 : box.fromHeight / box.height;
|
|
1331
|
+
return start + (1 - start) * progress;
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
2490
1334
|
* Create animation coordination without cross-viewport broadcasts.
|
|
2491
|
-
* @param
|
|
1335
|
+
* @param driver - the viewport's driver for the next batch; null while detached.
|
|
2492
1336
|
* @param foldingChanged - disable or restore this viewport's native scroll anchoring.
|
|
2493
1337
|
* @returns stable callbacks and cleanup for this viewport's animations.
|
|
2494
1338
|
*/
|
|
2495
|
-
function createFlowMotion(
|
|
1339
|
+
function createFlowMotion(driver, foldingChanged) {
|
|
2496
1340
|
const running = /* @__PURE__ */ new Map();
|
|
2497
1341
|
let folding = 0;
|
|
2498
1342
|
const foldIdleListeners = /* @__PURE__ */ new Set();
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
let
|
|
1343
|
+
let batchScheduled = false;
|
|
1344
|
+
const boxes = /* @__PURE__ */ new Map();
|
|
1345
|
+
let frameRequest = null;
|
|
1346
|
+
let batch = false;
|
|
1347
|
+
let cancelled = false;
|
|
1348
|
+
let clearEpoch = 0;
|
|
1349
|
+
let batchCleanup = null;
|
|
1350
|
+
let cancelEmptyBatch = null;
|
|
1351
|
+
/** The batch is committing hidden rows and its final geometry; idle listeners wait until both land. */
|
|
1352
|
+
let settling = false;
|
|
1353
|
+
let anchoringDisabled = false;
|
|
1354
|
+
function cancelInput() {
|
|
1355
|
+
if (batch) cancelled = true;
|
|
1356
|
+
}
|
|
1357
|
+
function resumeInput() {
|
|
1358
|
+
if (batch) cancelled = false;
|
|
1359
|
+
}
|
|
1360
|
+
/** Rows inside a closing ancestor change with it and never join a batch on their own. */
|
|
1361
|
+
function batchMember(box) {
|
|
1362
|
+
return box.element.parentElement?.closest("[data-chat-motion=\"collapse\"]") === null;
|
|
1363
|
+
}
|
|
1364
|
+
function runBatch(current) {
|
|
1365
|
+
for (const box of [...boxes.values()]) {
|
|
1366
|
+
if (!batchMember(box)) continue;
|
|
1367
|
+
const height = box.element.offsetHeight;
|
|
1368
|
+
const marginTop = Number.parseFloat(getComputedStyle(box.element).marginTop) || 0;
|
|
1369
|
+
if (!box.closing) {
|
|
1370
|
+
box.fromHeight = Math.min(height, box.height);
|
|
1371
|
+
box.fromMarginTop = Math.min(marginTop, box.marginTop);
|
|
1372
|
+
continue;
|
|
1373
|
+
}
|
|
1374
|
+
box.height = height;
|
|
1375
|
+
box.marginTop = marginTop;
|
|
1376
|
+
if (height === 0 && marginTop === 0) box.finish();
|
|
1377
|
+
}
|
|
1378
|
+
const owned = [...boxes.values()];
|
|
1379
|
+
const members = owned.filter(batchMember).sort((left, right) => left.element.compareDocumentPosition(right.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
1380
|
+
if (!members.some((box) => box.closing)) return;
|
|
1381
|
+
batch = true;
|
|
1382
|
+
cancelled = false;
|
|
1383
|
+
const travelling = current.begin(members.map((box) => box.closing ? box : {
|
|
1384
|
+
element: box.element,
|
|
1385
|
+
height: box.height - box.fromHeight,
|
|
1386
|
+
marginTop: box.marginTop - box.fromMarginTop,
|
|
1387
|
+
closing: false
|
|
1388
|
+
}));
|
|
1389
|
+
batchCleanup = () => {
|
|
1390
|
+
current.finish(true);
|
|
1391
|
+
};
|
|
1392
|
+
for (const box of owned) box.take();
|
|
1393
|
+
for (const box of members) {
|
|
1394
|
+
box.element.style.transition = "none";
|
|
1395
|
+
box.element.style.height = `${box.closing ? box.height : box.fromHeight}px`;
|
|
1396
|
+
box.element.style.marginTop = `${box.closing ? box.marginTop : box.fromMarginTop}px`;
|
|
1397
|
+
box.element.style.opacity = box.closing ? "1" : String(revealedShare(box, 0));
|
|
1398
|
+
}
|
|
1399
|
+
const memberSet = new Set(members);
|
|
1400
|
+
const settledTravel = /* @__PURE__ */ new Set();
|
|
1401
|
+
const freezeTravelling = () => {
|
|
1402
|
+
for (const element of travelling) {
|
|
1403
|
+
if (settledTravel.has(element)) continue;
|
|
1404
|
+
settledTravel.add(element);
|
|
1405
|
+
element.style.translate = "";
|
|
1406
|
+
for (const box of owned) {
|
|
1407
|
+
if (memberSet.has(box) || !element.contains(box.element)) continue;
|
|
1408
|
+
box.element.style.transition = "none";
|
|
1409
|
+
box.element.style.height = `${box.height}px`;
|
|
1410
|
+
box.element.style.marginTop = `${box.marginTop}px`;
|
|
1411
|
+
box.element.style.opacity = "1";
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
};
|
|
1415
|
+
freezeTravelling();
|
|
1416
|
+
const reduced = typeof matchMedia === "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1417
|
+
let started;
|
|
1418
|
+
let displacement = 0;
|
|
1419
|
+
const settle = (finishCancelled) => {
|
|
1420
|
+
batch = false;
|
|
1421
|
+
batchCleanup = null;
|
|
1422
|
+
cancelEmptyBatch = null;
|
|
1423
|
+
settling = true;
|
|
1424
|
+
try {
|
|
1425
|
+
for (const box of owned) if (boxes.get(box.element) === box) box.finish();
|
|
1426
|
+
current.finish(finishCancelled);
|
|
1427
|
+
} finally {
|
|
1428
|
+
settling = false;
|
|
1429
|
+
}
|
|
1430
|
+
if (folding === 0) notifyIdle();
|
|
1431
|
+
if ([...boxes.values()].some((box) => box.held)) flushBatch();
|
|
1432
|
+
};
|
|
1433
|
+
cancelEmptyBatch = () => {
|
|
1434
|
+
if (members.some((box) => box.closing && boxes.get(box.element) === box)) return;
|
|
1435
|
+
if (frameRequest !== null) cancelAnimationFrame(frameRequest);
|
|
1436
|
+
frameRequest = null;
|
|
1437
|
+
settle(true);
|
|
1438
|
+
};
|
|
1439
|
+
const tick = (now) => {
|
|
1440
|
+
frameRequest = null;
|
|
1441
|
+
started ??= now;
|
|
1442
|
+
const elapsed = reduced ? 160 : now - started;
|
|
1443
|
+
const linear = Math.min(1, Math.max(0, (elapsed - CLOSE_DELAY_MS) / CLOSE_MS));
|
|
1444
|
+
const progress = linear * linear * (3 - 2 * linear);
|
|
1445
|
+
current.prepare(progress, cancelled);
|
|
1446
|
+
freezeTravelling();
|
|
1447
|
+
for (const box of members) {
|
|
1448
|
+
if (boxes.get(box.element) !== box) continue;
|
|
1449
|
+
if (box.closing) {
|
|
1450
|
+
box.element.style.height = `${box.height * (1 - progress)}px`;
|
|
1451
|
+
box.element.style.marginTop = `${box.marginTop * (1 - progress)}px`;
|
|
1452
|
+
box.element.style.opacity = travelling.has(box.element) ? "1" : String(Math.max(0, 1 - elapsed / FADE_OUT_MS));
|
|
1453
|
+
} else {
|
|
1454
|
+
box.element.style.height = `${box.fromHeight + (box.height - box.fromHeight) * progress}px`;
|
|
1455
|
+
box.element.style.marginTop = `${box.fromMarginTop + (box.marginTop - box.fromMarginTop) * progress}px`;
|
|
1456
|
+
box.element.style.opacity = String(revealedShare(box, progress));
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
displacement = current.frame(progress, cancelled);
|
|
1460
|
+
let removedBefore = 0;
|
|
1461
|
+
for (const box of members) {
|
|
1462
|
+
if (boxes.get(box.element) !== box) continue;
|
|
1463
|
+
if (box.closing) {
|
|
1464
|
+
if (!travelling.has(box.element)) box.element.style.translate = `0 ${displacement + removedBefore}px`;
|
|
1465
|
+
removedBefore += (box.height + box.marginTop) * progress;
|
|
1466
|
+
} else removedBefore -= (box.height - box.fromHeight + box.marginTop - box.fromMarginTop) * progress;
|
|
1467
|
+
}
|
|
1468
|
+
if (linear < 1) {
|
|
1469
|
+
frameRequest = requestAnimationFrame(tick);
|
|
1470
|
+
return;
|
|
1471
|
+
}
|
|
1472
|
+
settle(cancelled);
|
|
1473
|
+
};
|
|
1474
|
+
if (reduced) tick(0);
|
|
1475
|
+
else frameRequest = requestAnimationFrame(tick);
|
|
1476
|
+
}
|
|
2502
1477
|
function foldActive() {
|
|
2503
1478
|
return folding > 0;
|
|
2504
1479
|
}
|
|
@@ -2509,30 +1484,41 @@ window.__ModuleLoader__.load({
|
|
|
2509
1484
|
foldIdleListeners.delete(listener);
|
|
2510
1485
|
};
|
|
2511
1486
|
}
|
|
2512
|
-
function
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
1487
|
+
function flushBatch() {
|
|
1488
|
+
batchScheduled = false;
|
|
1489
|
+
if (batch) return;
|
|
1490
|
+
const current = [...boxes.values()].some((box) => box.closing) ? driver() : null;
|
|
1491
|
+
if (current !== null) {
|
|
1492
|
+
runBatch(current);
|
|
1493
|
+
return;
|
|
2519
1494
|
}
|
|
2520
|
-
|
|
2521
|
-
if (
|
|
1495
|
+
const reduced = typeof matchMedia === "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1496
|
+
for (const box of [...boxes.values()]) if (reduced || box.held && box.closing) box.finish();
|
|
1497
|
+
else if (box.held) box.release();
|
|
2522
1498
|
}
|
|
2523
|
-
function
|
|
2524
|
-
if (
|
|
2525
|
-
|
|
2526
|
-
|
|
1499
|
+
function scheduleBatch() {
|
|
1500
|
+
if (batchScheduled) return;
|
|
1501
|
+
batchScheduled = true;
|
|
1502
|
+
const epoch = clearEpoch;
|
|
1503
|
+
queueMicrotask(() => {
|
|
1504
|
+
if (epoch === clearEpoch) flushBatch();
|
|
1505
|
+
});
|
|
2527
1506
|
}
|
|
2528
1507
|
function foldStarted() {
|
|
2529
1508
|
folding += 1;
|
|
2530
|
-
if (folding
|
|
1509
|
+
if (folding !== 1 || anchoringDisabled) return;
|
|
1510
|
+
anchoringDisabled = true;
|
|
1511
|
+
foldingChanged(true);
|
|
2531
1512
|
}
|
|
2532
1513
|
function foldEnded() {
|
|
2533
1514
|
folding = Math.max(0, folding - 1);
|
|
2534
|
-
if (folding
|
|
2535
|
-
|
|
1515
|
+
if (folding === 0 && !settling) notifyIdle();
|
|
1516
|
+
}
|
|
1517
|
+
function notifyIdle() {
|
|
1518
|
+
if (anchoringDisabled) {
|
|
1519
|
+
anchoringDisabled = false;
|
|
1520
|
+
foldingChanged(false);
|
|
1521
|
+
}
|
|
2536
1522
|
const listeners = [...foldIdleListeners];
|
|
2537
1523
|
foldIdleListeners.clear();
|
|
2538
1524
|
for (const listener of listeners) listener();
|
|
@@ -2541,17 +1527,19 @@ window.__ModuleLoader__.load({
|
|
|
2541
1527
|
element.removeEventListener("transitionend", onEnd);
|
|
2542
1528
|
clearTimeout(timer);
|
|
2543
1529
|
running.delete(element);
|
|
1530
|
+
boxes.delete(element);
|
|
2544
1531
|
const { style } = element;
|
|
2545
1532
|
style.height = "";
|
|
2546
1533
|
style.marginTop = "";
|
|
2547
1534
|
style.opacity = "";
|
|
2548
1535
|
style.overflow = "";
|
|
2549
1536
|
style.transition = "";
|
|
1537
|
+
style.translate = "";
|
|
2550
1538
|
delete element.dataset.chatMotion;
|
|
2551
1539
|
}
|
|
2552
1540
|
function cancelMotion(element) {
|
|
2553
|
-
pendingReserve.delete(element);
|
|
2554
1541
|
running.get(element)?.();
|
|
1542
|
+
cancelEmptyBatch?.();
|
|
2555
1543
|
}
|
|
2556
1544
|
function collapse(element, done) {
|
|
2557
1545
|
cancelMotion(element);
|
|
@@ -2562,19 +1550,21 @@ window.__ModuleLoader__.load({
|
|
|
2562
1550
|
return;
|
|
2563
1551
|
}
|
|
2564
1552
|
const { style } = element;
|
|
1553
|
+
const held = batch;
|
|
2565
1554
|
element.dataset.chatMotion = "collapse";
|
|
2566
1555
|
foldStarted();
|
|
2567
|
-
|
|
2568
|
-
scheduleReserve();
|
|
1556
|
+
scheduleBatch();
|
|
2569
1557
|
style.transition = "none";
|
|
2570
1558
|
style.overflow = "hidden";
|
|
2571
1559
|
style.height = `${height}px`;
|
|
2572
1560
|
style.marginTop = `${marginTop}px`;
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
1561
|
+
if (!held) {
|
|
1562
|
+
element.offsetHeight;
|
|
1563
|
+
style.transition = `opacity ${FADE_OUT_MS}ms ${EASING}, height ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms, margin-top ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms`;
|
|
1564
|
+
style.opacity = "0";
|
|
1565
|
+
style.height = "0px";
|
|
1566
|
+
style.marginTop = "0px";
|
|
1567
|
+
}
|
|
2578
1568
|
const finish = () => {
|
|
2579
1569
|
if (running.get(element) !== cancel) return;
|
|
2580
1570
|
clearMotion(element, onEnd, timer);
|
|
@@ -2584,21 +1574,35 @@ window.__ModuleLoader__.load({
|
|
|
2584
1574
|
const onEnd = (event) => {
|
|
2585
1575
|
if (event.target === element && event.propertyName === "height") finish();
|
|
2586
1576
|
};
|
|
2587
|
-
const timer = setTimeout(finish, 240);
|
|
1577
|
+
const timer = held ? void 0 : setTimeout(finish, 240);
|
|
2588
1578
|
const cancel = () => {
|
|
2589
1579
|
clearMotion(element, onEnd, timer);
|
|
2590
1580
|
foldEnded();
|
|
2591
1581
|
};
|
|
2592
|
-
element.addEventListener("transitionend", onEnd);
|
|
1582
|
+
if (!held) element.addEventListener("transitionend", onEnd);
|
|
2593
1583
|
running.set(element, cancel);
|
|
1584
|
+
boxes.set(element, {
|
|
1585
|
+
element,
|
|
1586
|
+
height,
|
|
1587
|
+
marginTop,
|
|
1588
|
+
fromHeight: height,
|
|
1589
|
+
fromMarginTop: marginTop,
|
|
1590
|
+
closing: true,
|
|
1591
|
+
held,
|
|
1592
|
+
finish,
|
|
1593
|
+
release: () => {},
|
|
1594
|
+
take: () => {
|
|
1595
|
+
element.removeEventListener("transitionend", onEnd);
|
|
1596
|
+
clearTimeout(timer);
|
|
1597
|
+
}
|
|
1598
|
+
});
|
|
2594
1599
|
}
|
|
2595
1600
|
function reveal(element) {
|
|
2596
1601
|
cancelMotion(element);
|
|
2597
1602
|
const height = element.offsetHeight;
|
|
2598
1603
|
if (height === 0) return;
|
|
2599
1604
|
const marginTop = Number.parseFloat(getComputedStyle(element).marginTop) || 0;
|
|
2600
|
-
|
|
2601
|
-
scheduleReserve();
|
|
1605
|
+
scheduleBatch();
|
|
2602
1606
|
const { style } = element;
|
|
2603
1607
|
element.dataset.chatMotion = "reveal";
|
|
2604
1608
|
style.transition = "none";
|
|
@@ -2606,11 +1610,6 @@ window.__ModuleLoader__.load({
|
|
|
2606
1610
|
style.opacity = "0";
|
|
2607
1611
|
style.height = "0px";
|
|
2608
1612
|
style.marginTop = "0px";
|
|
2609
|
-
element.offsetHeight;
|
|
2610
|
-
style.transition = `height ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms, margin-top ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms, opacity ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms`;
|
|
2611
|
-
style.height = `${height}px`;
|
|
2612
|
-
style.marginTop = `${marginTop}px`;
|
|
2613
|
-
style.opacity = "1";
|
|
2614
1613
|
const finish = () => {
|
|
2615
1614
|
if (running.get(element) !== finish) return;
|
|
2616
1615
|
clearMotion(element, onEnd, timer);
|
|
@@ -2618,14 +1617,50 @@ window.__ModuleLoader__.load({
|
|
|
2618
1617
|
const onEnd = (event) => {
|
|
2619
1618
|
if (event.target === element && event.propertyName === "height") finish();
|
|
2620
1619
|
};
|
|
2621
|
-
|
|
2622
|
-
|
|
1620
|
+
let timer;
|
|
1621
|
+
const startTransition = () => {
|
|
1622
|
+
element.offsetHeight;
|
|
1623
|
+
style.transition = `height ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms, margin-top ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms, opacity ${CLOSE_MS}ms ${EASING} ${CLOSE_DELAY_MS}ms`;
|
|
1624
|
+
style.height = `${height}px`;
|
|
1625
|
+
style.marginTop = `${marginTop}px`;
|
|
1626
|
+
style.opacity = "1";
|
|
1627
|
+
timer = setTimeout(finish, 240);
|
|
1628
|
+
element.addEventListener("transitionend", onEnd);
|
|
1629
|
+
};
|
|
1630
|
+
const held = batch;
|
|
1631
|
+
if (!held) startTransition();
|
|
2623
1632
|
running.set(element, finish);
|
|
1633
|
+
const box = {
|
|
1634
|
+
element,
|
|
1635
|
+
height,
|
|
1636
|
+
marginTop,
|
|
1637
|
+
fromHeight: 0,
|
|
1638
|
+
fromMarginTop: 0,
|
|
1639
|
+
closing: false,
|
|
1640
|
+
held,
|
|
1641
|
+
finish,
|
|
1642
|
+
release: () => {
|
|
1643
|
+
box.held = false;
|
|
1644
|
+
startTransition();
|
|
1645
|
+
},
|
|
1646
|
+
take: () => {
|
|
1647
|
+
element.removeEventListener("transitionend", onEnd);
|
|
1648
|
+
clearTimeout(timer);
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
boxes.set(element, box);
|
|
2624
1652
|
}
|
|
2625
1653
|
function clear() {
|
|
1654
|
+
clearEpoch++;
|
|
1655
|
+
batchScheduled = false;
|
|
1656
|
+
batch = false;
|
|
1657
|
+
cancelled = false;
|
|
1658
|
+
if (frameRequest !== null) cancelAnimationFrame(frameRequest);
|
|
1659
|
+
frameRequest = null;
|
|
1660
|
+
batchCleanup?.();
|
|
1661
|
+
batchCleanup = null;
|
|
1662
|
+
cancelEmptyBatch = null;
|
|
2626
1663
|
foldIdleListeners.clear();
|
|
2627
|
-
pendingReserve.clear();
|
|
2628
|
-
pendingGrowth = 0;
|
|
2629
1664
|
for (const cancel of [...running.values()]) cancel();
|
|
2630
1665
|
}
|
|
2631
1666
|
return {
|
|
@@ -2634,7 +1669,10 @@ window.__ModuleLoader__.load({
|
|
|
2634
1669
|
cancelMotion,
|
|
2635
1670
|
foldActive,
|
|
2636
1671
|
onFoldIdle,
|
|
2637
|
-
|
|
1672
|
+
cancelInput,
|
|
1673
|
+
resumeInput,
|
|
1674
|
+
clear,
|
|
1675
|
+
inputActive: () => batch || batchScheduled && [...boxes.values()].some((box) => box.closing && batchMember(box))
|
|
2638
1676
|
};
|
|
2639
1677
|
}
|
|
2640
1678
|
function useFlowTransition(motion, grow) {
|
|
@@ -2644,11 +1682,12 @@ window.__ModuleLoader__.load({
|
|
|
2644
1682
|
current.current = null;
|
|
2645
1683
|
}, [motion]);
|
|
2646
1684
|
const transition = (0, react.useCallback)((element, hidden, commit) => {
|
|
2647
|
-
const
|
|
1685
|
+
const mounted = current.current === element;
|
|
1686
|
+
const animate = mounted && motionEnabled(element);
|
|
2648
1687
|
current.current = element;
|
|
2649
1688
|
if (hidden) {
|
|
2650
1689
|
if (hiddenOrCollapsing(element)) return;
|
|
2651
|
-
if (
|
|
1690
|
+
if (mounted && element.closest(MOTION_SCOPE) !== null && motion !== void 0) motion.collapse(element, commit);
|
|
2652
1691
|
else commit();
|
|
2653
1692
|
return;
|
|
2654
1693
|
}
|
|
@@ -2720,10 +1759,13 @@ window.__ModuleLoader__.load({
|
|
|
2720
1759
|
landing: null
|
|
2721
1760
|
};
|
|
2722
1761
|
paging = null;
|
|
1762
|
+
reader = null;
|
|
1763
|
+
/** The pending or running fold batch lands at the tail. */
|
|
1764
|
+
tailRequested = false;
|
|
1765
|
+
/** Switches the running batch to a tail landing; null while no batch runs. */
|
|
1766
|
+
retarget = null;
|
|
2723
1767
|
/** Transition state and row callbacks owned by this viewport's attachment. */
|
|
2724
|
-
motion = createFlowMotion((
|
|
2725
|
-
this.reserveBelow(px);
|
|
2726
|
-
}, (active) => {
|
|
1768
|
+
motion = createFlowMotion(() => this.foldDriver(), (active) => {
|
|
2727
1769
|
if (this.elements !== null) this.elements.scroller.style.overflowAnchor = active ? "none" : "";
|
|
2728
1770
|
});
|
|
2729
1771
|
/**
|
|
@@ -2778,6 +1820,8 @@ window.__ModuleLoader__.load({
|
|
|
2778
1820
|
this.observer = null;
|
|
2779
1821
|
this.elements = null;
|
|
2780
1822
|
this.events = null;
|
|
1823
|
+
this.tailRequested = false;
|
|
1824
|
+
this.retarget = null;
|
|
2781
1825
|
this.turns = [];
|
|
2782
1826
|
this.observation = {
|
|
2783
1827
|
top: 0,
|
|
@@ -2824,13 +1868,239 @@ window.__ModuleLoader__.load({
|
|
|
2824
1868
|
if (spacer.style.height !== next) spacer.style.height = next;
|
|
2825
1869
|
}
|
|
2826
1870
|
/**
|
|
2827
|
-
*
|
|
2828
|
-
*
|
|
2829
|
-
* @
|
|
1871
|
+
* Connect the reading policy that fold batches consult.
|
|
1872
|
+
* @param reader - follow intent and the tail-landing commit.
|
|
1873
|
+
* @returns a disposer that disconnects only this reader.
|
|
1874
|
+
*/
|
|
1875
|
+
bindReader(reader) {
|
|
1876
|
+
this.reader = reader;
|
|
1877
|
+
return () => {
|
|
1878
|
+
if (this.reader === reader) this.reader = null;
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Land the pending or running fold batch at the tail instead of starting a separate scroll.
|
|
1883
|
+
* @param follow - follow controller whose native animation yields to the batch.
|
|
1884
|
+
* @returns whether a fold owns the tail movement.
|
|
1885
|
+
*/
|
|
1886
|
+
followInputFold(follow) {
|
|
1887
|
+
if (this.elements === null || this.reader === null || !this.motion.inputActive()) return false;
|
|
1888
|
+
this.interruptFollow(follow);
|
|
1889
|
+
this.tailRequested = true;
|
|
1890
|
+
this.retarget?.();
|
|
1891
|
+
return true;
|
|
1892
|
+
}
|
|
1893
|
+
/**
|
|
1894
|
+
* Drive one fold batch on its frame clock. A tail landing ends at the floor, never above the reader's
|
|
1895
|
+
* compensated position; a reader landing keeps the visible content still. Both install only the room
|
|
1896
|
+
* the landing lacks.
|
|
1897
|
+
* @returns the batch driver, or null while detached or without a reading policy.
|
|
1898
|
+
*/
|
|
1899
|
+
foldDriver() {
|
|
1900
|
+
const elements = this.elements;
|
|
1901
|
+
const reader = this.reader;
|
|
1902
|
+
if (elements === null || reader === null) return null;
|
|
1903
|
+
const { follow } = reader;
|
|
1904
|
+
let tail = false;
|
|
1905
|
+
let start = 0;
|
|
1906
|
+
let base = 0;
|
|
1907
|
+
let target = 0;
|
|
1908
|
+
let removed = 0;
|
|
1909
|
+
let growth = 0;
|
|
1910
|
+
let initialHeight = 0;
|
|
1911
|
+
let finalRoom = 0;
|
|
1912
|
+
let previousColumnHeight = 0;
|
|
1913
|
+
let previousProgress = 0;
|
|
1914
|
+
let segmentProgress = 0;
|
|
1915
|
+
let segmentTop = 0;
|
|
1916
|
+
let written = 0;
|
|
1917
|
+
const closing = [];
|
|
1918
|
+
const travelling = /* @__PURE__ */ new Set();
|
|
1919
|
+
let reference = null;
|
|
1920
|
+
let referenceTop = 0;
|
|
1921
|
+
let viewportTop = 0;
|
|
1922
|
+
const screenTop = (element) => element.getBoundingClientRect().top - viewportTop;
|
|
1923
|
+
const aim = () => {
|
|
1924
|
+
const finalHeight = initialHeight - removed + growth;
|
|
1925
|
+
const height = elements.scroller.clientHeight;
|
|
1926
|
+
target = tail ? Math.max(base, finalHeight - height, 0) : base;
|
|
1927
|
+
finalRoom = target === 0 ? 0 : Math.max(0, target + height - finalHeight);
|
|
1928
|
+
};
|
|
1929
|
+
const restart = () => {
|
|
1930
|
+
segmentTop = elements.scroller.scrollTop;
|
|
1931
|
+
segmentProgress = previousProgress;
|
|
1932
|
+
};
|
|
1933
|
+
const automatic = (cancelled) => !(cancelled && tail);
|
|
1934
|
+
const position = (progress, cancelled) => {
|
|
1935
|
+
if (!automatic(cancelled)) return elements.scroller.scrollTop;
|
|
1936
|
+
const remaining = segmentProgress === 1 ? 1 : (progress - segmentProgress) / (1 - segmentProgress);
|
|
1937
|
+
return segmentTop + (target - segmentTop) * remaining;
|
|
1938
|
+
};
|
|
1939
|
+
const room = (top, progress, cancelled) => Math.max(automatic(cancelled) ? finalRoom : 0, top + elements.scroller.clientHeight - (initialHeight + (growth - removed) * progress));
|
|
1940
|
+
return {
|
|
1941
|
+
begin: (boxes) => {
|
|
1942
|
+
tail = this.tailRequested || follow.active && !reader.pending();
|
|
1943
|
+
this.tailRequested = false;
|
|
1944
|
+
viewportTop = elements.scroller.getBoundingClientRect().top;
|
|
1945
|
+
start = elements.scroller.scrollTop;
|
|
1946
|
+
const originalRoom = this.spacerHeight();
|
|
1947
|
+
initialHeight = Math.max(elements.column.offsetHeight, elements.scroller.scrollHeight - originalRoom);
|
|
1948
|
+
let above = 0;
|
|
1949
|
+
const below = [];
|
|
1950
|
+
for (const box of boxes) {
|
|
1951
|
+
const amount = box.height + box.marginTop;
|
|
1952
|
+
const top = box.element.getBoundingClientRect().top - box.marginTop;
|
|
1953
|
+
if (box.closing) {
|
|
1954
|
+
removed += amount;
|
|
1955
|
+
above += Math.max(0, Math.min(amount, viewportTop - top));
|
|
1956
|
+
if (top >= viewportTop) below.push(box.element);
|
|
1957
|
+
closing.push(box);
|
|
1958
|
+
} else {
|
|
1959
|
+
growth += amount;
|
|
1960
|
+
if (top < viewportTop) above -= amount;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
if (!tail) reference = this.readingReference();
|
|
1964
|
+
const referenceBefore = reference === null ? 0 : screenTop(reference);
|
|
1965
|
+
elements.column.dataset.inputFold = "";
|
|
1966
|
+
if (reference !== null) {
|
|
1967
|
+
referenceTop = screenTop(reference);
|
|
1968
|
+
above -= referenceTop - referenceBefore;
|
|
1969
|
+
}
|
|
1970
|
+
base = Math.max(0, start - above);
|
|
1971
|
+
segmentTop = start;
|
|
1972
|
+
written = start;
|
|
1973
|
+
previousColumnHeight = elements.column.offsetHeight;
|
|
1974
|
+
aim();
|
|
1975
|
+
this.setSpacer(Math.max(originalRoom, finalRoom, removed));
|
|
1976
|
+
if (tail) follow.setFollowing(true);
|
|
1977
|
+
this.retarget = () => {
|
|
1978
|
+
tail = true;
|
|
1979
|
+
follow.setFollowing(true);
|
|
1980
|
+
this.motion.resumeInput();
|
|
1981
|
+
aim();
|
|
1982
|
+
restart();
|
|
1983
|
+
if (target <= segmentTop) return;
|
|
1984
|
+
for (const box of closing) {
|
|
1985
|
+
const shift = Number.parseFloat(box.element.style.translate.split(" ")[1] ?? "") || 0;
|
|
1986
|
+
if (box.element.getBoundingClientRect().top - shift - box.marginTop >= viewportTop) travelling.add(box.element);
|
|
1987
|
+
}
|
|
1988
|
+
};
|
|
1989
|
+
if (tail && target > start) for (const element of below) travelling.add(element);
|
|
1990
|
+
return travelling;
|
|
1991
|
+
},
|
|
1992
|
+
prepare: (progress, cancelled) => {
|
|
1993
|
+
if (this.elements !== elements) return;
|
|
1994
|
+
if (!tail) {
|
|
1995
|
+
const drift = elements.scroller.scrollTop - written;
|
|
1996
|
+
if (Math.abs(drift) > .5) {
|
|
1997
|
+
base = Math.max(0, base + drift);
|
|
1998
|
+
segmentTop += drift;
|
|
1999
|
+
referenceTop -= drift;
|
|
2000
|
+
aim();
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
const added = elements.column.offsetHeight - previousColumnHeight;
|
|
2004
|
+
if (added !== 0) {
|
|
2005
|
+
initialHeight += added;
|
|
2006
|
+
aim();
|
|
2007
|
+
restart();
|
|
2008
|
+
}
|
|
2009
|
+
const top = position(progress, cancelled);
|
|
2010
|
+
this.setSpacer(Math.max(this.spacerHeight(), room(top, progress, cancelled)));
|
|
2011
|
+
},
|
|
2012
|
+
frame: (progress, cancelled) => {
|
|
2013
|
+
if (this.elements !== elements) return 0;
|
|
2014
|
+
const top = position(progress, cancelled);
|
|
2015
|
+
elements.scroller.scrollTop = top;
|
|
2016
|
+
this.setSpacer(room(top, progress, cancelled));
|
|
2017
|
+
written = elements.scroller.scrollTop;
|
|
2018
|
+
if (reference !== null && progress === 1) referenceTop = screenTop(reference);
|
|
2019
|
+
if (automatic(cancelled)) this.observation = {
|
|
2020
|
+
top: written,
|
|
2021
|
+
landing: null
|
|
2022
|
+
};
|
|
2023
|
+
previousColumnHeight = elements.column.offsetHeight;
|
|
2024
|
+
previousProgress = progress;
|
|
2025
|
+
return written - start;
|
|
2026
|
+
},
|
|
2027
|
+
finish: (cancelled) => {
|
|
2028
|
+
this.retarget = null;
|
|
2029
|
+
this.tailRequested = false;
|
|
2030
|
+
if (this.elements !== elements) return;
|
|
2031
|
+
elements.column.offsetHeight;
|
|
2032
|
+
delete elements.column.dataset.inputFold;
|
|
2033
|
+
if (!tail || cancelled) {
|
|
2034
|
+
if (!tail && reference?.isConnected === true && reference.closest("[hidden]") === null) {
|
|
2035
|
+
const shift = screenTop(reference) - referenceTop;
|
|
2036
|
+
if (Math.abs(shift) > .5) {
|
|
2037
|
+
const top = elements.scroller.scrollTop + shift;
|
|
2038
|
+
const content = elements.scroller.scrollHeight - this.spacerHeight();
|
|
2039
|
+
this.setSpacer(Math.max(this.spacerHeight(), top + elements.scroller.clientHeight - content));
|
|
2040
|
+
elements.scroller.scrollTop = top;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
const metrics = scrollMetrics(elements.scroller);
|
|
2044
|
+
const height = elements.scroller.scrollHeight - this.spacerHeight();
|
|
2045
|
+
this.setSpacer(metrics.top === 0 ? 0 : Math.max(0, metrics.top + metrics.height - height));
|
|
2046
|
+
if (tail) this.invalidate();
|
|
2047
|
+
else this.observation = {
|
|
2048
|
+
top: elements.scroller.scrollTop,
|
|
2049
|
+
landing: null
|
|
2050
|
+
};
|
|
2051
|
+
return;
|
|
2052
|
+
}
|
|
2053
|
+
const content = elements.scroller.scrollHeight - this.spacerHeight();
|
|
2054
|
+
const clientHeight = elements.scroller.clientHeight;
|
|
2055
|
+
const top = Math.max(target, content - clientHeight, 0);
|
|
2056
|
+
this.setSpacer(top === 0 ? 0 : Math.max(0, top + clientHeight - content));
|
|
2057
|
+
elements.scroller.scrollTop = top;
|
|
2058
|
+
const metrics = scrollMetrics(elements.scroller);
|
|
2059
|
+
const landing = {
|
|
2060
|
+
metrics,
|
|
2061
|
+
position: null,
|
|
2062
|
+
turn: this.latestTurn
|
|
2063
|
+
};
|
|
2064
|
+
this.observation = {
|
|
2065
|
+
top: metrics.top,
|
|
2066
|
+
landing
|
|
2067
|
+
};
|
|
2068
|
+
reader.landedAtTail(landing);
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Find the first visible top-level row at or below the scrollport top that holds no batch box.
|
|
2074
|
+
* Binary search over the ordered top-level rows reads O(log n) boxes.
|
|
2075
|
+
* @returns the reference row, or null when every visible row folds.
|
|
2830
2076
|
*/
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2077
|
+
readingReference() {
|
|
2078
|
+
const elements = this.elements;
|
|
2079
|
+
if (elements === null) return null;
|
|
2080
|
+
const viewport = elements.scroller.getBoundingClientRect();
|
|
2081
|
+
const rows = (elements.column.querySelector(":scope > [data-slot=\"conversation.chat.flow\"]") ?? elements.column).children;
|
|
2082
|
+
let low = 0;
|
|
2083
|
+
let high = rows.length;
|
|
2084
|
+
while (low < high) {
|
|
2085
|
+
const middle = low + high >>> 1;
|
|
2086
|
+
if (rows[middle].getBoundingClientRect().bottom > viewport.top) high = middle;
|
|
2087
|
+
else low = middle + 1;
|
|
2088
|
+
}
|
|
2089
|
+
for (let index = low; index < rows.length; index++) {
|
|
2090
|
+
const row = rows[index];
|
|
2091
|
+
if (row.hasAttribute("hidden")) continue;
|
|
2092
|
+
const rect = row.getBoundingClientRect();
|
|
2093
|
+
if (rect.top >= viewport.bottom) return null;
|
|
2094
|
+
if (rect.height === 0 || rect.bottom <= viewport.top) continue;
|
|
2095
|
+
if (row.hasAttribute("data-chat-motion") || row.querySelector("[data-chat-motion]") !== null) continue;
|
|
2096
|
+
return row;
|
|
2097
|
+
}
|
|
2098
|
+
return null;
|
|
2099
|
+
}
|
|
2100
|
+
/** Clear fold reservations after a display-mode change, allowing the scroll range to shrink. */
|
|
2101
|
+
resetBelow() {
|
|
2102
|
+
this.setSpacer(0);
|
|
2103
|
+
this.invalidate();
|
|
2834
2104
|
}
|
|
2835
2105
|
/**
|
|
2836
2106
|
* Give reserved room back after acknowledged scrolling or content growth without clamping the reader.
|
|
@@ -3218,13 +2488,14 @@ window.__ModuleLoader__.load({
|
|
|
3218
2488
|
//#region lib/types/client/chat/use-chat-scroll.js
|
|
3219
2489
|
/** Composes viewport operations, reading policy, and history navigation for Chat. */
|
|
3220
2490
|
/**
|
|
3221
|
-
* Coordinate scroll policy after Chat content commits.
|
|
2491
|
+
* Coordinate scroll policy after Chat content commits. Initial history must be ready
|
|
2492
|
+
* before automatic scroll or resize handling can initialize reading state and fold motion.
|
|
3222
2493
|
* New submitted input supersedes pending reader sampling.
|
|
3223
2494
|
* @param input - current Chat content, scroll memory, and history operations.
|
|
3224
2495
|
* @returns element refs, visible reading state, and navigation callbacks.
|
|
3225
2496
|
*/
|
|
3226
2497
|
function useChatScroll(input) {
|
|
3227
|
-
const { ready, order, firstSeq, lastKey, lastIsUser, steeringId, submissionId, running, deferCompletedTurns, loadedTurns, chatScroll, hasMore, loadingOlder, loadOlder, loadThrough } = input;
|
|
2498
|
+
const { ready, order, firstSeq, lastKey, lastIsUser, steeringId, submissionId, running, deferCompletedTurns, loadedTurns, chatScroll, hasMore, loadingOlder, loadOlder, loadThrough, transcriptView } = input;
|
|
3228
2499
|
const { viewport, listRef, columnRef } = useChatViewport();
|
|
3229
2500
|
const { reading, state } = useChatReading(viewport, chatScroll, loadedTurns.at(-1)?.turn ?? null);
|
|
3230
2501
|
const navigationInput = (0, react.useMemo)(() => ({
|
|
@@ -3246,28 +2517,12 @@ window.__ModuleLoader__.load({
|
|
|
3246
2517
|
applied: null,
|
|
3247
2518
|
opened: false
|
|
3248
2519
|
});
|
|
3249
|
-
const cancelFollow = (0, react.useRef)(null);
|
|
3250
|
-
const clearPendingFollow = (0, react.useCallback)(() => {
|
|
3251
|
-
cancelFollow.current?.();
|
|
3252
|
-
cancelFollow.current = null;
|
|
3253
|
-
}, []);
|
|
3254
2520
|
const cancelPendingFollow = (0, react.useCallback)(() => {
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
cancelFollow.current = null;
|
|
3258
|
-
});
|
|
3259
|
-
}, [clearPendingFollow, viewport]);
|
|
3260
|
-
const followAfterFold = (0, react.useCallback)(() => {
|
|
3261
|
-
if (cancelFollow.current !== null) return;
|
|
3262
|
-
reading.interruptFollow();
|
|
3263
|
-
cancelFollow.current = viewport.motion.onFoldIdle(() => {
|
|
3264
|
-
cancelFollow.current = null;
|
|
3265
|
-
viewport.reclaimBelow();
|
|
3266
|
-
if (content.current.input.deferCompletedTurns) reading.followTail("smooth");
|
|
3267
|
-
});
|
|
3268
|
-
}, [reading, viewport]);
|
|
2521
|
+
viewport.motion.cancelInput();
|
|
2522
|
+
}, [viewport]);
|
|
3269
2523
|
const processContent = (0, react.useCallback)(() => {
|
|
3270
2524
|
const current = content.current.input;
|
|
2525
|
+
if (!current.ready && !content.current.opened) return;
|
|
3271
2526
|
const previous = content.current.applied;
|
|
3272
2527
|
const ownInput = current.lastIsUser && current.lastKey !== previous?.lastKey || current.steeringId !== null && current.steeringId !== previous?.steeringId && current.steeringId !== previous?.submissionId || current.submissionId !== null && current.submissionId !== previous?.submissionId && current.submissionId !== previous?.steeringId;
|
|
3273
2528
|
if (reading.pending && !ownInput) return;
|
|
@@ -3279,10 +2534,9 @@ window.__ModuleLoader__.load({
|
|
|
3279
2534
|
return;
|
|
3280
2535
|
}
|
|
3281
2536
|
if (ownInput) {
|
|
3282
|
-
clearPendingFollow();
|
|
3283
2537
|
navigation.cancel();
|
|
3284
|
-
if (current.deferCompletedTurns &&
|
|
3285
|
-
|
|
2538
|
+
if (current.deferCompletedTurns && reading.followInputFold()) return;
|
|
2539
|
+
reading.followTail(current.deferCompletedTurns ? "smooth" : "instant");
|
|
3286
2540
|
return;
|
|
3287
2541
|
}
|
|
3288
2542
|
if (navigation.contentCommitted()) {
|
|
@@ -3291,19 +2545,14 @@ window.__ModuleLoader__.load({
|
|
|
3291
2545
|
}
|
|
3292
2546
|
if ((previous === null || current.ready !== previous.ready || current.firstSeq !== previous.firstSeq || current.lastKey !== previous.lastKey || current.order.length !== previous.order.length || current.running !== previous.running || current.steeringId !== previous.steeringId || current.submissionId !== previous.submissionId) && reading.followingTail) {
|
|
3293
2547
|
navigation.cancel();
|
|
3294
|
-
if (current.deferCompletedTurns &&
|
|
3295
|
-
|
|
2548
|
+
if (current.deferCompletedTurns && reading.followInputFold()) return;
|
|
2549
|
+
reading.followTail();
|
|
3296
2550
|
} else navigation.reconcile();
|
|
3297
|
-
}, [
|
|
3298
|
-
viewport,
|
|
3299
|
-
reading,
|
|
3300
|
-
navigation,
|
|
3301
|
-
followAfterFold,
|
|
3302
|
-
clearPendingFollow
|
|
3303
|
-
]);
|
|
2551
|
+
}, [reading, navigation]);
|
|
3304
2552
|
(0, react.useLayoutEffect)(() => {
|
|
3305
2553
|
const disconnectViewport = viewport.connect({
|
|
3306
2554
|
scroll: (event) => {
|
|
2555
|
+
if (!content.current.opened) return;
|
|
3307
2556
|
if (!event.movedByReader && viewport.motion.foldActive()) return;
|
|
3308
2557
|
reading.onScroll(event);
|
|
3309
2558
|
},
|
|
@@ -3319,13 +2568,12 @@ window.__ModuleLoader__.load({
|
|
|
3319
2568
|
reading.interruptFollow();
|
|
3320
2569
|
},
|
|
3321
2570
|
resize: () => {
|
|
2571
|
+
if (!content.current.opened) return;
|
|
3322
2572
|
if (navigation.contentCommitted()) {
|
|
3323
2573
|
navigation.reconcile();
|
|
3324
2574
|
return;
|
|
3325
2575
|
}
|
|
3326
|
-
if (content.current.input.deferCompletedTurns
|
|
3327
|
-
if (!reading.pending && reading.followingTail) followAfterFold();
|
|
3328
|
-
} else reading.onResize();
|
|
2576
|
+
if (!content.current.input.deferCompletedTurns || !viewport.motion.foldActive()) reading.onResize();
|
|
3329
2577
|
navigation.reconcile();
|
|
3330
2578
|
}
|
|
3331
2579
|
});
|
|
@@ -3334,7 +2582,6 @@ window.__ModuleLoader__.load({
|
|
|
3334
2582
|
processContent();
|
|
3335
2583
|
});
|
|
3336
2584
|
return () => {
|
|
3337
|
-
clearPendingFollow();
|
|
3338
2585
|
disconnectViewport();
|
|
3339
2586
|
disconnectReading();
|
|
3340
2587
|
content.current.opened = false;
|
|
@@ -3345,9 +2592,7 @@ window.__ModuleLoader__.load({
|
|
|
3345
2592
|
reading,
|
|
3346
2593
|
navigation,
|
|
3347
2594
|
processContent,
|
|
3348
|
-
|
|
3349
|
-
cancelPendingFollow,
|
|
3350
|
-
clearPendingFollow
|
|
2595
|
+
cancelPendingFollow
|
|
3351
2596
|
]);
|
|
3352
2597
|
(0, react.useLayoutEffect)(() => {
|
|
3353
2598
|
const previous = content.current.input;
|
|
@@ -3362,6 +2607,7 @@ window.__ModuleLoader__.load({
|
|
|
3362
2607
|
loadedTurns,
|
|
3363
2608
|
chatScroll,
|
|
3364
2609
|
deferCompletedTurns,
|
|
2610
|
+
transcriptView,
|
|
3365
2611
|
...navigationInput
|
|
3366
2612
|
};
|
|
3367
2613
|
if (!deferCompletedTurns) {
|
|
@@ -3373,7 +2619,7 @@ window.__ModuleLoader__.load({
|
|
|
3373
2619
|
if (layoutChanged) viewport.invalidate();
|
|
3374
2620
|
viewport.reclaimBelow();
|
|
3375
2621
|
processContent();
|
|
3376
|
-
if (layoutChanged) reading.refreshActiveTurn();
|
|
2622
|
+
if (layoutChanged && content.current.opened) reading.refreshActiveTurn();
|
|
3377
2623
|
}, [
|
|
3378
2624
|
viewport,
|
|
3379
2625
|
reading,
|
|
@@ -3389,6 +2635,23 @@ window.__ModuleLoader__.load({
|
|
|
3389
2635
|
loadedTurns,
|
|
3390
2636
|
chatScroll,
|
|
3391
2637
|
deferCompletedTurns,
|
|
2638
|
+
transcriptView,
|
|
2639
|
+
cancelPendingFollow
|
|
2640
|
+
]);
|
|
2641
|
+
const previousView = (0, react.useRef)(transcriptView);
|
|
2642
|
+
(0, react.useLayoutEffect)(() => {
|
|
2643
|
+
if (previousView.current === transcriptView) return;
|
|
2644
|
+
previousView.current = transcriptView;
|
|
2645
|
+
cancelPendingFollow();
|
|
2646
|
+
reading.interruptFollow();
|
|
2647
|
+
return viewport.motion.onFoldIdle(() => {
|
|
2648
|
+
viewport.resetBelow();
|
|
2649
|
+
if (content.current.opened) reading.onResize();
|
|
2650
|
+
});
|
|
2651
|
+
}, [
|
|
2652
|
+
transcriptView,
|
|
2653
|
+
viewport,
|
|
2654
|
+
reading,
|
|
3392
2655
|
cancelPendingFollow
|
|
3393
2656
|
]);
|
|
3394
2657
|
const returnToBottom = (0, react.useCallback)(() => {
|
|
@@ -3413,7 +2676,7 @@ window.__ModuleLoader__.load({
|
|
|
3413
2676
|
}
|
|
3414
2677
|
//#endregion
|
|
3415
2678
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/ChatView.module.css.mjs
|
|
3416
|
-
const css$16 = ".EvIC1a_frame{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;container-type:inline-size}.EvIC1a_root{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;overflow:visible clip}.EvIC1a_scroll{min-height:0;padding:16px calc(var(--dsh-composer-side-clearance) + 16px);flex:auto;overflow-y:auto;container-type:inline-size}.EvIC1a_root[data-chat-following-tail] .EvIC1a_scroll,[data-conversation-scroll]:has(.EvIC1a_root[data-chat-following-tail]){overflow-anchor:none}[data-conversation-scroll] .EvIC1a_frame,[data-conversation-scroll] .EvIC1a_root{flex:none;height:auto;min-height:auto}[data-conversation-scroll] .EvIC1a_scroll{flex:none;min-height:auto;overflow:visible}.EvIC1a_column{max-width:var(--dsh-chat-content-width);flex-direction:column;width:100%;margin:0 auto;display:flex}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))~:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))),.EvIC1a_column:has(>.EvIC1a_older)>[data-slot=\"conversation.chat.flow\"]>:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))){margin-top:var(--dsh-chat-flow-gap,6px)}.EvIC1a_flowItem[data-chat-group-part=response],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-group-part=response]:not([hidden]):not(:empty)+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running){--dsh-chat-flow-gap:12px}.EvIC1a_flowItem{min-width:0}.EvIC1a_turnSpacer{height:0}.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:margin-top .16s cubic-bezier(.4,0,.2,1)}@media (prefers-reduced-motion:reduce){.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:none}}.EvIC1a_flowItem[data-chat-flow-kind=turn-process],.EvIC1a_flowItem[data-turn-process-answer],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-flow-kind=turn-process]+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running){--dsh-chat-flow-gap:16px}.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)){height:0}.EvIC1a_callRow{border-radius:var(--dsw-radius-sm)}.EvIC1a_hint{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_running{--dsh-chat-flow-gap:12px;--dsw-alias-label-shimmer:var(--dsw-alias-label-deep-diving-shimmer);color:var(--dsw-alias-label-deep-diving);font-size:calc(var(--dsh-content-font-size,14px) - 2px);line-height:calc(22px + var(--dsh-content-font-delta,0px));flex-direction:column;align-items:flex-start;display:flex}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:nth-last-child(2 of :not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))):is(.EvIC1a_flowItem:not([data-chat-flow-kind=user]):not([data-chat-flow-kind=steering]):not([data-chat-flow-kind=turn-trigger]),[data-chat-group-key])~.EvIC1a_running>.EvIC1a_runningDivider{display:block}.EvIC1a_runningDivider{background:color-mix(in srgb, var(--dsw-alias-border-l1) 75%, var(--dsw-alias-border-l2));pointer-events:none;width:100%;height:.5px;margin:8px 0 10px;display:none}.EvIC1a_runningContent{align-items:center;gap:6px;min-width:0;display:inline-flex}.EvIC1a_runningText{font-variant-numeric:tabular-nums;min-width:0}.EvIC1a_runningIcon{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px));contain:strict;flex:none;display:inline-flex;position:relative;overflow:hidden}.EvIC1a_runningWhaleAnimated{display:none;position:absolute;inset:0}.EvIC1a_runningWhaleStill{display:initial}@supports (mask-mode:alpha) and (mask-image:url('')){@media (prefers-reduced-motion:no-preference) and (forced-colors:none){.EvIC1a_runningWhaleAnimated{will-change:transform;background:currentColor;display:block;mask:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAQAAADYBBcfAAAACXBIWXMAAAAAAAAAAQCEeRdzAAAACGFjVEwAAAA8AAAAAO2clZcAAAAaZmNUTAAAAAAAAAAcAAAAHAAAAAAAAAAAAAEAFAAA0ML43AAAAZ1JREFUeNrdU80rRFEU/z0fjUhNLNRrMiYmNhbCZmxZm5WFZmVjISULKRul7A3+AKRGTcmsNEq9hY9SYxSjhHwkZESjkPH1m/G688ybxx1Lv9d959xzzu++c849T8EfUSi0FizBjk185HtEEG8kraMLFfnQCpDAIaZITT0bGIFLNuUXrFI6MQgNSZKTmEa5DHUbj7DpeikTjpG8zEx+xRwDh77lsEhLn1W4IrQmVpZ67wuLHdc4wiyaeUAUIexaHdLDgDPUGSzzerO+nggGUJWbOkz3LVrFvpKpNrLianRiEnFxhIaSbGovza/otijLg1EE0lS32e3FHR0+yyb66R3L7arBFR5yVuPAAmlhQ0uz0E+319BdN9poC+CZdr+5vgwmGOChdHPw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AUAADR6ceaAAAAD2ZkQVQAAAByeNpjZGAAAAAGAAKSapxEAAAAGmZjVEwAAABzAAAAAQAAAAEAAAAAAAAAAAABABQAADx/FHMAAAAPZmRBVAAAAHR42mNkYAAAAAYAAn1XOaQAAAAaZmNUTAAAAHUAAAABAAAAAQAAAAAAAAAAAAEAFAAA0bVmCQAAAA9mZEFUAAAAdnjaY2RgAAAABgACkWynOwAAAABJRU5ErkJggg==) 50%/100% 100% no-repeat alpha}.EvIC1a_runningWhaleStill{display:none}}}.EvIC1a_openError{color:var(--dsw-alias-state-error-primary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_older{justify-content:center;display:flex}.EvIC1a_older button{border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover-solid);cursor:pointer;border:none;padding:4px 12px;font-size:12px}.EvIC1a_older button:disabled{cursor:default;opacity:.6}.EvIC1a_toBottomSlot{z-index:8;height:0;padding-right:max(calc(var(--dsh-composer-side-clearance) + 16px), calc((100% - var(--dsh-chat-content-width)) / 2));pointer-events:none;justify-content:flex-end;display:flex;position:absolute;bottom:16px;left:0;right:0}[data-conversation-scroll] .EvIC1a_toBottomSlot{bottom:calc(var(--dsh-composer-height,152px) + 16px);position:sticky}.EvIC1a_toBottom{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);corner-shape:round;width:34px;height:34px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-button-floating-fill);box-shadow:var(--dsw-elevation-panel);cursor:pointer;pointer-events:auto;border:0;border-radius:100px;justify-content:center;align-items:center;margin-top:-34px;padding:0;display:flex}.EvIC1a_toBottom:hover{background:var(--dsw-alias-button-floating-hover)}.EvIC1a_modalAction{min-width:72px}";
|
|
2679
|
+
const css$16 = ".EvIC1a_frame{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;container-type:inline-size}.EvIC1a_root{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;overflow:visible clip}.EvIC1a_scroll{min-height:0;padding:16px calc(var(--dsh-composer-side-clearance) + 16px);flex:auto;overflow-y:auto;container-type:inline-size}.EvIC1a_root[data-chat-following-tail] .EvIC1a_scroll,[data-conversation-scroll]:has(.EvIC1a_root[data-chat-following-tail]){overflow-anchor:none}[data-conversation-scroll] .EvIC1a_frame,[data-conversation-scroll] .EvIC1a_root{flex:none;height:auto;min-height:auto}[data-conversation-scroll] .EvIC1a_scroll{flex:none;min-height:auto;overflow:visible}.EvIC1a_column{max-width:var(--dsh-chat-content-width);flex-direction:column;width:100%;margin:0 auto;display:flex}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))~:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))),.EvIC1a_column:has(>.EvIC1a_older)>[data-slot=\"conversation.chat.flow\"]>:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))){margin-top:var(--dsh-chat-flow-gap,6px)}.EvIC1a_flowItem[data-chat-group-part=response],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-group-part=response]:not([hidden]):not(:empty)+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running){--dsh-chat-flow-gap:12px}.EvIC1a_flowItem{min-width:0}.EvIC1a_turnSpacer{height:0}.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:margin-top .16s cubic-bezier(.4,0,.2,1)}.EvIC1a_column[data-input-fold]>:not([data-chat-motion]),.EvIC1a_column[data-input-fold]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:none}@media (prefers-reduced-motion:reduce){.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:none}}.EvIC1a_flowItem[data-chat-flow-kind=turn-process],.EvIC1a_flowItem[data-turn-process-answer],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-flow-kind=turn-process]+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running){--dsh-chat-flow-gap:16px}.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)){height:0}.EvIC1a_callRow{border-radius:var(--dsw-radius-sm)}.EvIC1a_hint{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_running{--dsh-chat-flow-gap:12px;--dsw-alias-label-shimmer:var(--dsw-alias-label-deep-diving-shimmer);color:var(--dsw-alias-label-deep-diving);font-size:calc(var(--dsh-content-font-size,14px) - 2px);line-height:calc(22px + var(--dsh-content-font-delta,0px));flex-direction:column;align-items:flex-start;display:flex}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:nth-last-child(2 of :not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))):is(.EvIC1a_flowItem:not([data-chat-flow-kind=user]):not([data-chat-flow-kind=steering]):not([data-chat-flow-kind=turn-trigger]),[data-chat-group-key])~.EvIC1a_running>.EvIC1a_runningDivider{display:block}.EvIC1a_runningDivider{background:color-mix(in srgb, var(--dsw-alias-border-l1) 75%, var(--dsw-alias-border-l2));pointer-events:none;width:100%;height:.5px;margin:8px 0 10px;display:none}.EvIC1a_runningContent{align-items:center;gap:6px;min-width:0;display:inline-flex}.EvIC1a_runningText{font-variant-numeric:tabular-nums;min-width:0}.EvIC1a_runningIcon{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px));contain:strict;flex:none;display:inline-flex;position:relative;overflow:hidden}.EvIC1a_runningWhaleAnimated{display:none;position:absolute;inset:0}.EvIC1a_runningWhaleStill{display:initial}@supports (mask-mode:alpha) and (mask-image:url('')){@media (prefers-reduced-motion:no-preference) and (forced-colors:none){.EvIC1a_runningWhaleAnimated{will-change:transform;background:currentColor;display:block;mask:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAQAAADYBBcfAAAACXBIWXMAAAAAAAAAAQCEeRdzAAAACGFjVEwAAAA8AAAAAO2clZcAAAAaZmNUTAAAAAAAAAAcAAAAHAAAAAAAAAAAAAEAFAAA0ML43AAAAZ1JREFUeNrdU80rRFEU/z0fjUhNLNRrMiYmNhbCZmxZm5WFZmVjISULKRul7A3+AKRGTcmsNEq9hY9SYxSjhHwkZESjkPH1m/G688ybxx1Lv9d959xzzu++c849T8EfUSi0FizBjk185HtEEG8kraMLFfnQCpDAIaZITT0bGIFLNuUXrFI6MQgNSZKTmEa5DHUbj7DpeikTjpG8zEx+xRwDh77lsEhLn1W4IrQmVpZ67wuLHdc4wiyaeUAUIexaHdLDgDPUGSzzerO+nggGUJWbOkz3LVrFvpKpNrLianRiEnFxhIaSbGovza/otijLg1EE0lS32e3FHR0+yyb66R3L7arBFR5yVuPAAmlhQ0uz0E+319BdN9poC+CZdr+5vgwmGOChdHPwE4a+XqDDfI8ZFOOSA6cycI30GI7ZzzhvdAs7bNwP8JEyTlmEdwbngTCJTsoyypA8TeV3NF2/wZ71f2hOVMGMrh+g1qr1ZmI714qun/JHU2WJ9bjHua6fcLnkiDYOdETs4ulBlyI2cEXF7il9KVJQOI8O/C98Ag5meU925KTLAAAAGmZjVEwAAAABAAAAAQAAAAEAAAAAAAAAAAABABQAANe0VH4AAAAPZmRBVAAAAAJ42mNkYAAAAAYAArYgHbAAAAAaZmNUTAAAAAMAAAABAAAAAQAAAAAAAAAAAAEAFAAAOiKHlwAAAA9m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2EhgzFQ6wWGLQyXMDUmAaUeMaggiSyBBgcEnmMoYBBH11QBlHjLYArnCzPUAQNdAhgogQyTGd7ANR+E+xoI0sFhFYnD+VYMDQwrwJpUkSUCGN4DhWJwBtMkoGwzuqACw0uGzwxiWJTLgNPILnBwoYE8oEQAnCcAdIY1Qy7QST+A4pMg/gAAodxPKwH8AyIAAAAaZmNUTAAAAGsAAAASAAAADQAAAAMAAAABAAEAFAAA98Co6wAAAN1mZEFUAAAAbHjaY2RgYDBhmM6wiqGX4R8DHrCG4S/Df4ZjDGEMQriUMDF8YrjDMAWoDASPM1QzKGIqYmb4xbAPSMszFDEcZPgNVPibYSoDL7qy8wzfGNihbC6gpdeACncAbUABi4GCZShmrweKZCMEGIHYEOgSEHkdLirA8JLhLsMiBmOg4gsMmyCCSUDOIwYVJNOWQj0CgVBQAWS+ZTCFKxIGWqcLdKEcgz/DZITedKCyPwxRDARAAMN7oMIYQsoUGF4wfGYQxwxKZPCB4SfQDUcZbsB9KcugyRAAAM+jPZaw4UfAAAAAGmZjVEwAAABtAAAAAQAAAAEAAAAAAAAAAAABABQAANB+o2MAAAAPZmRBVAAAAG542mNkYAAAAAYAApt4PDkAAAAaZmNUTAAAAG8AAAABAAAAAQAAAAAAAAAAAAEAFAAAPehwigAAAA9mZEFUAAAAcHjaY2RgAAAABgACflEC2wAAABpmY1RMAAAAcQAAAAEAAAABAAAAAAAAAAAAAQAUAADR6ceaAAAAD2ZkQVQAAAByeNpjZGAAAAAGAAKSapxEAAAAGmZjVEwAAABzAAAAAQAAAAEAAAAAAAAAAAABABQAADx/FHMAAAAPZmRBVAAAAHR42mNkYAAAAAYAAn1XOaQAAAAaZmNUTAAAAHUAAAABAAAAAQAAAAAAAAAAAAEAFAAA0bVmCQAAAA9mZEFUAAAAdnjaY2RgAAAABgACkWynOwAAAABJRU5ErkJggg==) 50%/100% 100% no-repeat alpha}.EvIC1a_runningWhaleStill{display:none}}}.EvIC1a_openError{color:var(--dsw-alias-state-error-primary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_older{justify-content:center;display:flex}.EvIC1a_older button{border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover-solid);cursor:pointer;border:none;padding:4px 12px;font-size:12px}.EvIC1a_older button:disabled{cursor:default;opacity:.6}.EvIC1a_toBottomSlot{z-index:8;height:0;padding-right:max(calc(var(--dsh-composer-side-clearance) + 16px), calc((100% - var(--dsh-chat-content-width)) / 2));pointer-events:none;justify-content:flex-end;display:flex;position:absolute;bottom:16px;left:0;right:0}[data-conversation-scroll] .EvIC1a_toBottomSlot{bottom:calc(var(--dsh-composer-height,152px) + 16px);position:sticky}.EvIC1a_toBottom{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);corner-shape:round;width:34px;height:34px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-button-floating-fill);box-shadow:var(--dsw-elevation-panel);cursor:pointer;pointer-events:auto;border:0;border-radius:100px;justify-content:center;align-items:center;margin-top:-34px;padding:0;display:flex}.EvIC1a_toBottom:hover{background:var(--dsw-alias-button-floating-hover)}.EvIC1a_modalAction{min-width:72px}";
|
|
3417
2680
|
const tagId$16 = "@deepseek-ai/dsh-client-ui-chat/ChatView.module.css";
|
|
3418
2681
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$16) + "]") === null) {
|
|
3419
2682
|
const tag = document.createElement("style");
|
|
@@ -3461,11 +2724,11 @@ window.__ModuleLoader__.load({
|
|
|
3461
2724
|
let lastInputTurn;
|
|
3462
2725
|
for (const key of order) {
|
|
3463
2726
|
const node = nodes.get(key);
|
|
3464
|
-
if (node === void 0 || node
|
|
2727
|
+
if (node === void 0 || !isAtOrOutside(node, "input")) continue;
|
|
3465
2728
|
if (node.location.kind === "turn" || node.location.kind === "step") lastInputTurn = node.location.turn.turn;
|
|
3466
|
-
|
|
3467
|
-
const source =
|
|
3468
|
-
if (source
|
|
2729
|
+
const data = node.data;
|
|
2730
|
+
const source = typeof data === "object" && data !== null && "source" in data ? data.source : void 0;
|
|
2731
|
+
if (typeof source === "object" && source !== null && "kind" in source && source.kind === "user" && "rpcId" in source && typeof source.rpcId === "string") observed.add(source.rpcId);
|
|
3469
2732
|
}
|
|
3470
2733
|
return {
|
|
3471
2734
|
rpcIds: observed,
|
|
@@ -3478,7 +2741,7 @@ window.__ModuleLoader__.load({
|
|
|
3478
2741
|
* The chat view slot entry: pure component over the composed props; each
|
|
3479
2742
|
* ordered business Node crosses the keyed renderer seat.
|
|
3480
2743
|
*/
|
|
3481
|
-
function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile,
|
|
2744
|
+
function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile, openExternalLink, loadOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt, fileMentions, usePresentation, useProjection, t }) {
|
|
3482
2745
|
const order = useChat((s) => s.order);
|
|
3483
2746
|
const groupedEntries = useConversation((snapshot) => snapshot.views.grouped("chat")?.entries);
|
|
3484
2747
|
const entries = (0, react.useMemo)(() => groupedEntries ?? order.map((key) => ({
|
|
@@ -3487,6 +2750,7 @@ window.__ModuleLoader__.load({
|
|
|
3487
2750
|
})), [groupedEntries, order]);
|
|
3488
2751
|
const nodeStore = useChat((s) => s.nodes);
|
|
3489
2752
|
const deferCompletedTurns = usePresentation((policy) => policy.collapseTiming === "next-input");
|
|
2753
|
+
const transcriptView = usePresentation((policy) => policy.mode);
|
|
3490
2754
|
const turnNavigationItems = useChat((s) => s.navigation.items());
|
|
3491
2755
|
const turnOutline = useProjection("turnOutline");
|
|
3492
2756
|
const railItems = (0, react.useMemo)(() => mergeTurnRailItems(turnNavigationItems, turnOutline), [turnNavigationItems, turnOutline]);
|
|
@@ -3596,7 +2860,8 @@ window.__ModuleLoader__.load({
|
|
|
3596
2860
|
lastIsUser: lastKey !== null && nodeStore.get(lastKey)?.kind === "user",
|
|
3597
2861
|
steeringId,
|
|
3598
2862
|
submissionId: visibleSubmissions.at(-1)?.requestId ?? null,
|
|
3599
|
-
loadedTurns: turnNavigationItems
|
|
2863
|
+
loadedTurns: turnNavigationItems,
|
|
2864
|
+
transcriptView
|
|
3600
2865
|
});
|
|
3601
2866
|
const flowContext = (0, react.useMemo)(() => ({ motion: scroll.motion }), [scroll.motion]);
|
|
3602
2867
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -3642,8 +2907,8 @@ window.__ModuleLoader__.load({
|
|
|
3642
2907
|
})
|
|
3643
2908
|
}),
|
|
3644
2909
|
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MarkdownDelegateProvider, {
|
|
3645
|
-
openExternalLink,
|
|
3646
2910
|
openFile: requestOpenFile,
|
|
2911
|
+
openExternalLink,
|
|
3647
2912
|
fileImages,
|
|
3648
2913
|
children: renderSlot("conversation.chat.flow", {
|
|
3649
2914
|
entries,
|
|
@@ -3652,7 +2917,6 @@ window.__ModuleLoader__.load({
|
|
|
3652
2917
|
deferCollapse,
|
|
3653
2918
|
cwd,
|
|
3654
2919
|
openFile: requestOpenFile,
|
|
3655
|
-
openSkill,
|
|
3656
2920
|
inspectCall,
|
|
3657
2921
|
forkAt,
|
|
3658
2922
|
loadImage,
|
|
@@ -4352,17 +3616,8 @@ window.__ModuleLoader__.load({
|
|
|
4352
3616
|
const rendered = JSON.stringify(value) ?? String(value);
|
|
4353
3617
|
throw new Error(`unreachable variant${context ? ` in ${context}` : ""}: ${rendered}`);
|
|
4354
3618
|
}
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
"system-prompt",
|
|
4358
|
-
"user",
|
|
4359
|
-
"steering",
|
|
4360
|
-
"turn-trigger",
|
|
4361
|
-
"turn-process",
|
|
4362
|
-
"turn-error",
|
|
4363
|
-
"turn-max-tokens",
|
|
4364
|
-
"turn-tail"
|
|
4365
|
-
]);
|
|
3619
|
+
//#endregion
|
|
3620
|
+
//#region lib/types/client/contract/turn-process.js
|
|
4366
3621
|
/**
|
|
4367
3622
|
* Compare immutable Turn-process specifications by their published fields.
|
|
4368
3623
|
* @param left - previous specification.
|
|
@@ -4390,7 +3645,7 @@ window.__ModuleLoader__.load({
|
|
|
4390
3645
|
const location = node?.location;
|
|
4391
3646
|
if (location?.kind !== "turn" && location?.kind !== "step") return false;
|
|
4392
3647
|
const reason = location.turn.end?.data.reason.kind;
|
|
4393
|
-
return location.turn.status === "open" || reason === "aborted" || reason === "error";
|
|
3648
|
+
return location.turn.status === "open" || reason === "aborted" || reason === "interrupted" || reason === "error";
|
|
4394
3649
|
}
|
|
4395
3650
|
//#endregion
|
|
4396
3651
|
//#region lib/types/client/stores.js
|
|
@@ -4454,7 +3709,7 @@ window.__ModuleLoader__.load({
|
|
|
4454
3709
|
* Policy reads select this seat's own conclusion, so a mode change re-renders
|
|
4455
3710
|
* only seats whose visibility actually changes.
|
|
4456
3711
|
*/
|
|
4457
|
-
const ChatNodeSeat = (0, react.memo)(function ChatNodeSeat({ nodeKey, groupPart, useChatNode, useChatNodeProcess, usePresentation, cwd, openFile,
|
|
3712
|
+
const ChatNodeSeat = (0, react.memo)(function ChatNodeSeat({ nodeKey, groupPart, useChatNode, useChatNodeProcess, usePresentation, cwd, openFile, inspectCall, forkAt, loadImage, fileMentions, useStore, actions, renderSlot, t, useChatNodeBottom, deferCollapse, useGroupAction }) {
|
|
4458
3713
|
const bottom = useChatNodeBottom(nodeKey);
|
|
4459
3714
|
const node = useChatNode(nodeKey);
|
|
4460
3715
|
const routedNode = node;
|
|
@@ -4475,7 +3730,7 @@ window.__ModuleLoader__.load({
|
|
|
4475
3730
|
]);
|
|
4476
3731
|
const foldCompleted = usePresentation((policy) => policy.foldCompletedTurns);
|
|
4477
3732
|
const processWindowReady = processSpec !== void 0 && processPresentation !== void 0 && foldCompleted && processPresentation.turn === processSpec.turn && (processPresentation.turnStarted || processPresentation.turnClosed);
|
|
4478
|
-
const processMember = routedNode !== void 0 && processWindowReady && !
|
|
3733
|
+
const processMember = routedNode !== void 0 && processWindowReady && !isAtOrOutside(routedNode, "turn") && routedNode.anchorSeq >= processSpec.processStartSeq && (liveProcess || processSpec.answerAnchorSeq === null || routedNode.anchorSeq < processSpec.answerAnchorSeq || groupPart === "reasoning" && routedNode.kind === "assistant-step" && routedNode.data.step === processSpec.answerStep);
|
|
4479
3734
|
const processAnswer = routedNode !== void 0 && processWindowReady && !liveProcess && groupPart !== "reasoning" && routedNode.kind === "assistant-step" && routedNode.data.step === processSpec.answerStep;
|
|
4480
3735
|
const ownsDisclosure = routedNode?.kind === "turn-process" || processAnswer;
|
|
4481
3736
|
const foldable = processWindowReady && (liveProcess || processMember || ownsDisclosure);
|
|
@@ -4522,11 +3777,9 @@ window.__ModuleLoader__.load({
|
|
|
4522
3777
|
...groupPart === void 0 ? {} : { groupPart },
|
|
4523
3778
|
cwd,
|
|
4524
3779
|
openFile,
|
|
4525
|
-
openSkill,
|
|
4526
3780
|
inspectCall,
|
|
4527
3781
|
forkAt,
|
|
4528
3782
|
loadImage,
|
|
4529
|
-
renderMessageImages,
|
|
4530
3783
|
fileMentions,
|
|
4531
3784
|
turnProcess
|
|
4532
3785
|
}, [
|
|
@@ -4534,11 +3787,9 @@ window.__ModuleLoader__.load({
|
|
|
4534
3787
|
groupPart,
|
|
4535
3788
|
cwd,
|
|
4536
3789
|
openFile,
|
|
4537
|
-
openSkill,
|
|
4538
3790
|
inspectCall,
|
|
4539
3791
|
forkAt,
|
|
4540
3792
|
loadImage,
|
|
4541
|
-
renderMessageImages,
|
|
4542
3793
|
fileMentions,
|
|
4543
3794
|
turnProcess
|
|
4544
3795
|
]);
|
|
@@ -4905,7 +4156,7 @@ window.__ModuleLoader__.load({
|
|
|
4905
4156
|
});
|
|
4906
4157
|
const grouped = props.usePresentation((policy) => policy.stepGrouping === "collapsed" || policy.stepGrouping === "history" && turnLocation?.status !== "open" && !deferCollapse);
|
|
4907
4158
|
const reason = turnLocation?.end?.data.reason.kind;
|
|
4908
|
-
const alwaysOpen = presentation?.turnClosed === false || presentation?.hasInterleavedInput === true || reason === "aborted" || reason === "error";
|
|
4159
|
+
const alwaysOpen = presentation?.turnClosed === false || presentation?.hasInterleavedInput === true || reason === "aborted" || reason === "interrupted" || reason === "error";
|
|
4909
4160
|
const spec = presentation?.spec;
|
|
4910
4161
|
const selectOpen = (0, react.useCallback)((state) => spec !== void 0 && turnProcessOpen(state, spec, deferCollapse), [spec, deferCollapse]);
|
|
4911
4162
|
const storedOpen = props.useStore(selectOpen);
|
|
@@ -5018,7 +4269,7 @@ window.__ModuleLoader__.load({
|
|
|
5018
4269
|
}
|
|
5019
4270
|
//#endregion
|
|
5020
4271
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/MessageItem.module.css.mjs
|
|
5021
|
-
const css$14 = ".Sixlwa_userRow{flex-direction:column;align-items:flex-end;gap:6px;display:flex}.Sixlwa_userStack{min-width:0;max-width:min(calc(var(--dsh-chat-content-width,748px) * .702), 82%);flex-direction:column;align-items:flex-end;gap:8px;display:flex}.Sixlwa_bubble{background:var(--dsw-specific-bubble);border-radius:var(--dsw-radius-xl);max-width:100%;font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-primary);white-space:pre-wrap;word-break:break-word;padding:10px 16px}.Sixlwa_referenceSummary{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.Sixlwa_contextRow{padding:2px 0}.Sixlwa_compactionRow{--dsh-compaction-header-height:calc(24px + var(--dsh-content-font-delta,0px));padding:2px 0}.Sixlwa_compactionButton{width:100%;height:var(--dsh-compaction-header-height);border-radius:var(--dsw-radius-sm);min-width:0;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:left;background:0 0;border:none;align-items:center;padding:0;transition:color .1s;display:flex}.Sixlwa_compactionRow:has(.Sixlwa_compactionBody) .Sixlwa_compactionButton{z-index:7;background:var(--dsw-alias-bg-base);border-radius:0;position:sticky;top:0}.Sixlwa_compactionBody :has(>[data-code-block-banner]){top:var(--dsh-compaction-header-height)}.Sixlwa_compactionRow:has(.Sixlwa_compactionBody) .Sixlwa_compactionButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid)}.Sixlwa_compactionButton:not(:disabled){cursor:pointer}.Sixlwa_compactionButton:hover{color:var(--dsw-alias-label-secondary)}.Sixlwa_compactionButton:not(:disabled):hover{background:var(--dsw-alias-interactive-bg-hover)}.Sixlwa_compactionLeading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:inherit;flex:none;place-items:center;margin-right:6px;display:inline-grid}.Sixlwa_compactionLeading svg{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px))}.Sixlwa_compactionContextIcon,.Sixlwa_compactionDisclosureIcon{grid-area:1/1;justify-content:center;align-items:center;display:inline-flex}.Sixlwa_compactionDisclosureIcon,.Sixlwa_compactionButton:not(:disabled):hover .Sixlwa_compactionContextIcon,.Sixlwa_compactionButton:not(:disabled):focus-visible .Sixlwa_compactionContextIcon{opacity:0}.Sixlwa_compactionButton:not(:disabled):hover .Sixlwa_compactionDisclosureIcon,.Sixlwa_compactionButton:not(:disabled):focus-visible .Sixlwa_compactionDisclosureIcon{opacity:1}.Sixlwa_compactionTitle{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:inherit;flex:none}.Sixlwa_compactionSep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.Sixlwa_compactionSummary{min-width:0;color:inherit;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.Sixlwa_compactionBody{padding:4px 0 4px calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px))}.Sixlwa_retryRow{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px))}.Sixlwa_retrySummary{border-radius:var(--dsw-radius-sm);width:fit-content;max-width:100%;color:inherit;cursor:pointer;user-select:none;align-items:center;gap:7px;padding:2px 0;list-style:none;display:inline-flex}.Sixlwa_retrySummary::-webkit-details-marker{display:none}.Sixlwa_retrySummary:after{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;flex:none;width:6px;height:6px;margin-right:2px;transition:transform .12s;transform:rotate(-45deg)}.Sixlwa_retrySummary:hover{color:var(--dsw-alias-label-secondary)}@media (prefers-reduced-motion:reduce){.Sixlwa_compactionButton{transition:none}}.Sixlwa_retrySummary:focus-visible{outline:1.5px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Sixlwa_retryText{overflow-wrap:anywhere;min-width:0}.Sixlwa_retryRow[open] .Sixlwa_retrySummary:after{transform:rotate(45deg)}.Sixlwa_retryDetails{overflow-wrap:anywhere;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px));gap:2px;margin-top:3px;padding-left:14px;display:grid}.Sixlwa_retryDetailLabel{color:var(--dsw-alias-label-secondary)}.Sixlwa_turnErrorRow{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));grid-template-columns:10px minmax(0,1fr) auto;align-items:start;gap:8px;padding:2px 0;display:grid}.Sixlwa_turnErrorDot{margin-top:5px}.Sixlwa_turnErrorCopy{overflow-wrap:anywhere;min-width:0}.Sixlwa_turnErrorTitle{color:var(--dsw-alias-state-error-primary);margin-right:6px;font-weight:600}.Sixlwa_turnErrorMessage{color:var(--dsw-alias-label-secondary)}.Sixlwa_turnErrorCode{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-markdown-code-block-small)}.Sixlwa_maxTokensTitle{color:var(--dsw-alias-state-warn-primary);margin-right:6px;font-weight:600}.Sixlwa_attachmentRow{flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:100%;display:flex}.Sixlwa_fileCard{border:.5px solid var(--dsw-alias-border-l2,#0000001f);border-radius:var(--dsw-radius-
|
|
4272
|
+
const css$14 = ".Sixlwa_userRow{flex-direction:column;align-items:flex-end;gap:6px;display:flex}.Sixlwa_userStack{min-width:0;max-width:min(calc(var(--dsh-chat-content-width,748px) * .702), 82%);flex-direction:column;align-items:flex-end;gap:8px;display:flex}.Sixlwa_bubble{background:var(--dsw-specific-bubble);border-radius:var(--dsw-radius-xl);max-width:100%;font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-primary);white-space:pre-wrap;word-break:break-word;padding:10px 16px}.Sixlwa_referenceSummary{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.Sixlwa_contextRow{padding:2px 0}.Sixlwa_compactionRow{--dsh-compaction-header-height:calc(24px + var(--dsh-content-font-delta,0px));padding:2px 0}.Sixlwa_compactionButton{width:100%;height:var(--dsh-compaction-header-height);border-radius:var(--dsw-radius-sm);min-width:0;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:left;background:0 0;border:none;align-items:center;padding:0;transition:color .1s;display:flex}.Sixlwa_compactionRow:has(.Sixlwa_compactionBody) .Sixlwa_compactionButton{z-index:7;background:var(--dsw-alias-bg-base);border-radius:0;position:sticky;top:0}.Sixlwa_compactionBody :has(>[data-code-block-banner]){top:var(--dsh-compaction-header-height)}.Sixlwa_compactionRow:has(.Sixlwa_compactionBody) .Sixlwa_compactionButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid)}.Sixlwa_compactionButton:not(:disabled){cursor:pointer}.Sixlwa_compactionButton:hover{color:var(--dsw-alias-label-secondary)}.Sixlwa_compactionButton:not(:disabled):hover{background:var(--dsw-alias-interactive-bg-hover)}.Sixlwa_compactionLeading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:inherit;flex:none;place-items:center;margin-right:6px;display:inline-grid}.Sixlwa_compactionLeading svg{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px))}.Sixlwa_compactionContextIcon,.Sixlwa_compactionDisclosureIcon{grid-area:1/1;justify-content:center;align-items:center;display:inline-flex}.Sixlwa_compactionDisclosureIcon,.Sixlwa_compactionButton:not(:disabled):hover .Sixlwa_compactionContextIcon,.Sixlwa_compactionButton:not(:disabled):focus-visible .Sixlwa_compactionContextIcon{opacity:0}.Sixlwa_compactionButton:not(:disabled):hover .Sixlwa_compactionDisclosureIcon,.Sixlwa_compactionButton:not(:disabled):focus-visible .Sixlwa_compactionDisclosureIcon{opacity:1}.Sixlwa_compactionTitle{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:inherit;flex:none}.Sixlwa_compactionSep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.Sixlwa_compactionSummary{min-width:0;color:inherit;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.Sixlwa_compactionBody{padding:4px 0 4px calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px))}.Sixlwa_retryRow{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px))}.Sixlwa_retrySummary{border-radius:var(--dsw-radius-sm);width:fit-content;max-width:100%;color:inherit;cursor:pointer;user-select:none;align-items:center;gap:7px;padding:2px 0;list-style:none;display:inline-flex}.Sixlwa_retrySummary::-webkit-details-marker{display:none}.Sixlwa_retrySummary:after{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;flex:none;width:6px;height:6px;margin-right:2px;transition:transform .12s;transform:rotate(-45deg)}.Sixlwa_retrySummary:hover{color:var(--dsw-alias-label-secondary)}@media (prefers-reduced-motion:reduce){.Sixlwa_compactionButton{transition:none}}.Sixlwa_retrySummary:focus-visible{outline:1.5px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Sixlwa_retryText{overflow-wrap:anywhere;min-width:0}.Sixlwa_retryRow[open] .Sixlwa_retrySummary:after{transform:rotate(45deg)}.Sixlwa_retryDetails{overflow-wrap:anywhere;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px));gap:2px;margin-top:3px;padding-left:14px;display:grid}.Sixlwa_retryDetailLabel{color:var(--dsw-alias-label-secondary)}.Sixlwa_turnErrorRow{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));grid-template-columns:10px minmax(0,1fr) auto;align-items:start;gap:8px;padding:2px 0;display:grid}.Sixlwa_turnErrorDot{margin-top:5px}.Sixlwa_turnErrorCopy{overflow-wrap:anywhere;min-width:0}.Sixlwa_turnErrorTitle{color:var(--dsw-alias-state-error-primary);margin-right:6px;font-weight:600}.Sixlwa_turnErrorMessage{color:var(--dsw-alias-label-secondary)}.Sixlwa_turnErrorCode{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-markdown-code-block-small)}.Sixlwa_maxTokensTitle{color:var(--dsw-alias-state-warn-primary);margin-right:6px;font-weight:600}.Sixlwa_attachmentRow{flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:100%;display:flex}.Sixlwa_fileCard{border:.5px solid var(--dsw-alias-border-l2,#0000001f);border-radius:var(--dsw-radius-lg);background:var(--dsw-specific-input-major,transparent);box-sizing:border-box;flex:0 0 240px;align-items:center;gap:10px;width:240px;min-height:64px;padding:8px 12px;display:inline-flex}.Sixlwa_fileIcon{flex:none;width:28px;height:28px}.Sixlwa_fileContent{flex-direction:column;flex:1;min-width:0;display:flex}.Sixlwa_fileName{white-space:nowrap;text-overflow:ellipsis;color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px;overflow:hidden}.Sixlwa_fileMeta{white-space:nowrap;text-overflow:ellipsis;color:var(--dsw-alias-label-tertiary,#00000073);font-size:12px;line-height:15px;overflow:hidden}";
|
|
5022
4273
|
const tagId$14 = "@deepseek-ai/dsh-client-ui-chat/MessageItem.module.css";
|
|
5023
4274
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$14) + "]") === null) {
|
|
5024
4275
|
const tag = document.createElement("style");
|
|
@@ -5997,6 +5248,7 @@ window.__ModuleLoader__.load({
|
|
|
5997
5248
|
}
|
|
5998
5249
|
//#endregion
|
|
5999
5250
|
//#region lib/types/client/chat/MessageItem.js
|
|
5251
|
+
const EMPTY_TEXT_FACTS = {};
|
|
6000
5252
|
function contentParts(content) {
|
|
6001
5253
|
const texts = [];
|
|
6002
5254
|
const attachments = [];
|
|
@@ -6025,6 +5277,7 @@ window.__ModuleLoader__.load({
|
|
|
6025
5277
|
}
|
|
6026
5278
|
function failureMessage(message, code, t) {
|
|
6027
5279
|
if (code === "ACCOUNT_SIGNED_OUT") return t("message.failure.accountSignedOut");
|
|
5280
|
+
if (code === "INTERRUPTED") return t("message.failure.interrupted");
|
|
6028
5281
|
if (code === "ACCOUNT_SIGN_IN_REQUIRED") return t("message.failure.accountSignInRequired");
|
|
6029
5282
|
if (code === "QUOTA" || code === "ACCOUNT_QUOTA") return t("message.failure.quota");
|
|
6030
5283
|
return code === "AUTH" ? t("message.failure.auth") : message;
|
|
@@ -6102,13 +5355,13 @@ window.__ModuleLoader__.load({
|
|
|
6102
5355
|
className: MessageItem_module_css_default.turnErrorCopy,
|
|
6103
5356
|
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
6104
5357
|
className: MessageItem_module_css_default.turnErrorTitle,
|
|
6105
|
-
children: node.code === "ACCOUNT_SIGNED_OUT" ? t("message.
|
|
5358
|
+
children: node.code === "ACCOUNT_SIGNED_OUT" || node.code === "INTERRUPTED" ? t("message.taskStopped") : t("message.turnError")
|
|
6106
5359
|
}), (0, react_jsx_runtime.jsx)("span", {
|
|
6107
5360
|
className: MessageItem_module_css_default.turnErrorMessage,
|
|
6108
5361
|
children: failureMessage(node.message, node.code, t)
|
|
6109
5362
|
})]
|
|
6110
5363
|
}),
|
|
6111
|
-
node.code !== void 0 && (0, react_jsx_runtime.jsx)("code", {
|
|
5364
|
+
node.code !== void 0 && node.code !== "INTERRUPTED" && (0, react_jsx_runtime.jsx)("code", {
|
|
6112
5365
|
className: MessageItem_module_css_default.turnErrorCode,
|
|
6113
5366
|
children: node.code
|
|
6114
5367
|
})
|
|
@@ -6136,72 +5389,51 @@ window.__ModuleLoader__.load({
|
|
|
6136
5389
|
});
|
|
6137
5390
|
}
|
|
6138
5391
|
/** Right-aligned bubble shared by user and steering rows. */
|
|
6139
|
-
function UserStyleBubble({ content,
|
|
6140
|
-
const
|
|
6141
|
-
const
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
5392
|
+
function UserStyleBubble({ content, loadImage, renderFactorySlot, actions, pending = false, echo = false, referenceLabels, skillNames, previewAttachments, facts: inputFacts = EMPTY_TEXT_FACTS, interactive = false }) {
|
|
5393
|
+
const parts = (0, react.useMemo)(() => contentParts(content), [content]);
|
|
5394
|
+
const prepared = (0, react.useMemo)(() => ({
|
|
5395
|
+
text: parts.text,
|
|
5396
|
+
attachments: previewAttachments ?? parts.attachments,
|
|
5397
|
+
extraBlocks: parts.rest,
|
|
5398
|
+
...referenceLabels === void 0 ? {} : { referenceLabels }
|
|
5399
|
+
}), [
|
|
5400
|
+
parts,
|
|
5401
|
+
previewAttachments,
|
|
5402
|
+
referenceLabels
|
|
5403
|
+
]);
|
|
5404
|
+
const facts = (0, react.useMemo)(() => ({
|
|
5405
|
+
...inputFacts,
|
|
5406
|
+
...referenceLabels === void 0 ? {} : { sessionLabels: referenceLabels },
|
|
5407
|
+
...skillNames === void 0 ? {} : { skillNames }
|
|
5408
|
+
}), [
|
|
5409
|
+
inputFacts,
|
|
5410
|
+
referenceLabels,
|
|
5411
|
+
skillNames
|
|
5412
|
+
]);
|
|
6145
5413
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
6146
5414
|
className: MessageItem_module_css_default.userRow,
|
|
6147
5415
|
"data-pending-steering": pending || void 0,
|
|
6148
5416
|
"data-submission-echo": echo || void 0,
|
|
6149
|
-
children: [(
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
children: attachments.map((attachment, index) => attachment.type === "image" ? (0, react_jsx_runtime.jsx)(react.Fragment, { children: renderMessageImages({
|
|
6156
|
-
images: [attachment.image],
|
|
6157
|
-
align: "end",
|
|
6158
|
-
compact: compactImages
|
|
6159
|
-
}) }, `image:${index}`) : (0, react_jsx_runtime.jsxs)("span", {
|
|
6160
|
-
className: MessageItem_module_css_default.fileCard,
|
|
6161
|
-
title: attachment.file.name,
|
|
6162
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.FileTypeIcon, {
|
|
6163
|
-
path: attachment.file.name,
|
|
6164
|
-
className: MessageItem_module_css_default.fileIcon
|
|
6165
|
-
}), (0, react_jsx_runtime.jsxs)("span", {
|
|
6166
|
-
className: MessageItem_module_css_default.fileContent,
|
|
6167
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
6168
|
-
className: MessageItem_module_css_default.fileName,
|
|
6169
|
-
children: attachment.file.name
|
|
6170
|
-
}), (0, react_jsx_runtime.jsx)("span", {
|
|
6171
|
-
className: MessageItem_module_css_default.fileMeta,
|
|
6172
|
-
children: [(0, _deepseek_ai_dsh_client_ui_primitives.fileExtension)(attachment.file.name).toUpperCase().slice(0, 8), (0, _deepseek_ai_dsh_client_ui_primitives.fileSizeText)(attachment.file.bytes)].filter(Boolean).join(" ")
|
|
6173
|
-
})]
|
|
6174
|
-
})]
|
|
6175
|
-
}, `file:${index}`))
|
|
6176
|
-
}),
|
|
6177
|
-
showBubble && (0, react_jsx_runtime.jsxs)("div", {
|
|
6178
|
-
className: MessageItem_module_css_default.bubble,
|
|
6179
|
-
children: [(0, _deepseek_ai_dsh_client_ui_primitives.projectUserText)(text, referenceLabels, skillNames, "skill", references), rest.map((block, i) => (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonBlock, {
|
|
6180
|
-
label: t("message.extraBlock"),
|
|
6181
|
-
payload: block,
|
|
6182
|
-
truncatedLabel: truncated
|
|
6183
|
-
}, i))]
|
|
6184
|
-
}),
|
|
6185
|
-
referenceLabels.length > 0 && (0, react_jsx_runtime.jsx)("div", {
|
|
6186
|
-
className: MessageItem_module_css_default.referenceSummary,
|
|
6187
|
-
children: t("message.referenceSummary", { labels: referenceLabels.join(t("message.referenceSeparator")) })
|
|
6188
|
-
})
|
|
6189
|
-
]
|
|
6190
|
-
}), actions?.(text)]
|
|
5417
|
+
children: [renderFactorySlot("conversation.chat.user.content", {
|
|
5418
|
+
content: prepared,
|
|
5419
|
+
loadImage,
|
|
5420
|
+
facts,
|
|
5421
|
+
interactive
|
|
5422
|
+
}), actions?.(prepared.text)]
|
|
6191
5423
|
});
|
|
6192
5424
|
}
|
|
6193
5425
|
/**
|
|
6194
5426
|
* Render one Host-authoritative pending steering item with the same visual
|
|
6195
5427
|
* language as its eventual durable transcript node.
|
|
6196
|
-
* @param props -
|
|
5428
|
+
* @param props - pending content, authorized image loader, and Factory/locale seats.
|
|
6197
5429
|
* @returns the pending steering bubble.
|
|
6198
5430
|
*/
|
|
6199
|
-
function PendingSteeringBubble({ content,
|
|
5431
|
+
function PendingSteeringBubble({ content, loadImage, renderFactorySlot, t }) {
|
|
6200
5432
|
return (0, react_jsx_runtime.jsx)(UserStyleBubble, {
|
|
6201
5433
|
content,
|
|
6202
|
-
|
|
5434
|
+
renderFactorySlot,
|
|
5435
|
+
loadImage,
|
|
6203
5436
|
pending: true,
|
|
6204
|
-
t,
|
|
6205
5437
|
actions: (text) => (0, react_jsx_runtime.jsx)(MessageIconActions, {
|
|
6206
5438
|
text,
|
|
6207
5439
|
clock: "start",
|
|
@@ -6215,10 +5447,10 @@ window.__ModuleLoader__.load({
|
|
|
6215
5447
|
* visual language and surface marker as the Host occurrence that replaces
|
|
6216
5448
|
* it: draft text plus object-URL previews, visible from the submit click
|
|
6217
5449
|
* until the durable `user/message` or steering occurrence renders.
|
|
6218
|
-
* @param props - the
|
|
5450
|
+
* @param props - the pending submission, authorized image loader, and render seats.
|
|
6219
5451
|
* @returns the echoed user bubble.
|
|
6220
5452
|
*/
|
|
6221
|
-
function PendingSubmissionBubble({ submission,
|
|
5453
|
+
function PendingSubmissionBubble({ submission, loadImage, renderFactorySlot, t }) {
|
|
6222
5454
|
return (0, react_jsx_runtime.jsx)(UserStyleBubble, {
|
|
6223
5455
|
content: (0, react.useMemo)(() => submission.text === "" ? [] : [{
|
|
6224
5456
|
type: "text",
|
|
@@ -6236,10 +5468,10 @@ window.__ModuleLoader__.load({
|
|
|
6236
5468
|
type: "file",
|
|
6237
5469
|
file: attachment.value
|
|
6238
5470
|
}), [submission.attachments]),
|
|
6239
|
-
|
|
5471
|
+
renderFactorySlot,
|
|
5472
|
+
loadImage,
|
|
6240
5473
|
pending: submission.placement === "steering",
|
|
6241
5474
|
echo: true,
|
|
6242
|
-
t,
|
|
6243
5475
|
actions: (text) => (0, react_jsx_runtime.jsx)(MessageIconActions, {
|
|
6244
5476
|
text,
|
|
6245
5477
|
time: submission.time,
|
|
@@ -6250,18 +5482,15 @@ window.__ModuleLoader__.load({
|
|
|
6250
5482
|
});
|
|
6251
5483
|
}
|
|
6252
5484
|
/** User and admitted-steering keyed Chat renderer. */
|
|
6253
|
-
const UserMessageNodeView = (0, react.memo)(function UserMessageNodeView({ node,
|
|
5485
|
+
const UserMessageNodeView = (0, react.memo)(function UserMessageNodeView({ node, renderFactorySlot, loadImage, t }) {
|
|
6254
5486
|
const data = node.data;
|
|
6255
5487
|
return (0, react_jsx_runtime.jsx)(UserStyleBubble, {
|
|
6256
5488
|
content: data.content,
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
},
|
|
6261
|
-
renderMessageImages,
|
|
5489
|
+
interactive: true,
|
|
5490
|
+
renderFactorySlot,
|
|
5491
|
+
loadImage,
|
|
6262
5492
|
...data.referenceLabels === void 0 ? {} : { referenceLabels: data.referenceLabels },
|
|
6263
5493
|
...data.skillNames === void 0 ? {} : { skillNames: data.skillNames },
|
|
6264
|
-
t,
|
|
6265
5494
|
actions: (text) => (0, react_jsx_runtime.jsx)(MessageIconActions, {
|
|
6266
5495
|
text,
|
|
6267
5496
|
time: data.time,
|
|
@@ -6410,17 +5639,13 @@ window.__ModuleLoader__.load({
|
|
|
6410
5639
|
//#region lib/types/client/chat/ChatFlow.js
|
|
6411
5640
|
/** Ordered Chat rows, local echoes, and running status share the flow slot's parent. */
|
|
6412
5641
|
/** Render the flow without adding a DOM parent or changing keyed row positions. */
|
|
6413
|
-
const ChatFlow = (0, react.memo)(function ChatFlow({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useStore, actions, renderSlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile,
|
|
5642
|
+
const ChatFlow = (0, react.memo)(function ChatFlow({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile, inspectCall, forkAt, loadImage, fileMentions }) {
|
|
6414
5643
|
const nodeStore = useChat((snapshot) => snapshot.nodes);
|
|
6415
5644
|
const running = useSession((snapshot) => snapshot.running);
|
|
6416
5645
|
const runningStartTime = useChatNode(useChat((snapshot) => snapshot.navigation.items().at(-1)?.anchorKey) ?? "", (node) => {
|
|
6417
5646
|
const location = node?.location;
|
|
6418
5647
|
return location?.kind === "turn" || location?.kind === "step" ? location.turn.status === "open" ? location.turn.start?.time : void 0 : void 0;
|
|
6419
5648
|
});
|
|
6420
|
-
const renderMessageImages = (0, react.useCallback)((owner) => renderSlot("conversation.message.images", {
|
|
6421
|
-
...owner,
|
|
6422
|
-
loadImage
|
|
6423
|
-
}), [loadImage, renderSlot]);
|
|
6424
5649
|
const seatProps = {
|
|
6425
5650
|
nodeStore,
|
|
6426
5651
|
useChatNode,
|
|
@@ -6435,11 +5660,9 @@ window.__ModuleLoader__.load({
|
|
|
6435
5660
|
deferCollapse,
|
|
6436
5661
|
cwd,
|
|
6437
5662
|
openFile,
|
|
6438
|
-
openSkill,
|
|
6439
5663
|
inspectCall,
|
|
6440
5664
|
forkAt,
|
|
6441
5665
|
loadImage,
|
|
6442
|
-
renderMessageImages,
|
|
6443
5666
|
fileMentions
|
|
6444
5667
|
};
|
|
6445
5668
|
const rows = entries.map((entry) => {
|
|
@@ -6462,11 +5685,13 @@ window.__ModuleLoader__.load({
|
|
|
6462
5685
|
});
|
|
6463
5686
|
const pendingRows = pendingInputs.map((item) => "requestId" in item ? (0, react_jsx_runtime.jsx)(PendingSubmissionBubble, {
|
|
6464
5687
|
submission: item,
|
|
6465
|
-
|
|
5688
|
+
loadImage,
|
|
5689
|
+
renderFactorySlot,
|
|
6466
5690
|
t
|
|
6467
5691
|
}, item.requestId) : (0, react_jsx_runtime.jsx)(PendingSteeringBubble, {
|
|
6468
5692
|
content: item.content,
|
|
6469
|
-
|
|
5693
|
+
loadImage,
|
|
5694
|
+
renderFactorySlot,
|
|
6470
5695
|
t
|
|
6471
5696
|
}, item.id));
|
|
6472
5697
|
const tail = entries.at(-1);
|
|
@@ -6651,8 +5876,9 @@ window.__ModuleLoader__.load({
|
|
|
6651
5876
|
"message.retry.delay": "重试延迟:",
|
|
6652
5877
|
"message.retry.failure": "失败原因:",
|
|
6653
5878
|
"message.failure.auth": "API 密钥无效",
|
|
6654
|
-
"message.
|
|
5879
|
+
"message.taskStopped": "任务已停止",
|
|
6655
5880
|
"message.failure.accountSignedOut": "任务已因退出 DeepSeek 登录而停止。",
|
|
5881
|
+
"message.failure.interrupted": "DSH 进程在本轮完成前退出(例如被强制结束、崩溃或关闭超时),重新启动后本轮已中止。未完成的工具调用结果未知。",
|
|
6656
5882
|
"message.failure.accountSignInRequired": "请先登录 DeepSeek,并确认请求地址支持账号认证。",
|
|
6657
5883
|
"message.failure.quota": "当前请求的额度已用尽",
|
|
6658
5884
|
"message.turnError": "本轮运行失败",
|
|
@@ -6844,8 +6070,9 @@ window.__ModuleLoader__.load({
|
|
|
6844
6070
|
"message.retry.delay": "Retry delay: ",
|
|
6845
6071
|
"message.retry.failure": "Failure reason: ",
|
|
6846
6072
|
"message.failure.auth": "API key is invalid",
|
|
6847
|
-
"message.
|
|
6073
|
+
"message.taskStopped": "Task stopped",
|
|
6848
6074
|
"message.failure.accountSignedOut": "Stopped because you signed out of DeepSeek.",
|
|
6075
|
+
"message.failure.interrupted": "The DSH process exited before this turn finished (for example, it was killed, crashed, or timed out while shutting down), so the turn was closed when DSH restarted. Unfinished tool calls have unknown outcomes.",
|
|
6849
6076
|
"message.failure.accountSignInRequired": "Sign in to DeepSeek and ensure the request destination supports account authentication.",
|
|
6850
6077
|
"message.failure.quota": "Request quota exhausted.",
|
|
6851
6078
|
"message.turnError": "This turn failed",
|
|
@@ -7026,8 +6253,8 @@ window.__ModuleLoader__.load({
|
|
|
7026
6253
|
}
|
|
7027
6254
|
return fileMediaUrl(base, path);
|
|
7028
6255
|
}
|
|
7029
|
-
/**
|
|
7030
|
-
const AssistantMarkdown = (0, react.memo)(function AssistantMarkdown({ blocks, streaming, interrupted,
|
|
6256
|
+
/** Renders non-blank reasoning blocks as independent disclosures alongside the response. */
|
|
6257
|
+
const AssistantMarkdown = (0, react.memo)(function AssistantMarkdown({ blocks, streaming, interrupted, loadImage, groupPart, useDisclosure, reasoningHidden = false, usePresentation, revealProcess, mentions, renderSlot, useGroupAction, t }) {
|
|
7031
6258
|
const labels = (0, react.useMemo)(() => markdownLabels(t), [t]);
|
|
7032
6259
|
const pathImages = (0, react.useMemo)(() => {
|
|
7033
6260
|
return { resolve: (value) => localPathMediaUrl(document.baseURI, value) };
|
|
@@ -7051,6 +6278,7 @@ window.__ModuleLoader__.load({
|
|
|
7051
6278
|
}, i));
|
|
7052
6279
|
break;
|
|
7053
6280
|
case "reasoning":
|
|
6281
|
+
if (block.text.trim() === "") break;
|
|
7054
6282
|
rendered.push((0, react_jsx_runtime.jsx)(ProcessReasoning, {
|
|
7055
6283
|
hidden: reasoningHidden,
|
|
7056
6284
|
reveal: revealProcess,
|
|
@@ -7074,8 +6302,9 @@ window.__ModuleLoader__.load({
|
|
|
7074
6302
|
group.push(next);
|
|
7075
6303
|
i += 1;
|
|
7076
6304
|
}
|
|
7077
|
-
rendered.push((0, react_jsx_runtime.jsx)(react.Fragment, { children:
|
|
6305
|
+
rendered.push((0, react_jsx_runtime.jsx)(react.Fragment, { children: renderSlot("conversation.chat.message.images", {
|
|
7078
6306
|
images: group.map(({ attachment }) => ({ attachment })),
|
|
6307
|
+
loadImage,
|
|
7079
6308
|
align: "start"
|
|
7080
6309
|
}) }, start));
|
|
7081
6310
|
break;
|
|
@@ -7111,7 +6340,7 @@ window.__ModuleLoader__.load({
|
|
|
7111
6340
|
//#endregion
|
|
7112
6341
|
//#region lib/types/client/chat/AssistantNodeView.js
|
|
7113
6342
|
/** Streaming, settled, and interrupted Assistant states share one keyed renderer instance. */
|
|
7114
|
-
const AssistantNodeView = (0, react.memo)(function AssistantNodeView({ node, groupPart, useDisclosure, useGroupAction, useTurnData, turnProcess, openFile,
|
|
6343
|
+
const AssistantNodeView = (0, react.memo)(function AssistantNodeView({ node, groupPart, useDisclosure, useGroupAction, useTurnData, turnProcess, openFile, loadImage, fileMentions, usePresentation, renderSlot, t }) {
|
|
7115
6344
|
const data = node.data;
|
|
7116
6345
|
const turn = node.location.kind === "turn" || node.location.kind === "step" ? node.location.turn : void 0;
|
|
7117
6346
|
const tail = useTurnData("turn-tail");
|
|
@@ -7140,7 +6369,7 @@ window.__ModuleLoader__.load({
|
|
|
7140
6369
|
useDisclosure,
|
|
7141
6370
|
streaming: data.status === "running",
|
|
7142
6371
|
interrupted: data.status === "interrupted",
|
|
7143
|
-
|
|
6372
|
+
loadImage,
|
|
7144
6373
|
reasoningHidden,
|
|
7145
6374
|
useGroupAction,
|
|
7146
6375
|
usePresentation,
|
|
@@ -7394,10 +6623,11 @@ window.__ModuleLoader__.load({
|
|
|
7394
6623
|
if (turn?.status !== "closed") return null;
|
|
7395
6624
|
const canCollapse = turnProcess.foldable && turnProcess.hasContent && !turnProcessAlwaysOpen(node);
|
|
7396
6625
|
const reason = turn.end?.data.reason.kind;
|
|
6626
|
+
const stopped = reason === "aborted" || reason === "interrupted";
|
|
7397
6627
|
const elapsedMs = turn.start === void 0 || turn.end === void 0 ? void 0 : Math.max(1e3, turn.end.time - turn.start.time);
|
|
7398
|
-
const duration = elapsedMs === void 0 ||
|
|
7399
|
-
const label =
|
|
7400
|
-
const announcement =
|
|
6628
|
+
const duration = elapsedMs === void 0 || stopped || reason === "error" ? void 0 : formatRunDuration(elapsedMs, t);
|
|
6629
|
+
const label = stopped ? t("message.stopped") : reason === "error" ? t("message.turnProcess.failed") : duration === void 0 ? t("message.turnProcess.worked") : t("message.turnProcess.took");
|
|
6630
|
+
const announcement = stopped ? t("message.stopped") : reason === "error" ? t("message.turnProcess.failed") : t("message.turnProcess.worked");
|
|
7401
6631
|
return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("span", {
|
|
7402
6632
|
className: accessibility_module_css_default.visuallyHidden,
|
|
7403
6633
|
role: "status",
|
|
@@ -7730,8 +6960,9 @@ window.__ModuleLoader__.load({
|
|
|
7730
6960
|
}
|
|
7731
6961
|
}
|
|
7732
6962
|
/** Turn-local actions and feature tail over the Location index, independent of Assistant placement. */
|
|
7733
|
-
const TurnTailNodeView = (0, react.memo)(function TurnTailNodeView({ node, openFile, forkAt, renderSlot, t, useChat, usePerformanceUsage }) {
|
|
6963
|
+
const TurnTailNodeView = (0, react.memo)(function TurnTailNodeView({ node, openFile, forkAt, renderSlot, t, useAccess, useChat, usePerformanceUsage }) {
|
|
7734
6964
|
const detailed = usePerformanceUsage((mode) => mode) === "detailed";
|
|
6965
|
+
const forkAllowed = useAccess("session/fork");
|
|
7735
6966
|
const data = node.data;
|
|
7736
6967
|
const hasLaterChatNode = useChat((snapshot) => (lastContent(snapshot, data.turn, true)?.anchorSeq ?? -1) > (data.closing?.finalNode.seq ?? data.seq));
|
|
7737
6968
|
const endsWithResponse = useChat((snapshot) => {
|
|
@@ -7763,9 +6994,9 @@ window.__ModuleLoader__.load({
|
|
|
7763
6994
|
text: assistantText(closing.blocks),
|
|
7764
6995
|
time: closing.time,
|
|
7765
6996
|
clock: "end",
|
|
7766
|
-
onBranch: () => {
|
|
6997
|
+
onBranch: forkAllowed ? () => {
|
|
7767
6998
|
forkAt(data.seq);
|
|
7768
|
-
},
|
|
6999
|
+
} : void 0,
|
|
7769
7000
|
branchUnavailable: data.branchUnavailable || hasLaterChatNode,
|
|
7770
7001
|
className: TurnTailNodeView_module_css_default.actions,
|
|
7771
7002
|
extraActions: assistantActions,
|
|
@@ -7980,10 +7211,16 @@ window.__ModuleLoader__.load({
|
|
|
7980
7211
|
name: "conversation.chat.node",
|
|
7981
7212
|
key: "assistant-step",
|
|
7982
7213
|
locale: NS,
|
|
7983
|
-
children: {
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7214
|
+
children: {
|
|
7215
|
+
"conversation.chat.reasoning.body": {
|
|
7216
|
+
kind: "single",
|
|
7217
|
+
scope: "session"
|
|
7218
|
+
},
|
|
7219
|
+
"conversation.chat.message.images": {
|
|
7220
|
+
kind: "single",
|
|
7221
|
+
scope: "session"
|
|
7222
|
+
}
|
|
7223
|
+
},
|
|
7987
7224
|
inject: () => ({ hooks: { presentation } })
|
|
7988
7225
|
}, AssistantNodeView));
|
|
7989
7226
|
ctx.slots.inject("conversation.chat.node", () => ctx.slots.register({
|
|
@@ -8048,6 +7285,70 @@ window.__ModuleLoader__.load({
|
|
|
8048
7285
|
}, UnknownNodeView));
|
|
8049
7286
|
}
|
|
8050
7287
|
//#endregion
|
|
7288
|
+
//#region lib/types/client/chat/UserContent.js
|
|
7289
|
+
/** Reusable user contents inside a caller-owned message row. */
|
|
7290
|
+
const EMPTY_LABELS = [];
|
|
7291
|
+
/**
|
|
7292
|
+
* Render prepared text, ordered attachments, and references without message chrome.
|
|
7293
|
+
* The caller owns row identity, pending/echo state, time, and message actions.
|
|
7294
|
+
* @param props - prepared content, facts, authorized image loader, and framework Factory/locale seats.
|
|
7295
|
+
* @returns the content stack using the existing user-message layout.
|
|
7296
|
+
*/
|
|
7297
|
+
function UserContent({ content, loadImage, facts, interactive = false, ellipsis = false, renderSlot, renderFactorySlot, t }) {
|
|
7298
|
+
const { text, attachments, extraBlocks, referenceLabels = EMPTY_LABELS } = content;
|
|
7299
|
+
const compactImages = attachments.length > 1;
|
|
7300
|
+
const truncated = (total) => t("json.truncated", { total });
|
|
7301
|
+
const showBubble = text !== "" || extraBlocks.length > 0;
|
|
7302
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
7303
|
+
className: MessageItem_module_css_default.userStack,
|
|
7304
|
+
children: [
|
|
7305
|
+
attachments.length > 0 && (0, react_jsx_runtime.jsx)("div", {
|
|
7306
|
+
className: MessageItem_module_css_default.attachmentRow,
|
|
7307
|
+
"data-message-attachments": true,
|
|
7308
|
+
children: attachments.map((attachment, index) => attachment.type === "image" ? (0, react_jsx_runtime.jsx)(react.Fragment, { children: renderSlot("conversation.chat.user.images", {
|
|
7309
|
+
images: [attachment.image],
|
|
7310
|
+
loadImage,
|
|
7311
|
+
align: "end",
|
|
7312
|
+
compact: compactImages
|
|
7313
|
+
}) }, `image:${index}`) : (0, react_jsx_runtime.jsxs)("span", {
|
|
7314
|
+
className: MessageItem_module_css_default.fileCard,
|
|
7315
|
+
title: attachment.file.name,
|
|
7316
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.FileTypeIcon, {
|
|
7317
|
+
path: attachment.file.name,
|
|
7318
|
+
className: MessageItem_module_css_default.fileIcon
|
|
7319
|
+
}), (0, react_jsx_runtime.jsxs)("span", {
|
|
7320
|
+
className: MessageItem_module_css_default.fileContent,
|
|
7321
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
7322
|
+
className: MessageItem_module_css_default.fileName,
|
|
7323
|
+
children: attachment.file.name
|
|
7324
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
7325
|
+
className: MessageItem_module_css_default.fileMeta,
|
|
7326
|
+
children: [(0, _deepseek_ai_dsh_client_ui_primitives.fileExtension)(attachment.file.name).toUpperCase().slice(0, 8), (0, _deepseek_ai_dsh_client_ui_primitives.fileSizeText)(attachment.file.bytes)].filter(Boolean).join(" ")
|
|
7327
|
+
})]
|
|
7328
|
+
})]
|
|
7329
|
+
}, `file:${index}`))
|
|
7330
|
+
}),
|
|
7331
|
+
showBubble && (0, react_jsx_runtime.jsxs)("div", {
|
|
7332
|
+
className: MessageItem_module_css_default.bubble,
|
|
7333
|
+
children: [renderFactorySlot("conversation.user.text", {
|
|
7334
|
+
text,
|
|
7335
|
+
facts,
|
|
7336
|
+
interactive,
|
|
7337
|
+
ellipsis
|
|
7338
|
+
}), extraBlocks.map((block, index) => (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonBlock, {
|
|
7339
|
+
label: t("message.extraBlock"),
|
|
7340
|
+
payload: block,
|
|
7341
|
+
truncatedLabel: truncated
|
|
7342
|
+
}, index))]
|
|
7343
|
+
}),
|
|
7344
|
+
referenceLabels.length > 0 && (0, react_jsx_runtime.jsx)("div", {
|
|
7345
|
+
className: MessageItem_module_css_default.referenceSummary,
|
|
7346
|
+
children: t("message.referenceSummary", { labels: referenceLabels.join(t("message.referenceSeparator")) })
|
|
7347
|
+
})
|
|
7348
|
+
]
|
|
7349
|
+
});
|
|
7350
|
+
}
|
|
7351
|
+
//#endregion
|
|
8051
7352
|
//#region lib/types/client/contract/turn-metrics.js
|
|
8052
7353
|
function usageOutputTokens(usage) {
|
|
8053
7354
|
if (typeof usage !== "object" || usage === null) return null;
|
|
@@ -8069,7 +7370,7 @@ window.__ModuleLoader__.load({
|
|
|
8069
7370
|
}
|
|
8070
7371
|
//#endregion
|
|
8071
7372
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/StatsPills.module.css.mjs
|
|
8072
|
-
const css$1 = ".bOPqQW_anchor{min-width:0;font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));display:inline-flex}.bOPqQW_pill{box-sizing:border-box;
|
|
7373
|
+
const css$1 = ".bOPqQW_anchor{min-width:0;font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));display:inline-flex}.bOPqQW_pill{box-sizing:border-box;border-radius:var(--dsw-radius-sm);max-width:100%;color:var(--dsw-alias-label-tertiary);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;padding:1px 8px;display:inline-flex}.bOPqQW_pill svg{flex:none;width:14px;height:14px}button.bOPqQW_pill{cursor:pointer}button.bOPqQW_pill:hover,button.bOPqQW_pill[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.bOPqQW_label{text-overflow:ellipsis;min-width:0;overflow:hidden}.bOPqQW_sep{color:var(--dsw-alias-separator-primary);margin:0 6px}";
|
|
8073
7374
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-chat/StatsPills.module.css";
|
|
8074
7375
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
8075
7376
|
const tag = document.createElement("style");
|
|
@@ -8360,12 +7661,25 @@ window.__ModuleLoader__.load({
|
|
|
8360
7661
|
return context.start?.location ?? context.matches[0]?.location ?? { kind: "unresolved" };
|
|
8361
7662
|
}
|
|
8362
7663
|
/**
|
|
7664
|
+
* Read the Turn and Step a Location resolves to.
|
|
7665
|
+
* @param location - engine-owned Location.
|
|
7666
|
+
* @returns resolved coordinates; Session-level and unresolved Locations have none.
|
|
7667
|
+
*/
|
|
7668
|
+
function locationCoordinates(location) {
|
|
7669
|
+
if (location.kind === "step") return {
|
|
7670
|
+
turn: location.turn.turn,
|
|
7671
|
+
step: location.step.step
|
|
7672
|
+
};
|
|
7673
|
+
if (location.kind === "turn") return { turn: location.turn.turn };
|
|
7674
|
+
return {};
|
|
7675
|
+
}
|
|
7676
|
+
/**
|
|
8363
7677
|
* Build one final Chat target Node with the engine-owned stable key.
|
|
8364
7678
|
* @param context - assembled business Context.
|
|
8365
7679
|
* @param kind - Chat renderer dispatch key.
|
|
8366
7680
|
* @param anchorSeq - sortable render position.
|
|
8367
7681
|
* @param data - renderer-owned payload.
|
|
8368
|
-
* @param options - optional Location and
|
|
7682
|
+
* @param options - optional Location, visibility, and group-tree overrides.
|
|
8369
7683
|
* @returns final Chat view Node.
|
|
8370
7684
|
*/
|
|
8371
7685
|
function chatNode(context, kind, anchorSeq, data, options = {}) {
|
|
@@ -8377,6 +7691,7 @@ window.__ModuleLoader__.load({
|
|
|
8377
7691
|
anchorSeq,
|
|
8378
7692
|
location: options.location ?? contextLocation(context),
|
|
8379
7693
|
visibility: options.visibility ?? "visible",
|
|
7694
|
+
groupTree: options.groupTree,
|
|
8380
7695
|
data
|
|
8381
7696
|
};
|
|
8382
7697
|
}
|
|
@@ -8886,6 +8201,86 @@ window.__ModuleLoader__.load({
|
|
|
8886
8201
|
return node.visibility === "visible" && node.kind !== "system-prompt" && (node.kind !== "context" || node.data.content.some((block) => block.type === "tool-addition" || block.type === "tool-removal")) && !(node.kind === "command" && node.data.name === "permission");
|
|
8887
8202
|
}
|
|
8888
8203
|
//#endregion
|
|
8204
|
+
//#region lib/types/client/conversation-nodes/group-tree-segments.js
|
|
8205
|
+
const NO_TURNS = [];
|
|
8206
|
+
/**
|
|
8207
|
+
* Loaded Turns split into consecutive segments at the Turns holding a Node at
|
|
8208
|
+
* one group-tree position, visible or hidden. The latest segment starts at the
|
|
8209
|
+
* last such Turn, or at the first loaded Turn when none is loaded. Node changes
|
|
8210
|
+
* update per-Turn counts without scanning the loaded Nodes; `settle` returns at
|
|
8211
|
+
* once while the start holds and otherwise reads loaded Turns only from the
|
|
8212
|
+
* earlier of the previous and new starts.
|
|
8213
|
+
*/
|
|
8214
|
+
var GroupTreeSegments = class {
|
|
8215
|
+
position;
|
|
8216
|
+
/** Opening Node count by owning Turn. */
|
|
8217
|
+
openings = /* @__PURE__ */ new Map();
|
|
8218
|
+
latestOpening;
|
|
8219
|
+
latestStart;
|
|
8220
|
+
/** @param position - group-tree position whose Nodes open a segment. */
|
|
8221
|
+
constructor(position) {
|
|
8222
|
+
this.position = position;
|
|
8223
|
+
}
|
|
8224
|
+
/**
|
|
8225
|
+
* Account one Node change.
|
|
8226
|
+
* @param previous - replaced Node; absent for an addition.
|
|
8227
|
+
* @param next - replacing Node; absent for a removal.
|
|
8228
|
+
*/
|
|
8229
|
+
track(previous, next) {
|
|
8230
|
+
const before = this.openingTurn(previous);
|
|
8231
|
+
const after = this.openingTurn(next);
|
|
8232
|
+
if (before === after) return;
|
|
8233
|
+
if (before !== void 0 && this.adjust(before, -1) === 0 && before === this.latestOpening) this.latestOpening = this.lastOpeningTurn();
|
|
8234
|
+
if (after !== void 0) {
|
|
8235
|
+
this.adjust(after, 1);
|
|
8236
|
+
if (this.latestOpening === void 0 || after > this.latestOpening) this.latestOpening = after;
|
|
8237
|
+
}
|
|
8238
|
+
}
|
|
8239
|
+
/**
|
|
8240
|
+
* Test latest-segment membership as of the last `settle`.
|
|
8241
|
+
* @param turn - owning Turn, when resolved.
|
|
8242
|
+
* @returns whether the Turn belongs to the latest segment.
|
|
8243
|
+
*/
|
|
8244
|
+
inLatest(turn) {
|
|
8245
|
+
return turn !== void 0 && this.latestStart !== void 0 && turn >= this.latestStart;
|
|
8246
|
+
}
|
|
8247
|
+
/**
|
|
8248
|
+
* Move the latest segment start for the currently loaded Turns.
|
|
8249
|
+
* @param turnOrder - loaded Turns in ascending timeline order.
|
|
8250
|
+
* @returns loaded Turns that entered or left the latest segment, in ascending order.
|
|
8251
|
+
*/
|
|
8252
|
+
settle(turnOrder) {
|
|
8253
|
+
const previous = this.latestStart;
|
|
8254
|
+
const start = this.latestOpening ?? turnOrder[0];
|
|
8255
|
+
if (start === previous) return NO_TURNS;
|
|
8256
|
+
this.latestStart = start;
|
|
8257
|
+
const bounded = previous !== void 0 && start !== void 0;
|
|
8258
|
+
const low = bounded ? Math.min(previous, start) : Number.NEGATIVE_INFINITY;
|
|
8259
|
+
const high = bounded ? Math.max(previous, start) : Number.POSITIVE_INFINITY;
|
|
8260
|
+
const changed = [];
|
|
8261
|
+
for (const turn of turnOrder.slice(turnOrder.findLastIndex((turn) => turn < low) + 1)) {
|
|
8262
|
+
if (turn >= high) break;
|
|
8263
|
+
changed.push(turn);
|
|
8264
|
+
}
|
|
8265
|
+
return changed;
|
|
8266
|
+
}
|
|
8267
|
+
openingTurn(node) {
|
|
8268
|
+
return node !== void 0 && isAtOrOutside(node, this.position) ? locationCoordinates(node.location).turn : void 0;
|
|
8269
|
+
}
|
|
8270
|
+
lastOpeningTurn() {
|
|
8271
|
+
let last;
|
|
8272
|
+
for (const turn of this.openings.keys()) if (last === void 0 || turn > last) last = turn;
|
|
8273
|
+
return last;
|
|
8274
|
+
}
|
|
8275
|
+
/** @returns the Turn's opening count after the change; zero removes the Turn. */
|
|
8276
|
+
adjust(turn, delta) {
|
|
8277
|
+
const next = (this.openings.get(turn) ?? 0) + delta;
|
|
8278
|
+
if (next > 0) this.openings.set(turn, next);
|
|
8279
|
+
else this.openings.delete(turn);
|
|
8280
|
+
return next;
|
|
8281
|
+
}
|
|
8282
|
+
};
|
|
8283
|
+
//#endregion
|
|
8889
8284
|
//#region lib/types/client/conversation-nodes/turn-navigation.js
|
|
8890
8285
|
/**
|
|
8891
8286
|
* Preview budgets, sized to the rail card's clamps (one prompt line, up to
|
|
@@ -8974,7 +8369,7 @@ window.__ModuleLoader__.load({
|
|
|
8974
8369
|
let openingHumanAnchor;
|
|
8975
8370
|
for (const key of keys) {
|
|
8976
8371
|
const node = nodes.get(key);
|
|
8977
|
-
if (
|
|
8372
|
+
if (node !== void 0 && isAtOrOutside(node, "input") && (spec.controlAnchorSeq === location.turn.start?.seq || node.anchorSeq < spec.controlAnchorSeq)) openingHumanAnchor = Math.max(openingHumanAnchor ?? node.anchorSeq, node.anchorSeq);
|
|
8978
8373
|
}
|
|
8979
8374
|
let hasExternalProcess = false;
|
|
8980
8375
|
let hasInterleavedInput = false;
|
|
@@ -8982,11 +8377,11 @@ window.__ModuleLoader__.load({
|
|
|
8982
8377
|
for (const key of keys) {
|
|
8983
8378
|
const node = nodes.get(key);
|
|
8984
8379
|
if (node === void 0 || !isVisibleChatNode(node) || node.kind === "turn-process") continue;
|
|
8985
|
-
if ((node
|
|
8380
|
+
if (isAtOrOutside(node, "input") && (openingHumanAnchor === void 0 || node.anchorSeq > openingHumanAnchor)) {
|
|
8986
8381
|
hasInterleavedInput = true;
|
|
8987
8382
|
if (spec.answerAnchorSeq === null || node.anchorSeq < spec.answerAnchorSeq) compactAnswer = false;
|
|
8988
8383
|
}
|
|
8989
|
-
if (
|
|
8384
|
+
if (isAtOrOutside(node, "turn") || node.anchorSeq < spec.processStartSeq || spec.answerAnchorSeq !== null && node.anchorSeq >= spec.answerAnchorSeq) continue;
|
|
8990
8385
|
if (node.kind !== "assistant-step" || spec.answerStep === null || node.data.step !== spec.answerStep) hasExternalProcess = true;
|
|
8991
8386
|
}
|
|
8992
8387
|
return {
|
|
@@ -9124,7 +8519,8 @@ window.__ModuleLoader__.load({
|
|
|
9124
8519
|
sources = /* @__PURE__ */ new Map();
|
|
9125
8520
|
processSources = /* @__PURE__ */ new Map();
|
|
9126
8521
|
bottomSources = /* @__PURE__ */ new Map();
|
|
9127
|
-
|
|
8522
|
+
/** Bottom membership: the latest loaded exchange. */
|
|
8523
|
+
exchanges = new GroupTreeSegments("exchange");
|
|
9128
8524
|
dirtyKeys = /* @__PURE__ */ new Set();
|
|
9129
8525
|
dirtyBottomKeys = /* @__PURE__ */ new Set();
|
|
9130
8526
|
dirtyProcessKeys = /* @__PURE__ */ new Set();
|
|
@@ -9141,13 +8537,17 @@ window.__ModuleLoader__.load({
|
|
|
9141
8537
|
bottomSource(key) {
|
|
9142
8538
|
return cachedSource(this.bottomSources, key, () => new MutableChatSource(() => {
|
|
9143
8539
|
const node = this.get(key);
|
|
9144
|
-
return
|
|
8540
|
+
return node !== void 0 && isVisibleChatNode(node) && this.exchanges.inLatest(locationCoordinates(node.location).turn);
|
|
9145
8541
|
}, `[ui-chat] node bottom source ${key}`));
|
|
9146
8542
|
}
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
8543
|
+
/**
|
|
8544
|
+
* Settle the latest exchange for the loaded Turns and mark the Nodes of
|
|
8545
|
+
* Turns that entered or left it.
|
|
8546
|
+
* @param turnOrder - loaded Turns in ascending timeline order.
|
|
8547
|
+
* @param locations - current Chat Location index.
|
|
8548
|
+
*/
|
|
8549
|
+
settleBottom(turnOrder, locations) {
|
|
8550
|
+
for (const turn of this.exchanges.settle(turnOrder)) for (const key of locations.getTurn(turn)) this.dirtyBottomKeys.add(key);
|
|
9151
8551
|
}
|
|
9152
8552
|
turnDataSource(turn, kind) {
|
|
9153
8553
|
return this.turnKind(turn, kind).source();
|
|
@@ -9189,6 +8589,7 @@ window.__ModuleLoader__.load({
|
|
|
9189
8589
|
this.byKey.set(node.key, node);
|
|
9190
8590
|
if (previous.get(node.key) !== node) {
|
|
9191
8591
|
this.updateTurnKind(previous.get(node.key), node);
|
|
8592
|
+
this.exchanges.track(previous.get(node.key), node);
|
|
9192
8593
|
this.dirtyKeys.add(node.key);
|
|
9193
8594
|
this.dirtyProcessKeys.add(node.key);
|
|
9194
8595
|
}
|
|
@@ -9196,6 +8597,7 @@ window.__ModuleLoader__.load({
|
|
|
9196
8597
|
}
|
|
9197
8598
|
for (const key of previous.keys()) {
|
|
9198
8599
|
this.updateTurnKind(previous.get(key), void 0);
|
|
8600
|
+
this.exchanges.track(previous.get(key), void 0);
|
|
9199
8601
|
this.dirtyKeys.add(key);
|
|
9200
8602
|
this.dirtyProcessKeys.add(key);
|
|
9201
8603
|
}
|
|
@@ -9207,6 +8609,7 @@ window.__ModuleLoader__.load({
|
|
|
9207
8609
|
for (const node of nodes) {
|
|
9208
8610
|
if (this.byKey.get(node.key) === node) continue;
|
|
9209
8611
|
this.updateTurnKind(this.byKey.get(node.key), node);
|
|
8612
|
+
this.exchanges.track(this.byKey.get(node.key), node);
|
|
9210
8613
|
this.byKey.set(node.key, node);
|
|
9211
8614
|
this.dirtyKeys.add(node.key);
|
|
9212
8615
|
this.dirtyProcessKeys.add(node.key);
|
|
@@ -9365,14 +8768,6 @@ window.__ModuleLoader__.load({
|
|
|
9365
8768
|
function stepKey(turn, step) {
|
|
9366
8769
|
return `${turn}:${step}`;
|
|
9367
8770
|
}
|
|
9368
|
-
function locationCoordinates(location) {
|
|
9369
|
-
if (location.kind === "step") return {
|
|
9370
|
-
turn: location.turn.turn,
|
|
9371
|
-
step: location.step.step
|
|
9372
|
-
};
|
|
9373
|
-
if (location.kind === "turn") return { turn: location.turn.turn };
|
|
9374
|
-
return {};
|
|
9375
|
-
}
|
|
9376
8771
|
function locationTurnStatus(location) {
|
|
9377
8772
|
return location.kind === "turn" || location.kind === "step" ? location.turn.status : void 0;
|
|
9378
8773
|
}
|
|
@@ -9397,14 +8792,14 @@ window.__ModuleLoader__.load({
|
|
|
9397
8792
|
if (location.kind !== "turn" && location.kind !== "step") continue;
|
|
9398
8793
|
const current = presentations.get(location.turn.turn) ?? {};
|
|
9399
8794
|
const controlAnchor = current.control?.data.controlAnchorSeq;
|
|
9400
|
-
if ((node
|
|
8795
|
+
if (isAtOrOutside(node, "input") && controlAnchor !== void 0 && (controlAnchor === location.turn.start?.seq || node.anchorSeq < controlAnchor)) {
|
|
9401
8796
|
presentations.set(location.turn.turn, {
|
|
9402
8797
|
...current,
|
|
9403
8798
|
openingInputAnchor: Math.max(current.openingInputAnchor ?? node.anchorSeq, node.anchorSeq)
|
|
9404
8799
|
});
|
|
9405
8800
|
continue;
|
|
9406
8801
|
}
|
|
9407
|
-
if (
|
|
8802
|
+
if (isAtOrOutside(node, "turn")) continue;
|
|
9408
8803
|
presentations.set(location.turn.turn, {
|
|
9409
8804
|
...current,
|
|
9410
8805
|
earliestProcessAnchor: Math.min(current.earliestProcessAnchor ?? node.anchorSeq, node.anchorSeq)
|
|
@@ -9427,7 +8822,7 @@ window.__ModuleLoader__.load({
|
|
|
9427
8822
|
originalAnchor: node.anchorSeq
|
|
9428
8823
|
};
|
|
9429
8824
|
const openingInputAnchor = presentation.openingInputAnchor;
|
|
9430
|
-
if (openingInputAnchor !== void 0 && node.anchorSeq < openingInputAnchor && !
|
|
8825
|
+
if (openingInputAnchor !== void 0 && node.anchorSeq < openingInputAnchor && !isAtOrOutside(node, "turn")) return {
|
|
9431
8826
|
anchor: openingInputAnchor,
|
|
9432
8827
|
rank: 2,
|
|
9433
8828
|
originalAnchor: node.anchorSeq
|
|
@@ -9943,7 +9338,7 @@ window.__ModuleLoader__.load({
|
|
|
9943
9338
|
this.order = orderedVisibleChatNodes(nodes).map((node) => node.key);
|
|
9944
9339
|
this.locations.rebuild(this.order, this.store);
|
|
9945
9340
|
this.store.replaceProcesses(this.order, this.locations);
|
|
9946
|
-
this.store.
|
|
9341
|
+
this.store.settleBottom(input.timeline.turnOrder, this.locations);
|
|
9947
9342
|
this.navigation.rebuild(input.timeline, this.locations, this.store);
|
|
9948
9343
|
this.timeline = input.timeline;
|
|
9949
9344
|
this.latestGroupInput = {
|
|
@@ -9968,7 +9363,7 @@ window.__ModuleLoader__.load({
|
|
|
9968
9363
|
previous,
|
|
9969
9364
|
current: node
|
|
9970
9365
|
});
|
|
9971
|
-
const nodeStructural = previous === void 0 || previous.kind !== node.kind || previous.anchorSeq !== node.anchorSeq || previous.visibility !== node.visibility || locationIdentity(previous.location) !== locationIdentity(node.location);
|
|
9366
|
+
const nodeStructural = previous === void 0 || previous.kind !== node.kind || previous.anchorSeq !== node.anchorSeq || previous.visibility !== node.visibility || previous.groupTree !== node.groupTree || locationIdentity(previous.location) !== locationIdentity(node.location);
|
|
9972
9367
|
structural ||= nodeStructural;
|
|
9973
9368
|
if (!nodeStructural) contentOnly.push(node);
|
|
9974
9369
|
if (processPresentationInputChanged(previous, node, nodeStructural)) {
|
|
@@ -9987,7 +9382,7 @@ window.__ModuleLoader__.load({
|
|
|
9987
9382
|
}
|
|
9988
9383
|
this.locations.touch(contentOnly);
|
|
9989
9384
|
this.store.updateProcesses(processTurns, this.locations);
|
|
9990
|
-
this.store.
|
|
9385
|
+
this.store.settleBottom(input.timeline.turnOrder, this.locations);
|
|
9991
9386
|
if (structural || input.timeline !== this.timeline) this.navigation.rebuild(input.timeline, this.locations, this.store);
|
|
9992
9387
|
else this.navigation.touch(turnsOf(contentOnly), this.locations, this.store);
|
|
9993
9388
|
this.timeline = input.timeline;
|
|
@@ -10488,7 +9883,14 @@ window.__ModuleLoader__.load({
|
|
|
10488
9883
|
update: (context) => context.state,
|
|
10489
9884
|
buildViewNode: (context) => {
|
|
10490
9885
|
if (context.state === void 0) return null;
|
|
10491
|
-
|
|
9886
|
+
const waking = context.state.kind === "context" && context.start?.event.type === "user/message" && context.state.waking === true;
|
|
9887
|
+
const location = contextLocation(context);
|
|
9888
|
+
const human = context.state.kind === "user" || context.state.kind === "steering";
|
|
9889
|
+
const opensExchange = human && location.kind === "step" && location.step.step === 1;
|
|
9890
|
+
return chatNode(context, waking ? "turn-trigger" : context.state.kind, context.state.seq, context.state, {
|
|
9891
|
+
location,
|
|
9892
|
+
groupTree: opensExchange ? "exchange" : human || waking ? "input" : void 0
|
|
9893
|
+
});
|
|
10492
9894
|
}
|
|
10493
9895
|
};
|
|
10494
9896
|
/** Developer history uses the input-message lifecycle and context presentation. */
|
|
@@ -10694,7 +10096,7 @@ window.__ModuleLoader__.load({
|
|
|
10694
10096
|
attempts,
|
|
10695
10097
|
current
|
|
10696
10098
|
};
|
|
10697
|
-
return chatNode(context, "model-retry", attempts[0]?.seq ?? current.seq, data);
|
|
10099
|
+
return chatNode(context, "model-retry", attempts[0]?.seq ?? current.seq, data, { groupTree: "process" });
|
|
10698
10100
|
}
|
|
10699
10101
|
};
|
|
10700
10102
|
/**
|
|
@@ -11066,13 +10468,27 @@ window.__ModuleLoader__.load({
|
|
|
11066
10468
|
if (location?.kind !== "turn" && location?.kind !== "step") return 0;
|
|
11067
10469
|
return location.turn.steps.at(-1)?.step ?? 0;
|
|
11068
10470
|
}
|
|
10471
|
+
/**
|
|
10472
|
+
* Failure shown for a turn ending: a recorded error, a sign-out cancellation,
|
|
10473
|
+
* or a turn that restart recovery closed because the DSH process exited mid-turn.
|
|
10474
|
+
*/
|
|
10475
|
+
function endFailure(reason) {
|
|
10476
|
+
switch (reason.kind) {
|
|
10477
|
+
case "error": return reason.error;
|
|
10478
|
+
case "aborted": return reason.reason.kind === "hook" && reason.reason.reason === "deepseek-account/signed-out" ? {
|
|
10479
|
+
message: "Stopped because you signed out of DeepSeek.",
|
|
10480
|
+
code: "ACCOUNT_SIGNED_OUT"
|
|
10481
|
+
} : void 0;
|
|
10482
|
+
case "interrupted": return {
|
|
10483
|
+
message: "The DSH process exited before this turn finished.",
|
|
10484
|
+
code: "INTERRUPTED"
|
|
10485
|
+
};
|
|
10486
|
+
default: return;
|
|
10487
|
+
}
|
|
10488
|
+
}
|
|
11069
10489
|
function failureFrom(match) {
|
|
11070
10490
|
if (match.event.type !== "turn/end") return void 0;
|
|
11071
|
-
const
|
|
11072
|
-
const failure = reason.kind === "error" ? reason.error : reason.kind === "aborted" && reason.reason.kind === "hook" && reason.reason.reason === "deepseek-account/signed-out" ? {
|
|
11073
|
-
message: "Stopped because you signed out of DeepSeek.",
|
|
11074
|
-
code: "ACCOUNT_SIGNED_OUT"
|
|
11075
|
-
} : void 0;
|
|
10491
|
+
const failure = endFailure(match.event.data.reason);
|
|
11076
10492
|
if (failure === void 0) return void 0;
|
|
11077
10493
|
const display = displayFailure(failure);
|
|
11078
10494
|
return {
|
|
@@ -11105,7 +10521,7 @@ window.__ModuleLoader__.load({
|
|
|
11105
10521
|
id: String(event.data.turn),
|
|
11106
10522
|
role: "start"
|
|
11107
10523
|
};
|
|
11108
|
-
if (event.type === "turn/end" && (event.data.reason
|
|
10524
|
+
if (event.type === "turn/end" && endFailure(event.data.reason) !== void 0) return {
|
|
11109
10525
|
id: String(event.data.turn),
|
|
11110
10526
|
role: "update"
|
|
11111
10527
|
};
|
|
@@ -11135,7 +10551,7 @@ window.__ModuleLoader__.load({
|
|
|
11135
10551
|
message: failure.message,
|
|
11136
10552
|
...failure.code === void 0 ? {} : { code: failure.code }
|
|
11137
10553
|
};
|
|
11138
|
-
return chatNode(context, "turn-error", node.seq, node);
|
|
10554
|
+
return chatNode(context, "turn-error", node.seq, node, { groupTree: "turn" });
|
|
11139
10555
|
}
|
|
11140
10556
|
};
|
|
11141
10557
|
/**
|
|
@@ -11199,7 +10615,7 @@ window.__ModuleLoader__.load({
|
|
|
11199
10615
|
turn: state.turn,
|
|
11200
10616
|
step: lastStep(context)
|
|
11201
10617
|
};
|
|
11202
|
-
return chatNode(context, "turn-max-tokens", noticeAnchor(context, state.seq), node);
|
|
10618
|
+
return chatNode(context, "turn-max-tokens", noticeAnchor(context, state.seq), node, { groupTree: "turn" });
|
|
11203
10619
|
}
|
|
11204
10620
|
};
|
|
11205
10621
|
/**
|
|
@@ -11401,7 +10817,7 @@ window.__ModuleLoader__.load({
|
|
|
11401
10817
|
const current = context.current.get("chat");
|
|
11402
10818
|
const state = context.state;
|
|
11403
10819
|
if (current?.kind === "turn-process" && state !== void 0 && current.data.answerAnchorSeq === null && current.data.controlAnchorSeq === state.controlAnchorSeq && current.data.messageCount === state.messageCount && current.data.toolCallCount === state.toolCallCount && current.data.subagentCount === state.subagentCount && turn.status !== "closed" && turn.steps.at(-1)?.status !== "closed" && current.location === (context.start?.location ?? context.matches[0]?.location)) return current;
|
|
11404
|
-
return chatNode(context, "turn-process", data.controlAnchorSeq + CHAT_SYNTHETIC_SEQ_OFFSETS.processControl, data);
|
|
10820
|
+
return chatNode(context, "turn-process", data.controlAnchorSeq + CHAT_SYNTHETIC_SEQ_OFFSETS.processControl, data, { groupTree: "turn" });
|
|
11405
10821
|
}
|
|
11406
10822
|
};
|
|
11407
10823
|
/**
|
|
@@ -11743,7 +11159,7 @@ window.__ModuleLoader__.load({
|
|
|
11743
11159
|
},
|
|
11744
11160
|
buildViewNode: (context) => {
|
|
11745
11161
|
const data = turnLocation(context)?.data.get("turn-tail");
|
|
11746
|
-
return data === void 0 ? null : chatNode(context, "turn-tail", data.seq + CHAT_SYNTHETIC_SEQ_OFFSETS.finalizedFollowup, data);
|
|
11162
|
+
return data === void 0 ? null : chatNode(context, "turn-tail", data.seq + CHAT_SYNTHETIC_SEQ_OFFSETS.finalizedFollowup, data, { groupTree: "turn" });
|
|
11747
11163
|
}
|
|
11748
11164
|
};
|
|
11749
11165
|
/**
|
|
@@ -11946,15 +11362,6 @@ window.__ModuleLoader__.load({
|
|
|
11946
11362
|
//#endregion
|
|
11947
11363
|
//#region lib/types/client/conversation-nodes/process-groups.js
|
|
11948
11364
|
/** Chat-owned segmentation and incremental summaries over materialized Node inputs. */
|
|
11949
|
-
const INDEPENDENT = new Set([
|
|
11950
|
-
"user",
|
|
11951
|
-
"steering",
|
|
11952
|
-
"turn-trigger",
|
|
11953
|
-
"model-retry",
|
|
11954
|
-
"turn-error",
|
|
11955
|
-
"turn-max-tokens",
|
|
11956
|
-
"turn-tail"
|
|
11957
|
-
]);
|
|
11958
11365
|
function turnOf(node) {
|
|
11959
11366
|
const location = node.location;
|
|
11960
11367
|
return location.kind === "turn" || location.kind === "step" ? location.turn.turn : void 0;
|
|
@@ -11973,21 +11380,13 @@ window.__ModuleLoader__.load({
|
|
|
11973
11380
|
}
|
|
11974
11381
|
function structureChanged(previous, current) {
|
|
11975
11382
|
if (!isVisibleChatNode(current) && (previous === void 0 || !isVisibleChatNode(previous))) return false;
|
|
11976
|
-
return previous === void 0 || previous.kind !== current.kind || turnOf(previous) !== turnOf(current) || isVisibleChatNode(previous) !== isVisibleChatNode(current) || reasoning(previous) !== reasoning(current) || reply(previous) !== reply(current);
|
|
11383
|
+
return previous === void 0 || previous.kind !== current.kind || turnOf(previous) !== turnOf(current) || isVisibleChatNode(previous) !== isVisibleChatNode(current) || previous.groupTree !== current.groupTree || reasoning(previous) !== reasoning(current) || reply(previous) !== reply(current);
|
|
11977
11384
|
}
|
|
11978
11385
|
function readNode(input, key) {
|
|
11979
11386
|
const node = input.readNode(key);
|
|
11980
11387
|
if (node === void 0) throw new Error(`Chat grouping input is missing Node ${key}`);
|
|
11981
11388
|
return node;
|
|
11982
11389
|
}
|
|
11983
|
-
function questionReplyIds(input, keys) {
|
|
11984
|
-
const ids = /* @__PURE__ */ new Set();
|
|
11985
|
-
for (const key of keys) {
|
|
11986
|
-
const node = readNode(input, key);
|
|
11987
|
-
if (node.kind === "question-reply") ids.add(node.id);
|
|
11988
|
-
}
|
|
11989
|
-
return ids;
|
|
11990
|
-
}
|
|
11991
11390
|
/** One group's members and cached summary, refreshed together when its content changes. */
|
|
11992
11391
|
var ProcessGroup = class {
|
|
11993
11392
|
key;
|
|
@@ -12101,26 +11500,19 @@ window.__ModuleLoader__.load({
|
|
|
12101
11500
|
};
|
|
12102
11501
|
let previous;
|
|
12103
11502
|
let followed = false;
|
|
12104
|
-
const
|
|
12105
|
-
const replies = questionReplyIds(input, keys);
|
|
12106
|
-
for (const key of keys) {
|
|
11503
|
+
for (const key of input.readTurn(this.turn)) {
|
|
12107
11504
|
const position = readPosition(input, key);
|
|
12108
11505
|
if (previous !== void 0 && position.previous !== previous) flush(true);
|
|
12109
11506
|
previous = key;
|
|
12110
11507
|
followed = position.next !== void 0;
|
|
12111
11508
|
const node = readNode(input, key);
|
|
12112
|
-
if (node
|
|
12113
|
-
if (INDEPENDENT.has(node.kind)) {
|
|
11509
|
+
if (isAtOrOutside(node, "process")) {
|
|
12114
11510
|
flush(true);
|
|
12115
11511
|
emit(key, {
|
|
12116
11512
|
kind: "node",
|
|
12117
11513
|
key
|
|
12118
11514
|
});
|
|
12119
|
-
} else if (node.kind === "
|
|
12120
|
-
kind: "node",
|
|
12121
|
-
key
|
|
12122
|
-
});
|
|
12123
|
-
else if (node.kind === "assistant-step") {
|
|
11515
|
+
} else if (node.kind === "assistant-step") {
|
|
12124
11516
|
if (reasoning(node)) pending.push({
|
|
12125
11517
|
kind: "node",
|
|
12126
11518
|
key,
|
|
@@ -12250,16 +11642,12 @@ window.__ModuleLoader__.load({
|
|
|
12250
11642
|
} : null;
|
|
12251
11643
|
}
|
|
12252
11644
|
rootEntries(input) {
|
|
12253
|
-
const replies = questionReplyIds(input, input.order.filter((key) => readPosition(input, key).turn === void 0));
|
|
12254
11645
|
return input.order.flatMap((key) => {
|
|
12255
11646
|
const turn = readPosition(input, key).turn;
|
|
12256
|
-
if (turn === void 0) {
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
key
|
|
12261
|
-
}];
|
|
12262
|
-
}
|
|
11647
|
+
if (turn === void 0) return [{
|
|
11648
|
+
kind: "node",
|
|
11649
|
+
key
|
|
11650
|
+
}];
|
|
12263
11651
|
const groups = this.turns.get(turn);
|
|
12264
11652
|
if (groups === void 0) throw new Error(`Chat grouping order is missing Turn ${turn}`);
|
|
12265
11653
|
return groups.references(key);
|
|
@@ -13227,6 +12615,12 @@ window.__ModuleLoader__.load({
|
|
|
13227
12615
|
const CHAT_SETTINGS_NAMESPACE = "ui-chat";
|
|
13228
12616
|
/** Field carrying the work-details presentation mode. */
|
|
13229
12617
|
const TRANSCRIPT_VIEW_FIELD = "transcriptView";
|
|
12618
|
+
/** Field carrying the independent work-details collapse timing. */
|
|
12619
|
+
const COLLAPSE_TIMING_FIELD = "collapseTiming";
|
|
12620
|
+
/** Available points when a completed Turn returns to its historical presentation. */
|
|
12621
|
+
const COLLAPSE_TIMINGS = ["completion", "next-input"];
|
|
12622
|
+
/** Preserve completion-time folding when no timing preference is saved. */
|
|
12623
|
+
const DEFAULT_COLLAPSE_TIMING = "completion";
|
|
13230
12624
|
/** Work-details presentation modes a user can choose. */
|
|
13231
12625
|
const TRANSCRIPT_VIEW_MODES = [
|
|
13232
12626
|
"compact",
|
|
@@ -13253,18 +12647,18 @@ window.__ModuleLoader__.load({
|
|
|
13253
12647
|
const PERFORMANCE_USAGE_MODES = ["compact", "detailed"];
|
|
13254
12648
|
/** Preserve detailed accounting for users without an explicit preference. */
|
|
13255
12649
|
const DEFAULT_PERFORMANCE_USAGE = "detailed";
|
|
12650
|
+
/** Preserve the built-in browser for users without an explicit preference. */
|
|
12651
|
+
const DEFAULT_LINK_OPENING = "sidebar";
|
|
13256
12652
|
/** Durable Chat schema; also the wire envelope the browser scope validates against. */
|
|
13257
12653
|
const ChatSettingsFields = {
|
|
13258
|
-
|
|
12654
|
+
[COLLAPSE_TIMING_FIELD]: Schema.union([...COLLAPSE_TIMINGS]).default(DEFAULT_COLLAPSE_TIMING),
|
|
12655
|
+
linkOpening: Schema.union(["sidebar", "new-tab"]).default(DEFAULT_LINK_OPENING),
|
|
13259
12656
|
performanceUsage: Schema.union([...PERFORMANCE_USAGE_MODES]).default(DEFAULT_PERFORMANCE_USAGE),
|
|
13260
12657
|
[TRANSCRIPT_VIEW_FIELD]: Schema.union([...TRANSCRIPT_VIEW_SETTING_VALUES]).loose()
|
|
13261
12658
|
};
|
|
13262
12659
|
Schema.object(ChatSettingsFields);
|
|
13263
12660
|
//#endregion
|
|
13264
12661
|
//#region lib/types/client/presentation-policy.js
|
|
13265
|
-
/** Chat presentation derived from Host-backed detail and in-memory collapse timing. */
|
|
13266
|
-
/** Available points when a completed Turn returns to its historical presentation. */
|
|
13267
|
-
const COLLAPSE_TIMINGS = ["completion", "next-input"];
|
|
13268
12662
|
const POLICIES = {
|
|
13269
12663
|
compact: {
|
|
13270
12664
|
mode: "compact",
|
|
@@ -13322,16 +12716,16 @@ window.__ModuleLoader__.load({
|
|
|
13322
12716
|
/**
|
|
13323
12717
|
* Resolve a stable policy for one detail mode and collapse timing.
|
|
13324
12718
|
* @param mode - persisted work-details mode.
|
|
13325
|
-
* @param collapseTiming -
|
|
12719
|
+
* @param collapseTiming - persisted timing; defaults to immediate completion folding.
|
|
13326
12720
|
* @returns the same policy object for the same pair of choices.
|
|
13327
12721
|
*/
|
|
13328
12722
|
function presentationPolicyFor(mode, collapseTiming = "completion") {
|
|
13329
12723
|
return TIMING_POLICIES[collapseTiming][mode];
|
|
13330
12724
|
}
|
|
13331
12725
|
/**
|
|
13332
|
-
* Combine Host-backed detail and
|
|
12726
|
+
* Combine Host-backed detail and persisted timing without owning subscriptions.
|
|
13333
12727
|
* @param mode - live work-details mode.
|
|
13334
|
-
* @param collapseTiming - live
|
|
12728
|
+
* @param collapseTiming - live Host-backed collapse timing.
|
|
13335
12729
|
* @returns observable policy whose subscriptions follow both preferences.
|
|
13336
12730
|
*/
|
|
13337
12731
|
function derivePresentationPolicy(mode, collapseTiming) {
|
|
@@ -13432,7 +12826,7 @@ window.__ModuleLoader__.load({
|
|
|
13432
12826
|
"next-input": "settings.collapse.nextInput"
|
|
13433
12827
|
};
|
|
13434
12828
|
/**
|
|
13435
|
-
* Render work-details and
|
|
12829
|
+
* Render the independent, Host-backed work-details and collapse-timing selectors.
|
|
13436
12830
|
* @param props - composed Settings slot props.
|
|
13437
12831
|
* @returns the preference row.
|
|
13438
12832
|
*/
|
|
@@ -13467,7 +12861,7 @@ window.__ModuleLoader__.load({
|
|
|
13467
12861
|
}
|
|
13468
12862
|
//#endregion
|
|
13469
12863
|
//#region lib/types/client/transcript-view.js
|
|
13470
|
-
/**
|
|
12864
|
+
/** Independent work-details preferences backed by the same Host configuration form. */
|
|
13471
12865
|
/** Live work-details preference consumed by Chat and its Settings row. */
|
|
13472
12866
|
var TranscriptViewPolicy = class {
|
|
13473
12867
|
host;
|
|
@@ -13475,8 +12869,8 @@ window.__ModuleLoader__.load({
|
|
|
13475
12869
|
unsubscribe;
|
|
13476
12870
|
/** Reactive current mode, including the client default before Host settings arrive. */
|
|
13477
12871
|
mode;
|
|
13478
|
-
/**
|
|
13479
|
-
collapseTiming = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(
|
|
12872
|
+
/** Reactive collapse timing, defaulting to completion until Host settings arrive. */
|
|
12873
|
+
collapseTiming = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(DEFAULT_COLLAPSE_TIMING);
|
|
13480
12874
|
/**
|
|
13481
12875
|
* @param host - durable Chat settings scope.
|
|
13482
12876
|
* @param defaultMode - presentation used without an explicit saved mode.
|
|
@@ -13504,11 +12898,13 @@ window.__ModuleLoader__.load({
|
|
|
13504
12898
|
this.host.set(TRANSCRIPT_VIEW_FIELD, mode);
|
|
13505
12899
|
}
|
|
13506
12900
|
/**
|
|
13507
|
-
*
|
|
12901
|
+
* Publish and persist collapse timing without changing the work-details mode.
|
|
13508
12902
|
* @param timing - immediate completion folding or deferred folding at the next input.
|
|
13509
12903
|
*/
|
|
13510
12904
|
setCollapseTiming(timing) {
|
|
12905
|
+
if (this.collapseTiming.getSnapshot() === timing) return;
|
|
13511
12906
|
this.collapseTiming.set(timing);
|
|
12907
|
+
this.host.set(COLLAPSE_TIMING_FIELD, timing);
|
|
13512
12908
|
}
|
|
13513
12909
|
/** Adopt the latest accepted Host section without writing it back. */
|
|
13514
12910
|
adopt() {
|
|
@@ -13517,6 +12913,8 @@ window.__ModuleLoader__.load({
|
|
|
13517
12913
|
const saved = section.transcriptView;
|
|
13518
12914
|
const mode = saved === "normal" || saved === "expanded" ? "detailed" : saved ?? this.defaultMode;
|
|
13519
12915
|
if (this.mode.getSnapshot() !== mode) this.mode.set(mode);
|
|
12916
|
+
const timing = section.collapseTiming ?? "completion";
|
|
12917
|
+
if (this.collapseTiming.getSnapshot() !== timing) this.collapseTiming.set(timing);
|
|
13520
12918
|
}
|
|
13521
12919
|
};
|
|
13522
12920
|
//#endregion
|
|
@@ -13579,14 +12977,14 @@ window.__ModuleLoader__.load({
|
|
|
13579
12977
|
}
|
|
13580
12978
|
//#endregion
|
|
13581
12979
|
//#region lib/types/client/performance-usage.js
|
|
13582
|
-
/** Performance detail preference
|
|
12980
|
+
/** Performance detail preference, live immediately and reconciled with accepted Host settings. */
|
|
13583
12981
|
/** Shared live preference for the settings row and chat statistics. */
|
|
13584
12982
|
var PerformanceUsagePolicy = class {
|
|
13585
12983
|
host;
|
|
13586
12984
|
unsubscribe;
|
|
13587
12985
|
/** Current choice, reconciled with accepted Host settings when available. */
|
|
13588
12986
|
mode = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(DEFAULT_PERFORMANCE_USAGE);
|
|
13589
|
-
/** @param host - Chat settings scope
|
|
12987
|
+
/** @param host - Chat settings scope persisted through the Host. */
|
|
13590
12988
|
constructor(host) {
|
|
13591
12989
|
this.host = host;
|
|
13592
12990
|
const adopt = () => {
|
|
@@ -13601,7 +12999,7 @@ window.__ModuleLoader__.load({
|
|
|
13601
12999
|
this.unsubscribe();
|
|
13602
13000
|
}
|
|
13603
13001
|
/**
|
|
13604
|
-
* Publish a choice immediately and
|
|
13002
|
+
* Publish a choice immediately and queue its Host write.
|
|
13605
13003
|
* @param mode - Statistics detail selected by the user.
|
|
13606
13004
|
*/
|
|
13607
13005
|
setMode(mode) {
|
|
@@ -13754,6 +13152,15 @@ window.__ModuleLoader__.load({
|
|
|
13754
13152
|
});
|
|
13755
13153
|
const performanceUsage = performancePolicy.mode;
|
|
13756
13154
|
registerChatNodeRenderers(ctx, performanceUsage, presentation);
|
|
13155
|
+
ctx.slots.registerFactory({
|
|
13156
|
+
name: "conversation.chat.user.content",
|
|
13157
|
+
scope: "session",
|
|
13158
|
+
locale: NS,
|
|
13159
|
+
children: { "conversation.chat.user.images": {
|
|
13160
|
+
kind: "single",
|
|
13161
|
+
scope: "session"
|
|
13162
|
+
} }
|
|
13163
|
+
}, UserContent);
|
|
13757
13164
|
ctx.slots.inject("settings.general.item", () => ctx.slots.register({
|
|
13758
13165
|
name: "settings.general.item",
|
|
13759
13166
|
id: "performance-usage",
|
|
@@ -13801,17 +13208,11 @@ window.__ModuleLoader__.load({
|
|
|
13801
13208
|
name: "conversation.chat.flow",
|
|
13802
13209
|
locale: NS,
|
|
13803
13210
|
store: chatStore,
|
|
13804
|
-
children: {
|
|
13805
|
-
"
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
},
|
|
13810
|
-
"conversation.message.images": {
|
|
13811
|
-
kind: "single",
|
|
13812
|
-
scope: "session"
|
|
13813
|
-
}
|
|
13814
|
-
},
|
|
13211
|
+
children: { "conversation.chat.node": {
|
|
13212
|
+
kind: "keyed",
|
|
13213
|
+
scope: "session",
|
|
13214
|
+
inject: CHAT_NODE_INJECT
|
|
13215
|
+
} },
|
|
13815
13216
|
inject: (sessionId) => {
|
|
13816
13217
|
const binding = ctx.sessions.binding(sessionId);
|
|
13817
13218
|
if (binding === void 0) throw new Error(`ui-chat: unknown session "${sessionId}"`);
|
|
@@ -13846,11 +13247,6 @@ window.__ModuleLoader__.load({
|
|
|
13846
13247
|
else ctx.sidebarRight.openResource(url, { params: { line: options.line } });
|
|
13847
13248
|
await Promise.resolve();
|
|
13848
13249
|
},
|
|
13849
|
-
openSkill: (name) => {
|
|
13850
|
-
const scope = ctx.sessions.scope(sessionId);
|
|
13851
|
-
if (scope === void 0) return;
|
|
13852
|
-
ctx.get("inputTriggers")?.sessionOf(scope).openReference("skill", { ref: `/${name}` });
|
|
13853
|
-
},
|
|
13854
13250
|
openExternalLink: (url) => {
|
|
13855
13251
|
if (linkOpening.getSnapshot() === "sidebar" && ctx.get("sidebarRightTabs")?.get("browser") !== void 0) ctx.sidebarRight.openTab("browser", { params: { url } });
|
|
13856
13252
|
else window.open(url, "_blank", "noopener,noreferrer");
|