@copilotkit/react-core 2.0.0-rc.41 → 2.0.0-rc.42
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 +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +8 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -824,7 +824,7 @@ function ɵuseOwnedCore(ref, create) {
|
|
|
824
824
|
|
|
825
825
|
//#endregion
|
|
826
826
|
//#region package.json
|
|
827
|
-
var version$1 = "2.0.0-rc.
|
|
827
|
+
var version$1 = "2.0.0-rc.42";
|
|
828
828
|
|
|
829
829
|
//#endregion
|
|
830
830
|
//#region src/components/CopilotKitInspector.tsx
|
|
@@ -1404,19 +1404,21 @@ function ReactSurfaceHost({ surfaceId, operations, theme, agent, copilotkit, cat
|
|
|
1404
1404
|
});
|
|
1405
1405
|
}
|
|
1406
1406
|
/**
|
|
1407
|
-
* Renders the A2UI surface,
|
|
1407
|
+
* Renders the A2UI surface, with an error message above it if processing
|
|
1408
|
+
* failed. A rejected snapshot leaves the surface as it was, so the card the
|
|
1409
|
+
* user already sees stays visible next to the error.
|
|
1408
1410
|
* Must be a child of A2UIProvider to access the error state.
|
|
1409
1411
|
*/
|
|
1410
1412
|
function A2UISurfaceOrError({ surfaceId }) {
|
|
1411
1413
|
const error = (0, _copilotkit_a2ui_renderer.useA2UIError)();
|
|
1412
|
-
|
|
1414
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [error && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1415
|
+
role: "alert",
|
|
1413
1416
|
className: "cpk-a2ui-message-error",
|
|
1414
1417
|
children: ["A2UI render error: ", error]
|
|
1415
|
-
})
|
|
1416
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_copilotkit_a2ui_renderer.A2UIRenderer, {
|
|
1418
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_copilotkit_a2ui_renderer.A2UIRenderer, {
|
|
1417
1419
|
surfaceId,
|
|
1418
1420
|
className: "cpk-a2ui-message-surface"
|
|
1419
|
-
});
|
|
1421
|
+
})] });
|
|
1420
1422
|
}
|
|
1421
1423
|
/**
|
|
1422
1424
|
* Applies the surface's operations to the provider's processor, reports each
|