@4alldigital/foundation-ui--gamma 1.52.0 → 1.52.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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './Avatar.types';
3
3
  declare const Avatar: {
4
- ({ testID, name, isEditable, initValue }: Props): React.ReactElement;
4
+ ({ testID, name, isEditable, initValue, fileUpdateCallback, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default Avatar;
@@ -4,4 +4,5 @@ export interface Props {
4
4
  name?: string;
5
5
  isEditable?: boolean;
6
6
  initValue?: string;
7
+ fileUpdateCallback?: (file: File) => Promise<void>;
7
8
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './ProfileForm.types';
3
3
  declare const ProfileForm: {
4
- ({ testID, initialValues, handleSubmit }: Props): React.ReactElement;
4
+ ({ testID, initialValues, handleSubmit, avatarUpdateCallback }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default ProfileForm;
@@ -2,4 +2,5 @@ export interface Props {
2
2
  testID?: string;
3
3
  initialValues?: Record<string, string>;
4
4
  handleSubmit: (values: Record<string, string>) => void;
5
+ avatarUpdateCallback: (file: File) => Promise<void>;
5
6
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './ChallengeScreen.types';
3
3
  declare const ChallengeScreen: {
4
- ({ testID, title, image, created, body, days, price, puchaseLabel, hasAccess, onPressCallback, purchaseCallback, }: Props): React.ReactElement;
4
+ ({ testID, title, image, created, body, days, puchaseLabel, hasAccess, onPressCallback, purchaseCallback, isLoading, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default ChallengeScreen;
@@ -15,5 +15,6 @@ export interface Props {
15
15
  price?: number;
16
16
  puchaseLabel?: string;
17
17
  purchaseCallback: () => void;
18
+ isLoading?: boolean;
18
19
  }
19
20
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './ProfileScreen.types';
3
3
  declare const ProfileScreen: {
4
- ({ testID, title, image, user, handleProfileSubmit }: Props): React.ReactElement;
4
+ ({ testID, title, image, user, handleProfileSubmit, profilePicUpdateCallback, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default ProfileScreen;
@@ -20,4 +20,5 @@ export interface Props {
20
20
  };
21
21
  };
22
22
  handleProfileSubmit: (values: Record<string, string>) => void;
23
+ profilePicUpdateCallback: (file: File) => Promise<void>;
23
24
  }
@@ -466,7 +466,9 @@ declare const strings: {
466
466
  PASSWORD_RESET_SUCCESS: string;
467
467
  REGISTRATION_SUCCESS: string;
468
468
  REQUIRED_DATA_MISSING: string;
469
- PAASSWORD_EMAIL_SENT: string;
469
+ PASSWORD_EMAIL_SENT: string;
470
+ MISSING_QUERY_PARAMS: string;
471
+ CHALLENGE_ENTRY_SUCCESS: string;
470
472
  };
471
473
  ERRORS: {
472
474
  GENERIC_ERROR: string;
@@ -489,6 +491,8 @@ declare const strings: {
489
491
  SIGN_OUT_FAILED_MESSAGE: string;
490
492
  PASSWORD_RESET_FAILED: string;
491
493
  REGISTRATION_FAILED: string;
494
+ VERIFICATION_FAILED: string;
495
+ UNKNOWN_ERROR: string;
492
496
  };
493
497
  };
494
498
  export default strings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.52.0",
3
+ "version": "1.52.1",
4
4
  "description": "Foundation UI Component library with GAMMA theme. ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -39,7 +39,7 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "f6afa7aaac80226dc4a60455b225ee0c7ce5d787",
42
+ "gitHead": "b69bee69673716b025de9f6049c22d31a53ffb24",
43
43
  "dependencies": {
44
44
  "@elastic/datemath": "^5.0.3",
45
45
  "@elastic/react-search-ui": "^1.21.5",