@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.js CHANGED
@@ -760,8 +760,7 @@ var streamSignatureRequestInputSchema = z8.object({
760
760
  chainId: z8.number().nullable(),
761
761
  customArgs: z8.intersection(
762
762
  z8.object({
763
- targetChainId: z8.number(),
764
- targetTokenAddress: z8.string()
763
+ targetTokenId: z8.string().uuid()
765
764
  }),
766
765
  z8.union([
767
766
  z8.object({ tokensPerUSD: z8.string() }),
@@ -4152,10 +4151,12 @@ function useWidgetOpportunities(distributorId) {
4152
4151
  import { useQuery as useQuery12 } from "@tanstack/react-query";
4153
4152
  function useGeocheck(options = {}) {
4154
4153
  const { enabled = true, staleTime, gcTime } = options;
4154
+ const { disableGeocheck } = apiClient.getConfig();
4155
4155
  return useQuery12({
4156
4156
  ...geocheckQueries.check,
4157
4157
  ...queryDefaults,
4158
- enabled,
4158
+ enabled: enabled && !disableGeocheck,
4159
+ ...disableGeocheck && { initialData: { canInteract: true } },
4159
4160
  staleTime: staleTime ?? 5 * 60 * 1e3,
4160
4161
  // 5 minutes
4161
4162
  gcTime: gcTime ?? 10 * 60 * 1e3
@@ -4577,9 +4578,10 @@ function TurtleHooksProvider({
4577
4578
  earnUrl,
4578
4579
  getToken,
4579
4580
  earnApiKey,
4580
- debug
4581
+ debug,
4582
+ disableGeocheck
4581
4583
  }) {
4582
- apiClient.configure({ apiUrl, earnUrl, getToken, earnApiKey, debug });
4584
+ apiClient.configure({ apiUrl, earnUrl, getToken, earnApiKey, debug, disableGeocheck });
4583
4585
  return /* @__PURE__ */ jsx(Fragment, { children });
4584
4586
  }
4585
4587