@agg-build/ui 1.2.11 → 1.2.12
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-J7K2U44E.mjs → chunk-3JXBOU24.mjs} +110 -60
- package/dist/{chunk-3ZSNHGAB.mjs → chunk-4WBQTUPW.mjs} +314 -58
- package/dist/{chunk-54PCEK6G.mjs → chunk-IBOE7DRY.mjs} +1 -1
- package/dist/{chunk-YP75TIY6.mjs → chunk-J6WELNCX.mjs} +3 -3
- package/dist/{chunk-ENAGASVU.mjs → chunk-U55T5BPE.mjs} +406 -337
- package/dist/{chunk-SJLHOAKK.mjs → chunk-X3KCFWXN.mjs} +936 -650
- package/dist/{chunk-NWJHFGBZ.mjs → chunk-YSW4ULL5.mjs} +1 -1
- package/dist/events.js +1593 -886
- package/dist/events.mjs +3 -3
- package/dist/index.js +4211 -3198
- package/dist/index.mjs +480 -105
- package/dist/modals.js +1164 -923
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +1975 -1492
- package/dist/pages.mjs +6 -6
- package/dist/primitives.js +928 -649
- package/dist/primitives.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +641 -444
- package/dist/trading.mjs +4 -4
- package/dist/types/agg-provider.d.mts +27 -0
- package/dist/types/agg-provider.d.ts +27 -0
- package/dist/types/events/list/event-list-tabs.d.mts +6 -1
- package/dist/types/events/list/event-list-tabs.d.ts +6 -1
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/notifications/agg-notification-events-provider.d.mts +35 -0
- package/dist/types/notifications/agg-notification-events-provider.d.ts +35 -0
- package/dist/types/notifications/agg-toast-provider.d.mts +27 -0
- package/dist/types/notifications/agg-toast-provider.d.ts +27 -0
- package/dist/types/notifications/deposit-notification-events.d.mts +10 -0
- package/dist/types/notifications/deposit-notification-events.d.ts +10 -0
- package/dist/types/notifications/index.d.mts +2 -0
- package/dist/types/notifications/index.d.ts +2 -0
- package/dist/types/primitives/button/button.types.d.mts +4 -0
- package/dist/types/primitives/button/button.types.d.ts +4 -0
- package/dist/types/primitives/button/index.d.mts +1 -1
- package/dist/types/primitives/button/index.d.ts +1 -1
- package/dist/types/primitives/icon/registry.d.mts +16 -0
- package/dist/types/primitives/icon/registry.d.ts +16 -0
- package/dist/types/primitives/icon/svg/sort-end-date.d.mts +5 -0
- package/dist/types/primitives/icon/svg/sort-end-date.d.ts +5 -0
- package/dist/types/primitives/icon/svg/sort-top-arbitrage.d.mts +5 -0
- package/dist/types/primitives/icon/svg/sort-top-arbitrage.d.ts +5 -0
- package/dist/types/primitives/icon/svg/sort-volume-24hr.d.mts +5 -0
- package/dist/types/primitives/icon/svg/sort-volume-24hr.d.ts +5 -0
- package/dist/types/primitives/icon/svg/sort-volume.d.mts +5 -0
- package/dist/types/primitives/icon/svg/sort-volume.d.ts +5 -0
- package/dist/types/primitives/select/index.d.mts +1 -1
- package/dist/types/primitives/select/index.d.ts +1 -1
- package/dist/types/primitives/select/select.types.d.mts +9 -0
- package/dist/types/primitives/select/select.types.d.ts +9 -0
- package/dist/types/primitives/toast/toast.types.d.mts +3 -0
- package/dist/types/primitives/toast/toast.types.d.ts +3 -0
- package/dist/types/profile/index.d.mts +1 -1
- package/dist/types/profile/index.d.ts +1 -1
- package/dist/types/profile/profile-modal.constants.d.mts +2 -2
- package/dist/types/profile/profile-modal.constants.d.ts +2 -2
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +2 -17
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +2 -17
- package/dist/types/profile/tabs/trading-access-tab.d.mts +15 -0
- package/dist/types/profile/tabs/trading-access-tab.d.ts +15 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +1 -1
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
interface VenueAccountInfo {
|
|
3
|
-
id: string;
|
|
4
|
-
venue: string;
|
|
5
|
-
status: string;
|
|
6
|
-
kycStatus: string;
|
|
7
|
-
}
|
|
1
|
+
import type { SocialAccountState, WalletAccountInfo } from "../profile-modal.types";
|
|
8
2
|
export interface AccountsWalletsTabProps {
|
|
9
|
-
exchanges: ExchangeAccount[];
|
|
10
3
|
wallets?: WalletAccountInfo[];
|
|
11
4
|
socialAccounts?: SocialAccountState;
|
|
12
5
|
email?: string | null;
|
|
13
|
-
venueAccounts?: VenueAccountInfo[] | null;
|
|
14
|
-
onKycError?: (error: Error) => void;
|
|
15
|
-
onDisconnectExchange?: (venue: string) => void;
|
|
16
6
|
onConnectTwitter?: () => void;
|
|
17
7
|
onDisconnectTwitter?: () => void;
|
|
18
8
|
onConnectGoogle?: () => void;
|
|
19
9
|
onDisconnectGoogle?: () => void;
|
|
20
10
|
onConnectApple?: () => void;
|
|
21
11
|
onDisconnectApple?: () => void;
|
|
22
|
-
onConnectDiscord?: () => void;
|
|
23
|
-
onDisconnectDiscord?: () => void;
|
|
24
|
-
onConnectTelegram?: () => void;
|
|
25
|
-
onDisconnectTelegram?: () => void;
|
|
26
12
|
onDisconnectWallet?: (wallet: WalletAccountInfo) => void;
|
|
27
13
|
onConnectEmail?: () => void;
|
|
28
14
|
}
|
|
29
15
|
export declare const AccountsWalletsTab: {
|
|
30
|
-
({
|
|
16
|
+
({ socialAccounts, email, wallets, onConnectTwitter, onDisconnectTwitter, onConnectGoogle, onDisconnectGoogle, onConnectApple, onDisconnectApple, onDisconnectWallet, onConnectEmail, }: AccountsWalletsTabProps): JSX.Element;
|
|
31
17
|
displayName: string;
|
|
32
18
|
};
|
|
33
|
-
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface VenueAccountInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
venue: string;
|
|
4
|
+
status: string;
|
|
5
|
+
kycStatus: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TradingAccessTabProps {
|
|
8
|
+
venueAccounts?: VenueAccountInfo[] | null;
|
|
9
|
+
onKycError?: (error: Error) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const TradingAccessTab: {
|
|
12
|
+
({ venueAccounts, onKycError, }: TradingAccessTabProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface VenueAccountInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
venue: string;
|
|
4
|
+
status: string;
|
|
5
|
+
kycStatus: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TradingAccessTabProps {
|
|
8
|
+
venueAccounts?: VenueAccountInfo[] | null;
|
|
9
|
+
onKycError?: (error: Error) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const TradingAccessTab: {
|
|
12
|
+
({ venueAccounts, onKycError, }: TradingAccessTabProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -52,7 +52,7 @@ export declare const buildPlaceOrderExecutionStepGroupsFromFailureSummary: ({ la
|
|
|
52
52
|
export declare const normalizePlaceOrderErrorMessage: ({ errorMessage, fallbackMessage, labels, }: {
|
|
53
53
|
errorMessage?: string | null;
|
|
54
54
|
fallbackMessage: string;
|
|
55
|
-
labels?: Pick<PlaceOrderTradingLabels, "quoteBalanceMismatch">;
|
|
55
|
+
labels?: Pick<PlaceOrderTradingLabels, "quoteBalanceMismatch" | "quoteUnavailable" | "serviceTemporarilyUnavailable" | "orderDeadlineExpiredBeforeSubmission" | "sellNoOnchainPosition" | "venueQuoteUnfillable" | "venueMinOrderSize" | "sourceBalanceChanged" | "venueMarketResolved" | "dflowWalletUnverified" | "venueNoQuotePath" | "solanaBlockhashExpired" | "venueRateLimited" | "serviceBlockedOrder">;
|
|
56
56
|
}) => string;
|
|
57
57
|
/**
|
|
58
58
|
* Resolves the actual execution economics from terminal WS events, overriding
|
|
@@ -52,7 +52,7 @@ export declare const buildPlaceOrderExecutionStepGroupsFromFailureSummary: ({ la
|
|
|
52
52
|
export declare const normalizePlaceOrderErrorMessage: ({ errorMessage, fallbackMessage, labels, }: {
|
|
53
53
|
errorMessage?: string | null;
|
|
54
54
|
fallbackMessage: string;
|
|
55
|
-
labels?: Pick<PlaceOrderTradingLabels, "quoteBalanceMismatch">;
|
|
55
|
+
labels?: Pick<PlaceOrderTradingLabels, "quoteBalanceMismatch" | "quoteUnavailable" | "serviceTemporarilyUnavailable" | "orderDeadlineExpiredBeforeSubmission" | "sellNoOnchainPosition" | "venueQuoteUnfillable" | "venueMinOrderSize" | "sourceBalanceChanged" | "venueMarketResolved" | "dflowWalletUnverified" | "venueNoQuotePath" | "solanaBlockhashExpired" | "venueRateLimited" | "serviceBlockedOrder">;
|
|
56
56
|
}) => string;
|
|
57
57
|
/**
|
|
58
58
|
* Resolves the actual execution economics from terminal WS events, overriding
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
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,7 +100,7 @@
|
|
|
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": "^1.2.
|
|
103
|
+
"@agg-build/hooks": "^1.2.12",
|
|
104
104
|
"@agg-build/sdk": "^1.2.11"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|