kyd-shared-badge 0.1.0 → 0.1.1

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.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -26,4 +26,4 @@
26
26
  "@types/react-dom": "^19.1.7",
27
27
  "rollup": "^4.46.2"
28
28
  }
29
- }
29
+ }
@@ -56,7 +56,7 @@ const ScoreCard = ({ title, score, description, descriptor, icon: Icon, scoreTyp
56
56
  );
57
57
  };
58
58
 
59
- const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
59
+ const SharedBadgeDisplay = ({ badgeData, type = 'individual' }: { badgeData: PublicBadgeData, type?: 'recruiter' | 'individual' }) => {
60
60
  const { badgeId, developerName, assessmentResult, updatedAt, connectedPlatforms } = badgeData;
61
61
  const { summary_scores, report_summary, developer_trust_explanation, key_skills, screening_sources, industry_considerations } = assessmentResult;
62
62
 
@@ -64,8 +64,10 @@ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
64
64
  const riskScore = summary_scores.risk_score;
65
65
  const aiUsageScore = summary_scores.ai_usage;
66
66
 
67
+ const wrapperMaxWidth = type === 'recruiter' ? 'max-w-5xl' : 'max-w-6xl';
68
+
67
69
  return (
68
- <div className='max-w-6xl mx-auto'>
70
+ <div className={`${wrapperMaxWidth} mx-auto`}>
69
71
  <div className="flex justify-end items-center mb-4">
70
72
  <ShareButton
71
73
  badgeId={badgeId}