@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.umd.js CHANGED
@@ -1302,10 +1302,10 @@ rehype_raw = __toESM(rehype_raw);
1302
1302
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1303
1303
  className: "copilotKitMarkdown",
1304
1304
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedReactMarkdown, {
1305
- components: {
1305
+ components: (0, react.useMemo)(() => ({
1306
1306
  ...defaultComponents,
1307
1307
  ...components
1308
- },
1308
+ }), [components]),
1309
1309
  remarkPlugins: [remark_gfm.default, [remark_math.default, { singleDollarTextMath: false }]],
1310
1310
  rehypePlugins: [rehype_raw.default],
1311
1311
  children: content
@@ -1824,13 +1824,13 @@ rehype_raw = __toESM(rehype_raw);
1824
1824
 
1825
1825
  //#endregion
1826
1826
  //#region src/components/chat/PoweredByTag.tsx
1827
- function PoweredByTag({ showPoweredBy = true }) {
1827
+ function PoweredByTag({ showPoweredBy = true, removeBranding = false }) {
1828
1828
  const [mounted, setMounted] = (0, react.useState)(false);
1829
1829
  const isDark = useDarkMode();
1830
1830
  (0, react.useEffect)(() => {
1831
1831
  setMounted(true);
1832
1832
  }, []);
1833
- if (!showPoweredBy) return null;
1833
+ if (!showPoweredBy || removeBranding) return null;
1834
1834
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1835
1835
  className: "poweredBy",
1836
1836
  style: {