@agg-build/ui 1.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/README.md +287 -0
- package/dist/chunk-2QJXRRYP.mjs +37 -0
- package/dist/chunk-6NS7D73S.mjs +8811 -0
- package/dist/chunk-75IGOQ4N.mjs +3415 -0
- package/dist/chunk-C7T56TJR.mjs +748 -0
- package/dist/chunk-CGNDMLQL.mjs +3813 -0
- package/dist/chunk-DMKKNK76.mjs +3742 -0
- package/dist/chunk-I2WBGEWK.mjs +4512 -0
- package/dist/chunk-KHHFHXXD.mjs +1 -0
- package/dist/events.d.mts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/events.js +11414 -0
- package/dist/events.mjs +41 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25520 -0
- package/dist/index.mjs +978 -0
- package/dist/modals.d.mts +1 -0
- package/dist/modals.d.ts +1 -0
- package/dist/modals.js +7743 -0
- package/dist/modals.mjs +36 -0
- package/dist/pages.d.mts +1 -0
- package/dist/pages.d.ts +1 -0
- package/dist/pages.js +20230 -0
- package/dist/pages.mjs +33 -0
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/primitives.js +8599 -0
- package/dist/primitives.mjs +179 -0
- package/dist/styles.css +2 -0
- package/dist/tailwind.css +2 -0
- package/dist/trading.d.mts +1 -0
- package/dist/trading.d.ts +1 -0
- package/dist/trading.js +8658 -0
- package/dist/trading.mjs +49 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +30 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +30 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +115 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +115 -0
- package/dist/types/auth/connect-button-view/index.d.mts +7 -0
- package/dist/types/auth/connect-button-view/index.d.ts +7 -0
- package/dist/types/auth/index.d.mts +1 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/constants.d.mts +5 -0
- package/dist/types/constants.d.ts +5 -0
- package/dist/types/deposit/components/DepositQRCode.d.mts +12 -0
- package/dist/types/deposit/components/DepositQRCode.d.ts +12 -0
- package/dist/types/deposit/deposit-modal.constants.d.mts +10 -0
- package/dist/types/deposit/deposit-modal.constants.d.ts +10 -0
- package/dist/types/deposit/deposit-modal.types.d.mts +233 -0
- package/dist/types/deposit/deposit-modal.types.d.ts +233 -0
- package/dist/types/deposit/index.d.mts +22 -0
- package/dist/types/deposit/index.d.ts +22 -0
- package/dist/types/deposit/steps/card-deposit.d.mts +17 -0
- package/dist/types/deposit/steps/card-deposit.d.ts +17 -0
- package/dist/types/deposit/steps/card-payment-pending.d.mts +7 -0
- package/dist/types/deposit/steps/card-payment-pending.d.ts +7 -0
- package/dist/types/deposit/steps/card-provider.d.mts +14 -0
- package/dist/types/deposit/steps/card-provider.d.ts +14 -0
- package/dist/types/deposit/steps/card-purchase-success.d.mts +7 -0
- package/dist/types/deposit/steps/card-purchase-success.d.ts +7 -0
- package/dist/types/deposit/steps/card-widget.d.mts +6 -0
- package/dist/types/deposit/steps/card-widget.d.ts +6 -0
- package/dist/types/deposit/steps/crypto-transfer.d.mts +19 -0
- package/dist/types/deposit/steps/crypto-transfer.d.ts +19 -0
- package/dist/types/deposit/steps/deposit-method.d.mts +12 -0
- package/dist/types/deposit/steps/deposit-method.d.ts +12 -0
- package/dist/types/deposit/steps/venue-selection.d.mts +7 -0
- package/dist/types/deposit/steps/venue-selection.d.ts +7 -0
- package/dist/types/deposit/steps/wallet-form.d.mts +24 -0
- package/dist/types/deposit/steps/wallet-form.d.ts +24 -0
- package/dist/types/deposit/steps/wallet-processing.d.mts +7 -0
- package/dist/types/deposit/steps/wallet-processing.d.ts +7 -0
- package/dist/types/deposit/steps/wallet-success.d.mts +7 -0
- package/dist/types/deposit/steps/wallet-success.d.ts +7 -0
- package/dist/types/events/index.d.mts +5 -0
- package/dist/types/events/index.d.ts +5 -0
- package/dist/types/events/item/event-list-item.constants.d.mts +1 -0
- package/dist/types/events/item/event-list-item.constants.d.ts +1 -0
- package/dist/types/events/item/event-list-item.types.d.mts +71 -0
- package/dist/types/events/item/event-list-item.types.d.ts +71 -0
- package/dist/types/events/item/event-list-item.utils.d.mts +46 -0
- package/dist/types/events/item/event-list-item.utils.d.ts +46 -0
- package/dist/types/events/item/index.d.mts +6 -0
- package/dist/types/events/item/index.d.ts +6 -0
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.mts +10 -0
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.ts +10 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.mts +3 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.ts +3 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +116 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +116 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.mts +75 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.ts +75 -0
- package/dist/types/events/item-details/index.d.mts +8 -0
- package/dist/types/events/item-details/index.d.ts +8 -0
- package/dist/types/events/item-details/settlement-summary.d.mts +9 -0
- package/dist/types/events/item-details/settlement-summary.d.ts +9 -0
- package/dist/types/events/list/event-list-tabs.d.mts +44 -0
- package/dist/types/events/list/event-list-tabs.d.ts +44 -0
- package/dist/types/events/list/event-list.constants.d.mts +4 -0
- package/dist/types/events/list/event-list.constants.d.ts +4 -0
- package/dist/types/events/list/event-list.types.d.mts +48 -0
- package/dist/types/events/list/event-list.types.d.ts +48 -0
- package/dist/types/events/list/event-list.utils.d.mts +19 -0
- package/dist/types/events/list/event-list.utils.d.ts +19 -0
- package/dist/types/events/list/index.d.mts +6 -0
- package/dist/types/events/list/index.d.ts +6 -0
- package/dist/types/events/market-details/index.d.mts +12 -0
- package/dist/types/events/market-details/index.d.ts +12 -0
- package/dist/types/events/market-details/market-details-outcome-button.d.mts +13 -0
- package/dist/types/events/market-details/market-details-outcome-button.d.ts +13 -0
- package/dist/types/events/market-details/market-details.constants.d.mts +9 -0
- package/dist/types/events/market-details/market-details.constants.d.ts +9 -0
- package/dist/types/events/market-details/market-details.types.d.mts +143 -0
- package/dist/types/events/market-details/market-details.types.d.ts +143 -0
- package/dist/types/events/market-details/market-details.utils.d.mts +72 -0
- package/dist/types/events/market-details/market-details.utils.d.ts +72 -0
- package/dist/types/events/market-details/orderbook-aggregation.d.mts +30 -0
- package/dist/types/events/market-details/orderbook-aggregation.d.ts +30 -0
- package/dist/types/events/orderbook/index.d.mts +11 -0
- package/dist/types/events/orderbook/index.d.ts +11 -0
- package/dist/types/events/orderbook/orderbook-with-states.d.mts +35 -0
- package/dist/types/events/orderbook/orderbook-with-states.d.ts +35 -0
- package/dist/types/events/orderbook/orderbook.constants.d.mts +10 -0
- package/dist/types/events/orderbook/orderbook.constants.d.ts +10 -0
- package/dist/types/events/orderbook/orderbook.types.d.mts +65 -0
- package/dist/types/events/orderbook/orderbook.types.d.ts +65 -0
- package/dist/types/events/orderbook/orderbook.utils.d.mts +13 -0
- package/dist/types/events/orderbook/orderbook.utils.d.ts +13 -0
- package/dist/types/events/orderbook/use-center-orderbook-spread.d.mts +13 -0
- package/dist/types/events/orderbook/use-center-orderbook-spread.d.ts +13 -0
- package/dist/types/events/shared/chart-venue-selection.d.mts +20 -0
- package/dist/types/events/shared/chart-venue-selection.d.ts +20 -0
- package/dist/types/events/shared/event-trading-state.utils.d.mts +14 -0
- package/dist/types/events/shared/event-trading-state.utils.d.ts +14 -0
- package/dist/types/events/shared/venue-market-cluster.d.mts +11 -0
- package/dist/types/events/shared/venue-market-cluster.d.ts +11 -0
- package/dist/types/geo-block-banner/index.d.mts +12 -0
- package/dist/types/geo-block-banner/index.d.ts +12 -0
- package/dist/types/geo-block-modal/geo-block-modal.types.d.mts +13 -0
- package/dist/types/geo-block-modal/geo-block-modal.types.d.ts +13 -0
- package/dist/types/geo-block-modal/index.d.mts +6 -0
- package/dist/types/geo-block-modal/index.d.ts +6 -0
- package/dist/types/index.d.mts +10 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/modals/index.d.mts +6 -0
- package/dist/types/modals/index.d.ts +6 -0
- package/dist/types/onboarding/index.d.mts +11 -0
- package/dist/types/onboarding/index.d.ts +11 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.mts +10 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.ts +10 -0
- package/dist/types/onboarding/onboarding-modal.types.d.mts +76 -0
- package/dist/types/onboarding/onboarding-modal.types.d.ts +76 -0
- package/dist/types/onboarding/steps/connect-accounts.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-accounts.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.mts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.ts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.mts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.ts +5 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +84 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +84 -0
- package/dist/types/pages/event-market/event-market.utils.d.mts +14 -0
- package/dist/types/pages/event-market/event-market.utils.d.ts +14 -0
- package/dist/types/pages/event-market/index.d.mts +8 -0
- package/dist/types/pages/event-market/index.d.ts +8 -0
- package/dist/types/pages/home/home.constants.d.mts +6 -0
- package/dist/types/pages/home/home.constants.d.ts +6 -0
- package/dist/types/pages/home/home.types.d.mts +85 -0
- package/dist/types/pages/home/home.types.d.ts +85 -0
- package/dist/types/pages/home/home.utils.d.mts +7 -0
- package/dist/types/pages/home/home.utils.d.ts +7 -0
- package/dist/types/pages/home/index.d.mts +9 -0
- package/dist/types/pages/home/index.d.ts +9 -0
- package/dist/types/pages/home/use-home-page-modals.d.mts +32 -0
- package/dist/types/pages/home/use-home-page-modals.d.ts +32 -0
- package/dist/types/pages/home/use-scroll-restoration.d.mts +17 -0
- package/dist/types/pages/home/use-scroll-restoration.d.ts +17 -0
- package/dist/types/pages/index.d.mts +4 -0
- package/dist/types/pages/index.d.ts +4 -0
- package/dist/types/pages/user-profile/chain-display.d.mts +1 -0
- package/dist/types/pages/user-profile/chain-display.d.ts +1 -0
- package/dist/types/pages/user-profile/components/activity-row.d.mts +11 -0
- package/dist/types/pages/user-profile/components/activity-row.d.ts +11 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +18 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +18 -0
- package/dist/types/pages/user-profile/components/balance-display.d.mts +10 -0
- package/dist/types/pages/user-profile/components/balance-display.d.ts +10 -0
- package/dist/types/pages/user-profile/components/balances-card.d.mts +12 -0
- package/dist/types/pages/user-profile/components/balances-card.d.ts +12 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.mts +8 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.ts +8 -0
- package/dist/types/pages/user-profile/components/empty-state.d.mts +10 -0
- package/dist/types/pages/user-profile/components/empty-state.d.ts +10 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.mts +12 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.ts +12 -0
- package/dist/types/pages/user-profile/components/position-row.d.mts +15 -0
- package/dist/types/pages/user-profile/components/position-row.d.ts +15 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +51 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +51 -0
- package/dist/types/pages/user-profile/components/positions-value-card.d.mts +10 -0
- package/dist/types/pages/user-profile/components/positions-value-card.d.ts +10 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +15 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +15 -0
- package/dist/types/pages/user-profile/index.d.mts +10 -0
- package/dist/types/pages/user-profile/index.d.ts +10 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.mts +9 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.ts +9 -0
- package/dist/types/pages/user-profile/user-profile.types.d.mts +281 -0
- package/dist/types/pages/user-profile/user-profile.types.d.ts +281 -0
- package/dist/types/primitives/agg-logo/agg-logo.constants.d.mts +3 -0
- package/dist/types/primitives/agg-logo/agg-logo.constants.d.ts +3 -0
- package/dist/types/primitives/agg-logo/agg-logo.types.d.mts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.types.d.ts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.mts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.ts +2 -0
- package/dist/types/primitives/agg-logo/index.d.mts +7 -0
- package/dist/types/primitives/agg-logo/index.d.ts +7 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.mts +1 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.ts +1 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.mts +26 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.ts +26 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.mts +7 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.ts +7 -0
- package/dist/types/primitives/autocomplete-select/index.d.mts +7 -0
- package/dist/types/primitives/autocomplete-select/index.d.ts +7 -0
- package/dist/types/primitives/badge/badge.constants.d.mts +4 -0
- package/dist/types/primitives/badge/badge.constants.d.ts +4 -0
- package/dist/types/primitives/badge/badge.types.d.mts +27 -0
- package/dist/types/primitives/badge/badge.types.d.ts +27 -0
- package/dist/types/primitives/badge/badge.utils.d.mts +11 -0
- package/dist/types/primitives/badge/badge.utils.d.ts +11 -0
- package/dist/types/primitives/badge/index.d.mts +8 -0
- package/dist/types/primitives/badge/index.d.ts +8 -0
- package/dist/types/primitives/button/button.constants.d.mts +6 -0
- package/dist/types/primitives/button/button.constants.d.ts +6 -0
- package/dist/types/primitives/button/button.types.d.mts +18 -0
- package/dist/types/primitives/button/button.types.d.ts +18 -0
- package/dist/types/primitives/button/button.utils.d.mts +12 -0
- package/dist/types/primitives/button/button.utils.d.ts +12 -0
- package/dist/types/primitives/button/index.d.mts +7 -0
- package/dist/types/primitives/button/index.d.ts +7 -0
- package/dist/types/primitives/card/card.constants.d.mts +4 -0
- package/dist/types/primitives/card/card.constants.d.ts +4 -0
- package/dist/types/primitives/card/card.types.d.mts +8 -0
- package/dist/types/primitives/card/card.types.d.ts +8 -0
- package/dist/types/primitives/card/card.utils.d.mts +8 -0
- package/dist/types/primitives/card/card.utils.d.ts +8 -0
- package/dist/types/primitives/card/index.d.mts +6 -0
- package/dist/types/primitives/card/index.d.ts +6 -0
- package/dist/types/primitives/chart/chart-type-switch.constants.d.mts +2 -0
- package/dist/types/primitives/chart/chart-type-switch.constants.d.ts +2 -0
- package/dist/types/primitives/chart/chart-type-switch.d.mts +7 -0
- package/dist/types/primitives/chart/chart-type-switch.d.ts +7 -0
- package/dist/types/primitives/chart/chart-type-switch.types.d.mts +9 -0
- package/dist/types/primitives/chart/chart-type-switch.types.d.ts +9 -0
- package/dist/types/primitives/chart/chart-type-switch.utils.d.mts +13 -0
- package/dist/types/primitives/chart/chart-type-switch.utils.d.ts +13 -0
- package/dist/types/primitives/chart/chart.constants.d.mts +5 -0
- package/dist/types/primitives/chart/chart.constants.d.ts +5 -0
- package/dist/types/primitives/chart/chart.types.d.mts +59 -0
- package/dist/types/primitives/chart/chart.types.d.ts +59 -0
- package/dist/types/primitives/chart/chart.utils.d.mts +35 -0
- package/dist/types/primitives/chart/chart.utils.d.ts +35 -0
- package/dist/types/primitives/chart/index.d.mts +7 -0
- package/dist/types/primitives/chart/index.d.ts +7 -0
- package/dist/types/primitives/conditional-wrapper.d.mts +11 -0
- package/dist/types/primitives/conditional-wrapper.d.ts +11 -0
- package/dist/types/primitives/currency-input/currency-input.constants.d.mts +6 -0
- package/dist/types/primitives/currency-input/currency-input.constants.d.ts +6 -0
- package/dist/types/primitives/currency-input/currency-input.types.d.mts +36 -0
- package/dist/types/primitives/currency-input/currency-input.types.d.ts +36 -0
- package/dist/types/primitives/currency-input/currency-input.utils.d.mts +10 -0
- package/dist/types/primitives/currency-input/currency-input.utils.d.ts +10 -0
- package/dist/types/primitives/currency-input/index.d.mts +7 -0
- package/dist/types/primitives/currency-input/index.d.ts +7 -0
- package/dist/types/primitives/error-boundary/index.d.mts +24 -0
- package/dist/types/primitives/error-boundary/index.d.ts +24 -0
- package/dist/types/primitives/footer/agg-build-logo.d.mts +16 -0
- package/dist/types/primitives/footer/agg-build-logo.d.ts +16 -0
- package/dist/types/primitives/footer/footer.constants.d.mts +3 -0
- package/dist/types/primitives/footer/footer.constants.d.ts +3 -0
- package/dist/types/primitives/footer/footer.types.d.mts +25 -0
- package/dist/types/primitives/footer/footer.types.d.ts +25 -0
- package/dist/types/primitives/footer/index.d.mts +8 -0
- package/dist/types/primitives/footer/index.d.ts +8 -0
- package/dist/types/primitives/header/agg-logo.d.mts +2 -0
- package/dist/types/primitives/header/agg-logo.d.ts +2 -0
- package/dist/types/primitives/header/header.constants.d.mts +2 -0
- package/dist/types/primitives/header/header.constants.d.ts +2 -0
- package/dist/types/primitives/header/header.types.d.mts +42 -0
- package/dist/types/primitives/header/header.types.d.ts +42 -0
- package/dist/types/primitives/header/header.utils.d.mts +12 -0
- package/dist/types/primitives/header/header.utils.d.ts +12 -0
- package/dist/types/primitives/header/index.d.mts +8 -0
- package/dist/types/primitives/header/index.d.ts +8 -0
- package/dist/types/primitives/icon/icon.constants.d.mts +2 -0
- package/dist/types/primitives/icon/icon.constants.d.ts +2 -0
- package/dist/types/primitives/icon/icon.types.d.mts +12 -0
- package/dist/types/primitives/icon/icon.types.d.ts +12 -0
- package/dist/types/primitives/icon/icon.utils.d.mts +3 -0
- package/dist/types/primitives/icon/icon.utils.d.ts +3 -0
- package/dist/types/primitives/icon/index.d.mts +68 -0
- package/dist/types/primitives/icon/index.d.ts +68 -0
- package/dist/types/primitives/icon/registry.d.mts +286 -0
- package/dist/types/primitives/icon/registry.d.ts +286 -0
- package/dist/types/primitives/icon/svg/activity-chart.d.mts +5 -0
- package/dist/types/primitives/icon/svg/activity-chart.d.ts +5 -0
- package/dist/types/primitives/icon/svg/activity.d.mts +5 -0
- package/dist/types/primitives/icon/svg/activity.d.ts +5 -0
- package/dist/types/primitives/icon/svg/apple.d.mts +5 -0
- package/dist/types/primitives/icon/svg/apple.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arbitrum.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arbitrum.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrow-right.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrow-right.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.ts +5 -0
- package/dist/types/primitives/icon/svg/badge-check-thin.d.mts +5 -0
- package/dist/types/primitives/icon/svg/badge-check-thin.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.ts +5 -0
- package/dist/types/primitives/icon/svg/base.d.mts +5 -0
- package/dist/types/primitives/icon/svg/base.d.ts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.mts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bnb.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bnb.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.mts +6 -0
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.ts +6 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/close.d.mts +5 -0
- package/dist/types/primitives/icon/svg/close.d.ts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.mts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.ts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.mts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.ts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.mts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.ts +5 -0
- package/dist/types/primitives/icon/svg/cross-circle.d.mts +5 -0
- package/dist/types/primitives/icon/svg/cross-circle.d.ts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.mts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.ts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.mts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.ts +5 -0
- package/dist/types/primitives/icon/svg/document.d.mts +5 -0
- package/dist/types/primitives/icon/svg/document.d.ts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.mts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.ts +5 -0
- package/dist/types/primitives/icon/svg/download.d.mts +5 -0
- package/dist/types/primitives/icon/svg/download.d.ts +5 -0
- package/dist/types/primitives/icon/svg/email.d.mts +5 -0
- package/dist/types/primitives/icon/svg/email.d.ts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.mts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.ts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.mts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.ts +5 -0
- package/dist/types/primitives/icon/svg/google.d.mts +5 -0
- package/dist/types/primitives/icon/svg/google.d.ts +5 -0
- package/dist/types/primitives/icon/svg/image.d.mts +5 -0
- package/dist/types/primitives/icon/svg/image.d.ts +5 -0
- package/dist/types/primitives/icon/svg/info.d.mts +5 -0
- package/dist/types/primitives/icon/svg/info.d.ts +5 -0
- package/dist/types/primitives/icon/svg/internet-security.d.mts +5 -0
- package/dist/types/primitives/icon/svg/internet-security.d.ts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.mts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.ts +5 -0
- package/dist/types/primitives/icon/svg/paper-plane.d.mts +5 -0
- package/dist/types/primitives/icon/svg/paper-plane.d.ts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.mts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.ts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.mts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.ts +5 -0
- package/dist/types/primitives/icon/svg/polygon.d.mts +5 -0
- package/dist/types/primitives/icon/svg/polygon.d.ts +5 -0
- package/dist/types/primitives/icon/svg/profile-about-tab.d.mts +6 -0
- package/dist/types/primitives/icon/svg/profile-about-tab.d.ts +6 -0
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.mts +6 -0
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.ts +6 -0
- package/dist/types/primitives/icon/svg/profile.d.mts +5 -0
- package/dist/types/primitives/icon/svg/profile.d.ts +5 -0
- package/dist/types/primitives/icon/svg/quotes-warning.d.mts +6 -0
- package/dist/types/primitives/icon/svg/quotes-warning.d.ts +6 -0
- package/dist/types/primitives/icon/svg/recenter.d.mts +5 -0
- package/dist/types/primitives/icon/svg/recenter.d.ts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/search.d.mts +5 -0
- package/dist/types/primitives/icon/svg/search.d.ts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.mts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.ts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.mts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.ts +5 -0
- package/dist/types/primitives/icon/svg/sparkles-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/sparkles-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.mts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.ts +5 -0
- package/dist/types/primitives/icon/svg/success-check.d.mts +5 -0
- package/dist/types/primitives/icon/svg/success-check.d.ts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.mts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.mts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.ts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.mts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.ts +5 -0
- package/dist/types/primitives/icon/svg/usdc.d.mts +5 -0
- package/dist/types/primitives/icon/svg/usdc.d.ts +5 -0
- package/dist/types/primitives/icon/svg/user-trust.d.mts +5 -0
- package/dist/types/primitives/icon/svg/user-trust.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.ts +5 -0
- package/dist/types/primitives/icon/types.d.mts +6 -0
- package/dist/types/primitives/icon/types.d.ts +6 -0
- package/dist/types/primitives/index.d.mts +25 -0
- package/dist/types/primitives/index.d.ts +25 -0
- package/dist/types/primitives/inline-alert/index.d.mts +7 -0
- package/dist/types/primitives/inline-alert/index.d.ts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.constants.d.mts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.constants.d.ts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.types.d.mts +24 -0
- package/dist/types/primitives/inline-alert/inline-alert.types.d.ts +24 -0
- package/dist/types/primitives/inline-alert/inline-alert.utils.d.mts +10 -0
- package/dist/types/primitives/inline-alert/inline-alert.utils.d.ts +10 -0
- package/dist/types/primitives/loading-icon/index.d.mts +7 -0
- package/dist/types/primitives/loading-icon/index.d.ts +7 -0
- package/dist/types/primitives/loading-icon/loading-icon.constants.d.mts +11 -0
- package/dist/types/primitives/loading-icon/loading-icon.constants.d.ts +11 -0
- package/dist/types/primitives/loading-icon/loading-icon.types.d.mts +15 -0
- package/dist/types/primitives/loading-icon/loading-icon.types.d.ts +15 -0
- package/dist/types/primitives/loading-icon/loading-icon.utils.d.mts +5 -0
- package/dist/types/primitives/loading-icon/loading-icon.utils.d.ts +5 -0
- package/dist/types/primitives/modal/index.d.mts +11 -0
- package/dist/types/primitives/modal/index.d.ts +11 -0
- package/dist/types/primitives/modal/modal.constants.d.mts +2 -0
- package/dist/types/primitives/modal/modal.constants.d.ts +2 -0
- package/dist/types/primitives/modal/modal.types.d.mts +78 -0
- package/dist/types/primitives/modal/modal.types.d.ts +78 -0
- package/dist/types/primitives/modal/modal.utils.d.mts +8 -0
- package/dist/types/primitives/modal/modal.utils.d.ts +8 -0
- package/dist/types/primitives/number-value.d.mts +12 -0
- package/dist/types/primitives/number-value.d.ts +12 -0
- package/dist/types/primitives/remote-image/index.d.mts +7 -0
- package/dist/types/primitives/remote-image/index.d.ts +7 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.mts +28 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.ts +28 -0
- package/dist/types/primitives/remote-image/remote-image.utils.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.utils.d.ts +4 -0
- package/dist/types/primitives/search/index.d.mts +7 -0
- package/dist/types/primitives/search/index.d.ts +7 -0
- package/dist/types/primitives/search/search-empty-icon.d.mts +5 -0
- package/dist/types/primitives/search/search-empty-icon.d.ts +5 -0
- package/dist/types/primitives/search/search.constants.d.mts +3 -0
- package/dist/types/primitives/search/search.constants.d.ts +3 -0
- package/dist/types/primitives/search/search.types.d.mts +57 -0
- package/dist/types/primitives/search/search.types.d.ts +57 -0
- package/dist/types/primitives/search/search.utils.d.mts +4 -0
- package/dist/types/primitives/search/search.utils.d.ts +4 -0
- package/dist/types/primitives/select/index.d.mts +7 -0
- package/dist/types/primitives/select/index.d.ts +7 -0
- package/dist/types/primitives/select/select.constants.d.mts +1 -0
- package/dist/types/primitives/select/select.constants.d.ts +1 -0
- package/dist/types/primitives/select/select.types.d.mts +25 -0
- package/dist/types/primitives/select/select.types.d.ts +25 -0
- package/dist/types/primitives/select/select.utils.d.mts +9 -0
- package/dist/types/primitives/select/select.utils.d.ts +9 -0
- package/dist/types/primitives/skeleton/index.d.mts +8 -0
- package/dist/types/primitives/skeleton/index.d.ts +8 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.mts +8 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.ts +8 -0
- package/dist/types/primitives/skeleton/skeleton.constants.d.mts +1 -0
- package/dist/types/primitives/skeleton/skeleton.constants.d.ts +1 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.mts +27 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.ts +27 -0
- package/dist/types/primitives/skeleton/skeleton.utils.d.mts +3 -0
- package/dist/types/primitives/skeleton/skeleton.utils.d.ts +3 -0
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.mts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.ts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.mts +12 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.ts +12 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/state-message/index.d.mts +7 -0
- package/dist/types/primitives/state-message/index.d.ts +7 -0
- package/dist/types/primitives/state-message/state-message.constants.d.mts +1 -0
- package/dist/types/primitives/state-message/state-message.constants.d.ts +1 -0
- package/dist/types/primitives/state-message/state-message.types.d.mts +24 -0
- package/dist/types/primitives/state-message/state-message.types.d.ts +24 -0
- package/dist/types/primitives/state-message/state-message.utils.d.mts +4 -0
- package/dist/types/primitives/state-message/state-message.utils.d.ts +4 -0
- package/dist/types/primitives/switch-button/index.d.mts +7 -0
- package/dist/types/primitives/switch-button/index.d.ts +7 -0
- package/dist/types/primitives/switch-button/switch-button.constants.d.mts +5 -0
- package/dist/types/primitives/switch-button/switch-button.constants.d.ts +5 -0
- package/dist/types/primitives/switch-button/switch-button.types.d.mts +19 -0
- package/dist/types/primitives/switch-button/switch-button.types.d.ts +19 -0
- package/dist/types/primitives/switch-button/switch-button.utils.d.mts +7 -0
- package/dist/types/primitives/switch-button/switch-button.utils.d.ts +7 -0
- package/dist/types/primitives/tabs/index.d.mts +7 -0
- package/dist/types/primitives/tabs/index.d.ts +7 -0
- package/dist/types/primitives/tabs/tabs.constants.d.mts +1 -0
- package/dist/types/primitives/tabs/tabs.constants.d.ts +1 -0
- package/dist/types/primitives/tabs/tabs.types.d.mts +36 -0
- package/dist/types/primitives/tabs/tabs.types.d.ts +36 -0
- package/dist/types/primitives/tabs/tabs.utils.d.mts +15 -0
- package/dist/types/primitives/tabs/tabs.utils.d.ts +15 -0
- package/dist/types/primitives/tooltip/index.d.mts +7 -0
- package/dist/types/primitives/tooltip/index.d.ts +7 -0
- package/dist/types/primitives/tooltip/tooltip.constants.d.mts +3 -0
- package/dist/types/primitives/tooltip/tooltip.constants.d.ts +3 -0
- package/dist/types/primitives/tooltip/tooltip.types.d.mts +27 -0
- package/dist/types/primitives/tooltip/tooltip.types.d.ts +27 -0
- package/dist/types/primitives/tooltip/tooltip.utils.d.mts +7 -0
- package/dist/types/primitives/tooltip/tooltip.utils.d.ts +7 -0
- package/dist/types/primitives/typography/index.d.mts +8 -0
- package/dist/types/primitives/typography/index.d.ts +8 -0
- package/dist/types/primitives/typography/typography.constants.d.mts +3 -0
- package/dist/types/primitives/typography/typography.constants.d.ts +3 -0
- package/dist/types/primitives/typography/typography.types.d.mts +12 -0
- package/dist/types/primitives/typography/typography.types.d.ts +12 -0
- package/dist/types/primitives/typography/typography.utils.d.mts +6 -0
- package/dist/types/primitives/typography/typography.utils.d.ts +6 -0
- package/dist/types/primitives/venue-logo/index.d.mts +9 -0
- package/dist/types/primitives/venue-logo/index.d.ts +9 -0
- package/dist/types/primitives/venue-logo/logo-props.d.mts +10 -0
- package/dist/types/primitives/venue-logo/logo-props.d.ts +10 -0
- package/dist/types/primitives/venue-logo/svg/default-venue.d.mts +2 -0
- package/dist/types/primitives/venue-logo/svg/default-venue.d.ts +2 -0
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.ts +5 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.mts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +24 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +24 -0
- package/dist/types/primitives/venue-logo/venue-logo.utils.d.mts +13 -0
- package/dist/types/primitives/venue-logo/venue-logo.utils.d.ts +13 -0
- package/dist/types/profile/index.d.mts +6 -0
- package/dist/types/profile/index.d.ts +6 -0
- package/dist/types/profile/profile-modal.constants.d.mts +17 -0
- package/dist/types/profile/profile-modal.constants.d.ts +17 -0
- package/dist/types/profile/profile-modal.types.d.mts +84 -0
- package/dist/types/profile/profile-modal.types.d.ts +84 -0
- package/dist/types/profile/tabs/about-tab.d.mts +18 -0
- package/dist/types/profile/tabs/about-tab.d.ts +18 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +33 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +33 -0
- package/dist/types/shared/constants.d.mts +33 -0
- package/dist/types/shared/constants.d.ts +33 -0
- package/dist/types/shared/deposit-modal-events.d.mts +4 -0
- package/dist/types/shared/deposit-modal-events.d.ts +4 -0
- package/dist/types/shared/query-error.d.mts +2 -0
- package/dist/types/shared/query-error.d.ts +2 -0
- package/dist/types/shared/types.d.mts +1 -0
- package/dist/types/shared/types.d.ts +1 -0
- package/dist/types/shared/utils.d.mts +15 -0
- package/dist/types/shared/utils.d.ts +15 -0
- package/dist/types/trading/index.d.mts +7 -0
- package/dist/types/trading/index.d.ts +7 -0
- package/dist/types/trading/place-order/index.d.mts +10 -0
- package/dist/types/trading/place-order/index.d.ts +10 -0
- package/dist/types/trading/place-order/index.place-order.constants.d.mts +18 -0
- package/dist/types/trading/place-order/index.place-order.constants.d.ts +18 -0
- package/dist/types/trading/place-order/index.place-order.failure.d.mts +14 -0
- package/dist/types/trading/place-order/index.place-order.failure.d.ts +14 -0
- package/dist/types/trading/place-order/index.place-order.success.d.mts +12 -0
- package/dist/types/trading/place-order/index.place-order.success.d.ts +12 -0
- package/dist/types/trading/place-order/index.place-order.types.d.mts +192 -0
- package/dist/types/trading/place-order/index.place-order.types.d.ts +192 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +100 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +100 -0
- package/dist/types/trading/settlement/index.d.mts +12 -0
- package/dist/types/trading/settlement/index.d.ts +12 -0
- package/dist/types/trading/settlement/settlement-details.d.mts +8 -0
- package/dist/types/trading/settlement/settlement-details.d.ts +8 -0
- package/dist/types/trading/settlement/settlement-details.utils.d.mts +7 -0
- package/dist/types/trading/settlement/settlement-details.utils.d.ts +7 -0
- package/dist/types/trading/trading-context/index.d.mts +2 -0
- package/dist/types/trading/trading-context/index.d.ts +2 -0
- package/dist/types/trading/types.d.mts +82 -0
- package/dist/types/trading/types.d.ts +82 -0
- package/dist/types/trading/use-kalshi-kyc-flow.d.mts +22 -0
- package/dist/types/trading/use-kalshi-kyc-flow.d.ts +22 -0
- package/dist/types/trading/utils.d.mts +16 -0
- package/dist/types/trading/utils.d.ts +16 -0
- package/dist/types/withdraw/index.d.mts +6 -0
- package/dist/types/withdraw/index.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +17 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +17 -0
- package/dist/types/withdraw/steps/withdraw-method.d.mts +6 -0
- package/dist/types/withdraw/steps/withdraw-method.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-provider.d.mts +10 -0
- package/dist/types/withdraw/steps/withdraw-provider.d.ts +10 -0
- package/dist/types/withdraw/steps/withdraw-success.d.mts +7 -0
- package/dist/types/withdraw/steps/withdraw-success.d.ts +7 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.mts +5 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.ts +5 -0
- package/dist/types/withdraw/withdraw-modal.types.d.mts +64 -0
- package/dist/types/withdraw/withdraw-modal.types.d.ts +64 -0
- package/package.json +128 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type { AggUiLabels, DagStepProgress, EventTradingState, VenueMarket, VenueMarketOutcome } from "@agg-build/hooks";
|
|
2
|
+
import type { SmartRouteResponse } from "@agg-build/sdk";
|
|
3
|
+
import type { PlaceOrderRoutingRow, PlaceOrderStatus, PlaceOrderTab, TradingVenue } from "../types";
|
|
4
|
+
export type PlaceOrderProps = {
|
|
5
|
+
/** Custom class name applied to the place-order root. */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Custom class name applied to the place-order elements. */
|
|
8
|
+
classNames?: PlaceOrderClassNames;
|
|
9
|
+
/** Trading state used to drive markets, balances, and quotes. */
|
|
10
|
+
eventTradingState?: EventTradingState;
|
|
11
|
+
/** Whether the place-order panel should render its loading state. */
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
/** Whether the primary submit action should be disabled. */
|
|
14
|
+
isPrimaryActionDisabled?: boolean;
|
|
15
|
+
/** Whether the primary submit action should show a loading spinner. */
|
|
16
|
+
isPrimaryActionLoading?: boolean;
|
|
17
|
+
/** Called when the entered order amount changes. */
|
|
18
|
+
onAmountChange?: (amount: number) => void;
|
|
19
|
+
/** Called when the place-order panel should close. */
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
/** Called when the selected outcome changes. */
|
|
22
|
+
onOutcomeChange?: (outcomeId: string) => void;
|
|
23
|
+
/** Called when the primary action is triggered. */
|
|
24
|
+
onPrimaryAction?: (context?: {
|
|
25
|
+
quoteId?: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
/** Called when the slippage control value changes. */
|
|
28
|
+
onSlippageChange?: (value: string) => void;
|
|
29
|
+
/** Called when the active trade tab changes. */
|
|
30
|
+
onTabChange?: (tab: PlaceOrderTab) => void;
|
|
31
|
+
/** Optional chain balance overrides keyed by chain ID. */
|
|
32
|
+
chainBalancesOverride?: Record<string, number>;
|
|
33
|
+
/** Called when order execution completes successfully. */
|
|
34
|
+
onSuccess?: (summary: PlaceOrderExecutionSummary) => void;
|
|
35
|
+
/** Called when order execution fails. */
|
|
36
|
+
onError?: (error: Error) => void;
|
|
37
|
+
/** Called on each execution phase transition (finding-route → submitting → executing → success → failed). */
|
|
38
|
+
onExecutionStateChange?: (state: PlaceOrderSubmissionProgressState) => void;
|
|
39
|
+
/** Optional resolved-event claim summary shown in read-only state. */
|
|
40
|
+
resolvedClaim?: PlaceOrderResolvedClaimSummary;
|
|
41
|
+
};
|
|
42
|
+
export type PlaceOrderResolvedClaimSummary = {
|
|
43
|
+
/** Resolution date label, e.g. "Mar 21, 2026". */
|
|
44
|
+
resolutionDateLabel: string;
|
|
45
|
+
/** Winning outcome label, e.g. "Yes". */
|
|
46
|
+
winningOutcomeLabel: string;
|
|
47
|
+
/** Shares label, e.g. "286 Yes". */
|
|
48
|
+
sharesLabel: string;
|
|
49
|
+
/** Total payout label, e.g. "$8.50". */
|
|
50
|
+
totalPayoutLabel: string;
|
|
51
|
+
/** Whether the claim action is currently in-flight. */
|
|
52
|
+
isClaiming?: boolean;
|
|
53
|
+
/** Optional claim action for eligible winnings. */
|
|
54
|
+
onClaim?: () => void;
|
|
55
|
+
};
|
|
56
|
+
export type PlaceOrderClassNames = {
|
|
57
|
+
root?: string;
|
|
58
|
+
body?: string;
|
|
59
|
+
header?: string;
|
|
60
|
+
content?: string;
|
|
61
|
+
footer?: string;
|
|
62
|
+
};
|
|
63
|
+
export type PlaceOrderSlippageControlProps = {
|
|
64
|
+
/** Default slippage value shown when the control initializes. */
|
|
65
|
+
defaultValue: string;
|
|
66
|
+
/** Whether the control should animate state changes. */
|
|
67
|
+
enableAnimations: boolean;
|
|
68
|
+
/** Minimum allowed slippage percentage. */
|
|
69
|
+
minimumValue: number;
|
|
70
|
+
/** Called when the slippage value changes. */
|
|
71
|
+
onChange?: (value: string) => void;
|
|
72
|
+
/** Controlled slippage value. */
|
|
73
|
+
value: string;
|
|
74
|
+
};
|
|
75
|
+
export type PlaceOrderRouteCardKind = "split" | "venue";
|
|
76
|
+
export type PlaceOrderRouteCard = {
|
|
77
|
+
id: string;
|
|
78
|
+
hint: string;
|
|
79
|
+
kind: PlaceOrderRouteCardKind;
|
|
80
|
+
label: string;
|
|
81
|
+
numericValue: number;
|
|
82
|
+
quoteData: SmartRouteResponse;
|
|
83
|
+
rows?: PlaceOrderRoutingRow[];
|
|
84
|
+
value: string;
|
|
85
|
+
venue?: TradingVenue;
|
|
86
|
+
/** Whether the venue is unavailable in the user's region (geo-blocked). */
|
|
87
|
+
isUnavailable?: boolean;
|
|
88
|
+
};
|
|
89
|
+
export type PlaceOrderOutcomeClassNameParams = {
|
|
90
|
+
enableAnimations: boolean;
|
|
91
|
+
isActive: boolean;
|
|
92
|
+
isPositive: boolean;
|
|
93
|
+
};
|
|
94
|
+
export type PlaceOrderOutcomeLabelValue = Pick<VenueMarketOutcome, "id" | "label">;
|
|
95
|
+
export type PlaceOrderVenueOutcome = Pick<VenueMarketOutcome, "id" | "label" | "price"> & {
|
|
96
|
+
title?: string | null;
|
|
97
|
+
};
|
|
98
|
+
export type PlaceOrderVenueQuote = {
|
|
99
|
+
price: number;
|
|
100
|
+
venue: TradingVenue;
|
|
101
|
+
venueMarketId: string;
|
|
102
|
+
venueMarketOutcomeId: string;
|
|
103
|
+
};
|
|
104
|
+
export type PlaceOrderResultTone = "default" | "success";
|
|
105
|
+
export type PlaceOrderQuoteResult = {
|
|
106
|
+
hint: string;
|
|
107
|
+
value: string;
|
|
108
|
+
};
|
|
109
|
+
export type PlaceOrderTradingLabels = AggUiLabels["trading"];
|
|
110
|
+
export type PlaceOrderExecutionStep = {
|
|
111
|
+
id: string;
|
|
112
|
+
label: string;
|
|
113
|
+
tone?: "complete" | "warning" | "error";
|
|
114
|
+
venue?: TradingVenue;
|
|
115
|
+
};
|
|
116
|
+
export type PlaceOrderExecutionStepGroup = PlaceOrderExecutionStep[];
|
|
117
|
+
export type PlaceOrderTerminalOrderEvent = {
|
|
118
|
+
orderId: string;
|
|
119
|
+
venue: string;
|
|
120
|
+
event: "filled" | "partial_fill" | "failed";
|
|
121
|
+
filledAmountRaw?: string;
|
|
122
|
+
remainingAmountRaw?: string;
|
|
123
|
+
errorReason?: string;
|
|
124
|
+
timestamp: number;
|
|
125
|
+
};
|
|
126
|
+
export type PlaceOrderFailureStepTone = "complete" | "warning" | "error";
|
|
127
|
+
export type PlaceOrderFailureStep = {
|
|
128
|
+
id: string;
|
|
129
|
+
label: string;
|
|
130
|
+
tone: PlaceOrderFailureStepTone;
|
|
131
|
+
venue?: TradingVenue;
|
|
132
|
+
};
|
|
133
|
+
export type PlaceOrderFailureAction = {
|
|
134
|
+
id: string;
|
|
135
|
+
label: string;
|
|
136
|
+
variant: "retry" | "dismiss" | "continue" | "skip";
|
|
137
|
+
};
|
|
138
|
+
export type PlaceOrderFailureKind = "partial_fill" | "venue_unavailable" | "market_resolved" | "generic";
|
|
139
|
+
export type PlaceOrderFailureSummary = {
|
|
140
|
+
actionLabel: string;
|
|
141
|
+
actions: PlaceOrderFailureAction[];
|
|
142
|
+
errorMessage?: string;
|
|
143
|
+
eventImage?: string | null;
|
|
144
|
+
eventSubtitle?: string;
|
|
145
|
+
eventTitle: string;
|
|
146
|
+
kind: PlaceOrderFailureKind;
|
|
147
|
+
steps: PlaceOrderFailureStep[];
|
|
148
|
+
};
|
|
149
|
+
export type ResolvePlaceOrderQuoteResultParams = {
|
|
150
|
+
labels: PlaceOrderTradingLabels;
|
|
151
|
+
quoteData: SmartRouteResponse | null;
|
|
152
|
+
tradeSide: PlaceOrderTab;
|
|
153
|
+
};
|
|
154
|
+
export type ResolvePlaceOrderQuoteStatusParams = {
|
|
155
|
+
amount: number;
|
|
156
|
+
labels: PlaceOrderTradingLabels;
|
|
157
|
+
quoteData: SmartRouteResponse | null;
|
|
158
|
+
selectedMarket: VenueMarket | null;
|
|
159
|
+
};
|
|
160
|
+
export type ResolvePlaceOrderTabKeyParams = {
|
|
161
|
+
currentTab: PlaceOrderTab;
|
|
162
|
+
key: string;
|
|
163
|
+
};
|
|
164
|
+
export type PlaceOrderQuoteStatus = PlaceOrderStatus | undefined;
|
|
165
|
+
export type PlaceOrderSubmissionProgressPhase = "finding-route" | "submitting" | "executing" | "success" | "failed";
|
|
166
|
+
export type PlaceOrderExecutionSummary = {
|
|
167
|
+
tradeSide?: PlaceOrderTab;
|
|
168
|
+
shares: string;
|
|
169
|
+
avgPrice: string;
|
|
170
|
+
estimatedCost: string;
|
|
171
|
+
venue?: string;
|
|
172
|
+
eventTitle?: string;
|
|
173
|
+
eventDateLabel?: string;
|
|
174
|
+
eventImage?: string | null;
|
|
175
|
+
actionLabel?: string;
|
|
176
|
+
actionTone?: "positive" | "negative";
|
|
177
|
+
amountLabel?: string;
|
|
178
|
+
toWinLabel?: string;
|
|
179
|
+
potentialReturnLabel?: string;
|
|
180
|
+
executionStepGroups?: PlaceOrderExecutionStepGroup[];
|
|
181
|
+
shareText?: string;
|
|
182
|
+
};
|
|
183
|
+
export type PlaceOrderSubmissionProgressState = {
|
|
184
|
+
errorMessage?: string;
|
|
185
|
+
executionVenue?: TradingVenue;
|
|
186
|
+
failureSummary?: PlaceOrderFailureSummary;
|
|
187
|
+
orderId?: string;
|
|
188
|
+
orderIds?: string[];
|
|
189
|
+
phase: PlaceOrderSubmissionProgressPhase;
|
|
190
|
+
summary?: PlaceOrderExecutionSummary;
|
|
191
|
+
dagProgress?: DagStepProgress | null;
|
|
192
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { SmartRouteResponse, WsOrderSubmitted } from "@agg-build/sdk";
|
|
2
|
+
import { type PlaceOrderOutcome, type PlaceOrderRoutingRow, type PlaceOrderTab, type TradingVenue } from "../types";
|
|
3
|
+
import type { PlaceOrderOutcomeClassNameParams, PlaceOrderExecutionStepGroup, PlaceOrderFailureStep, PlaceOrderFailureSummary, PlaceOrderOutcomeLabelValue, PlaceOrderQuoteResult, PlaceOrderQuoteStatus, PlaceOrderResultTone, PlaceOrderRouteCard, PlaceOrderTerminalOrderEvent, PlaceOrderTradingLabels, PlaceOrderVenueOutcome, ResolvePlaceOrderQuoteResultParams, ResolvePlaceOrderQuoteStatusParams, ResolvePlaceOrderTabKeyParams } from "./index.place-order.types";
|
|
4
|
+
export declare const extractGeoBlockedVenues: (warnings: SmartRouteResponse["warnings"]) => Set<string>;
|
|
5
|
+
/** Pure helpers for PlaceOrder view-model shaping, formatting, and keyboard logic. */
|
|
6
|
+
export declare const getPlaceOrderContainerClassName: () => string;
|
|
7
|
+
export declare const getResultValueClassName: (tone: PlaceOrderResultTone) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Determines if an outcome is "positive" (typically Yes/first outcome).
|
|
10
|
+
*
|
|
11
|
+
* Uses index as the primary signal: index 0 is positive, index 1+ is negative.
|
|
12
|
+
* This aligns with the standard binary prediction market convention where
|
|
13
|
+
* the first outcome is "Yes" and the second is "No".
|
|
14
|
+
*/
|
|
15
|
+
export declare const resolveIsPositiveOutcome: (_outcome: PlaceOrderOutcomeLabelValue, index: number) => boolean;
|
|
16
|
+
export declare const getOutcomeButtonClassName: ({ enableAnimations, isActive, isPositive, }: PlaceOrderOutcomeClassNameParams) => string;
|
|
17
|
+
export declare const mapVenueMarketOutcomesToPlaceOrderOutcomes: (venueMarketOutcomes: PlaceOrderVenueOutcome[] | null | undefined) => PlaceOrderOutcome[];
|
|
18
|
+
export declare const mapQuoteDataToRoutingRows: (quoteData: ResolvePlaceOrderQuoteResultParams["quoteData"]) => PlaceOrderRoutingRow[];
|
|
19
|
+
/**
|
|
20
|
+
* Aggregate execution outcome for a (possibly split) order.
|
|
21
|
+
* - `pending` – not all order legs have reached a terminal state yet
|
|
22
|
+
* - `full_success` – every leg filled completely
|
|
23
|
+
* - `partial_failure` – at least one leg partially filled or failed while another filled/partially filled
|
|
24
|
+
* - `full_failure` – every leg failed with no fills
|
|
25
|
+
*/
|
|
26
|
+
export type PlaceOrderAggregateOrderStatus = "pending" | "full_success" | "partial_failure" | "full_failure";
|
|
27
|
+
/**
|
|
28
|
+
* Derives the aggregate outcome once all order legs of a split (or single) trade
|
|
29
|
+
* have terminal WebSocket events. Returns `"pending"` until every orderId has a
|
|
30
|
+
* corresponding terminal event so the UI never transitions prematurely.
|
|
31
|
+
*/
|
|
32
|
+
export declare const deriveAggregateOrderStatus: (orderIds: string[], terminalEvents: PlaceOrderTerminalOrderEvent[]) => PlaceOrderAggregateOrderStatus;
|
|
33
|
+
export declare const resolvePlaceOrderQuoteResult: ({ labels, quoteData, tradeSide, }: ResolvePlaceOrderQuoteResultParams) => PlaceOrderQuoteResult | null;
|
|
34
|
+
export declare const sanitizePlaceOrderAmount: (value: number) => number;
|
|
35
|
+
export declare const getTradingRoutePriceLabel: (value: number) => string;
|
|
36
|
+
export declare const resolvePlaceOrderQuoteStatus: ({ amount, labels, quoteData, selectedMarket, }: ResolvePlaceOrderQuoteStatusParams) => PlaceOrderQuoteStatus;
|
|
37
|
+
export declare const buildLiveRouteCards: ({ labels, quoteData, tradeSide, }: {
|
|
38
|
+
labels: PlaceOrderTradingLabels;
|
|
39
|
+
quoteData: SmartRouteResponse;
|
|
40
|
+
tradeSide: PlaceOrderTab;
|
|
41
|
+
}) => PlaceOrderRouteCard[];
|
|
42
|
+
export declare const resolveExecutionVenueFromQuote: (quoteData: SmartRouteResponse | null) => TradingVenue | undefined;
|
|
43
|
+
export declare const resolvePlaceOrderSuccessTone: ({ outcomeIndex, tab, }: {
|
|
44
|
+
outcomeIndex: number;
|
|
45
|
+
tab: PlaceOrderTab;
|
|
46
|
+
}) => "positive" | "negative";
|
|
47
|
+
export declare const getPlaceOrderPotentialReturn: (quoteData: SmartRouteResponse | null | undefined) => number;
|
|
48
|
+
export declare const buildPlaceOrderExecutionStepGroups: ({ labels, orderId, quoteData, submittedOrders, }: {
|
|
49
|
+
labels: PlaceOrderTradingLabels;
|
|
50
|
+
orderId?: string;
|
|
51
|
+
quoteData: SmartRouteResponse | null | undefined;
|
|
52
|
+
submittedOrders?: WsOrderSubmitted[];
|
|
53
|
+
}) => PlaceOrderExecutionStepGroup[];
|
|
54
|
+
export declare const groupPlaceOrderFailureSteps: (steps: PlaceOrderFailureStep[]) => PlaceOrderFailureStep[][];
|
|
55
|
+
export declare const buildPlaceOrderExecutionStepGroupsFromFailureSummary: ({ labels, summary, }: {
|
|
56
|
+
labels: PlaceOrderTradingLabels;
|
|
57
|
+
summary: PlaceOrderFailureSummary;
|
|
58
|
+
}) => PlaceOrderExecutionStepGroup[];
|
|
59
|
+
export declare const normalizePlaceOrderErrorMessage: ({ errorMessage, fallbackMessage, }: {
|
|
60
|
+
errorMessage?: string | null;
|
|
61
|
+
fallbackMessage: string;
|
|
62
|
+
}) => string;
|
|
63
|
+
/**
|
|
64
|
+
* Sum filled + partially-filled amounts (1e6-atomic) across terminal events
|
|
65
|
+
* and subtract from the originally-requested amount. Works for both buy
|
|
66
|
+
* (USD remainder) and sell (share remainder) — the executor uses the same
|
|
67
|
+
* 1e6 atomic convention for `filledAmountRaw` in both directions.
|
|
68
|
+
*/
|
|
69
|
+
export declare const getPlaceOrderUnfilledRemaining: ({ originalAmount, terminalOrderEvents, }: {
|
|
70
|
+
originalAmount: number;
|
|
71
|
+
terminalOrderEvents?: PlaceOrderTerminalOrderEvent[];
|
|
72
|
+
}) => number;
|
|
73
|
+
export declare const buildPlaceOrderFailureSummary: ({ actionLabel, canRetryRemaining, errorMessage, eventImage, eventSubtitle, eventTitle, labels, orderId, quoteData, submittedOrders, terminalOrderEvents, }: {
|
|
74
|
+
actionLabel: string;
|
|
75
|
+
canRetryRemaining?: boolean;
|
|
76
|
+
errorMessage?: string;
|
|
77
|
+
eventImage?: string | null;
|
|
78
|
+
eventSubtitle?: string;
|
|
79
|
+
eventTitle: string;
|
|
80
|
+
labels: PlaceOrderTradingLabels;
|
|
81
|
+
orderId?: string;
|
|
82
|
+
quoteData: SmartRouteResponse | null | undefined;
|
|
83
|
+
submittedOrders?: WsOrderSubmitted[];
|
|
84
|
+
terminalOrderEvents?: PlaceOrderTerminalOrderEvent[];
|
|
85
|
+
}) => PlaceOrderFailureSummary;
|
|
86
|
+
export declare const buildPlaceOrderShareText: ({ actionLabel, amountLabel, eventTitle, potentialReturnLabel, tab, toWinLabel, tradingLabels, }: {
|
|
87
|
+
actionLabel: string;
|
|
88
|
+
amountLabel: string;
|
|
89
|
+
eventTitle: string;
|
|
90
|
+
potentialReturnLabel?: string;
|
|
91
|
+
tab: "buy" | "sell";
|
|
92
|
+
toWinLabel: string;
|
|
93
|
+
tradingLabels: Pick<PlaceOrderTradingLabels, "amount" | "potentialReturnBonus" | "toWin" | "withSmartRouting">;
|
|
94
|
+
}) => string;
|
|
95
|
+
export declare const resolveNextTabFromKey: ({ currentTab, key, }: ResolvePlaceOrderTabKeyParams) => PlaceOrderTab | null;
|
|
96
|
+
export declare const sanitizePercentageInput: (value: string) => string;
|
|
97
|
+
export declare const finalizePercentageValue: (value: string | undefined) => string;
|
|
98
|
+
export declare const parsePercentageValue: (value: string | undefined) => number | null;
|
|
99
|
+
export declare const formatPercentageValue: (value: string | undefined) => string;
|
|
100
|
+
export declare const isPercentageBelowMinimum: (value: string | undefined, minimumValue: number | null) => boolean;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { SmartRouteResponse, WsOrderSubmitted } from "@agg-build/sdk";
|
|
2
|
+
import { type PlaceOrderOutcome, type PlaceOrderRoutingRow, type PlaceOrderTab, type TradingVenue } from "../types";
|
|
3
|
+
import type { PlaceOrderOutcomeClassNameParams, PlaceOrderExecutionStepGroup, PlaceOrderFailureStep, PlaceOrderFailureSummary, PlaceOrderOutcomeLabelValue, PlaceOrderQuoteResult, PlaceOrderQuoteStatus, PlaceOrderResultTone, PlaceOrderRouteCard, PlaceOrderTerminalOrderEvent, PlaceOrderTradingLabels, PlaceOrderVenueOutcome, ResolvePlaceOrderQuoteResultParams, ResolvePlaceOrderQuoteStatusParams, ResolvePlaceOrderTabKeyParams } from "./index.place-order.types";
|
|
4
|
+
export declare const extractGeoBlockedVenues: (warnings: SmartRouteResponse["warnings"]) => Set<string>;
|
|
5
|
+
/** Pure helpers for PlaceOrder view-model shaping, formatting, and keyboard logic. */
|
|
6
|
+
export declare const getPlaceOrderContainerClassName: () => string;
|
|
7
|
+
export declare const getResultValueClassName: (tone: PlaceOrderResultTone) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Determines if an outcome is "positive" (typically Yes/first outcome).
|
|
10
|
+
*
|
|
11
|
+
* Uses index as the primary signal: index 0 is positive, index 1+ is negative.
|
|
12
|
+
* This aligns with the standard binary prediction market convention where
|
|
13
|
+
* the first outcome is "Yes" and the second is "No".
|
|
14
|
+
*/
|
|
15
|
+
export declare const resolveIsPositiveOutcome: (_outcome: PlaceOrderOutcomeLabelValue, index: number) => boolean;
|
|
16
|
+
export declare const getOutcomeButtonClassName: ({ enableAnimations, isActive, isPositive, }: PlaceOrderOutcomeClassNameParams) => string;
|
|
17
|
+
export declare const mapVenueMarketOutcomesToPlaceOrderOutcomes: (venueMarketOutcomes: PlaceOrderVenueOutcome[] | null | undefined) => PlaceOrderOutcome[];
|
|
18
|
+
export declare const mapQuoteDataToRoutingRows: (quoteData: ResolvePlaceOrderQuoteResultParams["quoteData"]) => PlaceOrderRoutingRow[];
|
|
19
|
+
/**
|
|
20
|
+
* Aggregate execution outcome for a (possibly split) order.
|
|
21
|
+
* - `pending` – not all order legs have reached a terminal state yet
|
|
22
|
+
* - `full_success` – every leg filled completely
|
|
23
|
+
* - `partial_failure` – at least one leg partially filled or failed while another filled/partially filled
|
|
24
|
+
* - `full_failure` – every leg failed with no fills
|
|
25
|
+
*/
|
|
26
|
+
export type PlaceOrderAggregateOrderStatus = "pending" | "full_success" | "partial_failure" | "full_failure";
|
|
27
|
+
/**
|
|
28
|
+
* Derives the aggregate outcome once all order legs of a split (or single) trade
|
|
29
|
+
* have terminal WebSocket events. Returns `"pending"` until every orderId has a
|
|
30
|
+
* corresponding terminal event so the UI never transitions prematurely.
|
|
31
|
+
*/
|
|
32
|
+
export declare const deriveAggregateOrderStatus: (orderIds: string[], terminalEvents: PlaceOrderTerminalOrderEvent[]) => PlaceOrderAggregateOrderStatus;
|
|
33
|
+
export declare const resolvePlaceOrderQuoteResult: ({ labels, quoteData, tradeSide, }: ResolvePlaceOrderQuoteResultParams) => PlaceOrderQuoteResult | null;
|
|
34
|
+
export declare const sanitizePlaceOrderAmount: (value: number) => number;
|
|
35
|
+
export declare const getTradingRoutePriceLabel: (value: number) => string;
|
|
36
|
+
export declare const resolvePlaceOrderQuoteStatus: ({ amount, labels, quoteData, selectedMarket, }: ResolvePlaceOrderQuoteStatusParams) => PlaceOrderQuoteStatus;
|
|
37
|
+
export declare const buildLiveRouteCards: ({ labels, quoteData, tradeSide, }: {
|
|
38
|
+
labels: PlaceOrderTradingLabels;
|
|
39
|
+
quoteData: SmartRouteResponse;
|
|
40
|
+
tradeSide: PlaceOrderTab;
|
|
41
|
+
}) => PlaceOrderRouteCard[];
|
|
42
|
+
export declare const resolveExecutionVenueFromQuote: (quoteData: SmartRouteResponse | null) => TradingVenue | undefined;
|
|
43
|
+
export declare const resolvePlaceOrderSuccessTone: ({ outcomeIndex, tab, }: {
|
|
44
|
+
outcomeIndex: number;
|
|
45
|
+
tab: PlaceOrderTab;
|
|
46
|
+
}) => "positive" | "negative";
|
|
47
|
+
export declare const getPlaceOrderPotentialReturn: (quoteData: SmartRouteResponse | null | undefined) => number;
|
|
48
|
+
export declare const buildPlaceOrderExecutionStepGroups: ({ labels, orderId, quoteData, submittedOrders, }: {
|
|
49
|
+
labels: PlaceOrderTradingLabels;
|
|
50
|
+
orderId?: string;
|
|
51
|
+
quoteData: SmartRouteResponse | null | undefined;
|
|
52
|
+
submittedOrders?: WsOrderSubmitted[];
|
|
53
|
+
}) => PlaceOrderExecutionStepGroup[];
|
|
54
|
+
export declare const groupPlaceOrderFailureSteps: (steps: PlaceOrderFailureStep[]) => PlaceOrderFailureStep[][];
|
|
55
|
+
export declare const buildPlaceOrderExecutionStepGroupsFromFailureSummary: ({ labels, summary, }: {
|
|
56
|
+
labels: PlaceOrderTradingLabels;
|
|
57
|
+
summary: PlaceOrderFailureSummary;
|
|
58
|
+
}) => PlaceOrderExecutionStepGroup[];
|
|
59
|
+
export declare const normalizePlaceOrderErrorMessage: ({ errorMessage, fallbackMessage, }: {
|
|
60
|
+
errorMessage?: string | null;
|
|
61
|
+
fallbackMessage: string;
|
|
62
|
+
}) => string;
|
|
63
|
+
/**
|
|
64
|
+
* Sum filled + partially-filled amounts (1e6-atomic) across terminal events
|
|
65
|
+
* and subtract from the originally-requested amount. Works for both buy
|
|
66
|
+
* (USD remainder) and sell (share remainder) — the executor uses the same
|
|
67
|
+
* 1e6 atomic convention for `filledAmountRaw` in both directions.
|
|
68
|
+
*/
|
|
69
|
+
export declare const getPlaceOrderUnfilledRemaining: ({ originalAmount, terminalOrderEvents, }: {
|
|
70
|
+
originalAmount: number;
|
|
71
|
+
terminalOrderEvents?: PlaceOrderTerminalOrderEvent[];
|
|
72
|
+
}) => number;
|
|
73
|
+
export declare const buildPlaceOrderFailureSummary: ({ actionLabel, canRetryRemaining, errorMessage, eventImage, eventSubtitle, eventTitle, labels, orderId, quoteData, submittedOrders, terminalOrderEvents, }: {
|
|
74
|
+
actionLabel: string;
|
|
75
|
+
canRetryRemaining?: boolean;
|
|
76
|
+
errorMessage?: string;
|
|
77
|
+
eventImage?: string | null;
|
|
78
|
+
eventSubtitle?: string;
|
|
79
|
+
eventTitle: string;
|
|
80
|
+
labels: PlaceOrderTradingLabels;
|
|
81
|
+
orderId?: string;
|
|
82
|
+
quoteData: SmartRouteResponse | null | undefined;
|
|
83
|
+
submittedOrders?: WsOrderSubmitted[];
|
|
84
|
+
terminalOrderEvents?: PlaceOrderTerminalOrderEvent[];
|
|
85
|
+
}) => PlaceOrderFailureSummary;
|
|
86
|
+
export declare const buildPlaceOrderShareText: ({ actionLabel, amountLabel, eventTitle, potentialReturnLabel, tab, toWinLabel, tradingLabels, }: {
|
|
87
|
+
actionLabel: string;
|
|
88
|
+
amountLabel: string;
|
|
89
|
+
eventTitle: string;
|
|
90
|
+
potentialReturnLabel?: string;
|
|
91
|
+
tab: "buy" | "sell";
|
|
92
|
+
toWinLabel: string;
|
|
93
|
+
tradingLabels: Pick<PlaceOrderTradingLabels, "amount" | "potentialReturnBonus" | "toWin" | "withSmartRouting">;
|
|
94
|
+
}) => string;
|
|
95
|
+
export declare const resolveNextTabFromKey: ({ currentTab, key, }: ResolvePlaceOrderTabKeyParams) => PlaceOrderTab | null;
|
|
96
|
+
export declare const sanitizePercentageInput: (value: string) => string;
|
|
97
|
+
export declare const finalizePercentageValue: (value: string | undefined) => string;
|
|
98
|
+
export declare const parsePercentageValue: (value: string | undefined) => number | null;
|
|
99
|
+
export declare const formatPercentageValue: (value: string | undefined) => string;
|
|
100
|
+
export declare const isPercentageBelowMinimum: (value: string | undefined, minimumValue: number | null) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SettlementViewModel, TradingVenue } from "../types";
|
|
2
|
+
export type SettlementProps = SettlementViewModel & {
|
|
3
|
+
className?: string;
|
|
4
|
+
expandedVenue?: TradingVenue | null;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
onExpandedVenueChange?: (venue: TradingVenue | null) => void;
|
|
7
|
+
onShowMore?: (venue: TradingVenue) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const Settlement: {
|
|
10
|
+
({ sectionLabel, question, differencesTitle, differences, venues, expandedVenue, isLoading, onExpandedVenueChange, onShowMore, className, }: SettlementProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SettlementViewModel, TradingVenue } from "../types";
|
|
2
|
+
export type SettlementProps = SettlementViewModel & {
|
|
3
|
+
className?: string;
|
|
4
|
+
expandedVenue?: TradingVenue | null;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
onExpandedVenueChange?: (venue: TradingVenue | null) => void;
|
|
7
|
+
onShowMore?: (venue: TradingVenue) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const Settlement: {
|
|
10
|
+
({ sectionLabel, question, differencesTitle, differences, venues, expandedVenue, isLoading, onExpandedVenueChange, onShowMore, className, }: SettlementProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AggUiLabels, VenueMarket } from "@agg-build/hooks";
|
|
2
|
+
import type { SettlementSection } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Maps venue markets to settlement sections, filtering out sections
|
|
5
|
+
* where no venue has meaningful content for that field.
|
|
6
|
+
*/
|
|
7
|
+
export declare function mapVenueMarketsToSettlementSections(venueMarkets: VenueMarket[], labels: AggUiLabels, selectedMarketId?: string): SettlementSection[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AggUiLabels, VenueMarket } from "@agg-build/hooks";
|
|
2
|
+
import type { SettlementSection } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Maps venue markets to settlement sections, filtering out sections
|
|
5
|
+
* where no venue has meaningful content for that field.
|
|
6
|
+
*/
|
|
7
|
+
export declare function mapVenueMarketsToSettlementSections(venueMarkets: VenueMarket[], labels: AggUiLabels, selectedMarketId?: string): SettlementSection[];
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Venue } from "@agg-build/sdk";
|
|
2
|
+
export type TradingVenue = Venue;
|
|
3
|
+
/** safeParse-compatible venue check. */
|
|
4
|
+
export declare const parseVenue: (v: unknown) => import("@agg-build/sdk").SafeParseResult<Venue>;
|
|
5
|
+
/** safeParse-compatible finite non-negative number check. */
|
|
6
|
+
export declare const parseAmount: (v: unknown) => import("@agg-build/sdk").SafeParseResult<number>;
|
|
7
|
+
export interface SettlementVenueItem {
|
|
8
|
+
marketId: string;
|
|
9
|
+
venue: TradingVenue;
|
|
10
|
+
label?: string;
|
|
11
|
+
description: string;
|
|
12
|
+
showMoreLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SettlementViewModel {
|
|
15
|
+
sectionLabel?: string;
|
|
16
|
+
question?: string;
|
|
17
|
+
differencesTitle?: string;
|
|
18
|
+
differences?: string[];
|
|
19
|
+
venues: SettlementVenueItem[];
|
|
20
|
+
}
|
|
21
|
+
export interface SettlementSection {
|
|
22
|
+
key: string;
|
|
23
|
+
label: string;
|
|
24
|
+
venues: SettlementVenueItem[];
|
|
25
|
+
}
|
|
26
|
+
export type PlaceOrderTab = "buy" | "sell";
|
|
27
|
+
export type PlaceOrderStatusTone = "warning" | "error";
|
|
28
|
+
export type PlaceOrderStatusPlacement = "above-action" | "below-action";
|
|
29
|
+
export type PlaceOrderRoutingTone = "default" | "highlighted";
|
|
30
|
+
export type PlaceOrderResultTone = "default" | "success";
|
|
31
|
+
export interface PlaceOrderOutcome {
|
|
32
|
+
id: string;
|
|
33
|
+
/** Canonical machine-readable label (e.g. "Yes", "No"). Use for logic
|
|
34
|
+
* checks (isYesLabel, sort keys); never display this directly. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Descriptive human-readable text when the venue provides one (e.g.
|
|
37
|
+
* Polymarket "Trump Wins"). Display this when present, fall back to
|
|
38
|
+
* `label`. */
|
|
39
|
+
title: string | null;
|
|
40
|
+
price: number;
|
|
41
|
+
priceLabel: string;
|
|
42
|
+
}
|
|
43
|
+
export interface PlaceOrderMetric {
|
|
44
|
+
label: string;
|
|
45
|
+
hint: string;
|
|
46
|
+
value: number;
|
|
47
|
+
}
|
|
48
|
+
export interface PlaceOrderSlippage {
|
|
49
|
+
value: string;
|
|
50
|
+
label: string;
|
|
51
|
+
defaultValue?: string;
|
|
52
|
+
autoLabel?: string;
|
|
53
|
+
minimumValue?: number;
|
|
54
|
+
warningMessage?: string;
|
|
55
|
+
isExpandedByDefault?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface PlaceOrderRoutingRow {
|
|
58
|
+
venue: TradingVenue;
|
|
59
|
+
label: string;
|
|
60
|
+
priceLabel: string;
|
|
61
|
+
resultLabel?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface PlaceOrderRouting {
|
|
64
|
+
tone: PlaceOrderRoutingTone;
|
|
65
|
+
rows: PlaceOrderRoutingRow[];
|
|
66
|
+
helperLabel?: string;
|
|
67
|
+
highlightLabel?: string;
|
|
68
|
+
collapsedRowCount?: number;
|
|
69
|
+
isExpandedByDefault?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface PlaceOrderResult {
|
|
72
|
+
label: string;
|
|
73
|
+
hint: string;
|
|
74
|
+
value: string;
|
|
75
|
+
tone: PlaceOrderResultTone;
|
|
76
|
+
}
|
|
77
|
+
export interface PlaceOrderStatus {
|
|
78
|
+
tone: PlaceOrderStatusTone;
|
|
79
|
+
message: string;
|
|
80
|
+
actionLabel?: string;
|
|
81
|
+
placement: PlaceOrderStatusPlacement;
|
|
82
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Venue } from "@agg-build/sdk";
|
|
2
|
+
export type TradingVenue = Venue;
|
|
3
|
+
/** safeParse-compatible venue check. */
|
|
4
|
+
export declare const parseVenue: (v: unknown) => import("@agg-build/sdk").SafeParseResult<Venue>;
|
|
5
|
+
/** safeParse-compatible finite non-negative number check. */
|
|
6
|
+
export declare const parseAmount: (v: unknown) => import("@agg-build/sdk").SafeParseResult<number>;
|
|
7
|
+
export interface SettlementVenueItem {
|
|
8
|
+
marketId: string;
|
|
9
|
+
venue: TradingVenue;
|
|
10
|
+
label?: string;
|
|
11
|
+
description: string;
|
|
12
|
+
showMoreLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SettlementViewModel {
|
|
15
|
+
sectionLabel?: string;
|
|
16
|
+
question?: string;
|
|
17
|
+
differencesTitle?: string;
|
|
18
|
+
differences?: string[];
|
|
19
|
+
venues: SettlementVenueItem[];
|
|
20
|
+
}
|
|
21
|
+
export interface SettlementSection {
|
|
22
|
+
key: string;
|
|
23
|
+
label: string;
|
|
24
|
+
venues: SettlementVenueItem[];
|
|
25
|
+
}
|
|
26
|
+
export type PlaceOrderTab = "buy" | "sell";
|
|
27
|
+
export type PlaceOrderStatusTone = "warning" | "error";
|
|
28
|
+
export type PlaceOrderStatusPlacement = "above-action" | "below-action";
|
|
29
|
+
export type PlaceOrderRoutingTone = "default" | "highlighted";
|
|
30
|
+
export type PlaceOrderResultTone = "default" | "success";
|
|
31
|
+
export interface PlaceOrderOutcome {
|
|
32
|
+
id: string;
|
|
33
|
+
/** Canonical machine-readable label (e.g. "Yes", "No"). Use for logic
|
|
34
|
+
* checks (isYesLabel, sort keys); never display this directly. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Descriptive human-readable text when the venue provides one (e.g.
|
|
37
|
+
* Polymarket "Trump Wins"). Display this when present, fall back to
|
|
38
|
+
* `label`. */
|
|
39
|
+
title: string | null;
|
|
40
|
+
price: number;
|
|
41
|
+
priceLabel: string;
|
|
42
|
+
}
|
|
43
|
+
export interface PlaceOrderMetric {
|
|
44
|
+
label: string;
|
|
45
|
+
hint: string;
|
|
46
|
+
value: number;
|
|
47
|
+
}
|
|
48
|
+
export interface PlaceOrderSlippage {
|
|
49
|
+
value: string;
|
|
50
|
+
label: string;
|
|
51
|
+
defaultValue?: string;
|
|
52
|
+
autoLabel?: string;
|
|
53
|
+
minimumValue?: number;
|
|
54
|
+
warningMessage?: string;
|
|
55
|
+
isExpandedByDefault?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface PlaceOrderRoutingRow {
|
|
58
|
+
venue: TradingVenue;
|
|
59
|
+
label: string;
|
|
60
|
+
priceLabel: string;
|
|
61
|
+
resultLabel?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface PlaceOrderRouting {
|
|
64
|
+
tone: PlaceOrderRoutingTone;
|
|
65
|
+
rows: PlaceOrderRoutingRow[];
|
|
66
|
+
helperLabel?: string;
|
|
67
|
+
highlightLabel?: string;
|
|
68
|
+
collapsedRowCount?: number;
|
|
69
|
+
isExpandedByDefault?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface PlaceOrderResult {
|
|
72
|
+
label: string;
|
|
73
|
+
hint: string;
|
|
74
|
+
value: string;
|
|
75
|
+
tone: PlaceOrderResultTone;
|
|
76
|
+
}
|
|
77
|
+
export interface PlaceOrderStatus {
|
|
78
|
+
tone: PlaceOrderStatusTone;
|
|
79
|
+
message: string;
|
|
80
|
+
actionLabel?: string;
|
|
81
|
+
placement: PlaceOrderStatusPlacement;
|
|
82
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface KalshiKycPendingState {
|
|
2
|
+
venue: "kalshi";
|
|
3
|
+
userId: string | null;
|
|
4
|
+
walletAddress: string | null;
|
|
5
|
+
}
|
|
6
|
+
interface UseKalshiKycFlowOptions {
|
|
7
|
+
isKalshiVerified: boolean | undefined;
|
|
8
|
+
userId?: string | null;
|
|
9
|
+
walletAddress?: string | null;
|
|
10
|
+
onError?: (error: Error) => void;
|
|
11
|
+
}
|
|
12
|
+
interface UseKalshiKycFlowResult {
|
|
13
|
+
isVerifyModalOpen: boolean;
|
|
14
|
+
showSuccessModal: boolean;
|
|
15
|
+
isInitiating: boolean;
|
|
16
|
+
openVerifyModal: () => void;
|
|
17
|
+
closeVerifyModal: () => void;
|
|
18
|
+
closeSuccessModal: () => void;
|
|
19
|
+
startVerification: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const useKalshiKycFlow: ({ isKalshiVerified, userId, walletAddress, onError, }: UseKalshiKycFlowOptions) => UseKalshiKycFlowResult;
|
|
22
|
+
export {};
|