@timardex/cluemart-shared 1.5.596 → 1.5.598

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
@@ -2740,9 +2740,14 @@ declare function formatShareSectionsForCompactDisplay(value: string): string;
2740
2740
  */
2741
2741
  declare function normalizeShareOgDescription(value: string): string;
2742
2742
  /**
2743
- * Quote text for Facebook ShareDialog. Body only — the link card shows the title.
2743
+ * Quote text for Facebook ShareDialog on iOS.
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.
2744
2749
  */
2745
- declare function buildFacebookShareQuote(_title: string, description: string): string | undefined;
2750
+ declare function buildFacebookShareQuote(title: string, description: string): string | undefined;
2746
2751
  /**
2747
2752
  * Open Graph / Twitter description — multiline body without repeating `og:title`.
2748
2753
  */
package/dist/index.d.ts CHANGED
@@ -2740,9 +2740,14 @@ declare function formatShareSectionsForCompactDisplay(value: string): string;
2740
2740
  */
2741
2741
  declare function normalizeShareOgDescription(value: string): string;
2742
2742
  /**
2743
- * Quote text for Facebook ShareDialog. Body only — the link card shows the title.
2743
+ * Quote text for Facebook ShareDialog on iOS.
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.
2744
2749
  */
2745
- declare function buildFacebookShareQuote(_title: string, description: string): string | undefined;
2750
+ declare function buildFacebookShareQuote(title: string, description: string): string | undefined;
2746
2751
  /**
2747
2752
  * Open Graph / Twitter description — multiline body without repeating `og:title`.
2748
2753
  */
package/dist/index.mjs CHANGED
@@ -8651,9 +8651,14 @@ function normalizeShareOgDescription(value) {
8651
8651
  }
8652
8652
  return trimmed.replace(/\s+/g, " ").trim();
8653
8653
  }
8654
- function buildFacebookShareQuote(_title, description) {
8655
- const body = formatShareSectionsForMultilineDisplay(description);
8656
- return body.length > 0 ? body : void 0;
8654
+ function buildFacebookShareQuote(title, description) {
8655
+ const titleSection = normalizeShareSection(title);
8656
+ const body = formatShareSectionsForMultilineDisplay(
8657
+ normalizeShareSection(description)
8658
+ );
8659
+ const sections = [titleSection, body].filter((section) => section.length > 0);
8660
+ const quote = sections.join(SHARE_DESCRIPTION_SECTION_BREAK).trim();
8661
+ return quote.length > 0 ? quote : void 0;
8657
8662
  }
8658
8663
  function buildShareOgDescription(_title, description) {
8659
8664
  const multiline = formatShareSectionsForMultilineDisplay(description);