From 22258d081de5173f136c44e504513af3b94ec1f0 Mon Sep 17 00:00:00 2001 From: Eric Harris-Braun Date: Wed, 6 Dec 2023 09:54:16 -0500 Subject: [PATCH] bump lit and we-applet --- package-lock.json | 186 ++-------------------------- ui/package.json | 2 +- ui/src/elements/how-comment.ts | 4 +- ui/src/elements/how-document.ts | 6 +- ui/src/elements/how-node.ts | 6 +- ui/src/elements/how-section.ts | 4 +- ui/src/elements/how-tree.ts | 3 +- ui/src/elements/how-unit-details.ts | 4 +- ui/src/elements/how-unit-dialog.ts | 2 +- ui/src/elements/how-unit.ts | 2 +- 10 files changed, 25 insertions(+), 194 deletions(-) diff --git a/package-lock.json b/package-lock.json index b08dd68..a10b26f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -771,136 +771,6 @@ "resolved": "https://registry.npmjs.org/@holo-host/identicon/-/identicon-0.1.0.tgz", "integrity": "sha512-Dn5pTV/m3XaK1Zvq3liw/vQUt7goM7Y84x2zUyH8cb9CNMs4kPCNHs3kalbJZ/ymzFvwcdiLwwNW8AKk+WWN5A==" }, - "node_modules/@holochain-open-dev/elements": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/elements/-/elements-0.7.0.tgz", - "integrity": "sha512-IW9mRlLywGTrT2v0SreQ/a32b3yqNIxEc+I+87++1BlvFAgohBVvo63/ot2c6/fEWx3Ot6pYn/7CqN5v3nf7lQ==", - "dependencies": { - "@holo-host/identicon": "^0.1.0", - "@holochain/client": "^0.16.0", - "@lit/localize": "^0.11.4", - "@mdi/js": "^7.1.96", - "@shoelace-style/shoelace": "^2.3.0", - "lit": "^2.6.1", - "prosemirror-commands": "^1.5.2", - "prosemirror-keymap": "^1.2.2", - "prosemirror-state": "^1.4.3", - "prosemirror-view": "^1.31.3" - } - }, - "node_modules/@holochain-open-dev/profiles": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/profiles/-/profiles-0.16.1.tgz", - "integrity": "sha512-tLGxH7dLOiwlw+ViIHJ2cls08/TbnbIgPyd8WjOQCAvY0a/bZSMe7aykZsj75OQDFziANpPLNgsUdLnmPFadfg==", - "dependencies": { - "@holochain-open-dev/elements": "^0.7.0", - "@holochain-open-dev/stores": "^0.6.0", - "@holochain-open-dev/utils": "^0.15.0", - "@holochain/client": "^0.16.0", - "@lit-labs/context": "^0.2.0", - "@lit/localize": "^0.11.2", - "@mdi/js": "^7.1.96", - "@shoelace-style/shoelace": "^2.3.0" - } - }, - "node_modules/@holochain-open-dev/profiles/node_modules/@holochain-open-dev/stores": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/stores/-/stores-0.6.0.tgz", - "integrity": "sha512-/j+VAym4/vjQA2ezbnQnvfkHRAVDU9CaLt4JalDskIKBlapEQaUmlPLCo2iyzrZ0pfQLQpuwOXVlVtOMN7MYcw==", - "dependencies": { - "@holochain-open-dev/utils": "^0.15.0", - "@holochain/client": "^0.16.0", - "lit-svelte-stores": "^0.2.1", - "svelte": "^3.53.1" - } - }, - "node_modules/@holochain-open-dev/stores": { - "version": "0.7.16", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/stores/-/stores-0.7.16.tgz", - "integrity": "sha512-hBiTq7d2fIgqMyhQHlyPWi9RMkfhjFOsQG+1MRSleIOZRPepp/IkFeg8yqjImbdEj9GgHkZQPV72JZyWAohqgg==", - "dependencies": { - "@alenaksu/json-viewer": "^2.0.1", - "@holochain-open-dev/utils": "^0.16.2", - "@holochain/client": "^0.16.0", - "@scoped-elements/cytoscape": "^0.2.0", - "@shoelace-style/shoelace": "^2.11.2", - "lit": "^3.0.2", - "lit-svelte-stores": "^0.3.0", - "svelte": "^3.53.1" - } - }, - "node_modules/@holochain-open-dev/stores/node_modules/@holochain-open-dev/utils": { - "version": "0.16.3", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/utils/-/utils-0.16.3.tgz", - "integrity": "sha512-mmn3Lo3bQAdPaPFUfjYj64CH/G5ywOuC9zFbF9XqZO3MyMsqWmvIJjVmgEDDCKQ8s/lMEUyZhhEOTLbhEw1Y5w==", - "dependencies": { - "@holochain/client": "^0.16.2", - "@msgpack/msgpack": "^2.7.2", - "blakejs": "^1.2.1", - "emittery": "^1.0.1", - "lodash-es": "^4.17.21", - "sort-keys": "^5.0.0" - } - }, - "node_modules/@holochain-open-dev/stores/node_modules/@lit/reactive-element": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.2.tgz", - "integrity": "sha512-SVOwLAWUQg3Ji1egtOt1UiFe4zdDpnWHyc5qctSceJ5XIu0Uc76YmGpIjZgx9YJ0XtdW0Jm507sDvjOu+HnB8w==", - "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.1.2" - } - }, - "node_modules/@holochain-open-dev/stores/node_modules/lit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", - "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", - "dependencies": { - "@lit/reactive-element": "^2.0.0", - "lit-element": "^4.0.0", - "lit-html": "^3.1.0" - } - }, - "node_modules/@holochain-open-dev/stores/node_modules/lit-element": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.2.tgz", - "integrity": "sha512-/W6WQZUa5VEXwC7H9tbtDMdSs9aWil3Ou8hU6z2cOKWbsm/tXPAcsoaHVEtrDo0zcOIE5GF6QgU55tlGL2Nihg==", - "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.1.2", - "@lit/reactive-element": "^2.0.0", - "lit-html": "^3.1.0" - } - }, - "node_modules/@holochain-open-dev/stores/node_modules/lit-html": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.0.tgz", - "integrity": "sha512-FwAjq3iNsaO6SOZXEIpeROlJLUlrbyMkn4iuv4f4u1H40Jw8wkeR/OUXZUHUoiYabGk8Y4Y0F/rgq+R4MrOLmA==", - "dependencies": { - "@types/trusted-types": "^2.0.2" - } - }, - "node_modules/@holochain-open-dev/stores/node_modules/lit-svelte-stores": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/lit-svelte-stores/-/lit-svelte-stores-0.3.2.tgz", - "integrity": "sha512-igOf4kFdpCTT+dtRJXbfhNWvNOn849MUfFJTQALE7LUsMLwaoCSvUa0DDFpTHqeMS4EjW5GEOycMy5AR+BH3PA==", - "dependencies": { - "lit": "^3.0.0", - "lodash-es": "^4.17.21", - "svelte": "^3.38.3" - } - }, - "node_modules/@holochain-open-dev/utils": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/utils/-/utils-0.15.2.tgz", - "integrity": "sha512-QW5l0R6tPQFxM4Jj+tJg5mbjJH+ejLbaCgAan3jLXGqEclwlDQAM2Qzq+yAmvju/F4ELduybjrZUqsV+jhouag==", - "dependencies": { - "@holochain/client": "^0.16.2", - "@msgpack/msgpack": "^2.7.2", - "blakejs": "^1.2.1", - "emittery": "^1.0.1", - "lodash-es": "^4.17.21", - "sort-keys": "^5.0.0" - } - }, "node_modules/@holochain-playground/cli": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@holochain-playground/cli/-/cli-0.1.1.tgz", @@ -911,9 +781,9 @@ } }, "node_modules/@holochain/client": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/@holochain/client/-/client-0.16.2.tgz", - "integrity": "sha512-1Msw6tSdCDI3f2UIdSAYtiAqxxdHt6ufmQSw+GEbvDaIjVXPQWi39IQe5Zzep4VPJoproyurrBRNG1l+/3YrjA==", + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@holochain/client/-/client-0.16.6.tgz", + "integrity": "sha512-p6Vt8Ka6bLNAgCOXKs+wwgSg9vF9ZLp6iEJaNcmv71wmtf3d8YuqCtQXn6fL7/IW/I/SxPHvlihjo9jstdeC7w==", "dependencies": { "@holochain/serialization": "^0.1.0-beta-rc.3", "@msgpack/msgpack": "^2.8.0", @@ -926,7 +796,7 @@ "ws": "^8.14.2" }, "engines": { - "node": ">=16.0.0 || >=18.0.0" + "node": ">=18.0.0 || >=20.0.0" } }, "node_modules/@holochain/serialization": { @@ -1050,30 +920,11 @@ } }, "node_modules/@lightningrodlabs/we-applet": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-applet/-/we-applet-0.11.0.tgz", - "integrity": "sha512-z5axDycxDIsWxFWb1GOe1T30VJPhzbKtDVdt2z+8Co6CCCUrPFL07yDobNOnu7071H9TdKMhBYM+Ql1OdG9HCA==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-applet/-/we-applet-0.12.0.tgz", + "integrity": "sha512-pDUUNIehlk6RouYPGWgx2pssYfBp8cwRrvhFNnjO4cpUWg7YGLtAUwfVaTaG6q2BPZL3ZcjNruQHHy2bQu6RRQ==", "dependencies": { - "@holochain-open-dev/elements": "^0.7.0", - "@holochain-open-dev/profiles": "^0.16.1", - "@holochain-open-dev/stores": "^0.7.4", - "@holochain-open-dev/utils": "^0.15.0", - "@holochain/client": "^0.16.0", - "@lit-labs/context": "^0.2.0", - "@lit/localize": "^0.11.4", - "@mdi/js": "^7.2.0", - "@msgpack/msgpack": "^3.0.0-beta2", - "@shoelace-style/shoelace": "^2.3.0", - "js-base64": "^3.7.5", - "lit": "^2.6.0" - } - }, - "node_modules/@lightningrodlabs/we-applet/node_modules/@msgpack/msgpack": { - "version": "3.0.0-beta2", - "resolved": "https://registry.npmjs.org/@msgpack/msgpack/-/msgpack-3.0.0-beta2.tgz", - "integrity": "sha512-y+l1PNV0XDyY8sM3YtuMLK5vE3/hkfId+Do8pLo/OPxfxuFAUwcGz3oiiUuV46/aBpwTzZ+mRWVMtlSKbradhw==", - "engines": { - "node": ">= 14" + "@holochain/client": "0.16.6" } }, "node_modules/@lit-labs/context": { @@ -7149,25 +7000,6 @@ "@types/trusted-types": "^2.0.2" } }, - "node_modules/lit-svelte-stores": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/lit-svelte-stores/-/lit-svelte-stores-0.2.5.tgz", - "integrity": "sha512-Ny8GtvQB1/fiJwC41CsnNYSO2P/I0Lyd9mCxqSanGBE9EWI1fD2qg1tADN8Vz8hX1plO1q0ZODyHdUf90/ADjg==", - "dependencies": { - "@lit-labs/task": "^1.1.2", - "lit": "^2.0.0", - "lodash-es": "^4.17.21", - "svelte": "^3.38.3" - } - }, - "node_modules/lit-svelte-stores/node_modules/@lit-labs/task": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@lit-labs/task/-/task-1.1.3.tgz", - "integrity": "sha512-Ta5rdbmuDaYAZwlkjezCoqcnn+J54XBAGI0X4PsCjycY1nJ/Ntbd+YY/eMdfnu777qrvznuqanTa4r1ptPXXxA==", - "dependencies": { - "@lit/reactive-element": "^1.1.0" - } - }, "node_modules/locate-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", @@ -9944,7 +9776,7 @@ "@holochain-open-dev/stores": "^0.8.3", "@holochain-open-dev/utils": "^0.16.0", "@holochain/client": "0.16", - "@lightningrodlabs/we-applet": "0.11.0", + "@lightningrodlabs/we-applet": "0.12.0", "@lit-labs/context": "^0.2.0", "@lit/localize": "^0.11.4", "@open-wc/scoped-elements": "^2.1.4", diff --git a/ui/package.json b/ui/package.json index 5ecdf56..0d1d400 100644 --- a/ui/package.json +++ b/ui/package.json @@ -21,7 +21,7 @@ "@holochain-open-dev/stores": "^0.8.3", "@holochain-open-dev/utils": "^0.16.0", "@holochain/client": "0.16", - "@lightningrodlabs/we-applet": "0.11.0", + "@lightningrodlabs/we-applet": "0.12.0", "@lit-labs/context": "^0.2.0", "@lit/localize": "^0.11.4", "lit": "^2.7.0", diff --git a/ui/src/elements/how-comment.ts b/ui/src/elements/how-comment.ts index 4d19d49..5554251 100644 --- a/ui/src/elements/how-comment.ts +++ b/ui/src/elements/how-comment.ts @@ -1,6 +1,6 @@ import {css, html, LitElement, TemplateResult} from "lit"; import {property} from "lit/decorators.js"; -import { contextProvided } from "@lit-labs/context"; +import { consume } from '@lit/context'; import {sharedStyles} from "../sharedStyles"; import {ScopedElementsMixin} from "@open-wc/scoped-elements"; @@ -21,7 +21,7 @@ export class HowComment extends ScopedElementsMixin(LitElement) { super(); } - @contextProvided({ context: howContext }) + @consume({ context: howContext }) _store!: HowStore; @property() comment: Comment | undefined; diff --git a/ui/src/elements/how-document.ts b/ui/src/elements/how-document.ts index 141ef17..1beacf0 100644 --- a/ui/src/elements/how-document.ts +++ b/ui/src/elements/how-document.ts @@ -1,8 +1,8 @@ import {css, html, LitElement, TemplateResult} from "lit"; import {property, query, state} from "lit/decorators.js"; -import { contextProvided } from "@lit-labs/context"; -import {StoreSubscriber} from "lit-svelte-stores"; +import { consume } from '@lit/context'; +import { StoreSubscriber } from "@holochain-open-dev/stores"; import {sharedStyles} from "../sharedStyles"; import {EntryHashB64, encodeHashToBase64} from "@holochain/client"; @@ -47,7 +47,7 @@ import { CommentControl, Control } from "../controls"; private _newSectionDialog!: HowNewSectionDialog; - @contextProvided({ context: howContext }) + @consume({ context: howContext }) _store!: HowStore; _documents = new StoreSubscriber(this, () => this._store.documents); diff --git a/ui/src/elements/how-node.ts b/ui/src/elements/how-node.ts index 1af1831..75c28a4 100644 --- a/ui/src/elements/how-node.ts +++ b/ui/src/elements/how-node.ts @@ -1,11 +1,11 @@ import {css, html, LitElement} from "lit"; import {property, query} from "lit/decorators.js"; -import { contextProvided } from "@lit-labs/context"; +import { consume } from '@lit/context'; import {sharedStyles} from "../sharedStyles"; import {Unit, DocType, howContext, Document, DocumentOutput, SysState, Progress} from "../types"; import {HowStore} from "../how.store"; import {ScopedElementsMixin} from "@open-wc/scoped-elements"; -import { StoreSubscriber } from "lit-svelte-stores"; +import { StoreSubscriber } from "@holochain-open-dev/stores"; import {unsafeHTML} from "lit/directives/unsafe-html.js"; import { aliveImage } from "../images"; const angleInRadians = (angleInDegrees: number) => (angleInDegrees - 90) * (Math.PI / 180.0); @@ -53,7 +53,7 @@ export class HowNode extends ScopedElementsMixin(LitElement) { @property() state:string = ""; @property() progress:Progress| undefined = undefined; - @contextProvided({ context: howContext }) + @consume({ context: howContext }) _store!: HowStore; circle(segments: Array, cross?: boolean) { diff --git a/ui/src/elements/how-section.ts b/ui/src/elements/how-section.ts index 90fc133..077dbc5 100644 --- a/ui/src/elements/how-section.ts +++ b/ui/src/elements/how-section.ts @@ -1,7 +1,7 @@ import {css, html, LitElement, TemplateResult} from "lit"; import {until} from 'lit-html/directives/until.js'; import {property, query, state} from "lit/decorators.js"; -import { contextProvided } from "@lit-labs/context"; +import { consume } from '@lit/context'; import {sharedStyles} from "../sharedStyles"; import {ScopedElementsMixin} from "@open-wc/scoped-elements"; @@ -28,7 +28,7 @@ export class HowSection extends ScopedElementsMixin(LitElement) { super(); } - @contextProvided({ context: howContext }) + @consume({ context: howContext }) _store!: HowStore; @property() section: Section | undefined; diff --git a/ui/src/elements/how-tree.ts b/ui/src/elements/how-tree.ts index ecc66d6..92da511 100644 --- a/ui/src/elements/how-tree.ts +++ b/ui/src/elements/how-tree.ts @@ -1,8 +1,7 @@ import {css, html, LitElement} from "lit"; import {property, query, state} from "lit/decorators.js"; -import { contextProvided } from "@lit-labs/context"; -import {StoreSubscriber} from "lit-svelte-stores"; +import { StoreSubscriber } from '@holochain-open-dev/stores'; import {sharedStyles} from "../sharedStyles"; import {Node, howContext, UnitInfo} from "../types"; diff --git a/ui/src/elements/how-unit-details.ts b/ui/src/elements/how-unit-details.ts index 17b34b8..b053d0c 100644 --- a/ui/src/elements/how-unit-details.ts +++ b/ui/src/elements/how-unit-details.ts @@ -2,7 +2,7 @@ import {css, html, LitElement} from "lit"; import {property} from "lit/decorators.js"; import {sharedStyles} from "../sharedStyles"; -import { contextProvided } from "@lit-labs/context"; +import { consume } from '@lit/context'; import {ScopedElementsMixin} from "@open-wc/scoped-elements"; import {HowStore} from "../how.store"; import {Unit, howContext, Dictionary, Node} from "../types"; @@ -23,7 +23,7 @@ export class HowUnitDetails extends ScopedElementsMixin(LitElement) { @property() state = ""; /** Dependencies */ - @contextProvided({ context: howContext }) + @consume({ context: howContext }) _store!: HowStore; open() { diff --git a/ui/src/elements/how-unit-dialog.ts b/ui/src/elements/how-unit-dialog.ts index 8a5f6d8..6f17a7e 100644 --- a/ui/src/elements/how-unit-dialog.ts +++ b/ui/src/elements/how-unit-dialog.ts @@ -15,7 +15,7 @@ import { ListItem, } from "@scoped-elements/material-web"; import '@holochain-open-dev/profiles/dist/elements/search-agent.js'; -import { StoreSubscriber } from "lit-svelte-stores"; +import { StoreSubscriber } from '@holochain-open-dev/stores'; import { consume } from '@lit-labs/context'; const PROCESS_TYPES = ['define', 'refine', 'align'] as const; diff --git a/ui/src/elements/how-unit.ts b/ui/src/elements/how-unit.ts index 7457b1e..4b8d970 100644 --- a/ui/src/elements/how-unit.ts +++ b/ui/src/elements/how-unit.ts @@ -1,7 +1,7 @@ import {css, html, LitElement} from "lit"; import {property, query, state} from "lit/decorators.js"; -import {StoreSubscriber} from "lit-svelte-stores"; +import { StoreSubscriber } from '@holochain-open-dev/stores'; import {sharedStyles} from "../sharedStyles"; import {Unit, DocType, howContext, SysState, Document, UnitInfo} from "../types";