authscape 1.0.123 → 1.0.125

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/package.json CHANGED
@@ -1,28 +1,41 @@
1
- {
2
- "name": "authscape",
3
- "version": "1.0.123",
4
- "scripts": {
5
- "dev": "next dev",
6
- "build": "next build",
7
- "start": "next start",
8
- "lint": "next lint"
9
- },
10
- "dependencies": {
11
- "@emotion/react": "^11.11.0",
12
- "@emotion/styled": "^11.11.0",
13
- "@mui/icons-material": "^5.11.16",
14
- "@mui/material": "^5.13.2",
15
- "@mui/styled-engine-sc": "^5.12.0",
16
- "@stripe/react-stripe-js": "^2.1.0",
17
- "@stripe/stripe-js": "^1.53.0",
18
- "axios": "^1.4.0",
19
- "js-file-download": "^0.4.12",
20
- "next": "13.4.4",
21
- "nookies": "^2.5.2",
22
- "query-string": "^8.1.0",
23
- "react": "18.2.0",
24
- "react-data-table-component": "^7.5.3",
25
- "react-dom": "18.2.0",
26
- "styled-components": "^5.3.11"
27
- }
28
- }
1
+ {
2
+ "name": "authscape",
3
+ "version": "1.0.125",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "build": "npx babel src --out-file index.js"
9
+ },
10
+ "author": "zuechb",
11
+ "license": "ISC",
12
+ "peerDependencies": {
13
+ "@stripe/react-stripe-js": "^1.9.0",
14
+ "@stripe/stripe-js": "^1.32.0",
15
+ "axios": "^0.27.2",
16
+ "js-file-download": "^0.4.12",
17
+ "nookies": "^2.5.2",
18
+ "react": "^18.2.0",
19
+ "react-data-table-component": "^7.5.2",
20
+ "react-dom": "^18.2.0"
21
+ },
22
+ "devDependencies": {
23
+ "@babel/cli": "^7.21.5",
24
+ "@babel/core": "^7.22.1",
25
+ "@babel/preset-env": "^7.22.2",
26
+ "@babel/preset-react": "^7.0.0",
27
+ "react": "^18.2.0",
28
+ "react-dom": "^18.2.0"
29
+ },
30
+ "dependencies": {
31
+ "@stripe/react-stripe-js": "^1.9.0",
32
+ "@stripe/stripe-js": "^1.32.0",
33
+ "axios": "^0.27.2",
34
+ "eslint-config-next": "^13.3.2",
35
+ "js-file-download": "^0.4.12",
36
+ "next": "^13.3.2",
37
+ "nookies": "^2.5.2",
38
+ "query-string": "^7.1.1",
39
+ "react-data-table-component": "^7.5.2"
40
+ }
41
+ }
package/readme.md ADDED
@@ -0,0 +1 @@
1
+ Working on docs...
@@ -1,4 +1,3 @@
1
- "use client"
2
1
  import React, { Component } from 'react';
3
2
  //import {apiService} from 'authscape';
4
3
  import DataTable, {createTheme} from "react-data-table-component";
@@ -1,7 +1,4 @@
1
- "use client"
2
-
3
1
  import React, { useState, useRef, useEffect } from "react";
4
- import { apiService } from "../services/authService";
5
2
  import LinearProgress from "@mui/material/LinearProgress";
6
3
  import { Box } from "@mui/system";
7
4
  import { Grid } from "@mui/material";
@@ -22,7 +19,8 @@ import Tooltip from '@mui/material/Tooltip';
22
19
  import Backdrop from '@mui/material/Backdrop';
23
20
  import CircularProgress from '@mui/material/CircularProgress';
24
21
 
25
- export default function FileUploader({
22
+
23
+ const FileUploader = ({
26
24
  url,
27
25
  params,
28
26
  multiple = false,
@@ -31,8 +29,8 @@ export default function FileUploader({
31
29
  isHidden = false,
32
30
  refOveride = null,
33
31
  primaryColor = "#000",
34
- deleteUri = "/Storage/RemoveFile?orderFileId="
35
- }) {
32
+ onConfirmDelete = null
33
+ }) => {
36
34
  // Declare a new state variable, which we'll call "count"
37
35
  const [message, setMessage] = useState("");
38
36
  const [loaded, setLoaded] = useState(0);
@@ -324,14 +322,11 @@ export default function FileUploader({
324
322
  <Button
325
323
  onClick={async () => {
326
324
 
327
- let response = await apiService().delete(
328
- deleteUri + orderFileId
329
- );
330
- if (response != null && response.status == 200) {
331
- setViewDeleteDialog(false);
332
- await reloadFiles();
325
+ if (onConfirmDelete != null)
326
+ {
327
+ onConfirmDelete();
333
328
  }
334
-
329
+
335
330
  }}
336
331
  autoFocus
337
332
  >
@@ -346,3 +341,5 @@ export default function FileUploader({
346
341
  </Box>
347
342
  );
348
343
  }
344
+
345
+ export default FileUploader;
package/README.md DELETED
@@ -1,34 +0,0 @@
1
- This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2
-
3
- ## Getting Started
4
-
5
- First, run the development server:
6
-
7
- ```bash
8
- npm run dev
9
- # or
10
- yarn dev
11
- # or
12
- pnpm dev
13
- ```
14
-
15
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16
-
17
- You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
18
-
19
- This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
20
-
21
- ## Learn More
22
-
23
- To learn more about Next.js, take a look at the following resources:
24
-
25
- - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26
- - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27
-
28
- You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29
-
30
- ## Deploy on Vercel
31
-
32
- The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33
-
34
- Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
package/jsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "paths": {
4
- "@/*": ["./src/*"]
5
- }
6
- }
7
- }
package/next.config.js DELETED
@@ -1,4 +0,0 @@
1
- /** @type {import('next').NextConfig} */
2
- const nextConfig = {}
3
-
4
- module.exports = nextConfig
File without changes
File without changes
File without changes
File without changes
File without changes