@apolitical/component-library 4.2.4-beta.0 → 4.2.5

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.
@@ -1,3 +1,3 @@
1
1
  import { CardProps } from './../cards.types';
2
- declare const Card: ({ id, card, buildCardData, cta, gtmContext, className, handleCardClick, }: CardProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Card: ({ id, card, buildCardData, cta, gtmContext, className, handleCardClick, setFocus, }: CardProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Card;
@@ -10,6 +10,7 @@ interface Props {
10
10
  gtmContext?: string;
11
11
  /** Additional classes to add to the card block */
12
12
  className?: string;
13
+ focusCardIndex?: number;
13
14
  }
14
15
  declare const CardBlock: ({ cards, cardTypes, className, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
15
16
  export default CardBlock;
@@ -90,6 +90,8 @@ export interface CardProps {
90
90
  className?: string;
91
91
  /** A callback to run when the user clicks on the card CTA */
92
92
  handleCardClick?: (card: CardType) => Promise<string>;
93
+ /** If the browser should focus on this card */
94
+ setFocus?: boolean;
93
95
  }
94
96
  export interface CarouselTitleProps {
95
97
  /** The title text */
@@ -63,6 +63,8 @@ interface Props {
63
63
  /** Option of whether or not to show the copy link button */
64
64
  showShareLinkButton?: boolean;
65
65
  };
66
+ /** If the browser should focus on this post */
67
+ setFocus?: boolean;
66
68
  }
67
- declare const Post: ({ element, content, userHasPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton }, }: Props) => import("react/jsx-runtime").JSX.Element;
69
+ declare const Post: ({ element, content, userHasPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton }, setFocus, }: Props) => import("react/jsx-runtime").JSX.Element;
68
70
  export default Post;
package/helpers/intl.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
54
54
  joinCommunityButton_leave: string;
55
55
  joinCommunityButton_leaving: string;
56
56
  joinCommunityButton_closed_tooltip: string;
57
+ joinCommunityButton_aria_live: string;
57
58
  member_apolitical: string;
58
59
  member_community: string;
59
60
  membersList: string;