@loafmarkets/ui 0.1.375 → 0.1.376
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.
- package/dist/index.d.mts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +598 -87
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +598 -87
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -584,6 +584,18 @@ type LoginPopupProps = {
|
|
|
584
584
|
walletAddress?: string | null;
|
|
585
585
|
/** Called when the user submits a referral code during onboarding. */
|
|
586
586
|
onSubmitReferralCode?: (code: string) => Promise<void> | void;
|
|
587
|
+
/**
|
|
588
|
+
* Gate-only: validates the full access code (e.g. "LOAF-M8TRP") as the user types.
|
|
589
|
+
* Resolve true → bar turns green and the sign-in step is revealed; false → red.
|
|
590
|
+
*/
|
|
591
|
+
onValidateCode?: (code: string) => Promise<boolean> | boolean;
|
|
592
|
+
/**
|
|
593
|
+
* Gate-only: after auth on the "Already have an account?" sign-in path (no
|
|
594
|
+
* code entered), reports whether the account ALREADY has access. True → enter;
|
|
595
|
+
* false → routed back to the access-code step (a code-less account must not
|
|
596
|
+
* bypass the gate). Defaults to allowing entry if not provided.
|
|
597
|
+
*/
|
|
598
|
+
onCheckAccess?: () => Promise<boolean> | boolean;
|
|
587
599
|
/** Called when the user skips the referral code and joins the waitlist. Receives their signup email. Resolves to a success message. */
|
|
588
600
|
onJoinWaitlist?: (email: string) => Promise<string> | void;
|
|
589
601
|
/**
|
|
@@ -602,6 +614,12 @@ type LoginPopupProps = {
|
|
|
602
614
|
onPasskeyLogin?: () => Promise<void> | void;
|
|
603
615
|
/** Current KYC status — used to show "Resume Verification" when previously started. */
|
|
604
616
|
kycStatus?: 'NOT_STARTED' | 'PENDING' | 'ON_HOLD' | 'VERIFIED' | 'REJECTED';
|
|
617
|
+
/**
|
|
618
|
+
* Renders the access-code (referral) view as a full-screen, opaque, non-dismissible
|
|
619
|
+
* gate — no page visible behind it, no close affordance. Used when the popup opens
|
|
620
|
+
* directly into the code view as the private-beta entry gate.
|
|
621
|
+
*/
|
|
622
|
+
gate?: boolean;
|
|
605
623
|
};
|
|
606
624
|
declare const LoginPopup: React__default.FC<LoginPopupProps>;
|
|
607
625
|
|
package/dist/index.d.ts
CHANGED
|
@@ -584,6 +584,18 @@ type LoginPopupProps = {
|
|
|
584
584
|
walletAddress?: string | null;
|
|
585
585
|
/** Called when the user submits a referral code during onboarding. */
|
|
586
586
|
onSubmitReferralCode?: (code: string) => Promise<void> | void;
|
|
587
|
+
/**
|
|
588
|
+
* Gate-only: validates the full access code (e.g. "LOAF-M8TRP") as the user types.
|
|
589
|
+
* Resolve true → bar turns green and the sign-in step is revealed; false → red.
|
|
590
|
+
*/
|
|
591
|
+
onValidateCode?: (code: string) => Promise<boolean> | boolean;
|
|
592
|
+
/**
|
|
593
|
+
* Gate-only: after auth on the "Already have an account?" sign-in path (no
|
|
594
|
+
* code entered), reports whether the account ALREADY has access. True → enter;
|
|
595
|
+
* false → routed back to the access-code step (a code-less account must not
|
|
596
|
+
* bypass the gate). Defaults to allowing entry if not provided.
|
|
597
|
+
*/
|
|
598
|
+
onCheckAccess?: () => Promise<boolean> | boolean;
|
|
587
599
|
/** Called when the user skips the referral code and joins the waitlist. Receives their signup email. Resolves to a success message. */
|
|
588
600
|
onJoinWaitlist?: (email: string) => Promise<string> | void;
|
|
589
601
|
/**
|
|
@@ -602,6 +614,12 @@ type LoginPopupProps = {
|
|
|
602
614
|
onPasskeyLogin?: () => Promise<void> | void;
|
|
603
615
|
/** Current KYC status — used to show "Resume Verification" when previously started. */
|
|
604
616
|
kycStatus?: 'NOT_STARTED' | 'PENDING' | 'ON_HOLD' | 'VERIFIED' | 'REJECTED';
|
|
617
|
+
/**
|
|
618
|
+
* Renders the access-code (referral) view as a full-screen, opaque, non-dismissible
|
|
619
|
+
* gate — no page visible behind it, no close affordance. Used when the popup opens
|
|
620
|
+
* directly into the code view as the private-beta entry gate.
|
|
621
|
+
*/
|
|
622
|
+
gate?: boolean;
|
|
605
623
|
};
|
|
606
624
|
declare const LoginPopup: React__default.FC<LoginPopupProps>;
|
|
607
625
|
|