Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 10, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@thirdweb-dev/react@4.3.0

Minor Changes

  • #2055 0f9b88ab Thanks @MananTank! - ### New ConnectEmbed component and useShowConnectEmbed hook

    • Add ConnectEmbed component and useShowConnectEmbed hook allow embedding the ConnectWallet's Modal directly into the page.

    • useShowConnectEmbed returns true if the <ConnectEmbed />should be rendered. It returnstrue if either one of the following conditions are met:

      • Wallet is NOT connected
      • Wallet IS connected but the user is NOT signed in and auth is required ( loginOptional is NOT set to false )
      function Example() {
        const loginOptional = false;
        const showConnectEmbed = useShowConnectEmbed(loginOptional);
      
        if (!showConnectEmbed) {
          return <div> Wallet is connected </div>;
        }
      
        return (
          <ConnectEmbed
            auth={{
              loginOptional,
            }}
          />
        );
      }

    ConnectWallet component changes

    • Fix double connection issue when Connecting a Safe / Smart Wallet. Now the personal wallet will not be set as the active wallet - only the final wallet will be set as the active wallet. This fixes the issue of hooks like useWallet, useAddress, useConnectionStatus etc showing the wrong wallet / address / connection status for a brief moment when connecting a Safe / Smart Wallet.
    • Add "Disconnect Wallet" button in "Sign in" Screen and don't disconnect wallet when the "Sign in" screen is dismissed by closing the modal. This makes this screen reusable for both ConnectWallet and ConnectEmbed components and also improves the user experience.

    API changed for creating wallet configurator

    This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as metamaskWallet(), coinbaseWallet() etc - This API change does not affect you

    To Fix the above mentioned "double connection" issue in the ConnectWallet component, We have introduce a few changes to how the wallet configurator should be created.

    Do not use any wallet connection hooks in the wallet configurator. Only use the props passed in the connectUI and selectUI. The wallet configurator's connectUI and selectUI now gets below mentioned additional props so that you can avoid using the wallet connection hooks

    • props.connect - replaces the useConnect hook usage
    • props.connectionStatus - replaces the useConnectionStatus hook usage
    • props.setConnectionStatus - replaces the useSetConnectionStatus hook usage
    • props.setConnectedWallet - replaces the useSetConnectedWallet hook usage
    • props.createWalletInstance - replaces the useCreateWalletInstance hook usage
    • props.connectedWalletAddress - replaces the useAddress hook usage

    Example

    import { WalletConfig } from "@thirdweb-dev/react";
    import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class
    
    // your custom wallet configurator
    function myCustomWallet(): WalletConfig<MyCustomWallet> {
      return {
        id: "MyCustomWallet",
        meta: {
          name: "FooBar",
          iconURL: "https://link-to-the-wallet-icon.png",
        },
        create(walletOptions) {
          return new MyCustomWallet(walletOptions);
        },
        // only use the props passed in the connectUI and selectUI
        // do not use any wallet connection hooks that read or write to the wallet connection state
        connectUI(props) {
          // const connect = useConnect(); -> old
          const connect = props.connect; // new
    
          return <div> .... </div>;
        },
        selectUI(props) {
          return <div> .... </div>;
        },
      };
    }

Patch Changes

@thirdweb-dev/react-core@4.3.0

Minor Changes

  • #2055 0f9b88ab Thanks @MananTank! - ### New ConnectEmbed component and useShowConnectEmbed hook

    • Add ConnectEmbed component and useShowConnectEmbed hook allow embedding the ConnectWallet's Modal directly into the page.

    • useShowConnectEmbed returns true if the <ConnectEmbed />should be rendered. It returnstrue if either one of the following conditions are met:

      • Wallet is NOT connected
      • Wallet IS connected but the user is NOT signed in and auth is required ( loginOptional is NOT set to false )
      function Example() {
        const loginOptional = false;
        const showConnectEmbed = useShowConnectEmbed(loginOptional);
      
        if (!showConnectEmbed) {
          return <div> Wallet is connected </div>;
        }
      
        return (
          <ConnectEmbed
            auth={{
              loginOptional,
            }}
          />
        );
      }

    ConnectWallet component changes

    • Fix double connection issue when Connecting a Safe / Smart Wallet. Now the personal wallet will not be set as the active wallet - only the final wallet will be set as the active wallet. This fixes the issue of hooks like useWallet, useAddress, useConnectionStatus etc showing the wrong wallet / address / connection status for a brief moment when connecting a Safe / Smart Wallet.
    • Add "Disconnect Wallet" button in "Sign in" Screen and don't disconnect wallet when the "Sign in" screen is dismissed by closing the modal. This makes this screen reusable for both ConnectWallet and ConnectEmbed components and also improves the user experience.

    API changed for creating wallet configurator

    This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as metamaskWallet(), coinbaseWallet() etc - This API change does not affect you

    To Fix the above mentioned "double connection" issue in the ConnectWallet component, We have introduce a few changes to how the wallet configurator should be created.

    Do not use any wallet connection hooks in the wallet configurator. Only use the props passed in the connectUI and selectUI. The wallet configurator's connectUI and selectUI now gets below mentioned additional props so that you can avoid using the wallet connection hooks

    • props.connect - replaces the useConnect hook usage
    • props.connectionStatus - replaces the useConnectionStatus hook usage
    • props.setConnectionStatus - replaces the useSetConnectionStatus hook usage
    • props.setConnectedWallet - replaces the useSetConnectedWallet hook usage
    • props.createWalletInstance - replaces the useCreateWalletInstance hook usage
    • props.connectedWalletAddress - replaces the useAddress hook usage

    Example

    import { WalletConfig } from "@thirdweb-dev/react";
    import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class
    
    // your custom wallet configurator
    function myCustomWallet(): WalletConfig<MyCustomWallet> {
      return {
        id: "MyCustomWallet",
        meta: {
          name: "FooBar",
          iconURL: "https://link-to-the-wallet-icon.png",
        },
        create(walletOptions) {
          return new MyCustomWallet(walletOptions);
        },
        // only use the props passed in the connectUI and selectUI
        // do not use any wallet connection hooks that read or write to the wallet connection state
        connectUI(props) {
          // const connect = useConnect(); -> old
          const connect = props.connect; // new
    
          return <div> .... </div>;
        },
        selectUI(props) {
          return <div> .... </div>;
        },
      };
    }

Patch Changes

@thirdweb-dev/react-native@0.6.0

Minor Changes

  • #2150 6dac95bd Thanks @MananTank! - ### API changed for creating wallet configurator

    ( This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as metamaskWallet(), coinbaseWallet() etc - This API change does not affect you )

    We have introduce a few changes to how the wallet configurator should be created:

    Do not use any wallet connection hooks in the wallet configurator. Only use the props passed in the connectUI and selectUI. The wallet configurator's connectUI and selectUI now gets below mentioned additional props so that you can avoid using the wallet connection hooks

    • props.connect - replaces the useConnect hook usage
    • props.connectionStatus - replaces the useConnectionStatus hook usage
    • props.setConnectionStatus - replaces the useSetConnectionStatus hook usage
    • props.setConnectedWallet - replaces the useSetConnectedWallet hook usage
    • props.createWalletInstance - replaces the useCreateWalletInstance hook usage
    • props.connectedWalletAddress - replaces the useAddress hook usage

    Example

    import { WalletConfig } from "@thirdweb-dev/react-native";
    import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class
    
    // your custom wallet configurator
    function myCustomWallet(): WalletConfig<MyCustomWallet> {
      return {
        id: "MyCustomWallet",
        meta: {
          name: "FooBar",
          iconURL: "https://link-to-the-wallet-icon.png",
        },
        create(walletOptions) {
          return new MyCustomWallet(walletOptions);
        },
        // only use the props passed in the connectUI and selectUI
        // do not use any wallet connection hooks that read or write to the wallet connection state
        connectUI(props) {
          // const connect = useConnect(); -> old
          const connect = props.connect; // new
    
          return <div> .... </div>;
        },
        selectUI(props) {
          return <div> .... </div>;
        },
      };
    }

    onLocallyConnected has been removed from the connectUI props - You no longer need to worry about whether a wallet is part of another wallet's connection flow or not - just use the regular props passed in the connectUI and selectUI and it will be handled automatically.

Patch Changes

@thirdweb-dev/auth@4.1.23

Patch Changes

@thirdweb-dev/chains@0.1.63

Patch Changes

thirdweb@0.13.31

Patch Changes

  • Updated dependencies [90a2f2d4, d3637a16, 27c00ef7, eb6544ff, 756d5cc9]:
    • @thirdweb-dev/wallets@2.4.1
    • @thirdweb-dev/chains@0.1.63
    • @thirdweb-dev/sdk@4.0.26
    • @thirdweb-dev/auth@4.1.23
    • @thirdweb-dev/storage@2.0.8

eslint-config-thirdweb@0.1.7

Patch Changes

@thirdweb-dev/sdk@4.0.26

Patch Changes

  • #2143 27c00ef7 Thanks @joaquim-verges! - Fix gas estimations for local and embedded wallets

  • #1887 eb6544ff Thanks @kien-ngo! - Add pagination to ERC721's getAllOwners method

  • #2139 756d5cc9 Thanks @kumaryash90! - Resolve beacon from beacon-proxy

  • Updated dependencies [d3637a16]:

    • @thirdweb-dev/chains@0.1.63
    • @thirdweb-dev/contracts-js@1.3.16
    • @thirdweb-dev/crypto@0.2.0
    • @thirdweb-dev/merkletree@0.2.0
    • @thirdweb-dev/storage@2.0.8

@thirdweb-dev/service-utils@0.4.12

Patch Changes

@thirdweb-dev/unity-js-bridge@0.3.6

Patch Changes

  • Updated dependencies [90a2f2d4, d3637a16, 27c00ef7, eb6544ff, 756d5cc9]:
    • @thirdweb-dev/wallets@2.4.1
    • @thirdweb-dev/chains@0.1.63
    • @thirdweb-dev/sdk@4.0.26
    • @thirdweb-dev/auth@4.1.23
    • @thirdweb-dev/pay@0.1.4
    • @thirdweb-dev/storage@2.0.8

@thirdweb-dev/wallets@2.4.1

Patch Changes

@thirdweb-dev/react-native-compat@0.6.0

@github-actions github-actions bot requested a review from a team as a code owner January 10, 2024 20:19
@github-actions github-actions bot requested review from a team January 10, 2024 20:19
@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from 35092b3 to e36bc92 Compare January 11, 2024 05:06
@github-actions github-actions bot requested a review from jnsdls as a code owner January 11, 2024 05:06
@github-actions github-actions bot force-pushed the changeset-release/main branch 22 times, most recently from 720d6e8 to 6e2b329 Compare January 11, 2024 20:57
@github-actions github-actions bot force-pushed the changeset-release/main branch from 6e2b329 to a09ac05 Compare January 11, 2024 22:48
@joaquim-verges joaquim-verges merged commit ed1a3e0 into main Jan 11, 2024
@joaquim-verges joaquim-verges deleted the changeset-release/main branch January 11, 2024 23:45
jnsdls pushed a commit that referenced this pull request Jun 19, 2024
* mission landing page (start)

* max width fix

* transform y

* quick fix

* use margin top

* use box instead of img

* fix: left 0 and margin top

* parallax edit

* remove parallax

* tweak margin top

* remove parallax

* requested changes

* responsiveness

* requested changes fixes

* update image

* requested changes

* requested vercel changes

* final changes

* cleanup

* cleanup

* title changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

data is not of type NFT[] when using useUnclaimedNFTs
1 participant