@redsift/products 12.5.3-muiv7 → 12.5.3
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 +36 -27
- package/_internal/signal-cards.js.map +1 -1
- package/bimi-checker.d.ts +94 -94
- package/index.d.ts +290 -290
- package/package.json +2 -2
- package/signal-cards.d.ts +290 -290
|
@@ -180,7 +180,7 @@ const spin = keyframes`
|
|
|
180
180
|
// ============================================================================
|
|
181
181
|
|
|
182
182
|
const BREAKPOINT_MOBILE = '937px';
|
|
183
|
-
const BREAKPOINT_STACK = '980px';
|
|
183
|
+
const BREAKPOINT_STACK$1 = '980px';
|
|
184
184
|
const Container = styled.div`
|
|
185
185
|
display: flex;
|
|
186
186
|
flex-direction: column;
|
|
@@ -189,7 +189,7 @@ const Container = styled.div`
|
|
|
189
189
|
box-sizing: border-box;
|
|
190
190
|
padding: 0 48px 48px;
|
|
191
191
|
|
|
192
|
-
@
|
|
192
|
+
@container sc-list (max-width: ${BREAKPOINT_STACK$1}) {
|
|
193
193
|
padding: 0 24px 24px;
|
|
194
194
|
}
|
|
195
195
|
`;
|
|
@@ -199,7 +199,7 @@ const ContentLayout = styled.div`
|
|
|
199
199
|
width: 100%;
|
|
200
200
|
align-items: center;
|
|
201
201
|
|
|
202
|
-
@
|
|
202
|
+
@container sc-list (max-width: ${BREAKPOINT_STACK$1}) {
|
|
203
203
|
flex-direction: column;
|
|
204
204
|
gap: 24px;
|
|
205
205
|
}
|
|
@@ -214,7 +214,7 @@ const AnalysisColumn = styled.div`
|
|
|
214
214
|
flex-direction: column;
|
|
215
215
|
flex: 1;
|
|
216
216
|
|
|
217
|
-
@
|
|
217
|
+
@container sc-list (max-width: ${BREAKPOINT_STACK$1}) {
|
|
218
218
|
width: 100%;
|
|
219
219
|
}
|
|
220
220
|
`;
|
|
@@ -235,7 +235,7 @@ const AnalysisCardInner = styled.div`
|
|
|
235
235
|
height: 100%;
|
|
236
236
|
justify-content: center;
|
|
237
237
|
|
|
238
|
-
@
|
|
238
|
+
@container sc-list (max-width: ${BREAKPOINT_MOBILE}) {
|
|
239
239
|
padding: 16px 0;
|
|
240
240
|
gap: 12px;
|
|
241
241
|
}
|
|
@@ -246,7 +246,7 @@ const AnalysisHeader = styled.div`
|
|
|
246
246
|
gap: 8px;
|
|
247
247
|
padding: 0 24px 0 26px;
|
|
248
248
|
|
|
249
|
-
@
|
|
249
|
+
@container sc-list (max-width: ${BREAKPOINT_MOBILE}) {
|
|
250
250
|
padding: 0 12px;
|
|
251
251
|
}
|
|
252
252
|
`;
|
|
@@ -279,7 +279,7 @@ const BulletList = styled.ul`
|
|
|
279
279
|
margin: 0;
|
|
280
280
|
list-style: none;
|
|
281
281
|
|
|
282
|
-
@
|
|
282
|
+
@container sc-list (max-width: ${BREAKPOINT_MOBILE}) {
|
|
283
283
|
padding: 0 12px 0 12px;
|
|
284
284
|
}
|
|
285
285
|
`;
|
|
@@ -304,7 +304,7 @@ const BulletText = styled.span`
|
|
|
304
304
|
color: var(--sc-text-color, #333333);
|
|
305
305
|
flex: 1;
|
|
306
306
|
|
|
307
|
-
@
|
|
307
|
+
@container sc-list (max-width: ${BREAKPOINT_MOBILE}) {
|
|
308
308
|
font-size: 14px;
|
|
309
309
|
}
|
|
310
310
|
`;
|
|
@@ -328,7 +328,7 @@ const CTASlot = styled.div`
|
|
|
328
328
|
gap: 12px;
|
|
329
329
|
overflow: clip;
|
|
330
330
|
|
|
331
|
-
@
|
|
331
|
+
@container sc-list (max-width: ${BREAKPOINT_MOBILE}) {
|
|
332
332
|
padding: 12px 16px;
|
|
333
333
|
margin: 8px 12px 0;
|
|
334
334
|
}
|
|
@@ -393,7 +393,7 @@ const StatusColumn = styled.div`
|
|
|
393
393
|
gap: 8px;
|
|
394
394
|
justify-content: center;
|
|
395
395
|
|
|
396
|
-
@
|
|
396
|
+
@container sc-list (max-width: ${BREAKPOINT_STACK$1}) {
|
|
397
397
|
width: 100%;
|
|
398
398
|
}
|
|
399
399
|
`;
|
|
@@ -411,7 +411,7 @@ const StatusCard = styled.div`
|
|
|
411
411
|
align-items: center;
|
|
412
412
|
gap: 26px;
|
|
413
413
|
|
|
414
|
-
@
|
|
414
|
+
@container sc-list (max-width: ${BREAKPOINT_MOBILE}) {
|
|
415
415
|
flex-direction: column;
|
|
416
416
|
align-items: flex-start;
|
|
417
417
|
gap: 12px;
|
|
@@ -487,7 +487,7 @@ const SkeletonContainer = styled.div`
|
|
|
487
487
|
padding: 0 0 0 21px;
|
|
488
488
|
width: 100%;
|
|
489
489
|
|
|
490
|
-
@
|
|
490
|
+
@container sc-list (max-width: ${BREAKPOINT_MOBILE}) {
|
|
491
491
|
padding: 0 0 0 8px;
|
|
492
492
|
}
|
|
493
493
|
`;
|
|
@@ -1716,14 +1716,13 @@ function DmarcSummaryBoxes(_ref2) {
|
|
|
1716
1716
|
let {
|
|
1717
1717
|
dmarc,
|
|
1718
1718
|
isDomainAnalyzer = false,
|
|
1719
|
-
cardType,
|
|
1720
1719
|
t
|
|
1721
1720
|
} = _ref2;
|
|
1722
1721
|
const domainState = getDomainPolicyState(dmarc);
|
|
1723
1722
|
const emailState = isDomainAnalyzer ? null : getEmailComplianceState(dmarc);
|
|
1724
1723
|
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;
|
|
1725
1724
|
const reportWarnings = hasReportWarnings(dmarc);
|
|
1726
|
-
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 : '');
|
|
1725
|
+
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 : '');
|
|
1727
1726
|
const inherited = isInheritedPolicy(dmarc);
|
|
1728
1727
|
const orgDomain = (_dmarc$policyDomain$r = dmarc === null || dmarc === void 0 ? void 0 : (_dmarc$policyDomain = dmarc.policyDomain) === null || _dmarc$policyDomain === void 0 ? void 0 : _dmarc$policyDomain.replace(/^_dmarc\./, '')) !== null && _dmarc$policyDomain$r !== void 0 ? _dmarc$policyDomain$r : '';
|
|
1729
1728
|
const getDomainBody = state => {
|
|
@@ -1773,7 +1772,7 @@ function DmarcSummaryBoxes(_ref2) {
|
|
|
1773
1772
|
body = t('card.dmarc.summary-domain-no-record');
|
|
1774
1773
|
break;
|
|
1775
1774
|
case 'permerror':
|
|
1776
|
-
body =
|
|
1775
|
+
body = hasRua ? t('card.dmarc.summary-domain-permerror-rua-fallback') : t('card.dmarc.summary-domain-permerror');
|
|
1777
1776
|
break;
|
|
1778
1777
|
case 'temperror':
|
|
1779
1778
|
body = t('card.dmarc.summary-domain-temperror');
|
|
@@ -1825,7 +1824,7 @@ function DmarcSummaryBoxes(_ref2) {
|
|
|
1825
1824
|
}), /*#__PURE__*/React__default.createElement(SummaryBox, {
|
|
1826
1825
|
title: t('card.dmarc.summary-domain-title'),
|
|
1827
1826
|
body: getDomainBody(domainState),
|
|
1828
|
-
status: reportWarnings && DOMAIN_STATUS[domainState] === 'good' ? 'warning' : domainState === 'permerror' &&
|
|
1827
|
+
status: reportWarnings && DOMAIN_STATUS[domainState] === 'good' ? 'warning' : domainState === 'permerror' && hasRua ? 'warning' : DOMAIN_STATUS[domainState],
|
|
1829
1828
|
"data-testid": "dmarc-summary-domain"
|
|
1830
1829
|
}));
|
|
1831
1830
|
}
|
|
@@ -3110,6 +3109,16 @@ const DS_TEXT_HEADING = 'var(--redsift-color-neutral-x-dark-grey, #201F36)';
|
|
|
3110
3109
|
const DS_BORDER_LIGHT = 'var(--redsift-color-neutral-light-grey, #EAEAED)';
|
|
3111
3110
|
const DS_BG_HOVER = 'var(--redsift-color-neutral-xx-light-grey, #f8f9fc)';
|
|
3112
3111
|
const DS_BG_SELECTED = 'var(--redsift-color-neutral-x-light-grey, #F7F7F7)';
|
|
3112
|
+
const SC_LIST_CONTAINER = 'sc-list';
|
|
3113
|
+
const BREAKPOINT_STACK = '937px';
|
|
3114
|
+
const StyledRoot = styled.div`
|
|
3115
|
+
container-type: inline-size;
|
|
3116
|
+
container-name: ${SC_LIST_CONTAINER};
|
|
3117
|
+
display: flex;
|
|
3118
|
+
flex-direction: column;
|
|
3119
|
+
gap: var(--sc-list-section-gap, 48px);
|
|
3120
|
+
width: 100%;
|
|
3121
|
+
`;
|
|
3113
3122
|
const StyledContainer = styled.div`
|
|
3114
3123
|
display: flex;
|
|
3115
3124
|
flex-direction: row;
|
|
@@ -3117,7 +3126,7 @@ const StyledContainer = styled.div`
|
|
|
3117
3126
|
width: 100%;
|
|
3118
3127
|
min-height: 400px;
|
|
3119
3128
|
|
|
3120
|
-
@
|
|
3129
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3121
3130
|
flex-direction: column;
|
|
3122
3131
|
}
|
|
3123
3132
|
`;
|
|
@@ -3133,7 +3142,7 @@ const StyledSidebar = styled.aside`
|
|
|
3133
3142
|
overflow-y: auto;
|
|
3134
3143
|
box-sizing: border-box;
|
|
3135
3144
|
|
|
3136
|
-
@
|
|
3145
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3137
3146
|
display: none;
|
|
3138
3147
|
}
|
|
3139
3148
|
`;
|
|
@@ -3143,7 +3152,7 @@ const StyledMobileDropdownWrapper = styled.div`
|
|
|
3143
3152
|
background: #ffffff;
|
|
3144
3153
|
border-bottom: 1px solid var(--sc-border-color-light, ${DS_BORDER_LIGHT});
|
|
3145
3154
|
|
|
3146
|
-
@
|
|
3155
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3147
3156
|
display: block;
|
|
3148
3157
|
}
|
|
3149
3158
|
`;
|
|
@@ -3317,7 +3326,7 @@ const StyledOuterWrapper = styled.div`
|
|
|
3317
3326
|
background: var(--sc-bg-container, ${DS_BG_CONTAINER});
|
|
3318
3327
|
border-radius: 16px;
|
|
3319
3328
|
|
|
3320
|
-
@
|
|
3329
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3321
3330
|
padding: 16px 0;
|
|
3322
3331
|
gap: 24px;
|
|
3323
3332
|
}
|
|
@@ -3329,7 +3338,7 @@ const StyledHeaderBar = styled.div`
|
|
|
3329
3338
|
padding: 0 48px;
|
|
3330
3339
|
gap: 24px;
|
|
3331
3340
|
|
|
3332
|
-
@
|
|
3341
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3333
3342
|
flex-direction: column;
|
|
3334
3343
|
align-items: flex-start;
|
|
3335
3344
|
padding: 0 24px;
|
|
@@ -3343,7 +3352,7 @@ const StyledHeaderLeft = styled.div`
|
|
|
3343
3352
|
flex: 1;
|
|
3344
3353
|
min-width: 0;
|
|
3345
3354
|
|
|
3346
|
-
@
|
|
3355
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3347
3356
|
flex-direction: column;
|
|
3348
3357
|
align-items: flex-start;
|
|
3349
3358
|
gap: 12px;
|
|
@@ -3371,7 +3380,7 @@ const StyledEmailAddress = styled.span`
|
|
|
3371
3380
|
line-height: 1.3;
|
|
3372
3381
|
word-break: break-all;
|
|
3373
3382
|
|
|
3374
|
-
@
|
|
3383
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3375
3384
|
font-size: 18px;
|
|
3376
3385
|
}
|
|
3377
3386
|
`;
|
|
@@ -3440,7 +3449,7 @@ const StyledCheckAnotherButton = styled.button`
|
|
|
3440
3449
|
flex-shrink: 0;
|
|
3441
3450
|
}
|
|
3442
3451
|
|
|
3443
|
-
@
|
|
3452
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3444
3453
|
width: 100%;
|
|
3445
3454
|
justify-content: center;
|
|
3446
3455
|
font-size: 16px;
|
|
@@ -3452,7 +3461,7 @@ const StyledDivider = styled.hr`
|
|
|
3452
3461
|
border-top: 1px solid var(--sc-border-divider, #e0e0e0);
|
|
3453
3462
|
margin: 0 48px 24px;
|
|
3454
3463
|
|
|
3455
|
-
@
|
|
3464
|
+
@container ${SC_LIST_CONTAINER} (max-width: ${BREAKPOINT_STACK}) {
|
|
3456
3465
|
margin: 0 24px 24px;
|
|
3457
3466
|
}
|
|
3458
3467
|
`;
|
|
@@ -3938,7 +3947,7 @@ const SignalCardList$1 = /*#__PURE__*/forwardRef(function SignalCardList(_ref, r
|
|
|
3938
3947
|
theme: {
|
|
3939
3948
|
useInvestigateColors
|
|
3940
3949
|
}
|
|
3941
|
-
}, (showHeader || shouldShowRecommendations) && /*#__PURE__*/React__default.createElement(StyledOuterWrapper, null, showHeader && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledHeaderBar, {
|
|
3950
|
+
}, /*#__PURE__*/React__default.createElement(StyledRoot, null, (showHeader || shouldShowRecommendations) && /*#__PURE__*/React__default.createElement(StyledOuterWrapper, null, showHeader && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledHeaderBar, {
|
|
3942
3951
|
"data-testid": "signal-card-list-header"
|
|
3943
3952
|
}, /*#__PURE__*/React__default.createElement(StyledHeaderLeft, null, /*#__PURE__*/React__default.createElement(StyledEmailInfo, null, /*#__PURE__*/React__default.createElement(StyledEmailLabel, null, t('signal-card-list.checked-email-label')), /*#__PURE__*/React__default.createElement(StyledEmailAddress, null, checkedEmail), (emailSubject || emailDate) && /*#__PURE__*/React__default.createElement(StyledEmailMeta, null, emailSubject && /*#__PURE__*/React__default.createElement(StyledEmailMetaItem, null, /*#__PURE__*/React__default.createElement(StyledEmailMetaLabel, null, t('subject'), ":"), " ", emailSubject), emailDate && /*#__PURE__*/React__default.createElement(StyledEmailMetaItem, null, /*#__PURE__*/React__default.createElement(StyledEmailMetaLabel, null, t('date'), ":"), ' ', new Date(emailDate).toLocaleString(undefined, {
|
|
3944
3953
|
year: 'numeric',
|
|
@@ -4045,7 +4054,7 @@ const SignalCardList$1 = /*#__PURE__*/forwardRef(function SignalCardList(_ref, r
|
|
|
4045
4054
|
areAllCollapsed: areAllCollapsed,
|
|
4046
4055
|
onCollapseAll: onCollapseAll
|
|
4047
4056
|
})))));
|
|
4048
|
-
}))));
|
|
4057
|
+
})))));
|
|
4049
4058
|
});
|
|
4050
4059
|
SignalCardList$1.className = CLASSNAME;
|
|
4051
4060
|
SignalCardList$1.displayName = COMPONENT_NAME;
|