@assistant-ui/react 0.5.58 → 0.5.59
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/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 });
|