kyd-shared-badge 0.3.204 → 0.3.205
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/package.json +1 -1
- package/src/PrintableBadgeDisplay.tsx +11 -4
- package/src/SharedBadgeDisplay.tsx +34 -29
package/package.json
CHANGED
|
@@ -329,9 +329,12 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
|
|
|
329
329
|
</Reveal>
|
|
330
330
|
) : (
|
|
331
331
|
<>
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
{/* Sanctions match cards are temporarily not displayed in PDF/downloaded reports.
|
|
333
|
+
The screening data is still generated and stored — this is a display-only suppression.
|
|
334
|
+
To re-enable, restore:
|
|
335
|
+
<Reveal headless={isHeadless}>
|
|
336
|
+
<SanctionsMatches ss={assessmentResult?.screening_sources} title={'3A. Sanctions Matches'} />
|
|
337
|
+
</Reveal> */}
|
|
335
338
|
<Reveal headless={isHeadless}>
|
|
336
339
|
<IpRiskAnalysisDisplay ipRiskAnalysis={screening_sources?.ip_risk_analysis} />
|
|
337
340
|
</Reveal>
|
|
@@ -352,7 +355,11 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
|
|
|
352
355
|
|
|
353
356
|
{/* Skills */}
|
|
354
357
|
<Reveal headless={isHeadless}>
|
|
355
|
-
|
|
358
|
+
{/* screeningSources is intentionally passed as undefined to suppress the Sanctions & Watchlists
|
|
359
|
+
appendix section from PDF/downloaded reports. The data is still generated and stored.
|
|
360
|
+
To re-enable, change screeningSources back to:
|
|
361
|
+
screeningSources={!badgeData.optOutScreening ? screening_sources : undefined} */}
|
|
362
|
+
<AppendixContent graphInsights={graphInsights} updatedAt={updatedAt} developerName={developerName} genreMapping={genreMapping as Record<string, string[]>} screeningSources={undefined} headless={isHeadless} skillsAll={skillsAll} />
|
|
356
363
|
</Reveal>
|
|
357
364
|
|
|
358
365
|
</div>
|
|
@@ -579,9 +579,11 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false,
|
|
|
579
579
|
) : (
|
|
580
580
|
|
|
581
581
|
<>
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
{/* Sanctions match cards are temporarily not displayed. The screening data is still
|
|
583
|
+
generated and stored — this is a display-only suppression. To re-enable, restore:
|
|
584
|
+
<Reveal headless={isHeadless} className={'mb-0 mt-6'}>
|
|
585
|
+
<SanctionsMatches ss={assessmentResult?.screening_sources} />
|
|
586
|
+
</Reveal> */}
|
|
585
587
|
<Reveal headless={isHeadless}>
|
|
586
588
|
<IpRiskAnalysisDisplay ipRiskAnalysis={screening_sources?.ip_risk_analysis} />
|
|
587
589
|
</Reveal>
|
|
@@ -625,32 +627,35 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false,
|
|
|
625
627
|
/>
|
|
626
628
|
</div>
|
|
627
629
|
)}
|
|
628
|
-
{
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
{
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
630
|
+
{/* Sanctions & Watchlists appendix section is temporarily not displayed. The screening
|
|
631
|
+
data is still generated and stored — this is a display-only suppression. To re-enable,
|
|
632
|
+
restore the block below:
|
|
633
|
+
{!badgeData.optOutScreening && screening_sources && (
|
|
634
|
+
<div>
|
|
635
|
+
<h4 className={'text-lg font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Sanctions & Watchlists</h4>
|
|
636
|
+
{(() => {
|
|
637
|
+
const ofacProvided = screening_sources.ofac_screen?.sources || [];
|
|
638
|
+
const lists = [...(screening_sources.ofac_lists || []), ...ofacProvided];
|
|
639
|
+
const seen: { [k: string]: boolean } = {};
|
|
640
|
+
const dedup: string[] = [];
|
|
641
|
+
for (let i = 0; i < lists.length; i++) {
|
|
642
|
+
const val = lists[i];
|
|
643
|
+
if (!seen[val]) { seen[val] = true; dedup.push(val); }
|
|
644
|
+
}
|
|
645
|
+
const detailed = screening_sources.sanctions_sources_detailed || [];
|
|
646
|
+
const useDetailed = detailed && detailed.length > 0;
|
|
647
|
+
return (
|
|
648
|
+
<AppendixTables
|
|
649
|
+
type="sanctions"
|
|
650
|
+
sources={useDetailed ? detailed : dedup}
|
|
651
|
+
searchedAt={updatedAt}
|
|
652
|
+
developerName={developerName || 'this developer'}
|
|
653
|
+
headless={isHeadless}
|
|
654
|
+
/>
|
|
655
|
+
);
|
|
656
|
+
})()}
|
|
657
|
+
</div>
|
|
658
|
+
)} */}
|
|
654
659
|
<div id="appendix-connected">
|
|
655
660
|
<ConnectedPlatforms accounts={connected} authenticity={assessmentResult?.account_authenticity} />
|
|
656
661
|
</div>
|