@apolitical/component-library 4.7.5-beta.0 → 4.7.5-test.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/index.d.ts +0 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +0 -3
- package/discussion/feeds/replies-feed/replies-feed.d.ts +1 -4
- package/discussion/sections/activity-section/activity-section.d.ts +2 -4
- package/enums/custom-events.d.ts +0 -1
- package/form/components/form/form.types.d.ts +1 -1
- package/helpers/index.d.ts +0 -1
- package/helpers/intl.d.ts +0 -3
- package/index.js +60 -60
- package/index.mjs +7045 -7113
- package/modals/types/profile-modal/index.d.ts +0 -1
- package/modals/types/profile-modal/profile-modal.d.ts +2 -2
- package/package.json +1 -1
- package/discussion/components/profile-modal-launcher/index.d.ts +0 -1
- package/discussion/components/profile-modal-launcher/profile-modal-launcher.d.ts +0 -7
- package/discussion/components/profile-modal-launcher/profile-modal-launcher.mock.d.ts +0 -24
- package/form/types/profile-form/profile-form.mock.d.ts +0 -19
- package/helpers/profile-is-complete/index.d.ts +0 -1
- package/helpers/profile-is-complete/profile-is-complete.d.ts +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IProfileFormProps } from '../../../form';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
/** Whether the modal is open on page load */
|
|
4
4
|
showModal?: boolean;
|
|
5
5
|
/** Optional content to show inside the modal, above the form */
|
|
@@ -21,5 +21,5 @@ export interface IProfileModalProps {
|
|
|
21
21
|
/** Additional classes */
|
|
22
22
|
className?: string;
|
|
23
23
|
}
|
|
24
|
-
declare const ProfileModal: ({ showModal, content: { successMessage, title, text }, functions: modalFunctions, form, className, }:
|
|
24
|
+
declare const ProfileModal: ({ showModal, content: { successMessage, title, text }, functions: modalFunctions, form, className, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export default ProfileModal;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProfileModalLauncher } from './profile-modal-launcher';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { IProfileFormProps } from '../../../form';
|
|
2
|
-
interface Props {
|
|
3
|
-
/** The `form` props for ProfileModal */
|
|
4
|
-
form: IProfileFormProps;
|
|
5
|
-
}
|
|
6
|
-
declare const ProfileModalLauncher: ({ form }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default ProfileModalLauncher;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
functions: {
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
};
|
|
5
|
-
form: {
|
|
6
|
-
hooks: {
|
|
7
|
-
useMaps: () => {
|
|
8
|
-
buildLocation: (input: string) => Promise<{
|
|
9
|
-
id: string;
|
|
10
|
-
en: string;
|
|
11
|
-
code: string;
|
|
12
|
-
}>;
|
|
13
|
-
isValidPlace: (input: string) => boolean;
|
|
14
|
-
predictPlaces: (input: string) => Promise<never[]>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
functions: {
|
|
18
|
-
uploadImage: () => Promise<void>;
|
|
19
|
-
onSuccess: () => Promise<void>;
|
|
20
|
-
onFailure: () => void;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
hooks: {
|
|
3
|
-
useMaps: () => {
|
|
4
|
-
buildLocation: (input: string) => Promise<{
|
|
5
|
-
id: string;
|
|
6
|
-
en: string;
|
|
7
|
-
code: string;
|
|
8
|
-
}>;
|
|
9
|
-
isValidPlace: (input: string) => boolean;
|
|
10
|
-
predictPlaces: (input: string) => Promise<never[]>;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
functions: {
|
|
14
|
-
uploadImage: () => Promise<void>;
|
|
15
|
-
onSuccess: () => Promise<void>;
|
|
16
|
-
onFailure: () => void;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as profileIsComplete } from './profile-is-complete';
|