-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Shadow DOM serialisation support (#1165)
* use declarative dom for serializing * Remove getInnerHTML polyfill * 📝 update documentation for testing cli packages * 🐛 return document instead of fragment we require document interface to in further steps, and originally document.cloneNode returned document object instead of fragment * 🐛 missed let : ( * firefox use default html without declarative * add basic tests * Serialized element tests * rename clone node file name * mark dom elements in shadow dom, next steps - serialize them * serialize inputs, cssom, video, canvas, frames * add comments * add warning log for video serialization * remove line and add comment * add extra comments * added declarative shadow dom polyfill for non chromium infra browsers * serialize frame test * serialize cssom inside shadow * shadowDom global in other tests * update id update polyfill for browsers where we run scripts later fix polyfill * karma separate shadow dom config * Use shadow mode in karma * refactor dom test to platform * serialize cssom createElement fix * domTransformation shadow dom unsupported * frames tests add polyfill * withExample: Remove test-shadow for plain to avoid flakes * fix frame test side effect in input * refactor helper with options * firefox tests limit platforms * revert test script changes * add tests for inject polyfill * 🔖 v1.19.0-alpha.0 * 📝 update readme for dom package * use declarative dom for serializing * Remove getInnerHTML polyfill * 🐛 return document instead of fragment we require document interface to in further steps, and originally document.cloneNode returned document object instead of fragment * 🐛 missed let : ( * firefox use default html without declarative * add basic tests * Serialized element tests * rename clone node file name * mark dom elements in shadow dom, next steps - serialize them * serialize inputs, cssom, video, canvas, frames * add comments * add warning log for video serialization * remove line and add comment * add extra comments * serialize frame test * serialize cssom inside shadow * shadowDom global in other tests * karma separate shadow dom config * Use shadow mode in karma * added declarative shadow dom polyfill for non chromium infra browsers * refactor dom test to platform * domTransformation shadow dom unsupported * frames tests add polyfill * withExample: Remove test-shadow for plain to avoid flakes * fix frame test side effect in input * refactor helper with options * firefox tests limit platforms * revert test script changes * frame test more specific * many nested many flat shadow dom * failing domTransformation for shadow * adoptedStylesheet test * fix frames test * 🐛 return if style id is not found * 🔖 v1.19.1-alpha.0 * disableShadowDom option * allow disableShadowDom in storybook + cil-snapshot * disable shadow dom snake case * cloneNode pass ctx * Add comment * adoptedStylesheet serialize dom * Add comment * run polyfill as first thing * custom element test case * frame in head * disable shadow dom naming * use getTestBrowser * increase nesting levels * remove comment * rename argument * inject polyfill only when not disabled * fix linter * fix polyfill * lint fix * refactor * fix disableShadowDOM option * update readme * fix core test * serialize adopted styles as link * text resource as base64 * use dataj-percy-serialized * fix tests * 🔖 v1.19.2-alpha.0 * lerna update * refactor recursive serialize * invalid marking test * adoptedStylesheet document test * fiix custom element test * fix recursive serialization of special elements * refactor serialize dom * increase test coverage --------- Co-authored-by: Samarjeet <[email protected]>
- Loading branch information
1 parent
8aeb759
commit 66b8192
Showing
45 changed files
with
1,125 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "1.18.0", | ||
"version": "1.19.2-alpha.0", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.