@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.
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/components/AI/ChatbotWidget.d.ts +1 -1
- package/dist/components/AI/ChatbotWidget.js +2 -2
- package/dist/components/AI/index.d.ts +6 -6
- package/dist/components/AI/index.js +3 -3
- package/dist/components/Analytics/EnhancedKPICard.js +1 -1
- package/dist/components/Analytics/index.d.ts +10 -10
- package/dist/components/Analytics/index.js +6 -6
- package/dist/components/Branding/index.d.ts +6 -6
- package/dist/components/Branding/index.js +3 -3
- package/dist/components/Dashboard/DashboardHeader.d.ts +1 -1
- package/dist/components/Dashboard/DashboardLayout.js +3 -3
- package/dist/components/Dashboard/DashboardSidebar.d.ts +1 -1
- package/dist/components/Dashboard/index.d.ts +12 -12
- package/dist/components/Dashboard/index.js +8 -8
- package/dist/components/Display/index.d.ts +3 -3
- package/dist/components/Display/index.js +3 -3
- package/dist/components/Feedback/ToastProvider.js +1 -1
- package/dist/components/Feedback/index.d.ts +5 -5
- package/dist/components/Feedback/index.js +3 -3
- package/dist/components/Feedback/useToast.d.ts +1 -1
- package/dist/components/Feedback/useToast.js +1 -1
- package/dist/components/Form/index.d.ts +7 -7
- package/dist/components/Form/index.js +7 -7
- package/dist/components/InAppWallet/EmailLoginButton.js +1 -1
- package/dist/components/InAppWallet/OnboardingFlow.js +3 -3
- package/dist/components/InAppWallet/SocialLoginButtons.js +1 -1
- package/dist/components/InAppWallet/index.d.ts +5 -5
- package/dist/components/InAppWallet/index.js +4 -4
- package/dist/components/Navigation/index.d.ts +2 -2
- package/dist/components/Navigation/index.js +2 -2
- package/dist/components/Onramp/index.d.ts +4 -4
- package/dist/components/Onramp/index.js +2 -2
- package/dist/components/Overlay/ConfirmDialog.js +2 -2
- package/dist/components/Overlay/index.d.ts +3 -3
- package/dist/components/Overlay/index.js +3 -3
- package/dist/components/PaymentWidget/PaymentGate.d.ts +1 -1
- package/dist/components/PaymentWidget/PaymentGate.js +2 -2
- package/dist/components/PaymentWidget/PaymentWidget.d.ts +1 -1
- package/dist/components/PaymentWidget/PaymentWidget.js +1 -1
- package/dist/components/PaymentWidget/index.d.ts +5 -5
- package/dist/components/PaymentWidget/index.js +4 -4
- package/dist/components/PaymentWidget/useSeamlessPayment.js +1 -1
- package/dist/components/PaymentWidget/useVarityPayment.d.ts +1 -1
- package/dist/components/Payments/CheckoutModal.d.ts +1 -1
- package/dist/components/Payments/CheckoutModal.js +1 -1
- package/dist/components/Payments/SubscriptionWidget.d.ts +1 -1
- package/dist/components/Payments/SubscriptionWidget.js +1 -1
- package/dist/components/Payments/constants.d.ts +1 -1
- package/dist/components/Payments/constants.js +1 -1
- package/dist/components/Payments/index.d.ts +5 -5
- package/dist/components/Payments/index.js +5 -5
- package/dist/components/Payments/usePayments.d.ts +1 -1
- package/dist/components/Payments/usePayments.js +2 -2
- package/dist/components/Privy/PrivyLoginButton.d.ts +3 -3
- package/dist/components/Privy/PrivyLoginButton.d.ts.map +1 -1
- package/dist/components/Privy/PrivyLoginButton.js +2 -2
- package/dist/components/Privy/PrivyLoginButton.js.map +1 -1
- package/dist/components/Privy/PrivyProtectedRoute.d.ts +3 -3
- package/dist/components/Privy/PrivyProtectedRoute.d.ts.map +1 -1
- package/dist/components/Privy/PrivyProtectedRoute.js +2 -2
- package/dist/components/Privy/PrivyProtectedRoute.js.map +1 -1
- package/dist/components/Privy/PrivyReadyGate.d.ts +3 -3
- package/dist/components/Privy/PrivyReadyGate.d.ts.map +1 -1
- package/dist/components/Privy/PrivyReadyGate.js +4 -4
- package/dist/components/Privy/PrivyReadyGate.js.map +1 -1
- package/dist/components/Privy/PrivyUserProfile.d.ts +3 -3
- package/dist/components/Privy/PrivyUserProfile.d.ts.map +1 -1
- package/dist/components/Privy/PrivyUserProfile.js +2 -2
- package/dist/components/Privy/PrivyUserProfile.js.map +1 -1
- package/dist/components/Privy/index.d.ts +14 -14
- package/dist/components/Privy/index.d.ts.map +1 -1
- package/dist/components/Privy/index.js +9 -9
- package/dist/components/Privy/index.js.map +1 -1
- package/dist/components/SIWE/AuthStatus.js +1 -1
- package/dist/components/SIWE/ProtectedRoute.js +2 -2
- package/dist/components/SIWE/SIWEButton.js +1 -1
- package/dist/components/SIWE/SIWEModal.js +2 -2
- package/dist/components/SIWE/index.d.ts +10 -10
- package/dist/components/SIWE/index.js +5 -5
- package/dist/components/index.d.ts +8 -8
- package/dist/components/index.js +10 -10
- package/dist/components/templates/Finance/FinanceDashboard.d.ts +1 -1
- package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts +1 -1
- package/dist/components/templates/ISO/ISODashboard.d.ts +1 -1
- package/dist/components/templates/Retail/RetailDashboard.d.ts +1 -1
- package/dist/components/templates/index.d.ts +8 -8
- package/dist/components/templates/index.js +4 -4
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/web3/index.d.ts +4 -4
- package/dist/hooks/web3/index.js +4 -4
- package/dist/hooks/web3/useBlockExplorer.js +1 -1
- package/dist/hooks/web3/useUSDCFormat.js +1 -1
- package/dist/hooks/web3/useVarityWallet.js +1 -1
- package/dist/index.d.ts +28 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -66
- package/dist/index.js.map +1 -1
- package/dist/modules/analytics/AnalyticsClient.d.ts +1 -1
- package/dist/modules/analytics/index.d.ts +1 -1
- package/dist/modules/analytics/index.js +1 -1
- package/dist/modules/auth/AuthClient.d.ts +1 -1
- package/dist/modules/auth/index.d.ts +1 -1
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/cache/CacheClient.d.ts +1 -1
- package/dist/modules/compute/ComputeClient.d.ts +1 -1
- package/dist/modules/compute/index.d.ts +1 -1
- package/dist/modules/compute/index.js +1 -1
- package/dist/modules/export/ExportClient.d.ts +1 -1
- package/dist/modules/export/index.d.ts +1 -1
- package/dist/modules/export/index.js +1 -1
- package/dist/modules/forecasting/ForecastingClient.d.ts +1 -1
- package/dist/modules/forecasting/index.d.ts +1 -1
- package/dist/modules/forecasting/index.js +1 -1
- package/dist/modules/monitoring/MonitoringClient.d.ts +1 -1
- package/dist/modules/monitoring/index.d.ts +1 -1
- package/dist/modules/monitoring/index.js +1 -1
- package/dist/modules/notifications/NotificationsClient.d.ts +1 -1
- package/dist/modules/notifications/index.d.ts +1 -1
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/oracle/OracleClient.d.ts +1 -1
- package/dist/modules/oracle/index.d.ts +1 -1
- package/dist/modules/oracle/index.js +1 -1
- package/dist/modules/storage/StorageClient.d.ts +1 -1
- package/dist/modules/storage/index.d.ts +1 -1
- package/dist/modules/storage/index.js +1 -1
- package/dist/modules/templates/TemplateDeploymentClient.d.ts +1 -1
- package/dist/modules/templates/index.d.ts +2 -2
- package/dist/modules/templates/index.js +1 -1
- package/dist/modules/webhooks/WebhooksClient.d.ts +1 -1
- package/dist/modules/webhooks/index.d.ts +1 -1
- package/dist/modules/webhooks/index.js +1 -1
- package/dist/modules/zk/ZKClient.d.ts +1 -1
- package/dist/modules/zk/index.d.ts +1 -1
- package/dist/modules/zk/index.js +1 -1
- package/dist/providers/ChainContext.js +1 -1
- package/dist/providers/PrivyProvider.d.ts +3 -3
- package/dist/providers/PrivyProvider.d.ts.map +1 -1
- package/dist/providers/PrivyProvider.js +2 -2
- package/dist/providers/PrivyProvider.js.map +1 -1
- package/dist/providers/PrivyStack.d.ts +3 -3
- package/dist/providers/PrivyStack.d.ts.map +1 -1
- package/dist/providers/PrivyStack.js +5 -5
- package/dist/providers/PrivyStack.js.map +1 -1
- package/dist/providers/VarityDashboardProvider.d.ts +1 -1
- package/dist/providers/VarityDashboardProvider.js +1 -1
- package/dist/providers/VarityProvider.d.ts +1 -1
- package/dist/providers/VarityProvider.js +1 -1
- package/dist/providers/index.d.ts +8 -8
- package/dist/providers/index.js +8 -8
- package/dist/tests/mocks/httpClient.mock.d.ts +1 -1
- package/dist/tests/mocks/httpClient.mock.js +1 -1
- package/dist/wallets/SimpleSmartWallet.js +1 -1
- package/dist/wallets/index.d.ts +3 -3
- package/dist/wallets/index.js +3 -3
- package/dist/web3/AddressDisplay/AddressDisplay.js +1 -1
- package/dist/web3/AmountInput/AmountInput.js +1 -1
- package/dist/web3/BalanceDisplay/BalanceDisplay.js +1 -1
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.js +1 -1
- package/dist/web3/ConnectWallet/ConnectWallet.js +1 -1
- package/dist/web3/WalletBalance/WalletBalance.js +1 -1
- package/dist/web3/WalletDropdown/WalletDropdown.js +2 -2
- package/dist/web3/WalletInfo/WalletInfo.js +1 -1
- package/dist/web3/index.d.ts +10 -10
- package/dist/web3/index.js +10 -10
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { SUBSCRIPTION_PLANS, formatUSDC } from './constants';
|
|
2
|
+
import { SUBSCRIPTION_PLANS, formatUSDC } from './constants.js';
|
|
3
3
|
export const SubscriptionWidget = ({ currentPlan, onSelectPlan, theme = 'dark', showAnnualToggle = false, className = '', isLoading = false, }) => {
|
|
4
4
|
const [billingPeriod, setBillingPeriod] = useState('monthly');
|
|
5
5
|
const bgColor = theme === 'dark' ? 'bg-gray-900' : 'bg-white';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Payments Components
|
|
3
3
|
* Subscription and payment management for Varity L3
|
|
4
4
|
*/
|
|
5
|
-
export { SubscriptionWidget } from './SubscriptionWidget';
|
|
6
|
-
export { CheckoutModal } from './CheckoutModal';
|
|
7
|
-
export { usePayments } from './usePayments';
|
|
8
|
-
export * from './types';
|
|
9
|
-
export * from './constants';
|
|
5
|
+
export { SubscriptionWidget } from './SubscriptionWidget.js';
|
|
6
|
+
export { CheckoutModal } from './CheckoutModal.js';
|
|
7
|
+
export { usePayments } from './usePayments.js';
|
|
8
|
+
export * from './types.js';
|
|
9
|
+
export * from './constants.js';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Payments Components
|
|
3
3
|
* Subscription and payment management for Varity L3
|
|
4
4
|
*/
|
|
5
|
-
export { SubscriptionWidget } from './SubscriptionWidget';
|
|
6
|
-
export { CheckoutModal } from './CheckoutModal';
|
|
7
|
-
export { usePayments } from './usePayments';
|
|
5
|
+
export { SubscriptionWidget } from './SubscriptionWidget.js';
|
|
6
|
+
export { CheckoutModal } from './CheckoutModal.js';
|
|
7
|
+
export { usePayments } from './usePayments.js';
|
|
8
8
|
// Export types
|
|
9
|
-
export * from './types';
|
|
9
|
+
export * from './types.js';
|
|
10
10
|
// Export constants
|
|
11
|
-
export * from './constants';
|
|
11
|
+
export * from './constants.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserSubscription, Payment, Invoice, UsageMetrics, SubscriptionTier } from './types';
|
|
1
|
+
import { UserSubscription, Payment, Invoice, UsageMetrics, SubscriptionTier } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Payments Hook
|
|
4
4
|
* Provides subscription and payment management functionality
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback } from 'react';
|
|
2
2
|
import axios from 'axios';
|
|
3
|
-
import { useSIWE } from '../SIWE/SIWEProvider';
|
|
4
|
-
import { PAYMENT_ENDPOINTS } from './constants';
|
|
3
|
+
import { useSIWE } from '../SIWE/SIWEProvider.js';
|
|
4
|
+
import { PAYMENT_ENDPOINTS } from './constants.js';
|
|
5
5
|
export const usePayments = ({ apiUrl }) => {
|
|
6
6
|
const { isAuthenticated, accessToken, user } = useSIWE();
|
|
7
7
|
// State
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { User } from '@privy-io/react-auth';
|
|
3
|
-
export interface
|
|
3
|
+
export interface LoginButtonProps {
|
|
4
4
|
onSuccess?: (user: User) => void;
|
|
5
5
|
onError?: (error: Error) => void;
|
|
6
6
|
className?: string;
|
|
@@ -22,6 +22,6 @@ export interface PrivyLoginButtonProps {
|
|
|
22
22
|
* </PrivyLoginButton>
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export declare function
|
|
26
|
-
export default
|
|
25
|
+
export declare function LoginButton({ onSuccess, onError, className, children, }: LoginButtonProps): JSX.Element;
|
|
26
|
+
export default LoginButton;
|
|
27
27
|
//# sourceMappingURL=PrivyLoginButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyLoginButton.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyLoginButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAItD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"PrivyLoginButton.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyLoginButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAItD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,OAAO,EACP,SAAoI,EACpI,QAAyC,GAC1C,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAyChC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -18,7 +18,7 @@ import { getErrorMessage } from '@varity-labs/types';
|
|
|
18
18
|
* </PrivyLoginButton>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export function
|
|
21
|
+
export function LoginButton({ onSuccess, onError, className = 'px-6 py-3 bg-indigo-600 hover:bg-indigo-700 text-white font-medium rounded-lg transition-all shadow-lg hover:shadow-xl', children = 'Sign In with Email or Social', }) {
|
|
22
22
|
const { ready, authenticated, login, user } = usePrivy();
|
|
23
23
|
const handleLogin = async () => {
|
|
24
24
|
try {
|
|
@@ -44,5 +44,5 @@ export function PrivyLoginButton({ onSuccess, onError, className = 'px-6 py-3 bg
|
|
|
44
44
|
}
|
|
45
45
|
return (React.createElement("button", { onClick: handleLogin, className: className }, children));
|
|
46
46
|
}
|
|
47
|
-
export default
|
|
47
|
+
export default LoginButton;
|
|
48
48
|
//# sourceMappingURL=PrivyLoginButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyLoginButton.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyLoginButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAQ,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AASrD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"PrivyLoginButton.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyLoginButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAQ,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AASrD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,SA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
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ProtectedRouteProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
fallback?: ReactNode;
|
|
5
5
|
loadingComponent?: ReactNode;
|
|
@@ -17,6 +17,6 @@ export interface PrivyProtectedRouteProps {
|
|
|
17
17
|
* </PrivyProtectedRoute>
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export declare function
|
|
21
|
-
export default
|
|
20
|
+
export declare function ProtectedRoute({ children, fallback, loadingComponent, }: ProtectedRouteProps): JSX.Element;
|
|
21
|
+
export default ProtectedRoute;
|
|
22
22
|
//# sourceMappingURL=PrivyProtectedRoute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyProtectedRoute.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"PrivyProtectedRoute.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,gBAAgB,GACjB,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAgEnC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -13,7 +13,7 @@ import { usePrivy } from '@privy-io/react-auth';
|
|
|
13
13
|
* </PrivyProtectedRoute>
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
export function
|
|
16
|
+
export function ProtectedRoute({ children, fallback, loadingComponent, }) {
|
|
17
17
|
const { ready, authenticated, login } = usePrivy();
|
|
18
18
|
// Loading state
|
|
19
19
|
if (!ready) {
|
|
@@ -42,5 +42,5 @@ export function PrivyProtectedRoute({ children, fallback, loadingComponent, }) {
|
|
|
42
42
|
// Authenticated - show protected content
|
|
43
43
|
return React.createElement(React.Fragment, null, children);
|
|
44
44
|
}
|
|
45
|
-
export default
|
|
45
|
+
export default ProtectedRoute;
|
|
46
46
|
//# sourceMappingURL=PrivyProtectedRoute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyProtectedRoute.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAQhD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"PrivyProtectedRoute.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAQhD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,gBAAgB,GACI;IACpB,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,CAAC;IAEnD,gBAAgB;IAChB,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,IAAI,gBAAgB,EAAE,CAAC;YACrB,OAAO,0CAAG,gBAAgB,CAAI,CAAC;QACjC,CAAC;QAED,OAAO,CACL,6BAAK,SAAS,EAAC,+CAA+C;YAC5D,6BAAK,SAAS,EAAC,aAAa;gBAC1B,6BAAK,SAAS,EAAC,0EAA0E,GAAO;gBAChG,2BAAG,SAAS,EAAC,oBAAoB,iBAAe,CAC5C,CACF,CACP,CAAC;IACJ,CAAC;IAED,4DAA4D;IAC5D,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,0CAAG,QAAQ,CAAI,CAAC;QACzB,CAAC;QAED,OAAO,CACL,6BAAK,SAAS,EAAC,0DAA0D;YACvE,6BAAK,SAAS,EAAC,uEAAuE;gBACpF,6BAAK,SAAS,EAAC,MAAM;oBACnB,6BACE,SAAS,EAAC,mCAAmC,EAC7C,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,MAAM,EAAC,cAAc;wBAErB,8BACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,sGAAsG,GACxG,CACE,CACF;gBAEN,4BAAI,SAAS,EAAC,uCAAuC,8BAEhD;gBACL,2BAAG,SAAS,EAAC,oBAAoB,4CAE7B;gBAEJ,gCACE,OAAO,EAAE,KAAK,EACd,SAAS,EAAC,+HAA+H,cAGlI,CACL,CACF,CACP,CAAC;IACJ,CAAC;IAED,yCAAyC;IACzC,OAAO,0CAAG,QAAQ,CAAI,CAAC;AACzB,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ReadyGateProps {
|
|
3
3
|
/**
|
|
4
4
|
* The content to render once Privy is ready
|
|
5
5
|
*/
|
|
@@ -64,6 +64,6 @@ export interface PrivyReadyGateProps {
|
|
|
64
64
|
* </PrivyReadyGate>
|
|
65
65
|
* ```
|
|
66
66
|
*/
|
|
67
|
-
export declare function
|
|
68
|
-
export default
|
|
67
|
+
export declare function ReadyGate({ children, timeout, initializingScreen, timeoutScreen, }: ReadyGateProps): JSX.Element;
|
|
68
|
+
export default ReadyGate;
|
|
69
69
|
//# sourceMappingURL=PrivyReadyGate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyReadyGate.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyReadyGate.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuB,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9D,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"PrivyReadyGate.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyReadyGate.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuB,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9D,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,OAAe,EACf,kBAAkB,EAClB,aAAa,GACd,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAuC9B;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { usePrivy } from '@privy-io/react-auth';
|
|
3
|
-
import { InitializingScreen } from './InitializingScreen';
|
|
4
|
-
import { InitTimeoutScreen } from './InitTimeoutScreen';
|
|
3
|
+
import { InitializingScreen } from './InitializingScreen.js';
|
|
4
|
+
import { InitTimeoutScreen } from './InitTimeoutScreen.js';
|
|
5
5
|
/**
|
|
6
6
|
* PrivyReadyGate - Waits for Privy to be ready before rendering children
|
|
7
7
|
*
|
|
@@ -48,7 +48,7 @@ import { InitTimeoutScreen } from './InitTimeoutScreen';
|
|
|
48
48
|
* </PrivyReadyGate>
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
export function
|
|
51
|
+
export function ReadyGate({ children, timeout = 10000, initializingScreen, timeoutScreen, }) {
|
|
52
52
|
const { ready } = usePrivy();
|
|
53
53
|
const [showTimeoutScreen, setShowTimeoutScreen] = useState(false);
|
|
54
54
|
useEffect(() => {
|
|
@@ -79,5 +79,5 @@ export function PrivyReadyGate({ children, timeout = 10000, initializingScreen,
|
|
|
79
79
|
}
|
|
80
80
|
return React.createElement(InitializingScreen, null);
|
|
81
81
|
}
|
|
82
|
-
export default
|
|
82
|
+
export default ReadyGate;
|
|
83
83
|
//# sourceMappingURL=PrivyReadyGate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyReadyGate.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyReadyGate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAsBxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"PrivyReadyGate.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyReadyGate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAsBxD;;;;;;;;;;;;;;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
showLogoutButton?: boolean;
|
|
3
3
|
onLogout?: () => void;
|
|
4
4
|
className?: string;
|
|
@@ -20,6 +20,6 @@ export interface PrivyUserProfileProps {
|
|
|
20
20
|
* />
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare function
|
|
24
|
-
export default
|
|
23
|
+
export declare function UserProfile({ showLogoutButton, onLogout, className, }: UserProfileProps): JSX.Element | null;
|
|
24
|
+
export default UserProfile;
|
|
25
25
|
//# sourceMappingURL=PrivyUserProfile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyUserProfile.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyUserProfile.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"PrivyUserProfile.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/PrivyUserProfile.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,gBAAuB,EACvB,QAAQ,EACR,SAAgE,GACjE,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CA6GvC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -19,7 +19,7 @@ import { getErrorMessage } from '@varity-labs/types';
|
|
|
19
19
|
* />
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export function
|
|
22
|
+
export function UserProfile({ showLogoutButton = true, onLogout, className = 'max-w-md mx-auto p-6 bg-white rounded-xl shadow-lg', }) {
|
|
23
23
|
const { ready, authenticated, user, logout: privyLogout } = usePrivy();
|
|
24
24
|
const { wallets } = useWallets();
|
|
25
25
|
const handleLogout = async () => {
|
|
@@ -94,5 +94,5 @@ export function PrivyUserProfile({ showLogoutButton = true, onLogout, className
|
|
|
94
94
|
React.createElement("span", { className: "text-sm text-gray-700" }, new Date(user.createdAt).toLocaleDateString())))),
|
|
95
95
|
showLogoutButton && (React.createElement("button", { onClick: handleLogout, className: "w-full mt-4 px-6 py-3 bg-red-600 hover:bg-red-700 text-white font-medium rounded-lg transition-all shadow-md hover:shadow-lg" }, "Logout"))));
|
|
96
96
|
}
|
|
97
|
-
export default
|
|
97
|
+
export default UserProfile;
|
|
98
98
|
//# sourceMappingURL=PrivyUserProfile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivyUserProfile.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyUserProfile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"PrivyUserProfile.js","sourceRoot":"","sources":["../../../src/components/Privy/PrivyUserProfile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,gBAAgB,GAAG,IAAI,EACvB,QAAQ,EACR,SAAS,GAAG,oDAAoD,GAC/C;IACjB,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EA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AC,CAAC,EAAE,CAAC,CAAC;0BACf,CACH;YAEL,IAAI,CAAC,SAAS,IAAI,CACjB,6BAAK,SAAS,EAAC,mCAAmC;gBAChD,8BAAM,SAAS,EAAC,2BAA2B,cAAe;gBAC1D,8BAAM,SAAS,EAAC,uBAAuB,IACpC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,kBAAkB,EAAE,CACzC,CACH,CACP,CACG;QAEL,gBAAgB,IAAI,CACnB,gCACE,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,8HAA8H,aAGjI,CACV,CACG,CACP,CAAC;AACJ,CAAC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Authentication Components
|
|
3
3
|
*
|
|
4
|
-
* Components for email/social authentication
|
|
4
|
+
* Components for email/social authentication.
|
|
5
5
|
* Ideal for non-crypto native users who don't have wallets.
|
|
6
6
|
*
|
|
7
7
|
* Production Patterns: Extracted from generic-template-dashboard
|
|
8
8
|
*/
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
11
|
-
export {
|
|
12
|
-
export type {
|
|
13
|
-
export {
|
|
14
|
-
export type {
|
|
15
|
-
export {
|
|
16
|
-
export type {
|
|
17
|
-
export { InitializingScreen } from './InitializingScreen';
|
|
18
|
-
export type { InitializingScreenProps } from './InitializingScreen';
|
|
19
|
-
export { InitTimeoutScreen } from './InitTimeoutScreen';
|
|
20
|
-
export type { InitTimeoutScreenProps } from './InitTimeoutScreen';
|
|
9
|
+
export { LoginButton } from './PrivyLoginButton.js';
|
|
10
|
+
export type { LoginButtonProps } from './PrivyLoginButton.js';
|
|
11
|
+
export { UserProfile } from './PrivyUserProfile.js';
|
|
12
|
+
export type { UserProfileProps } from './PrivyUserProfile.js';
|
|
13
|
+
export { ProtectedRoute } from './PrivyProtectedRoute.js';
|
|
14
|
+
export type { ProtectedRouteProps } from './PrivyProtectedRoute.js';
|
|
15
|
+
export { ReadyGate } from './PrivyReadyGate.js';
|
|
16
|
+
export type { ReadyGateProps } from './PrivyReadyGate.js';
|
|
17
|
+
export { InitializingScreen } from './InitializingScreen.js';
|
|
18
|
+
export type { InitializingScreenProps } from './InitializingScreen.js';
|
|
19
|
+
export { InitTimeoutScreen } from './InitTimeoutScreen.js';
|
|
20
|
+
export type { InitTimeoutScreenProps } from './InitTimeoutScreen.js';
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Privy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Authentication Components
|
|
3
3
|
*
|
|
4
|
-
* Components for email/social authentication
|
|
4
|
+
* Components for email/social authentication.
|
|
5
5
|
* Ideal for non-crypto native users who don't have wallets.
|
|
6
6
|
*
|
|
7
7
|
* Production Patterns: Extracted from generic-template-dashboard
|
|
8
8
|
*/
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
// Production patterns for
|
|
13
|
-
export {
|
|
14
|
-
export { InitializingScreen } from './InitializingScreen';
|
|
15
|
-
export { InitTimeoutScreen } from './InitTimeoutScreen';
|
|
9
|
+
export { LoginButton } from './PrivyLoginButton.js';
|
|
10
|
+
export { UserProfile } from './PrivyUserProfile.js';
|
|
11
|
+
export { ProtectedRoute } from './PrivyProtectedRoute.js';
|
|
12
|
+
// Production patterns for auth initialization
|
|
13
|
+
export { ReadyGate } from './PrivyReadyGate.js';
|
|
14
|
+
export { InitializingScreen } from './InitializingScreen.js';
|
|
15
|
+
export { InitTimeoutScreen } from './InitTimeoutScreen.js';
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Privy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Privy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,8CAA8C;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useSIWE } from './SIWEProvider';
|
|
2
|
+
import { useSIWE } from './SIWEProvider.js';
|
|
3
3
|
import { useActiveAccount } from 'thirdweb/react';
|
|
4
4
|
export const AuthStatus = ({ className = '', theme = 'dark', showAddress = true, showChainId = true, compact = false, }) => {
|
|
5
5
|
const { isAuthenticated, user, isLoading } = useSIWE();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { useSIWE } from './SIWEProvider';
|
|
3
|
-
import { SIWEModal } from './SIWEModal';
|
|
2
|
+
import { useSIWE } from './SIWEProvider.js';
|
|
3
|
+
import { SIWEModal } from './SIWEModal.js';
|
|
4
4
|
export const ProtectedRoute = ({ children, fallback, redirectTo, clientId, onUnauthorized, requireAuth = true, loadingComponent, }) => {
|
|
5
5
|
const { isAuthenticated, isLoading } = useSIWE();
|
|
6
6
|
const [showAuthModal, setShowAuthModal] = useState(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { ConnectButton, useActiveAccount } from 'thirdweb/react';
|
|
3
3
|
import { createThirdwebClient } from 'thirdweb';
|
|
4
|
-
import { useSIWE } from './SIWEProvider';
|
|
4
|
+
import { useSIWE } from './SIWEProvider.js';
|
|
5
5
|
export const SIWEButton = ({ clientId, className = '', loginText = 'Sign In with Ethereum', logoutText = 'Sign Out', connectWalletText = 'Connect Wallet', loadingText = 'Signing in...', onLoginStart, onLoginComplete, onLogoutComplete, theme = 'dark', variant = 'primary', size = 'md', }) => {
|
|
6
6
|
const { isAuthenticated, isLoading, login, logout, error } = useSIWE();
|
|
7
7
|
const account = useActiveAccount();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { useActiveAccount } from 'thirdweb/react';
|
|
3
|
-
import { useSIWE } from './SIWEProvider';
|
|
4
|
-
import { SIWEButton } from './SIWEButton';
|
|
3
|
+
import { useSIWE } from './SIWEProvider.js';
|
|
4
|
+
import { SIWEButton } from './SIWEButton.js';
|
|
5
5
|
export const SIWEModal = ({ isOpen, onClose, clientId, title = 'Sign In to Varity', description = 'Connect your wallet and sign the message to authenticate', logoUrl, onSuccess, theme = 'dark', requireAuth = false, }) => {
|
|
6
6
|
const { isAuthenticated } = useSIWE();
|
|
7
7
|
const account = useActiveAccount();
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* SIWE (Sign-In with Ethereum) Components
|
|
3
3
|
* EIP-4361 compliant authentication components for Web3 applications
|
|
4
4
|
*/
|
|
5
|
-
export { SIWEProvider, useSIWE } from './SIWEProvider';
|
|
6
|
-
export { SIWEButton } from './SIWEButton';
|
|
7
|
-
export { SIWEModal } from './SIWEModal';
|
|
8
|
-
export { ProtectedRoute } from './ProtectedRoute';
|
|
9
|
-
export { AuthStatus } from './AuthStatus';
|
|
10
|
-
export type { default as SIWEProviderProps } from './SIWEProvider';
|
|
11
|
-
export type { default as SIWEButtonProps } from './SIWEButton';
|
|
12
|
-
export type { default as SIWEModalProps } from './SIWEModal';
|
|
13
|
-
export type { default as ProtectedRouteProps } from './ProtectedRoute';
|
|
14
|
-
export type { default as AuthStatusProps } from './AuthStatus';
|
|
5
|
+
export { SIWEProvider, useSIWE } from './SIWEProvider.js';
|
|
6
|
+
export { SIWEButton } from './SIWEButton.js';
|
|
7
|
+
export { SIWEModal } from './SIWEModal.js';
|
|
8
|
+
export { ProtectedRoute } from './ProtectedRoute.js';
|
|
9
|
+
export { AuthStatus } from './AuthStatus.js';
|
|
10
|
+
export type { default as SIWEProviderProps } from './SIWEProvider.js';
|
|
11
|
+
export type { default as SIWEButtonProps } from './SIWEButton.js';
|
|
12
|
+
export type { default as SIWEModalProps } from './SIWEModal.js';
|
|
13
|
+
export type { default as ProtectedRouteProps } from './ProtectedRoute.js';
|
|
14
|
+
export type { default as AuthStatusProps } from './AuthStatus.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* SIWE (Sign-In with Ethereum) Components
|
|
3
3
|
* EIP-4361 compliant authentication components for Web3 applications
|
|
4
4
|
*/
|
|
5
|
-
export { SIWEProvider, useSIWE } from './SIWEProvider';
|
|
6
|
-
export { SIWEButton } from './SIWEButton';
|
|
7
|
-
export { SIWEModal } from './SIWEModal';
|
|
8
|
-
export { ProtectedRoute } from './ProtectedRoute';
|
|
9
|
-
export { AuthStatus } from './AuthStatus';
|
|
5
|
+
export { SIWEProvider, useSIWE } from './SIWEProvider.js';
|
|
6
|
+
export { SIWEButton } from './SIWEButton.js';
|
|
7
|
+
export { SIWEModal } from './SIWEModal.js';
|
|
8
|
+
export { ProtectedRoute } from './ProtectedRoute.js';
|
|
9
|
+
export { AuthStatus } from './AuthStatus.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Complete component library for building Varity-powered dashboards.
|
|
5
5
|
*/
|
|
6
|
-
export * from './Dashboard';
|
|
7
|
-
export * from './Analytics';
|
|
8
|
-
export * from './Form';
|
|
9
|
-
export * from './Overlay';
|
|
10
|
-
export * from './Feedback';
|
|
11
|
-
export * from './Display';
|
|
12
|
-
export * from './Navigation';
|
|
13
|
-
export * from './Branding';
|
|
6
|
+
export * from './Dashboard/index.js';
|
|
7
|
+
export * from './Analytics/index.js';
|
|
8
|
+
export * from './Form/index.js';
|
|
9
|
+
export * from './Overlay/index.js';
|
|
10
|
+
export * from './Feedback/index.js';
|
|
11
|
+
export * from './Display/index.js';
|
|
12
|
+
export * from './Navigation/index.js';
|
|
13
|
+
export * from './Branding/index.js';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/components/index.js
CHANGED
|
@@ -4,29 +4,29 @@
|
|
|
4
4
|
* Complete component library for building Varity-powered dashboards.
|
|
5
5
|
*/
|
|
6
6
|
// Dashboard Components
|
|
7
|
-
export * from './Dashboard';
|
|
7
|
+
export * from './Dashboard/index.js';
|
|
8
8
|
// Analytics Components
|
|
9
|
-
export * from './Analytics';
|
|
9
|
+
export * from './Analytics/index.js';
|
|
10
10
|
// Form Components
|
|
11
|
-
export * from './Form';
|
|
11
|
+
export * from './Form/index.js';
|
|
12
12
|
// Overlay Components
|
|
13
|
-
export * from './Overlay';
|
|
13
|
+
export * from './Overlay/index.js';
|
|
14
14
|
// Feedback Components
|
|
15
|
-
export * from './Feedback';
|
|
15
|
+
export * from './Feedback/index.js';
|
|
16
16
|
// Display Components
|
|
17
|
-
export * from './Display';
|
|
17
|
+
export * from './Display/index.js';
|
|
18
18
|
// Navigation Components
|
|
19
|
-
export * from './Navigation';
|
|
19
|
+
export * from './Navigation/index.js';
|
|
20
20
|
// ============================================================================
|
|
21
21
|
// AI Components (requires dynamic hosting via Akash — not available for MVP)
|
|
22
22
|
// Will be enabled when Akash dynamic hosting integration is complete.
|
|
23
23
|
// ============================================================================
|
|
24
|
-
// export * from './AI'
|
|
24
|
+
// export * from './AI/index.js'
|
|
25
25
|
// Branding Components
|
|
26
|
-
export * from './Branding';
|
|
26
|
+
export * from './Branding/index.js';
|
|
27
27
|
// ============================================================================
|
|
28
28
|
// Industry Template Components (planned for future release)
|
|
29
29
|
// Only the SaaS Template is available for MVP launch.
|
|
30
30
|
// ============================================================================
|
|
31
|
-
// export * from './templates'
|
|
31
|
+
// export * from './templates/index.js'
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Features: Banking, Compliance, Transactions, Risk Management
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { DeployedDashboard } from '../../../modules/templates';
|
|
8
|
+
import { DeployedDashboard } from '../../../modules/templates/index.js';
|
|
9
9
|
export interface FinanceDashboardProps {
|
|
10
10
|
dashboard: DeployedDashboard;
|
|
11
11
|
onCustomize?: (customization: any) => void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Features: HIPAA Compliance, Patient Data, Medical Operations
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { DeployedDashboard } from '../../../modules/templates';
|
|
8
|
+
import { DeployedDashboard } from '../../../modules/templates/index.js';
|
|
9
9
|
export interface HealthcareDashboardProps {
|
|
10
10
|
dashboard: DeployedDashboard;
|
|
11
11
|
onCustomize?: (customization: any) => void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Features: Payment Processing, PCI Compliance, Merchant Onboarding
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { DeployedDashboard } from '../../../modules/templates';
|
|
8
|
+
import { DeployedDashboard } from '../../../modules/templates/index.js';
|
|
9
9
|
export interface ISODashboardProps {
|
|
10
10
|
dashboard: DeployedDashboard;
|
|
11
11
|
onCustomize?: (customization: any) => void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Features: E-commerce, Inventory, Supply Chain, Sales Analytics
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { DeployedDashboard } from '../../../modules/templates';
|
|
8
|
+
import { DeployedDashboard } from '../../../modules/templates/index.js';
|
|
9
9
|
export interface RetailDashboardProps {
|
|
10
10
|
dashboard: DeployedDashboard;
|
|
11
11
|
onCustomize?: (customization: any) => void;
|