fhir-react 1.0.2 → 2.0.1-beta.1

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.
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "fhir-react",
3
- "version": "1.0.2",
3
+ "version": "2.0.1-beta.1",
4
4
  "description": "React component library for displaying FHIR Resources ",
5
5
  "main": "build/index.js",
6
6
  "peerDependencies": {
7
- "react": "^18.2.0"
7
+ "react": "^18.3.1",
8
+ "react-dom": "^18.3.1"
8
9
  },
9
10
  "dependencies": {
10
11
  "@nivo/core": "^0.78.0",
@@ -18,7 +19,6 @@
18
19
  "md5": "^2.3.0",
19
20
  "pretty-bytes": "^5.6.0",
20
21
  "prop-types": "^15.8.1",
21
- "react": "^18.2.0",
22
22
  "svg-url-loader": "^7.1.1"
23
23
  },
24
24
  "scripts": {
@@ -79,10 +79,10 @@
79
79
  "@babel/plugin-proposal-throw-expressions": "^7.16.7",
80
80
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
81
81
  "@babel/plugin-syntax-import-meta": "^7.10.4",
82
- "@babel/plugin-transform-react-jsx": "^7.17.3",
82
+ "@babel/plugin-transform-react-jsx": "^7.28.6",
83
83
  "@babel/polyfill": "^7.0.0",
84
84
  "@babel/preset-env": "^7.16.11",
85
- "@babel/preset-react": "^7.16.7",
85
+ "@babel/preset-react": "^7.28.5",
86
86
  "@storybook/addon-controls": "^6.5.13",
87
87
  "@storybook/preset-scss": "^1.0.3",
88
88
  "@storybook/react": "^6.5.13",
@@ -99,18 +99,19 @@
99
99
  "dedent": "^0.7.0",
100
100
  "eslint": "^8.10.0",
101
101
  "eslint-config-prettier": "^8.5.0",
102
- "eslint-config-react-app": "^7.0.0",
102
+ "eslint-config-react-app": "^7.0.1",
103
103
  "eslint-plugin-flowtype": "^8.0.3",
104
104
  "eslint-plugin-import": "^2.25.4",
105
105
  "eslint-plugin-jsx-a11y": "^6.5.1",
106
106
  "eslint-plugin-prettier": "^4.0.0",
107
- "eslint-plugin-react": "^7.29.3",
108
- "eslint-plugin-react-hooks": "^4.3.0",
107
+ "eslint-plugin-react": "^7.37.5",
108
+ "eslint-plugin-react-hooks": "^7.0.1",
109
109
  "jest": "^24.9.0",
110
110
  "mini-css-extract-plugin": "^1.6.2",
111
111
  "npm-check-updates": "^16.7.9",
112
112
  "prettier": "1.19.1",
113
- "react-dom": "^18.2.0",
113
+ "react": "^18.3.1",
114
+ "react-dom": "^18.3.1",
114
115
  "sass": "^1.49.9",
115
116
  "sass-loader": "^10.2.0",
116
117
  "style-loader": "^2.0.0",
@@ -119,4 +120,4 @@
119
120
  "webpack": "^4.41.2",
120
121
  "webpack-cli": "^3.3.10"
121
122
  }
122
- }
123
+ }
@@ -18,7 +18,7 @@ import {
18
18
  } from '../../ui';
19
19
  import Reference from '../../datatypes/Reference';
20
20
  import { getResourceDate } from '../../../utils/getResourceDate';
21
- import Annotation from "../../datatypes/Annotation";
21
+ import Annotation from '../../datatypes/Annotation';
22
22
 
23
23
  const Observation = ({
24
24
  fhirResource,
@@ -132,7 +132,9 @@ describe('should render component correctly', () => {
132
132
  expect(getByTestId('issuedOn').textContent).toEqual('05/18/2016');
133
133
  expect(getByTestId('subject').textContent).toContain('Patient/infant');
134
134
  expect(queryByText(/373066001/g)).not.toBeNull();
135
- expect(getByTestId('hasNote').textContent).toContain('Was exposed to second-hand smoke.');
135
+ expect(getByTestId('hasNote').textContent).toContain(
136
+ 'Was exposed to second-hand smoke.',
137
+ );
136
138
  });
137
139
 
138
140
  test('should display not rounded value', () => {
package/webpack.config.js CHANGED
@@ -50,6 +50,7 @@ module.exports = {
50
50
  },
51
51
  externals: {
52
52
  react: 'commonjs react', // this line is just to use the React dependency of our parent-testing-project instead of using our own React.
53
+ 'react-dom': 'commonjs react-dom',
53
54
  },
54
55
  plugins: [
55
56
  new MiniCssExtractPlugin({