@startup-api/cloudflare 0.4.3 → 0.4.4

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": "@startup-api/cloudflare",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -451,7 +451,8 @@
451
451
  }
452
452
  function credentialIdentifier(c) {
453
453
  if (c.provider === 'atproto') {
454
- return c.handle ? `${c.handle} (${c.subject_id})` : c.subject_id;
454
+ if (!c.handle) return c.subject_id;
455
+ return `<span style="font-size: 1.05rem; font-weight: 600;">@${c.handle}</span> <span style="opacity: 0.6;">(${c.subject_id})</span>`;
455
456
  }
456
457
  return c.email || c.subject_id;
457
458
  }
@@ -214,10 +214,14 @@ function providerLabel(provider: string): string {
214
214
  return provider.charAt(0).toUpperCase() + provider.slice(1);
215
215
  }
216
216
 
217
- /** The identifier shown under the provider name. atproto shows the handle with the DID in parens. */
217
+ /**
218
+ * The identifier shown under the provider name. atproto emphasizes the handle (larger, with an `@`)
219
+ * and de-emphasizes the DID in parentheses.
220
+ */
218
221
  function credentialIdentifier(c: any): string {
219
222
  if (c.provider === 'atproto') {
220
- return c.handle ? `${c.handle} (${c.subject_id})` : c.subject_id;
223
+ if (!c.handle) return c.subject_id;
224
+ return `<span style="font-size: 1.05rem; font-weight: 600;">@${c.handle}</span> <span style="opacity: 0.6;">(${c.subject_id})</span>`;
221
225
  }
222
226
  return c.email || c.subject_id;
223
227
  }