@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.
- package/index.d.ts +6 -4
- package/index.js +136 -131
- package/index.mjs +69799 -68836
- package/lib/Authentication/Authentication.types.d.ts +12 -0
- package/lib/Authentication/LoginForm/LoginForm.d.ts +3 -0
- package/lib/Authentication/LoginForm/LoginForm.types.d.ts +8 -0
- package/lib/Authentication/LoginForm/LoginFormFields.d.ts +3 -0
- package/lib/Authentication/LoginForm/network.d.ts +6 -0
- package/lib/Authentication/PasswordForgotten/PasswordForgotten.d.ts +2 -0
- package/lib/Authentication/PasswordForgotten/PasswordForgotten.types.d.ts +4 -0
- package/lib/Authentication/PasswordForgotten/PasswordForgottenFormFields.d.ts +3 -0
- package/lib/Authentication/PasswordForgotten/network.d.ts +3 -0
- package/lib/Authentication/PasswordReset/PasswordReset.d.ts +6 -0
- package/lib/Authentication/PasswordReset/PasswordReset.types.d.ts +6 -0
- package/lib/Authentication/PasswordReset/PasswordResetFormFields.d.ts +3 -0
- package/lib/Authentication/PasswordReset/components/PasswordResetInstructions/PasswordResetInstructions.d.ts +4 -0
- package/lib/Authentication/PasswordReset/network.d.ts +3 -0
- package/lib/Authentication/PasswordReset/utils.d.ts +5 -0
- package/lib/{Registration/RegistrationFieldMappings/RegistrationFieldMappings.d.ts → Authentication/Registration/FieldMappings/FieldMappings.d.ts} +1 -1
- package/lib/Authentication/Registration/Register/Register.d.ts +3 -0
- package/lib/Authentication/Registration/Register/Register.types.d.ts +8 -0
- package/lib/Authentication/Registration/Register/components/InviteCard/InviteCard.d.ts +3 -0
- package/lib/Authentication/Registration/Register/components/InviteCard/InviteCard.types.d.ts +6 -0
- package/lib/Authentication/Registration/Registration.d.ts +3 -0
- package/lib/Authentication/Registration/Registration.types.d.ts +25 -0
- package/lib/Authentication/Registration/RegistrationCard/RegistrationCard.d.ts +3 -0
- package/lib/Authentication/Registration/RegistrationCard/RegistrationCard.types.d.ts +9 -0
- package/lib/{Registration → Authentication/Registration}/RegistrationForm/FieldMappings/FieldMappings.d.ts +1 -1
- package/lib/Authentication/Registration/RegistrationForm/RegistrationForm.d.ts +3 -0
- package/lib/Authentication/Registration/RegistrationForm/RegistrationForm.types.d.ts +8 -0
- package/lib/Authentication/Registration/RegistrationForm/Steps/Address.d.ts +3 -0
- package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/Email.d.ts +2 -2
- package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/Name.d.ts +1 -1
- package/lib/Authentication/Registration/RegistrationForm/network.d.ts +6 -0
- package/lib/Authentication/Registration/RegistrationForm/utils.d.ts +3 -0
- package/lib/{Registration → Authentication/Registration}/VerificationForm/FieldMappings/FieldMappings.d.ts +1 -1
- package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/Gps.d.ts +2 -2
- package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/InviteCode.d.ts +2 -2
- package/lib/Authentication/Registration/VerificationForm/Steps/Methods.d.ts +3 -0
- package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/PostalCode.d.ts +2 -2
- package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/PostalCodeRequested.d.ts +1 -1
- package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/Sms.d.ts +2 -2
- package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/SmsCode.d.ts +2 -2
- package/lib/Authentication/Registration/VerificationForm/VerificationForm.d.ts +3 -0
- package/lib/{Registration → Authentication/Registration}/VerificationForm/VerificationForm.types.d.ts +2 -2
- package/lib/{Registration → Authentication/Registration}/VerificationForm/network.d.ts +4 -4
- package/lib/{Registration → Authentication/Registration}/VerificationForm/utils.d.ts +2 -2
- package/lib/Authentication/Registration/utils.d.ts +8 -0
- package/lib/Authentication/components/AuthenticationCard/AuthenticationCard.d.ts +3 -0
- package/lib/Authentication/components/AuthenticationCard/AuthenticationCard.types.d.ts +12 -0
- package/lib/Authentication/components/DynamicScreen/DynamicScreen.d.ts +3 -0
- package/lib/Authentication/components/DynamicScreen/DynamicScreen.types.d.ts +26 -0
- package/lib/Authentication/components/DynamicScreen/utils.d.ts +2 -0
- package/lib/Authentication/components/EmailConfirmation/EmailConfirmation.d.ts +3 -0
- package/lib/Authentication/components/EmailConfirmation/EmailConfirmation.types.d.ts +5 -0
- package/lib/Authentication/components/ScreenCard/ScreenCard.d.ts +3 -0
- package/lib/Authentication/components/ScreenCard/ScreenCard.types.d.ts +16 -0
- package/lib/Authentication/components/ScreenLoading/ScreenLoading.d.ts +2 -0
- package/lib/Authentication/components/SuccessScreen/SuccessScreen.d.ts +4 -0
- package/lib/Authentication/components/index.d.ts +6 -0
- package/lib/Authentication/network.d.ts +3 -0
- package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types.d.ts +3 -0
- package/lib/Feed/GridFeed/GridFeed.d.ts +1 -1
- package/lib/Feed/GridFeed/GridFeed.types.d.ts +4 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.d.ts +1 -1
- package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.types.d.ts +2 -0
- package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts +1 -1
- package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.types.d.ts +2 -0
- package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.d.ts +1 -1
- package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.types.d.ts +1 -1
- package/lib/Forms/Fields/FormButton/FormButtonProps.d.ts +9 -5
- package/lib/Forms/Fields/FormSelectInput.d.ts +1 -0
- package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.d.ts +1 -1
- package/lib/Forms/Fields/PasswordField/PasswordField.d.ts +1 -1
- package/lib/Forms/Form/Form.types.d.ts +1 -1
- package/lib/Forms/Wizard/Wizard.types.d.ts +1 -1
- package/lib/utils/client.d.ts +2 -0
- package/lib/utils/hooks.d.ts +2 -2
- package/lib/utils/index.d.ts +4 -3
- package/lib/utils/server.d.ts +2 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/AuthenticationForm/AuthenticationForm.d.ts +0 -3
- package/lib/AuthenticationForm/AuthenticationForm.types.d.ts +0 -13
- package/lib/Register/Register.d.ts +0 -3
- package/lib/Register/Register.types.d.ts +0 -4
- package/lib/Registration/Registration.d.ts +0 -3
- package/lib/Registration/Registration.store.d.ts +0 -4
- package/lib/Registration/Registration.types.d.ts +0 -17
- package/lib/Registration/RegistrationCard/RegistrationCard.d.ts +0 -9
- package/lib/Registration/RegistrationForm/RegistrationForm.d.ts +0 -3
- package/lib/Registration/RegistrationForm/RegistrationForm.types.d.ts +0 -5
- package/lib/Registration/RegistrationForm/Steps/Address.d.ts +0 -2
- package/lib/Registration/RegistrationForm/network.d.ts +0 -4
- package/lib/Registration/VerificationForm/Steps/Methods.d.ts +0 -3
- package/lib/Registration/VerificationForm/VerificationForm.d.ts +0 -3
- package/lib/Registration/VerificationForm/data.d.ts +0 -553
- package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.d.ts +0 -3
- package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.types.d.ts +0 -3
- package/lib/Registration/components/MandatoryEmailConfirmation/utils.d.ts +0 -4
- package/lib/Registration/components/SuccessScreen/SuccessScreen.d.ts +0 -2
- package/lib/Registration/utils.d.ts +0 -2
- /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.d.ts +0 -0
- /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.types.d.ts +0 -0
- /package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/index.d.ts +0 -0
- /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,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,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,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,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,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,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
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormField, InferFormData, WizardStepT } from '
|
|
2
|
-
import { OnSubmitFunction } from '
|
|
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 '
|
|
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
|
-
import { FormField, InferFormData, WizardStepT } from '
|
|
2
|
-
import { OnSubmitFunction } from '
|
|
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;
|
package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/InviteCode.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormField, InferFormData, WizardStepT } from '
|
|
2
|
-
import { OnSubmitFunction } from '
|
|
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;
|
package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/PostalCode.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormField, InferFormData, WizardStepT } from '
|
|
2
|
-
import { OnSubmitFunction } from '
|
|
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 '
|
|
1
|
+
import { WizardStepT } from '../../../../Forms';
|
|
2
2
|
export declare const getPostalCodeRequested: () => WizardStepT;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormField, InferFormData, WizardStepT } from '
|
|
2
|
-
import { OnSubmitFunction } from '
|
|
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;
|
package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/SmsCode.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormField, InferFormData, WizardStepT } from '
|
|
2
|
-
import { OnSubmitFunction } from '
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VerificationMethods, VerificationSMSResponse } from '
|
|
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 '
|
|
2
|
-
import { FormField, InferFormData } from '
|
|
3
|
-
import { OnFormSubmitType } from '
|
|
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: (
|
|
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 '
|
|
2
|
-
import { FormField } from '
|
|
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,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,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,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;
|
package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types.d.ts
CHANGED
|
@@ -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: {
|
package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
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,
|
|
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;
|