@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.
Files changed (495) hide show
  1. package/LICENSE +31 -0
  2. package/README.md +248 -0
  3. package/dist/components/AI/ChatbotWidget.d.ts +53 -0
  4. package/dist/components/AI/ChatbotWidget.d.ts.map +1 -0
  5. package/dist/components/AI/ChatbotWidget.js +126 -0
  6. package/dist/components/AI/ChatbotWidget.js.map +1 -0
  7. package/dist/components/AI/InputBar.d.ts +25 -0
  8. package/dist/components/AI/InputBar.d.ts.map +1 -0
  9. package/dist/components/AI/InputBar.js +126 -0
  10. package/dist/components/AI/InputBar.js.map +1 -0
  11. package/dist/components/AI/MessageBubble.d.ts +37 -0
  12. package/dist/components/AI/MessageBubble.d.ts.map +1 -0
  13. package/dist/components/AI/MessageBubble.js +124 -0
  14. package/dist/components/AI/MessageBubble.js.map +1 -0
  15. package/dist/components/AI/index.d.ts +12 -0
  16. package/dist/components/AI/index.d.ts.map +1 -0
  17. package/dist/components/AI/index.js +9 -0
  18. package/dist/components/AI/index.js.map +1 -0
  19. package/dist/components/Analytics/AnalyticsCard.d.ts +48 -0
  20. package/dist/components/Analytics/AnalyticsCard.d.ts.map +1 -0
  21. package/dist/components/Analytics/AnalyticsCard.js +156 -0
  22. package/dist/components/Analytics/AnalyticsCard.js.map +1 -0
  23. package/dist/components/Analytics/ChartContainer.d.ts +53 -0
  24. package/dist/components/Analytics/ChartContainer.d.ts.map +1 -0
  25. package/dist/components/Analytics/ChartContainer.js +128 -0
  26. package/dist/components/Analytics/ChartContainer.js.map +1 -0
  27. package/dist/components/Analytics/DataTable.d.ts +62 -0
  28. package/dist/components/Analytics/DataTable.d.ts.map +1 -0
  29. package/dist/components/Analytics/DataTable.js +165 -0
  30. package/dist/components/Analytics/DataTable.js.map +1 -0
  31. package/dist/components/Analytics/MetricDisplay.d.ts +42 -0
  32. package/dist/components/Analytics/MetricDisplay.d.ts.map +1 -0
  33. package/dist/components/Analytics/MetricDisplay.js +110 -0
  34. package/dist/components/Analytics/MetricDisplay.js.map +1 -0
  35. package/dist/components/Analytics/index.d.ts +14 -0
  36. package/dist/components/Analytics/index.d.ts.map +1 -0
  37. package/dist/components/Analytics/index.js +10 -0
  38. package/dist/components/Analytics/index.js.map +1 -0
  39. package/dist/components/Branding/Attribution.d.ts +39 -0
  40. package/dist/components/Branding/Attribution.d.ts.map +1 -0
  41. package/dist/components/Branding/Attribution.js +124 -0
  42. package/dist/components/Branding/Attribution.js.map +1 -0
  43. package/dist/components/Branding/Logo.d.ts +39 -0
  44. package/dist/components/Branding/Logo.d.ts.map +1 -0
  45. package/dist/components/Branding/Logo.js +67 -0
  46. package/dist/components/Branding/Logo.js.map +1 -0
  47. package/dist/components/Branding/ThemeProvider.d.ts +85 -0
  48. package/dist/components/Branding/ThemeProvider.d.ts.map +1 -0
  49. package/dist/components/Branding/ThemeProvider.js +186 -0
  50. package/dist/components/Branding/ThemeProvider.js.map +1 -0
  51. package/dist/components/Branding/index.d.ts +12 -0
  52. package/dist/components/Branding/index.d.ts.map +1 -0
  53. package/dist/components/Branding/index.js +9 -0
  54. package/dist/components/Branding/index.js.map +1 -0
  55. package/dist/components/Dashboard/DashboardFooter.d.ts +30 -0
  56. package/dist/components/Dashboard/DashboardFooter.d.ts.map +1 -0
  57. package/dist/components/Dashboard/DashboardFooter.js +68 -0
  58. package/dist/components/Dashboard/DashboardFooter.js.map +1 -0
  59. package/dist/components/Dashboard/DashboardHeader.d.ts +24 -0
  60. package/dist/components/Dashboard/DashboardHeader.d.ts.map +1 -0
  61. package/dist/components/Dashboard/DashboardHeader.js +87 -0
  62. package/dist/components/Dashboard/DashboardHeader.js.map +1 -0
  63. package/dist/components/Dashboard/DashboardLayout.d.ts +71 -0
  64. package/dist/components/Dashboard/DashboardLayout.d.ts.map +1 -0
  65. package/dist/components/Dashboard/DashboardLayout.js +52 -0
  66. package/dist/components/Dashboard/DashboardLayout.js.map +1 -0
  67. package/dist/components/Dashboard/DashboardSidebar.d.ts +26 -0
  68. package/dist/components/Dashboard/DashboardSidebar.d.ts.map +1 -0
  69. package/dist/components/Dashboard/DashboardSidebar.js +146 -0
  70. package/dist/components/Dashboard/DashboardSidebar.js.map +1 -0
  71. package/dist/components/Dashboard/EmptyState.d.ts +84 -0
  72. package/dist/components/Dashboard/EmptyState.d.ts.map +1 -0
  73. package/dist/components/Dashboard/EmptyState.js +99 -0
  74. package/dist/components/Dashboard/EmptyState.js.map +1 -0
  75. package/dist/components/Dashboard/KPICard.d.ts +58 -0
  76. package/dist/components/Dashboard/KPICard.d.ts.map +1 -0
  77. package/dist/components/Dashboard/KPICard.js +82 -0
  78. package/dist/components/Dashboard/KPICard.js.map +1 -0
  79. package/dist/components/Dashboard/LoadingSkeleton.d.ts +58 -0
  80. package/dist/components/Dashboard/LoadingSkeleton.d.ts.map +1 -0
  81. package/dist/components/Dashboard/LoadingSkeleton.js +105 -0
  82. package/dist/components/Dashboard/LoadingSkeleton.js.map +1 -0
  83. package/dist/components/Dashboard/StatusBadge.d.ts +57 -0
  84. package/dist/components/Dashboard/StatusBadge.d.ts.map +1 -0
  85. package/dist/components/Dashboard/StatusBadge.js +149 -0
  86. package/dist/components/Dashboard/StatusBadge.js.map +1 -0
  87. package/dist/components/Dashboard/index.d.ts +19 -0
  88. package/dist/components/Dashboard/index.d.ts.map +1 -0
  89. package/dist/components/Dashboard/index.js +18 -0
  90. package/dist/components/Dashboard/index.js.map +1 -0
  91. package/dist/components/InAppWallet/EmailLoginButton.d.ts +27 -0
  92. package/dist/components/InAppWallet/EmailLoginButton.d.ts.map +1 -0
  93. package/dist/components/InAppWallet/EmailLoginButton.js +84 -0
  94. package/dist/components/InAppWallet/EmailLoginButton.js.map +1 -0
  95. package/dist/components/InAppWallet/InAppWalletProvider.d.ts +54 -0
  96. package/dist/components/InAppWallet/InAppWalletProvider.d.ts.map +1 -0
  97. package/dist/components/InAppWallet/InAppWalletProvider.js +238 -0
  98. package/dist/components/InAppWallet/InAppWalletProvider.js.map +1 -0
  99. package/dist/components/InAppWallet/OnboardingFlow.d.ts +25 -0
  100. package/dist/components/InAppWallet/OnboardingFlow.d.ts.map +1 -0
  101. package/dist/components/InAppWallet/OnboardingFlow.js +159 -0
  102. package/dist/components/InAppWallet/OnboardingFlow.js.map +1 -0
  103. package/dist/components/InAppWallet/SocialLoginButtons.d.ts +28 -0
  104. package/dist/components/InAppWallet/SocialLoginButtons.d.ts.map +1 -0
  105. package/dist/components/InAppWallet/SocialLoginButtons.js +128 -0
  106. package/dist/components/InAppWallet/SocialLoginButtons.js.map +1 -0
  107. package/dist/components/InAppWallet/index.d.ts +15 -0
  108. package/dist/components/InAppWallet/index.d.ts.map +1 -0
  109. package/dist/components/InAppWallet/index.js +14 -0
  110. package/dist/components/InAppWallet/index.js.map +1 -0
  111. package/dist/components/Onramp/BuyUSDCButton.d.ts +27 -0
  112. package/dist/components/Onramp/BuyUSDCButton.d.ts.map +1 -0
  113. package/dist/components/Onramp/BuyUSDCButton.js +70 -0
  114. package/dist/components/Onramp/BuyUSDCButton.js.map +1 -0
  115. package/dist/components/Onramp/OnrampWidget.d.ts +38 -0
  116. package/dist/components/Onramp/OnrampWidget.d.ts.map +1 -0
  117. package/dist/components/Onramp/OnrampWidget.js +105 -0
  118. package/dist/components/Onramp/OnrampWidget.js.map +1 -0
  119. package/dist/components/Onramp/index.d.ts +14 -0
  120. package/dist/components/Onramp/index.d.ts.map +1 -0
  121. package/dist/components/Onramp/index.js +12 -0
  122. package/dist/components/Onramp/index.js.map +1 -0
  123. package/dist/components/Payments/CheckoutModal.d.ts +19 -0
  124. package/dist/components/Payments/CheckoutModal.d.ts.map +1 -0
  125. package/dist/components/Payments/CheckoutModal.js +183 -0
  126. package/dist/components/Payments/CheckoutModal.js.map +1 -0
  127. package/dist/components/Payments/SubscriptionWidget.d.ts +17 -0
  128. package/dist/components/Payments/SubscriptionWidget.d.ts.map +1 -0
  129. package/dist/components/Payments/SubscriptionWidget.js +89 -0
  130. package/dist/components/Payments/SubscriptionWidget.js.map +1 -0
  131. package/dist/components/Payments/constants.d.ts +59 -0
  132. package/dist/components/Payments/constants.d.ts.map +1 -0
  133. package/dist/components/Payments/constants.js +145 -0
  134. package/dist/components/Payments/constants.js.map +1 -0
  135. package/dist/components/Payments/index.d.ts +10 -0
  136. package/dist/components/Payments/index.d.ts.map +1 -0
  137. package/dist/components/Payments/index.js +12 -0
  138. package/dist/components/Payments/index.js.map +1 -0
  139. package/dist/components/Payments/types.d.ts +119 -0
  140. package/dist/components/Payments/types.d.ts.map +1 -0
  141. package/dist/components/Payments/types.js +27 -0
  142. package/dist/components/Payments/types.js.map +1 -0
  143. package/dist/components/Payments/usePayments.d.ts +33 -0
  144. package/dist/components/Payments/usePayments.d.ts.map +1 -0
  145. package/dist/components/Payments/usePayments.js +249 -0
  146. package/dist/components/Payments/usePayments.js.map +1 -0
  147. package/dist/components/Privy/InitTimeoutScreen.d.ts +62 -0
  148. package/dist/components/Privy/InitTimeoutScreen.d.ts.map +1 -0
  149. package/dist/components/Privy/InitTimeoutScreen.js +64 -0
  150. package/dist/components/Privy/InitTimeoutScreen.js.map +1 -0
  151. package/dist/components/Privy/InitializingScreen.d.ts +56 -0
  152. package/dist/components/Privy/InitializingScreen.d.ts.map +1 -0
  153. package/dist/components/Privy/InitializingScreen.js +60 -0
  154. package/dist/components/Privy/InitializingScreen.js.map +1 -0
  155. package/dist/components/Privy/PrivyLoginButton.d.ts +27 -0
  156. package/dist/components/Privy/PrivyLoginButton.d.ts.map +1 -0
  157. package/dist/components/Privy/PrivyLoginButton.js +48 -0
  158. package/dist/components/Privy/PrivyLoginButton.js.map +1 -0
  159. package/dist/components/Privy/PrivyProtectedRoute.d.ts +22 -0
  160. package/dist/components/Privy/PrivyProtectedRoute.d.ts.map +1 -0
  161. package/dist/components/Privy/PrivyProtectedRoute.js +46 -0
  162. package/dist/components/Privy/PrivyProtectedRoute.js.map +1 -0
  163. package/dist/components/Privy/PrivyReadyGate.d.ts +69 -0
  164. package/dist/components/Privy/PrivyReadyGate.d.ts.map +1 -0
  165. package/dist/components/Privy/PrivyReadyGate.js +83 -0
  166. package/dist/components/Privy/PrivyReadyGate.js.map +1 -0
  167. package/dist/components/Privy/PrivyUserProfile.d.ts +25 -0
  168. package/dist/components/Privy/PrivyUserProfile.d.ts.map +1 -0
  169. package/dist/components/Privy/PrivyUserProfile.js +98 -0
  170. package/dist/components/Privy/PrivyUserProfile.js.map +1 -0
  171. package/dist/components/Privy/index.d.ts +21 -0
  172. package/dist/components/Privy/index.d.ts.map +1 -0
  173. package/dist/components/Privy/index.js +16 -0
  174. package/dist/components/Privy/index.js.map +1 -0
  175. package/dist/components/SIWE/AuthStatus.d.ts +15 -0
  176. package/dist/components/SIWE/AuthStatus.d.ts.map +1 -0
  177. package/dist/components/SIWE/AuthStatus.js +47 -0
  178. package/dist/components/SIWE/AuthStatus.js.map +1 -0
  179. package/dist/components/SIWE/ProtectedRoute.d.ts +17 -0
  180. package/dist/components/SIWE/ProtectedRoute.d.ts.map +1 -0
  181. package/dist/components/SIWE/ProtectedRoute.js +52 -0
  182. package/dist/components/SIWE/ProtectedRoute.js.map +1 -0
  183. package/dist/components/SIWE/SIWEButton.d.ts +22 -0
  184. package/dist/components/SIWE/SIWEButton.d.ts.map +1 -0
  185. package/dist/components/SIWE/SIWEButton.js +106 -0
  186. package/dist/components/SIWE/SIWEButton.js.map +1 -0
  187. package/dist/components/SIWE/SIWEModal.d.ts +19 -0
  188. package/dist/components/SIWE/SIWEModal.d.ts.map +1 -0
  189. package/dist/components/SIWE/SIWEModal.js +75 -0
  190. package/dist/components/SIWE/SIWEModal.js.map +1 -0
  191. package/dist/components/SIWE/SIWEProvider.d.ts +38 -0
  192. package/dist/components/SIWE/SIWEProvider.d.ts.map +1 -0
  193. package/dist/components/SIWE/SIWEProvider.js +227 -0
  194. package/dist/components/SIWE/SIWEProvider.js.map +1 -0
  195. package/dist/components/SIWE/index.d.ts +15 -0
  196. package/dist/components/SIWE/index.d.ts.map +1 -0
  197. package/dist/components/SIWE/index.js +10 -0
  198. package/dist/components/SIWE/index.js.map +1 -0
  199. package/dist/components/index.d.ts +11 -0
  200. package/dist/components/index.d.ts.map +1 -0
  201. package/dist/components/index.js +16 -0
  202. package/dist/components/index.js.map +1 -0
  203. package/dist/components/templates/Finance/FinanceDashboard.d.ts +15 -0
  204. package/dist/components/templates/Finance/FinanceDashboard.d.ts.map +1 -0
  205. package/dist/components/templates/Finance/FinanceDashboard.js +112 -0
  206. package/dist/components/templates/Finance/FinanceDashboard.js.map +1 -0
  207. package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts +15 -0
  208. package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts.map +1 -0
  209. package/dist/components/templates/Healthcare/HealthcareDashboard.js +121 -0
  210. package/dist/components/templates/Healthcare/HealthcareDashboard.js.map +1 -0
  211. package/dist/components/templates/ISO/ISODashboard.d.ts +15 -0
  212. package/dist/components/templates/ISO/ISODashboard.d.ts.map +1 -0
  213. package/dist/components/templates/ISO/ISODashboard.js +184 -0
  214. package/dist/components/templates/ISO/ISODashboard.js.map +1 -0
  215. package/dist/components/templates/Retail/RetailDashboard.d.ts +15 -0
  216. package/dist/components/templates/Retail/RetailDashboard.d.ts.map +1 -0
  217. package/dist/components/templates/Retail/RetailDashboard.js +151 -0
  218. package/dist/components/templates/Retail/RetailDashboard.js.map +1 -0
  219. package/dist/components/templates/index.d.ts +14 -0
  220. package/dist/components/templates/index.d.ts.map +1 -0
  221. package/dist/components/templates/index.js +14 -0
  222. package/dist/components/templates/index.js.map +1 -0
  223. package/dist/config/chains.d.ts +23 -0
  224. package/dist/config/chains.d.ts.map +1 -0
  225. package/dist/config/chains.js +55 -0
  226. package/dist/config/chains.js.map +1 -0
  227. package/dist/core/VarityClient.d.ts +76 -0
  228. package/dist/core/VarityClient.d.ts.map +1 -0
  229. package/dist/core/VarityClient.js +99 -0
  230. package/dist/core/VarityClient.js.map +1 -0
  231. package/dist/core/config.d.ts +136 -0
  232. package/dist/core/config.d.ts.map +1 -0
  233. package/dist/core/config.js +156 -0
  234. package/dist/core/config.js.map +1 -0
  235. package/dist/hooks/index.d.ts +17 -0
  236. package/dist/hooks/index.d.ts.map +1 -0
  237. package/dist/hooks/index.js +18 -0
  238. package/dist/hooks/index.js.map +1 -0
  239. package/dist/hooks/useAnalytics.d.ts +94 -0
  240. package/dist/hooks/useAnalytics.d.ts.map +1 -0
  241. package/dist/hooks/useAnalytics.js +116 -0
  242. package/dist/hooks/useAnalytics.js.map +1 -0
  243. package/dist/hooks/useAuth.d.ts +71 -0
  244. package/dist/hooks/useAuth.d.ts.map +1 -0
  245. package/dist/hooks/useAuth.js +198 -0
  246. package/dist/hooks/useAuth.js.map +1 -0
  247. package/dist/hooks/useDashboard.d.ts +110 -0
  248. package/dist/hooks/useDashboard.d.ts.map +1 -0
  249. package/dist/hooks/useDashboard.js +201 -0
  250. package/dist/hooks/useDashboard.js.map +1 -0
  251. package/dist/hooks/useVarityAPI.d.ts +88 -0
  252. package/dist/hooks/useVarityAPI.d.ts.map +1 -0
  253. package/dist/hooks/useVarityAPI.js +138 -0
  254. package/dist/hooks/useVarityAPI.js.map +1 -0
  255. package/dist/hooks/useWalletAuth.d.ts +108 -0
  256. package/dist/hooks/useWalletAuth.d.ts.map +1 -0
  257. package/dist/hooks/useWalletAuth.js +415 -0
  258. package/dist/hooks/useWalletAuth.js.map +1 -0
  259. package/dist/hooks/web3/index.d.ts +5 -0
  260. package/dist/hooks/web3/index.d.ts.map +1 -0
  261. package/dist/hooks/web3/index.js +6 -0
  262. package/dist/hooks/web3/index.js.map +1 -0
  263. package/dist/hooks/web3/useAddressValidation.d.ts +37 -0
  264. package/dist/hooks/web3/useAddressValidation.d.ts.map +1 -0
  265. package/dist/hooks/web3/useAddressValidation.js +59 -0
  266. package/dist/hooks/web3/useAddressValidation.js.map +1 -0
  267. package/dist/hooks/web3/useBlockExplorer.d.ts +37 -0
  268. package/dist/hooks/web3/useBlockExplorer.d.ts.map +1 -0
  269. package/dist/hooks/web3/useBlockExplorer.js +59 -0
  270. package/dist/hooks/web3/useBlockExplorer.js.map +1 -0
  271. package/dist/hooks/web3/useUSDCFormat.d.ts +34 -0
  272. package/dist/hooks/web3/useUSDCFormat.d.ts.map +1 -0
  273. package/dist/hooks/web3/useUSDCFormat.js +43 -0
  274. package/dist/hooks/web3/useUSDCFormat.js.map +1 -0
  275. package/dist/hooks/web3/useVarityWallet.d.ts +48 -0
  276. package/dist/hooks/web3/useVarityWallet.d.ts.map +1 -0
  277. package/dist/hooks/web3/useVarityWallet.js +70 -0
  278. package/dist/hooks/web3/useVarityWallet.js.map +1 -0
  279. package/dist/index.d.ts +55 -0
  280. package/dist/index.d.ts.map +1 -0
  281. package/dist/index.js +68 -0
  282. package/dist/index.js.map +1 -0
  283. package/dist/modules/analytics/AnalyticsClient.d.ts +72 -0
  284. package/dist/modules/analytics/AnalyticsClient.d.ts.map +1 -0
  285. package/dist/modules/analytics/AnalyticsClient.js +56 -0
  286. package/dist/modules/analytics/AnalyticsClient.js.map +1 -0
  287. package/dist/modules/analytics/index.d.ts +2 -0
  288. package/dist/modules/analytics/index.d.ts.map +1 -0
  289. package/dist/modules/analytics/index.js +2 -0
  290. package/dist/modules/analytics/index.js.map +1 -0
  291. package/dist/modules/auth/AuthClient.d.ts +41 -0
  292. package/dist/modules/auth/AuthClient.d.ts.map +1 -0
  293. package/dist/modules/auth/AuthClient.js +36 -0
  294. package/dist/modules/auth/AuthClient.js.map +1 -0
  295. package/dist/modules/auth/index.d.ts +2 -0
  296. package/dist/modules/auth/index.d.ts.map +1 -0
  297. package/dist/modules/auth/index.js +2 -0
  298. package/dist/modules/auth/index.js.map +1 -0
  299. package/dist/modules/cache/CacheClient.d.ts +48 -0
  300. package/dist/modules/cache/CacheClient.d.ts.map +1 -0
  301. package/dist/modules/cache/CacheClient.js +59 -0
  302. package/dist/modules/cache/CacheClient.js.map +1 -0
  303. package/dist/modules/cache/index.d.ts +2 -0
  304. package/dist/modules/cache/index.d.ts.map +1 -0
  305. package/dist/modules/cache/index.js +2 -0
  306. package/dist/modules/cache/index.js.map +1 -0
  307. package/dist/modules/compute/ComputeClient.d.ts +54 -0
  308. package/dist/modules/compute/ComputeClient.d.ts.map +1 -0
  309. package/dist/modules/compute/ComputeClient.js +39 -0
  310. package/dist/modules/compute/ComputeClient.js.map +1 -0
  311. package/dist/modules/compute/index.d.ts +2 -0
  312. package/dist/modules/compute/index.d.ts.map +1 -0
  313. package/dist/modules/compute/index.js +2 -0
  314. package/dist/modules/compute/index.js.map +1 -0
  315. package/dist/modules/export/ExportClient.d.ts +56 -0
  316. package/dist/modules/export/ExportClient.d.ts.map +1 -0
  317. package/dist/modules/export/ExportClient.js +42 -0
  318. package/dist/modules/export/ExportClient.js.map +1 -0
  319. package/dist/modules/export/index.d.ts +2 -0
  320. package/dist/modules/export/index.d.ts.map +1 -0
  321. package/dist/modules/export/index.js +2 -0
  322. package/dist/modules/export/index.js.map +1 -0
  323. package/dist/modules/forecasting/ForecastingClient.d.ts +112 -0
  324. package/dist/modules/forecasting/ForecastingClient.d.ts.map +1 -0
  325. package/dist/modules/forecasting/ForecastingClient.js +48 -0
  326. package/dist/modules/forecasting/ForecastingClient.js.map +1 -0
  327. package/dist/modules/forecasting/index.d.ts +2 -0
  328. package/dist/modules/forecasting/index.d.ts.map +1 -0
  329. package/dist/modules/forecasting/index.js +2 -0
  330. package/dist/modules/forecasting/index.js.map +1 -0
  331. package/dist/modules/monitoring/MonitoringClient.d.ts +67 -0
  332. package/dist/modules/monitoring/MonitoringClient.d.ts.map +1 -0
  333. package/dist/modules/monitoring/MonitoringClient.js +48 -0
  334. package/dist/modules/monitoring/MonitoringClient.js.map +1 -0
  335. package/dist/modules/monitoring/index.d.ts +2 -0
  336. package/dist/modules/monitoring/index.d.ts.map +1 -0
  337. package/dist/modules/monitoring/index.js +2 -0
  338. package/dist/modules/monitoring/index.js.map +1 -0
  339. package/dist/modules/notifications/NotificationsClient.d.ts +68 -0
  340. package/dist/modules/notifications/NotificationsClient.d.ts.map +1 -0
  341. package/dist/modules/notifications/NotificationsClient.js +50 -0
  342. package/dist/modules/notifications/NotificationsClient.js.map +1 -0
  343. package/dist/modules/notifications/index.d.ts +2 -0
  344. package/dist/modules/notifications/index.d.ts.map +1 -0
  345. package/dist/modules/notifications/index.js +2 -0
  346. package/dist/modules/notifications/index.js.map +1 -0
  347. package/dist/modules/oracle/OracleClient.d.ts +48 -0
  348. package/dist/modules/oracle/OracleClient.d.ts.map +1 -0
  349. package/dist/modules/oracle/OracleClient.js +34 -0
  350. package/dist/modules/oracle/OracleClient.js.map +1 -0
  351. package/dist/modules/oracle/index.d.ts +2 -0
  352. package/dist/modules/oracle/index.d.ts.map +1 -0
  353. package/dist/modules/oracle/index.js +2 -0
  354. package/dist/modules/oracle/index.js.map +1 -0
  355. package/dist/modules/storage/StorageClient.d.ts +44 -0
  356. package/dist/modules/storage/StorageClient.d.ts.map +1 -0
  357. package/dist/modules/storage/StorageClient.js +43 -0
  358. package/dist/modules/storage/StorageClient.js.map +1 -0
  359. package/dist/modules/storage/index.d.ts +2 -0
  360. package/dist/modules/storage/index.d.ts.map +1 -0
  361. package/dist/modules/storage/index.js +2 -0
  362. package/dist/modules/storage/index.js.map +1 -0
  363. package/dist/modules/templates/TemplateDeploymentClient.d.ts +208 -0
  364. package/dist/modules/templates/TemplateDeploymentClient.d.ts.map +1 -0
  365. package/dist/modules/templates/TemplateDeploymentClient.js +101 -0
  366. package/dist/modules/templates/TemplateDeploymentClient.js.map +1 -0
  367. package/dist/modules/templates/index.d.ts +8 -0
  368. package/dist/modules/templates/index.d.ts.map +1 -0
  369. package/dist/modules/templates/index.js +7 -0
  370. package/dist/modules/templates/index.js.map +1 -0
  371. package/dist/modules/webhooks/WebhooksClient.d.ts +85 -0
  372. package/dist/modules/webhooks/WebhooksClient.d.ts.map +1 -0
  373. package/dist/modules/webhooks/WebhooksClient.js +68 -0
  374. package/dist/modules/webhooks/WebhooksClient.js.map +1 -0
  375. package/dist/modules/webhooks/index.d.ts +2 -0
  376. package/dist/modules/webhooks/index.d.ts.map +1 -0
  377. package/dist/modules/webhooks/index.js +2 -0
  378. package/dist/modules/webhooks/index.js.map +1 -0
  379. package/dist/modules/zk/ZKClient.d.ts +67 -0
  380. package/dist/modules/zk/ZKClient.d.ts.map +1 -0
  381. package/dist/modules/zk/ZKClient.js +36 -0
  382. package/dist/modules/zk/ZKClient.js.map +1 -0
  383. package/dist/modules/zk/index.d.ts +2 -0
  384. package/dist/modules/zk/index.d.ts.map +1 -0
  385. package/dist/modules/zk/index.js +2 -0
  386. package/dist/modules/zk/index.js.map +1 -0
  387. package/dist/providers/ChainContext.d.ts +65 -0
  388. package/dist/providers/ChainContext.d.ts.map +1 -0
  389. package/dist/providers/ChainContext.js +92 -0
  390. package/dist/providers/ChainContext.js.map +1 -0
  391. package/dist/providers/PrivyProvider.d.ts +42 -0
  392. package/dist/providers/PrivyProvider.d.ts.map +1 -0
  393. package/dist/providers/PrivyProvider.js +131 -0
  394. package/dist/providers/PrivyProvider.js.map +1 -0
  395. package/dist/providers/PrivyStack.d.ts +165 -0
  396. package/dist/providers/PrivyStack.d.ts.map +1 -0
  397. package/dist/providers/PrivyStack.js +295 -0
  398. package/dist/providers/PrivyStack.js.map +1 -0
  399. package/dist/providers/VarityDashboardProvider.d.ts +90 -0
  400. package/dist/providers/VarityDashboardProvider.d.ts.map +1 -0
  401. package/dist/providers/VarityDashboardProvider.js +242 -0
  402. package/dist/providers/VarityDashboardProvider.js.map +1 -0
  403. package/dist/providers/VarityProvider.d.ts +32 -0
  404. package/dist/providers/VarityProvider.d.ts.map +1 -0
  405. package/dist/providers/VarityProvider.js +56 -0
  406. package/dist/providers/VarityProvider.js.map +1 -0
  407. package/dist/providers/WalletContext.d.ts +68 -0
  408. package/dist/providers/WalletContext.d.ts.map +1 -0
  409. package/dist/providers/WalletContext.js +98 -0
  410. package/dist/providers/WalletContext.js.map +1 -0
  411. package/dist/providers/WalletSyncProvider.d.ts +84 -0
  412. package/dist/providers/WalletSyncProvider.d.ts.map +1 -0
  413. package/dist/providers/WalletSyncProvider.js +132 -0
  414. package/dist/providers/WalletSyncProvider.js.map +1 -0
  415. package/dist/providers/index.d.ts +47 -0
  416. package/dist/providers/index.d.ts.map +1 -0
  417. package/dist/providers/index.js +51 -0
  418. package/dist/providers/index.js.map +1 -0
  419. package/dist/tests/mocks/httpClient.mock.d.ts +62 -0
  420. package/dist/tests/mocks/httpClient.mock.d.ts.map +1 -0
  421. package/dist/tests/mocks/httpClient.mock.js +108 -0
  422. package/dist/tests/mocks/httpClient.mock.js.map +1 -0
  423. package/dist/tests/setup.d.ts +6 -0
  424. package/dist/tests/setup.d.ts.map +1 -0
  425. package/dist/tests/setup.js +51 -0
  426. package/dist/tests/setup.js.map +1 -0
  427. package/dist/types/api-extensions.d.ts +92 -0
  428. package/dist/types/api-extensions.d.ts.map +1 -0
  429. package/dist/types/api-extensions.js +7 -0
  430. package/dist/types/api-extensions.js.map +1 -0
  431. package/dist/utils/http.d.ts +51 -0
  432. package/dist/utils/http.d.ts.map +1 -0
  433. package/dist/utils/http.js +104 -0
  434. package/dist/utils/http.js.map +1 -0
  435. package/dist/wallets/SimpleSmartWallet.d.ts +68 -0
  436. package/dist/wallets/SimpleSmartWallet.d.ts.map +1 -0
  437. package/dist/wallets/SimpleSmartWallet.js +74 -0
  438. package/dist/wallets/SimpleSmartWallet.js.map +1 -0
  439. package/dist/wallets/SmartWalletProvider.d.ts +217 -0
  440. package/dist/wallets/SmartWalletProvider.d.ts.map +1 -0
  441. package/dist/wallets/SmartWalletProvider.js +366 -0
  442. package/dist/wallets/SmartWalletProvider.js.map +1 -0
  443. package/dist/wallets/config.d.ts +199 -0
  444. package/dist/wallets/config.d.ts.map +1 -0
  445. package/dist/wallets/config.js +183 -0
  446. package/dist/wallets/config.js.map +1 -0
  447. package/dist/wallets/index.d.ts +9 -0
  448. package/dist/wallets/index.d.ts.map +1 -0
  449. package/dist/wallets/index.js +9 -0
  450. package/dist/wallets/index.js.map +1 -0
  451. package/dist/web3/AddressDisplay/AddressDisplay.d.ts +33 -0
  452. package/dist/web3/AddressDisplay/AddressDisplay.d.ts.map +1 -0
  453. package/dist/web3/AddressDisplay/AddressDisplay.js +42 -0
  454. package/dist/web3/AddressDisplay/AddressDisplay.js.map +1 -0
  455. package/dist/web3/AddressInput/AddressInput.d.ts +36 -0
  456. package/dist/web3/AddressInput/AddressInput.d.ts.map +1 -0
  457. package/dist/web3/AddressInput/AddressInput.js +54 -0
  458. package/dist/web3/AddressInput/AddressInput.js.map +1 -0
  459. package/dist/web3/AmountInput/AmountInput.d.ts +41 -0
  460. package/dist/web3/AmountInput/AmountInput.d.ts.map +1 -0
  461. package/dist/web3/AmountInput/AmountInput.js +74 -0
  462. package/dist/web3/AmountInput/AmountInput.js.map +1 -0
  463. package/dist/web3/BalanceDisplay/BalanceDisplay.d.ts +30 -0
  464. package/dist/web3/BalanceDisplay/BalanceDisplay.d.ts.map +1 -0
  465. package/dist/web3/BalanceDisplay/BalanceDisplay.js +35 -0
  466. package/dist/web3/BalanceDisplay/BalanceDisplay.js.map +1 -0
  467. package/dist/web3/BlockExplorerLink/BlockExplorerLink.d.ts +41 -0
  468. package/dist/web3/BlockExplorerLink/BlockExplorerLink.d.ts.map +1 -0
  469. package/dist/web3/BlockExplorerLink/BlockExplorerLink.js +46 -0
  470. package/dist/web3/BlockExplorerLink/BlockExplorerLink.js.map +1 -0
  471. package/dist/web3/ConnectWallet/ConnectWallet.d.ts +35 -0
  472. package/dist/web3/ConnectWallet/ConnectWallet.d.ts.map +1 -0
  473. package/dist/web3/ConnectWallet/ConnectWallet.js +58 -0
  474. package/dist/web3/ConnectWallet/ConnectWallet.js.map +1 -0
  475. package/dist/web3/DisconnectButton/DisconnectButton.d.ts +30 -0
  476. package/dist/web3/DisconnectButton/DisconnectButton.d.ts.map +1 -0
  477. package/dist/web3/DisconnectButton/DisconnectButton.js +48 -0
  478. package/dist/web3/DisconnectButton/DisconnectButton.js.map +1 -0
  479. package/dist/web3/WalletBalance/WalletBalance.d.ts +27 -0
  480. package/dist/web3/WalletBalance/WalletBalance.d.ts.map +1 -0
  481. package/dist/web3/WalletBalance/WalletBalance.js +49 -0
  482. package/dist/web3/WalletBalance/WalletBalance.js.map +1 -0
  483. package/dist/web3/WalletDropdown/WalletDropdown.d.ts +29 -0
  484. package/dist/web3/WalletDropdown/WalletDropdown.d.ts.map +1 -0
  485. package/dist/web3/WalletDropdown/WalletDropdown.js +93 -0
  486. package/dist/web3/WalletDropdown/WalletDropdown.js.map +1 -0
  487. package/dist/web3/WalletInfo/WalletInfo.d.ts +31 -0
  488. package/dist/web3/WalletInfo/WalletInfo.d.ts.map +1 -0
  489. package/dist/web3/WalletInfo/WalletInfo.js +41 -0
  490. package/dist/web3/WalletInfo/WalletInfo.js.map +1 -0
  491. package/dist/web3/index.d.ts +11 -0
  492. package/dist/web3/index.d.ts.map +1 -0
  493. package/dist/web3/index.js +14 -0
  494. package/dist/web3/index.js.map +1 -0
  495. 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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C,CAAC;kCAAQ;wBAC1D,iFAAsD,CAClD,CACF,CACE,CACL;QAGP,gCAAQ,SAAS,EAAC,kBAAkB;YAClC,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,E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AAC;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,cAAc,EAAiB,aAAa,EAAE,MAAM,UAAU,CAAA;AAEvE,wBAAwB;AACxB,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;AAW/D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,YAAY;IACf,IAAI,CAAY;IAChB,WAAW,CAAQ;IAE3B,mBAAmB;IACZ,IAAI,CAAY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gB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACjD,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC1D,CAAC;IAED;;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"}