Is your feature request related to a problem? Please describe.
For stories that are embedded via Canvas components, it is possible to have a look on the underlying code. This is a good thing, but does not show the bpmn-react imports, but rather some ../../../lib/Viewer which prevents users from simply copy and pasting the code to try it out.
Describe the solution you'd like
Maybe it is possible that we modify the code on the fly and replace any local imports according the exports property in the package.json.
Describe alternatives you've considered
We could also manually write the code which is shown for each canvas, but this also needs to be kept up to date. I am already sure that either one is overseen or small mistakes like a typo will happen.
Is your feature request related to a problem? Please describe. For stories that are embedded via Canvas components, it is possible to have a look on the underlying code. This is a good thing, but does not show the
bpmn-react
imports, but rather some../../../lib/Viewer
which prevents users from simply copy and pasting the code to try it out.Describe the solution you'd like
Maybe it is possible that we modify the code on the fly and replace any local imports according the exports property in the package.json.
Describe alternatives you've considered
We could also manually write the code which is shown for each canvas, but this also needs to be kept up to date. I am already sure that either one is overseen or small mistakes like a typo will happen.