-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: powered by Voiceflow is a link now (DSN-2505) (#285)
- Loading branch information
1 parent
f21e191
commit 7d4ea15
Showing
7 changed files
with
129 additions
and
93 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
apps/documentation/src/pages/compositions/widget-page-component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
'use client'; | ||
|
||
import { useEffect, useState } from 'react'; | ||
|
||
import { StoryEmbed } from '../../components/StoryEmbed'; | ||
|
||
export default function ChatWidgetStories() { | ||
const [shouldRender, setShouldRender] = useState(false); | ||
|
||
useEffect(() => { | ||
setShouldRender(true); | ||
}, []); | ||
|
||
if (!shouldRender) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '32px', margin: '32px 0' }}> | ||
# Chat Demo ## Base | ||
<div style={{ width: '400px' }}> | ||
<StoryEmbed for="NewChat" name="Base" /> | ||
</div> | ||
## Themed | ||
<StoryEmbed for="NewChat" name="Themed" /> | ||
## No Powered By | ||
<div style={{ width: '400px' }}> | ||
<StoryEmbed for="NewChat" name="NoPoweredBy" /> | ||
### No Footer at all | ||
<StoryEmbed for="NewChat" name="NoFooterLinks" /> | ||
### Chat ended | ||
<StoryEmbed for="NewChat" name="ChatEnded" /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,5 @@ | ||
import { StoryEmbed } from '../../components/StoryEmbed'; | ||
import { ClientRenderer } from '../../components/ClientRenderer'; | ||
import ChatWidgetStories from './widget-page-component.tsx'; | ||
|
||
# Chat Demo | ||
## Chat Widget | ||
|
||
## Base | ||
|
||
<div style={{ width: '400px' }}> | ||
<StoryEmbed for="NewChat" name="Base" /> | ||
</div> | ||
|
||
## Themed | ||
|
||
<StoryEmbed for="NewChat" name="Themed" /> | ||
|
||
## No Powered By | ||
|
||
<div style={{ width: '400px' }}> | ||
|
||
<StoryEmbed for="NewChat" name="NoPoweredBy" /> | ||
|
||
### No Footer at all | ||
|
||
<StoryEmbed for="NewChat" name="NoFooterLinks" /> | ||
|
||
### Chat ended | ||
|
||
<StoryEmbed for="NewChat" name="ChatEnded" /> | ||
|
||
|
||
</div> | ||
<ChatWidgetStories /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters