@copilotkit/react-core 2.0.0-rc.40 → 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/chat-Bf0vVdo7.mjs.map +1 -1
- package/dist/chat-D3fxo6Ah.cjs.map +1 -1
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +1 -1
- package/dist/headless.d.mts +1 -1
- package/dist/headless.mjs.map +1 -1
- package/dist/index.cjs +16 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +17 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +16 -7
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +16 -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
|
|
@@ -4048,6 +4050,13 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
4048
4050
|
})
|
|
4049
4051
|
});
|
|
4050
4052
|
};
|
|
4053
|
+
/**
|
|
4054
|
+
* Alias of {@link CopilotKitProvider}: the same component under its v1 name,
|
|
4055
|
+
* so `<CopilotKit>` keeps working. `CopilotKitProvider` is the preferred name.
|
|
4056
|
+
*
|
|
4057
|
+
* @alias
|
|
4058
|
+
*/
|
|
4059
|
+
const CopilotKit = CopilotKitProvider;
|
|
4051
4060
|
|
|
4052
4061
|
//#endregion
|
|
4053
4062
|
//#region src/hooks/use-render-custom-messages.tsx
|
|
@@ -10664,6 +10673,7 @@ exports.CopilotChatToolCallsView = CopilotChatToolCallsView;
|
|
|
10664
10673
|
exports.CopilotChatUserMessage = CopilotChatUserMessage_default;
|
|
10665
10674
|
exports.CopilotChatView = CopilotChatView_default;
|
|
10666
10675
|
exports.CopilotChatWorkSummary = CopilotChatWorkSummary;
|
|
10676
|
+
exports.CopilotKit = CopilotKit;
|
|
10667
10677
|
Object.defineProperty(exports, 'CopilotKitCore', {
|
|
10668
10678
|
enumerable: true,
|
|
10669
10679
|
get: function () {
|