@mosip/react-inji-verify-sdk 0.12.0-beta → 0.13.0-beta

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.
@@ -0,0 +1,47 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
7
+ /*!
8
+
9
+ JSZip v3.10.1 - A JavaScript class for generating and reading zip files
10
+ <http://stuartk.com/jszip>
11
+
12
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
13
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
14
+
15
+ JSZip uses the library pako released under the MIT license :
16
+ https://github.com/nodeca/pako/blob/main/LICENSE
17
+ */
18
+
19
+ /**
20
+ * @license React
21
+ * react-is.production.js
22
+ *
23
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+
29
+ /**
30
+ * @license React
31
+ * react-jsx-runtime.production.min.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */
38
+
39
+ /**
40
+ * @license qrcode.react
41
+ * Copyright (c) Paul O'Shannessy
42
+ * SPDX-License-Identifier: ISC
43
+ */
44
+
45
+ /**![minus](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3MiA0NzRIMTUyYy00LjQgMC04IDMuNi04IDh2NjBjMCA0LjQgMy42IDggOCA4aDcyMGM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */
46
+
47
+ /**![plus](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ4MiAxNTJoNjBxOCAwIDggOHY3MDRxMCA4LTggOGgtNjBxLTggMC04LThWMTYwcTAtOCA4LTh6IiAvPjxwYXRoIGQ9Ik0xOTIgNDc0aDY3MnE4IDAgOCA4djYwcTAgOC04IDhIMTYwcS04IDAtOC04di02MHEwLTggOC04eiIgLz48L3N2Zz4=) */
@@ -0,0 +1,2 @@
1
+ export declare const vcVerification: (credential: unknown, url: string) => Promise<any>;
2
+ export declare const vcSubmission: (credential: unknown, url: string) => Promise<any>;
@@ -0,0 +1,19 @@
1
+ export declare const SupportedFileTypes: string[];
2
+ export declare const UploadFileSizeLimits: {
3
+ min: number;
4
+ max: number;
5
+ };
6
+ export declare const FRAME_PROCESS_INTERVAL_MS = 100;
7
+ export declare const THROTTLE_FRAMES_PER_SEC = 500;
8
+ export declare const ZOOM_STEP = 2.5;
9
+ export declare const INITIAL_ZOOM_LEVEL = 0;
10
+ export declare const CONSTRAINTS_IDEAL_WIDTH = 2560;
11
+ export declare const CONSTRAINTS_IDEAL_HEIGHT = 1440;
12
+ export declare const CONSTRAINTS_IDEAL_FRAME_RATE = 30;
13
+ export declare const HEADER_DELIMITER = "";
14
+ export declare const SUPPORTED_QR_HEADERS: string[];
15
+ export declare const ZIP_HEADER = "PK";
16
+ export declare const ScanSessionExpiryTime = 60000;
17
+ export declare const OvpQrHeader = "INJI_OVP://";
18
+ export declare const BASE64_PADDING = "==";
19
+ export declare const acceptedFileTypes: string;
@@ -0,0 +1,4 @@
1
+ export declare const decodeQrData: (qrData: any) => Promise<any>;
2
+ export declare const extractRedirectUrlFromQrData: (qrData: string) => string | null;
3
+ export declare const initiateOvpFlow: (redirectUri: string) => void;
4
+ export declare const handleOvpFlow: (qrData: string) => Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { scanResult } from "../components/qrcode-verification/QRCodeVerification.types";
2
+ export declare const extractRedirectUrlFromQrData: (qrData: string) => string | null;
3
+ export declare const handleOvpFlow: (qrData: string) => Promise<void>;
4
+ export declare const readQRcodeFromImageFile: (file: File, format: string, isPDF?: boolean) => Promise<string | undefined>;
5
+ export declare const scanFilesForQr: (selectedFile: File) => Promise<scanResult>;
6
+ export declare const doFileChecks: (file: File | null) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mosip/react-inji-verify-sdk",
3
- "version": "0.12.0-beta",
3
+ "version": "0.13.0-beta",
4
4
  "description": "A react component library to perform Inji verify tasks, such as OpenId4VP sharing, Reading VC QR codes",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -42,6 +42,7 @@
42
42
  "@typescript-eslint/eslint-plugin": "^8.30.1",
43
43
  "@typescript-eslint/parser": "^8.30.1",
44
44
  "@vitejs/plugin-react": "^4.3.4",
45
+ "ajv": "^8.17.1",
45
46
  "cross-env": "^7.0.3",
46
47
  "css-loader": "^7.1.2",
47
48
  "eslint": "^9.24.0",
@@ -56,10 +57,17 @@
56
57
  "webpack-cli": "^6.0.1"
57
58
  },
58
59
  "peerDependencies": {
59
- "react": "^18.3.1",
60
- "react-dom": "^18.3.1"
60
+ "react": "^18.2.0",
61
+ "react-dom": "^18.2.0"
61
62
  },
62
63
  "dependencies": {
63
- "qrcode.react": "^4.1.0"
64
+ "@ant-design/icons": "^6.0.0",
65
+ "@emotion/react": "^11.14.0",
66
+ "@emotion/styled": "^11.14.0",
67
+ "@mosip/pixelpass": "^0.6.0",
68
+ "@mui/material": "^7.1.0",
69
+ "pdfjs-dist": "^5.2.133",
70
+ "qrcode.react": "^4.1.0",
71
+ "zxing-wasm": "^2.1.2"
64
72
  }
65
73
  }