@redsift/products 12.5.1-muiv7 → 12.5.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/_internal/signal-cards.js +4 -4
- package/_internal/signal-cards.js.map +1 -1
- package/bimi-checker.d.ts +94 -94
- package/index.d.ts +285 -285
- package/package.json +2 -2
- package/signal-cards.d.ts +285 -285
|
@@ -1699,17 +1699,17 @@ function hasReportWarnings(dmarc) {
|
|
|
1699
1699
|
* On smaller viewports (≤765px) the boxes stack vertically.
|
|
1700
1700
|
*/
|
|
1701
1701
|
function DmarcSummaryBoxes(_ref2) {
|
|
1702
|
-
var _dmarc$policy$pct, _dmarc$policy2;
|
|
1702
|
+
var _dmarc$policy$pct, _dmarc$policy2, _dmarc$policy3, _dmarc$policy3$rua, _dmarc$raw2;
|
|
1703
1703
|
let {
|
|
1704
1704
|
dmarc,
|
|
1705
1705
|
isDomainAnalyzer = false,
|
|
1706
|
-
cardType,
|
|
1707
1706
|
t
|
|
1708
1707
|
} = _ref2;
|
|
1709
1708
|
const domainState = getDomainPolicyState(dmarc);
|
|
1710
1709
|
const emailState = isDomainAnalyzer ? null : getEmailComplianceState(dmarc);
|
|
1711
1710
|
const pct = (_dmarc$policy$pct = dmarc === null || dmarc === void 0 ? void 0 : (_dmarc$policy2 = dmarc.policy) === null || _dmarc$policy2 === void 0 ? void 0 : _dmarc$policy2.pct) !== null && _dmarc$policy$pct !== void 0 ? _dmarc$policy$pct : 100;
|
|
1712
1711
|
const reportWarnings = hasReportWarnings(dmarc);
|
|
1712
|
+
const hasRua = Boolean(dmarc === null || dmarc === void 0 ? void 0 : (_dmarc$policy3 = dmarc.policy) === null || _dmarc$policy3 === void 0 ? void 0 : (_dmarc$policy3$rua = _dmarc$policy3.rua) === null || _dmarc$policy3$rua === void 0 ? void 0 : _dmarc$policy3$rua.length) || /(?:^|;\s*)rua\s*=\s*mailto:/i.test((_dmarc$raw2 = dmarc === null || dmarc === void 0 ? void 0 : dmarc.raw) !== null && _dmarc$raw2 !== void 0 ? _dmarc$raw2 : '');
|
|
1713
1713
|
const getDomainBody = state => {
|
|
1714
1714
|
// When reject-full has report warnings, use a combined summary that replaces
|
|
1715
1715
|
// specific problem details with a concise impact statement.
|
|
@@ -1757,7 +1757,7 @@ function DmarcSummaryBoxes(_ref2) {
|
|
|
1757
1757
|
body = t('card.dmarc.summary-domain-no-record');
|
|
1758
1758
|
break;
|
|
1759
1759
|
case 'permerror':
|
|
1760
|
-
body =
|
|
1760
|
+
body = hasRua ? t('card.dmarc.summary-domain-permerror-rua-fallback') : t('card.dmarc.summary-domain-permerror');
|
|
1761
1761
|
break;
|
|
1762
1762
|
case 'temperror':
|
|
1763
1763
|
body = t('card.dmarc.summary-domain-temperror');
|
|
@@ -1803,7 +1803,7 @@ function DmarcSummaryBoxes(_ref2) {
|
|
|
1803
1803
|
}), /*#__PURE__*/React__default.createElement(SummaryBox, {
|
|
1804
1804
|
title: t('card.dmarc.summary-domain-title'),
|
|
1805
1805
|
body: getDomainBody(domainState),
|
|
1806
|
-
status: reportWarnings && DOMAIN_STATUS[domainState] === 'good' ? 'warning' : domainState === 'permerror' &&
|
|
1806
|
+
status: reportWarnings && DOMAIN_STATUS[domainState] === 'good' ? 'warning' : domainState === 'permerror' && hasRua ? 'warning' : DOMAIN_STATUS[domainState],
|
|
1807
1807
|
"data-testid": "dmarc-summary-domain"
|
|
1808
1808
|
}));
|
|
1809
1809
|
}
|