@openmrs/esm-styleguide 5.6.1-pre.1908 → 5.6.1-pre.1920

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.
@@ -1,3 +1,9 @@
1
+ Browserslist: caniuse-lite is outdated. Please run:
2
+ npx update-browserslist-db@latest
3
+ Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
+ Browserslist: caniuse-lite is outdated. Please run:
5
+ npx update-browserslist-db@latest
6
+ Why you should do it regularly: https://github.com/browserslist/update-db#readme
1
7
  assets by info 2.4 MiB [immutable]
2
8
  assets by path *.woff 1.35 MiB
3
9
  asset d96e5a614e96c351c453.woff 24.5 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff/IBMPlexSerif-SemiBoldItalic-Cyrillic.woff] (auxiliary name: main)
@@ -45,4 +51,4 @@ WARNING in webpack performance recommendations:
45
51
  You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
46
52
  For more info visit https://webpack.js.org/guides/code-splitting/
47
53
 
48
- webpack 5.88.0 compiled with 3 warnings in 19983 ms
54
+ webpack 5.88.0 compiled with 3 warnings in 19813 ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-styleguide",
3
- "version": "5.6.1-pre.1908",
3
+ "version": "5.6.1-pre.1920",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The styleguide for OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-styleguide.js",
@@ -66,12 +66,12 @@
66
66
  "rxjs": "6.x"
67
67
  },
68
68
  "devDependencies": {
69
- "@openmrs/esm-error-handling": "5.6.1-pre.1908",
70
- "@openmrs/esm-extensions": "5.6.1-pre.1908",
71
- "@openmrs/esm-navigation": "5.6.1-pre.1908",
72
- "@openmrs/esm-react-utils": "5.6.1-pre.1908",
73
- "@openmrs/esm-state": "5.6.1-pre.1908",
74
- "@openmrs/esm-translations": "5.6.1-pre.1908",
69
+ "@openmrs/esm-error-handling": "5.6.1-pre.1920",
70
+ "@openmrs/esm-extensions": "5.6.1-pre.1920",
71
+ "@openmrs/esm-navigation": "5.6.1-pre.1920",
72
+ "@openmrs/esm-react-utils": "5.6.1-pre.1920",
73
+ "@openmrs/esm-state": "5.6.1-pre.1920",
74
+ "@openmrs/esm-translations": "5.6.1-pre.1920",
75
75
  "autoprefixer": "^9.8.8",
76
76
  "css-minimizer-webpack-plugin": "^1.2.0",
77
77
  "i18next": "^21.10.0",
@@ -59,10 +59,14 @@ const PatientLists: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
59
59
  };
60
60
 
61
61
  const Address: React.FC<{ patientId: string }> = ({ patientId }) => {
62
- const { patient } = usePatient(patientId);
62
+ const { patient, isLoading } = usePatient(patientId);
63
63
  const address = patient?.address?.find((a) => a.use === 'home');
64
64
  const getAddressKey = (url) => url.split('#')[1];
65
65
 
66
+ if (isLoading) {
67
+ return <InlineLoading description={`${getCoreTranslation('loading', 'Loading')} ...`} role="progressbar" />;
68
+ }
69
+
66
70
  return (
67
71
  <>
68
72
  <p className={styles.heading}>{getCoreTranslation('address', 'Address')}</p>