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

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 ReferralPropsV2 = {
122
+ type ReferralProps = {
123
123
  saveRefCode?: boolean;
124
124
  onClickReferral?: () => void;
125
125
  onBoundRefCode?: (success: boolean, error: any) => void;
@@ -136,9 +136,7 @@ type BaseTradingPageProps = {
136
136
  };
137
137
  type TradingPageProps = BaseTradingPageProps & {
138
138
  sharePnLConfig?: SharePnLConfig & Partial<Omit<SharePnLParams, "position" | "refCode" | "leverage">>;
139
- /** default is `(max-width: 768px)`*/
140
- tabletMediaQuery?: string;
141
- referral?: ReferralPropsV2;
139
+ referral?: ReferralProps;
142
140
  tradingRewards?: TradingRewardsProps;
143
141
  bottomSheetLeading?: React.ReactNode | string;
144
142
  };
@@ -386,4 +384,4 @@ declare const usePendingOrderCount: (symbol?: string) => {
386
384
  tpSlOrderCount: number;
387
385
  };
388
386
 
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 };
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 };
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 ReferralPropsV2 = {
122
+ type ReferralProps = {
123
123
  saveRefCode?: boolean;
124
124
  onClickReferral?: () => void;
125
125
  onBoundRefCode?: (success: boolean, error: any) => void;
@@ -136,9 +136,7 @@ type BaseTradingPageProps = {
136
136
  };
137
137
  type TradingPageProps = BaseTradingPageProps & {
138
138
  sharePnLConfig?: SharePnLConfig & Partial<Omit<SharePnLParams, "position" | "refCode" | "leverage">>;
139
- /** default is `(max-width: 768px)`*/
140
- tabletMediaQuery?: string;
141
- referral?: ReferralPropsV2;
139
+ referral?: ReferralProps;
142
140
  tradingRewards?: TradingRewardsProps;
143
141
  bottomSheetLeading?: React.ReactNode | string;
144
142
  };
@@ -386,4 +384,4 @@ declare const usePendingOrderCount: (symbol?: string) => {
386
384
  tpSlOrderCount: number;
387
385
  };
388
386
 
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 };
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 };