@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.umd.js
CHANGED
|
@@ -1358,7 +1358,7 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
1358
1358
|
|
|
1359
1359
|
//#endregion
|
|
1360
1360
|
//#region package.json
|
|
1361
|
-
var version$1 = "2.0.0-rc.
|
|
1361
|
+
var version$1 = "2.0.0-rc.42";
|
|
1362
1362
|
|
|
1363
1363
|
//#endregion
|
|
1364
1364
|
//#region src/components/CopilotKitInspector.tsx
|
|
@@ -1938,19 +1938,21 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
/**
|
|
1941
|
-
* Renders the A2UI surface,
|
|
1941
|
+
* Renders the A2UI surface, with an error message above it if processing
|
|
1942
|
+
* failed. A rejected snapshot leaves the surface as it was, so the card the
|
|
1943
|
+
* user already sees stays visible next to the error.
|
|
1942
1944
|
* Must be a child of A2UIProvider to access the error state.
|
|
1943
1945
|
*/
|
|
1944
1946
|
function A2UISurfaceOrError({ surfaceId }) {
|
|
1945
1947
|
const error = (0, _copilotkit_a2ui_renderer.useA2UIError)();
|
|
1946
|
-
|
|
1948
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [error && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1949
|
+
role: "alert",
|
|
1947
1950
|
className: "cpk-a2ui-message-error",
|
|
1948
1951
|
children: ["A2UI render error: ", error]
|
|
1949
|
-
})
|
|
1950
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_copilotkit_a2ui_renderer.A2UIRenderer, {
|
|
1952
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_copilotkit_a2ui_renderer.A2UIRenderer, {
|
|
1951
1953
|
surfaceId,
|
|
1952
1954
|
className: "cpk-a2ui-message-surface"
|
|
1953
|
-
});
|
|
1955
|
+
})] });
|
|
1954
1956
|
}
|
|
1955
1957
|
/**
|
|
1956
1958
|
* Applies the surface's operations to the provider's processor, reports each
|