sessioncontact 1.0.2 → 1.0.3

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/dist/index.js CHANGED
@@ -30,7 +30,8 @@ function SessionContact(settings) {
30
30
  window.sessionContactSettings = settings;
31
31
  window.sessionChatSettings = {
32
32
  orgId: settings.app_id,
33
- convexUrl: settings.convex_url,
33
+ // convexUrl is optional - widget uses default if not provided
34
+ ...settings.convex_url && { convexUrl: settings.convex_url },
34
35
  // Pass through user identity if provided
35
36
  ...settings.identity_token && { identityToken: settings.identity_token },
36
37
  ...settings.user_id && { userId: settings.user_id },
package/dist/index.mjs CHANGED
@@ -6,7 +6,8 @@ function SessionContact(settings) {
6
6
  window.sessionContactSettings = settings;
7
7
  window.sessionChatSettings = {
8
8
  orgId: settings.app_id,
9
- convexUrl: settings.convex_url,
9
+ // convexUrl is optional - widget uses default if not provided
10
+ ...settings.convex_url && { convexUrl: settings.convex_url },
10
11
  // Pass through user identity if provided
11
12
  ...settings.identity_token && { identityToken: settings.identity_token },
12
13
  ...settings.user_id && { userId: settings.user_id },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessioncontact",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "SessionContact Messenger SDK - works with any framework",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",