@ibti-tech/chatbot 0.9.2 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/ibti-chatbot-embed.js +139 -110
- package/dist/ibti-chatbot-embed.js.map +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +36 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,6 +92,11 @@ Import: `import type { ChatbotTypes } from '@ibti-tech/chatbot'`
|
|
|
92
92
|
|
|
93
93
|
For static HTML, WordPress, PHP, or any site without React, load the script from the CDN:
|
|
94
94
|
|
|
95
|
+
**Mobile (position top):** When using `position="top-right"` or `position="top-left"` on mobile, add `viewport-fit=cover` to your viewport meta so the chatbot respects safe areas (notch, status bar) and the close button stays visible:
|
|
96
|
+
```html
|
|
97
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
98
|
+
```
|
|
99
|
+
|
|
95
100
|
```html
|
|
96
101
|
<script>
|
|
97
102
|
window.IBTIChatbotConfig = {
|