@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/CHANGELOG.md +14 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/components/chat/Markdown.tsx +6 -2
- package/src/components/chat/PoweredByTag.tsx +3 -1
- package/tsconfig.json +3 -3
- package/tsdown.config.ts +2 -2
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: {
|