@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.
- package/dist/{chunk-2Q5NZXUB.mjs → chunk-WNDUHFQX.mjs} +6 -4
- package/dist/chunk-WNDUHFQX.mjs.map +1 -0
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +5 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +1 -1
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-qKVfqZ0X.d.ts → index-C7a1Hfcx.d.ts} +1 -1
- package/dist/{index-CBDXC17Y.d.mts → index-CaMDtQcV.d.mts} +5 -1
- package/dist/{index-DgPcDFXk.d.ts → index-DQjZSiFX.d.ts} +1 -1
- package/dist/{index-D5ql_Egx.d.mts → index-Dee6qqWc.d.mts} +1 -1
- package/dist/{index-ijV5Kx6q.d.ts → index-DqIQL1Es.d.ts} +5 -1
- package/dist/{index-DjctI-Fl.d.mts → index-rk7ZjmRF.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/ui/index.d.mts +2 -2
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +3 -1
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2Q5NZXUB.mjs.map +0 -1
|
@@ -757,7 +757,8 @@ function Button({
|
|
|
757
757
|
type = "button",
|
|
758
758
|
rounded = true,
|
|
759
759
|
className = "",
|
|
760
|
-
style = {}
|
|
760
|
+
style = {},
|
|
761
|
+
dataset = {}
|
|
761
762
|
}) {
|
|
762
763
|
const onAction = () => {
|
|
763
764
|
if (!disabled && !loading) {
|
|
@@ -774,6 +775,7 @@ function Button({
|
|
|
774
775
|
...style
|
|
775
776
|
},
|
|
776
777
|
onClick: onAction,
|
|
778
|
+
...dataset,
|
|
777
779
|
children: loading ? /* @__PURE__ */ jsx(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
|
|
778
780
|
}
|
|
779
781
|
);
|
|
@@ -7956,11 +7958,11 @@ import { useInfiniteQuery as useInfiniteQuery2, useQuery as useQuery12, useQuery
|
|
|
7956
7958
|
import last2 from "lodash/last";
|
|
7957
7959
|
import { useEffect as useEffect34, useMemo as useMemo21, useRef as useRef6 } from "react";
|
|
7958
7960
|
function useContactList(page_size = 10, type = "Friend") {
|
|
7959
|
-
const {
|
|
7961
|
+
const { address } = useUserInfo();
|
|
7960
7962
|
const limitIdRef = useRef6(0);
|
|
7961
7963
|
const queryClient2 = useQueryClient5();
|
|
7962
7964
|
const contactQuery = useInfiniteQuery2({
|
|
7963
|
-
queryKey: ["matchid-contacts-list", type,
|
|
7965
|
+
queryKey: ["matchid-contacts-list", type, address],
|
|
7964
7966
|
initialPageParam: 1,
|
|
7965
7967
|
queryFn: async (args) => {
|
|
7966
7968
|
console.log(args);
|
|
@@ -8130,4 +8132,4 @@ export {
|
|
|
8130
8132
|
MatchProvider,
|
|
8131
8133
|
useMatch
|
|
8132
8134
|
};
|
|
8133
|
-
//# sourceMappingURL=chunk-
|
|
8135
|
+
//# sourceMappingURL=chunk-WNDUHFQX.mjs.map
|