@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.
- package/discussion/components/form/form.type.d.ts +1 -0
- package/form/types/invite-form/invite-form.d.ts +4 -2
- package/helpers/intl.d.ts +5 -0
- package/index.js +36 -36
- package/index.mjs +4135 -4126
- package/modals/types/invite-modal/invite-modal.d.ts +3 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -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;
|