@apolitical/component-library 4.4.1 → 4.4.2-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.
@@ -39,6 +39,8 @@ export interface IDiscussionForm {
39
39
  /** If an error, created externally, should always show */
40
40
  error?: false | string;
41
41
  };
42
+ /** If the form allows prePopulation */
43
+ allowPrePopulation?: boolean;
42
44
  /** The functions that are passed in to handle the functionality */
43
45
  functions: {
44
46
  create: DiscussionCreateContentFunction;
@@ -62,5 +64,5 @@ export interface IDiscussionForm {
62
64
  /** The language to use for the text */
63
65
  locale?: string;
64
66
  }
65
- declare const Form: ({ id, content, userHasPermissions, meta, placeholder, maxLength, forceShow, functions, data, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
67
+ declare const Form: ({ id, content, userHasPermissions, meta, placeholder, maxLength, forceShow, allowPrePopulation, functions, data, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
66
68
  export default Form;
@@ -65,6 +65,8 @@ interface Props {
65
65
  };
66
66
  /** If the browser should focus on this post */
67
67
  setFocus?: boolean;
68
+ /** If the form allows prePopulation */
69
+ allowPrePopulation?: boolean;
68
70
  }
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;
71
+ declare const Post: ({ element, content, userHasPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton }, setFocus, allowPrePopulation, }: Props) => import("react/jsx-runtime").JSX.Element;
70
72
  export default Post;