@agg-market/ui 13.0.0 → 14.0.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/{chunk-3ST2TN6E.mjs → chunk-4AK5XMOS.mjs} +338 -240
- package/dist/index.js +846 -748
- package/dist/index.mjs +1 -1
- package/dist/pages.js +338 -237
- package/dist/pages.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/types/pages/user-profile/index.d.mts +2 -2
- package/dist/types/pages/user-profile/index.d.ts +2 -2
- package/dist/types/pages/user-profile/user-profile.types.d.mts +16 -5
- package/dist/types/pages/user-profile/user-profile.types.d.ts +16 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UserProfilePageProps } from "./user-profile.types";
|
|
2
|
-
export type { UserProfileActivity, UserProfileBalance, UserProfileConnectedExchange, UserProfileInfo, UserProfilePageClassNames, UserProfilePageProps, UserProfilePosition, UserProfilePositionFilter, UserProfileSocialLink, UserProfileVenueBalance, } from "./user-profile.types";
|
|
2
|
+
export type { UserProfileActivity, UserProfileBalance, UserProfileConnectedExchange, UserProfileInfo, UserProfilePageClassNames, UserProfilePageProps, UserProfilePosition, UserProfilePositionVenueShare, UserProfilePositionFilter, UserProfileSocialLink, UserProfileVenueBalance, } from "./user-profile.types";
|
|
3
3
|
export declare const UserProfilePage: {
|
|
4
|
-
({ user, venueBalances: _venueBalances, balance, activePositions, closedPositions, activities, onEditProfile, onDeposit, onWithdraw, onPositionClick, onActivityClick, isLoadingPositions, isLoadingActivities, positionsError, activitiesError, hasMorePositions, isLoadingMorePositions, onLoadMorePositions, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, classNames, }: UserProfilePageProps): JSX.Element;
|
|
4
|
+
({ user, balanceChainsOverride, venueBalances: _venueBalances, balance, activePositions, closedPositions, activities, onEditProfile, onDeposit, onWithdraw, onPositionClick, onActivityClick, isLoadingPositions, isLoadingActivities, positionsError, activitiesError, hasMorePositions, isLoadingMorePositions, onLoadMorePositions, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, classNames, }: UserProfilePageProps): JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UserProfilePageProps } from "./user-profile.types";
|
|
2
|
-
export type { UserProfileActivity, UserProfileBalance, UserProfileConnectedExchange, UserProfileInfo, UserProfilePageClassNames, UserProfilePageProps, UserProfilePosition, UserProfilePositionFilter, UserProfileSocialLink, UserProfileVenueBalance, } from "./user-profile.types";
|
|
2
|
+
export type { UserProfileActivity, UserProfileBalance, UserProfileConnectedExchange, UserProfileInfo, UserProfilePageClassNames, UserProfilePageProps, UserProfilePosition, UserProfilePositionVenueShare, UserProfilePositionFilter, UserProfileSocialLink, UserProfileVenueBalance, } from "./user-profile.types";
|
|
3
3
|
export declare const UserProfilePage: {
|
|
4
|
-
({ user, venueBalances: _venueBalances, balance, activePositions, closedPositions, activities, onEditProfile, onDeposit, onWithdraw, onPositionClick, onActivityClick, isLoadingPositions, isLoadingActivities, positionsError, activitiesError, hasMorePositions, isLoadingMorePositions, onLoadMorePositions, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, classNames, }: UserProfilePageProps): JSX.Element;
|
|
4
|
+
({ user, balanceChainsOverride, venueBalances: _venueBalances, balance, activePositions, closedPositions, activities, onEditProfile, onDeposit, onWithdraw, onPositionClick, onActivityClick, isLoadingPositions, isLoadingActivities, positionsError, activitiesError, hasMorePositions, isLoadingMorePositions, onLoadMorePositions, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, classNames, }: UserProfilePageProps): JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -38,18 +38,22 @@ export interface UserProfileBalance {
|
|
|
38
38
|
/** True when the change is positive (green), false when negative (deprecated; optional) */
|
|
39
39
|
isPositive?: boolean;
|
|
40
40
|
}
|
|
41
|
+
/** One venue line under the outcome pill (API `venueBreakdown` entry). */
|
|
42
|
+
export interface UserProfilePositionVenueShare {
|
|
43
|
+
venue: VenueLogoName;
|
|
44
|
+
/** Localized shares string, e.g. "103.4 shares" */
|
|
45
|
+
sharesLabel: string;
|
|
46
|
+
}
|
|
41
47
|
export interface UserProfilePosition {
|
|
42
48
|
id: string;
|
|
43
49
|
/** Market thumbnail image URL */
|
|
44
50
|
thumbnailSrc: string;
|
|
45
51
|
/** Market title */
|
|
46
52
|
title: string;
|
|
47
|
-
/**
|
|
48
|
-
venue: VenueLogoName;
|
|
49
|
-
/** Outcome label, e.g. "Yes 29¢" */
|
|
53
|
+
/** Outcome name for the pill only, e.g. "Yes" (no price). */
|
|
50
54
|
outcomeLabel: string;
|
|
51
|
-
/**
|
|
52
|
-
|
|
55
|
+
/** Per-venue position sizes with logos below the pill. */
|
|
56
|
+
venueShareBreakdown: UserProfilePositionVenueShare[];
|
|
53
57
|
/** Average price, e.g. "29¢" */
|
|
54
58
|
averageLabel: string;
|
|
55
59
|
/** Current price, e.g. "25¢" */
|
|
@@ -94,6 +98,13 @@ export type UserProfilePageClassNames = Partial<{
|
|
|
94
98
|
export interface UserProfilePageProps {
|
|
95
99
|
/** User information. When omitted, page resolves current authenticated user via hooks. */
|
|
96
100
|
user?: UserProfileInfo;
|
|
101
|
+
/** Override for balances-by-network tooltip in storybook/demos; when omitted, hooks are used. */
|
|
102
|
+
balanceChainsOverride?: Array<{
|
|
103
|
+
key: string;
|
|
104
|
+
label: string;
|
|
105
|
+
balance: number;
|
|
106
|
+
accountCount: number;
|
|
107
|
+
}>;
|
|
97
108
|
/** Venue balances shown in the sidebar card */
|
|
98
109
|
venueBalances?: UserProfileVenueBalance[];
|
|
99
110
|
/** Consolidated Balance / P&L data */
|
|
@@ -38,18 +38,22 @@ export interface UserProfileBalance {
|
|
|
38
38
|
/** True when the change is positive (green), false when negative (deprecated; optional) */
|
|
39
39
|
isPositive?: boolean;
|
|
40
40
|
}
|
|
41
|
+
/** One venue line under the outcome pill (API `venueBreakdown` entry). */
|
|
42
|
+
export interface UserProfilePositionVenueShare {
|
|
43
|
+
venue: VenueLogoName;
|
|
44
|
+
/** Localized shares string, e.g. "103.4 shares" */
|
|
45
|
+
sharesLabel: string;
|
|
46
|
+
}
|
|
41
47
|
export interface UserProfilePosition {
|
|
42
48
|
id: string;
|
|
43
49
|
/** Market thumbnail image URL */
|
|
44
50
|
thumbnailSrc: string;
|
|
45
51
|
/** Market title */
|
|
46
52
|
title: string;
|
|
47
|
-
/**
|
|
48
|
-
venue: VenueLogoName;
|
|
49
|
-
/** Outcome label, e.g. "Yes 29¢" */
|
|
53
|
+
/** Outcome name for the pill only, e.g. "Yes" (no price). */
|
|
50
54
|
outcomeLabel: string;
|
|
51
|
-
/**
|
|
52
|
-
|
|
55
|
+
/** Per-venue position sizes with logos below the pill. */
|
|
56
|
+
venueShareBreakdown: UserProfilePositionVenueShare[];
|
|
53
57
|
/** Average price, e.g. "29¢" */
|
|
54
58
|
averageLabel: string;
|
|
55
59
|
/** Current price, e.g. "25¢" */
|
|
@@ -94,6 +98,13 @@ export type UserProfilePageClassNames = Partial<{
|
|
|
94
98
|
export interface UserProfilePageProps {
|
|
95
99
|
/** User information. When omitted, page resolves current authenticated user via hooks. */
|
|
96
100
|
user?: UserProfileInfo;
|
|
101
|
+
/** Override for balances-by-network tooltip in storybook/demos; when omitted, hooks are used. */
|
|
102
|
+
balanceChainsOverride?: Array<{
|
|
103
|
+
key: string;
|
|
104
|
+
label: string;
|
|
105
|
+
balance: number;
|
|
106
|
+
accountCount: number;
|
|
107
|
+
}>;
|
|
97
108
|
/** Venue balances shown in the sidebar card */
|
|
98
109
|
venueBalances?: UserProfileVenueBalance[];
|
|
99
110
|
/** Consolidated Balance / P&L data */
|