@orderly.network/ui-positions 2.8.3 → 2.8.4-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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -175,6 +175,7 @@ declare const useCloseAllPositionsScript: (options?: UseCloseAllPositionsScriptO
|
|
|
175
175
|
hasOpenPositions: boolean;
|
|
176
176
|
isClosing: boolean;
|
|
177
177
|
openPositionsCount: number;
|
|
178
|
+
symbol: string | undefined;
|
|
178
179
|
};
|
|
179
180
|
type CloseAllPositionsState = ReturnType<typeof useCloseAllPositionsScript>;
|
|
180
181
|
|
package/dist/index.d.ts
CHANGED
|
@@ -175,6 +175,7 @@ declare const useCloseAllPositionsScript: (options?: UseCloseAllPositionsScriptO
|
|
|
175
175
|
hasOpenPositions: boolean;
|
|
176
176
|
isClosing: boolean;
|
|
177
177
|
openPositionsCount: number;
|
|
178
|
+
symbol: string | undefined;
|
|
178
179
|
};
|
|
179
180
|
type CloseAllPositionsState = ReturnType<typeof useCloseAllPositionsScript>;
|
|
180
181
|
|
package/dist/index.js
CHANGED
|
@@ -4732,8 +4732,11 @@ var MobileLiquidationWidget = (props) => {
|
|
|
4732
4732
|
return /* @__PURE__ */ jsxRuntime.jsx(MobileLiquidation, { classNames, ...state });
|
|
4733
4733
|
};
|
|
4734
4734
|
var CloseAllPositions = (props) => {
|
|
4735
|
-
const { onCloseAll, hasOpenPositions, isClosing, className, style } = props;
|
|
4735
|
+
const { onCloseAll, hasOpenPositions, isClosing, className, style, symbol } = props;
|
|
4736
4736
|
const { t } = i18n.useTranslation();
|
|
4737
|
+
if (symbol !== void 0) {
|
|
4738
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
4739
|
+
}
|
|
4737
4740
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4738
4741
|
ui.Button,
|
|
4739
4742
|
{
|
|
@@ -4819,7 +4822,8 @@ var useCloseAllPositionsScript = (options) => {
|
|
|
4819
4822
|
onCloseAll,
|
|
4820
4823
|
hasOpenPositions,
|
|
4821
4824
|
isClosing: isMutating,
|
|
4822
|
-
openPositionsCount: openPositions.length
|
|
4825
|
+
openPositionsCount: openPositions.length,
|
|
4826
|
+
symbol
|
|
4823
4827
|
};
|
|
4824
4828
|
};
|
|
4825
4829
|
var CloseAllPositionsWidget = (props) => {
|