tek-wallet 0.0.54 → 0.0.56

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.
@@ -51,8 +51,8 @@ var ChildPageLayout_1 = __importDefault(require("../../../components/layouts/Chi
51
51
  var PageHeader_1 = __importDefault(require("../../../components/ui/PageHeader"));
52
52
  var react_2 = require("react");
53
53
  var Text_1 = __importDefault(require("../../../components/ui/Text"));
54
- var react_3 = require("next-auth/react");
55
54
  var Button_1 = __importDefault(require("../../ui/Button"));
55
+ var importWalletIntenalService_1 = __importDefault(require("../../../services/axios/import-wallet-service/importWalletIntenalService"));
56
56
  var CreateWalletViewStep;
57
57
  (function (CreateWalletViewStep) {
58
58
  CreateWalletViewStep[CreateWalletViewStep["CREATE_PASSCODE"] = 0] = "CREATE_PASSCODE";
@@ -73,10 +73,9 @@ var CreateWalletView = function (props) {
73
73
  case 0:
74
74
  (_a = childPageLayoutRef.current) === null || _a === void 0 ? void 0 : _a.showLoading();
75
75
  delay = new Promise(function (resolve) { return setTimeout(resolve, 1000); });
76
- return [4 /*yield*/, (0, react_3.signIn)("credentials", {
76
+ return [4 /*yield*/, (0, importWalletIntenalService_1.default)({
77
77
  seed_pharse: seedPhrase,
78
- app_slugs: process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || "",
79
- redirect: false,
78
+ app_slugs: [process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || ""],
80
79
  })];
81
80
  case 1:
82
81
  response = _b.sent();
@@ -86,7 +85,7 @@ var CreateWalletView = function (props) {
86
85
  return __generator(this, function (_b) {
87
86
  if (result[1].status === "fulfilled") {
88
87
  data = result[1].value;
89
- if ((data === null || data === void 0 ? void 0 : data.status) !== 200) {
88
+ if (!(data === null || data === void 0 ? void 0 : data.success)) {
90
89
  (_a = childPageLayoutRef.current) === null || _a === void 0 ? void 0 : _a.showError();
91
90
  }
92
91
  }
@@ -1,4 +1,3 @@
1
- import "../../styles/globals.css";
2
1
  import { ReactNode } from "react";
3
2
  export interface TekWalletProviderProps {
4
3
  children: ReactNode;
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  var jsx_runtime_1 = require("react/jsx-runtime");
8
- require("../../styles/globals.css");
9
8
  var WalletDataProvider_1 = __importDefault(require("../WalletDataProvider"));
10
9
  function TekWalletProvider(_a) {
11
10
  var children = _a.children;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "publish:patch": "npm run version:patch && npm publish",
16
16
  "publish:minor": "npm run version:minor && npm publish",
17
17
  "publish:major": "npm run version:major && npm publish",
18
- "release": "npm run clean && npm version patch && npm run build && cp -r src/styles dist/styles"
18
+ "release": "npm run clean && npm run build && cp -r src/styles dist/styles && npm version patch"
19
19
  },
20
20
  "keywords": [
21
21
  "react",
@@ -30,17 +30,14 @@
30
30
  "@emotion/react": "^11.14.0",
31
31
  "@emotion/styled": "^11.14.0",
32
32
  "@mui/material": "^6.4.7",
33
- "@reduxjs/toolkit": "^2.6.1",
34
33
  "axios": "^1.8.4",
35
34
  "clsx": "^2.1.1",
36
35
  "date-fns": "^4.1.0",
37
36
  "jsonwebtoken": "^9.0.2",
38
37
  "next": "^15.2.4",
39
- "next-auth": "^4.24.11",
40
38
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
41
39
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
42
40
  "react-otp-input": "^3.1.1",
43
- "react-redux": "^9.2.0",
44
41
  "swiper": "^11.2.4"
45
42
  },
46
43
  "peerDependencies": {
@@ -62,7 +59,6 @@
62
59
  "typescript": "^5.8.3"
63
60
  },
64
61
  "files": [
65
- "dist/**/*",
66
- "src/styles/**/*"
62
+ "dist/**/*"
67
63
  ]
68
64
  }
@@ -1,3 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
File without changes