@evelan/jexity-widget 0.4.2 → 0.6.0-canary.12

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.
Files changed (35) hide show
  1. package/README.md +8 -9
  2. package/dist/index.mjs +1210 -1165
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/react.mjs +5158 -24
  5. package/dist/react.mjs.map +1 -1
  6. package/dist/types/entries/react.d.ts +1 -1
  7. package/dist/types/entries/react.d.ts.map +1 -1
  8. package/dist/types/features/chat/components/BotMessage.d.ts +3 -1
  9. package/dist/types/features/chat/components/BotMessage.d.ts.map +1 -1
  10. package/dist/types/features/chat/components/ChatInput.d.ts +2 -1
  11. package/dist/types/features/chat/components/ChatInput.d.ts.map +1 -1
  12. package/dist/types/features/chat/components/ChatScreen.d.ts +3 -0
  13. package/dist/types/features/chat/components/ChatScreen.d.ts.map +1 -1
  14. package/dist/types/features/chat/components/MessageList.d.ts +6 -5
  15. package/dist/types/features/chat/components/MessageList.d.ts.map +1 -1
  16. package/dist/types/features/chat/hooks/useConvexSession.d.ts +2 -0
  17. package/dist/types/features/chat/hooks/useConvexSession.d.ts.map +1 -1
  18. package/dist/types/features/home/components/HomeScreen.d.ts +3 -3
  19. package/dist/types/features/home/components/HomeScreen.d.ts.map +1 -1
  20. package/dist/types/i18n/locales/de.d.ts.map +1 -1
  21. package/dist/types/i18n/locales/en.d.ts +2 -0
  22. package/dist/types/i18n/locales/en.d.ts.map +1 -1
  23. package/dist/types/lib/widget-config.d.ts +1 -0
  24. package/dist/types/lib/widget-config.d.ts.map +1 -1
  25. package/dist/types/module/shell/WidgetShell.d.ts.map +1 -1
  26. package/dist/types/module/shell/mount.d.ts.map +1 -1
  27. package/dist/types/module/shell/shell.state.d.ts +2 -0
  28. package/dist/types/module/shell/shell.state.d.ts.map +1 -1
  29. package/dist/types/module/visitor/visitor.state.d.ts +5 -0
  30. package/dist/types/module/visitor/visitor.state.d.ts.map +1 -1
  31. package/dist/types/types.d.ts +9 -1
  32. package/dist/types/types.d.ts.map +1 -1
  33. package/dist/widget.js +2 -2
  34. package/dist/widget.js.map +1 -1
  35. 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.evelan.de/widget/latest/widget.js"
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.evelan.de/widget/latest/widget.js"
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 HTTP site URL — used to fetch widget config on mount.
199
- # Copy from packages/backend/.env.local (CONVEX_SITE_URL).
200
- # Dev deployment: sensible-anaconda-990.eu-west-1.convex.site
201
- # Prod deployment: festive-<...>.convex.site (set in GitHub Actions Variable)
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 VITE_CONVEX_SITE_URL so the backend is hot-swappable
207
- # via env alone. Set in GitHub Actions Secret: VITE_API_BASE_URL.
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