@varity-labs/ui-kit 2.0.0-alpha.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/LICENSE +31 -0
- package/README.md +248 -0
- package/dist/components/AI/ChatbotWidget.d.ts +53 -0
- package/dist/components/AI/ChatbotWidget.d.ts.map +1 -0
- package/dist/components/AI/ChatbotWidget.js +126 -0
- package/dist/components/AI/ChatbotWidget.js.map +1 -0
- package/dist/components/AI/InputBar.d.ts +25 -0
- package/dist/components/AI/InputBar.d.ts.map +1 -0
- package/dist/components/AI/InputBar.js +126 -0
- package/dist/components/AI/InputBar.js.map +1 -0
- package/dist/components/AI/MessageBubble.d.ts +37 -0
- package/dist/components/AI/MessageBubble.d.ts.map +1 -0
- package/dist/components/AI/MessageBubble.js +124 -0
- package/dist/components/AI/MessageBubble.js.map +1 -0
- package/dist/components/AI/index.d.ts +12 -0
- package/dist/components/AI/index.d.ts.map +1 -0
- package/dist/components/AI/index.js +9 -0
- package/dist/components/AI/index.js.map +1 -0
- package/dist/components/Analytics/AnalyticsCard.d.ts +48 -0
- package/dist/components/Analytics/AnalyticsCard.d.ts.map +1 -0
- package/dist/components/Analytics/AnalyticsCard.js +156 -0
- package/dist/components/Analytics/AnalyticsCard.js.map +1 -0
- package/dist/components/Analytics/ChartContainer.d.ts +53 -0
- package/dist/components/Analytics/ChartContainer.d.ts.map +1 -0
- package/dist/components/Analytics/ChartContainer.js +128 -0
- package/dist/components/Analytics/ChartContainer.js.map +1 -0
- package/dist/components/Analytics/DataTable.d.ts +62 -0
- package/dist/components/Analytics/DataTable.d.ts.map +1 -0
- package/dist/components/Analytics/DataTable.js +165 -0
- package/dist/components/Analytics/DataTable.js.map +1 -0
- package/dist/components/Analytics/MetricDisplay.d.ts +42 -0
- package/dist/components/Analytics/MetricDisplay.d.ts.map +1 -0
- package/dist/components/Analytics/MetricDisplay.js +110 -0
- package/dist/components/Analytics/MetricDisplay.js.map +1 -0
- package/dist/components/Analytics/index.d.ts +14 -0
- package/dist/components/Analytics/index.d.ts.map +1 -0
- package/dist/components/Analytics/index.js +10 -0
- package/dist/components/Analytics/index.js.map +1 -0
- package/dist/components/Branding/Attribution.d.ts +39 -0
- package/dist/components/Branding/Attribution.d.ts.map +1 -0
- package/dist/components/Branding/Attribution.js +124 -0
- package/dist/components/Branding/Attribution.js.map +1 -0
- package/dist/components/Branding/Logo.d.ts +39 -0
- package/dist/components/Branding/Logo.d.ts.map +1 -0
- package/dist/components/Branding/Logo.js +67 -0
- package/dist/components/Branding/Logo.js.map +1 -0
- package/dist/components/Branding/ThemeProvider.d.ts +85 -0
- package/dist/components/Branding/ThemeProvider.d.ts.map +1 -0
- package/dist/components/Branding/ThemeProvider.js +186 -0
- package/dist/components/Branding/ThemeProvider.js.map +1 -0
- package/dist/components/Branding/index.d.ts +12 -0
- package/dist/components/Branding/index.d.ts.map +1 -0
- package/dist/components/Branding/index.js +9 -0
- package/dist/components/Branding/index.js.map +1 -0
- package/dist/components/Dashboard/DashboardFooter.d.ts +30 -0
- package/dist/components/Dashboard/DashboardFooter.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardFooter.js +68 -0
- package/dist/components/Dashboard/DashboardFooter.js.map +1 -0
- package/dist/components/Dashboard/DashboardHeader.d.ts +24 -0
- package/dist/components/Dashboard/DashboardHeader.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardHeader.js +87 -0
- package/dist/components/Dashboard/DashboardHeader.js.map +1 -0
- package/dist/components/Dashboard/DashboardLayout.d.ts +71 -0
- package/dist/components/Dashboard/DashboardLayout.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardLayout.js +52 -0
- package/dist/components/Dashboard/DashboardLayout.js.map +1 -0
- package/dist/components/Dashboard/DashboardSidebar.d.ts +26 -0
- package/dist/components/Dashboard/DashboardSidebar.d.ts.map +1 -0
- package/dist/components/Dashboard/DashboardSidebar.js +146 -0
- package/dist/components/Dashboard/DashboardSidebar.js.map +1 -0
- package/dist/components/Dashboard/EmptyState.d.ts +84 -0
- package/dist/components/Dashboard/EmptyState.d.ts.map +1 -0
- package/dist/components/Dashboard/EmptyState.js +99 -0
- package/dist/components/Dashboard/EmptyState.js.map +1 -0
- package/dist/components/Dashboard/KPICard.d.ts +58 -0
- package/dist/components/Dashboard/KPICard.d.ts.map +1 -0
- package/dist/components/Dashboard/KPICard.js +82 -0
- package/dist/components/Dashboard/KPICard.js.map +1 -0
- package/dist/components/Dashboard/LoadingSkeleton.d.ts +58 -0
- package/dist/components/Dashboard/LoadingSkeleton.d.ts.map +1 -0
- package/dist/components/Dashboard/LoadingSkeleton.js +105 -0
- package/dist/components/Dashboard/LoadingSkeleton.js.map +1 -0
- package/dist/components/Dashboard/StatusBadge.d.ts +57 -0
- package/dist/components/Dashboard/StatusBadge.d.ts.map +1 -0
- package/dist/components/Dashboard/StatusBadge.js +149 -0
- package/dist/components/Dashboard/StatusBadge.js.map +1 -0
- package/dist/components/Dashboard/index.d.ts +19 -0
- package/dist/components/Dashboard/index.d.ts.map +1 -0
- package/dist/components/Dashboard/index.js +18 -0
- package/dist/components/Dashboard/index.js.map +1 -0
- package/dist/components/InAppWallet/EmailLoginButton.d.ts +27 -0
- package/dist/components/InAppWallet/EmailLoginButton.d.ts.map +1 -0
- package/dist/components/InAppWallet/EmailLoginButton.js +84 -0
- package/dist/components/InAppWallet/EmailLoginButton.js.map +1 -0
- package/dist/components/InAppWallet/InAppWalletProvider.d.ts +54 -0
- package/dist/components/InAppWallet/InAppWalletProvider.d.ts.map +1 -0
- package/dist/components/InAppWallet/InAppWalletProvider.js +238 -0
- package/dist/components/InAppWallet/InAppWalletProvider.js.map +1 -0
- package/dist/components/InAppWallet/OnboardingFlow.d.ts +25 -0
- package/dist/components/InAppWallet/OnboardingFlow.d.ts.map +1 -0
- package/dist/components/InAppWallet/OnboardingFlow.js +159 -0
- package/dist/components/InAppWallet/OnboardingFlow.js.map +1 -0
- package/dist/components/InAppWallet/SocialLoginButtons.d.ts +28 -0
- package/dist/components/InAppWallet/SocialLoginButtons.d.ts.map +1 -0
- package/dist/components/InAppWallet/SocialLoginButtons.js +128 -0
- package/dist/components/InAppWallet/SocialLoginButtons.js.map +1 -0
- package/dist/components/InAppWallet/index.d.ts +15 -0
- package/dist/components/InAppWallet/index.d.ts.map +1 -0
- package/dist/components/InAppWallet/index.js +14 -0
- package/dist/components/InAppWallet/index.js.map +1 -0
- package/dist/components/Onramp/BuyUSDCButton.d.ts +27 -0
- package/dist/components/Onramp/BuyUSDCButton.d.ts.map +1 -0
- package/dist/components/Onramp/BuyUSDCButton.js +70 -0
- package/dist/components/Onramp/BuyUSDCButton.js.map +1 -0
- package/dist/components/Onramp/OnrampWidget.d.ts +38 -0
- package/dist/components/Onramp/OnrampWidget.d.ts.map +1 -0
- package/dist/components/Onramp/OnrampWidget.js +105 -0
- package/dist/components/Onramp/OnrampWidget.js.map +1 -0
- package/dist/components/Onramp/index.d.ts +14 -0
- package/dist/components/Onramp/index.d.ts.map +1 -0
- package/dist/components/Onramp/index.js +12 -0
- package/dist/components/Onramp/index.js.map +1 -0
- package/dist/components/Payments/CheckoutModal.d.ts +19 -0
- package/dist/components/Payments/CheckoutModal.d.ts.map +1 -0
- package/dist/components/Payments/CheckoutModal.js +183 -0
- package/dist/components/Payments/CheckoutModal.js.map +1 -0
- package/dist/components/Payments/SubscriptionWidget.d.ts +17 -0
- package/dist/components/Payments/SubscriptionWidget.d.ts.map +1 -0
- package/dist/components/Payments/SubscriptionWidget.js +89 -0
- package/dist/components/Payments/SubscriptionWidget.js.map +1 -0
- package/dist/components/Payments/constants.d.ts +59 -0
- package/dist/components/Payments/constants.d.ts.map +1 -0
- package/dist/components/Payments/constants.js +145 -0
- package/dist/components/Payments/constants.js.map +1 -0
- package/dist/components/Payments/index.d.ts +10 -0
- package/dist/components/Payments/index.d.ts.map +1 -0
- package/dist/components/Payments/index.js +12 -0
- package/dist/components/Payments/index.js.map +1 -0
- package/dist/components/Payments/types.d.ts +119 -0
- package/dist/components/Payments/types.d.ts.map +1 -0
- package/dist/components/Payments/types.js +27 -0
- package/dist/components/Payments/types.js.map +1 -0
- package/dist/components/Payments/usePayments.d.ts +33 -0
- package/dist/components/Payments/usePayments.d.ts.map +1 -0
- package/dist/components/Payments/usePayments.js +249 -0
- package/dist/components/Payments/usePayments.js.map +1 -0
- package/dist/components/Privy/InitTimeoutScreen.d.ts +62 -0
- package/dist/components/Privy/InitTimeoutScreen.d.ts.map +1 -0
- package/dist/components/Privy/InitTimeoutScreen.js +64 -0
- package/dist/components/Privy/InitTimeoutScreen.js.map +1 -0
- package/dist/components/Privy/InitializingScreen.d.ts +56 -0
- package/dist/components/Privy/InitializingScreen.d.ts.map +1 -0
- package/dist/components/Privy/InitializingScreen.js +60 -0
- package/dist/components/Privy/InitializingScreen.js.map +1 -0
- package/dist/components/Privy/PrivyLoginButton.d.ts +27 -0
- package/dist/components/Privy/PrivyLoginButton.d.ts.map +1 -0
- package/dist/components/Privy/PrivyLoginButton.js +48 -0
- package/dist/components/Privy/PrivyLoginButton.js.map +1 -0
- package/dist/components/Privy/PrivyProtectedRoute.d.ts +22 -0
- package/dist/components/Privy/PrivyProtectedRoute.d.ts.map +1 -0
- package/dist/components/Privy/PrivyProtectedRoute.js +46 -0
- package/dist/components/Privy/PrivyProtectedRoute.js.map +1 -0
- package/dist/components/Privy/PrivyReadyGate.d.ts +69 -0
- package/dist/components/Privy/PrivyReadyGate.d.ts.map +1 -0
- package/dist/components/Privy/PrivyReadyGate.js +83 -0
- package/dist/components/Privy/PrivyReadyGate.js.map +1 -0
- package/dist/components/Privy/PrivyUserProfile.d.ts +25 -0
- package/dist/components/Privy/PrivyUserProfile.d.ts.map +1 -0
- package/dist/components/Privy/PrivyUserProfile.js +98 -0
- package/dist/components/Privy/PrivyUserProfile.js.map +1 -0
- package/dist/components/Privy/index.d.ts +21 -0
- package/dist/components/Privy/index.d.ts.map +1 -0
- package/dist/components/Privy/index.js +16 -0
- package/dist/components/Privy/index.js.map +1 -0
- package/dist/components/SIWE/AuthStatus.d.ts +15 -0
- package/dist/components/SIWE/AuthStatus.d.ts.map +1 -0
- package/dist/components/SIWE/AuthStatus.js +47 -0
- package/dist/components/SIWE/AuthStatus.js.map +1 -0
- package/dist/components/SIWE/ProtectedRoute.d.ts +17 -0
- package/dist/components/SIWE/ProtectedRoute.d.ts.map +1 -0
- package/dist/components/SIWE/ProtectedRoute.js +52 -0
- package/dist/components/SIWE/ProtectedRoute.js.map +1 -0
- package/dist/components/SIWE/SIWEButton.d.ts +22 -0
- package/dist/components/SIWE/SIWEButton.d.ts.map +1 -0
- package/dist/components/SIWE/SIWEButton.js +106 -0
- package/dist/components/SIWE/SIWEButton.js.map +1 -0
- package/dist/components/SIWE/SIWEModal.d.ts +19 -0
- package/dist/components/SIWE/SIWEModal.d.ts.map +1 -0
- package/dist/components/SIWE/SIWEModal.js +75 -0
- package/dist/components/SIWE/SIWEModal.js.map +1 -0
- package/dist/components/SIWE/SIWEProvider.d.ts +38 -0
- package/dist/components/SIWE/SIWEProvider.d.ts.map +1 -0
- package/dist/components/SIWE/SIWEProvider.js +227 -0
- package/dist/components/SIWE/SIWEProvider.js.map +1 -0
- package/dist/components/SIWE/index.d.ts +15 -0
- package/dist/components/SIWE/index.d.ts.map +1 -0
- package/dist/components/SIWE/index.js +10 -0
- package/dist/components/SIWE/index.js.map +1 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +16 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/templates/Finance/FinanceDashboard.d.ts +15 -0
- package/dist/components/templates/Finance/FinanceDashboard.d.ts.map +1 -0
- package/dist/components/templates/Finance/FinanceDashboard.js +112 -0
- package/dist/components/templates/Finance/FinanceDashboard.js.map +1 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts +15 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts.map +1 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.js +121 -0
- package/dist/components/templates/Healthcare/HealthcareDashboard.js.map +1 -0
- package/dist/components/templates/ISO/ISODashboard.d.ts +15 -0
- package/dist/components/templates/ISO/ISODashboard.d.ts.map +1 -0
- package/dist/components/templates/ISO/ISODashboard.js +184 -0
- package/dist/components/templates/ISO/ISODashboard.js.map +1 -0
- package/dist/components/templates/Retail/RetailDashboard.d.ts +15 -0
- package/dist/components/templates/Retail/RetailDashboard.d.ts.map +1 -0
- package/dist/components/templates/Retail/RetailDashboard.js +151 -0
- package/dist/components/templates/Retail/RetailDashboard.js.map +1 -0
- package/dist/components/templates/index.d.ts +14 -0
- package/dist/components/templates/index.d.ts.map +1 -0
- package/dist/components/templates/index.js +14 -0
- package/dist/components/templates/index.js.map +1 -0
- package/dist/config/chains.d.ts +23 -0
- package/dist/config/chains.d.ts.map +1 -0
- package/dist/config/chains.js +55 -0
- package/dist/config/chains.js.map +1 -0
- package/dist/core/VarityClient.d.ts +76 -0
- package/dist/core/VarityClient.d.ts.map +1 -0
- package/dist/core/VarityClient.js +99 -0
- package/dist/core/VarityClient.js.map +1 -0
- package/dist/core/config.d.ts +136 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +156 -0
- package/dist/core/config.js.map +1 -0
- package/dist/hooks/index.d.ts +17 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +18 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useAnalytics.d.ts +94 -0
- package/dist/hooks/useAnalytics.d.ts.map +1 -0
- package/dist/hooks/useAnalytics.js +116 -0
- package/dist/hooks/useAnalytics.js.map +1 -0
- package/dist/hooks/useAuth.d.ts +71 -0
- package/dist/hooks/useAuth.d.ts.map +1 -0
- package/dist/hooks/useAuth.js +198 -0
- package/dist/hooks/useAuth.js.map +1 -0
- package/dist/hooks/useDashboard.d.ts +110 -0
- package/dist/hooks/useDashboard.d.ts.map +1 -0
- package/dist/hooks/useDashboard.js +201 -0
- package/dist/hooks/useDashboard.js.map +1 -0
- package/dist/hooks/useVarityAPI.d.ts +88 -0
- package/dist/hooks/useVarityAPI.d.ts.map +1 -0
- package/dist/hooks/useVarityAPI.js +138 -0
- package/dist/hooks/useVarityAPI.js.map +1 -0
- package/dist/hooks/useWalletAuth.d.ts +108 -0
- package/dist/hooks/useWalletAuth.d.ts.map +1 -0
- package/dist/hooks/useWalletAuth.js +415 -0
- package/dist/hooks/useWalletAuth.js.map +1 -0
- package/dist/hooks/web3/index.d.ts +5 -0
- package/dist/hooks/web3/index.d.ts.map +1 -0
- package/dist/hooks/web3/index.js +6 -0
- package/dist/hooks/web3/index.js.map +1 -0
- package/dist/hooks/web3/useAddressValidation.d.ts +37 -0
- package/dist/hooks/web3/useAddressValidation.d.ts.map +1 -0
- package/dist/hooks/web3/useAddressValidation.js +59 -0
- package/dist/hooks/web3/useAddressValidation.js.map +1 -0
- package/dist/hooks/web3/useBlockExplorer.d.ts +37 -0
- package/dist/hooks/web3/useBlockExplorer.d.ts.map +1 -0
- package/dist/hooks/web3/useBlockExplorer.js +59 -0
- package/dist/hooks/web3/useBlockExplorer.js.map +1 -0
- package/dist/hooks/web3/useUSDCFormat.d.ts +34 -0
- package/dist/hooks/web3/useUSDCFormat.d.ts.map +1 -0
- package/dist/hooks/web3/useUSDCFormat.js +43 -0
- package/dist/hooks/web3/useUSDCFormat.js.map +1 -0
- package/dist/hooks/web3/useVarityWallet.d.ts +48 -0
- package/dist/hooks/web3/useVarityWallet.d.ts.map +1 -0
- package/dist/hooks/web3/useVarityWallet.js +70 -0
- package/dist/hooks/web3/useVarityWallet.js.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/analytics/AnalyticsClient.d.ts +72 -0
- package/dist/modules/analytics/AnalyticsClient.d.ts.map +1 -0
- package/dist/modules/analytics/AnalyticsClient.js +56 -0
- package/dist/modules/analytics/AnalyticsClient.js.map +1 -0
- package/dist/modules/analytics/index.d.ts +2 -0
- package/dist/modules/analytics/index.d.ts.map +1 -0
- package/dist/modules/analytics/index.js +2 -0
- package/dist/modules/analytics/index.js.map +1 -0
- package/dist/modules/auth/AuthClient.d.ts +41 -0
- package/dist/modules/auth/AuthClient.d.ts.map +1 -0
- package/dist/modules/auth/AuthClient.js +36 -0
- package/dist/modules/auth/AuthClient.js.map +1 -0
- package/dist/modules/auth/index.d.ts +2 -0
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/index.js +2 -0
- package/dist/modules/auth/index.js.map +1 -0
- package/dist/modules/cache/CacheClient.d.ts +48 -0
- package/dist/modules/cache/CacheClient.d.ts.map +1 -0
- package/dist/modules/cache/CacheClient.js +59 -0
- package/dist/modules/cache/CacheClient.js.map +1 -0
- package/dist/modules/cache/index.d.ts +2 -0
- package/dist/modules/cache/index.d.ts.map +1 -0
- package/dist/modules/cache/index.js +2 -0
- package/dist/modules/cache/index.js.map +1 -0
- package/dist/modules/compute/ComputeClient.d.ts +54 -0
- package/dist/modules/compute/ComputeClient.d.ts.map +1 -0
- package/dist/modules/compute/ComputeClient.js +39 -0
- package/dist/modules/compute/ComputeClient.js.map +1 -0
- package/dist/modules/compute/index.d.ts +2 -0
- package/dist/modules/compute/index.d.ts.map +1 -0
- package/dist/modules/compute/index.js +2 -0
- package/dist/modules/compute/index.js.map +1 -0
- package/dist/modules/export/ExportClient.d.ts +56 -0
- package/dist/modules/export/ExportClient.d.ts.map +1 -0
- package/dist/modules/export/ExportClient.js +42 -0
- package/dist/modules/export/ExportClient.js.map +1 -0
- package/dist/modules/export/index.d.ts +2 -0
- package/dist/modules/export/index.d.ts.map +1 -0
- package/dist/modules/export/index.js +2 -0
- package/dist/modules/export/index.js.map +1 -0
- package/dist/modules/forecasting/ForecastingClient.d.ts +112 -0
- package/dist/modules/forecasting/ForecastingClient.d.ts.map +1 -0
- package/dist/modules/forecasting/ForecastingClient.js +48 -0
- package/dist/modules/forecasting/ForecastingClient.js.map +1 -0
- package/dist/modules/forecasting/index.d.ts +2 -0
- package/dist/modules/forecasting/index.d.ts.map +1 -0
- package/dist/modules/forecasting/index.js +2 -0
- package/dist/modules/forecasting/index.js.map +1 -0
- package/dist/modules/monitoring/MonitoringClient.d.ts +67 -0
- package/dist/modules/monitoring/MonitoringClient.d.ts.map +1 -0
- package/dist/modules/monitoring/MonitoringClient.js +48 -0
- package/dist/modules/monitoring/MonitoringClient.js.map +1 -0
- package/dist/modules/monitoring/index.d.ts +2 -0
- package/dist/modules/monitoring/index.d.ts.map +1 -0
- package/dist/modules/monitoring/index.js +2 -0
- package/dist/modules/monitoring/index.js.map +1 -0
- package/dist/modules/notifications/NotificationsClient.d.ts +68 -0
- package/dist/modules/notifications/NotificationsClient.d.ts.map +1 -0
- package/dist/modules/notifications/NotificationsClient.js +50 -0
- package/dist/modules/notifications/NotificationsClient.js.map +1 -0
- package/dist/modules/notifications/index.d.ts +2 -0
- package/dist/modules/notifications/index.d.ts.map +1 -0
- package/dist/modules/notifications/index.js +2 -0
- package/dist/modules/notifications/index.js.map +1 -0
- package/dist/modules/oracle/OracleClient.d.ts +48 -0
- package/dist/modules/oracle/OracleClient.d.ts.map +1 -0
- package/dist/modules/oracle/OracleClient.js +34 -0
- package/dist/modules/oracle/OracleClient.js.map +1 -0
- package/dist/modules/oracle/index.d.ts +2 -0
- package/dist/modules/oracle/index.d.ts.map +1 -0
- package/dist/modules/oracle/index.js +2 -0
- package/dist/modules/oracle/index.js.map +1 -0
- package/dist/modules/storage/StorageClient.d.ts +44 -0
- package/dist/modules/storage/StorageClient.d.ts.map +1 -0
- package/dist/modules/storage/StorageClient.js +43 -0
- package/dist/modules/storage/StorageClient.js.map +1 -0
- package/dist/modules/storage/index.d.ts +2 -0
- package/dist/modules/storage/index.d.ts.map +1 -0
- package/dist/modules/storage/index.js +2 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/templates/TemplateDeploymentClient.d.ts +208 -0
- package/dist/modules/templates/TemplateDeploymentClient.d.ts.map +1 -0
- package/dist/modules/templates/TemplateDeploymentClient.js +101 -0
- package/dist/modules/templates/TemplateDeploymentClient.js.map +1 -0
- package/dist/modules/templates/index.d.ts +8 -0
- package/dist/modules/templates/index.d.ts.map +1 -0
- package/dist/modules/templates/index.js +7 -0
- package/dist/modules/templates/index.js.map +1 -0
- package/dist/modules/webhooks/WebhooksClient.d.ts +85 -0
- package/dist/modules/webhooks/WebhooksClient.d.ts.map +1 -0
- package/dist/modules/webhooks/WebhooksClient.js +68 -0
- package/dist/modules/webhooks/WebhooksClient.js.map +1 -0
- package/dist/modules/webhooks/index.d.ts +2 -0
- package/dist/modules/webhooks/index.d.ts.map +1 -0
- package/dist/modules/webhooks/index.js +2 -0
- package/dist/modules/webhooks/index.js.map +1 -0
- package/dist/modules/zk/ZKClient.d.ts +67 -0
- package/dist/modules/zk/ZKClient.d.ts.map +1 -0
- package/dist/modules/zk/ZKClient.js +36 -0
- package/dist/modules/zk/ZKClient.js.map +1 -0
- package/dist/modules/zk/index.d.ts +2 -0
- package/dist/modules/zk/index.d.ts.map +1 -0
- package/dist/modules/zk/index.js +2 -0
- package/dist/modules/zk/index.js.map +1 -0
- package/dist/providers/ChainContext.d.ts +65 -0
- package/dist/providers/ChainContext.d.ts.map +1 -0
- package/dist/providers/ChainContext.js +92 -0
- package/dist/providers/ChainContext.js.map +1 -0
- package/dist/providers/PrivyProvider.d.ts +42 -0
- package/dist/providers/PrivyProvider.d.ts.map +1 -0
- package/dist/providers/PrivyProvider.js +131 -0
- package/dist/providers/PrivyProvider.js.map +1 -0
- package/dist/providers/PrivyStack.d.ts +165 -0
- package/dist/providers/PrivyStack.d.ts.map +1 -0
- package/dist/providers/PrivyStack.js +295 -0
- package/dist/providers/PrivyStack.js.map +1 -0
- package/dist/providers/VarityDashboardProvider.d.ts +90 -0
- package/dist/providers/VarityDashboardProvider.d.ts.map +1 -0
- package/dist/providers/VarityDashboardProvider.js +242 -0
- package/dist/providers/VarityDashboardProvider.js.map +1 -0
- package/dist/providers/VarityProvider.d.ts +32 -0
- package/dist/providers/VarityProvider.d.ts.map +1 -0
- package/dist/providers/VarityProvider.js +56 -0
- package/dist/providers/VarityProvider.js.map +1 -0
- package/dist/providers/WalletContext.d.ts +68 -0
- package/dist/providers/WalletContext.d.ts.map +1 -0
- package/dist/providers/WalletContext.js +98 -0
- package/dist/providers/WalletContext.js.map +1 -0
- package/dist/providers/WalletSyncProvider.d.ts +84 -0
- package/dist/providers/WalletSyncProvider.d.ts.map +1 -0
- package/dist/providers/WalletSyncProvider.js +132 -0
- package/dist/providers/WalletSyncProvider.js.map +1 -0
- package/dist/providers/index.d.ts +47 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +51 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/tests/mocks/httpClient.mock.d.ts +62 -0
- package/dist/tests/mocks/httpClient.mock.d.ts.map +1 -0
- package/dist/tests/mocks/httpClient.mock.js +108 -0
- package/dist/tests/mocks/httpClient.mock.js.map +1 -0
- package/dist/tests/setup.d.ts +6 -0
- package/dist/tests/setup.d.ts.map +1 -0
- package/dist/tests/setup.js +51 -0
- package/dist/tests/setup.js.map +1 -0
- package/dist/types/api-extensions.d.ts +92 -0
- package/dist/types/api-extensions.d.ts.map +1 -0
- package/dist/types/api-extensions.js +7 -0
- package/dist/types/api-extensions.js.map +1 -0
- package/dist/utils/http.d.ts +51 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/http.js +104 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/wallets/SimpleSmartWallet.d.ts +68 -0
- package/dist/wallets/SimpleSmartWallet.d.ts.map +1 -0
- package/dist/wallets/SimpleSmartWallet.js +74 -0
- package/dist/wallets/SimpleSmartWallet.js.map +1 -0
- package/dist/wallets/SmartWalletProvider.d.ts +217 -0
- package/dist/wallets/SmartWalletProvider.d.ts.map +1 -0
- package/dist/wallets/SmartWalletProvider.js +366 -0
- package/dist/wallets/SmartWalletProvider.js.map +1 -0
- package/dist/wallets/config.d.ts +199 -0
- package/dist/wallets/config.d.ts.map +1 -0
- package/dist/wallets/config.js +183 -0
- package/dist/wallets/config.js.map +1 -0
- package/dist/wallets/index.d.ts +9 -0
- package/dist/wallets/index.d.ts.map +1 -0
- package/dist/wallets/index.js +9 -0
- package/dist/wallets/index.js.map +1 -0
- package/dist/web3/AddressDisplay/AddressDisplay.d.ts +33 -0
- package/dist/web3/AddressDisplay/AddressDisplay.d.ts.map +1 -0
- package/dist/web3/AddressDisplay/AddressDisplay.js +42 -0
- package/dist/web3/AddressDisplay/AddressDisplay.js.map +1 -0
- package/dist/web3/AddressInput/AddressInput.d.ts +36 -0
- package/dist/web3/AddressInput/AddressInput.d.ts.map +1 -0
- package/dist/web3/AddressInput/AddressInput.js +54 -0
- package/dist/web3/AddressInput/AddressInput.js.map +1 -0
- package/dist/web3/AmountInput/AmountInput.d.ts +41 -0
- package/dist/web3/AmountInput/AmountInput.d.ts.map +1 -0
- package/dist/web3/AmountInput/AmountInput.js +74 -0
- package/dist/web3/AmountInput/AmountInput.js.map +1 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.d.ts +30 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.d.ts.map +1 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.js +35 -0
- package/dist/web3/BalanceDisplay/BalanceDisplay.js.map +1 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.d.ts +41 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.d.ts.map +1 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.js +46 -0
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.js.map +1 -0
- package/dist/web3/ConnectWallet/ConnectWallet.d.ts +35 -0
- package/dist/web3/ConnectWallet/ConnectWallet.d.ts.map +1 -0
- package/dist/web3/ConnectWallet/ConnectWallet.js +58 -0
- package/dist/web3/ConnectWallet/ConnectWallet.js.map +1 -0
- package/dist/web3/DisconnectButton/DisconnectButton.d.ts +30 -0
- package/dist/web3/DisconnectButton/DisconnectButton.d.ts.map +1 -0
- package/dist/web3/DisconnectButton/DisconnectButton.js +48 -0
- package/dist/web3/DisconnectButton/DisconnectButton.js.map +1 -0
- package/dist/web3/WalletBalance/WalletBalance.d.ts +27 -0
- package/dist/web3/WalletBalance/WalletBalance.d.ts.map +1 -0
- package/dist/web3/WalletBalance/WalletBalance.js +49 -0
- package/dist/web3/WalletBalance/WalletBalance.js.map +1 -0
- package/dist/web3/WalletDropdown/WalletDropdown.d.ts +29 -0
- package/dist/web3/WalletDropdown/WalletDropdown.d.ts.map +1 -0
- package/dist/web3/WalletDropdown/WalletDropdown.js +93 -0
- package/dist/web3/WalletDropdown/WalletDropdown.js.map +1 -0
- package/dist/web3/WalletInfo/WalletInfo.d.ts +31 -0
- package/dist/web3/WalletInfo/WalletInfo.d.ts.map +1 -0
- package/dist/web3/WalletInfo/WalletInfo.js +41 -0
- package/dist/web3/WalletInfo/WalletInfo.js.map +1 -0
- package/dist/web3/index.d.ts +11 -0
- package/dist/web3/index.d.ts.map +1 -0
- package/dist/web3/index.js +14 -0
- package/dist/web3/index.js.map +1 -0
- package/package.json +105 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retail Industry Dashboard Template
|
|
3
|
+
*
|
|
4
|
+
* Pre-configured dashboard for retail industry
|
|
5
|
+
* Features: E-commerce, Inventory, Supply Chain, Sales Analytics
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export const RetailDashboard = ({ dashboard, onCustomize, className = '' }) => {
|
|
9
|
+
const { customization, metrics, storage } = dashboard;
|
|
10
|
+
return (React.createElement("div", { className: `retail-dashboard ${className}` },
|
|
11
|
+
React.createElement("header", { className: "dashboard-header retail-theme" },
|
|
12
|
+
React.createElement("div", { className: "branding" },
|
|
13
|
+
React.createElement("h1", null, customization.branding?.companyName || 'Retail Dashboard'),
|
|
14
|
+
React.createElement("p", { className: "subtitle" }, "E-commerce & Inventory Management")),
|
|
15
|
+
React.createElement("div", { className: "metrics-summary" },
|
|
16
|
+
React.createElement("div", { className: "metric" },
|
|
17
|
+
React.createElement("span", { className: "label" }, "Online Store Uptime"),
|
|
18
|
+
React.createElement("span", { className: "value" },
|
|
19
|
+
metrics.uptime.toFixed(2),
|
|
20
|
+
"%")),
|
|
21
|
+
React.createElement("div", { className: "metric" },
|
|
22
|
+
React.createElement("span", { className: "label" }, "Active Customers"),
|
|
23
|
+
React.createElement("span", { className: "value" }, metrics.activeUsers)),
|
|
24
|
+
React.createElement("div", { className: "metric" },
|
|
25
|
+
React.createElement("span", { className: "label" }, "Orders/Day"),
|
|
26
|
+
React.createElement("span", { className: "value" }, metrics.requestsPerDay.toLocaleString())))),
|
|
27
|
+
React.createElement("main", { className: "dashboard-content" },
|
|
28
|
+
React.createElement("section", { className: "sales-overview-section" },
|
|
29
|
+
React.createElement("h2", null, "Sales Performance"),
|
|
30
|
+
React.createElement("div", { className: "sales-grid" },
|
|
31
|
+
React.createElement("div", { className: "sales-card" },
|
|
32
|
+
React.createElement("h3", null, "Today's Sales"),
|
|
33
|
+
React.createElement("p", { className: "sales-value" }, "$12,456"),
|
|
34
|
+
React.createElement("span", { className: "sales-change positive" }, "+18.5% vs yesterday")),
|
|
35
|
+
React.createElement("div", { className: "sales-card" },
|
|
36
|
+
React.createElement("h3", null, "Orders"),
|
|
37
|
+
React.createElement("p", { className: "sales-value" }, "234"),
|
|
38
|
+
React.createElement("span", { className: "sales-change positive" }, "+12%")),
|
|
39
|
+
React.createElement("div", { className: "sales-card" },
|
|
40
|
+
React.createElement("h3", null, "Avg Order Value"),
|
|
41
|
+
React.createElement("p", { className: "sales-value" }, "$53.25"),
|
|
42
|
+
React.createElement("span", { className: "sales-change neutral" }, "-2.1%")),
|
|
43
|
+
React.createElement("div", { className: "sales-card" },
|
|
44
|
+
React.createElement("h3", null, "Conversion Rate"),
|
|
45
|
+
React.createElement("p", { className: "sales-value" }, "3.8%"),
|
|
46
|
+
React.createElement("span", { className: "sales-change positive" }, "+0.5%")))),
|
|
47
|
+
React.createElement("section", { className: "inventory-section" },
|
|
48
|
+
React.createElement("h2", null, "Inventory Management"),
|
|
49
|
+
React.createElement("div", { className: "inventory-grid" },
|
|
50
|
+
React.createElement("div", { className: "inventory-item" },
|
|
51
|
+
React.createElement("h4", null, "Total SKUs"),
|
|
52
|
+
React.createElement("p", { className: "inventory-count" }, "1,245"),
|
|
53
|
+
React.createElement("div", { className: "inventory-breakdown" },
|
|
54
|
+
React.createElement("span", { className: "in-stock" }, "980 In Stock"),
|
|
55
|
+
React.createElement("span", { className: "low-stock" }, "145 Low Stock"),
|
|
56
|
+
React.createElement("span", { className: "out-of-stock" }, "120 Out of Stock"))),
|
|
57
|
+
React.createElement("div", { className: "inventory-item" },
|
|
58
|
+
React.createElement("h4", null, "Top Selling Products"),
|
|
59
|
+
React.createElement("ul", { className: "product-list" },
|
|
60
|
+
React.createElement("li", null,
|
|
61
|
+
React.createElement("span", { className: "product-name" }, "Wireless Headphones"),
|
|
62
|
+
React.createElement("span", { className: "product-sales" }, "234 units")),
|
|
63
|
+
React.createElement("li", null,
|
|
64
|
+
React.createElement("span", { className: "product-name" }, "Smart Watch"),
|
|
65
|
+
React.createElement("span", { className: "product-sales" }, "189 units")),
|
|
66
|
+
React.createElement("li", null,
|
|
67
|
+
React.createElement("span", { className: "product-name" }, "Laptop Stand"),
|
|
68
|
+
React.createElement("span", { className: "product-sales" }, "156 units")))),
|
|
69
|
+
React.createElement("div", { className: "inventory-item" },
|
|
70
|
+
React.createElement("h4", null, "Restock Alerts"),
|
|
71
|
+
React.createElement("div", { className: "alert-list" },
|
|
72
|
+
React.createElement("div", { className: "alert urgent" },
|
|
73
|
+
React.createElement("span", null, "\u26A0\uFE0F Wireless Mouse - Only 5 left")),
|
|
74
|
+
React.createElement("div", { className: "alert warning" },
|
|
75
|
+
React.createElement("span", null, "\u26A1 USB-C Cable - Low stock (12 units)")))))),
|
|
76
|
+
React.createElement("section", { className: "supply-chain-section" },
|
|
77
|
+
React.createElement("h2", null, "Supply Chain Status"),
|
|
78
|
+
React.createElement("div", { className: "supply-chain-grid" },
|
|
79
|
+
React.createElement("div", { className: "shipment-card" },
|
|
80
|
+
React.createElement("h4", null, "Incoming Shipments"),
|
|
81
|
+
React.createElement("p", { className: "shipment-count" }, "12 shipments"),
|
|
82
|
+
React.createElement("div", { className: "shipment-status" },
|
|
83
|
+
React.createElement("span", { className: "status-in-transit" }, "8 in transit"),
|
|
84
|
+
React.createElement("span", { className: "status-delayed" }, "2 delayed"),
|
|
85
|
+
React.createElement("span", { className: "status-delivered" }, "2 delivered"))),
|
|
86
|
+
React.createElement("div", { className: "shipment-card" },
|
|
87
|
+
React.createElement("h4", null, "Fulfillment Status"),
|
|
88
|
+
React.createElement("p", { className: "fulfillment-rate" }, "96.5%"),
|
|
89
|
+
React.createElement("span", { className: "fulfillment-note" }, "234/242 orders fulfilled")),
|
|
90
|
+
React.createElement("div", { className: "shipment-card" },
|
|
91
|
+
React.createElement("h4", null, "Supplier Performance"),
|
|
92
|
+
React.createElement("div", { className: "supplier-ratings" },
|
|
93
|
+
React.createElement("div", { className: "supplier" },
|
|
94
|
+
React.createElement("span", null, "Supplier A"),
|
|
95
|
+
React.createElement("span", { className: "rating" }, "\u2B50\u2B50\u2B50\u2B50\u2B50")),
|
|
96
|
+
React.createElement("div", { className: "supplier" },
|
|
97
|
+
React.createElement("span", null, "Supplier B"),
|
|
98
|
+
React.createElement("span", { className: "rating" }, "\u2B50\u2B50\u2B50\u2B50")))))),
|
|
99
|
+
React.createElement("section", { className: "ecommerce-analytics-section" },
|
|
100
|
+
React.createElement("h2", null, "E-commerce Analytics"),
|
|
101
|
+
React.createElement("div", { className: "analytics-grid" },
|
|
102
|
+
React.createElement("div", { className: "analytics-card" },
|
|
103
|
+
React.createElement("h4", null, "Traffic Sources"),
|
|
104
|
+
React.createElement("ul", { className: "traffic-list" },
|
|
105
|
+
React.createElement("li", null,
|
|
106
|
+
React.createElement("span", null, "Direct"),
|
|
107
|
+
React.createElement("span", null, "42%")),
|
|
108
|
+
React.createElement("li", null,
|
|
109
|
+
React.createElement("span", null, "Organic Search"),
|
|
110
|
+
React.createElement("span", null, "31%")),
|
|
111
|
+
React.createElement("li", null,
|
|
112
|
+
React.createElement("span", null, "Social Media"),
|
|
113
|
+
React.createElement("span", null, "18%")),
|
|
114
|
+
React.createElement("li", null,
|
|
115
|
+
React.createElement("span", null, "Paid Ads"),
|
|
116
|
+
React.createElement("span", null, "9%")))),
|
|
117
|
+
React.createElement("div", { className: "analytics-card" },
|
|
118
|
+
React.createElement("h4", null, "Customer Acquisition"),
|
|
119
|
+
React.createElement("p", { className: "cac" }, "CAC: $12.50"),
|
|
120
|
+
React.createElement("p", { className: "ltv" }, "LTV: $185.00"),
|
|
121
|
+
React.createElement("span", { className: "ltv-cac-ratio" }, "LTV/CAC: 14.8x")))),
|
|
122
|
+
React.createElement("section", { className: "storage-section" },
|
|
123
|
+
React.createElement("h2", null, "Retail Data Storage"),
|
|
124
|
+
React.createElement("div", { className: "storage-info" },
|
|
125
|
+
React.createElement("div", { className: "storage-item" },
|
|
126
|
+
React.createElement("h4", null, "Retail Knowledge Base (Layer 2 - Shared)"),
|
|
127
|
+
React.createElement("p", null,
|
|
128
|
+
"Namespace: ",
|
|
129
|
+
storage.layer2Namespace),
|
|
130
|
+
React.createElement("p", null, "Contains: E-commerce best practices, inventory optimization, supply chain guides"),
|
|
131
|
+
React.createElement("p", null, "Encryption: Lit Protocol (Industry-level access)")),
|
|
132
|
+
React.createElement("div", { className: "storage-item" },
|
|
133
|
+
React.createElement("h4", null, "Product & Customer Data (Layer 3 - Private)"),
|
|
134
|
+
React.createElement("p", null,
|
|
135
|
+
"Namespace: ",
|
|
136
|
+
storage.layer3Namespace),
|
|
137
|
+
React.createElement("p", null,
|
|
138
|
+
"Total Records: ",
|
|
139
|
+
storage.totalDocuments.toLocaleString()),
|
|
140
|
+
React.createElement("p", null,
|
|
141
|
+
"Storage Used: ",
|
|
142
|
+
storage.storageUsedGB.toFixed(2),
|
|
143
|
+
" GB"),
|
|
144
|
+
React.createElement("p", null, "Encryption: Lit Protocol (Customer-only access)"))))),
|
|
145
|
+
React.createElement("footer", { className: "dashboard-footer" },
|
|
146
|
+
React.createElement("p", null, "Powered by Varity | E-commerce & Retail Management Platform"),
|
|
147
|
+
React.createElement("p", null,
|
|
148
|
+
"Dashboard URL: ",
|
|
149
|
+
dashboard.dashboardUrl))));
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=RetailDashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetailDashboard.js","sourceRoot":"","sources":["../../../../src/components/templates/Retail/RetailDashboard.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,SAAS,EACT,WAAW,EACX,SAAS,GAAG,EAAE,EACf,EAAE,EAAE;IACH,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,SAAS,CAAA;IAErD,OAAO,CACL,6BAAK,SAAS,EAAE,oBAAoB,SAAS,EAAE;QAE7C,gCAAQ,SAAS,EAAC,+BAA+B;YAC/C,6BAAK,SAAS,EAAC,UAAU;gBACvB,gCAAK,aAAa,CAAC,QAAQ,EAAE,WAAW,IAAI,kBAAkB,CAAM;gBACpE,2BAAG,SAAS,EAAC,UAAU,wCAAsC,CACzD;YACN,6BAAK,SAAS,EAAC,iBAAiB;gBAC9B,6BAAK,SAAS,EAAC,QAAQ;oBACrB,8BAAM,SAAS,EAAC,OAAO,0BAA2B;oBAClD,8BAAM,SAAS,EAAC,OAAO;wBAAE,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;4BAAS,CACvD;gBACN,6BAAK,SAAS,EAAC,QAAQ;oBACrB,8BAAM,SAAS,EAAC,OAAO,uBAAwB;oBAC/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,6FAAkE;YAClE;;gBAAmB,SAAS,CAAC,YAAY,CAAK,CACvC,CACL,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Industry-Specific Dashboard Templates
|
|
3
|
+
*
|
|
4
|
+
* Pre-built React components for deploying industry dashboards
|
|
5
|
+
*/
|
|
6
|
+
export { FinanceDashboard } from './Finance/FinanceDashboard';
|
|
7
|
+
export type { FinanceDashboardProps } from './Finance/FinanceDashboard';
|
|
8
|
+
export { HealthcareDashboard } from './Healthcare/HealthcareDashboard';
|
|
9
|
+
export type { HealthcareDashboardProps } from './Healthcare/HealthcareDashboard';
|
|
10
|
+
export { RetailDashboard } from './Retail/RetailDashboard';
|
|
11
|
+
export type { RetailDashboardProps } from './Retail/RetailDashboard';
|
|
12
|
+
export { ISODashboard } from './ISO/ISODashboard';
|
|
13
|
+
export type { ISODashboardProps } from './ISO/ISODashboard';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/templates/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAGvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,YAAY,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAA;AAGhF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAGpE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Industry-Specific Dashboard Templates
|
|
3
|
+
*
|
|
4
|
+
* Pre-built React components for deploying industry dashboards
|
|
5
|
+
*/
|
|
6
|
+
// Finance Industry
|
|
7
|
+
export { FinanceDashboard } from './Finance/FinanceDashboard';
|
|
8
|
+
// Healthcare Industry
|
|
9
|
+
export { HealthcareDashboard } from './Healthcare/HealthcareDashboard';
|
|
10
|
+
// Retail Industry
|
|
11
|
+
export { RetailDashboard } from './Retail/RetailDashboard';
|
|
12
|
+
// ISO Merchant Services
|
|
13
|
+
export { ISODashboard } from './ISO/ISODashboard';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/templates/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mBAAmB;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAG7D,sBAAsB;AACtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGtE,kBAAkB;AAClB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAG1D,wBAAwB;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Varity UI Kit - Chain Configuration
|
|
3
|
+
*
|
|
4
|
+
* Re-exports chain configuration from @varity-labs/sdk for use in React components
|
|
5
|
+
* Provides multi-chain support for Varity L3, Arbitrum, Base, and more
|
|
6
|
+
*/
|
|
7
|
+
export { ChainRegistry, SUPPORTED_CHAINS, TESTNET_CHAINS, MAINNET_CHAINS, DEFAULT_CHAIN, chains, varityL3, varityL3Testnet, varityL3Wagmi, USDC_DECIMALS, VARITY_USDC_ADDRESS, formatUSDC, parseUSDC, formatAddress, getVarityExplorerUrl, arbitrum, arbitrumOne, arbitrumSepolia, arbitrumOneWagmi, arbitrumSepoliaWagmi, getArbitrumExplorerUrl, base, baseSepolia, baseWagmi, baseSepoliaWagmi, getBaseExplorerUrl, type ChainSelection, type ChainMetadata, } from '@varity-labs/sdk';
|
|
8
|
+
/**
|
|
9
|
+
* Thirdweb Client ID (for UI components)
|
|
10
|
+
*
|
|
11
|
+
* SECURITY: Client ID is loaded from environment variable or credential proxy.
|
|
12
|
+
* Never hardcode credentials in source code.
|
|
13
|
+
*/
|
|
14
|
+
export declare const THIRDWEB_CLIENT_ID: string;
|
|
15
|
+
/**
|
|
16
|
+
* Get block explorer URL for any supported chain
|
|
17
|
+
* @param chainId - Chain ID
|
|
18
|
+
* @param type - Type of explorer link (tx, address, block)
|
|
19
|
+
* @param hash - Transaction hash, address, or block number
|
|
20
|
+
* @returns Block explorer URL
|
|
21
|
+
*/
|
|
22
|
+
export declare function getBlockExplorerUrl(chainId: number, type: 'tx' | 'address' | 'block', hash: string): string;
|
|
23
|
+
//# sourceMappingURL=chains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/config/chains.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,EAEL,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,MAAM,EAEN,QAAQ,EACR,eAAe,EACf,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,aAAa,EACb,oBAAoB,EAEpB,QAAQ,EACR,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EAEtB,IAAI,EACJ,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAElB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,kBAAkB,CAAC;AAE1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAA4F,CAAC;AAE5H;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,CAoBR"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Varity UI Kit - Chain Configuration
|
|
3
|
+
*
|
|
4
|
+
* Re-exports chain configuration from @varity-labs/sdk for use in React components
|
|
5
|
+
* Provides multi-chain support for Varity L3, Arbitrum, Base, and more
|
|
6
|
+
*/
|
|
7
|
+
// Import for use in this file
|
|
8
|
+
import { ChainRegistry } from '@varity-labs/sdk';
|
|
9
|
+
// Re-export all chain configuration from @varity-labs/sdk
|
|
10
|
+
export {
|
|
11
|
+
// Chain Registry
|
|
12
|
+
ChainRegistry, SUPPORTED_CHAINS, TESTNET_CHAINS, MAINNET_CHAINS, DEFAULT_CHAIN, chains,
|
|
13
|
+
// Varity L3
|
|
14
|
+
varityL3, varityL3Testnet, varityL3Wagmi, USDC_DECIMALS, VARITY_USDC_ADDRESS, formatUSDC, parseUSDC, formatAddress, getVarityExplorerUrl,
|
|
15
|
+
// Arbitrum
|
|
16
|
+
arbitrum, arbitrumOne, arbitrumSepolia, arbitrumOneWagmi, arbitrumSepoliaWagmi, getArbitrumExplorerUrl,
|
|
17
|
+
// Base
|
|
18
|
+
base, baseSepolia, baseWagmi, baseSepoliaWagmi, getBaseExplorerUrl, } from '@varity-labs/sdk';
|
|
19
|
+
/**
|
|
20
|
+
* Thirdweb Client ID (for UI components)
|
|
21
|
+
*
|
|
22
|
+
* SECURITY: Client ID is loaded from environment variable or credential proxy.
|
|
23
|
+
* Never hardcode credentials in source code.
|
|
24
|
+
*/
|
|
25
|
+
export const THIRDWEB_CLIENT_ID = process.env.VARITY_THIRDWEB_CLIENT_ID || process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID || '';
|
|
26
|
+
/**
|
|
27
|
+
* Get block explorer URL for any supported chain
|
|
28
|
+
* @param chainId - Chain ID
|
|
29
|
+
* @param type - Type of explorer link (tx, address, block)
|
|
30
|
+
* @param hash - Transaction hash, address, or block number
|
|
31
|
+
* @returns Block explorer URL
|
|
32
|
+
*/
|
|
33
|
+
export function getBlockExplorerUrl(chainId, type, hash) {
|
|
34
|
+
// Try to get chain from registry
|
|
35
|
+
try {
|
|
36
|
+
const chain = ChainRegistry.getChain(chainId);
|
|
37
|
+
const baseUrl = chain.blockExplorers?.[0]?.url;
|
|
38
|
+
if (!baseUrl)
|
|
39
|
+
return '';
|
|
40
|
+
switch (type) {
|
|
41
|
+
case 'tx':
|
|
42
|
+
return `${baseUrl}/tx/${hash}`;
|
|
43
|
+
case 'address':
|
|
44
|
+
return `${baseUrl}/address/${hash}`;
|
|
45
|
+
case 'block':
|
|
46
|
+
return `${baseUrl}/block/${hash}`;
|
|
47
|
+
default:
|
|
48
|
+
return baseUrl;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
return '';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=chains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chains.js","sourceRoot":"","sources":["../../src/config/chains.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,0DAA0D;AAC1D,OAAO;AACL,iBAAiB;AACjB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,MAAM;AACN,YAAY;AACZ,QAAQ,EACR,eAAe,EACf,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,aAAa,EACb,oBAAoB;AACpB,WAAW;AACX,QAAQ,EACR,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB;AACtB,OAAO;AACP,IAAI,EACJ,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,kBAAkB,GAInB,MAAM,kBAAkB,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI,OAAO,CAAC,GAAG,CAAC,8BAA8B,IAAI,EAAE,CAAC;AAE5H;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,IAAgC,EAChC,IAAY;IAEZ,iCAAiC;IACjC,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;QAC/C,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QAExB,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,IAAI;gBACP,OAAO,GAAG,OAAO,OAAO,IAAI,EAAE,CAAC;YACjC,KAAK,SAAS;gBACZ,OAAO,GAAG,OAAO,YAAY,IAAI,EAAE,CAAC;YACtC,KAAK,OAAO;gBACV,OAAO,GAAG,OAAO,UAAU,IAAI,EAAE,CAAC;YACpC;gBACE,OAAO,OAAO,CAAC;QACnB,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Varity Client - Public Frontend SDK
|
|
3
|
+
*
|
|
4
|
+
* Lightweight API client for frontend applications.
|
|
5
|
+
* NO blockchain dependencies - all operations via REST API.
|
|
6
|
+
*/
|
|
7
|
+
import { HTTPClient } from '../utils/http';
|
|
8
|
+
import { AuthClient } from '../modules/auth';
|
|
9
|
+
import { StorageClient } from '../modules/storage';
|
|
10
|
+
import { ComputeClient } from '../modules/compute';
|
|
11
|
+
import { ZKClient } from '../modules/zk';
|
|
12
|
+
import { AnalyticsClient } from '../modules/analytics';
|
|
13
|
+
import { NotificationsClient } from '../modules/notifications';
|
|
14
|
+
import { ExportClient } from '../modules/export';
|
|
15
|
+
import { CacheClient } from '../modules/cache';
|
|
16
|
+
import { MonitoringClient } from '../modules/monitoring';
|
|
17
|
+
import { ForecastingClient } from '../modules/forecasting';
|
|
18
|
+
import { WebhooksClient } from '../modules/webhooks';
|
|
19
|
+
import { OracleClient } from '../modules/oracle';
|
|
20
|
+
import { TemplateDeploymentClient } from '../modules/templates';
|
|
21
|
+
export interface VarityClientConfig {
|
|
22
|
+
/** API endpoint (defaults to localhost:3009 for development) */
|
|
23
|
+
apiEndpoint?: string;
|
|
24
|
+
/** API key for authentication */
|
|
25
|
+
apiKey?: string;
|
|
26
|
+
/** Request timeout in milliseconds */
|
|
27
|
+
timeout?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* VarityClient - Main SDK class for frontend applications
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import { VarityClient } from '@varity-labs/ui-kit'
|
|
35
|
+
*
|
|
36
|
+
* const client = new VarityClient({
|
|
37
|
+
* apiEndpoint: 'http://localhost:3009',
|
|
38
|
+
* apiKey: 'your-api-key'
|
|
39
|
+
* })
|
|
40
|
+
*
|
|
41
|
+
* // Use modules
|
|
42
|
+
* const merchants = await client.merchants.list()
|
|
43
|
+
* const proof = await client.zk.proveMLInference('model-id', input, output)
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare class VarityClient {
|
|
47
|
+
private http;
|
|
48
|
+
private apiEndpoint;
|
|
49
|
+
auth: AuthClient;
|
|
50
|
+
storage: StorageClient;
|
|
51
|
+
compute: ComputeClient;
|
|
52
|
+
zk: ZKClient;
|
|
53
|
+
analytics: AnalyticsClient;
|
|
54
|
+
notifications: NotificationsClient;
|
|
55
|
+
export: ExportClient;
|
|
56
|
+
cache: CacheClient;
|
|
57
|
+
monitoring: MonitoringClient;
|
|
58
|
+
forecasting: ForecastingClient;
|
|
59
|
+
webhooks: WebhooksClient;
|
|
60
|
+
oracle: OracleClient;
|
|
61
|
+
templates: TemplateDeploymentClient;
|
|
62
|
+
constructor(config?: VarityClientConfig);
|
|
63
|
+
/**
|
|
64
|
+
* Get the API endpoint URL
|
|
65
|
+
*/
|
|
66
|
+
getAPIEndpoint(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Update API key
|
|
69
|
+
*/
|
|
70
|
+
setAPIKey(apiKey: string): void;
|
|
71
|
+
/**
|
|
72
|
+
* Get HTTP client (for advanced usage)
|
|
73
|
+
*/
|
|
74
|
+
getHTTPClient(): HTTPClient;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=VarityClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VarityClient.d.ts","sourceRoot":"","sources":["../../src/core/VarityClient.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAE/D,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,IAAI,CAAY;IACxB,OAAO,CAAC,WAAW,CAAQ;IAGpB,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,aAAa,CAAA;IACtB,OAAO,EAAE,aAAa,CAAA;IACtB,EAAE,EAAE,QAAQ,CAAA;IACZ,SAAS,EAAE,eAAe,CAAA;IAC1B,aAAa,EAAE,mBAAmB,CAAA;IAClC,MAAM,EAAE,YAAY,CAAA;IACpB,KAAK,EAAE,WAAW,CAAA;IAClB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,WAAW,EAAE,iBAAiB,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAA;IACxB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,wBAAwB,CAAA;gBAE9B,MAAM,GAAE,kBAAuB;IA0B3C;;OAEG;IACH,cAAc,IAAI,MAAM;IAIxB;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B;;OAEG;IACH,aAAa,IAAI,UAAU;CAG5B"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Varity Client - Public Frontend SDK
|
|
3
|
+
*
|
|
4
|
+
* Lightweight API client for frontend applications.
|
|
5
|
+
* NO blockchain dependencies - all operations via REST API.
|
|
6
|
+
*/
|
|
7
|
+
import { HTTPClient } from '../utils/http';
|
|
8
|
+
import { getAPIEndpoint, API_BASE_PATH } from './config';
|
|
9
|
+
// Import module clients
|
|
10
|
+
import { AuthClient } from '../modules/auth';
|
|
11
|
+
import { StorageClient } from '../modules/storage';
|
|
12
|
+
import { ComputeClient } from '../modules/compute';
|
|
13
|
+
import { ZKClient } from '../modules/zk';
|
|
14
|
+
import { AnalyticsClient } from '../modules/analytics';
|
|
15
|
+
import { NotificationsClient } from '../modules/notifications';
|
|
16
|
+
import { ExportClient } from '../modules/export';
|
|
17
|
+
import { CacheClient } from '../modules/cache';
|
|
18
|
+
import { MonitoringClient } from '../modules/monitoring';
|
|
19
|
+
import { ForecastingClient } from '../modules/forecasting';
|
|
20
|
+
import { WebhooksClient } from '../modules/webhooks';
|
|
21
|
+
import { OracleClient } from '../modules/oracle';
|
|
22
|
+
import { TemplateDeploymentClient } from '../modules/templates';
|
|
23
|
+
/**
|
|
24
|
+
* VarityClient - Main SDK class for frontend applications
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import { VarityClient } from '@varity-labs/ui-kit'
|
|
29
|
+
*
|
|
30
|
+
* const client = new VarityClient({
|
|
31
|
+
* apiEndpoint: 'http://localhost:3009',
|
|
32
|
+
* apiKey: 'your-api-key'
|
|
33
|
+
* })
|
|
34
|
+
*
|
|
35
|
+
* // Use modules
|
|
36
|
+
* const merchants = await client.merchants.list()
|
|
37
|
+
* const proof = await client.zk.proveMLInference('model-id', input, output)
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export class VarityClient {
|
|
41
|
+
http;
|
|
42
|
+
apiEndpoint;
|
|
43
|
+
// Module instances
|
|
44
|
+
auth;
|
|
45
|
+
storage;
|
|
46
|
+
compute;
|
|
47
|
+
zk;
|
|
48
|
+
analytics;
|
|
49
|
+
notifications;
|
|
50
|
+
export;
|
|
51
|
+
cache;
|
|
52
|
+
monitoring;
|
|
53
|
+
forecasting;
|
|
54
|
+
webhooks;
|
|
55
|
+
oracle;
|
|
56
|
+
templates;
|
|
57
|
+
constructor(config = {}) {
|
|
58
|
+
this.apiEndpoint = getAPIEndpoint(config.apiEndpoint);
|
|
59
|
+
// Initialize HTTP client
|
|
60
|
+
this.http = new HTTPClient({
|
|
61
|
+
baseURL: `${this.apiEndpoint}${API_BASE_PATH}`,
|
|
62
|
+
apiKey: config.apiKey,
|
|
63
|
+
timeout: config.timeout
|
|
64
|
+
});
|
|
65
|
+
// Initialize module clients
|
|
66
|
+
this.auth = new AuthClient(this.http);
|
|
67
|
+
this.storage = new StorageClient(this.http);
|
|
68
|
+
this.compute = new ComputeClient(this.http);
|
|
69
|
+
this.zk = new ZKClient(this.http);
|
|
70
|
+
this.analytics = new AnalyticsClient(this.http);
|
|
71
|
+
this.notifications = new NotificationsClient(this.http);
|
|
72
|
+
this.export = new ExportClient(this.http);
|
|
73
|
+
this.cache = new CacheClient(this.http);
|
|
74
|
+
this.monitoring = new MonitoringClient(this.http);
|
|
75
|
+
this.forecasting = new ForecastingClient(this.http);
|
|
76
|
+
this.webhooks = new WebhooksClient(this.http);
|
|
77
|
+
this.oracle = new OracleClient(this.http);
|
|
78
|
+
this.templates = new TemplateDeploymentClient(this.http);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get the API endpoint URL
|
|
82
|
+
*/
|
|
83
|
+
getAPIEndpoint() {
|
|
84
|
+
return this.apiEndpoint;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Update API key
|
|
88
|
+
*/
|
|
89
|
+
setAPIKey(apiKey) {
|
|
90
|
+
this.http.setAPIKey(apiKey);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get HTTP client (for advanced usage)
|
|
94
|
+
*/
|
|
95
|
+
getHTTPClient() {
|
|
96
|
+
return this.http;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=VarityClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VarityClient.js","sourceRoot":"","sources":["../../src/core/VarityClient.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE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;OAEG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,MAAc;QACtB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,IAAI,CAAA;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Varity UI Kit - Configuration
|
|
3
|
+
*
|
|
4
|
+
* Configuration for the public frontend SDK.
|
|
5
|
+
* All blockchain/crypto operations are handled by the API server.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Default API endpoint for development
|
|
9
|
+
*/
|
|
10
|
+
export declare const DEFAULT_API_ENDPOINT = "http://localhost:3009";
|
|
11
|
+
/**
|
|
12
|
+
* API base path
|
|
13
|
+
*/
|
|
14
|
+
export declare const API_BASE_PATH = "/api/v1";
|
|
15
|
+
/**
|
|
16
|
+
* API endpoints configuration
|
|
17
|
+
*/
|
|
18
|
+
export declare const API_ENDPOINTS: {
|
|
19
|
+
auth: {
|
|
20
|
+
login: string;
|
|
21
|
+
logout: string;
|
|
22
|
+
me: string;
|
|
23
|
+
refresh: string;
|
|
24
|
+
};
|
|
25
|
+
storage: {
|
|
26
|
+
pin: string;
|
|
27
|
+
uploadFile: string;
|
|
28
|
+
retrieve: string;
|
|
29
|
+
pinCID: string;
|
|
30
|
+
unpinCID: string;
|
|
31
|
+
listPins: string;
|
|
32
|
+
};
|
|
33
|
+
celestia: {
|
|
34
|
+
submit: string;
|
|
35
|
+
retrieve: string;
|
|
36
|
+
};
|
|
37
|
+
llm: {
|
|
38
|
+
compute: string;
|
|
39
|
+
computeStatus: string;
|
|
40
|
+
computeResult: string;
|
|
41
|
+
computeCancel: string;
|
|
42
|
+
query: string;
|
|
43
|
+
queryRAG: string;
|
|
44
|
+
queryTEE: string;
|
|
45
|
+
};
|
|
46
|
+
rag: {
|
|
47
|
+
ingest: string;
|
|
48
|
+
search: string;
|
|
49
|
+
};
|
|
50
|
+
tee: {
|
|
51
|
+
attestation: string;
|
|
52
|
+
verifyAttestation: string;
|
|
53
|
+
query: string;
|
|
54
|
+
};
|
|
55
|
+
zkml: {
|
|
56
|
+
prove: string;
|
|
57
|
+
verify: string;
|
|
58
|
+
stats: string;
|
|
59
|
+
circuits: string;
|
|
60
|
+
};
|
|
61
|
+
zk: {
|
|
62
|
+
generate: string;
|
|
63
|
+
verify: string;
|
|
64
|
+
};
|
|
65
|
+
analytics: {
|
|
66
|
+
kpis: string;
|
|
67
|
+
trends: string;
|
|
68
|
+
leaderboard: string;
|
|
69
|
+
growthMetrics: string;
|
|
70
|
+
timeSeries: string;
|
|
71
|
+
comparative: string;
|
|
72
|
+
realtime: string;
|
|
73
|
+
};
|
|
74
|
+
notifications: {
|
|
75
|
+
send: string;
|
|
76
|
+
schedule: string;
|
|
77
|
+
history: string;
|
|
78
|
+
preferences: string;
|
|
79
|
+
alerts: string;
|
|
80
|
+
};
|
|
81
|
+
export: {
|
|
82
|
+
data: string;
|
|
83
|
+
report: string;
|
|
84
|
+
download: string;
|
|
85
|
+
bulk: string;
|
|
86
|
+
schedule: string;
|
|
87
|
+
};
|
|
88
|
+
cache: {
|
|
89
|
+
get: string;
|
|
90
|
+
set: string;
|
|
91
|
+
delete: string;
|
|
92
|
+
batch: string;
|
|
93
|
+
invalidate: string;
|
|
94
|
+
stats: string;
|
|
95
|
+
};
|
|
96
|
+
monitoring: {
|
|
97
|
+
health: string;
|
|
98
|
+
metrics: string;
|
|
99
|
+
metricsQuery: string;
|
|
100
|
+
traces: string;
|
|
101
|
+
logs: string;
|
|
102
|
+
errors: string;
|
|
103
|
+
};
|
|
104
|
+
forecasting: {
|
|
105
|
+
predict: string;
|
|
106
|
+
detectAnomalies: string;
|
|
107
|
+
analyzeTrend: string;
|
|
108
|
+
simulate: string;
|
|
109
|
+
train: string;
|
|
110
|
+
evaluate: string;
|
|
111
|
+
};
|
|
112
|
+
webhooks: {
|
|
113
|
+
register: string;
|
|
114
|
+
list: string;
|
|
115
|
+
update: string;
|
|
116
|
+
delete: string;
|
|
117
|
+
test: string;
|
|
118
|
+
logs: string;
|
|
119
|
+
deliver: string;
|
|
120
|
+
events: string;
|
|
121
|
+
stats: string;
|
|
122
|
+
};
|
|
123
|
+
oracle: {
|
|
124
|
+
query: string;
|
|
125
|
+
priceHistory: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Get the full API endpoint URL
|
|
130
|
+
*/
|
|
131
|
+
export declare function getAPIEndpoint(endpoint?: string): string;
|
|
132
|
+
/**
|
|
133
|
+
* Get the full API URL for a specific endpoint
|
|
134
|
+
*/
|
|
135
|
+
export declare function getFullAPIURL(baseEndpoint: string, path: string): string;
|
|
136
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,0BAA0B,CAAA;AAE3D;;GAEG;AACH,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4IzB,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAExE"}
|