@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 +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
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
|
|
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
|
|
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
|
-
|
|
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,
|
|
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
|
|
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
|
|
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
|
-
|
|
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,
|
|
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 };
|