@orderly.network/trading 2.0.7 → 2.1.0
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 +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +36 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -18
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import react__default, { ReactNode, FC, 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
|
+
import { TradingviewWidgetPropsInterface } from '@orderly.network/ui-tradingview';
|
|
7
8
|
import { PositionsProps } from '@orderly.network/ui-positions';
|
|
8
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
10
|
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
@@ -105,6 +106,7 @@ interface TradingViewConfigInterface {
|
|
|
105
106
|
studiesOverrides?: Record<string, string>;
|
|
106
107
|
customCssUrl?: string;
|
|
107
108
|
colorConfig?: ColorConfigInterface;
|
|
109
|
+
locale?: TradingviewWidgetPropsInterface["locale"];
|
|
108
110
|
}
|
|
109
111
|
interface ColorConfigInterface {
|
|
110
112
|
chartBG?: string;
|
|
@@ -380,6 +382,15 @@ declare const PortfolioSheetWidget: () => react_jsx_runtime.JSX.Element;
|
|
|
380
382
|
|
|
381
383
|
type TradingState = ReturnType<typeof useTradingScript>;
|
|
382
384
|
declare const useTradingScript: () => TradingPageState & {
|
|
385
|
+
restrictedInfo: {
|
|
386
|
+
ip: string;
|
|
387
|
+
invalidRegions: string[];
|
|
388
|
+
restrictedOpen: boolean;
|
|
389
|
+
content: react.ReactNode | ((data: {
|
|
390
|
+
ip: string;
|
|
391
|
+
brokerName: string;
|
|
392
|
+
}) => react.ReactNode);
|
|
393
|
+
};
|
|
383
394
|
orderEntryViewRef: react.RefObject<HTMLDivElement>;
|
|
384
395
|
orderEntryHeight: number;
|
|
385
396
|
orderBookSplitSize: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import react__default, { ReactNode, FC, 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
|
+
import { TradingviewWidgetPropsInterface } from '@orderly.network/ui-tradingview';
|
|
7
8
|
import { PositionsProps } from '@orderly.network/ui-positions';
|
|
8
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
10
|
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
@@ -105,6 +106,7 @@ interface TradingViewConfigInterface {
|
|
|
105
106
|
studiesOverrides?: Record<string, string>;
|
|
106
107
|
customCssUrl?: string;
|
|
107
108
|
colorConfig?: ColorConfigInterface;
|
|
109
|
+
locale?: TradingviewWidgetPropsInterface["locale"];
|
|
108
110
|
}
|
|
109
111
|
interface ColorConfigInterface {
|
|
110
112
|
chartBG?: string;
|
|
@@ -380,6 +382,15 @@ declare const PortfolioSheetWidget: () => react_jsx_runtime.JSX.Element;
|
|
|
380
382
|
|
|
381
383
|
type TradingState = ReturnType<typeof useTradingScript>;
|
|
382
384
|
declare const useTradingScript: () => TradingPageState & {
|
|
385
|
+
restrictedInfo: {
|
|
386
|
+
ip: string;
|
|
387
|
+
invalidRegions: string[];
|
|
388
|
+
restrictedOpen: boolean;
|
|
389
|
+
content: react.ReactNode | ((data: {
|
|
390
|
+
ip: string;
|
|
391
|
+
brokerName: string;
|
|
392
|
+
}) => react.ReactNode);
|
|
393
|
+
};
|
|
383
394
|
orderEntryViewRef: react.RefObject<HTMLDivElement>;
|
|
384
395
|
orderEntryHeight: number;
|
|
385
396
|
orderBookSplitSize: string | undefined;
|