@agenticmail/enterprise 0.5.247 → 0.5.248

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.
@@ -29,31 +29,25 @@ export function HelpButton(props) {
29
29
  onMouseLeave: function(e) { e.currentTarget.style.borderColor = 'var(--text-muted, #6b7280)'; e.currentTarget.style.color = 'var(--text-muted, #6b7280)'; }
30
30
  }, '?'),
31
31
  isOpen && h('div', {
32
- onClick: function(e) { e.stopPropagation(); },
32
+ id: 'help-overlay',
33
+ onMouseDown: function(e) { if (e.target.id === 'help-overlay') setOpen(false); },
33
34
  style: {
34
35
  position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, zIndex: 200,
36
+ background: 'rgba(0,0,0,0.5)',
37
+ display: 'flex', alignItems: 'center', justifyContent: 'center',
35
38
  }
36
39
  },
37
- // Backdrop — click to close
38
40
  h('div', {
39
- onClick: function(e) { e.stopPropagation(); setOpen(false); },
40
- style: { position: 'absolute', inset: 0, background: 'rgba(0,0,0,0.5)' }
41
- }),
42
- // Help panel — centered card, NOT a Modal component
43
- h('div', {
44
- onClick: function(e) { e.stopPropagation(); },
45
41
  style: {
46
- position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)',
47
42
  background: 'var(--bg-card, #181b28)', border: '1px solid var(--border)',
48
43
  borderRadius: 'var(--radius-xl, 14px)', width: 520, maxWidth: '92vw', maxHeight: '80vh',
49
44
  overflow: 'hidden', boxShadow: '0 25px 50px rgba(0,0,0,0.4)',
50
45
  }
51
46
  },
52
- // Header
53
47
  h('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '14px 20px', borderBottom: '1px solid var(--border)' } },
54
48
  h('h3', { style: { fontSize: 15, fontWeight: 700, margin: 0 } }, props.label || 'Help'),
55
49
  h('button', {
56
- onClick: function(e) { e.stopPropagation(); setOpen(false); },
50
+ onMouseDown: function(e) { e.stopPropagation(); setOpen(false); },
57
51
  style: {
58
52
  display: 'flex', alignItems: 'center', justifyContent: 'center',
59
53
  width: 28, height: 28, borderRadius: 6, border: 'none',
@@ -62,7 +56,6 @@ export function HelpButton(props) {
62
56
  }
63
57
  }, I.x())
64
58
  ),
65
- // Body
66
59
  h('div', { style: { padding: '16px 20px', overflowY: 'auto', maxHeight: 'calc(80vh - 60px)', fontSize: 14, lineHeight: 1.7, color: 'var(--text-secondary, #9ca3af)' } },
67
60
  props.children
68
61
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.247",
3
+ "version": "0.5.248",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,31 +29,25 @@ export function HelpButton(props) {
29
29
  onMouseLeave: function(e) { e.currentTarget.style.borderColor = 'var(--text-muted, #6b7280)'; e.currentTarget.style.color = 'var(--text-muted, #6b7280)'; }
30
30
  }, '?'),
31
31
  isOpen && h('div', {
32
- onClick: function(e) { e.stopPropagation(); },
32
+ id: 'help-overlay',
33
+ onMouseDown: function(e) { if (e.target.id === 'help-overlay') setOpen(false); },
33
34
  style: {
34
35
  position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, zIndex: 200,
36
+ background: 'rgba(0,0,0,0.5)',
37
+ display: 'flex', alignItems: 'center', justifyContent: 'center',
35
38
  }
36
39
  },
37
- // Backdrop — click to close
38
40
  h('div', {
39
- onClick: function(e) { e.stopPropagation(); setOpen(false); },
40
- style: { position: 'absolute', inset: 0, background: 'rgba(0,0,0,0.5)' }
41
- }),
42
- // Help panel — centered card, NOT a Modal component
43
- h('div', {
44
- onClick: function(e) { e.stopPropagation(); },
45
41
  style: {
46
- position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)',
47
42
  background: 'var(--bg-card, #181b28)', border: '1px solid var(--border)',
48
43
  borderRadius: 'var(--radius-xl, 14px)', width: 520, maxWidth: '92vw', maxHeight: '80vh',
49
44
  overflow: 'hidden', boxShadow: '0 25px 50px rgba(0,0,0,0.4)',
50
45
  }
51
46
  },
52
- // Header
53
47
  h('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '14px 20px', borderBottom: '1px solid var(--border)' } },
54
48
  h('h3', { style: { fontSize: 15, fontWeight: 700, margin: 0 } }, props.label || 'Help'),
55
49
  h('button', {
56
- onClick: function(e) { e.stopPropagation(); setOpen(false); },
50
+ onMouseDown: function(e) { e.stopPropagation(); setOpen(false); },
57
51
  style: {
58
52
  display: 'flex', alignItems: 'center', justifyContent: 'center',
59
53
  width: 28, height: 28, borderRadius: 6, border: 'none',
@@ -62,7 +56,6 @@ export function HelpButton(props) {
62
56
  }
63
57
  }, I.x())
64
58
  ),
65
- // Body
66
59
  h('div', { style: { padding: '16px 20px', overflowY: 'auto', maxHeight: 'calc(80vh - 60px)', fontSize: 14, lineHeight: 1.7, color: 'var(--text-secondary, #9ca3af)' } },
67
60
  props.children
68
61
  )