From 9b6f03b6dd9a3487c2de313985d336a371e15360 Mon Sep 17 00:00:00 2001 From: Donald Kibet Date: Tue, 4 May 2021 22:17:51 +0300 Subject: [PATCH] Remove patient-registration link on homepage-dashboard-slot (#100) Co-authored-by: Donald Kibet --- package-lock.json | 116 +++++++++++++++++++++++----------------------- src/home-link.tsx | 10 ---- src/index.ts | 7 --- 3 files changed, 58 insertions(+), 75 deletions(-) delete mode 100644 src/home-link.tsx diff --git a/package-lock.json b/package-lock.json index 90c9bf4a..419260fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2428,9 +2428,9 @@ } }, "@openmrs/esm-api": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-api/-/esm-api-3.1.10-pre.229.tgz", - "integrity": "sha512-ifFC29gOf4wHG/upE6Gnkd+szY9jQ2m+eQG+jah5MdWCU3ADF2zinAI5hzW+7lEsm3HUgz7ljVfVJITMag/8DQ==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-api/-/esm-api-3.1.10-pre.230.tgz", + "integrity": "sha512-DI0YwpvKn53fj+iStROzMRK/VsHx35BUMlb7Z2PZyx3N++76n6/mNGHn+jpfTcFTt6V4oudoFgKhP7koLv3yyA==", "dev": true, "requires": { "fhir.js": "0.0.22", @@ -2447,12 +2447,12 @@ } }, "@openmrs/esm-app-shell": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-app-shell/-/esm-app-shell-3.1.10-pre.229.tgz", - "integrity": "sha512-/LjNmq5lqh+Q8aBn37bSo96btYca7zoN7xQXi7h/a/sML63Po2eAiM8O0YY3/V3T1RdtU6WxNUeWuS5FUalIUQ==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-app-shell/-/esm-app-shell-3.1.10-pre.230.tgz", + "integrity": "sha512-1aksGoO4zBvmrkEzAAlsXsWiTV1qUEv0ebZR+IiLMd8FVgZv8Ee38m6hIiX95x/BrWcUx1werprXWRCQSlPg1g==", "dev": true, "requires": { - "@openmrs/esm-framework": "^3.1.10-pre.229", + "@openmrs/esm-framework": "^3.1.10-pre.230", "carbon-components": "10.31.0", "carbon-icons": "7.0.7", "dayjs": "^1.10.4", @@ -2477,9 +2477,9 @@ } }, "@openmrs/esm-breadcrumbs": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-breadcrumbs/-/esm-breadcrumbs-3.1.10-pre.229.tgz", - "integrity": "sha512-Iq66QYMjNez2x7pZNGiS6jkKd2WqAeqyjUzZN4LwzOZP5PztXmuAiPXJuxaygIF7Y5vC8VkEbWTbWaDMx3QnBQ==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-breadcrumbs/-/esm-breadcrumbs-3.1.10-pre.230.tgz", + "integrity": "sha512-FcWuRXtZYaSzXAzS0Jvj/qGyHZ6RvkK/cINMob+7fCojmJG2NaeY7fU5+50Os2ViwRdJsqRaXktTqUlkYQzIFg==", "dev": true, "requires": { "path-to-regexp": "6.1.0", @@ -2495,9 +2495,9 @@ } }, "@openmrs/esm-config": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-config/-/esm-config-3.1.10-pre.229.tgz", - "integrity": "sha512-liXzUXBHnAV9Im6RyUe3poEq8P90P4QJcvYoAYrXK6f2bi2y5O4rYevB75baeQErPxp8ztZ5DVL0hXeHP0PgRA==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-config/-/esm-config-3.1.10-pre.230.tgz", + "integrity": "sha512-NdcIMOGD1ZQmLM8oIH6Zlby0qYnav5jsWFUnFbXX11XmTIAFs9x8CrAWT6QkidIxwGKKTPklRCjwq3s9FNr2Hg==", "dev": true, "requires": { "ramda": "^0.26.1", @@ -2513,9 +2513,9 @@ } }, "@openmrs/esm-error-handling": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-error-handling/-/esm-error-handling-3.1.10-pre.229.tgz", - "integrity": "sha512-wzjOWgHqGfgIrAznUatNHzY11uSxdMgTWKB3JsfITvj7OhELYoI08h+OVm794JP7RC/6+hQESx6nW3WJZyXrGg==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-error-handling/-/esm-error-handling-3.1.10-pre.230.tgz", + "integrity": "sha512-MQSS3QfuomBERFvlKz3S1nGQ9JHCnnCEmrU5sjtt20HNZDzAYhVVs4eagLEuRUQm93sQJnqW/rOTkYnAR14NGA==", "dev": true, "requires": { "systemjs-webpack-interop": "^2.1.2" @@ -2530,9 +2530,9 @@ } }, "@openmrs/esm-extensions": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-extensions/-/esm-extensions-3.1.10-pre.229.tgz", - "integrity": "sha512-20JSw8L4+aF0Qsn+RLVYSYLHi/EM2M9iutHxHMZuM3kxekxZkIZqWLs1iUCMumSrGfedaOSOo9v33xeHVl9tdw==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-extensions/-/esm-extensions-3.1.10-pre.230.tgz", + "integrity": "sha512-uF+R8xlov0gANED1lacCqEjpo66leFHO7bHxCXbQjPToC9cAXrT3h+AI+Fc0B8bi+dpuG7nkO9LuYdB1Hl4tJw==", "dev": true, "requires": { "systemjs-webpack-interop": "^2.1.2" @@ -2547,34 +2547,34 @@ } }, "@openmrs/esm-framework": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-framework/-/esm-framework-3.1.10-pre.229.tgz", - "integrity": "sha512-0MnyUSDxZjN/nM7MHot7RWPlj9emd6jagZY1Zo8xRxlzAXsshl2LIHIT3iPYPnQcEtWqIlpKYkTQxQhJGRMe9g==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-framework/-/esm-framework-3.1.10-pre.230.tgz", + "integrity": "sha512-XJeUedUSHJsRow3EzVp9UX0uy0h8tL/Uf4mIc+7A08Q/PGsGJxVvkaX2b18DRtPIAV+26hl4pxDtMQtVwmbjag==", "dev": true, "requires": { - "@openmrs/esm-api": "^3.1.10-pre.229", - "@openmrs/esm-breadcrumbs": "^3.1.10-pre.229", - "@openmrs/esm-config": "^3.1.10-pre.229", - "@openmrs/esm-error-handling": "^3.1.10-pre.229", - "@openmrs/esm-extensions": "^3.1.10-pre.229", - "@openmrs/esm-globals": "^3.1.10-pre.229", - "@openmrs/esm-offline": "^3.1.10-pre.229", - "@openmrs/esm-react-utils": "^3.1.10-pre.229", - "@openmrs/esm-state": "^3.1.10-pre.229", - "@openmrs/esm-styleguide": "^3.1.10-pre.229", - "@openmrs/esm-utils": "^3.1.10-pre.229" + "@openmrs/esm-api": "^3.1.10-pre.230", + "@openmrs/esm-breadcrumbs": "^3.1.10-pre.230", + "@openmrs/esm-config": "^3.1.10-pre.230", + "@openmrs/esm-error-handling": "^3.1.10-pre.230", + "@openmrs/esm-extensions": "^3.1.10-pre.230", + "@openmrs/esm-globals": "^3.1.10-pre.230", + "@openmrs/esm-offline": "^3.1.10-pre.230", + "@openmrs/esm-react-utils": "^3.1.10-pre.230", + "@openmrs/esm-state": "^3.1.10-pre.230", + "@openmrs/esm-styleguide": "^3.1.10-pre.230", + "@openmrs/esm-utils": "^3.1.10-pre.230" } }, "@openmrs/esm-globals": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-globals/-/esm-globals-3.1.10-pre.229.tgz", - "integrity": "sha512-75E+JXeT5lFC4WDFp9TnHQoMYSMZZkE+ChYXt1ZG8qUptfJAVTfRTrAU0MMNZk0gNa6FcZWCAQom1d325SnDfw==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-globals/-/esm-globals-3.1.10-pre.230.tgz", + "integrity": "sha512-ZCzhyc/qlkK69KfRL4h6gbOpibicSUdJt/9qooqoF0oUUXkyfoFKtMsLTc4fswe+eqEZrspRHsEvdY5eShBo/Q==", "dev": true }, "@openmrs/esm-offline": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-offline/-/esm-offline-3.1.10-pre.229.tgz", - "integrity": "sha512-iNWOxtP01XePvHnXnzoCSaVXBVR3+LxjC+afqibWqGuZlXEkSHpJQD1z/zHe1zYOyMQHwM43Aal6oI5qBWZjWw==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-offline/-/esm-offline-3.1.10-pre.230.tgz", + "integrity": "sha512-Y0IHxyubeijHYXwoFjF/rlAY0k/MZD35vlkOBcldvtp1XPvqoJBSu1u8z8zrWioTofUQAYnTbviECfkm72yYaA==", "dev": true, "requires": { "lodash-es": "4.17.21", @@ -2591,9 +2591,9 @@ } }, "@openmrs/esm-react-utils": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-react-utils/-/esm-react-utils-3.1.10-pre.229.tgz", - "integrity": "sha512-WHs42GlWZ903hfAP/AqRU8YbE+dQCdxT54xhyIWNbiSl86g65h8jLIKu8MpN52yaqx2DMj6d+0BetEqKCtngqw==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-react-utils/-/esm-react-utils-3.1.10-pre.230.tgz", + "integrity": "sha512-7NtUwEp5BLGRNmd3oo0HyWOaIEVNXOFEQ+wiBQrBX8h2pDRVRwR9FSzljqC3N+BIKleeB1EBvY+MVk93sJqVuQ==", "dev": true, "requires": { "lodash-es": "^4.17.21", @@ -2610,9 +2610,9 @@ } }, "@openmrs/esm-state": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-state/-/esm-state-3.1.10-pre.229.tgz", - "integrity": "sha512-OynflgABFIeasfj+9zwhAVNSXtH8vNpritTf7ripV3ONpYL2s6Yt7/hSN5CQAsr84LftGODyRDasXGrwhyivWw==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-state/-/esm-state-3.1.10-pre.230.tgz", + "integrity": "sha512-BrBuHrJmi+xsKtZbgN5zY/3NOFLRxfFQgEvyySi/LPWb0CUme1ZANmBnEDo3PZmrKstkvCLCQnXBmhEkHra1LQ==", "dev": true, "requires": { "systemjs-webpack-interop": "^2.1.2", @@ -2628,9 +2628,9 @@ } }, "@openmrs/esm-styleguide": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-styleguide/-/esm-styleguide-3.1.10-pre.229.tgz", - "integrity": "sha512-FB2R261pGtZ/vNa6XHr/xp6lBBoGqyCQZ7k67hLPXVRRyVAqjVQS9Jn7s/Aqds4suyg/n6holvYNtvRrnQDjFg==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-styleguide/-/esm-styleguide-3.1.10-pre.230.tgz", + "integrity": "sha512-Hh1geMHaJnRyE6lpT2JCWeY234/TC6fTcw/hOFjBUQHhcHDoANy3bKJjwvJNBjz3QjWkpCdWClFbYHZ4kagtXA==", "dev": true, "requires": { "@carbon/charts": "^0.41.57", @@ -2648,9 +2648,9 @@ } }, "@openmrs/esm-utils": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/@openmrs/esm-utils/-/esm-utils-3.1.10-pre.229.tgz", - "integrity": "sha512-EoWZbzj/YILS/OHIDX5UTaJJvlXmmg803Fk9m+UhN/qWwmyunUROvzjA09dh+IQPLbIK/GZvmwGowUnb4BspVw==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/@openmrs/esm-utils/-/esm-utils-3.1.10-pre.230.tgz", + "integrity": "sha512-rMmh+AfKhge4yVd31RdmE98ST9VT9YaiguUdW85QqsiIEyXb6rLsEInYEhUoJlQhiSHylaPK5tryP36HwHTouw==", "dev": true, "requires": { "rxjs": "^6.5.3", @@ -13613,16 +13613,16 @@ "dev": true }, "openmrs": { - "version": "3.1.10-pre.229", - "resolved": "https://registry.npmjs.org/openmrs/-/openmrs-3.1.10-pre.229.tgz", - "integrity": "sha512-da/4WCOjOb9uG1bdV9f/5EeYacdEL0eNcLbFw73VXfEdIUtj+LRsVVxGDxVcCQv6DQKnx3d65cWVondNF429Ng==", + "version": "3.1.10-pre.230", + "resolved": "https://registry.npmjs.org/openmrs/-/openmrs-3.1.10-pre.230.tgz", + "integrity": "sha512-Z0NrkJdMxpOrk9CQAinLmikjFNFJ1YuqAVg3273tm3oDpzE534PlsLOhPkUQ6wrmJf80qD/q6Wsw74YXD0bKFA==", "dev": true, "requires": { "@babel/core": "^7.11.4", "@babel/preset-env": "^7.11.0", "@babel/preset-react": "^7.10.4", "@babel/preset-typescript": "^7.10.4", - "@openmrs/esm-app-shell": "^3.1.10-pre.229", + "@openmrs/esm-app-shell": "^3.1.10-pre.230", "@types/react": "^16.9.46", "@types/systemjs": "^6.1.0", "autoprefixer": "^9.6.1", @@ -16071,9 +16071,9 @@ } }, "rollup": { - "version": "2.46.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.46.0.tgz", - "integrity": "sha512-qPGoUBNl+Z8uNu0z7pD3WPTABWRbcOwIrO/5ccDJzmrtzn0LVf6Lj91+L5CcWhXl6iWf23FQ6m8Jkl2CmN1O7Q==", + "version": "2.47.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.47.0.tgz", + "integrity": "sha512-rqBjgq9hQfW0vRmz+0S062ORRNJXvwRpzxhFXORvar/maZqY6za3rgQ/p1Glg+j1hnc1GtYyQCPiAei95uTElg==", "dev": true, "requires": { "fsevents": "~2.3.1" diff --git a/src/home-link.tsx b/src/home-link.tsx deleted file mode 100644 index f224843a..00000000 --- a/src/home-link.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import { ConfigurableLink } from '@openmrs/esm-framework'; - -export default function Root() { - return ( - - Patient Registration - - ); -} diff --git a/src/index.ts b/src/index.ts index 4a186660..de2a6d6e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,13 +56,6 @@ function setupOpenMRS() { }, ], extensions: [ - { - id: 'registration-home-link', - slot: 'homepage-dashboard-slot', - load: getAsyncLifecycle(() => import('./home-link'), options), - online: true, - offline: true, - }, { id: 'add-patient-action', slot: 'top-nav-actions-slot',