@singi-labs/sifa-sdk 0.19.11 → 0.19.12

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 CHANGED
@@ -5074,6 +5074,27 @@ function toStreamCardVMs(items, options = {}) {
5074
5074
  return out;
5075
5075
  }
5076
5076
 
5077
+ // src/stream/two-tier.ts
5078
+ var RICH_BODY_KINDS = /* @__PURE__ */ new Set([
5079
+ "github-pr",
5080
+ "book",
5081
+ "media-review",
5082
+ "media",
5083
+ "track"
5084
+ ]);
5085
+ function isRich(vm) {
5086
+ if (vm.media && vm.media.length > 0) return true;
5087
+ if (vm.externalLink) return true;
5088
+ if (vm.body && RICH_BODY_KINDS.has(vm.body.kind)) return true;
5089
+ return false;
5090
+ }
5091
+ function isSelfAuthoredRich(vm) {
5092
+ return vm.tier === "creation" && isRich(vm);
5093
+ }
5094
+ function renderAsLine(vm) {
5095
+ return !isSelfAuthoredRich(vm);
5096
+ }
5097
+
5077
5098
  // src/logic/profile-completeness.ts
5078
5099
  var COMPLETENESS_MAX_SCORE = 6;
5079
5100
  function completenessScore(c) {
@@ -6478,7 +6499,7 @@ function describeSifaRecord(collection, value) {
6478
6499
  }
6479
6500
 
6480
6501
  // src/index.ts
6481
- var SIFA_SDK_VERSION = "0.19.11";
6502
+ var SIFA_SDK_VERSION = "0.19.12";
6482
6503
 
6483
6504
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6484
6505
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -6688,6 +6709,7 @@ exports.isPseudoEmployer = isPseudoEmployer;
6688
6709
  exports.isRegistrableDomainHandle = isRegistrableDomainHandle;
6689
6710
  exports.isRoleLineRedundant = isRoleLineRedundant;
6690
6711
  exports.isSectionPopulated = isSectionPopulated;
6712
+ exports.isSelfAuthoredRich = isSelfAuthoredRich;
6691
6713
  exports.isValidRgbColor = isValidRgbColor;
6692
6714
  exports.isVisibleActivityItem = isVisibleActivityItem;
6693
6715
  exports.languageTagSchema = languageTagSchema;
@@ -6724,6 +6746,7 @@ exports.primaryVerification = primaryVerification;
6724
6746
  exports.profileToDimensionInputs = profileToDimensionInputs;
6725
6747
  exports.qualifiesAsOrg = qualifiesAsOrg;
6726
6748
  exports.relativeLuminance = relativeLuminance;
6749
+ exports.renderAsLine = renderAsLine;
6727
6750
  exports.rendersCompanyProfile = rendersCompanyProfile;
6728
6751
  exports.rendersPersonalProfile = rendersPersonalProfile;
6729
6752
  exports.repoGroupForCollection = repoGroupForCollection;