@langchain/langgraph-sdk 0.0.67 → 0.0.68

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.
@@ -113,7 +113,7 @@ function LoadExternalComponent({ stream, namespace, message, meta, fallback, com
113
113
  });
114
114
  }, [uiClient, uiNamespace, message.name, shadowRootId, hasClientComponent]);
115
115
  if (hasClientComponent) {
116
- return React.createElement(clientComponent, message.props);
116
+ return ((0, jsx_runtime_1.jsx)(UseStreamContext.Provider, { value: { stream, meta }, children: React.createElement(clientComponent, message.props) }));
117
117
  }
118
118
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { id: shadowRootId, ref: ref, ...props }), (0, jsx_runtime_1.jsx)(UseStreamContext.Provider, { value: { stream, meta }, children: state?.target != null
119
119
  ? ReactDOM.createPortal(React.createElement(state.comp, message.props), state.target)
@@ -86,7 +86,7 @@ export function LoadExternalComponent({ stream, namespace, message, meta, fallba
86
86
  });
87
87
  }, [uiClient, uiNamespace, message.name, shadowRootId, hasClientComponent]);
88
88
  if (hasClientComponent) {
89
- return React.createElement(clientComponent, message.props);
89
+ return (_jsx(UseStreamContext.Provider, { value: { stream, meta }, children: React.createElement(clientComponent, message.props) }));
90
90
  }
91
91
  return (_jsxs(_Fragment, { children: [_jsx("div", { id: shadowRootId, ref: ref, ...props }), _jsx(UseStreamContext.Provider, { value: { stream, meta }, children: state?.target != null
92
92
  ? ReactDOM.createPortal(React.createElement(state.comp, message.props), state.target)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",