@adyen/kyc-components 2.41.2 → 2.41.3
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 +334 -526
- package/dist/es/{arrow-left-CCxYxfCP.js → arrow-left-CwJQyOFz.js} +1 -1
- package/dist/es/{arrow-right-DF4Qe-8E.js → arrow-right-Cs_AKUOH.js} +1 -1
- package/dist/es/{bin-CGwewvcn.js → bin-8yaAerXc.js} +1 -1
- package/dist/es/{check-CeSLN4_9.js → check-_cOIMziL.js} +1 -1
- package/dist/es/{checkmark-DEh9MPYR.js → checkmark-CZpv8i5a.js} +1 -1
- package/dist/es/{checkmark-small-D_9HLctx.js → checkmark-small-C4TPve-W.js} +1 -1
- package/dist/es/{chevron-down-BzENwYSf.js → chevron-down-CwS2tE_6.js} +1 -1
- package/dist/es/{chevron-right-DczMHcvL.js → chevron-right-B8cQLres.js} +1 -1
- package/dist/es/{chevron-up-BLtnROd5.js → chevron-up-DccG0tVR.js} +1 -1
- package/dist/es/{company-2-JG34IScE.js → company-2-Cof0usfn.js} +1 -1
- package/dist/es/{company-D5_F_6SW.js → company-BKO80hWm.js} +1 -1
- package/dist/es/{contract-C6wDy9zU.js → contract-DrX5y2Qf.js} +1 -1
- package/dist/es/{controlling-person-C4KoSyi2.js → controlling-person-B_dn0b9H.js} +1 -1
- package/dist/es/{cross-BadGfrgB.js → cross-aFMJCrLf.js} +1 -1
- package/dist/es/{decision-maker-Cef3-OzY.js → decision-maker-28_rW1ah.js} +1 -1
- package/dist/es/{document-Cg4kZHpA.js → document-Bn_3PIDG.js} +1 -1
- package/dist/es/{download-DGC5_Bxe.js → download-DgAZobJV.js} +1 -1
- package/dist/es/{edit--fDhojib.js → edit-Dg19Ah77.js} +1 -1
- package/dist/es/{field-error-WElEN1mN.js → field-error-DkFiF_Cv.js} +1 -1
- package/dist/es/{info-circle-DkHN1ugA.js → info-circle-CXFfd_nO.js} +1 -1
- package/dist/es/{light-bulb-DEUhbRWP.js → light-bulb-CQ29JPA7.js} +1 -1
- package/dist/es/{location-B1Til-7Q.js → location-DmmjAv9A.js} +1 -1
- package/dist/es/{more-horiz-BieZKfy3.js → more-horiz-dyZQKaOn.js} +1 -1
- package/dist/es/{new-document-BEAJnXCG.js → new-document-CeV8zHP8.js} +1 -1
- package/dist/es/{owners-D1pksb86.js → owners-C1dyQqRO.js} +1 -1
- package/dist/es/{payout-BFiI--HY.js → payout-B-c43MDS.js} +1 -1
- package/dist/es/{pci-DMQLRoAn.js → pci-CVqIvwR-.js} +1 -1
- package/dist/es/{plus-DAnbeoyS.js → plus-BUH0nzS_.js} +1 -1
- package/dist/es/{remove-CEmd9YX7.js → remove-Bor5X8Xu.js} +1 -1
- package/dist/es/{review-CeQeKHXH.js → review-DcoDSRJT.js} +1 -1
- package/dist/es/{search-hf3HRVbu.js → search-SGLIdnsr.js} +1 -1
- package/dist/es/{signatory-BVoLPYPu.js → signatory-BMaWV_18.js} +1 -1
- package/dist/es/{store-D2z639xh.js → store-N4c2LHJ_.js} +1 -1
- package/dist/es/{trust-CpcaQaV7.js → trust-BcVDhtGL.js} +1 -1
- package/dist/es/{user-D6swzlYs.js → user-C8STPF6-.js} +1 -1
- package/dist/es/{user-business-CwS5j1qX.js → user-business-Dcvcw8gB.js} +1 -1
- package/dist/es/{users-3-BdjQ9rEA.js → users-3-D3QDBEk-.js} +1 -1
- package/dist/es/{warning-99uFf1WU.js → warning-Dxxpni4H.js} +1 -1
- package/dist/es/{wrong-1wvh7nZe.js → wrong-DNwa4zZR.js} +1 -1
- package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +5 -5
- package/dist/types/components/CompanyBasics/types.d.ts +3 -3
- package/dist/types/components/CompanyLookup/types.d.ts +4 -4
- package/dist/types/components/Individual/types.d.ts +2 -2
- package/dist/types/components/PayoutDetails/types.d.ts +2 -2
- package/dist/types/components/TaskList/types.d.ts +2 -2
- package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +2 -2
- package/dist/types/components/internal/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/internal/Remove/types.d.ts +3 -3
- package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -2
- package/dist/types/components/internal/VatNumberField/types.d.ts +2 -2
- package/dist/types/core/Context/QueryContext/QueryClient.d.ts +2 -0
- package/dist/types/core/Context/QueryContext/QueryClientProvider.d.ts +4 -0
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +1 -1
- package/dist/types/core/hooks/singpass/useHasSeenSingpassSelection.d.ts +1 -1
- package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -2
- package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +3 -3
- package/dist/types/core/hooks/useForm/types.d.ts +8 -8
- package/dist/types/core/hooks/useFormComposer.d.ts +2 -2
- package/dist/types/core/hooks/useLocalStorage.d.ts +2 -2
- package/dist/types/utils/useStateFromProp.d.ts +2 -2
- package/package.json +8 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { Translatable, TranslationKey } from '../../../language/types';
|
|
3
3
|
import type { Mask } from '../../../utils/masking/maskTypes';
|
|
4
4
|
import type { ValidationRuleResult, ValidatorMode, ValidatorRules } from '../../../utils/validation/types';
|
|
@@ -108,13 +108,13 @@ export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema
|
|
|
108
108
|
};
|
|
109
109
|
evaluateConfiguration?: (data: FormSchema) => void;
|
|
110
110
|
setCustomFormNavigationHandlers?(formId: string, onNext: () => void, onBack: () => void): void;
|
|
111
|
-
setHideDropinLayout?: StateUpdater<boolean
|
|
112
|
-
setHideNavigation?: StateUpdater<boolean
|
|
113
|
-
setHideFooter?: StateUpdater<boolean
|
|
114
|
-
setHideOnHomeButton?: StateUpdater<boolean
|
|
115
|
-
setHideBackButton?: StateUpdater<boolean
|
|
116
|
-
setSubmitButtonLabel?: StateUpdater<TranslationKey
|
|
117
|
-
setSkipSubmit?: StateUpdater<boolean
|
|
111
|
+
setHideDropinLayout?: Dispatch<StateUpdater<boolean>>;
|
|
112
|
+
setHideNavigation?: Dispatch<StateUpdater<boolean>>;
|
|
113
|
+
setHideFooter?: Dispatch<StateUpdater<boolean>>;
|
|
114
|
+
setHideOnHomeButton?: Dispatch<StateUpdater<boolean>>;
|
|
115
|
+
setHideBackButton?: Dispatch<StateUpdater<boolean>>;
|
|
116
|
+
setSubmitButtonLabel?: Dispatch<StateUpdater<TranslationKey>>;
|
|
117
|
+
setSkipSubmit?: Dispatch<StateUpdater<boolean>>;
|
|
118
118
|
}
|
|
119
119
|
export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema> {
|
|
120
120
|
formVerificationErrors?: FormVerificationErrors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { TranslationKey } from '../../language/types';
|
|
3
3
|
import type { EntityProblems } from '../models/errors/entity-problems';
|
|
4
4
|
import type { FormModelWithValidity } from '../models/form';
|
|
@@ -10,7 +10,7 @@ export interface FormComposer {
|
|
|
10
10
|
gotoFormByFormIndex(index: number): void;
|
|
11
11
|
activeForm: FormModelWithValidity;
|
|
12
12
|
shouldValidate: boolean;
|
|
13
|
-
setShouldValidate: StateUpdater<boolean
|
|
13
|
+
setShouldValidate: Dispatch<StateUpdater<boolean>>;
|
|
14
14
|
}
|
|
15
15
|
export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, externalBackClick, onSubmit, skipSubmit, onSkipSubmit, }: {
|
|
16
16
|
problems?: EntityProblems;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
type Serializer<T> = (object: T | undefined) => string;
|
|
3
3
|
type Parser<T> = (val: string) => T | undefined;
|
|
4
4
|
type Options<T> = Partial<{
|
|
@@ -10,5 +10,5 @@ export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?
|
|
|
10
10
|
serializer: Serializer<T>;
|
|
11
11
|
parser: Parser<T>;
|
|
12
12
|
syncData: boolean;
|
|
13
|
-
}>) => [T, StateUpdater<T
|
|
13
|
+
}>) => [T, Dispatch<StateUpdater<T>>];
|
|
14
14
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
type UseStateFromPropParams<T> = {
|
|
3
3
|
initialValue?: T;
|
|
4
4
|
passedValue: T;
|
|
5
5
|
skipUpdate?: boolean;
|
|
6
6
|
};
|
|
7
|
-
type UseStateFromPropReturn<T> = [T | undefined, StateUpdater<T | undefined
|
|
7
|
+
type UseStateFromPropReturn<T> = [T | undefined, Dispatch<StateUpdater<T | undefined>>];
|
|
8
8
|
declare const useStateFromProp: <T>({ initialValue, passedValue, skipUpdate, }: UseStateFromPropParams<T>) => UseStateFromPropReturn<T>;
|
|
9
9
|
export default useStateFromProp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "2.41.
|
|
3
|
+
"version": "2.41.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -70,11 +70,14 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@adyen/adyen-document-viewer": "^1.1.0",
|
|
72
72
|
"@adyen/openbankingsdk": "^0.1.2",
|
|
73
|
+
"@tanstack/react-query": "^5.31.0",
|
|
73
74
|
"classnames": "^2.3.2",
|
|
74
75
|
"isomorphic-dompurify": "^0.13.0",
|
|
75
76
|
"lodash": "^4.17.21",
|
|
76
77
|
"onfido-sdk-ui": "12.3.5",
|
|
77
78
|
"preact": "^10.17.1",
|
|
79
|
+
"react": "npm:@preact/compat",
|
|
80
|
+
"react-dom": "npm:@preact/compat",
|
|
78
81
|
"validator": "^13.5.2"
|
|
79
82
|
},
|
|
80
83
|
"devDependencies": {
|
|
@@ -88,6 +91,7 @@
|
|
|
88
91
|
"@storybook/core-server": "^8.0.4",
|
|
89
92
|
"@storybook/preact": "^8.0.4",
|
|
90
93
|
"@storybook/preact-vite": "^8.0.4",
|
|
94
|
+
"@tanstack/eslint-plugin-query": "^4.38.0",
|
|
91
95
|
"@testing-library/jest-dom": "^5.17.0",
|
|
92
96
|
"@testing-library/preact": "^3.2.3",
|
|
93
97
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -141,7 +145,9 @@
|
|
|
141
145
|
},
|
|
142
146
|
"@storybook/preact-vite": {
|
|
143
147
|
"vite": "^4 || ^5"
|
|
144
|
-
}
|
|
148
|
+
},
|
|
149
|
+
"react": "npm:@preact/compat",
|
|
150
|
+
"react-dom": "npm:@preact/compat"
|
|
145
151
|
},
|
|
146
152
|
"engines": {
|
|
147
153
|
"node": ">=20"
|