@eshal-bot/chat-widget 0.2.3 → 0.2.4
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/{chat-widget-MarkdownRenderer-DE10MTW2.esm.js → chat-widget-MarkdownRenderer-BIGXHUYK.esm.js} +2 -2
- package/dist/{chat-widget-index-C9e7Y35o.esm.js → chat-widget-index-CBTM7rwy.esm.js} +1 -1
- package/dist/chat-widget-markdown-chunk.js +13 -0
- package/dist/chat-widget-markdown-chunk.min.js +1 -1
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +8 -1
- package/dist/chat-widget.min.js +1 -1
- package/dist/chat-widget.umd.js +2 -2
- package/package.json +1 -1
package/dist/chat-widget.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as default}from"./chat-widget-index-
|
|
1
|
+
export{S as default}from"./chat-widget-index-CBTM7rwy.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
|
package/dist/chat-widget.js
CHANGED
|
@@ -15346,10 +15346,17 @@
|
|
|
15346
15346
|
});
|
|
15347
15347
|
const citationCtxValue = reactExports.useMemo(() => ({
|
|
15348
15348
|
sources: message.sources || [],
|
|
15349
|
+
// EV-3535: the EARLY {type:'sources'} frame is PRELIMINARY (pre-answer,
|
|
15350
|
+
// pre-fallback). Rendering committed pills off it, then clearing them
|
|
15351
|
+
// when the authoritative `complete` list comes back empty (a no-info
|
|
15352
|
+
// fallback), is the reported appear-then-vanish. Pass the flag through so
|
|
15353
|
+
// CitationPill DEFERS the pill while preliminary and commits it only from
|
|
15354
|
+
// the authoritative frame - pills appear once, never vanish.
|
|
15355
|
+
sourcesPreliminary: !!message.sourcesPreliminary,
|
|
15349
15356
|
onSourceActivate,
|
|
15350
15357
|
downloadingKey,
|
|
15351
15358
|
textColor: messageTextColor
|
|
15352
|
-
}), [message.sources, onSourceActivate, downloadingKey, messageTextColor]);
|
|
15359
|
+
}), [message.sources, message.sourcesPreliminary, onSourceActivate, downloadingKey, messageTextColor]);
|
|
15353
15360
|
return (
|
|
15354
15361
|
/*#__PURE__*/
|
|
15355
15362
|
// `min-w-0` on the outer flex-row mirrors the same guard in the
|