Storybook: Implement global source code transformer for story "Code" panel #2379
Labels
0-refinement
All issues that can or need to be estimated in our next refinement
dev
Requires technical expertise
storybook
Storybook improve- or adjustments
Why?
Follow up for #1963
We contributed a "Code" panel to Storybook which shows the source code of an individual story in storybookjs/storybook#29253.
Unfortunately, we noticed that the code panel does not consider the global
transformer
function that we have set it in onyx to add icon and component imports, seeonyx/packages/storybook-utils/src/preview.ts
Line 86 in bca1c06
This only works for the generated "Docs" page but not for the code panel. We want to also support this for the code panel to achieve a unified code snippet experience for our users.
Open questions / TODOs
No response
Depends on
No response
Design
No response
Acceptance criteria
Implementation details
Reference implementations
No response
Applicable ARIA Pattern
No response
Definition of Done
Should be covered by tests:
Make sure, that
Approval
Storybook
Documentation
The text was updated successfully, but these errors were encountered: