@medplum/react 2.1.16 → 2.1.18

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/.env.defaults ADDED
@@ -0,0 +1,2 @@
1
+ GOOGLE_CLIENT_ID=921088377005-3j1sa10vr6hj86jgmdfh2l53v3mp7lfi.apps.googleusercontent.com
2
+ GOOGLE_AUTH_ORIGINS=http://localhost:3000,https://app.medplum.com,https://docs.medplum.com
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/react",
3
- "version": "2.1.16",
3
+ "version": "2.1.18",
4
4
  "description": "Medplum React Component Library",
5
5
  "keywords": [
6
6
  "medplum",
@@ -22,6 +22,9 @@
22
22
  "react-component"
23
23
  ],
24
24
  "homepage": "https://www.medplum.com/",
25
+ "bugs": {
26
+ "url": "https://github.com/medplum/medplum/issues"
27
+ },
25
28
  "repository": {
26
29
  "type": "git",
27
30
  "url": "git+https://github.com/medplum/medplum.git",
@@ -29,14 +32,26 @@
29
32
  },
30
33
  "license": "Apache-2.0",
31
34
  "author": "Medplum <hello@medplum.com>",
32
- "type": "module",
33
35
  "sideEffects": false,
36
+ "type": "module",
34
37
  "exports": {
35
- "require": "./dist/cjs/index.cjs",
36
- "import": "./dist/esm/index.mjs"
38
+ "import": {
39
+ "types": "./dist/esm/index.d.mts",
40
+ "default": "./dist/esm/index.mjs"
41
+ },
42
+ "require": {
43
+ "types": "./dist/cjs/index.d.cts",
44
+ "default": "./dist/cjs/index.cjs"
45
+ }
37
46
  },
38
47
  "main": "dist/cjs/index.cjs",
39
48
  "module": "dist/esm/index.mjs",
49
+ "types": "dist/esm/index.d.mts",
50
+ "files": [
51
+ ".env.defaults",
52
+ "dist/cjs",
53
+ "dist/esm"
54
+ ],
40
55
  "scripts": {
41
56
  "api-extractor": "api-extractor run --local && cp dist/types.d.ts dist/cjs/index.d.cts && cp dist/types.d.ts dist/esm/index.d.mts",
42
57
  "build": "npm run clean && tsc --project tsconfig.build.json && node esbuild.mjs && npm run api-extractor",
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "../../api-extractor.json"
3
- }
package/babel.config.cjs DELETED
@@ -1,23 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- ['@babel/preset-env', { targets: { node: 'current' } }],
4
- ['@babel/preset-react', { runtime: 'automatic' }],
5
- '@babel/preset-typescript',
6
- ],
7
- plugins: [
8
- function () {
9
- return {
10
- visitor: {
11
- MetaProperty(path) {
12
- // replace e.g. import.meta.env.GOOGLE_AUTH_ORIGINS into process.env.GOOGLE_AUTH_ORIGINS
13
- const metaProperty = path.node;
14
- if (metaProperty.meta.name === 'import' && metaProperty.property.name === 'meta') {
15
- // We're specifically looking for instances of `import.meta` so ignore any other meta properties.
16
- path.replaceWithSourceString('process');
17
- }
18
- },
19
- },
20
- };
21
- },
22
- ],
23
- };
package/tsdoc.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3
- "extends": ["../../tsdoc.json"]
4
- }