kyd-shared-badge 0.2.12 → 0.2.14

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -248,15 +248,27 @@ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
248
248
  const val = lists[i];
249
249
  if (!seen[val]) { seen[val] = true; dedup.push(val); }
250
250
  }
251
+ const detailed = screening_sources.sanctions_sources_detailed || [];
252
+ const useDetailed = detailed && detailed.length > 0;
251
253
  return (
252
254
  <AppendixTables
253
255
  type="sanctions"
254
- sources={dedup}
256
+ sources={useDetailed ? detailed : dedup}
255
257
  searchedAt={updatedAt}
256
258
  developerName={developerName || 'this developer'}
257
259
  />
258
260
  );
259
261
  })()}
262
+ {screening_sources.sanctions_sublists && screening_sources.sanctions_sublists.length > 0 && (
263
+ <details className="mt-3">
264
+ <summary className={'cursor-pointer text-sm font-semibold'} style={{ color: 'var(--text-main)' }}>View all screened sub-lists</summary>
265
+ <ul className="mt-2 list-disc pl-5 text-sm" style={{ color: 'var(--text-secondary)' }}>
266
+ {screening_sources.sanctions_sublists.map((name, idx) => (
267
+ <li key={idx}>{name}</li>
268
+ ))}
269
+ </ul>
270
+ </details>
271
+ )}
260
272
  </div>
261
273
  <div>
262
274
  <h4 className={'text-xl font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Country-specific Entity Affiliations</h4>
@@ -20,7 +20,7 @@ const PAGE_SIZE = 25;
20
20
 
21
21
  interface AppendixTableProps {
22
22
  type: 'sanctions' | 'domains';
23
- sources: string[] | DomainCSVRow[];
23
+ sources: (string | DomainCSVRow | SanctionSource)[];
24
24
  searchedAt: string;
25
25
  developerName: string;
26
26
  }
@@ -60,18 +60,18 @@ export default function ProviderInsights({ platforms, insights }: ProviderInsigh
60
60
  <h3 className={'font-semibold text-lg'} style={{ color: 'var(--text-main)' }}>{platform.name}</h3>
61
61
  </div>
62
62
  <div className="flex flex-col items-end gap-1">
63
- {platform.url && (
63
+ {platform.url && (
64
64
  <span className={'text-sm'} style={{ color: 'var(--text-secondary)' }}>
65
65
  Profile:{' '}
66
- <a
67
- href={platform.url}
68
- target="_blank"
69
- rel="noopener noreferrer"
66
+ <a
67
+ href={platform.url}
68
+ target="_blank"
69
+ rel="noopener noreferrer"
70
70
  className={'font-medium underline-offset-2 hover:underline'}
71
71
  style={{ color: 'var(--icon-accent)' }}
72
- >
73
- {platform.handle || 'View Profile'}
74
- </a>
72
+ >
73
+ {platform.handle || 'View Profile'}
74
+ </a>
75
75
  </span>
76
76
  )}
77
77
  {observedDate && (
package/src/types.ts CHANGED
@@ -162,6 +162,7 @@ export interface AssessmentResult {
162
162
  matches?: any[];
163
163
  };
164
164
  sanctions_sources_detailed?: { issuingEntity: string; listName: string; matched?: boolean }[];
165
+ sanctions_sublists?: string[];
165
166
  };
166
167
  optOutScreening?: boolean;
167
168
  clientMetadata?: ClientMetadata;