@pushchain/ui-kit 4.0.4 → 4.0.6-alpha.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushchain/ui-kit",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6-alpha.1",
|
|
4
4
|
"homepage": "https://push.org",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pushchain",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@coral-xyz/anchor": "^0.31.1",
|
|
21
21
|
"@metamask/sdk": "^0.32.0",
|
|
22
|
-
"@pushchain/core": "^4.0.
|
|
22
|
+
"@pushchain/core": "^4.0.5",
|
|
23
23
|
"@solana/web3.js": "^1.98.2",
|
|
24
24
|
"@walletconnect/ethereum-provider": "^2.21.5",
|
|
25
25
|
"buffer": "^6.0.3",
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PushUniversalWalletProvider = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
7
|
+
const react_1 = require("react");
|
|
6
8
|
const WalletContext_1 = require("../context/WalletContext");
|
|
7
9
|
const constants_1 = require("../constants");
|
|
8
10
|
const styled_components_1 = require("styled-components");
|
|
@@ -48,7 +50,9 @@ const GlobalStyle = (0, styled_components_1.createGlobalStyle) `
|
|
|
48
50
|
`;
|
|
49
51
|
const PushUniversalWalletProvider = ({ config, app, themeMode = constants_1.PushUI.CONSTANTS.THEME.LIGHT, themeOverrides = {}, children, }) => {
|
|
50
52
|
var _a;
|
|
51
|
-
(0,
|
|
53
|
+
(0, react_1.useEffect)(() => {
|
|
54
|
+
(0, eip6963_1.startEIP6963Listener)();
|
|
55
|
+
}, []);
|
|
52
56
|
const mergedConfig = Object.assign(Object.assign(Object.assign({}, PushWalletConfigDefault), config), { login: Object.assign(Object.assign(Object.assign({}, loginDefaultConfig), ((config === null || config === void 0 ? void 0 : config.login) || {})), { wallet: Object.assign(Object.assign({}, loginDefaultConfig.wallet), (((_a = config === null || config === void 0 ? void 0 : config.login) === null || _a === void 0 ? void 0 : _a.wallet) || {})) }), modal: Object.assign(Object.assign({}, PushWalletConfigDefault.modal), config.modal) });
|
|
53
57
|
return ((0, jsx_runtime_1.jsxs)(styled_components_1.ThemeProvider, { theme: { themeMode, themeOverrides }, children: [(0, jsx_runtime_1.jsx)(GlobalStyle, { uid: mergedConfig.uid }), (0, jsx_runtime_1.jsx)("div", { "data-pw-wrapper": mergedConfig.uid, children: (0, jsx_runtime_1.jsx)(WalletContext_1.WalletContextProvider, { config: mergedConfig, app: app, themeMode: themeMode, themeOverrides: themeOverrides, children: children }) })] }));
|
|
54
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushWalletProvider.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/providers/PushWalletProvider.tsx"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"PushWalletProvider.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/providers/PushWalletProvider.tsx"],"names":[],"mappings":";;;;;AAAA,sDAAsD;AACtD,iCAA6C;AAE7C,4DAAiE;AACjE,4CAAsC;AACtC,yDAI2B;AAC3B,2CAMyB;AACzB,0CAA8C;AAC9C,6DAAuE;AAOvE,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE;QACN,OAAO,EAAE,IAAI;KACd;CACF,CAAC;AAEF,MAAM,uBAAuB,GAAwB;IACnD,GAAG,EAAE,SAAS;IACd,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE,kBAAM,CAAC,SAAS,CA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