@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.
@@ -1 +1 @@
1
- export{S as default}from"./chat-widget-index-C9e7Y35o.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
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";
@@ -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