@loafmarkets/ui 0.1.287 → 0.1.289
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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1005,6 +1005,7 @@ type PropertyBuyProps = {
|
|
|
1005
1005
|
tradeHistory?: readonly TradeHistoryItem[];
|
|
1006
1006
|
transfers?: readonly TransferHistoryItem[];
|
|
1007
1007
|
onCancelOrder?: (orderId: number) => Promise<void>;
|
|
1008
|
+
onClosePosition?: (tokenName: string, type: 'market' | 'limit', quantity: number, marketPrice: number) => void;
|
|
1008
1009
|
cancellingOrderId?: number | null;
|
|
1009
1010
|
};
|
|
1010
1011
|
newsItems?: PropertyNewsItem[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1005,6 +1005,7 @@ type PropertyBuyProps = {
|
|
|
1005
1005
|
tradeHistory?: readonly TradeHistoryItem[];
|
|
1006
1006
|
transfers?: readonly TransferHistoryItem[];
|
|
1007
1007
|
onCancelOrder?: (orderId: number) => Promise<void>;
|
|
1008
|
+
onClosePosition?: (tokenName: string, type: 'market' | 'limit', quantity: number, marketPrice: number) => void;
|
|
1008
1009
|
cancellingOrderId?: number | null;
|
|
1009
1010
|
};
|
|
1010
1011
|
newsItems?: PropertyNewsItem[];
|
package/dist/index.js
CHANGED
|
@@ -13811,7 +13811,7 @@ function PortfolioActivityPanel({
|
|
|
13811
13811
|
/* @__PURE__ */ jsxRuntime.jsx(PanelTitle, { children: "Activity" }),
|
|
13812
13812
|
/* @__PURE__ */ jsxRuntime.jsxs(TabContainer, { children: [
|
|
13813
13813
|
showPositionsTab && /* @__PURE__ */ jsxRuntime.jsxs(Tab, { $active: activeTab === "positions", onClick: () => handleTabChange("positions"), children: [
|
|
13814
|
-
"Positions",
|
|
13814
|
+
"Trading Positions",
|
|
13815
13815
|
positionsCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(TabCount, { children: [
|
|
13816
13816
|
" (",
|
|
13817
13817
|
positionsCount,
|
|
@@ -15218,6 +15218,7 @@ function PropertyBuy({
|
|
|
15218
15218
|
{
|
|
15219
15219
|
positions: portfolioActivity?.positions,
|
|
15220
15220
|
showPositionsTab: true,
|
|
15221
|
+
compactPositions: true,
|
|
15221
15222
|
onPositionClick: portfolioActivity?.onPositionClick,
|
|
15222
15223
|
offeringOrders: portfolioActivity?.offeringOrders,
|
|
15223
15224
|
openOrders: portfolioActivity?.openOrders,
|
|
@@ -15225,6 +15226,7 @@ function PropertyBuy({
|
|
|
15225
15226
|
tradeHistory: portfolioActivity?.tradeHistory,
|
|
15226
15227
|
transfers: portfolioActivity?.transfers,
|
|
15227
15228
|
onCancelOrder: portfolioActivity?.onCancelOrder,
|
|
15229
|
+
onClosePosition: portfolioActivity?.onClosePosition,
|
|
15228
15230
|
cancellingOrderId: portfolioActivity?.cancellingOrderId,
|
|
15229
15231
|
defaultTab: "subscriptions",
|
|
15230
15232
|
pageSize: 6
|