@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 CHANGED
@@ -1,5 +1,44 @@
1
1
  # ui
2
2
 
3
+ ## 1.52.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [bbdf67d]
8
+ - @copilotkitnext/react@1.52.1-next.0
9
+ - @copilotkit/runtime-client-gql@1.52.1-next.0
10
+ - @copilotkit/shared@1.52.1-next.0
11
+ - @copilotkitnext/core@1.52.1-next.0
12
+
13
+ ## 1.52.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 6dd6c84: Adding new v2 features:
18
+ - useComponent
19
+ - useRenderTool
20
+ - useDefaultRenderTool
21
+
22
+ Also, fixing issues with styles not being
23
+ properly scoped for tailwind.
24
+
25
+ ### Patch Changes
26
+
27
+ - d77f347: Added in the useInterrupt hook
28
+ - 2007f8b: feat: useComponent improvements
29
+ - ef0f539: Add reasoning support and default components for reasoning messages
30
+ - 412965a: Introducing available prop to useFrontendTool()
31
+ - 5f941db: Prevent CPK styles from polluting user app
32
+ - Updated dependencies [593859f]
33
+ - Updated dependencies [d77f347]
34
+ - Updated dependencies [2007f8b]
35
+ - Updated dependencies [ef0f539]
36
+ - Updated dependencies [942d397]
37
+ - @copilotkitnext/react@1.52.0
38
+ - @copilotkitnext/core@1.52.0
39
+ - @copilotkit/shared@1.52.0
40
+ - @copilotkit/runtime-client-gql@1.52.0
41
+
3
42
  ## 1.52.0-next.8
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)({