diff --git a/package-lock.json b/package-lock.json index e37b02e..80ce470 100644 --- a/package-lock.json +++ b/package-lock.json @@ -775,9 +775,9 @@ } }, "node_modules/@lightningrodlabs/we-dev-cli": { - "version": "0.10.5-alpha.6", - "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-dev-cli/-/we-dev-cli-0.10.5-alpha.6.tgz", - "integrity": "sha512-wbhMIfFG+klw5vKQISt5z6HQ9+pZwSyohEEEqZYqrT8t/VVKKb8mXAqX3T1+9Kg/9gXDcoF9DcayjPp2pBsHog==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-dev-cli/-/we-dev-cli-0.10.5.tgz", + "integrity": "sha512-rXonUU0A8uekzijTuraDSKB4NEOQgaL20mZrGafDJd4cTxXl+KlP8qsCZNcXEo8g4IUgHR3k0DRDggd9vpwByw==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -862,9 +862,9 @@ } }, "node_modules/@lightningrodlabs/we-elements": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-elements/-/we-elements-0.4.3.tgz", - "integrity": "sha512-Oyda/0hC8lg5yeS/Xw2aeQi0YQnMOnU4Ph8h1YYC+s6Um7MPtmwEi/cZln63UidCQ+ezxPUDEb1L0cFxm9LkzA==", + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-elements/-/we-elements-0.4.5.tgz", + "integrity": "sha512-xn07+JYXmG3J6OWXmtebtHStcAXOtgDinppI39An8YvllWAiX4EGd6N4/76ekVlQ//5oRQEqT9I4ghaOLxDN8A==", "dependencies": { "@holochain-open-dev/elements": "^0.8.4", "@holochain-open-dev/profiles": "^0.17.3", @@ -13437,8 +13437,8 @@ "@holochain-open-dev/utils": "^0.16.4", "@holochain-syn/core": "^0.12.1", "@holochain/client": "^0.16.7", - "@lightningrodlabs/we-applet": "^0.15.0-alpha.4", - "@lightningrodlabs/we-elements": "^0.4.3", + "@lightningrodlabs/we-applet": "^0.15.0", + "@lightningrodlabs/we-elements": "^0.4.5", "@mdi/js": "^7.1.96", "@shoelace-style/shoelace": "^2.13.1", "@ts-stack/markdown": "^1.5.0", @@ -13455,7 +13455,7 @@ "uuid": "^8.3.2" }, "devDependencies": { - "@lightningrodlabs/we-dev-cli": "^0.10.5-alpha.6", + "@lightningrodlabs/we-dev-cli": "^0.10.5", "@sveltejs/vite-plugin-svelte": "^2.0.2", "@tsconfig/svelte": "^3.0.0", "bestzip": "^2.2.0", @@ -13486,6 +13486,35 @@ "node": ">=18.0.0 || >=20.0.0" } }, + "ui/node_modules/@lightningrodlabs/we-applet": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-applet/-/we-applet-0.15.0.tgz", + "integrity": "sha512-CjSB5G0j5atpP1PWaFxI1b9lZKIxYDU5FqW2cgSR8ThbOMLCEhDNhdFp/P9V1HsFk2Wqi67hTqnz9xS9TEi4dA==", + "dependencies": { + "@holochain/client": "0.16.6", + "@msgpack/msgpack": "^2.7.2", + "js-base64": "^3.7.2" + } + }, + "ui/node_modules/@lightningrodlabs/we-applet/node_modules/@holochain/client": { + "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", + "@tauri-apps/api": "^1.4.0", + "emittery": "^1.0.1", + "isomorphic-ws": "^5.0.0", + "js-base64": "^3.7.5", + "libsodium-wrappers": "^0.7.13", + "lodash-es": "^4.17.21", + "ws": "^8.14.2" + }, + "engines": { + "node": ">=18.0.0 || >=20.0.0" + } + }, "ui/node_modules/@tsconfig/svelte": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-3.0.0.tgz", diff --git a/ui/package.json b/ui/package.json index d3abe6d..b522873 100644 --- a/ui/package.json +++ b/ui/package.json @@ -15,8 +15,8 @@ "@holochain-open-dev/utils": "^0.16.4", "@holochain-syn/core": "^0.12.1", "@holochain/client": "^0.16.7", - "@lightningrodlabs/we-applet": "^0.15.0-alpha.4", - "@lightningrodlabs/we-elements": "^0.4.3", + "@lightningrodlabs/we-applet": "^0.15.0", + "@lightningrodlabs/we-elements": "^0.4.5", "@mdi/js": "^7.1.96", "@ts-stack/markdown": "^1.5.0", "lodash": "^4.17.21", @@ -33,7 +33,7 @@ "highlight.js": "^11.9.0" }, "devDependencies": { - "@lightningrodlabs/we-dev-cli": "^0.10.5-alpha.6", + "@lightningrodlabs/we-dev-cli": "^0.10.5", "@sveltejs/vite-plugin-svelte": "^2.0.2", "@tsconfig/svelte": "^3.0.0", "bestzip": "^2.2.0", diff --git a/ui/src/AboutDialog.svelte b/ui/src/AboutDialog.svelte index d1d27e7..52e57a4 100644 --- a/ui/src/AboutDialog.svelte +++ b/ui/src/AboutDialog.svelte @@ -78,7 +78,7 @@ - +

KanDo! is a demonstration Holochain app built by the Holochain Foundation.

Developers: diff --git a/ui/src/AttachmentsList.svelte b/ui/src/AttachmentsList.svelte index 112f8bc..b94022e 100644 --- a/ui/src/AttachmentsList.svelte +++ b/ui/src/AttachmentsList.svelte @@ -16,18 +16,17 @@ const { getStore } :any = getContext("store"); let store: KanDoStore = getStore(); let embedLink - let xxx: WeClient -{#if embedLink} -

+ src={weaveUrlFromWal(hrlB64WithContextToRaw(attachments[embedLink]),false)} + closable + on:open-in-sidebar={() => embedLink = -1} + on:close={() => embedLink = -1} + > {/if}
{#each attachments as attachment, index} @@ -43,9 +42,8 @@ on:click={async (e)=>{ e.stopPropagation() try { - embedLink = weaveUrlFromWal(hrlWithContext,false) - xxx = store.weClient - //await store.weClient.openHrl(hrlWithContext) +// embedLink = index + await store.weClient.openHrl(hrlWithContext) } catch(e) { alert(`Error opening link: ${e}`) } @@ -86,14 +84,8 @@ border-radius:4px; } .embed { - width: 80%; - height: 80%; - background-color: white; - padding: 5px; position: fixed; - top: 99px; - border: solid 1px; - display: flex; - flex-direction: column; + top: 84px; + z-index: 100; }