@reef-knot/core-react 3.1.1 → 3.2.0
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/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/hooks/useConnectorInfo.js +1 -1
- package/dist/index.js +0 -1
- package/package.json +5 -7
- package/dist/helpers/userAgents.d.ts +0 -8
- package/dist/helpers/userAgents.d.ts.map +0 -1
- package/dist/helpers/userAgents.js +0 -11
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAccount } from 'wagmi';
|
|
2
2
|
import { SafeConnector } from 'wagmi/connectors/safe';
|
|
3
3
|
import { LedgerHIDConnector, LedgerLiveConnector } from '@reef-knot/ledger-connector';
|
|
4
|
-
import { isMobileOrTablet } from '
|
|
4
|
+
import { isMobileOrTablet } from '@reef-knot/wallets-helpers';
|
|
5
5
|
|
|
6
6
|
const useConnectorInfo = () => {
|
|
7
7
|
var _a;
|
package/dist/index.js
CHANGED
|
@@ -13,5 +13,4 @@ export { LS_KEY_TERMS_ACCEPTANCE } from './constants/localStorage.js';
|
|
|
13
13
|
export { holesky } from './chains/holesky.js';
|
|
14
14
|
export { getUnsupportedChainError } from './helpers/getUnsupportedChainError.js';
|
|
15
15
|
export { checkTermsAccepted } from './helpers/checkTermsAccepted.js';
|
|
16
|
-
export { browser, device, isMobile, isMobileOrTablet, isTablet, os } from './helpers/userAgents.js';
|
|
17
16
|
export { useLocalStorage } from './helpers/useLocalStorage.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/core-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -36,15 +36,12 @@
|
|
|
36
36
|
"dev": "dev=on rollup -c -w",
|
|
37
37
|
"lint": "eslint --ext ts,tsx,js,mjs ."
|
|
38
38
|
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"ua-parser-js": "1.0.33"
|
|
41
|
-
},
|
|
42
39
|
"devDependencies": {
|
|
43
40
|
"@reef-knot/ledger-connector": "^3.0.0",
|
|
44
|
-
"@reef-knot/wallets-list": "^1.13.
|
|
45
|
-
"@reef-knot/types": "^1.
|
|
41
|
+
"@reef-knot/wallets-list": "^1.13.3",
|
|
42
|
+
"@reef-knot/types": "^1.8.0",
|
|
46
43
|
"@reef-knot/ui-react": "^1.0.8",
|
|
47
|
-
"@
|
|
44
|
+
"@reef-knot/wallets-helpers": "^1.1.6",
|
|
48
45
|
"eslint-config-custom": "*",
|
|
49
46
|
"react": "18.2.0",
|
|
50
47
|
"wagmi": "^0.12.19"
|
|
@@ -54,6 +51,7 @@
|
|
|
54
51
|
"@reef-knot/wallets-list": "^1.4.1",
|
|
55
52
|
"@reef-knot/types": "^1.2.1",
|
|
56
53
|
"@reef-knot/ui-react": "^1.0.4",
|
|
54
|
+
"@reef-knot/wallets-helpers": "^1.1.6",
|
|
57
55
|
"react": ">=18",
|
|
58
56
|
"wagmi": "^0.12.19"
|
|
59
57
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="ua-parser-js" />
|
|
2
|
-
export declare const device: import("ua-parser-js").IDevice;
|
|
3
|
-
export declare const browser: import("ua-parser-js").IBrowser;
|
|
4
|
-
export declare const os: import("ua-parser-js").IOS;
|
|
5
|
-
export declare const isMobile: boolean;
|
|
6
|
-
export declare const isTablet: boolean;
|
|
7
|
-
export declare const isMobileOrTablet: boolean;
|
|
8
|
-
//# sourceMappingURL=userAgents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userAgents.d.ts","sourceRoot":"","sources":["../../src/helpers/userAgents.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,MAAM,gCAAqB,CAAC;AACzC,eAAO,MAAM,OAAO,iCAAsB,CAAC;AAC3C,eAAO,MAAM,EAAE,4BAAiB,CAAC;AAEjC,eAAO,MAAM,QAAQ,SAA2B,CAAC;AACjD,eAAO,MAAM,QAAQ,SAA2B,CAAC;AACjD,eAAO,MAAM,gBAAgB,SAAuB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UAParser } from 'ua-parser-js';
|
|
2
|
-
|
|
3
|
-
const parser = new UAParser();
|
|
4
|
-
const device = parser.getDevice();
|
|
5
|
-
const browser = parser.getBrowser();
|
|
6
|
-
const os = parser.getOS();
|
|
7
|
-
const isMobile = device.type === 'mobile';
|
|
8
|
-
const isTablet = device.type === 'tablet';
|
|
9
|
-
const isMobileOrTablet = isMobile || isTablet;
|
|
10
|
-
|
|
11
|
-
export { browser, device, isMobile, isMobileOrTablet, isTablet, os };
|