Skip to content

Commit feb653c

Browse files
committed
bump to we-applet 0.14.0
1 parent 4e1564c commit feb653c

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

package-lock.json

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

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@holochain/client": "^0.16.1",
2020
"@holochain-syn/core": "^0.12.1",
2121
"@holochain-syn/text-editor": "^0.12.0",
22-
"@lightningrodlabs/we-applet": "^0.12.2",
22+
"@lightningrodlabs/we-applet": "^0.14.0",
2323
"@lit/context": "^1.0.0",
2424
"@lit/localize": "^0.12.0",
2525
"@mdi/js": "^7.2.96",

ui/src/notebooks-app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class NotebooksApp extends LitElement {
153153
};
154154
case "block":
155155
throw new Error("Unknown applet-view block type");
156-
case "entry":
156+
case "attachable":
157157
switch (weClient.renderInfo.view.roleName) {
158158
case "notebooks":
159159
switch (weClient.renderInfo.view.integrityZomeName) {
@@ -164,7 +164,7 @@ export class NotebooksApp extends LitElement {
164164
return {
165165
view: {
166166
type: "note",
167-
noteHash: weClient.renderInfo.view.hrl[1],
167+
noteHash: weClient.renderInfo.view.hrlWithContext.hrl[1],
168168
},
169169
client: weClient.renderInfo.appletClient,
170170
profilesClient: weClient.renderInfo

ui/src/we-applet.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ import {
1111
WeClient,
1212
AppletServices,
1313
HrlWithContext,
14-
EntryInfo,
14+
AttachableInfo,
1515
AppletHash,
1616
WeServices,
17+
HrlLocation,
1718
} from "@lightningrodlabs/we-applet";
1819
import { msg } from "@lit/localize";
1920
import { mdiNotebook } from "@mdi/js";
@@ -34,32 +35,33 @@ export const appletServices: AppletServices = {
3435
note: {
3536
label: msg("Note"),
3637
icon_src: wrapPathInSvg(mdiNotebook),
37-
async create(attachToHrl: Hrl) {
38+
async create(attachToHrlWithContext: HrlWithContext) {
3839
const synStore = new SynStore(new SynClient(appletClient, "notebooks"));
3940

40-
const noteHash = await createNote(synStore, msg(`Note`), attachToHrl);
41+
const noteHash = await createNote(synStore, msg(`Note`), attachToHrlWithContext.hrl);
4142
const appInfo = await appletClient.appInfo();
4243
const dnaHash = (appInfo.cell_info.notebooks[0] as any)[
4344
CellType.Provisioned
4445
].cell_id[0];
45-
return {
46+
const hrlWithContext: HrlWithContext = {
4647
hrl: [dnaHash, noteHash],
4748
context: {},
48-
};
49+
}
50+
return hrlWithContext
4951
},
5052
},
5153
}),
5254
// Types of UI widgets/blocks that this Applet supports
5355
blockTypes: {},
54-
getEntryInfo: async (
56+
getAttachableInfo: async (
5557
appletClient: AppAgentClient,
5658
roleName: RoleName,
5759
integrityZomeName: ZomeName,
5860
entryType: string,
59-
hrl: Hrl
60-
): Promise<EntryInfo | undefined> => {
61+
hrlWithContext: HrlWithContext
62+
): Promise<AttachableInfo | undefined> => {
6163
const synClient = new SynClient(appletClient, "notebooks");
62-
const root = await synClient.getDocument(hrl[1]);
64+
const root = await synClient.getDocument(hrlWithContext.hrl[1]);
6365

6466
if (!root) return undefined;
6567

we_dev/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
},
7777
"source": {
7878
"type": "https",
79-
"url": "https://github.com/holochain-apps/gamez/releases/download/v0.3.3/gamez.webhapp"
79+
"url": "https://github.com/holochain-apps/gamez/releases/download/v0.3.6/gamez.webhapp"
8080
}
8181
},
8282
{
@@ -89,7 +89,7 @@
8989
},
9090
"source": {
9191
"type": "https",
92-
"url": "https://github.com/holochain-apps/kando/releases/download/v0.8.10/kando.webhapp"
92+
"url": "https://github.com/holochain-apps/kando/releases/download/v0.8.11/kando.webhapp"
9393
}
9494
}
9595
]

0 commit comments

Comments
 (0)