@goodhood-web/nebenan-base 3.5.0-development.2 → 3.5.0-development.21

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 (107) hide show
  1. package/index.d.ts +6 -4
  2. package/index.js +136 -131
  3. package/index.mjs +69799 -68836
  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 +26 -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/ScreenLoading/ScreenLoading.d.ts +2 -0
  59. package/lib/Authentication/components/SuccessScreen/SuccessScreen.d.ts +4 -0
  60. package/lib/Authentication/components/index.d.ts +6 -0
  61. package/lib/Authentication/network.d.ts +3 -0
  62. package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +1 -1
  63. package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types.d.ts +3 -0
  64. package/lib/Feed/GridFeed/GridFeed.d.ts +1 -1
  65. package/lib/Feed/GridFeed/GridFeed.types.d.ts +4 -0
  66. package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.d.ts +1 -1
  67. package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.types.d.ts +2 -0
  68. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts +1 -1
  69. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.types.d.ts +2 -0
  70. package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.d.ts +1 -1
  71. package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.types.d.ts +1 -1
  72. package/lib/Forms/Fields/FormButton/FormButtonProps.d.ts +9 -5
  73. package/lib/Forms/Fields/FormSelectInput.d.ts +1 -0
  74. package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.d.ts +1 -1
  75. package/lib/Forms/Fields/PasswordField/PasswordField.d.ts +1 -1
  76. package/lib/Forms/Form/Form.types.d.ts +1 -1
  77. package/lib/Forms/Wizard/Wizard.types.d.ts +1 -1
  78. package/lib/utils/client.d.ts +2 -0
  79. package/lib/utils/hooks.d.ts +2 -2
  80. package/lib/utils/index.d.ts +4 -3
  81. package/lib/utils/server.d.ts +2 -0
  82. package/package.json +1 -1
  83. package/style.css +1 -1
  84. package/lib/AuthenticationForm/AuthenticationForm.d.ts +0 -3
  85. package/lib/AuthenticationForm/AuthenticationForm.types.d.ts +0 -13
  86. package/lib/Register/Register.d.ts +0 -3
  87. package/lib/Register/Register.types.d.ts +0 -4
  88. package/lib/Registration/Registration.d.ts +0 -3
  89. package/lib/Registration/Registration.store.d.ts +0 -4
  90. package/lib/Registration/Registration.types.d.ts +0 -17
  91. package/lib/Registration/RegistrationCard/RegistrationCard.d.ts +0 -9
  92. package/lib/Registration/RegistrationForm/RegistrationForm.d.ts +0 -3
  93. package/lib/Registration/RegistrationForm/RegistrationForm.types.d.ts +0 -5
  94. package/lib/Registration/RegistrationForm/Steps/Address.d.ts +0 -2
  95. package/lib/Registration/RegistrationForm/network.d.ts +0 -4
  96. package/lib/Registration/VerificationForm/Steps/Methods.d.ts +0 -3
  97. package/lib/Registration/VerificationForm/VerificationForm.d.ts +0 -3
  98. package/lib/Registration/VerificationForm/data.d.ts +0 -553
  99. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.d.ts +0 -3
  100. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.types.d.ts +0 -3
  101. package/lib/Registration/components/MandatoryEmailConfirmation/utils.d.ts +0 -4
  102. package/lib/Registration/components/SuccessScreen/SuccessScreen.d.ts +0 -2
  103. package/lib/Registration/utils.d.ts +0 -2
  104. /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.d.ts +0 -0
  105. /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.types.d.ts +0 -0
  106. /package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/index.d.ts +0 -0
  107. /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,26 @@
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
+ verificationError: string;
11
+ verificationErrorLoggedIn: string;
12
+ verificationLoading: string;
13
+ verificationResend: string;
14
+ verificationSuccess: string;
15
+ };
16
+ export type Screen = keyof typeof Screens;
17
+ export type DynamicScreenProps = {
18
+ atom?: string;
19
+ atomKey?: string;
20
+ email?: string;
21
+ navigation?: () => void;
22
+ onClick?: () => void;
23
+ onRequest?: () => void;
24
+ screen: Screen;
25
+ stickerMobile?: boolean;
26
+ };
@@ -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,2 @@
1
+ declare const ScreenLoading: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ScreenLoading;
@@ -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,2 +1,2 @@
1
1
  import { MarketplaceItemCardlessTypes } from './MarketplaceItemCardless.types';
2
- export default function MarketplaceItemCardless({ bookmarked, id, image, onClick, premiumFeature, price, reserved, reservedText, timeStamp, title, }: MarketplaceItemCardlessTypes): import("react/jsx-runtime").JSX.Element;
2
+ export default function MarketplaceItemCardless({ bookmarked, finalizeTest, highlightAbTest, id, image, onClick, premiumFeature, price, reserved, reservedText, timeStamp, title, }: MarketplaceItemCardlessTypes): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,9 @@
1
+ import { GridFeedProps } from '../../../GridFeed/GridFeed.types';
1
2
  export interface MarketplaceItemCardlessTypes {
2
3
  bookmarked: boolean;
3
4
  content?: React.ReactNode;
5
+ finalizeTest?: GridFeedProps['finalizeTest'];
6
+ highlightAbTest?: GridFeedProps['highlightAbTest'];
4
7
  id: number;
5
8
  image?: string;
6
9
  onClick?: () => void;
@@ -1,3 +1,3 @@
1
1
  import { GridFeedProps } from './GridFeed.types';
2
- declare const GridFeed: ({ ads, feedItems, feedType, items }: GridFeedProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const GridFeed: ({ ads, feedItems, feedType, finalizeTest, highlightAbTest, items, }: GridFeedProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default GridFeed;
@@ -21,10 +21,14 @@ export interface AdItem {
21
21
  position?: Position;
22
22
  type?: string;
23
23
  }
24
+ declare const AB_TEST_VARIANTS: readonly ["control", "label_under_description", "outline_photo", "label_on_photo"];
25
+ type ABTestVariant = (typeof AB_TEST_VARIANTS)[number];
24
26
  export interface GridFeedProps {
25
27
  ads?: AdItem[];
26
28
  feedItems: FeedItems;
27
29
  feedType: keyof typeof GridFeedTypeEnum;
30
+ finalizeTest?: () => void;
31
+ highlightAbTest?: ABTestVariant;
28
32
  items: number[];
29
33
  }
30
34
  export type ChunkItem = number | AdItem;
@@ -1,2 +1,2 @@
1
1
  import { GridFeedAggregatorProps } from './GridFeedAggregator.types';
2
- export default function GridFeedAggregator({ feedType, items }: GridFeedAggregatorProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function GridFeedAggregator({ feedType, finalizeTest, highlightAbTest, items, }: GridFeedAggregatorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { GridFeedMarketplaceItem, GridFeedProps } from '../GridFeed.types';
2
2
  export type GridFeedAggregatorProps = {
3
3
  feedType: GridFeedProps['feedType'];
4
+ finalizeTest?: GridFeedProps['finalizeTest'];
5
+ highlightAbTest?: GridFeedProps['highlightAbTest'];
4
6
  items: GridFeedMarketplaceItem[];
5
7
  };
6
8
  export declare const GridFeedAggregatorNavigateEnum: {
@@ -1,3 +1,3 @@
1
1
  import { FeedDynamicRendererProps } from './FeedDynamicRenderer.types';
2
- declare const FeedDynamicRenderer: ({ feedType, item }: FeedDynamicRendererProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const FeedDynamicRenderer: ({ feedType, finalizeTest, highlightAbTest, item, }: FeedDynamicRendererProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default FeedDynamicRenderer;
@@ -2,5 +2,7 @@ import { MarketplaceItemCardlessTypes } from '../../../../FeedItem/Marketplace/M
2
2
  import { AdItem, GridFeedProps } from '../../../GridFeed.types';
3
3
  export interface FeedDynamicRendererProps {
4
4
  feedType: GridFeedProps['feedType'];
5
+ finalizeTest?: GridFeedProps['finalizeTest'];
6
+ highlightAbTest?: GridFeedProps['highlightAbTest'];
5
7
  item: MarketplaceItemCardlessTypes | AdItem;
6
8
  }
@@ -1,3 +1,3 @@
1
1
  import { GridFeedDynamicRendererProps } from './GridFeedDynamicRenderer.types';
2
- declare const GridFeedDynamicRenderer: ({ feedItem, feedItems, feedType, }: GridFeedDynamicRendererProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const GridFeedDynamicRenderer: ({ feedItem, feedItems, feedType, finalizeTest, highlightAbTest, }: GridFeedDynamicRendererProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default GridFeedDynamicRenderer;
@@ -1,4 +1,4 @@
1
1
  import { ChunkItem, GridFeedProps } from '../GridFeed.types';
2
- export type GridFeedDynamicRendererProps = Pick<GridFeedProps, 'feedItems' | 'feedType'> & {
2
+ export type GridFeedDynamicRendererProps = Pick<GridFeedProps, 'feedItems' | 'feedType' | 'finalizeTest' | 'highlightAbTest'> & {
3
3
  feedItem: ChunkItem[];
4
4
  };
@@ -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;
@@ -5,6 +5,7 @@ type FormSelectInputApi = {
5
5
  dataId: string;
6
6
  endpoint: string;
7
7
  key: string;
8
+ keyLength: number;
8
9
  };
9
10
  };
10
11
  export type FormSelectInputProps = UseControllerProps & Omit<SelectInputProps, 'onSelect' | 'options'> & FormSelectInputApi;
@@ -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;