@brainfish-ai/components 0.15.0 → 0.15.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/esm/chunks/{ChatSearch.C9Kg6j_Y.js → ChatSearch.DsnO9IEM.js} +15 -3
- package/dist/esm/chunks/{ChatSearch.C9Kg6j_Y.js.map → ChatSearch.DsnO9IEM.js.map} +1 -1
- package/dist/esm/chunks/{FormattedMessage.aTY_CSO9.js → FormattedMessage.DdZqirSo.js} +5 -5
- package/dist/esm/chunks/{FormattedMessage.aTY_CSO9.js.map → FormattedMessage.DdZqirSo.js.map} +1 -1
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/components/markdown.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -39617,15 +39617,15 @@ const FormattedMessage = memo(({ message, isStreaming, redirectRules = [], conte
|
|
|
39617
39617
|
const toPath = compile(rule.destination, { encode: encodeURIComponent });
|
|
39618
39618
|
const newPath = toPath(matchResult.params);
|
|
39619
39619
|
urlObj.pathname = newPath;
|
|
39620
|
-
return
|
|
39620
|
+
return urlObj.toString();
|
|
39621
39621
|
}
|
|
39622
39622
|
}
|
|
39623
|
-
return
|
|
39623
|
+
return url;
|
|
39624
39624
|
} catch (e) {
|
|
39625
39625
|
if (!isStreaming) {
|
|
39626
39626
|
console.error("Error rewriting URL:", e);
|
|
39627
39627
|
}
|
|
39628
|
-
return
|
|
39628
|
+
return url;
|
|
39629
39629
|
}
|
|
39630
39630
|
},
|
|
39631
39631
|
[memoizedRedirectRules, isStreaming]
|
|
@@ -39680,7 +39680,7 @@ const FormattedMessage = memo(({ message, isStreaming, redirectRules = [], conte
|
|
|
39680
39680
|
}
|
|
39681
39681
|
const isTextSameAsHref = parsedText === originalHref;
|
|
39682
39682
|
const rewrittenHref = originalHref ? rewriteUrl(originalHref) : originalHref;
|
|
39683
|
-
const newProps = { ...props, href: rewrittenHref };
|
|
39683
|
+
const newProps = { ...props, href: addPopupWidgetUtm(rewrittenHref) };
|
|
39684
39684
|
if (rewrittenHref && !isStreaming) {
|
|
39685
39685
|
const embedComponent = EmbedComponent({
|
|
39686
39686
|
attrs: { href: rewrittenHref },
|
|
@@ -39745,4 +39745,4 @@ const FormattedMessage = memo(({ message, isStreaming, redirectRules = [], conte
|
|
|
39745
39745
|
FormattedMessage.displayName = "FormattedMessage";
|
|
39746
39746
|
|
|
39747
39747
|
export { CodeBlock as C, FormattedMessage as F, MemoizedReactMarkdown as M, ZoomableImage as Z, MermaidDiagram as a, addUtmParameters as b, addPopupWidgetUtm as c };
|
|
39748
|
-
//# sourceMappingURL=FormattedMessage.
|
|
39748
|
+
//# sourceMappingURL=FormattedMessage.DdZqirSo.js.map
|