@naculus/connect-appkit-ui 0.13.0 → 0.15.0

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/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import { WalletNamespace, EmbeddedWalletAccountView, StorageSecurityReport, PassphraseRequest, Web3ConnectConfig } from '@naculus/connect-appkit-react';
4
4
  import { ClassValue } from 'clsx';
5
5
  import { SiwxResult } from '@naculus/siwx';
6
- import { AuthorizationDescription, AuthorizationAssetMetadata, SpendExplanation, PaymentRecord } from '@naculus/connect-appkit-core';
6
+ import { AuthorizationDescription, AuthorizationAssetMetadata, SpendExplanation, SessionKeyRailGrantCheck, Eip3009SessionKeyRail, PaymentRecord } from '@naculus/connect-appkit-core';
7
7
  import { Authorization, ListedAuthorization, RevokeListedAuthorizationResult } from '@naculus/connect-core';
8
8
 
9
9
  interface ConnectButtonProps {
@@ -713,9 +713,11 @@ interface AuthorizationConsentProps {
713
713
  onApprove: () => void;
714
714
  onDecline: () => void;
715
715
  busy?: boolean;
716
+ railGrantCheck?: SessionKeyRailGrantCheck;
717
+ onRegrant?: (missingRail: Eip3009SessionKeyRail) => void;
716
718
  className?: string;
717
719
  }
718
- declare function AuthorizationConsent({ authorization, assets, trustedAssets, locale, now, enforcement, requester, preview, onApprove, onDecline, busy, className, }: AuthorizationConsentProps): React__default.JSX.Element;
720
+ declare function AuthorizationConsent({ authorization, assets, trustedAssets, locale, now, enforcement, requester, preview, onApprove, onDecline, busy, railGrantCheck, onRegrant, className, }: AuthorizationConsentProps): React__default.JSX.Element;
719
721
 
720
722
  interface AuthorizationListProps {
721
723
  entries: ListedAuthorization[] | {
@@ -727,9 +729,11 @@ interface AuthorizationListProps {
727
729
  revokingId?: string;
728
730
  locale?: string;
729
731
  getEnforcement?: (entry: ListedAuthorization) => "on-chain" | "device" | undefined;
732
+ getRailGrantCheck?: (entry: ListedAuthorization) => SessionKeyRailGrantCheck | undefined;
733
+ onRegrant?: (entry: ListedAuthorization, missingRail: Eip3009SessionKeyRail) => void;
730
734
  className?: string;
731
735
  }
732
- declare function AuthorizationList({ entries: input, assets, trustedAssets, onRevoke, revokingId, locale, getEnforcement, className, }: AuthorizationListProps): React__default.JSX.Element;
736
+ declare function AuthorizationList({ entries: input, assets, trustedAssets, onRevoke, revokingId, locale, getEnforcement, getRailGrantCheck, onRegrant, className, }: AuthorizationListProps): React__default.JSX.Element;
733
737
 
734
738
  interface PaymentReceiptProps {
735
739
  record: PaymentRecord;
@@ -739,4 +743,5 @@ interface PaymentReceiptProps {
739
743
  }
740
744
  declare function PaymentReceipt({ record, assets, explorerUrl, className, }: PaymentReceiptProps): React__default.JSX.Element;
741
745
 
742
- export { AccountButton, type AccountButtonProps, AccountSelector, type AccountSelectorProps, AccountSelectorView, type AccountSelectorViewProps, type AccountType, AddressWarningDialog, type AddressWarningDialogProps, AppKit, AppKitButton, type AppKitButtonProps, AppKitChainSelector, type AppKitChainSelectorProps, type AppKitContextValue, type AppKitProps, AuthorizationConsent, type AuthorizationConsentProps, AuthorizationList, type AuthorizationListProps, type BundlerPreset, ChainSelector, type ChainSelectorProps, type ComponentRegistry, ConnectButtonAdapter as ConnectButton, type ConnectButtonProps, type DetectionMode, type DiscoveredWallet, ErrorBoundary, type ErrorBoundaryProps, PasskeySetup, type PasskeySetupProps, PasskeySetupView, type PasskeySetupViewProps, PassphraseDialog, type PassphraseDialogProps, PassphraseDialogView, type PassphraseDialogViewProps, type PaymasterType, PaymentReceipt, type PaymentReceiptProps, QRCodeModal, type QRCodeModalProps, type QRCodeModalStatus, type QRStatus, RouteSelector, type RouteSelectorProps, SeedPhraseBackup, type SeedPhraseBackupProps, SignInButton, type SignInButtonProps, type SmartWalletConfig, SmartWalletSettings, type SmartWalletSettingsProps, SmartWalletToggle, type SmartWalletToggleProps, type ThemeOverride, type ThemePriority, ThemeProvider, type ThemeProviderProps, type TokenDisplay, type UnlockSnapshot, type UseEIP6963Result, type WalletConnectContextValue, WalletConnectProvider, type WalletConnectProviderProps, type WalletConnectState, WalletPicker, type WalletPickerProps, WalletSecurityPanel, type WalletSecurityPanelProps, WalletSecurityPanelView, type WalletSecurityPanelViewProps, Web3ComponentProvider, type Web3ComponentProviderProps, Web3ConnectUI, type Web3ConnectUIProps, cn, useAppKit, useComponent, useComponentRegistry, useDetectionMode, useEIP6963, useIsMobile, useTheme, useThemeVariable, useWalletConnect, useWalletConnectOptional };
746
+ export { AccountButton, AccountSelector, AccountSelectorView, AddressWarningDialog, AppKit, AppKitButton, AppKitChainSelector, AuthorizationConsent, AuthorizationList, ChainSelector, ConnectButtonAdapter as ConnectButton, ErrorBoundary, PasskeySetup, PasskeySetupView, PassphraseDialog, PassphraseDialogView, PaymentReceipt, QRCodeModal, RouteSelector, SeedPhraseBackup, SignInButton, SmartWalletSettings, SmartWalletToggle, ThemeProvider, WalletConnectProvider, WalletPicker, WalletSecurityPanel, WalletSecurityPanelView, Web3ComponentProvider, Web3ConnectUI, cn, useAppKit, useComponent, useComponentRegistry, useDetectionMode, useEIP6963, useIsMobile, useTheme, useThemeVariable, useWalletConnect, useWalletConnectOptional };
747
+ export type { AccountButtonProps, AccountSelectorProps, AccountSelectorViewProps, AccountType, AddressWarningDialogProps, AppKitButtonProps, AppKitChainSelectorProps, AppKitContextValue, AppKitProps, AuthorizationConsentProps, AuthorizationListProps, BundlerPreset, ChainSelectorProps, ComponentRegistry, ConnectButtonProps, DetectionMode, DiscoveredWallet, ErrorBoundaryProps, PasskeySetupProps, PasskeySetupViewProps, PassphraseDialogProps, PassphraseDialogViewProps, PaymasterType, PaymentReceiptProps, QRCodeModalProps, QRCodeModalStatus, QRStatus, RouteSelectorProps, SeedPhraseBackupProps, SignInButtonProps, SmartWalletConfig, SmartWalletSettingsProps, SmartWalletToggleProps, ThemeOverride, ThemePriority, ThemeProviderProps, TokenDisplay, UnlockSnapshot, UseEIP6963Result, WalletConnectContextValue, WalletConnectProviderProps, WalletConnectState, WalletPickerProps, WalletSecurityPanelProps, WalletSecurityPanelViewProps, Web3ComponentProviderProps, Web3ConnectUIProps };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import { WalletNamespace, EmbeddedWalletAccountView, StorageSecurityReport, PassphraseRequest, Web3ConnectConfig } from '@naculus/connect-appkit-react';
4
4
  import { ClassValue } from 'clsx';
5
5
  import { SiwxResult } from '@naculus/siwx';
6
- import { AuthorizationDescription, AuthorizationAssetMetadata, SpendExplanation, PaymentRecord } from '@naculus/connect-appkit-core';
6
+ import { AuthorizationDescription, AuthorizationAssetMetadata, SpendExplanation, SessionKeyRailGrantCheck, Eip3009SessionKeyRail, PaymentRecord } from '@naculus/connect-appkit-core';
7
7
  import { Authorization, ListedAuthorization, RevokeListedAuthorizationResult } from '@naculus/connect-core';
8
8
 
9
9
  interface ConnectButtonProps {
@@ -713,9 +713,11 @@ interface AuthorizationConsentProps {
713
713
  onApprove: () => void;
714
714
  onDecline: () => void;
715
715
  busy?: boolean;
716
+ railGrantCheck?: SessionKeyRailGrantCheck;
717
+ onRegrant?: (missingRail: Eip3009SessionKeyRail) => void;
716
718
  className?: string;
717
719
  }
718
- declare function AuthorizationConsent({ authorization, assets, trustedAssets, locale, now, enforcement, requester, preview, onApprove, onDecline, busy, className, }: AuthorizationConsentProps): React__default.JSX.Element;
720
+ declare function AuthorizationConsent({ authorization, assets, trustedAssets, locale, now, enforcement, requester, preview, onApprove, onDecline, busy, railGrantCheck, onRegrant, className, }: AuthorizationConsentProps): React__default.JSX.Element;
719
721
 
720
722
  interface AuthorizationListProps {
721
723
  entries: ListedAuthorization[] | {
@@ -727,9 +729,11 @@ interface AuthorizationListProps {
727
729
  revokingId?: string;
728
730
  locale?: string;
729
731
  getEnforcement?: (entry: ListedAuthorization) => "on-chain" | "device" | undefined;
732
+ getRailGrantCheck?: (entry: ListedAuthorization) => SessionKeyRailGrantCheck | undefined;
733
+ onRegrant?: (entry: ListedAuthorization, missingRail: Eip3009SessionKeyRail) => void;
730
734
  className?: string;
731
735
  }
732
- declare function AuthorizationList({ entries: input, assets, trustedAssets, onRevoke, revokingId, locale, getEnforcement, className, }: AuthorizationListProps): React__default.JSX.Element;
736
+ declare function AuthorizationList({ entries: input, assets, trustedAssets, onRevoke, revokingId, locale, getEnforcement, getRailGrantCheck, onRegrant, className, }: AuthorizationListProps): React__default.JSX.Element;
733
737
 
734
738
  interface PaymentReceiptProps {
735
739
  record: PaymentRecord;
@@ -739,4 +743,5 @@ interface PaymentReceiptProps {
739
743
  }
740
744
  declare function PaymentReceipt({ record, assets, explorerUrl, className, }: PaymentReceiptProps): React__default.JSX.Element;
741
745
 
742
- export { AccountButton, type AccountButtonProps, AccountSelector, type AccountSelectorProps, AccountSelectorView, type AccountSelectorViewProps, type AccountType, AddressWarningDialog, type AddressWarningDialogProps, AppKit, AppKitButton, type AppKitButtonProps, AppKitChainSelector, type AppKitChainSelectorProps, type AppKitContextValue, type AppKitProps, AuthorizationConsent, type AuthorizationConsentProps, AuthorizationList, type AuthorizationListProps, type BundlerPreset, ChainSelector, type ChainSelectorProps, type ComponentRegistry, ConnectButtonAdapter as ConnectButton, type ConnectButtonProps, type DetectionMode, type DiscoveredWallet, ErrorBoundary, type ErrorBoundaryProps, PasskeySetup, type PasskeySetupProps, PasskeySetupView, type PasskeySetupViewProps, PassphraseDialog, type PassphraseDialogProps, PassphraseDialogView, type PassphraseDialogViewProps, type PaymasterType, PaymentReceipt, type PaymentReceiptProps, QRCodeModal, type QRCodeModalProps, type QRCodeModalStatus, type QRStatus, RouteSelector, type RouteSelectorProps, SeedPhraseBackup, type SeedPhraseBackupProps, SignInButton, type SignInButtonProps, type SmartWalletConfig, SmartWalletSettings, type SmartWalletSettingsProps, SmartWalletToggle, type SmartWalletToggleProps, type ThemeOverride, type ThemePriority, ThemeProvider, type ThemeProviderProps, type TokenDisplay, type UnlockSnapshot, type UseEIP6963Result, type WalletConnectContextValue, WalletConnectProvider, type WalletConnectProviderProps, type WalletConnectState, WalletPicker, type WalletPickerProps, WalletSecurityPanel, type WalletSecurityPanelProps, WalletSecurityPanelView, type WalletSecurityPanelViewProps, Web3ComponentProvider, type Web3ComponentProviderProps, Web3ConnectUI, type Web3ConnectUIProps, cn, useAppKit, useComponent, useComponentRegistry, useDetectionMode, useEIP6963, useIsMobile, useTheme, useThemeVariable, useWalletConnect, useWalletConnectOptional };
746
+ export { AccountButton, AccountSelector, AccountSelectorView, AddressWarningDialog, AppKit, AppKitButton, AppKitChainSelector, AuthorizationConsent, AuthorizationList, ChainSelector, ConnectButtonAdapter as ConnectButton, ErrorBoundary, PasskeySetup, PasskeySetupView, PassphraseDialog, PassphraseDialogView, PaymentReceipt, QRCodeModal, RouteSelector, SeedPhraseBackup, SignInButton, SmartWalletSettings, SmartWalletToggle, ThemeProvider, WalletConnectProvider, WalletPicker, WalletSecurityPanel, WalletSecurityPanelView, Web3ComponentProvider, Web3ConnectUI, cn, useAppKit, useComponent, useComponentRegistry, useDetectionMode, useEIP6963, useIsMobile, useTheme, useThemeVariable, useWalletConnect, useWalletConnectOptional };
747
+ export type { AccountButtonProps, AccountSelectorProps, AccountSelectorViewProps, AccountType, AddressWarningDialogProps, AppKitButtonProps, AppKitChainSelectorProps, AppKitContextValue, AppKitProps, AuthorizationConsentProps, AuthorizationListProps, BundlerPreset, ChainSelectorProps, ComponentRegistry, ConnectButtonProps, DetectionMode, DiscoveredWallet, ErrorBoundaryProps, PasskeySetupProps, PasskeySetupViewProps, PassphraseDialogProps, PassphraseDialogViewProps, PaymasterType, PaymentReceiptProps, QRCodeModalProps, QRCodeModalStatus, QRStatus, RouteSelectorProps, SeedPhraseBackupProps, SignInButtonProps, SmartWalletConfig, SmartWalletSettingsProps, SmartWalletToggleProps, ThemeOverride, ThemePriority, ThemeProviderProps, TokenDisplay, UnlockSnapshot, UseEIP6963Result, WalletConnectContextValue, WalletConnectProviderProps, WalletConnectState, WalletPickerProps, WalletSecurityPanelProps, WalletSecurityPanelViewProps, Web3ComponentProviderProps, Web3ConnectUIProps };