be-components 7.4.7 → 7.5.1
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/lib/commonjs/ApiOverrides/index.js +4 -0
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/BetRouter/api/index.js +884 -0
- package/lib/commonjs/BetRouter/api/index.js.map +1 -0
- package/lib/commonjs/BetRouter/api/types.js +2 -0
- package/lib/commonjs/BetRouter/api/types.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js +592 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js +51 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js +550 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js +320 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js +666 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js +193 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js +332 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js +545 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js +489 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js +229 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js +262 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js +380 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js +814 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js +895 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js +2844 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js +378 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js +795 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/commonjs/BetRouter/index.js +411 -0
- package/lib/commonjs/BetRouter/index.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js +312 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js +271 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js +435 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js +293 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/commonjs/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/commonjs/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/commonjs/BetRouter/types/README.md +249 -0
- package/lib/commonjs/BetRouter/types/accounts.js +2 -0
- package/lib/commonjs/BetRouter/types/accounts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js +776 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/config.js +2 -0
- package/lib/commonjs/BetRouter/types/config.js.map +1 -0
- package/lib/commonjs/BetRouter/types/contests.js +2 -0
- package/lib/commonjs/BetRouter/types/contests.js.map +1 -0
- package/lib/commonjs/BetRouter/types/credentials.js +90 -0
- package/lib/commonjs/BetRouter/types/credentials.js.map +1 -0
- package/lib/commonjs/BetRouter/types/index.js +149 -0
- package/lib/commonjs/BetRouter/types/index.js.map +1 -0
- package/lib/commonjs/BetRouter/types/jobs.js +2 -0
- package/lib/commonjs/BetRouter/types/jobs.js.map +1 -0
- package/lib/commonjs/BetRouter/types/leagues.js +2 -0
- package/lib/commonjs/BetRouter/types/leagues.js.map +1 -0
- package/lib/commonjs/BetRouter/types/liquidity.js +2 -0
- package/lib/commonjs/BetRouter/types/liquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/types/markets.js +2 -0
- package/lib/commonjs/BetRouter/types/markets.js.map +1 -0
- package/lib/commonjs/BetRouter/types/opportunities.js +6 -0
- package/lib/commonjs/BetRouter/types/opportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/types/orders.js +2 -0
- package/lib/commonjs/BetRouter/types/orders.js.map +1 -0
- package/lib/commonjs/BetRouter/types/participants.js +2 -0
- package/lib/commonjs/BetRouter/types/participants.js.map +1 -0
- package/lib/commonjs/BetRouter/types/partners.js +2 -0
- package/lib/commonjs/BetRouter/types/partners.js.map +1 -0
- package/lib/commonjs/Charts/README.md +310 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js +406 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js +285 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js +504 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/commonjs/Charts/index.js +126 -0
- package/lib/commonjs/Charts/index.js.map +1 -0
- package/lib/commonjs/Charts/themes/chartTheme.js +141 -0
- package/lib/commonjs/Charts/themes/chartTheme.js.map +1 -0
- package/lib/commonjs/Charts/types.js +2 -0
- package/lib/commonjs/Charts/types.js.map +1 -0
- package/lib/commonjs/Charts/utils/formatters.js +194 -0
- package/lib/commonjs/Charts/utils/formatters.js.map +1 -0
- package/lib/commonjs/Components/Dropdown.js +5 -3
- package/lib/commonjs/Components/Dropdown.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +24 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/index.js +34 -0
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/LocationTracker/LocationStatus.js +5 -2
- package/lib/commonjs/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/commonjs/LocationTracker/api/index.js +2 -2
- package/lib/commonjs/LocationTracker/api/index.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js +16 -0
- package/lib/commonjs/types.d.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +4 -0
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/BetRouter/api/index.js +873 -0
- package/lib/module/BetRouter/api/index.js.map +1 -0
- package/lib/module/BetRouter/api/types.js +2 -0
- package/lib/module/BetRouter/api/types.js.map +1 -0
- package/lib/module/BetRouter/components/AccountManager.js +584 -0
- package/lib/module/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/module/BetRouter/components/AdminPortal.js +43 -0
- package/lib/module/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js +542 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js +313 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js +658 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/module/BetRouter/components/ContestSelector.js +185 -0
- package/lib/module/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.js +324 -0
- package/lib/module/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js +538 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js +481 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js +222 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js +255 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js +372 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js +806 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/JobManager.js +888 -0
- package/lib/module/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js +2836 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js +372 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js +787 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/module/BetRouter/index.js +399 -0
- package/lib/module/BetRouter/index.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js +304 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js +263 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js +427 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js +285 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/module/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/module/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/module/BetRouter/types/README.md +249 -0
- package/lib/module/BetRouter/types/accounts.js +2 -0
- package/lib/module/BetRouter/types/accounts.js.map +1 -0
- package/lib/module/BetRouter/types/api-contracts.js +770 -0
- package/lib/module/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/module/BetRouter/types/config.js +2 -0
- package/lib/module/BetRouter/types/config.js.map +1 -0
- package/lib/module/BetRouter/types/contests.js +2 -0
- package/lib/module/BetRouter/types/contests.js.map +1 -0
- package/lib/module/BetRouter/types/credentials.js +78 -0
- package/lib/module/BetRouter/types/credentials.js.map +1 -0
- package/lib/module/BetRouter/types/index.js +17 -0
- package/lib/module/BetRouter/types/index.js.map +1 -0
- package/lib/module/BetRouter/types/jobs.js +2 -0
- package/lib/module/BetRouter/types/jobs.js.map +1 -0
- package/lib/module/BetRouter/types/leagues.js +2 -0
- package/lib/module/BetRouter/types/leagues.js.map +1 -0
- package/lib/module/BetRouter/types/liquidity.js +2 -0
- package/lib/module/BetRouter/types/liquidity.js.map +1 -0
- package/lib/module/BetRouter/types/markets.js +2 -0
- package/lib/module/BetRouter/types/markets.js.map +1 -0
- package/lib/module/BetRouter/types/opportunities.js +2 -0
- package/lib/module/BetRouter/types/opportunities.js.map +1 -0
- package/lib/module/BetRouter/types/orders.js +2 -0
- package/lib/module/BetRouter/types/orders.js.map +1 -0
- package/lib/module/BetRouter/types/participants.js +2 -0
- package/lib/module/BetRouter/types/participants.js.map +1 -0
- package/lib/module/BetRouter/types/partners.js +2 -0
- package/lib/module/BetRouter/types/partners.js.map +1 -0
- package/lib/module/Charts/README.md +310 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js +400 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/module/Charts/components/BaseLineChart.js +281 -0
- package/lib/module/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/module/Charts/components/LivePriceChart.js +497 -0
- package/lib/module/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/module/Charts/index.js +36 -0
- package/lib/module/Charts/index.js.map +1 -0
- package/lib/module/Charts/themes/chartTheme.js +134 -0
- package/lib/module/Charts/themes/chartTheme.js.map +1 -0
- package/lib/module/Charts/types.js +2 -0
- package/lib/module/Charts/types.js.map +1 -0
- package/lib/module/Charts/utils/formatters.js +178 -0
- package/lib/module/Charts/utils/formatters.js.map +1 -0
- package/lib/module/Components/Dropdown.js +5 -3
- package/lib/module/Components/Dropdown.js.map +1 -1
- package/lib/module/Components/Icons.js +24 -1
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/index.js +3 -0
- package/lib/module/Components/index.js.map +1 -1
- package/lib/module/LocationTracker/LocationStatus.js +5 -2
- package/lib/module/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/module/LocationTracker/api/index.js +2 -2
- package/lib/module/LocationTracker/api/index.js.map +1 -1
- package/lib/module/index.js +5 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js +16 -0
- package/lib/module/types.d.js.map +1 -1
- package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts +109 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts +10 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts +7 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts +743 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts +56 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts +87 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts +45 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts +95 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts +106 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts +24 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +6 -1
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts +108 -0
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts +15 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts +12 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts +742 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts +55 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts +81 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts +41 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/index.d.ts +6 -0
- package/lib/typescript/lib/module/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts +102 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/module/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts +14 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/index.d.ts +1 -0
- package/lib/typescript/lib/module/Components/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/index.d.ts +3 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/BetRouter/api/index.d.ts +115 -0
- package/lib/typescript/src/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts +24 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts +19 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts +13 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts +16 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts +21 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts +20 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts +12 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/index.d.ts +16 -0
- package/lib/typescript/src/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts +19 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts +1071 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts +12 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts +24 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts +35 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts +26 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts +87 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts +88 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts +33 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts +11 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts +117 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts +40 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts +13 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/index.d.ts +28 -0
- package/lib/typescript/src/Charts/index.d.ts.map +1 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts +78 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/src/Charts/types.d.ts +155 -0
- package/lib/typescript/src/Charts/types.d.ts.map +1 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts +66 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/src/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/index.d.ts +1 -0
- package/lib/typescript/src/Components/index.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts +3 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +4 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/ApiOverrides/index.ts +4 -0
- package/src/BetRouter/api/index.ts +854 -0
- package/src/BetRouter/api/types.ts +0 -0
- package/src/BetRouter/components/AccountManager.tsx +533 -0
- package/src/BetRouter/components/AdminPortal.tsx +44 -0
- package/src/BetRouter/components/BuyOpportunities.tsx +491 -0
- package/src/BetRouter/components/BuyOpportunityCard.tsx +331 -0
- package/src/BetRouter/components/ContestLiquidity.tsx +613 -0
- package/src/BetRouter/components/ContestSelector.tsx +179 -0
- package/src/BetRouter/components/MyOpportunities.tsx +279 -0
- package/src/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/src/BetRouter/components/OpportunityDetailModal.tsx +360 -0
- package/src/BetRouter/components/OpportunityHistory.tsx +408 -0
- package/src/BetRouter/components/PartnerCredentials.tsx +212 -0
- package/src/BetRouter/components/PlacedOpportunityModal.tsx +192 -0
- package/src/BetRouter/components/admin/AutoFillView.tsx +275 -0
- package/src/BetRouter/components/admin/ConfigManager.tsx +596 -0
- package/src/BetRouter/components/admin/JobManager.tsx +758 -0
- package/src/BetRouter/components/admin/LeagueContests.tsx +2443 -0
- package/src/BetRouter/components/admin/LeagueInfo.tsx +253 -0
- package/src/BetRouter/components/admin/LeagueParticipants.tsx +662 -0
- package/src/BetRouter/index.tsx +453 -0
- package/src/BetRouter/layouts/DesktopAdminLayout.tsx +348 -0
- package/src/BetRouter/layouts/DesktopLayout.tsx +292 -0
- package/src/BetRouter/layouts/MobileAdminLayout.tsx +387 -0
- package/src/BetRouter/layouts/MobileLayout.tsx +325 -0
- package/src/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/src/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/src/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/src/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/src/BetRouter/types/README.md +249 -0
- package/src/BetRouter/types/accounts.ts +21 -0
- package/src/BetRouter/types/api-contracts.ts +1164 -0
- package/src/BetRouter/types/config.ts +12 -0
- package/src/BetRouter/types/contests.ts +37 -0
- package/src/BetRouter/types/credentials.ts +99 -0
- package/src/BetRouter/types/index.ts +16 -0
- package/src/BetRouter/types/jobs.ts +37 -0
- package/src/BetRouter/types/leagues.ts +29 -0
- package/src/BetRouter/types/liquidity.ts +15 -0
- package/src/BetRouter/types/markets.ts +94 -0
- package/src/BetRouter/types/opportunities.ts +107 -0
- package/src/BetRouter/types/orders.ts +51 -0
- package/src/BetRouter/types/participants.ts +34 -0
- package/src/BetRouter/types/partners.ts +10 -0
- package/src/Charts/README.md +310 -0
- package/src/Charts/adapters/TradeChartAdapter.ts +471 -0
- package/src/Charts/components/BaseLineChart.tsx +293 -0
- package/src/Charts/components/LivePriceChart.tsx +521 -0
- package/src/Charts/index.tsx +62 -0
- package/src/Charts/themes/chartTheme.ts +113 -0
- package/src/Charts/types.ts +160 -0
- package/src/Charts/utils/formatters.ts +182 -0
- package/src/Components/Dropdown.tsx +6 -3
- package/src/Components/Icons.tsx +12 -0
- package/src/Components/index.tsx +4 -0
- package/src/LocationTracker/LocationStatus.tsx +4 -3
- package/src/LocationTracker/api/index.tsx +2 -2
- package/src/index.tsx +6 -0
- package/src/types.d.ts +410 -2
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live Price Chart Component
|
|
3
|
+
* Shows away/home side prices moving over time with live updates
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { useMemo, useState } from 'react';
|
|
7
|
+
import { Text, StyleSheet, Dimensions, TouchableOpacity, Platform } from 'react-native';
|
|
8
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
9
|
+
import { View } from '../../Components/Themed';
|
|
10
|
+
import BaseLineChart from './BaseLineChart';
|
|
11
|
+
import type { LivePriceChartProps, TimeRangeFilterOption } from '../types';
|
|
12
|
+
import { defaultChartTheme } from '../themes/chartTheme';
|
|
13
|
+
import { formatPrice, getSmartTimeLabel, calculateNiceYBounds } from '../utils/formatters';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* LivePriceChart
|
|
17
|
+
* Beautiful real-time price chart showing away vs home odds movement
|
|
18
|
+
*/
|
|
19
|
+
const LivePriceChart: React.FC<LivePriceChartProps> = ({
|
|
20
|
+
data,
|
|
21
|
+
height = 300,
|
|
22
|
+
width,
|
|
23
|
+
animated = true,
|
|
24
|
+
showTooltip = true,
|
|
25
|
+
showLegend = true,
|
|
26
|
+
legendPosition = 'top',
|
|
27
|
+
showTimeFilter = false,
|
|
28
|
+
initialTimeFilter = 'all_time',
|
|
29
|
+
yAxisPrefix = '',
|
|
30
|
+
yAxisSuffix = '',
|
|
31
|
+
yAxisLabelCount = 6,
|
|
32
|
+
xAxisLabelCount = 5,
|
|
33
|
+
showYAxis = true,
|
|
34
|
+
showXAxis = true,
|
|
35
|
+
yAxisColor = '#E5E7EB',
|
|
36
|
+
xAxisColor = '#E5E7EB',
|
|
37
|
+
yAxisThickness = 1,
|
|
38
|
+
xAxisThickness = 1,
|
|
39
|
+
yAxisTextColor = '#6B7280',
|
|
40
|
+
xAxisTextColor = '#6B7280',
|
|
41
|
+
gridColor = '#E5E7EB',
|
|
42
|
+
showGrid = true,
|
|
43
|
+
timeRange,
|
|
44
|
+
onPointPress,
|
|
45
|
+
yMin,
|
|
46
|
+
yMax,
|
|
47
|
+
useFixedYRange = false,
|
|
48
|
+
spacing,
|
|
49
|
+
backgroundColor = 'transparent',
|
|
50
|
+
displayAsPercentage = false,
|
|
51
|
+
hideDataPointText = false,
|
|
52
|
+
}) => {
|
|
53
|
+
// Track container dimensions for responsive sizing
|
|
54
|
+
const [containerWidth, setContainerWidth] = useState<number>(
|
|
55
|
+
width || Dimensions.get('window').width - 40 // Default with padding
|
|
56
|
+
);
|
|
57
|
+
const [containerHeight, setContainerHeight] = useState<number>(height || 300); // Default to 300 if no height provided
|
|
58
|
+
|
|
59
|
+
// Track selected time filter
|
|
60
|
+
const [selectedTimeFilter, setSelectedTimeFilter] = useState<TimeRangeFilterOption>(initialTimeFilter);
|
|
61
|
+
|
|
62
|
+
// Handle layout changes to update chart dimensions
|
|
63
|
+
const handleLayout = (event: LayoutChangeEvent) => {
|
|
64
|
+
const { width: layoutWidth, height: layoutHeight } = event.nativeEvent.layout;
|
|
65
|
+
|
|
66
|
+
if (layoutWidth > 0 && !width) { // Only auto-size if width not explicitly set
|
|
67
|
+
// Account for Y-axis labels (if shown) and some padding
|
|
68
|
+
const yAxisOffset = showYAxis ? 50 : 20;
|
|
69
|
+
// For inline labels, we want to use more of the width but still reserve space
|
|
70
|
+
const inlineLabelOffset = (showLegend && legendPosition === 'inline') ? 20 : 0;
|
|
71
|
+
setContainerWidth(layoutWidth - yAxisOffset - inlineLabelOffset);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Auto-size height if container has height and chart doesn't have explicit height
|
|
75
|
+
if (layoutHeight > 0 && !height) {
|
|
76
|
+
// Reserve space for legend and time filters
|
|
77
|
+
const legendHeight = showLegend && legendPosition === 'top' ? 50 : 0;
|
|
78
|
+
const filterHeight = showTimeFilter ? 40 : 0;
|
|
79
|
+
const availableHeight = layoutHeight - legendHeight - filterHeight - 20; // 20px padding
|
|
80
|
+
setContainerHeight(Math.max(availableHeight, 100)); // Minimum 100px
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// Determine available time filters based on data timespan
|
|
85
|
+
const availableTimeFilters = useMemo((): TimeRangeFilterOption[] => {
|
|
86
|
+
const allTimestamps = data.flatMap(series => series.data.map(point => point.timestamp));
|
|
87
|
+
if (allTimestamps.length === 0) return ['all_time'];
|
|
88
|
+
|
|
89
|
+
const minTime = Math.min(...allTimestamps);
|
|
90
|
+
const maxTime = Math.max(...allTimestamps);
|
|
91
|
+
const spanMs = maxTime - minTime;
|
|
92
|
+
const now = Date.now();
|
|
93
|
+
|
|
94
|
+
const filters: TimeRangeFilterOption[] = [];
|
|
95
|
+
|
|
96
|
+
// Check if data spans into today
|
|
97
|
+
const todayStart = new Date();
|
|
98
|
+
todayStart.setHours(0, 0, 0, 0);
|
|
99
|
+
if (maxTime >= todayStart.getTime()) {
|
|
100
|
+
filters.push('today');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Check if data spans last 24 hours
|
|
104
|
+
if (maxTime >= now - (24 * 60 * 60 * 1000)) {
|
|
105
|
+
filters.push('last_24h');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Check if data spans last week
|
|
109
|
+
if (spanMs >= 24 * 60 * 60 * 1000 || maxTime >= now - (7 * 24 * 60 * 60 * 1000)) {
|
|
110
|
+
filters.push('last_week');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Check if data spans last month
|
|
114
|
+
if (spanMs >= 7 * 24 * 60 * 60 * 1000 || maxTime >= now - (30 * 24 * 60 * 60 * 1000)) {
|
|
115
|
+
filters.push('last_month');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Always include all_time
|
|
119
|
+
filters.push('all_time');
|
|
120
|
+
|
|
121
|
+
return filters;
|
|
122
|
+
}, [data]);
|
|
123
|
+
|
|
124
|
+
// Apply time filter to data
|
|
125
|
+
const filteredData = useMemo(() => {
|
|
126
|
+
// If external timeRange prop is provided, use it
|
|
127
|
+
if (timeRange) {
|
|
128
|
+
return data.map(series => ({
|
|
129
|
+
...series,
|
|
130
|
+
data: series.data.filter(
|
|
131
|
+
point => point.timestamp >= timeRange.start && point.timestamp <= timeRange.end
|
|
132
|
+
),
|
|
133
|
+
}));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Otherwise, use internal time filter if enabled
|
|
137
|
+
if (!showTimeFilter) return data;
|
|
138
|
+
|
|
139
|
+
const now = Date.now();
|
|
140
|
+
let startTime: number;
|
|
141
|
+
let endTime: number = now;
|
|
142
|
+
|
|
143
|
+
switch (selectedTimeFilter) {
|
|
144
|
+
case 'today':
|
|
145
|
+
const today = new Date();
|
|
146
|
+
today.setHours(0, 0, 0, 0);
|
|
147
|
+
startTime = today.getTime();
|
|
148
|
+
break;
|
|
149
|
+
case 'last_24h':
|
|
150
|
+
startTime = now - (24 * 60 * 60 * 1000);
|
|
151
|
+
break;
|
|
152
|
+
case 'last_week':
|
|
153
|
+
startTime = now - (7 * 24 * 60 * 60 * 1000);
|
|
154
|
+
break;
|
|
155
|
+
case 'last_month':
|
|
156
|
+
startTime = now - (30 * 24 * 60 * 60 * 1000);
|
|
157
|
+
break;
|
|
158
|
+
case 'all_time':
|
|
159
|
+
default:
|
|
160
|
+
return data; // No filtering
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return data.map(series => ({
|
|
164
|
+
...series,
|
|
165
|
+
data: series.data.filter(
|
|
166
|
+
point => point.timestamp >= startTime && point.timestamp <= endTime
|
|
167
|
+
),
|
|
168
|
+
}));
|
|
169
|
+
}, [data, timeRange, showTimeFilter, selectedTimeFilter]);
|
|
170
|
+
|
|
171
|
+
// Calculate responsive spacing based on container width and FILTERED data points
|
|
172
|
+
const calculatedSpacing = useMemo(() => {
|
|
173
|
+
if (spacing !== undefined) return spacing; // Use explicit spacing if provided
|
|
174
|
+
|
|
175
|
+
// Use filtered data point count so spacing adjusts after filtering
|
|
176
|
+
const dataPointCount = filteredData[0]?.data.length || 20;
|
|
177
|
+
const chartWidth = width || containerWidth;
|
|
178
|
+
|
|
179
|
+
// When Y-axis is hidden, we add 60px to width (reclaiming full Y-axis space)
|
|
180
|
+
const effectiveWidth = !showYAxis ? chartWidth + 60 : chartWidth;
|
|
181
|
+
|
|
182
|
+
// Simple: divide container width by number of points to fit everything
|
|
183
|
+
// Subtract a buffer for padding
|
|
184
|
+
const buffer = showYAxis ? 60 : 20;
|
|
185
|
+
const availableWidth = effectiveWidth - buffer;
|
|
186
|
+
|
|
187
|
+
// Use number of points (not intervals) so chart doesn't overflow
|
|
188
|
+
const calculatedValue = availableWidth / dataPointCount;
|
|
189
|
+
|
|
190
|
+
return Math.max(calculatedValue, 3); // Minimum 3px spacing
|
|
191
|
+
}, [filteredData, width, containerWidth, spacing, showYAxis]);
|
|
192
|
+
|
|
193
|
+
// Calculate Y-axis bounds if not provided
|
|
194
|
+
const yBounds = useMemo(() => {
|
|
195
|
+
// If displayAsPercentage, override bounds to 0-100
|
|
196
|
+
if (displayAsPercentage && !useFixedYRange && yMin === undefined && yMax === undefined) {
|
|
197
|
+
return { min: 0, max: 100 };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// If useFixedYRange is true and yMin/yMax are provided, use them directly
|
|
201
|
+
if (useFixedYRange && yMin !== undefined && yMax !== undefined) {
|
|
202
|
+
const min = displayAsPercentage ? yMin * 100 : yMin;
|
|
203
|
+
const max = displayAsPercentage ? yMax * 100 : yMax;
|
|
204
|
+
return { min, max };
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// If both yMin and yMax are provided (but not useFixedYRange), still use them
|
|
208
|
+
if (yMin !== undefined && yMax !== undefined) {
|
|
209
|
+
const min = displayAsPercentage ? yMin * 100 : yMin;
|
|
210
|
+
const max = displayAsPercentage ? yMax * 100 : yMax;
|
|
211
|
+
return { min, max };
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Otherwise, auto-calculate from data
|
|
215
|
+
const allValues = filteredData.flatMap(series => series.data.map(point => point.value));
|
|
216
|
+
const bounds = calculateNiceYBounds(allValues);
|
|
217
|
+
if (displayAsPercentage) {
|
|
218
|
+
return { min: bounds.min * 100, max: bounds.max * 100 };
|
|
219
|
+
}
|
|
220
|
+
return bounds;
|
|
221
|
+
}, [filteredData, yMin, yMax, useFixedYRange, displayAsPercentage]);
|
|
222
|
+
|
|
223
|
+
// Enhance data with smart time labels and percentage conversion
|
|
224
|
+
const enhancedData = useMemo(() => {
|
|
225
|
+
const allTimestamps = filteredData.flatMap(series => series.data.map(point => point.timestamp));
|
|
226
|
+
const minTime = Math.min(...allTimestamps);
|
|
227
|
+
const maxTime = Math.max(...allTimestamps);
|
|
228
|
+
|
|
229
|
+
return filteredData.map(series => ({
|
|
230
|
+
...series,
|
|
231
|
+
data: series.data.map((point, index) => {
|
|
232
|
+
// On native with small spacing, show fewer labels to prevent overlap
|
|
233
|
+
// Each label needs ~50px of space, so calculate how many we can fit
|
|
234
|
+
const minLabelSpacing = 50; // Minimum pixels needed per label
|
|
235
|
+
const maxLabelsWeCanFit = Math.floor((width || containerWidth) / minLabelSpacing);
|
|
236
|
+
const labelInterval = Math.max(1, Math.ceil(series.data.length / Math.min(xAxisLabelCount, maxLabelsWeCanFit)));
|
|
237
|
+
|
|
238
|
+
const shouldLabel = index % labelInterval === 0;
|
|
239
|
+
|
|
240
|
+
return {
|
|
241
|
+
...point,
|
|
242
|
+
value: displayAsPercentage ? point.value * 100 : point.value,
|
|
243
|
+
label: shouldLabel ? getSmartTimeLabel(point.timestamp, minTime, maxTime) : '',
|
|
244
|
+
};
|
|
245
|
+
}),
|
|
246
|
+
}));
|
|
247
|
+
}, [filteredData, xAxisLabelCount, width, containerWidth, displayAsPercentage]);
|
|
248
|
+
|
|
249
|
+
// Get current prices for legend
|
|
250
|
+
const currentPrices = useMemo(() => {
|
|
251
|
+
return filteredData.map(series => {
|
|
252
|
+
const latestPoint = series.data[series.data.length - 1];
|
|
253
|
+
const rawValue = latestPoint?.value || 0;
|
|
254
|
+
const displayValue = displayAsPercentage ? rawValue * 100 : rawValue;
|
|
255
|
+
const change = calculatePriceChange(series.data);
|
|
256
|
+
const displayChange = displayAsPercentage && change !== null ? change * 100 : change;
|
|
257
|
+
|
|
258
|
+
return {
|
|
259
|
+
series: series.series,
|
|
260
|
+
displayLabel: series.series, // series.series is already the display label
|
|
261
|
+
color: series.color,
|
|
262
|
+
value: displayValue,
|
|
263
|
+
change: displayChange,
|
|
264
|
+
};
|
|
265
|
+
});
|
|
266
|
+
}, [filteredData, displayAsPercentage]);
|
|
267
|
+
|
|
268
|
+
// Handle point press
|
|
269
|
+
const handlePointPress = (item: any, index: number) => {
|
|
270
|
+
if (onPointPress && item) {
|
|
271
|
+
// Find which series this point belongs to
|
|
272
|
+
const seriesIndex = filteredData.findIndex(s =>
|
|
273
|
+
s.data.some(p => p.value === item.value)
|
|
274
|
+
);
|
|
275
|
+
const series = filteredData[seriesIndex];
|
|
276
|
+
const point = series?.data[index];
|
|
277
|
+
|
|
278
|
+
if (point) {
|
|
279
|
+
onPointPress(point, series.series);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
// Get friendly label for time filter
|
|
285
|
+
const getFilterLabel = (filter: TimeRangeFilterOption): string => {
|
|
286
|
+
switch (filter) {
|
|
287
|
+
case 'today': return 'Today';
|
|
288
|
+
case 'last_24h': return '24H';
|
|
289
|
+
case 'last_week': return '1W';
|
|
290
|
+
case 'last_month': return '1M';
|
|
291
|
+
case 'all_time': return 'All';
|
|
292
|
+
default: return filter;
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
return (
|
|
297
|
+
<View transparent style={[styles.container, !height && { flex: 1 }]} onLayout={handleLayout}>
|
|
298
|
+
{/* Time Filter Buttons */}
|
|
299
|
+
{showTimeFilter && availableTimeFilters.length > 1 && (
|
|
300
|
+
<View transparent style={styles.timeFilterContainer}>
|
|
301
|
+
{availableTimeFilters.map((filter) => (
|
|
302
|
+
<TouchableOpacity
|
|
303
|
+
key={filter}
|
|
304
|
+
onPress={() => setSelectedTimeFilter(filter)}
|
|
305
|
+
style={[
|
|
306
|
+
styles.filterButton,
|
|
307
|
+
selectedTimeFilter === filter && styles.filterButtonActive
|
|
308
|
+
]}
|
|
309
|
+
>
|
|
310
|
+
<Text style={[
|
|
311
|
+
styles.filterButtonText,
|
|
312
|
+
selectedTimeFilter === filter && styles.filterButtonTextActive
|
|
313
|
+
]}>
|
|
314
|
+
{getFilterLabel(filter)}
|
|
315
|
+
</Text>
|
|
316
|
+
</TouchableOpacity>
|
|
317
|
+
))}
|
|
318
|
+
</View>
|
|
319
|
+
)}
|
|
320
|
+
|
|
321
|
+
{/* Legend - Top Position */}
|
|
322
|
+
{showLegend && legendPosition === 'top' && (
|
|
323
|
+
<View transparent style={styles.legend}>
|
|
324
|
+
{currentPrices.map((price, index) => (
|
|
325
|
+
<View transparent key={index} style={styles.legendItem}>
|
|
326
|
+
<View style={[styles.legendDot, { backgroundColor: price.color }]} />
|
|
327
|
+
<Text style={styles.legendLabel}>{price.displayLabel}</Text>
|
|
328
|
+
<Text style={[styles.legendValue, { color: price.color }]}>
|
|
329
|
+
{formatPrice(price.value, 2)}
|
|
330
|
+
</Text>
|
|
331
|
+
{price.change !== null && (
|
|
332
|
+
<Text style={[
|
|
333
|
+
styles.legendChange,
|
|
334
|
+
{ color: price.change >= 0 ? defaultChartTheme.success : defaultChartTheme.error }
|
|
335
|
+
]}>
|
|
336
|
+
{price.change >= 0 ? '▲' : '▼'} {Math.abs(price.change).toFixed(2)}
|
|
337
|
+
</Text>
|
|
338
|
+
)}
|
|
339
|
+
</View>
|
|
340
|
+
))}
|
|
341
|
+
</View>
|
|
342
|
+
)}
|
|
343
|
+
|
|
344
|
+
{/* Chart with Inline Labels */}
|
|
345
|
+
<View transparent style={{
|
|
346
|
+
position: 'relative',
|
|
347
|
+
paddingBottom: showXAxis ? 30 : 0,
|
|
348
|
+
overflow: 'visible',
|
|
349
|
+
marginLeft: !showYAxis ? -60 : 0,
|
|
350
|
+
}}>
|
|
351
|
+
<BaseLineChart
|
|
352
|
+
data={enhancedData}
|
|
353
|
+
height={Platform.OS === 'web' ? containerHeight : (showXAxis ? containerHeight - 30 : containerHeight)}
|
|
354
|
+
width={!showYAxis ? (width || containerWidth) + 60 : (width || containerWidth)}
|
|
355
|
+
spacing={calculatedSpacing}
|
|
356
|
+
yAxisPrefix={yAxisPrefix}
|
|
357
|
+
yAxisSuffix={displayAsPercentage ? '%' : yAxisSuffix}
|
|
358
|
+
yAxisLabelCount={yAxisLabelCount}
|
|
359
|
+
xAxisLabelCount={xAxisLabelCount}
|
|
360
|
+
showYAxis={showYAxis}
|
|
361
|
+
showXAxis={showXAxis}
|
|
362
|
+
yAxisColor={yAxisColor}
|
|
363
|
+
xAxisColor={xAxisColor}
|
|
364
|
+
yAxisThickness={yAxisThickness}
|
|
365
|
+
xAxisThickness={xAxisThickness}
|
|
366
|
+
yAxisTextColor={yAxisTextColor}
|
|
367
|
+
xAxisTextColor={xAxisTextColor}
|
|
368
|
+
gridColor={gridColor}
|
|
369
|
+
showGrid={showGrid}
|
|
370
|
+
yMin={yBounds.min}
|
|
371
|
+
yMax={yBounds.max}
|
|
372
|
+
backgroundColor={backgroundColor}
|
|
373
|
+
animated={animated}
|
|
374
|
+
onDataPointClick={showTooltip ? handlePointPress : undefined}
|
|
375
|
+
hideDataPointText={hideDataPointText}
|
|
376
|
+
/>
|
|
377
|
+
|
|
378
|
+
{/* Inline Labels - Positioned at last data point */}
|
|
379
|
+
{showLegend && legendPosition === 'inline' && (
|
|
380
|
+
<View transparent style={styles.inlineLabelsContainer}>
|
|
381
|
+
{currentPrices.map((price, index) => {
|
|
382
|
+
// Stack labels vertically in the center-right
|
|
383
|
+
// Calculate spacing to distribute labels evenly
|
|
384
|
+
const totalLabels = currentPrices.length;
|
|
385
|
+
const labelHeight = 50; // Approximate height of each label (increased for more spacing)
|
|
386
|
+
const totalHeight = totalLabels * labelHeight;
|
|
387
|
+
const startY = (height - totalHeight) / 2; // Center vertically
|
|
388
|
+
const yPosition = startY + (index * labelHeight);
|
|
389
|
+
|
|
390
|
+
return (
|
|
391
|
+
<View transparent
|
|
392
|
+
key={index}
|
|
393
|
+
style={[
|
|
394
|
+
styles.inlineLabel,
|
|
395
|
+
{
|
|
396
|
+
top: yPosition,
|
|
397
|
+
right: 10,
|
|
398
|
+
}
|
|
399
|
+
]}
|
|
400
|
+
>
|
|
401
|
+
<View type="blur" style={styles.inlineLabelContent}>
|
|
402
|
+
<Text style={[styles.inlineLabelText, { color: price.color }]}>
|
|
403
|
+
{price.displayLabel}
|
|
404
|
+
</Text>
|
|
405
|
+
<Text style={[styles.inlineLabelValue, { color: price.color }]}>
|
|
406
|
+
{displayAsPercentage
|
|
407
|
+
? `${Math.round(price.value)}%`
|
|
408
|
+
: formatPrice(price.value, 2)
|
|
409
|
+
}
|
|
410
|
+
</Text>
|
|
411
|
+
</View>
|
|
412
|
+
</View>
|
|
413
|
+
);
|
|
414
|
+
})}
|
|
415
|
+
</View>
|
|
416
|
+
)}
|
|
417
|
+
</View>
|
|
418
|
+
</View>
|
|
419
|
+
);
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Calculate price change from first to last data point
|
|
424
|
+
*/
|
|
425
|
+
const calculatePriceChange = (data: any[]): number | null => {
|
|
426
|
+
if (data.length < 2) return null;
|
|
427
|
+
const first = data[0].value;
|
|
428
|
+
const last = data[data.length - 1].value;
|
|
429
|
+
return last - first;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
const styles = StyleSheet.create({
|
|
433
|
+
container: {
|
|
434
|
+
width: '100%',
|
|
435
|
+
},
|
|
436
|
+
timeFilterContainer: {
|
|
437
|
+
flexDirection: 'row',
|
|
438
|
+
justifyContent: 'center',
|
|
439
|
+
alignItems: 'center',
|
|
440
|
+
marginBottom: 12,
|
|
441
|
+
gap: 8,
|
|
442
|
+
},
|
|
443
|
+
filterButton: {
|
|
444
|
+
paddingHorizontal: 12,
|
|
445
|
+
paddingVertical: 6,
|
|
446
|
+
borderRadius: 6,
|
|
447
|
+
backgroundColor: '#F3F4F6',
|
|
448
|
+
},
|
|
449
|
+
filterButtonActive: {
|
|
450
|
+
backgroundColor: '#6366F1',
|
|
451
|
+
},
|
|
452
|
+
filterButtonText: {
|
|
453
|
+
fontSize: 12,
|
|
454
|
+
fontWeight: '600',
|
|
455
|
+
color: '#6B7280',
|
|
456
|
+
},
|
|
457
|
+
filterButtonTextActive: {
|
|
458
|
+
color: '#FFFFFF',
|
|
459
|
+
},
|
|
460
|
+
legend: {
|
|
461
|
+
flexDirection: 'row',
|
|
462
|
+
justifyContent: 'center',
|
|
463
|
+
alignItems: 'center',
|
|
464
|
+
marginBottom: 16,
|
|
465
|
+
gap: 20,
|
|
466
|
+
},
|
|
467
|
+
legendItem: {
|
|
468
|
+
flexDirection: 'row',
|
|
469
|
+
alignItems: 'center',
|
|
470
|
+
gap: 6,
|
|
471
|
+
},
|
|
472
|
+
legendDot: {
|
|
473
|
+
width: 10,
|
|
474
|
+
height: 10,
|
|
475
|
+
borderRadius: 5,
|
|
476
|
+
},
|
|
477
|
+
legendLabel: {
|
|
478
|
+
fontSize: 12,
|
|
479
|
+
color: '#6B7280',
|
|
480
|
+
fontWeight: '500',
|
|
481
|
+
},
|
|
482
|
+
legendValue: {
|
|
483
|
+
fontSize: 14,
|
|
484
|
+
fontWeight: 'bold',
|
|
485
|
+
},
|
|
486
|
+
legendChange: {
|
|
487
|
+
fontSize: 11,
|
|
488
|
+
fontWeight: '600',
|
|
489
|
+
},
|
|
490
|
+
inlineLabelsContainer: {
|
|
491
|
+
position: 'absolute',
|
|
492
|
+
right: 0,
|
|
493
|
+
top: 0,
|
|
494
|
+
bottom: 0,
|
|
495
|
+
pointerEvents: 'none',
|
|
496
|
+
},
|
|
497
|
+
inlineLabel: {
|
|
498
|
+
position: 'absolute',
|
|
499
|
+
flexDirection: 'row',
|
|
500
|
+
alignItems: 'center',
|
|
501
|
+
},
|
|
502
|
+
inlineLabelContent: {
|
|
503
|
+
paddingHorizontal: 8,
|
|
504
|
+
paddingVertical: 4,
|
|
505
|
+
alignItems: 'flex-end',
|
|
506
|
+
borderRadius: 6,
|
|
507
|
+
},
|
|
508
|
+
inlineLabelText: {
|
|
509
|
+
fontSize: 12,
|
|
510
|
+
fontWeight: '700',
|
|
511
|
+
marginBottom: 2,
|
|
512
|
+
textAlign: 'right',
|
|
513
|
+
},
|
|
514
|
+
inlineLabelValue: {
|
|
515
|
+
fontSize: 14,
|
|
516
|
+
fontWeight: 'bold',
|
|
517
|
+
textAlign: 'right',
|
|
518
|
+
},
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
export default LivePriceChart;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BettorEdge Charts Library
|
|
3
|
+
* Beautiful, cross-platform charts for React Native and Web
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { LivePriceChart, TradeChartAdapter } from './Charts';
|
|
8
|
+
*
|
|
9
|
+
* // Convert your trades to chart data
|
|
10
|
+
* const chartData = TradeChartAdapter.toTimeSeriesData(trades);
|
|
11
|
+
*
|
|
12
|
+
* // Render the chart
|
|
13
|
+
* <LivePriceChart
|
|
14
|
+
* data={chartData}
|
|
15
|
+
* height={300}
|
|
16
|
+
* animated={true}
|
|
17
|
+
* showTooltip={true}
|
|
18
|
+
* />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
// Components
|
|
23
|
+
export { default as LivePriceChart } from './components/LivePriceChart';
|
|
24
|
+
export { default as BaseLineChart } from './components/BaseLineChart';
|
|
25
|
+
|
|
26
|
+
// Adapters
|
|
27
|
+
export { TradeChartAdapter } from './adapters/TradeChartAdapter';
|
|
28
|
+
export type { Trade, TradeChartOptions, SideLabel, TimeRangeFilter } from './adapters/TradeChartAdapter';
|
|
29
|
+
|
|
30
|
+
// Types
|
|
31
|
+
export type {
|
|
32
|
+
TimeSeriesPoint,
|
|
33
|
+
TimeSeriesData,
|
|
34
|
+
LivePriceChartProps,
|
|
35
|
+
ChartTheme,
|
|
36
|
+
TooltipConfig,
|
|
37
|
+
TimeRangeFilterOption,
|
|
38
|
+
} from './types';
|
|
39
|
+
|
|
40
|
+
// Themes
|
|
41
|
+
export {
|
|
42
|
+
defaultChartTheme,
|
|
43
|
+
darkChartTheme,
|
|
44
|
+
gradients,
|
|
45
|
+
lineChartStyles,
|
|
46
|
+
getAwayHomeGradients,
|
|
47
|
+
chartDimensions,
|
|
48
|
+
} from './themes/chartTheme';
|
|
49
|
+
|
|
50
|
+
// Utilities
|
|
51
|
+
export {
|
|
52
|
+
formatTime,
|
|
53
|
+
formatDate,
|
|
54
|
+
formatPrice,
|
|
55
|
+
formatCurrency,
|
|
56
|
+
formatPercentage,
|
|
57
|
+
formatROI,
|
|
58
|
+
getSmartTimeLabel,
|
|
59
|
+
formatLargeNumber,
|
|
60
|
+
calculateNiceYBounds,
|
|
61
|
+
generateYAxisLabels,
|
|
62
|
+
} from './utils/formatters';
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart Theme Configuration
|
|
3
|
+
* Beautiful color schemes and styling for charts
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ChartTheme } from '../types';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Default chart theme with stunning gradients
|
|
10
|
+
*/
|
|
11
|
+
export const defaultChartTheme: ChartTheme = {
|
|
12
|
+
// Primary colors
|
|
13
|
+
primary: '#6366F1', // Indigo
|
|
14
|
+
secondary: '#8B5CF6', // Purple
|
|
15
|
+
success: '#10B981', // Green
|
|
16
|
+
error: '#EF4444', // Red
|
|
17
|
+
warning: '#F59E0B', // Amber
|
|
18
|
+
|
|
19
|
+
// Chart colors
|
|
20
|
+
text: '#6B7280', // Gray-500
|
|
21
|
+
background: '#FFFFFF', // White
|
|
22
|
+
grid: '#E5E7EB', // Gray-200
|
|
23
|
+
|
|
24
|
+
// Away/Home specific colors
|
|
25
|
+
away: '#FF6B6B', // Coral Red
|
|
26
|
+
home: '#4ECDC4', // Teal
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Dark theme variant
|
|
31
|
+
*/
|
|
32
|
+
export const darkChartTheme: ChartTheme = {
|
|
33
|
+
primary: '#818CF8', // Light Indigo
|
|
34
|
+
secondary: '#A78BFA', // Light Purple
|
|
35
|
+
success: '#34D399', // Light Green
|
|
36
|
+
error: '#F87171', // Light Red
|
|
37
|
+
warning: '#FBBF24', // Light Amber
|
|
38
|
+
|
|
39
|
+
text: '#D1D5DB', // Gray-300
|
|
40
|
+
background: '#1F2937', // Gray-800
|
|
41
|
+
grid: '#374151', // Gray-700
|
|
42
|
+
|
|
43
|
+
away: '#FF8787', // Lighter Coral
|
|
44
|
+
home: '#6EE7E0', // Lighter Teal
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Gradient configurations for stunning visuals
|
|
49
|
+
*/
|
|
50
|
+
export const gradients = {
|
|
51
|
+
away: ['rgba(255, 107, 107, 0.4)', 'rgba(255, 107, 107, 0.01)'], // Red gradient
|
|
52
|
+
home: ['rgba(78, 205, 196, 0.4)', 'rgba(78, 205, 196, 0.01)'], // Teal gradient
|
|
53
|
+
profit: ['rgba(16, 185, 129, 0.4)', 'rgba(16, 185, 129, 0.01)'], // Green gradient
|
|
54
|
+
loss: ['rgba(239, 68, 68, 0.4)', 'rgba(239, 68, 68, 0.01)'], // Red gradient
|
|
55
|
+
neutral: ['rgba(99, 102, 241, 0.4)', 'rgba(99, 102, 241, 0.01)'], // Indigo gradient
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Line chart styling presets
|
|
60
|
+
*/
|
|
61
|
+
export const lineChartStyles = {
|
|
62
|
+
default: {
|
|
63
|
+
thickness: 2.5,
|
|
64
|
+
curved: true,
|
|
65
|
+
showDataPoints: false,
|
|
66
|
+
animationDuration: 800,
|
|
67
|
+
},
|
|
68
|
+
bold: {
|
|
69
|
+
thickness: 3.5,
|
|
70
|
+
curved: true,
|
|
71
|
+
showDataPoints: true,
|
|
72
|
+
animationDuration: 800,
|
|
73
|
+
},
|
|
74
|
+
minimal: {
|
|
75
|
+
thickness: 1.5,
|
|
76
|
+
curved: false,
|
|
77
|
+
showDataPoints: false,
|
|
78
|
+
animationDuration: 400,
|
|
79
|
+
},
|
|
80
|
+
dots: {
|
|
81
|
+
thickness: 2,
|
|
82
|
+
curved: true,
|
|
83
|
+
showDataPoints: true,
|
|
84
|
+
animationDuration: 800,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Get away/home gradient colors
|
|
90
|
+
*/
|
|
91
|
+
export const getAwayHomeGradients = () => ({
|
|
92
|
+
away: {
|
|
93
|
+
color: defaultChartTheme.away,
|
|
94
|
+
gradient: true,
|
|
95
|
+
gradientColors: gradients.away as [string, string],
|
|
96
|
+
},
|
|
97
|
+
home: {
|
|
98
|
+
color: defaultChartTheme.home,
|
|
99
|
+
gradient: true,
|
|
100
|
+
gradientColors: gradients.home as [string, string],
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Chart spacing and dimensions
|
|
106
|
+
*/
|
|
107
|
+
export const chartDimensions = {
|
|
108
|
+
defaultHeight: 300,
|
|
109
|
+
mobileHeight: 250,
|
|
110
|
+
defaultSpacing: 20,
|
|
111
|
+
xAxisLabelCount: 5,
|
|
112
|
+
yAxisLabelCount: 6,
|
|
113
|
+
};
|