Skip to content

Commit fd191e9

Browse files
authored
Fix floating-ui and motion dependencies in tooltip and carousel tutorials (#835)
- Upgrades playground-elements to bring in google/playground-elements#313, which lets us import `floating-ui` without any special handling. - Removed special handling for `process.env` error from incorrect module resolution in tooltip tutorial. - Fixed `"dependencies"` in tooltip and carousel tutorials. Previously they were listed in the tutorial `project.json` file -- which has no effect. Now, they are correctly inside a `package.json` file, so that the playground sees it. - Also: made the order of files in the carousel tutorials consistent.
1 parent f5186a8 commit fd191e9

File tree

49 files changed

+10549
-10655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+10549
-10655
lines changed

packages/lit-dev-content/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/lit-dev-content/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
"@material/mwc-textfield": "^0.25.1",
207207
"lit": "^2.1.0",
208208
"minisearch": "^3.0.4",
209-
"playground-elements": "^0.15.4",
209+
"playground-elements": "^0.16.0",
210210
"postdoc-lib": "^1.0.3",
211211
"tarts": "^1.0.0",
212212
"timeago.js": "^4.0.2",
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
4-
"index.html": {"selected": true},
54
"motion-carousel.ts": {},
5+
"index.html": {"selected": true},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
44
"motion-carousel.ts": {"selected": true},
55
"index.html": {},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
44
"motion-carousel.ts": {"selected": true},
55
"index.html": {},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
44
"motion-carousel.ts": {"selected": true},
55
"index.html": {},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
44
"motion-carousel.ts": {"selected": true},
55
"index.html": {},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
44
"motion-carousel.ts": {"selected": true},
55
"index.html": {},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
44
"motion-carousel.ts": {"selected": true},
55
"index.html": {},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"extends": "/samples/base.json",
2+
"extends": "../../carousel-base.json",
33
"files": {
44
"motion-carousel.ts": {"selected": true},
55
"index.html": {},
66
"styles.ts": {}
7-
},
8-
"dependencies": {
9-
"@lit-labs/motion": "^1.0.2"
107
}
118
}

0 commit comments

Comments
 (0)