@luno-kit/react 0.0.6 → 0.0.7

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.
@@ -0,0 +1,16 @@
1
+ export { convertAddress, defineChain, formatAddress, formatBalance, formatBalanceWithUnit, getChainToken, getExplorerUrl, getPublicKey, isMobileDevice, isSameAddress, isValidAddress } from '@luno-kit/core/utils';
2
+ import { Config } from '@luno-kit/core/types';
3
+ import { LegacyClient } from 'dedot';
4
+ import { DispatchError } from 'dedot/codecs';
5
+
6
+ interface CreateApiOptions {
7
+ config: Config;
8
+ chainId: string;
9
+ }
10
+ declare const createApi: ({ config, chainId, }: CreateApiOptions) => Promise<LegacyClient>;
11
+
12
+ declare function getReadableDispatchError(api: LegacyClient, dispatchError: DispatchError): string;
13
+
14
+ declare const sleep: (ms?: number) => Promise<void>;
15
+
16
+ export { createApi, getReadableDispatchError, sleep };
@@ -0,0 +1,2 @@
1
+ export{m as convertAddress,a as createApi,l as defineChain,d as formatAddress,j as formatBalance,n as formatBalanceWithUnit,k as getChainToken,e as getExplorerUrl,f as getPublicKey,b as getReadableDispatchError,g as isMobileDevice,h as isSameAddress,i as isValidAddress,c as sleep}from'../chunk-ARGW3AHU.js';//# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@luno-kit/react",
3
3
  "description": "React Hooks and Provider for Luno, enabling easy Polkadot wallet interactions in React applications.",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -20,6 +20,26 @@
20
20
  "types": "./dist/index.d.ts",
21
21
  "import": "./dist/index.js",
22
22
  "require": "./dist/index.cjs"
23
+ },
24
+ "./chains": {
25
+ "types": "./dist/chains/index.d.ts",
26
+ "import": "./dist/chains/index.js",
27
+ "require": "./dist/chains/index.cjs"
28
+ },
29
+ "./connectors": {
30
+ "types": "./dist/connectors/index.d.ts",
31
+ "import": "./dist/connectors/index.js",
32
+ "require": "./dist/connectors/index.cjs"
33
+ },
34
+ "./utils": {
35
+ "types": "./dist/utils/index.d.ts",
36
+ "import": "./dist/utils/index.js",
37
+ "require": "./dist/utils/index.cjs"
38
+ },
39
+ "./types": {
40
+ "types": "./dist/types/index.d.ts",
41
+ "import": "./dist/types/index.js",
42
+ "require": "./dist/types/index.cjs"
23
43
  }
24
44
  },
25
45
  "files": [
@@ -31,7 +51,7 @@
31
51
  "@dedot/chaintypes": "0.123.0",
32
52
  "dedot": "0.14.1",
33
53
  "zustand": "5.0.4",
34
- "@luno-kit/core": "0.0.6"
54
+ "@luno-kit/core": "0.0.7"
35
55
  },
36
56
  "devDependencies": {
37
57
  "@tanstack/react-query": "5.81.5",