@adyen/kyc-components 2.18.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/adyen-kyc-components.es.js +612 -338
- package/dist/style.css +12 -11
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +16 -0
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +11 -0
- package/dist/types/components/Individual/types.d.ts +2 -1
- package/dist/types/components/Introduction/Introduction.d.ts +10 -0
- package/dist/types/components/Introduction/IntroductionScreen.d.ts +8 -0
- package/dist/types/components/Introduction/constants.d.ts +3 -0
- package/dist/types/components/Introduction/copy.d.ts +14 -0
- package/dist/types/components/Introduction/types.d.ts +12 -0
- package/dist/types/components/TaskList/types.d.ts +1 -1
- package/dist/types/components/index.d.ts +4 -2
- package/dist/types/components/internal/AccountHolder/types.d.ts +1 -1
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/core/Context/SettingsContext/types.d.ts +6 -2
- package/dist/types/core/SDKValidation/index.d.ts +1 -1
- package/dist/types/core/Services/componentApi/create-legal-entity.d.ts +3 -0
- package/dist/types/core/Services/componentApi/index.d.ts +2 -0
- package/dist/types/core/Services/componentApi/update-legal-entity.d.ts +3 -0
- package/dist/types/core/core.d.ts +1 -1
- package/dist/types/core/hooks/introduction/useCanSeeIntroduction.d.ts +5 -0
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +7 -0
- package/dist/types/core/hooks/introduction/useIntroductionScreens.d.ts +8 -0
- package/dist/types/core/hooks/introduction/useShouldShowIntroduction.d.ts +5 -0
- package/dist/types/core/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/core/hooks/useComponentApi.d.ts +6 -0
- package/dist/types/core/hooks/useLegalEntityType.d.ts +6 -0
- package/dist/types/core/hooks/useLocalStorage.d.ts +5 -2
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/core/models/errors/entity-problems.d.ts +1 -1
- package/dist/types/core/models/form-rules.d.ts +1 -0
- package/dist/types/language/config.d.ts +46 -27
- package/dist/types/utils/decision-maker-roles.d.ts +1 -1
- package/dist/types/utils/entity-status-util.d.ts +2 -2
- package/dist/types/utils/trust-util.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/components/EmbeddedDropins/TransferInstrumentComponent/TransferInstrumentComponent.d.ts +0 -11
- package/dist/types/components/TaskIntros/TaskIntro.d.ts +0 -8
- package/dist/types/components/TaskIntros/TaskIntros.d.ts +0 -10
- package/dist/types/components/TaskIntros/copy.d.ts +0 -14
- package/dist/types/components/TaskIntros/types.d.ts +0 -8
- package/dist/types/core/hooks/taskIntros.d.ts +0 -10
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
|
-
import EventEmitter from '../../EventEmitter';
|
|
3
|
-
export interface TransferInstrumentComponentProps {
|
|
4
|
-
legalEntityId: ExistingLegalEntity['id'];
|
|
5
|
-
transferInstrumentId?: string;
|
|
6
|
-
onChange?(): void;
|
|
7
|
-
onSubmit?(): void;
|
|
8
|
-
handleBackClick?(): void;
|
|
9
|
-
eventEmitter?: EventEmitter;
|
|
10
|
-
}
|
|
11
|
-
export declare function TransferInstrumentComponent({ legalEntityId, transferInstrumentId, onChange, onSubmit, handleBackClick, eventEmitter, }: TransferInstrumentComponentProps): import("preact").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
2
|
-
import { IntroTypes } from './types';
|
|
3
|
-
export interface TaskIntroProps {
|
|
4
|
-
intro: IntroTypes;
|
|
5
|
-
legalEntityType: LegalEntityType;
|
|
6
|
-
number?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const TaskIntro: ({ intro, legalEntityType, number }: TaskIntroProps) => import("preact").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import './_task-intros.component.scss';
|
|
2
|
-
import type { JSX } from 'preact';
|
|
3
|
-
import { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
4
|
-
import { TaskTypes } from '../TaskList/types';
|
|
5
|
-
export interface TaskIntrosProps {
|
|
6
|
-
legalEntityType: LegalEntityType;
|
|
7
|
-
onExitIntro: () => void;
|
|
8
|
-
tasks: TaskTypes[];
|
|
9
|
-
}
|
|
10
|
-
export declare const TaskIntros: ({ legalEntityType, onExitIntro, tasks, }: TaskIntrosProps) => JSX.Element | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
2
|
-
import { TranslationKey, Translations } from '../../language/types';
|
|
3
|
-
import { IntroTypes } from './types';
|
|
4
|
-
export declare enum IntroDescriptionTranslationKeyElements {
|
|
5
|
-
ListItem = "LI",
|
|
6
|
-
Paragraph = "P"
|
|
7
|
-
}
|
|
8
|
-
interface IntroDescriptionTranslationKeyFactors {
|
|
9
|
-
elementType?: IntroDescriptionTranslationKeyElements;
|
|
10
|
-
legalEntityType: LegalEntityType;
|
|
11
|
-
introType: IntroTypes;
|
|
12
|
-
}
|
|
13
|
-
export declare const getIntroDescriptionTranslationKeys: (translations: Translations, factors: IntroDescriptionTranslationKeyFactors) => TranslationKey[];
|
|
14
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TaskTypes } from '../TaskList/types';
|
|
2
|
-
export declare const taskIntrosInOrder: readonly [TaskTypes.COMPANY, TaskTypes.DECISION_MAKER, TaskTypes.INDIVIDUAL, TaskTypes.PAYOUT];
|
|
3
|
-
export type TaskTypesWithIntro = (typeof taskIntrosInOrder)[number];
|
|
4
|
-
export declare const enum ExtraIntroTypes {
|
|
5
|
-
PROLOGUE = "prologue",
|
|
6
|
-
EPILOGUE = "epilogue"
|
|
7
|
-
}
|
|
8
|
-
export type IntroTypes = TaskTypesWithIntro | `${ExtraIntroTypes}`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ExistingLegalEntity } from '../models/api/legal-entity';
|
|
2
|
-
export declare const isIntroForLE: (legalEntity: ExistingLegalEntity) => boolean;
|
|
3
|
-
export declare const useCanSeeIntro: (legalEntity: ExistingLegalEntity) => {
|
|
4
|
-
canSeeIntro: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const useHasSeenIntro: (legalEntityId: string) => {
|
|
7
|
-
hasSeenIntro: boolean;
|
|
8
|
-
setHasSeenIntro: (value: boolean | ((prevState: boolean) => boolean)) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const useShouldShowIntro: (legalEntity: ExistingLegalEntity) => boolean;
|