kyd-shared-badge 0.2.10 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -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
- <AppendixTables
243
- type="sanctions"
244
- sources={[...(screening_sources.ofac_lists || []), ...(screening_sources.additional_watchlists || [])]}
245
- searchedAt={updatedAt}
246
- developerName={developerName || 'this developer'}
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> (based on name and email) was found on this list.
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
  );
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;