@privy-io/react-auth 1.31.0-beta.8 → 1.31.0-beta.9
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/esm/index.js +92 -92
- package/dist/index.d.ts +102 -10
- package/dist/index.js +61 -61
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -782,31 +782,123 @@ interface EmbeddedWalletsConfig {
|
|
|
782
782
|
createOnLogin: EmbeddedWalletCreateOnLoginConfig;
|
|
783
783
|
requireUserPasswordOnCreate: boolean;
|
|
784
784
|
}
|
|
785
|
+
/**
|
|
786
|
+
* UI configuration object for the embedded wallet's Sign Message screen
|
|
787
|
+
*/
|
|
785
788
|
type SignMessageModalUIOptions = {
|
|
789
|
+
/**
|
|
790
|
+
* Title for the Sign Message screen. Defaults to 'Sign'.
|
|
791
|
+
*/
|
|
786
792
|
title?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Description text for the Sign Message screen. Defaults to
|
|
795
|
+
* 'Sign to continue'.
|
|
796
|
+
*/
|
|
787
797
|
description?: string;
|
|
798
|
+
/**
|
|
799
|
+
* Text for the CTA button on the Sign Message screen. Defaults to
|
|
800
|
+
* 'Sign and Continue'
|
|
801
|
+
*/
|
|
788
802
|
buttonText?: string;
|
|
789
803
|
};
|
|
790
|
-
|
|
804
|
+
/**
|
|
805
|
+
* UI customization object for additional transaction details. Will be shown
|
|
806
|
+
* in an expandable accordion in the Send Transaction screen.
|
|
807
|
+
*/
|
|
808
|
+
type TransactionUIOptions = {
|
|
809
|
+
/**
|
|
810
|
+
* Title for the transaction details accordion within the
|
|
811
|
+
* Send Transaction screen. Defaults to 'Details'.
|
|
812
|
+
*/
|
|
813
|
+
title?: string;
|
|
814
|
+
/**
|
|
815
|
+
* Action that the user is taking when sending this transaction. This
|
|
816
|
+
* should be short (<4 words, e.g. 'Buy NFT'). Will be shown inside
|
|
817
|
+
* the transaction details accordion in Send Transaction screen.
|
|
818
|
+
*/
|
|
819
|
+
action?: string;
|
|
820
|
+
/**
|
|
821
|
+
* If the transaction to be sent is a call to a smart contract, you may
|
|
822
|
+
* use this object to fill in additional details about the contract being called.
|
|
823
|
+
*/
|
|
824
|
+
contractInfo?: ContractUIOptions;
|
|
825
|
+
/**
|
|
826
|
+
* @deprecated Use `description` in `SendTransactionModalUIOptions` instead.
|
|
827
|
+
*/
|
|
791
828
|
description?: string;
|
|
792
|
-
|
|
793
|
-
|
|
829
|
+
/**
|
|
830
|
+
* @deprecated Use `title` instead.
|
|
831
|
+
*/
|
|
832
|
+
actionDescription?: string;
|
|
794
833
|
};
|
|
795
|
-
|
|
834
|
+
/**
|
|
835
|
+
* If the transaction to be sent is a call to a smart contract, you may use this
|
|
836
|
+
* object to fill in additional details about the contract being called.
|
|
837
|
+
*/
|
|
838
|
+
type ContractUIOptions = {
|
|
839
|
+
/**
|
|
840
|
+
* URL with more information about the smart contract.
|
|
841
|
+
*/
|
|
796
842
|
url: string;
|
|
843
|
+
/**
|
|
844
|
+
* Name of smart contract being called.
|
|
845
|
+
*/
|
|
797
846
|
name: string;
|
|
798
|
-
|
|
847
|
+
/**
|
|
848
|
+
* URL for an image to show in the Send Transaction screen.
|
|
849
|
+
*/
|
|
799
850
|
imgUrl?: string;
|
|
851
|
+
/**
|
|
852
|
+
* Alt text for the image in the Send Transaction screen, if a
|
|
853
|
+
* valid `imgUrl` is set.
|
|
854
|
+
*/
|
|
800
855
|
imgAltText?: string;
|
|
856
|
+
/**
|
|
857
|
+
* Size for the image in the Send Transaction screen, if a valid
|
|
858
|
+
* `imgUrl` is set.
|
|
859
|
+
*/
|
|
801
860
|
imgSize?: 'sm' | 'lg';
|
|
861
|
+
/**
|
|
862
|
+
* @deprecated Use `description` in `SendTransactionModalUIOptions` instead.
|
|
863
|
+
*/
|
|
864
|
+
actionText?: string;
|
|
802
865
|
};
|
|
866
|
+
/**
|
|
867
|
+
* UI customization object for the embedded wallet's Send Transaction screen
|
|
868
|
+
*/
|
|
803
869
|
type SendTransactionModalUIOptions = {
|
|
804
|
-
|
|
805
|
-
|
|
870
|
+
/**
|
|
871
|
+
* Text to display at top of Send Transaction screen. Defaults to
|
|
872
|
+
* 'Review transaction' or 'Send <token symbol>' if transaction is a simple
|
|
873
|
+
* token transfer.
|
|
874
|
+
*/
|
|
875
|
+
header?: string;
|
|
876
|
+
/**
|
|
877
|
+
* Description of the transaction being sent.
|
|
878
|
+
*/
|
|
806
879
|
description?: string;
|
|
880
|
+
/**
|
|
881
|
+
* Text to show on CTA button for Send Transaction screen. Defaults to
|
|
882
|
+
* 'Submit'.
|
|
883
|
+
*/
|
|
807
884
|
buttonText?: string;
|
|
808
|
-
|
|
809
|
-
|
|
885
|
+
/**
|
|
886
|
+
* Details about the transaction that the user will send. Will be shown
|
|
887
|
+
* in an accordion in the Send Transaction screen.
|
|
888
|
+
*/
|
|
889
|
+
transactionInfo?: TransactionUIOptions;
|
|
890
|
+
/**
|
|
891
|
+
* @deprecated Use `header` instead.
|
|
892
|
+
*/
|
|
893
|
+
title?: string;
|
|
894
|
+
/**
|
|
895
|
+
* @deprecated Use `header` instead.
|
|
896
|
+
*/
|
|
897
|
+
modalTitle?: string;
|
|
898
|
+
/**
|
|
899
|
+
* @deprecated Use `transactionInfo.contractInfo` instead.
|
|
900
|
+
*/
|
|
901
|
+
senderInfo?: ContractUIOptions;
|
|
810
902
|
};
|
|
811
903
|
|
|
812
904
|
declare function getAccessToken(): Promise<string | null>;
|
|
@@ -1465,4 +1557,4 @@ declare function useConnectWallet(callbacks?: PrivyEvents['connectWallet']): {
|
|
|
1465
1557
|
connectWallet: () => void;
|
|
1466
1558
|
};
|
|
1467
1559
|
|
|
1468
|
-
export { Apple, AppleOAuthWithMetadata, AsExternalProvider, ConnectedWallet, ConnectorManager, Discord, DiscordOAuthWithMetadata, EIP1193Provider, Email, EmailWithMetadata, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, Phone, PhoneWithMetadata, PrivyClient, PrivyClientConfig, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Quantity, SendTransactionModalUIOptions, SignMessageModalUIOptions, TransactionLog, TransactionReceipt, Twitter, TwitterOAuthWithMetadata, UnsignedTransactionRequest, UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, getAccessToken, useConnectWallet, useLogin, useLogout, usePrivy, useWallets };
|
|
1560
|
+
export { Apple, AppleOAuthWithMetadata, AsExternalProvider, ConnectedWallet, ConnectorManager, ContractUIOptions, Discord, DiscordOAuthWithMetadata, EIP1193Provider, Email, EmailWithMetadata, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, Phone, PhoneWithMetadata, PrivyClient, PrivyClientConfig, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Quantity, SendTransactionModalUIOptions, SignMessageModalUIOptions, TransactionLog, TransactionReceipt, TransactionUIOptions, Twitter, TwitterOAuthWithMetadata, UnsignedTransactionRequest, UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, getAccessToken, useConnectWallet, useLogin, useLogout, usePrivy, useWallets };
|