@adyen/kyc-components 2.41.3 → 2.41.4

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 (63) hide show
  1. package/dist/es/adyen-kyc-components.es.js +526 -334
  2. package/dist/es/{arrow-left-CwJQyOFz.js → arrow-left-CCxYxfCP.js} +1 -1
  3. package/dist/es/{arrow-right-Cs_AKUOH.js → arrow-right-DF4Qe-8E.js} +1 -1
  4. package/dist/es/{bin-8yaAerXc.js → bin-CGwewvcn.js} +1 -1
  5. package/dist/es/{check-_cOIMziL.js → check-CeSLN4_9.js} +1 -1
  6. package/dist/es/{checkmark-CZpv8i5a.js → checkmark-DEh9MPYR.js} +1 -1
  7. package/dist/es/{checkmark-small-C4TPve-W.js → checkmark-small-D_9HLctx.js} +1 -1
  8. package/dist/es/{chevron-down-CwS2tE_6.js → chevron-down-BzENwYSf.js} +1 -1
  9. package/dist/es/{chevron-right-B8cQLres.js → chevron-right-DczMHcvL.js} +1 -1
  10. package/dist/es/{chevron-up-DccG0tVR.js → chevron-up-BLtnROd5.js} +1 -1
  11. package/dist/es/{company-2-Cof0usfn.js → company-2-JG34IScE.js} +1 -1
  12. package/dist/es/{company-BKO80hWm.js → company-D5_F_6SW.js} +1 -1
  13. package/dist/es/{contract-DrX5y2Qf.js → contract-C6wDy9zU.js} +1 -1
  14. package/dist/es/{controlling-person-B_dn0b9H.js → controlling-person-C4KoSyi2.js} +1 -1
  15. package/dist/es/{cross-aFMJCrLf.js → cross-BadGfrgB.js} +1 -1
  16. package/dist/es/{decision-maker-28_rW1ah.js → decision-maker-Cef3-OzY.js} +1 -1
  17. package/dist/es/{document-Bn_3PIDG.js → document-Cg4kZHpA.js} +1 -1
  18. package/dist/es/{download-DgAZobJV.js → download-DGC5_Bxe.js} +1 -1
  19. package/dist/es/{edit-Dg19Ah77.js → edit--fDhojib.js} +1 -1
  20. package/dist/es/{field-error-DkFiF_Cv.js → field-error-WElEN1mN.js} +1 -1
  21. package/dist/es/{info-circle-CXFfd_nO.js → info-circle-DkHN1ugA.js} +1 -1
  22. package/dist/es/{light-bulb-CQ29JPA7.js → light-bulb-DEUhbRWP.js} +1 -1
  23. package/dist/es/{location-DmmjAv9A.js → location-B1Til-7Q.js} +1 -1
  24. package/dist/es/{more-horiz-dyZQKaOn.js → more-horiz-BieZKfy3.js} +1 -1
  25. package/dist/es/{new-document-CeV8zHP8.js → new-document-BEAJnXCG.js} +1 -1
  26. package/dist/es/{owners-C1dyQqRO.js → owners-D1pksb86.js} +1 -1
  27. package/dist/es/{payout-B-c43MDS.js → payout-BFiI--HY.js} +1 -1
  28. package/dist/es/{pci-CVqIvwR-.js → pci-DMQLRoAn.js} +1 -1
  29. package/dist/es/{plus-BUH0nzS_.js → plus-DAnbeoyS.js} +1 -1
  30. package/dist/es/{remove-Bor5X8Xu.js → remove-CEmd9YX7.js} +1 -1
  31. package/dist/es/{review-DcoDSRJT.js → review-CeQeKHXH.js} +1 -1
  32. package/dist/es/{search-SGLIdnsr.js → search-hf3HRVbu.js} +1 -1
  33. package/dist/es/{signatory-BMaWV_18.js → signatory-BVoLPYPu.js} +1 -1
  34. package/dist/es/{store-N4c2LHJ_.js → store-D2z639xh.js} +1 -1
  35. package/dist/es/{trust-BcVDhtGL.js → trust-CpcaQaV7.js} +1 -1
  36. package/dist/es/{user-C8STPF6-.js → user-D6swzlYs.js} +1 -1
  37. package/dist/es/{user-business-Dcvcw8gB.js → user-business-CwS5j1qX.js} +1 -1
  38. package/dist/es/{users-3-D3QDBEk-.js → users-3-BdjQ9rEA.js} +1 -1
  39. package/dist/es/{warning-Dxxpni4H.js → warning-99uFf1WU.js} +1 -1
  40. package/dist/es/{wrong-DNwa4zZR.js → wrong-1wvh7nZe.js} +1 -1
  41. package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
  42. package/dist/types/components/BankVerification/types.d.ts +5 -5
  43. package/dist/types/components/CompanyBasics/types.d.ts +3 -3
  44. package/dist/types/components/CompanyLookup/types.d.ts +4 -4
  45. package/dist/types/components/Individual/types.d.ts +2 -2
  46. package/dist/types/components/PayoutDetails/types.d.ts +2 -2
  47. package/dist/types/components/TaskList/types.d.ts +2 -2
  48. package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +2 -2
  49. package/dist/types/components/internal/EntityAssociation/types.d.ts +2 -2
  50. package/dist/types/components/internal/Remove/types.d.ts +3 -3
  51. package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -2
  52. package/dist/types/components/internal/VatNumberField/types.d.ts +2 -2
  53. package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +1 -1
  54. package/dist/types/core/hooks/singpass/useHasSeenSingpassSelection.d.ts +1 -1
  55. package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -2
  56. package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +3 -3
  57. package/dist/types/core/hooks/useForm/types.d.ts +8 -8
  58. package/dist/types/core/hooks/useFormComposer.d.ts +2 -2
  59. package/dist/types/core/hooks/useLocalStorage.d.ts +2 -2
  60. package/dist/types/utils/useStateFromProp.d.ts +2 -2
  61. package/package.json +2 -8
  62. package/dist/types/core/Context/QueryContext/QueryClient.d.ts +0 -2
  63. package/dist/types/core/Context/QueryContext/QueryClientProvider.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import type { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import type { 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?: 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>>;
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>;
118
118
  }
119
119
  export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema> {
120
120
  formVerificationErrors?: FormVerificationErrors;
@@ -1,4 +1,4 @@
1
- import type { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import type { 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: Dispatch<StateUpdater<boolean>>;
13
+ setShouldValidate: 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 { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import type { 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, Dispatch<StateUpdater<T>>];
13
+ }>) => [T, StateUpdater<T>];
14
14
  export {};
@@ -1,9 +1,9 @@
1
- import type { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import type { 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, Dispatch<StateUpdater<T | undefined>>];
7
+ type UseStateFromPropReturn<T> = [T | undefined, 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",
3
+ "version": "2.41.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -70,14 +70,11 @@
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",
74
73
  "classnames": "^2.3.2",
75
74
  "isomorphic-dompurify": "^0.13.0",
76
75
  "lodash": "^4.17.21",
77
76
  "onfido-sdk-ui": "12.3.5",
78
77
  "preact": "^10.17.1",
79
- "react": "npm:@preact/compat",
80
- "react-dom": "npm:@preact/compat",
81
78
  "validator": "^13.5.2"
82
79
  },
83
80
  "devDependencies": {
@@ -91,7 +88,6 @@
91
88
  "@storybook/core-server": "^8.0.4",
92
89
  "@storybook/preact": "^8.0.4",
93
90
  "@storybook/preact-vite": "^8.0.4",
94
- "@tanstack/eslint-plugin-query": "^4.38.0",
95
91
  "@testing-library/jest-dom": "^5.17.0",
96
92
  "@testing-library/preact": "^3.2.3",
97
93
  "@testing-library/user-event": "^14.4.3",
@@ -145,9 +141,7 @@
145
141
  },
146
142
  "@storybook/preact-vite": {
147
143
  "vite": "^4 || ^5"
148
- },
149
- "react": "npm:@preact/compat",
150
- "react-dom": "npm:@preact/compat"
144
+ }
151
145
  },
152
146
  "engines": {
153
147
  "node": ">=20"
@@ -1,2 +0,0 @@
1
- import { QueryClient as TanstackQueryClient } from '@tanstack/react-query';
2
- export declare const QueryClient: TanstackQueryClient;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const QueryClientProvider: ({ children }: {
3
- children: JSX.Element;
4
- }) => JSX.Element;