@latticexyz/entrykit 2.2.12-entrykit-9d16d7a4d5dde17d31463970d3359bc9faa08d70 → 2.2.12-entrykit-37b76509347d14fdce3d81ad1a3d8db6d6527c70

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.
@@ -1,76 +1,2 @@
1
- import { Transport, Client, Chain, Account } from 'viem';
2
- import { Address } from 'viem/accounts';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { ReactNode } from 'react';
5
1
 
6
- type EntryKitConfig = {
7
- /**
8
- * The chain ID where the world is deployed.
9
- * There must be a matching chain entry in wagmi's configured chains.
10
- * The app account client returned by EntryKit will be tied to this chain.
11
- */
12
- readonly chainId: number;
13
- /**
14
- * The world address.
15
- */
16
- readonly worldAddress: Address;
17
- readonly bundlerTransport: Transport;
18
- readonly paymasterAddress: Address;
19
- readonly passIssuerTransport: Transport;
20
- /**
21
- * EntryKit UI theme.
22
- *
23
- * If not set, defaults to OS' light or dark mode.
24
- */
25
- theme?: "dark" | "light";
26
- readonly appInfo?: {
27
- /**
28
- * The app name.
29
- *
30
- * If not set, defaults to page's `<title>`.
31
- */
32
- readonly name?: string;
33
- /**
34
- * The URL of the app icon used throughout the onboarding process. It will be used as a fallback if no `image` is provided. Icon should be 1:1 aspect ratio, at least 200x200.
35
- *
36
- * If not set, defaults to the page's `<link rel="icon">` or the origin's `/favicon.ico`.
37
- */
38
- readonly icon?: string;
39
- /**
40
- * The URL of the splash image displayed during the first step of onboarding. Ideally around 600x250.
41
- *
42
- * If not set, defaults to displaying the name, icon, and origin.
43
- */
44
- readonly image?: string;
45
- /**
46
- * Optional URL to your app's Terms of Use. If set, the step before asking users to sign in to your app will link to this page.
47
- */
48
- readonly termsOfUse?: string;
49
- /**
50
- * Optional URL to your app's Privacy Policy. If set, the step before asking users to sign in to your app will link to this page.
51
- */
52
- readonly privacyPolicy?: string;
53
- };
54
- };
55
-
56
- type Props = {
57
- config: EntryKitConfig;
58
- children?: ReactNode;
59
- };
60
- declare function EntryKitProvider({ config, children }: Props): react_jsx_runtime.JSX.Element;
61
-
62
- declare function AccountButton(): react_jsx_runtime.JSX.Element;
63
-
64
- type UseAccountModalResult = {
65
- readonly accountModalOpen: boolean;
66
- readonly openAccountModal: () => void;
67
- readonly closeAccountModal: () => void;
68
- readonly toggleAccountModal: (open: boolean) => void;
69
- };
70
- declare function useAccountModal(): UseAccountModalResult;
71
-
72
- type ConnectedClient = Client<Transport, Chain, Account>;
73
-
74
- declare function usePreparedAppAccountClient(): ConnectedClient | undefined;
75
-
76
- export { AccountButton, EntryKitConfig, EntryKitProvider, useAccountModal, usePreparedAppAccountClient as useAppAccountClient };
2
+ export { }