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