@copilotkit/react-core 2.0.0-rc.53 → 2.0.0-rc.55
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.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +7 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +7 -7
package/dist/index.umd.js
CHANGED
|
@@ -1377,7 +1377,7 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
1377
1377
|
|
|
1378
1378
|
//#endregion
|
|
1379
1379
|
//#region package.json
|
|
1380
|
-
var version$1 = "2.0.0-rc.
|
|
1380
|
+
var version$1 = "2.0.0-rc.55";
|
|
1381
1381
|
|
|
1382
1382
|
//#endregion
|
|
1383
1383
|
//#region src/components/CopilotKitInspector.tsx
|
|
@@ -9206,9 +9206,15 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
9206
9206
|
* passes a plain string, so a hoisted tag would be blocked.
|
|
9207
9207
|
*
|
|
9208
9208
|
* Renders nothing when `CopilotKitProvider` has `injectStyles={false}`.
|
|
9209
|
+
*
|
|
9210
|
+
* In development, it warns in the console when the app's CSS overrides these
|
|
9211
|
+
* styles, such as a global reset outside a cascade layer.
|
|
9209
9212
|
*/
|
|
9210
9213
|
function CopilotKitStyles() {
|
|
9211
9214
|
const { nonce, inject } = (0, react.useContext)(StyleOptionsContext);
|
|
9215
|
+
(0, react.useEffect)(() => {
|
|
9216
|
+
if (inject && process.env.NODE_ENV !== "production") (0, _copilotkit_core_styles.ɵwarnIfStylesOverridden)(document);
|
|
9217
|
+
}, [inject]);
|
|
9212
9218
|
if (!inject) return null;
|
|
9213
9219
|
if (nonce || !hoistsStyles) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", {
|
|
9214
9220
|
nonce,
|