-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the new npm package `lit` (version `2.0.0-rc.1`) instead of `lit-html` and `lit-element`. Update all imports and usage of Lit according to the upgrade guide https://lit.dev/docs/releases/upgrade/ Fix the return type of CSS loader in `types.d.ts` from `CSSResult` to `CSSResultGroup` (this is what the new version of the `css` tagged template literal now returns). Existing projects will need to either delete `types.d.ts` so that it will be replaced with a new version on build (or alternatively manually update its contents) to get the correct type in TS files that import CSS files. Details: Move main logic of the `field` directive from `render()` to `update()` since it's all about imperative DOM access and didn't actually return/render anything. `render()` is meant for declarative rendering. `update()` is meant for imperative DOM access. See: https://lit.dev/docs/templates/custom-directives/#declarative-rendering:-render() . `update()` now returns `noChange` https://lit.dev/docs/templates/custom-directives/#signaling-no-change
- Loading branch information
Showing
36 changed files
with
498 additions
and
410 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
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.