@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/{chunk-YOWTDF2C.mjs → chunk-HBVPPRHO.mjs} +1 -5
- package/dist/{chunk-YOWTDF2C.mjs.map → chunk-HBVPPRHO.mjs.map} +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +0 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +0 -4
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +0 -4
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +7 -7
- package/dist/sharing/index.d.ts +7 -7
- package/dist/sharing/index.mjs +1 -1
- package/package.json +1 -1
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 (
|
|
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
|
-
*
|
|
2746
|
-
*
|
|
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 —
|
|
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 (
|
|
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
|
-
*
|
|
2746
|
-
*
|
|
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 —
|
|
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
|
|