diff --git a/.eslintrc.js b/.eslintrc.js index 1ed27f34d2..c95f06829c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -58,10 +58,12 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'error', 'padding-line-between-statements': [ 'error', - { blankLine: 'always', prev: 'block', next: 'export' }, - { blankLine: 'always', prev: 'block-like', next: 'export' }, - { blankLine: 'always', prev: 'class', next: 'export' }, - { blankLine: 'always', prev: 'function', next: 'export' }, + { blankLine: 'always', prev: ['block-like', 'class', 'function'], next: 'export' }, + ], + '@typescript-eslint/padding-line-between-statements': [ + 'error', + { blankLine: 'always', prev: ['interface'], next: '*' }, + { blankLine: 'always', next: ['interface'], prev: '*' }, ], }, }; diff --git a/package-lock.json b/package-lock.json index 2ce9e2352d..be926443b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@alkemio/client-web", - "version": "0.53.0", + "version": "0.53.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@alkemio/client-web", - "version": "0.53.0", + "version": "0.53.1", "license": "EUPL-1.2", "dependencies": { "@alkemio/excalidraw": "^0.16.1-alkemio-1", @@ -19,7 +19,7 @@ "@mui/base": "^5.0.0-beta.23", "@mui/icons-material": "^5.11.16", "@mui/lab": "^5.0.0-alpha.56", - "@mui/material": "^5.2.0", + "@mui/material": "5.13.x", "@mui/styles": "^5.2.0", "@mui/x-data-grid": "^5.0.1", "@mui/x-date-pickers": "^5.0.16", @@ -60,7 +60,6 @@ "i18next-browser-languagedetector": "^6.1.3", "idb-keyval": "^6.2.1", "immer": "^9.0.12", - "jotai": "^2.4.0", "jquery": "^3.5.1", "lodash": "^4.17.21", "logform": "^2.2.0", @@ -2251,9 +2250,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz", - "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==", + "version": "7.23.8", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", + "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -2727,30 +2726,50 @@ } }, "node_modules/@emotion/cache": { - "version": "11.9.3", - "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.9.3.tgz", - "integrity": "sha512-0dgkI/JKlCXa+lEXviaMtGBL0ynpx4osh7rjOXE71q9bIF8G+XhJgvi+wDu0B0IdCVx37BffiwXlN9I3UuzFvg==", + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.11.0.tgz", + "integrity": "sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ==", "dependencies": { - "@emotion/memoize": "^0.7.4", - "@emotion/sheet": "^1.1.1", - "@emotion/utils": "^1.0.0", - "@emotion/weak-memoize": "^0.2.5", - "stylis": "4.0.13" + "@emotion/memoize": "^0.8.1", + "@emotion/sheet": "^1.2.2", + "@emotion/utils": "^1.2.1", + "@emotion/weak-memoize": "^0.3.1", + "stylis": "4.2.0" } }, + "node_modules/@emotion/cache/node_modules/@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + }, + "node_modules/@emotion/cache/node_modules/@emotion/weak-memoize": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz", + "integrity": "sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==" + }, + "node_modules/@emotion/cache/node_modules/stylis": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz", + "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==" + }, "node_modules/@emotion/hash": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==" }, "node_modules/@emotion/is-prop-valid": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.1.3.tgz", - "integrity": "sha512-RFg04p6C+1uO19uG8N+vqanzKqiM9eeV1LDOG3bmkYmuOj7NbKNlFC/4EZq5gnwAIlcC/jOT24f8Td0iax2SXA==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz", + "integrity": "sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==", "dependencies": { - "@emotion/memoize": "^0.7.4" + "@emotion/memoize": "^0.8.1" } }, + "node_modules/@emotion/is-prop-valid/node_modules/@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + }, "node_modules/@emotion/memoize": { "version": "0.7.5", "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.5.tgz", @@ -2795,9 +2814,9 @@ } }, "node_modules/@emotion/sheet": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.1.1.tgz", - "integrity": "sha512-J3YPccVRMiTZxYAY0IOq3kd+hUP8idY8Kz6B/Cyo+JuXq52Ek+zbPbSQUrVQp95aJ+lsAW7DPL1P2Z+U1jGkKA==" + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.2.tgz", + "integrity": "sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA==" }, "node_modules/@emotion/styled": { "version": "11.9.3", @@ -2830,9 +2849,9 @@ "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" }, "node_modules/@emotion/utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.1.0.tgz", - "integrity": "sha512-iRLa/Y4Rs5H/f2nimczYmS5kFJEbpiVvgN3XVfZ022IYhuNA1IRSHEizcof88LtCTXtl9S2Cxt32KgaXEu72JQ==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.1.tgz", + "integrity": "sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg==" }, "node_modules/@emotion/weak-memoize": { "version": "0.2.5", @@ -5007,6 +5026,15 @@ "node": ">=6" } }, + "node_modules/@mui/core-downloads-tracker": { + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.15.6.tgz", + "integrity": "sha512-0aoWS4qvk1uzm9JBs83oQmIMIQeTBUeqqu8u+3uo2tMznrB5fIKqQVCbCgq+4Tm4jG+5F7dIvnjvQ2aV7UKtdw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + } + }, "node_modules/@mui/icons-material": { "version": "5.11.16", "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.11.16.tgz", @@ -5171,21 +5199,22 @@ } }, "node_modules/@mui/material": { - "version": "5.8.7", - "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.8.7.tgz", - "integrity": "sha512-Oo62UhrgEi+BMLr3nUEASJgScE2/hhq14CbBUmrVV3GQlEGtqMZsy26Vb0AqEmphFeN3TXlsbM9aeW5yq8ZFlw==", - "dependencies": { - "@babel/runtime": "^7.17.2", - "@mui/base": "5.0.0-alpha.88", - "@mui/system": "^5.8.7", - "@mui/types": "^7.1.4", - "@mui/utils": "^5.8.6", - "@types/react-transition-group": "^4.4.5", - "clsx": "^1.2.0", - "csstype": "^3.1.0", + "version": "5.13.7", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.13.7.tgz", + "integrity": "sha512-+n453jDDm88zZM3b5YK29nZ7gXY+s+rryH9ovDbhmfSkOlFtp+KSqbXy5cTaC/UlDqDM7sYYJGq8BmJov3v9Tg==", + "dependencies": { + "@babel/runtime": "^7.22.5", + "@mui/base": "5.0.0-beta.6", + "@mui/core-downloads-tracker": "^5.13.7", + "@mui/system": "^5.13.7", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.13.7", + "@types/react-transition-group": "^4.4.6", + "clsx": "^1.2.1", + "csstype": "^3.1.2", "prop-types": "^15.8.1", - "react-is": "^17.0.2", - "react-transition-group": "^4.4.2" + "react-is": "^18.2.0", + "react-transition-group": "^4.4.5" }, "engines": { "node": ">=12.0.0" @@ -5214,18 +5243,18 @@ } }, "node_modules/@mui/material/node_modules/@mui/base": { - "version": "5.0.0-alpha.88", - "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.88.tgz", - "integrity": "sha512-uL7ej2F/3GUnZewsDQSHUVHoSBT3AQcTIdfdy6QeCHy7X26mtbcIvTRcjl2PzbbNQplppavSTibPiQG/giJ+ng==", - "dependencies": { - "@babel/runtime": "^7.17.2", - "@emotion/is-prop-valid": "^1.1.3", - "@mui/types": "^7.1.4", - "@mui/utils": "^5.8.6", - "@popperjs/core": "^2.11.5", - "clsx": "^1.2.0", + "version": "5.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.6.tgz", + "integrity": "sha512-jcHy6HwOX7KzRhRtL8nvIvUlxvLx2Fl6NMRCyUSQSvMTyfou9kndekz0H4HJaXvG1Y4WEifk23RYedOlrD1kEQ==", + "dependencies": { + "@babel/runtime": "^7.22.5", + "@emotion/is-prop-valid": "^1.2.1", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.13.7", + "@popperjs/core": "^2.11.8", + "clsx": "^1.2.1", "prop-types": "^15.8.1", - "react-is": "^17.0.2" + "react-is": "^18.2.0" }, "engines": { "node": ">=12.0.0" @@ -5245,13 +5274,18 @@ } } }, + "node_modules/@mui/material/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, "node_modules/@mui/private-theming": { - "version": "5.8.6", - "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.8.6.tgz", - "integrity": "sha512-yHsJk1qU9r/q0DlnxGRJPHyM0Y/nUv8FTNgDTiI9I58GWuVuZqeTUr7JRvPh6ybeP/FLtW5eXEavRK9wxVk4uQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.15.6.tgz", + "integrity": "sha512-ZBX9E6VNUSscUOtU8uU462VvpvBS7eFl5VfxAzTRVQBHflzL+5KtnGrebgf6Nd6cdvxa1o0OomiaxSKoN2XDmg==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@mui/utils": "^5.8.6", + "@babel/runtime": "^7.23.8", + "@mui/utils": "^5.15.6", "prop-types": "^15.8.1" }, "engines": { @@ -5259,7 +5293,7 @@ }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/mui" + "url": "https://opencollective.com/mui-org" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", @@ -5272,13 +5306,13 @@ } }, "node_modules/@mui/styled-engine": { - "version": "5.8.7", - "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.8.7.tgz", - "integrity": "sha512-tVqtowjbYmiRq+qcqXK731L9eWoL9H8xTRhuTgaDGKdch1zlt4I2UwInUe1w2N9N/u3/jHsFbLcl1Un3uOwpQg==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.15.6.tgz", + "integrity": "sha512-KAn8P8xP/WigFKMlEYUpU9z2o7jJnv0BG28Qu1dhNQVutsLVIFdRf5Nb+0ijp2qgtcmygQ0FtfRuXv5LYetZTg==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@emotion/cache": "^11.9.3", - "csstype": "^3.1.0", + "@babel/runtime": "^7.23.8", + "@emotion/cache": "^11.11.0", + "csstype": "^3.1.2", "prop-types": "^15.8.1" }, "engines": { @@ -5286,7 +5320,7 @@ }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/mui" + "url": "https://opencollective.com/mui-org" }, "peerDependencies": { "@emotion/react": "^11.4.1", @@ -5343,17 +5377,17 @@ } }, "node_modules/@mui/system": { - "version": "5.8.7", - "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.8.7.tgz", - "integrity": "sha512-yFoFbfO42FWeSUDrFPixYjpqySQMqVMOSbSlAxiKnwFpvXGGn/bkfQTboCRNO31fvES29FJLQd4mwwMHd5mXng==", - "dependencies": { - "@babel/runtime": "^7.17.2", - "@mui/private-theming": "^5.8.6", - "@mui/styled-engine": "^5.8.7", - "@mui/types": "^7.1.4", - "@mui/utils": "^5.8.6", - "clsx": "^1.2.0", - "csstype": "^3.1.0", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.15.6.tgz", + "integrity": "sha512-J01D//u8IfXvaEHMBQX5aO2l7Q+P15nt96c4NskX7yp5/+UuZP8XCQJhtBtLuj+M2LLyXHYGmCPeblsmmscP2Q==", + "dependencies": { + "@babel/runtime": "^7.23.8", + "@mui/private-theming": "^5.15.6", + "@mui/styled-engine": "^5.15.6", + "@mui/types": "^7.2.13", + "@mui/utils": "^5.15.6", + "clsx": "^2.1.0", + "csstype": "^3.1.2", "prop-types": "^15.8.1" }, "engines": { @@ -5361,7 +5395,7 @@ }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/mui" + "url": "https://opencollective.com/mui-org" }, "peerDependencies": { "@emotion/react": "^11.5.0", @@ -5381,10 +5415,18 @@ } } }, + "node_modules/@mui/system/node_modules/clsx": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.0.tgz", + "integrity": "sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==", + "engines": { + "node": ">=6" + } + }, "node_modules/@mui/types": { - "version": "7.2.8", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.8.tgz", - "integrity": "sha512-9u0ji+xspl96WPqvrYJF/iO+1tQ1L5GTaDOeG3vCR893yy7VcWwRNiVMmPdPNpMDqx0WV1wtEW9OMwK9acWJzQ==", + "version": "7.2.13", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.13.tgz", + "integrity": "sha512-qP9OgacN62s+l8rdDhSFRe05HWtLLJ5TGclC9I1+tQngbssu0m2dmFZs+Px53AcOs9fD7TbYd4gc9AXzVqO/+g==", "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0" }, @@ -5395,12 +5437,12 @@ } }, "node_modules/@mui/utils": { - "version": "5.14.17", - "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.14.17.tgz", - "integrity": "sha512-yxnWgSS4J6DMFPw2Dof85yBkG02VTbEiqsikymMsnZnXDurtVGTIhlNuV24GTmFTuJMzEyTTU9UF+O7zaL8LEQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.15.6.tgz", + "integrity": "sha512-qfEhf+zfU9aQdbzo1qrSWlbPQhH1nCgeYgwhOVnj9Bn39shJQitEnXpSQpSNag8+uty5Od6PxmlNKPTnPySRKA==", "dependencies": { - "@babel/runtime": "^7.23.2", - "@types/prop-types": "^15.7.9", + "@babel/runtime": "^7.23.8", + "@types/prop-types": "^15.7.11", "prop-types": "^15.8.1", "react-is": "^18.2.0" }, @@ -5409,7 +5451,7 @@ }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/mui" + "url": "https://opencollective.com/mui-org" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", @@ -7825,9 +7867,9 @@ "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==" }, "node_modules/@types/prop-types": { - "version": "15.7.10", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.10.tgz", - "integrity": "sha512-mxSnDQxPqsZxmeShFH+uwQ4kO4gcJcGahjjMFeLbKE95IAZiiZyiEepGZjtXJ7hN/yfu0bu9xN2ajcU0JcxX6A==" + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" }, "node_modules/@types/q": { "version": "1.5.5", @@ -7928,9 +7970,9 @@ } }, "node_modules/@types/react-transition-group": { - "version": "4.4.5", - "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.5.tgz", - "integrity": "sha512-juKD/eiSM3/xZYzjuzH6ZwpP+/lejltmiS3QEzV/vmb/Q8+HfDmxu+Baga8UEMGBqV88Nbg4l2hY/K2DkyaLLA==", + "version": "4.4.10", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.10.tgz", + "integrity": "sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==", "dependencies": { "@types/react": "*" } @@ -12057,9 +12099,9 @@ "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" }, "node_modules/csstype": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz", - "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "node_modules/d3": { "version": "7.6.1", @@ -19282,26 +19324,6 @@ "jiti": "bin/jiti.js" } }, - "node_modules/jotai": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jotai/-/jotai-2.4.0.tgz", - "integrity": "sha512-NUHJdAJe3C8Prf0DD6EzezCATjkNvfCNI7pgkaX7bCPPsqE0oK8L9RzZsEhz/UxFoGRayXwacTvAli0VEYKkqQ==", - "engines": { - "node": ">=12.20.0" - }, - "peerDependencies": { - "@types/react": ">=17.0.0", - "react": ">=17.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "react": { - "optional": true - } - } - }, "node_modules/jquery": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", @@ -33673,9 +33695,9 @@ } }, "@babel/runtime": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz", - "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==", + "version": "7.23.8", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", + "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", "requires": { "regenerator-runtime": "^0.14.0" }, @@ -33973,15 +33995,32 @@ } }, "@emotion/cache": { - "version": "11.9.3", - "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.9.3.tgz", - "integrity": "sha512-0dgkI/JKlCXa+lEXviaMtGBL0ynpx4osh7rjOXE71q9bIF8G+XhJgvi+wDu0B0IdCVx37BffiwXlN9I3UuzFvg==", + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.11.0.tgz", + "integrity": "sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ==", "requires": { - "@emotion/memoize": "^0.7.4", - "@emotion/sheet": "^1.1.1", - "@emotion/utils": "^1.0.0", - "@emotion/weak-memoize": "^0.2.5", - "stylis": "4.0.13" + "@emotion/memoize": "^0.8.1", + "@emotion/sheet": "^1.2.2", + "@emotion/utils": "^1.2.1", + "@emotion/weak-memoize": "^0.3.1", + "stylis": "4.2.0" + }, + "dependencies": { + "@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + }, + "@emotion/weak-memoize": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz", + "integrity": "sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==" + }, + "stylis": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz", + "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==" + } } }, "@emotion/hash": { @@ -33990,11 +34029,18 @@ "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==" }, "@emotion/is-prop-valid": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.1.3.tgz", - "integrity": "sha512-RFg04p6C+1uO19uG8N+vqanzKqiM9eeV1LDOG3bmkYmuOj7NbKNlFC/4EZq5gnwAIlcC/jOT24f8Td0iax2SXA==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz", + "integrity": "sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==", "requires": { - "@emotion/memoize": "^0.7.4" + "@emotion/memoize": "^0.8.1" + }, + "dependencies": { + "@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + } } }, "@emotion/memoize": { @@ -34029,9 +34075,9 @@ } }, "@emotion/sheet": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.1.1.tgz", - "integrity": "sha512-J3YPccVRMiTZxYAY0IOq3kd+hUP8idY8Kz6B/Cyo+JuXq52Ek+zbPbSQUrVQp95aJ+lsAW7DPL1P2Z+U1jGkKA==" + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.2.tgz", + "integrity": "sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA==" }, "@emotion/styled": { "version": "11.9.3", @@ -34051,9 +34097,9 @@ "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" }, "@emotion/utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.1.0.tgz", - "integrity": "sha512-iRLa/Y4Rs5H/f2nimczYmS5kFJEbpiVvgN3XVfZ022IYhuNA1IRSHEizcof88LtCTXtl9S2Cxt32KgaXEu72JQ==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.1.tgz", + "integrity": "sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg==" }, "@emotion/weak-memoize": { "version": "0.2.5", @@ -35680,6 +35726,11 @@ } } }, + "@mui/core-downloads-tracker": { + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.15.6.tgz", + "integrity": "sha512-0aoWS4qvk1uzm9JBs83oQmIMIQeTBUeqqu8u+3uo2tMznrB5fIKqQVCbCgq+4Tm4jG+5F7dIvnjvQ2aV7UKtdw==" + }, "@mui/icons-material": { "version": "5.11.16", "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.11.16.tgz", @@ -35739,58 +35790,64 @@ } }, "@mui/material": { - "version": "5.8.7", - "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.8.7.tgz", - "integrity": "sha512-Oo62UhrgEi+BMLr3nUEASJgScE2/hhq14CbBUmrVV3GQlEGtqMZsy26Vb0AqEmphFeN3TXlsbM9aeW5yq8ZFlw==", - "requires": { - "@babel/runtime": "^7.17.2", - "@mui/base": "5.0.0-alpha.88", - "@mui/system": "^5.8.7", - "@mui/types": "^7.1.4", - "@mui/utils": "^5.8.6", - "@types/react-transition-group": "^4.4.5", - "clsx": "^1.2.0", - "csstype": "^3.1.0", + "version": "5.13.7", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.13.7.tgz", + "integrity": "sha512-+n453jDDm88zZM3b5YK29nZ7gXY+s+rryH9ovDbhmfSkOlFtp+KSqbXy5cTaC/UlDqDM7sYYJGq8BmJov3v9Tg==", + "requires": { + "@babel/runtime": "^7.22.5", + "@mui/base": "5.0.0-beta.6", + "@mui/core-downloads-tracker": "^5.13.7", + "@mui/system": "^5.13.7", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.13.7", + "@types/react-transition-group": "^4.4.6", + "clsx": "^1.2.1", + "csstype": "^3.1.2", "prop-types": "^15.8.1", - "react-is": "^17.0.2", - "react-transition-group": "^4.4.2" + "react-is": "^18.2.0", + "react-transition-group": "^4.4.5" }, "dependencies": { "@mui/base": { - "version": "5.0.0-alpha.88", - "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.88.tgz", - "integrity": "sha512-uL7ej2F/3GUnZewsDQSHUVHoSBT3AQcTIdfdy6QeCHy7X26mtbcIvTRcjl2PzbbNQplppavSTibPiQG/giJ+ng==", - "requires": { - "@babel/runtime": "^7.17.2", - "@emotion/is-prop-valid": "^1.1.3", - "@mui/types": "^7.1.4", - "@mui/utils": "^5.8.6", - "@popperjs/core": "^2.11.5", - "clsx": "^1.2.0", + "version": "5.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.6.tgz", + "integrity": "sha512-jcHy6HwOX7KzRhRtL8nvIvUlxvLx2Fl6NMRCyUSQSvMTyfou9kndekz0H4HJaXvG1Y4WEifk23RYedOlrD1kEQ==", + "requires": { + "@babel/runtime": "^7.22.5", + "@emotion/is-prop-valid": "^1.2.1", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.13.7", + "@popperjs/core": "^2.11.8", + "clsx": "^1.2.1", "prop-types": "^15.8.1", - "react-is": "^17.0.2" + "react-is": "^18.2.0" } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" } } }, "@mui/private-theming": { - "version": "5.8.6", - "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.8.6.tgz", - "integrity": "sha512-yHsJk1qU9r/q0DlnxGRJPHyM0Y/nUv8FTNgDTiI9I58GWuVuZqeTUr7JRvPh6ybeP/FLtW5eXEavRK9wxVk4uQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.15.6.tgz", + "integrity": "sha512-ZBX9E6VNUSscUOtU8uU462VvpvBS7eFl5VfxAzTRVQBHflzL+5KtnGrebgf6Nd6cdvxa1o0OomiaxSKoN2XDmg==", "requires": { - "@babel/runtime": "^7.17.2", - "@mui/utils": "^5.8.6", + "@babel/runtime": "^7.23.8", + "@mui/utils": "^5.15.6", "prop-types": "^15.8.1" } }, "@mui/styled-engine": { - "version": "5.8.7", - "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.8.7.tgz", - "integrity": "sha512-tVqtowjbYmiRq+qcqXK731L9eWoL9H8xTRhuTgaDGKdch1zlt4I2UwInUe1w2N9N/u3/jHsFbLcl1Un3uOwpQg==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.15.6.tgz", + "integrity": "sha512-KAn8P8xP/WigFKMlEYUpU9z2o7jJnv0BG28Qu1dhNQVutsLVIFdRf5Nb+0ijp2qgtcmygQ0FtfRuXv5LYetZTg==", "requires": { - "@babel/runtime": "^7.17.2", - "@emotion/cache": "^11.9.3", - "csstype": "^3.1.0", + "@babel/runtime": "^7.23.8", + "@emotion/cache": "^11.11.0", + "csstype": "^3.1.2", "prop-types": "^15.8.1" } }, @@ -35819,33 +35876,40 @@ } }, "@mui/system": { - "version": "5.8.7", - "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.8.7.tgz", - "integrity": "sha512-yFoFbfO42FWeSUDrFPixYjpqySQMqVMOSbSlAxiKnwFpvXGGn/bkfQTboCRNO31fvES29FJLQd4mwwMHd5mXng==", - "requires": { - "@babel/runtime": "^7.17.2", - "@mui/private-theming": "^5.8.6", - "@mui/styled-engine": "^5.8.7", - "@mui/types": "^7.1.4", - "@mui/utils": "^5.8.6", - "clsx": "^1.2.0", - "csstype": "^3.1.0", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.15.6.tgz", + "integrity": "sha512-J01D//u8IfXvaEHMBQX5aO2l7Q+P15nt96c4NskX7yp5/+UuZP8XCQJhtBtLuj+M2LLyXHYGmCPeblsmmscP2Q==", + "requires": { + "@babel/runtime": "^7.23.8", + "@mui/private-theming": "^5.15.6", + "@mui/styled-engine": "^5.15.6", + "@mui/types": "^7.2.13", + "@mui/utils": "^5.15.6", + "clsx": "^2.1.0", + "csstype": "^3.1.2", "prop-types": "^15.8.1" + }, + "dependencies": { + "clsx": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.0.tgz", + "integrity": "sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==" + } } }, "@mui/types": { - "version": "7.2.8", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.8.tgz", - "integrity": "sha512-9u0ji+xspl96WPqvrYJF/iO+1tQ1L5GTaDOeG3vCR893yy7VcWwRNiVMmPdPNpMDqx0WV1wtEW9OMwK9acWJzQ==", + "version": "7.2.13", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.13.tgz", + "integrity": "sha512-qP9OgacN62s+l8rdDhSFRe05HWtLLJ5TGclC9I1+tQngbssu0m2dmFZs+Px53AcOs9fD7TbYd4gc9AXzVqO/+g==", "requires": {} }, "@mui/utils": { - "version": "5.14.17", - "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.14.17.tgz", - "integrity": "sha512-yxnWgSS4J6DMFPw2Dof85yBkG02VTbEiqsikymMsnZnXDurtVGTIhlNuV24GTmFTuJMzEyTTU9UF+O7zaL8LEQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.15.6.tgz", + "integrity": "sha512-qfEhf+zfU9aQdbzo1qrSWlbPQhH1nCgeYgwhOVnj9Bn39shJQitEnXpSQpSNag8+uty5Od6PxmlNKPTnPySRKA==", "requires": { - "@babel/runtime": "^7.23.2", - "@types/prop-types": "^15.7.9", + "@babel/runtime": "^7.23.8", + "@types/prop-types": "^15.7.11", "prop-types": "^15.8.1", "react-is": "^18.2.0" }, @@ -37653,9 +37717,9 @@ "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==" }, "@types/prop-types": { - "version": "15.7.10", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.10.tgz", - "integrity": "sha512-mxSnDQxPqsZxmeShFH+uwQ4kO4gcJcGahjjMFeLbKE95IAZiiZyiEepGZjtXJ7hN/yfu0bu9xN2ajcU0JcxX6A==" + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" }, "@types/q": { "version": "1.5.5", @@ -37756,9 +37820,9 @@ } }, "@types/react-transition-group": { - "version": "4.4.5", - "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.5.tgz", - "integrity": "sha512-juKD/eiSM3/xZYzjuzH6ZwpP+/lejltmiS3QEzV/vmb/Q8+HfDmxu+Baga8UEMGBqV88Nbg4l2hY/K2DkyaLLA==", + "version": "4.4.10", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.10.tgz", + "integrity": "sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==", "requires": { "@types/react": "*" } @@ -40819,9 +40883,9 @@ } }, "csstype": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz", - "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "d3": { "version": "7.6.1", @@ -45977,12 +46041,6 @@ "integrity": "sha512-NZIITw8uZQFuzQimqjUxIrIcEdxYDFIe/0xYfIlVXTkiBjjyBEvgasj5bb0/cHtPRD/NziPbT312sFrkI5ALpw==", "dev": true }, - "jotai": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jotai/-/jotai-2.4.0.tgz", - "integrity": "sha512-NUHJdAJe3C8Prf0DD6EzezCATjkNvfCNI7pgkaX7bCPPsqE0oK8L9RzZsEhz/UxFoGRayXwacTvAli0VEYKkqQ==", - "requires": {} - }, "jquery": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", diff --git a/package.json b/package.json index cf5709acff..35bbded949 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alkemio/client-web", - "version": "0.53.0", + "version": "0.53.1", "description": "Alkemio client, enabling users to interact with Challenges hosted on the Alkemio platform.", "author": "Alkemio Foundation", "repository": { @@ -36,7 +36,7 @@ "@mui/base": "^5.0.0-beta.23", "@mui/icons-material": "^5.11.16", "@mui/lab": "^5.0.0-alpha.56", - "@mui/material": "^5.2.0", + "@mui/material": "5.13.x", "@mui/styles": "^5.2.0", "@mui/x-data-grid": "^5.0.1", "@mui/x-date-pickers": "^5.0.16", @@ -77,7 +77,6 @@ "i18next-browser-languagedetector": "^6.1.3", "idb-keyval": "^6.2.1", "immer": "^9.0.12", - "jotai": "^2.4.0", "jquery": "^3.5.1", "lodash": "^4.17.21", "logform": "^2.2.0", diff --git a/src/core/apollo/generated/apollo-hooks.ts b/src/core/apollo/generated/apollo-hooks.ts index 87538d4188..ac9537b35d 100644 --- a/src/core/apollo/generated/apollo-hooks.ts +++ b/src/core/apollo/generated/apollo-hooks.ts @@ -144,6 +144,7 @@ export const ActivityLogMemberJoinedFragmentDoc = gql` profile { id displayName + url visual(type: AVATAR) { id uri @@ -194,11 +195,10 @@ export const ActivityLogCalloutPostCreatedFragmentDoc = gql` post { id nameID - type profile { id + url displayName - description } } } @@ -212,35 +212,26 @@ export const ActivityLogCalloutLinkCreatedFragmentDoc = gql` profile { id displayName + url } } } reference { id name - description uri } } `; export const ActivityLogCalloutPostCommentFragmentDoc = gql` fragment ActivityLogCalloutPostComment on ActivityLogEntryCalloutPostComment { - callout { - id - nameID - framing { - profile { - id - displayName - } - } - } post { id nameID profile { id displayName + url } } } @@ -254,6 +245,7 @@ export const ActivityLogCalloutWhiteboardCreatedFragmentDoc = gql` profile { id displayName + url } } } @@ -263,6 +255,7 @@ export const ActivityLogCalloutWhiteboardCreatedFragmentDoc = gql` profile { id displayName + url } } } @@ -291,7 +284,7 @@ export const ActivityLogChallengeCreatedFragmentDoc = gql` profile { id displayName - tagline + url } } } @@ -304,7 +297,7 @@ export const ActivityLogOpportunityCreatedFragmentDoc = gql` profile { id displayName - tagline + url } } } @@ -316,16 +309,13 @@ export const ActivityLogUpdateSentFragmentDoc = gql` `; export const ActivityLogCalendarEventCreatedFragmentDoc = gql` fragment ActivityLogCalendarEventCreated on ActivityLogEntryCalendarEventCreated { - calendar { - id - } calendarEvent { id nameID profile { id displayName - description + url } } } @@ -533,12 +523,19 @@ export const WhiteboardRtDetailsFragmentDoc = gql` myPrivileges anonymousReadAccess } + contentUpdatePolicy createdBy { id profile { id displayName - visual(type: AVATAR) { + url + location { + id + country + city + } + avatar: visual(type: AVATAR) { id uri } @@ -575,6 +572,7 @@ export const MessageDetailsFragmentDoc = gql` profile { id displayName + url avatar: visual(type: AVATAR) { id uri @@ -2168,6 +2166,7 @@ export const ChallengeInfoFragmentDoc = gql` displayName tagline description + url tagset { ...TagsetDetails } @@ -2185,6 +2184,7 @@ export const ChallengeInfoFragmentDoc = gql` } community { id + myMembershipStatus authorization { id myPrivileges @@ -2454,6 +2454,7 @@ export const OpportunityProviderFragmentDoc = gql` displayName description tagline + url visuals { ...VisualFull } @@ -2480,6 +2481,7 @@ export const OpportunityProviderFragmentDoc = gql` } community { id + myMembershipStatus authorization { id myPrivileges @@ -2529,6 +2531,7 @@ export const SpaceDetailsFragmentDoc = gql` displayName description tagline + url tagset { ...TagsetDetails } @@ -2570,6 +2573,7 @@ export const SpaceInfoFragmentDoc = gql` } community { id + myMembershipStatus authorization { id myPrivileges @@ -9330,6 +9334,126 @@ export function useWhiteboardContentUpdatedSubscription( export type WhiteboardContentUpdatedSubscriptionHookResult = ReturnType; export type WhiteboardContentUpdatedSubscriptionResult = Apollo.SubscriptionResult; +export const WhiteboardRtContentUpdatePolicyDocument = gql` + query WhiteboardRtContentUpdatePolicy($whiteboardId: UUID!) { + lookup { + whiteboardRt(ID: $whiteboardId) { + id + contentUpdatePolicy + } + } + } +`; + +/** + * __useWhiteboardRtContentUpdatePolicyQuery__ + * + * To run a query within a React component, call `useWhiteboardRtContentUpdatePolicyQuery` and pass it any options that fit your needs. + * When your component renders, `useWhiteboardRtContentUpdatePolicyQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useWhiteboardRtContentUpdatePolicyQuery({ + * variables: { + * whiteboardId: // value for 'whiteboardId' + * }, + * }); + */ +export function useWhiteboardRtContentUpdatePolicyQuery( + baseOptions: Apollo.QueryHookOptions< + SchemaTypes.WhiteboardRtContentUpdatePolicyQuery, + SchemaTypes.WhiteboardRtContentUpdatePolicyQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + SchemaTypes.WhiteboardRtContentUpdatePolicyQuery, + SchemaTypes.WhiteboardRtContentUpdatePolicyQueryVariables + >(WhiteboardRtContentUpdatePolicyDocument, options); +} + +export function useWhiteboardRtContentUpdatePolicyLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + SchemaTypes.WhiteboardRtContentUpdatePolicyQuery, + SchemaTypes.WhiteboardRtContentUpdatePolicyQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + SchemaTypes.WhiteboardRtContentUpdatePolicyQuery, + SchemaTypes.WhiteboardRtContentUpdatePolicyQueryVariables + >(WhiteboardRtContentUpdatePolicyDocument, options); +} + +export type WhiteboardRtContentUpdatePolicyQueryHookResult = ReturnType; +export type WhiteboardRtContentUpdatePolicyLazyQueryHookResult = ReturnType< + typeof useWhiteboardRtContentUpdatePolicyLazyQuery +>; +export type WhiteboardRtContentUpdatePolicyQueryResult = Apollo.QueryResult< + SchemaTypes.WhiteboardRtContentUpdatePolicyQuery, + SchemaTypes.WhiteboardRtContentUpdatePolicyQueryVariables +>; +export function refetchWhiteboardRtContentUpdatePolicyQuery( + variables: SchemaTypes.WhiteboardRtContentUpdatePolicyQueryVariables +) { + return { query: WhiteboardRtContentUpdatePolicyDocument, variables: variables }; +} + +export const UpdateWhiteboardRtContentUpdatePolicyDocument = gql` + mutation UpdateWhiteboardRtContentUpdatePolicy($whiteboardId: UUID!, $contentUpdatePolicy: ContentUpdatePolicy!) { + updateWhiteboardRt(whiteboardData: { ID: $whiteboardId, contentUpdatePolicy: $contentUpdatePolicy }) { + id + contentUpdatePolicy + } + } +`; +export type UpdateWhiteboardRtContentUpdatePolicyMutationFn = Apollo.MutationFunction< + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutation, + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutationVariables +>; + +/** + * __useUpdateWhiteboardRtContentUpdatePolicyMutation__ + * + * To run a mutation, you first call `useUpdateWhiteboardRtContentUpdatePolicyMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateWhiteboardRtContentUpdatePolicyMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateWhiteboardRtContentUpdatePolicyMutation, { data, loading, error }] = useUpdateWhiteboardRtContentUpdatePolicyMutation({ + * variables: { + * whiteboardId: // value for 'whiteboardId' + * contentUpdatePolicy: // value for 'contentUpdatePolicy' + * }, + * }); + */ +export function useUpdateWhiteboardRtContentUpdatePolicyMutation( + baseOptions?: Apollo.MutationHookOptions< + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutation, + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutationVariables + > +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutation, + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutationVariables + >(UpdateWhiteboardRtContentUpdatePolicyDocument, options); +} + +export type UpdateWhiteboardRtContentUpdatePolicyMutationHookResult = ReturnType< + typeof useUpdateWhiteboardRtContentUpdatePolicyMutation +>; +export type UpdateWhiteboardRtContentUpdatePolicyMutationResult = + Apollo.MutationResult; +export type UpdateWhiteboardRtContentUpdatePolicyMutationOptions = Apollo.BaseMutationOptions< + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutation, + SchemaTypes.UpdateWhiteboardRtContentUpdatePolicyMutationVariables +>; export const ChallengePreferencesDocument = gql` query challengePreferences($spaceNameId: UUID_NAMEID!, $challengeNameId: UUID_NAMEID!) { space(ID: $spaceNameId) { @@ -17112,6 +17236,66 @@ export function refetchChallengeDashboardReferencesQuery( return { query: ChallengeDashboardReferencesDocument, variables: variables }; } +export const ChallengeInfoDocument = gql` + query challengeInfo($spaceId: UUID_NAMEID!, $challengeId: UUID_NAMEID!) { + space(ID: $spaceId) { + id + nameID + challenge(ID: $challengeId) { + ...ChallengeInfo + } + } + } + ${ChallengeInfoFragmentDoc} +`; + +/** + * __useChallengeInfoQuery__ + * + * To run a query within a React component, call `useChallengeInfoQuery` and pass it any options that fit your needs. + * When your component renders, `useChallengeInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useChallengeInfoQuery({ + * variables: { + * spaceId: // value for 'spaceId' + * challengeId: // value for 'challengeId' + * }, + * }); + */ +export function useChallengeInfoQuery( + baseOptions: Apollo.QueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + ChallengeInfoDocument, + options + ); +} + +export function useChallengeInfoLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + ChallengeInfoDocument, + options + ); +} + +export type ChallengeInfoQueryHookResult = ReturnType; +export type ChallengeInfoLazyQueryHookResult = ReturnType; +export type ChallengeInfoQueryResult = Apollo.QueryResult< + SchemaTypes.ChallengeInfoQuery, + SchemaTypes.ChallengeInfoQueryVariables +>; +export function refetchChallengeInfoQuery(variables: SchemaTypes.ChallengeInfoQueryVariables) { + return { query: ChallengeInfoDocument, variables: variables }; +} + export const CreateChallengeDocument = gql` mutation createChallenge($input: CreateChallengeOnSpaceInput!) { createChallenge(challengeData: $input) { @@ -17399,66 +17583,6 @@ export function refetchChallengeApplicationTemplateQuery( return { query: ChallengeApplicationTemplateDocument, variables: variables }; } -export const ChallengeInfoDocument = gql` - query challengeInfo($spaceId: UUID_NAMEID!, $challengeId: UUID_NAMEID!) { - space(ID: $spaceId) { - id - nameID - challenge(ID: $challengeId) { - ...ChallengeInfo - } - } - } - ${ChallengeInfoFragmentDoc} -`; - -/** - * __useChallengeInfoQuery__ - * - * To run a query within a React component, call `useChallengeInfoQuery` and pass it any options that fit your needs. - * When your component renders, `useChallengeInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useChallengeInfoQuery({ - * variables: { - * spaceId: // value for 'spaceId' - * challengeId: // value for 'challengeId' - * }, - * }); - */ -export function useChallengeInfoQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = { ...defaultOptions, ...baseOptions }; - return Apollo.useQuery( - ChallengeInfoDocument, - options - ); -} - -export function useChallengeInfoLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = { ...defaultOptions, ...baseOptions }; - return Apollo.useLazyQuery( - ChallengeInfoDocument, - options - ); -} - -export type ChallengeInfoQueryHookResult = ReturnType; -export type ChallengeInfoLazyQueryHookResult = ReturnType; -export type ChallengeInfoQueryResult = Apollo.QueryResult< - SchemaTypes.ChallengeInfoQuery, - SchemaTypes.ChallengeInfoQueryVariables ->; -export function refetchChallengeInfoQuery(variables: SchemaTypes.ChallengeInfoQueryVariables) { - return { query: ChallengeInfoDocument, variables: variables }; -} - export const ChallengeInnovationFlowDocument = gql` query challengeInnovationFlow($spaceId: UUID_NAMEID!, $challengeId: UUID_NAMEID!) { space(ID: $spaceId) { diff --git a/src/core/apollo/generated/graphql-schema.ts b/src/core/apollo/generated/graphql-schema.ts index 7a0dd8415c..d7a6859062 100644 --- a/src/core/apollo/generated/graphql-schema.ts +++ b/src/core/apollo/generated/graphql-schema.ts @@ -2418,9 +2418,7 @@ export type MeQueryResultsInvitationsArgs = { }; export type MeQueryResultsMyJourneysArgs = { - filter?: InputMaybe; limit?: InputMaybe; - types?: InputMaybe>; }; export type MeQueryResultsSpaceMembershipsArgs = { @@ -6134,6 +6132,7 @@ export type CalloutPageCalloutQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -6197,7 +6196,11 @@ export type CalloutPageCalloutQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: + | { __typename?: 'Location'; id: string; country: string; city: string } + | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -6356,6 +6359,7 @@ export type CalloutPageCalloutQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -6552,6 +6556,7 @@ export type CalloutPageCalloutQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -6615,7 +6620,11 @@ export type CalloutPageCalloutQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: + | { __typename?: 'Location'; id: string; country: string; city: string } + | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -6776,6 +6785,7 @@ export type CalloutPageCalloutQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -6973,6 +6983,7 @@ export type CalloutPageCalloutQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -7036,7 +7047,11 @@ export type CalloutPageCalloutQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: + | { __typename?: 'Location'; id: string; country: string; city: string } + | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -7197,6 +7212,7 @@ export type CalloutPageCalloutQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -8105,12 +8121,11 @@ export type ActivityCreatedSubscription = { location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - calendar: { __typename?: 'Calendar'; id: string }; calendarEvent: { __typename?: 'CalendarEvent'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -8198,16 +8213,10 @@ export type ActivityCreatedSubscription = { nameID: string; framing: { __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; - reference: { - __typename?: 'Reference'; - id: string; - name: string; - description?: string | undefined; - uri: string; - }; + reference: { __typename?: 'Reference'; id: string; name: string; uri: string }; } | { __typename: 'ActivityLogEntryCalloutPostComment'; @@ -8243,20 +8252,11 @@ export type ActivityCreatedSubscription = { location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - callout: { - __typename?: 'Callout'; - id: string; - nameID: string; - framing: { - __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; - }; - }; post: { __typename?: 'Post'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -8307,8 +8307,7 @@ export type ActivityCreatedSubscription = { __typename?: 'Post'; id: string; nameID: string; - type: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; url: string; displayName: string }; }; } | { @@ -8396,14 +8395,14 @@ export type ActivityCreatedSubscription = { nameID: string; framing: { __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; whiteboard: { __typename?: 'Whiteboard'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -8444,7 +8443,7 @@ export type ActivityCreatedSubscription = { __typename?: 'Challenge'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -8492,6 +8491,7 @@ export type ActivityCreatedSubscription = { __typename?: 'Profile'; id: string; displayName: string; + url: string; visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -8545,7 +8545,7 @@ export type ActivityCreatedSubscription = { __typename?: 'Opportunity'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -8621,12 +8621,11 @@ type ActivityLogOnCollaboration_ActivityLogEntryCalendarEventCreated_Fragment = location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - calendar: { __typename?: 'Calendar'; id: string }; calendarEvent: { __typename?: 'CalendarEvent'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -8714,9 +8713,12 @@ type ActivityLogOnCollaboration_ActivityLogEntryCalloutLinkCreated_Fragment = { __typename?: 'Callout'; id: string; nameID: string; - framing: { __typename?: 'CalloutFraming'; profile: { __typename?: 'Profile'; id: string; displayName: string } }; + framing: { + __typename?: 'CalloutFraming'; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; + }; }; - reference: { __typename?: 'Reference'; id: string; name: string; description?: string | undefined; uri: string }; + reference: { __typename?: 'Reference'; id: string; name: string; uri: string }; }; type ActivityLogOnCollaboration_ActivityLogEntryCalloutPostComment_Fragment = { @@ -8753,17 +8755,11 @@ type ActivityLogOnCollaboration_ActivityLogEntryCalloutPostComment_Fragment = { location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - callout: { - __typename?: 'Callout'; - id: string; - nameID: string; - framing: { __typename?: 'CalloutFraming'; profile: { __typename?: 'Profile'; id: string; displayName: string } }; - }; post: { __typename?: 'Post'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -8815,8 +8811,7 @@ type ActivityLogOnCollaboration_ActivityLogEntryCalloutPostCreated_Fragment = { __typename?: 'Post'; id: string; nameID: string; - type: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; url: string; displayName: string }; }; }; @@ -8904,13 +8899,16 @@ type ActivityLogOnCollaboration_ActivityLogEntryCalloutWhiteboardCreated_Fragmen __typename?: 'Callout'; id: string; nameID: string; - framing: { __typename?: 'CalloutFraming'; profile: { __typename?: 'Profile'; id: string; displayName: string } }; + framing: { + __typename?: 'CalloutFraming'; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; + }; }; whiteboard: { __typename?: 'Whiteboard'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -8952,7 +8950,7 @@ type ActivityLogOnCollaboration_ActivityLogEntryChallengeCreated_Fragment = { __typename?: 'Challenge'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -9001,6 +8999,7 @@ type ActivityLogOnCollaboration_ActivityLogEntryMemberJoined_Fragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -9055,7 +9054,7 @@ type ActivityLogOnCollaboration_ActivityLogEntryOpportunityCreated_Fragment = { __typename?: 'Opportunity'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -9152,12 +9151,11 @@ export type ActivityLogOnCollaborationQuery = { location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - calendar: { __typename?: 'Calendar'; id: string }; calendarEvent: { __typename?: 'CalendarEvent'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -9245,16 +9243,10 @@ export type ActivityLogOnCollaborationQuery = { nameID: string; framing: { __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; - reference: { - __typename?: 'Reference'; - id: string; - name: string; - description?: string | undefined; - uri: string; - }; + reference: { __typename?: 'Reference'; id: string; name: string; uri: string }; } | { __typename: 'ActivityLogEntryCalloutPostComment'; @@ -9290,20 +9282,11 @@ export type ActivityLogOnCollaborationQuery = { location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - callout: { - __typename?: 'Callout'; - id: string; - nameID: string; - framing: { - __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; - }; - }; post: { __typename?: 'Post'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -9354,8 +9337,7 @@ export type ActivityLogOnCollaborationQuery = { __typename?: 'Post'; id: string; nameID: string; - type: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; url: string; displayName: string }; }; } | { @@ -9443,14 +9425,14 @@ export type ActivityLogOnCollaborationQuery = { nameID: string; framing: { __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; whiteboard: { __typename?: 'Whiteboard'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -9491,7 +9473,7 @@ export type ActivityLogOnCollaborationQuery = { __typename?: 'Challenge'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -9539,6 +9521,7 @@ export type ActivityLogOnCollaborationQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -9592,7 +9575,7 @@ export type ActivityLogOnCollaborationQuery = { __typename?: 'Opportunity'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -9647,6 +9630,7 @@ export type ActivityLogMemberJoinedFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -9693,8 +9677,7 @@ export type ActivityLogCalloutPostCreatedFragment = { __typename?: 'Post'; id: string; nameID: string; - type: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; url: string; displayName: string }; }; }; @@ -9704,24 +9687,21 @@ export type ActivityLogCalloutLinkCreatedFragment = { __typename?: 'Callout'; id: string; nameID: string; - framing: { __typename?: 'CalloutFraming'; profile: { __typename?: 'Profile'; id: string; displayName: string } }; + framing: { + __typename?: 'CalloutFraming'; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; + }; }; - reference: { __typename?: 'Reference'; id: string; name: string; description?: string | undefined; uri: string }; + reference: { __typename?: 'Reference'; id: string; name: string; uri: string }; }; export type ActivityLogCalloutPostCommentFragment = { __typename?: 'ActivityLogEntryCalloutPostComment'; - callout: { - __typename?: 'Callout'; - id: string; - nameID: string; - framing: { __typename?: 'CalloutFraming'; profile: { __typename?: 'Profile'; id: string; displayName: string } }; - }; post: { __typename?: 'Post'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -9731,13 +9711,16 @@ export type ActivityLogCalloutWhiteboardCreatedFragment = { __typename?: 'Callout'; id: string; nameID: string; - framing: { __typename?: 'CalloutFraming'; profile: { __typename?: 'Profile'; id: string; displayName: string } }; + framing: { + __typename?: 'CalloutFraming'; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; + }; }; whiteboard: { __typename?: 'Whiteboard'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -9747,7 +9730,7 @@ export type ActivityLogChallengeCreatedFragment = { __typename?: 'Challenge'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -9757,7 +9740,7 @@ export type ActivityLogOpportunityCreatedFragment = { __typename?: 'Opportunity'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -9777,12 +9760,11 @@ export type ActivityLogCalloutDiscussionCommentFragment = { export type ActivityLogCalendarEventCreatedFragment = { __typename?: 'ActivityLogEntryCalendarEventCreated'; - calendar: { __typename?: 'Calendar'; id: string }; calendarEvent: { __typename?: 'CalendarEvent'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; @@ -10164,6 +10146,7 @@ export type CalloutTemplateContentQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; content: string; profile: { __typename?: 'Profile'; @@ -10228,7 +10211,9 @@ export type CalloutTemplateContentQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -10517,6 +10502,7 @@ export type CreateCalloutMutation = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -10580,7 +10566,9 @@ export type CreateCalloutMutation = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -10729,6 +10717,7 @@ export type CreateCalloutMutation = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -11260,6 +11249,7 @@ export type CalloutsQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -11323,7 +11313,11 @@ export type CalloutsQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: + | { __typename?: 'Location'; id: string; country: string; city: string } + | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -11482,6 +11476,7 @@ export type CalloutsQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -11682,6 +11677,7 @@ export type CalloutsQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -11745,7 +11741,11 @@ export type CalloutsQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: + | { __typename?: 'Location'; id: string; country: string; city: string } + | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -11906,6 +11906,7 @@ export type CalloutsQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -12107,6 +12108,7 @@ export type CalloutsQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -12170,7 +12172,11 @@ export type CalloutsQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: + | { __typename?: 'Location'; id: string; country: string; city: string } + | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -12331,6 +12337,7 @@ export type CalloutsQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -12526,6 +12533,7 @@ export type CollaborationWithCalloutsFragment = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -12589,7 +12597,9 @@ export type CollaborationWithCalloutsFragment = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -12738,6 +12748,7 @@ export type CollaborationWithCalloutsFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -12910,6 +12921,7 @@ export type CalloutFragment = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -12973,7 +12985,9 @@ export type CalloutFragment = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -13122,6 +13136,7 @@ export type CalloutFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -13403,6 +13418,7 @@ export type SpacePostQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -13555,6 +13571,7 @@ export type ChallengePostQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -13708,6 +13725,7 @@ export type OpportunityPostQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -13843,6 +13861,7 @@ export type PostDashboardDataFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -13947,6 +13966,7 @@ export type PostDashboardFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -15097,6 +15117,7 @@ export type WhiteboardRtDetailsFragment = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -15160,7 +15181,9 @@ export type WhiteboardRtDetailsFragment = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -15446,6 +15469,7 @@ export type CalloutWithWhiteboardRtFragment = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -15509,7 +15533,9 @@ export type CalloutWithWhiteboardRtFragment = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -15639,6 +15665,7 @@ export type CollaborationWithWhiteboardDetailsFragment = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -15702,7 +15729,9 @@ export type CollaborationWithWhiteboardDetailsFragment = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -15961,6 +15990,7 @@ export type WhiteboardRtFromCalloutQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -16024,7 +16054,9 @@ export type WhiteboardRtFromCalloutQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -16153,6 +16185,7 @@ export type WhiteboardRtWithContentQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; content: string; profile: { __typename?: 'Profile'; @@ -16217,7 +16250,9 @@ export type WhiteboardRtWithContentQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -16494,6 +16529,28 @@ export type WhiteboardContentUpdatedSubscription = { whiteboardContentUpdated: { __typename?: 'WhiteboardContentUpdated'; whiteboardID: string; content: string }; }; +export type WhiteboardRtContentUpdatePolicyQueryVariables = Exact<{ + whiteboardId: Scalars['UUID']; +}>; + +export type WhiteboardRtContentUpdatePolicyQuery = { + __typename?: 'Query'; + lookup: { + __typename?: 'LookupQueryResults'; + whiteboardRt?: { __typename?: 'WhiteboardRt'; id: string; contentUpdatePolicy: ContentUpdatePolicy } | undefined; + }; +}; + +export type UpdateWhiteboardRtContentUpdatePolicyMutationVariables = Exact<{ + whiteboardId: Scalars['UUID']; + contentUpdatePolicy: ContentUpdatePolicy; +}>; + +export type UpdateWhiteboardRtContentUpdatePolicyMutation = { + __typename?: 'Mutation'; + updateWhiteboardRt: { __typename?: 'WhiteboardRt'; id: string; contentUpdatePolicy: ContentUpdatePolicy }; +}; + export type ChallengePreferencesQueryVariables = Exact<{ spaceNameId: Scalars['UUID_NAMEID']; challengeNameId: Scalars['UUID_NAMEID']; @@ -16766,6 +16823,7 @@ export type CreateDiscussionMutation = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -16836,6 +16894,7 @@ export type DiscussionDetailsFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -17035,6 +17094,7 @@ export type PlatformDiscussionQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -17155,6 +17215,7 @@ export type MessageDetailsFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -17214,6 +17275,7 @@ export type CommentsWithMessagesFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -17337,6 +17399,7 @@ export type RoomEventsSubscription = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -17414,6 +17477,7 @@ export type CommunityUpdatesQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -22365,61 +22429,148 @@ export type ChallengeDashboardReferencesQuery = { }; }; -export type ChallengeInfoFragment = { - __typename?: 'Challenge'; - id: string; - nameID: string; - profile: { - __typename?: 'Profile'; +export type ChallengeInfoQueryVariables = Exact<{ + spaceId: Scalars['UUID_NAMEID']; + challengeId: Scalars['UUID_NAMEID']; +}>; + +export type ChallengeInfoQuery = { + __typename?: 'Query'; + space: { + __typename?: 'Space'; id: string; - displayName: string; - tagline: string; - description?: string | undefined; - tagset?: - | { - __typename?: 'Tagset'; - id: string; - name: string; - tags: Array; - allowedValues: Array; - type: TagsetType; - } - | undefined; - references?: Array<{ __typename?: 'Reference'; id: string; name: string; uri: string }> | undefined; - visuals: Array<{ - __typename?: 'Visual'; + nameID: string; + challenge: { + __typename?: 'Challenge'; id: string; - uri: string; - name: string; - allowedTypes: Array; - aspectRatio: number; - maxHeight: number; - maxWidth: number; - minHeight: number; - minWidth: number; - alternativeText?: string | undefined; - }>; - location?: - | { - __typename?: 'Location'; - id: string; - country: string; - city: string; - addressLine1: string; - addressLine2: string; - stateOrProvince: string; - postalCode: string; - } - | undefined; - }; - community?: - | { - __typename?: 'Community'; + nameID: string; + profile: { + __typename?: 'Profile'; id: string; - authorization?: - | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } + displayName: string; + tagline: string; + description?: string | undefined; + url: string; + tagset?: + | { + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + } | undefined; - } + references?: Array<{ __typename?: 'Reference'; id: string; name: string; uri: string }> | undefined; + visuals: Array<{ + __typename?: 'Visual'; + id: string; + uri: string; + name: string; + allowedTypes: Array; + aspectRatio: number; + maxHeight: number; + maxWidth: number; + minHeight: number; + minWidth: number; + alternativeText?: string | undefined; + }>; + location?: + | { + __typename?: 'Location'; + id: string; + country: string; + city: string; + addressLine1: string; + addressLine2: string; + stateOrProvince: string; + postalCode: string; + } + | undefined; + }; + community?: + | { + __typename?: 'Community'; + id: string; + myMembershipStatus?: CommunityMembershipStatus | undefined; + authorization?: + | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } + | undefined; + } + | undefined; + authorization?: + | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } + | undefined; + context?: + | { + __typename?: 'Context'; + id: string; + authorization?: + | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } + | undefined; + } + | undefined; + }; + }; +}; + +export type ChallengeInfoFragment = { + __typename?: 'Challenge'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + tagline: string; + description?: string | undefined; + url: string; + tagset?: + | { + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + } + | undefined; + references?: Array<{ __typename?: 'Reference'; id: string; name: string; uri: string }> | undefined; + visuals: Array<{ + __typename?: 'Visual'; + id: string; + uri: string; + name: string; + allowedTypes: Array; + aspectRatio: number; + maxHeight: number; + maxWidth: number; + minHeight: number; + minWidth: number; + alternativeText?: string | undefined; + }>; + location?: + | { + __typename?: 'Location'; + id: string; + country: string; + city: string; + addressLine1: string; + addressLine2: string; + stateOrProvince: string; + postalCode: string; + } + | undefined; + }; + community?: + | { + __typename?: 'Community'; + id: string; + myMembershipStatus?: CommunityMembershipStatus | undefined; + authorization?: + | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } + | undefined; + } | undefined; authorization?: | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } @@ -22639,89 +22790,6 @@ export type ChallengeApplicationTemplateQuery = { }; }; -export type ChallengeInfoQueryVariables = Exact<{ - spaceId: Scalars['UUID_NAMEID']; - challengeId: Scalars['UUID_NAMEID']; -}>; - -export type ChallengeInfoQuery = { - __typename?: 'Query'; - space: { - __typename?: 'Space'; - id: string; - nameID: string; - challenge: { - __typename?: 'Challenge'; - id: string; - nameID: string; - profile: { - __typename?: 'Profile'; - id: string; - displayName: string; - tagline: string; - description?: string | undefined; - tagset?: - | { - __typename?: 'Tagset'; - id: string; - name: string; - tags: Array; - allowedValues: Array; - type: TagsetType; - } - | undefined; - references?: Array<{ __typename?: 'Reference'; id: string; name: string; uri: string }> | undefined; - visuals: Array<{ - __typename?: 'Visual'; - id: string; - uri: string; - name: string; - allowedTypes: Array; - aspectRatio: number; - maxHeight: number; - maxWidth: number; - minHeight: number; - minWidth: number; - alternativeText?: string | undefined; - }>; - location?: - | { - __typename?: 'Location'; - id: string; - country: string; - city: string; - addressLine1: string; - addressLine2: string; - stateOrProvince: string; - postalCode: string; - } - | undefined; - }; - community?: - | { - __typename?: 'Community'; - id: string; - authorization?: - | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } - | undefined; - } - | undefined; - authorization?: - | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } - | undefined; - context?: - | { - __typename?: 'Context'; - id: string; - authorization?: - | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } - | undefined; - } - | undefined; - }; - }; -}; - export type ChallengeInnovationFlowQueryVariables = Exact<{ spaceId: Scalars['UUID_NAMEID']; challengeId: Scalars['UUID_NAMEID']; @@ -24606,6 +24674,7 @@ export type OpportunityProviderQuery = { displayName: string; description?: string | undefined; tagline: string; + url: string; visuals: Array<{ __typename?: 'Visual'; id: string; @@ -24652,6 +24721,7 @@ export type OpportunityProviderQuery = { | { __typename?: 'Community'; id: string; + myMembershipStatus?: CommunityMembershipStatus | undefined; authorization?: | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } | undefined; @@ -24671,6 +24741,7 @@ export type OpportunityProviderFragment = { displayName: string; description?: string | undefined; tagline: string; + url: string; visuals: Array<{ __typename?: 'Visual'; id: string; @@ -24717,6 +24788,7 @@ export type OpportunityProviderFragment = { | { __typename?: 'Community'; id: string; + myMembershipStatus?: CommunityMembershipStatus | undefined; authorization?: | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } | undefined; @@ -25290,6 +25362,77 @@ export type CommunityPageCommunityFragment = { | undefined; }; +export type SpaceDetailsFragment = { + __typename?: 'Space'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + description?: string | undefined; + tagline: string; + url: string; + tagset?: + | { + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + } + | undefined; + references?: + | Array<{ __typename?: 'Reference'; id: string; name: string; description?: string | undefined; uri: string }> + | undefined; + visuals: Array<{ + __typename?: 'Visual'; + id: string; + uri: string; + name: string; + allowedTypes: Array; + aspectRatio: number; + maxHeight: number; + maxWidth: number; + minHeight: number; + minWidth: number; + alternativeText?: string | undefined; + }>; + location?: + | { + __typename?: 'Location'; + id: string; + country: string; + city: string; + addressLine1: string; + addressLine2: string; + stateOrProvince: string; + postalCode: string; + } + | undefined; + }; + host?: { __typename?: 'Organization'; id: string } | undefined; + authorization?: { __typename?: 'Authorization'; id: string; anonymousReadAccess: boolean } | undefined; + context?: + | { + __typename?: 'Context'; + id: string; + vision?: string | undefined; + impact?: string | undefined; + who?: string | undefined; + authorization?: + | { + __typename?: 'Authorization'; + id: string; + myPrivileges?: Array | undefined; + anonymousReadAccess: boolean; + } + | undefined; + } + | undefined; +}; + export type SpaceProviderQueryVariables = Exact<{ spaceId: Scalars['UUID_NAMEID']; }>; @@ -25312,6 +25455,7 @@ export type SpaceProviderQuery = { | { __typename?: 'Community'; id: string; + myMembershipStatus?: CommunityMembershipStatus | undefined; authorization?: | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } | undefined; @@ -25341,6 +25485,7 @@ export type SpaceProviderQuery = { displayName: string; description?: string | undefined; tagline: string; + url: string; tagset?: | { __typename?: 'Tagset'; @@ -25400,6 +25545,7 @@ export type SpaceInfoFragment = { | { __typename?: 'Community'; id: string; + myMembershipStatus?: CommunityMembershipStatus | undefined; authorization?: | { __typename?: 'Authorization'; id: string; myPrivileges?: Array | undefined } | undefined; @@ -25429,6 +25575,7 @@ export type SpaceInfoFragment = { displayName: string; description?: string | undefined; tagline: string; + url: string; tagset?: | { __typename?: 'Tagset'; @@ -26406,76 +26553,6 @@ export type ChallengesOnSpaceFragment = { | undefined; }; -export type SpaceDetailsFragment = { - __typename?: 'Space'; - id: string; - nameID: string; - profile: { - __typename?: 'Profile'; - id: string; - displayName: string; - description?: string | undefined; - tagline: string; - tagset?: - | { - __typename?: 'Tagset'; - id: string; - name: string; - tags: Array; - allowedValues: Array; - type: TagsetType; - } - | undefined; - references?: - | Array<{ __typename?: 'Reference'; id: string; name: string; description?: string | undefined; uri: string }> - | undefined; - visuals: Array<{ - __typename?: 'Visual'; - id: string; - uri: string; - name: string; - allowedTypes: Array; - aspectRatio: number; - maxHeight: number; - maxWidth: number; - minHeight: number; - minWidth: number; - alternativeText?: string | undefined; - }>; - location?: - | { - __typename?: 'Location'; - id: string; - country: string; - city: string; - addressLine1: string; - addressLine2: string; - stateOrProvince: string; - postalCode: string; - } - | undefined; - }; - host?: { __typename?: 'Organization'; id: string } | undefined; - authorization?: { __typename?: 'Authorization'; id: string; anonymousReadAccess: boolean } | undefined; - context?: - | { - __typename?: 'Context'; - id: string; - vision?: string | undefined; - impact?: string | undefined; - who?: string | undefined; - authorization?: - | { - __typename?: 'Authorization'; - id: string; - myPrivileges?: Array | undefined; - anonymousReadAccess: boolean; - } - | undefined; - } - | undefined; -}; - export type SpaceDetailsProviderFragment = { __typename?: 'Space'; id: string; @@ -26530,6 +26607,7 @@ export type CreateSpaceMutation = { displayName: string; description?: string | undefined; tagline: string; + url: string; tagset?: | { __typename?: 'Tagset'; @@ -26616,6 +26694,7 @@ export type UpdateSpaceMutation = { displayName: string; description?: string | undefined; tagline: string; + url: string; tagset?: | { __typename?: 'Tagset'; @@ -29875,6 +29954,7 @@ export type CalloutTemplatePreviewQuery = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -29938,7 +30018,9 @@ export type CalloutTemplatePreviewQuery = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -30077,6 +30159,7 @@ export type CalloutTemplatePreviewFragment = { id: string; nameID: string; createdDate: Date; + contentUpdatePolicy: ContentUpdatePolicy; profile: { __typename?: 'Profile'; id: string; @@ -30140,7 +30223,9 @@ export type CalloutTemplatePreviewFragment = { __typename?: 'Profile'; id: string; displayName: string; - visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + url: string; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; }; } | undefined; @@ -30854,6 +30939,7 @@ export type CalendarEventDetailsQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -30969,6 +31055,7 @@ export type CalendarEventDetailsFragment = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -31101,6 +31188,7 @@ export type CreateCalendarEventMutation = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -31214,6 +31302,7 @@ export type UpdateCalendarEventMutation = { __typename?: 'Profile'; id: string; displayName: string; + url: string; avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -32023,12 +32112,11 @@ export type LatestContributionsQuery = { location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - calendar: { __typename?: 'Calendar'; id: string }; calendarEvent: { __typename?: 'CalendarEvent'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -32216,16 +32304,10 @@ export type LatestContributionsQuery = { nameID: string; framing: { __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; - reference: { - __typename?: 'Reference'; - id: string; - name: string; - description?: string | undefined; - uri: string; - }; + reference: { __typename?: 'Reference'; id: string; name: string; uri: string }; } | { __typename?: 'ActivityLogEntryCalloutPostComment'; @@ -32311,20 +32393,11 @@ export type LatestContributionsQuery = { location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; }; }; - callout: { - __typename?: 'Callout'; - id: string; - nameID: string; - framing: { - __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; - }; - }; post: { __typename?: 'Post'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -32425,8 +32498,7 @@ export type LatestContributionsQuery = { __typename?: 'Post'; id: string; nameID: string; - type: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; description?: string | undefined }; + profile: { __typename?: 'Profile'; id: string; url: string; displayName: string }; }; } | { @@ -32614,14 +32686,14 @@ export type LatestContributionsQuery = { nameID: string; framing: { __typename?: 'CalloutFraming'; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; }; whiteboard: { __typename?: 'Whiteboard'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -32712,7 +32784,7 @@ export type LatestContributionsQuery = { __typename?: 'Challenge'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { @@ -32810,6 +32882,7 @@ export type LatestContributionsQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; visual?: { __typename?: 'Visual'; id: string; uri: string } | undefined; tagsets?: | Array<{ @@ -32913,7 +32986,7 @@ export type LatestContributionsQuery = { __typename?: 'Opportunity'; id: string; nameID: string; - profile: { __typename?: 'Profile'; id: string; displayName: string; tagline: string }; + profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; }; } | { diff --git a/src/core/i18n/en/translation.en.json b/src/core/i18n/en/translation.en.json index ebd8886d6a..4b8bc2d616 100644 --- a/src/core/i18n/en/translation.en.json +++ b/src/core/i18n/en/translation.en.json @@ -1,11 +1,10 @@ { "chatbot": { - "title": "Alkemio Help", - "subtitle": "Ask your question to search through our documentation or browse it directly", + "title": "Help", "intro": "Hi, this is Alkemio’s automated guidance chat. It can provide you with answers based on Alkemio’s documentation. What are you looking for?", "infoDialog": { "title": "Alkemio Help", - "content": "The Alkemio guidance chat is an advanced search module that helps you by automatically generating an answer to your question based on Alkemio’s documentation. There are no people on the other side of the screen ;-). If you want to reach someone from the Alkemio team, please use the contact button below.\nAnswers (and sources) returned here are based on content from the Alkemio help center. The interaction is with a widely used online generative AI engine, which is able to interpret your question and provide guidance as to the most relevant help. There is no user data involved, and interaction with the search engine cannot be linked to individual users." + "content": "Use the Alkemio guidance chat to get automatic answers to your questions from Alkemio’s documentation.\n\nThis is an __advanced search module__ powered by a widely used online generative AI engine. It interprets your question and guides you to the most relevant help from the Alkemio help center. You can see the sources of the answers as well.\n\n__Don’t worry about your privacy:__ the search engine does not use or store any user data, and it cannot link the interaction to individual users. If you need to contact the Alkemio team, please click the contact button below." }, "feedback": { "message": "Is the answer relevant?", @@ -17,15 +16,18 @@ }, "references": [ { - "uri": "https://www.alkemio.org/help/getting-started/", + "icon": "GradeOutlined", + "uri": "https://welcome.alkem.io/help/getting-started/", "title": "New user? Visit our Getting Started pages!" }, { - "uri": "https://www.alkemio.org/help/", + "icon": "NotListedLocationOutlined", + "uri": "https://welcome.alkem.io/help/", "title": "Find your answers in the Help Center or FAQ" }, { - "uri": "https://www.alkemio.org/support/", + "icon": "EmailOutlined", + "uri": "https://welcome.alkem.io/contact/", "title": "Contact the Alkemio team" } ] @@ -134,7 +136,6 @@ "create-project": "Create project", "processing": "Processing...", "details": "Details", - "settings": "Settings", "member": "Member", "profile": "Profile", "view-profile": "View Profile", @@ -856,6 +857,21 @@ } }, "components": { + "shareSettings": { + "description": "Based on the settings of the Space that this Whiteboard is in, you can edit with multiple users\u2028at once. If you do not want others to edit, change the settings below.", + "disabled": "Based on the settings of the Space that this Whiteboard is in, real-time collaboration is not enabled. This means that only one user can edit at a time.", + "ownedBy": { + "title": "This whiteboard is owned by:" + }, + "editableBy": { + "title": "This whiteboard can be edited by:", + "options": { + "CONTRIBUTORS": "Everyone who can contribute in this {{journey}}", + "ADMINS": "The owner and the admins and leads of this {{journey}}", + "OWNER": "The owner of this whiteboard" + } + } + }, "navigation": { "exitMenu": "Exit menu", "skipMenu": "Skip main menu" @@ -1012,33 +1028,22 @@ "activity-join-error-message": "To see the recent contributions, please join if you are not yet a member of this {{journeyType}}.", "activity-sign-in-and-join-error-message": "To see the recent contributions, please sign in and join if you are not yet a member of this {{journeyType}}." }, - "activity-log-view": { - "actions": { - "callout-published": "{{time}} '{{user}}' published a new $t(common.callout)", - "challenge-created": "{{time}} '{{user}}' created a new $t(common.challenge)", - "discussion-comment-created": "{{time}} '{{user}}' commented on '{{calloutDisplayName}}'", - "member-joined": "{{time}} '{{user}}' joined the {{communityType}} '{{journeyDisplayName}}'", - "opportunity-created": "{{time}} '{{user}}' created a new $t(common.opportunity)", - "post-comment-created": "{{time}} '{{user}}' commented on '{{postDisplayName}}'", - "post-created": "{{time}} '{{user}}' added a Post to '{{calloutDisplayName}}'", - "callout-link-created": "{{time}} '{{user}}' added a Link to '{{calloutDisplayName}}'", - "update-sent": "{{time}} '{{user}}' shared a new $t(common.update)", - "whiteboard-created": "{{time}} '{{user}}' added a $t(common.whiteboard) to '{{calloutDisplayName}}'", - "calendar-event-created": "{{time}} '{{user}}' added a new calendar event '{{eventDisplayName}}'" - }, - "parent-link": " in {{journeyDisplayName}}", - "activity-description": { - "callout-published": "{{displayName}}", - "challenge-created": "{{displayName}}", - "discussion-comment-created": "{{comment}}", - "member-joined": "{{user}}", - "opportunity-created": "{{displayName}}", - "post-comment-created": "{{comment}}", - "post-created": "{{postDisplayName}} - {{postDescription}}", - "callout-link-created": "{{linkName}} - {{linkDescription}}", - "update-sent": "{{update}}", - "whiteboard-created": "{{displayName}}", - "calendar-event-created": "{{eventDescription}}" + "activityLogView": { + "description": { + "CALLOUT_PUBLISHED": "{{subject}}", + "CHALLENGE_CREATED": "{{subject}}", + "DISCUSSION_COMMENT": "{{subject}}", + "MEMBER_JOINED": "{{subject}} joined", + "OPPORTUNITY_CREATED": "{{subject}}", + "CALLOUT_POST_COMMENT": "{{subject}}", + "CALLOUT_POST_CREATED": "{{subject}}", + "CALLOUT_LINK_CREATED": "{{subject}}", + "UPDATE_SENT": "{{subject}}", + "CALLOUT_WHITEBOARD_CREATED": "{{subject}}", + "CALENDAR_EVENT_CREATED": "{{subject}}" + }, + "detailedDescription": { + "parentLink": " in {{journeyDisplayName}}" } }, "lifecycle": { @@ -2253,6 +2258,11 @@ "title": "Whiteboard connection lost", "message": "Apologies for the inconvenience! The whiteboard isn't available for editing right now, possibly due to a network issue or loss of access. Please try closing and reopening the whiteboard or refreshing the page. If the issue persists, reach out to your Space administrator for assistance.", "lastSaved": "The content of this whiteboard was last saved {{lastSaved}}." + }, + "readonlyReason": { + "contentUpdatePolicy": "You don't have the rights to edit this whiteboard. Ask the owner, {{ownerName}}, to change the settings if you want to contribute.", + "noMembership": "You have to be a member of the {{journeyType}} this whiteboard is in, to be able to edit. Click here to join/apply", + "unauthenticated": "You have to be signed in and a member of the {{journeyType}} this whiteboard is in, to be able to edit. Click here to sign in" } }, "login": { diff --git a/src/core/notFound/NotFoundErrorBoundary.tsx b/src/core/notFound/NotFoundErrorBoundary.tsx index e4cd303f4b..8ebf1a1edf 100644 --- a/src/core/notFound/NotFoundErrorBoundary.tsx +++ b/src/core/notFound/NotFoundErrorBoundary.tsx @@ -3,6 +3,7 @@ import React from 'react'; interface Props { errorComponent: React.ReactNode; } + interface State { hasError: boolean; } diff --git a/src/core/routing/ScrollToTop.tsx b/src/core/routing/ScrollToTop.tsx index f3be00aeed..c8086a70d5 100644 --- a/src/core/routing/ScrollToTop.tsx +++ b/src/core/routing/ScrollToTop.tsx @@ -12,13 +12,13 @@ type NavigationState = }; export default function ScrollToTop() { - const { state } = useLocation(); + const { state, pathname } = useLocation(); useEffect(() => { if (!(state as NavigationState)?.keepScroll) { window.scrollTo(0, 0); } - }, [state]); + }, [state, pathname]); return null; } diff --git a/src/core/state/GlobalStateProvider.tsx b/src/core/state/GlobalStateProvider.tsx index 4dd6562a75..7a7194497e 100644 --- a/src/core/state/GlobalStateProvider.tsx +++ b/src/core/state/GlobalStateProvider.tsx @@ -30,6 +30,7 @@ interface GlobalStateContextProps { // eslint-disable-next-line @typescript-eslint/no-explicit-any notificationsService: Interpreter; } + export const GlobalStateContext = createContext(undefined); export const GlobalStateProvider = ({ children }) => { diff --git a/src/core/ui/card/CardSegmentCaption.tsx b/src/core/ui/card/CardSegmentCaption.tsx index 936d354707..56266e0631 100644 --- a/src/core/ui/card/CardSegmentCaption.tsx +++ b/src/core/ui/card/CardSegmentCaption.tsx @@ -2,7 +2,7 @@ import React, { ReactNode } from 'react'; import { Box, BoxProps } from '@mui/material'; import { Caption } from '../typography'; import { gutters } from '../grid/utils'; -import { BoxTypeMap } from '@mui/material/Box/Box'; +import { BoxTypeMap } from '@mui/system'; interface CardSegmentCaptionProps { align?: 'left' | 'right'; diff --git a/src/core/ui/card/ContributorCardHorizontal.tsx b/src/core/ui/card/ContributorCardHorizontal.tsx index a48f569f34..87d14b4d52 100644 --- a/src/core/ui/card/ContributorCardHorizontal.tsx +++ b/src/core/ui/card/ContributorCardHorizontal.tsx @@ -5,9 +5,9 @@ import BadgeCardView from '../list/BadgeCardView'; import React from 'react'; import GridItem from '../grid/GridItem'; import SwapColors from '../palette/SwapColors'; -import LinkNoUnderline from '../../../domain/shared/components/LinkNoUnderline'; import { useTranslation } from 'react-i18next'; import ContributorTooltip from './ContributorTooltip'; +import RouterLink from '../link/RouterLink'; export interface SpaceWelcomeSectionContributorProps { profile: { @@ -20,44 +20,57 @@ export interface SpaceWelcomeSectionContributorProps { }; url: string; onContact?: () => void; + seamless?: boolean; } -const ContributorCardHorizontal = ({ url, profile, onContact }: SpaceWelcomeSectionContributorProps) => { +const ContributorCardHorizontal = ({ + url, + profile, + onContact, + seamless = false, +}: SpaceWelcomeSectionContributorProps) => { const { t } = useTranslation(); const tags = profile.tagsets ? profile.tagsets.flatMap(tagset => tagset.tags) : []; + if (!seamless) { + return ( + + + + ); + } + return ( - - - + + + {profile.displayName[0]} + + } + component={RouterLink} + to={url} + loose > - - {profile.displayName[0]} - - } - component={LinkNoUnderline} - to={url} - > - {profile.displayName} - {profile.location && getLocationString(profile.location)} - - - - + {profile.displayName} + {profile.location && getLocationString(profile.location)} + + + ); }; diff --git a/src/core/ui/content/Spacer.tsx b/src/core/ui/content/Spacer.tsx new file mode 100644 index 0000000000..9fdd5b247b --- /dev/null +++ b/src/core/ui/content/Spacer.tsx @@ -0,0 +1,8 @@ +import { Box } from '@mui/material'; +import { gutters } from '../grid/utils'; + +const Spacer = () => { + return ; +}; + +export default Spacer; diff --git a/src/core/ui/grid/Gutters.tsx b/src/core/ui/grid/Gutters.tsx index 0b12d9e90c..c5d46d6643 100644 --- a/src/core/ui/grid/Gutters.tsx +++ b/src/core/ui/grid/Gutters.tsx @@ -1,6 +1,6 @@ import React, { forwardRef, ReactElement } from 'react'; import { Box, BoxProps } from '@mui/material'; -import { BoxTypeMap } from '@mui/material/Box/Box'; +import { BoxTypeMap } from '@mui/system'; import { gutters } from './utils'; export interface GuttersProps { diff --git a/src/core/ui/link/RouterLink.tsx b/src/core/ui/link/RouterLink.tsx index 4c99b94b8a..3c905b8ce0 100644 --- a/src/core/ui/link/RouterLink.tsx +++ b/src/core/ui/link/RouterLink.tsx @@ -5,7 +5,7 @@ import { forwardRef } from 'react'; export interface RouterLinkProps extends Omit, Pick { to: string; - loose?: boolean; + strict?: boolean; raw?: boolean; blank?: boolean; } @@ -17,8 +17,8 @@ export interface RouterLinkProps extends Omit, P * @constructor */ const RouterLink = forwardRef( - ({ to, raw = false, loose = raw, blank, ...props }, ref) => { - const urlLike = loose ? normalizeLink(to) : to; + ({ to, raw = false, strict = false, blank, ...props }, ref) => { + const urlLike = !strict ? normalizeLink(to) : to; const isForeign = raw || isAbsoluteUrl(urlLike); diff --git a/src/core/ui/list/BadgeCardView.tsx b/src/core/ui/list/BadgeCardView.tsx index aedd86405d..fa924c2164 100644 --- a/src/core/ui/list/BadgeCardView.tsx +++ b/src/core/ui/list/BadgeCardView.tsx @@ -1,6 +1,6 @@ import React, { cloneElement, forwardRef, PropsWithChildren, ReactElement } from 'react'; import { Box, BoxProps } from '@mui/material'; -import { BoxTypeMap } from '@mui/material/Box/Box'; +import { BoxTypeMap } from '@mui/system'; import { gutters } from '../grid/utils'; interface BadgeCardViewProps { diff --git a/src/core/ui/markdown/MarkdownOptionsContext.tsx b/src/core/ui/markdown/MarkdownOptionsContext.tsx index 0823eb6a84..a328dbdbd9 100644 --- a/src/core/ui/markdown/MarkdownOptionsContext.tsx +++ b/src/core/ui/markdown/MarkdownOptionsContext.tsx @@ -2,9 +2,10 @@ import { createContext, PropsWithChildren, useContext } from 'react'; export interface MarkdownOptions { card: boolean; - flat: boolean; + plain: boolean; multiline: boolean; disableParagraphPadding: boolean; + caption: boolean; } const MarkdownOptionsContext = createContext(undefined); diff --git a/src/core/ui/markdown/OneLineMarkdown.tsx b/src/core/ui/markdown/OneLineMarkdown.tsx index e092a32a68..1c91470102 100644 --- a/src/core/ui/markdown/OneLineMarkdown.tsx +++ b/src/core/ui/markdown/OneLineMarkdown.tsx @@ -13,7 +13,7 @@ interface OneLineMarkdownProps { */ const OneLineMarkdown = ({ children }: OneLineMarkdownProps) => { return ( - + {children} ); diff --git a/src/core/ui/markdown/WrapperMarkdown.tsx b/src/core/ui/markdown/WrapperMarkdown.tsx index 6bd635eeda..5767ab3420 100644 --- a/src/core/ui/markdown/WrapperMarkdown.tsx +++ b/src/core/ui/markdown/WrapperMarkdown.tsx @@ -12,23 +12,25 @@ export interface MarkdownProps extends ReactMarkdownOptions, Partial { return ( diff --git a/src/core/ui/markdown/components/MarkdownLink.tsx b/src/core/ui/markdown/components/MarkdownLink.tsx index 1cf5655382..e046060356 100644 --- a/src/core/ui/markdown/components/MarkdownLink.tsx +++ b/src/core/ui/markdown/components/MarkdownLink.tsx @@ -8,7 +8,7 @@ const MarkdownLink = ({ ...props }: ReactMarkdownProps & Omit, HTMLAnchorElement>, 'ref'>) => { - return ; + return ; }; export default MarkdownLink; diff --git a/src/core/ui/markdown/components/MarkdownParagraph.tsx b/src/core/ui/markdown/components/MarkdownParagraph.tsx index 2b3b505e66..bbd28589b7 100644 --- a/src/core/ui/markdown/components/MarkdownParagraph.tsx +++ b/src/core/ui/markdown/components/MarkdownParagraph.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { ReactMarkdownProps } from 'react-markdown/lib/complex-types'; -import { CardText, Text } from '../../typography'; +import { Caption, CardText, Text } from '../../typography'; import { gutters } from '../../grid/utils'; import { useMarkdownOptions } from '../MarkdownOptionsContext'; @@ -9,9 +9,9 @@ interface MarkdownParagraphProps extends ReactMarkdownProps { } const MarkdownParagraph = ({ node, overrideDisableParagraphPadding, ...props }: MarkdownParagraphProps) => { - const { card, multiline, disableParagraphPadding } = useMarkdownOptions(); + const { card, multiline, caption, disableParagraphPadding } = useMarkdownOptions(); - const Component = card ? CardText : Text; + const Component = caption ? Caption : card ? CardText : Text; const disableMargin = overrideDisableParagraphPadding ?? disableParagraphPadding; return ; diff --git a/src/core/ui/palette/palette.ts b/src/core/ui/palette/palette.ts index 6fc437b328..bd7e566e7a 100644 --- a/src/core/ui/palette/palette.ts +++ b/src/core/ui/palette/palette.ts @@ -8,7 +8,7 @@ export const paletteOptions: PaletteOptions = { secondary: { main: '#00a88f' }, muted: { main: '#A8A8A8' }, text: { - primary: '#000000', + primary: '#181828', }, positive: { main: '#00D4B4' }, negative: { main: '#D32F2F' }, @@ -55,6 +55,7 @@ declare module '@mui/material/styles/createPalette' { challenge: PaletteColorOptions; opportunity: PaletteColorOptions; } + interface Palette { positive: PaletteColor; negative: PaletteColor; diff --git a/src/core/ui/themes/default/Theme.ts b/src/core/ui/themes/default/Theme.ts index 37a13ac8a7..8ffcd21f1d 100644 --- a/src/core/ui/themes/default/Theme.ts +++ b/src/core/ui/themes/default/Theme.ts @@ -44,7 +44,7 @@ export const themeOptions: ThemeOptions = { md: 1100, }, }, -}; +} as ThemeOptions; export const theme = createTheme(themeOptions); @@ -71,6 +71,7 @@ declare module '@mui/material/styles' { avatarSize: number; avatarSizeLg: number; } + interface ThemeOptions extends Theme {} } diff --git a/src/domain/collaboration/CalloutBlock/CalloutLayout.tsx b/src/domain/collaboration/CalloutBlock/CalloutLayout.tsx index 3ebd6a4714..ceabc7910a 100644 --- a/src/domain/collaboration/CalloutBlock/CalloutLayout.tsx +++ b/src/domain/collaboration/CalloutBlock/CalloutLayout.tsx @@ -237,7 +237,7 @@ const CalloutLayout = ({ {callout.editable && ( = T & + Omit & { + journeyDisplayName: string; + }; + +type TypedActivityLogResults = { + [ActivityEventType.CalloutPublished]: ActivityLogCalloutPublishedFragment; + [ActivityEventType.CalloutWhiteboardCreated]: ActivityLogCalloutWhiteboardCreatedFragment; + [ActivityEventType.CalloutPostCreated]: ActivityLogCalloutPostCreatedFragment; + [ActivityEventType.CalloutLinkCreated]: ActivityLogCalloutLinkCreatedFragment; + [ActivityEventType.CalloutPostComment]: ActivityLogCalloutPostCommentFragment; + [ActivityEventType.DiscussionComment]: ActivityLogCalloutDiscussionCommentFragment; + [ActivityEventType.MemberJoined]: ActivityLogMemberJoinedFragment; + [ActivityEventType.ChallengeCreated]: ActivityLogChallengeCreatedFragment; + [ActivityEventType.OpportunityCreated]: ActivityLogOpportunityCreatedFragment; + [ActivityEventType.UpdateSent]: ActivityLogUpdateSentFragment; + [ActivityEventType.CalendarEventCreated]: ActivityLogCalendarEventCreatedFragment; +}; + +type TypedActivityLogResultWithType = { + [Type in keyof TypedActivityLogResults]: ActivityLogResult & { type: Type }; +}; + +export type ActivityLogResultType = TypedActivityLogResultWithType[keyof TypedActivityLogResultWithType]; + +export interface ActivityComponentProps { + activities: ActivityLogResultType[] | undefined; + journeyLocation: JourneyLocation | undefined; + limit?: number; + footerComponent?: ActivityViewProps['footerComponent']; +} + +const getActivityOriginJourneyTypeName = ( + activity: ActivityLogResultType, + journeyLocation: JourneyLocation +): JourneyTypeName | undefined => { + if (!activity.child) { + return undefined; + } + if (journeyLocation.challengeNameId) { + return 'opportunity'; + } + return 'challenge'; +}; + +export const ActivityComponent: FC = ({ + activities, + journeyLocation, + limit, + footerComponent = ActivityViewFooter, +}) => { + const display = useMemo(() => { + if (!activities || !journeyLocation) { + return null; + } + + return ( + <> + {activities.slice(0, limit).map(activity => { + const activityOriginJourneyTypeName = getActivityOriginJourneyTypeName(activity, journeyLocation); + const activityOriginJourneyLocation = activityOriginJourneyTypeName + ? { + ...journeyLocation, + [getJourneyLocationKey(activityOriginJourneyTypeName)]: activity.parentNameID, + } + : journeyLocation; + const activityOriginJourneyUrl = buildJourneyUrl(activityOriginJourneyLocation); + + return ( + + ); + })} + + ); + }, [activities, journeyLocation]); + + return <>{display ?? }; +}; + +interface ActivityViewChooserProps extends Pick { + activity: ActivityLogResultType; +} + +export const ActivityViewChooser = ({ activity, ...rest }: ActivityViewChooserProps) => { + const author = buildAuthorFromUser(activity.triggeredBy); + switch (activity.type) { + case ActivityEventType.CalloutPublished: + return ; + case ActivityEventType.CalloutWhiteboardCreated: + return ; + case ActivityEventType.CalloutPostComment: + return ; + case ActivityEventType.CalloutPostCreated: + return ; + case ActivityEventType.CalloutLinkCreated: + return ; + case ActivityEventType.DiscussionComment: + return ; + case ActivityEventType.MemberJoined: + const userAuthor = buildAuthorFromUser(activity.user); + return ; + case ActivityEventType.ChallengeCreated: + return ; + case ActivityEventType.OpportunityCreated: + return ; + case ActivityEventType.CalendarEventCreated: + return ; + case ActivityEventType.UpdateSent: + return ; + } + throw new Error(`Unable to choose a view for activity type: ${activity['type']}`); +}; diff --git a/src/domain/collaboration/activity/ActivityLog/types/ActivitySubject.ts b/src/domain/collaboration/activity/ActivityLog/types/ActivitySubject.ts new file mode 100644 index 0000000000..3da6540c9c --- /dev/null +++ b/src/domain/collaboration/activity/ActivityLog/types/ActivitySubject.ts @@ -0,0 +1,6 @@ +export interface ActivitySubject { + profile: { + displayName: string; + url: string; + }; +} diff --git a/src/domain/collaboration/activity/ActivityLog/views/ActivityBaseView.tsx b/src/domain/collaboration/activity/ActivityLog/views/ActivityBaseView.tsx new file mode 100644 index 0000000000..94b7f39aa3 --- /dev/null +++ b/src/domain/collaboration/activity/ActivityLog/views/ActivityBaseView.tsx @@ -0,0 +1,97 @@ +import React, { ComponentType, FC, ReactNode } from 'react'; +import Skeleton from '@mui/material/Skeleton'; +import { Author } from '../../../../shared/components/AuthorAvatar/models/author'; +import { Caption } from '../../../../../core/ui/typography'; +import BadgeCardView from '../../../../../core/ui/list/BadgeCardView'; +import RouterLink, { RouterLinkProps } from '../../../../../core/ui/link/RouterLink'; +import { gutters } from '../../../../../core/ui/grid/utils'; +import Avatar from '../../../../../core/ui/avatar/Avatar'; +import { Badge, ListItemButtonProps, Paper } from '@mui/material'; +import SwapColors from '../../../../../core/ui/palette/SwapColors'; +import getActivityIcon, { Activity } from './ActivityIcon'; +import ListItemButton, { ListItemButtonTypeMap } from '@mui/material/ListItemButton/ListItemButton'; + +export interface ActivityBaseViewProps { + title: ReactNode; + author: Author | undefined; // TODO reduce type + loading?: boolean; + url: string; + footerComponent: ComponentType<{ + authorDisplayName: ReactNode; + contextDisplayName: ReactNode; + createdDate: Date | string; + }>; + createdDate: Date | string; + contextDisplayName: ReactNode; +} + +const Wrapper = ( + props: ListItemButtonProps & RouterLinkProps +) => ; + +export const ActivityBaseView: FC = ({ + author, + title, + loading, + url, + children, + footerComponent: Footer, + createdDate, + contextDisplayName, + ...activity +}) => { + const ActivityIcon = activity.type && getActivityIcon(activity); + + return ( + + + {ActivityIcon && } + + + } + > + {loading ? ( + + ) : ( + + )} + + } + > + {loading ? : title} + {loading && } + {!loading && ( +