@varity-labs/ui-kit 2.0.0-beta.14 → 2.0.0-beta.16

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 (168) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/dist/components/AI/ChatbotWidget.d.ts +1 -1
  4. package/dist/components/AI/ChatbotWidget.js +2 -2
  5. package/dist/components/AI/index.d.ts +6 -6
  6. package/dist/components/AI/index.js +3 -3
  7. package/dist/components/Analytics/EnhancedKPICard.js +1 -1
  8. package/dist/components/Analytics/index.d.ts +10 -10
  9. package/dist/components/Analytics/index.js +6 -6
  10. package/dist/components/Branding/index.d.ts +6 -6
  11. package/dist/components/Branding/index.js +3 -3
  12. package/dist/components/Dashboard/DashboardHeader.d.ts +1 -1
  13. package/dist/components/Dashboard/DashboardLayout.js +3 -3
  14. package/dist/components/Dashboard/DashboardSidebar.d.ts +1 -1
  15. package/dist/components/Dashboard/index.d.ts +12 -12
  16. package/dist/components/Dashboard/index.js +8 -8
  17. package/dist/components/Display/index.d.ts +3 -3
  18. package/dist/components/Display/index.js +3 -3
  19. package/dist/components/Feedback/ToastProvider.js +1 -1
  20. package/dist/components/Feedback/index.d.ts +5 -5
  21. package/dist/components/Feedback/index.js +3 -3
  22. package/dist/components/Feedback/useToast.d.ts +1 -1
  23. package/dist/components/Feedback/useToast.js +1 -1
  24. package/dist/components/Form/index.d.ts +7 -7
  25. package/dist/components/Form/index.js +7 -7
  26. package/dist/components/InAppWallet/EmailLoginButton.js +1 -1
  27. package/dist/components/InAppWallet/OnboardingFlow.js +3 -3
  28. package/dist/components/InAppWallet/SocialLoginButtons.js +1 -1
  29. package/dist/components/InAppWallet/index.d.ts +5 -5
  30. package/dist/components/InAppWallet/index.js +4 -4
  31. package/dist/components/Navigation/index.d.ts +2 -2
  32. package/dist/components/Navigation/index.js +2 -2
  33. package/dist/components/Onramp/index.d.ts +4 -4
  34. package/dist/components/Onramp/index.js +2 -2
  35. package/dist/components/Overlay/ConfirmDialog.js +2 -2
  36. package/dist/components/Overlay/index.d.ts +3 -3
  37. package/dist/components/Overlay/index.js +3 -3
  38. package/dist/components/PaymentWidget/PaymentGate.d.ts +1 -1
  39. package/dist/components/PaymentWidget/PaymentGate.js +2 -2
  40. package/dist/components/PaymentWidget/PaymentWidget.d.ts +1 -1
  41. package/dist/components/PaymentWidget/PaymentWidget.js +1 -1
  42. package/dist/components/PaymentWidget/index.d.ts +5 -5
  43. package/dist/components/PaymentWidget/index.js +4 -4
  44. package/dist/components/PaymentWidget/useSeamlessPayment.js +1 -1
  45. package/dist/components/PaymentWidget/useVarityPayment.d.ts +1 -1
  46. package/dist/components/Payments/CheckoutModal.d.ts +1 -1
  47. package/dist/components/Payments/CheckoutModal.js +1 -1
  48. package/dist/components/Payments/SubscriptionWidget.d.ts +1 -1
  49. package/dist/components/Payments/SubscriptionWidget.js +1 -1
  50. package/dist/components/Payments/constants.d.ts +1 -1
  51. package/dist/components/Payments/constants.js +1 -1
  52. package/dist/components/Payments/index.d.ts +5 -5
  53. package/dist/components/Payments/index.js +5 -5
  54. package/dist/components/Payments/usePayments.d.ts +1 -1
  55. package/dist/components/Payments/usePayments.js +2 -2
  56. package/dist/components/Privy/PrivyLoginButton.d.ts +3 -3
  57. package/dist/components/Privy/PrivyLoginButton.d.ts.map +1 -1
  58. package/dist/components/Privy/PrivyLoginButton.js +2 -2
  59. package/dist/components/Privy/PrivyLoginButton.js.map +1 -1
  60. package/dist/components/Privy/PrivyProtectedRoute.d.ts +3 -3
  61. package/dist/components/Privy/PrivyProtectedRoute.d.ts.map +1 -1
  62. package/dist/components/Privy/PrivyProtectedRoute.js +2 -2
  63. package/dist/components/Privy/PrivyProtectedRoute.js.map +1 -1
  64. package/dist/components/Privy/PrivyReadyGate.d.ts +3 -3
  65. package/dist/components/Privy/PrivyReadyGate.d.ts.map +1 -1
  66. package/dist/components/Privy/PrivyReadyGate.js +4 -4
  67. package/dist/components/Privy/PrivyReadyGate.js.map +1 -1
  68. package/dist/components/Privy/PrivyUserProfile.d.ts +3 -3
  69. package/dist/components/Privy/PrivyUserProfile.d.ts.map +1 -1
  70. package/dist/components/Privy/PrivyUserProfile.js +2 -2
  71. package/dist/components/Privy/PrivyUserProfile.js.map +1 -1
  72. package/dist/components/Privy/index.d.ts +14 -14
  73. package/dist/components/Privy/index.d.ts.map +1 -1
  74. package/dist/components/Privy/index.js +9 -9
  75. package/dist/components/Privy/index.js.map +1 -1
  76. package/dist/components/SIWE/AuthStatus.js +1 -1
  77. package/dist/components/SIWE/ProtectedRoute.js +2 -2
  78. package/dist/components/SIWE/SIWEButton.js +1 -1
  79. package/dist/components/SIWE/SIWEModal.js +2 -2
  80. package/dist/components/SIWE/index.d.ts +10 -10
  81. package/dist/components/SIWE/index.js +5 -5
  82. package/dist/components/index.d.ts +8 -8
  83. package/dist/components/index.js +10 -10
  84. package/dist/components/templates/Finance/FinanceDashboard.d.ts +1 -1
  85. package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts +1 -1
  86. package/dist/components/templates/ISO/ISODashboard.d.ts +1 -1
  87. package/dist/components/templates/Retail/RetailDashboard.d.ts +1 -1
  88. package/dist/components/templates/index.d.ts +8 -8
  89. package/dist/components/templates/index.js +4 -4
  90. package/dist/hooks/index.d.ts +1 -1
  91. package/dist/hooks/index.js +1 -1
  92. package/dist/hooks/web3/index.d.ts +4 -4
  93. package/dist/hooks/web3/index.js +4 -4
  94. package/dist/hooks/web3/useBlockExplorer.js +1 -1
  95. package/dist/hooks/web3/useUSDCFormat.js +1 -1
  96. package/dist/hooks/web3/useVarityWallet.js +1 -1
  97. package/dist/index.d.ts +28 -28
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +64 -66
  100. package/dist/index.js.map +1 -1
  101. package/dist/modules/analytics/AnalyticsClient.d.ts +1 -1
  102. package/dist/modules/analytics/index.d.ts +1 -1
  103. package/dist/modules/analytics/index.js +1 -1
  104. package/dist/modules/auth/AuthClient.d.ts +1 -1
  105. package/dist/modules/auth/index.d.ts +1 -1
  106. package/dist/modules/auth/index.js +1 -1
  107. package/dist/modules/cache/CacheClient.d.ts +1 -1
  108. package/dist/modules/compute/ComputeClient.d.ts +1 -1
  109. package/dist/modules/compute/index.d.ts +1 -1
  110. package/dist/modules/compute/index.js +1 -1
  111. package/dist/modules/export/ExportClient.d.ts +1 -1
  112. package/dist/modules/export/index.d.ts +1 -1
  113. package/dist/modules/export/index.js +1 -1
  114. package/dist/modules/forecasting/ForecastingClient.d.ts +1 -1
  115. package/dist/modules/forecasting/index.d.ts +1 -1
  116. package/dist/modules/forecasting/index.js +1 -1
  117. package/dist/modules/monitoring/MonitoringClient.d.ts +1 -1
  118. package/dist/modules/monitoring/index.d.ts +1 -1
  119. package/dist/modules/monitoring/index.js +1 -1
  120. package/dist/modules/notifications/NotificationsClient.d.ts +1 -1
  121. package/dist/modules/notifications/index.d.ts +1 -1
  122. package/dist/modules/notifications/index.js +1 -1
  123. package/dist/modules/oracle/OracleClient.d.ts +1 -1
  124. package/dist/modules/oracle/index.d.ts +1 -1
  125. package/dist/modules/oracle/index.js +1 -1
  126. package/dist/modules/storage/StorageClient.d.ts +1 -1
  127. package/dist/modules/storage/index.d.ts +1 -1
  128. package/dist/modules/storage/index.js +1 -1
  129. package/dist/modules/templates/TemplateDeploymentClient.d.ts +1 -1
  130. package/dist/modules/templates/index.d.ts +2 -2
  131. package/dist/modules/templates/index.js +1 -1
  132. package/dist/modules/webhooks/WebhooksClient.d.ts +1 -1
  133. package/dist/modules/webhooks/index.d.ts +1 -1
  134. package/dist/modules/webhooks/index.js +1 -1
  135. package/dist/modules/zk/ZKClient.d.ts +1 -1
  136. package/dist/modules/zk/index.d.ts +1 -1
  137. package/dist/modules/zk/index.js +1 -1
  138. package/dist/providers/ChainContext.js +1 -1
  139. package/dist/providers/PrivyProvider.d.ts +3 -3
  140. package/dist/providers/PrivyProvider.d.ts.map +1 -1
  141. package/dist/providers/PrivyProvider.js +2 -2
  142. package/dist/providers/PrivyProvider.js.map +1 -1
  143. package/dist/providers/PrivyStack.d.ts +3 -3
  144. package/dist/providers/PrivyStack.d.ts.map +1 -1
  145. package/dist/providers/PrivyStack.js +5 -5
  146. package/dist/providers/PrivyStack.js.map +1 -1
  147. package/dist/providers/VarityDashboardProvider.d.ts +1 -1
  148. package/dist/providers/VarityDashboardProvider.js +1 -1
  149. package/dist/providers/VarityProvider.d.ts +1 -1
  150. package/dist/providers/VarityProvider.js +1 -1
  151. package/dist/providers/index.d.ts +8 -8
  152. package/dist/providers/index.js +8 -8
  153. package/dist/tests/mocks/httpClient.mock.d.ts +1 -1
  154. package/dist/tests/mocks/httpClient.mock.js +1 -1
  155. package/dist/wallets/SimpleSmartWallet.js +1 -1
  156. package/dist/wallets/index.d.ts +3 -3
  157. package/dist/wallets/index.js +3 -3
  158. package/dist/web3/AddressDisplay/AddressDisplay.js +1 -1
  159. package/dist/web3/AmountInput/AmountInput.js +1 -1
  160. package/dist/web3/BalanceDisplay/BalanceDisplay.js +1 -1
  161. package/dist/web3/BlockExplorerLink/BlockExplorerLink.js +1 -1
  162. package/dist/web3/ConnectWallet/ConnectWallet.js +1 -1
  163. package/dist/web3/WalletBalance/WalletBalance.js +1 -1
  164. package/dist/web3/WalletDropdown/WalletDropdown.js +2 -2
  165. package/dist/web3/WalletInfo/WalletInfo.js +1 -1
  166. package/dist/web3/index.d.ts +10 -10
  167. package/dist/web3/index.js +10 -10
  168. package/package.json +2 -1
@@ -1,2 +1,2 @@
1
- export * from './StorageClient';
1
+ export * from './StorageClient.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Handles deployment of industry templates to Varity L3 blockchain
5
5
  */
6
- import { HTTPClient } from '../../utils/http';
6
+ import { HTTPClient } from '../../utils/http.js';
7
7
  export type IndustryType = 'finance' | 'healthcare' | 'retail' | 'iso' | 'manufacturing';
8
8
  export interface TemplateMetadata {
9
9
  id: string;
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * Industry-specific dashboard deployment to Varity L3
5
5
  */
6
- export { TemplateDeploymentClient } from './TemplateDeploymentClient';
7
- export type { IndustryType, TemplateMetadata, TemplateCustomization, DeploymentRequest, DeploymentResponse, DeploymentStatus, DeployedDashboard } from './TemplateDeploymentClient';
6
+ export { TemplateDeploymentClient } from './TemplateDeploymentClient.js';
7
+ export type { IndustryType, TemplateMetadata, TemplateCustomization, DeploymentRequest, DeploymentResponse, DeploymentStatus, DeployedDashboard } from './TemplateDeploymentClient.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * Industry-specific dashboard deployment to Varity L3
5
5
  */
6
- export { TemplateDeploymentClient } from './TemplateDeploymentClient';
6
+ export { TemplateDeploymentClient } from './TemplateDeploymentClient.js';
7
7
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Handles webhook registration and management via API server
5
5
  */
6
- import { HTTPClient } from '../../utils/http';
6
+ import { HTTPClient } from '../../utils/http.js';
7
7
  import { JSONObject } from '@varity-labs/types';
8
8
  export interface RegisterWebhookOptions {
9
9
  url: string;
@@ -1,2 +1,2 @@
1
- export * from './WebhooksClient';
1
+ export * from './WebhooksClient.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './WebhooksClient';
1
+ export * from './WebhooksClient.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Handles ZK proof generation/verification via API server (ZKML backend)
5
5
  */
6
- import { HTTPClient } from '../../utils/http';
6
+ import { HTTPClient } from '../../utils/http.js';
7
7
  import { JSONValue } from '@varity-labs/types';
8
8
  /**
9
9
  * ZK Proof structure (Groth16 format)
@@ -1,2 +1,2 @@
1
- export * from './ZKClient';
1
+ export * from './ZKClient.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './ZKClient';
1
+ export * from './ZKClient.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import React, { createContext, useContext } from 'react';
2
2
  import { useActiveWalletChain, useSwitchActiveWalletChain } from 'thirdweb/react';
3
- import { DEFAULT_CHAIN, SUPPORTED_CHAINS } from '../config/chains';
3
+ import { DEFAULT_CHAIN, SUPPORTED_CHAINS } from '../config/chains.js';
4
4
  const ChainContext = createContext(null);
5
5
  /**
6
6
  * Chain state management provider
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { User } from '@privy-io/react-auth';
3
- export interface VarityPrivyProviderProps {
3
+ export interface AuthBaseProviderProps {
4
4
  children: ReactNode;
5
5
  appId: string;
6
6
  onLoginSuccess?: (user: User) => void;
@@ -37,6 +37,6 @@ export interface VarityPrivyProviderProps {
37
37
  * }
38
38
  * ```
39
39
  */
40
- export declare function VarityPrivyProvider({ children, appId, onLoginSuccess, onLoginError, appearance, }: VarityPrivyProviderProps): JSX.Element;
41
- export default VarityPrivyProvider;
40
+ export declare function AuthBaseProvider({ children, appId, onLoginSuccess, onLoginError, appearance, }: AuthBaseProviderProps): JSX.Element;
41
+ export default AuthBaseProvider;
42
42
  //# sourceMappingURL=PrivyProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrivyProvider.d.ts","sourceRoot":"","sources":["../../src/providers/PrivyProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsDzC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,KAAK,EACL,cAAc,EACd,YAAY,EACZ,UAGC,GACF,EAAE,wBAAwB,GAAG,GAAG,CAAC,OAAO,CA8CxC;AAmCD,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"PrivyProvider.d.ts","sourceRoot":"","sources":["../../src/providers/PrivyProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsDzC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,cAAc,EACd,YAAY,EACZ,UAGC,GACF,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CA8CrC;AAmCD,eAAe,gBAAgB,CAAC"}
@@ -74,7 +74,7 @@ const queryClient = new QueryClient();
74
74
  * }
75
75
  * ```
76
76
  */
77
- export function VarityPrivyProvider({ children, appId, onLoginSuccess, onLoginError, appearance = {
77
+ export function AuthBaseProvider({ children, appId, onLoginSuccess, onLoginError, appearance = {
78
78
  theme: 'light',
79
79
  accentColor: '#6366f1',
80
80
  }, }) {
@@ -127,5 +127,5 @@ function PrivyAuthWrapper({ children, onLoginError, }) {
127
127
  }
128
128
  return React.createElement(React.Fragment, null, children);
129
129
  }
130
- export default VarityPrivyProvider;
130
+ export default AuthBaseProvider;
131
131
  //# sourceMappingURL=PrivyProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrivyProvider.js","sourceRoot":"","sources":["../../src/providers/PrivyProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,gBAAgB,GAAG;IACvB,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,gBAAgB;IACzB,cAAc,EAAE;QACd,QAAQ,EAAE,CAAC,EAAE,gCAAgC;QAC7C,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,qDAAqD,CAAC;SAC9D;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,qDAAqD,CAAC;SAC9D;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,0DAA0D;SAChE;KAC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AAyC;QAC3C,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;IAE1B,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,CACL,6BAAK,SAAS,EAAC,+CAA+C;YAC5D,6BAAK,SAAS,EAAC,aAAa;gBAC1B,6BAAK,SAAS,EAAC,0EAA0E,GAAO;gBAChG,2BAAG,SAAS,EAAC,oBAAoB,qCAAmC,CAChE,CACF,CACP,CAAC;IACJ,CAAC;IAED,OAAO,0CAAG,QAAQ,CAAI,CAAC;AACzB,CAAC;AAED,eAAe,gBAAgB,CAAC"}
@@ -8,7 +8,7 @@ export interface Chain {
8
8
  name?: string;
9
9
  testnet?: boolean;
10
10
  }
11
- export interface PrivyStackProps {
11
+ export interface AuthProviderProps {
12
12
  /**
13
13
  * Your Varity auth app ID.
14
14
  *
@@ -118,6 +118,6 @@ export interface PrivyStackProps {
118
118
  * }
119
119
  * ```
120
120
  */
121
- export declare function PrivyStack({ appId, chains, children, loginMethods, appearance, onAddressChange, }: PrivyStackProps): JSX.Element;
122
- export default PrivyStack;
121
+ export declare function AuthProvider({ appId, chains, children, loginMethods, appearance, onAddressChange, }: AuthProviderProps): JSX.Element;
122
+ export default AuthProvider;
123
123
  //# sourceMappingURL=PrivyStack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrivyStack.d.ts","sourceRoot":"","sources":["../../src/providers/PrivyStack.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOzC;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAmDD,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,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Q,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC,CAAC;IACtH;;OAEG;IACH,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACpD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,QAAQ,EACR,YAAkC,EAClC,UAGC,EACD,eAAe,GAChB,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAiEjC;AAED,eAAe,YAAY,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { PrivyProvider } from '@privy-io/react-auth';
3
3
  import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
4
- import { PrivyReadyGate } from '../components/Privy/PrivyReadyGate';
5
- import { WalletSyncProvider } from './WalletSyncProvider';
4
+ import { ReadyGate } from '../components/Privy/PrivyReadyGate.js';
5
+ import { WalletSyncProvider } from './WalletSyncProvider.js';
6
6
  import { VARITY_DEV_CREDENTIALS } from '@varity-labs/sdk';
7
7
  /**
8
8
  * Create React Query client (memoized singleton)
@@ -109,7 +109,7 @@ function toPrivyChain(chain) {
109
109
  * }
110
110
  * ```
111
111
  */
112
- export function PrivyStack({ appId, chains, children, loginMethods = ['email', 'google'], appearance = {
112
+ export function AuthProvider({ appId, chains, children, loginMethods = ['email', 'google'], appearance = {
113
113
  theme: 'light',
114
114
  accentColor: '#2563EB',
115
115
  }, onAddressChange, }) {
@@ -160,8 +160,8 @@ export function PrivyStack({ appId, chains, children, loginMethods = ['email', '
160
160
  supportedChains: supportedChains,
161
161
  defaultChain: supportedChains[0],
162
162
  } },
163
- React.createElement(PrivyReadyGate, null,
163
+ React.createElement(ReadyGate, null,
164
164
  React.createElement(WalletSyncProvider, { onAddressChange: onAddressChange }, children)))));
165
165
  }
166
- export default PrivyStack;
166
+ export default AuthProvider;
167
167
  //# sourceMappingURL=PrivyStack.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrivyStack.js","sourceRoot":"","sources":["../../src/providers/PrivyStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAY1D;;GAEG;AACH,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC;IAClC,cAAc,EAAE;QACd,OAAO,EAAE;YACP,SAAS,EAAE,IAAI,GAAG,EAAE,GAAG,CAAC,EAAE,YAAY;YACtC,KAAK,EAAE,CAAC;SACT;KACF;CACF,CAAC,CAAC;AAkBH;;GAEG;AACH,SAAS,YAAY,CAAC,KAAY;IAChC,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,SAAS,KAAK,CAAC,EAAE,EAAE;QACvC,OAAO,EAAE,SAAS,KAAK,CAAC,EAAE,EAAE;QAC5B,cAAc,EAAE;YACd,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,MAAM;Y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2
- import { useWalletSync, WalletSyncState } from './WalletSyncProvider';
2
+ import { useWalletSync, WalletSyncState } from './WalletSyncProvider.js';
3
3
  export interface VarityDashboardProviderProps {
4
4
  children: ReactNode;
5
5
  /**
@@ -6,7 +6,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
6
6
  import { http } from 'viem';
7
7
  import { arbitrumSepolia, arbitrum } from 'viem/chains';
8
8
  import { createConfig } from 'wagmi';
9
- import { WalletSyncProvider, useWalletSync } from './WalletSyncProvider';
9
+ import { WalletSyncProvider, useWalletSync } from './WalletSyncProvider.js';
10
10
  /**
11
11
  * Varity L3 Chain Configuration (Arbitrum Orbit Testnet)
12
12
  * CRITICAL: Uses correct RPC URL for Conduit deployment
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { DEFAULT_CHAIN, SUPPORTED_CHAINS } from '../config/chains';
2
+ import { DEFAULT_CHAIN, SUPPORTED_CHAINS } from '../config/chains.js';
3
3
  export interface VarityProviderProps {
4
4
  children: ReactNode;
5
5
  clientId?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ThirdwebProvider } from 'thirdweb/react';
3
3
  import { createThirdwebClient } from 'thirdweb';
4
- import { THIRDWEB_CLIENT_ID, DEFAULT_CHAIN, SUPPORTED_CHAINS } from '../config/chains';
4
+ import { THIRDWEB_CLIENT_ID, DEFAULT_CHAIN, SUPPORTED_CHAINS } from '../config/chains.js';
5
5
  /**
6
6
  * Main provider wrapper for Varity applications
7
7
  *
@@ -1,11 +1,11 @@
1
- export { VarityProvider, type VarityProviderProps } from './VarityProvider';
2
- export { WalletProvider, useWallet, type WalletProviderProps, type WalletContextValue } from './WalletContext';
3
- export { ChainProvider, useChain, type ChainProviderProps, type ChainContextValue } from './ChainContext';
4
- export { VarityPrivyProvider, type VarityPrivyProviderProps } from './PrivyProvider';
5
- export { PrivyStack, type PrivyStackProps } from './PrivyStack';
6
- export { ZeroDevProvider, useSmartAccount, useZeroDev, type ZeroDevContextType, type ZeroDevProviderProps } from './ZeroDevProvider';
7
- export { WalletSyncProvider, WalletSyncContext, useWalletSync, type WalletSyncState, type WalletSyncProviderProps, } from './WalletSyncProvider';
8
- export { VarityDashboardProvider, type VarityDashboardProviderProps, } from './VarityDashboardProvider';
1
+ export { VarityProvider, type VarityProviderProps } from './VarityProvider.js';
2
+ export { WalletProvider, useWallet, type WalletProviderProps, type WalletContextValue } from './WalletContext.js';
3
+ export { ChainProvider, useChain, type ChainProviderProps, type ChainContextValue } from './ChainContext.js';
4
+ export { VarityPrivyProvider, type VarityPrivyProviderProps } from './PrivyProvider.js';
5
+ export { PrivyStack, type PrivyStackProps } from './PrivyStack.js';
6
+ export { ZeroDevProvider, useSmartAccount, useZeroDev, type ZeroDevContextType, type ZeroDevProviderProps } from './ZeroDevProvider.js';
7
+ export { WalletSyncProvider, WalletSyncContext, useWalletSync, type WalletSyncState, type WalletSyncProviderProps, } from './WalletSyncProvider.js';
8
+ export { VarityDashboardProvider, type VarityDashboardProviderProps, } from './VarityDashboardProvider.js';
9
9
  /**
10
10
  * Provider Setup Guide
11
11
  *
@@ -1,16 +1,16 @@
1
- export { VarityProvider } from './VarityProvider';
2
- export { WalletProvider, useWallet } from './WalletContext';
3
- export { ChainProvider, useChain } from './ChainContext';
1
+ export { VarityProvider } from './VarityProvider.js';
2
+ export { WalletProvider, useWallet } from './WalletContext.js';
3
+ export { ChainProvider, useChain } from './ChainContext.js';
4
4
  // Privy Integration
5
- export { VarityPrivyProvider } from './PrivyProvider';
5
+ export { VarityPrivyProvider } from './PrivyProvider.js';
6
6
  // Privy Stack (All-in-one provider setup - PRODUCTION PATTERN)
7
- export { PrivyStack } from './PrivyStack';
7
+ export { PrivyStack } from './PrivyStack.js';
8
8
  // ZeroDev Account Abstraction (gasless transactions)
9
- export { ZeroDevProvider, useSmartAccount, useZeroDev } from './ZeroDevProvider';
9
+ export { ZeroDevProvider, useSmartAccount, useZeroDev } from './ZeroDevProvider.js';
10
10
  // Wallet Sync (Privy + Thirdweb synchronization)
11
- export { WalletSyncProvider, WalletSyncContext, useWalletSync, } from './WalletSyncProvider';
11
+ export { WalletSyncProvider, WalletSyncContext, useWalletSync, } from './WalletSyncProvider.js';
12
12
  // Complete Dashboard Provider (Privy + Thirdweb + WalletSync + React Query)
13
- export { VarityDashboardProvider, } from './VarityDashboardProvider';
13
+ export { VarityDashboardProvider, } from './VarityDashboardProvider.js';
14
14
  /**
15
15
  * Provider Setup Guide
16
16
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Mock HTTP Client for testing
3
3
  */
4
- import { HTTPClient } from '../../utils/http';
4
+ import { HTTPClient } from '../../utils/http.js';
5
5
  export declare class MockHTTPClient extends HTTPClient {
6
6
  private mockResponses;
7
7
  private callHistory;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Mock HTTP Client for testing
3
3
  */
4
- import { HTTPClient } from '../../utils/http';
4
+ import { HTTPClient } from '../../utils/http.js';
5
5
  export class MockHTTPClient extends HTTPClient {
6
6
  mockResponses = new Map();
7
7
  callHistory = [];
@@ -23,7 +23,7 @@
23
23
  * ```
24
24
  */
25
25
  import React from 'react';
26
- import { SmartWalletProvider } from './SmartWalletProvider';
26
+ import { SmartWalletProvider } from './SmartWalletProvider.js';
27
27
  import { createThirdwebClient } from 'thirdweb';
28
28
  import { varityL3Testnet } from '@varity-labs/sdk/chains';
29
29
  import { VARITY_DEV_CREDENTIALS } from '@varity-labs/sdk';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Smart wallet components for ERC-4337 account abstraction
5
5
  */
6
- export { SmartWalletProvider, useSmartWallet, SmartWalletConnectButton, GaslessBadge, type SmartWalletConfig, } from './SmartWalletProvider';
7
- export { VARITY_SMART_WALLET_CONTRACTS, CONDUIT_BUNDLER_CONFIG, PAYMASTER_CONFIG, AVAX_L1_AA_CONFIG, DEFAULT_GAS_BUDGET, getDefaultSmartWalletConfig, getBundlerUrl, areContractsDeployed, } from './config';
8
- export { SimpleSmartWallet, type SimpleSmartWalletProps, } from './SimpleSmartWallet';
6
+ export { SmartWalletProvider, useSmartWallet, SmartWalletConnectButton, GaslessBadge, type SmartWalletConfig, } from './SmartWalletProvider.js';
7
+ export { VARITY_SMART_WALLET_CONTRACTS, CONDUIT_BUNDLER_CONFIG, PAYMASTER_CONFIG, AVAX_L1_AA_CONFIG, DEFAULT_GAS_BUDGET, getDefaultSmartWalletConfig, getBundlerUrl, areContractsDeployed, } from './config.js';
8
+ export { SimpleSmartWallet, type SimpleSmartWalletProps, } from './SimpleSmartWallet.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Smart wallet components for ERC-4337 account abstraction
5
5
  */
6
- export { SmartWalletProvider, useSmartWallet, SmartWalletConnectButton, GaslessBadge, } from './SmartWalletProvider';
7
- export { VARITY_SMART_WALLET_CONTRACTS, CONDUIT_BUNDLER_CONFIG, PAYMASTER_CONFIG, AVAX_L1_AA_CONFIG, DEFAULT_GAS_BUDGET, getDefaultSmartWalletConfig, getBundlerUrl, areContractsDeployed, } from './config';
8
- export { SimpleSmartWallet, } from './SimpleSmartWallet';
6
+ export { SmartWalletProvider, useSmartWallet, SmartWalletConnectButton, GaslessBadge, } from './SmartWalletProvider.js';
7
+ export { VARITY_SMART_WALLET_CONTRACTS, CONDUIT_BUNDLER_CONFIG, PAYMASTER_CONFIG, AVAX_L1_AA_CONFIG, DEFAULT_GAS_BUDGET, getDefaultSmartWalletConfig, getBundlerUrl, areContractsDeployed, } from './config.js';
8
+ export { SimpleSmartWallet, } from './SimpleSmartWallet.js';
9
9
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react';
2
- import { formatAddress } from '../../config/chains';
2
+ import { formatAddress } from '../../config/chains.js';
3
3
  /**
4
4
  * Address Display Component
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react';
2
- import { parseUSDC, formatUSDC } from '../../config/chains';
2
+ import { parseUSDC, formatUSDC } from '../../config/chains.js';
3
3
  /**
4
4
  * Amount Input Component
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { formatUSDC } from '../../config/chains';
2
+ import { formatUSDC } from '../../config/chains.js';
3
3
  /**
4
4
  * Balance Display Component
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { getBlockExplorerUrl } from '../../config/chains';
2
+ import { getBlockExplorerUrl } from '../../config/chains.js';
3
3
  /**
4
4
  * Block Explorer Link Component
5
5
  *
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ConnectButton } from 'thirdweb/react';
3
3
  import { createWallet } from 'thirdweb/wallets';
4
4
  import { createThirdwebClient } from 'thirdweb';
5
- import { THIRDWEB_CLIENT_ID, DEFAULT_CHAIN } from '../../config/chains';
5
+ import { THIRDWEB_CLIENT_ID, DEFAULT_CHAIN } from '../../config/chains.js';
6
6
  /**
7
7
  * Connect Wallet Button Component
8
8
  *
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useActiveAccount, useWalletBalance } from 'thirdweb/react';
3
3
  import { createThirdwebClient } from 'thirdweb';
4
- import { THIRDWEB_CLIENT_ID, DEFAULT_CHAIN, formatUSDC } from '../../config/chains';
4
+ import { THIRDWEB_CLIENT_ID, DEFAULT_CHAIN, formatUSDC } from '../../config/chains.js';
5
5
  /**
6
6
  * Wallet Balance Display Component
7
7
  *
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useRef, useEffect } from 'react';
2
2
  import { useActiveAccount, useDisconnect, useActiveWallet } from 'thirdweb/react';
3
- import { formatAddress } from '../../config/chains';
4
- import { WalletBalance } from '../WalletBalance/WalletBalance';
3
+ import { formatAddress } from '../../config/chains.js';
4
+ import { WalletBalance } from '../WalletBalance/WalletBalance.js';
5
5
  /**
6
6
  * Wallet Dropdown Menu Component
7
7
  *
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useActiveAccount } from 'thirdweb/react';
3
- import { formatAddress } from '../../config/chains';
3
+ import { formatAddress } from '../../config/chains.js';
4
4
  /**
5
5
  * Wallet Info Display Component
6
6
  *
@@ -1,11 +1,11 @@
1
- export { ConnectWallet, type ConnectWalletProps } from './ConnectWallet/ConnectWallet';
2
- export { WalletInfo, type WalletInfoProps } from './WalletInfo/WalletInfo';
3
- export { WalletBalance, type WalletBalanceProps } from './WalletBalance/WalletBalance';
4
- export { WalletDropdown, type WalletDropdownProps } from './WalletDropdown/WalletDropdown';
5
- export { DisconnectButton, type DisconnectButtonProps } from './DisconnectButton/DisconnectButton';
6
- export { AddressDisplay, type AddressDisplayProps } from './AddressDisplay/AddressDisplay';
7
- export { BalanceDisplay, type BalanceDisplayProps } from './BalanceDisplay/BalanceDisplay';
8
- export { BlockExplorerLink, type BlockExplorerLinkProps } from './BlockExplorerLink/BlockExplorerLink';
9
- export { AmountInput, type AmountInputProps } from './AmountInput/AmountInput';
10
- export { AddressInput, type AddressInputProps } from './AddressInput/AddressInput';
1
+ export { ConnectWallet, type ConnectWalletProps } from './ConnectWallet/ConnectWallet.js';
2
+ export { WalletInfo, type WalletInfoProps } from './WalletInfo/WalletInfo.js';
3
+ export { WalletBalance, type WalletBalanceProps } from './WalletBalance/WalletBalance.js';
4
+ export { WalletDropdown, type WalletDropdownProps } from './WalletDropdown/WalletDropdown.js';
5
+ export { DisconnectButton, type DisconnectButtonProps } from './DisconnectButton/DisconnectButton.js';
6
+ export { AddressDisplay, type AddressDisplayProps } from './AddressDisplay/AddressDisplay.js';
7
+ export { BalanceDisplay, type BalanceDisplayProps } from './BalanceDisplay/BalanceDisplay.js';
8
+ export { BlockExplorerLink, type BlockExplorerLinkProps } from './BlockExplorerLink/BlockExplorerLink.js';
9
+ export { AmountInput, type AmountInputProps } from './AmountInput/AmountInput.js';
10
+ export { AddressInput, type AddressInputProps } from './AddressInput/AddressInput.js';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,14 @@
1
1
  // Wallet Components
2
- export { ConnectWallet } from './ConnectWallet/ConnectWallet';
3
- export { WalletInfo } from './WalletInfo/WalletInfo';
4
- export { WalletBalance } from './WalletBalance/WalletBalance';
5
- export { WalletDropdown } from './WalletDropdown/WalletDropdown';
6
- export { DisconnectButton } from './DisconnectButton/DisconnectButton';
2
+ export { ConnectWallet } from './ConnectWallet/ConnectWallet.js';
3
+ export { WalletInfo } from './WalletInfo/WalletInfo.js';
4
+ export { WalletBalance } from './WalletBalance/WalletBalance.js';
5
+ export { WalletDropdown } from './WalletDropdown/WalletDropdown.js';
6
+ export { DisconnectButton } from './DisconnectButton/DisconnectButton.js';
7
7
  // Display Components
8
- export { AddressDisplay } from './AddressDisplay/AddressDisplay';
9
- export { BalanceDisplay } from './BalanceDisplay/BalanceDisplay';
10
- export { BlockExplorerLink } from './BlockExplorerLink/BlockExplorerLink';
8
+ export { AddressDisplay } from './AddressDisplay/AddressDisplay.js';
9
+ export { BalanceDisplay } from './BalanceDisplay/BalanceDisplay.js';
10
+ export { BlockExplorerLink } from './BlockExplorerLink/BlockExplorerLink.js';
11
11
  // Form Components
12
- export { AmountInput } from './AmountInput/AmountInput';
13
- export { AddressInput } from './AddressInput/AddressInput';
12
+ export { AmountInput } from './AmountInput/AmountInput.js';
13
+ export { AddressInput } from './AddressInput/AddressInput.js';
14
14
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varity-labs/ui-kit",
3
- "version": "2.0.0-beta.14",
3
+ "version": "2.0.0-beta.16",
4
4
  "description": "React component library for building applications with Varity - Auth, payments, dashboard components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,6 +21,7 @@
21
21
  "sideEffects": false,
22
22
  "scripts": {
23
23
  "build": "tsc",
24
+ "postbuild": "node ../../../scripts/fix-esm-imports.mjs",
24
25
  "watch": "tsc --watch",
25
26
  "test": "jest --coverage",
26
27
  "test:watch": "jest --watch",