@linktr.ee/messaging-react 4.4.4 → 4.4.5-rc-1788226184

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.ts CHANGED
@@ -601,8 +601,10 @@ declare type ImageLoadingMode = 'lazy' | 'eager';
601
601
 
602
602
  /**
603
603
  * True when an attachment is a link preview (OG card) rather than media:
604
- * either Stream's native `link` type, or a non-empty (trimmed) `og_scrape_url`
605
- * with no `asset_url`. A whitespace-only `og_scrape_url` is not a link.
604
+ * either Stream's native `link` type, or a non-empty (trimmed) `og_scrape_url`.
605
+ * A whitespace-only `og_scrape_url` is not a link. Only enrichment sets
606
+ * `og_scrape_url`, so it stays authoritative even when the scrape also filled
607
+ * `asset_url` with a preview clip (Spotify).
606
608
  */
607
609
  export declare function isLinkAttachment(a: Attachment): boolean;
608
610
 
package/dist/index.js CHANGED
@@ -705,7 +705,7 @@ function Ot({ message: e, viewerLanguage: t }) {
705
705
  //#endregion
706
706
  //#region src/components/MediaMessage/index.tsx
707
707
  function kt(e) {
708
- return e.type === "link" || !!e.og_scrape_url?.trim() && !e.asset_url;
708
+ return e.type === "link" || !!e.og_scrape_url?.trim();
709
709
  }
710
710
  //#endregion
711
711
  //#region src/components/CustomMessage/context.tsx