@lydianpay/sdk-web 3.19.1 → 3.19.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.
@@ -3,6 +3,7 @@ import type { PlaceCountry } from '../types';
3
3
  export declare function isSupportedCountryCode(countryCode: string): boolean;
4
4
  export declare function countryOptions(locale?: string): SelectOption[];
5
5
  export declare function getCountryName(code: string, locale?: string): string;
6
+ export declare function getCountryNameInSentence(code: string, locale?: string): string;
6
7
  export declare function getCountryOptions({ countries, locale, }: {
7
8
  countries: PlaceCountry[];
8
9
  locale?: string;
@@ -10,7 +10,7 @@ import type { SessionQuoteWatcher } from './sessionQuoteWatcher';
10
10
  import type { TransactionPoller } from './transactionPoller';
11
11
  import type { CheckoutEventName, CheckoutInitOptions, PaymentFailureReason, RedactedCustomerPIIResponse } from '../types';
12
12
  export interface KycFlow {
13
- /** The -3 screen. No-op without a transaction to attach the details to. */
13
+ /** The KYC-pending screen. No-op without a transaction to attach the details to. */
14
14
  showScreen(): void;
15
15
  submit(submission: {
16
16
  values: KycFormValues;
@@ -27,6 +27,10 @@ export declare const EMPTY_KYC_TEXT: Record<KycFieldPart, string>;
27
27
  export declare function getBlankKycText({ merchantCountry, }: {
28
28
  merchantCountry: string | null;
29
29
  }): Record<KycFieldPart, string>;
30
+ export declare function getBasicDetailsParts({ requiredParts, isCountryAskedAsCitizenship, }: {
31
+ requiredParts: KycFieldPart[];
32
+ isCountryAskedAsCitizenship: boolean;
33
+ }): KycFieldPart[];
30
34
  export type KycFieldGroup = {
31
35
  fields: KycField[];
32
36
  count: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "3.19.1",
3
+ "version": "3.19.3",
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": {
@@ -87,7 +87,7 @@
87
87
  "vitest": "^4.1.12"
88
88
  },
89
89
  "dependencies": {
90
- "@lydianpay/frontend-shared-helpers": "2.2.0",
90
+ "@lydianpay/frontend-shared-helpers": "2.3.0",
91
91
  "@lydianpay/lydianconnect": "^1.10.3",
92
92
  "@lydianpay/lydianconnect-catalog": "^1.4.1",
93
93
  "@solana/qr-code-styling": "^1.6.0",