thirdweb 5.121.3 → 5.121.4

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.
Files changed (74) hide show
  1. package/dist/cjs/insight/get-nfts.js +2 -2
  2. package/dist/cjs/insight/get-nfts.js.map +1 -1
  3. package/dist/cjs/version.js +1 -1
  4. package/dist/esm/insight/get-nfts.js +2 -2
  5. package/dist/esm/insight/get-nfts.js.map +1 -1
  6. package/dist/esm/version.js +1 -1
  7. package/dist/scripts/bridge-widget.js +64 -64
  8. package/dist/types/version.d.ts +1 -1
  9. package/package.json +18 -17
  10. package/src/insight/get-nfts.ts +2 -2
  11. package/src/react/core/account/provider.test.tsx +1 -0
  12. package/src/react/core/hooks/others/useWalletBalance.test.tsx +1 -0
  13. package/src/react/core/hooks/pay/useBuyWithFiatQuotesForProviders.test.tsx +1 -0
  14. package/src/react/core/hooks/useStepExecutor.test.tsx +1 -0
  15. package/src/react/core/hooks/wallets/useAddConnectedWallet.test.tsx +1 -0
  16. package/src/react/core/hooks/wallets/useAutoConnectCore.test.tsx +1 -0
  17. package/src/react/core/hooks/wallets/useConnect.test.tsx +1 -0
  18. package/src/react/core/hooks/wallets/useSetActiveWallet.test.tsx +1 -0
  19. package/src/react/core/hooks/wallets/useSwitchActiveWalletChain.test.tsx +1 -0
  20. package/src/react/core/providers/connection-manager.test.tsx +1 -0
  21. package/src/react/core/wallet/provider.test.tsx +1 -0
  22. package/src/react/native/hooks/wallets/useUnlinkProfile.test.tsx +1 -0
  23. package/src/react/web/hooks/wallets/useUnlinkProfile.test.tsx +1 -0
  24. package/src/react/web/ui/AutoConnect/AutoConnect.test.tsx +1 -0
  25. package/src/react/web/ui/Bridge/StepRunner.test.tsx +1 -0
  26. package/src/react/web/ui/Bridge/common/token-query.test.tsx +1 -0
  27. package/src/react/web/ui/ConnectWallet/ConnectButton.test.tsx +1 -0
  28. package/src/react/web/ui/ConnectWallet/Details.test.tsx +1 -0
  29. package/src/react/web/ui/ConnectWallet/NetworkSelector.test.tsx +1 -0
  30. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/currencies.test.tsx +1 -0
  31. package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.test.tsx +1 -0
  32. package/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.test.tsx +1 -0
  33. package/src/react/web/ui/ConnectWallet/screens/PrivateKey.test.tsx +1 -0
  34. package/src/react/web/ui/ConnectWallet/screens/ReceiveFunds.test.tsx +1 -0
  35. package/src/react/web/ui/ConnectWallet/screens/SendFunds.test.tsx +1 -0
  36. package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.test.tsx +1 -0
  37. package/src/react/web/ui/ConnectWallet/screens/StartScreen.test.tsx +1 -0
  38. package/src/react/web/ui/MediaRenderer/MediaRenderer.test.tsx +1 -0
  39. package/src/react/web/ui/MediaRenderer/icons.test.tsx +1 -0
  40. package/src/react/web/ui/MediaRenderer/useResolvedMediaType.test.tsx +1 -0
  41. package/src/react/web/ui/SiteEmbed.test.tsx +1 -0
  42. package/src/react/web/ui/SiteLink.test.tsx +1 -0
  43. package/src/react/web/ui/TransactionButton/TransactionButton.test.tsx +1 -0
  44. package/src/react/web/ui/components/ChainIcon.test.tsx +1 -0
  45. package/src/react/web/ui/hooks/useCopyClipboard.test.tsx +1 -0
  46. package/src/react/web/ui/hooks/useDebouncedValue.test.tsx +1 -0
  47. package/src/react/web/ui/hooks/useShowMore.test.tsx +28 -12
  48. package/src/react/web/ui/prebuilt/Account/address.test.tsx +1 -0
  49. package/src/react/web/ui/prebuilt/Account/avatar.test.tsx +1 -0
  50. package/src/react/web/ui/prebuilt/Account/balance.test.tsx +1 -0
  51. package/src/react/web/ui/prebuilt/Account/name.test.tsx +1 -0
  52. package/src/react/web/ui/prebuilt/Chain/icon.test.tsx +1 -0
  53. package/src/react/web/ui/prebuilt/Chain/name.test.tsx +1 -0
  54. package/src/react/web/ui/prebuilt/Chain/provider.test.tsx +1 -0
  55. package/src/react/web/ui/prebuilt/NFT/description.test.tsx +1 -0
  56. package/src/react/web/ui/prebuilt/NFT/media.test.tsx +1 -0
  57. package/src/react/web/ui/prebuilt/NFT/name.test.tsx +1 -0
  58. package/src/react/web/ui/prebuilt/NFT/provider.test.tsx +1 -0
  59. package/src/react/web/ui/prebuilt/Token/name.test.tsx +1 -0
  60. package/src/react/web/ui/prebuilt/Token/provider.test.tsx +1 -0
  61. package/src/react/web/ui/prebuilt/Token/symbol.test.tsx +1 -0
  62. package/src/react/web/ui/prebuilt/Wallet/icon.test.tsx +1 -0
  63. package/src/react/web/ui/prebuilt/Wallet/name.test.tsx +1 -0
  64. package/src/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/BuyDirectListingButton.test.tsx +1 -0
  65. package/src/react/web/ui/prebuilt/thirdweb/ClaimButton/ClaimButton.test.tsx +1 -0
  66. package/src/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/CreateDirectListingButton.test.tsx +1 -0
  67. package/src/react/web/utils/canFitWideModal.test.tsx +1 -0
  68. package/src/react/web/wallets/in-app/CountrySelector.test.tsx +1 -0
  69. package/src/react/web/wallets/in-app/InputSelectionUI.test.tsx +1 -0
  70. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.test.tsx +1 -0
  71. package/src/version.ts +1 -1
  72. package/src/wallets/in-app/web/lib/auth/redirect-state.test.tsx +1 -0
  73. package/src/wallets/in-app/web/lib/get-url-token.test.tsx +1 -0
  74. package/src/wallets/in-app/web/utils/iFrameCommunication/IframeCommunicator.test.tsx +1 -0
@@ -1,2 +1,2 @@
1
- export declare const version = "5.121.3";
1
+ export declare const version = "5.121.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -35,13 +35,13 @@
35
35
  "ox": "0.7.0",
36
36
  "prompts": "2.4.2",
37
37
  "qrcode": "1.5.3",
38
- "toml": "3.0.0",
38
+ "toml": "4.2.0",
39
39
  "uqr": "0.1.2",
40
40
  "viem": "2.39.0",
41
41
  "x402": "0.7.0",
42
42
  "zod": "3.25.75",
43
- "@thirdweb-dev/insight": "1.1.1",
44
- "@thirdweb-dev/engine": "3.4.0"
43
+ "@thirdweb-dev/engine": "3.4.0",
44
+ "@thirdweb-dev/insight": "1.1.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@aws-sdk/client-kms": "3.592.0",
@@ -53,12 +53,13 @@
53
53
  "@coinbase/wallet-mobile-sdk": "1.1.2",
54
54
  "@mobile-wallet-protocol/client": "1.0.0",
55
55
  "@react-native-async-storage/async-storage": "2.2.0",
56
- "@size-limit/preset-big-lib": "11.2.0",
57
- "@storybook/addon-docs": "9.0.15",
58
- "@storybook/addon-links": "9.0.15",
59
- "@storybook/addon-onboarding": "9.0.15",
60
- "@storybook/react": "9.0.15",
61
- "@storybook/react-vite": "9.0.15",
56
+ "@size-limit/file": "11.2.0",
57
+ "@size-limit/webpack": "11.2.0",
58
+ "@storybook/addon-docs": "9.1.20",
59
+ "@storybook/addon-links": "9.1.20",
60
+ "@storybook/addon-onboarding": "9.1.20",
61
+ "@storybook/react": "9.1.20",
62
+ "@storybook/react-vite": "9.1.20",
62
63
  "@testing-library/jest-dom": "^6.6.3",
63
64
  "@testing-library/react": "^16.3.0",
64
65
  "@testing-library/user-event": "^14.6.1",
@@ -69,14 +70,14 @@
69
70
  "@types/react-dom": "19.2.3",
70
71
  "@viem/anvil": "0.0.10",
71
72
  "@vitejs/plugin-react": "5.0.4",
72
- "@vitest/coverage-v8": "3.2.4",
73
- "@vitest/ui": "3.2.4",
73
+ "@vitest/coverage-v8": "4.1.11",
74
+ "@vitest/ui": "4.1.11",
74
75
  "dotenv-mono": "^1.3.14",
75
76
  "ethers5": "npm:ethers@5",
76
77
  "ethers6": "npm:ethers@6",
77
78
  "expo-linking": "8.0.8",
78
79
  "expo-web-browser": "15.0.9",
79
- "happy-dom": "17.4.4",
80
+ "happy-dom": "20.14.3",
80
81
  "knip": "5.60.2",
81
82
  "msw": "2.7.5",
82
83
  "prettier": "3.6.2",
@@ -88,15 +89,15 @@
88
89
  "react-native-quick-crypto": "0.7.14",
89
90
  "react-native-svg": "15.12.0",
90
91
  "rimraf": "6.0.1",
91
- "sharp": "^0.35.0",
92
+ "sharp": "^0.35.4",
92
93
  "size-limit": "11.2.0",
93
- "storybook": "9.0.15",
94
+ "storybook": "9.1.20",
94
95
  "tsup": "^8.5.0",
95
96
  "typedoc": "0.27.9",
96
97
  "typedoc-better-json": "0.9.4",
97
98
  "typescript": "5.8.3",
98
- "vite": "7.1.7",
99
- "vitest": "3.2.4"
99
+ "vite": "7.3.6",
100
+ "vitest": "4.1.11"
100
101
  },
101
102
  "engines": {
102
103
  "node": ">=18"
@@ -400,7 +401,7 @@
400
401
  }
401
402
  },
402
403
  "typings": "./dist/types/exports/thirdweb.d.ts",
403
- "version": "5.121.3",
404
+ "version": "5.121.4",
404
405
  "scripts": {
405
406
  "bench": "vitest -c ./test/vitest.config.ts bench",
406
407
  "bench:compare": "bun run ./benchmarks/run.ts",
@@ -313,7 +313,7 @@ async function transformNFTModel(
313
313
  supply: supply,
314
314
  tokenAddress: contract?.address ?? "",
315
315
  tokenId: BigInt(token_id),
316
- tokenUri: replaceIPFSGateway(metadata_url) ?? "",
316
+ tokenUri: replaceIPFSGateway(metadata_url ?? undefined) ?? "",
317
317
  type: "ERC1155",
318
318
  });
319
319
  } else {
@@ -322,7 +322,7 @@ async function transformNFTModel(
322
322
  owner: owners?.[0],
323
323
  tokenAddress: contract?.address ?? "",
324
324
  tokenId: BigInt(token_id),
325
- tokenUri: replaceIPFSGateway(metadata_url) ?? "",
325
+ tokenUri: replaceIPFSGateway(metadata_url ?? undefined) ?? "",
326
326
  type: "ERC721",
327
327
  });
328
328
  }
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2
3
  import { renderHook, waitFor } from "@testing-library/react";
3
4
  import type { ReactNode } from "react";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2
3
  import { renderHook, waitFor } from "@testing-library/react";
3
4
  import type React from "react";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { act, renderHook, waitFor } from "@testing-library/react";
2
3
  import { describe, expect, it, vi } from "vitest";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { renderHook } from "@testing-library/react";
2
3
  import type { ReactNode } from "react";
3
4
  import { describe, expect, it } from "vitest";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { renderHook, waitFor } from "@testing-library/react";
2
3
  import type { ReactNode } from "react";
3
4
  import { describe, expect, it } from "vitest";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { renderHook } from "@testing-library/react";
2
3
  import type { ReactNode } from "react";
3
4
  import { beforeEach, describe, expect, it } from "vitest";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { renderHook } from "@testing-library/react";
2
3
  import type { ReactNode } from "react";
3
4
  import { describe, expect, it } from "vitest";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { renderHook } from "@testing-library/react";
2
3
  import type { ReactNode } from "react";
3
4
  import { optimism } from "thirdweb/chains";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { renderHook } from "~test/react-render.js";
3
4
  import { useConnectionManager } from "./connection-manager.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  /** biome-ignore-all lint/nursery/useUniqueElementIds: "id" is not the html attribute here (TODO: we should not use "id" as a key in the first place) */
2
3
  import { type FC, useContext } from "react";
3
4
  import { describe, expect, it, vi } from "vitest";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2
3
  import { act, renderHook } from "@testing-library/react";
3
4
  import type React from "react";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2
3
  import { act, renderHook } from "@testing-library/react";
3
4
  import type React from "react";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, it } from "vitest";
2
3
  import { render } from "../../../../../test/src/react-render.js";
3
4
  import { TEST_CLIENT } from "../../../../../test/src/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { fireEvent, render, screen, waitFor } from "@testing-library/react";
2
3
  import { beforeEach, describe, expect, it, vi } from "vitest";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2
3
  import { renderHook, waitFor } from "@testing-library/react";
3
4
  import type { ReactNode } from "react";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import {
2
3
  afterAll,
3
4
  beforeAll,
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2
3
  import type { FC } from "react";
3
4
  import { beforeEach, describe, expect, it, vi } from "vitest";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it, vi } from "vitest";
2
3
  import { render, screen, waitFor } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { CADIcon } from "../../../icons/currencies/CADIcon.js";
3
4
  import { EURIcon } from "../../../icons/currencies/EURIcon.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { beforeEach, describe, expect, it, vi } from "vitest";
2
3
  import { render, screen } from "../../../../../../test/src/react-render.js";
3
4
  import { useSocialProfiles } from "../../../../core/social/useSocialProfiles.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { beforeEach, describe, expect, it, vi } from "vitest";
2
3
  import { render, screen } from "../../../../../../test/src/react-render.js";
3
4
  import { TEST_CLIENT } from "../../../../../../test/src/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it, vi } from "vitest";
2
3
  import { render } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { userEvent } from "@testing-library/user-event";
2
3
  import { beforeEach, describe, expect, it, vi } from "vitest";
3
4
  import { TEST_ACCOUNT_A } from "~test/test-wallets.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import React from "react";
2
3
  import { beforeEach, describe, expect, it, vi } from "vitest";
3
4
  import {
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render } from "~test/react-render.js";
3
4
  import {
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { TEST_CLIENT } from "~test/test-clients.js";
3
4
  import { resolveMediaTypeFromUri } from "./useResolvedMediaType.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, waitFor } from "../../../../test/src/react-render.js";
3
4
  import { TEST_CLIENT } from "../../../../test/src/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, waitFor } from "../../../../test/src/react-render.js";
3
4
  import { TEST_CLIENT } from "../../../../test/src/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import {
2
3
  afterAll,
3
4
  afterEach,
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { TEST_CONTRACT_URI } from "~test/ipfs-uris.js";
3
4
  import { render } from "~test/react-render.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
2
3
  import { act, renderHook } from "~test/react-render.js";
3
4
  import { useClipboard } from "./useCopyClipboard.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
2
3
  import { act, renderHook } from "~test/react-render.js";
3
4
  import { useDebouncedValue } from "./useDebouncedValue.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it, vi } from "vitest";
2
3
  import { act, renderHook } from "~test/react-render.js";
3
4
  import { useShowMore } from "./useShowMore.js";
@@ -16,10 +17,15 @@ describe("useShowMore", () => {
16
17
  const observerCallback = vi.fn();
17
18
 
18
19
  const observer = new IntersectionObserver(observerCallback);
19
- vi.spyOn(window, "IntersectionObserver").mockImplementation((callback) => {
20
- observerCallback.mockImplementation(callback);
21
- return observer;
22
- });
20
+ vi.spyOn(window, "IntersectionObserver").mockImplementation(
21
+ class {
22
+ constructor(callback: IntersectionObserverCallback) {
23
+ observerCallback.mockImplementation(callback);
24
+ // biome-ignore lint/correctness/noConstructorReturn: test mock
25
+ return observer;
26
+ }
27
+ } as unknown as typeof IntersectionObserver,
28
+ );
23
29
 
24
30
  act(() => {
25
31
  result.current.lastItemRef(lastItem);
@@ -38,10 +44,15 @@ describe("useShowMore", () => {
38
44
  const observerCallback = vi.fn();
39
45
 
40
46
  const observer = new IntersectionObserver(observerCallback);
41
- vi.spyOn(window, "IntersectionObserver").mockImplementation((callback) => {
42
- observerCallback.mockImplementation(callback);
43
- return observer;
44
- });
47
+ vi.spyOn(window, "IntersectionObserver").mockImplementation(
48
+ class {
49
+ constructor(callback: IntersectionObserverCallback) {
50
+ observerCallback.mockImplementation(callback);
51
+ // biome-ignore lint/correctness/noConstructorReturn: test mock
52
+ return observer;
53
+ }
54
+ } as unknown as typeof IntersectionObserver,
55
+ );
45
56
 
46
57
  act(() => {
47
58
  result.current.lastItemRef(lastItem);
@@ -60,10 +71,15 @@ describe("useShowMore", () => {
60
71
  const observerCallback = vi.fn();
61
72
 
62
73
  const observer = new IntersectionObserver(observerCallback);
63
- vi.spyOn(window, "IntersectionObserver").mockImplementation((callback) => {
64
- observerCallback.mockImplementation(callback);
65
- return observer;
66
- });
74
+ vi.spyOn(window, "IntersectionObserver").mockImplementation(
75
+ class {
76
+ constructor(callback: IntersectionObserverCallback) {
77
+ observerCallback.mockImplementation(callback);
78
+ // biome-ignore lint/correctness/noConstructorReturn: test mock
79
+ return observer;
80
+ }
81
+ } as unknown as typeof IntersectionObserver,
82
+ );
67
83
 
68
84
  act(() => {
69
85
  result.current.lastItemRef(lastItem);
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen, waitFor } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen, waitFor } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2
3
  import { describe, expect, it } from "vitest";
3
4
  import { VITALIK_WALLET } from "~test/addresses.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen, waitFor } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, waitFor } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen, waitFor } from "~test/react-render.js";
3
4
  import { ethereum } from "../../../../../chains/chain-definitions/ethereum.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen, waitFor } from "~test/react-render.js";
3
4
  import { ethereum } from "../../../../../chains/chain-definitions/ethereum.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import {
3
4
  DOODLES_CONTRACT,
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import {
3
4
  DOODLES_CONTRACT,
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import {
3
4
  DOODLES_CONTRACT,
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { type FC, useContext } from "react";
2
3
  import { describe, expect, it, vi } from "vitest";
3
4
  import { render, renderHook, screen, waitFor } from "~test/react-render.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { ANVIL_CHAIN } from "~test/chains.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen, waitFor } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { ANVIL_CHAIN } from "~test/chains.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  /** biome-ignore-all lint/nursery/useUniqueElementIds: "id" is not a html attribute here - TODO: stop using 'id' as a prop on JSX elements */
2
3
  import { describe, expect, it } from "vitest";
3
4
  import { render, waitFor } from "~test/react-render.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  /** biome-ignore-all lint/nursery/useUniqueElementIds: FIXME: do not use "id" as a prop on JSX elements */
2
3
  import { describe, expect, it } from "vitest";
3
4
  import { render, waitFor } from "~test/react-render.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { ANVIL_CHAIN } from "~test/chains.js";
3
4
  import { TEST_CONTRACT_URI } from "~test/ipfs-uris.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { render, screen } from "~test/react-render.js";
3
4
  import { TEST_CLIENT } from "~test/test-clients.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it } from "vitest";
2
3
  import { wideModalScreenThreshold } from "../ui/ConnectWallet/constants.js";
3
4
  import { canFitWideModal } from "./canFitWideModal.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it, vi } from "vitest";
2
3
  import {
3
4
  fireEvent,
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it, vi } from "vitest";
2
3
  import { render, screen } from "../../../../../test/src/react-render.js";
3
4
  import { getCountrySelector } from "./CountrySelector.js";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { describe, expect, it, vi } from "vitest";
2
3
  import {
3
4
  fireEvent,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = "5.121.3";
1
+ export const version = "5.121.4";
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { beforeEach, describe, expect, it } from "vitest";
2
3
  import { consumeRedirectState, storeRedirectState } from "./redirect-state.js";
3
4
 
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
2
3
  import { getUrlToken } from "./get-url-token.js";
3
4
 
@@ -1,3 +1,4 @@
1
+ // @vitest-environment happy-dom
1
2
  import { beforeEach, describe, expect, it, vi } from "vitest";
2
3
  import { IframeCommunicator } from "./IframeCommunicator.js";
3
4