@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/{chunk-5TWV6IFM.mjs → chunk-YOWTDF2C.mjs} +9 -4
- package/dist/{chunk-5TWV6IFM.mjs.map → chunk-YOWTDF2C.mjs.map} +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +8 -3
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +7 -2
- package/dist/sharing/index.d.ts +7 -2
- package/dist/sharing/index.mjs +1 -1
- package/package.json +1 -1
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
|
|
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(
|
|
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
|
|
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(
|
|
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(
|
|
8655
|
-
const
|
|
8656
|
-
|
|
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);
|