Skip to content

Commit 4cc5468

Browse files
authored
Merge branch 'main' into ImplementerTools
2 parents fc13028 + cce4961 commit 4cc5468

File tree

157 files changed

+3763
-2038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+3763
-2038
lines changed

.yarn/releases/yarn-4.9.2.cjs renamed to .yarn/releases/yarn-4.10.3.cjs

Lines changed: 355 additions & 355 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ plugins:
99
path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
1010
spec: "https://go.mskelton.dev/yarn-outdated/v4"
1111

12-
yarnPath: .yarn/releases/yarn-4.9.2.cjs
12+
yarnPath: .yarn/releases/yarn-4.10.3.cjs

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"@testing-library/react": "^14.1.2",
3535
"@testing-library/user-event": "^14.5.2",
3636
"@types/jest": "^29.5.12",
37-
"@types/react-dom": "^18.0.6",
37+
"@types/react": "^18.3.21",
38+
"@types/react-dom": "^18.3.0",
3839
"@types/webpack-env": "^1.16.4",
3940
"@typescript-eslint/eslint-plugin": "^8.35.0",
4041
"@typescript-eslint/parser": "^8.35.0",
@@ -50,7 +51,7 @@
5051
"fake-indexeddb": "^4.0.2",
5152
"fork-ts-checker-webpack-plugin": "^7.2.13",
5253
"husky": "^8.0.3",
53-
"i18next-parser": "^6.6.0",
54+
"i18next-parser": "^9.3.0",
5455
"identity-obj-proxy": "^3.0.0",
5556
"jest": "^29.7.0",
5657
"jest-cli": "^29.7.0",
@@ -68,5 +69,5 @@
6869
"*.{ts,tsx}": "eslint --cache --fix --max-warnings 0",
6970
"*.{css,scss,ts,tsx}": "prettier --write --list-different"
7071
},
71-
"packageManager": "yarn@4.9.2"
72+
"packageManager": "yarn@4.10.3"
7273
}

packages/apps/esm-devtools-app/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@
4141
"@openmrs/esm-framework": "*",
4242
"react": "18.x",
4343
"react-dom": "18.x",
44-
"react-i18next": "11.x",
44+
"react-i18next": "16.x",
4545
"rxjs": "6.x"
4646
},
4747
"devDependencies": {
4848
"@openmrs/esm-framework": "workspace:*",
4949
"@openmrs/webpack-config": "workspace:*",
5050
"cross-env": "^7.0.3",
5151
"happy-dom": "^17.4.7",
52-
"react": "^18.1.0",
53-
"react-dom": "^18.1.0",
54-
"react-i18next": "^11.18.6",
52+
"react": "^18.3.1",
53+
"react-dom": "^18.3.1",
54+
"react-i18next": "^16.0.0",
5555
"vitest": "^3.1.4",
5656
"webpack": "^5.99.9"
5757
},
5858
"dependencies": {
59-
"@carbon/react": "^1.83.0",
59+
"@carbon/react": "^1.92.1",
6060
"fuzzy": "^0.1.3"
6161
}
6262
}

packages/apps/esm-help-menu-app/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@
4141
"@openmrs/esm-framework": "*",
4242
"react": "18.x",
4343
"react-dom": "18.x",
44-
"react-i18next": "11.x",
44+
"react-i18next": "16.x",
4545
"rxjs": "6.x"
4646
},
4747
"devDependencies": {
4848
"@openmrs/esm-framework": "workspace:*",
4949
"@openmrs/webpack-config": "workspace:*",
5050
"cross-env": "^7.0.3",
5151
"happy-dom": "^17.4.7",
52-
"react": "^18.1.0",
53-
"react-dom": "^18.1.0",
54-
"react-i18next": "^11.18.6",
52+
"react": "^18.3.1",
53+
"react-dom": "^18.3.1",
54+
"react-i18next": "^16.0.0",
5555
"vitest": "^3.1.4",
5656
"webpack": "^5.99.9"
5757
},
5858
"dependencies": {
59-
"@carbon/react": "^1.83.0",
59+
"@carbon/react": "^1.92.1",
6060
"fuzzy": "^0.1.3"
6161
}
6262
}

packages/apps/esm-implementer-tools-app/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,26 @@
3838
"access": "public"
3939
},
4040
"dependencies": {
41-
"@carbon/react": "^1.83.0",
41+
"@carbon/react": "^1.92.1",
4242
"lodash-es": "^4.17.21"
4343
},
4444
"peerDependencies": {
4545
"@carbon/react": "1.x",
4646
"@openmrs/esm-framework": "*",
4747
"react": "18.x",
4848
"react-dom": "18.x",
49-
"react-i18next": "11.x",
49+
"react-i18next": "16.x",
5050
"rxjs": "6.x",
5151
"swr": "2.x"
5252
},
5353
"devDependencies": {
5454
"@openmrs/esm-framework": "workspace:*",
5555
"@openmrs/webpack-config": "workspace:*",
56-
"ace-builds": "^1.4.14",
57-
"react": "^18.1.0",
58-
"react-ace": "^9.5.0",
59-
"react-dom": "^18.1.0",
60-
"react-i18next": "^11.18.6",
56+
"ace-builds": "^1.43.3",
57+
"react": "^18.3.1",
58+
"react-ace": "^14.0.1",
59+
"react-dom": "^18.3.1",
60+
"react-i18next": "^16.0.0",
6161
"rxjs": "^6.5.3",
6262
"swr": "2.2.5",
6363
"webpack": "^5.99.9"

packages/apps/esm-implementer-tools-app/src/configuration/json-editor/json-editor.component.tsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
import React, { useCallback, useEffect, useState } from 'react';
2-
import { Button } from '@carbon/react';
3-
import { useTranslation } from 'react-i18next';
42
import classNames from 'classnames';
53
import AceEditor from 'react-ace';
6-
import 'ace-builds/src-noconflict/mode-json';
7-
import 'ace-builds/src-noconflict/theme-dracula';
4+
import { Button } from '@carbon/react';
5+
import { useTranslation } from 'react-i18next';
86
import { clearConfigErrors, temporaryConfigStore, useStore } from '@openmrs/esm-framework/src/internal';
97
import styles from './json-editor.scss';
108

9+
import 'ace-builds/src-noconflict/mode-json';
10+
import 'ace-builds/src-noconflict/theme-dracula';
11+
import ace from 'ace-builds/src-noconflict/ace';
12+
13+
// Configure ace to bundle workers locally (webpack 5 asset modules)
14+
// Using new URL() syntax instead of deprecated file-loader or CDN for offline compatibility
15+
ace.config.setModuleUrl(
16+
'ace/mode/json_worker',
17+
new URL('ace-builds/src-noconflict/worker-json.js', import.meta.url).href,
18+
);
19+
1120
export interface JsonEditorProps {
1221
/** A CSS value */
1322
height: string;
@@ -25,17 +34,17 @@ export default function JsonEditor({ height }: JsonEditorProps) {
2534
try {
2635
config = JSON.parse(editorValue);
2736
} catch (e) {
28-
setError(e.message);
37+
setError(e instanceof Error ? e.message : 'Invalid JSON');
2938
return;
3039
}
3140
setError('');
3241
clearConfigErrors();
3342
temporaryConfigStore.setState({ config });
34-
}, [editorValue, temporaryConfigStore]);
43+
}, [editorValue, temporaryConfig.config]);
3544

3645
useEffect(() => {
3746
if (editorValue != JSON.stringify(temporaryConfig.config, null, 2)) {
38-
setKey((k) => `${k}+`); // just keep appendingplus signs
47+
setKey((k) => `${k}+`); // just keep appending plus signs
3948
}
4049
}, [temporaryConfig.config]);
4150

packages/apps/esm-implementer-tools-app/src/ui-editor/ui-editor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useMemo, useState } from 'react';
22
import classNames from 'classnames';
3-
import { useTranslation, type TFunction } from 'react-i18next';
3+
import { type TFunction } from 'i18next';
4+
import { useTranslation } from 'react-i18next';
45
import { Button } from '@carbon/react';
56
import {
67
CloseIcon,

packages/apps/esm-login-app/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"access": "public"
3939
},
4040
"dependencies": {
41-
"@carbon/react": "^1.83.0",
41+
"@carbon/react": "^1.92.1",
4242
"@hookform/resolvers": "^3.6.0",
4343
"lodash-es": "^4.17.21",
4444
"react-hook-form": "^7.52.2",
@@ -49,7 +49,7 @@
4949
"@openmrs/esm-framework": "*",
5050
"react": "18.x",
5151
"react-dom": "18.x",
52-
"react-i18next": "11.x",
52+
"react-i18next": "16.x",
5353
"react-router-dom": "6.x",
5454
"rxjs": "6.x",
5555
"swr": "2.x"
@@ -61,9 +61,9 @@
6161
"@rspack/core": "^1.3.11",
6262
"cross-env": "^7.0.3",
6363
"jest": "^29.7.0",
64-
"react": "^18.1.0",
65-
"react-dom": "^18.1.0",
66-
"react-i18next": "^11.18.6",
64+
"react": "^18.3.1",
65+
"react-dom": "^18.3.1",
66+
"react-i18next": "^16.0.0",
6767
"react-router-dom": "^6.3.0",
6868
"rxjs": "^6.5.3",
6969
"swr": "2.2.5",

packages/apps/esm-login-app/src/logo.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { interpolateUrl, useConfig } from '@openmrs/esm-framework';
3-
import { type TFunction } from 'react-i18next';
3+
import { type TFunction } from 'i18next';
44
import { type ConfigSchema } from './config-schema';
55
import styles from './login/login.scss';
66

@@ -16,7 +16,7 @@ const Logo: React.FC<{ t: TFunction }> = ({ t }) => {
1616
<svg role="img" className={styles.logo}>
1717
<title>{t('openmrsLogo', 'OpenMRS logo')}</title>
1818
<use href="#omrs-logo-full-color"></use>
19-
</svg>
19+
</svg>
2020
);
2121
};
2222

0 commit comments

Comments
 (0)