@naculus/connect-appkit-ui 0.10.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 +5 -3
- package/dist/index.d.ts +5 -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;
|
|
@@ -703,6 +703,7 @@ interface AuthorizationConsentProps {
|
|
|
703
703
|
locale?: string;
|
|
704
704
|
/** Unix timestamp in seconds, for a stable relative expiry. */
|
|
705
705
|
now?: number;
|
|
706
|
+
enforcement?: "on-chain" | "device";
|
|
706
707
|
requester: {
|
|
707
708
|
name: string;
|
|
708
709
|
icon?: string;
|
|
@@ -714,7 +715,7 @@ interface AuthorizationConsentProps {
|
|
|
714
715
|
busy?: boolean;
|
|
715
716
|
className?: string;
|
|
716
717
|
}
|
|
717
|
-
declare function AuthorizationConsent({ authorization, assets, trustedAssets, 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;
|
|
718
719
|
|
|
719
720
|
interface AuthorizationListProps {
|
|
720
721
|
entries: ListedAuthorization[] | {
|
|
@@ -725,9 +726,10 @@ interface AuthorizationListProps {
|
|
|
725
726
|
onRevoke: (entry: ListedAuthorization) => RevokeListedAuthorizationResult | Promise<RevokeListedAuthorizationResult>;
|
|
726
727
|
revokingId?: string;
|
|
727
728
|
locale?: string;
|
|
729
|
+
getEnforcement?: (entry: ListedAuthorization) => "on-chain" | "device" | undefined;
|
|
728
730
|
className?: string;
|
|
729
731
|
}
|
|
730
|
-
declare function AuthorizationList({ entries: input, assets, trustedAssets, 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;
|
|
731
733
|
|
|
732
734
|
interface PaymentReceiptProps {
|
|
733
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;
|
|
@@ -703,6 +703,7 @@ interface AuthorizationConsentProps {
|
|
|
703
703
|
locale?: string;
|
|
704
704
|
/** Unix timestamp in seconds, for a stable relative expiry. */
|
|
705
705
|
now?: number;
|
|
706
|
+
enforcement?: "on-chain" | "device";
|
|
706
707
|
requester: {
|
|
707
708
|
name: string;
|
|
708
709
|
icon?: string;
|
|
@@ -714,7 +715,7 @@ interface AuthorizationConsentProps {
|
|
|
714
715
|
busy?: boolean;
|
|
715
716
|
className?: string;
|
|
716
717
|
}
|
|
717
|
-
declare function AuthorizationConsent({ authorization, assets, trustedAssets, 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;
|
|
718
719
|
|
|
719
720
|
interface AuthorizationListProps {
|
|
720
721
|
entries: ListedAuthorization[] | {
|
|
@@ -725,9 +726,10 @@ interface AuthorizationListProps {
|
|
|
725
726
|
onRevoke: (entry: ListedAuthorization) => RevokeListedAuthorizationResult | Promise<RevokeListedAuthorizationResult>;
|
|
726
727
|
revokingId?: string;
|
|
727
728
|
locale?: string;
|
|
729
|
+
getEnforcement?: (entry: ListedAuthorization) => "on-chain" | "device" | undefined;
|
|
728
730
|
className?: string;
|
|
729
731
|
}
|
|
730
|
-
declare function AuthorizationList({ entries: input, assets, trustedAssets, 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;
|
|
731
733
|
|
|
732
734
|
interface PaymentReceiptProps {
|
|
733
735
|
record: PaymentRecord;
|