@lydianpay/sdk-web 3.20.0 → 3.21.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.
@@ -153,6 +153,7 @@ export type RedactedCustomerPIIResponse = {
153
153
  lastName: string;
154
154
  email: string;
155
155
  nationalID: string;
156
+ nationalIDDocumentType?: string;
156
157
  address1: string;
157
158
  address2: string;
158
159
  stateProvince: string;
@@ -174,6 +175,7 @@ export type CustomerProfileUpdates = {
174
175
  firstName?: string;
175
176
  lastName?: string;
176
177
  nationalID?: string;
178
+ nationalIDDocumentType?: string;
177
179
  dob?: CustomerDateOfBirth;
178
180
  pob?: {
179
181
  city: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { VerifiedCustomer } from '../../restoredCustomer';
2
+ import { type VerifiedCustomer } from '../../restoredCustomer';
3
3
  export default function ContactInfoSection({ email, country, citizenshipInput, verifiedCustomer, onEmailChange, onVerified, onVerifiedCustomerRejected, }: {
4
4
  email: string;
5
5
  country: string;
@@ -1,5 +1,8 @@
1
1
  import * as React from 'react';
2
- export default function SendCodeButton({ isBusy, onClick, }: {
2
+ type SendCodeButtonVariant = 'filled' | 'outlined';
3
+ export default function SendCodeButton({ isBusy, onClick, variant, }: {
3
4
  isBusy: boolean;
4
5
  onClick: () => void;
6
+ variant?: SendCodeButtonVariant;
5
7
  }): React.JSX.Element;
8
+ export {};
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- export default function VerifiedEmailCard({ email, onNotYou, }: {
2
+ export default function VerifiedEmailCard({ email, hasDetailsOnFile, onNotYou, }: {
3
3
  email: string;
4
+ hasDetailsOnFile: boolean;
4
5
  onNotYou: () => void;
5
6
  }): React.JSX.Element;
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
- export declare function FieldShell({ id, label, labelFor, error, children, }: {
2
+ export declare function FieldShell({ id, label, labelFor, error, isHighlighted, children, }: {
3
3
  id: string;
4
4
  label: string;
5
5
  labelFor: string;
6
6
  error?: string;
7
+ isHighlighted?: boolean;
7
8
  children: React.ReactNode;
8
9
  }): React.JSX.Element;
9
- export default function FormField({ id, label, placeholder, value, onChange, type, autoComplete, inputMode, maxLength, error, inputRef, shouldSelectAllOnFocus, isReadOnly, }: {
10
+ export default function FormField({ id, label, placeholder, value, onChange, type, autoComplete, inputMode, maxLength, error, inputRef, shouldSelectAllOnFocus, isReadOnly, isHighlighted, }: {
10
11
  id: string;
11
12
  label: string;
12
13
  placeholder: string;
@@ -20,4 +21,5 @@ export default function FormField({ id, label, placeholder, value, onChange, typ
20
21
  inputRef?: React.Ref<HTMLInputElement>;
21
22
  shouldSelectAllOnFocus?: boolean;
22
23
  isReadOnly?: boolean;
24
+ isHighlighted?: boolean;
23
25
  }): React.JSX.Element;
@@ -13,6 +13,7 @@ export declare function getRestoredKycDraft({ draft, onFile, email, country, }:
13
13
  country: string;
14
14
  }): KycDraft;
15
15
  export type VerifiedCustomer = Pick<RestoringCustomer, 'email' | 'country' | 'onFile' | 'storedDateOfBirth'>;
16
+ export declare function hasKycDetailsOnFile({ onFile, storedDateOfBirth, }: Pick<VerifiedCustomer, 'onFile' | 'storedDateOfBirth'>): boolean;
16
17
  export declare function getKycTextWithCustomerOnFile({ text, customer, }: {
17
18
  text: KycTextFields;
18
19
  customer: VerifiedCustomer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "3.20.0",
3
+ "version": "3.21.0",
4
4
  "description": "Drop-in crypto payment checkout for the web — a <lydian-checkout> web component and window.Lydian API across 20+ chains and major stablecoins.",
5
5
  "license": "MIT",
6
6
  "repository": {