@orderly.network/ui-tradingview 3.0.1 → 3.0.2-alpha.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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import React3, { forwardRef, useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
3
3
|
import { useTranslation, Trans, useLocaleCode, i18n } from '@orderly.network/i18n';
|
|
4
|
-
import { injectable, cn, Flex, Divider,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { injectable, useScreen, cn, Flex, Divider, useOrderlyTheme, Text, Switch, Box, useThemeAttribute, toast, modal, DropdownMenuRoot, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuContent } from '@orderly.network/ui';
|
|
5
|
+
import { useConfig, useAccount, useSymbolsInfo, useLocalStorage, useOrderEntry_deprecated, useMarginModeBySymbol, useWS, usePositionStream, useOrderStream, useEventEmitter } from '@orderly.network/hooks';
|
|
6
|
+
import { OrderSide, TradingviewFullscreenKey, OrderType, AccountStatusEnum, OrderStatus, ORDER_ENTRY_EST_LIQ_PRICE_CHANGE, MarginMode } from '@orderly.network/types';
|
|
7
7
|
import { Decimal, commify, getTrailingStopPrice, getPrecisionByNumber } from '@orderly.network/utils';
|
|
8
8
|
import { startOfSecond, startOfMinute, startOfHour, startOfDay, startOfMonth, startOfYear, startOfWeek } from 'date-fns';
|
|
9
9
|
|
|
@@ -423,7 +423,7 @@ var init_timeInterval = __esm({
|
|
|
423
423
|
return { mobileTimeIntervalMoreMap };
|
|
424
424
|
};
|
|
425
425
|
TimeInterval = (props) => {
|
|
426
|
-
const isMobile =
|
|
426
|
+
const { isMobile } = useScreen();
|
|
427
427
|
if (isMobile) {
|
|
428
428
|
return /* @__PURE__ */ jsx(MobileTimeInterval, { ...props });
|
|
429
429
|
}
|
|
@@ -5010,7 +5010,7 @@ var TradingviewUI = forwardRef((props, ref) => {
|
|
|
5010
5010
|
openChartIndicators,
|
|
5011
5011
|
onFullScreenChange
|
|
5012
5012
|
} = props;
|
|
5013
|
-
const isMobile =
|
|
5013
|
+
const { isMobile } = useScreen();
|
|
5014
5014
|
return /* @__PURE__ */ jsx(
|
|
5015
5015
|
"div",
|
|
5016
5016
|
{
|