@redsift/products 12.5.5-muiv8-alpha.9 → 12.5.5
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.
|
@@ -5713,7 +5713,7 @@ const DmarcPromoBanner = _ref => {
|
|
|
5713
5713
|
}, buttonLabel, /*#__PURE__*/React__default.createElement(ExternalLinkIcon, null))));
|
|
5714
5714
|
};
|
|
5715
5715
|
|
|
5716
|
-
const _excluded$5 = ["cardType", "resultSelected", "resultOptions", "optionsLabel", "onResultsChange", "type", "title", "safeSVG", "VMCCertificate", "customSectionOrder", "onHeightChange", "onCTAButtonClick", "ctaButtonName", "shortDescription", "longDescription", "introDescription", "onComponentMount", "children", "renderHeader", "promoHref", "onPromoClick", "renderFooter", "bannerVariant", "isLoading", "shield", "icon", "useInvestigateColors", "isCollapsible", "areAllCollapsed", "onCollapseAll", "className", "sections", "signalType", "jmap", "domain", "investigate", "isDomainAnalyzer"];
|
|
5716
|
+
const _excluded$5 = ["cardType", "resultSelected", "resultOptions", "optionsLabel", "onResultsChange", "type", "title", "safeSVG", "VMCCertificate", "customSectionOrder", "onHeightChange", "onCTAButtonClick", "ctaButtonName", "shortDescription", "longDescription", "introDescription", "onComponentMount", "children", "renderHeader", "promoHref", "onPromoClick", "promoText", "promoButtonLabel", "renderFooter", "bannerVariant", "isLoading", "shield", "icon", "useInvestigateColors", "isCollapsible", "areAllCollapsed", "onCollapseAll", "className", "sections", "signalType", "jmap", "domain", "investigate", "isDomainAnalyzer"];
|
|
5717
5717
|
// Use consolidated status mapping
|
|
5718
5718
|
const mapCardTypeToColor = mapStatusToDetailedCardColor;
|
|
5719
5719
|
const DEFAULT_SECTION_ORDER = ['resultOptions', 'introDescription', 'safeSVG', 'VMCCertificate'];
|
|
@@ -5761,6 +5761,8 @@ const SignalCardNormal = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5761
5761
|
renderHeader,
|
|
5762
5762
|
promoHref,
|
|
5763
5763
|
onPromoClick,
|
|
5764
|
+
promoText,
|
|
5765
|
+
promoButtonLabel,
|
|
5764
5766
|
renderFooter,
|
|
5765
5767
|
bannerVariant = 'none',
|
|
5766
5768
|
isLoading,
|
|
@@ -5795,12 +5797,12 @@ const SignalCardNormal = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5795
5797
|
useInvestigateColors
|
|
5796
5798
|
} = useResolvedTheme(useInvestigateColorsOverride);
|
|
5797
5799
|
const defaultRenderHeader = useCallback(() => /*#__PURE__*/React__default.createElement(DmarcPromoBanner, {
|
|
5798
|
-
text: t('dmarc-promo.text'),
|
|
5799
|
-
buttonLabel: t('dmarc-promo.button'),
|
|
5800
|
+
text: promoText !== null && promoText !== void 0 ? promoText : t('dmarc-promo.text'),
|
|
5801
|
+
buttonLabel: promoButtonLabel !== null && promoButtonLabel !== void 0 ? promoButtonLabel : t('dmarc-promo.button'),
|
|
5800
5802
|
useInvestigateColors: useInvestigateColors,
|
|
5801
5803
|
href: promoHref,
|
|
5802
5804
|
onClick: onPromoClick
|
|
5803
|
-
}), [t, useInvestigateColors, promoHref, onPromoClick]);
|
|
5805
|
+
}), [t, useInvestigateColors, promoHref, onPromoClick, promoText, promoButtonLabel]);
|
|
5804
5806
|
// When using a thick banner header (standard/condensed), don't show the promo card by default —
|
|
5805
5807
|
// only DMARC should show it, and it does so by passing an explicit renderHeader prop.
|
|
5806
5808
|
const effectiveRenderHeader = renderHeader !== undefined ? renderHeader : bannerVariant === 'none' ? defaultRenderHeader : null;
|