@gen-epix/ui-client-omopdb 4.3.1 → 4.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -34,18 +34,23 @@ Refer to `package.json` for the full list of peer dependencies.
34
34
 
35
35
  ```tsx
36
36
  import { createRoot } from 'react-dom/client';
37
+ import { DependencyContainerUtil } from '@gen-epix/ui-client-common/utils/DependencyContainerUtil';
37
38
  import { I18nService } from '@gen-epix/ui-client-common/classes/services/I18nService';
38
- import { createUiClientCommonContainer } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';
39
39
  import { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';
40
40
  import {
41
41
  OmopDbApp,
42
- setupOmopDb,
43
- } from '@gen-epix/ui-client-omopdb';
42
+ } from '@gen-epix/ui-client-omopdb/components/app/OmopDbApp';
43
+ import { setupOmopDb } from '@gen-epix/ui-client-omopdb/setup/setup';
44
44
 
45
45
  const LOCAL_STORAGE_KEY_PREFERRED_LANGUAGE = 'GenEpix-preferred-language';
46
46
 
47
47
  const init = async () => {
48
- await I18nService.getInstance().init({
48
+ const config = {
49
+ // provide an OmopDbConfig implementation here
50
+ };
51
+ const container = DependencyContainerUtil.createUiClientCommonContainer(config);
52
+
53
+ await container.resolve(I18nService).init({
49
54
  getCurrentLanguageCode: async () => {
50
55
  return Promise.resolve(
51
56
  WindowService.getInstance().window.localStorage.getItem(LOCAL_STORAGE_KEY_PREFERRED_LANGUAGE)
@@ -74,11 +79,6 @@ const init = async () => {
74
79
  },
75
80
  });
76
81
 
77
- const config = {
78
- // add your config here
79
- };
80
- const container = createUiClientCommonContainer(config);
81
-
82
82
  setupOmopDb(container);
83
83
 
84
84
  createRoot(document.getElementById('root')!).render(<OmopDbApp container={container} />);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gen-epix/ui-client-omopdb",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "homepage": "https://github.com/RIVM-bioinformatics/gen-epix",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,9 +61,9 @@
61
61
  "@gen-epix/api-omopdb": "^4.4.0",
62
62
  "@gen-epix/eslint-config": "0.8.0",
63
63
  "@gen-epix/translation-util": "0.5.0",
64
- "@gen-epix/ui-client-common": "^4.4.1",
65
- "@gen-epix/ui-core-components": "^4.4.0",
66
- "@gen-epix/ui-core-form": "^4.4.0",
64
+ "@gen-epix/ui-client-common": "^4.4.2",
65
+ "@gen-epix/ui-core-components": "^4.4.1",
66
+ "@gen-epix/ui-core-form": "^4.4.1",
67
67
  "@microsoft/api-extractor": "7.59.4",
68
68
  "@mui/icons-material": "9.5.0",
69
69
  "@mui/material": "9.5.0",
@@ -78,11 +78,11 @@
78
78
  "@vitest/coverage-v8": "5.0.4",
79
79
  "axios": "1.20.0",
80
80
  "eslint": "10.12.0",
81
- "i18next": "26.4.4",
81
+ "i18next": "26.4.5",
82
82
  "jsdom": "30.1.2",
83
83
  "playwright": "1.64.1",
84
- "react": "19.3.0",
85
- "react-dom": "19.3.0",
84
+ "react": "19.3.1",
85
+ "react-dom": "19.3.1",
86
86
  "react-error-boundary": "6.1.6",
87
87
  "react-hook-form": "7.90.0",
88
88
  "react-i18next": "17.0.16",
@@ -104,10 +104,10 @@
104
104
  "@emotion/styled": "*",
105
105
  "@gen-epix/api-commondb": "^4.4.0",
106
106
  "@gen-epix/api-omopdb": "^4.4.0",
107
- "@gen-epix/ui-client-common": "^4.4.1",
108
- "@gen-epix/ui-core": "^3.9.0",
109
- "@gen-epix/ui-core-components": "^4.4.0",
110
- "@gen-epix/ui-core-form": "^4.4.0",
107
+ "@gen-epix/ui-client-common": "^4.4.2",
108
+ "@gen-epix/ui-core": "^3.9.1",
109
+ "@gen-epix/ui-core-components": "^4.4.1",
110
+ "@gen-epix/ui-core-form": "^4.4.1",
111
111
  "@mui/icons-material": "*",
112
112
  "@mui/material": "*",
113
113
  "@mui/styled-engine": "*",