@loafmarkets/ui 0.1.382 → 0.1.384

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 CHANGED
@@ -83,8 +83,6 @@ interface OrderbookProps extends React$1.HTMLAttributes<HTMLDivElement> {
83
83
  amountPrecision?: number;
84
84
  defaultTab?: "orderbook" | "trades";
85
85
  onTabChange?: (tab: "orderbook" | "trades") => void;
86
- /** When false, the "Trades" tab is hidden and only the orderbook shows (e.g. on mobile). Default true. */
87
- showTradesTab?: boolean;
88
86
  rightHeader?: React$1.ReactNode;
89
87
  variant?: "auto" | "default" | "compact";
90
88
  /**
@@ -580,29 +578,10 @@ type LoginPopupProps = {
580
578
  onFundWallet?: (params: FundWalletParams) => Promise<FundWalletResult> | void;
581
579
  /** Optional view to show immediately when the popup opens. */
582
580
  initialView?: LoginPopupView;
583
- /**
584
- * Gate-only: an access code supplied out-of-band (e.g. the `?code=` param on an
585
- * invite link). Any form is accepted ("LOAF-M8TRP" / "loaf-m8trp" / "M8TRP").
586
- * Pre-fills the code field and, when complete, auto-validates on open so the
587
- * gate advances straight to sign-in.
588
- */
589
- initialCode?: string;
590
581
  /** Wallet address used for the receive funds view (bypasses Privy modal). */
591
582
  walletAddress?: string | null;
592
583
  /** Called when the user submits a referral code during onboarding. */
593
584
  onSubmitReferralCode?: (code: string) => Promise<void> | void;
594
- /**
595
- * Gate-only: validates the full access code (e.g. "LOAF-M8TRP") as the user types.
596
- * Resolve true → bar turns green and the sign-in step is revealed; false → red.
597
- */
598
- onValidateCode?: (code: string) => Promise<boolean> | boolean;
599
- /**
600
- * Gate-only: after auth on the "Already have an account?" sign-in path (no
601
- * code entered), reports whether the account ALREADY has access. True → enter;
602
- * false → routed back to the access-code step (a code-less account must not
603
- * bypass the gate). Defaults to allowing entry if not provided.
604
- */
605
- onCheckAccess?: () => Promise<boolean> | boolean;
606
585
  /** Called when the user skips the referral code and joins the waitlist. Receives their signup email. Resolves to a success message. */
607
586
  onJoinWaitlist?: (email: string) => Promise<string> | void;
608
587
  /**
@@ -621,12 +600,6 @@ type LoginPopupProps = {
621
600
  onPasskeyLogin?: () => Promise<void> | void;
622
601
  /** Current KYC status — used to show "Resume Verification" when previously started. */
623
602
  kycStatus?: 'NOT_STARTED' | 'PENDING' | 'ON_HOLD' | 'VERIFIED' | 'REJECTED';
624
- /**
625
- * Renders the access-code (referral) view as a full-screen, opaque, non-dismissible
626
- * gate — no page visible behind it, no close affordance. Used when the popup opens
627
- * directly into the code view as the private-beta entry gate.
628
- */
629
- gate?: boolean;
630
603
  };
631
604
  declare const LoginPopup: React__default.FC<LoginPopupProps>;
632
605
 
@@ -643,7 +616,7 @@ type HeaderPortfolioData = {
643
616
  pnl: number;
644
617
  pnlPercent: number;
645
618
  };
646
- type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn" | "api";
619
+ type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "leaderboard" | "leaderboardPage" | "about" | "portfolio" | "learn" | "api";
647
620
  type HeaderLoginPopupComponentProps = {
648
621
  onClose: () => void;
649
622
  initialView?: LoginPopupView;
@@ -664,6 +637,8 @@ type HeaderProps = {
664
637
  apiPath?: string;
665
638
  offeringsPath?: string;
666
639
  propertyMapPath?: string;
640
+ leaderboardPath?: string;
641
+ leaderboardPagePath?: string;
667
642
  portfolioPath?: string;
668
643
  loafLiquidityPath?: string;
669
644
  /** Absolute URL for the auth/login surface (e.g. https://auth.loafmarkets.com/login). */
@@ -1046,10 +1021,8 @@ type AssetSelectorBarProps = {
1046
1021
  trailing?: ReactNode;
1047
1022
  imageUrl?: string;
1048
1023
  badgeLabel?: string;
1049
- /** Stack the TICKER as the primary label with the asset name beneath (InstrumentTile-style), instead of "Name (TICKER)". */
1050
- tickerPrimary?: boolean;
1051
1024
  };
1052
- declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, trailing, imageUrl, badgeLabel, tickerPrimary, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
1025
+ declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, trailing, imageUrl, badgeLabel, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
1053
1026
 
1054
1027
  type ToastVariant = 'success' | 'error' | 'info' | 'pending' | 'sell';
1055
1028
  type ToastData = {
package/dist/index.d.ts CHANGED
@@ -83,8 +83,6 @@ interface OrderbookProps extends React$1.HTMLAttributes<HTMLDivElement> {
83
83
  amountPrecision?: number;
84
84
  defaultTab?: "orderbook" | "trades";
85
85
  onTabChange?: (tab: "orderbook" | "trades") => void;
86
- /** When false, the "Trades" tab is hidden and only the orderbook shows (e.g. on mobile). Default true. */
87
- showTradesTab?: boolean;
88
86
  rightHeader?: React$1.ReactNode;
89
87
  variant?: "auto" | "default" | "compact";
90
88
  /**
@@ -580,29 +578,10 @@ type LoginPopupProps = {
580
578
  onFundWallet?: (params: FundWalletParams) => Promise<FundWalletResult> | void;
581
579
  /** Optional view to show immediately when the popup opens. */
582
580
  initialView?: LoginPopupView;
583
- /**
584
- * Gate-only: an access code supplied out-of-band (e.g. the `?code=` param on an
585
- * invite link). Any form is accepted ("LOAF-M8TRP" / "loaf-m8trp" / "M8TRP").
586
- * Pre-fills the code field and, when complete, auto-validates on open so the
587
- * gate advances straight to sign-in.
588
- */
589
- initialCode?: string;
590
581
  /** Wallet address used for the receive funds view (bypasses Privy modal). */
591
582
  walletAddress?: string | null;
592
583
  /** Called when the user submits a referral code during onboarding. */
593
584
  onSubmitReferralCode?: (code: string) => Promise<void> | void;
594
- /**
595
- * Gate-only: validates the full access code (e.g. "LOAF-M8TRP") as the user types.
596
- * Resolve true → bar turns green and the sign-in step is revealed; false → red.
597
- */
598
- onValidateCode?: (code: string) => Promise<boolean> | boolean;
599
- /**
600
- * Gate-only: after auth on the "Already have an account?" sign-in path (no
601
- * code entered), reports whether the account ALREADY has access. True → enter;
602
- * false → routed back to the access-code step (a code-less account must not
603
- * bypass the gate). Defaults to allowing entry if not provided.
604
- */
605
- onCheckAccess?: () => Promise<boolean> | boolean;
606
585
  /** Called when the user skips the referral code and joins the waitlist. Receives their signup email. Resolves to a success message. */
607
586
  onJoinWaitlist?: (email: string) => Promise<string> | void;
608
587
  /**
@@ -621,12 +600,6 @@ type LoginPopupProps = {
621
600
  onPasskeyLogin?: () => Promise<void> | void;
622
601
  /** Current KYC status — used to show "Resume Verification" when previously started. */
623
602
  kycStatus?: 'NOT_STARTED' | 'PENDING' | 'ON_HOLD' | 'VERIFIED' | 'REJECTED';
624
- /**
625
- * Renders the access-code (referral) view as a full-screen, opaque, non-dismissible
626
- * gate — no page visible behind it, no close affordance. Used when the popup opens
627
- * directly into the code view as the private-beta entry gate.
628
- */
629
- gate?: boolean;
630
603
  };
631
604
  declare const LoginPopup: React__default.FC<LoginPopupProps>;
632
605
 
@@ -643,7 +616,7 @@ type HeaderPortfolioData = {
643
616
  pnl: number;
644
617
  pnlPercent: number;
645
618
  };
646
- type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn" | "api";
619
+ type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "leaderboard" | "leaderboardPage" | "about" | "portfolio" | "learn" | "api";
647
620
  type HeaderLoginPopupComponentProps = {
648
621
  onClose: () => void;
649
622
  initialView?: LoginPopupView;
@@ -664,6 +637,8 @@ type HeaderProps = {
664
637
  apiPath?: string;
665
638
  offeringsPath?: string;
666
639
  propertyMapPath?: string;
640
+ leaderboardPath?: string;
641
+ leaderboardPagePath?: string;
667
642
  portfolioPath?: string;
668
643
  loafLiquidityPath?: string;
669
644
  /** Absolute URL for the auth/login surface (e.g. https://auth.loafmarkets.com/login). */
@@ -1046,10 +1021,8 @@ type AssetSelectorBarProps = {
1046
1021
  trailing?: ReactNode;
1047
1022
  imageUrl?: string;
1048
1023
  badgeLabel?: string;
1049
- /** Stack the TICKER as the primary label with the asset name beneath (InstrumentTile-style), instead of "Name (TICKER)". */
1050
- tickerPrimary?: boolean;
1051
1024
  };
1052
- declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, trailing, imageUrl, badgeLabel, tickerPrimary, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
1025
+ declare function AssetSelectorBar({ propertyName, tokenPrice, offeringValuation, metrics: metricsProp, currentTokenName, selectorItems, onSelect, trailing, imageUrl, badgeLabel, }: AssetSelectorBarProps): react_jsx_runtime.JSX.Element;
1053
1026
 
1054
1027
  type ToastVariant = 'success' | 'error' | 'info' | 'pending' | 'sell';
1055
1028
  type ToastData = {