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