@agg-build/ui 4.27.0 → 4.28.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/trading.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  "use client";
2
- import { a as PlaceOrderFailureView, c as PlaceOrderExecutionView, f as createAggClientSharedKycInitiator, g as parseVenue, h as parseAmount, i as PlaceOrderSuccessView, m as SettlementDetails, n as useClaimWinnings, o as PlaceOrderExecutionGroups, p as venueRequiresSharedKyc, r as PlaceOrder, s as PlaceOrderExecutionHeader, t as useResolvedMarketClaim, u as FundKalshiModal } from "./trading-CDkNdjGx.mjs";
2
+ import { a as PlaceOrderFailureView, c as PlaceOrderExecutionView, f as createAggClientSharedKycInitiator, g as parseVenue, h as parseAmount, i as PlaceOrderSuccessView, m as SettlementDetails, n as useClaimWinnings, o as PlaceOrderExecutionGroups, p as venueRequiresSharedKyc, r as PlaceOrder, s as PlaceOrderExecutionHeader, t as useResolvedMarketClaim, u as FundKalshiModal } from "./trading-DJZxQENx.mjs";
3
3
  import { C as useEventTradingContext, _ as getTradingValueLabel, a as Settlement, c as resolveDifferenceIconClassName, d as getTradingAveragePriceLabel, f as getTradingBalanceLabel, g as getTradingSlippageLabel, h as getTradingSharesLabel, i as SETTLEMENT_SECTION_ID, l as defaultSettlementSectionLabel, m as getTradingPriceLabel, o as getSettlementDifferenceId, p as getTradingDateLabel, s as prepareSettlementDifferences, u as defaultTradingDisclaimer, v as getTradingVenueLabel } from "./event-trading-state.utils-B3my25Re.mjs";
4
4
  export { FundKalshiModal, PlaceOrder, PlaceOrderExecutionGroups, PlaceOrderExecutionHeader, PlaceOrderExecutionView, PlaceOrderFailureView, PlaceOrderSuccessView, SETTLEMENT_SECTION_ID, Settlement, SettlementDetails, createAggClientSharedKycInitiator, defaultSettlementSectionLabel, defaultTradingDisclaimer, getSettlementDifferenceId, getTradingAveragePriceLabel, getTradingBalanceLabel, getTradingDateLabel, getTradingPriceLabel, getTradingSharesLabel, getTradingSlippageLabel, getTradingValueLabel, getTradingVenueLabel, parseAmount, parseVenue, prepareSettlementDifferences, resolveDifferenceIconClassName, useClaimWinnings, useEventTradingContext, useResolvedMarketClaim, venueRequiresSharedKyc };
@@ -28,3 +28,4 @@ export declare const profileMenuSeparatorClassName: string;
28
28
  export declare const profileMenuActionItemClassName: string;
29
29
  export declare const avatarRootClassName: string;
30
30
  export declare const avatarIconClassName: string;
31
+ export declare const authHighlightedMethodClassName: string;
@@ -28,3 +28,4 @@ export declare const profileMenuSeparatorClassName: string;
28
28
  export declare const profileMenuActionItemClassName: string;
29
29
  export declare const avatarRootClassName: string;
30
30
  export declare const avatarIconClassName: string;
31
+ export declare const authHighlightedMethodClassName: string;
@@ -76,6 +76,13 @@ export type AuthConnectButtonViewProps = {
76
76
  isProfileMenuOpen: boolean;
77
77
  /** Optional informational notice shown above the auth actions. */
78
78
  notice?: string | null;
79
+ /**
80
+ * Method to point the user at, e.g. their existing sign-in when the app refused
81
+ * a new identity for the same email. Marked `data-highlighted` in the chooser.
82
+ */
83
+ highlightedMethodId?: string;
84
+ /** Short explanation shown inside the chooser, above the sign-in methods. */
85
+ chooserNotice?: string;
79
86
  /** Called when the chooser open state changes. */
80
87
  onChooserOpenChange: (open: boolean) => void;
81
88
  /** Called when the deposit action is clicked. */
@@ -76,6 +76,13 @@ export type AuthConnectButtonViewProps = {
76
76
  isProfileMenuOpen: boolean;
77
77
  /** Optional informational notice shown above the auth actions. */
78
78
  notice?: string | null;
79
+ /**
80
+ * Method to point the user at, e.g. their existing sign-in when the app refused
81
+ * a new identity for the same email. Marked `data-highlighted` in the chooser.
82
+ */
83
+ highlightedMethodId?: string;
84
+ /** Short explanation shown inside the chooser, above the sign-in methods. */
85
+ chooserNotice?: string;
79
86
  /** Called when the chooser open state changes. */
80
87
  onChooserOpenChange: (open: boolean) => void;
81
88
  /** Called when the deposit action is clicked. */
@@ -1,6 +1,6 @@
1
1
  import type { AuthConnectButtonViewProps } from "./connect-button-view.types";
2
2
  export type { AuthConnectButtonViewButtonProps, AuthConnectButtonViewClassNames, AuthConnectButtonViewMethod, AuthConnectButtonViewMethodInput, AuthConnectButtonViewProps, } from "./connect-button-view.types";
3
- export declare function AuthConnectButtonView({ activeMethodId, addressLabel, buttonProps, challengeContent, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, isAuthenticated, isBalanceLoading, isBusy, isChooserOpen, isProfileMenuOpen, notice, onChooserOpenChange, onDepositClick, onDisconnectClick, onEmailChange, onEmailSubmit, onMethodSelect, onProfileCardClick, onProfileClick, onProfileMenuOpenChange, socialMethods, onWithdrawClick, profileLabel, totalBalance, positionsBalance, claimReadyCount, onClaimWinningsClick, walletMethods, isDepositBlocked, }: AuthConnectButtonViewProps): React.JSX.Element;
3
+ export declare function AuthConnectButtonView({ activeMethodId, addressLabel, buttonProps, challengeContent, chooserNotice, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, highlightedMethodId, isAuthenticated, isBalanceLoading, isBusy, isChooserOpen, isProfileMenuOpen, notice, onChooserOpenChange, onDepositClick, onDisconnectClick, onEmailChange, onEmailSubmit, onMethodSelect, onProfileCardClick, onProfileClick, onProfileMenuOpenChange, socialMethods, onWithdrawClick, profileLabel, totalBalance, positionsBalance, claimReadyCount, onClaimWinningsClick, walletMethods, isDepositBlocked, }: AuthConnectButtonViewProps): React.JSX.Element;
4
4
  export declare namespace AuthConnectButtonView {
5
5
  var displayName: string;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import type { AuthConnectButtonViewProps } from "./connect-button-view.types";
2
2
  export type { AuthConnectButtonViewButtonProps, AuthConnectButtonViewClassNames, AuthConnectButtonViewMethod, AuthConnectButtonViewMethodInput, AuthConnectButtonViewProps, } from "./connect-button-view.types";
3
- export declare function AuthConnectButtonView({ activeMethodId, addressLabel, buttonProps, challengeContent, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, isAuthenticated, isBalanceLoading, isBusy, isChooserOpen, isProfileMenuOpen, notice, onChooserOpenChange, onDepositClick, onDisconnectClick, onEmailChange, onEmailSubmit, onMethodSelect, onProfileCardClick, onProfileClick, onProfileMenuOpenChange, socialMethods, onWithdrawClick, profileLabel, totalBalance, positionsBalance, claimReadyCount, onClaimWinningsClick, walletMethods, isDepositBlocked, }: AuthConnectButtonViewProps): React.JSX.Element;
3
+ export declare function AuthConnectButtonView({ activeMethodId, addressLabel, buttonProps, challengeContent, chooserNotice, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, highlightedMethodId, isAuthenticated, isBalanceLoading, isBusy, isChooserOpen, isProfileMenuOpen, notice, onChooserOpenChange, onDepositClick, onDisconnectClick, onEmailChange, onEmailSubmit, onMethodSelect, onProfileCardClick, onProfileClick, onProfileMenuOpenChange, socialMethods, onWithdrawClick, profileLabel, totalBalance, positionsBalance, claimReadyCount, onClaimWinningsClick, walletMethods, isDepositBlocked, }: AuthConnectButtonViewProps): React.JSX.Element;
4
4
  export declare namespace AuthConnectButtonView {
5
5
  var displayName: string;
6
6
  }
@@ -3,6 +3,8 @@ export interface AccountsWalletsTabProps {
3
3
  wallets?: WalletAccountInfo[];
4
4
  socialAccounts?: SocialAccountState;
5
5
  email?: string | null;
6
+ /** Shown above the account rows when the user has another identity with the same email. */
7
+ otherIdentityNotice?: string;
6
8
  onConnectTwitter?: () => void;
7
9
  onDisconnectTwitter?: () => void;
8
10
  onConnectGoogle?: () => void;
@@ -12,7 +14,7 @@ export interface AccountsWalletsTabProps {
12
14
  onDisconnectWallet?: (wallet: WalletAccountInfo) => void;
13
15
  onConnectEmail?: () => void;
14
16
  }
15
- export declare function AccountsWalletsTab({ socialAccounts, email, wallets, onConnectTwitter, onDisconnectTwitter, onConnectGoogle, onDisconnectGoogle, onConnectApple, onDisconnectApple, onConnectEmail, }: AccountsWalletsTabProps): React.JSX.Element;
17
+ export declare function AccountsWalletsTab({ socialAccounts, email, otherIdentityNotice, wallets, onConnectTwitter, onDisconnectTwitter, onConnectGoogle, onDisconnectGoogle, onConnectApple, onDisconnectApple, onConnectEmail, }: AccountsWalletsTabProps): React.JSX.Element;
16
18
  export declare namespace AccountsWalletsTab {
17
19
  var displayName: string;
18
20
  }
@@ -3,6 +3,8 @@ export interface AccountsWalletsTabProps {
3
3
  wallets?: WalletAccountInfo[];
4
4
  socialAccounts?: SocialAccountState;
5
5
  email?: string | null;
6
+ /** Shown above the account rows when the user has another identity with the same email. */
7
+ otherIdentityNotice?: string;
6
8
  onConnectTwitter?: () => void;
7
9
  onDisconnectTwitter?: () => void;
8
10
  onConnectGoogle?: () => void;
@@ -12,7 +14,7 @@ export interface AccountsWalletsTabProps {
12
14
  onDisconnectWallet?: (wallet: WalletAccountInfo) => void;
13
15
  onConnectEmail?: () => void;
14
16
  }
15
- export declare function AccountsWalletsTab({ socialAccounts, email, wallets, onConnectTwitter, onDisconnectTwitter, onConnectGoogle, onDisconnectGoogle, onConnectApple, onDisconnectApple, onConnectEmail, }: AccountsWalletsTabProps): React.JSX.Element;
17
+ export declare function AccountsWalletsTab({ socialAccounts, email, otherIdentityNotice, wallets, onConnectTwitter, onDisconnectTwitter, onConnectGoogle, onDisconnectGoogle, onConnectApple, onDisconnectApple, onConnectEmail, }: AccountsWalletsTabProps): React.JSX.Element;
16
18
  export declare namespace AccountsWalletsTab {
17
19
  var displayName: string;
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "4.27.0",
3
+ "version": "4.28.0",
4
4
  "description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -100,8 +100,8 @@
100
100
  "liveline": "^0.0.7",
101
101
  "react": "^18.0.0 || ^19.0.0",
102
102
  "react-dom": "^18.0.0 || ^19.0.0",
103
- "@agg-build/hooks": "^4.27.0",
104
- "@agg-build/sdk": "^4.27.0"
103
+ "@agg-build/hooks": "^4.28.0",
104
+ "@agg-build/sdk": "^4.28.0"
105
105
  },
106
106
  "dependencies": {
107
107
  "@number-flow/react": "^0.6.0",