@liveblocks/react 3.0.0 → 3.1.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.
@@ -51,13 +51,15 @@ var RegisterAiKnowledge = memo(function RegisterAiKnowledge2(props) {
51
51
  var RegisterAiTool = memo(function RegisterAiTool2({
52
52
  chatId,
53
53
  name,
54
- tool
54
+ tool,
55
+ enabled
55
56
  }) {
56
57
  const client = useClient();
57
58
  const ai = client[kInternal].ai;
58
59
  useEffect(() => {
59
- return ai.registerTool(name, tool, chatId);
60
- }, [ai, chatId, name, tool]);
60
+ const toolWithEnabled = enabled !== void 0 ? { ...tool, enabled } : tool;
61
+ return ai.registerTool(name, toolWithEnabled, chatId);
62
+ }, [ai, chatId, name, tool, enabled]);
61
63
  return null;
62
64
  });
63
65
 
@@ -4638,4 +4640,4 @@ export {
4638
4640
  _useStorageRoot,
4639
4641
  _useUpdateMyPresence
4640
4642
  };
4641
- //# sourceMappingURL=chunk-CS6KYNXH.js.map
4643
+ //# sourceMappingURL=chunk-MXMOBMOL.js.map