@pushchain/ui-kit 1.1.11 → 1.1.12
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": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@coral-xyz/anchor": "^0.31.1",
|
|
6
6
|
"@metamask/sdk": "^0.32.0",
|
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
"typings": "./src/index.d.ts",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/react": "^18.3.13",
|
|
23
|
+
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
23
24
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
24
25
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
25
|
-
"typescript-eslint": "^8.32.1"
|
|
26
|
+
"typescript-eslint": "^8.32.1",
|
|
27
|
+
"vite-plugin-node-polyfills": "^0.23.0"
|
|
26
28
|
},
|
|
27
29
|
"scripts": {
|
|
28
30
|
"release:stable": "npx nx run ui-kit:nx-release-publish --otp=1",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
4
|
+
// import { Buffer } from 'buffer';
|
|
5
5
|
const process_1 = tslib_1.__importDefault(require("process"));
|
|
6
6
|
if (typeof window !== 'undefined') {
|
|
7
|
-
window.Buffer =
|
|
7
|
+
// (window as any).Buffer = Buffer;
|
|
8
8
|
window.process = process_1.default;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=global-shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-shim.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/polyfills/global-shim.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"global-shim.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/polyfills/global-shim.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,8DAA8B;AAE9B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACpC,qCAAqC;IAClC,MAAc,CAAC,OAAO,GAAG,iBAAO,CAAC;AACpC,CAAC"}
|
|
@@ -8,7 +8,6 @@ const constants_1 = require("../constants");
|
|
|
8
8
|
const styled_components_1 = require("styled-components");
|
|
9
9
|
const token_1 = require("../styles/token");
|
|
10
10
|
const theme_1 = require("../utils/theme");
|
|
11
|
-
const buffer_1 = require("buffer");
|
|
12
11
|
const loginDefaultConfig = {
|
|
13
12
|
email: true,
|
|
14
13
|
google: true,
|
|
@@ -48,9 +47,6 @@ const PushUniversalWalletProvider = ({ config, app, themeMode = constants_1.Push
|
|
|
48
47
|
}
|
|
49
48
|
`;
|
|
50
49
|
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) });
|
|
51
|
-
if (typeof window !== 'undefined' && !window.Buffer) {
|
|
52
|
-
window.Buffer = buffer_1.Buffer;
|
|
53
|
-
}
|
|
54
50
|
return ((0, jsx_runtime_1.jsxs)(styled_components_1.ThemeProvider, { theme: { themeMode, themeOverrides }, children: [(0, jsx_runtime_1.jsx)(GlobalStyle, {}), (0, jsx_runtime_1.jsx)(WalletContext_1.WalletContextProvider, { config: mergedConfig, app: app, themeMode: themeMode, themeOverrides: themeOverrides, children: children })] }));
|
|
55
51
|
};
|
|
56
52
|
exports.PushUniversalWalletProvider = PushUniversalWalletProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushWalletProvider.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/providers/PushWalletProvider.tsx"],"names":[],"mappings":";;;;;AAEA,4DAAiE;AACjE,4CAAsC;AACtC,yDAI2B;AAC3B,2CAKyB;AACzB,0CAA8C;
|
|
1
|
+
{"version":3,"file":"PushWalletProvider.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/providers/PushWalletProvider.tsx"],"names":[],"mappings":";;;;;AAEA,4DAAiE;AACjE,4CAAsC;AACtC,yDAI2B;AAC3B,2CAKyB;AACzB,0CAA8C;AAO9C,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,CAAC,YAAY,CAAC,aAAa;IACpD,KAAK,EAAE;QACL,WAAW,EAAE,kBAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;QACjD,UAAU,EAAE,KAAK;QACjB,oBAAoB,EAAE,kBAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,WAAW;KACzE;CACF,CAAC;AAEK,MAAM,2BAA2B,GAAgC,CAAC,EACvE,MAAM,EACN,GAAG,EACH,SAAS,GAAG,kBAAM,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,EACxC,cAAc,GAAG,EAAE,EACnB,QAAQ,GACT,EAAE,EAAE;;IACH,MAAM,WAAW,GAAG,IAAA,qCAAiB,EAAA;;;;;;;QAO/B,CAAC,KAAK,EAAE,EAAE;;QACV,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,KAAK,CAA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