@singi-labs/sifa-sdk 0.10.9 → 0.10.10
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/dist/index.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -914,6 +914,7 @@ var APP_CATEGORY_MAP = {
|
|
|
914
914
|
plyr: "Music",
|
|
915
915
|
anisota: "Posts",
|
|
916
916
|
atfund: "Endorsements",
|
|
917
|
+
crate: "Articles",
|
|
917
918
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
918
919
|
// no backend scan collection yet)
|
|
919
920
|
linkat: "Links",
|
|
@@ -1629,6 +1630,13 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1629
1630
|
// and there's no public per-endorsement permalink. Profile fallback only,
|
|
1630
1631
|
// pointing at the main /give listing.
|
|
1631
1632
|
profileUrlPattern: "https://www.at.fund/give"
|
|
1633
|
+
},
|
|
1634
|
+
crate: {
|
|
1635
|
+
// Crate (app.crate.social) is an authoring dashboard with no public
|
|
1636
|
+
// per-record viewer or per-handle profile page — records are designed to
|
|
1637
|
+
// render on the maker's own site. `content` cards link out via
|
|
1638
|
+
// record.canonicalUrl (handled in resolveCardUrl); `note` records have no
|
|
1639
|
+
// public URL and render non-clickable. So no app-level pattern applies.
|
|
1632
1640
|
}
|
|
1633
1641
|
});
|
|
1634
1642
|
var COLLECTION_TO_APP = [
|
|
@@ -1670,7 +1678,8 @@ var COLLECTION_TO_APP = [
|
|
|
1670
1678
|
["community.nooki.", "nooki"],
|
|
1671
1679
|
["fyi.atstore.", "atstore"],
|
|
1672
1680
|
["fm.plyr.", "plyr"],
|
|
1673
|
-
["fund.at.", "atfund"]
|
|
1681
|
+
["fund.at.", "atfund"],
|
|
1682
|
+
["social.crate.", "crate"]
|
|
1674
1683
|
];
|
|
1675
1684
|
|
|
1676
1685
|
// src/cards/resolve-card-url.ts
|
|
@@ -1778,6 +1787,12 @@ function resolveCardUrl(item) {
|
|
|
1778
1787
|
}
|
|
1779
1788
|
return APP_URL_PATTERNS.atstore?.profileUrlPattern ?? null;
|
|
1780
1789
|
}
|
|
1790
|
+
if (collection === "social.crate.content") {
|
|
1791
|
+
return stringOrNull(record.canonicalUrl);
|
|
1792
|
+
}
|
|
1793
|
+
if (collection === "social.crate.note") {
|
|
1794
|
+
return null;
|
|
1795
|
+
}
|
|
1781
1796
|
if (collection.startsWith("site.standard.")) {
|
|
1782
1797
|
const siteUrl = stringOrNull(record.siteUrl);
|
|
1783
1798
|
const path = stringOrNull(record.path);
|
|
@@ -2235,7 +2250,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2235
2250
|
});
|
|
2236
2251
|
|
|
2237
2252
|
// src/index.ts
|
|
2238
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2253
|
+
var SIFA_SDK_VERSION = "0.10.10";
|
|
2239
2254
|
|
|
2240
2255
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2241
2256
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|