@singi-labs/sifa-sdk 0.9.20 → 0.9.21
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 +30 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1434,7 +1434,7 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1434
1434
|
profileUrlPattern: "https://grain.social/profile/{did}"
|
|
1435
1435
|
},
|
|
1436
1436
|
youandme: { profileUrlPattern: "https://youandme.at" },
|
|
1437
|
-
anisota:
|
|
1437
|
+
// anisota: upgraded with per-record URL pattern below.
|
|
1438
1438
|
margin: { profileUrlPattern: "https://margin.at" },
|
|
1439
1439
|
beaconbits: { profileUrlPattern: "https://beaconbits.app" },
|
|
1440
1440
|
bookhive: { profileUrlPattern: "https://bookhive.buzz/profile/{handle}" },
|
|
@@ -1461,6 +1461,29 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1461
1461
|
// at the marketing site.
|
|
1462
1462
|
urlPattern: "https://leaflet.pub/{rkey}",
|
|
1463
1463
|
profileUrlPattern: "https://leaflet.pub"
|
|
1464
|
+
},
|
|
1465
|
+
spark: {
|
|
1466
|
+
// Verified live: GET /post/{did}/{rkey} returns 200.
|
|
1467
|
+
urlPattern: "https://sprk.so/post/{did}/{rkey}",
|
|
1468
|
+
profileUrlPattern: "https://sprk.so/profile/{handle}"
|
|
1469
|
+
},
|
|
1470
|
+
anisota: {
|
|
1471
|
+
urlPattern: "https://anisota.net/post/{did}/{rkey}",
|
|
1472
|
+
profileUrlPattern: "https://anisota.net/profile/{handle}"
|
|
1473
|
+
},
|
|
1474
|
+
nooki: {
|
|
1475
|
+
// Per-post URLs use slug-based routing (e.g. /post/{slug}), not rkey —
|
|
1476
|
+
// can't be constructed from a record. Profile fallback only.
|
|
1477
|
+
profileUrlPattern: "https://nooki.me/user/{handle}"
|
|
1478
|
+
},
|
|
1479
|
+
atstore: {
|
|
1480
|
+
// SPA — per-record URLs require JS routing. Profile fallback only.
|
|
1481
|
+
profileUrlPattern: "https://atstore.fyi/@{handle}"
|
|
1482
|
+
},
|
|
1483
|
+
plyr: {
|
|
1484
|
+
// SPA — per-record URLs require JS routing. plyr.fm doesn't expose a
|
|
1485
|
+
// public per-handle profile page server-side either; falls back to root.
|
|
1486
|
+
profileUrlPattern: "https://plyr.fm"
|
|
1464
1487
|
}
|
|
1465
1488
|
});
|
|
1466
1489
|
var COLLECTION_TO_APP = [
|
|
@@ -1497,7 +1520,11 @@ var COLLECTION_TO_APP = [
|
|
|
1497
1520
|
["social.colibri.", "colibri"],
|
|
1498
1521
|
["social.passports.", "passports"],
|
|
1499
1522
|
["fyi.asq.", "asq"],
|
|
1500
|
-
["pub.leaflet.", "leaflet"]
|
|
1523
|
+
["pub.leaflet.", "leaflet"],
|
|
1524
|
+
["so.sprk.", "spark"],
|
|
1525
|
+
["community.nooki.", "nooki"],
|
|
1526
|
+
["fyi.atstore.", "atstore"],
|
|
1527
|
+
["fm.plyr.", "plyr"]
|
|
1501
1528
|
];
|
|
1502
1529
|
|
|
1503
1530
|
// src/cards/resolve-card-url.ts
|
|
@@ -1964,7 +1991,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
1964
1991
|
});
|
|
1965
1992
|
|
|
1966
1993
|
// src/index.ts
|
|
1967
|
-
var SIFA_SDK_VERSION = "0.9.
|
|
1994
|
+
var SIFA_SDK_VERSION = "0.9.21";
|
|
1968
1995
|
|
|
1969
1996
|
export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, APP_URL_PATTERNS, AtmosphereFeedItemSchema, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, PLATFORM_LABELS, PLATFORM_OPTIONS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, SifaFeedItemSchema, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, encodeFeedCursor, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppIdForCollection, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
1970
1997
|
//# sourceMappingURL=index.js.map
|