ajaxter-chat 3.0.3 → 3.0.4

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.
@@ -1,4 +1,8 @@
1
- /** Default JSON endpoint; override with REACT_APP_CHAT_CONFIG_URL / NEXT_PUBLIC_CHAT_CONFIG_URL */
1
+ /**
2
+ * Default JSON endpoint. Override with `REACT_APP_CHAT_CONFIG_URL` / `NEXT_PUBLIC_CHAT_CONFIG_URL`.
3
+ * If the remote host does not send CORS headers, set this to a same-origin path (e.g. `/api/chat-config`)
4
+ * and proxy the JSON from your server — see `examples/next-app-router-chat-proxy.ts`.
5
+ */
2
6
  const DEFAULT_CHAT_DATA_BASE = 'https://window.mscorpres.com/TEST/chatData.json';
3
7
  const DEMO_API_KEY = 'demo1234';
4
8
  const DEMO_WIDGET_ID = 'demo';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ajaxter-chat",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Drawer-based chat widget with support chat, tickets, WebRTC calling, voice messages, block list, and transcript download.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,10 @@
1
1
  import { LocalEnvConfig, RemoteChatData } from '../types';
2
2
 
3
- /** Default JSON endpoint; override with REACT_APP_CHAT_CONFIG_URL / NEXT_PUBLIC_CHAT_CONFIG_URL */
3
+ /**
4
+ * Default JSON endpoint. Override with `REACT_APP_CHAT_CONFIG_URL` / `NEXT_PUBLIC_CHAT_CONFIG_URL`.
5
+ * If the remote host does not send CORS headers, set this to a same-origin path (e.g. `/api/chat-config`)
6
+ * and proxy the JSON from your server — see `examples/next-app-router-chat-proxy.ts`.
7
+ */
4
8
  const DEFAULT_CHAT_DATA_BASE = 'https://window.mscorpres.com/TEST/chatData.json';
5
9
  const DEMO_API_KEY = 'demo1234';
6
10
  const DEMO_WIDGET_ID = 'demo';