Skip to content

Commit

Permalink
bump lit and we-applet
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Dec 6, 2023
1 parent 47e26fb commit 22258d0
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 194 deletions.
186 changes: 9 additions & 177 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions ui/src/elements/how-comment.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -21,7 +21,7 @@ export class HowComment extends ScopedElementsMixin(LitElement) {
super();
}

@contextProvided({ context: howContext })
@consume({ context: howContext })
_store!: HowStore;

@property() comment: Comment | undefined;
Expand Down
6 changes: 3 additions & 3 deletions ui/src/elements/how-document.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions ui/src/elements/how-node.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -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<Segment>, cross?: boolean) {
Expand Down
4 changes: 2 additions & 2 deletions ui/src/elements/how-section.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -28,7 +28,7 @@ export class HowSection extends ScopedElementsMixin(LitElement) {
super();
}

@contextProvided({ context: howContext })
@consume({ context: howContext })
_store!: HowStore;

@property() section: Section | undefined;
Expand Down
3 changes: 1 addition & 2 deletions ui/src/elements/how-tree.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 2 additions & 2 deletions ui/src/elements/how-unit-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -23,7 +23,7 @@ export class HowUnitDetails extends ScopedElementsMixin(LitElement) {
@property() state = "";

/** Dependencies */
@contextProvided({ context: howContext })
@consume({ context: howContext })
_store!: HowStore;

open() {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/elements/how-unit-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/elements/how-unit.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 22258d0

Please sign in to comment.