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

Update rethink scroll to #3482

Merged
merged 54 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
426b4d8
Move the render function to the end of lit-html (#3284)
rictic Sep 9, 2022
a279803
Task: Do not reset task value or error on pending (#3283)
e111077 Sep 14, 2022
2994a96
[infra] Enable IntersectionController and PerformanceController tests…
AndrewJakubowicz Sep 21, 2022
d8aead0
[labs/ssr] fix Hydrating LitElements example markup (#3298)
heyMP Sep 22, 2022
7e22bc2
[labs/observers] Fix controllers not observing target if initialized …
AndrewJakubowicz Sep 23, 2022
569a623
[labs/analyzer] Refactor Analyzer into better fit for use in plugins …
kevinpschaaf Sep 23, 2022
55ae64a
Slack -> Discord readme (#3307)
e111077 Sep 26, 2022
b225bd3
[@labs/gen-wrapper-react] TestOutput links to monorepo for dependenci…
taylor-vann Sep 28, 2022
7a9fc0f
[labs/cli] Lazily install and locally version localize (#2936)
rictic Sep 29, 2022
02b0b7b
Task add onComplete and onError (#3287)
e111077 Sep 29, 2022
305852d
[lit] Add "types" to package exports (#3320)
augustjk Sep 29, 2022
2131307
[lit-html] Add `isServer` environment checker module (#3318)
augustjk Sep 29, 2022
31bed8d
[labs/analyzer] Adds support for analyzing JavaScript packages (#3304)
kevinpschaaf Sep 30, 2022
96c05f2
[labs/observers] Improve controllers value type from unknown to gener…
AndrewJakubowicz Sep 30, 2022
1212ddd
[labs/react] Provide explicit return type from createComponent (#3163)
taylor-vann Sep 30, 2022
e90e8fe
[labs/observers] observed targets are re-observed when the host is re…
AndrewJakubowicz Oct 4, 2022
0f787b2
[labs/observers] Add unobserve method to ResizeController and Interse…
AndrewJakubowicz Oct 4, 2022
75a2afb
[labs/gen-utils] Add core packages to testing install with link (#3330)
augustjk Oct 5, 2022
facde0b
[infra] Update changesets and package for release (#3332)
augustjk Oct 5, 2022
f6919dd
Remove gen-wrapper-angular from changesets (#3336)
augustjk Oct 5, 2022
1e1e2e0
Version Packages (#3337)
lit-robot Oct 5, 2022
9e978a0
Unpin Node version for windows-tools test (#3338)
augustjk Oct 6, 2022
2d10c26
[labs/react] introduce a options object (#2988)
taylor-vann Oct 12, 2022
a432c38
[labs/react] Update REAMDE for function overload (#3350)
taylor-vann Oct 13, 2022
2906369
[@lit-labs/router] add Routes.link tests (#3348)
AndrewJakubowicz Oct 15, 2022
ad361cc
[gen-manifest] Initial impl of CEM generator (#2990)
kevinpschaaf Oct 17, 2022
fc2b1c8
[labs/analyzer] Cache Module models based on dependencies. (#3333)
kevinpschaaf Oct 19, 2022
7d7fc85
Fix typo in task README (#3385)
e111077 Oct 21, 2022
bb09895
Initializers are copied but separate from superclass initializers (#3…
Oct 23, 2022
fc1f649
Example code had an h1 tag closed by an h3 tag (#3392)
Oct 25, 2022
0af4e79
Improvements to Vue/React wrappers (#3377)
Oct 25, 2022
9f80264
Wrapper test elements + runtime tests (#3384)
Oct 26, 2022
491d0e3
[@labs/react] certain attributes should be removed when undefined or …
taylor-vann Nov 2, 2022
31519e5
[infra] Use new projectV2 object in issue workflow (#3419)
augustjk Nov 3, 2022
d75178c
Add lit to changeset along side reactive-element (#3422)
augustjk Nov 3, 2022
02c2839
Version Packages (#3423)
lit-robot Nov 3, 2022
4c1915e
Update chromedriver to 107 for benchmark tests (#3427)
usergenic Nov 4, 2022
005c68f
[labs/virtualizer] Fix width inheritance calculation (issue #3400) (#…
usergenic Nov 4, 2022
412b05e
[labs/virtualizer] Export event classes through a new events.js (#3430)
usergenic Nov 4, 2022
50f2e42
[labs/context] Rename context decorators to consume and provide (#3398)
justinfagnani Nov 5, 2022
dd6a0ae
[@labs/react] Filter __forwardedRef in prod build (#3409)
taylor-vann Nov 7, 2022
0e52919
[labs/context] Make @consume decorator work with optional fields (#3399)
justinfagnani Nov 7, 2022
b3e8993
[labs/context] Rename ContextKey to Context (#3404)
justinfagnani Nov 7, 2022
a6a5591
Allow ContextProvider to be added lazily and still work with ContextR…
justinfagnani Nov 9, 2022
cce4629
[infra] Fix npm install with version 9 (#3448)
AndrewJakubowicz Nov 11, 2022
9b9bdb0
Implement `lit init element` (#3248)
e111077 Nov 14, 2022
209cfe0
Logo dark mode support (#3457)
e111077 Nov 15, 2022
3ab7a81
Gitignore build output files from virtualizer (#3454)
e111077 Nov 16, 2022
00f59cf
[labs/analyzer] Add lazy Declaration analysis, Reference dereferencin…
kevinpschaaf Nov 16, 2022
0260a15
[labs/gen-manifest] Adds `exports` and more metadata to manifest gene…
kevinpschaaf Nov 21, 2022
a544de7
Gitignore build output files from virtualizer (#3454)
e111077 Nov 16, 2022
7f002ff
Add the js.map extension to the files property for events.js.
usergenic Nov 7, 2022
6f260ff
Merge branch 'main' into update-rethink-scroll-to
graynorton Nov 29, 2022
46ba5c1
update .prettierignore and .gitignore to include events.js.map
graynorton Nov 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
5 changes: 5 additions & 0 deletions .changeset/cyan-moose-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': patch
---

Make @consume decorator work with optional fields
File renamed without changes.
6 changes: 6 additions & 0 deletions .changeset/dull-months-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@lit-labs/analyzer': minor
'@lit-labs/gen-manifest': minor
---

Added support for export, slot, cssPart, and cssProperty to analyzer and manifest generator. Also improved JS project analysis performance.
6 changes: 6 additions & 0 deletions .changeset/five-falcons-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@lit-labs/analyzer': minor
'@lit-labs/cli': minor
---

Added superclass analysis to ClassDeclaration, along with the ability to query exports of a Module (via `getExport()` and `getResolvedExport()`) and the ability to dereference `Reference`s to the `Declaration` they point to (via `dereference()`). A ClassDeclaration's superClass may be interrogated via `classDeclaration.heritage.superClass.dereference()` (`heritage.superClass` returns a `Reference`, which can be dereferenced to access its superclass's `ClassDeclaration` model.
2 changes: 2 additions & 0 deletions .changeset/fresh-oranges-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/lemon-llamas-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': minor
---

Rename ContextKey to Context
8 changes: 0 additions & 8 deletions .changeset/moody-colts-trade.md

This file was deleted.

2 changes: 2 additions & 0 deletions .changeset/six-buttons-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/tidy-flowers-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/react': patch
---

Filter \_\_forwaredRef from build.
5 changes: 5 additions & 0 deletions .changeset/unlucky-lamps-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': patch
---

Allow ContextProvider to be added lazily and still work with ContextRoot
5 changes: 5 additions & 0 deletions .changeset/unlucky-parents-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': patch
---

Rename @contextProvided and @contextProvider to @consume and @provide
6 changes: 6 additions & 0 deletions .changeset/wild-pillows-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@lit-labs/cli': minor
'@lit-labs/gen-utils': minor
---

Implemented lit init element command
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ packages/lit-html/async-directive.*
packages/lit-html/polyfill-support.*
packages/lit-html/private-ssr-support.*
packages/lit-html/static.*
packages/lit-html/is-server.*

packages/lit-starter-js/node_modules/*
packages/lit-starter-js/docs/*
Expand Down Expand Up @@ -159,6 +160,9 @@ packages/labs/cli/index.d.ts
packages/labs/cli/index.d.ts.map
packages/labs/cli/test-gen/

packages/labs/cli-localize/lib/
packages/labs/cli-localize/node_modules/

packages/labs/context/development/
packages/labs/context/test/
packages/labs/context/node_modules/
Expand All @@ -174,6 +178,13 @@ packages/labs/eleventy-plugin-lit/test/
# Switches Node into module mode for tests
!packages/labs/eleventy-plugin-lit/test/package.json

packages/labs/gen-manifest/index.js
packages/labs/gen-manifest/index.js.map
packages/labs/gen-manifest/index.d.ts
packages/labs/gen-manifest/index.d.ts.map
packages/labs/gen-manifest/test/
packages/labs/gen-manifest/gen-output/

packages/labs/gen-utils/lib/
packages/labs/gen-utils/test/
packages/labs/gen-utils/index.js
Expand Down Expand Up @@ -306,6 +317,8 @@ packages/labs/virtualizer/test/**/*.d.ts.map
packages/labs/virtualizer/test/**/*.js
packages/labs/virtualizer/test/**/*.js.map
packages/labs/virtualizer/test/screenshot/cases/*/actual.*.png
packages/labs/virtualizer/events.d.ts*
packages/labs/virtualizer/events.js*

packages/labs/vue-utils/development/
packages/labs/vue-utils/test/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/add-issues-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
gh api graphql -f query='
query($organization: String!, $project_number: Int!) {
organization(login: $organization){
projectNext(number: $project_number) {
projectV2(number: $project_number) {
id
}
}
}' -f organization=$ORGANIZATION -F project_number=$PROJECT_NUMBER > project_data.json

echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV

- name: Add issue to project
env:
Expand All @@ -39,8 +39,8 @@ jobs:
run: |
gh api graphql -f query='
mutation($project_id:ID!, $issue_id:ID!) {
addProjectNextItem(input: {projectId: $project_id, contentId: $issue_id}) {
projectNextItem {
addProjectV2ItemById(input: {projectId: $project_id, contentId: $issue_id}) {
item {
id
}
}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ jobs:

- uses: actions/setup-node@v2
with:
# Pin to avoid version with problematic npm. See https://github.com/npm/cli/issues/4980
# TODO(augustinekim) Unpin when latest node installed by action includes fixed npm
node-version: 16.15.0
node-version: 16
cache: 'npm'
cache-dependency-path: package-lock.json

Expand Down
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ packages/lit-html/async-directive.*
packages/lit-html/polyfill-support.*
packages/lit-html/private-ssr-support.*
packages/lit-html/static.*
packages/lit-html/is-server.*

packages/lit-starter-js/node_modules/
packages/lit-starter-js/**/custom-elements.json
Expand Down Expand Up @@ -145,6 +146,10 @@ packages/labs/cli/index.d.ts
packages/labs/cli/index.d.ts.map
packages/labs/cli/test-gen/

packages/labs/cli/test-goldens/
packages/labs/cli-localize/lib/
packages/labs/cli-localize/node_modules/

packages/labs/context/development/
packages/labs/context/test/
packages/labs/context/node_modules/
Expand All @@ -160,6 +165,13 @@ packages/labs/eleventy-plugin-lit/test/
# Switches Node into module mode for tests
!packages/labs/eleventy-plugin-lit/test/package.json

packages/labs/gen-manifest/index.js
packages/labs/gen-manifest/index.js.map
packages/labs/gen-manifest/index.d.ts
packages/labs/gen-manifest/index.d.ts.map
packages/labs/gen-manifest/test/
packages/labs/gen-manifest/gen-output/

packages/labs/gen-utils/lib/
packages/labs/gen-utils/test/
packages/labs/gen-utils/index.js
Expand Down Expand Up @@ -289,6 +301,8 @@ packages/labs/virtualizer/test/**/*.d.ts.map
packages/labs/virtualizer/test/**/*.js
packages/labs/virtualizer/test/**/*.js.map
packages/labs/virtualizer/test/screenshot/cases/*/actual.*.png
packages/labs/virtualizer/events.d.ts*
packages/labs/virtualizer/events.js*

packages/labs/vue-utils/development/
packages/labs/vue-utils/test/
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<div align="center">
<img src="./packages/lit/logo.svg" alt="Lit" width="300" height="141">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./packages/lit/logo-dark.svg" alt="Lit" width="300" height="141">
</source>
<source media="(prefers-color-scheme: light)" srcset="./packages/lit/logo.svg" alt="Lit" width="300" height="141">
</source>
<img src="./packages/lit/logo.svg" alt="Lit" width="300" height="141">
</picture>

### Simple. Fast. Web Components.

[![Build Status](https://github.com/lit/lit/actions/workflows/tests.yml/badge.svg)](https://github.com/lit/lit/actions/workflows/tests.yml)
[![Published on npm](https://img.shields.io/npm/v/lit.svg?logo=npm)](https://www.npmjs.com/package/lit)
[![Join our Slack](https://img.shields.io/badge/slack-join%20chat-4a154b.svg?logo=slack)](https://lit.dev/slack-invite/)
[![Join our Discord](https://img.shields.io/badge/discord-join%20chat-5865F2.svg?logo=discord&logoColor=fff)](https://lit.dev/discord/)
[![Mentioned in Awesome Lit](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit)

</div>
Expand Down
20 changes: 20 additions & 0 deletions lit-next.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@
"name": "cli",
"path": "packages/labs/cli"
},
{
"name": "gen-manifest",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-react",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-angular",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-vue",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-utils",
"path": "packages/labs/gen-manifest"
},
{
"name": "lit-monorepo",
"path": "."
Expand Down