@40rty/ams-ui 0.5.27 → 0.5.29
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.
|
@@ -1665,14 +1665,14 @@ function Composer({
|
|
|
1665
1665
|
|
|
1666
1666
|
// src/shell/ConversationTransition.tsx
|
|
1667
1667
|
import * as React10 from "react";
|
|
1668
|
-
import { useFourtySession as useFourtySession3 } from "@40rty/ams-sdk";
|
|
1668
|
+
import { conversationKeyOf, useFourtySession as useFourtySession3 } from "@40rty/ams-sdk";
|
|
1669
1669
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1670
1670
|
function ConversationTransition({
|
|
1671
1671
|
children,
|
|
1672
1672
|
className,
|
|
1673
1673
|
style
|
|
1674
1674
|
}) {
|
|
1675
|
-
const
|
|
1675
|
+
const sessionId = conversationKeyOf(useFourtySession3());
|
|
1676
1676
|
const reduce = useReducedMotion();
|
|
1677
1677
|
const firstSessionRef = React10.useRef(null);
|
|
1678
1678
|
if (firstSessionRef.current === null && sessionId !== null) firstSessionRef.current = sessionId;
|
package/dist/conversation.js
CHANGED
package/dist/shell.js
CHANGED
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* `ConversationTransition` — lays a freshly switched / started conversation
|
|
4
4
|
* INTO view. Wrap the agent canvas AND the thread in one each; both key on
|
|
5
|
-
*
|
|
6
|
-
* together.
|
|
5
|
+
* the conversation's identity (`conversationKeyOf`), so when the
|
|
6
|
+
* conversation changes they re-mount and rise in together.
|
|
7
7
|
*
|
|
8
8
|
* No fade-out, no blank gap: the SDK holds the prior `sessionId` (and the prior
|
|
9
9
|
* canvas view) through the switch's network round-trip — see
|
package/package.json
CHANGED
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"zod": "^3.23.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@40rty/ams-sdk": "0.5.
|
|
79
|
+
"@40rty/ams-sdk": "0.5.29",
|
|
80
80
|
"lucide-react": ">=0.400.0",
|
|
81
81
|
"react": ">=18.0.0",
|
|
82
82
|
"react-dom": ">=18.0.0"
|
|
83
83
|
},
|
|
84
|
-
"version": "0.5.
|
|
84
|
+
"version": "0.5.29",
|
|
85
85
|
"homepage": "https://docs.40rty.ai",
|
|
86
86
|
"license": "UNLICENSED",
|
|
87
87
|
"engines": {
|