From f19c2ab1b935e3bb117cb6a27be28d84307a4bb6 Mon Sep 17 00:00:00 2001 From: Eric Harris-Braun Date: Tue, 5 Dec 2023 15:27:35 -0500 Subject: [PATCH] update profiles, and now add tree meta document --- package-lock.json | 702 ++++++++++++++++++++++++------ ui/package.json | 13 +- ui/src/elements/how-agent-list.ts | 7 +- ui/src/elements/how-controller.ts | 9 +- ui/src/elements/how-tree.ts | 6 +- ui/src/elements/how-unit.ts | 8 +- ui/src/holochain-app.ts | 4 +- ui/src/how.store.ts | 17 +- ui/src/initHolochain.ts | 15 + ui/src/initSimple.ts | 15 + ui/src/types.ts | 1 + 11 files changed, 648 insertions(+), 149 deletions(-) diff --git a/package-lock.json b/package-lock.json index e57c552..b08dd68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,13 +21,21 @@ "npm": ">=7.0.0" } }, + "node_modules/@alenaksu/json-viewer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@alenaksu/json-viewer/-/json-viewer-2.0.1.tgz", + "integrity": "sha512-M6rN1bcuSGfar6ND9fFASBkez0UcWOUxMiwm2i9jlPBrpjOHOz0/utMgZhfrsgfyFPZ1H1gzfU8auJkYO1mq/g==", + "dependencies": { + "lit": "^2.3.1" + } + }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", + "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" }, "engines": { @@ -35,12 +43,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.5.tgz", + "integrity": "sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==", "dev": true, "dependencies": { - "@babel/types": "^7.23.0", + "@babel/types": "^7.23.5", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -96,9 +104,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -114,9 +122,9 @@ } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", @@ -128,9 +136,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", - "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz", + "integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -154,19 +162,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", - "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz", + "integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.5", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", + "@babel/parser": "^7.23.5", + "@babel/types": "^7.23.5", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -175,12 +183,12 @@ } }, "node_modules/@babel/types": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", - "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz", + "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, @@ -188,6 +196,28 @@ "node": ">=6.9.0" } }, + "node_modules/@bitgo/blake2b": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@bitgo/blake2b/-/blake2b-3.2.4.tgz", + "integrity": "sha512-46PEgEVPxecNJ/xczggIllSxIkFIvvbVM0OfIDdNJ5qpFHUeBCkNIiGdzC3fYZlsv7bVTdUZOj79GcFBLMYBqA==", + "dependencies": { + "@bitgo/blake2b-wasm": "^3.2.3", + "nanoassert": "^2.0.0" + } + }, + "node_modules/@bitgo/blake2b-wasm": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@bitgo/blake2b-wasm/-/blake2b-wasm-3.2.3.tgz", + "integrity": "sha512-NaurBrMaEpjfg7EdUJgW/c6byt27O6q1ZaxB5Ita10MjjYjUu0SyYF4q7JPNxpHF/lMxb0YZakOxigbDBu9Jjw==", + "dependencies": { + "nanoassert": "^1.0.0" + } + }, + "node_modules/@bitgo/blake2b-wasm/node_modules/nanoassert": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nanoassert/-/nanoassert-1.1.0.tgz", + "integrity": "sha512-C40jQ3NzfkP53NsO8kEOFd79p4b9kDXQMwgiY1z8ZwrDZgUyom0AHwGegF4Dm99L+YoYhuaB0ceerUcXmqr1rQ==" + }, "node_modules/@braintree/sanitize-url": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-3.1.0.tgz", @@ -224,11 +254,11 @@ } }, "node_modules/@ctrl/tinycolor": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-3.6.0.tgz", - "integrity": "sha512-/Z3l6pXthq0JvMYdUFyX9j0MaCltlIn6mfh9jLyQwg5aPKxkyNa0PTHtU1AlFXLNk55ZuAeJRcpvq+tmLfKmaQ==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-4.0.2.tgz", + "integrity": "sha512-fKQinXE9pJ83J1n+C3rDl2xNLJwfoYNvXLRy5cYZA9hBJJw2q+sbb/AOSNKmLxnTWyNTmy4994dueSwP4opi5g==", "engines": { - "node": ">=10" + "node": ">=14" } }, "node_modules/@dabh/diagnostics": { @@ -694,18 +724,27 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.2.4.tgz", - "integrity": "sha512-SQOeVbMwb1di+mVWWJLpsUTToKfqVNioXys011beCAhyOIFtS+GQoW4EQSneuxzmQKddExDwQ+X0hLl4lJJaSQ==" + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.1.tgz", + "integrity": "sha512-QgcKYwzcc8vvZ4n/5uklchy8KVdjJwcOeI+HnnTNclJjs2nYsy23DOCf+sSV1kBwD9yDAoVKCkv/gEPzgQU3Pw==", + "dependencies": { + "@floating-ui/utils": "^0.1.3" + } }, "node_modules/@floating-ui/dom": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.2.5.tgz", - "integrity": "sha512-+sAUfpQ3Frz+VCbPCqj+cZzvEESy3fjSeT/pDWkYCWOBXYNNKZfuVsHuv8/JO2zze8+Eb/Q7a6hZVgzS81fLbQ==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz", + "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==", "dependencies": { - "@floating-ui/core": "^1.2.4" + "@floating-ui/core": "^1.4.2", + "@floating-ui/utils": "^0.1.3" } }, + "node_modules/@floating-ui/utils": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz", + "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==" + }, "node_modules/@fortawesome/fontawesome-common-types": { "version": "6.4.2", "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.4.2.tgz", @@ -776,17 +815,79 @@ } }, "node_modules/@holochain-open-dev/stores": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/stores/-/stores-0.7.3.tgz", - "integrity": "sha512-+O5knB/hD+ojAd3NYVeeXHHNXa7NvOT1Mit07J7jj6czhODPhF0Sv5PGihsu0p+a+n9d+yUSwfOGlVHajrHf4Q==", + "version": "0.7.16", + "resolved": "https://registry.npmjs.org/@holochain-open-dev/stores/-/stores-0.7.16.tgz", + "integrity": "sha512-hBiTq7d2fIgqMyhQHlyPWi9RMkfhjFOsQG+1MRSleIOZRPepp/IkFeg8yqjImbdEj9GgHkZQPV72JZyWAohqgg==", "dependencies": { - "@holochain-open-dev/utils": "^0.15.0", + "@alenaksu/json-viewer": "^2.0.1", + "@holochain-open-dev/utils": "^0.16.2", "@holochain/client": "^0.16.0", - "console-log-tree": "^1.2.1", - "lit-svelte-stores": "^0.2.1", + "@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", @@ -949,13 +1050,13 @@ } }, "node_modules/@lightningrodlabs/we-applet": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-applet/-/we-applet-0.9.0.tgz", - "integrity": "sha512-eD1i4tzwb68Lyh0hz4Yb6ltNf7Ux1lOx64K9juIgobX/UwvmaU0FHuW5hacXcql4jUXXHrN9bp4+0zwpLbJKxQ==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@lightningrodlabs/we-applet/-/we-applet-0.11.0.tgz", + "integrity": "sha512-z5axDycxDIsWxFWb1GOe1T30VJPhzbKtDVdt2z+8Co6CCCUrPFL07yDobNOnu7071H9TdKMhBYM+Ql1OdG9HCA==", "dependencies": { "@holochain-open-dev/elements": "^0.7.0", "@holochain-open-dev/profiles": "^0.16.1", - "@holochain-open-dev/stores": "^0.7.2", + "@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", @@ -984,22 +1085,25 @@ "lit": "^2.5.0" } }, - "node_modules/@lit-labs/react": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@lit-labs/react/-/react-1.1.1.tgz", - "integrity": "sha512-9TC+/ZWb6BJlWCyUr14FKFlaGnyKpeEDorufXozQgke/VoVrslUQNaL7nBmrAWdNrmzx5jWgi8lFmWwrxMjnlA==" - }, "node_modules/@lit-labs/ssr-dom-shim": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.1.2.tgz", + "integrity": "sha512-jnOD+/+dSrfTWYfSXBXlo5l5f0q1UuJo3tkbMDCYA2lKUYq79jaxqtGEvnRoh049nt1vdo1+45RinipU6FGY2g==" + }, + "node_modules/@lit/context": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.1.0.tgz", - "integrity": "sha512-92uQ5ARf7UXYrzaFcAX3T2rTvaS9Z1//ukV+DqjACM4c8s0ZBQd7ayJU5Dh2AFLD/Ayuyz4uMmxQec8q3U4Ong==" + "resolved": "https://registry.npmjs.org/@lit/context/-/context-1.1.0.tgz", + "integrity": "sha512-fCyv4dsH05wCNm3AKbB+PdYbXGJd/XT8OOwo4hVmD4COq5wOWJlQreGAMDvmHZ7osqxuu06Y4nmP6ooXpN7ErA==", + "dependencies": { + "@lit/reactive-element": "^1.6.2 || ^2.0.0" + } }, - "node_modules/@lit-labs/task": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@lit-labs/task/-/task-2.1.0.tgz", - "integrity": "sha512-T22/3sFQEpOTXlO4Bjpn4oOH/1duhRzbO6rV+eZ1zwr3eqpH8Qmy1H4I8LDfGOHc/GOeFnde2U1Xvji0pxIZeQ==", + "node_modules/@lit/context/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/reactive-element": "^1.1.0" + "@lit-labs/ssr-dom-shim": "^1.1.2" } }, "node_modules/@lit/localize": { @@ -1045,6 +1149,14 @@ "node": ">=4.2.0" } }, + "node_modules/@lit/react": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@lit/react/-/react-1.0.2.tgz", + "integrity": "sha512-UJ5TQ46DPcJDIzyjbwbj6Iye0XcpCxL2yb03zcWq1BpWchpXS3Z0BPVhg7zDfZLF6JemPml8u/gt/+KwJ/23sg==", + "peerDependencies": { + "@types/react": "17 || 18" + } + }, "node_modules/@lit/reactive-element": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-1.6.1.tgz", @@ -2458,6 +2570,22 @@ "resolved": "https://registry.npmjs.org/@sap-theming/theming-base-content/-/theming-base-content-11.6.8.tgz", "integrity": "sha512-LRYvqVeqFYCqhB4EMbFslQpgRLrYyOOsacWI0JZbWlnvRkbF4/pzKpr4ULyVPFp26CrwXhUZJeSSAa3/8KS6iw==" }, + "node_modules/@scoped-elements/cytoscape": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@scoped-elements/cytoscape/-/cytoscape-0.2.0.tgz", + "integrity": "sha512-HrC7Pc1SCIHrDTUE883ArvljUENH9FW9qxRwzeXF8LxW5OP2+SaNJSSBaoPztmI15YHOL0aN7uuG9ozRn0EHpA==", + "dependencies": { + "@open-wc/scoped-elements": "^2.0.1", + "@types/cytoscape": "^3.19.0", + "cytoscape": "^3.20.0", + "cytoscape-cola": "^2.5.0", + "cytoscape-cose-bilkent": "^4.1.0", + "cytoscape-dagre": "^2.3.2", + "cytoscape-klay": "^3.1.4", + "lit": "^2.0.2", + "lodash-es": "^4.17.21" + } + }, "node_modules/@scoped-elements/material-web": { "version": "0.0.19", "resolved": "https://registry.npmjs.org/@scoped-elements/material-web/-/material-web-0.0.19.tgz", @@ -2507,22 +2635,22 @@ } }, "node_modules/@shoelace-style/localize": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.1.tgz", - "integrity": "sha512-NkM/hj3Js6yXCU9WxhsyxRUdyqUUUl/BSvIluUMptQteUWGOJaoyP1iMbOMqO544DYMzBfnoCw66ZHkGuTdKgA==" + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.2.tgz", + "integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q==" }, "node_modules/@shoelace-style/shoelace": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@shoelace-style/shoelace/-/shoelace-2.7.0.tgz", - "integrity": "sha512-w7FnHqBoYR6Ne42WZPW+bIJGIAGsUZgxF3WA9LLfqn3+Q4NOQ4r5jl/DEfsQmRUTmY0nUrs4WGO1CeTrhv6taA==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@shoelace-style/shoelace/-/shoelace-2.12.0.tgz", + "integrity": "sha512-1Amirj0c5WLkymDcP6ZQmBfMC6zTNmGGK7/mjmGq4yhljrVaECVlBoKm0tfmo1jd3r8XJ8xYbQ8cxPAlwiDDvw==", "dependencies": { - "@ctrl/tinycolor": "^3.5.0", - "@floating-ui/dom": "^1.2.1", - "@lit-labs/react": "^1.1.1", + "@ctrl/tinycolor": "^4.0.2", + "@floating-ui/dom": "^1.5.3", + "@lit/react": "^1.0.0", "@shoelace-style/animations": "^1.1.0", - "@shoelace-style/localize": "^3.1.1", + "@shoelace-style/localize": "^3.1.2", "composed-offset-position": "^0.0.4", - "lit": "^2.7.5", + "lit": "^3.0.0", "qr-creator": "^1.0.0" }, "engines": { @@ -2533,6 +2661,42 @@ "url": "https://github.com/sponsors/claviska" } }, + "node_modules/@shoelace-style/shoelace/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/@shoelace-style/shoelace/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/@shoelace-style/shoelace/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/@shoelace-style/shoelace/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/@tauri-apps/api": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-1.4.0.tgz", @@ -2575,13 +2739,10 @@ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==" }, - "node_modules/@types/dropzone": { - "version": "5.7.4", - "resolved": "https://registry.npmjs.org/@types/dropzone/-/dropzone-5.7.4.tgz", - "integrity": "sha512-9kLJ2YAmVRWYrHvDoa95pQzHF0HUMKcznsS7FM1Mht5Yieec+HMB6Ybfm+ocvLjvFCvgyYGFTp4nzNFxhZmo3g==", - "dependencies": { - "@types/jquery": "*" - } + "node_modules/@types/cytoscape": { + "version": "3.19.16", + "resolved": "https://registry.npmjs.org/@types/cytoscape/-/cytoscape-3.19.16.tgz", + "integrity": "sha512-A3zkjaZ6cOGyqEvrVuC1YUgiRSJhDZOj8Qhd1ALH2/+YxH2za1BOmR4RWQsKYHsc+aMP/IWoqg1COuUbZ39t/g==" }, "node_modules/@types/javascript-time-ago": { "version": "2.0.3", @@ -2637,11 +2798,28 @@ "@types/qunit": "*" } }, + "node_modules/@types/prop-types": { + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==", + "peer": true + }, "node_modules/@types/qunit": { "version": "2.19.6", "resolved": "https://registry.npmjs.org/@types/qunit/-/qunit-2.19.6.tgz", "integrity": "sha512-bz9STa6EHurtpSfn5cNiScBladlw43bM+7luQA985Kd9YlF4dZaLmKt3c5/oSyN1AWAl50YBpqTq0BxCP64nGg==" }, + "node_modules/@types/react": { + "version": "18.2.42", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.42.tgz", + "integrity": "sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==", + "peer": true, + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, "node_modules/@types/sanitize-html": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/@types/sanitize-html/-/sanitize-html-2.6.2.tgz", @@ -2676,6 +2854,12 @@ "entities": "^2.0.0" } }, + "node_modules/@types/scheduler": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", + "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==", + "peer": true + }, "node_modules/@types/semver": { "version": "7.3.13", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", @@ -3820,17 +4004,20 @@ "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", "dev": true }, - "node_modules/console-log-tree": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/console-log-tree/-/console-log-tree-1.2.1.tgz", - "integrity": "sha512-qIr67nbaNUfhRoa0uz05Wt8TPA1fpaLdw6EZ1y3dbiHhIJ46Q+ciaJxYPx0MQGHZZKbbH4walRTZZve7WDHBxg==" - }, "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, + "node_modules/cose-base": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", + "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", + "dependencies": { + "layout-base": "^1.0.0" + } + }, "node_modules/crc-32": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", @@ -3875,6 +4062,68 @@ "node": ">= 8" } }, + "node_modules/csstype": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==", + "peer": true + }, + "node_modules/cytoscape": { + "version": "3.27.0", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.27.0.tgz", + "integrity": "sha512-pPZJilfX9BxESwujODz5pydeGi+FBrXq1rcaB1mfhFXXFJ9GjE6CNndAk+8jPzoXGD+16LtSS4xlYEIUiW4Abg==", + "dependencies": { + "heap": "^0.2.6", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cytoscape-cola": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/cytoscape-cola/-/cytoscape-cola-2.5.1.tgz", + "integrity": "sha512-4/2S9bW1LvdsEPmxXN1OEAPFPbk7DvCx2c9d+TblkQAAvptGaSgtPWCByTEGgT8UxCxcVqes2aFPO5pzwo7R2w==", + "dependencies": { + "webcola": "^3.4.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-cose-bilkent": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", + "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", + "dependencies": { + "cose-base": "^1.0.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-dagre": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cytoscape-dagre/-/cytoscape-dagre-2.5.0.tgz", + "integrity": "sha512-VG2Knemmshop4kh5fpLO27rYcyUaaDkRw+6PiX4bstpB+QFt0p2oauMrsjVbUamGWQ6YNavh7x2em2uZlzV44g==", + "dependencies": { + "dagre": "^0.8.5" + }, + "peerDependencies": { + "cytoscape": "^3.2.22" + } + }, + "node_modules/cytoscape-klay": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/cytoscape-klay/-/cytoscape-klay-3.1.4.tgz", + "integrity": "sha512-VwPj0VR25GPfy6qXVQRi/MYlZM/zkdvRhHlgqbM//lSvstgM6fhp3ik/uM8Wr8nlhskfqz/M1fIDmR6UckbS2A==", + "dependencies": { + "klayjs": "^0.4.1" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, "node_modules/d3": { "version": "7.8.2", "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.2.tgz", @@ -4784,11 +5033,6 @@ "ignored": "bin/ignored" } }, - "node_modules/dropzone": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/dropzone/-/dropzone-5.9.3.tgz", - "integrity": "sha512-Azk8kD/2/nJIuVPK+zQ9sjKMRIpRvNyqn9XwbBHNq+iNuSccbJS6hwm1Woy0pMST0erSo0u4j+KJaodndDk4vA==" - }, "node_modules/duplexer": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", @@ -6085,6 +6329,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/heap": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", + "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==" + }, "node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", @@ -6782,12 +7031,22 @@ "resolved": "https://registry.npmjs.org/khroma/-/khroma-1.4.1.tgz", "integrity": "sha512-+GmxKvmiRuCcUYDgR7g5Ngo0JEDeOsGdNONdU2zsiBQaK4z19Y2NvXqfEDE0ZiIrg45GTZyAnPLVsLZZACYm3Q==" }, + "node_modules/klayjs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/klayjs/-/klayjs-0.4.1.tgz", + "integrity": "sha512-WUNxuO7O79TEkxCj6OIaK5TJBkaWaR/IKNTakgV9PwDn+mrr63MLHed34AcE2yTaDntgO6l0zGFIzhcoTeroTA==" + }, "node_modules/kuler": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==", "dev": true }, + "node_modules/layout-base": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==" + }, "node_modules/lazystream": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", @@ -7109,6 +7368,11 @@ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, + "node_modules/nanoassert": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/nanoassert/-/nanoassert-2.0.0.tgz", + "integrity": "sha512-7vO7n28+aYO4J+8w96AzhmU8G+Y/xpPDJz/se19ICsqj/momRbb9mh9ZUtkoJ5X3nTnPdhEJyc0qnM6yAsHBaA==" + }, "node_modules/nanoid": { "version": "3.3.6", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", @@ -9271,6 +9535,54 @@ "mermaid": "^8.9.0" } }, + "node_modules/webcola": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/webcola/-/webcola-3.4.0.tgz", + "integrity": "sha512-4BiLXjXw3SJHo3Xd+rF+7fyClT6n7I+AR6TkBqyQ4kTsePSAMDLRCXY1f3B/kXJeP9tYn4G1TblxTO+jAt0gaw==", + "dependencies": { + "d3-dispatch": "^1.0.3", + "d3-drag": "^1.0.4", + "d3-shape": "^1.3.5", + "d3-timer": "^1.0.5" + } + }, + "node_modules/webcola/node_modules/d3-dispatch": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.6.tgz", + "integrity": "sha512-fVjoElzjhCEy+Hbn8KygnmMS7Or0a9sI2UzGwoB7cCtvI1XpVN9GpoYlnb3xt2YV66oXYb1fLJ8GMvP4hdU1RA==" + }, + "node_modules/webcola/node_modules/d3-drag": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.5.tgz", + "integrity": "sha512-rD1ohlkKQwMZYkQlYVCrSFxsWPzI97+W+PaEIBNTMxRuxz9RF0Hi5nJWHGVJ3Om9d2fRTe1yOBINJyy/ahV95w==", + "dependencies": { + "d3-dispatch": "1", + "d3-selection": "1" + } + }, + "node_modules/webcola/node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==" + }, + "node_modules/webcola/node_modules/d3-selection": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-1.4.2.tgz", + "integrity": "sha512-SJ0BqYihzOjDnnlfyeHT0e30k0K1+5sR3d5fNueCNeuhZTnGw4M4o8mqJchSwgKMXCNFo+e2VTChiSJ0vYtXkg==" + }, + "node_modules/webcola/node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "dependencies": { + "d3-path": "1" + } + }, + "node_modules/webcola/node_modules/d3-timer": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.10.tgz", + "integrity": "sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==" + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -9627,13 +9939,12 @@ "license": "MIT", "dependencies": { "@fortawesome/free-solid-svg-icons": "^6.3.0", - "@holochain-open-dev/elements": "^0.7.0", - "@holochain-open-dev/file-storage": "^0.6.1", - "@holochain-open-dev/profiles": "^0.16.0", - "@holochain-open-dev/stores": "^0.6.0", - "@holochain-open-dev/utils": "^0.15.0", - "@holochain/client": "^0.16", - "@lightningrodlabs/we-applet": "0.9.0", + "@holochain-open-dev/elements": "^0.8.4", + "@holochain-open-dev/profiles": "^0.17.3", + "@holochain-open-dev/stores": "^0.8.3", + "@holochain-open-dev/utils": "^0.16.0", + "@holochain/client": "0.16", + "@lightningrodlabs/we-applet": "0.11.0", "@lit-labs/context": "^0.2.0", "@lit/localize": "^0.11.4", "@open-wc/scoped-elements": "^2.1.4", @@ -9807,49 +10118,140 @@ "typescript": "^4.9.0" } }, - "ui/node_modules/@holochain-open-dev/file-storage": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/file-storage/-/file-storage-0.6.1.tgz", - "integrity": "sha512-Yv5AReF1uSOyAoR4larG1rBl8VuQ26RXJGG/qKrZKI6tcIUlDR0hrsRoqAnW7qcbVx4iKpO3T3hcE3zc0+Ev5Q==", + "ui/node_modules/@holochain-open-dev/elements": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/@holochain-open-dev/elements/-/elements-0.8.4.tgz", + "integrity": "sha512-9iT59XcDJyuV8m92oPAGBaHJ7MR3pDN7mSlxj4J99HqzrxFC/IK2NaPKdCc4kfmbH28ABpavppv4/5y8Ab4CAA==", "dependencies": { - "@holochain-open-dev/elements": "^0.7.0", - "@holochain-open-dev/utils": "^0.15.0", - "@holochain/client": "^0.16.1", - "@lit-labs/context": "^0.2.0", - "@lit-labs/task": "^2.0.0", - "@lit/localize": "^0.11.4", - "@scoped-elements/dropzone": "^0.2.1", - "@shoelace-style/shoelace": "^2.3.0", - "lit": "^2.6.0" + "@holo-host/identicon": "^0.1.0", + "@holochain-open-dev/stores": "^0.7.12", + "@holochain/client": "^0.16.0", + "@lit/localize": "^0.12.0", + "@mdi/js": "^7.1.96", + "@shoelace-style/shoelace": "^2.11.0", + "lit": "^3.0.2", + "prosemirror-commands": "^1.5.2", + "prosemirror-keymap": "^1.2.2", + "prosemirror-state": "^1.4.3", + "prosemirror-view": "^1.31.3" } }, - "ui/node_modules/@holochain-open-dev/file-storage/node_modules/@scoped-elements/dropzone": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@scoped-elements/dropzone/-/dropzone-0.2.7.tgz", - "integrity": "sha512-/3qcTHanOQ7YayikIw2cmmSA0QMEcedadHiIHiUjNtyf9VjwVL50HLt09MKkRQYKbxFbR4EsKRFTFmiJdmiJew==", + "ui/node_modules/@holochain-open-dev/elements/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": { - "@mdi/js": "^7.2.96", - "@shoelace-style/shoelace": "^2.3.0", - "@types/dropzone": "^5.7.4", - "dropzone": "^5.9.3", - "lit": "^2.0.0" + "@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" } }, - "ui/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==", + "ui/node_modules/@holochain-open-dev/elements/node_modules/@lit/localize": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@lit/localize/-/localize-0.12.1.tgz", + "integrity": "sha512-uuF6OO6fjqomCf3jXsJ5cTGf1APYuN88S4Gvo/fjt9YkG4OMaMvpEUqd5oWhyzrJfY+HcenAbLJNi2Cq3H7gdg==", "dependencies": { - "@holochain-open-dev/utils": "^0.15.0", + "lit": "^2.0.0 || ^3.0.0" + } + }, + "ui/node_modules/@holochain-open-dev/elements/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" + } + }, + "ui/node_modules/@holochain-open-dev/elements/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" + } + }, + "ui/node_modules/@holochain-open-dev/profiles": { + "version": "0.17.3", + "resolved": "https://registry.npmjs.org/@holochain-open-dev/profiles/-/profiles-0.17.3.tgz", + "integrity": "sha512-V6Hn0JV5xYFTIzzqTkrNDrZPwPsqht+OqvZj6k2wHJ0tyGTuRsTCAxks27TG38f7PfXseGxIn7xLtGLLtmJwSw==", + "dependencies": { + "@holochain-open-dev/elements": "^0.8.4", + "@holochain-open-dev/stores": "^0.8.2", + "@holochain-open-dev/utils": "^0.16.2", "@holochain/client": "^0.16.0", - "lit-svelte-stores": "^0.2.1", + "@lit/context": "^1.0.1", + "@lit/localize": "^0.12.0", + "@mdi/js": "^7.1.96", + "@shoelace-style/shoelace": "^2.11.0", + "lit": "^3.0.2" + } + }, + "ui/node_modules/@holochain-open-dev/profiles/node_modules/@lit/localize": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@lit/localize/-/localize-0.12.1.tgz", + "integrity": "sha512-uuF6OO6fjqomCf3jXsJ5cTGf1APYuN88S4Gvo/fjt9YkG4OMaMvpEUqd5oWhyzrJfY+HcenAbLJNi2Cq3H7gdg==", + "dependencies": { + "lit": "^2.0.0 || ^3.0.0" + } + }, + "ui/node_modules/@holochain-open-dev/profiles/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" + } + }, + "ui/node_modules/@holochain-open-dev/stores": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/@holochain-open-dev/stores/-/stores-0.8.3.tgz", + "integrity": "sha512-cPTkXumKHmcZRvgb6/oOZ4fX5hRHLBbs1SnUQ1/TtbRwdyqZBDjwBgIDlbBT2ZOrswNk6CSa101l23SzoMQbmQ==", + "dependencies": { + "@alenaksu/json-viewer": "^2.0.1", + "@holochain-open-dev/utils": "^0.16.2", + "@holochain/client": "^0.16.6", + "@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" } }, + "ui/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" + } + }, + "ui/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" + } + }, "ui/node_modules/@holochain-open-dev/utils": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@holochain-open-dev/utils/-/utils-0.15.1.tgz", - "integrity": "sha512-FHgDwQIODLNX7wgn8fiKw1CbwMKzZngjT8fWmFhszeKo8UWRYbUCsv8iWbFTNYtKey5L2jJICOmKOiuWGhdQbg==", + "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", @@ -9859,6 +10261,34 @@ "sort-keys": "^5.0.0" } }, + "ui/node_modules/@holochain/client": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@holochain/client/-/client-0.16.7.tgz", + "integrity": "sha512-wCFm71HUnZ9vxmuguqKqDOhqjE5Qq5e8bM4q9W1ginel3UAZF3LmYym5Ny4pOG2aqf2tD5mpf7xTZjBxPDGnjA==", + "dependencies": { + "@bitgo/blake2b": "^3.2.4", + "@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/@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" + } + }, "ui/node_modules/ansi-regex": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", @@ -9917,6 +10347,24 @@ "node": ">=4" } }, + "ui/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" + } + }, + "ui/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" + } + }, "ui/node_modules/string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", diff --git a/ui/package.json b/ui/package.json index 092205c..5ecdf56 100644 --- a/ui/package.json +++ b/ui/package.json @@ -16,13 +16,12 @@ "@open-wc/scoped-elements": "^2.1.4", "@shoelace-style/shoelace": "^2.5.2", "@fortawesome/free-solid-svg-icons": "^6.3.0", - "@holochain-open-dev/elements": "^0.7.0", - "@holochain-open-dev/profiles": "^0.16.0", - "@holochain-open-dev/file-storage": "^0.6.1", - "@holochain-open-dev/stores": "^0.6.0", - "@holochain-open-dev/utils": "^0.15.0", - "@holochain/client": "^0.16", - "@lightningrodlabs/we-applet": "0.9.0", + "@holochain-open-dev/elements": "^0.8.4", + "@holochain-open-dev/profiles": "^0.17.3", + "@holochain-open-dev/stores": "^0.8.3", + "@holochain-open-dev/utils": "^0.16.0", + "@holochain/client": "0.16", + "@lightningrodlabs/we-applet": "0.11.0", "@lit-labs/context": "^0.2.0", "@lit/localize": "^0.11.4", "lit": "^2.7.0", diff --git a/ui/src/elements/how-agent-list.ts b/ui/src/elements/how-agent-list.ts index a307f43..a3ddd2f 100644 --- a/ui/src/elements/how-agent-list.ts +++ b/ui/src/elements/how-agent-list.ts @@ -36,8 +36,11 @@ export class HowAgentList extends LitElement { const agentsHTML: Array= [] for (const agentHash of this.agents) { let profile: Profile |undefined = undefined - if (this._allProfiles.value.status == "complete") - profile = this._allProfiles.value.value.get(decodeHashFromBase64(agentHash)) + if (this._allProfiles.value.status == "complete") { + const record = this._allProfiles.value.value.get(decodeHashFromBase64(agentHash)) + if (record) + profile = record.entry + } if (profile) { agentsHTML.push(html`
${profile.nickname}
`) diff --git a/ui/src/elements/how-controller.ts b/ui/src/elements/how-controller.ts index a09aec0..43f2225 100644 --- a/ui/src/elements/how-controller.ts +++ b/ui/src/elements/how-controller.ts @@ -13,7 +13,7 @@ import { initialTreeSimple } from "../initSimple"; import { HowUnitDialog } from "./how-unit-dialog"; import { ScopedElementsMixin } from "@open-wc/scoped-elements"; import {HowDocument } from "./how-document"; -import { AsyncStatus, StoreSubscriber } from '@holochain-open-dev/stores'; +import { AsyncReadable, AsyncStatus, StoreSubscriber } from '@holochain-open-dev/stores'; import { aliveImage } from "../images"; import '@shoelace-style/shoelace/dist/components/dialog/dialog.js'; import '@shoelace-style/shoelace/dist/components/button/button.js'; @@ -34,6 +34,7 @@ import { import {EntryHashB64, encodeHashToBase64} from "@holochain/client"; import { consume } from '@lit-labs/context'; import { HowMyProfileDialog } from "./how-my-profile-dialog"; +import { EntryRecord } from "@holochain-open-dev/utils"; //import { HowSettings } from "./how-settings"; //import './how-settings.js'; @@ -58,7 +59,7 @@ export class HowController extends ScopedElementsMixin(LitElement) { _profiles!: ProfilesStore; - _myProfile!: StoreSubscriber>; + _myProfile!: StoreSubscriber | undefined>>; @query("how-my-profile") _myProfileDialog!:HowMyProfileDialog @@ -114,7 +115,7 @@ export class HowController extends ScopedElementsMixin(LitElement) { if (this._myProfile.value.status == "complete") { const profile = this._myProfile.value.value; if (profile) - return profile.nickname + return profile.entry.nickname } return "" } @@ -122,7 +123,7 @@ export class HowController extends ScopedElementsMixin(LitElement) { if (this._myProfile.value.status == "complete") { const profile = this._myProfile.value.value; if (profile) - return profile.fields.avatar + return profile.entry.fields.avatar } return "" } diff --git a/ui/src/elements/how-tree.ts b/ui/src/elements/how-tree.ts index d8e2ee0..ecc66d6 100644 --- a/ui/src/elements/how-tree.ts +++ b/ui/src/elements/how-tree.ts @@ -51,8 +51,8 @@ export class HowTree extends ScopedElementsMixin(LitElement) { buildTree(node: Node):any { const unitInfo = this.getUnitInfo(node) const nodeId = unitInfo ? encodeHashToBase64(unitInfo.hash) : node.id - //const documentsMap = this._documents.value - //const docs = node.val.documents.map(hash => documentsMap[encodeHashToBase64(hash)]) + const documentsMap = this._documents.value + // const docs = node.val.documents.map(hash => documentsMap[encodeHashToBase64(hash)]) const state = node.val.units.length ? node.val.units[0].state : ""// docs[docs.length-1]? docs[docs.length-1].state : "" return html`
  • @@ -60,7 +60,7 @@ export class HowTree extends ScopedElementsMixin(LitElement) {
    - ${node.id=="0" ? "Holochain Community Standards" : node.val.name} + ${node.id=="0" ? this._store.treeName : node.val.name} diff --git a/ui/src/elements/how-unit.ts b/ui/src/elements/how-unit.ts index 7ac39af..7457b1e 100644 --- a/ui/src/elements/how-unit.ts +++ b/ui/src/elements/how-unit.ts @@ -134,8 +134,12 @@ export class HowUnit extends ScopedElementsMixin(LitElement) { const created = new Date(action.timestamp) const creatorHash = encodeHashToBase64(action.author) let creator: Profile |undefined = undefined - if (this._allProfiles.value.status == "complete") - creator = this._allProfiles.value.value.get(action.author) + if (this._allProfiles.value.status == "complete") { + const record = this._allProfiles.value.value.get(action.author) + if (record) { + creator = record.entry + } + } let stateHTML let controlsHTML:any[] = [] diff --git a/ui/src/holochain-app.ts b/ui/src/holochain-app.ts index e2469b4..101d17a 100644 --- a/ui/src/holochain-app.ts +++ b/ui/src/holochain-app.ts @@ -72,8 +72,6 @@ export class HolochainApp extends ScopedElementsMixin(LitElement) { const appAgentClient = await AppAgentWebsocket.connect(new URL(url), appId) this._howStore = new HowStore(appAgentClient, "how") - - this._profilesStore = new ProfilesStore( new ProfilesClient(appAgentClient, 'how'), config @@ -90,10 +88,12 @@ export class HolochainApp extends ScopedElementsMixin(LitElement) { const client = weClient.renderInfo.appletClient; this._howStore = new HowStore(client, "how") + //@ts-ignore const profilesClient = weClient.renderInfo.profilesClient; this._profilesStore = new ProfilesStore(profilesClient, config) } + this._howStore.initialize() this.loaded = true; } diff --git a/ui/src/how.store.ts b/ui/src/how.store.ts index 941e9bb..1be3067 100644 --- a/ui/src/how.store.ts +++ b/ui/src/how.store.ts @@ -42,6 +42,8 @@ export class HowStore { /** Static info */ myAgentPubKey: AgentPubKeyB64; + treeName: string = "" + config = {} /** Readable stores */ public units: Readable> = derived(this.unitsStore, i => i) @@ -74,7 +76,7 @@ export class HowStore { this.service = new HowService(client, roleName, zomeName); client.on( 'signal', signal => { - console.log("SIGNAL",signal) + console.log("SIGNAL",signal.payload) const payload = signal.payload as HowSignal switch(payload.message.type) { case "NewUnit": @@ -139,7 +141,9 @@ export class HowStore { return units }) this.unitsActionStore.update(units => { - units[hash] = record.action + const a = record.action + //@ts-ignore + units[hash] = a return units }) this.unitsInfoStore.update(units => { @@ -203,6 +207,15 @@ export class HowStore { } } } + + async initialize() { + const docs = await this.pullDocuments("") + const meta = docs.find(d=>d.content.documentType == DocType.TreeMeta) + if (meta) { + this.treeName = meta.content.content[0].name + this.config = JSON.parse(meta.content.content[0].content) + } + } async pullDocuments(path: string) : Promise> { let documents = await this.service.getDocuments(path) diff --git a/ui/src/initHolochain.ts b/ui/src/initHolochain.ts index 98d6445..21e3935 100644 --- a/ui/src/initHolochain.ts +++ b/ui/src/initHolochain.ts @@ -158,6 +158,21 @@ export function initialTreeHolochain(progenitor: AgentPubKeyB64) { })], ], documents: [ + { + path: "", + documentType: DocType.TreeMeta, + content: [ + { + name: "Holochain Community Standards", + sourcePath: SourceManual, + sectionType: SectionType.Content, + contentType: "text/plain", + content: '{"foo":"bar"}', + }, + ], + editors: [progenitor], + meta: {} + }, { path: "", documentType: DocType.Document, diff --git a/ui/src/initSimple.ts b/ui/src/initSimple.ts index 3a6ddfa..9c201aa 100644 --- a/ui/src/initSimple.ts +++ b/ui/src/initSimple.ts @@ -126,6 +126,21 @@ export function initialTreeSimple(progenitor: AgentPubKeyB64) { })], ], documents: [ + { + path: "", + documentType: DocType.TreeMeta, + content: [ + { + name: "Alignments", + sourcePath: SourceManual, + sectionType: SectionType.Content, + contentType: "text/plain", + content: '{"foo":"bar"}', + }, + ], + editors: [progenitor], + meta: {} + }, { path: "", documentType: DocType.Document, diff --git a/ui/src/types.ts b/ui/src/types.ts index e70d9ce..668ad5a 100644 --- a/ui/src/types.ts +++ b/ui/src/types.ts @@ -80,6 +80,7 @@ export enum VersioningType { } export enum DocType { + TreeMeta = "_", Document = "_document", Comment = "_comment" }