@loafmarkets/ui 0.1.369 → 0.1.370

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
@@ -692,6 +692,23 @@ declare const PropertySubheader: React$1.ForwardRefExoticComponent<React$1.HTMLA
692
692
  actions?: PropertySubheaderAction[];
693
693
  } & React$1.RefAttributes<HTMLDivElement>>;
694
694
 
695
+ interface OnboardingGuideProps {
696
+ /** Whether the guide is visible. */
697
+ open: boolean;
698
+ /** True once the 100k has landed on-chain (portfolio value > 0). */
699
+ fundsReady: boolean;
700
+ /** Label for the funded amount once ready (default "$100,000"). */
701
+ cashLabel?: string;
702
+ /** Primary CTA — take the user to the markets to pick a property. */
703
+ onBrowseProperties: () => void;
704
+ /** Optional tertiary action — open the access-code entry. */
705
+ onEnterCode?: () => void;
706
+ /** Dismiss / skip (✕, "Skip for now", or after Browse). */
707
+ onClose: () => void;
708
+ logoSrc?: string;
709
+ }
710
+ declare function OnboardingGuide({ open, fundsReady, cashLabel, onBrowseProperties, onEnterCode, onClose, logoSrc, }: OnboardingGuideProps): react_jsx_runtime.JSX.Element | null;
711
+
695
712
  type PropertyAddressOption = {
696
713
  id: string;
697
714
  label: string;
@@ -882,6 +899,8 @@ interface OfferingOrder {
882
899
  readonly rejectionReason?: string | null;
883
900
  readonly imageUrl?: string;
884
901
  readonly createdAt: number;
902
+ /** Short market ticker (e.g. "MUS") — shown next to quantities. */
903
+ readonly ticker?: string;
885
904
  }
886
905
  interface OrderHistoryItem {
887
906
  readonly id: number;
@@ -900,6 +919,8 @@ interface OrderHistoryItem {
900
919
  readonly cancelledAt: number | null;
901
920
  readonly createdAt: number;
902
921
  readonly isOfferingOrder?: boolean;
922
+ /** Short market ticker (e.g. "MUS") — shown next to quantities. */
923
+ readonly ticker?: string;
903
924
  }
904
925
  interface TradeHistoryItem {
905
926
  readonly tradeId: number;
@@ -912,6 +933,8 @@ interface TradeHistoryItem {
912
933
  readonly executedAt: number;
913
934
  readonly fee: number;
914
935
  readonly status?: string;
936
+ /** Short market ticker (e.g. "MUS") — shown next to quantities. */
937
+ readonly ticker?: string;
915
938
  }
916
939
  interface TransferHistoryItem {
917
940
  readonly type: 'DEPOSIT' | 'WITHDRAWAL';
@@ -935,6 +958,10 @@ interface PortfolioPosition {
935
958
  readonly propertyPnlPercent: number;
936
959
  readonly isIpoAllocation: boolean;
937
960
  readonly imageUrl: string;
961
+ /** A matched trade for this property is still settling — show a spinner + "Settling…" and withhold figures. */
962
+ readonly settling?: boolean;
963
+ /** Short market ticker (e.g. "MUS") — shown next to unit counts instead of the full token name. */
964
+ readonly ticker?: string;
938
965
  }
939
966
  type ActivityTabId = 'positions' | 'subscriptions' | 'open-orders' | 'orders' | 'trades' | 'transfers';
940
967
  type PortfolioActivityPanelProps = {
@@ -942,6 +969,8 @@ type PortfolioActivityPanelProps = {
942
969
  showPositionsTab?: boolean;
943
970
  showSubscriptionsTab?: boolean;
944
971
  onPositionClick?: (tokenName: string, isIpo: boolean) => void;
972
+ /** Click handler for the asset name in the Open Orders / Order History / Trade History rows — opens that asset. */
973
+ onAssetClick?: (tokenName: string) => void;
945
974
  onClosePosition?: (tokenName: string, type: 'market' | 'limit', quantity: number, marketPrice: number) => void;
946
975
  offeringOrders?: readonly OfferingOrder[];
947
976
  openOrders?: readonly OrderHistoryItem[];
@@ -950,10 +979,6 @@ type PortfolioActivityPanelProps = {
950
979
  transfers?: readonly TransferHistoryItem[];
951
980
  onCancelOrder?: (orderId: number) => Promise<void>;
952
981
  onCancelAllOrders?: () => Promise<void>;
953
- onAmendOrder?: (orderId: number, fields: {
954
- quantity?: number;
955
- price?: number;
956
- }) => Promise<void>;
957
982
  cancellingOrderId?: number | null;
958
983
  compactPositions?: boolean;
959
984
  defaultTab?: ActivityTabId;
@@ -963,7 +988,7 @@ type PortfolioActivityPanelProps = {
963
988
  className?: string;
964
989
  style?: React.CSSProperties;
965
990
  };
966
- declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, onAmendOrder, cancellingOrderId, compactPositions, defaultTab, onTabChange, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
991
+ declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onAssetClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, cancellingOrderId, compactPositions, defaultTab, onTabChange, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
967
992
 
968
993
  type SelectorItem = {
969
994
  readonly tokenName: string;
@@ -1254,4 +1279,4 @@ declare function extractSparkline(candles: ReadonlyArray<{
1254
1279
  }>, maxPoints?: number): number[];
1255
1280
  declare const SparklineChart: React__default.NamedExoticComponent<SparklineChartProps>;
1256
1281
 
1257
- export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, ContactPopup, type ContactPopupProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderPortfolioData, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, PropertyMediaRow, type PropertyMediaRowProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, SiteFooter, Skeleton, type SkeletonProps, SlideDigit, SparklineChart, type SparklineChartProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, extractSparkline, hasPendingActivity, useAdaptivePolling, useToast };
1282
+ export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, ContactPopup, type ContactPopupProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderPortfolioData, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, OnboardingGuide, type OnboardingGuideProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, PropertyMediaRow, type PropertyMediaRowProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, SiteFooter, Skeleton, type SkeletonProps, SlideDigit, SparklineChart, type SparklineChartProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, extractSparkline, hasPendingActivity, useAdaptivePolling, useToast };
package/dist/index.d.ts CHANGED
@@ -692,6 +692,23 @@ declare const PropertySubheader: React$1.ForwardRefExoticComponent<React$1.HTMLA
692
692
  actions?: PropertySubheaderAction[];
693
693
  } & React$1.RefAttributes<HTMLDivElement>>;
694
694
 
695
+ interface OnboardingGuideProps {
696
+ /** Whether the guide is visible. */
697
+ open: boolean;
698
+ /** True once the 100k has landed on-chain (portfolio value > 0). */
699
+ fundsReady: boolean;
700
+ /** Label for the funded amount once ready (default "$100,000"). */
701
+ cashLabel?: string;
702
+ /** Primary CTA — take the user to the markets to pick a property. */
703
+ onBrowseProperties: () => void;
704
+ /** Optional tertiary action — open the access-code entry. */
705
+ onEnterCode?: () => void;
706
+ /** Dismiss / skip (✕, "Skip for now", or after Browse). */
707
+ onClose: () => void;
708
+ logoSrc?: string;
709
+ }
710
+ declare function OnboardingGuide({ open, fundsReady, cashLabel, onBrowseProperties, onEnterCode, onClose, logoSrc, }: OnboardingGuideProps): react_jsx_runtime.JSX.Element | null;
711
+
695
712
  type PropertyAddressOption = {
696
713
  id: string;
697
714
  label: string;
@@ -882,6 +899,8 @@ interface OfferingOrder {
882
899
  readonly rejectionReason?: string | null;
883
900
  readonly imageUrl?: string;
884
901
  readonly createdAt: number;
902
+ /** Short market ticker (e.g. "MUS") — shown next to quantities. */
903
+ readonly ticker?: string;
885
904
  }
886
905
  interface OrderHistoryItem {
887
906
  readonly id: number;
@@ -900,6 +919,8 @@ interface OrderHistoryItem {
900
919
  readonly cancelledAt: number | null;
901
920
  readonly createdAt: number;
902
921
  readonly isOfferingOrder?: boolean;
922
+ /** Short market ticker (e.g. "MUS") — shown next to quantities. */
923
+ readonly ticker?: string;
903
924
  }
904
925
  interface TradeHistoryItem {
905
926
  readonly tradeId: number;
@@ -912,6 +933,8 @@ interface TradeHistoryItem {
912
933
  readonly executedAt: number;
913
934
  readonly fee: number;
914
935
  readonly status?: string;
936
+ /** Short market ticker (e.g. "MUS") — shown next to quantities. */
937
+ readonly ticker?: string;
915
938
  }
916
939
  interface TransferHistoryItem {
917
940
  readonly type: 'DEPOSIT' | 'WITHDRAWAL';
@@ -935,6 +958,10 @@ interface PortfolioPosition {
935
958
  readonly propertyPnlPercent: number;
936
959
  readonly isIpoAllocation: boolean;
937
960
  readonly imageUrl: string;
961
+ /** A matched trade for this property is still settling — show a spinner + "Settling…" and withhold figures. */
962
+ readonly settling?: boolean;
963
+ /** Short market ticker (e.g. "MUS") — shown next to unit counts instead of the full token name. */
964
+ readonly ticker?: string;
938
965
  }
939
966
  type ActivityTabId = 'positions' | 'subscriptions' | 'open-orders' | 'orders' | 'trades' | 'transfers';
940
967
  type PortfolioActivityPanelProps = {
@@ -942,6 +969,8 @@ type PortfolioActivityPanelProps = {
942
969
  showPositionsTab?: boolean;
943
970
  showSubscriptionsTab?: boolean;
944
971
  onPositionClick?: (tokenName: string, isIpo: boolean) => void;
972
+ /** Click handler for the asset name in the Open Orders / Order History / Trade History rows — opens that asset. */
973
+ onAssetClick?: (tokenName: string) => void;
945
974
  onClosePosition?: (tokenName: string, type: 'market' | 'limit', quantity: number, marketPrice: number) => void;
946
975
  offeringOrders?: readonly OfferingOrder[];
947
976
  openOrders?: readonly OrderHistoryItem[];
@@ -950,10 +979,6 @@ type PortfolioActivityPanelProps = {
950
979
  transfers?: readonly TransferHistoryItem[];
951
980
  onCancelOrder?: (orderId: number) => Promise<void>;
952
981
  onCancelAllOrders?: () => Promise<void>;
953
- onAmendOrder?: (orderId: number, fields: {
954
- quantity?: number;
955
- price?: number;
956
- }) => Promise<void>;
957
982
  cancellingOrderId?: number | null;
958
983
  compactPositions?: boolean;
959
984
  defaultTab?: ActivityTabId;
@@ -963,7 +988,7 @@ type PortfolioActivityPanelProps = {
963
988
  className?: string;
964
989
  style?: React.CSSProperties;
965
990
  };
966
- declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, onAmendOrder, cancellingOrderId, compactPositions, defaultTab, onTabChange, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
991
+ declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onAssetClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, cancellingOrderId, compactPositions, defaultTab, onTabChange, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
967
992
 
968
993
  type SelectorItem = {
969
994
  readonly tokenName: string;
@@ -1254,4 +1279,4 @@ declare function extractSparkline(candles: ReadonlyArray<{
1254
1279
  }>, maxPoints?: number): number[];
1255
1280
  declare const SparklineChart: React__default.NamedExoticComponent<SparklineChartProps>;
1256
1281
 
1257
- export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, ContactPopup, type ContactPopupProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderPortfolioData, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, PropertyMediaRow, type PropertyMediaRowProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, SiteFooter, Skeleton, type SkeletonProps, SlideDigit, SparklineChart, type SparklineChartProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, extractSparkline, hasPendingActivity, useAdaptivePolling, useToast };
1282
+ export { type ActivityTabId, AssetSelectorBar, type AssetSelectorBarProps, type AssetSelectorMetric, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, ContactPopup, type ContactPopupProps, type FinancialItem, type FundWalletParams, type FundWalletResult, Header, type HeaderPortfolioData, type HeaderProps, type HousePositionOrderbook, type HousePositionPendingOrder, HousePositionSlider, HousePositionSliderMobile, type HousePositionSliderMobileOrderPayload, type HousePositionSliderMobileOrderbook, type HousePositionSliderMobileProps, type HousePositionSliderOrderPayload, type HousePositionSliderProps, type InspectionSlot, LoafLiquidityBadge, LoafLiquidityLogo, type LoafLiquidityLogoProps, LoginPopup, type LoginPopupProps, MobileTradeNav, type MobileTradeNavItem, type MobileTradeNavProps, type OfferStatus, OfferingProgressCard, type OfferingProgressCardProps, OnboardingGuide, type OnboardingGuideProps, Orderbook, type OrderbookLevel, type OrderbookProps, type OrderbookSide, type OrderbookTrade, type OverviewImage, type OverviewResponse, OwnerBooking, type OwnerBookingProps, PaymentPopup, type PaymentPopupProps, PortfolioActivityPanel, type PortfolioActivityPanelProps, type PortfolioPosition, PortfolioSummary, type PortfolioSummaryProps, PriceChart, type PriceChartCandle, type PriceChartProps, type PriceChartRange, type PropertyAddressOption, PropertyBuy, PropertyCompareBar, type PropertyCompareBarProps, PropertyDocuments, type PropertyGalleryHotspot, type PropertyGalleryImage, PropertyHeroHeader, type PropertyHeroHeaderProps, PropertyHistory, type PropertyInfoItem, PropertyInspectionTimes, PropertyMediaRow, type PropertyMediaRowProps, type PropertyNewsItem, type PropertyNewsType, PropertyNewsUpdates, type PropertyNewsUpdatesProps, type PropertyOffer, PropertyOffers, type PropertyOffersProps, PropertyOverview, type PropertyOverviewProps, PropertyPhotoGallery, type PropertyPriceSummary, PropertySubheader, type PropertySubheaderAction, type PropertySubheaderProps, type PropertySubheaderTab, PropertyTour, type PropertyTourProps, PropertyValuation, type PropertyValuationProps, type PropertyValueSummary, type PurchaseFeedItem, type SelectorItem, SiteFooter, Skeleton, type SkeletonProps, SlideDigit, SparklineChart, type SparklineChartProps, type ToastData, ToastProvider, type ToastVariant, TradeConfirmationModal, type TradeConfirmationModalDetails, type TradeConfirmationModalProps, TradingSlider, type TradingSliderProps, type YourOrder, type YourOrderSide, YourOrders, type YourOrdersProps, badgeVariants, buttonVariants, extractSparkline, hasPendingActivity, useAdaptivePolling, useToast };