@naculus/connect-appkit-ui 0.9.0 → 0.11.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.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/styles/components.css +1 -1
- package/package.json +8 -8
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ 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 { Authorization, ListedAuthorization, RevokeListedAuthorizationResult } from '@naculus/connect-core';
|
|
7
6
|
import { AuthorizationDescription, AuthorizationAssetMetadata, SpendExplanation, PaymentRecord } from '@naculus/connect-appkit-core';
|
|
7
|
+
import { Authorization, ListedAuthorization, RevokeListedAuthorizationResult } from '@naculus/connect-core';
|
|
8
8
|
|
|
9
9
|
interface ConnectButtonProps {
|
|
10
10
|
className?: string;
|
|
@@ -699,9 +699,11 @@ declare function WalletPicker({ wallets, onSelect, loading, error, }: WalletPick
|
|
|
699
699
|
interface AuthorizationConsentProps {
|
|
700
700
|
authorization: Authorization | ListedAuthorization | AuthorizationDescription;
|
|
701
701
|
assets?: Record<string, AuthorizationAssetMetadata>;
|
|
702
|
+
trustedAssets?: readonly string[];
|
|
702
703
|
locale?: string;
|
|
703
704
|
/** Unix timestamp in seconds, for a stable relative expiry. */
|
|
704
705
|
now?: number;
|
|
706
|
+
enforcement?: "on-chain" | "device";
|
|
705
707
|
requester: {
|
|
706
708
|
name: string;
|
|
707
709
|
icon?: string;
|
|
@@ -713,19 +715,21 @@ interface AuthorizationConsentProps {
|
|
|
713
715
|
busy?: boolean;
|
|
714
716
|
className?: string;
|
|
715
717
|
}
|
|
716
|
-
declare function AuthorizationConsent({ authorization, assets, locale, now, requester, preview, onApprove, onDecline, busy, className, }: AuthorizationConsentProps): React__default.JSX.Element;
|
|
718
|
+
declare function AuthorizationConsent({ authorization, assets, trustedAssets, locale, now, enforcement, requester, preview, onApprove, onDecline, busy, className, }: AuthorizationConsentProps): React__default.JSX.Element;
|
|
717
719
|
|
|
718
720
|
interface AuthorizationListProps {
|
|
719
721
|
entries: ListedAuthorization[] | {
|
|
720
722
|
entries: ListedAuthorization[];
|
|
721
723
|
};
|
|
722
724
|
assets?: Record<string, AuthorizationAssetMetadata>;
|
|
725
|
+
trustedAssets?: readonly string[];
|
|
723
726
|
onRevoke: (entry: ListedAuthorization) => RevokeListedAuthorizationResult | Promise<RevokeListedAuthorizationResult>;
|
|
724
727
|
revokingId?: string;
|
|
725
728
|
locale?: string;
|
|
729
|
+
getEnforcement?: (entry: ListedAuthorization) => "on-chain" | "device" | undefined;
|
|
726
730
|
className?: string;
|
|
727
731
|
}
|
|
728
|
-
declare function AuthorizationList({ entries: input, assets, onRevoke, revokingId, locale, className, }: AuthorizationListProps): React__default.JSX.Element;
|
|
732
|
+
declare function AuthorizationList({ entries: input, assets, trustedAssets, onRevoke, revokingId, locale, getEnforcement, className, }: AuthorizationListProps): React__default.JSX.Element;
|
|
729
733
|
|
|
730
734
|
interface PaymentReceiptProps {
|
|
731
735
|
record: PaymentRecord;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ 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 { Authorization, ListedAuthorization, RevokeListedAuthorizationResult } from '@naculus/connect-core';
|
|
7
6
|
import { AuthorizationDescription, AuthorizationAssetMetadata, SpendExplanation, PaymentRecord } from '@naculus/connect-appkit-core';
|
|
7
|
+
import { Authorization, ListedAuthorization, RevokeListedAuthorizationResult } from '@naculus/connect-core';
|
|
8
8
|
|
|
9
9
|
interface ConnectButtonProps {
|
|
10
10
|
className?: string;
|
|
@@ -699,9 +699,11 @@ declare function WalletPicker({ wallets, onSelect, loading, error, }: WalletPick
|
|
|
699
699
|
interface AuthorizationConsentProps {
|
|
700
700
|
authorization: Authorization | ListedAuthorization | AuthorizationDescription;
|
|
701
701
|
assets?: Record<string, AuthorizationAssetMetadata>;
|
|
702
|
+
trustedAssets?: readonly string[];
|
|
702
703
|
locale?: string;
|
|
703
704
|
/** Unix timestamp in seconds, for a stable relative expiry. */
|
|
704
705
|
now?: number;
|
|
706
|
+
enforcement?: "on-chain" | "device";
|
|
705
707
|
requester: {
|
|
706
708
|
name: string;
|
|
707
709
|
icon?: string;
|
|
@@ -713,19 +715,21 @@ interface AuthorizationConsentProps {
|
|
|
713
715
|
busy?: boolean;
|
|
714
716
|
className?: string;
|
|
715
717
|
}
|
|
716
|
-
declare function AuthorizationConsent({ authorization, assets, locale, now, requester, preview, onApprove, onDecline, busy, className, }: AuthorizationConsentProps): React__default.JSX.Element;
|
|
718
|
+
declare function AuthorizationConsent({ authorization, assets, trustedAssets, locale, now, enforcement, requester, preview, onApprove, onDecline, busy, className, }: AuthorizationConsentProps): React__default.JSX.Element;
|
|
717
719
|
|
|
718
720
|
interface AuthorizationListProps {
|
|
719
721
|
entries: ListedAuthorization[] | {
|
|
720
722
|
entries: ListedAuthorization[];
|
|
721
723
|
};
|
|
722
724
|
assets?: Record<string, AuthorizationAssetMetadata>;
|
|
725
|
+
trustedAssets?: readonly string[];
|
|
723
726
|
onRevoke: (entry: ListedAuthorization) => RevokeListedAuthorizationResult | Promise<RevokeListedAuthorizationResult>;
|
|
724
727
|
revokingId?: string;
|
|
725
728
|
locale?: string;
|
|
729
|
+
getEnforcement?: (entry: ListedAuthorization) => "on-chain" | "device" | undefined;
|
|
726
730
|
className?: string;
|
|
727
731
|
}
|
|
728
|
-
declare function AuthorizationList({ entries: input, assets, onRevoke, revokingId, locale, className, }: AuthorizationListProps): React__default.JSX.Element;
|
|
732
|
+
declare function AuthorizationList({ entries: input, assets, trustedAssets, onRevoke, revokingId, locale, getEnforcement, className, }: AuthorizationListProps): React__default.JSX.Element;
|
|
729
733
|
|
|
730
734
|
interface PaymentReceiptProps {
|
|
731
735
|
record: PaymentRecord;
|