Skip to content

Commit

Permalink
Merge pull request #87 from sendbird/feat/self-service
Browse files Browse the repository at this point in the history
feat: self service
  • Loading branch information
AhyoungRyu authored Feb 26, 2024
2 parents 3c97ada + de4ba34 commit 0b0c5b0
Show file tree
Hide file tree
Showing 57 changed files with 4,026 additions and 6,517 deletions.
208 changes: 193 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@
},
"dependencies": {
"@sendbird/chat": "^4.10.1",
"@sendbird/uikit-react": "^3.9.0",
"@sendbird/uikit-react": "^3.12.0",
"dompurify": "^3.0.4",
"polished": "^2.3.1",
"react-code-blocks": "^0.1.0",
"react-popper-tooltip": "^4.4.2",
"styled-components": "^5.3.11"
"styled-components": "^5.3.11",
"@tanstack/react-query": "^5.17.19"
},
"devDependencies": {
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@types/styled-components": "^5.1.26",
"@tanstack/eslint-plugin-query": "^5.17.22",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@vitejs/plugin-react": "^4.0.0",
Expand Down
27 changes: 14 additions & 13 deletions packages/self-service/embed-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@
<title>Vite + React + TS</title>
<link rel="preload" href="https://fonts.cdnfonts.com/css/gellix" rel="stylesheet">
<link rel="preload" href="https://fonts.cdnfonts.com/css/sf-pro-display" rel="stylesheet">
</head>
<body>
<div id="aichatbot"></div>
<link href="/dist/index.css" rel="stylesheet" />
<script>
window.chatbotConfig = {
appId: "125B2432-BB0A-4650-95E2-80810404D526",
botId: "fintech-demo-bot",
}
</script>
<script
type="module"
src="/dist/index.js"
defer>
!function(w, d, s, ...args){
var div = d.createElement('div');
div.id = 'aichatbot';
d.body.appendChild(div);
w.chatbotConfig = args;
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s);
j.defer = true;
j.type = 'module';
j.src = 'https://aichatbot.sendbird.com/index.js/index.js';
f.parentNode.insertBefore(j, f);
}(window, document, 'script', 'A3E33A85-E4A7-46A4-99B1-EF6833E7DE3A', 'marketing_bot_3');
</script>
</head>
<body>
</body>
</html>
Loading

0 comments on commit 0b0c5b0

Please sign in to comment.