kyd-shared-badge 0.2.9 → 0.2.11
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
CHANGED
|
@@ -239,12 +239,24 @@ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
|
|
|
239
239
|
<div className="space-y-8">
|
|
240
240
|
<div>
|
|
241
241
|
<h4 className={'text-xl font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Sanctions & Watchlists</h4>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
242
|
+
{(() => {
|
|
243
|
+
const ofacProvided = screening_sources.ofac_screen?.sources || [];
|
|
244
|
+
const lists = [...(screening_sources.ofac_lists || []), ...ofacProvided];
|
|
245
|
+
const seen: { [k: string]: boolean } = {};
|
|
246
|
+
const dedup: string[] = [];
|
|
247
|
+
for (let i = 0; i < lists.length; i++) {
|
|
248
|
+
const val = lists[i];
|
|
249
|
+
if (!seen[val]) { seen[val] = true; dedup.push(val); }
|
|
250
|
+
}
|
|
251
|
+
return (
|
|
252
|
+
<AppendixTables
|
|
253
|
+
type="sanctions"
|
|
254
|
+
sources={dedup}
|
|
255
|
+
searchedAt={updatedAt}
|
|
256
|
+
developerName={developerName || 'this developer'}
|
|
257
|
+
/>
|
|
258
|
+
);
|
|
259
|
+
})()}
|
|
248
260
|
</div>
|
|
249
261
|
<div>
|
|
250
262
|
<h4 className={'text-xl font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Country-specific Entity Affiliations</h4>
|
|
@@ -41,7 +41,7 @@ const SanctionsRow = ({ source, searchedAt, developerName }: { source: SanctionS
|
|
|
41
41
|
</span>
|
|
42
42
|
</td>
|
|
43
43
|
<td className={'px-4 py-4 text-sm whitespace-normal'} style={{ color: 'var(--text-secondary)' }}>
|
|
44
|
-
No exact match for <strong style={{ color: 'var(--text-main)' }}>{developerName}</strong>
|
|
44
|
+
No exact match for <strong style={{ color: 'var(--text-main)' }}>{developerName}</strong> was found on this list.
|
|
45
45
|
</td>
|
|
46
46
|
</tr>
|
|
47
47
|
);
|
|
@@ -22,11 +22,16 @@ const FindingRow = ({ finding }: { finding: IpRiskAnalysisFinding }) => (
|
|
|
22
22
|
const Section = ({ section }: { section: IpRiskSection }) => (
|
|
23
23
|
<div className="py-3">
|
|
24
24
|
<h4 className="text-lg font-semibold mb-2" style={{ color: 'var(--text-main)' }}>{section.title}</h4>
|
|
25
|
-
<ul
|
|
25
|
+
<ul style={{ listStyleType: 'none', padding: 0, margin: 0 }}>
|
|
26
26
|
{section.items.map((item, idx) => (
|
|
27
|
-
<li key={idx}
|
|
28
|
-
<div
|
|
29
|
-
|
|
27
|
+
<li key={idx} style={{ marginBottom: 8 }}>
|
|
28
|
+
<div style={{ display: 'grid', gridTemplateColumns: '16px 1fr', columnGap: 8, alignItems: 'start' }}>
|
|
29
|
+
<div aria-hidden="true" style={{ width: 6, height: 6, borderRadius: '50%', marginTop: 8, backgroundColor: 'var(--text-secondary)' }} />
|
|
30
|
+
<div>
|
|
31
|
+
<div className="font-medium text-sm" style={{ color: 'var(--text-main)' }}>{item.label}:</div>
|
|
32
|
+
<div className="text-sm" style={{ color: 'var(--text-secondary)', marginTop: 2 }}>{item.text}</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
30
35
|
</li>
|
|
31
36
|
))}
|
|
32
37
|
</ul>
|
|
@@ -50,7 +50,7 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, isPublic,
|
|
|
50
50
|
{/* Left Section */}
|
|
51
51
|
<div className="flex items-center text-left md:text-center">
|
|
52
52
|
<Image src={finalBadgeImageUrl} alt="KYD Badge" width={100} height={100} unoptimized className='p-3'/>
|
|
53
|
-
<div className='flex flex-col'>
|
|
53
|
+
<div className='flex flex-col items-center justify-center'>
|
|
54
54
|
<h1 className={'font-bold text-lg'} style={{ color: 'var(--text-main)' }}>
|
|
55
55
|
KYD Self-Check™
|
|
56
56
|
</h1>
|
package/src/types.ts
CHANGED
|
@@ -156,6 +156,11 @@ export interface AssessmentResult {
|
|
|
156
156
|
risk_profile_domains: DomainCSVRow[];
|
|
157
157
|
additional_watchlists?: string[];
|
|
158
158
|
ip_risk_analysis?: IpRiskAnalysis;
|
|
159
|
+
ofac_screen?: {
|
|
160
|
+
checked?: boolean;
|
|
161
|
+
sources?: string[];
|
|
162
|
+
matches?: any[];
|
|
163
|
+
};
|
|
159
164
|
};
|
|
160
165
|
optOutScreening?: boolean;
|
|
161
166
|
clientMetadata?: ClientMetadata;
|