@goodhood-web/nebenan-base 3.5.0-development.12 → 3.5.0-development.13

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.
Files changed (95) hide show
  1. package/index.d.ts +6 -4
  2. package/index.js +135 -130
  3. package/index.mjs +69821 -69023
  4. package/lib/Authentication/Authentication.types.d.ts +12 -0
  5. package/lib/Authentication/LoginForm/LoginForm.d.ts +3 -0
  6. package/lib/Authentication/LoginForm/LoginForm.types.d.ts +8 -0
  7. package/lib/Authentication/LoginForm/LoginFormFields.d.ts +3 -0
  8. package/lib/Authentication/LoginForm/network.d.ts +6 -0
  9. package/lib/Authentication/PasswordForgotten/PasswordForgotten.d.ts +2 -0
  10. package/lib/Authentication/PasswordForgotten/PasswordForgotten.types.d.ts +4 -0
  11. package/lib/Authentication/PasswordForgotten/PasswordForgottenFormFields.d.ts +3 -0
  12. package/lib/Authentication/PasswordForgotten/network.d.ts +3 -0
  13. package/lib/Authentication/PasswordReset/PasswordReset.d.ts +6 -0
  14. package/lib/Authentication/PasswordReset/PasswordReset.types.d.ts +6 -0
  15. package/lib/Authentication/PasswordReset/PasswordResetFormFields.d.ts +3 -0
  16. package/lib/Authentication/PasswordReset/components/PasswordResetInstructions/PasswordResetInstructions.d.ts +4 -0
  17. package/lib/Authentication/PasswordReset/network.d.ts +3 -0
  18. package/lib/Authentication/PasswordReset/utils.d.ts +5 -0
  19. package/lib/{Registration/RegistrationFieldMappings/RegistrationFieldMappings.d.ts → Authentication/Registration/FieldMappings/FieldMappings.d.ts} +1 -1
  20. package/lib/Authentication/Registration/Register/Register.d.ts +3 -0
  21. package/lib/Authentication/Registration/Register/Register.types.d.ts +8 -0
  22. package/lib/Authentication/Registration/Register/components/InviteCard/InviteCard.d.ts +3 -0
  23. package/lib/Authentication/Registration/Register/components/InviteCard/InviteCard.types.d.ts +6 -0
  24. package/lib/Authentication/Registration/Registration.d.ts +3 -0
  25. package/lib/Authentication/Registration/Registration.types.d.ts +25 -0
  26. package/lib/Authentication/Registration/RegistrationCard/RegistrationCard.d.ts +3 -0
  27. package/lib/Authentication/Registration/RegistrationCard/RegistrationCard.types.d.ts +9 -0
  28. package/lib/{Registration → Authentication/Registration}/RegistrationForm/FieldMappings/FieldMappings.d.ts +1 -1
  29. package/lib/Authentication/Registration/RegistrationForm/RegistrationForm.d.ts +3 -0
  30. package/lib/Authentication/Registration/RegistrationForm/RegistrationForm.types.d.ts +8 -0
  31. package/lib/Authentication/Registration/RegistrationForm/Steps/Address.d.ts +3 -0
  32. package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/Email.d.ts +2 -2
  33. package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/Name.d.ts +1 -1
  34. package/lib/Authentication/Registration/RegistrationForm/network.d.ts +6 -0
  35. package/lib/Authentication/Registration/RegistrationForm/utils.d.ts +3 -0
  36. package/lib/{Registration → Authentication/Registration}/VerificationForm/FieldMappings/FieldMappings.d.ts +1 -1
  37. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/Gps.d.ts +2 -2
  38. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/InviteCode.d.ts +2 -2
  39. package/lib/Authentication/Registration/VerificationForm/Steps/Methods.d.ts +3 -0
  40. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/PostalCode.d.ts +2 -2
  41. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/PostalCodeRequested.d.ts +1 -1
  42. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/Sms.d.ts +2 -2
  43. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/SmsCode.d.ts +2 -2
  44. package/lib/Authentication/Registration/VerificationForm/VerificationForm.d.ts +3 -0
  45. package/lib/{Registration → Authentication/Registration}/VerificationForm/VerificationForm.types.d.ts +2 -2
  46. package/lib/{Registration → Authentication/Registration}/VerificationForm/network.d.ts +4 -4
  47. package/lib/{Registration → Authentication/Registration}/VerificationForm/utils.d.ts +2 -2
  48. package/lib/Authentication/Registration/utils.d.ts +8 -0
  49. package/lib/Authentication/components/AuthenticationCard/AuthenticationCard.d.ts +3 -0
  50. package/lib/Authentication/components/AuthenticationCard/AuthenticationCard.types.d.ts +12 -0
  51. package/lib/Authentication/components/DynamicScreen/DynamicScreen.d.ts +3 -0
  52. package/lib/Authentication/components/DynamicScreen/DynamicScreen.types.d.ts +21 -0
  53. package/lib/Authentication/components/DynamicScreen/utils.d.ts +2 -0
  54. package/lib/Authentication/components/EmailConfirmation/EmailConfirmation.d.ts +3 -0
  55. package/lib/Authentication/components/EmailConfirmation/EmailConfirmation.types.d.ts +5 -0
  56. package/lib/Authentication/components/ScreenCard/ScreenCard.d.ts +3 -0
  57. package/lib/Authentication/components/ScreenCard/ScreenCard.types.d.ts +16 -0
  58. package/lib/Authentication/components/SuccessScreen/SuccessScreen.d.ts +4 -0
  59. package/lib/Authentication/components/index.d.ts +6 -0
  60. package/lib/Authentication/network.d.ts +3 -0
  61. package/lib/Forms/Fields/FormButton/FormButtonProps.d.ts +9 -5
  62. package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.d.ts +1 -1
  63. package/lib/Forms/Fields/PasswordField/PasswordField.d.ts +1 -1
  64. package/lib/Forms/Form/Form.types.d.ts +1 -1
  65. package/lib/Forms/Wizard/Wizard.types.d.ts +1 -1
  66. package/lib/utils/client.d.ts +2 -0
  67. package/lib/utils/hooks.d.ts +2 -2
  68. package/lib/utils/index.d.ts +4 -3
  69. package/lib/utils/server.d.ts +2 -0
  70. package/package.json +1 -1
  71. package/style.css +1 -1
  72. package/lib/AuthenticationForm/AuthenticationForm.d.ts +0 -3
  73. package/lib/AuthenticationForm/AuthenticationForm.types.d.ts +0 -13
  74. package/lib/Register/Register.d.ts +0 -3
  75. package/lib/Register/Register.types.d.ts +0 -4
  76. package/lib/Registration/Registration.d.ts +0 -3
  77. package/lib/Registration/Registration.store.d.ts +0 -4
  78. package/lib/Registration/Registration.types.d.ts +0 -17
  79. package/lib/Registration/RegistrationCard/RegistrationCard.d.ts +0 -9
  80. package/lib/Registration/RegistrationForm/RegistrationForm.d.ts +0 -3
  81. package/lib/Registration/RegistrationForm/RegistrationForm.types.d.ts +0 -5
  82. package/lib/Registration/RegistrationForm/Steps/Address.d.ts +0 -2
  83. package/lib/Registration/RegistrationForm/network.d.ts +0 -4
  84. package/lib/Registration/VerificationForm/Steps/Methods.d.ts +0 -3
  85. package/lib/Registration/VerificationForm/VerificationForm.d.ts +0 -3
  86. package/lib/Registration/VerificationForm/data.d.ts +0 -553
  87. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.d.ts +0 -3
  88. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.types.d.ts +0 -3
  89. package/lib/Registration/components/MandatoryEmailConfirmation/utils.d.ts +0 -4
  90. package/lib/Registration/components/SuccessScreen/SuccessScreen.d.ts +0 -2
  91. package/lib/Registration/utils.d.ts +0 -2
  92. /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.d.ts +0 -0
  93. /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.types.d.ts +0 -0
  94. /package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/index.d.ts +0 -0
  95. /package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/index.d.ts +0 -0
@@ -0,0 +1,12 @@
1
+ import { SignInResponse } from '../../../../api/src/lib/core_v2';
2
+ export type AuthenticationFormProps = {
3
+ enableGoogleSSO?: boolean;
4
+ onLoginSuccess: (authentication_token?: string) => void;
5
+ onSubmit: (data: SignInResponse) => void;
6
+ };
7
+ export type OnSuccessResponse = {
8
+ authentication_token?: string;
9
+ email?: string;
10
+ email_confirmation_required?: boolean;
11
+ googleToken?: string;
12
+ };
@@ -0,0 +1,3 @@
1
+ import { LoginFormProps } from './LoginForm.types';
2
+ export declare const LoginForm: ({ enableGoogleSSO, onLoginSuccess }: LoginFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default LoginForm;
@@ -0,0 +1,8 @@
1
+ export type LoginFormProps = {
2
+ enableGoogleSSO?: boolean;
3
+ onLoginSuccess: (authentication_token?: string) => void;
4
+ };
5
+ export declare enum State {
6
+ EMAIL_CONFIRMATION = "EMAIL_CONFIRMATION",
7
+ LOGIN_FORM = "LOGIN_FORM"
8
+ }
@@ -0,0 +1,3 @@
1
+ import { FormField, InferFormData, WizardStepT } from '../../Forms';
2
+ import { OnSubmitFunction } from '../../Forms/Form/Form.types';
3
+ export declare const getLoginFormFields: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>, onClick?: () => void) => WizardStepT;
@@ -0,0 +1,6 @@
1
+ import { FormField, InferFormData } from '../../Forms';
2
+ import { OnFormSubmitType } from '../../Forms/Form/Form.types';
3
+ import { FormErrorMessageObject } from '../../Forms/Form/utils/parseApiErrors';
4
+ import { OnSuccessResponse } from '../Authentication.types';
5
+ export declare const handleLogin: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSuccess: (data: OnSuccessResponse) => void, setFormError: (error: string | null) => void, setState: (state: string | null) => void) => Promise<boolean | undefined>;
6
+ export declare const handleLoginErrorMassage: (error: unknown, setFormError: (error: string | null) => void, setFormFieldError?: (errorMassage: FormErrorMessageObject) => void, identifier?: string) => boolean;
@@ -0,0 +1,2 @@
1
+ export declare const PasswordForgotten: () => import("react/jsx-runtime").JSX.Element;
2
+ export default PasswordForgotten;
@@ -0,0 +1,4 @@
1
+ export declare enum State {
2
+ EMAIL_CONFIRMATION = "EMAIL_CONFIRMATION",
3
+ PASSWORD_FORGOTTEN = "PASSWORD_FORGOTTEN"
4
+ }
@@ -0,0 +1,3 @@
1
+ import { FormField, InferFormData, WizardStepT } from '../../Forms';
2
+ import { OnSubmitFunction } from '../../Forms/Form/Form.types';
3
+ export declare const getPasswordForgottenFormFields: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -0,0 +1,3 @@
1
+ import { FormField, InferFormData } from '../../Forms';
2
+ import { OnFormSubmitType } from '../../Forms/Form/Form.types';
3
+ export declare const handleReset: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (userEmail: string) => void, setFormError: (error: string | null) => void, submitter?: string) => Promise<boolean | undefined>;
@@ -0,0 +1,6 @@
1
+ export declare const PasswordReset: ({ email, requestSuccess, token, }: {
2
+ email?: string;
3
+ requestSuccess: (authentication_token: string) => void;
4
+ token?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default PasswordReset;
@@ -0,0 +1,6 @@
1
+ export declare enum State {
2
+ RESET_FORM = "RESET_FORM",
3
+ RESET_INVALID = "RESET_INVALID",
4
+ RESET_RESEND = "RESET_RESEND",
5
+ RESET_SUCCESS = "RESET_SUCCESS"
6
+ }
@@ -0,0 +1,3 @@
1
+ import { FormField, InferFormData, WizardStepT } from '../../Forms';
2
+ import { OnSubmitFunction } from '../../Forms/Form/Form.types';
3
+ export declare const getPasswordForgottenFormFields: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -0,0 +1,4 @@
1
+ export declare const PasswordResetInstructionsHeader: ({ onDismiss, }: {
2
+ onDismiss: () => void;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const PasswordResetInstructionsBody: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { FormField, InferFormData } from '../../Forms';
2
+ import { OnFormSubmitType } from '../../Forms/Form/Form.types';
3
+ export declare const handleReset: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (userEmail: string) => void, setFormError: (error: string | null) => void, token?: string) => Promise<boolean | undefined>;
@@ -0,0 +1,5 @@
1
+ export declare const isPasswordResetError: (err: unknown) => err is {
2
+ errors: {
3
+ reset_password_token: string[];
4
+ };
5
+ };
@@ -1,3 +1,3 @@
1
1
  import { ReactNode } from 'react';
2
- import { FormField } from '../../Forms';
2
+ import { FormField } from '../../../Forms';
3
3
  export declare const registrationFieldMap: Record<string, (field: FormField) => ReactNode | JSX.Element>;
@@ -0,0 +1,3 @@
1
+ import { RegisterProps } from './Register.types';
2
+ declare const Register: ({ enableGoogleSSO, onRegistrationError, onRegistrationSuccess, onSwitchToEmail, }: RegisterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Register;
@@ -0,0 +1,8 @@
1
+ import { OnSuccessResponse } from '../../Authentication.types';
2
+ export interface RegisterProps {
3
+ enableGoogleSSO?: boolean;
4
+ onRegistrationError: OnErrorHandler;
5
+ onRegistrationSuccess: (data: OnSuccessResponse) => void;
6
+ onSwitchToEmail: () => void;
7
+ }
8
+ export type OnErrorHandler = (canUseGoogleSignIn: boolean, googleToken?: string, failureCode?: string) => void;
@@ -0,0 +1,3 @@
1
+ import { InviteCardBodyProps, InviteCardHeaderProps } from './InviteCard.types';
2
+ export declare const InviteCardModalBody: ({ onClose }: InviteCardBodyProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const InviteCardModalHeader: ({ onClose }: InviteCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export interface InviteCardHeaderProps {
2
+ onClose: () => void;
3
+ }
4
+ export interface InviteCardBodyProps {
5
+ onClose: () => void;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { RegistrationProps } from './Registration.types';
2
+ declare const Registration: ({ accessToken, defaultStep, enableGoogleSSO, initialState, initialStep, onFetchProfile, onRegistrationSubmit, onVerificationSubmit, status, }: RegistrationProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Registration;
@@ -0,0 +1,25 @@
1
+ import { VerificationMethods } from '../../../../../api/src/lib/core_v2';
2
+ export declare enum State {
3
+ EMAIL_CONFIRMATION = "EMAIL_CONFIRMATION",
4
+ REGISTRATION_FORM = "REGISTRATION_FORM",
5
+ REGISTRATION_START = "REGISTRATION_START",
6
+ VERIFICATION_FORM = "VERIFICATION_FORM"
7
+ }
8
+ export interface ProfileStatus {
9
+ is_address_verified: boolean;
10
+ verification_methods: VerificationMethods;
11
+ }
12
+ export interface RegistrationProps {
13
+ accessToken: string | null;
14
+ defaultStep?: string | number;
15
+ enableGoogleSSO?: boolean;
16
+ initialState?: keyof typeof State;
17
+ initialStep?: string | number;
18
+ onFetchProfile: () => Promise<void>;
19
+ onRegistrationSubmit: (authentication_token: string) => void;
20
+ onVerificationSubmit: () => void;
21
+ status: ProfileStatus;
22
+ }
23
+ export type JwtPayload = {
24
+ email?: string;
25
+ };
@@ -0,0 +1,3 @@
1
+ import { RegistrationCardProps } from './RegistrationCard.types';
2
+ declare const RegistrationCard: ({ children, goBack, progressBar }: RegistrationCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default RegistrationCard;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export interface RegistrationCardProps {
3
+ children: ReactNode;
4
+ goBack?: () => void;
5
+ progressBar?: {
6
+ currentStep?: number;
7
+ steps?: number;
8
+ };
9
+ }
@@ -1,3 +1,3 @@
1
1
  import { ReactNode } from 'react';
2
- import { FormField } from '../../../Forms';
2
+ import { FormField } from '../../../../Forms';
3
3
  export declare const registrationFormFieldMap: Record<string, (field: FormField) => ReactNode | JSX.Element>;
@@ -0,0 +1,3 @@
1
+ import { RegistrationFormProps } from './RegistrationForm.types';
2
+ declare const RegistrationForm: ({ goBack, googleIdToken, initialStep, isSSOFlow, onSubmit, }: RegistrationFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default RegistrationForm;
@@ -0,0 +1,8 @@
1
+ import { RegistrationResponse } from '../../../../../../api/src/lib/core_v2';
2
+ export interface RegistrationFormProps {
3
+ goBack: () => void;
4
+ googleIdToken?: string | null;
5
+ initialStep?: string | number;
6
+ isSSOFlow?: boolean;
7
+ onSubmit: (data: RegistrationResponse) => void;
8
+ }
@@ -0,0 +1,3 @@
1
+ import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
+ import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
3
+ export declare const getAddressStep: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -1,3 +1,3 @@
1
- import { FormField, InferFormData, WizardStepT } from '../../../Forms';
2
- import { OnSubmitFunction } from '../../../Forms/Form/Form.types';
1
+ import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
+ import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
3
3
  export declare const getEmailStep: (onSubmit: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -1,2 +1,2 @@
1
- import { WizardStepT } from '../../../Forms';
1
+ import { WizardStepT } from '../../../../Forms';
2
2
  export declare const getNameStep: () => WizardStepT;
@@ -0,0 +1,6 @@
1
+ import { FormField, InferFormData } from '../../../Forms';
2
+ import { OnFormSubmitType } from '../../../Forms/Form/Form.types';
3
+ export declare const handleRegistration: (data: OnFormSubmitType<InferFormData<FormField[]>>, trackingParams: Record<string, string | null>, onSuccess: (data: {
4
+ access_token: string | null;
5
+ email_confirmation_required: boolean;
6
+ }) => void, setFormError: (error: string | null) => void, isSSOFlow: boolean | undefined, googleIdToken: string | null) => Promise<boolean | undefined>;
@@ -0,0 +1,3 @@
1
+ import { FormField, InferFormData, WizardStepT } from '../../../Forms';
2
+ import { OnSubmitFunction } from '../../../Forms/Form/Form.types';
3
+ export declare const getRegistrationFormFields: (ssoRegistration: boolean, onSubmit: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT[];
@@ -1,3 +1,3 @@
1
1
  import { ReactNode } from 'react';
2
- import { FormField } from '../../../Forms';
2
+ import { FormField } from '../../../../Forms';
3
3
  export declare const verificationFormFieldMap: Record<string, (field: FormField) => ReactNode | JSX.Element>;
@@ -1,3 +1,3 @@
1
- import { FormField, InferFormData, WizardStepT } from '../../../Forms';
2
- import { OnSubmitFunction } from '../../../Forms/Form/Form.types';
1
+ import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
+ import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
3
3
  export declare const getGpsMethod: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -1,3 +1,3 @@
1
- import { FormField, InferFormData, WizardStepT } from '../../../Forms';
2
- import { OnSubmitFunction } from '../../../Forms/Form/Form.types';
1
+ import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
+ import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
3
3
  export declare const getInviteCodeMethod: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -0,0 +1,3 @@
1
+ import { VerificationMethods } from '../../../../../../../api/src/lib/core_v2';
2
+ import { WizardStepT } from '../../../../Forms';
3
+ export declare const getMethods: (verificationMethod: VerificationMethods) => WizardStepT;
@@ -1,3 +1,3 @@
1
- import { FormField, InferFormData, WizardStepT } from '../../../Forms';
2
- import { OnSubmitFunction } from '../../../Forms/Form/Form.types';
1
+ import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
+ import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
3
3
  export declare const getPostalCodeMethod: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -1,2 +1,2 @@
1
- import { WizardStepT } from '../../../Forms';
1
+ import { WizardStepT } from '../../../../Forms';
2
2
  export declare const getPostalCodeRequested: () => WizardStepT;
@@ -1,3 +1,3 @@
1
- import { FormField, InferFormData, WizardStepT } from '../../../Forms';
2
- import { OnSubmitFunction } from '../../../Forms/Form/Form.types';
1
+ import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
+ import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
3
3
  export declare const getSmsMethod: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -1,3 +1,3 @@
1
- import { FormField, InferFormData, WizardStepT } from '../../../Forms';
2
- import { OnSubmitFunction } from '../../../Forms/Form/Form.types';
1
+ import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
+ import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
3
3
  export declare const getSmsCodeMethod: (onSubmit?: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -0,0 +1,3 @@
1
+ import { VerificationFormProps } from './VerificationForm.types';
2
+ declare const VerificationForm: ({ initialStep, onFetchProfile, onSubmit, status, token, }: VerificationFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default VerificationForm;
@@ -1,7 +1,7 @@
1
- import { VerificationMethods, VerificationSMSResponse } from '../../../../../api/src/lib/core_v2';
1
+ import { VerificationMethods, VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
2
2
  export interface VerificationFormProps {
3
- fetchProfile: () => void;
4
3
  initialStep?: string | number;
4
+ onFetchProfile: () => Promise<void>;
5
5
  onSubmit: (data?: VerificationSMSResponse) => void;
6
6
  status: {
7
7
  verification_methods: VerificationMethods;
@@ -1,7 +1,7 @@
1
- import { VerificationSMSResponse } from '../../../../../api/src/lib/core_v2';
2
- import { FormField, InferFormData } from '../../Forms';
3
- import { OnFormSubmitType } from '../../Forms/Form/Form.types';
1
+ import { VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
2
+ import { FormField, InferFormData } from '../../../Forms';
3
+ import { OnFormSubmitType } from '../../../Forms/Form/Form.types';
4
4
  export declare const handleSmsCodeRequest: (data: OnFormSubmitType<InferFormData<FormField[]>>, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean>;
5
5
  export declare const handleSmsCodeSend: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (data: VerificationSMSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | undefined>;
6
6
  export declare const handleInviteCodeSend: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (data: VerificationSMSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | undefined>;
7
- export declare const handlePostalCodeRequest: (fetchProfile: () => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | "postalCodeRequested">;
7
+ export declare const handlePostalCodeRequest: (onFetchProfile: () => Promise<void>, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | "postalCodeRequested">;
@@ -1,5 +1,5 @@
1
- import { VerificationMethods } from '../../../../../api/src/lib/core_v2';
2
- import { FormField } from '../../Forms';
1
+ import { VerificationMethods } from '../../../../../../api/src/lib/core_v2';
2
+ import { FormField } from '../../../Forms';
3
3
  export declare const VERIFICATION_POSSIBLE = 0;
4
4
  export declare const VERIFICATION_PENDING = 1;
5
5
  export declare const VERIFICATION_KEY_CODE = "code";
@@ -0,0 +1,8 @@
1
+ import { FormErrorMessageObject } from '../../Forms/Form/utils/parseApiErrors';
2
+ import { JwtPayload } from './Registration.types';
3
+ export declare const handleErrorMassage: (error: unknown, setFormError: (error: string | null) => void, setFormFieldError?: (errorMassage: FormErrorMessageObject) => void, identifier?: string) => boolean;
4
+ /**
5
+ * Safely extracts a specific claim from the decoded JWT payload,
6
+ * returning undefined if extraction fails.
7
+ */
8
+ export declare function extractClaimFromJwt<T extends keyof JwtPayload>(claim: T, credential?: string): string;
@@ -0,0 +1,3 @@
1
+ import { AuthenticationCardProps } from './AuthenticationCard.types';
2
+ declare const AuthenticationCard: ({ children, onBackClick, progressBar, rightElement, showBackButton, stepHeader, }: AuthenticationCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AuthenticationCard;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AuthenticationCardProps {
3
+ children: ReactNode;
4
+ onBackClick?: () => void;
5
+ progressBar?: {
6
+ currentStep: number;
7
+ steps: number;
8
+ };
9
+ rightElement?: ReactNode;
10
+ showBackButton?: boolean;
11
+ stepHeader?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ import { DynamicScreenProps } from './DynamicScreen.types';
2
+ declare const DynamicScreen: ({ atom, atomKey, email, navigation, onClick, onRequest, screen, stickerMobile, }: DynamicScreenProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default DynamicScreen;
@@ -0,0 +1,21 @@
1
+ export declare const Screens: {
2
+ email_confirmation: string;
3
+ error: string;
4
+ expired: string;
5
+ resend: string;
6
+ resetInvalid: string;
7
+ resetResend: string;
8
+ resetSuccess: string;
9
+ security: string;
10
+ };
11
+ export type Screen = keyof typeof Screens;
12
+ export type DynamicScreenProps = {
13
+ atom?: string;
14
+ atomKey?: string;
15
+ email?: string;
16
+ navigation?: () => void;
17
+ onClick?: () => void;
18
+ onRequest?: () => void;
19
+ screen: Screen;
20
+ stickerMobile?: boolean;
21
+ };
@@ -0,0 +1,2 @@
1
+ import { Data } from '../../../Forms/Form/Form.types';
2
+ export declare const getEmail: (key: string, storedData: Data) => string | undefined;
@@ -0,0 +1,3 @@
1
+ import { EmailConfirmationProps } from './EmailConfirmation.types';
2
+ declare const EmailConfirmation: ({ email }: EmailConfirmationProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default EmailConfirmation;
@@ -0,0 +1,5 @@
1
+ export interface EmailConfirmationProps {
2
+ atom?: string;
3
+ atomKey?: string;
4
+ email?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ import { ScreenCardProps } from './ScreenCard.types';
2
+ declare const ScreenCard: ({ color, ctaText, email, footer, icon, navigation, navigationHeader, onClick, onLinkClick, stickerMobile, text, textLink, title, }: ScreenCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ScreenCard;
@@ -0,0 +1,16 @@
1
+ import { StickerProps } from '../../../../../../ui/src/lib/Atoms/Badges/Sticker/Sticker.types';
2
+ export interface ScreenCardProps {
3
+ color?: StickerProps['color'];
4
+ ctaText?: string;
5
+ email?: string;
6
+ footer?: string;
7
+ icon?: StickerProps['icon'];
8
+ navigation?: () => void;
9
+ navigationHeader?: string;
10
+ onClick?: () => void;
11
+ onLinkClick?: () => void;
12
+ stickerMobile?: boolean;
13
+ text?: string;
14
+ textLink?: string;
15
+ title?: string;
16
+ }
@@ -0,0 +1,4 @@
1
+ declare const SuccessScreen: ({ title }: {
2
+ title?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default SuccessScreen;
@@ -0,0 +1,6 @@
1
+ import { default as AuthenticationCard } from './AuthenticationCard/AuthenticationCard';
2
+ import { default as DynamicScreen } from './DynamicScreen/DynamicScreen';
3
+ import { default as EmailConfirmation } from './EmailConfirmation/EmailConfirmation';
4
+ import { default as ScreenCard } from './ScreenCard/ScreenCard';
5
+ import { default as SuccessScreen } from './SuccessScreen/SuccessScreen';
6
+ export { AuthenticationCard, SuccessScreen, EmailConfirmation, ScreenCard, DynamicScreen, };
@@ -0,0 +1,3 @@
1
+ import { OnSuccessResponse } from './Authentication.types';
2
+ import { OnErrorHandler } from './Registration/Register/Register.types';
3
+ export declare const handleValidateUserSSOSession: (onSuccess: (data: OnSuccessResponse) => void, onError: OnErrorHandler, credential: string) => Promise<void>;
@@ -1,16 +1,20 @@
1
1
  import { default as React } from 'react';
2
- import { ButtonVariationProps } from '../../../../../../ui/src/lib/Atoms/Buttons/Button/Button.types';
2
+ import { ButtonTertiaryProps } from '../../../../../../ui/src/lib/Atoms/Buttons/ButtonTertiary/ButtonTertiary.types';
3
3
  import { TextButtonProps } from '../../../../../../ui/src/lib/Atoms/Buttons/TextButton/TextButton.types';
4
4
  export type FormButtonProps = {
5
- color?: TextButtonProps['color'];
5
+ color?: TextButtonProps['color'] | ButtonTertiaryProps['color'];
6
6
  disabled?: boolean;
7
7
  goTo?: string;
8
+ href?: string;
9
+ id?: string;
8
10
  label?: string;
9
11
  onClick?: () => void;
10
- size?: ButtonVariationProps['size'];
12
+ position?: 'center' | 'textButtonLeft';
13
+ size?: TextButtonProps['size'];
14
+ target?: React.AnchorHTMLAttributes<HTMLAnchorElement>['target'];
11
15
  text?: string;
12
- type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
16
+ type?: 'link' | React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
13
17
  variant?: 'primary' | 'secondary' | 'tertiary' | 'text';
14
18
  };
15
- declare const FormButton: ({ color, disabled, goTo, label, onClick, size, text, type, variant, }: FormButtonProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const FormButton: ({ color, disabled, goTo, href, id, label, onClick, position, size, target, text, type, variant, }: FormButtonProps) => import("react/jsx-runtime").JSX.Element;
16
20
  export default FormButton;
@@ -1,3 +1,3 @@
1
1
  import { NameAbbreviationProps } from './NameAbbreviation.types';
2
- declare const NameAbbreviation: ({ checked, firstname, label, lastname, onChange, placeholder, }: NameAbbreviationProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const NameAbbreviation: ({ checked, firstname, label, lastname, placeholder, }: NameAbbreviationProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default NameAbbreviation;
@@ -1,3 +1,3 @@
1
1
  import { PasswordFieldProps } from './PasswordField.types';
2
- declare const PasswordField: ({ colorScheme, errorText, id, label, name, onBlur, onChange, passwordHint, progressBar, size, value, }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PasswordField: ({ colorScheme, error, errorText, id, label, name, onBlur, onChange, passwordHint, progressBar, size, value, }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PasswordField;
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  import { DefaultValues, FieldValues, Mode, UseFormReturn } from 'react-hook-form';
3
3
  import { ZodType } from 'zod';
4
4
  import { TGridSpacing } from '../../Grids/Grid/Grid.types';
5
- export type OnSubmitFunction<FormData extends FieldValues> = (arg: OnFormSubmitType<FormData>) => Promise<boolean | undefined | string>;
5
+ export type OnSubmitFunction<FormData extends FieldValues> = (arg: OnFormSubmitType<FormData>, submitter?: string) => Promise<boolean | undefined | string>;
6
6
  export type OnFormSubmitType<FormData extends FieldValues> = {
7
7
  data: FormData;
8
8
  methods?: UseFormReturn<FormData>;
@@ -60,7 +60,7 @@ export type ToggleField = StepField & FormToggleInputProps & {
60
60
  type: 'toggle';
61
61
  };
62
62
  export type ButtonField = StepField & {
63
- fieldConfig: Omit<FormButtonProps, 'id'>;
63
+ fieldConfig: FormButtonProps;
64
64
  type: 'button';
65
65
  };
66
66
  export type PasswordField = StepField & FormPasswordFieldProps & {
@@ -0,0 +1,2 @@
1
+ export declare const isMobile: (mobileScreenSize?: number) => boolean;
2
+ export declare const useIsBreakpointMatch: (tabletScreenBreakpoint?: number) => boolean;
@@ -1,3 +1,3 @@
1
1
  type EventType = 'keydown' | 'keyup' | 'keypress';
2
- declare function useKeyEvent(targetKeys: string | string[], callback: (event: KeyboardEvent) => void, eventType?: EventType): void;
3
- export default useKeyEvent;
2
+ export declare const useKeyEvent: (targetKeys: string | string[], callback: (event: KeyboardEvent) => void, eventType?: EventType) => void;
3
+ export {};
@@ -1,3 +1,4 @@
1
- export declare const isMobile: (mobileScreenSize?: number) => boolean;
2
- export declare const useIsBreakpointMatch: (tabletScreenBreakpoint?: number) => boolean;
3
- export declare const getLang: <T>(lang: Record<string, T>, selectedLang?: string) => T;
1
+ export * from './client';
2
+ export * from './server';
3
+ export * from './hooks';
4
+ export * from './breakpoints';
@@ -0,0 +1,2 @@
1
+ export declare const getLang: <T>(lang: Record<string, T>, selectedLang?: string) => T;
2
+ export declare const interpolateKey: (template: string, key: string, value?: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.5.0-development.12",
3
+ "version": "3.5.0-development.13",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",