@agg-market/ui 4.0.0 → 6.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 +26 -26
- package/dist/auth.d.mts +1 -0
- package/dist/auth.d.ts +1 -0
- package/dist/{connect-button.js → auth.js} +6 -4
- package/dist/auth.mjs +8 -0
- package/dist/chunk-2ICOSP7N.mjs +1211 -0
- package/dist/chunk-5ZKPBMRK.mjs +2411 -0
- package/dist/{chunk-5K7VXAYM.mjs → chunk-ADGL6RFX.mjs} +2 -4
- package/dist/chunk-BXW3VIKV.mjs +90 -0
- package/dist/{chart.js → chunk-CN7GI2RJ.mjs} +250 -103
- package/dist/chunk-G6YKGVQR.mjs +769 -0
- package/dist/{chunk-PZTHM6WG.mjs → chunk-HI4EEDN5.mjs} +897 -357
- package/dist/{chunk-5ADMXO3Y.mjs → chunk-INRG3D4M.mjs} +5 -11
- package/dist/{chunk-DCORNTCY.mjs → chunk-JE3Z52FD.mjs} +85 -64
- package/dist/chunk-KZOQW6NT.mjs +0 -0
- package/dist/chunk-LMOJKJOY.mjs +2616 -0
- package/dist/{chunk-YJA5VQW6.mjs → chunk-MHCHR65A.mjs} +2 -4
- package/dist/{chunk-IGPNIM2B.mjs → chunk-PASXFYKQ.mjs} +2 -4
- package/dist/chunk-UBBOLLOS.mjs +999 -0
- package/dist/events.d.mts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/{event-market-page.js → events.js} +5128 -5274
- package/dist/events.mjs +17 -0
- package/dist/index.d.mts +1 -78
- package/dist/index.d.ts +1 -78
- package/dist/index.js +8738 -8534
- package/dist/index.mjs +68 -167
- package/dist/modals.d.mts +1 -0
- package/dist/modals.d.ts +1 -0
- package/dist/{deposit-modal.js → modals.js} +1771 -6
- package/dist/modals.mjs +25 -0
- package/dist/pages.d.mts +1 -0
- package/dist/pages.d.ts +1 -0
- package/dist/pages.js +7928 -0
- package/dist/pages.mjs +16 -0
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/{market-details.js → primitives.js} +2980 -3153
- package/dist/{icon.mjs → primitives.mjs} +56 -9
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.d.mts +1 -0
- package/dist/trading.d.ts +1 -0
- package/dist/{place-order.js → trading.js} +1907 -1394
- package/dist/trading.mjs +65 -0
- package/dist/types/auth/connect-button/connect-button.constants.d.mts +10 -0
- package/dist/types/auth/connect-button/connect-button.constants.d.ts +10 -0
- package/dist/{connect-button.d.mts → types/auth/connect-button/connect-button.types.d.mts} +5 -12
- package/dist/{connect-button.d.ts → types/auth/connect-button/connect-button.types.d.ts} +5 -12
- package/dist/types/auth/connect-button/index.d.mts +7 -0
- package/dist/types/auth/connect-button/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 +1 -0
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/deposit/deposit-modal.constants.d.mts +9 -0
- package/dist/types/deposit/deposit-modal.constants.d.ts +9 -0
- package/dist/{deposit-modal.d.mts → types/deposit/deposit-modal.types.d.mts} +3 -10
- package/dist/{deposit-modal.d.ts → types/deposit/deposit-modal.types.d.ts} +3 -10
- package/dist/types/deposit/index.d.mts +6 -0
- package/dist/types/deposit/index.d.ts +6 -0
- package/dist/types/deposit/steps/card-deposit.d.mts +7 -0
- package/dist/types/deposit/steps/card-deposit.d.ts +7 -0
- package/dist/types/deposit/steps/crypto-transfer.d.mts +7 -0
- package/dist/types/deposit/steps/crypto-transfer.d.ts +7 -0
- package/dist/types/deposit/steps/deposit-method.d.mts +7 -0
- package/dist/types/deposit/steps/deposit-method.d.ts +7 -0
- package/dist/types/deposit/steps/kalshi-deposit.d.mts +5 -0
- package/dist/types/deposit/steps/kalshi-deposit.d.ts +5 -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/events/index.d.mts +4 -0
- package/dist/types/events/index.d.ts +4 -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 +46 -0
- package/dist/types/events/item/event-list-item.types.d.ts +46 -0
- package/dist/types/events/item/event-list-item.utils.d.mts +23 -0
- package/dist/types/events/item/event-list-item.utils.d.ts +23 -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.constants.d.mts +10 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.ts +10 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +53 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +53 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.mts +26 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.ts +26 -0
- package/dist/types/events/item-details/index.d.mts +6 -0
- package/dist/types/events/item-details/index.d.ts +6 -0
- package/dist/types/events/list/event-list.constants.d.mts +3 -0
- package/dist/types/events/list/event-list.constants.d.ts +3 -0
- package/dist/types/events/list/event-list.types.d.mts +21 -0
- package/dist/types/events/list/event-list.types.d.ts +21 -0
- package/dist/types/events/list/event-list.utils.d.mts +6 -0
- package/dist/types/events/list/event-list.utils.d.ts +6 -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 +6 -0
- package/dist/types/events/market-details/index.d.ts +6 -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 +63 -0
- package/dist/types/events/market-details/market-details.types.d.ts +63 -0
- package/dist/types/events/market-details/market-details.utils.d.mts +46 -0
- package/dist/types/events/market-details/market-details.utils.d.ts +46 -0
- package/dist/types/index.d.mts +9 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/modals/index.d.mts +4 -0
- package/dist/types/modals/index.d.ts +4 -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 +55 -0
- package/dist/types/onboarding/onboarding-modal.types.d.ts +55 -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 +42 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +42 -0
- package/dist/types/pages/event-market/index.d.mts +6 -0
- package/dist/types/pages/event-market/index.d.ts +6 -0
- package/dist/types/pages/home/home.constants.d.mts +8 -0
- package/dist/types/pages/home/home.constants.d.ts +8 -0
- package/dist/{home-page.d.ts → types/pages/home/home.types.d.mts} +8 -18
- package/dist/{home-page.d.mts → types/pages/home/home.types.d.ts} +8 -18
- package/dist/types/pages/home/home.utils.d.mts +3 -0
- package/dist/types/pages/home/home.utils.d.ts +3 -0
- package/dist/types/pages/home/index.d.mts +6 -0
- package/dist/types/pages/home/index.d.ts +6 -0
- package/dist/types/pages/index.d.mts +3 -0
- package/dist/types/pages/index.d.ts +3 -0
- package/dist/types/pages/user-profile/components/activity-row.d.mts +10 -0
- package/dist/types/pages/user-profile/components/activity-row.d.ts +10 -0
- package/dist/types/pages/user-profile/components/balance-display.d.mts +12 -0
- package/dist/types/pages/user-profile/components/balance-display.d.ts +12 -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/position-row.d.mts +10 -0
- package/dist/types/pages/user-profile/components/position-row.d.ts +10 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +14 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +14 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +11 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +11 -0
- package/dist/types/pages/user-profile/index.d.mts +6 -0
- package/dist/types/pages/user-profile/index.d.ts +6 -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/{user-profile-page.d.ts → types/pages/user-profile/user-profile.types.d.mts} +12 -22
- package/dist/{user-profile-page.d.mts → types/pages/user-profile/user-profile.types.d.ts} +12 -22
- 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 +18 -0
- package/dist/types/primitives/badge/badge.types.d.ts +18 -0
- package/dist/types/primitives/badge/index.d.mts +7 -0
- package/dist/types/primitives/badge/index.d.ts +7 -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 +12 -0
- package/dist/types/primitives/button/button.types.d.ts +12 -0
- package/dist/types/primitives/button/index.d.mts +6 -0
- package/dist/types/primitives/button/index.d.ts +6 -0
- package/dist/types/primitives/card/card.types.d.mts +3 -0
- package/dist/types/primitives/card/card.types.d.ts +3 -0
- package/dist/types/primitives/card/index.d.mts +6 -0
- package/dist/types/primitives/card/index.d.ts +6 -0
- package/dist/{chart.d.mts → types/primitives/chart/index.d.mts} +7 -10
- package/dist/{chart.d.ts → types/primitives/chart/index.d.ts} +7 -10
- package/dist/types/primitives/hello-world.d.mts +4 -0
- package/dist/types/primitives/hello-world.d.ts +4 -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 +9 -0
- package/dist/types/primitives/icon/icon.types.d.ts +9 -0
- package/dist/types/primitives/icon/icon.utils.d.mts +2 -0
- package/dist/types/primitives/icon/icon.utils.d.ts +2 -0
- package/dist/types/primitives/icon/index.d.mts +46 -0
- package/dist/types/primitives/icon/index.d.ts +46 -0
- package/dist/types/primitives/icon/registry.d.mts +166 -0
- package/dist/types/primitives/icon/registry.d.ts +166 -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/bank.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bank.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/bolt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bolt.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.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/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/external-link.d.mts +5 -0
- package/dist/types/primitives/icon/svg/external-link.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/link-accounts.d.mts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.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/profile.d.mts +5 -0
- package/dist/types/primitives/icon/svg/profile.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/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/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/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.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 +5 -0
- package/dist/types/primitives/icon/types.d.ts +5 -0
- package/dist/types/primitives/index.d.mts +17 -0
- package/dist/types/primitives/index.d.ts +17 -0
- package/dist/types/primitives/loading-icon/index.d.mts +11 -0
- package/dist/types/primitives/loading-icon/index.d.ts +11 -0
- package/dist/types/primitives/modal/index.d.mts +10 -0
- package/dist/types/primitives/modal/index.d.ts +10 -0
- package/dist/types/primitives/modal/modal.types.d.mts +54 -0
- package/dist/types/primitives/modal/modal.types.d.ts +54 -0
- package/dist/{number-value.d.mts → types/primitives/number-value.d.mts} +3 -5
- package/dist/{number-value.d.ts → types/primitives/number-value.d.ts} +3 -5
- package/dist/types/primitives/search/index.d.mts +6 -0
- package/dist/types/primitives/search/index.d.ts +6 -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.types.d.mts +96 -0
- package/dist/types/primitives/search/search.types.d.ts +96 -0
- package/dist/{select.d.mts → types/primitives/select/index.d.mts} +3 -5
- package/dist/{select.d.ts → types/primitives/select/index.d.ts} +3 -5
- package/dist/types/primitives/skeleton/index.d.mts +7 -0
- package/dist/types/primitives/skeleton/index.d.ts +7 -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/{skeleton.d.mts → types/primitives/skeleton/skeleton.types.d.mts} +6 -9
- package/dist/{skeleton.d.ts → types/primitives/skeleton/skeleton.types.d.ts} +6 -9
- 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/settlement-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/state-message/index.d.mts +15 -0
- package/dist/types/primitives/state-message/index.d.ts +15 -0
- package/dist/{switch-button.d.mts → types/primitives/switch-button/index.d.mts} +4 -7
- package/dist/{switch-button.d.ts → types/primitives/switch-button/index.d.ts} +4 -7
- package/dist/types/primitives/tabs/index.d.mts +6 -0
- package/dist/types/primitives/tabs/index.d.ts +6 -0
- package/dist/types/primitives/tabs/tabs.types.d.mts +24 -0
- package/dist/types/primitives/tabs/tabs.types.d.ts +24 -0
- package/dist/types/primitives/tabs/tabs.utils.d.mts +14 -0
- package/dist/types/primitives/tabs/tabs.utils.d.ts +14 -0
- package/dist/types/primitives/typography/index.d.mts +7 -0
- package/dist/types/primitives/typography/index.d.ts +7 -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 +8 -0
- package/dist/types/primitives/typography/typography.types.d.ts +8 -0
- package/dist/types/primitives/venue-logo/index.d.mts +8 -0
- package/dist/types/primitives/venue-logo/index.d.ts +8 -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/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-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-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 +9 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +9 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +17 -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/{profile-modal.d.mts → types/profile/profile-modal.types.d.mts} +4 -11
- package/dist/{profile-modal.d.ts → types/profile/profile-modal.types.d.ts} +4 -11
- package/dist/types/profile/tabs/about-tab.d.mts +16 -0
- package/dist/types/profile/tabs/about-tab.d.ts +16 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +18 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +18 -0
- package/dist/types/shared/constants.d.mts +23 -0
- package/dist/types/shared/constants.d.ts +23 -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 +4 -0
- package/dist/types/trading/index.d.ts +4 -0
- package/dist/{place-order.d.ts → types/trading/place-order/index.d.mts} +3 -7
- package/dist/{place-order.d.mts → types/trading/place-order/index.d.ts} +3 -7
- package/dist/{settlement.d.ts → types/trading/settlement/index.d.mts} +3 -7
- package/dist/{settlement.d.mts → types/trading/settlement/index.d.ts} +3 -7
- package/dist/{types-DkGlbmXq.d.ts → types/trading/types.d.mts} +35 -38
- package/dist/{types-DkGlbmXq.d.mts → types/trading/types.d.ts} +35 -38
- 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/kalshi-withdraw.d.mts +5 -0
- package/dist/types/withdraw/steps/kalshi-withdraw.d.ts +5 -0
- package/dist/types/withdraw/steps/venue-selection.d.mts +6 -0
- package/dist/types/withdraw/steps/venue-selection.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +8 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +8 -0
- package/dist/types/withdraw/steps/withdraw-method.d.mts +7 -0
- package/dist/types/withdraw/steps/withdraw-method.d.ts +7 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.mts +9 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.ts +9 -0
- package/dist/{withdraw-modal.d.mts → types/withdraw/withdraw-modal.types.d.mts} +3 -10
- package/dist/{withdraw-modal.d.ts → types/withdraw/withdraw-modal.types.d.ts} +3 -10
- package/package.json +35 -273
- package/dist/badge.d.mts +0 -28
- package/dist/badge.d.ts +0 -28
- package/dist/badge.js +0 -110
- package/dist/badge.mjs +0 -9
- package/dist/button.d.mts +0 -20
- package/dist/button.d.ts +0 -20
- package/dist/button.js +0 -183
- package/dist/button.mjs +0 -8
- package/dist/card.d.mts +0 -10
- package/dist/card.d.ts +0 -10
- package/dist/card.js +0 -88
- package/dist/card.mjs +0 -7
- package/dist/chart.mjs +0 -8
- package/dist/chunk-3QLOUBDJ.mjs +0 -483
- package/dist/chunk-3W7NBJLU.mjs +0 -371
- package/dist/chunk-4S3I6X7F.mjs +0 -855
- package/dist/chunk-4VUDTWH7.mjs +0 -42
- package/dist/chunk-6JG6I5AY.mjs +0 -654
- package/dist/chunk-BNDFQPHF.mjs +0 -9
- package/dist/chunk-ERGNR6UQ.mjs +0 -67
- package/dist/chunk-FO263M3V.mjs +0 -10
- package/dist/chunk-FO2QCB4Z.mjs +0 -35
- package/dist/chunk-GJ4U5NCE.mjs +0 -134
- package/dist/chunk-GNSPZ53C.mjs +0 -991
- package/dist/chunk-HOXTJ742.mjs +0 -146
- package/dist/chunk-JNH64AKR.mjs +0 -720
- package/dist/chunk-K6IJ4WBM.mjs +0 -67
- package/dist/chunk-KAGYJ4XT.mjs +0 -126
- package/dist/chunk-LA3FBBSJ.mjs +0 -311
- package/dist/chunk-LCZKSITC.mjs +0 -162
- package/dist/chunk-M4RJHRFT.mjs +0 -445
- package/dist/chunk-MBHTXNHX.mjs +0 -289
- package/dist/chunk-MJHKBCXQ.mjs +0 -379
- package/dist/chunk-NDG43KGL.mjs +0 -44
- package/dist/chunk-NH2G3POM.mjs +0 -470
- package/dist/chunk-OBCHURW5.mjs +0 -64
- package/dist/chunk-OH56VUYK.mjs +0 -321
- package/dist/chunk-OJVTGNIF.mjs +0 -230
- package/dist/chunk-P2PJBO5C.mjs +0 -280
- package/dist/chunk-PORVP72S.mjs +0 -277
- package/dist/chunk-QLMVKLNJ.mjs +0 -669
- package/dist/chunk-QM7CGMFG.mjs +0 -156
- package/dist/chunk-S3H63TQ5.mjs +0 -537
- package/dist/chunk-ZFMCCBP6.mjs +0 -25
- package/dist/connect-button.mjs +0 -14
- package/dist/deposit-modal.mjs +0 -15
- package/dist/event-list-item-details.d.mts +0 -11
- package/dist/event-list-item-details.d.ts +0 -11
- package/dist/event-list-item-details.js +0 -2254
- package/dist/event-list-item-details.mjs +0 -19
- package/dist/event-list-item-details.types-CMbXOrT-.d.ts +0 -53
- package/dist/event-list-item-details.types-DekJKeMD.d.mts +0 -53
- package/dist/event-list-item.d.mts +0 -10
- package/dist/event-list-item.d.ts +0 -10
- package/dist/event-list-item.js +0 -2600
- package/dist/event-list-item.mjs +0 -17
- package/dist/event-list-item.types-Y6IeJ4e4.d.mts +0 -46
- package/dist/event-list-item.types-Y6IeJ4e4.d.ts +0 -46
- package/dist/event-list.d.mts +0 -9
- package/dist/event-list.d.ts +0 -9
- package/dist/event-list.js +0 -3578
- package/dist/event-list.mjs +0 -20
- package/dist/event-list.types-CkAAUqwW.d.mts +0 -13
- package/dist/event-list.types-CkAAUqwW.d.ts +0 -13
- package/dist/event-market-page.d.mts +0 -52
- package/dist/event-market-page.d.ts +0 -52
- package/dist/event-market-page.mjs +0 -28
- package/dist/hello-world.d.mts +0 -8
- package/dist/hello-world.d.ts +0 -8
- package/dist/hello-world.js +0 -92
- package/dist/hello-world.mjs +0 -8
- package/dist/home-page.js +0 -3842
- package/dist/home-page.mjs +0 -21
- package/dist/icon.d.mts +0 -193
- package/dist/icon.d.ts +0 -193
- package/dist/icon.js +0 -1465
- package/dist/loading-icon.d.mts +0 -14
- package/dist/loading-icon.d.ts +0 -14
- package/dist/loading-icon.js +0 -112
- package/dist/loading-icon.mjs +0 -8
- package/dist/market-details.d.mts +0 -73
- package/dist/market-details.d.ts +0 -73
- package/dist/market-details.mjs +0 -21
- package/dist/modal.d.mts +0 -66
- package/dist/modal.d.ts +0 -66
- package/dist/modal.js +0 -321
- package/dist/modal.mjs +0 -9
- package/dist/number-value.js +0 -67
- package/dist/number-value.mjs +0 -7
- package/dist/onboarding-modal.d.mts +0 -88
- package/dist/onboarding-modal.d.ts +0 -88
- package/dist/onboarding-modal.js +0 -2836
- package/dist/onboarding-modal.mjs +0 -24
- package/dist/place-order.mjs +0 -18
- package/dist/profile-modal.js +0 -2447
- package/dist/profile-modal.mjs +0 -14
- package/dist/registry-DfSCFAdC.d.mts +0 -178
- package/dist/registry-DfSCFAdC.d.ts +0 -178
- package/dist/search.d.mts +0 -51
- package/dist/search.d.ts +0 -51
- package/dist/search.js +0 -1954
- package/dist/search.mjs +0 -12
- package/dist/select.js +0 -1552
- package/dist/select.mjs +0 -11
- package/dist/settlement.js +0 -2445
- package/dist/settlement.mjs +0 -15
- package/dist/skeleton.js +0 -490
- package/dist/skeleton.mjs +0 -10
- package/dist/switch-button.js +0 -191
- package/dist/switch-button.mjs +0 -7
- package/dist/tabs.d.mts +0 -31
- package/dist/tabs.d.ts +0 -31
- package/dist/tabs.js +0 -2078
- package/dist/tabs.mjs +0 -12
- package/dist/types-BVj9ky9P.d.mts +0 -3
- package/dist/types-BVj9ky9P.d.ts +0 -3
- package/dist/typography.d.mts +0 -18
- package/dist/typography.d.ts +0 -18
- package/dist/typography.js +0 -93
- package/dist/typography.mjs +0 -9
- package/dist/user-profile-page.js +0 -3081
- package/dist/user-profile-page.mjs +0 -15
- package/dist/venue-logo.d.mts +0 -13
- package/dist/venue-logo.d.ts +0 -13
- package/dist/venue-logo.js +0 -323
- package/dist/venue-logo.mjs +0 -10
- package/dist/venue-logo.types-CGUc22ly.d.mts +0 -19
- package/dist/venue-logo.types-Dqr39S1-.d.ts +0 -19
- package/dist/withdraw-modal.js +0 -2449
- package/dist/withdraw-modal.mjs +0 -14
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Event } from "@agg-market/hooks";
|
|
2
|
+
import type { EventListItemVenueInfoMap } from "../item/event-list-item.types";
|
|
3
|
+
export type EventListItemDetailsEvent = Event;
|
|
4
|
+
export type EventListItemDetailsTimeRange = "1H" | "6H" | "1D" | "1W" | "1M" | "ALL";
|
|
5
|
+
export type EventListItemDetailsStat = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
delta?: string;
|
|
9
|
+
deltaTone?: "positive" | "negative" | "neutral";
|
|
10
|
+
};
|
|
11
|
+
export type EventListItemDetailsClassNames = Partial<{
|
|
12
|
+
root: string;
|
|
13
|
+
header: string;
|
|
14
|
+
title: string;
|
|
15
|
+
headerPills: string;
|
|
16
|
+
headerStats: string;
|
|
17
|
+
summary: string;
|
|
18
|
+
outcomeBadges: string;
|
|
19
|
+
segmentedControl: string;
|
|
20
|
+
chart: string;
|
|
21
|
+
footer: string;
|
|
22
|
+
timeRange: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type EventListItemDetailsBaseProps = {
|
|
25
|
+
title?: string;
|
|
26
|
+
image?: string | null;
|
|
27
|
+
showVenueLogo?: boolean;
|
|
28
|
+
classNames?: EventListItemDetailsClassNames;
|
|
29
|
+
venueInfo?: EventListItemVenueInfoMap;
|
|
30
|
+
detailsStats?: EventListItemDetailsStat[];
|
|
31
|
+
isLoading?: boolean;
|
|
32
|
+
ariaLabel?: string;
|
|
33
|
+
defaultTimeRange?: EventListItemDetailsTimeRange;
|
|
34
|
+
};
|
|
35
|
+
export type EventListItemDetailsLoadingProps = EventListItemDetailsBaseProps & {
|
|
36
|
+
isLoading: true;
|
|
37
|
+
event?: never;
|
|
38
|
+
eventId?: string;
|
|
39
|
+
};
|
|
40
|
+
export type EventListItemDetailsWithEventProps = EventListItemDetailsBaseProps & {
|
|
41
|
+
event: EventListItemDetailsEvent;
|
|
42
|
+
eventId?: string;
|
|
43
|
+
isLoading?: false;
|
|
44
|
+
};
|
|
45
|
+
export type EventListItemDetailsWithEventIdProps = EventListItemDetailsBaseProps & {
|
|
46
|
+
event?: never;
|
|
47
|
+
eventId: string;
|
|
48
|
+
isLoading?: false;
|
|
49
|
+
};
|
|
50
|
+
export type EventListItemDetailsProps = EventListItemDetailsLoadingProps | EventListItemDetailsWithEventProps | EventListItemDetailsWithEventIdProps;
|
|
51
|
+
export type EventListItemDetailsContentProps = EventListItemDetailsBaseProps & {
|
|
52
|
+
event: EventListItemDetailsEvent;
|
|
53
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Venue, VenueMarket, VenueMarketOutcome } from "@agg-market/hooks";
|
|
2
|
+
import type { EventListItemDetailsTimeRange } from "./event-list-item-details.types";
|
|
3
|
+
export type OutcomeByVenue = {
|
|
4
|
+
venue: VenueMarket["venue"];
|
|
5
|
+
market: VenueMarket;
|
|
6
|
+
outcome: VenueMarketOutcome;
|
|
7
|
+
};
|
|
8
|
+
export declare const isDateLikeLabel: (value: string) => boolean;
|
|
9
|
+
export declare const formatDateLabel: (value: string) => string;
|
|
10
|
+
export declare const formatXAxisDateLabel: (timestamp: number) => string;
|
|
11
|
+
export declare const getDefaultSelectedTimeRange: (value: EventListItemDetailsTimeRange | undefined) => EventListItemDetailsTimeRange;
|
|
12
|
+
export declare const getTimeWindowByRange: (range: EventListItemDetailsTimeRange) => {
|
|
13
|
+
startTs: number;
|
|
14
|
+
endTs: number;
|
|
15
|
+
intervalMinutes: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const resolveOutcomeLabels: (venueMarkets: VenueMarket[]) => string[];
|
|
18
|
+
export declare const resolveDefaultOutcomeLabel: (outcomeLabels: string[]) => string | undefined;
|
|
19
|
+
export declare const matchOutcomeByLabel: (outcome: VenueMarketOutcome, selectedOutcomeLabel: string) => boolean;
|
|
20
|
+
export declare const resolveOutcomesByVenue: (venueMarkets: VenueMarket[], selectedOutcomeLabel: string) => OutcomeByVenue[];
|
|
21
|
+
export declare const resolveOutcomePercentValue: (outcome: VenueMarketOutcome) => number | undefined;
|
|
22
|
+
export declare const buildPriceHistoryGroups: (selectedOutcomes: OutcomeByVenue[], fallbackMarketId?: string) => Array<{
|
|
23
|
+
venue: Venue;
|
|
24
|
+
venueMarketOutcomeIds: string[];
|
|
25
|
+
}>;
|
|
26
|
+
export declare const resolveSeriesColor: (venue: string, index: number) => string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Venue, VenueMarket, VenueMarketOutcome } from "@agg-market/hooks";
|
|
2
|
+
import type { EventListItemDetailsTimeRange } from "./event-list-item-details.types";
|
|
3
|
+
export type OutcomeByVenue = {
|
|
4
|
+
venue: VenueMarket["venue"];
|
|
5
|
+
market: VenueMarket;
|
|
6
|
+
outcome: VenueMarketOutcome;
|
|
7
|
+
};
|
|
8
|
+
export declare const isDateLikeLabel: (value: string) => boolean;
|
|
9
|
+
export declare const formatDateLabel: (value: string) => string;
|
|
10
|
+
export declare const formatXAxisDateLabel: (timestamp: number) => string;
|
|
11
|
+
export declare const getDefaultSelectedTimeRange: (value: EventListItemDetailsTimeRange | undefined) => EventListItemDetailsTimeRange;
|
|
12
|
+
export declare const getTimeWindowByRange: (range: EventListItemDetailsTimeRange) => {
|
|
13
|
+
startTs: number;
|
|
14
|
+
endTs: number;
|
|
15
|
+
intervalMinutes: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const resolveOutcomeLabels: (venueMarkets: VenueMarket[]) => string[];
|
|
18
|
+
export declare const resolveDefaultOutcomeLabel: (outcomeLabels: string[]) => string | undefined;
|
|
19
|
+
export declare const matchOutcomeByLabel: (outcome: VenueMarketOutcome, selectedOutcomeLabel: string) => boolean;
|
|
20
|
+
export declare const resolveOutcomesByVenue: (venueMarkets: VenueMarket[], selectedOutcomeLabel: string) => OutcomeByVenue[];
|
|
21
|
+
export declare const resolveOutcomePercentValue: (outcome: VenueMarketOutcome) => number | undefined;
|
|
22
|
+
export declare const buildPriceHistoryGroups: (selectedOutcomes: OutcomeByVenue[], fallbackMarketId?: string) => Array<{
|
|
23
|
+
venue: Venue;
|
|
24
|
+
venueMarketOutcomeIds: string[];
|
|
25
|
+
}>;
|
|
26
|
+
export declare const resolveSeriesColor: (venue: string, index: number) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventListItemDetailsProps } from "./event-list-item-details.types";
|
|
2
|
+
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
3
|
+
export declare const EventListItemDetails: {
|
|
4
|
+
(props: EventListItemDetailsProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventListItemDetailsProps } from "./event-list-item-details.types";
|
|
2
|
+
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
3
|
+
export declare const EventListItemDetails: {
|
|
4
|
+
(props: EventListItemDetailsProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { UseEventsOptions } from "@agg-market/hooks";
|
|
2
|
+
import type { IconName } from "../../primitives/icon";
|
|
3
|
+
import type { VenueLogoName } from "../../primitives/venue-logo";
|
|
4
|
+
export type EventListTabValue = "matched" | "polymarket" | "kalshi" | (string & {});
|
|
5
|
+
export type EventListTab = {
|
|
6
|
+
value: EventListTabValue;
|
|
7
|
+
label: string;
|
|
8
|
+
iconName?: IconName;
|
|
9
|
+
venueLogo?: VenueLogoName;
|
|
10
|
+
venues?: UseEventsOptions["venues"];
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type EventListProps = {
|
|
14
|
+
title: string;
|
|
15
|
+
maxItemsPerRow?: number;
|
|
16
|
+
limit?: number;
|
|
17
|
+
maxVisibleItems?: number;
|
|
18
|
+
showVenueLogo?: boolean;
|
|
19
|
+
search?: UseEventsOptions["search"];
|
|
20
|
+
categoryIds?: UseEventsOptions["categoryIds"];
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { UseEventsOptions } from "@agg-market/hooks";
|
|
2
|
+
import type { IconName } from "../../primitives/icon";
|
|
3
|
+
import type { VenueLogoName } from "../../primitives/venue-logo";
|
|
4
|
+
export type EventListTabValue = "matched" | "polymarket" | "kalshi" | (string & {});
|
|
5
|
+
export type EventListTab = {
|
|
6
|
+
value: EventListTabValue;
|
|
7
|
+
label: string;
|
|
8
|
+
iconName?: IconName;
|
|
9
|
+
venueLogo?: VenueLogoName;
|
|
10
|
+
venues?: UseEventsOptions["venues"];
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type EventListProps = {
|
|
14
|
+
title: string;
|
|
15
|
+
maxItemsPerRow?: number;
|
|
16
|
+
limit?: number;
|
|
17
|
+
maxVisibleItems?: number;
|
|
18
|
+
showVenueLogo?: boolean;
|
|
19
|
+
search?: UseEventsOptions["search"];
|
|
20
|
+
categoryIds?: UseEventsOptions["categoryIds"];
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Event, UseEventsOptions } from "@agg-market/hooks";
|
|
2
|
+
import type { EventListItemEvent } from "../item";
|
|
3
|
+
import type { EventListTab, EventListTabValue } from "./event-list.types";
|
|
4
|
+
export declare const mapEventToEventListItemEvent: (event: Event) => EventListItemEvent | null;
|
|
5
|
+
export declare const filterEventsByTabValue: (events: Event[], _tabValue: EventListTabValue) => Event[];
|
|
6
|
+
export declare const resolveTabVenus: (tab: EventListTab | undefined) => UseEventsOptions["venues"] | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Event, UseEventsOptions } from "@agg-market/hooks";
|
|
2
|
+
import type { EventListItemEvent } from "../item";
|
|
3
|
+
import type { EventListTab, EventListTabValue } from "./event-list.types";
|
|
4
|
+
export declare const mapEventToEventListItemEvent: (event: Event) => EventListItemEvent | null;
|
|
5
|
+
export declare const filterEventsByTabValue: (events: Event[], _tabValue: EventListTabValue) => Event[];
|
|
6
|
+
export declare const resolveTabVenus: (tab: EventListTab | undefined) => UseEventsOptions["venues"] | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventListProps } from "./event-list.types";
|
|
2
|
+
export type { EventListProps } from "./event-list.types";
|
|
3
|
+
export declare const EventList: {
|
|
4
|
+
({ title, maxItemsPerRow, limit, maxVisibleItems, showVenueLogo, search, categoryIds, }: EventListProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventListProps } from "./event-list.types";
|
|
2
|
+
export type { EventListProps } from "./event-list.types";
|
|
3
|
+
export declare const EventList: {
|
|
4
|
+
({ title, maxItemsPerRow, limit, maxVisibleItems, showVenueLogo, search, categoryIds, }: EventListProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MarketDetailsProps } from "./market-details.types";
|
|
2
|
+
export type { MarketDetailsClassNames, MarketDetailsContentProps, MarketDetailsMetaRow, MarketDetailsOrderBookRow, MarketDetailsProps, MarketDetailsTab, } from "./market-details.types";
|
|
3
|
+
export declare const MarketDetails: {
|
|
4
|
+
(props: MarketDetailsProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MarketDetailsProps } from "./market-details.types";
|
|
2
|
+
export type { MarketDetailsClassNames, MarketDetailsContentProps, MarketDetailsMetaRow, MarketDetailsOrderBookRow, MarketDetailsProps, MarketDetailsTab, } from "./market-details.types";
|
|
3
|
+
export declare const MarketDetails: {
|
|
4
|
+
(props: MarketDetailsProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AggUiLabels } from "@agg-market/hooks";
|
|
2
|
+
import type { MarketDetailsTab } from "./market-details.types";
|
|
3
|
+
export declare const marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg border border-agg-separator bg-agg-secondary text-agg-foreground shadow-none hover:shadow-none";
|
|
4
|
+
export declare const getMarketDetailsTabs: (labels: AggUiLabels) => {
|
|
5
|
+
value: MarketDetailsTab;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const marketDetailsDefaultIsOpened = false;
|
|
9
|
+
export declare const orderBookRowLimitDefault = 4;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AggUiLabels } from "@agg-market/hooks";
|
|
2
|
+
import type { MarketDetailsTab } from "./market-details.types";
|
|
3
|
+
export declare const marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg border border-agg-separator bg-agg-secondary text-agg-foreground shadow-none hover:shadow-none";
|
|
4
|
+
export declare const getMarketDetailsTabs: (labels: AggUiLabels) => {
|
|
5
|
+
value: MarketDetailsTab;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const marketDetailsDefaultIsOpened = false;
|
|
9
|
+
export declare const orderBookRowLimitDefault = 4;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Event } from "@agg-market/hooks";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { VenueLogoName } from "../../primitives/venue-logo/venue-logo.types";
|
|
4
|
+
import type { EventListItemDetailsTimeRange } from "../item-details/event-list-item-details.types";
|
|
5
|
+
export type MarketDetailsTab = "order-book" | "graph" | "other";
|
|
6
|
+
export type MarketDetailsClassNames = Partial<{
|
|
7
|
+
root: string;
|
|
8
|
+
header: string;
|
|
9
|
+
tabs: string;
|
|
10
|
+
content: string;
|
|
11
|
+
orderBook: string;
|
|
12
|
+
graph: string;
|
|
13
|
+
footer: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type MarketDetailsBaseProps = {
|
|
16
|
+
marketId?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
image?: string | null;
|
|
19
|
+
defaultIsOpened?: boolean;
|
|
20
|
+
isOpened?: boolean;
|
|
21
|
+
onOpenChange?: (isOpened: boolean) => void;
|
|
22
|
+
defaultTab?: MarketDetailsTab;
|
|
23
|
+
defaultOutcomeLabel?: string;
|
|
24
|
+
defaultTimeRange?: EventListItemDetailsTimeRange;
|
|
25
|
+
orderBookDepth?: number;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
classNames?: MarketDetailsClassNames;
|
|
28
|
+
otherContent?: React.ReactNode;
|
|
29
|
+
isLoading?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type MarketDetailsLoadingProps = MarketDetailsBaseProps & {
|
|
32
|
+
isLoading: true;
|
|
33
|
+
event?: never;
|
|
34
|
+
eventId?: string;
|
|
35
|
+
};
|
|
36
|
+
export type MarketDetailsWithEventProps = MarketDetailsBaseProps & {
|
|
37
|
+
event: Event;
|
|
38
|
+
eventId?: string;
|
|
39
|
+
isLoading?: false;
|
|
40
|
+
};
|
|
41
|
+
export type MarketDetailsWithEventIdProps = MarketDetailsBaseProps & {
|
|
42
|
+
event?: never;
|
|
43
|
+
eventId: string;
|
|
44
|
+
isLoading?: false;
|
|
45
|
+
};
|
|
46
|
+
export type MarketDetailsProps = MarketDetailsLoadingProps | MarketDetailsWithEventProps | MarketDetailsWithEventIdProps;
|
|
47
|
+
export type MarketDetailsContentProps = MarketDetailsBaseProps & {
|
|
48
|
+
event: Event;
|
|
49
|
+
};
|
|
50
|
+
export type MarketDetailsOrderBookTone = "positive" | "negative";
|
|
51
|
+
export type MarketDetailsOrderBookRow = {
|
|
52
|
+
id: string;
|
|
53
|
+
venue: VenueLogoName;
|
|
54
|
+
price: number;
|
|
55
|
+
size: number;
|
|
56
|
+
total: number;
|
|
57
|
+
tone: MarketDetailsOrderBookTone;
|
|
58
|
+
barScale: number;
|
|
59
|
+
};
|
|
60
|
+
export type MarketDetailsMetaRow = {
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Event } from "@agg-market/hooks";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { VenueLogoName } from "../../primitives/venue-logo/venue-logo.types";
|
|
4
|
+
import type { EventListItemDetailsTimeRange } from "../item-details/event-list-item-details.types";
|
|
5
|
+
export type MarketDetailsTab = "order-book" | "graph" | "other";
|
|
6
|
+
export type MarketDetailsClassNames = Partial<{
|
|
7
|
+
root: string;
|
|
8
|
+
header: string;
|
|
9
|
+
tabs: string;
|
|
10
|
+
content: string;
|
|
11
|
+
orderBook: string;
|
|
12
|
+
graph: string;
|
|
13
|
+
footer: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type MarketDetailsBaseProps = {
|
|
16
|
+
marketId?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
image?: string | null;
|
|
19
|
+
defaultIsOpened?: boolean;
|
|
20
|
+
isOpened?: boolean;
|
|
21
|
+
onOpenChange?: (isOpened: boolean) => void;
|
|
22
|
+
defaultTab?: MarketDetailsTab;
|
|
23
|
+
defaultOutcomeLabel?: string;
|
|
24
|
+
defaultTimeRange?: EventListItemDetailsTimeRange;
|
|
25
|
+
orderBookDepth?: number;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
classNames?: MarketDetailsClassNames;
|
|
28
|
+
otherContent?: React.ReactNode;
|
|
29
|
+
isLoading?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type MarketDetailsLoadingProps = MarketDetailsBaseProps & {
|
|
32
|
+
isLoading: true;
|
|
33
|
+
event?: never;
|
|
34
|
+
eventId?: string;
|
|
35
|
+
};
|
|
36
|
+
export type MarketDetailsWithEventProps = MarketDetailsBaseProps & {
|
|
37
|
+
event: Event;
|
|
38
|
+
eventId?: string;
|
|
39
|
+
isLoading?: false;
|
|
40
|
+
};
|
|
41
|
+
export type MarketDetailsWithEventIdProps = MarketDetailsBaseProps & {
|
|
42
|
+
event?: never;
|
|
43
|
+
eventId: string;
|
|
44
|
+
isLoading?: false;
|
|
45
|
+
};
|
|
46
|
+
export type MarketDetailsProps = MarketDetailsLoadingProps | MarketDetailsWithEventProps | MarketDetailsWithEventIdProps;
|
|
47
|
+
export type MarketDetailsContentProps = MarketDetailsBaseProps & {
|
|
48
|
+
event: Event;
|
|
49
|
+
};
|
|
50
|
+
export type MarketDetailsOrderBookTone = "positive" | "negative";
|
|
51
|
+
export type MarketDetailsOrderBookRow = {
|
|
52
|
+
id: string;
|
|
53
|
+
venue: VenueLogoName;
|
|
54
|
+
price: number;
|
|
55
|
+
size: number;
|
|
56
|
+
total: number;
|
|
57
|
+
tone: MarketDetailsOrderBookTone;
|
|
58
|
+
barScale: number;
|
|
59
|
+
};
|
|
60
|
+
export type MarketDetailsMetaRow = {
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { AggUiLabels, OrderbookResult, Event, VenueMarket } from "@agg-market/hooks";
|
|
2
|
+
import { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveOutcomesByVenue, resolveSeriesColor } from "../item-details/event-list-item-details.utils";
|
|
3
|
+
import { resolveOutcomeTitle } from "../item/event-list-item.utils";
|
|
4
|
+
import type { MarketDetailsMetaRow, MarketDetailsOrderBookRow, MarketDetailsOrderBookTone, MarketDetailsTab } from "./market-details.types";
|
|
5
|
+
export declare const resolveInitialTab: (defaultTab: MarketDetailsTab | undefined) => MarketDetailsTab;
|
|
6
|
+
export declare const resolveMarket: (event: Event, marketId: string | undefined) => Event["markets"][number] | undefined;
|
|
7
|
+
export declare const resolveDisplayOutcomeLabels: (labels: string[]) => string[];
|
|
8
|
+
export declare const resolveInitialOutcomeLabel: (labels: string[], defaultOutcomeLabel: string | undefined) => string | undefined;
|
|
9
|
+
export declare const resolveAverageProbabilityByLabel: (venueMarkets: VenueMarket[], labels: string[]) => Map<string, number | undefined>;
|
|
10
|
+
export declare const formatProbabilityPercent: (value: number | undefined) => string;
|
|
11
|
+
export declare const formatProbabilityCents: (value: number | undefined) => string;
|
|
12
|
+
export declare const resolveOutcomeTone: (label: string, index: number) => MarketDetailsOrderBookTone;
|
|
13
|
+
export declare const resolveHeaderOutcomeItems: (venueMarkets: VenueMarket[], defaultOutcomeLabel: string | undefined) => {
|
|
14
|
+
label: string;
|
|
15
|
+
probability: number | undefined;
|
|
16
|
+
tone: MarketDetailsOrderBookTone;
|
|
17
|
+
isDefault: boolean;
|
|
18
|
+
}[];
|
|
19
|
+
export declare const resolveSubtitle: ({ venueMarkets, volume, formatCompactCurrency, labels, }: {
|
|
20
|
+
venueMarkets: VenueMarket[];
|
|
21
|
+
volume: number | undefined;
|
|
22
|
+
formatCompactCurrency: (value: number) => string;
|
|
23
|
+
labels: AggUiLabels;
|
|
24
|
+
}) => string;
|
|
25
|
+
export declare const resolveOrderBookRows: ({ data, side, }: {
|
|
26
|
+
data: OrderbookResult[] | undefined;
|
|
27
|
+
side: "asks" | "bids";
|
|
28
|
+
}) => MarketDetailsOrderBookRow[];
|
|
29
|
+
export declare const resolveOtherTabRows: (market: Event["markets"][number], labels: AggUiLabels) => MarketDetailsMetaRow[];
|
|
30
|
+
export declare const buildMarketDetailsModel: ({ event, marketId, title, image, formatCompactCurrency, labels, }: {
|
|
31
|
+
event: Event;
|
|
32
|
+
marketId: string | undefined;
|
|
33
|
+
title: string | undefined;
|
|
34
|
+
image: string | null | undefined;
|
|
35
|
+
formatCompactCurrency: (value: number) => string;
|
|
36
|
+
labels: AggUiLabels;
|
|
37
|
+
}) => {
|
|
38
|
+
market: any;
|
|
39
|
+
primaryVenueMarket: any;
|
|
40
|
+
title: string;
|
|
41
|
+
image: string | undefined;
|
|
42
|
+
subtitle: string;
|
|
43
|
+
outcomeLabels: string[];
|
|
44
|
+
probabilityByLabel: Map<string, number | undefined>;
|
|
45
|
+
} | undefined;
|
|
46
|
+
export { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveOutcomesByVenue, resolveSeriesColor, resolveOutcomeTitle, };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { AggUiLabels, OrderbookResult, Event, VenueMarket } from "@agg-market/hooks";
|
|
2
|
+
import { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveOutcomesByVenue, resolveSeriesColor } from "../item-details/event-list-item-details.utils";
|
|
3
|
+
import { resolveOutcomeTitle } from "../item/event-list-item.utils";
|
|
4
|
+
import type { MarketDetailsMetaRow, MarketDetailsOrderBookRow, MarketDetailsOrderBookTone, MarketDetailsTab } from "./market-details.types";
|
|
5
|
+
export declare const resolveInitialTab: (defaultTab: MarketDetailsTab | undefined) => MarketDetailsTab;
|
|
6
|
+
export declare const resolveMarket: (event: Event, marketId: string | undefined) => Event["markets"][number] | undefined;
|
|
7
|
+
export declare const resolveDisplayOutcomeLabels: (labels: string[]) => string[];
|
|
8
|
+
export declare const resolveInitialOutcomeLabel: (labels: string[], defaultOutcomeLabel: string | undefined) => string | undefined;
|
|
9
|
+
export declare const resolveAverageProbabilityByLabel: (venueMarkets: VenueMarket[], labels: string[]) => Map<string, number | undefined>;
|
|
10
|
+
export declare const formatProbabilityPercent: (value: number | undefined) => string;
|
|
11
|
+
export declare const formatProbabilityCents: (value: number | undefined) => string;
|
|
12
|
+
export declare const resolveOutcomeTone: (label: string, index: number) => MarketDetailsOrderBookTone;
|
|
13
|
+
export declare const resolveHeaderOutcomeItems: (venueMarkets: VenueMarket[], defaultOutcomeLabel: string | undefined) => {
|
|
14
|
+
label: string;
|
|
15
|
+
probability: number | undefined;
|
|
16
|
+
tone: MarketDetailsOrderBookTone;
|
|
17
|
+
isDefault: boolean;
|
|
18
|
+
}[];
|
|
19
|
+
export declare const resolveSubtitle: ({ venueMarkets, volume, formatCompactCurrency, labels, }: {
|
|
20
|
+
venueMarkets: VenueMarket[];
|
|
21
|
+
volume: number | undefined;
|
|
22
|
+
formatCompactCurrency: (value: number) => string;
|
|
23
|
+
labels: AggUiLabels;
|
|
24
|
+
}) => string;
|
|
25
|
+
export declare const resolveOrderBookRows: ({ data, side, }: {
|
|
26
|
+
data: OrderbookResult[] | undefined;
|
|
27
|
+
side: "asks" | "bids";
|
|
28
|
+
}) => MarketDetailsOrderBookRow[];
|
|
29
|
+
export declare const resolveOtherTabRows: (market: Event["markets"][number], labels: AggUiLabels) => MarketDetailsMetaRow[];
|
|
30
|
+
export declare const buildMarketDetailsModel: ({ event, marketId, title, image, formatCompactCurrency, labels, }: {
|
|
31
|
+
event: Event;
|
|
32
|
+
marketId: string | undefined;
|
|
33
|
+
title: string | undefined;
|
|
34
|
+
image: string | null | undefined;
|
|
35
|
+
formatCompactCurrency: (value: number) => string;
|
|
36
|
+
labels: AggUiLabels;
|
|
37
|
+
}) => {
|
|
38
|
+
market: any;
|
|
39
|
+
primaryVenueMarket: any;
|
|
40
|
+
title: string;
|
|
41
|
+
image: string | undefined;
|
|
42
|
+
subtitle: string;
|
|
43
|
+
outcomeLabels: string[];
|
|
44
|
+
probabilityByLabel: Map<string, number | undefined>;
|
|
45
|
+
} | undefined;
|
|
46
|
+
export { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveOutcomesByVenue, resolveSeriesColor, resolveOutcomeTitle, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./primitives";
|
|
2
|
+
export * from "./auth";
|
|
3
|
+
export * from "./events";
|
|
4
|
+
export * from "./pages";
|
|
5
|
+
export * from "./modals";
|
|
6
|
+
export * from "./trading";
|
|
7
|
+
export * from "./constants";
|
|
8
|
+
export * from "./shared/utils";
|
|
9
|
+
export type { AvailableSizes } from "./shared/types";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./primitives";
|
|
2
|
+
export * from "./auth";
|
|
3
|
+
export * from "./events";
|
|
4
|
+
export * from "./pages";
|
|
5
|
+
export * from "./modals";
|
|
6
|
+
export * from "./trading";
|
|
7
|
+
export * from "./constants";
|
|
8
|
+
export * from "./shared/utils";
|
|
9
|
+
export type { AvailableSizes } from "./shared/types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OnboardingModalProps } from "./onboarding-modal.types";
|
|
2
|
+
export type { OnboardingModalProps, OnboardingProfileData, HowItWorksIcons, HowItWorksStepProps, ProfileSetupStepProps, ConnectAccountsStepProps, ConnectKalshiModalProps, ConnectOnchainModalProps, KalshiCredentials, ConnectionState, } from "./onboarding-modal.types";
|
|
3
|
+
export { HowItWorksStep } from "./steps/how-it-works";
|
|
4
|
+
export { ProfileSetupStep } from "./steps/profile-setup";
|
|
5
|
+
export { ConnectAccountsStep } from "./steps/connect-accounts";
|
|
6
|
+
export { ConnectKalshiModal } from "./steps/connect-kalshi-modal";
|
|
7
|
+
export { ConnectOnchainModal } from "./steps/connect-onchain-modal";
|
|
8
|
+
export declare const OnboardingModal: {
|
|
9
|
+
({ open, onOpenChange, onProfileSubmit, onConnectOnchain, onConnectKalshi, onComplete, howItWorksIcons, connectedOnchain, connectedKalshi, }: OnboardingModalProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OnboardingModalProps } from "./onboarding-modal.types";
|
|
2
|
+
export type { OnboardingModalProps, OnboardingProfileData, HowItWorksIcons, HowItWorksStepProps, ProfileSetupStepProps, ConnectAccountsStepProps, ConnectKalshiModalProps, ConnectOnchainModalProps, KalshiCredentials, ConnectionState, } from "./onboarding-modal.types";
|
|
3
|
+
export { HowItWorksStep } from "./steps/how-it-works";
|
|
4
|
+
export { ProfileSetupStep } from "./steps/profile-setup";
|
|
5
|
+
export { ConnectAccountsStep } from "./steps/connect-accounts";
|
|
6
|
+
export { ConnectKalshiModal } from "./steps/connect-kalshi-modal";
|
|
7
|
+
export { ConnectOnchainModal } from "./steps/connect-onchain-modal";
|
|
8
|
+
export declare const OnboardingModal: {
|
|
9
|
+
({ open, onOpenChange, onProfileSubmit, onConnectOnchain, onConnectKalshi, onComplete, howItWorksIcons, connectedOnchain, connectedKalshi, }: OnboardingModalProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VenueLogoName } from "../primitives/venue-logo";
|
|
2
|
+
import type { HowItWorksIcons } from "./onboarding-modal.types";
|
|
3
|
+
export type FeatureKey = keyof HowItWorksIcons;
|
|
4
|
+
export declare const HOW_IT_WORKS_FEATURE_KEYS: FeatureKey[];
|
|
5
|
+
export declare const ONBOARDING_STEPS: {
|
|
6
|
+
readonly HOW_IT_WORKS: 0;
|
|
7
|
+
readonly PROFILE_SETUP: 1;
|
|
8
|
+
readonly CONNECT_ACCOUNTS: 2;
|
|
9
|
+
};
|
|
10
|
+
export declare const ONCHAIN_VENUES: VenueLogoName[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VenueLogoName } from "../primitives/venue-logo";
|
|
2
|
+
import type { HowItWorksIcons } from "./onboarding-modal.types";
|
|
3
|
+
export type FeatureKey = keyof HowItWorksIcons;
|
|
4
|
+
export declare const HOW_IT_WORKS_FEATURE_KEYS: FeatureKey[];
|
|
5
|
+
export declare const ONBOARDING_STEPS: {
|
|
6
|
+
readonly HOW_IT_WORKS: 0;
|
|
7
|
+
readonly PROFILE_SETUP: 1;
|
|
8
|
+
readonly CONNECT_ACCOUNTS: 2;
|
|
9
|
+
};
|
|
10
|
+
export declare const ONCHAIN_VENUES: VenueLogoName[];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface OnboardingProfileData {
|
|
3
|
+
username: string;
|
|
4
|
+
avatarFile?: File;
|
|
5
|
+
avatarPreview?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface HowItWorksIcons {
|
|
8
|
+
createAccount?: ReactNode;
|
|
9
|
+
linkAccounts?: ReactNode;
|
|
10
|
+
bestPrices?: ReactNode;
|
|
11
|
+
stayInControl?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/** Connection state for a venue card. */
|
|
14
|
+
export type ConnectionState = "idle" | "connecting" | "connected" | "error";
|
|
15
|
+
export interface OnboardingModalProps {
|
|
16
|
+
open: boolean;
|
|
17
|
+
onOpenChange: (open: boolean) => void;
|
|
18
|
+
onProfileSubmit?: (data: OnboardingProfileData) => void;
|
|
19
|
+
/** Called when the user clicks "Connect" on the onchain card. Should resolve on success, reject/throw on failure. */
|
|
20
|
+
onConnectOnchain?: () => Promise<void>;
|
|
21
|
+
/** Called when the user submits Kalshi credentials. Should resolve on success, reject/throw on failure. */
|
|
22
|
+
onConnectKalshi?: (credentials: KalshiCredentials) => Promise<void>;
|
|
23
|
+
onComplete?: () => void;
|
|
24
|
+
howItWorksIcons?: HowItWorksIcons;
|
|
25
|
+
connectedOnchain?: boolean;
|
|
26
|
+
connectedKalshi?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface KalshiCredentials {
|
|
29
|
+
apiKeyId: string;
|
|
30
|
+
privateKey: string;
|
|
31
|
+
}
|
|
32
|
+
export interface HowItWorksStepProps {
|
|
33
|
+
onContinue: () => void;
|
|
34
|
+
icons?: HowItWorksIcons;
|
|
35
|
+
}
|
|
36
|
+
export interface ProfileSetupStepProps {
|
|
37
|
+
onContinue: (data: OnboardingProfileData) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface ConnectAccountsStepProps {
|
|
40
|
+
onConnectOnchain?: () => void;
|
|
41
|
+
onConnectKalshi?: () => void;
|
|
42
|
+
onContinue: () => void;
|
|
43
|
+
connectedOnchain?: boolean;
|
|
44
|
+
connectedKalshi?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface ConnectOnchainModalProps {
|
|
47
|
+
open: boolean;
|
|
48
|
+
onOpenChange: (open: boolean) => void;
|
|
49
|
+
onConnect: () => Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
export interface ConnectKalshiModalProps {
|
|
52
|
+
open: boolean;
|
|
53
|
+
onOpenChange: (open: boolean) => void;
|
|
54
|
+
onVerify: (credentials: KalshiCredentials) => Promise<void>;
|
|
55
|
+
}
|