@apolitical/component-library 7.0.0 → 7.0.1-beta.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/shared/interfaces/discussion.interface.d.ts +1 -1
- package/form/types/invite-form/invite-form.d.ts +10 -1
- package/index.js +42 -42
- package/index.mjs +3309 -3296
- package/modals/components/modal/index.d.ts +1 -1
- package/modals/components/modal/modal.d.ts +5 -2
- package/navigation/action-bar/action-bar.d.ts +2 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_modals.scss +1 -0
|
@@ -48,7 +48,7 @@ export interface IFullDiscussionContent extends IDiscussionContent {
|
|
|
48
48
|
peopleWhoLiked?: MemberProps[] | false;
|
|
49
49
|
/** If the content is pinned */
|
|
50
50
|
pinned?: boolean;
|
|
51
|
-
/** If the user is able to like the content (e.g. they can't like if they're not a member) */
|
|
51
|
+
/** DEPRECATED: If the user is able to like the content (e.g. they can't like if they're not a member) */
|
|
52
52
|
canLike?: boolean;
|
|
53
53
|
/** The number of comments the post has */
|
|
54
54
|
comments?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IFormProps } from '../../components/form/form.types';
|
|
1
2
|
export declare enum FormStatus {
|
|
2
3
|
NOT_SUBMITTED = "NOT_SUBMITTED",
|
|
3
4
|
SUCCESS = "SUCCESS",
|
|
@@ -27,6 +28,14 @@ interface IProps {
|
|
|
27
28
|
sendInvites(emails: string[], personalisedNote?: string): void;
|
|
28
29
|
/** Initial form status */
|
|
29
30
|
initialFormStatus?: FormStatus;
|
|
31
|
+
/** Google Tag Manager data */
|
|
32
|
+
gtm?: IFormProps['gtm'];
|
|
33
|
+
/** Optional secondary action button */
|
|
34
|
+
secondaryActionButton?: IFormProps['secondaryActionButton'];
|
|
35
|
+
/** Form meta data */
|
|
36
|
+
meta?: IFormProps['meta'] & {
|
|
37
|
+
shouldHideDoneButtonOnSubmit?: boolean;
|
|
38
|
+
};
|
|
30
39
|
}
|
|
31
|
-
declare const InviteForm: ({ title, label, messagePlaceholder, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
+
declare const InviteForm: ({ title, label, messagePlaceholder, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, gtm, secondaryActionButton, meta, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
32
41
|
export default InviteForm;
|