@adyen/kyc-components 3.63.2 → 3.64.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/AccountSetupRejected-Dy_VeWhw.js +14 -0
- package/dist/{OKF6E45R-DJQ6WuJ0.js → CXEL7IU7-DXEnuiiT.js} +2 -2
- package/dist/CustomerSupport-CasBYndK.js +120 -0
- package/dist/{DebugModal-fAWDVtvl.js → DebugModal-IlmV_vyp.js} +6 -6
- package/dist/DecisionMakers-DXIKUq2C.js +220 -0
- package/dist/{WXAWMS3D-C0qahN6N.js → HASRA6WW-DysnKis4.js} +615 -514
- package/dist/{CPIOZS5X-BAPAsUnD.js → I3HPI4QX-CJrdsThE.js} +2 -2
- package/dist/{Introduction-imwEgL7W.js → Introduction-CW1frGWu.js} +1 -5
- package/dist/Review-DtIANMrI.js +73 -0
- package/dist/SingpassSelection-CnBicSOw.js +116 -0
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-CtLEZ35m.js → core-Coy1ocfj.js} +30623 -33323
- package/dist/{css-Byr67uS8.js → css-Dt3Xtm1p.js} +1 -1
- package/dist/{json-BOZMhevD.js → json-66NbIsmg.js} +1 -1
- package/dist/{plaintext-jm6guQOB.js → plaintext-ClS07N_Y.js} +1 -1
- package/dist/style.css +479 -467
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -0
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +17 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +17 -5
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +4 -0
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +7 -2
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +12 -0
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +13 -0
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +2 -0
- package/dist/types/api/types.d.ts +8 -3
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +6 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +44 -0
- package/dist/types/components/Business/forms/{Company/rules.d.ts → rules.d.ts} +4 -6
- package/dist/types/components/Business/hooks/useBusinessData/types.d.ts +1 -1
- package/dist/types/components/Business/hooks/useBusinessData/useBusinessData.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +2 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -1
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -3
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/useServiceAgreement.d.ts +1 -6
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -13
- package/dist/types/components/Individual/forms/Individual/types.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakers.d.ts +6 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +1 -4
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/types.d.ts +0 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -2
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -1
- package/dist/types/components/UnincorporatedPartnership/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +8 -0
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/index.d.ts +0 -4
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +0 -2
- package/dist/types/components/ui/atoms/Select/useSelectFocus.d.ts +21 -0
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +2 -1
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +6 -6
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +2 -1
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +4 -3
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
- package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +1 -3
- package/dist/types/context/ExperimentContext/types.d.ts +84 -4
- package/dist/types/context/StateContext/types.d.ts +2 -4
- package/dist/types/core/constants.d.ts +3 -0
- package/dist/types/core/models/api/contracts.d.ts +0 -1
- package/dist/types/core/models/api/legal-entity.d.ts +4 -5
- package/dist/types/core/models/api/organization.d.ts +2 -1
- package/dist/types/hooks/useComponentApi.d.ts +0 -4
- package/dist/types/stores/globalStore/globalStore.d.ts +4 -1
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/utils/api/processCapabilitites.d.ts +1 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +1 -3
- package/dist/types/utils/signals/useWatchingSignal.d.ts +9 -0
- package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +11 -0
- package/dist/{yaml-BZYqXoHq.js → yaml-B7DXCyLe.js} +1 -1
- package/package.json +17 -23
- package/dist/types/components/Business/forms/Company/Company.d.ts +0 -54
- package/dist/types/components/Business/forms/Company/types.d.ts +0 -30
- package/dist/types/components/Business/forms/CompanyType/CompanyType.d.ts +0 -4
- package/dist/types/components/Business/forms/CompanyType/types.d.ts +0 -9
- package/dist/types/components/Business/forms/CompanyType/validate.d.ts +0 -3
- package/dist/types/components/Business/mapping/companyKeyMappings.d.ts +0 -7
- package/dist/types/components/Business/mapping/mapApiDocumentToCompanyDocuments.d.ts +0 -2
- package/dist/types/components/Business/mapping/mapCompanyDocumentToApiDocument.d.ts +0 -3
- package/dist/types/components/Business/mapping/mapCompanyToLegalEntity.d.ts +0 -4
- package/dist/types/components/Business/mapping/mapLegalEntityToCompany.d.ts +0 -4
- package/dist/types/components/Business/tasks/CompanyDropin/CompanyDropin.d.ts +0 -2
- package/dist/types/components/Business/tasks/CompanyDropin/companyFormConfig.d.ts +0 -7
- package/dist/types/components/Business/tasks/CompanyDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Business/tasks/CompanyDropin/types.d.ts +0 -10
- package/dist/types/components/Shared/fields/TradingNameField/TradingNameField.d.ts +0 -3
- package/dist/types/components/Shared/fields/TradingNameField/fieldConfig.d.ts +0 -3
- package/dist/types/components/Shared/fields/TradingNameField/types.d.ts +0 -8
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +0 -5
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/validate.d.ts +0 -3
- package/dist/types/components/Shared/forms/CompanyRegistrationDetails/CompanyRegistrationDetails.d.ts +0 -4
- package/dist/types/components/Shared/forms/CompanyRegistrationDetails/types.d.ts +0 -19
- package/dist/types/components/SoleProprietorship/forms/SoleProp/SoleProp.d.ts +0 -33
- package/dist/types/components/SoleProprietorship/forms/SoleProp/types.d.ts +0 -33
- package/dist/types/components/SoleProprietorship/mapping/mapApiDocumentToSolePropDocuments.d.ts +0 -2
- package/dist/types/components/SoleProprietorship/mapping/mapLegalEntityToSoleProp.d.ts +0 -4
- package/dist/types/components/SoleProprietorship/mapping/mapSolePropDocumentToApiDocument.d.ts +0 -3
- package/dist/types/components/SoleProprietorship/mapping/mapSolePropToLegalEntity.d.ts +0 -4
- package/dist/types/components/SoleProprietorship/mapping/solePropKeyMappings.d.ts +0 -7
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/SolePropDropin.d.ts +0 -2
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/solePropFormConfig.d.ts +0 -5
- package/dist/types/context/StateContext/StateContextWatcher.d.ts +0 -2
- package/dist/types/core/services/componentApi/clear-company-data.d.ts +0 -2
- package/dist/types/core/services/componentApi/delete-transferInstrument.d.ts +0 -3
- package/dist/types/core/services/componentApi/validate-account-identification.d.ts +0 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReadonlySignal } from '@preact/signals';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a signal "watching" its given value. Whenever the value changes, the signal will update.
|
|
4
|
+
*
|
|
5
|
+
* `useWatchingSignal` is the inverse of {@link useSignalValue}.
|
|
6
|
+
*
|
|
7
|
+
* @param value
|
|
8
|
+
*/
|
|
9
|
+
export declare const useWatchingSignal: <T>(value: T) => ReadonlySignal<T>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from 'preact';
|
|
2
|
+
/**
|
|
3
|
+
* This is useful for when you want to figure out what effect a keyboard event would have on
|
|
4
|
+
* some arbitrary existing text, as if it were happening on an `<input>`'s value.
|
|
5
|
+
*
|
|
6
|
+
* This is not a perfect simulation, real input handling is much more complex.
|
|
7
|
+
*
|
|
8
|
+
* @param keyDownEvent the actual event which occurred, probably on some other element
|
|
9
|
+
* @param value the existing value of the input
|
|
10
|
+
*/
|
|
11
|
+
export declare const simulateTextChangeFromKeyboardEvent: (keyDownEvent: JSX.TargetedKeyboardEvent<HTMLElement>, value: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.64.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"adyen",
|
|
6
6
|
"adyen-kyc",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"prettier:fix": "prettier --config ./.prettierrc.json --ignore-unknown --write \"**/*\"",
|
|
117
117
|
"repo:setup": "bash ./scripts/first-time-setup.sh",
|
|
118
118
|
"start": "npm run dev",
|
|
119
|
-
"storybook": "
|
|
120
|
-
"storybook:build": "
|
|
119
|
+
"storybook": "storybook dev -p 6006 --no-version-updates",
|
|
120
|
+
"storybook:build": "storybook build",
|
|
121
121
|
"test": "vitest",
|
|
122
122
|
"test:run": "vitest --run",
|
|
123
123
|
"test:coverage": "vitest --coverage",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"classnames": "^2.5.1",
|
|
141
141
|
"container-query-polyfill": "^1.0.2",
|
|
142
142
|
"isomorphic-dompurify": "^2.17.0",
|
|
143
|
-
"monogon": "
|
|
143
|
+
"monogon": "0.2.2",
|
|
144
144
|
"named-slots": "^0.3.3",
|
|
145
145
|
"onfido-sdk-ui": "14.38.0",
|
|
146
146
|
"preact": "^10.25.4",
|
|
@@ -157,17 +157,13 @@
|
|
|
157
157
|
"@eslint/js": "^9.17.0",
|
|
158
158
|
"@playwright/test": "^1.48.2",
|
|
159
159
|
"@preact/preset-vite": "^2.9.3",
|
|
160
|
-
"@storybook/addon-a11y": "
|
|
161
|
-
"@storybook/addon-actions": "
|
|
162
|
-
"@storybook/addon-
|
|
163
|
-
"@storybook/addon-
|
|
164
|
-
"@storybook/
|
|
165
|
-
"@storybook/
|
|
166
|
-
"@storybook/
|
|
167
|
-
"@storybook/preact": "^8.4.0",
|
|
168
|
-
"@storybook/preact-vite": "^8.4.0",
|
|
169
|
-
"@storybook/test": "^8.4.0",
|
|
170
|
-
"@storybook/theming": "^8.4.0",
|
|
160
|
+
"@storybook/addon-a11y": "9.0.10",
|
|
161
|
+
"@storybook/addon-actions": "9.0.8",
|
|
162
|
+
"@storybook/addon-docs": "9.0.10",
|
|
163
|
+
"@storybook/addon-vitest": "9.0.10",
|
|
164
|
+
"@storybook/cli": "9.0.10",
|
|
165
|
+
"@storybook/preact": "9.0.10",
|
|
166
|
+
"@storybook/preact-vite": "9.0.10",
|
|
171
167
|
"@tanstack/eslint-plugin-query": "^5.62.1",
|
|
172
168
|
"@testing-library/jest-dom": "^6.5.0",
|
|
173
169
|
"@testing-library/preact": "^3.2.3",
|
|
@@ -176,9 +172,9 @@
|
|
|
176
172
|
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
177
173
|
"@typescript-eslint/parser": "^8.16.0",
|
|
178
174
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
179
|
-
"@vitest/browser": "^
|
|
180
|
-
"@vitest/coverage-v8": "^
|
|
181
|
-
"@vitest/ui": "^
|
|
175
|
+
"@vitest/browser": "^3.1.1",
|
|
176
|
+
"@vitest/coverage-v8": "^3.1.1",
|
|
177
|
+
"@vitest/ui": "^3.1.1",
|
|
182
178
|
"axios": "^1.8.2",
|
|
183
179
|
"chalk": "^5.4.0",
|
|
184
180
|
"concurrently": "^9.0.1",
|
|
@@ -211,6 +207,7 @@
|
|
|
211
207
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
212
208
|
"ruins": "^0.2.2",
|
|
213
209
|
"sass": "^1.79.3",
|
|
210
|
+
"storybook": "9.0.10",
|
|
214
211
|
"stylelint": "^15.9.0",
|
|
215
212
|
"stylelint-config-recommended-scss": "^11.0.0",
|
|
216
213
|
"stylelint-config-sass-guidelines": "^10.0.0",
|
|
@@ -221,17 +218,14 @@
|
|
|
221
218
|
"typescript-eslint": "^8.16.0",
|
|
222
219
|
"typescript-strict-plugin": "^2.2.0",
|
|
223
220
|
"vite": "^5.4.16",
|
|
224
|
-
"vite-node": "^
|
|
221
|
+
"vite-node": "^3.1.1",
|
|
225
222
|
"vite-plugin-svgr": "^4.3.0",
|
|
226
223
|
"vite-tsconfig-paths": "^4.2.3",
|
|
227
|
-
"vitest": "^
|
|
224
|
+
"vitest": "^3.1.1"
|
|
228
225
|
},
|
|
229
226
|
"overrides": {
|
|
230
227
|
"msw": {
|
|
231
228
|
"typescript": "^5"
|
|
232
|
-
},
|
|
233
|
-
"@storybook/preact-vite": {
|
|
234
|
-
"vite": "^4 || ^5"
|
|
235
229
|
}
|
|
236
230
|
},
|
|
237
231
|
"engines": {
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { FinancialInformationSchema } from '../../../Shared/forms/FinancialInformation/types';
|
|
2
|
-
import type { CompanyProps } from './types';
|
|
3
|
-
export declare const companyForms: {
|
|
4
|
-
readonly companyNameAndCountry: {
|
|
5
|
-
readonly formId: "companyNameAndCountry";
|
|
6
|
-
readonly formName: "basicInformation";
|
|
7
|
-
readonly fields: ("country" | "countryOfGoverningLaw" | "legalCompanyName")[];
|
|
8
|
-
};
|
|
9
|
-
readonly companyType: {
|
|
10
|
-
readonly formId: "companyType";
|
|
11
|
-
readonly formName: "companyStructure";
|
|
12
|
-
readonly fields: "entityType"[];
|
|
13
|
-
};
|
|
14
|
-
readonly companyRegistrationDetails: {
|
|
15
|
-
readonly formId: "companyRegistrationDetails";
|
|
16
|
-
readonly formName: "registrationDetails";
|
|
17
|
-
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../../Shared/fields/TradingNameField/types").TradingNameFieldSchema | keyof import("../../../Shared/fields/DBANameField/types").DBANameFieldSchema | keyof import("../../../Shared/fields/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../../Shared/fields/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../../Shared/fields/VatNumberField/types").VatNumberFieldSchema | keyof import("../../../Shared/fields/EInvoicingCodeField/types").EInvoicingCodeFieldSchema)[];
|
|
18
|
-
};
|
|
19
|
-
readonly companyRegistrationAddress: {
|
|
20
|
-
readonly formId: "companyRegistrationAddress";
|
|
21
|
-
readonly formName: "address";
|
|
22
|
-
readonly fields: readonly ["registrationAddress", "operationalAddress", "operationalAddressIsSame"];
|
|
23
|
-
};
|
|
24
|
-
readonly companyRegistrationDocument: {
|
|
25
|
-
readonly formId: "companyRegistrationDocument";
|
|
26
|
-
readonly formName: "registrationDocument";
|
|
27
|
-
readonly formHeading: "companyRegistrationDocumentFormHeading";
|
|
28
|
-
readonly formDescription: "companyRegistrationDocumentFormDescription";
|
|
29
|
-
readonly fields: readonly ["registrationDocument"];
|
|
30
|
-
};
|
|
31
|
-
readonly companyTaxDocument: {
|
|
32
|
-
readonly formId: "companyTaxDocument";
|
|
33
|
-
readonly formName: "taxDocument";
|
|
34
|
-
readonly formHeading: "companyTaxDocumentFormHeading";
|
|
35
|
-
readonly formDescription: "companyTaxDocumentFormDescription";
|
|
36
|
-
readonly fields: readonly ["taxDocument"];
|
|
37
|
-
};
|
|
38
|
-
readonly companyProofOfDirectorDocument: {
|
|
39
|
-
readonly formId: "companyProofOfDirectorDocument";
|
|
40
|
-
readonly formName: "proofOfDirector";
|
|
41
|
-
readonly formHeading: "uploadYourOrganizationProofOfDirector";
|
|
42
|
-
readonly formDescription: "weNeedAnOfficialDocument";
|
|
43
|
-
readonly fields: readonly ["proofOfDirector"];
|
|
44
|
-
};
|
|
45
|
-
readonly companyFinancialInformation: {
|
|
46
|
-
readonly formId: "companyFinancialInformation";
|
|
47
|
-
readonly formName: "financialInformation";
|
|
48
|
-
readonly formHeading: "companyFinancialInformationFormHeading";
|
|
49
|
-
readonly formDescription: "companyFinancialInformationFormDescription";
|
|
50
|
-
readonly fields: (keyof FinancialInformationSchema)[];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare const companyDocumentForms: ("companyRegistrationDocument" | "companyTaxDocument" | "companyProofOfDirectorDocument")[];
|
|
54
|
-
export declare function Company(props: CompanyProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { CapabilityName } from '../../../../core/models/api/capability';
|
|
2
|
-
import type { CountryCode } from '../../../../core/models/country-code';
|
|
3
|
-
import type { FormModel } from '../../../../core/models/form';
|
|
4
|
-
import type { BaseOuterFormProps } from '../../../../hooks/useForm/types';
|
|
5
|
-
import type { CompanyNameAndCountrySchema } from '../../../Shared/forms/CompanyNameAndCountry/types';
|
|
6
|
-
import type { CompanyRegistrationDetailsSchema } from '../../../Shared/forms/CompanyRegistrationDetails/types';
|
|
7
|
-
import type { DocumentUploadSchema } from '../../../Shared/forms/DocumentUpload/types';
|
|
8
|
-
import type { FinancialInformationSchema } from '../../../Shared/forms/FinancialInformation/types';
|
|
9
|
-
import type { RegistrationAddressSchema } from '../../../Shared/forms/RegistrationAddress/types';
|
|
10
|
-
import type { DropinAPIHandlers } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
11
|
-
import type { CompanyTypeSchema } from '../CompanyType/types';
|
|
12
|
-
export interface CompanySchema {
|
|
13
|
-
companyRegistrationDetails?: CompanyRegistrationDetailsSchema;
|
|
14
|
-
companyType?: CompanyTypeSchema;
|
|
15
|
-
companyRegistrationAddress?: RegistrationAddressSchema;
|
|
16
|
-
companyNameAndCountry?: CompanyNameAndCountrySchema;
|
|
17
|
-
companyRegistrationDocument?: DocumentUploadSchema<'registrationDocument'>;
|
|
18
|
-
companyTaxDocument?: DocumentUploadSchema<'taxDocument'>;
|
|
19
|
-
companyProofOfDirectorDocument?: DocumentUploadSchema<'proofOfDirector'>;
|
|
20
|
-
companyFinancialInformation?: FinancialInformationSchema;
|
|
21
|
-
}
|
|
22
|
-
export interface CompanyProps extends BaseOuterFormProps<CompanySchema> {
|
|
23
|
-
capabilities?: CapabilityName[];
|
|
24
|
-
activeForm?: FormModel;
|
|
25
|
-
forms?: FormModel[];
|
|
26
|
-
onCountryChange?: (country: CountryCode) => void;
|
|
27
|
-
handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
|
|
28
|
-
handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
|
|
29
|
-
isTopLevelEntity: boolean;
|
|
30
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import './CompanyType.scss';
|
|
2
|
-
import type { CompanyTypeProps, CompanyTypeSchema } from './types';
|
|
3
|
-
export declare const companyTypeFields: Array<keyof CompanyTypeSchema>;
|
|
4
|
-
export declare function CompanyType(props: CompanyTypeProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
|
|
2
|
-
import type { CountryCode } from '../../../../core/models/country-code';
|
|
3
|
-
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
4
|
-
export interface CompanyTypeSchema {
|
|
5
|
-
entityType?: CompanyTypesValue;
|
|
6
|
-
}
|
|
7
|
-
export interface CompanyTypeProps extends BaseInnerFormProps<CompanyTypeSchema> {
|
|
8
|
-
country: CountryCode;
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { LegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
|
-
import type { DocumentMappingRecord, MappingRecord } from '../../../utils/mapping/mappingRecord';
|
|
3
|
-
import type { CompanySchema } from '../forms/Company/types';
|
|
4
|
-
export declare const companyComponentsKeyMapping: MappingRecord<CompanySchema, Pick<LegalEntity, 'organization'>>;
|
|
5
|
-
export declare const companyApiKeyMapping: MappingRecord<Pick<LegalEntity, 'organization'>, CompanySchema>;
|
|
6
|
-
export declare const companyDocumentMapping: DocumentMappingRecord<CompanySchema>;
|
|
7
|
-
export declare const remediationCompanyApiKeyMapping: MappingRecord<Pick<LegalEntity, 'organization'>, CompanySchema> & DocumentMappingRecord<CompanySchema>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExperimentName } from '../../../context/ExperimentContext/types';
|
|
2
|
-
import type { LegalEntity } from '../../../core/models/api/legal-entity';
|
|
3
|
-
import type { CompanySchema } from '../forms/Company/types';
|
|
4
|
-
export declare const mapCompanyToLegalEntity: (data: CompanySchema, isExperimentEnabled?: (key: ExperimentName) => boolean) => LegalEntity;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExperimentName } from '../../../context/ExperimentContext/types';
|
|
2
|
-
import type { LegalEntity } from '../../../core/models/api/legal-entity';
|
|
3
|
-
import type { CompanySchema } from '../forms/Company/types';
|
|
4
|
-
export declare const mapLegalEntityToCompany: (legalEntity: LegalEntity, isExperimentEnabled?: (key: ExperimentName) => boolean) => CompanySchema;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { CompanyDropinProps } from './types';
|
|
2
|
-
export declare function CompanyDropin({ country: parentCountry, problems: propProblems, hideSidebar, taskName, capabilities, taskType, associationDetail, parentLegalEntity, legalEntityResponse, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onChange, trustedFields, }: CompanyDropinProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
|
|
2
|
-
import type { PerCountryFormConfiguration, PerScenarioFormConfiguration } from '../../../../core/models/form-configuration';
|
|
3
|
-
import type { BusinessRules } from '../../forms/Company/rules';
|
|
4
|
-
import type { CompanySchema } from '../../forms/Company/types';
|
|
5
|
-
export declare const companyTypeOptions: CompanyTypesValue[];
|
|
6
|
-
export declare const companyFieldsPerScenario: PerScenarioFormConfiguration<CompanySchema, keyof BusinessRules>;
|
|
7
|
-
export declare const companyCountryConfig: PerCountryFormConfiguration<CompanySchema>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
2
|
-
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
3
|
-
import type { TrustMember } from '../../../Trust/tasks/TrustMembers/types';
|
|
4
|
-
import type { CompanyProps, CompanySchema } from '../../forms/Company/types';
|
|
5
|
-
export interface CompanyDropinProps extends Omit<CompanyProps, 'isTopLevelEntity'>, DropinAPIHandlers, DropinProps {
|
|
6
|
-
parentLegalEntity?: ExistingLegalEntity;
|
|
7
|
-
associationDetail?: TrustMember;
|
|
8
|
-
isTargetLegalEntityType?: boolean;
|
|
9
|
-
onSubmit?: (company: CompanySchema) => void;
|
|
10
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { TradingNameFieldProps, TradingNameFieldSchema } from './types';
|
|
2
|
-
export declare const TRADING_NAME_FIELD: Array<keyof TradingNameFieldSchema>;
|
|
3
|
-
export declare function TradingNameField({ data, valid, errors, labels, readonly, handleChangeFor, legalCompanyName, }: TradingNameFieldProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
2
|
-
export interface TradingNameFieldSchema {
|
|
3
|
-
tradingName?: string | undefined;
|
|
4
|
-
sameNameAsLegalName?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface TradingNameFieldProps extends BaseFormFieldProps<TradingNameFieldSchema> {
|
|
7
|
-
legalCompanyName?: string;
|
|
8
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { CompanyNameAndCountryProps, CompanyNameAndCountrySchema } from './types';
|
|
2
|
-
export declare const companyNameAndCountryFields: Array<keyof CompanyNameAndCountrySchema>;
|
|
3
|
-
declare function CompanyNameAndCountry(props: CompanyNameAndCountryProps): import("preact/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const MemoizedCompanyNameAndCountry: typeof CompanyNameAndCountry;
|
|
5
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import './CompanyRegistrationDetails.scss';
|
|
2
|
-
import type { CompanyRegistrationDetailsProps, CompanyRegistrationDetailsSchema } from './types';
|
|
3
|
-
export declare const companyRegistrationDetailsFields: Array<keyof CompanyRegistrationDetailsSchema>;
|
|
4
|
-
export declare function CompanyRegistrationDetails(props: CompanyRegistrationDetailsProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
|
|
2
|
-
import type { CountryCode } from '../../../../core/models/country-code';
|
|
3
|
-
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
4
|
-
import type { BusinessRegistrationNumberFieldSchema } from '../../fields/BusinessRegistrationNumberField/types';
|
|
5
|
-
import type { DateOfIncorporationFieldSchema } from '../../fields/DateOfIncorporationField/types';
|
|
6
|
-
import type { DBANameFieldSchema } from '../../fields/DBANameField/types';
|
|
7
|
-
import type { EInvoicingCodeFieldSchema } from '../../fields/EInvoicingCodeField/types';
|
|
8
|
-
import type { StockExchangeMICFieldSchema } from '../../fields/StockExchangeMICField/types';
|
|
9
|
-
import type { StockISINFieldSchema } from '../../fields/StockISINField/types';
|
|
10
|
-
import type { StockTickerSymbolFieldSchema } from '../../fields/StockTickerSymbol/types';
|
|
11
|
-
import type { TaxInformationFieldSchema } from '../../fields/TaxInformationField/types';
|
|
12
|
-
import type { TradingNameFieldSchema } from '../../fields/TradingNameField/types';
|
|
13
|
-
import type { VatNumberFieldSchema } from '../../fields/VatNumberField/types';
|
|
14
|
-
export type CompanyRegistrationDetailsSchema = TradingNameFieldSchema & DBANameFieldSchema & BusinessRegistrationNumberFieldSchema & TaxInformationFieldSchema & VatNumberFieldSchema & StockExchangeMICFieldSchema & StockISINFieldSchema & StockTickerSymbolFieldSchema & DateOfIncorporationFieldSchema & EInvoicingCodeFieldSchema;
|
|
15
|
-
export interface CompanyRegistrationDetailsProps extends BaseInnerFormProps<CompanyRegistrationDetailsSchema> {
|
|
16
|
-
companyType?: CompanyTypesValue;
|
|
17
|
-
country?: CountryCode;
|
|
18
|
-
legalName?: string;
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { FinancialInformationSchema } from '../../../Shared/forms/FinancialInformation/types';
|
|
2
|
-
import type { SolePropProps } from './types';
|
|
3
|
-
export declare const solePropForms: {
|
|
4
|
-
readonly solePropNameAndCountry: {
|
|
5
|
-
readonly formId: "solePropNameAndCountry";
|
|
6
|
-
readonly formName: "basicInformation";
|
|
7
|
-
readonly fields: ("country" | "countryOfGoverningLaw" | "legalCompanyName")[];
|
|
8
|
-
};
|
|
9
|
-
readonly solePropRegistrationDetails: {
|
|
10
|
-
readonly formId: "solePropRegistrationDetails";
|
|
11
|
-
readonly formName: "registrationDetails";
|
|
12
|
-
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../../Shared/fields/TradingNameField/types").TradingNameFieldSchema | keyof import("../../../Shared/fields/DBANameField/types").DBANameFieldSchema | keyof import("../../../Shared/fields/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../../Shared/fields/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../../Shared/fields/VatNumberField/types").VatNumberFieldSchema | keyof import("../../../Shared/fields/EInvoicingCodeField/types").EInvoicingCodeFieldSchema)[];
|
|
13
|
-
};
|
|
14
|
-
readonly solePropRegistrationAddress: {
|
|
15
|
-
readonly formId: "solePropRegistrationAddress";
|
|
16
|
-
readonly formName: "registrationAddress";
|
|
17
|
-
readonly fields: string[];
|
|
18
|
-
};
|
|
19
|
-
readonly solePropConstitutionalDocument: {
|
|
20
|
-
readonly formId: "solePropConstitutionalDocument";
|
|
21
|
-
readonly formName: "constitutionalDocument";
|
|
22
|
-
readonly fields: readonly ["constitutionalDocument"];
|
|
23
|
-
};
|
|
24
|
-
readonly solePropFinancialInformation: {
|
|
25
|
-
readonly formId: "solePropFinancialInformation";
|
|
26
|
-
readonly formName: "financialInformation";
|
|
27
|
-
readonly formHeading: "companyFinancialInformationFormHeading";
|
|
28
|
-
readonly formDescription: "companyFinancialInformationFormDescription";
|
|
29
|
-
readonly fields: (keyof FinancialInformationSchema)[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare const solePropDocumentFormId: "solePropConstitutionalDocument";
|
|
33
|
-
export declare function SoleProp(props: SolePropProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { CapabilityName } from '../../../../core/models/api/capability';
|
|
2
|
-
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
3
|
-
import type { CountryCode } from '../../../../core/models/country-code';
|
|
4
|
-
import type { FormModel } from '../../../../core/models/form';
|
|
5
|
-
import type { BaseOuterFormProps } from '../../../../hooks/useForm/types';
|
|
6
|
-
import type { CompanyNameAndCountrySchema } from '../../../Shared/forms/CompanyNameAndCountry/types';
|
|
7
|
-
import type { CompanyRegistrationDetailsSchema } from '../../../Shared/forms/CompanyRegistrationDetails/types';
|
|
8
|
-
import type { DocumentUploadSchema } from '../../../Shared/forms/DocumentUpload/types';
|
|
9
|
-
import type { FinancialInformationSchema } from '../../../Shared/forms/FinancialInformation/types';
|
|
10
|
-
import type { RegistrationAddressSchema } from '../../../Shared/forms/RegistrationAddress/types';
|
|
11
|
-
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
12
|
-
export type SolePropNameAndCountrySchema = CompanyNameAndCountrySchema;
|
|
13
|
-
export type SolePropRegistrationDetailsSchema = CompanyRegistrationDetailsSchema;
|
|
14
|
-
export interface SolePropSchema {
|
|
15
|
-
solePropNameAndCountry?: SolePropNameAndCountrySchema;
|
|
16
|
-
solePropRegistrationDetails?: SolePropRegistrationDetailsSchema;
|
|
17
|
-
solePropRegistrationAddress?: RegistrationAddressSchema;
|
|
18
|
-
solePropConstitutionalDocument?: DocumentUploadSchema<'constitutionalDocument'>;
|
|
19
|
-
solePropFinancialInformation?: FinancialInformationSchema;
|
|
20
|
-
}
|
|
21
|
-
export interface SolePropProps extends BaseOuterFormProps<SolePropSchema> {
|
|
22
|
-
capabilities?: CapabilityName[];
|
|
23
|
-
activeForm?: FormModel;
|
|
24
|
-
forms?: FormModel[];
|
|
25
|
-
country: CountryCode;
|
|
26
|
-
parentLegalEntity?: ExistingLegalEntity;
|
|
27
|
-
onCountryChange?(country: string): void;
|
|
28
|
-
handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
|
|
29
|
-
handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
|
|
30
|
-
}
|
|
31
|
-
export interface SolePropDropinProps extends SolePropProps, DropinAPIHandlers, DropinProps {
|
|
32
|
-
onSubmit?: (data: SolePropSchema) => void;
|
|
33
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExperimentName } from '../../../context/ExperimentContext/types';
|
|
2
|
-
import type { LegalEntity } from '../../../core/models/api/legal-entity';
|
|
3
|
-
import type { SolePropSchema } from '../forms/SoleProp/types';
|
|
4
|
-
export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity, isExperimentEnabled: (key: ExperimentName) => boolean) => SolePropSchema;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExperimentName } from '../../../context/ExperimentContext/types';
|
|
2
|
-
import type { LegalEntity } from '../../../core/models/api/legal-entity';
|
|
3
|
-
import type { SolePropSchema } from '../forms/SoleProp/types';
|
|
4
|
-
export declare const mapSolePropToLegalEntity: (data: SolePropSchema, isExperimentEnabled: (key: ExperimentName) => boolean) => LegalEntity;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { LegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
|
-
import type { DocumentMappingRecord, MappingRecord } from '../../../utils/mapping/mappingRecord';
|
|
3
|
-
import type { SolePropSchema } from '../forms/SoleProp/types';
|
|
4
|
-
export declare const solePropComponentsKeyMapping: MappingRecord<SolePropSchema, Pick<LegalEntity, 'soleProprietorship'>>;
|
|
5
|
-
export declare const solePropApiKeyMapping: MappingRecord<Pick<LegalEntity, 'soleProprietorship'>, SolePropSchema>;
|
|
6
|
-
export declare const solePropDocumentMapping: DocumentMappingRecord<SolePropSchema>;
|
|
7
|
-
export declare const remediationSolePropKeyMapping: MappingRecord<Pick<LegalEntity, 'soleProprietorship'>, SolePropSchema> & DocumentMappingRecord<SolePropSchema>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { SolePropDropinProps } from '../../forms/SoleProp/types';
|
|
2
|
-
export declare function SolePropDropin({ problems: problemsProp, capabilities, country: externalCountry, parentLegalEntity, legalEntityResponse, hideSidebar, onSubmit: onExternalSubmit, onChange, taskType, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCreateLegalEntity, }: SolePropDropinProps): import("preact/jsx-runtime").JSX.Element;
|
package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/solePropFormConfig.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PerCountryFormConfiguration, PerScenarioFormConfiguration } from '../../../../core/models/form-configuration';
|
|
2
|
-
import type { BusinessRules } from '../../../Business/forms/Company/rules';
|
|
3
|
-
import type { SolePropSchema } from '../../forms/SoleProp/types';
|
|
4
|
-
export declare const solePropFieldsPerScenario: PerScenarioFormConfiguration<SolePropSchema, keyof BusinessRules>;
|
|
5
|
-
export declare const solePropCountryConfig: PerCountryFormConfiguration<SolePropSchema>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ExistingTransferInstrument } from '../../models/api/transfer-instrument';
|
|
2
|
-
import type { ComponentApiRequestContext } from '../types';
|
|
3
|
-
export declare const deleteTransferInstrument: (context: ComponentApiRequestContext, transferInstrumentId: ExistingTransferInstrument["id"]) => Promise<ExistingTransferInstrument>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AccountIdentification } from '../../models/api/accountIdentification';
|
|
2
|
-
import type { AccountValidationResponse } from '../../models/errors/validation-error';
|
|
3
|
-
import type { ComponentApiRequestContext } from '../types';
|
|
4
|
-
export declare const validateAccountIdentification: (context: ComponentApiRequestContext, payoutAccountDetails: AccountIdentification) => Promise<AccountValidationResponse>;
|