@assistant-ui/react 0.5.58 → 0.5.59
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -774,7 +774,10 @@ var useSmooth = (state, smooth = false) => {
|
|
774
774
|
const {
|
775
775
|
part: { text }
|
776
776
|
} = state;
|
777
|
-
const id = useMessage(
|
777
|
+
const id = useMessage({
|
778
|
+
optional: true,
|
779
|
+
selector: (m) => m.message.id
|
780
|
+
});
|
778
781
|
const idRef = _react.useRef.call(void 0, id);
|
779
782
|
const [displayedText, setDisplayedText] = _react.useState.call(void 0, text);
|
780
783
|
const smoothStatusStore = useSmoothStatusStore({ optional: true });
|