Skip to content

Commit

Permalink
update test site, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
popestr committed Jul 9, 2024
1 parent b361376 commit 64f0642
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions apps/test-site/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ function ChatComponent() {
});
}, [actions]);

const onRestart = useCallback(() => {
actions.restartConversation();
}, [actions]);

return (
<div>
{messages.map((m, i) => (
Expand All @@ -98,6 +102,7 @@ function ChatComponent() {
<button onClick={onClick}>Send</button>
<button onClick={onClickStream}>Send (Stream)</button>
<button onClick={onReport}>report</button>
<button onClick={onRestart}>Restart</button>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/chat-headless/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/chat-headless",
"version": "0.10.0",
"version": "0.11.0",
"description": "A state manager library powered by Redux for Yext Chat integrations",
"main": "./dist/commonjs/src/index.js",
"module": "./dist/esm/src/index.mjs",
Expand Down

0 comments on commit 64f0642

Please sign in to comment.