@matchain/matchid-sdk-react 0.1.53-alpha.12 → 0.1.53-alpha.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/dist/{chunk-I2V4VRQH.mjs → chunk-OEKLKWFJ.mjs} +11 -5
- package/dist/{chunk-I2V4VRQH.mjs.map → chunk-OEKLKWFJ.mjs.map} +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +9 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js +9 -3
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-DQFQ39D9.d.ts → index-BikcLg_6.d.ts} +1 -1
- package/dist/{index-D7S5DMUy.d.mts → index-CLYi12dP.d.mts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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, 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-
|
|
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, 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-CLYi12dP.mjs';
|
|
2
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-BaFmUVw-.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import '../types-VrV1kYga.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
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, 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-
|
|
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, 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-BikcLg_6.js';
|
|
2
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-CQmN0dN4.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import '../types-VrV1kYga.js';
|
package/dist/components/index.js
CHANGED
|
@@ -6516,13 +6516,19 @@ function useContactList(page_size = 10, type = "Friend") {
|
|
|
6516
6516
|
limitIdRef.current = lastItem?.limit_id || 0;
|
|
6517
6517
|
}
|
|
6518
6518
|
}, [contactQuery.data?.pages]);
|
|
6519
|
-
|
|
6520
|
-
data
|
|
6519
|
+
(0, import_react42.useEffect)(() => {
|
|
6520
|
+
console.log("contactQuery.data", contactQuery.data);
|
|
6521
|
+
}, [contactQuery.data]);
|
|
6522
|
+
const data = (0, import_react42.useMemo)(() => {
|
|
6523
|
+
return (contactQuery.data?.pages ?? []).reduce(
|
|
6521
6524
|
(a, b) => {
|
|
6522
6525
|
return a.concat(b?.items ?? []);
|
|
6523
6526
|
},
|
|
6524
6527
|
[]
|
|
6525
|
-
)
|
|
6528
|
+
);
|
|
6529
|
+
}, [contactQuery.data]);
|
|
6530
|
+
return {
|
|
6531
|
+
data,
|
|
6526
6532
|
totalCount: contactQuery.hasNextPage ? ((0, import_last.default)(contactQuery.data?.pages ?? [])?.meta.total ?? 0) + 1 : (0, import_last.default)(contactQuery.data?.pages ?? [])?.meta.total ?? 0,
|
|
6527
6533
|
loading: contactQuery.isLoading,
|
|
6528
6534
|
loadingNextPage: contactQuery.isFetchingNextPage,
|