tek-wallet 0.0.294 → 0.0.296
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/components/ui/AppBackDrop/index.js +3 -1
- package/dist/components/ui/DialogContentLayout/index.d.ts +21 -0
- package/dist/components/ui/DialogContentLayout/index.js +7 -1
- package/dist/components/ui/WithdrawFunction/index.js +1 -0
- package/dist/theme/mui/theme.js +1 -1
- package/package.json +1 -1
|
@@ -34,7 +34,9 @@ var AppBackDrop = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
34
34
|
open: function () { return setIsOpen(true); },
|
|
35
35
|
close: function () { return setIsOpen(false); },
|
|
36
36
|
}); });
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(material_2.Backdrop, __assign({ sx: __assign({ color: "text.white", zIndex: theme.zIndex.drawer + 1
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(material_2.Backdrop, __assign({ sx: __assign({ color: "text.white", zIndex: theme.zIndex.drawer + 1, "& .MuiBackdrop-root": {
|
|
38
|
+
backdropFilter: "blur(12px)",
|
|
39
|
+
} }, sx) }, rest, { open: isOpen, children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "inherit" }) })));
|
|
38
40
|
});
|
|
39
41
|
AppBackDrop.displayName = "AppBackDrop";
|
|
40
42
|
exports.default = AppBackDrop;
|
|
@@ -6,3 +6,24 @@ interface DialogContentLayoutProps extends Omit<BoxProps, "content" | "actions">
|
|
|
6
6
|
}
|
|
7
7
|
declare function DialogContentLayout(props: DialogContentLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default DialogContentLayout;
|
|
9
|
+
/**
|
|
10
|
+
* LẤY ĐỊA CHỈ VÍ TỪ TEXT QR CODE
|
|
11
|
+
* Sử dụng hàm lấy địa chỉ ví của mạng Ton
|
|
12
|
+
* 1.1 Không lấy được địa chỉ ví => Trả về chuỗi input và hiển thị chọn token
|
|
13
|
+
* 1.2 Lấy được địa chỉ ví
|
|
14
|
+
* 1.2.1 Không có thông tin token => chọn token
|
|
15
|
+
* 1.2.2 Có thông tin token => hiện form
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* #Mặc định là mạng TON
|
|
19
|
+
* Quét mã qr:
|
|
20
|
+
*
|
|
21
|
+
* 1. Không lấy được địa chỉ ví => Báo mã không được hỗ trợ
|
|
22
|
+
* 2. Lấy được địa chỉ ví:
|
|
23
|
+
* 2.1 Địa chỉ ví không khớp với mạng Ton => Báo mã không được hỗ trợ
|
|
24
|
+
* 2.2 Địa chỉ ví khớp:
|
|
25
|
+
* 2.2.1 Là của chính bản thân mình => Báo mày không thể send tới chính mày
|
|
26
|
+
* 2.2.2 Là của người khác:
|
|
27
|
+
* 2.2.2.1 Có trong hệ thống Tek Wallet => Đề xuất user transfer (send internal)
|
|
28
|
+
* 2.2.2.2 Không có trong hệ thống => cho qua withdraw (send external)
|
|
29
|
+
*/
|
|
@@ -21,12 +21,18 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
24
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
29
|
var material_1 = require("@mui/material");
|
|
30
|
+
var Text_1 = __importDefault(require("../Text"));
|
|
27
31
|
function DialogContentLayout(props) {
|
|
28
32
|
var content = props.content, actions = props.actions, sx = props.sx, rest = __rest(props, ["content", "actions", "sx"]);
|
|
29
33
|
var theme = (0, material_1.useTheme)();
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), {
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { borderRadius: theme.mixins.theBorderRadius.r12, backgroundColor: theme.palette.background.black, boxShadow: theme.shadows[1] }), theme.mixins.dialogContent), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
35
|
+
padding: theme.mixins.customPadding.p12,
|
|
36
|
+
}, children: content }), !!actions && (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { px: theme.mixins.customPadding.p12 }, children: actions })] })));
|
|
31
37
|
}
|
|
32
38
|
exports.default = DialogContentLayout;
|
|
@@ -241,6 +241,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
241
241
|
console.error("result", result);
|
|
242
242
|
text = (_b = result === null || result === void 0 ? void 0 : result[0]) === null || _b === void 0 ? void 0 : _b.rawValue;
|
|
243
243
|
tonTransferParam = (0, parseTonTransferUrl_1.default)(text);
|
|
244
|
+
console.warn("🚀 ~ handleScanAllQrCode ~ tonTransferParam:", tonTransferParam);
|
|
244
245
|
(_c = backDropRef.current) === null || _c === void 0 ? void 0 : _c.open();
|
|
245
246
|
return [4 /*yield*/, (0, validate_wallet_address_service_1.default)({
|
|
246
247
|
address: tonTransferParam === null || tonTransferParam === void 0 ? void 0 : tonTransferParam.address,
|
package/dist/theme/mui/theme.js
CHANGED