fhir-react 2.0.0 → 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": "2.0.0",
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.3.1"
7
+ "react": "^18.3.1",
8
+ "react-dom": "^18.3.1"
8
9
  },
9
10
  "dependencies": {
10
11
  "@nivo/core": "^0.78.0",
@@ -18,8 +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.3.1",
22
- "react-dom": "^18.3.1",
23
22
  "svg-url-loader": "^7.1.1"
24
23
  },
25
24
  "scripts": {
@@ -80,10 +79,10 @@
80
79
  "@babel/plugin-proposal-throw-expressions": "^7.16.7",
81
80
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
82
81
  "@babel/plugin-syntax-import-meta": "^7.10.4",
83
- "@babel/plugin-transform-react-jsx": "^7.17.3",
82
+ "@babel/plugin-transform-react-jsx": "^7.28.6",
84
83
  "@babel/polyfill": "^7.0.0",
85
84
  "@babel/preset-env": "^7.16.11",
86
- "@babel/preset-react": "^7.16.7",
85
+ "@babel/preset-react": "^7.28.5",
87
86
  "@storybook/addon-controls": "^6.5.13",
88
87
  "@storybook/preset-scss": "^1.0.3",
89
88
  "@storybook/react": "^6.5.13",
@@ -100,17 +99,19 @@
100
99
  "dedent": "^0.7.0",
101
100
  "eslint": "^8.10.0",
102
101
  "eslint-config-prettier": "^8.5.0",
103
- "eslint-config-react-app": "^7.0.0",
102
+ "eslint-config-react-app": "^7.0.1",
104
103
  "eslint-plugin-flowtype": "^8.0.3",
105
104
  "eslint-plugin-import": "^2.25.4",
106
105
  "eslint-plugin-jsx-a11y": "^6.5.1",
107
106
  "eslint-plugin-prettier": "^4.0.0",
108
- "eslint-plugin-react": "^7.29.3",
109
- "eslint-plugin-react-hooks": "^4.3.0",
107
+ "eslint-plugin-react": "^7.37.5",
108
+ "eslint-plugin-react-hooks": "^7.0.1",
110
109
  "jest": "^24.9.0",
111
110
  "mini-css-extract-plugin": "^1.6.2",
112
111
  "npm-check-updates": "^16.7.9",
113
112
  "prettier": "1.19.1",
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",
@@ -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({