releasebird-javascript-sdk 1.0.86 → 1.0.88

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.
@@ -351,10 +351,15 @@ export class RbirdFormManager {
351
351
  }
352
352
  };
353
353
 
354
+ // Determine user info - use identified user data or fallback to visitor with anonymous ID
355
+ const userEmail = state?.identify?.properties?.email || state?.identify?.email || null;
356
+ const userName = state?.identify?.properties?.name || state?.identify?.name ||
357
+ (sessionManager.anonymousIdentifier ? `Visitor (${sessionManager.anonymousIdentifier.substring(0, 8)})` : 'Visitor');
358
+
354
359
  http.send(JSON.stringify({
355
360
  data: data,
356
- userEmail: state?.identify?.email || null,
357
- userName: state?.identify?.name || null
361
+ userEmail: userEmail,
362
+ userName: userName
358
363
  }));
359
364
  }
360
365
 
@@ -385,11 +390,12 @@ export class RbirdFormManager {
385
390
  background-color: ${theme.backgroundColor || '#ffffff'} !important;
386
391
  font-family: ${theme.fontFamily || "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"} !important;
387
392
  border-radius: ${theme.borderRadius || '12px'} !important;
388
- padding: 24px !important;
393
+ padding: 32px !important;
389
394
  min-width: min(400px, calc(100vw - 40px)) !important;
390
- ${isModal ? 'max-width: 500px !important; width: 100% !important; max-height: 90vh !important; overflow-y: auto !important;' : 'width: 100% !important;'}
395
+ ${isModal ? 'max-width: 500px !important; width: 100% !important; max-height: 90vh !important; overflow-y: auto !important; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;' : 'width: 100% !important;'}
391
396
  box-sizing: border-box !important;
392
397
  margin: 0 !important;
398
+ border: none !important;
393
399
  `;
394
400
  }
395
401
 
@@ -551,6 +557,9 @@ export class RbirdFormManager {
551
557
  .rbird-form-content {
552
558
  position: relative !important;
553
559
  box-sizing: border-box !important;
560
+ padding: 32px !important;
561
+ background-color: #ffffff !important;
562
+ border-radius: 12px !important;
554
563
  }
555
564
 
556
565
  .rbird-form-body {
@@ -558,6 +567,16 @@ export class RbirdFormManager {
558
567
  margin: 0 !important;
559
568
  }
560
569
 
570
+ .rbird-form-title {
571
+ margin: 0 0 8px 0 !important;
572
+ padding: 0 !important;
573
+ }
574
+
575
+ .rbird-form-description {
576
+ margin: 0 0 20px 0 !important;
577
+ padding: 0 !important;
578
+ }
579
+
561
580
  .rbird-form-close:hover {
562
581
  opacity: 1 !important;
563
582
  }