@apolitical/component-library 4.5.11-4697.1 → 4.5.11-beta.100
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/context/user/user.context.d.ts +5 -13
- package/context/user/user.provider.d.ts +1 -2
- package/form/components/form/form.types.d.ts +12 -13
- package/form/components/form/index.d.ts +1 -1
- package/form/components/profile-image-change/profile-image-change.d.ts +7 -20
- package/form/types/index.d.ts +0 -1
- package/helpers/intl.d.ts +6 -20
- package/index.js +63 -63
- package/index.mjs +9236 -9482
- package/modals/{types/discussion-form-modal → discussion-form-modal}/discussion-form-modal.d.ts +1 -1
- package/modals/index.d.ts +4 -2
- package/modals/{components/overlay → overlay}/overlay.d.ts +1 -1
- package/package.json +1 -1
- package/sections/edit-section/edit-section.d.ts +2 -4
- package/style.css +1 -1
- package/user/profile-picture/profile-picture.d.ts +1 -3
- package/form/types/profile-form/index.d.ts +0 -1
- package/form/types/profile-form/profile-form.d.ts +0 -34
- package/modals/components/index.d.ts +0 -2
- package/modals/types/index.d.ts +0 -3
- package/modals/types/profile-modal/index.d.ts +0 -1
- package/modals/types/profile-modal/profile-modal.d.ts +0 -25
- /package/modals/{types/discussion-form-modal → discussion-form-modal}/index.d.ts +0 -0
- /package/modals/{types/invite-modal → invite-modal}/index.d.ts +0 -0
- /package/modals/{types/invite-modal → invite-modal}/invite-modal.d.ts +0 -0
- /package/modals/{components/modal → modal}/index.d.ts +0 -0
- /package/modals/{components/modal → modal}/modal.d.ts +0 -0
- /package/modals/{components/overlay → overlay}/index.d.ts +0 -0
- /package/modals/{components/overlay → overlay}/overlay.helpers.d.ts +0 -0
package/modals/{types/discussion-form-modal → discussion-form-modal}/discussion-form-modal.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type IDiscussionForm, type CachedText, type IMentions } from '
|
|
2
|
+
import { type IDiscussionForm, type CachedText, type IMentions } from '../../discussion';
|
|
3
3
|
interface Props {
|
|
4
4
|
/** Whether the modal is open on page load */
|
|
5
5
|
showModal?: boolean;
|
package/modals/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -20,10 +20,8 @@ interface Props {
|
|
|
20
20
|
title: string;
|
|
21
21
|
/** Modal Title */
|
|
22
22
|
modalTitle?: string;
|
|
23
|
-
/** Form fields to be rendered inside a modal form when user clicks cta or edit button
|
|
23
|
+
/** Form fields to be rendered inside a modal form when user clicks cta or edit button */
|
|
24
24
|
formProps?: IFormProps;
|
|
25
|
-
/** A form to render inside the modal. Alternatively, we can use `formProps` to create a new form if the component doesn't already exist. */
|
|
26
|
-
formComponent?: JSX.Element;
|
|
27
25
|
/** Link to a url where user can edit the data */
|
|
28
26
|
href?: THref;
|
|
29
27
|
/** Whether to show a divider at the bottom of the section */
|
|
@@ -31,5 +29,5 @@ interface Props {
|
|
|
31
29
|
/** Placeholder settings */
|
|
32
30
|
placeholder?: IPlaceholder;
|
|
33
31
|
}
|
|
34
|
-
declare const EditSection: ({ children, className, formProps,
|
|
32
|
+
declare const EditSection: ({ children, className, formProps, href, title, modalTitle, placeholder, showDivider, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
35
33
|
export default EditSection;
|