@goodhood-web/nebenan-base 3.4.0-development.6 → 3.4.0-development.60
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/index.d.ts +7 -1
- package/index.js +107 -103
- package/index.mjs +21418 -13909
- package/lib/ComplaintModal/ComplaintModal.types.d.ts +1 -1
- package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.d.ts +1 -1
- package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.types.d.ts +5 -2
- package/lib/Feed/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +4 -2
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/CardAggregator.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/MarketplaceContent/MarketplaceContent.d.ts +3 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/utils.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +1 -1
- package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.d.ts +3 -0
- package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.types.d.ts +13 -0
- package/lib/Feed/FeedItem/Reactions/PostReactions/utils.d.ts +8 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/Like.d.ts +3 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/Like.types.d.ts +21 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/ReactionLabel/ReactionLabel.d.ts +7 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.d.ts +3 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.types.d.ts +16 -0
- package/lib/Feed/FeedItem/utils.d.ts +2 -2
- package/lib/Feed/GridFeed/GridFeed.types.d.ts +1 -1
- package/lib/Feed/utils.d.ts +1 -1
- package/lib/Forms/DynamicForm/DynamicForm.d.ts +1 -1
- package/lib/Forms/Fields/CodeField/CodeField.d.ts +3 -0
- package/lib/Forms/Fields/CodeField/CodeField.types.d.ts +9 -0
- package/lib/Forms/Fields/FormButton/FormButtonProps.d.ts +16 -0
- package/lib/Forms/Fields/FormCodeField.d.ts +5 -0
- package/lib/Forms/Fields/FormContentCreatorTile.d.ts +6 -0
- package/lib/Forms/Fields/FormGenderSelector.d.ts +5 -0
- package/lib/Forms/Fields/FormHeader/FormHeader.d.ts +3 -0
- package/lib/Forms/Fields/FormHeader/FormHeader.types.d.ts +10 -0
- package/lib/Forms/Fields/FormHeader/components/PhoneNumber.d.ts +4 -0
- package/lib/Forms/Fields/FormNameAbbreviation.d.ts +7 -0
- package/lib/Forms/Fields/FormPasswordField.d.ts +5 -0
- package/lib/Forms/Fields/FormPhoneInput.d.ts +5 -0
- package/lib/Forms/Fields/FormSelectInput.d.ts +12 -0
- package/lib/Forms/Fields/FormTextInput.d.ts +1 -1
- package/lib/Forms/Fields/GenderSelector/GenderSelector.d.ts +3 -0
- package/lib/Forms/Fields/GenderSelector/GenderSelector.types.d.ts +19 -0
- package/lib/Forms/Fields/GenderSelector/GenderSelector.utils.d.ts +4 -0
- package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.d.ts +3 -0
- package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.types.d.ts +11 -0
- package/lib/Forms/Fields/PasswordField/PasswordField.d.ts +3 -0
- package/lib/Forms/Fields/PasswordField/PasswordField.types.d.ts +16 -0
- package/lib/Forms/Fields/PasswordField/utils.d.ts +1 -0
- package/lib/Forms/Fields/PhoneInput/PhoneInput.d.ts +3 -0
- package/lib/Forms/Fields/PhoneInput/PhoneInput.types.d.ts +16 -0
- package/lib/Forms/Fields/PhoneInput/util.d.ts +153 -0
- package/lib/Forms/Fields/SelectInput/SelectInput.d.ts +3 -0
- package/lib/Forms/Fields/SelectInput/SelectInput.types.d.ts +31 -0
- package/lib/Forms/Fields/SelectInput/components/Input/Input.d.ts +3 -0
- package/lib/Forms/Fields/SelectInput/components/Input/Input.type.d.ts +5 -0
- package/lib/Forms/Fields/SelectInput/components/OptionsList/OptionsList.d.ts +3 -0
- package/lib/Forms/Fields/SelectInput/components/OptionsList/OptionsList.types.d.ts +11 -0
- package/lib/Forms/Fields/SelectInput/utils.d.ts +4 -0
- package/lib/Forms/Fields/index.d.ts +3 -1
- package/lib/Forms/Fields/utils.d.ts +1 -0
- package/lib/Forms/Form/Form.d.ts +1 -1
- package/lib/Forms/Form/Form.types.d.ts +12 -3
- package/lib/Forms/Form/utils/parseApiErrors.d.ts +5 -0
- package/lib/Forms/Form/utils/utils.d.ts +4 -0
- package/lib/Forms/Form.store.d.ts +7 -0
- package/lib/Forms/GridForm/GridForm.d.ts +1 -1
- package/lib/Forms/Wizard/Wizard.d.ts +1 -1
- package/lib/Forms/Wizard/Wizard.types.d.ts +70 -4
- package/lib/Forms/Wizard/WizardContext.d.ts +8 -1
- package/lib/Forms/Wizard/useWizard.d.ts +6 -1
- package/lib/Gallery/Gallery.d.ts +3 -0
- package/lib/Gallery/Gallery.types.d.ts +18 -0
- package/lib/Grids/Grid/Grid.types.d.ts +6 -5
- package/lib/Grids/Grid/GridItem/GridItem.d.ts +1 -1
- package/lib/Grids/Grid/GridItem/GridItem.types.d.ts +1 -0
- package/lib/ImageAttachment/ImageAttachment.d.ts +3 -0
- package/lib/ImageAttachment/ImageAttachment.types.d.ts +10 -0
- package/lib/ImageAttachment/components/CollageImageAttachment/CollageImageAttachment.d.ts +2 -0
- package/lib/ImageAttachment/components/PlaceholderImageAttachment/PlaceholderImageAttachment.d.ts +7 -0
- package/lib/ImageAttachment/components/SwiperImageAttachment/SwiperImageAttachment.d.ts +2 -0
- package/lib/ImageCropper/ImageCropper.d.ts +3 -0
- package/lib/{ImagePicker → ImageCropper}/ImageCropper.types.d.ts +1 -2
- package/lib/ImageCropper/util.d.ts +6 -0
- package/lib/MobileLayout/MobileLayout.types.d.ts +1 -0
- package/lib/ModalGallery/ModalGallery.d.ts +3 -0
- package/lib/ModalGallery/ModalGallery.types.d.ts +9 -0
- package/lib/ModalGallery/utils.d.ts +28 -0
- package/lib/Reactions/ReactionSelection/ReactionSelection.types.d.ts +1 -1
- package/lib/Reactions/ReactionStack/ReactionStack.types.d.ts +3 -7
- package/lib/Reactions/ReactionStack/components/ReactionItem/ReactionItem.types.d.ts +5 -4
- package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.d.ts +2 -2
- package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.type.d.ts +5 -2
- package/lib/Reactions/ReactionTabList/ReactionTabList.types.d.ts +1 -1
- package/lib/Reactions/utils.d.ts +1 -1
- package/lib/Register/Register.d.ts +3 -0
- package/lib/Register/Register.types.d.ts +4 -0
- package/lib/Register/components/PrivacyInfoModal/PrivacyInfoModal.d.ts +3 -0
- package/lib/Register/components/PrivacyInfoModal/PrivacyInfoModal.types.d.ts +3 -0
- package/lib/Registration/Registration.d.ts +3 -0
- package/lib/Registration/Registration.store.d.ts +4 -0
- package/lib/Registration/Registration.types.d.ts +17 -0
- package/lib/Registration/RegistrationCard/RegistrationCard.d.ts +9 -0
- package/lib/Registration/RegistrationFieldMappings/RegistrationFieldMappings.d.ts +3 -0
- package/lib/Registration/RegistrationForm/FieldMappings/FieldMappings.d.ts +3 -0
- package/lib/Registration/RegistrationForm/RegistrationForm.d.ts +3 -0
- package/lib/Registration/RegistrationForm/RegistrationForm.types.d.ts +5 -0
- package/lib/Registration/RegistrationForm/Steps/Address.d.ts +2 -0
- package/lib/Registration/RegistrationForm/Steps/Email.d.ts +3 -0
- package/lib/Registration/RegistrationForm/Steps/Name.d.ts +2 -0
- package/lib/Registration/RegistrationForm/Steps/index.d.ts +4 -0
- package/lib/Registration/RegistrationForm/network.d.ts +4 -0
- package/lib/Registration/VerificationForm/FieldMappings/FieldMappings.d.ts +3 -0
- package/lib/Registration/VerificationForm/Steps/Gps.d.ts +3 -0
- package/lib/Registration/VerificationForm/Steps/InviteCode.d.ts +3 -0
- package/lib/Registration/VerificationForm/Steps/Methods.d.ts +3 -0
- package/lib/Registration/VerificationForm/Steps/PostalCode.d.ts +3 -0
- package/lib/Registration/VerificationForm/Steps/PostalCodeRequested.d.ts +2 -0
- package/lib/Registration/VerificationForm/Steps/Sms.d.ts +3 -0
- package/lib/Registration/VerificationForm/Steps/SmsCode.d.ts +3 -0
- package/lib/Registration/VerificationForm/Steps/index.d.ts +7 -0
- package/lib/Registration/VerificationForm/VerificationForm.d.ts +3 -0
- package/lib/Registration/VerificationForm/VerificationForm.types.d.ts +10 -0
- package/lib/Registration/VerificationForm/data.d.ts +553 -0
- package/lib/Registration/VerificationForm/network.d.ts +7 -0
- package/lib/Registration/VerificationForm/utils.d.ts +67 -0
- package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.d.ts +3 -0
- package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.types.d.ts +3 -0
- package/lib/Registration/components/MandatoryEmailConfirmation/utils.d.ts +4 -0
- package/lib/Registration/components/SuccessScreen/SuccessScreen.d.ts +2 -0
- package/lib/Registration/utils.d.ts +2 -0
- package/lib/ResponsiveModal/ResponsiveModal.d.ts +1 -1
- package/lib/utils/hooks.d.ts +3 -0
- package/lib/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/ImagePicker/ImageCropper.d.ts +0 -3
- package/lib/ImagePicker/hooks/useCropper.d.ts +0 -5
- package/lib/ImagePicker/util.d.ts +0 -2
- /package/lib/{ImagePicker → ImageCropper}/hooks/useImageLoader.d.ts +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactionType } from '../../../../../api/src/lib/
|
|
1
|
+
import { ReactionType } from '../../../../../api/src/lib/core_v2';
|
|
2
|
+
import { ReactionItemProps } from './components/ReactionItem/ReactionItem.types';
|
|
2
3
|
export interface ReactionStackProps {
|
|
3
4
|
activeReaction?: ReactionType;
|
|
4
5
|
expanded?: boolean;
|
|
@@ -9,9 +10,4 @@ export interface ReactionStackProps {
|
|
|
9
10
|
stack?: boolean;
|
|
10
11
|
toolTipSpacing?: string;
|
|
11
12
|
}
|
|
12
|
-
export
|
|
13
|
-
count?: number;
|
|
14
|
-
reaction: ReactionType;
|
|
15
|
-
selected?: boolean;
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
}
|
|
13
|
+
export type Reaction = Pick<ReactionItemProps, 'count' | 'reaction' | 'selected' | 'tooltip'>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactionType } from '../../../../../../../api/src/lib/core_v2';
|
|
2
3
|
export type ReactionItemProps = {
|
|
3
4
|
activeReaction?: ReactionType;
|
|
4
|
-
count
|
|
5
|
+
count?: number;
|
|
5
6
|
expanded: boolean;
|
|
6
7
|
onSelect: (reaction: ReactionType) => void;
|
|
7
8
|
reaction: ReactionType;
|
|
8
|
-
selected
|
|
9
|
+
selected?: boolean;
|
|
9
10
|
size?: 'small' | 'big';
|
|
10
11
|
stack: boolean;
|
|
11
12
|
toolTipSpacing?: string;
|
|
12
|
-
tooltip?: string;
|
|
13
|
+
tooltip?: string | ReactNode;
|
|
13
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ReactionType } from '../../../../../../../api/src/lib/
|
|
2
|
+
import { ReactionType } from '../../../../../../../api/src/lib/core_v2';
|
|
3
3
|
import { ReactionPillProps } from './ReactionPill.type';
|
|
4
4
|
export declare const renderReaction: (type: ReactionType, size?: "small" | "big") => ReactElement;
|
|
5
|
-
declare const ReactionPill: ({ ariaDescribedBy, className, count, expanded, onClick, reaction, selected, size, stack, }: ReactionPillProps) => ReactElement;
|
|
5
|
+
declare const ReactionPill: ({ ariaDescribedBy, className, count, expanded, onClick, reaction, selected, size, stack, transparent, }: ReactionPillProps) => ReactElement;
|
|
6
6
|
export default ReactionPill;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { ReactionType } from '../../../../../../../api/src/lib/core_v2';
|
|
2
3
|
import { BaseButtonProps } from '../../../../../../../ui/src/lib/Atoms/Buttons/Button/Button.types';
|
|
3
|
-
export interface ReactionPillProps extends BaseButtonProps {
|
|
4
|
+
export interface ReactionPillProps extends Omit<BaseButtonProps, 'onClick'> {
|
|
4
5
|
ariaDescribedBy?: string;
|
|
5
6
|
className?: string;
|
|
6
7
|
count?: number;
|
|
7
8
|
expanded?: boolean;
|
|
9
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
8
10
|
reaction: ReactionType;
|
|
9
11
|
selected?: boolean;
|
|
10
12
|
size?: 'small' | 'big';
|
|
11
13
|
stack?: boolean;
|
|
14
|
+
transparent?: boolean;
|
|
12
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../../api/src/lib/
|
|
1
|
+
import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../../api/src/lib/core_v2';
|
|
2
2
|
export interface ReactionTabListProps {
|
|
3
3
|
closeText?: string;
|
|
4
4
|
getPicturePlaceholder: (user: ReactionUser) => string;
|
package/lib/Reactions/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactionType } from '../../../../api/src/lib/
|
|
1
|
+
import { ReactionType } from '../../../../api/src/lib/core_v2';
|
|
2
2
|
import { Reaction } from './ReactionStack/ReactionStack.types';
|
|
3
3
|
export declare const sortReactions: <T extends Reaction>(reactions: T[]) => T[];
|
|
4
4
|
export declare const isReactionType: (key: string) => key is Exclude<ReactionType, "bookmark">;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PrivacyInfoModalHeaderProps } from './PrivacyInfoModal.types';
|
|
2
|
+
export declare const PrivacyInfoModalBody: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const PrivacyInfoModalHeader: ({ onClose }: PrivacyInfoModalHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { RegistrationProps } from './Registration.types';
|
|
2
|
+
declare const Registration: ({ fetchProfile, initialForm, initialFormStep, onRegistrationSubmit, onVerificationSubmit, registrationToken, status, }: RegistrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Registration;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PrimitiveAtom, WritableAtom } from 'jotai';
|
|
2
|
+
import { RESET } from 'jotai/utils';
|
|
3
|
+
export declare const getAtom: <T>(key: string, storage?: boolean, defaultValue?: T, sessionStorage?: boolean) => PrimitiveAtom<T>;
|
|
4
|
+
export declare function withReset<T>(atom: PrimitiveAtom<T>): WritableAtom<T, [typeof RESET], void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RegistrationResponse, VerificationMethods, VerificationSMSResponse } from '../../../../api/src/lib/core_v2';
|
|
2
|
+
export declare enum State {
|
|
3
|
+
EMAIL_CONFIRMATION = "EMAIL_CONFIRMATION",
|
|
4
|
+
REGISTRATION_FORM = "REGISTRATION_FORM",
|
|
5
|
+
VERIFICATION_FORM = "VERIFICATION_FORM"
|
|
6
|
+
}
|
|
7
|
+
export interface RegistrationProps {
|
|
8
|
+
fetchProfile: () => void;
|
|
9
|
+
initialForm?: keyof typeof State;
|
|
10
|
+
initialFormStep?: string | number;
|
|
11
|
+
onRegistrationSubmit: (data: RegistrationResponse) => void;
|
|
12
|
+
onVerificationSubmit: (data?: VerificationSMSResponse) => void;
|
|
13
|
+
registrationToken: string | null;
|
|
14
|
+
status: {
|
|
15
|
+
verification_methods: VerificationMethods;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare const RegistrationCard: ({ children, progressBar, }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
progressBar?: {
|
|
5
|
+
currentStep?: number;
|
|
6
|
+
steps?: number;
|
|
7
|
+
};
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default RegistrationCard;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RegistrationResponse } from '../../../../../api/src/lib/core_v2';
|
|
2
|
+
import { FormField, InferFormData } from '../../Forms';
|
|
3
|
+
import { OnFormSubmitType } from '../../Forms/Form/Form.types';
|
|
4
|
+
export declare const handleRegistration: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (data: RegistrationResponse) => void, setFormError: (error: string | null) => void, setUserEmail: (value: string) => void) => Promise<boolean | undefined>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getInviteCodeMethod } from './InviteCode';
|
|
2
|
+
import { getMethods } from './Methods';
|
|
3
|
+
import { getPostalCodeMethod } from './PostalCode';
|
|
4
|
+
import { getPostalCodeRequested } from './PostalCodeRequested';
|
|
5
|
+
import { getSmsMethod } from './Sms';
|
|
6
|
+
import { getSmsCodeMethod } from './SmsCode';
|
|
7
|
+
export { getSmsMethod, getSmsCodeMethod, getPostalCodeMethod, getInviteCodeMethod, getMethods, getPostalCodeRequested, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VerificationMethods, VerificationSMSResponse } from '../../../../../api/src/lib/core_v2';
|
|
2
|
+
export interface VerificationFormProps {
|
|
3
|
+
fetchProfile: () => void;
|
|
4
|
+
initialStep?: string | number;
|
|
5
|
+
onSubmit: (data?: VerificationSMSResponse) => void;
|
|
6
|
+
status: {
|
|
7
|
+
verification_methods: VerificationMethods;
|
|
8
|
+
};
|
|
9
|
+
token: string | null;
|
|
10
|
+
}
|