Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/reaviz/reachat
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	package.json
#	src/theme.ts
  • Loading branch information
amcdnl committed Aug 6, 2024
2 parents 27275dc + 3e42b27 commit 2f1e599
Show file tree
Hide file tree
Showing 14 changed files with 992 additions and 159 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# 0.0.1
- First publish

# 1.0.5
- Update theme
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ theme via Tailwind.
- Checkout the [docs and demos](https://reachat.dev)
- Checkout the [storybook demos](https://storybook.reachat.dev)
- Learn about updates from the [changelog](CHANGELOG.md)
- Download [Figma template](https://www.figma.com/community/file/1401162540082414292/reachat-landing-page-public)
- Try the [sample repo](https://github.com/reaviz/reachat-example)

## 💎 Other Projects

Expand Down Expand Up @@ -85,5 +87,5 @@ If you want to run reachat locally, its super easy!

Thanks to all our contributors!

<a href="https://github.com/reaviz/reaviz/graphs/contributors"><img src="https://opencollective.com/reaviz/contributors.svg?width=890" /></a>
<a href="https://github.com/reaviz/reachat/graphs/contributors"><img src="https://opencollective.com/reaviz/contributors.svg?width=890" /></a>

6 changes: 4 additions & 2 deletions src/SessionMessages/SessionMessage/MessageSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ export interface MessageSourceProps extends ConversationSource {
}

export const MessageSource: FC<MessageSourceProps> = ({ title, url, image, limit = 50 }) => {
const { theme } = useContext(ChatContext);
const { theme, isCompact } = useContext(ChatContext);

return (
<figure
className={cn(theme.messages.message.sources.source.base)}
className={cn(theme.messages.message.sources.source.base, {
[theme.messages.message.sources.source.companion]: isCompact
})}
onClick={() => {
if (url) {
window.open(url, '_blank');
Expand Down
1 change: 1 addition & 0 deletions src/SessionMessages/SessionMessage/SessionMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ interface SessionMessageProps extends PropsWithChildren {

/**
* Whether the message is the last one in the list.
* This let's the chat know when to show the loading cursor.
*/
isLast?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SessionMessages/SessionMessagePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const SessionMessagePanel: FC<PropsWithChildren> = ({ children }) => {
className={cn(theme.messages.back)}
>
<BackIcon />
Back
Back
</Button>
)}
{children}
Expand Down
500 changes: 500 additions & 0 deletions src/assets/placeholder-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
258 changes: 258 additions & 0 deletions src/assets/placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/assets/trash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2f1e599

Please sign in to comment.