@naculus/connect-appkit-ui 0.13.0 → 0.14.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;
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;