clay-server 2.36.1-beta.4 → 2.36.1
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/lib/public/css/input.css
CHANGED
|
@@ -573,36 +573,6 @@
|
|
|
573
573
|
display: flex;
|
|
574
574
|
gap: 8px;
|
|
575
575
|
}
|
|
576
|
-
.email-setup-email-wrap {
|
|
577
|
-
display: flex;
|
|
578
|
-
align-items: center;
|
|
579
|
-
border-radius: 6px;
|
|
580
|
-
border: 1px solid var(--border);
|
|
581
|
-
background: var(--input-bg);
|
|
582
|
-
overflow: hidden;
|
|
583
|
-
}
|
|
584
|
-
.email-setup-email-wrap .email-setup-input {
|
|
585
|
-
border: none;
|
|
586
|
-
background: transparent;
|
|
587
|
-
border-radius: 0;
|
|
588
|
-
flex: 1;
|
|
589
|
-
min-width: 0;
|
|
590
|
-
}
|
|
591
|
-
.email-setup-email-wrap .email-setup-input:focus {
|
|
592
|
-
outline: none;
|
|
593
|
-
border: none;
|
|
594
|
-
}
|
|
595
|
-
.email-setup-email-wrap:focus-within {
|
|
596
|
-
border-color: var(--accent);
|
|
597
|
-
}
|
|
598
|
-
.email-setup-domain {
|
|
599
|
-
padding: 8px 10px 8px 0;
|
|
600
|
-
font-size: 14px;
|
|
601
|
-
color: var(--text-dimmer);
|
|
602
|
-
white-space: nowrap;
|
|
603
|
-
user-select: none;
|
|
604
|
-
pointer-events: none;
|
|
605
|
-
}
|
|
606
576
|
.email-setup-password-wrap {
|
|
607
577
|
position: relative;
|
|
608
578
|
}
|
|
@@ -458,10 +458,7 @@ export function showEmailSetupModal() {
|
|
|
458
458
|
'</div>' +
|
|
459
459
|
'<div class="email-setup-field">' +
|
|
460
460
|
'<label class="email-setup-label">Email Address</label>' +
|
|
461
|
-
'<
|
|
462
|
-
'<input id="email-setup-address" type="text" placeholder="you" class="email-setup-input email-setup-email-input" />' +
|
|
463
|
-
'<span id="email-setup-domain" class="email-setup-domain">@gmail.com</span>' +
|
|
464
|
-
'</div>' +
|
|
461
|
+
'<input id="email-setup-address" type="email" placeholder="you@example.com" class="email-setup-input" />' +
|
|
465
462
|
'</div>' +
|
|
466
463
|
'<div class="email-setup-field">' +
|
|
467
464
|
'<label class="email-setup-label">App Password</label>' +
|
|
@@ -523,44 +520,29 @@ export function showEmailSetupModal() {
|
|
|
523
520
|
var helpLink = document.getElementById("email-setup-help");
|
|
524
521
|
var customFields = document.getElementById("email-setup-custom-fields");
|
|
525
522
|
|
|
523
|
+
// Provider presets only configure IMAP/SMTP infra and the help link.
|
|
524
|
+
// The user always enters their full email address (e.g. user@company.com),
|
|
525
|
+
// so Google Workspace / Microsoft 365 accounts on custom domains work too.
|
|
526
526
|
var providerMeta = {
|
|
527
527
|
gmail: {
|
|
528
|
-
domain: "@gmail.com",
|
|
529
|
-
placeholder: "you",
|
|
530
528
|
helpUrl: "https://support.google.com/accounts/answer/185833",
|
|
531
529
|
},
|
|
532
530
|
outlook: {
|
|
533
|
-
domain: "@outlook.com",
|
|
534
|
-
placeholder: "you",
|
|
535
531
|
helpUrl: "https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944",
|
|
536
532
|
},
|
|
537
533
|
yahoo: {
|
|
538
|
-
domain: "@yahoo.com",
|
|
539
|
-
placeholder: "you",
|
|
540
534
|
helpUrl: "https://help.yahoo.com/kb/generate-manage-third-party-passwords-sln15241.html",
|
|
541
535
|
},
|
|
542
536
|
custom: {
|
|
543
|
-
domain: null,
|
|
544
|
-
placeholder: "you@example.com",
|
|
545
537
|
helpUrl: null,
|
|
546
538
|
},
|
|
547
539
|
};
|
|
548
540
|
|
|
549
541
|
var emailInput = document.getElementById("email-setup-address");
|
|
550
|
-
var domainSuffix = document.getElementById("email-setup-domain");
|
|
551
542
|
|
|
552
543
|
function applyProviderMeta(val) {
|
|
553
544
|
var meta = providerMeta[val] || providerMeta.custom;
|
|
554
545
|
customFields.style.display = val === "custom" ? "block" : "none";
|
|
555
|
-
emailInput.placeholder = meta.placeholder;
|
|
556
|
-
if (meta.domain) {
|
|
557
|
-
domainSuffix.textContent = meta.domain;
|
|
558
|
-
domainSuffix.style.display = "";
|
|
559
|
-
emailInput.type = "text";
|
|
560
|
-
} else {
|
|
561
|
-
domainSuffix.style.display = "none";
|
|
562
|
-
emailInput.type = "email";
|
|
563
|
-
}
|
|
564
546
|
if (meta.helpUrl) {
|
|
565
547
|
helpLink.href = meta.helpUrl;
|
|
566
548
|
helpLink.style.display = "";
|
|
@@ -573,18 +555,6 @@ export function showEmailSetupModal() {
|
|
|
573
555
|
applyProviderMeta(providerSelect.value);
|
|
574
556
|
});
|
|
575
557
|
|
|
576
|
-
// Strip @ and everything after it for known providers
|
|
577
|
-
emailInput.addEventListener("input", function () {
|
|
578
|
-
var meta = providerMeta[providerSelect.value];
|
|
579
|
-
if (meta && meta.domain) {
|
|
580
|
-
var val = emailInput.value;
|
|
581
|
-
var atIdx = val.indexOf("@");
|
|
582
|
-
if (atIdx !== -1) {
|
|
583
|
-
emailInput.value = val.substring(0, atIdx);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
|
|
588
558
|
// Reset test state
|
|
589
559
|
_emailTestPassed = false;
|
|
590
560
|
_emailPendingSave = false;
|
|
@@ -661,13 +631,7 @@ export function showEmailSetupModal() {
|
|
|
661
631
|
}
|
|
662
632
|
|
|
663
633
|
function getFullEmail() {
|
|
664
|
-
|
|
665
|
-
var raw = document.getElementById("email-setup-address").value.trim();
|
|
666
|
-
var meta = { gmail: "@gmail.com", outlook: "@outlook.com", yahoo: "@yahoo.com" };
|
|
667
|
-
if (meta[provider] && raw.indexOf("@") === -1) {
|
|
668
|
-
return raw + meta[provider];
|
|
669
|
-
}
|
|
670
|
-
return raw;
|
|
634
|
+
return document.getElementById("email-setup-address").value.trim();
|
|
671
635
|
}
|
|
672
636
|
|
|
673
637
|
function buildEmailSetupData() {
|
package/package.json
CHANGED