@copilotkit/react-ui 1.54.1 → 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/CHANGELOG.md CHANGED
@@ -1,13 +1,18 @@
1
1
  # ui
2
2
 
3
- ## 1.54.1
3
+ ## 1.55.0-next.7
4
+
5
+ ### Minor Changes
6
+
7
+ - 1ceb963: refactor: consolidate V1/V2 packages into flat @copilotkit/\* structure
4
8
 
5
9
  ### Patch Changes
6
10
 
7
- - Updated dependencies [8113dba]
8
- - @copilotkit/react-core@1.54.1
9
- - @copilotkit/runtime-client-gql@1.54.1
10
- - @copilotkit/shared@1.54.1
11
+ - 1ceb963: fix: stabilize Markdown components ref to prevent unnecessary re-renders during streaming
12
+ - Updated dependencies [1ceb963]
13
+ - @copilotkit/react-core@1.55.0-next.7
14
+ - @copilotkit/runtime-client-gql@1.55.0-next.7
15
+ - @copilotkit/shared@1.55.0-next.7
11
16
 
12
17
  ## 1.54.1-next.6
13
18
 
package/dist/index.cjs CHANGED
@@ -1305,10 +1305,10 @@ const Markdown = ({ content, components }) => {
1305
1305
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1306
1306
  className: "copilotKitMarkdown",
1307
1307
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedReactMarkdown, {
1308
- components: {
1308
+ components: (0, react.useMemo)(() => ({
1309
1309
  ...defaultComponents,
1310
1310
  ...components
1311
- },
1311
+ }), [components]),
1312
1312
  remarkPlugins: [remark_gfm.default, [remark_math.default, { singleDollarTextMath: false }]],
1313
1313
  rehypePlugins: [rehype_raw.default],
1314
1314
  children: content
@@ -1822,13 +1822,13 @@ const useDarkMode = () => {
1822
1822
 
1823
1823
  //#endregion
1824
1824
  //#region src/components/chat/PoweredByTag.tsx
1825
- function PoweredByTag({ showPoweredBy = true }) {
1825
+ function PoweredByTag({ showPoweredBy = true, removeBranding = false }) {
1826
1826
  const [mounted, setMounted] = (0, react.useState)(false);
1827
1827
  const isDark = useDarkMode();
1828
1828
  (0, react.useEffect)(() => {
1829
1829
  setMounted(true);
1830
1830
  }, []);
1831
- if (!showPoweredBy) return null;
1831
+ if (!showPoweredBy || removeBranding) return null;
1832
1832
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1833
1833
  className: "poweredBy",
1834
1834
  style: {