@orderly.network/trading 2.0.1-alpha.2 → 2.0.1-alpha.4

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
@@ -97,7 +97,7 @@ interface TradingPageState extends TradingPageProps {
97
97
  symbol: string;
98
98
  };
99
99
  /** default is `(max-width: 768px)`*/
100
- tabletMediaQuery?: string;
100
+ tabletMediaQuery: string;
101
101
  }
102
102
  interface TradingViewConfigInterface {
103
103
  scriptSRC?: string;
@@ -119,7 +119,7 @@ interface ColorConfigInterface {
119
119
  font?: string;
120
120
  closeIcon?: string;
121
121
  }
122
- type ReferralProps = {
122
+ type ReferralPropsV2 = {
123
123
  saveRefCode?: boolean;
124
124
  onClickReferral?: () => void;
125
125
  onBoundRefCode?: (success: boolean, error: any) => void;
@@ -136,7 +136,9 @@ type BaseTradingPageProps = {
136
136
  };
137
137
  type TradingPageProps = BaseTradingPageProps & {
138
138
  sharePnLConfig?: SharePnLConfig & Partial<Omit<SharePnLParams, "position" | "refCode" | "leverage">>;
139
- referral?: ReferralProps;
139
+ /** default is `(max-width: 768px)`*/
140
+ tabletMediaQuery?: string;
141
+ referral?: ReferralPropsV2;
140
142
  tradingRewards?: TradingRewardsProps;
141
143
  bottomSheetLeading?: React.ReactNode | string;
142
144
  };
@@ -384,4 +386,4 @@ declare const usePendingOrderCount: (symbol?: string) => {
384
386
  tpSlOrderCount: number;
385
387
  };
386
388
 
387
- export { AssetView, AssetViewWidget, BottomNavBar, BottomNavBarWidget, DataList, DataListWidget, LastTrades, LastTradesWidget, OrderBook, OrderBookAndTrades, OrderBookAndTradesWidget, OrderBookWidget, type ReferralProps, RiskRate, RiskRateWidget, type ShareOptions, SplitLayout, Trading, TradingPage, TradingPageContext, type TradingPageProps, TradingPageProvider, type TradingRewardsProps, TradingWidget, useBottomNavBarScript, useOrderBookAndTradesScript, useOrderBookScript, usePendingOrderCount, usePositionsCount, useTradingLocalStorage, useTradingPageContext };
389
+ export { AssetView, AssetViewWidget, BottomNavBar, BottomNavBarWidget, DataList, DataListWidget, LastTrades, LastTradesWidget, OrderBook, OrderBookAndTrades, OrderBookAndTradesWidget, OrderBookWidget, RiskRate, RiskRateWidget, type ShareOptions, SplitLayout, Trading, TradingPage, TradingPageContext, type TradingPageProps, TradingPageProvider, TradingWidget, useBottomNavBarScript, useOrderBookAndTradesScript, useOrderBookScript, usePendingOrderCount, usePositionsCount, useTradingLocalStorage, useTradingPageContext };
package/dist/index.d.ts CHANGED
@@ -97,7 +97,7 @@ interface TradingPageState extends TradingPageProps {
97
97
  symbol: string;
98
98
  };
99
99
  /** default is `(max-width: 768px)`*/
100
- tabletMediaQuery?: string;
100
+ tabletMediaQuery: string;
101
101
  }
102
102
  interface TradingViewConfigInterface {
103
103
  scriptSRC?: string;
@@ -119,7 +119,7 @@ interface ColorConfigInterface {
119
119
  font?: string;
120
120
  closeIcon?: string;
121
121
  }
122
- type ReferralProps = {
122
+ type ReferralPropsV2 = {
123
123
  saveRefCode?: boolean;
124
124
  onClickReferral?: () => void;
125
125
  onBoundRefCode?: (success: boolean, error: any) => void;
@@ -136,7 +136,9 @@ type BaseTradingPageProps = {
136
136
  };
137
137
  type TradingPageProps = BaseTradingPageProps & {
138
138
  sharePnLConfig?: SharePnLConfig & Partial<Omit<SharePnLParams, "position" | "refCode" | "leverage">>;
139
- referral?: ReferralProps;
139
+ /** default is `(max-width: 768px)`*/
140
+ tabletMediaQuery?: string;
141
+ referral?: ReferralPropsV2;
140
142
  tradingRewards?: TradingRewardsProps;
141
143
  bottomSheetLeading?: React.ReactNode | string;
142
144
  };
@@ -384,4 +386,4 @@ declare const usePendingOrderCount: (symbol?: string) => {
384
386
  tpSlOrderCount: number;
385
387
  };
386
388
 
387
- export { AssetView, AssetViewWidget, BottomNavBar, BottomNavBarWidget, DataList, DataListWidget, LastTrades, LastTradesWidget, OrderBook, OrderBookAndTrades, OrderBookAndTradesWidget, OrderBookWidget, type ReferralProps, RiskRate, RiskRateWidget, type ShareOptions, SplitLayout, Trading, TradingPage, TradingPageContext, type TradingPageProps, TradingPageProvider, type TradingRewardsProps, TradingWidget, useBottomNavBarScript, useOrderBookAndTradesScript, useOrderBookScript, usePendingOrderCount, usePositionsCount, useTradingLocalStorage, useTradingPageContext };
389
+ export { AssetView, AssetViewWidget, BottomNavBar, BottomNavBarWidget, DataList, DataListWidget, LastTrades, LastTradesWidget, OrderBook, OrderBookAndTrades, OrderBookAndTradesWidget, OrderBookWidget, RiskRate, RiskRateWidget, type ShareOptions, SplitLayout, Trading, TradingPage, TradingPageContext, type TradingPageProps, TradingPageProvider, TradingWidget, useBottomNavBarScript, useOrderBookAndTradesScript, useOrderBookScript, usePendingOrderCount, usePositionsCount, useTradingLocalStorage, useTradingPageContext };