From 45b6263e77344a066305b33ce543a78bc7b4107f Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 17 Oct 2023 23:17:59 +0530 Subject: [PATCH 1/8] [react] typedoc generation --- .gitignore | 4 +- packages/react-core/src/index.ts | 2 +- .../components/SendFunds/TokenSelector.tsx | 9 +-- .../react-native/src/evm/sdk/ThirdwebSDK.ts | 7 +-- packages/react/package.json | 5 +- packages/react/src/evm/index.ts | 5 +- packages/react/typedoc.js | 26 +++++++++ pnpm-lock.yaml | 56 +++++++++++++++++++ 8 files changed, 99 insertions(+), 15 deletions(-) create mode 100644 packages/react/typedoc.js diff --git a/.gitignore b/.gitignore index 828b274f586..3ed551fbaf5 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,6 @@ playwright-report/ .env/ # Artifacts -packages/cli/artifacts/ \ No newline at end of file +packages/cli/artifacts/ + +typedoc \ No newline at end of file diff --git a/packages/react-core/src/index.ts b/packages/react-core/src/index.ts index 404a3199a5d..2be7a08b25f 100644 --- a/packages/react-core/src/index.ts +++ b/packages/react-core/src/index.ts @@ -2,4 +2,4 @@ export * from "./evm"; // export types from thirdweb-dev/sdk -export * from "@thirdweb-dev/sdk"; +export type * from "@thirdweb-dev/sdk"; diff --git a/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx b/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx index 70e246c0952..6b5149102cd 100644 --- a/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx +++ b/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx @@ -1,9 +1,6 @@ -import { - NATIVE_TOKEN_ADDRESS, - useBalance, - useChain, - useChainId, -} from "@thirdweb-dev/react-core"; +import { useBalance, useChain, useChainId } from "@thirdweb-dev/react-core"; + +import { NATIVE_TOKEN_ADDRESS } from "@thirdweb-dev/sdk"; import React, { useState } from "react"; import { TokenInfo, SupportedTokens } from "./defaultTokens"; import { utils } from "ethers"; diff --git a/packages/react-native/src/evm/sdk/ThirdwebSDK.ts b/packages/react-native/src/evm/sdk/ThirdwebSDK.ts index f20c5b2381c..2193e924373 100644 --- a/packages/react-native/src/evm/sdk/ThirdwebSDK.ts +++ b/packages/react-native/src/evm/sdk/ThirdwebSDK.ts @@ -1,8 +1,5 @@ -import { - NetworkInput, - SDKOptions, - ThirdwebSDK as ThirdwebSDKCore, -} from "@thirdweb-dev/react-core"; +import { NetworkInput, SDKOptions } from "@thirdweb-dev/react-core"; +import { ThirdwebSDK as ThirdwebSDKCore } from "@thirdweb-dev/sdk"; import { IThirdwebStorage } from "@thirdweb-dev/storage"; import { ThirdwebStorage } from "../../core/storage/storage"; diff --git a/packages/react/package.json b/packages/react/package.json index d75c1b66393..574b283f1f0 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -67,7 +67,8 @@ "generate-docs:evm": "api-extractor run --local --config ./config/api-extractor-evm.json && api-documenter markdown -i ./temp -o ./docs/evm && rm -rf ./temp-evm && mv ./temp ./temp-evm", "generate-snippets": "node ./scripts/generate-snippets-evm.mjs && node ./scripts/generate-feature-snippets-evm.mjs", "build": "tsc && preconstruct build", - "push": "yalc push" + "push": "yalc push", + "typedoc": "rimraf typedoc && node typedoc.js" }, "sideEffects:": false, "devDependencies": { @@ -102,7 +103,9 @@ "prettier": "^3.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "rimraf": "^3.0.2", "stream": "npm:stream-browserify@^3.0.0", + "typedoc": "^0.25.2", "typescript": "^5.1.6" }, "dependencies": { diff --git a/packages/react/src/evm/index.ts b/packages/react/src/evm/index.ts index 826534e8708..dc378c26847 100644 --- a/packages/react/src/evm/index.ts +++ b/packages/react/src/evm/index.ts @@ -6,7 +6,10 @@ export { export { useSafe } from "./connectors/gnosis"; export { useMagic } from "./connectors/magic"; -export { ConnectWallet } from "../wallet/ConnectWallet/ConnectWallet"; +export { + ConnectWallet, + type ConnectWalletProps, +} from "../wallet/ConnectWallet/ConnectWallet"; export { ConnectModalInline } from "../wallet/ConnectWallet/Modal/ConnectModalInline"; export { NetworkSelector } from "../wallet/ConnectWallet/NetworkSelector"; diff --git a/packages/react/typedoc.js b/packages/react/typedoc.js new file mode 100644 index 00000000000..6d2d0e3e136 --- /dev/null +++ b/packages/react/typedoc.js @@ -0,0 +1,26 @@ +const TypeDoc = require("typedoc"); + +async function main() { + // Application.bootstrap also exists, which will not load plugins + // Also accepts an array of option readers if you want to disable + // TypeDoc's tsconfig.json/package.json/typedoc.json option readers + const app = await TypeDoc.Application.bootstrapWithPlugins({ + entryPoints: ["src/index.ts"], + excludeInternal: true, + externalPattern: ["**/node_modules/**"], + }); + + const project = await app.convert(); + + if (project) { + // Project may not have converted correctly + const outputDir = "typedoc/"; + + // Rendered docs + await app.generateDocs(project, outputDir); + // Alternatively generate JSON output + await app.generateJson(project, outputDir + "/documentation.json"); + } +} + +main(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index accdb1f722e..ed9ff86a9be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -618,9 +618,15 @@ importers: react-dom: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) + rimraf: + specifier: ^3.0.2 + version: 3.0.2 stream: specifier: npm:stream-browserify@^3.0.0 version: /stream-browserify@3.0.0 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -13815,6 +13821,10 @@ packages: resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} engines: {node: '>=12'} + /ansi-sequence-parser@1.1.1: + resolution: {integrity: sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==} + dev: true + /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -21998,6 +22008,10 @@ packages: engines: {node: '>=6'} hasBin: true + /jsonc-parser@3.2.0: + resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} + dev: true + /jsonfile@2.4.0: resolution: {integrity: sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==} optionalDependencies: @@ -22479,6 +22493,10 @@ packages: resolution: {integrity: sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==} dev: true + /lunr@2.3.9: + resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==} + dev: true + /magic-sdk@13.6.2: resolution: {integrity: sha512-ZjIZM2gqaxxOR+ZAyKVw50akjfdyo0q5hZzrCMiqyCqh4BXulU7yqHgUa/5/nJ+0/4xBgUejoOcDEm+UdmzLjA==} dependencies: @@ -23199,6 +23217,13 @@ packages: dependencies: brace-expansion: 2.0.1 + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -27166,6 +27191,15 @@ packages: /shell-quote@1.8.0: resolution: {integrity: sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ==} + /shiki@0.14.5: + resolution: {integrity: sha512-1gCAYOcmCFONmErGTrS1fjzJLA7MGZmKzrBNX7apqSwhyITJg2O102uFzXUeBxNnEkDA9vHIKLyeKq0V083vIw==} + dependencies: + ansi-sequence-parser: 1.1.1 + jsonc-parser: 3.2.0 + vscode-oniguruma: 1.7.0 + vscode-textmate: 8.0.0 + dev: true + /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: @@ -28618,6 +28652,20 @@ packages: dependencies: is-typedarray: 1.0.0 + /typedoc@0.25.2(typescript@5.1.6): + resolution: {integrity: sha512-286F7BeATBiWe/qC4PCOCKlSTwfnsLbC/4cZ68oGBbvAqb9vV33quEOXx7q176OXotD+JdEerdQ1OZGJ818lnA==} + engines: {node: '>= 16'} + hasBin: true + peerDependencies: + typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x + dependencies: + lunr: 2.3.9 + marked: 4.3.0 + minimatch: 9.0.3 + shiki: 0.14.5 + typescript: 5.1.6 + dev: true + /typescript@5.0.4: resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} engines: {node: '>=12.20'} @@ -29149,6 +29197,14 @@ packages: resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==} dev: true + /vscode-oniguruma@1.7.0: + resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} + dev: true + + /vscode-textmate@8.0.0: + resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} + dev: true + /w3c-hr-time@1.0.2: resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} deprecated: Use your platform's native performance.now() and performance.timeOrigin. From 8217e97dda6966b93a55cf26fa2fbefa268223f1 Mon Sep 17 00:00:00 2001 From: ikethirdweb Date: Tue, 17 Oct 2023 18:58:18 -0400 Subject: [PATCH 2/8] Wallets, RN, React, SDK --- .../react-core/src/core/constants/runtime.ts | 1 + packages/react-native/package.json | 5 ++- packages/react-native/scripts/typedoc.js | 38 +++++++++++++++++++ .../src/evm/components/ConnectWallet.tsx | 4 +- packages/react-native/src/evm/index.ts | 5 ++- .../react-native/src/evm/utils/addresses.ts | 11 ++++++ packages/react/src/evm/constants/runtime.ts | 1 + packages/react/typedoc.js | 15 +++++++- packages/sdk/package.json | 5 ++- .../nft-collection.ts | 8 ++-- .../prebuilt-implementations/pack.ts | 6 +-- .../core/classes/erc-721-batch-mintable.ts | 2 +- packages/sdk/src/evm/core/classes/erc-721.ts | 4 +- packages/sdk/typedoc.js | 30 +++++++++++++++ packages/wallets/package.json | 5 ++- packages/wallets/typedoc.js | 29 ++++++++++++++ pnpm-lock.yaml | 18 +++++++++ 17 files changed, 169 insertions(+), 18 deletions(-) create mode 100644 packages/react-native/scripts/typedoc.js create mode 100644 packages/sdk/typedoc.js create mode 100644 packages/wallets/typedoc.js diff --git a/packages/react-core/src/core/constants/runtime.ts b/packages/react-core/src/core/constants/runtime.ts index 12578d26468..604f1d06e02 100644 --- a/packages/react-core/src/core/constants/runtime.ts +++ b/packages/react-core/src/core/constants/runtime.ts @@ -1,2 +1,3 @@ +/** @internal */ // eslint-disable-next-line turbo/no-undeclared-env-vars, better-tree-shaking/no-top-level-side-effects export const __DEV__ = process.env.NODE_ENV !== "production"; diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 9d4d58eeb4f..8d00abb3801 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -16,7 +16,8 @@ "fix": "eslint src/ --fix", "clean": "rm -rf dist/", "build": "tsc", - "push": "yalc push" + "push": "yalc push", + "typedoc": "rimraf typedoc && node ./scripts/typedoc.js" }, "keywords": [ "react-native", @@ -79,6 +80,8 @@ "react-native-mmkv": "2.5.1", "react-native-safe-area-context": "4.5.3", "react-native-webview": "12.1.0", + "rimraf": "^3.0.2", + "typedoc": "^0.25.2", "typescript": "^5.1.6" }, "optionalDependencies": { diff --git a/packages/react-native/scripts/typedoc.js b/packages/react-native/scripts/typedoc.js new file mode 100644 index 00000000000..378bf065054 --- /dev/null +++ b/packages/react-native/scripts/typedoc.js @@ -0,0 +1,38 @@ +// eslint-disable-next-line @typescript-eslint/no-var-requires +const TypeDoc = require("typedoc"); + +async function main() { + // Application.bootstrap also exists, which will not load plugins + // Also accepts an array of option readers if you want to disable + // TypeDoc's tsconfig.json/package.json/typedoc.json option readers + const app = await TypeDoc.Application.bootstrapWithPlugins({ + entryPoints: ["src/index.ts"], + excludeInternal: true, + externalPattern: [ + "**/node_modules/**", + "**/packages/sdk/**", + "**/packages/wallets/**", + "**/packages/chains/**", + ], + exclude: [ + "**/node_modules/**", + "**/packages/sdk/**", + "**/packages/wallets/**", + "**/packages/chains/**", + ], + }); + + const project = await app.convert(); + + if (project) { + // Project may not have converted correctly + const outputDir = "typedoc/"; + + // Rendered docs + await app.generateDocs(project, outputDir); + // Alternatively generate JSON output + await app.generateJson(project, outputDir + "/documentation.json"); + } +} + +main(); diff --git a/packages/react-native/src/evm/components/ConnectWallet.tsx b/packages/react-native/src/evm/components/ConnectWallet.tsx index 15909e3214b..c78f2497223 100644 --- a/packages/react-native/src/evm/components/ConnectWallet.tsx +++ b/packages/react-native/src/evm/components/ConnectWallet.tsx @@ -67,7 +67,7 @@ export type ConnectWalletProps = { displayBalanceToken?: Record; } & ConnectWalletButtonProps; -export const ConnectWallet = ({ +export const ConnectWallet: React.FC = ({ detailsButton, theme, buttonTitle, @@ -80,7 +80,7 @@ export const ConnectWallet = ({ termsOfServiceUrl, privacyPolicyUrl, supportedTokens, -}: ConnectWalletProps) => { +}) => { const fadeAnim = useRef(new Animated.Value(0)).current; const address = useAddress(); const isNetworkMismatch = useNetworkMismatch(); diff --git a/packages/react-native/src/evm/index.ts b/packages/react-native/src/evm/index.ts index ed914c8a4c7..50d87e177f1 100644 --- a/packages/react-native/src/evm/index.ts +++ b/packages/react-native/src/evm/index.ts @@ -31,7 +31,10 @@ export { useMetaMaskWallet } from "./wallets/hooks/useMetaMaskWallet"; export { useRainbowWallet } from "./wallets/hooks/useRainbowWallet"; export { useTrustWallet } from "./wallets/hooks/useTrustWallet"; -export { ConnectWallet } from "./components/ConnectWallet"; +export { + ConnectWallet, + type ConnectWalletProps, +} from "./components/ConnectWallet"; export { Web3Button } from "./components/Web3Button"; // utilities diff --git a/packages/react-native/src/evm/utils/addresses.ts b/packages/react-native/src/evm/utils/addresses.ts index ae583b313a5..61fb436fc28 100644 --- a/packages/react-native/src/evm/utils/addresses.ts +++ b/packages/react-native/src/evm/utils/addresses.ts @@ -17,6 +17,17 @@ export function shortenWalletAddress(str?: string, extraShort = true) { )}`; } +/** + * This function shortens an address if it is a valid EVM address. + * + * @param address The address to shorten + * @param extraShort If true, show the first 4 and last 3 characters + * @returns The shortened address + * @example + * ```ts + * const address = shortenIfAddress("0x1234567890123456789012345678901234567890", true); // result will be "0x1234...890" + * ``` + */ export function shortenIfAddress(address?: string, extraShort?: true): string { if (!address) { return ""; diff --git a/packages/react/src/evm/constants/runtime.ts b/packages/react/src/evm/constants/runtime.ts index 12578d26468..604f1d06e02 100644 --- a/packages/react/src/evm/constants/runtime.ts +++ b/packages/react/src/evm/constants/runtime.ts @@ -1,2 +1,3 @@ +/** @internal */ // eslint-disable-next-line turbo/no-undeclared-env-vars, better-tree-shaking/no-top-level-side-effects export const __DEV__ = process.env.NODE_ENV !== "production"; diff --git a/packages/react/typedoc.js b/packages/react/typedoc.js index 6d2d0e3e136..21fd9a7f1f4 100644 --- a/packages/react/typedoc.js +++ b/packages/react/typedoc.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line @typescript-eslint/no-var-requires, better-tree-shaking/no-top-level-side-effects const TypeDoc = require("typedoc"); async function main() { @@ -7,7 +8,18 @@ async function main() { const app = await TypeDoc.Application.bootstrapWithPlugins({ entryPoints: ["src/index.ts"], excludeInternal: true, - externalPattern: ["**/node_modules/**"], + externalPattern: [ + "**/node_modules/**", + "**/packages/sdk/**", + "**/packages/wallets/**", + "**/packages/chains/**", + ], + exclude: [ + "**/node_modules/**", + "**/packages/sdk/**", + "**/packages/wallets/**", + "**/packages/chains/**", + ], }); const project = await app.convert(); @@ -23,4 +35,5 @@ async function main() { } } +// eslint-disable-next-line better-tree-shaking/no-top-level-side-effects main(); diff --git a/packages/sdk/package.json b/packages/sdk/package.json index cddb4aa31e9..57f3b34cf3d 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -71,7 +71,8 @@ "test:all": "SWC_NODE_PROJECT=./tsconfig.test.json nyc --reporter lcovonly --report-dir ./coverage/evm mocha --config './test/evm/.mocharc.json' --timeout 90000 --parallel './test/evm/**/*.test.ts'", "test": "make test-evm", "test:single": "SWC_NODE_PROJECT=./tsconfig.test.json mocha --config './test/evm/.mocharc.json' --timeout 90000", - "push": "yalc push" + "push": "yalc push", + "typedoc": "rimraf typedoc && node typedoc.js" }, "devDependencies": { "@aws-sdk/client-secrets-manager": "^3.378.0", @@ -110,6 +111,8 @@ "mocha": "^10.2.0", "nyc": "^15.1.0", "prettier": "^3.0.0", + "rimraf": "^3.0.2", + "typedoc": "^0.25.2", "typescript": "^5.1.6", "zksync-web3": "^0.14.3" }, diff --git a/packages/sdk/src/evm/contracts/prebuilt-implementations/nft-collection.ts b/packages/sdk/src/evm/contracts/prebuilt-implementations/nft-collection.ts index b254442d82c..a215cf9a07c 100644 --- a/packages/sdk/src/evm/contracts/prebuilt-implementations/nft-collection.ts +++ b/packages/sdk/src/evm/contracts/prebuilt-implementations/nft-collection.ts @@ -184,10 +184,10 @@ export class NFTCollection extends StandardErc721 { /** * Mint a unique NFT * - * @remarks Mint a unique NFT to a specified wallet. + * @remarks Mint a unique NFT to a specified wallet. * * @example - * ```javascript* + * ```typescript * // Custom metadata of the NFT, note that you can fully customize this metadata with other properties. * const metadata = { * name: "Cool NFT", @@ -262,7 +262,7 @@ export class NFTCollection extends StandardErc721 { * @remarks Mint many unique NFTs at once to the connected wallet * * @example - * ```javascript* + * ```typescript * // Custom metadata of the NFTs you want to mint. * const metadatas = [{ * name: "Cool NFT #1", @@ -294,7 +294,7 @@ export class NFTCollection extends StandardErc721 { * @remarks Mint many unique NFTs at once to a specified wallet. * * @example - * ```javascript + * ```typescript * // Address of the wallet you want to mint the NFT to * const walletAddress = "{{wallet_address}}"; * diff --git a/packages/sdk/src/evm/contracts/prebuilt-implementations/pack.ts b/packages/sdk/src/evm/contracts/prebuilt-implementations/pack.ts index 1301ea6b175..00a0f91c94e 100644 --- a/packages/sdk/src/evm/contracts/prebuilt-implementations/pack.ts +++ b/packages/sdk/src/evm/contracts/prebuilt-implementations/pack.ts @@ -342,8 +342,7 @@ export class Pack extends StandardErc1155 { /** * Create Pack - * @remarks Create a new pack with the given metadata and rewards and mint it to the connected wallet. - * @remarks See {@link Pack.createTo} + * @remarks Create a new pack with the given metadata and rewards and mint it to the connected wallet. See {@link Pack.createTo} * * @param metadataWithRewards - the metadata and rewards to include in the pack * @example @@ -396,8 +395,7 @@ export class Pack extends StandardErc1155 { /** * Add Pack Contents - * @remarks Add contents to an existing pack. - * @remarks See {@link Pack.addPackContents} + * @remarks Add contents to an existing pack. See {@link Pack.addPackContents} * * @param packId - token Id of the pack to add contents to * @param packContents - the rewards to include in the pack diff --git a/packages/sdk/src/evm/core/classes/erc-721-batch-mintable.ts b/packages/sdk/src/evm/core/classes/erc-721-batch-mintable.ts index 702d4913f49..fc1fb4671a0 100644 --- a/packages/sdk/src/evm/core/classes/erc-721-batch-mintable.ts +++ b/packages/sdk/src/evm/core/classes/erc-721-batch-mintable.ts @@ -47,7 +47,7 @@ export class Erc721BatchMintable implements DetectableFeature { * @remarks Mint many unique NFTs at once to a specified wallet. * * @example - * ```javascript + * ```typescript * // Address of the wallet you want to mint the NFT to * const walletAddress = "{{wallet_address}}"; * diff --git a/packages/sdk/src/evm/core/classes/erc-721.ts b/packages/sdk/src/evm/core/classes/erc-721.ts index 4a7996d95e8..40e619fafce 100644 --- a/packages/sdk/src/evm/core/classes/erc-721.ts +++ b/packages/sdk/src/evm/core/classes/erc-721.ts @@ -562,7 +562,7 @@ export class Erc721< * @remarks Mint many unique NFTs at once to the connected wallet * * @example - * ```javascript* + * ```typescript * // Custom metadata of the NFTs you want to mint. * const metadatas = [{ * name: "Cool NFT #1", @@ -596,7 +596,7 @@ export class Erc721< * @remarks Mint many unique NFTs at once to a specified wallet. * * @example - * ```javascript + * ```typescript * // Address of the wallet you want to mint the NFT to * const walletAddress = "{{wallet_address}}"; * diff --git a/packages/sdk/typedoc.js b/packages/sdk/typedoc.js new file mode 100644 index 00000000000..8e9600f1ab8 --- /dev/null +++ b/packages/sdk/typedoc.js @@ -0,0 +1,30 @@ +// eslint-disable-next-line @typescript-eslint/no-var-requires, better-tree-shaking/no-top-level-side-effects +const TypeDoc = require("typedoc"); + +async function main() { + // Application.bootstrap also exists, which will not load plugins + // Also accepts an array of option readers if you want to disable + // TypeDoc's tsconfig.json/package.json/typedoc.json option readers + const app = await TypeDoc.Application.bootstrapWithPlugins({ + entryPoints: ["src/index.ts"], + excludeInternal: true, + externalPattern: ["**/node_modules/**"], + exclude: ["**/node_modules/**"], + pretty: false, + }); + + const project = await app.convert(); + + if (project) { + // Project may not have converted correctly + const outputDir = "typedoc/"; + + // Rendered docs + await app.generateDocs(project, outputDir); + // Alternatively generate JSON output + await app.generateJson(project, outputDir + "/documentation.json"); + } +} + +// eslint-disable-next-line better-tree-shaking/no-top-level-side-effects +main(); diff --git a/packages/wallets/package.json b/packages/wallets/package.json index 47a3a59991b..99824f0f3cb 100644 --- a/packages/wallets/package.json +++ b/packages/wallets/package.json @@ -444,6 +444,8 @@ "ethers-aws-kms-signer": "^1.3.2", "ethers-gcp-kms-signer": "^1.1.6", "tweetnacl": "^1.0.3", + "rimraf": "^3.0.2", + "typedoc": "^0.25.2", "typescript": "^5.1.6" }, "scripts": { @@ -453,6 +455,7 @@ "clean": "rm -rf dist/", "build": "tsc && cross-env THIRDWEB_EWS_SDK_VERSION=$npm_package_version preconstruct build", "preconstruct:fix": "preconstruct fix", - "push": "yalc push" + "push": "yalc push", + "typedoc": "rimraf typedoc && node typedoc.js" } } diff --git a/packages/wallets/typedoc.js b/packages/wallets/typedoc.js new file mode 100644 index 00000000000..376c4aedcc2 --- /dev/null +++ b/packages/wallets/typedoc.js @@ -0,0 +1,29 @@ +// eslint-disable-next-line @typescript-eslint/no-var-requires, better-tree-shaking/no-top-level-side-effects +const TypeDoc = require("typedoc"); + +async function main() { + // Application.bootstrap also exists, which will not load plugins + // Also accepts an array of option readers if you want to disable + // TypeDoc's tsconfig.json/package.json/typedoc.json option readers + const app = await TypeDoc.Application.bootstrapWithPlugins({ + entryPoints: ["src/index.ts"], + excludeInternal: true, + externalPattern: ["**/node_modules/**"], + exclude: ["**/node_modules/**"], + }); + + const project = await app.convert(); + + if (project) { + // Project may not have converted correctly + const outputDir = "typedoc/"; + + // Rendered docs + await app.generateDocs(project, outputDir); + // Alternatively generate JSON output + await app.generateJson(project, outputDir + "/documentation.json"); + } +} + +// eslint-disable-next-line better-tree-shaking/no-top-level-side-effects +main(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed9ff86a9be..7ba69add4c5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -921,6 +921,12 @@ importers: react-native-mmkv: specifier: 2.5.1 version: 2.5.1(react-native@0.71.11)(react@18.2.0) + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -1133,6 +1139,12 @@ importers: prettier: specifier: ^3.0.0 version: 3.0.0 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -1451,9 +1463,15 @@ importers: ethers-gcp-kms-signer: specifier: ^1.1.6 version: 1.1.6 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 tweetnacl: specifier: ^1.0.3 version: 1.0.3 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 From bd5237c4241d0b6cba36d9fa1661ad850b1e4710 Mon Sep 17 00:00:00 2001 From: ikethirdweb Date: Wed, 18 Oct 2023 11:02:33 -0400 Subject: [PATCH 3/8] Added typedoc to the storage package --- packages/storage/package.json | 5 ++++- packages/storage/typedoc.js | 28 ++++++++++++++++++++++++++++ pnpm-lock.yaml | 6 ++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 packages/storage/typedoc.js diff --git a/packages/storage/package.json b/packages/storage/package.json index 00c07d85498..a4b7c5285c2 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -30,7 +30,8 @@ "test:all": "NODE_ENV=test SWC_NODE_PROJECT=./tsconfig.test.json mocha --timeout 30000 --parallel './test/**/*.test.ts'", "test": "pnpm test:all", "test:single": "NODE_ENV=test SWC_NODE_PROJECT=./tsconfig.test.json mocha --timeout 30000", - "push": "yalc push" + "push": "yalc push", + "typedoc": "rimraf typedoc && node typedoc.js" }, "files": [ "dist/" @@ -61,6 +62,8 @@ "eslint-config-thirdweb": "workspace:*", "esm": "^3.2.25", "mocha": "^10.2.0", + "rimraf": "^3.0.2", + "typedoc": "^0.25.2", "typescript": "^5.1.6" }, "dependencies": { diff --git a/packages/storage/typedoc.js b/packages/storage/typedoc.js new file mode 100644 index 00000000000..c190a165be1 --- /dev/null +++ b/packages/storage/typedoc.js @@ -0,0 +1,28 @@ +// eslint-disable-next-line @typescript-eslint/no-var-requires +const TypeDoc = require("typedoc"); + +async function main() { + // Application.bootstrap also exists, which will not load plugins + // Also accepts an array of option readers if you want to disable + // TypeDoc's tsconfig.json/package.json/typedoc.json option readers + const app = await TypeDoc.Application.bootstrapWithPlugins({ + entryPoints: ["src/index.ts"], + excludeInternal: true, + externalPattern: ["**/node_modules/**"], + exclude: ["**/node_modules/**"], + }); + + const project = await app.convert(); + + if (project) { + // Project may not have converted correctly + const outputDir = "typedoc/"; + + // Rendered docs + await app.generateDocs(project, outputDir); + // Alternatively generate JSON output + await app.generateJson(project, outputDir + "/documentation.json"); + } +} + +main(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7ba69add4c5..3fb5ace5ebc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1273,6 +1273,12 @@ importers: mocha: specifier: ^10.2.0 version: 10.2.0 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 From 850d27556aacb2ff96d5c29ec28cb4e31e66ec5f Mon Sep 17 00:00:00 2001 From: ikethirdweb Date: Wed, 18 Oct 2023 14:58:56 -0400 Subject: [PATCH 4/8] fix react-core --- packages/react-core/config/api-extractor-evm.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-core/config/api-extractor-evm.json b/packages/react-core/config/api-extractor-evm.json index 376b8faa148..a70f49a2e83 100644 --- a/packages/react-core/config/api-extractor-evm.json +++ b/packages/react-core/config/api-extractor-evm.json @@ -109,7 +109,7 @@ /** * (REQUIRED) Whether to generate an API report. */ - "enabled": true + "enabled": true, /** * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce @@ -135,7 +135,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "/etc/" */ - // "reportFolder": "/etc/", + "reportFolder": "/temp/" /** * Specifies the folder where the temporary report file is written. The file name portion is determined by From 6c03a9769da3da9d491be11a64e6e6ee742b580c Mon Sep 17 00:00:00 2001 From: ikethirdweb Date: Thu, 19 Oct 2023 15:24:34 -0400 Subject: [PATCH 5/8] typedocs --- .../src/evm/components/ConnectWallet.tsx | 4 +- pnpm-lock.yaml | 83 ++++++++++++++++++- 2 files changed, 83 insertions(+), 4 deletions(-) diff --git a/packages/react-native/src/evm/components/ConnectWallet.tsx b/packages/react-native/src/evm/components/ConnectWallet.tsx index c78f2497223..15909e3214b 100644 --- a/packages/react-native/src/evm/components/ConnectWallet.tsx +++ b/packages/react-native/src/evm/components/ConnectWallet.tsx @@ -67,7 +67,7 @@ export type ConnectWalletProps = { displayBalanceToken?: Record; } & ConnectWalletButtonProps; -export const ConnectWallet: React.FC = ({ +export const ConnectWallet = ({ detailsButton, theme, buttonTitle, @@ -80,7 +80,7 @@ export const ConnectWallet: React.FC = ({ termsOfServiceUrl, privacyPolicyUrl, supportedTokens, -}) => { +}: ConnectWalletProps) => { const fadeAnim = useRef(new Animated.Value(0)).current; const address = useAddress(); const isNetworkMismatch = useNetworkMismatch(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a689bf6f0d..38c57404d15 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -618,9 +618,15 @@ importers: react-dom: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) + rimraf: + specifier: ^3.0.2 + version: 3.0.2 stream: specifier: npm:stream-browserify@^3.0.0 version: /stream-browserify@3.0.0 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -915,6 +921,12 @@ importers: react-native-mmkv: specifier: 2.5.1 version: 2.5.1(react-native@0.71.11)(react@18.2.0) + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -1127,6 +1139,12 @@ importers: prettier: specifier: ^3.0.0 version: 3.0.0 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -1255,6 +1273,12 @@ importers: mocha: specifier: ^10.2.0 version: 10.2.0 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -1463,9 +1487,15 @@ importers: ethers-aws-kms-signer: specifier: ^1.3.2 version: 1.3.2 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 tweetnacl: specifier: ^1.0.3 version: 1.0.3 + typedoc: + specifier: ^0.25.2 + version: 0.25.2(typescript@5.1.6) typescript: specifier: ^5.1.6 version: 5.1.6 @@ -13517,6 +13547,10 @@ packages: resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} engines: {node: '>=12'} + /ansi-sequence-parser@1.1.1: + resolution: {integrity: sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==} + dev: true + /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -17247,7 +17281,7 @@ packages: minimatch: 3.1.2 object.values: 1.1.6 resolve: 1.22.1 - semver: 7.5.4 + semver: 7.5.3 tsconfig-paths: 3.14.2 transitivePeerDependencies: - eslint-import-resolver-typescript @@ -21638,6 +21672,10 @@ packages: engines: {node: '>=6'} hasBin: true + /jsonc-parser@3.2.0: + resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} + dev: true + /jsonfile@2.4.0: resolution: {integrity: sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==} optionalDependencies: @@ -22119,6 +22157,10 @@ packages: resolution: {integrity: sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==} dev: true + /lunr@2.3.9: + resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==} + dev: true + /magic-sdk@13.6.2: resolution: {integrity: sha512-ZjIZM2gqaxxOR+ZAyKVw50akjfdyo0q5hZzrCMiqyCqh4BXulU7yqHgUa/5/nJ+0/4xBgUejoOcDEm+UdmzLjA==} dependencies: @@ -22228,7 +22270,6 @@ packages: resolution: {integrity: sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==} engines: {node: '>= 12'} hasBin: true - dev: false /mcl-wasm@0.7.9: resolution: {integrity: sha512-iJIUcQWA88IJB/5L15GnJVnSQJmf/YaxxV6zRavv83HILHaJQb6y0iFyDMdDO0gN8X37tdxmAOrH/P8B6RB8sQ==} @@ -22839,6 +22880,13 @@ packages: dependencies: brace-expansion: 2.0.1 + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -26809,6 +26857,15 @@ packages: /shell-quote@1.8.0: resolution: {integrity: sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ==} + /shiki@0.14.5: + resolution: {integrity: sha512-1gCAYOcmCFONmErGTrS1fjzJLA7MGZmKzrBNX7apqSwhyITJg2O102uFzXUeBxNnEkDA9vHIKLyeKq0V083vIw==} + dependencies: + ansi-sequence-parser: 1.1.1 + jsonc-parser: 3.2.0 + vscode-oniguruma: 1.7.0 + vscode-textmate: 8.0.0 + dev: true + /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: @@ -28262,6 +28319,20 @@ packages: dependencies: is-typedarray: 1.0.0 + /typedoc@0.25.2(typescript@5.1.6): + resolution: {integrity: sha512-286F7BeATBiWe/qC4PCOCKlSTwfnsLbC/4cZ68oGBbvAqb9vV33quEOXx7q176OXotD+JdEerdQ1OZGJ818lnA==} + engines: {node: '>= 16'} + hasBin: true + peerDependencies: + typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x + dependencies: + lunr: 2.3.9 + marked: 4.3.0 + minimatch: 9.0.3 + shiki: 0.14.5 + typescript: 5.1.6 + dev: true + /typescript@5.0.4: resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} engines: {node: '>=12.20'} @@ -28792,6 +28863,14 @@ packages: resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==} dev: true + /vscode-oniguruma@1.7.0: + resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} + dev: true + + /vscode-textmate@8.0.0: + resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} + dev: true + /w3c-hr-time@1.0.2: resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} deprecated: Use your platform's native performance.now() and performance.timeOrigin. From 04c7cc84787907a977c73ff2dd71eb0368b966f1 Mon Sep 17 00:00:00 2001 From: ikethirdweb Date: Thu, 19 Oct 2023 15:28:04 -0400 Subject: [PATCH 6/8] clean --- .changeset/gorgeous-paws-end.md | 10 ++++++++++ packages/react-core/src/index.ts | 2 +- .../src/evm/components/SendFunds/TokenSelector.tsx | 9 ++++++--- packages/react-native/src/evm/sdk/ThirdwebSDK.ts | 7 +++++-- 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .changeset/gorgeous-paws-end.md diff --git a/.changeset/gorgeous-paws-end.md b/.changeset/gorgeous-paws-end.md new file mode 100644 index 00000000000..7ffdcba9fa2 --- /dev/null +++ b/.changeset/gorgeous-paws-end.md @@ -0,0 +1,10 @@ +--- +"@thirdweb-dev/react-native": patch +"@thirdweb-dev/react-core": patch +"@thirdweb-dev/storage": patch +"@thirdweb-dev/wallets": patch +"@thirdweb-dev/react": patch +"@thirdweb-dev/sdk": patch +--- + +Enable typedoc for packages diff --git a/packages/react-core/src/index.ts b/packages/react-core/src/index.ts index 2be7a08b25f..404a3199a5d 100644 --- a/packages/react-core/src/index.ts +++ b/packages/react-core/src/index.ts @@ -2,4 +2,4 @@ export * from "./evm"; // export types from thirdweb-dev/sdk -export type * from "@thirdweb-dev/sdk"; +export * from "@thirdweb-dev/sdk"; diff --git a/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx b/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx index 980f77f7e60..2a06bb6c956 100644 --- a/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx +++ b/packages/react-native/src/evm/components/SendFunds/TokenSelector.tsx @@ -1,6 +1,9 @@ -import { useBalance, useChain, useChainId } from "@thirdweb-dev/react-core"; - -import { NATIVE_TOKEN_ADDRESS } from "@thirdweb-dev/sdk"; +import { + NATIVE_TOKEN_ADDRESS, + useBalance, + useChain, + useChainId, +} from "@thirdweb-dev/react-core"; import React, { useState } from "react"; import { TokenInfo, SupportedTokens } from "./defaultTokens"; import { utils } from "ethers"; diff --git a/packages/react-native/src/evm/sdk/ThirdwebSDK.ts b/packages/react-native/src/evm/sdk/ThirdwebSDK.ts index 2193e924373..f20c5b2381c 100644 --- a/packages/react-native/src/evm/sdk/ThirdwebSDK.ts +++ b/packages/react-native/src/evm/sdk/ThirdwebSDK.ts @@ -1,5 +1,8 @@ -import { NetworkInput, SDKOptions } from "@thirdweb-dev/react-core"; -import { ThirdwebSDK as ThirdwebSDKCore } from "@thirdweb-dev/sdk"; +import { + NetworkInput, + SDKOptions, + ThirdwebSDK as ThirdwebSDKCore, +} from "@thirdweb-dev/react-core"; import { IThirdwebStorage } from "@thirdweb-dev/storage"; import { ThirdwebStorage } from "../../core/storage/storage"; From 15b6d0daa32159bd70407751fc1dc648374e0808 Mon Sep 17 00:00:00 2001 From: ikethirdweb Date: Thu, 19 Oct 2023 15:31:01 -0400 Subject: [PATCH 7/8] api-extractor --- packages/react-core/config/api-extractor-evm.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-core/config/api-extractor-evm.json b/packages/react-core/config/api-extractor-evm.json index a70f49a2e83..376b8faa148 100644 --- a/packages/react-core/config/api-extractor-evm.json +++ b/packages/react-core/config/api-extractor-evm.json @@ -109,7 +109,7 @@ /** * (REQUIRED) Whether to generate an API report. */ - "enabled": true, + "enabled": true /** * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce @@ -135,7 +135,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "/etc/" */ - "reportFolder": "/temp/" + // "reportFolder": "/etc/", /** * Specifies the folder where the temporary report file is written. The file name portion is determined by From 81ee272ccc8bcda3b3cdba2c7c171116fe579c91 Mon Sep 17 00:00:00 2001 From: ikethirdweb Date: Thu, 19 Oct 2023 15:49:53 -0400 Subject: [PATCH 8/8] remove solana generation --- packages/sdk/scripts/generate-snippets.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/sdk/scripts/generate-snippets.mjs b/packages/sdk/scripts/generate-snippets.mjs index f48894269b1..990c34cff68 100644 --- a/packages/sdk/scripts/generate-snippets.mjs +++ b/packages/sdk/scripts/generate-snippets.mjs @@ -154,4 +154,3 @@ export function generateSnippets(ecosystem) { } generateSnippets("evm"); -generateSnippets("solana");