@xylabs/sdk-react 2.12.4 → 2.12.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.
- package/dist/cjs/components/Errors/ErrorsViewer.js +2 -2
- package/dist/cjs/components/Errors/ErrorsViewer.js.map +1 -1
- package/dist/cjs/components/QuickTipButton/QuickTipButton.d.ts +4 -2
- package/dist/cjs/components/QuickTipButton/QuickTipButton.js +3 -3
- package/dist/cjs/components/QuickTipButton/QuickTipButton.js.map +1 -1
- package/dist/cjs/components/QuickTipButton/index.d.ts +1 -2
- package/dist/cjs/components/QuickTipButton/index.js +2 -3
- package/dist/cjs/components/QuickTipButton/index.js.map +1 -1
- package/dist/cjs/contexts/Ethers/MetaMask.js +21 -19
- package/dist/cjs/contexts/Ethers/MetaMask.js.map +1 -1
- package/dist/cjs/nodeIndex.d.ts +2 -0
- package/dist/cjs/nodeIndex.js +6 -0
- package/dist/cjs/nodeIndex.js.map +1 -0
- package/dist/docs.json +31326 -21769
- package/dist/esm/components/Errors/ErrorsViewer.js +2 -2
- package/dist/esm/components/Errors/ErrorsViewer.js.map +1 -1
- package/dist/esm/components/QuickTipButton/QuickTipButton.d.ts +4 -2
- package/dist/esm/components/QuickTipButton/QuickTipButton.js +3 -4
- package/dist/esm/components/QuickTipButton/QuickTipButton.js.map +1 -1
- package/dist/esm/components/QuickTipButton/index.d.ts +1 -2
- package/dist/esm/components/QuickTipButton/index.js +1 -2
- package/dist/esm/components/QuickTipButton/index.js.map +1 -1
- package/dist/esm/contexts/Ethers/MetaMask.js +19 -16
- package/dist/esm/contexts/Ethers/MetaMask.js.map +1 -1
- package/dist/esm/nodeIndex.d.ts +2 -0
- package/dist/esm/nodeIndex.js +3 -0
- package/dist/esm/nodeIndex.js.map +1 -0
- package/package.json +32 -32
- package/src/components/Errors/ErrorsViewer.tsx +2 -2
- package/src/components/QuickTipButton/QuickTipButton.stories.tsx +6 -1
- package/src/components/QuickTipButton/QuickTipButton.tsx +7 -5
- package/src/components/QuickTipButton/index.ts +1 -3
- package/src/contexts/Ethers/MetaMask.tsx +21 -18
- package/src/contexts/Ethers/global.d.ts +8 -0
- package/src/nodeIndex.ts +2 -0
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ErrorsViewer = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const Replay_1 = tslib_1.__importDefault(require("@mui/icons-material/Replay"));
|
|
6
7
|
const material_1 = require("@mui/material");
|
|
7
|
-
const ai_1 = require("react-icons/ai");
|
|
8
8
|
const FlexBox_1 = require("../FlexBox");
|
|
9
9
|
const ErrorViewer_1 = require("./ErrorViewer");
|
|
10
10
|
const ErrorsViewer = (props) => {
|
|
11
11
|
const { onRetry, errors } = props, boxProps = tslib_1.__rest(props, ["onRetry", "errors"]);
|
|
12
12
|
return ((0, jsx_runtime_1.jsxs)(FlexBox_1.FlexGrowCol, Object.assign({ padding: 1 }, boxProps, { children: [errors === null || errors === void 0 ? void 0 : errors.map((error, index) => {
|
|
13
13
|
return (0, jsx_runtime_1.jsx)(ErrorViewer_1.ErrorViewer, { error: error }, index);
|
|
14
|
-
}), onRetry ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onRetry }, { children: (0, jsx_runtime_1.jsx)(
|
|
14
|
+
}), onRetry ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onRetry }, { children: (0, jsx_runtime_1.jsx)(Replay_1.default, {}) }))) : null] })));
|
|
15
15
|
};
|
|
16
16
|
exports.ErrorsViewer = ErrorsViewer;
|
|
17
17
|
//# sourceMappingURL=ErrorsViewer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorsViewer.js","sourceRoot":"","sources":["../../../../src/components/Errors/ErrorsViewer.tsx"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ErrorsViewer.js","sourceRoot":"","sources":["../../../../src/components/Errors/ErrorsViewer.tsx"],"names":[],"mappings":";;;;;AAAA,gFAAmD;AACnD,4CAA0C;AAG1C,wCAAwC;AAExC,+CAA2C;AAE3C,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,EAAE,OAAO,EAAE,MAAM,KAAkB,KAAK,EAAlB,QAAQ,kBAAK,KAAK,EAAxC,qBAAgC,CAAQ,CAAA;IAC9C,OAAO,CACL,wBAAC,qBAAW,kBAAC,OAAO,EAAE,CAAC,IAAM,QAAQ,eAClC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBAC5B,OAAO,uBAAC,yBAAW,IAAC,KAAK,EAAE,KAAK,IAAO,KAAK,CAAI,CAAA;YAClD,CAAC,CAAC,EACD,OAAO,CAAC,CAAC,CAAC,CACT,uBAAC,qBAAU,kBAAC,OAAO,EAAE,OAAO,gBAC1B,uBAAC,gBAAU,KAAG,IACH,CACd,CAAC,CAAC,CAAC,IAAI,KACI,CACf,CAAA;AACH,CAAC,CAAA;AAEQ,oCAAY"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconButtonProps } from '@mui/material';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export interface QuickTipButtonProps extends IconButtonProps {
|
|
4
|
+
fontSize?: 'small' | 'medium' | 'large' | 'inherit';
|
|
5
|
+
}
|
|
6
|
+
export declare const QuickTipButton: React.FC<QuickTipButtonProps>;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.QuickTipButton = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const HelpOutline_1 = tslib_1.__importDefault(require("@mui/icons-material/HelpOutline"));
|
|
6
7
|
const material_1 = require("@mui/material");
|
|
7
8
|
const react_1 = require("react");
|
|
8
|
-
const ai_1 = require("react-icons/ai");
|
|
9
9
|
const dialogs_1 = require("../dialogs");
|
|
10
10
|
const QuickTipButton = (_a) => {
|
|
11
|
-
var { title, children } = _a, props = tslib_1.__rest(_a, ["title", "children"]);
|
|
11
|
+
var { fontSize = 'inherit', title, children } = _a, props = tslib_1.__rest(_a, ["fontSize", "title", "children"]);
|
|
12
12
|
const [messageOpen, setMessageOpen] = (0, react_1.useState)(false);
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: (0, jsx_runtime_1.jsx)(
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: (0, jsx_runtime_1.jsx)(HelpOutline_1.default, { fontSize: fontSize }) })), (0, jsx_runtime_1.jsx)(dialogs_1.MessageDialog, Object.assign({ onOk: () => setMessageOpen(false), onCancel: () => setMessageOpen(false), onClose: () => setMessageOpen(false), open: messageOpen, title: title !== null && title !== void 0 ? title : '' }, { children: children }))] }));
|
|
14
14
|
};
|
|
15
15
|
exports.QuickTipButton = QuickTipButton;
|
|
16
16
|
//# sourceMappingURL=QuickTipButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickTipButton.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/QuickTipButton.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA2D;AAC3D,iCAAgC;
|
|
1
|
+
{"version":3,"file":"QuickTipButton.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/QuickTipButton.tsx"],"names":[],"mappings":";;;;;AAAA,0FAA6D;AAC7D,4CAA2D;AAC3D,iCAAgC;AAEhC,wCAA0C;AAMnC,MAAM,cAAc,GAAkC,CAAC,EAAmD,EAAE,EAAE;QAAvD,EAAE,QAAQ,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAAjD,iCAAmD,CAAF;IAC7G,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAErD,OAAO,CACL,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,OAAO,IAAK,KAAK,cACrE,uBAAC,qBAAe,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAC5B,EACb,uBAAC,uBAAa,kBAAC,IAAI,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,gBACjK,QAAQ,IACK,IACf,CACJ,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,cAAc,kBAa1B"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { QuickTipButton };
|
|
1
|
+
export * from './QuickTipButton';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "QuickTipButton", { enumerable: true, get: function () { return QuickTipButton_1.QuickTipButton; } });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./QuickTipButton"), exports);
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC"}
|
|
@@ -11,25 +11,30 @@ const Context_1 = require("./Context");
|
|
|
11
11
|
const Infura_1 = require("./Infura");
|
|
12
12
|
const MetaMaskEthersLoader = (props) => {
|
|
13
13
|
const { children, enabled = true } = props;
|
|
14
|
-
|
|
15
|
-
const global = window;
|
|
16
|
-
const ethereum = global.ethereum;
|
|
14
|
+
const ethereum = window.ethereum;
|
|
17
15
|
const [error, setError] = (0, react_1.useState)();
|
|
18
16
|
const [localAddress, setLocalAddress] = (0, react_1.useState)();
|
|
19
17
|
const [resetCount, setResetCount] = (0, react_1.useState)(0);
|
|
20
18
|
const [providerName, setProviderName] = (0, react_1.useState)();
|
|
21
|
-
if (ethereum) {
|
|
22
|
-
ethereum.autoRefreshOnNetworkChange = false;
|
|
23
|
-
}
|
|
24
19
|
const connect = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
const accounts = yield (walletProvider === null || walletProvider === void 0 ? void 0 : walletProvider.send('eth_requestAccounts', []));
|
|
21
|
+
// We could have multiple accounts. Check for one.
|
|
22
|
+
if (accounts.length !== 0) {
|
|
23
|
+
setLocalAddress(accounts[0]);
|
|
24
|
+
console.log('Connected: ', accounts[0]);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
console.log('No authorized account found.');
|
|
28
|
+
}
|
|
29
|
+
return accounts;
|
|
28
30
|
});
|
|
29
31
|
const [isConnected, setIsConnected] = (0, react_1.useState)();
|
|
32
|
+
const [walletProvider, setWalletProvider] = (0, react_1.useState)();
|
|
33
|
+
const [provider, setProvider] = (0, react_1.useState)();
|
|
34
|
+
const [signer, setSigner] = (0, react_1.useState)();
|
|
30
35
|
(0, react_1.useEffect)(() => {
|
|
31
|
-
if (
|
|
32
|
-
|
|
36
|
+
if (provider && enabled) {
|
|
37
|
+
provider.on('accountsChanged', (accounts) => {
|
|
33
38
|
console.log(`accountsChanged: ${JSON.stringify(accounts)}`);
|
|
34
39
|
setResetCount(resetCount + 1);
|
|
35
40
|
if (accounts.length > 0) {
|
|
@@ -39,7 +44,7 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
39
44
|
setLocalAddress(undefined);
|
|
40
45
|
}
|
|
41
46
|
});
|
|
42
|
-
|
|
47
|
+
provider.on('chainChanged', (chainId) => {
|
|
43
48
|
setResetCount(resetCount + 1);
|
|
44
49
|
if (chainId) {
|
|
45
50
|
setChainId(parseInt(chainId));
|
|
@@ -49,13 +54,10 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
49
54
|
}
|
|
50
55
|
});
|
|
51
56
|
}
|
|
52
|
-
}, [
|
|
53
|
-
const [walletProvider, setWalletProvider] = (0, react_1.useState)();
|
|
54
|
-
const [provider, setProvider] = (0, react_1.useState)();
|
|
55
|
-
const [signer, setSigner] = (0, react_1.useState)();
|
|
57
|
+
}, [provider, resetCount, enabled]);
|
|
56
58
|
(0, react_1.useEffect)(() => {
|
|
57
59
|
if (enabled) {
|
|
58
|
-
const walletProvider = ethereum ? new providers_1.Web3Provider(ethereum) : null;
|
|
60
|
+
const walletProvider = ethereum ? new providers_1.Web3Provider(window.ethereum) : null;
|
|
59
61
|
let provider = null;
|
|
60
62
|
let providerName = null;
|
|
61
63
|
if (walletProvider) {
|
|
@@ -105,9 +107,9 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
105
107
|
(0, lib_1.useAsyncEffect)(
|
|
106
108
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
107
109
|
(isMounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
108
|
-
var
|
|
110
|
+
var _a;
|
|
109
111
|
if (enabled) {
|
|
110
|
-
const chainId = (
|
|
112
|
+
const chainId = (_a = (yield (provider === null || provider === void 0 ? void 0 : provider.getNetwork()))) === null || _a === void 0 ? void 0 : _a.chainId;
|
|
111
113
|
if (!isMounted())
|
|
112
114
|
return;
|
|
113
115
|
setChainId(chainId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaMask.js","sourceRoot":"","sources":["../../../../src/contexts/Ethers/MetaMask.tsx"],"names":[],"mappings":";;;;;AAAA,wDAAgG;
|
|
1
|
+
{"version":3,"file":"MetaMask.js","sourceRoot":"","sources":["../../../../src/contexts/Ethers/MetaMask.tsx"],"names":[],"mappings":";;;;;AAAA,wDAAgG;AAEhG,2CAA2C;AAC3C,iCAAqE;AAErE,mCAA0C;AAC1C,uCAAyC;AACzC,qCAAoC;AAM7B,MAAM,oBAAoB,GAAuC,CAAC,KAAK,EAAE,EAAE;IAChF,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,EAAE,GAAG,KAAK,CAAA;IAE1C,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAkC,CAAA;IAC1D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAS,CAAA;IAC3C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,GAAc,CAAA;IAC9D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAA;IAC/C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,GAAU,CAAA;IAE1D,MAAM,OAAO,GAAG,GAAS,EAAE;QACzB,MAAM,QAAQ,GAAG,MAAM,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAA,CAAA;QACtE,kDAAkD;QAClD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YACzB,eAAe,CAAC,QAAQ,CAAC,CAA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