@aparte/core 0.27.4 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +2 -0
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/bubble/bubble-sync.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +86 -7
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/locale.d.ts +14 -0
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/config/sanitize.d.ts +7 -2
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/custom-elements.json +17008 -16358
- package/dist/{defer-hydration-BlmPqEgs.js → defer-hydration-BMip3DKA.js} +1251 -101
- package/dist/defer-hydration-BMip3DKA.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -15
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +4 -3
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +14 -12
- package/dist/index.node.js.map +1 -1
- package/dist/parsers/aparte-stream-parser.d.ts.map +1 -1
- package/dist/renderers/citations.d.ts +23 -0
- package/dist/renderers/citations.d.ts.map +1 -0
- package/dist/renderers/code-languages.d.ts +30 -0
- package/dist/renderers/code-languages.d.ts.map +1 -0
- package/dist/renderers/highlight-stream.d.ts.map +1 -1
- package/dist/renderers/index.d.ts +3 -0
- package/dist/renderers/index.d.ts.map +1 -1
- package/dist/renderers/markdown-stream.d.ts +12 -1
- package/dist/renderers/markdown-stream.d.ts.map +1 -1
- package/dist/renderers/segments/code.d.ts.map +1 -1
- package/dist/renderers/segments/text.d.ts.map +1 -1
- package/dist/renderers/segments/thinking.d.ts.map +1 -1
- package/dist/transport/backend-handler.d.ts.map +1 -1
- package/dist/transport/backend-transport.d.ts.map +1 -1
- package/dist/transport/types.d.ts +15 -2
- package/dist/transport/types.d.ts.map +1 -1
- package/dist/types/chat.d.ts +10 -1
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model-provider.d.ts +3 -1
- package/dist/types/model-provider.d.ts.map +1 -1
- package/dist/types/segments.d.ts +36 -0
- package/dist/types/segments.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-BlmPqEgs.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -60,14 +60,16 @@
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
+
|
|
63
64
|
|
|
64
65
|
|
|
65
66
|
import './types/event-map.js';
|
|
66
67
|
import './types/element-map.js';
|
|
67
68
|
export { AparteSelect, AparteOption, AparteOptgroup, type AparteSelectChangeDetail, type AparteOptgroupToggleEventDetail, AparteProgressSpinner, AparteIcon } from './primitives/index.js';
|
|
68
|
-
export type { AparteBubbleRole, AparteMessage, AparteContextSummary, AparteCompactor, AparteCompactorRequest, AparteCompactorOutcome, AparteCompactorReason, AparteContentParser, AparteStreamBlock, AparteStreamBlockMatch, AparteSendEventDetail, AparteViewportConfig, AparteInputConfig, AparteThemeVariables, AparteStatus, AparteAttachment, AparteMessageBranch, AparteBubbleActionsConfig, AparteBubbleActionName, AparteSegment, AparteSegmentTypes, AparteSegmentType, AparteTextSegment, AparteThinkingSegment, AparteCodeSegment, AparteSegmentRenderer, AparteSegmentMount, AparteCustomSegment, AparteToolCallSegment, AparteSegmentBase, AparteSegmentDefaults, AparteSegmentTiming, AparteErrorSegment, AparteSegmentUpdateEventDetail, AparteAIProvider, AparteAIModel, AparteAIProviderConfigField, AparteAIProviderMetadata, AparteAIProviderConfigSchema, AparteModelConfig, ModelStatus, ModelLoadProgress, AparteModelChangeEventDetail, AparteApprovalModeChangeEventDetail, AparteMessageDoneEventDetail, AparteMessageStartEventDetail, AparteMessageErrorEventDetail, AparteMessageAbortedEventDetail, AparteMessagePausedEventDetail, AparteMessageResumedEventDetail, AparteAbortEventDetail, AparteCompactEventDetail, AparteCompactDoneEventDetail, AparteCompactStartEventDetail, AparteCompactErrorEventDetail, AparteAttachmentPreviewEventDetail, AparteLinkClickEventDetail, AparteMessageInfoEventDetail, AparteSiblingInfo, AparteBranchNavigateEventDetail, ApartePathChangedEventDetail, AparteRetryEventDetail, AparteEditEventDetail, AparteFeedbackEventDetail, AparteActionEventDetail, AparteChatRequest, AparteRequestMeta, AparteChatResponse, AparteChatMessage, AparteContentPart, AparteTextPart, AparteImagePart, AparteStreamEvent, AparteStreamEventMap, AparteUsage, AparteFinishReason, AparteTool, AparteToolCall, AparteApprovalPolicy, AparteApprovalRuling, AparteToolResult, AparteToolHandler, AparteToolContext, AparteToolRenderer, AparteToolSummary, AparteToolInputFormatter, AparteToolMatcher, AparteToolDisplay, AparteToolDetails, AparteToolCallView, AparteMountedView, AparteToolMount, AparteToolApprovalRequestDetail, AparteChatImperativeApi, AparteUiHandle, AparteElementAttributes, AparteElementTagName, AparteAttrValue, AparteTemplateAttrs, AparteNoAttributes, AparteChatAttributes, AparteChatViewportAttributes, AparteChatBubbleAttributes, AparteChatStatusAttributes, AparteComposerAttributes, AparteComposerInputAttributes, AparteComposerActionAttributes, AparteComposerAddAttachmentAttributes, AparteComposerToolbarAttributes, AparteConversationListAttributes, AparteSelectAttributes, AparteOptionAttributes, AparteOptgroupAttributes, AparteProgressSpinnerAttributes, AparteContextAttributes, AparteIconAttributes, AparteScrollRailAttributes, AparteSidebarAttributes, AparteSplitAttributes, AparteLauncherAttributes, AparteSuggestionsAttributes, } from './types/index.js';
|
|
69
|
+
export type { AparteBubbleRole, AparteMessage, AparteContextSummary, AparteCompactor, AparteCompactorRequest, AparteCompactorOutcome, AparteCompactorReason, AparteContentParser, AparteStreamBlock, AparteStreamBlockMatch, AparteSendEventDetail, AparteViewportConfig, AparteInputConfig, AparteThemeVariables, AparteStatus, AparteAttachment, AparteMessageBranch, AparteBubbleActionsConfig, AparteBubbleActionName, AparteSegment, AparteSegmentTypes, AparteSegmentType, AparteTextSegment, AparteSource, AparteCitation, AparteThinkingSegment, AparteCodeSegment, AparteSegmentRenderer, AparteSegmentMount, AparteCustomSegment, AparteToolCallSegment, AparteSegmentBase, AparteSegmentDefaults, AparteSegmentTiming, AparteErrorSegment, AparteSegmentUpdateEventDetail, AparteAIProvider, AparteAIModel, AparteAIProviderConfigField, AparteAIProviderMetadata, AparteAIProviderConfigSchema, AparteModelConfig, ModelStatus, ModelLoadProgress, AparteModelChangeEventDetail, AparteApprovalModeChangeEventDetail, AparteMessageDoneEventDetail, AparteMessageStartEventDetail, AparteMessageErrorEventDetail, AparteMessageAbortedEventDetail, AparteMessagePausedEventDetail, AparteMessageResumedEventDetail, AparteAbortEventDetail, AparteCompactEventDetail, AparteCompactDoneEventDetail, AparteCompactStartEventDetail, AparteCompactErrorEventDetail, AparteAttachmentPreviewEventDetail, AparteLinkClickEventDetail, AparteMessageInfoEventDetail, AparteSiblingInfo, AparteBranchNavigateEventDetail, ApartePathChangedEventDetail, AparteRetryEventDetail, AparteEditEventDetail, AparteFeedbackEventDetail, AparteActionEventDetail, AparteChatRequest, AparteRequestMeta, AparteChatResponse, AparteChatMessage, AparteContentPart, AparteTextPart, AparteImagePart, AparteStreamEvent, AparteStreamEventMap, AparteUsage, AparteFinishReason, AparteTool, AparteToolCall, AparteApprovalPolicy, AparteApprovalRuling, AparteToolResult, AparteToolHandler, AparteToolContext, AparteToolRenderer, AparteToolSummary, AparteToolInputFormatter, AparteToolMatcher, AparteToolDisplay, AparteToolDetails, AparteToolCallView, AparteMountedView, AparteToolMount, AparteToolApprovalRequestDetail, AparteChatImperativeApi, AparteUiHandle, AparteElementAttributes, AparteElementTagName, AparteAttrValue, AparteTemplateAttrs, AparteNoAttributes, AparteChatAttributes, AparteChatViewportAttributes, AparteChatBubbleAttributes, AparteChatStatusAttributes, AparteComposerAttributes, AparteComposerInputAttributes, AparteComposerActionAttributes, AparteComposerAddAttachmentAttributes, AparteComposerToolbarAttributes, AparteConversationListAttributes, AparteSelectAttributes, AparteOptionAttributes, AparteOptgroupAttributes, AparteProgressSpinnerAttributes, AparteContextAttributes, AparteIconAttributes, AparteScrollRailAttributes, AparteSidebarAttributes, AparteSplitAttributes, AparteLauncherAttributes, AparteSuggestionsAttributes, } from './types/index.js';
|
|
69
70
|
export { AparteErrorCode, AparteError, contentToText } from './types/index.js';
|
|
70
|
-
export { registerSegmentRenderer, unregisterSegmentRenderer, getSegmentRenderer, collectRendererStyles, registerDefaultRenderers, installDefaultRenderersOnce, declineDefaultRenderers, getAllRenderers, overrideSegmentRenderer, defineMountedToolRenderer, defineMountedSegmentRenderer, toToolCallView } from './renderers/index.js';
|
|
71
|
+
export { registerSegmentRenderer, unregisterSegmentRenderer, getSegmentRenderer, collectRendererStyles, registerDefaultRenderers, installDefaultRenderersOnce, declineDefaultRenderers, getAllRenderers, overrideSegmentRenderer, defineMountedToolRenderer, defineMountedSegmentRenderer, toToolCallView, renderCodeLanguages, renderCitations } from './renderers/index.js';
|
|
72
|
+
export type { AparteRenderCodeLanguagesOptions } from './renderers/index.js';
|
|
71
73
|
export { AparteChat } from './components/index.js';
|
|
72
74
|
export { AparteChatBubble, populateBubbleFromMessage } from './components/index.js';
|
|
73
75
|
export type { SyncableBubble } from './components/index.js';
|
|
@@ -102,7 +104,7 @@ export type { AparteConfigChangeEventDetail } from './config/index.js';
|
|
|
102
104
|
export { resolveConfig, attachConfig, detachConfig, runWithConfig, contextConfig, APARTE_HOST_ATTR } from './config/index.js';
|
|
103
105
|
export { subscribeConfigChange, APARTE_CONFIG_CHANGE } from './config/index.js';
|
|
104
106
|
export type { AparteConfigAware } from './config/index.js';
|
|
105
|
-
export type { AparteMarkdownProvider, AparteStreamingMarkdownProvider, AparteStreamingMarkdownRenderer, AparteHighlightProvider, AparteSystemPromptVarsProvider, AparteLocale, AparteLocaleExtensions, AparteAction, AparteActionZone, AparteIconProvider, AparteIconName, AparteCoreIconName, AparteAvatarProvider, AparteStatusRenderer, AparteErrorRenderer, AparteAttachmentRenderer, AparteElicitationFieldRenderer, AparteElicitationFieldContext, AparteElicitationFieldControl, AparteSiblingNavRenderer, AparteBubbleShellRenderer, AparteModelPreference, AparteModelPreferenceProvider, AparteSanitizer } from './config/index.js';
|
|
107
|
+
export type { AparteMarkdownProvider, AparteStreamingMarkdownProvider, AparteStreamingMarkdownRenderer, AparteCodeLanguageRenderer, AparteCodeLanguageContext, AparteHighlightProvider, AparteSystemPromptVarsProvider, AparteLocale, AparteLocaleExtensions, AparteAction, AparteActionZone, AparteIconProvider, AparteIconName, AparteCoreIconName, AparteAvatarProvider, AparteStatusRenderer, AparteErrorRenderer, AparteAttachmentRenderer, AparteElicitationFieldRenderer, AparteElicitationFieldContext, AparteElicitationFieldControl, AparteSiblingNavRenderer, AparteBubbleShellRenderer, AparteModelPreference, AparteModelPreferenceProvider, AparteSanitizer } from './config/index.js';
|
|
106
108
|
export { APARTE_DEFAULT_ICON_FALLBACKS, APARTE_DEFAULT_LOCALE, defaultSanitizer, isSafeUrl } from './config/index.js';
|
|
107
109
|
export { AparteClient } from './client/aparte-client.js';
|
|
108
110
|
export { historyFromCheckpoint } from './context/checkpoint.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AACnC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC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/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as deferHydrationOf,
|
|
2
|
-
import { A, a, b, c, d, f, h, i, j, k, l, m, n, p, s, u, v, y, z, B, D, E, F, G, I, J, L, M, N, Q, R, S, T, V, Z, a1, a2, a5, a6, a7, a8, a9,
|
|
1
|
+
import { K as deferHydrationOf, ac as resolveConfig, am as eventOrigin, an as activeElementIn, ah as subscribeConfigChange, ae as runWithConfig, o as AparteElicitationAbortError, w as buildApprovalPanel, x as buildElicitationPanel, ao as gateGlide, O as escapeAttr, ap as chatBoundaryOf, aq as relabelCodeLanguages, ar as relabelCitations, as as toolCallRenderer, at as toolRendererThatDrew, t as aparteGlobalConfig, au as isMountedRenderer, av as renderingVersionOf, H as cssEscape, aw as onRenderersChange, ax as renderSourceList, ay as mergeSegmentUpdate, P as escapeHtml, $ as isSegmentSettled, az as writeStreamedMarkdown, aA as replaceHighlighted, _ as isSafeUrl, C as copyText, U as getSegmentRenderer, W as installDefaultRenderersOnce, r as AparteMessageRepository, aB as CheckpointStateWatcher, aC as chatIdOf, aD as stampSegmentActivity, aE as stampSegmentOnInsert, aF as stampSegmentOnUpdate, aG as renumberSegments, aH as openSegmentIds, aI as isTerminalStatus, aJ as adoptMessageSegments, Y as isAwaitingReply, a4 as populateBubbleFromMessage, al as uuid, ad as revokeAttachmentUrls, a3 as parseMarkdownToSegments, aK as APARTE_DERIVED_SEGMENTS, aL as rememberConversationStatus, aM as tellConversationStatus, aN as conversationStatusOf, e as APARTE_DEFAULT_LOCALE, aO as usageTokens, q as AparteErrorCode, a0 as measureContext, aP as rootOf, g as APARTE_HOST_ATTR, X as installDialogTriggersOnce } from "./defer-hydration-BMip3DKA.js";
|
|
2
|
+
import { A, a, b, c, d, f, h, i, j, k, l, m, n, p, s, u, v, y, z, B, D, E, F, G, I, J, L, M, N, Q, R, S, T, V, Z, a1, a2, a5, a6, a7, a8, a9, aa, ab, af, ag, ai, aj, ak } from "./defer-hydration-BMip3DKA.js";
|
|
3
3
|
function presenceOn(value) {
|
|
4
4
|
return value === "" ? true : Boolean(value);
|
|
5
5
|
}
|
|
@@ -1520,6 +1520,9 @@ class AparteChatBubble extends HTMLElement {
|
|
|
1520
1520
|
this._renderAvatar();
|
|
1521
1521
|
this._redrawSegmentsWhoseRendererChanged();
|
|
1522
1522
|
this._relabelSegments();
|
|
1523
|
+
runWithConfig(this._cfg, () => relabelCodeLanguages(this));
|
|
1524
|
+
relabelCitations(this);
|
|
1525
|
+
this._syncSources();
|
|
1523
1526
|
this._updateTimestamp(this.getAttribute("timestamp"));
|
|
1524
1527
|
if (!this._redrawQueued) {
|
|
1525
1528
|
this._redrawQueued = true;
|
|
@@ -1869,12 +1872,24 @@ class AparteChatBubble extends HTMLElement {
|
|
|
1869
1872
|
/** Set segments for rich content */
|
|
1870
1873
|
setSegments(segments) {
|
|
1871
1874
|
this._replaceSegments(segments);
|
|
1875
|
+
this._syncSources();
|
|
1872
1876
|
this._updateWaiting();
|
|
1873
1877
|
}
|
|
1878
|
+
/** The reply's sources, listed under its segments: the text segments' own, once each. */
|
|
1879
|
+
_syncSources() {
|
|
1880
|
+
const segmentsEl = this._segmentsEl;
|
|
1881
|
+
const container = segmentsEl?.parentElement;
|
|
1882
|
+
if (!segmentsEl || !container) return;
|
|
1883
|
+
const sources = this._segments.flatMap((s2) => s2.type === "text" ? s2.sources ?? [] : []);
|
|
1884
|
+
renderSourceList(container, segmentsEl, sources, this._cfg);
|
|
1885
|
+
}
|
|
1874
1886
|
/** A whole new list, from `setSegments` or `updateMessage({ segments })`: copied in, then drawn. */
|
|
1875
1887
|
_replaceSegments(segments) {
|
|
1876
1888
|
const next = [...segments];
|
|
1877
|
-
if (this._resyncKeepingCards(next))
|
|
1889
|
+
if (this._resyncKeepingCards(next)) {
|
|
1890
|
+
this._syncSources();
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1878
1893
|
this._segments = next;
|
|
1879
1894
|
this._renderSegments();
|
|
1880
1895
|
}
|
|
@@ -1904,6 +1919,7 @@ class AparteChatBubble extends HTMLElement {
|
|
|
1904
1919
|
addSegment(segment) {
|
|
1905
1920
|
this._segments.push(segment);
|
|
1906
1921
|
this._appendSegmentEl(segment);
|
|
1922
|
+
if (segment.type === "text" && segment.sources) this._syncSources();
|
|
1907
1923
|
this._updateWaiting();
|
|
1908
1924
|
}
|
|
1909
1925
|
/** Update a specific segment */
|
|
@@ -1913,6 +1929,7 @@ class AparteChatBubble extends HTMLElement {
|
|
|
1913
1929
|
const updated = mergeSegmentUpdate(this._segments[index], updates);
|
|
1914
1930
|
this._segments[index] = updated;
|
|
1915
1931
|
this._applySegmentUpdate(segmentId, updated, updates);
|
|
1932
|
+
if ("sources" in updates) this._syncSources();
|
|
1916
1933
|
this._syncCopyAction();
|
|
1917
1934
|
if ("status" in updates || "isStreaming" in updates) this._updateWaiting();
|
|
1918
1935
|
}
|
|
@@ -1953,6 +1970,7 @@ class AparteChatBubble extends HTMLElement {
|
|
|
1953
1970
|
this._release(segmentId);
|
|
1954
1971
|
const el2 = this._segmentsEl?.querySelector(`:scope > [data-segment-id="${cssEscape(segmentId)}"]`);
|
|
1955
1972
|
el2?.remove();
|
|
1973
|
+
this._syncSources();
|
|
1956
1974
|
this._updateWaiting();
|
|
1957
1975
|
this._syncCopyAction();
|
|
1958
1976
|
}
|
|
@@ -2525,21 +2543,24 @@ class AparteChatBubble extends HTMLElement {
|
|
|
2525
2543
|
*/
|
|
2526
2544
|
_highlightContentCode() {
|
|
2527
2545
|
if (!this._contentEl || !this._cfg.hasHighlightProvider()) return;
|
|
2528
|
-
this._contentEl.querySelectorAll("pre > code").forEach((codeEl) => {
|
|
2546
|
+
this._contentEl.querySelectorAll("pre > code:not([data-aparte-highlighted])").forEach((codeEl) => {
|
|
2529
2547
|
const code = codeEl.textContent ?? "";
|
|
2530
2548
|
if (!code.trim()) return;
|
|
2531
2549
|
const match = codeEl.className.match(/language-([\w+#-]+)/i);
|
|
2532
2550
|
const lang = match?.[1] ?? "";
|
|
2551
|
+
if (this._cfg.hasCodeLanguageRenderer(lang) || codeEl.closest(".aparte-code-drawing")) return;
|
|
2533
2552
|
const pre = codeEl.parentElement;
|
|
2534
|
-
|
|
2553
|
+
codeEl.setAttribute("data-aparte-highlighted", "");
|
|
2554
|
+
Promise.resolve(this._cfg.highlightCode(code, lang, { fallback: false })).then((html) => {
|
|
2535
2555
|
const out = (html ?? "").trim();
|
|
2536
|
-
if (!out || !pre || !pre
|
|
2556
|
+
if (!out || !pre || !this._contentEl?.contains(pre)) return;
|
|
2537
2557
|
if (/^<pre[\s>]/i.test(out)) {
|
|
2538
|
-
pre
|
|
2558
|
+
replaceHighlighted(pre, out);
|
|
2539
2559
|
} else {
|
|
2540
2560
|
codeEl.innerHTML = out;
|
|
2541
2561
|
}
|
|
2542
2562
|
}).catch(() => {
|
|
2563
|
+
codeEl.removeAttribute("data-aparte-highlighted");
|
|
2543
2564
|
});
|
|
2544
2565
|
});
|
|
2545
2566
|
}
|
|
@@ -2567,6 +2588,7 @@ class AparteChatBubble extends HTMLElement {
|
|
|
2567
2588
|
}
|
|
2568
2589
|
this._reflectError();
|
|
2569
2590
|
this._syncCopyAction();
|
|
2591
|
+
this._syncSources();
|
|
2570
2592
|
}
|
|
2571
2593
|
/**
|
|
2572
2594
|
* Reflect the error state on the bubble: `data-error` on `.aparte-message` while
|
|
@@ -4662,8 +4684,8 @@ class AparteChatViewport extends HTMLElement {
|
|
|
4662
4684
|
const churn = Math.abs(height - this._lastScrollHeight);
|
|
4663
4685
|
const now = performance.now();
|
|
4664
4686
|
const shrank = height < this._lastScrollHeight - 1;
|
|
4665
|
-
const afterMutation = now - this._lastMutationAt < this._settleShadowMs &&
|
|
4666
|
-
const settlingOurs = now - this._ownScrollAt < this._ownScrollWindowMs && now - this._readerInputAt >= this._ownScrollWindowMs && !this._pointerHeld && (drop <= churn + 2 || afterMutation);
|
|
4687
|
+
const afterMutation = now - this._lastMutationAt < this._settleShadowMs && drop <= this._settleBoundPx;
|
|
4688
|
+
const settlingOurs = now - this._ownScrollAt < this._ownScrollWindowMs && now - this._readerInputAt >= this._ownScrollWindowMs && !this._pointerHeld && (drop <= churn + 2 || shrank || afterMutation);
|
|
4667
4689
|
const readerWentUp = drop > 1 && !settlingOurs;
|
|
4668
4690
|
const readerHandOnIt = drop > 1 && now - this._readerInputAt < this._ownScrollWindowMs;
|
|
4669
4691
|
this._lastScrollTop = top;
|
|
@@ -9895,16 +9917,18 @@ export {
|
|
|
9895
9917
|
a6 as registerDefaultRenderers,
|
|
9896
9918
|
a7 as registerSegmentRenderer,
|
|
9897
9919
|
a8 as releaseDeferredHydration,
|
|
9898
|
-
a9 as
|
|
9920
|
+
a9 as renderCitations,
|
|
9921
|
+
aa as renderCodeLanguages,
|
|
9922
|
+
ab as requestUserInput,
|
|
9899
9923
|
resolveConfig,
|
|
9900
9924
|
revokeAttachmentUrls,
|
|
9901
9925
|
runWithConfig,
|
|
9902
|
-
|
|
9903
|
-
|
|
9926
|
+
af as segmentDuration,
|
|
9927
|
+
ag as segmentTiming,
|
|
9904
9928
|
subscribeConfigChange,
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9929
|
+
ai as toToolCallView,
|
|
9930
|
+
aj as toolRefusal,
|
|
9931
|
+
ak as unregisterSegmentRenderer,
|
|
9908
9932
|
uuid
|
|
9909
9933
|
};
|
|
9910
9934
|
//# sourceMappingURL=index.js.map
|