authscape 1.0.54 → 1.0.55

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/.babelrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "presets": ["@babel/preset-react", "@babel/preset-env"]
3
+ }
@@ -6,7 +6,8 @@ import Dialog from '@mui/material/Dialog';
6
6
  import DialogActions from '@mui/material/DialogActions';
7
7
  import DialogContent from '@mui/material/DialogContent';
8
8
  import DialogTitle from '@mui/material/DialogTitle';
9
- import CheckoutForm from './CheckoutForm';
9
+ import CheckoutForm from './checkoutForm';
10
+ import ApiService from 'authscape/services/apiService';
10
11
  import IconButton from '@mui/material/IconButton';
11
12
  import CloseIcon from '@mui/icons-material/Close';
12
13
  import Tabs from '@mui/material/Tabs';
@@ -16,7 +17,7 @@ import Select from '@mui/material/Select';
16
17
  import MenuItem from '@mui/material/MenuItem';
17
18
  import Button from '@mui/material/Button';
18
19
  import PaymentRoundedIcon from '@mui/icons-material/PaymentRounded';
19
- import ApiService from 'authscape/services/apiService';
20
+ import apiService from 'authscape/services/apiService';
20
21
  import Grid from '@mui/material/Grid';
21
22
 
22
23
  export default function PaymentModal({title, description, amount, priceId, setIsLoading, isOpen, invoiceId, onModalClose}) {
@@ -27,7 +28,7 @@ export default function PaymentModal({title, description, amount, priceId, setIs
27
28
  const [paymentMethods, setPaymentMethods] = React.useState([]);
28
29
  const [paymentMethod, setPaymentMethod] = React.useState(null);
29
30
 
30
- const paymentMethodOpen = async () => {
31
+ const paymentMethodOpened = async () => {
31
32
  let response = await ApiService().post("/StripePayment/ConnectCustomer", {
32
33
  paymentRequestType: 3,
33
34
  amount: amount,
@@ -45,11 +46,12 @@ export default function PaymentModal({title, description, amount, priceId, setIs
45
46
  }
46
47
  }
47
48
 
49
+
48
50
  useEffect(() => {
49
51
 
50
52
  if (isOpen)
51
53
  {
52
- paymentMethodOpen();
54
+ paymentMethodOpened();
53
55
  }
54
56
 
55
57
  }, [isOpen]);
@@ -178,7 +180,7 @@ export default function PaymentModal({title, description, amount, priceId, setIs
178
180
  <Button startIcon={<PaymentRoundedIcon/>} type="submit" variant="contained" disabled={paymentMethod == null} sx={{marginTop:2}} onClick={async () => {
179
181
 
180
182
  setIsLoading(true);
181
- let response = await ApiService().post("/NCAInvoices/PayInvoice", {
183
+ let response = await apiService().post("/NCAInvoices/PayInvoice", {
182
184
  InvoiceId: invoiceId,
183
185
  WalletId: paymentMethod
184
186
  });
package/index.js CHANGED
@@ -1,6 +1,13 @@
1
- function awesomeEmojiLog(message) {
2
- if (message === undefined) throw new Error("No Message Found");
3
- console.log("😎", message)
4
- };
1
+ import React, { Component } from 'react';
5
2
 
6
- module.exports = awesomeEmojiLog
3
+ export default class DummyComponent extends Component {
4
+
5
+ render () {
6
+
7
+ return (
8
+ <div>I am a dummy react npm module</div>
9
+ )
10
+
11
+ }
12
+
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -10,6 +10,10 @@
10
10
  "author": "zuechb",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
+ "@babel/cli": "^7.18.6",
14
+ "@babel/core": "^7.18.6",
15
+ "@babel/preset-env": "^7.18.6",
16
+ "@babel/preset-react": "^7.18.6",
13
17
  "@emotion/react": "^11.9.3",
14
18
  "@emotion/styled": "^11.9.3",
15
19
  "@mui/icons-material": "^5.8.4",
File without changes