v2.0.0
π₯ Breaking Change
- chore: update to storybook 9 #31 (@literalpie)
- refactor: fully use globals API #33 (@literalpie)
direction is now only set using the globals API.
Instead of using story parameters, direction can now be set per-story using globals: {addonRtl: 'rtl'}.
Instead of listening to events on the channel, you can get/set the value using import { useGlobals } from 'storybook/preview-api' or other storybook APIs.
Instead of setting url parameters like &direction=ltr, you should do &globals=addonRtl:ltr.
Instead of setting the direction on the document element, direction is now set on the element that wraps each story (context.canvasElement)
π Feature
- Changing direction now works in the Docs view #12
- Changing direction now works in iFrames or when viewing the standalone story #11
π Bug Fix
- chore: support auto prerelease branch #32 (@literalpie)
- update dependencies #26 (@literalpie)
- chore: update deps #22 (@literalpie)
- Deploy storybook #21 (@literalpie)
- dependency updates #36 (@literalpie)
Authors: 1
- Benjamin Kindle (@literalpie)