@embarkai/ui-kit 0.1.3 → 0.1.5
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/README.md +103 -134
- package/dist/iframe/index.html +1 -1
- package/dist/iframe/main.js +58 -63
- package/dist/iframe/main.js.map +1 -1
- package/dist/index.cjs +5918 -5947
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -9
- package/dist/index.d.ts +6 -9
- package/dist/index.js +5587 -5614
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes,
|
|
3
|
+
import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
5
|
import { Address as Address$1, Hex, PublicClient, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -346,8 +346,6 @@ interface ConnectWalletButtonProps {
|
|
|
346
346
|
}
|
|
347
347
|
declare function ConnectWalletButton(props: ConnectWalletButtonProps): react_jsx_runtime.JSX.Element;
|
|
348
348
|
|
|
349
|
-
declare function RainbowKitProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
350
|
-
|
|
351
349
|
/**
|
|
352
350
|
* Account session containing wallet and smart account information.
|
|
353
351
|
* Shared across multiple modules (session, user-operations, signing, deployment).
|
|
@@ -951,7 +949,6 @@ declare const useSession: zustand.UseBoundStore<Omit<zustand.StoreApi<SessionSta
|
|
|
951
949
|
* ```
|
|
952
950
|
*/
|
|
953
951
|
declare const requireActiveChainId: () => number;
|
|
954
|
-
declare function SessionProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
955
952
|
|
|
956
953
|
declare const useIsMobileView: () => boolean;
|
|
957
954
|
declare const useBalance: () => {
|
|
@@ -1006,7 +1003,7 @@ interface PageOpenParams {
|
|
|
1006
1003
|
}
|
|
1007
1004
|
|
|
1008
1005
|
/**
|
|
1009
|
-
* Hook to programmatically open the
|
|
1006
|
+
* Hook to programmatically open the dialogs
|
|
1010
1007
|
* @example
|
|
1011
1008
|
* ```tsx
|
|
1012
1009
|
* function MyComponent() {
|
|
@@ -1014,7 +1011,7 @@ interface PageOpenParams {
|
|
|
1014
1011
|
*
|
|
1015
1012
|
* return (
|
|
1016
1013
|
* <button onClick={() => open(PageKey.BUY, { amount: 10 })}>
|
|
1017
|
-
* Buy
|
|
1014
|
+
* Buy CRYPTO
|
|
1018
1015
|
* </button>
|
|
1019
1016
|
* );
|
|
1020
1017
|
* }
|
|
@@ -1041,10 +1038,10 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantPr
|
|
|
1041
1038
|
asChild?: boolean;
|
|
1042
1039
|
}
|
|
1043
1040
|
|
|
1044
|
-
/**
|
|
1041
|
+
/** EmbarkAI Color Mode Switcher */
|
|
1045
1042
|
declare function ThemeToggle(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1046
1043
|
|
|
1047
|
-
/**
|
|
1044
|
+
/** EmbarkAI Language Switcher */
|
|
1048
1045
|
declare function LangToggle(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1049
1046
|
|
|
1050
1047
|
type ChainLike$2 = {
|
|
@@ -2692,4 +2689,4 @@ declare function combineI18NResources(...resourses: TranslationResources[]): Tra
|
|
|
2692
2689
|
declare function getAvailableLanguages(resourses: TranslationResources): string[];
|
|
2693
2690
|
declare function getLanguageIcon(languageKey: string): string | null;
|
|
2694
2691
|
|
|
2695
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps,
|
|
2692
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, type SmartAccountEntry, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TypedDataDomain, type TypedDataField, type UpdateProfileRequest, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, type WaitForReceiptOptions, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getIframeManager, getLanguageIcon, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareUserOperation, requireActiveChainId, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, useAssets, useBalance, useColorMode, useErc3643Compliance, useError, useHasServerVault, useIFrameReady, useIsMobileView, useLinkedProfiles, useLoadingStatus, useLogout, useNicknameResolve, useOpenPage, useProviderConfig, useRecoveryUserId, useSendTransaction, useSession, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, verifyFingerprint, verifyFingerprintDetailed, wagmiConfig, waitForUserOperationReceipt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes,
|
|
3
|
+
import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
5
|
import { Address as Address$1, Hex, PublicClient, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -346,8 +346,6 @@ interface ConnectWalletButtonProps {
|
|
|
346
346
|
}
|
|
347
347
|
declare function ConnectWalletButton(props: ConnectWalletButtonProps): react_jsx_runtime.JSX.Element;
|
|
348
348
|
|
|
349
|
-
declare function RainbowKitProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
350
|
-
|
|
351
349
|
/**
|
|
352
350
|
* Account session containing wallet and smart account information.
|
|
353
351
|
* Shared across multiple modules (session, user-operations, signing, deployment).
|
|
@@ -951,7 +949,6 @@ declare const useSession: zustand.UseBoundStore<Omit<zustand.StoreApi<SessionSta
|
|
|
951
949
|
* ```
|
|
952
950
|
*/
|
|
953
951
|
declare const requireActiveChainId: () => number;
|
|
954
|
-
declare function SessionProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
955
952
|
|
|
956
953
|
declare const useIsMobileView: () => boolean;
|
|
957
954
|
declare const useBalance: () => {
|
|
@@ -1006,7 +1003,7 @@ interface PageOpenParams {
|
|
|
1006
1003
|
}
|
|
1007
1004
|
|
|
1008
1005
|
/**
|
|
1009
|
-
* Hook to programmatically open the
|
|
1006
|
+
* Hook to programmatically open the dialogs
|
|
1010
1007
|
* @example
|
|
1011
1008
|
* ```tsx
|
|
1012
1009
|
* function MyComponent() {
|
|
@@ -1014,7 +1011,7 @@ interface PageOpenParams {
|
|
|
1014
1011
|
*
|
|
1015
1012
|
* return (
|
|
1016
1013
|
* <button onClick={() => open(PageKey.BUY, { amount: 10 })}>
|
|
1017
|
-
* Buy
|
|
1014
|
+
* Buy CRYPTO
|
|
1018
1015
|
* </button>
|
|
1019
1016
|
* );
|
|
1020
1017
|
* }
|
|
@@ -1041,10 +1038,10 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantPr
|
|
|
1041
1038
|
asChild?: boolean;
|
|
1042
1039
|
}
|
|
1043
1040
|
|
|
1044
|
-
/**
|
|
1041
|
+
/** EmbarkAI Color Mode Switcher */
|
|
1045
1042
|
declare function ThemeToggle(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1046
1043
|
|
|
1047
|
-
/**
|
|
1044
|
+
/** EmbarkAI Language Switcher */
|
|
1048
1045
|
declare function LangToggle(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1049
1046
|
|
|
1050
1047
|
type ChainLike$2 = {
|
|
@@ -2692,4 +2689,4 @@ declare function combineI18NResources(...resourses: TranslationResources[]): Tra
|
|
|
2692
2689
|
declare function getAvailableLanguages(resourses: TranslationResources): string[];
|
|
2693
2690
|
declare function getLanguageIcon(languageKey: string): string | null;
|
|
2694
2691
|
|
|
2695
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps,
|
|
2692
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, type SmartAccountEntry, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TypedDataDomain, type TypedDataField, type UpdateProfileRequest, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, type WaitForReceiptOptions, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getIframeManager, getLanguageIcon, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareUserOperation, requireActiveChainId, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, useAssets, useBalance, useColorMode, useErc3643Compliance, useError, useHasServerVault, useIFrameReady, useIsMobileView, useLinkedProfiles, useLoadingStatus, useLogout, useNicknameResolve, useOpenPage, useProviderConfig, useRecoveryUserId, useSendTransaction, useSession, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, verifyFingerprint, verifyFingerprintDetailed, wagmiConfig, waitForUserOperationReceipt };
|