@orderly.network/ui-order-entry 2.11.0 → 3.0.0-beta.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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React3, { forwardRef, useState, useImperativeHandle, useEffect, memo, createContext, useMemo, useRef, useCallback, useContext, useId } from 'react';
|
|
2
|
-
import { useLocalStorage, utils,
|
|
2
|
+
import { useLocalStorage, utils, useOrderlyContext, useMemoizedFn, ERROR_MSG_CODES, usePositionStream, useMarkets, MarketsType, useMarginModes, useMarginModeBySymbol, useGetEstLiqPrice, useEventEmitter, useDebouncedCallback, useFeatureFlag, FlagKeys, useFeeState, useRwaSymbolsInfoStore, useHoldingStream, useAppStore, useIndexPricesStream, useComputedLTV, useBoolean, useQuery, useOrderEntry, useMarginRatio, useTpslPriceChecker, useTrack } from '@orderly.network/hooks';
|
|
3
3
|
import { useTranslation, i18n } from '@orderly.network/i18n';
|
|
4
4
|
import { useOrderEntryFormErrorMsg, useCanTrade } from '@orderly.network/react-app';
|
|
5
|
-
import { EMPTY_LIST, DistributionType, TrailingCallbackType, OrderSide, OrderType,
|
|
6
|
-
import { ExclamationFillIcon, modal, Text, Tooltip, TooltipTrigger, Flex, Input, cn, inputFormatter, Box, registerSimpleDialog, SimpleDialog, registerSimpleSheet, Select, Grid, Checkbox, Slider, textVariants, SettingFillIcon, useModal,
|
|
5
|
+
import { EMPTY_LIST, DistributionType, TrailingCallbackType, OrderSide, OrderType, PositionType, MarginMode, BBOOrderType, ORDER_ENTRY_EST_LIQ_PRICE_CHANGE, OrderLevel, TrackerEventName } from '@orderly.network/types';
|
|
6
|
+
import { ExclamationFillIcon, modal, Text, Tooltip, TooltipTrigger, Flex, Input, cn, inputFormatter, Box, registerSimpleDialog, SimpleDialog, registerSimpleSheet, Select, Grid, Checkbox, Slider, textVariants, SettingFillIcon, injectable, useModal, useScreen, toast, ThrottledButton, Divider, Switch, SimpleSheet, Badge, Button, TokenIcon, DataTable, IconButton, CloseIcon, CloseCircleFillIcon, ChevronRightIcon, InfoCircleIcon, AddCircleIcon, SimpleDropdownMenu, CaretDownIcon, DotStatus, PopoverRoot, PopoverTrigger, PopoverContent, EditIcon as EditIcon$1 } from '@orderly.network/ui';
|
|
7
7
|
import { TPSLPositionTypeWidget, TPSLAdvancedWidget } from '@orderly.network/ui-tpsl';
|
|
8
8
|
import { Decimal, zero, formatSymbol, todpIfNeed, getBBOType, removeTrailingZeros } from '@orderly.network/utils';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -6122,10 +6122,14 @@ var useOrderEntryScript = (inputs) => {
|
|
|
6122
6122
|
currentFocusInput
|
|
6123
6123
|
};
|
|
6124
6124
|
};
|
|
6125
|
+
var InjectableOrderEntry = injectable(
|
|
6126
|
+
OrderEntry,
|
|
6127
|
+
"OrderEntry"
|
|
6128
|
+
);
|
|
6125
6129
|
var OrderEntryWidget = (props) => {
|
|
6126
6130
|
const state = useOrderEntryScript(props);
|
|
6127
6131
|
return /* @__PURE__ */ jsx(
|
|
6128
|
-
|
|
6132
|
+
InjectableOrderEntry,
|
|
6129
6133
|
{
|
|
6130
6134
|
...state,
|
|
6131
6135
|
containerRef: props.containerRef,
|