From 50a1f90cd0814482fa7b43d8266d9669034c3cd2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 13:19:08 -0600 Subject: [PATCH] chore: update nightly docs (#260) Co-authored-by: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com> --- docs/fuels-wallet | 2 +- docs/nightly/fuels-rs | 2 +- docs/nightly/fuels-wallet | 2 +- package.json | 3 +- pnpm-lock.yaml | 60 +++++++++----------- scripts/wallet-patch-fixes/download-link.mjs | 2 +- src/config/versions.json | 2 +- src/pages/_app.tsx | 14 +++-- tests/utils/fixtures/index.ts | 2 +- 9 files changed, 44 insertions(+), 45 deletions(-) diff --git a/docs/fuels-wallet b/docs/fuels-wallet index 125c3268b..51ab1d66e 160000 --- a/docs/fuels-wallet +++ b/docs/fuels-wallet @@ -1 +1 @@ -Subproject commit 125c3268b8d1f556a240e7275cac45e464838585 +Subproject commit 51ab1d66ebebe9a8ee641b8b0677058cd3cfac45 diff --git a/docs/nightly/fuels-rs b/docs/nightly/fuels-rs index 895264c32..b5f563e90 160000 --- a/docs/nightly/fuels-rs +++ b/docs/nightly/fuels-rs @@ -1 +1 @@ -Subproject commit 895264c323ad8c85c55fed7c4f2f578a988da432 +Subproject commit b5f563e9051c3cac0edb8f18137069e870f6cb31 diff --git a/docs/nightly/fuels-wallet b/docs/nightly/fuels-wallet index 51ab1d66e..7ac8f7c2e 160000 --- a/docs/nightly/fuels-wallet +++ b/docs/nightly/fuels-wallet @@ -1 +1 @@ -Subproject commit 51ab1d66ebebe9a8ee641b8b0677058cd3cfac45 +Subproject commit 7ac8f7c2eacd4b4f25d10fc79e5125307bd91aeb diff --git a/package.json b/package.json index 3707c2a46..a5bb16fee 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,9 @@ "@fuel-ui/react": "0.21.0-pr-305-04b8434", "@fuel-wallet/playwright-utils": "^0.13.10", "@fuel-wallet/sdk": "0.16.2-master-a0e5cbf", + "@fuel-wallet/types": "^0.16.1", "@fuels/connectors": "0.1.1", - "@fuels/react": "^0.16.0", + "@fuels/react": "^0.19.0", "@fuels/ts-config": "^0.15.1", "@mdx-js/mdx": "^2.3.0", "@mdx-js/react": "^2.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 21cafa5b7..710ad62af 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,12 +49,15 @@ importers: '@fuel-wallet/sdk': specifier: 0.16.2-master-a0e5cbf version: 0.16.2-master-a0e5cbf(dexie@3.2.4)(fuels@0.79.0(dexie@3.2.4)) + '@fuel-wallet/types': + specifier: ^0.16.1 + version: 0.16.1(dexie@3.2.4)(fuels@0.79.0(dexie@3.2.4)) '@fuels/connectors': specifier: 0.1.1 version: 0.1.1(fuels@0.79.0(dexie@3.2.4)) '@fuels/react': - specifier: ^0.16.0 - version: 0.16.0(@types/react-dom@18.2.7)(@types/react@18.2.21)(fuels@0.79.0(dexie@3.2.4))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ^0.19.0 + version: 0.19.0(@tanstack/react-query@4.33.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react-dom@18.2.7)(@types/react@18.2.21)(fuels@0.79.0(dexie@3.2.4))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@fuels/ts-config': specifier: ^0.15.1 version: 0.15.1(typescript@5.2.2) @@ -879,6 +882,11 @@ packages: peerDependencies: fuels: '>=0.75.0' + '@fuel-wallet/types@0.16.1': + resolution: {integrity: sha512-x90HaNvjbyBfFF/ZWeoeVdfiJj3wdFkk4IaneQBAB5tVAoF0QzXStWJHSbGnsPm38xzlme+Oo0k+y11OnU3MUw==} + peerDependencies: + fuels: '>=0.73.0' + '@fuel-wallet/types@0.16.2-master-a0e5cbf': resolution: {integrity: sha512-/mxfIajLR1mdfJsLk+qZVHlPLU/ZrqDFLRINb2f24N+7SFTaNpy01t46138IZYU2RY0Iip1GwuKW6Qel8GbXsA==} peerDependencies: @@ -895,10 +903,11 @@ packages: peerDependencies: fuels: '>=0.77.0' - '@fuels/react@0.16.0': - resolution: {integrity: sha512-+VE2yczITKhAW9343f9MrOV29YSRpyS/oRa46A9yCY/Ks/BtG1XwbC2lCs5amGHRDmBB35kQcuUL9cvL36+gdA==} + '@fuels/react@0.19.0': + resolution: {integrity: sha512-Cq+fnCHUSIi7jiFyC0yPnWL+sE4cYfSbftr1KBvQNO12HMVzm2BE9F9veGOres3gGXvKOH7kPELtlSn5rHxF/w==} peerDependencies: - fuels: '>=0.74.0' + '@tanstack/react-query': '>=5.0.0' + fuels: '>=0.84.0' react: ^18.2.0 '@fuels/ts-config@0.15.1': @@ -2228,9 +2237,6 @@ packages: '@tanstack/query-core@4.33.0': resolution: {integrity: sha512-qYu73ptvnzRh6se2nyBIDHGBQvPY1XXl3yR769B7B6mIDD7s+EZhdlWHQ67JI6UOTFRaI7wupnTnwJ3gE0Mr/g==} - '@tanstack/query-core@4.36.1': - resolution: {integrity: sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==} - '@tanstack/react-query@4.33.0': resolution: {integrity: sha512-97nGbmDK0/m0B86BdiXzx3EW9RcDYKpnyL2+WwyuLHEgpfThYAnXFaMMmnTDuAO4bQJXEhflumIEUfKmP7ESGA==} peerDependencies: @@ -2243,18 +2249,6 @@ packages: react-native: optional: true - '@tanstack/react-query@4.36.1': - resolution: {integrity: sha512-y7ySVHFyyQblPl3J3eQBWpXZkliroki3ARnBKsdJchlgt7yJLRDUcf4B8soufgiYt3pEQIkBWBx1N9/ZPIeUWw==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-native: '*' - peerDependenciesMeta: - react-dom: - optional: true - react-native: - optional: true - '@testing-library/dom@9.3.1': resolution: {integrity: sha512-0DGPd9AR3+iDTjGoMpxIkAsUihHZ3Ai6CneU6bRRrffXMgzCdlNk43jTrD2/5LT6CBb3MWTP8v510JzYtahD2w==} engines: {node: '>=14'} @@ -6391,6 +6385,15 @@ snapshots: transitivePeerDependencies: - dexie + '@fuel-wallet/types@0.16.1(dexie@3.2.4)(fuels@0.79.0(dexie@3.2.4))': + dependencies: + '@fuels/assets': 0.1.5 + dexie-observable: 4.0.1-beta.13(dexie@3.2.4) + fuels: 0.79.0(dexie@3.2.4) + json-rpc-2.0: 1.7.0 + transitivePeerDependencies: + - dexie + '@fuel-wallet/types@0.16.2-master-a0e5cbf(dexie@3.2.4)(fuels@0.79.0(dexie@3.2.4))': dependencies: '@fuels/assets': 0.15.3 @@ -6409,10 +6412,10 @@ snapshots: fuels: 0.79.0(dexie@3.2.4) json-rpc-2.0: 1.7.0 - '@fuels/react@0.16.0(@types/react-dom@18.2.7)(@types/react@18.2.21)(fuels@0.79.0(dexie@3.2.4))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@fuels/react@0.19.0(@tanstack/react-query@4.33.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react-dom@18.2.7)(@types/react@18.2.21)(fuels@0.79.0(dexie@3.2.4))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@radix-ui/react-dialog': 1.0.5(@types/react-dom@18.2.7)(@types/react@18.2.21)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@tanstack/react-query': 4.36.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@tanstack/react-query': 4.33.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) events: 3.3.0 fuels: 0.79.0(dexie@3.2.4) react: 18.2.0 @@ -6420,7 +6423,6 @@ snapshots: - '@types/react' - '@types/react-dom' - react-dom - - react-native '@fuels/ts-config@0.15.1(typescript@5.2.2)': dependencies: @@ -7016,7 +7018,7 @@ snapshots: '@radix-ui/react-dialog@1.0.5(@types/react-dom@18.2.7)(@types/react@18.2.21)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.23.9 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.21)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.21)(react@18.2.0) @@ -8265,8 +8267,6 @@ snapshots: '@tanstack/query-core@4.33.0': {} - '@tanstack/query-core@4.36.1': {} - '@tanstack/react-query@4.33.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@tanstack/query-core': 4.33.0 @@ -8275,14 +8275,6 @@ snapshots: optionalDependencies: react-dom: 18.2.0(react@18.2.0) - '@tanstack/react-query@4.36.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': - dependencies: - '@tanstack/query-core': 4.36.1 - react: 18.2.0 - use-sync-external-store: 1.2.0(react@18.2.0) - optionalDependencies: - react-dom: 18.2.0(react@18.2.0) - '@testing-library/dom@9.3.1': dependencies: '@babel/code-frame': 7.22.13 diff --git a/scripts/wallet-patch-fixes/download-link.mjs b/scripts/wallet-patch-fixes/download-link.mjs index 70d2d9c4f..4a38d5828 100644 --- a/scripts/wallet-patch-fixes/download-link.mjs +++ b/scripts/wallet-patch-fixes/download-link.mjs @@ -34,7 +34,7 @@ function handleConstantsFile(filePath, version) { if (start !== undefined && end !== undefined) { const downloadLink = - 'https://wallet.fuel.network/app/fuel-wallet-0.16.1.zip'; + 'https://github.com/FuelLabs/fuels-wallet/releases/download/v0.16.6/fuel-wallet-0.16.6.zip'; const modifiedContent = `export const DOWNLOAD_LINK = '${downloadLink}';`; lines.splice(start, end - start + 1, modifiedContent); const newFileContent = lines.join(EOL); diff --git a/src/config/versions.json b/src/config/versions.json index e79017c1a..c183eb6c0 100644 --- a/src/config/versions.json +++ b/src/config/versions.json @@ -3,6 +3,6 @@ "forc": "0.49.3", "rust": "0.55.0", "ts": "0.82.0", - "wallet": "0.16.2" + "wallet": "0.16.6" } } diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index c1b48cce4..a2dc381ca 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -5,6 +5,7 @@ import type { AppProps } from 'next/app'; import '../styles/docsearch.css'; import '../styles/index.css'; +import { defaultConnectors } from '@fuels/connectors'; import { Provider } from '../components/Provider'; import { ShowWarningProvider } from '../hooks/useShowWarning'; import { VersionProvider } from '../hooks/useVersion'; @@ -13,8 +14,13 @@ const queryClient = new QueryClient(); export default function App({ Component, pageProps }: AppProps) { return ( - - + + @@ -30,7 +36,7 @@ export default function App({ Component, pageProps }: AppProps) { - - + + ); } diff --git a/tests/utils/fixtures/index.ts b/tests/utils/fixtures/index.ts index 54e2e1410..cf9c11e4f 100644 --- a/tests/utils/fixtures/index.ts +++ b/tests/utils/fixtures/index.ts @@ -13,7 +13,7 @@ export const test = base.extend<{ // biome-ignore lint/correctness/noEmptyPattern: context: async ({}, use) => { // download fuel wallet - const fuelPathExtension = await downloadFuel('0.16.1'); + const fuelPathExtension = await downloadFuel('0.16.6'); // prepare browser args const browserArgs = [ `--disable-extensions-except=${fuelPathExtension}`,