@lydianpay/sdk-web 2.1.0 → 2.2.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.
@@ -75,6 +75,9 @@ export declare class Checkout extends HTMLElement {
75
75
  private btnChangeCoin;
76
76
  private qrCodeStyling;
77
77
  private qrCodeLink;
78
+ private scanToPayRoot;
79
+ private qrUnavailableNotice;
80
+ private qrCopyFeedback;
78
81
  private pendingWalletSend;
79
82
  private countdownBanner;
80
83
  private isCheckoutSettled;
@@ -186,6 +189,7 @@ export declare class Checkout extends HTMLElement {
186
189
  private initializeComponents;
187
190
  private wireWarningIconFallbacks;
188
191
  private wireCopyFields;
192
+ private copyAndFlash;
189
193
  private flashCopyFeedback;
190
194
  private attachListeners;
191
195
  private startListeningCryptoTransaction;
@@ -0,0 +1,2 @@
1
+ export type CopyOutcome = 'copied' | 'manual';
2
+ export declare function copyText(value: string, clipboard?: Pick<Clipboard, 'writeText'>): Promise<CopyOutcome>;
@@ -0,0 +1,7 @@
1
+ export type CopyButtonProps = {
2
+ label: string;
3
+ copyLabel?: string;
4
+ buttonClass?: string;
5
+ feedbackClass?: string;
6
+ };
7
+ export default function CopyButton({ label, copyLabel, buttonClass, feedbackClass, }: CopyButtonProps): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "2.1.0",
3
+ "version": "2.2.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": {