You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@templatical/editor@1.0.0
Minor Changes
2832f5d: Mount the editor inside a Shadow DOM by default. init({ container }) now resolve shadowDom: true when the option is omitted — host page stylesheets no longer cascade into editor elements (p, h1, a, input, etc.) via tag selectors, closing issue #70.
Behavior changes consumers may notice:
External document.querySelector("#editor .tpl-…") queries no longer reach editor internals because the editor's DOM lives inside container.shadowRoot. Walk the shadow root explicitly (container.shadowRoot.querySelector(...)) or opt out with shadowDom: false.
Host stylesheets that intentionally styled editor elements via element selectors stop applying. The supported theming protocol is now the --tpl-user-* CSS custom property namespace — set --tpl-user-primary, --tpl-user-radius-md, etc. on the editor container (or any ancestor) and the override inherits across the shadow boundary. The existing theme config option still takes precedence and works unchanged.
Browser minimums in default mode bump to Firefox 101+ and Safari 16.4+ (required by the adoptedStyleSheets API). Chrome / Edge 80+ is unchanged. Pass shadowDom: false to keep the previous light-DOM mount with broader browser support.
The shadowDom: false escape hatch remains supported.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@templatical/editor@1.0.0
Minor Changes
2832f5d: Mount the editor inside a Shadow DOM by default.
init({ container })now resolveshadowDom: truewhen the option is omitted — host page stylesheets no longer cascade into editor elements (p,h1,a,input, etc.) via tag selectors, closing issue #70.Behavior changes consumers may notice:
document.querySelector("#editor .tpl-…")queries no longer reach editor internals because the editor's DOM lives insidecontainer.shadowRoot. Walk the shadow root explicitly (container.shadowRoot.querySelector(...)) or opt out withshadowDom: false.--tpl-user-*CSS custom property namespace — set--tpl-user-primary,--tpl-user-radius-md, etc. on the editor container (or any ancestor) and the override inherits across the shadow boundary. The existingthemeconfig option still takes precedence and works unchanged.adoptedStyleSheetsAPI). Chrome / Edge 80+ is unchanged. PassshadowDom: falseto keep the previous light-DOM mount with broader browser support.The
shadowDom: falseescape hatch remains supported.Patch Changes
@templatical/core@1.0.0
Patch Changes
@templatical/import-beefree@1.0.0
Patch Changes
@templatical/import-html@1.0.0
Patch Changes
@templatical/import-unlayer@1.0.0
Patch Changes
@templatical/media-library@1.0.0
Patch Changes
@templatical/quality@1.0.0
Patch Changes
@templatical/renderer@1.0.0
Patch Changes
@templatical/types@1.0.0