@orderly.network/portfolio 2.6.3 → 2.7.0-alpha.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
@@ -326,11 +326,17 @@ declare namespace index$5 {
326
326
  export { index$5_AssetHistory as AssetHistory, index$5_AssetHistoryWidget as AssetHistoryWidget, index$5_AssetWidget as AssetWidget, index$5_AssetsChart as AssetsChart, index$5_AssetsChartWidget as AssetsChartWidget, index$5_AssetsUI as AssetsUI, index$5_DistributionHistoryDesktop as DistributionHistoryDesktop, index$5_DistributionHistoryMobile as DistributionHistoryMobile, index$5_DistributionHistoryWidget as DistributionHistoryWidget, index$5_FundingHistoryWidget as FundingHistoryWidget, index$5_HistoryDataGroupWidget as HistoryDataGroupWidget, index$5_OverviewPage as OverviewPage, index$5_OverviewProvider as OverviewProvider, index$5_PerformanceMobileDialogId as PerformanceMobileDialogId, index$5_PerformanceMobileSheetId as PerformanceMobileSheetId, index$5_PerformanceMobileUI as PerformanceMobileUI, index$5_PerformanceMobileWidget as PerformanceMobileWidget, index$5_PerformanceUI as PerformanceUI, index$5_PerformanceWidget as PerformanceWidget, index$5_useAssetHistoryColumns as useAssetHistoryColumns, index$5_useAssetHistoryScript as useAssetHistoryScript, index$5_useAssetsChartScript as useAssetsChartScript, index$5_useFundingHistoryColumns as useFundingHistoryColumns, index$5_useFundingHistoryHook as useFundingHistoryHook, index$5_usePerformanceScript as usePerformanceScript };
327
327
  }
328
328
 
329
+ type FeeTierWidgetProps = UseFeeTierScriptOptions;
330
+
331
+ type FeeTierPageProps = FeeTierWidgetProps;
332
+ declare const FeeTierPage: React$1.FC<FeeTierPageProps>;
333
+
329
334
  type UseFeeTierScriptOptions = {
330
335
  dataAdapter?: (columns: Column[], dataSource: any[]) => {
331
336
  columns: Column[];
332
337
  dataSource: any[];
333
338
  };
339
+ headerDataAdapter?: (original: any[]) => any[];
334
340
  onRow?: (record: any, index: number) => {
335
341
  normal: any;
336
342
  active: any;
@@ -352,20 +358,17 @@ declare const useFeeTierScript: (options?: UseFeeTierScriptOptions) => {
352
358
  normal: any;
353
359
  active: any;
354
360
  }) | undefined;
361
+ headerDataAdapter: ((original: any[]) => any[]) | undefined;
355
362
  tier?: number | undefined;
356
363
  vol?: number | undefined;
357
364
  };
358
365
 
359
- type FeeTierWidgetProps = UseFeeTierScriptOptions;
360
-
361
- type FeeTierPageProps = FeeTierWidgetProps;
362
- declare const FeeTierPage: React$1.FC<FeeTierPageProps>;
363
-
364
366
  type index$4_FeeDataType = FeeDataType;
365
367
  declare const index$4_FeeTierPage: typeof FeeTierPage;
368
+ type index$4_UseFeeTierScriptOptions = UseFeeTierScriptOptions;
366
369
  declare const index$4_useFeeTierScript: typeof useFeeTierScript;
367
370
  declare namespace index$4 {
368
- export { type index$4_FeeDataType as FeeDataType, index$4_FeeTierPage as FeeTierPage, index$4_useFeeTierScript as useFeeTierScript };
371
+ export { type index$4_FeeDataType as FeeDataType, index$4_FeeTierPage as FeeTierPage, type index$4_UseFeeTierScriptOptions as UseFeeTierScriptOptions, index$4_useFeeTierScript as useFeeTierScript };
369
372
  }
370
373
 
371
374
  declare const PositionsPage: React$1.FC<PositionsProps>;
package/dist/index.d.ts CHANGED
@@ -326,11 +326,17 @@ declare namespace index$5 {
326
326
  export { index$5_AssetHistory as AssetHistory, index$5_AssetHistoryWidget as AssetHistoryWidget, index$5_AssetWidget as AssetWidget, index$5_AssetsChart as AssetsChart, index$5_AssetsChartWidget as AssetsChartWidget, index$5_AssetsUI as AssetsUI, index$5_DistributionHistoryDesktop as DistributionHistoryDesktop, index$5_DistributionHistoryMobile as DistributionHistoryMobile, index$5_DistributionHistoryWidget as DistributionHistoryWidget, index$5_FundingHistoryWidget as FundingHistoryWidget, index$5_HistoryDataGroupWidget as HistoryDataGroupWidget, index$5_OverviewPage as OverviewPage, index$5_OverviewProvider as OverviewProvider, index$5_PerformanceMobileDialogId as PerformanceMobileDialogId, index$5_PerformanceMobileSheetId as PerformanceMobileSheetId, index$5_PerformanceMobileUI as PerformanceMobileUI, index$5_PerformanceMobileWidget as PerformanceMobileWidget, index$5_PerformanceUI as PerformanceUI, index$5_PerformanceWidget as PerformanceWidget, index$5_useAssetHistoryColumns as useAssetHistoryColumns, index$5_useAssetHistoryScript as useAssetHistoryScript, index$5_useAssetsChartScript as useAssetsChartScript, index$5_useFundingHistoryColumns as useFundingHistoryColumns, index$5_useFundingHistoryHook as useFundingHistoryHook, index$5_usePerformanceScript as usePerformanceScript };
327
327
  }
328
328
 
329
+ type FeeTierWidgetProps = UseFeeTierScriptOptions;
330
+
331
+ type FeeTierPageProps = FeeTierWidgetProps;
332
+ declare const FeeTierPage: React$1.FC<FeeTierPageProps>;
333
+
329
334
  type UseFeeTierScriptOptions = {
330
335
  dataAdapter?: (columns: Column[], dataSource: any[]) => {
331
336
  columns: Column[];
332
337
  dataSource: any[];
333
338
  };
339
+ headerDataAdapter?: (original: any[]) => any[];
334
340
  onRow?: (record: any, index: number) => {
335
341
  normal: any;
336
342
  active: any;
@@ -352,20 +358,17 @@ declare const useFeeTierScript: (options?: UseFeeTierScriptOptions) => {
352
358
  normal: any;
353
359
  active: any;
354
360
  }) | undefined;
361
+ headerDataAdapter: ((original: any[]) => any[]) | undefined;
355
362
  tier?: number | undefined;
356
363
  vol?: number | undefined;
357
364
  };
358
365
 
359
- type FeeTierWidgetProps = UseFeeTierScriptOptions;
360
-
361
- type FeeTierPageProps = FeeTierWidgetProps;
362
- declare const FeeTierPage: React$1.FC<FeeTierPageProps>;
363
-
364
366
  type index$4_FeeDataType = FeeDataType;
365
367
  declare const index$4_FeeTierPage: typeof FeeTierPage;
368
+ type index$4_UseFeeTierScriptOptions = UseFeeTierScriptOptions;
366
369
  declare const index$4_useFeeTierScript: typeof useFeeTierScript;
367
370
  declare namespace index$4 {
368
- export { type index$4_FeeDataType as FeeDataType, index$4_FeeTierPage as FeeTierPage, index$4_useFeeTierScript as useFeeTierScript };
371
+ export { type index$4_FeeDataType as FeeDataType, index$4_FeeTierPage as FeeTierPage, type index$4_UseFeeTierScriptOptions as UseFeeTierScriptOptions, index$4_useFeeTierScript as useFeeTierScript };
369
372
  }
370
373
 
371
374
  declare const PositionsPage: React$1.FC<PositionsProps>;