@apolitical/component-library 5.3.4 → 5.3.6-ac.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.
@@ -12,6 +12,7 @@ export interface IDiscussionFormMeta {
12
12
  isAutoFocused?: boolean;
13
13
  /** Whether we're editing or creating */
14
14
  isEditing: false | {
15
+ categories?: string[] | string;
15
16
  text?: string;
16
17
  };
17
18
  /** Whether the form has a title field */
@@ -9,6 +9,8 @@ interface IProps {
9
9
  title: string;
10
10
  /** Form input label*/
11
11
  label: string;
12
+ /** Placeholder text for the message input */
13
+ messagePlaceholder?: string;
12
14
  /** CTA button text displayed */
13
15
  ctaMessage: string;
14
16
  /** Colour of the title */
@@ -22,9 +24,9 @@ interface IProps {
22
24
  /** Function to report errors */
23
25
  reportError(error: unknown): void;
24
26
  /** Function to send the invites */
25
- sendInvites(emails: string[]): void;
27
+ sendInvites(emails: string[], personalisedNote?: string): void;
26
28
  /** Initial form status */
27
29
  initialFormStatus?: FormStatus;
28
30
  }
29
- declare const InviteForm: ({ title, label, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
31
+ declare const InviteForm: ({ title, label, messagePlaceholder, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
30
32
  export default InviteForm;
package/helpers/intl.d.ts CHANGED
@@ -49,6 +49,9 @@ export declare const checkIntlPathExists: (path: string, language?: {
49
49
  activitiesFeed_rankingMethod_recent: string;
50
50
  activitiesFeed_rankingMethod_popular: string;
51
51
  activitiesFeed_rankingMethod_internalTesting: string;
52
+ activitiesFeed_noActivities_inCategories: string;
53
+ activitiesFeed_noActivities: string;
54
+ activitiesFeed_noActivities_button: string;
52
55
  communityDetails_members: string;
53
56
  communityDetails_viewAll: string;
54
57
  communityDetails_invite: string;
@@ -231,6 +234,8 @@ export declare const checkIntlPathExists: (path: string, language?: {
231
234
  inviteForm_email_placeholder: string;
232
235
  inviteForm_title: string;
233
236
  inviteForm_label: string;
237
+ inviteForm_message_label: string;
238
+ inviteForm_message_placeholder: string;
234
239
  inviteForm_ctaMessage: string;
235
240
  inviteForm_success: string;
236
241
  inviteForm_error: string;