@timardex/cluemart-shared 1.5.598 → 1.5.599

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.mts CHANGED
@@ -2727,7 +2727,7 @@ declare const SHARE_DESCRIPTION_SECTION_BREAK = "\n\n";
2727
2727
  declare function joinShareDescriptionSections(sections: ReadonlyArray<string | false | null | undefined>): string;
2728
2728
 
2729
2729
  /**
2730
- * Share copy with a blank line between each section (all apps, Facebook quote, OG body).
2730
+ * Share copy with a blank line between each section (share sheet message, previews).
2731
2731
  */
2732
2732
  declare function formatShareSectionsForMultilineDisplay(value: string): string;
2733
2733
  /**
@@ -2740,16 +2740,16 @@ declare function formatShareSectionsForCompactDisplay(value: string): string;
2740
2740
  */
2741
2741
  declare function normalizeShareOgDescription(value: string): string;
2742
2742
  /**
2743
- * Quote text for Facebook ShareDialog on iOS.
2743
+ * Quote text for Facebook ShareDialog on iOS (`ShareLinkContent.quote`).
2744
2744
  *
2745
- * Matches Android's share intent body (title + blank lines + sections) without
2746
- * repeating the URL `contentUrl` supplies the link card. Android posts keep
2747
- * paragraph breaks on facebook.com; a body-only quote tended to render as one
2748
- * chunk in the browser.
2745
+ * Title + blank lines + body sections. URL is omitted `contentUrl` supplies
2746
+ * the link card (OG on `/share/*` controls card title/image).
2749
2747
  */
2750
2748
  declare function buildFacebookShareQuote(title: string, description: string): string | undefined;
2751
2749
  /**
2752
- * Open Graph / Twitter description — multiline body without repeating `og:title`.
2750
+ * Open Graph / Twitter description — single line, no repeated `og:title`.
2751
+ *
2752
+ * Facebook's link card does not render `\n`; sections are joined with ` · `.
2753
2753
  */
2754
2754
  declare function buildShareOgDescription(_title: string, description: string): string;
2755
2755
 
package/dist/index.d.ts CHANGED
@@ -2727,7 +2727,7 @@ declare const SHARE_DESCRIPTION_SECTION_BREAK = "\n\n";
2727
2727
  declare function joinShareDescriptionSections(sections: ReadonlyArray<string | false | null | undefined>): string;
2728
2728
 
2729
2729
  /**
2730
- * Share copy with a blank line between each section (all apps, Facebook quote, OG body).
2730
+ * Share copy with a blank line between each section (share sheet message, previews).
2731
2731
  */
2732
2732
  declare function formatShareSectionsForMultilineDisplay(value: string): string;
2733
2733
  /**
@@ -2740,16 +2740,16 @@ declare function formatShareSectionsForCompactDisplay(value: string): string;
2740
2740
  */
2741
2741
  declare function normalizeShareOgDescription(value: string): string;
2742
2742
  /**
2743
- * Quote text for Facebook ShareDialog on iOS.
2743
+ * Quote text for Facebook ShareDialog on iOS (`ShareLinkContent.quote`).
2744
2744
  *
2745
- * Matches Android's share intent body (title + blank lines + sections) without
2746
- * repeating the URL `contentUrl` supplies the link card. Android posts keep
2747
- * paragraph breaks on facebook.com; a body-only quote tended to render as one
2748
- * chunk in the browser.
2745
+ * Title + blank lines + body sections. URL is omitted `contentUrl` supplies
2746
+ * the link card (OG on `/share/*` controls card title/image).
2749
2747
  */
2750
2748
  declare function buildFacebookShareQuote(title: string, description: string): string | undefined;
2751
2749
  /**
2752
- * Open Graph / Twitter description — multiline body without repeating `og:title`.
2750
+ * Open Graph / Twitter description — single line, no repeated `og:title`.
2751
+ *
2752
+ * Facebook's link card does not render `\n`; sections are joined with ` · `.
2753
2753
  */
2754
2754
  declare function buildShareOgDescription(_title: string, description: string): string;
2755
2755
 
package/dist/index.mjs CHANGED
@@ -8661,10 +8661,6 @@ function buildFacebookShareQuote(title, description) {
8661
8661
  return quote.length > 0 ? quote : void 0;
8662
8662
  }
8663
8663
  function buildShareOgDescription(_title, description) {
8664
- const multiline = formatShareSectionsForMultilineDisplay(description);
8665
- if (multiline) {
8666
- return multiline;
8667
- }
8668
8664
  return normalizeShareOgDescription(description);
8669
8665
  }
8670
8666