Skip to content

Commit

Permalink
Update dependency @lit-labs/context to v0.5.1 (home-assistant#18208)
Browse files Browse the repository at this point in the history
* Update dependency @lit-labs/context to v0.5.1

* Switch to @lit/context and resolve reactive-element to v1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Steve Repsher <[email protected]>
  • Loading branch information
renovate[bot] and steverep authored Oct 31, 2023
1 parent f70767f commit 17ad801
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 35 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"@fullcalendar/luxon3": "6.1.9",
"@fullcalendar/timegrid": "6.1.9",
"@lezer/highlight": "1.1.6",
"@lit-labs/context": "0.4.1",
"@lit-labs/motion": "1.0.6",
"@lit-labs/observers": "2.0.1",
"@lit-labs/virtualizer": "2.0.9",
"@lit/context": "1.0.1",
"@lrnwebcomponents/simple-tooltip": "7.0.18",
"@material/chips": "=14.0.0-canary.53b3cad2f.0",
"@material/data-table": "=14.0.0-canary.53b3cad2f.0",
Expand Down Expand Up @@ -260,6 +260,7 @@
"lit@^2.7.4 || ^3.0.0": "^2.7.4",
"lit@^2 || ^3": "^2",
"lit@^2.0.0 || ^3.0.0": "^2.0.0",
"@lit/reactive-element@^1.6.2 || ^2.0.0": "^1.6.2",
"[email protected]": "patch:sortablejs@npm%3A1.15.0#./.yarn/patches/sortablejs-npm-1.15.0-f3a393abcc.patch",
"[email protected]": "patch:leaflet-draw@npm%3A1.0.4#./.yarn/patches/leaflet-draw-npm-1.0.4-0ca0ebcf65.patch"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/device/ha-device-automation-picker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import "@material/mwc-list/mwc-list-item";
import { css, CSSResultGroup, html, LitElement, nothing } from "lit";
import { property, state } from "lit/decorators";
Expand Down
2 changes: 1 addition & 1 deletion src/data/context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createContext } from "@lit-labs/context";
import { createContext } from "@lit/context";
import { HassConfig } from "home-assistant-js-websocket";
import { HomeAssistant } from "../types";
import { EntityRegistryEntry } from "./entity_registry";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { ActionDetail } from "@material/mwc-list/mwc-list-foundation";
import "@material/mwc-list/mwc-list-item";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import type { SortableEvent } from "sortablejs";
import {
mdiDotsVertical,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { css, html, LitElement } from "lit";
import { customElement, property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { ActionDetail } from "@material/mwc-list/mwc-list-foundation";
import "@material/mwc-list/mwc-list-item";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { css, html, LitElement } from "lit";
import { customElement, property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { ActionDetail } from "@material/mwc-list/mwc-list-foundation";
import "@material/mwc-list/mwc-list-item";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { css, html, LitElement } from "lit";
import { customElement, property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/devices/ha-config-device-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { customElement, property, state } from "lit/decorators";
import { ifDefined } from "lit/directives/if-defined";
import memoizeOne from "memoize-one";
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { isComponentLoaded } from "../../../common/config/is_component_loaded";
import { SENSOR_ENTITIES } from "../../../common/const";
import { computeDomain } from "../../../common/entity/compute_domain";
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/ha-panel-config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ContextProvider } from "@lit-labs/context";
import { ContextProvider } from "@lit/context";
import {
mdiAccount,
mdiBackupRestore,
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/script/ha-config-script.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { HassEntities } from "home-assistant-js-websocket";
import { PropertyValues } from "lit";
import { customElement, property, state } from "lit/decorators";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import "@lrnwebcomponents/simple-tooltip/simple-tooltip";
import {
mdiCloseBoxMultiple,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import { mdiDevices, mdiMicrophone } from "@mdi/js";
import { PropertyValues } from "lit";
import { customElement, property, state } from "lit/decorators";
Expand Down
2 changes: 1 addition & 1 deletion src/panels/lovelace/cards/hui-button-card.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consume } from "@lit-labs/context";
import { consume } from "@lit/context";
import "@material/mwc-ripple";
import type { Ripple } from "@material/mwc-ripple";
import { RippleHandlers } from "@material/mwc-ripple/ripple-handlers";
Expand Down
2 changes: 1 addition & 1 deletion src/state/context-mixin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ContextProvider } from "@lit-labs/context";
import { ContextProvider } from "@lit/context";
import {
areasContext,
configContext,
Expand Down
35 changes: 17 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2087,16 +2087,6 @@ __metadata:
languageName: node
linkType: hard

"@lit-labs/context@npm:0.4.1":
version: 0.4.1
resolution: "@lit-labs/context@npm:0.4.1"
dependencies:
"@lit/reactive-element": ^1.5.0
lit: ^2.7.0
checksum: 0f5bf4bd0beb4ff97c0df990997f0d56872682d8597e39f43cb5171aa3b7a53c7a0fc2e16f710282d7abe93c5d6ff6dd52b096d1682df277439cec47291b8023
languageName: node
linkType: hard

"@lit-labs/motion@npm:1.0.6":
version: 1.0.6
resolution: "@lit-labs/motion@npm:1.0.6"
Expand All @@ -2115,7 +2105,7 @@ __metadata:
languageName: node
linkType: hard

"@lit-labs/ssr-dom-shim@npm:^1.0.0, @lit-labs/ssr-dom-shim@npm:^1.1.0, @lit-labs/ssr-dom-shim@npm:^1.1.2-pre.0":
"@lit-labs/ssr-dom-shim@npm:^1.0.0, @lit-labs/ssr-dom-shim@npm:^1.1.0, @lit-labs/ssr-dom-shim@npm:^1.1.2":
version: 1.1.2
resolution: "@lit-labs/ssr-dom-shim@npm:1.1.2"
checksum: 73fd787893851d4ec4aaa5c775405ed2aae4ca0891b2dd3c973b32c2f4bf70ada5481dd0224e52b786d037aa8a00052186ad1623c44551affd66f6409cca8da6
Expand All @@ -2132,7 +2122,16 @@ __metadata:
languageName: node
linkType: hard

"@lit/reactive-element@npm:^1.3.0, @lit/reactive-element@npm:^1.5.0, @lit/reactive-element@npm:^1.6.0":
"@lit/context@npm:1.0.1":
version: 1.0.1
resolution: "@lit/context@npm:1.0.1"
dependencies:
"@lit/reactive-element": ^1.6.2 || ^2.0.0
checksum: 9f6115ecdb979de9a0a0837fbe5df9e87411b2ace608da449afdcf9abdd9e154247bfedb97297d655143f98613730ca15d5840b854f23486609c0207c91ab8cf
languageName: node
linkType: hard

"@lit/reactive-element@npm:^1.3.0, @lit/reactive-element@npm:^1.6.0, @lit/reactive-element@npm:^1.6.2":
version: 1.6.3
resolution: "@lit/reactive-element@npm:1.6.3"
dependencies:
Expand All @@ -2142,11 +2141,11 @@ __metadata:
linkType: hard

"@lit/reactive-element@npm:^2.0.0":
version: 2.0.0
resolution: "@lit/reactive-element@npm:2.0.0"
version: 2.0.1
resolution: "@lit/reactive-element@npm:2.0.1"
dependencies:
"@lit-labs/ssr-dom-shim": ^1.1.2-pre.0
checksum: afa12f1cf72e8735cb7eaa51d428610785ee796882ca52108310e75ac54bbf5690da718c8bf85d042060f98c139ff0d5efd54f677a9d3fc4d794ad2e0f7a12c5
"@lit-labs/ssr-dom-shim": ^1.1.2
checksum: e9cacc3743c28b7b417739ffb292288076df115d08d9e9a895e2879c7087938d50c6b8141986743535e06156efd1ca505c8cf6ef8702db99966d190df9f8e869
languageName: node
linkType: hard

Expand Down Expand Up @@ -9662,10 +9661,10 @@ __metadata:
"@fullcalendar/timegrid": 6.1.9
"@koa/cors": 4.0.0
"@lezer/highlight": 1.1.6
"@lit-labs/context": 0.4.1
"@lit-labs/motion": 1.0.6
"@lit-labs/observers": 2.0.1
"@lit-labs/virtualizer": 2.0.9
"@lit/context": 1.0.1
"@lokalise/node-api": 12.0.0
"@lrnwebcomponents/simple-tooltip": 7.0.18
"@material/chips": =14.0.0-canary.53b3cad2f.0
Expand Down Expand Up @@ -11474,7 +11473,7 @@ __metadata:
languageName: node
linkType: hard

"lit@npm:2.8.0, lit@npm:^2, lit@npm:^2.0.0, lit@npm:^2.0.0-rc.2, lit@npm:^2.2.1, lit@npm:^2.7.0, lit@npm:^2.7.4, lit@npm:^2.8.0":
"lit@npm:2.8.0, lit@npm:^2, lit@npm:^2.0.0, lit@npm:^2.0.0-rc.2, lit@npm:^2.2.1, lit@npm:^2.7.4, lit@npm:^2.8.0":
version: 2.8.0
resolution: "lit@npm:2.8.0"
dependencies:
Expand Down

0 comments on commit 17ad801

Please sign in to comment.