@evelan/jexity-widget 0.4.2 → 0.6.0-canary.11
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 +8 -9
- package/dist/index.mjs +1171 -1126
- package/dist/index.mjs.map +1 -1
- package/dist/react.mjs +5158 -24
- package/dist/react.mjs.map +1 -1
- package/dist/types/entries/react.d.ts +1 -1
- package/dist/types/entries/react.d.ts.map +1 -1
- package/dist/types/features/chat/components/BotMessage.d.ts +3 -1
- package/dist/types/features/chat/components/BotMessage.d.ts.map +1 -1
- package/dist/types/features/chat/components/ChatInput.d.ts +2 -1
- package/dist/types/features/chat/components/ChatInput.d.ts.map +1 -1
- package/dist/types/features/chat/components/ChatScreen.d.ts +3 -0
- package/dist/types/features/chat/components/ChatScreen.d.ts.map +1 -1
- package/dist/types/features/chat/components/MessageList.d.ts +6 -5
- package/dist/types/features/chat/components/MessageList.d.ts.map +1 -1
- package/dist/types/features/chat/hooks/useConvexSession.d.ts +2 -0
- package/dist/types/features/chat/hooks/useConvexSession.d.ts.map +1 -1
- package/dist/types/features/home/components/HomeScreen.d.ts +3 -3
- package/dist/types/features/home/components/HomeScreen.d.ts.map +1 -1
- package/dist/types/i18n/locales/de.d.ts.map +1 -1
- package/dist/types/i18n/locales/en.d.ts +2 -0
- package/dist/types/i18n/locales/en.d.ts.map +1 -1
- package/dist/types/lib/widget-config.d.ts +1 -0
- package/dist/types/lib/widget-config.d.ts.map +1 -1
- package/dist/types/module/shell/WidgetShell.d.ts.map +1 -1
- package/dist/types/module/shell/mount.d.ts.map +1 -1
- package/dist/types/module/shell/shell.state.d.ts +2 -0
- package/dist/types/module/shell/shell.state.d.ts.map +1 -1
- package/dist/types/module/visitor/visitor.state.d.ts +5 -0
- package/dist/types/module/visitor/visitor.state.d.ts.map +1 -1
- package/dist/types/types.d.ts +8 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/widget.js +2 -2
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Embeddable AI chat widget for any website. Add customer support chat with a sing
|
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
10
|
<script
|
|
11
|
-
src="https://cdn.
|
|
11
|
+
src="https://cdn.jexitychat.de/widget/latest/widget.js"
|
|
12
12
|
data-org-slug="YOUR_ORG_SLUG"
|
|
13
13
|
async
|
|
14
14
|
></script>
|
|
@@ -138,7 +138,7 @@ All options can be set as `data-*` attributes on the `<script>` tag:
|
|
|
138
138
|
|
|
139
139
|
```html
|
|
140
140
|
<script
|
|
141
|
-
src="https://cdn.
|
|
141
|
+
src="https://cdn.jexitychat.de/widget/latest/widget.js"
|
|
142
142
|
data-org-slug="acme-corp"
|
|
143
143
|
data-locale="de"
|
|
144
144
|
data-primary-color="#ff6600"
|
|
@@ -195,16 +195,15 @@ Open **`http://localhost:3002`** — the dev playground with live config control
|
|
|
195
195
|
Create `apps/widget/.env.local`:
|
|
196
196
|
|
|
197
197
|
```bash
|
|
198
|
-
# Convex
|
|
199
|
-
#
|
|
200
|
-
#
|
|
201
|
-
|
|
202
|
-
VITE_CONVEX_SITE_URL=https://<your-dev-deployment>.convex.site
|
|
198
|
+
# Convex deployment URL — used for both WebSocket (real-time) and HTTP actions (config fetch).
|
|
199
|
+
# The widget auto-derives .convex.site from .convex.cloud via convex-url.ts.
|
|
200
|
+
# Copy from packages/backend/.env.local (CONVEX_URL).
|
|
201
|
+
VITE_CONVEX_URL=https://<your-dev-deployment>.convex.cloud
|
|
203
202
|
|
|
204
203
|
# Reserved — not consumed yet. Future escape hatch if we ever swap Convex for
|
|
205
204
|
# a traditional REST backend (Express, Fastify, etc.). Once wired, widget code
|
|
206
|
-
# will read this instead of
|
|
207
|
-
# via env alone.
|
|
205
|
+
# will read this instead of VITE_CONVEX_URL so the backend is hot-swappable
|
|
206
|
+
# via env alone.
|
|
208
207
|
# VITE_API_BASE_URL=https://api.example.com
|
|
209
208
|
```
|
|
210
209
|
|