@copilotkit/react-ui 0.0.0-main-20260220223427 → 0.0.0-main-20260403195251
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 +471 -4
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +106 -25
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +781 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +8 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/index.css +1 -0
- package/oxlint-rules/copilotkit-plugin.mjs +10 -0
- package/oxlint-rules/require-cpk-prefix.mjs +547 -0
- package/package.json +39 -38
- package/{postcss.config.js → postcss.config.cjs} +1 -1
- package/src/components/chat/Markdown.tsx +6 -2
- package/src/components/chat/Modal.tsx +1 -1
- package/src/components/chat/PoweredByTag.tsx +3 -1
- package/src/css/colors.css +8 -4
- package/src/css/console.css +34 -9
- package/src/css/input.css +5 -2
- package/src/css/markdown.css +1 -1
- package/src/css/messages.css +11 -4
- package/src/css/popup.css +15 -3
- package/src/css/sidebar.css +28 -3
- package/src/css/suggestions.css +4 -2
- package/src/esm-compat.test.ts +44 -0
- package/src/styles.css +1 -1
- package/src/types/css.ts +1 -1
- package/tsconfig.json +3 -3
- package/tsdown.config.ts +3 -2
- /package/{tailwind.config.js → tailwind.config.cjs} +0 -0
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: {
|
|
@@ -2439,7 +2439,10 @@ rehype_raw = __toESM(rehype_raw);
|
|
|
2439
2439
|
triggerObservabilityHook
|
|
2440
2440
|
]);
|
|
2441
2441
|
const memoizedHeader = (0, react.useMemo)(() => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Header, {}), [Header]);
|
|
2442
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
2442
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2443
|
+
className: "copilotKitModalChildrenWrapper",
|
|
2444
|
+
children: (0, react.useMemo)(() => children, [children])
|
|
2445
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2443
2446
|
className,
|
|
2444
2447
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Window, {
|
|
2445
2448
|
clickOutsideToClose,
|