@copilotkit/react-ui 1.54.1-next.6 → 1.55.0-next.7

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/index.mjs CHANGED
@@ -1273,10 +1273,10 @@ const Markdown = ({ content, components }) => {
1273
1273
  return /* @__PURE__ */ jsx("div", {
1274
1274
  className: "copilotKitMarkdown",
1275
1275
  children: /* @__PURE__ */ jsx(MemoizedReactMarkdown, {
1276
- components: {
1276
+ components: useMemo(() => ({
1277
1277
  ...defaultComponents,
1278
1278
  ...components
1279
- },
1279
+ }), [components]),
1280
1280
  remarkPlugins: [remarkGfm, [remarkMath, { singleDollarTextMath: false }]],
1281
1281
  rehypePlugins: [rehypeRaw],
1282
1282
  children: content
@@ -1790,13 +1790,13 @@ const useDarkMode = () => {
1790
1790
 
1791
1791
  //#endregion
1792
1792
  //#region src/components/chat/PoweredByTag.tsx
1793
- function PoweredByTag({ showPoweredBy = true }) {
1793
+ function PoweredByTag({ showPoweredBy = true, removeBranding = false }) {
1794
1794
  const [mounted, setMounted] = useState(false);
1795
1795
  const isDark = useDarkMode();
1796
1796
  useEffect(() => {
1797
1797
  setMounted(true);
1798
1798
  }, []);
1799
- if (!showPoweredBy) return null;
1799
+ if (!showPoweredBy || removeBranding) return null;
1800
1800
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", {
1801
1801
  className: "poweredBy",
1802
1802
  style: {