Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Components: Add script tag support #12509

Merged
merged 1 commit into from Sep 21, 2020
Merged

Conversation

zolk
Copy link
Contributor

@zolk zolk commented Sep 17, 2020

Following the example of #12089 for HTML, this adds <script> tag support for Web Components.

Not sure if we want to move simulate-pageload.ts into a shared location rather including a separate copy with each app?

How to test

Example stories have been added to web-components-kitchen-sink in script.stories.js, one rendered with lit-html and another as a basic string.

@jonspalmer
Copy link
Contributor

I extracted the simulate-pageload to client-api in #12522. Would be great to take advantage of that for this PR.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zolk, looks great!! Can you please update to take advantage of @jonspalmer 's refactor? 🙏

@zolk
Copy link
Contributor Author

zolk commented Sep 20, 2020

Thanks @zolk, looks great!! Can you please update to take advantage of @jonspalmer 's refactor? 🙏

Updated!

@zolk zolk requested a review from shilman September 20, 2020 19:36
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super! 💯

@shilman shilman merged commit e66da69 into storybookjs:next Sep 21, 2020
@shilman shilman added this to the 6.1 maintenance milestone Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants