@matchain/matchid-sdk-react 0.1.53-alpha.21 → 0.1.53-alpha.23

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.
@@ -1,5 +1,5 @@
1
- export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, M as MessageList, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-D5ql_Egx.mjs';
2
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-CBDXC17Y.mjs';
1
+ export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, M as MessageList, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-Dee6qqWc.mjs';
2
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-CaMDtQcV.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import '../types-DvqfFAbp.mjs';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
- export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, M as MessageList, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-DgPcDFXk.js';
2
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-ijV5Kx6q.js';
1
+ export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, M as MessageList, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-DQjZSiFX.js';
2
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-DqIQL1Es.js';
3
3
  import 'react/jsx-runtime';
4
4
  import '../types-DvqfFAbp.js';
5
5
  import 'react';
@@ -1491,7 +1491,8 @@ function Button({
1491
1491
  type = "button",
1492
1492
  rounded = true,
1493
1493
  className = "",
1494
- style = {}
1494
+ style = {},
1495
+ dataset = {}
1495
1496
  }) {
1496
1497
  const onAction = () => {
1497
1498
  if (!disabled && !loading) {
@@ -1508,6 +1509,7 @@ function Button({
1508
1509
  ...style
1509
1510
  },
1510
1511
  onClick: onAction,
1512
+ ...dataset,
1511
1513
  children: loading ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
1512
1514
  }
1513
1515
  );
@@ -6540,11 +6542,11 @@ var import_react_query13 = require("@tanstack/react-query");
6540
6542
  var import_last = __toESM(require("lodash/last"));
6541
6543
  var import_react43 = require("react");
6542
6544
  function useContactList(page_size = 10, type = "Friend") {
6543
- const { token } = useLocalStore_default();
6545
+ const { address } = useUserInfo();
6544
6546
  const limitIdRef = (0, import_react43.useRef)(0);
6545
6547
  const queryClient2 = (0, import_react_query13.useQueryClient)();
6546
6548
  const contactQuery = (0, import_react_query13.useInfiniteQuery)({
6547
- queryKey: ["matchid-contacts-list", type, token],
6549
+ queryKey: ["matchid-contacts-list", type, address],
6548
6550
  initialPageParam: 1,
6549
6551
  queryFn: async (args) => {
6550
6552
  console.log(args);