From 4a335a4c18041722d3ef24d4d2166e51256534ce Mon Sep 17 00:00:00 2001 From: craigrbarnes Date: Wed, 21 Feb 2024 18:12:13 -0600 Subject: [PATCH] test BRH --- package-lock.json | 21 ++++++++++++++++--- packages/frontend/package.json | 2 +- packages/frontend/rollup.config.mjs | 10 ++++++++- .../features/Authz/Users/UserDetailsPanel.tsx | 4 +--- .../src/features/Authz/Users/UserPanel.tsx | 2 +- packages/sampleCommons/package.json | 4 ++-- 6 files changed, 32 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index ee08ae0e..c8f53ee9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37393,7 +37393,7 @@ "dependencies": { "@fontsource/montserrat": "^4.5.12", "@fontsource/source-sans-pro": "^4.5.11", - "@gen3/core": "file:../core", + "@gen3/core": "@gen3/core", "@graphiql/react": "^0.20.2", "@iconify/react": "^4.0.1", "@mantine/core": "^6.0.21", @@ -37497,6 +37497,11 @@ "typescript": "5.0.2" } }, + "packages/frontend/@gen3/core": {}, + "packages/frontend/node_modules/@gen3/core": { + "resolved": "packages/frontend/@gen3/core", + "link": true + }, "packages/frontend/node_modules/@types/node": { "version": "18.15.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.5.tgz", @@ -37507,8 +37512,8 @@ "name": "@gen3/samplecommons", "version": "0.10.3", "dependencies": { - "@gen3/core": "file:../core", - "@gen3/frontend": "file:../frontend", + "@gen3/core": "@gen3/core", + "@gen3/frontend": "@gen3/frontend", "@mdx-js/loader": "^3.0.0", "@mdx-js/react": "^3.0.0", "@next/mdx": "^14.1.0", @@ -37529,6 +37534,16 @@ "typescript": "5.0.2" } }, + "packages/sampleCommons/@gen3/core": {}, + "packages/sampleCommons/@gen3/frontend": {}, + "packages/sampleCommons/node_modules/@gen3/core": { + "resolved": "packages/sampleCommons/@gen3/core", + "link": true + }, + "packages/sampleCommons/node_modules/@gen3/frontend": { + "resolved": "packages/sampleCommons/@gen3/frontend", + "link": true + }, "packages/sampleCommons/node_modules/@mdx-js/loader": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@mdx-js/loader/-/loader-3.0.1.tgz", diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 0523e20f..d60dca66 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -43,7 +43,7 @@ "@fontsource/montserrat": "^4.5.12", "@fontsource/source-sans-pro": "^4.5.11", "@graphiql/react": "^0.20.2", - "@gen3/core": "file:../core", + "@gen3/core": "@gen3/core", "@iconify/react": "^4.0.1", "@mantine/core": "^6.0.21", "@mantine/form": "^6.0.21", diff --git a/packages/frontend/rollup.config.mjs b/packages/frontend/rollup.config.mjs index 937a3abb..df93232b 100644 --- a/packages/frontend/rollup.config.mjs +++ b/packages/frontend/rollup.config.mjs @@ -60,9 +60,17 @@ const config = [ dir: 'dist', format: 'esm', name: 'gen3frontend', + plugins: [terser()], globals, sourcemap: true - } + }, + { + dir: 'dist', + format: 'esm', + name: 'gen3Core', + globals, + sourcemap: true + }, ], external: [ ...Object.keys(globals), diff --git a/packages/frontend/src/features/Authz/Users/UserDetailsPanel.tsx b/packages/frontend/src/features/Authz/Users/UserDetailsPanel.tsx index 03f30ce9..02734f07 100644 --- a/packages/frontend/src/features/Authz/Users/UserDetailsPanel.tsx +++ b/packages/frontend/src/features/Authz/Users/UserDetailsPanel.tsx @@ -1,4 +1,4 @@ -import { useAuthzContext } from '../Provider'; + import { Button, Group, Stack, Tabs } from '@mantine/core'; import { User } from '../types'; import { UserDetails } from './Cards'; @@ -9,8 +9,6 @@ interface UserDetailsPanelProps { } const UserDetailsPanel = ({user, closePanel}: UserDetailsPanelProps) => { - const context = useAuthzContext(); - return (