@pushchain/ui-kit 1.1.13 → 1.1.14

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,13 +1,15 @@
1
1
  {
2
2
  "name": "@pushchain/ui-kit",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "dependencies": {
5
5
  "@coral-xyz/anchor": "^0.31.1",
6
6
  "@metamask/sdk": "^0.32.0",
7
7
  "@pushchain/core": "^0.1.38",
8
8
  "@solana/web3.js": "^1.98.2",
9
9
  "@walletconnect/ethereum-provider": "^2.21.3",
10
+ "buffer": "^6.0.3",
10
11
  "ethers": "^6.13.5",
12
+ "process": "^0.11.10",
11
13
  "react": "^18.3.1",
12
14
  "styled-components": "^6.1.19",
13
15
  "tslib": "^2.3.0",
@@ -0,0 +1,4 @@
1
+ import { PushChain as PushChainCore } from '@pushchain/core';
2
+ export declare const usePushChain: () => {
3
+ PushChain: typeof PushChainCore;
4
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.usePushChain = void 0;
4
+ const react_1 = require("react");
5
+ const core_1 = require("@pushchain/core");
6
+ const usePushChain = () => {
7
+ const PushChain = (0, react_1.useMemo)(() => core_1.PushChain, []);
8
+ return { PushChain };
9
+ };
10
+ exports.usePushChain = usePushChain;
11
+ //# sourceMappingURL=usePushChain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePushChain.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/hooks/usePushChain.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,0CAA6D;AAEtD,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,gBAAa,EAAE,EAAE,CAAC,CAAC;IACnD,OAAO,EAAE,SAAS,EAAE,CAAC;AACvB,CAAC,CAAC;AAHW,QAAA,YAAY,gBAGvB"}
@@ -1,6 +1,8 @@
1
+ import './polyfills';
1
2
  export * from './constants';
2
3
  export * from './providers/PushWalletProvider';
3
4
  export * from './types';
4
5
  export * from './components/PushUniversalAccountButton';
5
6
  export * from './hooks/usePushWallet';
6
7
  export * from './hooks/usePushChainClient';
8
+ export * from './hooks/usePushChain';
package/src/lib/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ require("./polyfills");
4
5
  tslib_1.__exportStar(require("./constants"), exports);
5
6
  // export * from './walletDeprecated';
6
7
  tslib_1.__exportStar(require("./providers/PushWalletProvider"), exports);
@@ -8,4 +9,5 @@ tslib_1.__exportStar(require("./types"), exports);
8
9
  tslib_1.__exportStar(require("./components/PushUniversalAccountButton"), exports);
9
10
  tslib_1.__exportStar(require("./hooks/usePushWallet"), exports);
10
11
  tslib_1.__exportStar(require("./hooks/usePushChainClient"), exports);
12
+ tslib_1.__exportStar(require("./hooks/usePushChain"), exports);
11
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/ui-kit/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,sCAAsC;AACtC,yEAA+C;AAC/C,kDAAwB;AAExB,kFAAwD;AACxD,gEAAsC;AACtC,qEAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/ui-kit/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,uBAAqB;AAErB,sDAA4B;AAC5B,sCAAsC;AACtC,yEAA+C;AAC/C,kDAAwB;AAExB,kFAAwD;AACxD,gEAAsC;AACtC,qEAA2C;AAC3C,+DAAqC"}
File without changes
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ // These lines ensure process, global, and Buffer are defined in the browser
26
+ if (typeof globalThis.process === 'undefined') {
27
+ ;
28
+ globalThis.process = { env: {} };
29
+ }
30
+ if (typeof globalThis.global === 'undefined') {
31
+ ;
32
+ globalThis.global = globalThis;
33
+ }
34
+ if (typeof globalThis.Buffer === 'undefined') {
35
+ Promise.resolve().then(() => __importStar(require('buffer'))).then((buffer) => {
36
+ ;
37
+ globalThis.Buffer = buffer.Buffer;
38
+ });
39
+ }
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/ui-kit/src/lib/polyfills/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA4E;AAC5E,IAAI,OAAO,UAAU,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;IAC9C,CAAC;IAAC,UAAkB,CAAC,OAAO,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC;AACD,IAAI,OAAO,UAAU,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;IAC7C,CAAC;IAAC,UAAkB,CAAC,MAAM,GAAG,UAAU,CAAC;AAC3C,CAAC;AACD,IAAI,OAAO,UAAU,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;IAC7C,kDAAO,QAAQ,IAAE,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QAC/B,CAAC;QAAC,UAAkB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC"}