-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
14,982 additions
and
7,396 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
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,7 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"printWidth": 120 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"gitDir": "../../.git" | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['custom'], | ||
rules: { | ||
'@next/next/no-img-element': 'off', | ||
'@next/next/no-html-link-for-pages': 'off', | ||
}, | ||
root: true, | ||
rules: { | ||
'@next/next/no-img-element': 'off', | ||
'@next/next/no-html-link-for-pages': 'off' | ||
} | ||
} |
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,48 +1,41 @@ | ||
<!-- markdownlint-disable MD030 --> | ||
|
||
# Flowise Embed React | ||
# Hanzo Embed React | ||
|
||
React library to display flowise chatbot on your website | ||
|
||
![Flowise](https://github.com/FlowiseAI/FlowiseChatEmbed/blob/main/images/ChatEmbed.gif?raw=true) | ||
![Hanzo](https://github.com/FlowiseAI/FlowiseChatEmbed/blob/main/images/ChatEmbed.gif?raw=true) | ||
|
||
## Install | ||
|
||
```bash | ||
npm install @hanzo/ai-embed @hanzo/ai-embed-react | ||
npm install @hanzo/embed @hanzo/embed-react | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
yarn add @hanzo/ai-embed @hanzo/ai-embed-react | ||
yarn add @hanzo/embed @hanzo/embed-react | ||
``` | ||
|
||
## Import | ||
|
||
Full Page Chat | ||
|
||
```tsx | ||
import { FullPageChat } from "@hanzo/ai-embed-react"; | ||
import { FullPageChat } from '@hanzo/embed-react' | ||
|
||
const App = () => { | ||
return ( | ||
<FullPageChat | ||
chatflowid="your-chatflow-id" | ||
apiHost="http://localhost:3000" | ||
/> | ||
); | ||
}; | ||
return <FullPageChat chatflowid='your-chatflow-id' apiHost='http://localhost:3000' /> | ||
} | ||
``` | ||
|
||
Popup Chat | ||
|
||
```tsx | ||
import { BubbleChat } from "@hanzo/ai-embed-react"; | ||
import { BubbleChat } from '@hanzo/embed-react' | ||
|
||
const App = () => { | ||
return ( | ||
<BubbleChat chatflowid="your-chatflow-id" apiHost="http://localhost:3000" /> | ||
); | ||
}; | ||
return <BubbleChat chatflowid='your-chatflow-id' apiHost='http://localhost:3000' /> | ||
} | ||
``` |
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,40 +1,43 @@ | ||
{ | ||
"name": "@hanzo/ai-embed-react", | ||
"version": "1.0.2", | ||
"description": "React library to display flowise chatbot on your website", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "rollup --watch --config rollup.config.js", | ||
"build": "rollup --config rollup.config.js", | ||
"lint": "eslint --fix \"src/**/*.ts*\"" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ladle/react": "2.5.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "7.18.6", | ||
"@babel/preset-typescript": "7.21.4", | ||
"@rollup/plugin-babel": "6.0.3", | ||
"@rollup/plugin-node-resolve": "15.0.1", | ||
"@rollup/plugin-terser": "0.4.0", | ||
"@rollup/plugin-typescript": "11.0.0", | ||
"@types/node": "18.15.11", | ||
"@types/react": "18.0.32", | ||
"eslint": "8.37.0", | ||
"@hanzo/ai-embed": "*", | ||
"react": "18.2.0", | ||
"rollup": "3.20.2", | ||
"rollup-plugin-typescript-paths": "1.4.0", | ||
"tslib": "2.5.0", | ||
"tsx": "3.12.6", | ||
"typescript": "5.0.3" | ||
}, | ||
"peerDependencies": { | ||
"@hanzo/ai-embed": "*", | ||
"react": "18.x" | ||
} | ||
"name": "@hanzo/embed-react", | ||
"version": "1.0.2", | ||
"description": "React library to display flowise chatbot on your website", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "rollup --watch --config rollup.config.js", | ||
"build": "rollup --config rollup.config.js", | ||
"lint": "eslint --fix \"src/**/*.ts*\"" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ladle/react": "2.5.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "7.18.6", | ||
"@babel/preset-typescript": "7.21.4", | ||
"@rollup/plugin-babel": "6.0.3", | ||
"@rollup/plugin-node-resolve": "15.0.1", | ||
"@rollup/plugin-terser": "0.4.0", | ||
"@rollup/plugin-typescript": "11.0.0", | ||
"@types/node": "18.15.11", | ||
"@types/react": "18.0.32", | ||
"eslint": "8.37.0", | ||
"@hanzo/embed": "*", | ||
"react": "18.2.0", | ||
"rollup": "3.20.2", | ||
"rollup-plugin-typescript-paths": "1.4.0", | ||
"tslib": "2.5.0", | ||
"tsx": "3.12.6", | ||
"typescript": "5.0.3" | ||
}, | ||
"peerDependencies": { | ||
"@hanzo/embed": "*", | ||
"react": "18.x" | ||
} | ||
} |
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 @@ | ||
Dockerfile; |
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,15 +1,23 @@ | ||
{ | ||
"tabWidth": 4, | ||
"printWidth": 80, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"parser": "babel", | ||
"semi": true, | ||
"requirePragma": false, | ||
"proseWrap": "preserve", | ||
"arrowParens": "avoid", | ||
"eslintIntegration": false, | ||
"endOfLine": "auto" | ||
} | ||
"tabWidth": 4, | ||
"printWidth": 80, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"parser": "babel", | ||
"semi": true, | ||
"requirePragma": false, | ||
"proseWrap": "preserve", | ||
"arrowParens": "avoid", | ||
"eslintIntegration": false, | ||
"endOfLine": "auto", | ||
"overrides": [ | ||
{ | ||
"files": "*.json", | ||
"options": { | ||
"parser": "json" | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.