@singi-labs/sifa-sdk 0.9.17 → 0.9.19

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.
@@ -131,6 +131,12 @@ interface ProfilePublication {
131
131
  publicationUrl?: string | null;
132
132
  /** Publication display name for the group header (falls back to host). */
133
133
  publicationName?: string | null;
134
+ /**
135
+ * Cover image URL for Standard.site articles — the document's `coverImage`
136
+ * blob (CDN-served), falling back to the article page's og:image. Undefined
137
+ * for Sifa/ORCID publications, null when none could be resolved.
138
+ */
139
+ image?: string | null;
134
140
  }
135
141
  interface ProfileVolunteering {
136
142
  rkey: string;
@@ -131,6 +131,12 @@ interface ProfilePublication {
131
131
  publicationUrl?: string | null;
132
132
  /** Publication display name for the group header (falls back to host). */
133
133
  publicationName?: string | null;
134
+ /**
135
+ * Cover image URL for Standard.site articles — the document's `coverImage`
136
+ * blob (CDN-served), falling back to the article page's og:image. Undefined
137
+ * for Sifa/ORCID publications, null when none could be resolved.
138
+ */
139
+ image?: string | null;
134
140
  }
135
141
  interface ProfileVolunteering {
136
142
  rkey: string;
package/dist/index.cjs CHANGED
@@ -1454,6 +1454,15 @@ var APP_URL_PATTERNS = Object.freeze({
1454
1454
  // Per-record URLs don't exist on passports.social — its SvelteKit routes
1455
1455
  // stop at /profile/{handle}/{passport_slug}. Profile-level fallback only.
1456
1456
  profileUrlPattern: "https://passports.social/profile/{handle}"
1457
+ },
1458
+ leaflet: {
1459
+ // Per-document URLs are short and rkey-only: https://leaflet.pub/{rkey}.
1460
+ // Each publication has its own base_path subdomain (e.g. zzstoatzz.leaflet.pub)
1461
+ // but the canonical short URL renders the same document. There is no
1462
+ // per-user profile route on leaflet.pub, so the profile fallback points
1463
+ // at the marketing site.
1464
+ urlPattern: "https://leaflet.pub/{rkey}",
1465
+ profileUrlPattern: "https://leaflet.pub"
1457
1466
  }
1458
1467
  });
1459
1468
  var COLLECTION_TO_APP = [
@@ -1489,7 +1498,8 @@ var COLLECTION_TO_APP = [
1489
1498
  ["buzz.bookhive.", "bookhive"],
1490
1499
  ["social.colibri.", "colibri"],
1491
1500
  ["social.passports.", "passports"],
1492
- ["fyi.asq.", "asq"]
1501
+ ["fyi.asq.", "asq"],
1502
+ ["pub.leaflet.", "leaflet"]
1493
1503
  ];
1494
1504
 
1495
1505
  // src/cards/resolve-card-url.ts
@@ -1867,7 +1877,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
1867
1877
  });
1868
1878
 
1869
1879
  // src/index.ts
1870
- var SIFA_SDK_VERSION = "0.9.17";
1880
+ var SIFA_SDK_VERSION = "0.9.19";
1871
1881
 
1872
1882
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
1873
1883
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;