Skip to content

Commit ae1902c

Browse files
chore: update nightly docs (#305)
* chore: update nightly docs * bump wallet, fixes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com>
1 parent 81f73a4 commit ae1902c

File tree

7 files changed

+11274
-4253
lines changed

7 files changed

+11274
-4253
lines changed

contentlayer.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const excludeDirs = [
7878
'docs/guides/docs/nav.json',
7979
'docs/guides/docs/migration-guide/breaking-change-log/README.md',
8080
'docs/guides/docs/migration-guide/breaking-change-log/package.json',
81+
'docs/guides/docs/migration-guide/breaking-change-log/node_modules',
8182
'docs/guides/docs/migration-guide/breaking-change-log/pnpm-lock.yaml',
8283
'docs/intro/nav.json',
8384
'docs/contributing/nav.json',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@fuel-wallet/playwright-utils": "^0.13.10",
4545
"@fuel-wallet/sdk": "0.16.2-master-a0e5cbf",
4646
"@fuel-wallet/types": "^0.16.1",
47-
"@fuels/connectors": "0.1.1",
48-
"@fuels/react": "^0.19.0",
47+
"@fuels/connectors": "^0.5.0",
48+
"@fuels/react": "0.21.0",
4949
"@fuels/ts-config": "^0.15.1",
5050
"@mdx-js/mdx": "^2.3.0",
5151
"@mdx-js/react": "^2.3.0",
@@ -60,7 +60,7 @@
6060
"cookie": "^0.5.0",
6161
"dotenv": "^16.3.1",
6262
"framer-motion": "^10.16.4",
63-
"fuels": "^0.79.0",
63+
"fuels": "^0.89.1",
6464
"globby": "^13.2.2",
6565
"gray-matter": "^4.0.3",
6666
"hast-util-from-text": "^2.0.1",

pnpm-lock.yaml

Lines changed: 11264 additions & 4242 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/components.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ async function exportComponents(
377377
) {
378378
const componentsConfigFile = fs.readFileSync(configPath, 'utf8');
379379
const componentsConfig = JSON.parse(componentsConfigFile);
380+
componentsConfig.ignore.push('HStack');
380381

381382
const paths = await getMDXFilesFromFolder(docsDirectory);
382383
const components = findComponentsInMDXFiles(paths, componentsConfig);

src/components/MDXRender.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import { Box } from '@fuel-ui/react';
1+
import { Box, HStack } from '@fuel-ui/react';
22
import { runSync } from '@mdx-js/mdx';
33
import * as provider from '@mdx-js/react';
44
import dynamic from 'next/dynamic';
55
import 'plyr-react/plyr.css';
66
import { useEffect, useMemo, useState } from 'react';
77

88
import {
9-
BETA_5_EXPLORER_LINK,
10-
BETA_5_FAUCET_LINK,
11-
BETA_5_PLAYGROUND_LINK,
129
BRIDGE_LINK,
1310
EXPLORER_LINK,
1411
FAUCET_LINK,
@@ -53,6 +50,7 @@ export const mdxComponents = {
5350
ul: UL,
5451
ol: OL,
5552
hr: Divider,
53+
HStack: HStack,
5654
Box,
5755
Player,
5856
CardSection,

src/pages/_app.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { AppProps } from 'next/app';
55
import '../styles/docsearch.css';
66
import '../styles/index.css';
77

8-
import { defaultConnectors } from '@fuels/connectors';
8+
import { FuelWalletConnector, FueletWalletConnector } from '@fuels/connectors';
99
import { Provider } from '../components/Provider';
1010
import { ShowWarningProvider } from '../hooks/useShowWarning';
1111
import { VersionProvider } from '../hooks/useVersion';
@@ -16,9 +16,8 @@ export default function App({ Component, pageProps }: AppProps) {
1616
return (
1717
<QueryClientProvider client={queryClient}>
1818
<FuelProvider
19-
theme='dark'
2019
fuelConfig={{
21-
connectors: defaultConnectors({ devMode: true }),
20+
connectors: [new FuelWalletConnector(), new FueletWalletConnector()],
2221
}}
2322
>
2423
<VersionProvider>

0 commit comments

Comments
 (0)