@turtleclub/hooks 0.5.0-beta.93 → 0.5.0-beta.95

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/index.cjs CHANGED
@@ -1077,8 +1077,7 @@ var streamSignatureRequestInputSchema = import_zod8.z.object({
1077
1077
  chainId: import_zod8.z.number().nullable(),
1078
1078
  customArgs: import_zod8.z.intersection(
1079
1079
  import_zod8.z.object({
1080
- targetChainId: import_zod8.z.number(),
1081
- targetTokenAddress: import_zod8.z.string()
1080
+ targetTokenId: import_zod8.z.string().uuid()
1082
1081
  }),
1083
1082
  import_zod8.z.union([
1084
1083
  import_zod8.z.object({ tokensPerUSD: import_zod8.z.string() }),
@@ -4469,10 +4468,12 @@ function useWidgetOpportunities(distributorId) {
4469
4468
  var import_react_query17 = require("@tanstack/react-query");
4470
4469
  function useGeocheck(options = {}) {
4471
4470
  const { enabled = true, staleTime, gcTime } = options;
4471
+ const { disableGeocheck } = apiClient.getConfig();
4472
4472
  return (0, import_react_query17.useQuery)({
4473
4473
  ...geocheckQueries.check,
4474
4474
  ...queryDefaults,
4475
- enabled,
4475
+ enabled: enabled && !disableGeocheck,
4476
+ ...disableGeocheck && { initialData: { canInteract: true } },
4476
4477
  staleTime: staleTime ?? 5 * 60 * 1e3,
4477
4478
  // 5 minutes
4478
4479
  gcTime: gcTime ?? 10 * 60 * 1e3
@@ -4891,9 +4892,10 @@ function TurtleHooksProvider({
4891
4892
  earnUrl,
4892
4893
  getToken,
4893
4894
  earnApiKey,
4894
- debug
4895
+ debug,
4896
+ disableGeocheck
4895
4897
  }) {
4896
- apiClient.configure({ apiUrl, earnUrl, getToken, earnApiKey, debug });
4898
+ apiClient.configure({ apiUrl, earnUrl, getToken, earnApiKey, debug, disableGeocheck });
4897
4899
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
4898
4900
  }
4899
4901