@adyen/kyc-components 2.52.2 → 2.53.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.
Files changed (26) hide show
  1. package/dist/es/adyen-kyc-components.es.js +439 -447
  2. package/dist/style.css +147 -229
  3. package/dist/types/components/BasicInformation/component/BasicInformationComponent.d.ts +1 -1
  4. package/dist/types/components/BasicInformation/types.d.ts +1 -0
  5. package/dist/types/components/BusinessDetails/types.d.ts +1 -0
  6. package/dist/types/components/BusinessSelection/BusinessInformationCard.d.ts +2 -1
  7. package/dist/types/components/BusinessSelection/component/BusinessSelectionComponent.d.ts +1 -1
  8. package/dist/types/components/BusinessSelection/types.d.ts +1 -0
  9. package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +1 -1
  10. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
  11. package/dist/types/components/Dropins/CompanySearchDropin/components/CompanySearchDropinComponent.d.ts +1 -1
  12. package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +2 -1
  13. package/dist/types/components/StepProgressIndicator/StepProgressIndicator.d.ts +8 -0
  14. package/dist/types/components/{internal → embedded-ui}/EmbeddedStatus/EmbeddedStatus.d.ts +2 -2
  15. package/dist/types/components/{internal → embedded-ui}/EmbeddedStatus/statusToTag.d.ts +1 -1
  16. package/dist/types/components/internal/Modal/Modal.d.ts +7 -16
  17. package/dist/types/components/internal/StructuredList/StructuredList.d.ts +10 -0
  18. package/dist/types/components/internal/Svg/svgs.d.ts +2 -3
  19. package/dist/types/core/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -2
  20. package/dist/types/core/hooks/useBusinessData/types.d.ts +1 -0
  21. package/dist/types/core/hooks/useFormComposer.d.ts +1 -0
  22. package/package.json +1 -1
  23. package/dist/es/owners-DT55tjrZ.js +0 -5
  24. package/dist/es/signatory-BUpU_luQ.js +0 -10
  25. package/dist/es/user-business-BZ3Ko-Oi.js +0 -11
  26. package/dist/types/components/internal/NewModal/Modal.d.ts +0 -11
@@ -1,20 +1,11 @@
1
- import './_modal.scss';
2
- import './Overlay/_overlay.scss';
3
- import type { ComponentChildren, JSX } from 'preact';
1
+ import './Modal.scss';
2
+ import type { ComponentChildren } from 'preact';
4
3
  export interface ModalProps {
5
4
  header?: ComponentChildren;
6
- content?: ComponentChildren;
5
+ children: ComponentChildren;
7
6
  footer?: ComponentChildren;
8
- size?: 'small' | 'medium' | 'large';
9
- classNames?: {
10
- modal?: string;
11
- header?: string;
12
- content?: string;
13
- footer?: string;
14
- };
15
- isDismissible?: boolean;
16
- title?: string;
17
- onClose?: () => void;
18
- role?: JSX.AriaRole;
7
+ size?: 'small' | 'medium' | 'large' | 'fullscreen';
8
+ onBack?: () => void;
9
+ onClose: () => void;
19
10
  }
20
- export declare const Modal: ({ content, footer, header, classNames, size, title, isDismissible, onClose, role, }: ModalProps) => JSX.Element;
11
+ export declare const Modal: ({ header, children, footer, size, onBack, onClose, }: ModalProps) => import("preact").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { ComponentChild } from 'preact';
2
+ import type { TranslationKey } from '../../../language/types';
3
+ export interface StructuredListItem {
4
+ labelKey: TranslationKey;
5
+ value: string | ComponentChild;
6
+ }
7
+ export interface StructuredListProps {
8
+ items: StructuredListItem[];
9
+ }
10
+ export declare const StructuredList: ({ items }: StructuredListProps) => import("preact").JSX.Element;
@@ -48,6 +48,7 @@ export declare const svgs: {
48
48
  readonly store: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
49
49
  readonly trust: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
50
50
  readonly user: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
51
+ readonly 'user-business': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
51
52
  readonly upload: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
52
53
  readonly 'users-3': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
53
54
  readonly warning: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
@@ -70,13 +71,11 @@ export declare const svgs: {
70
71
  readonly 'payout-verification-manual': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
71
72
  readonly 'singpass-verification-instant': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
72
73
  readonly 'singpass-verification-manual': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
73
- readonly owners: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
74
74
  readonly review: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
75
- readonly signatory: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
76
- readonly 'user-business': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
77
75
  readonly 'onfido-logo': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
78
76
  readonly 'tink-logo': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
79
77
  readonly 'singpass-logo': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
80
78
  readonly 'plaid-logo': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
81
79
  readonly 'trustly-logo': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
82
80
  };
81
+ export declare const unscalableIconNames: string[];
@@ -27,9 +27,8 @@ interface UseSingpassMyInfoLoginProps {
27
27
  legalEntity?: ExistingLegalEntity;
28
28
  accountHolder: AccountHolderOption | null;
29
29
  handleOpenSingpassAuthorizationLink: (() => Promise<SingpassLinkResponse>) | undefined;
30
- apiMapping?: Record<string, string>;
31
30
  }
32
- export declare const useSingpassMyInfoLogin: ({ legalEntity, accountHolder, handleOpenSingpassAuthorizationLink, apiMapping, }: UseSingpassMyInfoLoginProps) => {
31
+ export declare const useSingpassMyInfoLogin: ({ legalEntity, accountHolder, handleOpenSingpassAuthorizationLink, }: UseSingpassMyInfoLoginProps) => {
33
32
  isEligibleForSingpass: boolean;
34
33
  state: SingpassMyInfoLoginState;
35
34
  handleInitiateSingpassMyInfoLogin: () => Promise<string>;
@@ -15,6 +15,7 @@ export type UseBusinessData = {
15
15
  verifyBusinessData: (data: CompanyDatasetResponse, tin: string) => Promise<boolean | undefined>;
16
16
  clearTrustedBusinessData: () => Promise<void>;
17
17
  resetBusinessData: () => void;
18
+ resetTinVerification: () => void;
18
19
  isSearching: HookStatus;
19
20
  isFetching: HookStatus;
20
21
  isVerifying: HookStatus;
@@ -14,6 +14,7 @@ export interface FormComposer {
14
14
  shouldValidate: boolean;
15
15
  setShouldValidate: Dispatch<StateUpdater<boolean>>;
16
16
  currentStep?: number;
17
+ totalSteps: number;
17
18
  }
18
19
  export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, externalBackClick, onSubmit, skipSubmit, onSkipSubmit, }: {
19
20
  problems?: EntityProblems;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.52.2",
3
+ "version": "2.53.0",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -1,5 +0,0 @@
1
- import { jsx } from "preact/compat/jsx-runtime";
2
- const SvgOwners = (props) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", role: "img", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.6 4.8a3.6 3.6 0 1 0-7.2 0 3.6 3.6 0 0 0 7.2 0m1.2 0a4.8 4.8 0 1 1-9.61-.01 4.8 4.8 0 0 1 9.61.01M10.72 12 12 13.92l.97-1.45a.3.3 0 0 0-.25-.47zm-.07 9.56L12 22.63l1.69-1.34L12 16.73l-1.54 4.15a.6.6 0 0 0 .19.68M7.8 10.8h8.4a6.6 6.6 0 0 1 6.6 6.6v6a.6.6 0 0 1-.6.6.6.6 0 0 1-.6-.6v-6a5.4 5.4 0 0 0-5.4-5.4h-1.48l-2.05 3.08 2.29 6.2a.6.6 0 0 1-.19.67l-2.4 1.92A.6.6 0 0 1 12 24a.6.6 0 0 1-.37-.13l-2.4-1.92a.6.6 0 0 1-.2-.67l2.3-6.2L9.28 12H7.8a5.4 5.4 0 0 0-5.4 5.4v6a.6.6 0 0 1-.6.6.6.6 0 0 1-.6-.6v-6a6.6 6.6 0 0 1 6.6-6.6", clipRule: "evenodd" }) });
3
- export {
4
- SvgOwners as default
5
- };
@@ -1,10 +0,0 @@
1
- import { jsx, jsxs } from "preact/compat/jsx-runtime";
2
- const SvgSignatory = (props) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", role: "img", ...props, children: /* @__PURE__ */ jsxs("g", { fill: "currentColor", children: [
3
- /* @__PURE__ */ jsx("path", { fillRule: "evenodd", d: "M16.8 4.8c0 2.64-2.16 4.8-4.8 4.8a4.8 4.8 0 0 1-4.8-4.8C7.2 2.16 9.36 0 12 0s4.8 2.16 4.8 4.8m-1.2 0c0-1.98-1.62-3.6-3.6-3.6a3.6 3.6 0 0 0-3.6 3.6c0 1.98 1.62 3.6 3.6 3.6s3.6-1.62 3.6-3.6", clipRule: "evenodd" }),
4
- /* @__PURE__ */ jsx("path", { d: "M4.8 18.6c0-.36.24-.6.6-.6s.6.24.6.6v4.8c0 .36-.24.6-.6.6s-.6-.24-.6-.6z" }),
5
- /* @__PURE__ */ jsx("path", { d: "M16.8 11.4c0-.36-.24-.6-.6-.6H7.8a6.6 6.6 0 0 0-6.6 6.6v6c0 .36.24.6.6.6s.6-.24.6-.6v-6c0-3 2.4-5.4 5.4-5.4h8.4c.36 0 .6-.24.6-.6" }),
6
- /* @__PURE__ */ jsx("path", { fillRule: "evenodd", d: "m21.66 12.42 1.32 1.32c.72.66.72 1.86 0 2.52l-7.56 7.56A.5.5 0 0 1 15 24h-3c-.36 0-.6-.24-.6-.6v-3q0-.25.18-.42l7.56-7.56c.66-.72 1.8-.72 2.52 0M12.6 22.8h2.16l5.28-5.28a.6.6 0 0 0 0-.84l-1.74-1.74-5.7 5.7zm8.7-6.54.84-.84a.6.6 0 0 0 0-.84l-1.32-1.32a.6.6 0 0 0-.84 0l-.42.42a.6.6 0 0 0 0 .84z", clipRule: "evenodd" })
7
- ] }) });
8
- export {
9
- SvgSignatory as default
10
- };
@@ -1,11 +0,0 @@
1
- import { jsxs, jsx } from "preact/compat/jsx-runtime";
2
- const SvgUserBusiness = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 36 40", role: "img", ...props, children: [
3
- /* @__PURE__ */ jsxs("g", { fill: "currentColor", clipPath: "url(#user-business_svg__a)", children: [
4
- /* @__PURE__ */ jsx("path", { d: "M10 8a8 8 0 1 1 16 0 8 8 0 0 1-16 0m8-6a6 6 0 1 0 0 12 6 6 0 0 0 0-12M0 29a11 11 0 0 1 11-11h14a11 11 0 0 1 11 11v11h-2V29a9 9 0 0 0-9-9h-2.46l-3.42 5.12 4.02 10.04L19.5 40h-3l-3.64-4.85 4.02-10.04L13.46 20H11a9 9 0 0 0-9 9v11H0zm15.87-9L18 23.2l2.13-3.2zm-.73 14.85 2.36 3.16h1l2.36-3.16L18 27.7z" }),
5
- /* @__PURE__ */ jsx("path", { d: "M6 30v10h2V30zm22 10V30h2v10z" })
6
- ] }),
7
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "user-business_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M0 0h36v40H0z" }) }) })
8
- ] });
9
- export {
10
- SvgUserBusiness as default
11
- };
@@ -1,11 +0,0 @@
1
- import './Modal.scss';
2
- import type { ComponentChildren } from 'preact';
3
- export interface ModalProps {
4
- title?: string;
5
- children: ComponentChildren;
6
- footer?: ComponentChildren;
7
- fullscreen?: boolean;
8
- onBack?: () => void;
9
- onClose: () => void;
10
- }
11
- export declare const Modal: ({ title, children, footer, fullscreen, onBack, onClose, }: ModalProps) => import("preact").JSX.Element;