@kodiak-finance/orderly-portfolio 2.8.18 → 2.8.19
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 +24 -9
- package/dist/index.d.ts +24 -9
- package/dist/index.js +11098 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11088 -43
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { API, AssetHistorySideEnum } from '@kodiak-finance/orderly-types';
|
|
|
7
7
|
import * as _kodiak_finance_orderly_hooks from '@kodiak-finance/orderly-hooks';
|
|
8
8
|
import { TWType, useAccount } from '@kodiak-finance/orderly-hooks';
|
|
9
9
|
import * as _kodiak_finance_orderly_ui from '@kodiak-finance/orderly-ui';
|
|
10
|
-
import { Column, TanstackColumn } from '@kodiak-finance/orderly-ui';
|
|
10
|
+
import { Column, TanstackColumn, DataTableClassNames } from '@kodiak-finance/orderly-ui';
|
|
11
11
|
import { PositionsProps } from '@kodiak-finance/orderly-ui-positions';
|
|
12
12
|
import { SharePnLConfig } from '@kodiak-finance/orderly-ui-share';
|
|
13
13
|
import { Decimal } from '@kodiak-finance/orderly-utils';
|
|
@@ -334,7 +334,15 @@ declare const DistributionHistoryMobile: FC<FundingHistoryProps$1>;
|
|
|
334
334
|
type FundingHistoryProps = {} & useDistributionHistoryHookReturn;
|
|
335
335
|
declare const DistributionHistoryDesktop: FC<FundingHistoryProps>;
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
type MobileOverviewProps = {
|
|
338
|
+
/** show affiliate card, mobile only */
|
|
339
|
+
hideAffiliateCard?: boolean;
|
|
340
|
+
/** show trader card, mobile only */
|
|
341
|
+
hideTraderCard?: boolean;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
type OverviewPageProps = MobileOverviewProps;
|
|
345
|
+
declare const OverviewPage: FC<OverviewPageProps>;
|
|
338
346
|
|
|
339
347
|
declare const OverviewProvider: FC<PropsWithChildren<{
|
|
340
348
|
type?: TWType;
|
|
@@ -490,7 +498,7 @@ declare const useAssetsScript: () => {
|
|
|
490
498
|
account_id: string;
|
|
491
499
|
id?: string;
|
|
492
500
|
description?: string;
|
|
493
|
-
}[];
|
|
501
|
+
}[] | null;
|
|
494
502
|
visible: boolean;
|
|
495
503
|
onToggleVisibility: () => void;
|
|
496
504
|
selectedAccount: string;
|
|
@@ -504,20 +512,27 @@ declare const useAssetsScript: () => {
|
|
|
504
512
|
onDeposit: () => void;
|
|
505
513
|
onWithdraw: () => void;
|
|
506
514
|
holding: _kodiak_finance_orderly_types.API.Holding[];
|
|
507
|
-
assetsOptions:
|
|
508
|
-
|
|
509
|
-
value: string;
|
|
510
|
-
}[];
|
|
515
|
+
assetsOptions: readonly any[];
|
|
516
|
+
canTrade: boolean;
|
|
511
517
|
};
|
|
512
518
|
type useAssetsScriptReturn = ReturnType<typeof useAssetsScript> & ReturnType<typeof useAccount>;
|
|
513
519
|
|
|
514
520
|
type AssetsWidgetProps = useAssetsScriptReturn;
|
|
515
|
-
|
|
521
|
+
type AssetsDataTableWidgetProps = {
|
|
522
|
+
classNames?: {
|
|
523
|
+
root?: string;
|
|
524
|
+
desc?: string;
|
|
525
|
+
scrollRoot?: string;
|
|
526
|
+
};
|
|
527
|
+
tbClassName?: string;
|
|
528
|
+
dataTableClassNames?: DataTableClassNames;
|
|
529
|
+
};
|
|
530
|
+
declare const AssetsDataTableWidget: React__default.FC<AssetsDataTableWidgetProps>;
|
|
516
531
|
declare const AssetsWidget: React__default.FC;
|
|
517
532
|
|
|
518
533
|
declare const AssetsPage: React__default.FC;
|
|
519
534
|
|
|
520
|
-
declare const AssetsDataTable: React__default.FC<Pick<AssetsWidgetProps, "columns" | "dataSource" | "isMainAccount" | "onFilter" | "selectedAccount" | "selectedAsset" | "assetsOptions" | "state"
|
|
535
|
+
declare const AssetsDataTable: React__default.FC<Pick<AssetsWidgetProps, "columns" | "dataSource" | "isMainAccount" | "onFilter" | "selectedAccount" | "selectedAsset" | "assetsOptions" | "state" | "canTrade"> & AssetsDataTableWidgetProps>;
|
|
521
536
|
declare const AssetsTable: React__default.FC<AssetsWidgetProps>;
|
|
522
537
|
|
|
523
538
|
declare const AssetsTableMobile: React__default.FC<useAssetsScriptReturn>;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { API, AssetHistorySideEnum } from '@kodiak-finance/orderly-types';
|
|
|
7
7
|
import * as _kodiak_finance_orderly_hooks from '@kodiak-finance/orderly-hooks';
|
|
8
8
|
import { TWType, useAccount } from '@kodiak-finance/orderly-hooks';
|
|
9
9
|
import * as _kodiak_finance_orderly_ui from '@kodiak-finance/orderly-ui';
|
|
10
|
-
import { Column, TanstackColumn } from '@kodiak-finance/orderly-ui';
|
|
10
|
+
import { Column, TanstackColumn, DataTableClassNames } from '@kodiak-finance/orderly-ui';
|
|
11
11
|
import { PositionsProps } from '@kodiak-finance/orderly-ui-positions';
|
|
12
12
|
import { SharePnLConfig } from '@kodiak-finance/orderly-ui-share';
|
|
13
13
|
import { Decimal } from '@kodiak-finance/orderly-utils';
|
|
@@ -334,7 +334,15 @@ declare const DistributionHistoryMobile: FC<FundingHistoryProps$1>;
|
|
|
334
334
|
type FundingHistoryProps = {} & useDistributionHistoryHookReturn;
|
|
335
335
|
declare const DistributionHistoryDesktop: FC<FundingHistoryProps>;
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
type MobileOverviewProps = {
|
|
338
|
+
/** show affiliate card, mobile only */
|
|
339
|
+
hideAffiliateCard?: boolean;
|
|
340
|
+
/** show trader card, mobile only */
|
|
341
|
+
hideTraderCard?: boolean;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
type OverviewPageProps = MobileOverviewProps;
|
|
345
|
+
declare const OverviewPage: FC<OverviewPageProps>;
|
|
338
346
|
|
|
339
347
|
declare const OverviewProvider: FC<PropsWithChildren<{
|
|
340
348
|
type?: TWType;
|
|
@@ -490,7 +498,7 @@ declare const useAssetsScript: () => {
|
|
|
490
498
|
account_id: string;
|
|
491
499
|
id?: string;
|
|
492
500
|
description?: string;
|
|
493
|
-
}[];
|
|
501
|
+
}[] | null;
|
|
494
502
|
visible: boolean;
|
|
495
503
|
onToggleVisibility: () => void;
|
|
496
504
|
selectedAccount: string;
|
|
@@ -504,20 +512,27 @@ declare const useAssetsScript: () => {
|
|
|
504
512
|
onDeposit: () => void;
|
|
505
513
|
onWithdraw: () => void;
|
|
506
514
|
holding: _kodiak_finance_orderly_types.API.Holding[];
|
|
507
|
-
assetsOptions:
|
|
508
|
-
|
|
509
|
-
value: string;
|
|
510
|
-
}[];
|
|
515
|
+
assetsOptions: readonly any[];
|
|
516
|
+
canTrade: boolean;
|
|
511
517
|
};
|
|
512
518
|
type useAssetsScriptReturn = ReturnType<typeof useAssetsScript> & ReturnType<typeof useAccount>;
|
|
513
519
|
|
|
514
520
|
type AssetsWidgetProps = useAssetsScriptReturn;
|
|
515
|
-
|
|
521
|
+
type AssetsDataTableWidgetProps = {
|
|
522
|
+
classNames?: {
|
|
523
|
+
root?: string;
|
|
524
|
+
desc?: string;
|
|
525
|
+
scrollRoot?: string;
|
|
526
|
+
};
|
|
527
|
+
tbClassName?: string;
|
|
528
|
+
dataTableClassNames?: DataTableClassNames;
|
|
529
|
+
};
|
|
530
|
+
declare const AssetsDataTableWidget: React__default.FC<AssetsDataTableWidgetProps>;
|
|
516
531
|
declare const AssetsWidget: React__default.FC;
|
|
517
532
|
|
|
518
533
|
declare const AssetsPage: React__default.FC;
|
|
519
534
|
|
|
520
|
-
declare const AssetsDataTable: React__default.FC<Pick<AssetsWidgetProps, "columns" | "dataSource" | "isMainAccount" | "onFilter" | "selectedAccount" | "selectedAsset" | "assetsOptions" | "state"
|
|
535
|
+
declare const AssetsDataTable: React__default.FC<Pick<AssetsWidgetProps, "columns" | "dataSource" | "isMainAccount" | "onFilter" | "selectedAccount" | "selectedAsset" | "assetsOptions" | "state" | "canTrade"> & AssetsDataTableWidgetProps>;
|
|
521
536
|
declare const AssetsTable: React__default.FC<AssetsWidgetProps>;
|
|
522
537
|
|
|
523
538
|
declare const AssetsTableMobile: React__default.FC<useAssetsScriptReturn>;
|