@copilotkit/react-core 1.52.0-next.8 → 1.52.1-next.0
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 +39 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +7 -7
- package/src/hooks/use-langgraph-interrupt.ts +2 -1
- package/src/types/interrupt-action.ts +5 -0
package/dist/index.umd.js
CHANGED
|
@@ -3658,11 +3658,11 @@ react_markdown = __toESM(react_markdown);
|
|
|
3658
3658
|
};
|
|
3659
3659
|
}
|
|
3660
3660
|
function useLangGraphInterrupt(action, _dependencies) {
|
|
3661
|
-
var
|
|
3661
|
+
var _ref, _action$agentId;
|
|
3662
3662
|
const actionRef = (0, react.useRef)(action);
|
|
3663
3663
|
actionRef.current = action;
|
|
3664
3664
|
const existingConfig = (0, _copilotkitnext_react.useCopilotChatConfiguration)();
|
|
3665
|
-
const resolvedAgentId = (
|
|
3665
|
+
const resolvedAgentId = (_ref = (_action$agentId = action.agentId) !== null && _action$agentId !== void 0 ? _action$agentId : existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.agentId) !== null && _ref !== void 0 ? _ref : "default";
|
|
3666
3666
|
const threadId = existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.threadId;
|
|
3667
3667
|
const nodeName = useAgentNodeName(resolvedAgentId);
|
|
3668
3668
|
const metadataRef = (0, react.useRef)({
|