@kodiak-finance/orderly-ui-positions 2.8.14-prerelease.0 → 2.8.14
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 +12 -31
- package/dist/index.d.ts +12 -31
- package/dist/index.js +23 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OrderType, OrderSide, API } from '@kodiak-finance/orderly-types';
|
|
2
|
-
import React
|
|
2
|
+
import React, { FC } from 'react';
|
|
3
3
|
import { PriceMode } from '@kodiak-finance/orderly-hooks';
|
|
4
4
|
import * as _kodiak_finance_orderly_ui from '@kodiak-finance/orderly-ui';
|
|
5
|
-
import { SortOrder, TableSort
|
|
5
|
+
import { SortOrder, TableSort } from '@kodiak-finance/orderly-ui';
|
|
6
6
|
import { SharePnLConfig } from '@kodiak-finance/orderly-ui-share';
|
|
7
7
|
|
|
8
8
|
interface PositionsRowContextState {
|
|
@@ -55,14 +55,9 @@ type PositionsProps = {
|
|
|
55
55
|
enableSortingStorage?: boolean;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
dataSource?: any[] | null;
|
|
62
|
-
};
|
|
63
|
-
declare const PositionsWidget: React$1.ForwardRefExoticComponent<PositionsProps & React$1.RefAttributes<PositionsInstance>>;
|
|
64
|
-
declare const MobilePositionsWidget: React$1.ForwardRefExoticComponent<PositionsProps & React$1.RefAttributes<PositionsInstance>>;
|
|
65
|
-
declare const CombinePositionsWidget: React$1.ForwardRefExoticComponent<PositionsProps & React$1.RefAttributes<PositionsInstance>>;
|
|
58
|
+
declare const PositionsWidget: React.FC<PositionsProps>;
|
|
59
|
+
declare const MobilePositionsWidget: React.FC<PositionsProps>;
|
|
60
|
+
declare const CombinePositionsWidget: React.FC<PositionsProps>;
|
|
66
61
|
|
|
67
62
|
declare enum PositionsTabName {
|
|
68
63
|
Positions = "positions",
|
|
@@ -89,19 +84,14 @@ type PositionHistoryProps$1 = {
|
|
|
89
84
|
sharePnLConfig?: SharePnLConfig;
|
|
90
85
|
enableSortingStorage?: boolean;
|
|
91
86
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
getRowCount?: () => number;
|
|
95
|
-
};
|
|
96
|
-
declare const PositionHistoryWidget: React$1.ForwardRefExoticComponent<PositionHistoryProps$1 & React$1.RefAttributes<PositionHistoryInstance>>;
|
|
97
|
-
declare const MobilePositionHistoryWidget: React$1.ForwardRefExoticComponent<PositionHistoryProps$1 & {
|
|
87
|
+
declare const PositionHistoryWidget: React.FC<PositionHistoryProps$1>;
|
|
88
|
+
declare const MobilePositionHistoryWidget: React.FC<PositionHistoryProps$1 & {
|
|
98
89
|
classNames?: {
|
|
99
90
|
root?: string;
|
|
100
91
|
content?: string;
|
|
101
92
|
cell?: string;
|
|
102
93
|
};
|
|
103
|
-
|
|
104
|
-
} & React$1.RefAttributes<PositionHistoryInstance>>;
|
|
94
|
+
}>;
|
|
105
95
|
|
|
106
96
|
declare const usePositionHistoryScript: (props: PositionHistoryProps$1) => {
|
|
107
97
|
dataSource: any[];
|
|
@@ -124,7 +114,6 @@ type PositionHistoryState = ReturnType<typeof usePositionHistoryScript>;
|
|
|
124
114
|
|
|
125
115
|
type PositionHistoryProps = PositionHistoryState & {
|
|
126
116
|
sharePnLConfig?: SharePnLConfig;
|
|
127
|
-
tableRef?: React.RefObject<Table<any>>;
|
|
128
117
|
};
|
|
129
118
|
declare const PositionHistory: FC<PositionHistoryProps>;
|
|
130
119
|
declare const MobilePositionHistory: FC<PositionHistoryState & {
|
|
@@ -134,27 +123,20 @@ declare const MobilePositionHistory: FC<PositionHistoryState & {
|
|
|
134
123
|
cell?: string;
|
|
135
124
|
};
|
|
136
125
|
sharePnLConfig?: SharePnLConfig;
|
|
137
|
-
onExport?: () => void;
|
|
138
126
|
}>;
|
|
139
127
|
|
|
140
128
|
type LiquidationProps = {
|
|
141
129
|
symbol?: string;
|
|
142
130
|
enableLoadMore?: boolean;
|
|
143
131
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
getRowCount?: () => number;
|
|
147
|
-
dataSource?: any[] | null;
|
|
148
|
-
};
|
|
149
|
-
declare const LiquidationWidget: React$1.ForwardRefExoticComponent<LiquidationProps & React$1.RefAttributes<LiquidationInstance>>;
|
|
150
|
-
declare const MobileLiquidationWidget: React$1.ForwardRefExoticComponent<LiquidationProps & {
|
|
132
|
+
declare const LiquidationWidget: React.FC<LiquidationProps>;
|
|
133
|
+
declare const MobileLiquidationWidget: React.FC<LiquidationProps & {
|
|
151
134
|
classNames?: {
|
|
152
135
|
root?: string;
|
|
153
136
|
content?: string;
|
|
154
137
|
cell?: string;
|
|
155
138
|
};
|
|
156
|
-
|
|
157
|
-
} & React$1.RefAttributes<LiquidationInstance>>;
|
|
139
|
+
}>;
|
|
158
140
|
|
|
159
141
|
declare const useLiquidationScript: (props: LiquidationProps) => {
|
|
160
142
|
dataSource: any[] | null | undefined;
|
|
@@ -182,9 +164,8 @@ declare const MobileLiquidation: FC<LiquidationState & {
|
|
|
182
164
|
content?: string;
|
|
183
165
|
cell?: string;
|
|
184
166
|
};
|
|
185
|
-
onExport?: () => void;
|
|
186
167
|
}>;
|
|
187
168
|
|
|
188
169
|
declare const MarketCloseConfirmID = "MarketCloseConfirmID";
|
|
189
170
|
|
|
190
|
-
export { CombinePositionsWidget, FundingFeeButton, FundingFeeHistoryUI, Liquidation,
|
|
171
|
+
export { CombinePositionsWidget, FundingFeeButton, FundingFeeHistoryUI, Liquidation, LiquidationWidget, MarketCloseConfirmID, MobileLiquidation, MobileLiquidationWidget, MobilePositionHistory, MobilePositionHistoryWidget, MobilePositionsWidget, PositionHistory, PositionHistoryWidget, type PositionsProps, PositionsTabName, PositionsWidget, type SortType, sortList, useLiquidationScript, usePositionHistoryScript, usePositionsRowContext, useSort, useTabSort };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OrderType, OrderSide, API } from '@kodiak-finance/orderly-types';
|
|
2
|
-
import React
|
|
2
|
+
import React, { FC } from 'react';
|
|
3
3
|
import { PriceMode } from '@kodiak-finance/orderly-hooks';
|
|
4
4
|
import * as _kodiak_finance_orderly_ui from '@kodiak-finance/orderly-ui';
|
|
5
|
-
import { SortOrder, TableSort
|
|
5
|
+
import { SortOrder, TableSort } from '@kodiak-finance/orderly-ui';
|
|
6
6
|
import { SharePnLConfig } from '@kodiak-finance/orderly-ui-share';
|
|
7
7
|
|
|
8
8
|
interface PositionsRowContextState {
|
|
@@ -55,14 +55,9 @@ type PositionsProps = {
|
|
|
55
55
|
enableSortingStorage?: boolean;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
dataSource?: any[] | null;
|
|
62
|
-
};
|
|
63
|
-
declare const PositionsWidget: React$1.ForwardRefExoticComponent<PositionsProps & React$1.RefAttributes<PositionsInstance>>;
|
|
64
|
-
declare const MobilePositionsWidget: React$1.ForwardRefExoticComponent<PositionsProps & React$1.RefAttributes<PositionsInstance>>;
|
|
65
|
-
declare const CombinePositionsWidget: React$1.ForwardRefExoticComponent<PositionsProps & React$1.RefAttributes<PositionsInstance>>;
|
|
58
|
+
declare const PositionsWidget: React.FC<PositionsProps>;
|
|
59
|
+
declare const MobilePositionsWidget: React.FC<PositionsProps>;
|
|
60
|
+
declare const CombinePositionsWidget: React.FC<PositionsProps>;
|
|
66
61
|
|
|
67
62
|
declare enum PositionsTabName {
|
|
68
63
|
Positions = "positions",
|
|
@@ -89,19 +84,14 @@ type PositionHistoryProps$1 = {
|
|
|
89
84
|
sharePnLConfig?: SharePnLConfig;
|
|
90
85
|
enableSortingStorage?: boolean;
|
|
91
86
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
getRowCount?: () => number;
|
|
95
|
-
};
|
|
96
|
-
declare const PositionHistoryWidget: React$1.ForwardRefExoticComponent<PositionHistoryProps$1 & React$1.RefAttributes<PositionHistoryInstance>>;
|
|
97
|
-
declare const MobilePositionHistoryWidget: React$1.ForwardRefExoticComponent<PositionHistoryProps$1 & {
|
|
87
|
+
declare const PositionHistoryWidget: React.FC<PositionHistoryProps$1>;
|
|
88
|
+
declare const MobilePositionHistoryWidget: React.FC<PositionHistoryProps$1 & {
|
|
98
89
|
classNames?: {
|
|
99
90
|
root?: string;
|
|
100
91
|
content?: string;
|
|
101
92
|
cell?: string;
|
|
102
93
|
};
|
|
103
|
-
|
|
104
|
-
} & React$1.RefAttributes<PositionHistoryInstance>>;
|
|
94
|
+
}>;
|
|
105
95
|
|
|
106
96
|
declare const usePositionHistoryScript: (props: PositionHistoryProps$1) => {
|
|
107
97
|
dataSource: any[];
|
|
@@ -124,7 +114,6 @@ type PositionHistoryState = ReturnType<typeof usePositionHistoryScript>;
|
|
|
124
114
|
|
|
125
115
|
type PositionHistoryProps = PositionHistoryState & {
|
|
126
116
|
sharePnLConfig?: SharePnLConfig;
|
|
127
|
-
tableRef?: React.RefObject<Table<any>>;
|
|
128
117
|
};
|
|
129
118
|
declare const PositionHistory: FC<PositionHistoryProps>;
|
|
130
119
|
declare const MobilePositionHistory: FC<PositionHistoryState & {
|
|
@@ -134,27 +123,20 @@ declare const MobilePositionHistory: FC<PositionHistoryState & {
|
|
|
134
123
|
cell?: string;
|
|
135
124
|
};
|
|
136
125
|
sharePnLConfig?: SharePnLConfig;
|
|
137
|
-
onExport?: () => void;
|
|
138
126
|
}>;
|
|
139
127
|
|
|
140
128
|
type LiquidationProps = {
|
|
141
129
|
symbol?: string;
|
|
142
130
|
enableLoadMore?: boolean;
|
|
143
131
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
getRowCount?: () => number;
|
|
147
|
-
dataSource?: any[] | null;
|
|
148
|
-
};
|
|
149
|
-
declare const LiquidationWidget: React$1.ForwardRefExoticComponent<LiquidationProps & React$1.RefAttributes<LiquidationInstance>>;
|
|
150
|
-
declare const MobileLiquidationWidget: React$1.ForwardRefExoticComponent<LiquidationProps & {
|
|
132
|
+
declare const LiquidationWidget: React.FC<LiquidationProps>;
|
|
133
|
+
declare const MobileLiquidationWidget: React.FC<LiquidationProps & {
|
|
151
134
|
classNames?: {
|
|
152
135
|
root?: string;
|
|
153
136
|
content?: string;
|
|
154
137
|
cell?: string;
|
|
155
138
|
};
|
|
156
|
-
|
|
157
|
-
} & React$1.RefAttributes<LiquidationInstance>>;
|
|
139
|
+
}>;
|
|
158
140
|
|
|
159
141
|
declare const useLiquidationScript: (props: LiquidationProps) => {
|
|
160
142
|
dataSource: any[] | null | undefined;
|
|
@@ -182,9 +164,8 @@ declare const MobileLiquidation: FC<LiquidationState & {
|
|
|
182
164
|
content?: string;
|
|
183
165
|
cell?: string;
|
|
184
166
|
};
|
|
185
|
-
onExport?: () => void;
|
|
186
167
|
}>;
|
|
187
168
|
|
|
188
169
|
declare const MarketCloseConfirmID = "MarketCloseConfirmID";
|
|
189
170
|
|
|
190
|
-
export { CombinePositionsWidget, FundingFeeButton, FundingFeeHistoryUI, Liquidation,
|
|
171
|
+
export { CombinePositionsWidget, FundingFeeButton, FundingFeeHistoryUI, Liquidation, LiquidationWidget, MarketCloseConfirmID, MobileLiquidation, MobileLiquidationWidget, MobilePositionHistory, MobilePositionHistoryWidget, MobilePositionsWidget, PositionHistory, PositionHistoryWidget, type PositionsProps, PositionsTabName, PositionsWidget, type SortType, sortList, useLiquidationScript, usePositionHistoryScript, usePositionsRowContext, useSort, useTabSort };
|