@medplum/react 0.9.24 → 0.9.25

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.
@@ -3,6 +3,7 @@ import './SignInForm.css';
3
3
  import './util.css';
4
4
  export interface BaseRegisterFormProps {
5
5
  readonly googleClientId?: string;
6
+ readonly recaptchaSiteKey: string;
6
7
  readonly children?: React.ReactNode;
7
8
  readonly onSuccess: () => void;
8
9
  }
@@ -33,6 +33,7 @@ export * from './HumanNameDisplay';
33
33
  export * from './HumanNameInput';
34
34
  export * from './IdentifierInput';
35
35
  export * from './Input';
36
+ export * from './InputRow';
36
37
  export * from './Loading';
37
38
  export * from './Logo';
38
39
  export * from './MedplumLink';
@@ -1,10 +1,12 @@
1
1
  /**
2
2
  * Dynamically loads the recaptcha script.
3
3
  * We do not want to load the script on page load unless the user needs it.
4
+ * @param siteKey The reCAPTCHA site key, available from the reCAPTCHA admin page.
4
5
  */
5
- export declare function initRecaptcha(): void;
6
+ export declare function initRecaptcha(siteKey: string): void;
6
7
  /**
7
8
  * Starts a request to generate a recapcha token.
9
+ * @param siteKey The reCAPTCHA site key, available from the reCAPTCHA admin page.
8
10
  * @returns Promise to a recaptcha token for the current user.
9
11
  */
10
- export declare function getRecaptcha(): Promise<string>;
12
+ export declare function getRecaptcha(siteKey: string): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/react",
3
- "version": "0.9.24",
3
+ "version": "0.9.25",
4
4
  "description": "Medplum React Component Library",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -19,9 +19,9 @@
19
19
  "storybook": "build-storybook"
20
20
  },
21
21
  "devDependencies": {
22
- "@medplum/core": "0.9.24",
23
- "@medplum/fhirtypes": "0.9.24",
24
- "@medplum/mock": "0.9.24",
22
+ "@medplum/core": "0.9.25",
23
+ "@medplum/fhirtypes": "0.9.25",
24
+ "@medplum/mock": "0.9.25",
25
25
  "@storybook/addon-actions": "6.5.9",
26
26
  "@storybook/addon-essentials": "6.5.9",
27
27
  "@storybook/addon-links": "6.5.9",
@@ -31,15 +31,15 @@
31
31
  "@testing-library/dom": "8.16.0",
32
32
  "@testing-library/jest-dom": "5.16.4",
33
33
  "@testing-library/react": "13.3.0",
34
- "@types/jest": "28.1.4",
35
- "@types/node": "18.0.3",
34
+ "@types/jest": "28.1.6",
35
+ "@types/node": "18.0.6",
36
36
  "@types/react": "18.0.15",
37
37
  "@types/react-dom": "18.0.6",
38
38
  "@types/react-router-dom": "5.3.3",
39
39
  "dotenv-webpack": "8.0.0",
40
40
  "identity-obj-proxy": "3.0.0",
41
- "jest": "28.1.2",
42
- "jest-each": "28.1.1",
41
+ "jest": "28.1.3",
42
+ "jest-each": "28.1.3",
43
43
  "html-webpack-plugin": "5.5.0",
44
44
  "react": "18.2.0",
45
45
  "react-dom": "18.2.0",
@@ -48,7 +48,7 @@
48
48
  "typescript": "4.7.4"
49
49
  },
50
50
  "peerDependencies": {
51
- "@medplum/core": "0.9.24",
51
+ "@medplum/core": "0.9.25",
52
52
  "react": "^17.0.2 || ^18.0.0",
53
53
  "react-dom": "^17.0.2 || ^18.0.0",
54
54
  "react-router-dom": "^6.2.2"