diff --git a/.github/workflows/node.working.js.yml b/.github/workflows/node.working.js.yml index e1fbef549..cd3029bf4 100644 --- a/.github/workflows/node.working.js.yml +++ b/.github/workflows/node.working.js.yml @@ -1,4 +1,4 @@ -name: OHRI CI - @esm and Docker Image +name: OHRI CI - @esm and Docker Image Working/QA on: push: @@ -11,8 +11,88 @@ on: types: [opened, synchronize] jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Cache dependencies + id: cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + + - name: Install dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: yarn install --immutable + + - name: Run tests + run: yarn run test + + - name: Run build + run: yarn turbo run build --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}" + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: packages + path: | + packages/**/dist + + qa: + runs-on: ubuntu-latest + needs: build + + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/working' }} + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + registry-url: 'https://registry.npmjs.org' + + - name: Cache dependencies + id: cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: yarn install --immutable + + - name: Version + run: yarn workspaces foreach --worktree --topological --exclude @ohri/openmrs-esm-ohri version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-qa.${{ github.run_number }}" + + - name: Build + run: yarn turbo run build --color --concurrency=5 + + - name: qa + run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn run ci:qa + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: packages + path: | + packages/**/dist + docker_workingserver_frontend: runs-on: ubuntu-latest + needs: qa steps: - name: Wait for 5 min - Let @esms reflect on NPM registry @@ -37,7 +117,7 @@ jobs: file: ./frontend/Dockerfile platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} - tags: ${{ secrets.DOCKERHUB_USERNAME }}/ohri-working-frontend:next,${{ secrets.DOCKERHUB_USERNAME }}/ohri-working-frontend:ci_${{ github.run_number }} + tags: ${{ secrets.DOCKERHUB_USERNAME }}/ohri-working-frontend:qa,${{ secrets.DOCKERHUB_USERNAME }}/ohri-working-frontend:ci_${{ github.run_number }} cache-from: type=inline,ref=user/app:buildcache cache-to: type=inline,ref=user/app:buildcache,mode=max diff --git a/.yarnrc.yml b/.yarnrc.yml index 5ce885524..93a28075a 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -16,4 +16,7 @@ changesetBaseRefs: [ "dev", "origin/dev", "upstream/dev", + "working", + "origin/working", + "upstream/working", ] diff --git a/package.json b/package.json index 502f203aa..d062f3b0c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@ohri/openmrs-esm-ohri", "private": true, - "version": "2.3.1", + "version": "2.3.6", "description": "OHRI MicroFrontend for OpenMRS SPA", "workspaces": [ "packages/*" @@ -30,6 +30,7 @@ "verify": "turbo run lint && turbo run typescript && yarn test --coverage", "ci:prepublish": "yarn workspaces foreach --all --topological --exclude @ohri/openmrs-esm-ohri npm publish --access public --tag next", "ci:publish": "yarn workspaces foreach --all --topological --exclude @ohri/openmrs-esm-ohri npm publish --access public --tag latest", + "ci:qa": "yarn workspaces foreach --all --topological --exclude @ohri/openmrs-esm-ohri npm publish --access public --tag qa", "release": "yarn workspaces foreach --all --topological version", "coverage": "yarn test --coverage", "badges": "yarn coverage && yarn jest-coverage-badges --output './badges' ", diff --git a/packages/esm-cervical-cancer-app/package.json b/packages/esm-cervical-cancer-app/package.json index 22f6bea7d..39de913b1 100644 --- a/packages/esm-cervical-cancer-app/package.json +++ b/packages/esm-cervical-cancer-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-cervical-cancer-app", - "version": "2.3.1", + "version": "2.3.6", "description": "Cervical cancer microfrontend for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/openmrs-esm-ohri-cervical-cancer-app.js", "main": "src/index.ts", diff --git a/packages/esm-commons-lib/package.json b/packages/esm-commons-lib/package.json index 5f5377057..b2a77672e 100644 --- a/packages/esm-commons-lib/package.json +++ b/packages/esm-commons-lib/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-commons-lib", - "version": "2.3.1", + "version": "2.3.6", "description": "Commons library microfrontend of shared assets for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/ohri-commons-lib.js", "main": "src/index.ts", @@ -32,7 +32,7 @@ }, "dependencies": { "@carbon/react": "^1.13.0", - "@openmrs/openmrs-form-engine-lib": "2.0.0-pre.1029", + "@openmrs/openmrs-form-engine-lib": "2.0.0-pre.1260", "fuzzy": "^0.1.3", "lodash-es": "^4.17.15", "systemjs-webpack-interop": "^2.3.7", diff --git a/packages/esm-commons-lib/src/components/encounter-list/encounter-list.component.tsx b/packages/esm-commons-lib/src/components/encounter-list/encounter-list.component.tsx index f99d32550..b2e75d97c 100644 --- a/packages/esm-commons-lib/src/components/encounter-list/encounter-list.component.tsx +++ b/packages/esm-commons-lib/src/components/encounter-list/encounter-list.component.tsx @@ -20,7 +20,6 @@ import { useEncounterRows } from '../../hooks/useEncounterRows'; import { type OpenmrsEncounter } from '../../types'; import { useFormsJson } from '../../hooks/useFormsJson'; import { usePatientDeathStatus } from '../../hooks/usePatientDeathStatus'; -import { mutate } from 'swr'; import styles from './encounter-list.scss'; @@ -51,6 +50,7 @@ export interface EncounterListProps { workspaceWindowSize?: 'minimized' | 'maximized'; }; filter?: (encounter: any) => boolean; + afterFormSaveAction?: () => void; } export const EncounterList: React.FC = ({ @@ -62,6 +62,7 @@ export const EncounterList: React.FC = ({ formList, filter, launchOptions, + afterFormSaveAction, }) => { const { t } = useTranslation(); const [paginatedRows, setPaginatedRows] = useState([]); @@ -72,7 +73,12 @@ export const EncounterList: React.FC = ({ const { isDead } = usePatientDeathStatus(patientUuid); const formNames = useMemo(() => formList.map((form) => form.name), [formList]); const { formsJson, isLoading: isLoadingFormsJson } = useFormsJson(formNames); - const { encounters, isLoading, onFormSave } = useEncounterRows(patientUuid, encounterType, filter); + const { encounters, isLoading, onFormSave } = useEncounterRows( + patientUuid, + encounterType, + filter, + afterFormSaveAction, + ); const { moduleName, workspaceWindowSize, displayText, hideFormLauncher } = launchOptions; const defaultActions = useMemo( @@ -114,9 +120,7 @@ export const EncounterList: React.FC = ({ const abortController = new AbortController(); deleteEncounter(encounterUuid, abortController) .then(() => { - mutate((key) => typeof key === 'string' && key.startsWith('/ws/rest/v1/encounter'), undefined, { - revalidate: true, - }); + onFormSave(); showSnackbar({ isLowContrast: true, title: t('encounterDeleted', 'Encounter deleted'), @@ -132,6 +136,10 @@ export const EncounterList: React.FC = ({ kind: 'error', }); }); + + // Update encounters after deletion + const updatedEncounters = encounters.filter((enc) => enc.uuid !== encounterUuid); + constructPaginatedTableRows(updatedEncounters, currentPage, pageSize); close(); }, }); @@ -262,7 +270,7 @@ export const EncounterList: React.FC = ({ }); setPaginatedRows(rows); }, - [columns, defaultActions, forms, moduleName, workspaceWindowSize, patientUuid, onFormSave, handleDeleteEncounter], + [columns, defaultActions, forms, moduleName, onFormSave, workspaceWindowSize, patientUuid, handleDeleteEncounter], ); useEffect(() => { diff --git a/packages/esm-commons-lib/src/components/encounter-list/helpers.ts b/packages/esm-commons-lib/src/components/encounter-list/helpers.ts index 21692f005..812c2fa72 100644 --- a/packages/esm-commons-lib/src/components/encounter-list/helpers.ts +++ b/packages/esm-commons-lib/src/components/encounter-list/helpers.ts @@ -14,11 +14,10 @@ export function launchEncounterForm( intent: string = '*', workspaceWindowSize?: 'minimized' | 'maximized', patientUuid?: string, - mutateform?: () => void, ) { launchPatientWorkspace('patient-form-entry-workspace', { workspaceTitle: form.name, - mutateform: mutateform, + mutateForm: onFormSave, formInfo: { encounterUuid, formUuid: form.name, diff --git a/packages/esm-commons-lib/src/hooks/useEncounterRows.ts b/packages/esm-commons-lib/src/hooks/useEncounterRows.ts index 97e228f64..15576d277 100644 --- a/packages/esm-commons-lib/src/hooks/useEncounterRows.ts +++ b/packages/esm-commons-lib/src/hooks/useEncounterRows.ts @@ -1,10 +1,16 @@ -import { useCallback, useEffect, useState } from 'react'; -import useSWRImmutable, { mutate } from 'swr'; -import { type OpenmrsEncounter } from '../types'; +import useSWR from 'swr'; + +import { useCallback, useEffect, useMemo, useState } from 'react'; import { openmrsFetch } from '@openmrs/esm-framework'; import { encounterRepresentation } from '../constants'; +import { type OpenmrsEncounter } from '../types'; -export function useEncounterRows(patientUuid: string, encounterType: string, encounterFilter: (encounter) => boolean) { +export function useEncounterRows( + patientUuid: string, + encounterType: string, + encounterFilter: (encounter) => boolean, + afterFormSaveAction: () => void, +) { const [encounters, setEncounters] = useState([]); const url = `/ws/rest/v1/encounter?encounterType=${encounterType}&patient=${patientUuid}&v=${encounterRepresentation}`; @@ -12,7 +18,8 @@ export function useEncounterRows(patientUuid: string, encounterType: string, enc data: response, error, isLoading, - } = useSWRImmutable<{ data: { results: OpenmrsEncounter[] } }, Error>(url, openmrsFetch); + mutate, + } = useSWR<{ data: { results: OpenmrsEncounter[] } }, Error>(url, openmrsFetch); useEffect(() => { if (response) { @@ -30,8 +37,9 @@ export function useEncounterRows(patientUuid: string, encounterType: string, enc }, [encounterFilter, response]); const onFormSave = useCallback(() => { - mutate(url); - }, [url]); + mutate(); + afterFormSaveAction && afterFormSaveAction(); + }, [afterFormSaveAction, mutate]); return { encounters, diff --git a/packages/esm-covid-app/package.json b/packages/esm-covid-app/package.json index d5483b155..86a796ccc 100644 --- a/packages/esm-covid-app/package.json +++ b/packages/esm-covid-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-covid-app", - "version": "2.3.1", + "version": "2.3.6", "description": "COVID Microfrontend for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/openmrs-esm-ohri-covid-app.js", "main": "src/index.ts", diff --git a/packages/esm-form-render-app/package.json b/packages/esm-form-render-app/package.json index ead0e37c0..bc8a9eafa 100644 --- a/packages/esm-form-render-app/package.json +++ b/packages/esm-form-render-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-form-render-app", - "version": "2.3.1", + "version": "2.3.6", "description": "A Forms Rendering microfrontend for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/openmrs-esm-ohri-form-render-app.js", "main": "src/index.ts", @@ -39,7 +39,7 @@ }, "dependencies": { "@carbon/react": "^1.13.0", - "@openmrs/openmrs-form-engine-lib": "2.0.0-pre.1029", + "@openmrs/openmrs-form-engine-lib": "2.0.0-pre.1260", "ace-builds": "1.34.1", "react-ace": "^9.4.4" }, diff --git a/packages/esm-hiv-prevention-app/package.json b/packages/esm-hiv-prevention-app/package.json index 4a711aaf3..32fa91598 100644 --- a/packages/esm-hiv-prevention-app/package.json +++ b/packages/esm-hiv-prevention-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-hiv-prevention-app", - "version": "2.3.1", + "version": "2.3.6", "description": "HIV Prevention microfrontend for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/openmrs-esm-ohri-hiv-prevention-app.js", "main": "src/index.ts", diff --git a/packages/esm-ohri-core-app/package.json b/packages/esm-ohri-core-app/package.json index 13f83dc09..799d25dbd 100644 --- a/packages/esm-ohri-core-app/package.json +++ b/packages/esm-ohri-core-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-core-app", - "version": "2.3.1", + "version": "2.3.6", "description": "A custom microfrontend for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/ohri-core-app.js", "main": "src/index.ts", diff --git a/packages/esm-ohri-pmtct-app/package.json b/packages/esm-ohri-pmtct-app/package.json index 68510dd19..e30b1cd56 100644 --- a/packages/esm-ohri-pmtct-app/package.json +++ b/packages/esm-ohri-pmtct-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-pmtct-app", - "version": "2.3.1", + "version": "2.3.6", "description": "PMTCT microfrontend for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/ohri-pmtct-app.js", "main": "src/index.ts", diff --git a/packages/esm-opd-app/package.json b/packages/esm-opd-app/package.json index 22eee0422..615f33a57 100644 --- a/packages/esm-opd-app/package.json +++ b/packages/esm-opd-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-opd-app", - "version": "2.3.1", + "version": "2.3.6", "description": "opd active visits", "browser": "dist/openmrs-esm-ohri-opd-app.js", "main": "src/index.ts", diff --git a/packages/esm-tb-app/package.json b/packages/esm-tb-app/package.json index bf75f732d..542371968 100644 --- a/packages/esm-tb-app/package.json +++ b/packages/esm-tb-app/package.json @@ -1,6 +1,6 @@ { "name": "@ohri/openmrs-esm-ohri-tb-app", - "version": "2.3.1", + "version": "2.3.6", "description": "Tuberclosis microfrontend for OpenMRS HIV Reference Implementation (OHRI)", "browser": "dist/openmrs-esm-ohri-tb-app.js", "main": "src/index.ts", diff --git a/packages/esm-tb-app/src/index.ts b/packages/esm-tb-app/src/index.ts index 993b6edcf..470496009 100644 --- a/packages/esm-tb-app/src/index.ts +++ b/packages/esm-tb-app/src/index.ts @@ -102,6 +102,7 @@ export const tbClinicalViewDashboardLink = getSyncLifecycle( createOHRIDashboardLink(tbClinicalViewDashboardMeta), options, ); + export const tbCasesDashboardLink = getSyncLifecycle(createOHRIGroupedLink(tbCasesDashboardMeta), options); export const tbCasesDashboard = getSyncLifecycle(rootComponent, options); diff --git a/packages/esm-tb-app/src/routes.json b/packages/esm-tb-app/src/routes.json index 4970eb4c2..563f183d6 100644 --- a/packages/esm-tb-app/src/routes.json +++ b/packages/esm-tb-app/src/routes.json @@ -107,6 +107,41 @@ "component": "tptProgramManagementDashboard" }, + + { + "name": "tpt-patient-summary", + "slot": "ohri-tpt-slot", + "component": "tptPatientSummaryDashboardLink", + "meta": { + "slot": "tpt-patient-summary-slot", + "columns": 1, + "path": "tpt-patient-summary", + "layoutMode": "anchored" + } + }, + { + "name": "tpt-patient-summary-ext", + "slot": "tpt-patient-summary-slot", + "component": "tptPatientSummaryDashboard" + }, + + { + "name": "tpt-program-management-summary", + "slot": "ohri-tpt-slot", + "component": "tptProgramManagementDashboardLink", + "meta": { + "slot": "tpt-program-management-summary-slot", + "columns": 1, + "path": "tpt-program-management", + "layoutMode": "anchored" + } + }, + { + "name": "tpt-program-management-summary-ext", + "slot": "tpt-program-management-summary-slot", + "component": "tptProgramManagementDashboard" + }, + { "name": "tb-treatment-follow-up-summary", "slot": "ohri-tb-slot", @@ -150,6 +185,37 @@ "title": "Tuberculosis" } }, + { + "name": "tb-prevention-dashboard-ext", + "slot": "tb-clinical-dashboard-slot", + "component": "tbPreventionDashboardLink", + "meta": { + "name": "tb-prevention", + "slot": "tb-prevention-dashboard-slot", + "config": { + "columns": 1, + "type": "grid", + "programme": "tpt", + "dashboardTitle": "TB Prevention" + }, + "title": "TB Prevention" + } + }, + { + "name": "tb-prevention-dashboard", + "slot": "tb-prevention-dashboard-slot", + "component": "tbPreventionDashboard", + "meta": { + "name": "tb-prevention", + "slot": "tb-prevention-dashboard-slot", + "config": { + "columns": 1, + "programme": "tpt", + "dashboardTitle": "TB Prevention" + }, + "title": "TB Prevention" + } + }, { "name": "tb-cases-dashboard-ext", "slot": "homepage-dashboard-slot", diff --git a/packages/esm-tb-app/src/views/tpt/program-management/tabs/tpt-treatment.component copy.tsx b/packages/esm-tb-app/src/views/tpt/program-management/tabs/tpt-treatment.component copy.tsx new file mode 100644 index 000000000..81612d276 --- /dev/null +++ b/packages/esm-tb-app/src/views/tpt/program-management/tabs/tpt-treatment.component copy.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { useTranslation } from 'react-i18next'; +import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib'; + +interface TptTreatmentListProps { + patientUuid: string; +} + +const TptTreatmentList: React.FC = ({ patientUuid }) => { + const { t } = useTranslation(); + + const headerTitle = t('tptTreatment', 'TPT Treatment'); + + return ( + <> + + + ); +}; + +export default TptTreatmentList; diff --git a/yarn.lock b/yarn.lock index 37e2336f8..9a531c025 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1290,7 +1290,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.10.2, @babel/runtime@npm:^7.10.5, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.14.5, @babel/runtime@npm:^7.15.4, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.18.9, @babel/runtime@npm:^7.7.2, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": +"@babel/runtime@npm:^7.10.2, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.14.5, @babel/runtime@npm:^7.15.4, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.18.9, @babel/runtime@npm:^7.7.2, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": version: 7.20.6 resolution: "@babel/runtime@npm:7.20.6" dependencies: @@ -1418,6 +1418,15 @@ __metadata: languageName: node linkType: hard +"@carbon/colors@npm:^11.23.1": + version: 11.23.1 + resolution: "@carbon/colors@npm:11.23.1" + dependencies: + "@ibm/telemetry-js": "npm:^1.5.0" + checksum: 78564f49a919fb84ead4a2c0a02228823e8fa800d3a53365641c747d03f5626a84caabf08bb4b7446b7c3a9fd3bd5a6af94292fb347607ce20d3cffec1424395 + languageName: node + linkType: hard + "@carbon/feature-flags@npm:^0.16.0": version: 0.16.0 resolution: "@carbon/feature-flags@npm:0.16.0" @@ -1444,6 +1453,16 @@ __metadata: languageName: node linkType: hard +"@carbon/grid@npm:^11.24.1": + version: 11.24.1 + resolution: "@carbon/grid@npm:11.24.1" + dependencies: + "@carbon/layout": "npm:^11.23.1" + "@ibm/telemetry-js": "npm:^1.5.0" + checksum: 9a096d8ed9cc4886cdb2dfd6e0ecf651cdb46eb73e18332808ef9810e736b22f4762fef2482cda9be1e5b048d7e4ab1438561aa9f0131859c2693e353bc39430 + languageName: node + linkType: hard + "@carbon/icon-helpers@npm:^10.48.0": version: 10.48.0 resolution: "@carbon/icon-helpers@npm:10.48.0" @@ -1453,6 +1472,15 @@ __metadata: languageName: node linkType: hard +"@carbon/icon-helpers@npm:^10.49.1": + version: 10.49.1 + resolution: "@carbon/icon-helpers@npm:10.49.1" + dependencies: + "@ibm/telemetry-js": "npm:^1.5.0" + checksum: 9e3615888d7ab89d3c049964ca9a8220c026e9c73467f2c43a510303fb6bef32e1033adca5ac838cad63d9b0da967ddbee8a25289ccdd1405870f5a9307f65a0 + languageName: node + linkType: hard + "@carbon/icons-react@npm:^11.26.0, @carbon/icons-react@npm:^11.41.0": version: 11.41.0 resolution: "@carbon/icons-react@npm:11.41.0" @@ -1466,6 +1494,19 @@ __metadata: languageName: node linkType: hard +"@carbon/icons-react@npm:^11.35.0": + version: 11.44.1 + resolution: "@carbon/icons-react@npm:11.44.1" + dependencies: + "@carbon/icon-helpers": "npm:^10.49.1" + "@ibm/telemetry-js": "npm:^1.5.0" + prop-types: "npm:^15.7.2" + peerDependencies: + react: ">=16" + checksum: a546db550789e72d4d5e3b8dcab96341d36a7f4005d49ebdbbd3bcf88fcbaa8b175792d6bfa78818b3d5fb3b05f16eb7241cccb0a69655bdbf13aac164321e97 + languageName: node + linkType: hard + "@carbon/layout@npm:^11.19.0, @carbon/layout@npm:^11.22.0": version: 11.22.0 resolution: "@carbon/layout@npm:11.22.0" @@ -1475,6 +1516,15 @@ __metadata: languageName: node linkType: hard +"@carbon/layout@npm:^11.20.0, @carbon/layout@npm:^11.23.1": + version: 11.23.1 + resolution: "@carbon/layout@npm:11.23.1" + dependencies: + "@ibm/telemetry-js": "npm:^1.5.0" + checksum: 85febc872d9415031c474d5740bfd4ab0bcca8eb00dbb13326d7aec8357e4b74fb9e00349ab7e200db35bcb1afb6e9d0d0f45910ff040afd0de92b3df52cbe79 + languageName: node + linkType: hard + "@carbon/motion@npm:^11.18.0": version: 11.18.0 resolution: "@carbon/motion@npm:11.18.0" @@ -1484,6 +1534,48 @@ __metadata: languageName: node linkType: hard +"@carbon/motion@npm:^11.19.1": + version: 11.19.1 + resolution: "@carbon/motion@npm:11.19.1" + dependencies: + "@ibm/telemetry-js": "npm:^1.5.0" + checksum: 174aaf7cb388ff87fe1abf87418cb6d77ff6e9ae35709276c47c6613807970001b4f646b98b094ead16cc9caafcdee375f846a863aa94afd948b8eaee743e498 + languageName: node + linkType: hard + +"@carbon/react@npm:>1.47.0 <1.50.0": + version: 1.49.0 + resolution: "@carbon/react@npm:1.49.0" + dependencies: + "@babel/runtime": "npm:^7.18.3" + "@carbon/feature-flags": "npm:^0.16.0" + "@carbon/icons-react": "npm:^11.35.0" + "@carbon/layout": "npm:^11.20.0" + "@carbon/styles": "npm:^1.49.0" + "@ibm/telemetry-js": "npm:^1.2.0" + classnames: "npm:2.5.1" + copy-to-clipboard: "npm:^3.3.1" + downshift: "npm:8.3.1" + flatpickr: "npm:4.6.9" + invariant: "npm:^2.2.3" + lodash.debounce: "npm:^4.0.8" + lodash.findlast: "npm:^4.5.0" + lodash.isequal: "npm:^4.5.0" + lodash.omit: "npm:^4.5.0" + lodash.throttle: "npm:^4.1.1" + prop-types: "npm:^15.7.2" + react-is: "npm:^18.2.0" + use-resize-observer: "npm:^6.0.0" + wicg-inert: "npm:^3.1.1" + window-or-global: "npm:^1.0.1" + peerDependencies: + react: ^16.8.6 || ^17.0.1 || ^18.2.0 + react-dom: ^16.8.6 || ^17.0.1 || ^18.2.0 + sass: ^1.33.0 + checksum: 18e74975d78a8f26a464b2783a98cfa21610679e9bedc31e9f98e5b05a7ecfa157dd00569f9d54985ebfddcaeeae19096553c8f1cf57bc4f070405faeed3d70a + languageName: node + linkType: hard + "@carbon/react@npm:^1.12.0, @carbon/react@npm:^1.13.0": version: 1.57.0 resolution: "@carbon/react@npm:1.57.0" @@ -1574,6 +1666,28 @@ __metadata: languageName: node linkType: hard +"@carbon/styles@npm:^1.49.0": + version: 1.60.1 + resolution: "@carbon/styles@npm:1.60.1" + dependencies: + "@carbon/colors": "npm:^11.23.1" + "@carbon/feature-flags": "npm:^0.20.0" + "@carbon/grid": "npm:^11.24.1" + "@carbon/layout": "npm:^11.23.1" + "@carbon/motion": "npm:^11.19.1" + "@carbon/themes": "npm:^11.37.1" + "@carbon/type": "npm:^11.28.1" + "@ibm/plex": "npm:6.0.0-next.6" + "@ibm/telemetry-js": "npm:^1.5.0" + peerDependencies: + sass: ^1.33.0 + peerDependenciesMeta: + sass: + optional: true + checksum: 3a166807ff91a58783f35d3dbf30172cc58c748d68f2c066d8001ee2de50951439aae0f97ec55a6c5ab4b6349848d7d1c4e6a5398a1d749c7900962e834441bf + languageName: node + linkType: hard + "@carbon/telemetry@npm:0.1.0, @carbon/telemetry@npm:~0.1.0": version: 0.1.0 resolution: "@carbon/telemetry@npm:0.1.0" @@ -1596,6 +1710,19 @@ __metadata: languageName: node linkType: hard +"@carbon/themes@npm:^11.37.1": + version: 11.37.1 + resolution: "@carbon/themes@npm:11.37.1" + dependencies: + "@carbon/colors": "npm:^11.23.1" + "@carbon/layout": "npm:^11.23.1" + "@carbon/type": "npm:^11.28.1" + "@ibm/telemetry-js": "npm:^1.5.0" + color: "npm:^4.0.0" + checksum: 088f15ec1b2fbb83e24d05a4d6a32be39094d8c5bdf5d6bd589604baf5203e2e8bf32931faa99ee44833bdcc4fcd1578402650b7df41dc308e8067808d94b5e8 + languageName: node + linkType: hard + "@carbon/type@npm:^11.27.0": version: 11.27.0 resolution: "@carbon/type@npm:11.27.0" @@ -1607,6 +1734,17 @@ __metadata: languageName: node linkType: hard +"@carbon/type@npm:^11.28.1": + version: 11.28.1 + resolution: "@carbon/type@npm:11.28.1" + dependencies: + "@carbon/grid": "npm:^11.24.1" + "@carbon/layout": "npm:^11.23.1" + "@ibm/telemetry-js": "npm:^1.5.0" + checksum: 1148758456ec01e66c209a50b725ee48d5552f8e164e91a2186b008eef204c1b8553cfb952e717aa733b03247dc2af90dd1b2a0016d14e52d6fe6977414ab748 + languageName: node + linkType: hard + "@carbon/utils-position@npm:^1.1.4": version: 1.1.4 resolution: "@carbon/utils-position@npm:1.1.4" @@ -1803,7 +1941,7 @@ __metadata: languageName: node linkType: hard -"@ibm/telemetry-js@npm:^1.5.0": +"@ibm/telemetry-js@npm:^1.2.0, @ibm/telemetry-js@npm:^1.5.0": version: 1.5.2 resolution: "@ibm/telemetry-js@npm:1.5.2" bin: @@ -2845,7 +2983,7 @@ __metadata: resolution: "@ohri/openmrs-esm-ohri-commons-lib@workspace:packages/esm-commons-lib" dependencies: "@carbon/react": "npm:^1.13.0" - "@openmrs/openmrs-form-engine-lib": "npm:2.0.0-pre.1029" + "@openmrs/openmrs-form-engine-lib": "npm:2.0.0-pre.1260" enzyme: "npm:^3.11.0" enzyme-adapter-react-16: "npm:^1.15.6" fuzzy: "npm:^0.1.3" @@ -2902,7 +3040,7 @@ __metadata: resolution: "@ohri/openmrs-esm-ohri-form-render-app@workspace:packages/esm-form-render-app" dependencies: "@carbon/react": "npm:^1.13.0" - "@openmrs/openmrs-form-engine-lib": "npm:2.0.0-pre.1029" + "@openmrs/openmrs-form-engine-lib": "npm:2.0.0-pre.1260" ace-builds: "npm:1.34.1" react-ace: "npm:^9.4.4" webpack: "npm:^5.88.2" @@ -3382,31 +3520,31 @@ __metadata: languageName: node linkType: hard -"@openmrs/openmrs-form-engine-lib@npm:2.0.0-pre.1029": - version: 2.0.0-pre.1029 - resolution: "@openmrs/openmrs-form-engine-lib@npm:2.0.0-pre.1029" +"@openmrs/openmrs-form-engine-lib@npm:2.0.0-pre.1260": + version: 2.0.0-pre.1260 + resolution: "@openmrs/openmrs-form-engine-lib@npm:2.0.0-pre.1260" dependencies: - ace-builds: "npm:^1.4.12" + "@carbon/react": "npm:>1.47.0 <1.50.0" + ace-builds: "npm:^1.33.2" classnames: "npm:^2.5.1" dayjs: "npm:1.x" - formik: "npm:^2.2.6" - lodash-es: "npm:^4.17.15" - react-error-boundary: "npm:^4.0.11" - react-markdown: "npm:^7.1.0" + formik: "npm:^2.4.6" + lodash-es: "npm:^4.17.21" + react-error-boundary: "npm:^4.0.13" + react-markdown: "npm:^7.1.2" react-waypoint: "npm:^10.3.0" - react-webcam: "npm:^7.1.1" - yup: "npm:^0.29.1" + react-webcam: "npm:^7.2.0" + yup: "npm:^1.4.0" peerDependencies: - "@carbon/react": 1.x "@openmrs/esm-framework": 5.x - "@openmrs/esm-patient-common-lib": 7.x + "@openmrs/esm-patient-common-lib": 8.x dayjs: 1.x i18next: 23.x react: 18.x react-i18next: 11.x rxjs: 6.x swr: 2.x - checksum: 92afa09ba4240fe3b695b23ff637ed22c4936cd7ca672f2eb07ed84d3b3aaff1e0063d54b7b82e9b80d032eac9d40cdaa8742ed0f1038989d8f440ed05978502 + checksum: 3266f4c4df6254f46017808dc5fec6071c8ab3a7476147285d182cee1679156f037ef058cdea18f55fce1175007c4dbd6997742eaa695419dd555d6d1efa077e languageName: node linkType: hard @@ -5651,6 +5789,16 @@ __metadata: languageName: node linkType: hard +"@types/hoist-non-react-statics@npm:^3.3.1": + version: 3.3.5 + resolution: "@types/hoist-non-react-statics@npm:3.3.5" + dependencies: + "@types/react": "npm:*" + hoist-non-react-statics: "npm:^3.3.0" + checksum: b645b062a20cce6ab1245ada8274051d8e2e0b2ee5c6bd58215281d0ec6dae2f26631af4e2e7c8abe238cdcee73fcaededc429eef569e70908f82d0cc0ea31d7 + languageName: node + linkType: hard + "@types/html-minifier-terser@npm:^6.0.0": version: 6.1.0 resolution: "@types/html-minifier-terser@npm:6.1.0" @@ -6427,7 +6575,14 @@ __metadata: languageName: node linkType: hard -"ace-builds@npm:^1.4.12, ace-builds@npm:^1.4.13": +"ace-builds@npm:^1.33.2": + version: 1.35.2 + resolution: "ace-builds@npm:1.35.2" + checksum: dca440312d85e85cf3e0cac5ee1ffad2d282b31fbcffbd5b6d72cfdd5037cdb85b43d41ef3e3557ab5d446009233c37a4b26b99f7b1cf1f043210d27a8abf571 + languageName: node + linkType: hard + +"ace-builds@npm:^1.4.13": version: 1.13.1 resolution: "ace-builds@npm:1.13.1" checksum: d8deda4c495298a2269f2b750f149194a743c4fd4f011b2066fc47aea424726d24d6756452ea7a4eea2bbc4afee83c2db44797ce7251ae19c427577f4fc23966 @@ -9212,6 +9367,21 @@ __metadata: languageName: node linkType: hard +"downshift@npm:8.3.1": + version: 8.3.1 + resolution: "downshift@npm:8.3.1" + dependencies: + "@babel/runtime": "npm:^7.22.15" + compute-scroll-into-view: "npm:^3.0.3" + prop-types: "npm:^15.8.1" + react-is: "npm:^18.2.0" + tslib: "npm:^2.6.2" + peerDependencies: + react: ">=16.12.0" + checksum: b616da957802bd80bc8d909d36bff851d9701e743d800be6443514f24deeaf0ce22ae56e6802c386c769328d8442969c6629c6f94d99ff12bea8d07e11c86cee + languageName: node + linkType: hard + "downshift@npm:8.5.0": version: 8.5.0 resolution: "downshift@npm:8.5.0" @@ -10261,13 +10431,6 @@ __metadata: languageName: node linkType: hard -"fn-name@npm:~3.0.0": - version: 3.0.0 - resolution: "fn-name@npm:3.0.0" - checksum: 3cfe9bfadb65af582624fb17f8d491eac3d122ff8ecf9debb5994cb243131697b88903a737563cbc7d8a919716bd5f53ed8cb87bdfe124744a0d8a690531b4c2 - languageName: node - linkType: hard - "follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.14.0": version: 1.15.2 resolution: "follow-redirects@npm:1.15.2" @@ -10329,20 +10492,21 @@ __metadata: languageName: node linkType: hard -"formik@npm:^2.2.6": - version: 2.2.9 - resolution: "formik@npm:2.2.9" +"formik@npm:^2.4.6": + version: 2.4.6 + resolution: "formik@npm:2.4.6" dependencies: + "@types/hoist-non-react-statics": "npm:^3.3.1" deepmerge: "npm:^2.1.1" hoist-non-react-statics: "npm:^3.3.0" lodash: "npm:^4.17.21" lodash-es: "npm:^4.17.21" react-fast-compare: "npm:^2.0.1" tiny-warning: "npm:^1.0.2" - tslib: "npm:^1.10.0" + tslib: "npm:^2.0.0" peerDependencies: react: ">=16.8.0" - checksum: c7b4c6ee9cc8256302c56106fa4ff1a86b48774b26e5cdd4fe5a40d5ae2171ed7a02714cd36fa7fb05d8b86c5471643339a69d6e3f4234a963e70b9208cbee82 + checksum: 65d6845d913cfceebdbb1e34d498725965e07abd4c17f3ea9eeba77d9fab7d3b0f726fdfcae73f002b660ba56b236abc8d8aa6670a9c7cc0db27afebf6e48f4b languageName: node linkType: hard @@ -12976,7 +13140,7 @@ __metadata: languageName: node linkType: hard -"lodash-es@npm:4.17.21, lodash-es@npm:^4.17.11, lodash-es@npm:^4.17.15, lodash-es@npm:^4.17.21": +"lodash-es@npm:4.17.21, lodash-es@npm:^4.17.15, lodash-es@npm:^4.17.21": version: 4.17.21 resolution: "lodash-es@npm:4.17.21" checksum: 03f39878ea1e42b3199bd3f478150ab723f93cc8730ad86fec1f2804f4a07c6e30deaac73cad53a88e9c3db33348bb8ceeb274552390e7a75d7849021c02df43 @@ -15425,13 +15589,6 @@ __metadata: languageName: node linkType: hard -"property-expr@npm:^2.0.2": - version: 2.0.5 - resolution: "property-expr@npm:2.0.5" - checksum: 4ebe82ce45aaf1527e96e2ab84d75d25217167ec3ff6378cf83a84fb4abc746e7c65768a79d275881602ae82f168f9a6dfaa7f5e331d0fcc83d692770bcce5f1 - languageName: node - linkType: hard - "property-expr@npm:^2.0.5": version: 2.0.6 resolution: "property-expr@npm:2.0.6" @@ -15742,14 +15899,14 @@ __metadata: languageName: node linkType: hard -"react-error-boundary@npm:^4.0.11": - version: 4.0.12 - resolution: "react-error-boundary@npm:4.0.12" +"react-error-boundary@npm:^4.0.13": + version: 4.0.13 + resolution: "react-error-boundary@npm:4.0.13" dependencies: "@babel/runtime": "npm:^7.12.5" peerDependencies: react: ">=16.13.1" - checksum: ba59f885eae3c3786548086c6c2088a9f511080c4052e778017959e9e0b6461892efdcf58fcfc2b3a6bc3e79e17cf842fc8ccdc6d82698c51c2ccab12c8c0b85 + checksum: 28fdf498a58621e21d93978c61719c52455bc00b778080259c5830fe003736153469ebc84f243d7989567b1196e25648c7592f7c8e47de47fcd7d12b875879b9 languageName: node linkType: hard @@ -15806,7 +15963,7 @@ __metadata: languageName: node linkType: hard -"react-markdown@npm:^7.1.0": +"react-markdown@npm:^7.1.2": version: 7.1.2 resolution: "react-markdown@npm:7.1.2" dependencies: @@ -15916,7 +16073,7 @@ __metadata: languageName: node linkType: hard -"react-webcam@npm:^7.1.1": +"react-webcam@npm:^7.2.0": version: 7.2.0 resolution: "react-webcam@npm:7.2.0" peerDependencies: @@ -17431,13 +17588,6 @@ __metadata: languageName: node linkType: hard -"synchronous-promise@npm:^2.0.13": - version: 2.0.16 - resolution: "synchronous-promise@npm:2.0.16" - checksum: 041f532cab52a82ffc95f1e437a4295cf981728ef431b79ca460577a68aeeaf7b1865e582b905f38a7b461bd7b3879f7e44913208eeba972e7057fa29a6976e1 - languageName: node - linkType: hard - "synckit@npm:^0.8.6": version: 0.8.8 resolution: "synckit@npm:0.8.8" @@ -17813,13 +17963,20 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^1.10.0, tslib@npm:^1.9.0": +"tslib@npm:^1.9.0": version: 1.14.1 resolution: "tslib@npm:1.14.1" checksum: 7dbf34e6f55c6492637adb81b555af5e3b4f9cc6b998fb440dac82d3b42bdc91560a35a5fb75e20e24a076c651438234da6743d139e4feabf0783f3cdfe1dddb languageName: node linkType: hard +"tslib@npm:^2.0.0": + version: 2.6.3 + resolution: "tslib@npm:2.6.3" + checksum: 52109bb681f8133a2e58142f11a50e05476de4f075ca906d13b596ae5f7f12d30c482feb0bff167ae01cfc84c5803e575a307d47938999246f5a49d174fc558c + languageName: node + linkType: hard + "tslib@npm:^2.0.3": version: 2.4.1 resolution: "tslib@npm:2.4.1" @@ -19622,21 +19779,6 @@ __metadata: languageName: node linkType: hard -"yup@npm:^0.29.1": - version: 0.29.3 - resolution: "yup@npm:0.29.3" - dependencies: - "@babel/runtime": "npm:^7.10.5" - fn-name: "npm:~3.0.0" - lodash: "npm:^4.17.15" - lodash-es: "npm:^4.17.11" - property-expr: "npm:^2.0.2" - synchronous-promise: "npm:^2.0.13" - toposort: "npm:^2.0.2" - checksum: 78dde0d087cb5dc78c64b0e82c913009260604aa100f500f0b10a703ed263fa65791c4cfcec4feb886d95f74d4312dd2214802e47ba048f120a63d42f171eef6 - languageName: node - linkType: hard - "yup@npm:^1.4.0": version: 1.4.0 resolution: "yup@npm:1.4.0"