Closed sra405 closed 3 weeks ago
Branch issues/1010-Productionise_Output_only_Web_Component created!
@sra405 I've created this draft PR by doing the following:
main
branchsrc/web-component.js
to specify the web component attributes that are used by Block-to-TextrerunCode
function on the web component like Block-to-Text@sra405 I've created https://github.com/RaspberryPiFoundation/editor-ui/pull/1030 & https://github.com/RaspberryPiFoundation/editor-standalone/pull/164 to implement the embedded view in editor-standalone using the web component in output-only mode. Note that these also required that we made this change to the Block-to-Text app.
@sra405 I've created #1030 & RaspberryPiFoundation/editor-standalone#164 to implement the embedded view in editor-standalone using the web component in output-only mode. Note that these also required that we made this change to the Block-to-Text app.
@sra405: These PRs are both merged now, so I'm hoping this issue is now resolved. Let me know if you think I've missed anything.
Similar to the embedded view from the site I wanted to see if it was simple enough to add an output only view to the web component.
It's worth noting the need for this in two use cases:
code
attribute for users to run per step in the activity - draft PR used as the code output runner in the alpha here. As a draft this was sufficient for the alpha, for use in a beta (integrated with the projects site) we'll need to add tests to ensure the functionality works as expectedembed/viewer
path (e.g. here) for use in iframes in external products (e.g. here) - we'll need this to properly separate out the editor-standalone by utilising an output only web component on this pathNotes
If its easier to do this in parts I'm all ears. The functionality for block to text is there and mostly aligns with what's needed for the standalone. Additionally if we think we can provide the functionality of the embedded viewer path as a web component I'm all ears too, we'd significantly reduce our number of iframe (not to zero unfortunately) but would also unlock performance gains too!