@orderly.network/trading 2.1.0 → 2.1.1
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 +16 -6
- package/dist/index.d.ts +16 -6
- package/dist/index.js +35 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
2
2
|
import { API, NetworkId, AccountStatusEnum } from '@orderly.network/types';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode, FC, PropsWithChildren } from 'react';
|
|
4
|
+
import react__default, { ReactNode, FC, RefObject, PropsWithChildren } from 'react';
|
|
5
5
|
import * as _orderly_network_ui_share from '@orderly.network/ui-share';
|
|
6
6
|
import { SharePnLConfig } from '@orderly.network/ui-share';
|
|
7
7
|
import { TradingviewWidgetPropsInterface } from '@orderly.network/ui-tradingview';
|
|
8
8
|
import { PositionsProps } from '@orderly.network/ui-positions';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
10
|
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
11
|
-
import { SplitProps } from '@uiw/react-split';
|
|
11
|
+
import Split, { SplitProps } from '@uiw/react-split';
|
|
12
12
|
import { SliderMarks } from '@orderly.network/ui';
|
|
13
13
|
|
|
14
14
|
type layoutInfo = {
|
|
@@ -309,10 +309,11 @@ declare const OrderBookAndTradesWidget: (props: {
|
|
|
309
309
|
symbol: string;
|
|
310
310
|
}) => react_jsx_runtime.JSX.Element;
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
declare const SplitLayout: react__default.ForwardRefExoticComponent<SplitProps & {
|
|
313
|
+
children?: react__default.ReactNode | undefined;
|
|
314
|
+
} & {
|
|
313
315
|
onSizeChange?: (size: string) => void;
|
|
314
|
-
}
|
|
315
|
-
declare const SplitLayout: react__default.FC<SplitLayoutProps>;
|
|
316
|
+
} & react__default.RefAttributes<Split>>;
|
|
316
317
|
|
|
317
318
|
declare const useBottomNavBarScript: () => {
|
|
318
319
|
wrongNetwork: boolean;
|
|
@@ -382,6 +383,15 @@ declare const PortfolioSheetWidget: () => react_jsx_runtime.JSX.Element;
|
|
|
382
383
|
|
|
383
384
|
type TradingState = ReturnType<typeof useTradingScript>;
|
|
384
385
|
declare const useTradingScript: () => TradingPageState & {
|
|
386
|
+
marketsWidth: number;
|
|
387
|
+
tradindviewMaxHeight: number;
|
|
388
|
+
dataListMinHeight: number;
|
|
389
|
+
max2XLSplitRef: RefObject<Split>;
|
|
390
|
+
tradingviewAndOrderbookSplitRef: RefObject<Split>;
|
|
391
|
+
onTradingviewAndOrderbookDragging: (preSize: number, nextSize: number) => void;
|
|
392
|
+
onDataListSplitHeightDragging: (preSize: number, nextSize: number) => void;
|
|
393
|
+
extraHeight: any;
|
|
394
|
+
dataListHeight: any;
|
|
385
395
|
restrictedInfo: {
|
|
386
396
|
ip: string;
|
|
387
397
|
invalidRegions: string[];
|
|
@@ -391,7 +401,7 @@ declare const useTradingScript: () => TradingPageState & {
|
|
|
391
401
|
brokerName: string;
|
|
392
402
|
}) => react.ReactNode);
|
|
393
403
|
};
|
|
394
|
-
orderEntryViewRef:
|
|
404
|
+
orderEntryViewRef: RefObject<HTMLDivElement>;
|
|
395
405
|
orderEntryHeight: number;
|
|
396
406
|
orderBookSplitSize: string | undefined;
|
|
397
407
|
setOrderbookSplitSize: (size: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
2
2
|
import { API, NetworkId, AccountStatusEnum } from '@orderly.network/types';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode, FC, PropsWithChildren } from 'react';
|
|
4
|
+
import react__default, { ReactNode, FC, RefObject, PropsWithChildren } from 'react';
|
|
5
5
|
import * as _orderly_network_ui_share from '@orderly.network/ui-share';
|
|
6
6
|
import { SharePnLConfig } from '@orderly.network/ui-share';
|
|
7
7
|
import { TradingviewWidgetPropsInterface } from '@orderly.network/ui-tradingview';
|
|
8
8
|
import { PositionsProps } from '@orderly.network/ui-positions';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
10
|
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
11
|
-
import { SplitProps } from '@uiw/react-split';
|
|
11
|
+
import Split, { SplitProps } from '@uiw/react-split';
|
|
12
12
|
import { SliderMarks } from '@orderly.network/ui';
|
|
13
13
|
|
|
14
14
|
type layoutInfo = {
|
|
@@ -309,10 +309,11 @@ declare const OrderBookAndTradesWidget: (props: {
|
|
|
309
309
|
symbol: string;
|
|
310
310
|
}) => react_jsx_runtime.JSX.Element;
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
declare const SplitLayout: react__default.ForwardRefExoticComponent<SplitProps & {
|
|
313
|
+
children?: react__default.ReactNode | undefined;
|
|
314
|
+
} & {
|
|
313
315
|
onSizeChange?: (size: string) => void;
|
|
314
|
-
}
|
|
315
|
-
declare const SplitLayout: react__default.FC<SplitLayoutProps>;
|
|
316
|
+
} & react__default.RefAttributes<Split>>;
|
|
316
317
|
|
|
317
318
|
declare const useBottomNavBarScript: () => {
|
|
318
319
|
wrongNetwork: boolean;
|
|
@@ -382,6 +383,15 @@ declare const PortfolioSheetWidget: () => react_jsx_runtime.JSX.Element;
|
|
|
382
383
|
|
|
383
384
|
type TradingState = ReturnType<typeof useTradingScript>;
|
|
384
385
|
declare const useTradingScript: () => TradingPageState & {
|
|
386
|
+
marketsWidth: number;
|
|
387
|
+
tradindviewMaxHeight: number;
|
|
388
|
+
dataListMinHeight: number;
|
|
389
|
+
max2XLSplitRef: RefObject<Split>;
|
|
390
|
+
tradingviewAndOrderbookSplitRef: RefObject<Split>;
|
|
391
|
+
onTradingviewAndOrderbookDragging: (preSize: number, nextSize: number) => void;
|
|
392
|
+
onDataListSplitHeightDragging: (preSize: number, nextSize: number) => void;
|
|
393
|
+
extraHeight: any;
|
|
394
|
+
dataListHeight: any;
|
|
385
395
|
restrictedInfo: {
|
|
386
396
|
ip: string;
|
|
387
397
|
invalidRegions: string[];
|
|
@@ -391,7 +401,7 @@ declare const useTradingScript: () => TradingPageState & {
|
|
|
391
401
|
brokerName: string;
|
|
392
402
|
}) => react.ReactNode);
|
|
393
403
|
};
|
|
394
|
-
orderEntryViewRef:
|
|
404
|
+
orderEntryViewRef: RefObject<HTMLDivElement>;
|
|
395
405
|
orderEntryHeight: number;
|
|
396
406
|
orderBookSplitSize: string | undefined;
|
|
397
407
|
setOrderbookSplitSize: (size: string) => void;
|