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