contentoh-components-library 21.0.29 → 21.0.32

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.development CHANGED
@@ -1,3 +1,5 @@
1
1
  REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://zhx2nmgyce.execute-api.us-east-1.amazonaws.com/dev/articles-data/datasheets
2
2
  REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://zhx2nmgyce.execute-api.us-east-1.amazonaws.com/dev/articles-data/descriptions
3
- REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://zhx2nmgyce.execute-api.us-east-1.amazonaws.com/dev/articles-data/images
3
+ REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://zhx2nmgyce.execute-api.us-east-1.amazonaws.com/dev/articles-data/images
4
+ REACT_APP_USER_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/users
5
+ REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile
package/.env.production CHANGED
@@ -1,3 +1,5 @@
1
1
  REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
2
2
  REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
3
- REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
3
+ REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
4
+ REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile-prod
5
+ REACT_APP_USER_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/users
@@ -112,7 +112,7 @@ var SignInLogin = function SignInLogin(props) {
112
112
  _context.prev = 10;
113
113
  setLoading(true);
114
114
  _context.next = 14;
115
- return props.Auth.signIn(email, password);
115
+ return _awsAmplify.Auth.signIn(email, password);
116
116
 
117
117
  case 14:
118
118
  session = _context.sent;
@@ -281,7 +281,7 @@ var SignInLogin = function SignInLogin(props) {
281
281
  })
282
282
  })]
283
283
  })
284
- }), upgradePlanRedirect && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Redirect, {
284
+ }), upgradePlanRedirect && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Navigate, {
285
285
  to: {
286
286
  pathname: "/dashboard"
287
287
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.29",
3
+ "version": "21.0.32",
4
4
  "dependencies": {
5
+ "@aws-amplify/auth": "^4.5.4-unstable.3",
5
6
  "@babel/runtime": "^7.17.2",
6
7
  "@storybook/addon-postcss": "^2.0.0",
7
8
  "@testing-library/jest-dom": "^5.11.4",
8
9
  "@testing-library/react": "^11.1.0",
9
10
  "@testing-library/user-event": "^12.1.10",
10
- "aws-amplify": "^4.3.21",
11
+ "aws-amplify": "^4.3.22-unstable.3",
11
12
  "axios": "^0.25.0",
12
13
  "babel-preset-react-app": "^10.0.1",
13
14
  "chart.js": "^3.7.1",
@@ -7,7 +7,7 @@ import { TagAndInput } from "../TagAndInput";
7
7
  import { FontFamily, GlobalColors } from "../../../global-files/variables";
8
8
  import { useState, useEffect } from "react";
9
9
  import { Loading } from "../../atoms/Loading";
10
- import { Redirect } from "react-router-dom";
10
+ import { Navigate } from "react-router-dom";
11
11
  import { Auth } from "aws-amplify";
12
12
  import axios from "axios";
13
13
 
@@ -46,7 +46,7 @@ export const SignInLogin = (props) => {
46
46
  if (valid) {
47
47
  try {
48
48
  setLoading(true);
49
- const session = await props.Auth.signIn(email, password);
49
+ const session = await Auth.signIn(email, password);
50
50
  if (session.challengeName === "NEW_PASSWORD_REQUIRED") {
51
51
  props.setUser(session);
52
52
  props.setPaso(8);
@@ -199,7 +199,7 @@ export const SignInLogin = (props) => {
199
199
  </div>
200
200
  </div>
201
201
  </Container>
202
- {upgradePlanRedirect && <Redirect to={{ pathname: "/dashboard" }} />}
202
+ {upgradePlanRedirect && <Navigate to={{ pathname: "/dashboard" }} />}
203
203
  </>
204
204
  );
205
205
  };