@copilotkit/react-core 1.52.0-next.7 → 1.52.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 CHANGED
@@ -1,5 +1,44 @@
1
1
  # ui
2
2
 
3
+ ## 1.52.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6dd6c84: Adding new v2 features:
8
+ - useComponent
9
+ - useRenderTool
10
+ - useDefaultRenderTool
11
+
12
+ Also, fixing issues with styles not being
13
+ properly scoped for tailwind.
14
+
15
+ ### Patch Changes
16
+
17
+ - d77f347: Added in the useInterrupt hook
18
+ - 2007f8b: feat: useComponent improvements
19
+ - ef0f539: Add reasoning support and default components for reasoning messages
20
+ - 412965a: Introducing available prop to useFrontendTool()
21
+ - 5f941db: Prevent CPK styles from polluting user app
22
+ - Updated dependencies [593859f]
23
+ - Updated dependencies [d77f347]
24
+ - Updated dependencies [2007f8b]
25
+ - Updated dependencies [ef0f539]
26
+ - Updated dependencies [942d397]
27
+ - @copilotkitnext/react@1.52.0
28
+ - @copilotkitnext/core@1.52.0
29
+ - @copilotkit/shared@1.52.0
30
+ - @copilotkit/runtime-client-gql@1.52.0
31
+
32
+ ## 1.52.0-next.8
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [942d397]
37
+ - @copilotkitnext/react@1.52.0-next.8
38
+ - @copilotkit/runtime-client-gql@1.52.0-next.8
39
+ - @copilotkit/shared@1.52.0-next.8
40
+ - @copilotkitnext/core@1.52.0-next.8
41
+
3
42
  ## 1.52.0-next.7
4
43
 
5
44
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -3602,7 +3602,7 @@ function useLangGraphInterrupt(action, _dependencies) {
3602
3602
  const actionRef = (0, react.useRef)(action);
3603
3603
  actionRef.current = action;
3604
3604
  const existingConfig = (0, _copilotkitnext_react.useCopilotChatConfiguration)();
3605
- const resolvedAgentId = existingConfig?.agentId ?? "default";
3605
+ const resolvedAgentId = action.agentId ?? existingConfig?.agentId ?? "default";
3606
3606
  const threadId = existingConfig?.threadId;
3607
3607
  const nodeName = useAgentNodeName(resolvedAgentId);
3608
3608
  const metadataRef = (0, react.useRef)({