@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.d.cts CHANGED
@@ -305,6 +305,7 @@ declare const APP_CATEGORY_MAP: {
305
305
  readonly plyr: "Music";
306
306
  readonly anisota: "Posts";
307
307
  readonly atfund: "Endorsements";
308
+ readonly crate: "Articles";
308
309
  readonly linkat: "Links";
309
310
  readonly kipclip: "Links";
310
311
  readonly statusphere: "Social";
package/dist/index.d.ts CHANGED
@@ -305,6 +305,7 @@ declare const APP_CATEGORY_MAP: {
305
305
  readonly plyr: "Music";
306
306
  readonly anisota: "Posts";
307
307
  readonly atfund: "Endorsements";
308
+ readonly crate: "Articles";
308
309
  readonly linkat: "Links";
309
310
  readonly kipclip: "Links";
310
311
  readonly statusphere: "Social";
package/dist/index.js CHANGED
@@ -912,6 +912,7 @@ var APP_CATEGORY_MAP = {
912
912
  plyr: "Music",
913
913
  anisota: "Posts",
914
914
  atfund: "Endorsements",
915
+ crate: "Articles",
915
916
  // Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
916
917
  // no backend scan collection yet)
917
918
  linkat: "Links",
@@ -1627,6 +1628,13 @@ var APP_URL_PATTERNS = Object.freeze({
1627
1628
  // and there's no public per-endorsement permalink. Profile fallback only,
1628
1629
  // pointing at the main /give listing.
1629
1630
  profileUrlPattern: "https://www.at.fund/give"
1631
+ },
1632
+ crate: {
1633
+ // Crate (app.crate.social) is an authoring dashboard with no public
1634
+ // per-record viewer or per-handle profile page — records are designed to
1635
+ // render on the maker's own site. `content` cards link out via
1636
+ // record.canonicalUrl (handled in resolveCardUrl); `note` records have no
1637
+ // public URL and render non-clickable. So no app-level pattern applies.
1630
1638
  }
1631
1639
  });
1632
1640
  var COLLECTION_TO_APP = [
@@ -1668,7 +1676,8 @@ var COLLECTION_TO_APP = [
1668
1676
  ["community.nooki.", "nooki"],
1669
1677
  ["fyi.atstore.", "atstore"],
1670
1678
  ["fm.plyr.", "plyr"],
1671
- ["fund.at.", "atfund"]
1679
+ ["fund.at.", "atfund"],
1680
+ ["social.crate.", "crate"]
1672
1681
  ];
1673
1682
 
1674
1683
  // src/cards/resolve-card-url.ts
@@ -1776,6 +1785,12 @@ function resolveCardUrl(item) {
1776
1785
  }
1777
1786
  return APP_URL_PATTERNS.atstore?.profileUrlPattern ?? null;
1778
1787
  }
1788
+ if (collection === "social.crate.content") {
1789
+ return stringOrNull(record.canonicalUrl);
1790
+ }
1791
+ if (collection === "social.crate.note") {
1792
+ return null;
1793
+ }
1779
1794
  if (collection.startsWith("site.standard.")) {
1780
1795
  const siteUrl = stringOrNull(record.siteUrl);
1781
1796
  const path = stringOrNull(record.path);
@@ -2233,7 +2248,7 @@ var ProfileVolunteeringRecordSchema = z.object({
2233
2248
  });
2234
2249
 
2235
2250
  // src/index.ts
2236
- var SIFA_SDK_VERSION = "0.10.9";
2251
+ var SIFA_SDK_VERSION = "0.10.10";
2237
2252
 
2238
2253
  export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, 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, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, SifaFeedItemSchema, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, categoryForApp, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, encodeFeedCursor, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppCategoryIcon, getAppIdForCollection, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, hasAdultContent, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
2239
2254
  //# sourceMappingURL=index.js.map