@orderly.network/portfolio 2.6.2-alpha.0 → 2.6.3-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 +35 -14
- package/dist/index.d.ts +35 -14
- package/dist/index.js +25 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -16
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.d.mts
CHANGED
|
@@ -70,11 +70,11 @@ declare const useAssetScript: () => {
|
|
|
70
70
|
};
|
|
71
71
|
type AssetScriptReturn = ReturnType<typeof useAssetScript>;
|
|
72
72
|
|
|
73
|
-
declare const AssetsUI:
|
|
73
|
+
declare const AssetsUI: React$1.FC<AssetScriptReturn & {
|
|
74
74
|
onConnectWallet?: () => void;
|
|
75
|
-
}
|
|
75
|
+
}>;
|
|
76
76
|
|
|
77
|
-
declare const AssetWidget:
|
|
77
|
+
declare const AssetWidget: React$1.FC;
|
|
78
78
|
|
|
79
79
|
declare const HistoryDataGroupWidget: React.FC;
|
|
80
80
|
|
|
@@ -194,7 +194,7 @@ declare const AssetHistory: FC<AssetHistoryProps>;
|
|
|
194
194
|
type AssetHistoryWidgetProps = {
|
|
195
195
|
side: AssetHistorySideEnum;
|
|
196
196
|
};
|
|
197
|
-
declare const AssetHistoryWidget:
|
|
197
|
+
declare const AssetHistoryWidget: React$1.FC<AssetHistoryWidgetProps>;
|
|
198
198
|
|
|
199
199
|
declare const usePerformanceScript: () => {
|
|
200
200
|
data: ReadonlyArray<any>;
|
|
@@ -236,13 +236,13 @@ declare const PerformanceUI: React$1.FC<PerformanceUIProps>;
|
|
|
236
236
|
|
|
237
237
|
declare const PerformanceWidget: React$1.FC;
|
|
238
238
|
|
|
239
|
-
declare const PerformanceMobileUI: React$1.FC<Pick<useAssetsHistoryDataReturn & UsePerformanceScriptReturn, "data" | "curPeriod" | "aggregateValue" | "onPeriodChange" | "invisible" | "visible" | "createFakeData">>;
|
|
239
|
+
declare const PerformanceMobileUI: React$1.FC<Pick<useAssetsHistoryDataReturn & UsePerformanceScriptReturn, "data" | "curPeriod" | "aggregateValue" | "onPeriodChange" | "invisible" | "visible" | "createFakeData" | "period">>;
|
|
240
240
|
|
|
241
241
|
declare const PerformanceMobileWidget: React$1.FC;
|
|
242
242
|
declare const PerformanceMobileSheetId = "PerformanceMobileSheetId";
|
|
243
243
|
declare const PerformanceMobileDialogId = "PerformanceMobileDialogId";
|
|
244
244
|
|
|
245
|
-
declare const FundingHistoryWidget:
|
|
245
|
+
declare const FundingHistoryWidget: React$1.FC;
|
|
246
246
|
|
|
247
247
|
declare const useFundingHistoryHook: () => {
|
|
248
248
|
readonly dataSource: (_orderly_network_types.API.FundingFeeRow & {
|
|
@@ -336,15 +336,36 @@ type UseFeeTierScriptOptions = {
|
|
|
336
336
|
active: any;
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
|
+
interface FeeDataType {
|
|
340
|
+
tier: number;
|
|
341
|
+
volume_min?: number | null;
|
|
342
|
+
volume_max?: number | null;
|
|
343
|
+
volume_node?: React$1.ReactNode;
|
|
344
|
+
or?: string | null;
|
|
345
|
+
maker_fee: string;
|
|
346
|
+
taker_fee: string;
|
|
347
|
+
}
|
|
348
|
+
declare const useFeeTierScript: (options?: UseFeeTierScriptOptions) => {
|
|
349
|
+
columns: Column[] | Column<FeeDataType>[];
|
|
350
|
+
dataSource: any[] | FeeDataType[];
|
|
351
|
+
onRow: ((record: any, index: number) => {
|
|
352
|
+
normal: any;
|
|
353
|
+
active: any;
|
|
354
|
+
}) | undefined;
|
|
355
|
+
tier?: number | undefined;
|
|
356
|
+
vol?: number | undefined;
|
|
357
|
+
};
|
|
339
358
|
|
|
340
359
|
type FeeTierWidgetProps = UseFeeTierScriptOptions;
|
|
341
360
|
|
|
342
361
|
type FeeTierPageProps = FeeTierWidgetProps;
|
|
343
|
-
declare const FeeTierPage: FC<FeeTierPageProps>;
|
|
362
|
+
declare const FeeTierPage: React$1.FC<FeeTierPageProps>;
|
|
344
363
|
|
|
364
|
+
type index$4_FeeDataType = FeeDataType;
|
|
345
365
|
declare const index$4_FeeTierPage: typeof FeeTierPage;
|
|
366
|
+
declare const index$4_useFeeTierScript: typeof useFeeTierScript;
|
|
346
367
|
declare namespace index$4 {
|
|
347
|
-
export { index$4_FeeTierPage as FeeTierPage };
|
|
368
|
+
export { type index$4_FeeDataType as FeeDataType, index$4_FeeTierPage as FeeTierPage, index$4_useFeeTierScript as useFeeTierScript };
|
|
348
369
|
}
|
|
349
370
|
|
|
350
371
|
declare const PositionsPage: React$1.FC<PositionsProps>;
|
|
@@ -354,9 +375,9 @@ declare namespace page$1 {
|
|
|
354
375
|
export { page$1_PositionsPage as PositionsPage };
|
|
355
376
|
}
|
|
356
377
|
|
|
357
|
-
declare const OrdersPage:
|
|
378
|
+
declare const OrdersPage: React$1.FC<{
|
|
358
379
|
sharePnLConfig?: SharePnLConfig;
|
|
359
|
-
}
|
|
380
|
+
}>;
|
|
360
381
|
|
|
361
382
|
declare const page_OrdersPage: typeof OrdersPage;
|
|
362
383
|
declare namespace page {
|
|
@@ -385,9 +406,9 @@ declare namespace index$3 {
|
|
|
385
406
|
export { index$3_APIManagerPage as APIManagerPage, index$3_APIManagerWidget as APIManagerWidget };
|
|
386
407
|
}
|
|
387
408
|
|
|
388
|
-
declare const SettingWidget:
|
|
409
|
+
declare const SettingWidget: React$1.FC;
|
|
389
410
|
|
|
390
|
-
declare const SettingPage:
|
|
411
|
+
declare const SettingPage: React$1.FC;
|
|
391
412
|
|
|
392
413
|
declare const index$2_SettingPage: typeof SettingPage;
|
|
393
414
|
declare const index$2_SettingWidget: typeof SettingWidget;
|
|
@@ -402,8 +423,8 @@ declare namespace index$1 {
|
|
|
402
423
|
export { index$1_AssetsPage as AssetsPage };
|
|
403
424
|
}
|
|
404
425
|
|
|
405
|
-
declare const HistoryWidget:
|
|
406
|
-
declare const HistoryPage:
|
|
426
|
+
declare const HistoryWidget: React$1.FC;
|
|
427
|
+
declare const HistoryPage: React$1.FC;
|
|
407
428
|
|
|
408
429
|
declare const index_HistoryPage: typeof HistoryPage;
|
|
409
430
|
declare const index_HistoryWidget: typeof HistoryWidget;
|
package/dist/index.d.ts
CHANGED
|
@@ -70,11 +70,11 @@ declare const useAssetScript: () => {
|
|
|
70
70
|
};
|
|
71
71
|
type AssetScriptReturn = ReturnType<typeof useAssetScript>;
|
|
72
72
|
|
|
73
|
-
declare const AssetsUI:
|
|
73
|
+
declare const AssetsUI: React$1.FC<AssetScriptReturn & {
|
|
74
74
|
onConnectWallet?: () => void;
|
|
75
|
-
}
|
|
75
|
+
}>;
|
|
76
76
|
|
|
77
|
-
declare const AssetWidget:
|
|
77
|
+
declare const AssetWidget: React$1.FC;
|
|
78
78
|
|
|
79
79
|
declare const HistoryDataGroupWidget: React.FC;
|
|
80
80
|
|
|
@@ -194,7 +194,7 @@ declare const AssetHistory: FC<AssetHistoryProps>;
|
|
|
194
194
|
type AssetHistoryWidgetProps = {
|
|
195
195
|
side: AssetHistorySideEnum;
|
|
196
196
|
};
|
|
197
|
-
declare const AssetHistoryWidget:
|
|
197
|
+
declare const AssetHistoryWidget: React$1.FC<AssetHistoryWidgetProps>;
|
|
198
198
|
|
|
199
199
|
declare const usePerformanceScript: () => {
|
|
200
200
|
data: ReadonlyArray<any>;
|
|
@@ -236,13 +236,13 @@ declare const PerformanceUI: React$1.FC<PerformanceUIProps>;
|
|
|
236
236
|
|
|
237
237
|
declare const PerformanceWidget: React$1.FC;
|
|
238
238
|
|
|
239
|
-
declare const PerformanceMobileUI: React$1.FC<Pick<useAssetsHistoryDataReturn & UsePerformanceScriptReturn, "data" | "curPeriod" | "aggregateValue" | "onPeriodChange" | "invisible" | "visible" | "createFakeData">>;
|
|
239
|
+
declare const PerformanceMobileUI: React$1.FC<Pick<useAssetsHistoryDataReturn & UsePerformanceScriptReturn, "data" | "curPeriod" | "aggregateValue" | "onPeriodChange" | "invisible" | "visible" | "createFakeData" | "period">>;
|
|
240
240
|
|
|
241
241
|
declare const PerformanceMobileWidget: React$1.FC;
|
|
242
242
|
declare const PerformanceMobileSheetId = "PerformanceMobileSheetId";
|
|
243
243
|
declare const PerformanceMobileDialogId = "PerformanceMobileDialogId";
|
|
244
244
|
|
|
245
|
-
declare const FundingHistoryWidget:
|
|
245
|
+
declare const FundingHistoryWidget: React$1.FC;
|
|
246
246
|
|
|
247
247
|
declare const useFundingHistoryHook: () => {
|
|
248
248
|
readonly dataSource: (_orderly_network_types.API.FundingFeeRow & {
|
|
@@ -336,15 +336,36 @@ type UseFeeTierScriptOptions = {
|
|
|
336
336
|
active: any;
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
|
+
interface FeeDataType {
|
|
340
|
+
tier: number;
|
|
341
|
+
volume_min?: number | null;
|
|
342
|
+
volume_max?: number | null;
|
|
343
|
+
volume_node?: React$1.ReactNode;
|
|
344
|
+
or?: string | null;
|
|
345
|
+
maker_fee: string;
|
|
346
|
+
taker_fee: string;
|
|
347
|
+
}
|
|
348
|
+
declare const useFeeTierScript: (options?: UseFeeTierScriptOptions) => {
|
|
349
|
+
columns: Column[] | Column<FeeDataType>[];
|
|
350
|
+
dataSource: any[] | FeeDataType[];
|
|
351
|
+
onRow: ((record: any, index: number) => {
|
|
352
|
+
normal: any;
|
|
353
|
+
active: any;
|
|
354
|
+
}) | undefined;
|
|
355
|
+
tier?: number | undefined;
|
|
356
|
+
vol?: number | undefined;
|
|
357
|
+
};
|
|
339
358
|
|
|
340
359
|
type FeeTierWidgetProps = UseFeeTierScriptOptions;
|
|
341
360
|
|
|
342
361
|
type FeeTierPageProps = FeeTierWidgetProps;
|
|
343
|
-
declare const FeeTierPage: FC<FeeTierPageProps>;
|
|
362
|
+
declare const FeeTierPage: React$1.FC<FeeTierPageProps>;
|
|
344
363
|
|
|
364
|
+
type index$4_FeeDataType = FeeDataType;
|
|
345
365
|
declare const index$4_FeeTierPage: typeof FeeTierPage;
|
|
366
|
+
declare const index$4_useFeeTierScript: typeof useFeeTierScript;
|
|
346
367
|
declare namespace index$4 {
|
|
347
|
-
export { index$4_FeeTierPage as FeeTierPage };
|
|
368
|
+
export { type index$4_FeeDataType as FeeDataType, index$4_FeeTierPage as FeeTierPage, index$4_useFeeTierScript as useFeeTierScript };
|
|
348
369
|
}
|
|
349
370
|
|
|
350
371
|
declare const PositionsPage: React$1.FC<PositionsProps>;
|
|
@@ -354,9 +375,9 @@ declare namespace page$1 {
|
|
|
354
375
|
export { page$1_PositionsPage as PositionsPage };
|
|
355
376
|
}
|
|
356
377
|
|
|
357
|
-
declare const OrdersPage:
|
|
378
|
+
declare const OrdersPage: React$1.FC<{
|
|
358
379
|
sharePnLConfig?: SharePnLConfig;
|
|
359
|
-
}
|
|
380
|
+
}>;
|
|
360
381
|
|
|
361
382
|
declare const page_OrdersPage: typeof OrdersPage;
|
|
362
383
|
declare namespace page {
|
|
@@ -385,9 +406,9 @@ declare namespace index$3 {
|
|
|
385
406
|
export { index$3_APIManagerPage as APIManagerPage, index$3_APIManagerWidget as APIManagerWidget };
|
|
386
407
|
}
|
|
387
408
|
|
|
388
|
-
declare const SettingWidget:
|
|
409
|
+
declare const SettingWidget: React$1.FC;
|
|
389
410
|
|
|
390
|
-
declare const SettingPage:
|
|
411
|
+
declare const SettingPage: React$1.FC;
|
|
391
412
|
|
|
392
413
|
declare const index$2_SettingPage: typeof SettingPage;
|
|
393
414
|
declare const index$2_SettingWidget: typeof SettingWidget;
|
|
@@ -402,8 +423,8 @@ declare namespace index$1 {
|
|
|
402
423
|
export { index$1_AssetsPage as AssetsPage };
|
|
403
424
|
}
|
|
404
425
|
|
|
405
|
-
declare const HistoryWidget:
|
|
406
|
-
declare const HistoryPage:
|
|
426
|
+
declare const HistoryWidget: React$1.FC;
|
|
427
|
+
declare const HistoryPage: React$1.FC;
|
|
407
428
|
|
|
408
429
|
declare const index_HistoryPage: typeof HistoryPage;
|
|
409
430
|
declare const index_HistoryWidget: typeof HistoryWidget;
|