tek-wallet 0.0.295 → 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.
@@ -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
+ */
@@ -31,7 +31,7 @@ var Text_1 = __importDefault(require("../Text"));
31
31
  function DialogContentLayout(props) {
32
32
  var content = props.content, actions = props.actions, sx = props.sx, rest = __rest(props, ["content", "actions", "sx"]);
33
33
  var theme = (0, material_1.useTheme)();
34
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, 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: {
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
35
  padding: theme.mixins.customPadding.p12,
36
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 })] })));
37
37
  }
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.295",
3
+ "version": "0.0.296",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",