@apolitical/component-library 4.2.3-beta.1 → 4.2.4-SW.0

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: { content: { createContent, deleteContent, updateContent }, likes: { createLike, deleteLike }, comments: { openComments }, mentions: { listMembers }, }, 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;
@@ -80,33 +80,6 @@ export declare const activitiesFeedMock: {
80
80
  time: string;
81
81
  verb: string;
82
82
  title?: undefined;
83
- } | {
84
- actor: {
85
- created_at: string;
86
- updated_at: string;
87
- id: string;
88
- data: {
89
- jobTitle: string;
90
- name: string;
91
- organization: string;
92
- };
93
- };
94
- title: string;
95
- feed_id: string;
96
- foreign_id: string;
97
- id: string;
98
- latest_reactions: {};
99
- latest_reactions_extra: {};
100
- object: string;
101
- origin: null;
102
- own_reactions: {};
103
- reaction_counts: {
104
- like?: undefined;
105
- };
106
- target: string;
107
- time: string;
108
- verb: string;
109
- content?: undefined;
110
83
  })[];
111
84
  next: string;
112
85
  duration: string;
@@ -0,0 +1 @@
1
+ export declare const focusEditor: (id: string) => void;
@@ -0,0 +1 @@
1
+ export * from './editor';
@@ -1,5 +1,6 @@
1
1
  export * from './ast-types';
2
2
  export * from './deserialize';
3
+ export * from './editor';
3
4
  export * from './handle-text';
4
5
  export * from './hot-keys';
5
6
  export * from './mentions';
@@ -1,5 +1,5 @@
1
1
  import { Dispatch } from 'react';
2
2
  import { BaseEditor } from 'slate';
3
3
  import { IMentionPopOver } from './../../rich-text-editor.types';
4
- declare const insertMention: (editor: BaseEditor, mentionPopover: IMentionPopOver, dispatch: Dispatch<any>) => void;
4
+ declare const insertMention: (editor: BaseEditor, mentionPopover: IMentionPopOver, dispatch: Dispatch<any>, id: string) => void;
5
5
  export default insertMention;
package/helpers/intl.d.ts CHANGED
@@ -54,6 +54,8 @@ 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_joining_aria_live: string;
58
+ joinCommunityButton_leaving_aria_live: string;
57
59
  member_apolitical: string;
58
60
  member_community: string;
59
61
  membersList: string;