@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/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
- /** Footer before body (markets, relations) vs after body (daily posts). */
2757
- type ShareMessageFooterPlacement = "before-body" | "after-body";
2758
- declare function shareMessageFooterPlacementForType(shareType: ShareResourceType): ShareMessageFooterPlacement;
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
- * Resource shares place the footer before the body so Facebook does not
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
- /** Footer before body (markets, relations) vs after body (daily posts). */
2757
- type ShareMessageFooterPlacement = "before-body" | "after-body";
2758
- declare function shareMessageFooterPlacementForType(shareType: ShareResourceType): ShareMessageFooterPlacement;
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
- * Resource shares place the footer before the body so Facebook does not
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(shareType) {
8646
- return isPostShareResourceType(shareType) ? "after-body" : "before-body";
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
- const placement = input.shareType ? shareMessageFooterPlacementForType(input.shareType) : "before-body";
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
  }