AlexanderSkrock / bpmn-react

Seemlessy integrate bpmn-js into your React application.
https://bpmn-react.projects.skrock.dev/
MIT License
0 stars 0 forks source link

Canvas source code show library imports #42

Open AlexanderSkrock opened 6 days ago

AlexanderSkrock commented 6 days ago

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.