@cometh/connect-react-hooks 0.0.8 → 0.0.9-dev.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -100,8 +100,7 @@ var ConnectProvider = ({
100
100
  ...config,
101
101
  smartAccountAddress: params.address,
102
102
  comethSignerConfig: {
103
- ...config.comethSignerConfig,
104
- passKeyName: params.passKeyName
103
+ ...config.comethSignerConfig
105
104
  }
106
105
  });
107
106
  setSmartAccountClient(client);
@@ -1802,6 +1801,7 @@ var useGetGasPrice = (rpcUrl, queryProps) => {
1802
1801
  var useRetrieveAccountAddressFromPasskeys = ({
1803
1802
  apiKey,
1804
1803
  chain,
1804
+ fullDomainSelected = false,
1805
1805
  baseUrl
1806
1806
  }) => {
1807
1807
  const [isPending, setIsPending] = _react.useState.call(void 0, false);
@@ -1813,6 +1813,7 @@ var useRetrieveAccountAddressFromPasskeys = ({
1813
1813
  const result = await _connectsdk4337.retrieveAccountAddressFromPasskeys.call(void 0,
1814
1814
  apiKey,
1815
1815
  chain,
1816
+ fullDomainSelected,
1816
1817
  baseUrl
1817
1818
  );
1818
1819
  const address = result;
@@ -1834,6 +1835,7 @@ var useRetrieveAccountAddressFromPasskeys = ({
1834
1835
  var useRetrieveAccountAddressFromPasskeyId = ({
1835
1836
  apiKey,
1836
1837
  chain,
1838
+ fullDomainSelected = false,
1837
1839
  baseUrl
1838
1840
  }) => {
1839
1841
  const [isPending, setIsPending] = _react.useState.call(void 0, false);
@@ -1847,6 +1849,7 @@ var useRetrieveAccountAddressFromPasskeyId = ({
1847
1849
  apiKey,
1848
1850
  chain,
1849
1851
  id,
1852
+ fullDomainSelected,
1850
1853
  baseUrl
1851
1854
  });
1852
1855
  const address = result;
package/dist/index.d.cts CHANGED
@@ -597,15 +597,16 @@ declare const useGetGasPrice: (rpcUrl?: string, queryProps?: Omit<UseQueryOption
597
597
  type UseRetrieveAccountAddressFromPasskeyOptions = {
598
598
  apiKey: string;
599
599
  chain: Chain;
600
+ fullDomainSelected?: boolean;
600
601
  baseUrl?: string;
601
602
  queryProps?: UseQueryParameters;
602
603
  };
603
- declare const useRetrieveAccountAddressFromPasskeys: ({ apiKey, chain, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
604
+ declare const useRetrieveAccountAddressFromPasskeys: ({ apiKey, chain, fullDomainSelected, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
604
605
  retrieveAddress: () => Promise<`0x${string}`>;
605
606
  isPending: boolean;
606
607
  error: Error | null;
607
608
  };
608
- declare const useRetrieveAccountAddressFromPasskeyId: ({ apiKey, chain, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
609
+ declare const useRetrieveAccountAddressFromPasskeyId: ({ apiKey, chain, fullDomainSelected, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
609
610
  retrieveAddress: (id: string) => Promise<`0x${string}`>;
610
611
  isPending: boolean;
611
612
  error: Error | null;
@@ -614,6 +615,7 @@ declare const useRetrieveAccountAddressFromPasskeyId: ({ apiKey, chain, baseUrl,
614
615
  type CreateNewSignerParameters = {
615
616
  passKeyName?: string;
616
617
  webAuthnOptions?: webAuthnOptions;
618
+ fullDomainSelected?: boolean;
617
619
  };
618
620
  type SerializeUrlParameters = {
619
621
  validationPageUrl: string;
package/dist/index.d.ts CHANGED
@@ -597,15 +597,16 @@ declare const useGetGasPrice: (rpcUrl?: string, queryProps?: Omit<UseQueryOption
597
597
  type UseRetrieveAccountAddressFromPasskeyOptions = {
598
598
  apiKey: string;
599
599
  chain: Chain;
600
+ fullDomainSelected?: boolean;
600
601
  baseUrl?: string;
601
602
  queryProps?: UseQueryParameters;
602
603
  };
603
- declare const useRetrieveAccountAddressFromPasskeys: ({ apiKey, chain, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
604
+ declare const useRetrieveAccountAddressFromPasskeys: ({ apiKey, chain, fullDomainSelected, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
604
605
  retrieveAddress: () => Promise<`0x${string}`>;
605
606
  isPending: boolean;
606
607
  error: Error | null;
607
608
  };
608
- declare const useRetrieveAccountAddressFromPasskeyId: ({ apiKey, chain, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
609
+ declare const useRetrieveAccountAddressFromPasskeyId: ({ apiKey, chain, fullDomainSelected, baseUrl, }: UseRetrieveAccountAddressFromPasskeyOptions) => {
609
610
  retrieveAddress: (id: string) => Promise<`0x${string}`>;
610
611
  isPending: boolean;
611
612
  error: Error | null;
@@ -614,6 +615,7 @@ declare const useRetrieveAccountAddressFromPasskeyId: ({ apiKey, chain, baseUrl,
614
615
  type CreateNewSignerParameters = {
615
616
  passKeyName?: string;
616
617
  webAuthnOptions?: webAuthnOptions;
618
+ fullDomainSelected?: boolean;
617
619
  };
618
620
  type SerializeUrlParameters = {
619
621
  validationPageUrl: string;
package/dist/index.js CHANGED
@@ -100,8 +100,7 @@ var ConnectProvider = ({
100
100
  ...config,
101
101
  smartAccountAddress: params.address,
102
102
  comethSignerConfig: {
103
- ...config.comethSignerConfig,
104
- passKeyName: params.passKeyName
103
+ ...config.comethSignerConfig
105
104
  }
106
105
  });
107
106
  setSmartAccountClient(client);
@@ -1802,6 +1801,7 @@ import { useCallback as useCallback6, useState as useState7 } from "react";
1802
1801
  var useRetrieveAccountAddressFromPasskeys = ({
1803
1802
  apiKey,
1804
1803
  chain,
1804
+ fullDomainSelected = false,
1805
1805
  baseUrl
1806
1806
  }) => {
1807
1807
  const [isPending, setIsPending] = useState7(false);
@@ -1813,6 +1813,7 @@ var useRetrieveAccountAddressFromPasskeys = ({
1813
1813
  const result = await retrieveAccountAddressFromPasskeys(
1814
1814
  apiKey,
1815
1815
  chain,
1816
+ fullDomainSelected,
1816
1817
  baseUrl
1817
1818
  );
1818
1819
  const address = result;
@@ -1834,6 +1835,7 @@ var useRetrieveAccountAddressFromPasskeys = ({
1834
1835
  var useRetrieveAccountAddressFromPasskeyId = ({
1835
1836
  apiKey,
1836
1837
  chain,
1838
+ fullDomainSelected = false,
1837
1839
  baseUrl
1838
1840
  }) => {
1839
1841
  const [isPending, setIsPending] = useState7(false);
@@ -1847,6 +1849,7 @@ var useRetrieveAccountAddressFromPasskeyId = ({
1847
1849
  apiKey,
1848
1850
  chain,
1849
1851
  id,
1852
+ fullDomainSelected,
1850
1853
  baseUrl
1851
1854
  });
1852
1855
  const address = result;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://twitter.com/slovaye"
8
8
  }
9
9
  ],
10
- "version": "0.0.8",
10
+ "version": "0.0.9-dev.1",
11
11
  "description": "React hooks Connect 4337",
12
12
  "repository": "https://github.com/cometh-hq/connect-sdk-4337.git",
13
13
  "keywords": [
@@ -58,7 +58,7 @@
58
58
  "typescript": "^5"
59
59
  },
60
60
  "dependencies": {
61
- "@cometh/connect-sdk-4337": "^0.1.9",
61
+ "@cometh/connect-sdk-4337": "^0.1.10-dev.2",
62
62
  "permissionless": "0.1.31"
63
63
  }
64
64
  }