TomFreudenberg / next-auth-mock

NextAuth.js mockup provider for jest, storybook and others.
MIT License
28 stars 1 forks source link

Use the new Framework API? #8

Open jonniebigodes opened 1 year ago

jonniebigodes commented 1 year ago

Hey @TomFreudenberg! I'm one of the Storybook maintainers. I focus primarily on documentation and community outreach. I'm opening up this issue and letting you know that the Storybook API for building addons is currently being updated to factor in the changes introduced by the upcoming 7.0 release. If you're interested in making the required changes to help the community from benefiting from using your addon, we've prepared an abridged guide for the required changes here, and if you have any questions or issues, please reach out to us in the #prerelease channel in our Discord Server.

Hope you have a great day!

Stay safe

dan-mba commented 4 months ago

Just upgraded to Storybook 8 & it no longer works. The icon isn't even in the toolbar.

Markkop commented 3 months ago

An update on this would be awesome. Maybe the community (me and others?) can try to update it to support Storybook 8. Any tips where to start?

Markkop commented 3 months ago

I just tried something by looking at the code and this might be handy for those who want to mess around it

  decorators: [
    (Story, context) => {
      return (
        <NextAuthProvider>
          // Put your mocked session data here
          <SessionContext.Provider value={{ data: {} }}>
            <Story />
          </SessionContext.Provider>
        </NextAuthProvider>
      )
    },
  ],