kyd-shared-badge 0.2.19 → 0.2.20

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.19",
3
+ "version": "0.2.20",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -97,14 +97,7 @@ const ScoreCard = ({ title, score, description, descriptor, scoreType, iconImage
97
97
  );
98
98
  };
99
99
 
100
- type SharedBadgeDisplayProps = {
101
- badgeData: PublicBadgeData;
102
- hideShareButton?: boolean;
103
- showMakePublicButton?: boolean;
104
- onMakePublic?: () => void;
105
- };
106
-
107
- const SharedBadgeDisplay = ({ badgeData, hideShareButton = false, showMakePublicButton = false, onMakePublic }: SharedBadgeDisplayProps) => {
100
+ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
108
101
  const { badgeId, developerName, assessmentResult, updatedAt, connectedPlatforms } = badgeData;
109
102
  const { summary_scores, report_summary, developer_trust_explanation, key_skills, screening_sources, industry_considerations } = assessmentResult;
110
103
 
@@ -116,26 +109,7 @@ const SharedBadgeDisplay = ({ badgeData, hideShareButton = false, showMakePublic
116
109
 
117
110
  return (
118
111
  <div className={`${wrapperMaxWidth} mx-auto`}>
119
- <div className="flex justify-end items-center gap-3 mb-4">
120
- {!hideShareButton && (
121
- <ShareButton
122
- badgeId={badgeId}
123
- shareTitle={`KYD Self-Check™ Report | ${badgeData.developerName}`}
124
- shareText="Check out my KYD Self-Check™ from Know Your Developer™"
125
- buttonText="Share"
126
- className={'flex items-center justify-center h-10 w-10 sm:w-auto sm:px-4 sm:py-2 text-white rounded-full sm:rounded-md transition-all duration-300 ease-in-out bg-[var(--icon-accent)] hover:bg-[var(--icon-accent-hover)]'}
127
- />
128
- )}
129
- {showMakePublicButton && (
130
- <button
131
- onClick={() => { if (onMakePublic) onMakePublic(); }}
132
- className={'px-4 py-2 text-sm font-semibold text-white rounded-md'}
133
- style={{ backgroundColor: 'var(--icon-accent)'}}
134
- >
135
- Make Public
136
- </button>
137
- )}
138
- </div>
112
+ {/* Share controls removed; app-level pages render their own actions */}
139
113
  <ReportHeader
140
114
  badgeId={badgeId}
141
115
  developerName={badgeData.developerName}