@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.
@@ -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 addPopupWidgetUtm(urlObj.toString());
39620
+ return urlObj.toString();
39621
39621
  }
39622
39622
  }
39623
- return addPopupWidgetUtm(url);
39623
+ return url;
39624
39624
  } catch (e) {
39625
39625
  if (!isStreaming) {
39626
39626
  console.error("Error rewriting URL:", e);
39627
39627
  }
39628
- return addPopupWidgetUtm(url);
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.aTY_CSO9.js.map
39748
+ //# sourceMappingURL=FormattedMessage.DdZqirSo.js.map