@timardex/cluemart-shared 1.5.607 → 1.5.608
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-EPWJ2WJR.mjs → chunk-KFTMFH4W.mjs} +4 -10
- package/dist/{chunk-EPWJ2WJR.mjs.map → chunk-KFTMFH4W.mjs.map} +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +3 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +3 -9
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +5 -6
- package/dist/sharing/index.d.ts +5 -6
- package/dist/sharing/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2753,13 +2753,12 @@ declare function appendShareMoreInfoLine(description: string): string;
|
|
|
2753
2753
|
|
|
2754
2754
|
/** Trims share text and collapses spaces per line; preserves `\n\n` section breaks. */
|
|
2755
2755
|
declare function normalizeShareText(value: string | null | undefined): string;
|
|
2756
|
-
/**
|
|
2757
|
-
type ShareMessageFooterPlacement = "
|
|
2758
|
-
declare function shareMessageFooterPlacementForType(
|
|
2756
|
+
/** Share-sheet footer always follows title and body/caption. */
|
|
2757
|
+
type ShareMessageFooterPlacement = "after-body";
|
|
2758
|
+
declare function shareMessageFooterPlacementForType(_shareType?: ShareResourceType): ShareMessageFooterPlacement;
|
|
2759
2759
|
/**
|
|
2760
|
-
* Ordered sections for share-sheet / Facebook SDK quote text
|
|
2761
|
-
*
|
|
2762
|
-
* truncate it on long copy; post shares keep the footer after the caption.
|
|
2760
|
+
* Ordered sections for share-sheet / Facebook SDK quote text:
|
|
2761
|
+
* title → description (full body or post caption) → {@link SHARE_MORE_INFO_LINE}.
|
|
2763
2762
|
*/
|
|
2764
2763
|
declare function buildShareMessageSections(input: {
|
|
2765
2764
|
title?: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -2753,13 +2753,12 @@ declare function appendShareMoreInfoLine(description: string): string;
|
|
|
2753
2753
|
|
|
2754
2754
|
/** Trims share text and collapses spaces per line; preserves `\n\n` section breaks. */
|
|
2755
2755
|
declare function normalizeShareText(value: string | null | undefined): string;
|
|
2756
|
-
/**
|
|
2757
|
-
type ShareMessageFooterPlacement = "
|
|
2758
|
-
declare function shareMessageFooterPlacementForType(
|
|
2756
|
+
/** Share-sheet footer always follows title and body/caption. */
|
|
2757
|
+
type ShareMessageFooterPlacement = "after-body";
|
|
2758
|
+
declare function shareMessageFooterPlacementForType(_shareType?: ShareResourceType): ShareMessageFooterPlacement;
|
|
2759
2759
|
/**
|
|
2760
|
-
* Ordered sections for share-sheet / Facebook SDK quote text
|
|
2761
|
-
*
|
|
2762
|
-
* truncate it on long copy; post shares keep the footer after the caption.
|
|
2760
|
+
* Ordered sections for share-sheet / Facebook SDK quote text:
|
|
2761
|
+
* title → description (full body or post caption) → {@link SHARE_MORE_INFO_LINE}.
|
|
2763
2762
|
*/
|
|
2764
2763
|
declare function buildShareMessageSections(input: {
|
|
2765
2764
|
title?: string | null;
|
package/dist/index.mjs
CHANGED
|
@@ -8642,19 +8642,13 @@ function normalizeShareText(value) {
|
|
|
8642
8642
|
return leading + rest.trim().replace(/[ \t]{2,}/g, " ");
|
|
8643
8643
|
}).join("\n").replace(/\n{3,}/g, "\n\n");
|
|
8644
8644
|
}
|
|
8645
|
-
function shareMessageFooterPlacementForType(
|
|
8646
|
-
return
|
|
8645
|
+
function shareMessageFooterPlacementForType(_shareType) {
|
|
8646
|
+
return "after-body";
|
|
8647
8647
|
}
|
|
8648
8648
|
function buildShareMessageSections(input) {
|
|
8649
8649
|
const title = normalizeShareText(input.title);
|
|
8650
8650
|
const description = normalizeShareText(input.description);
|
|
8651
|
-
|
|
8652
|
-
if (placement === "after-body") {
|
|
8653
|
-
return [title, description, SHARE_MORE_INFO_LINE].filter(
|
|
8654
|
-
(section) => section.length > 0
|
|
8655
|
-
);
|
|
8656
|
-
}
|
|
8657
|
-
return [title, SHARE_MORE_INFO_LINE, description].filter(
|
|
8651
|
+
return [title, description, SHARE_MORE_INFO_LINE].filter(
|
|
8658
8652
|
(section) => section.length > 0
|
|
8659
8653
|
);
|
|
8660
8654
|
}
|