@regulaforensics/document-reader 8.3.279-beta → 8.3.281-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.
- package/RNDocumentReader.podspec +1 -1
- package/examples/capacitor/README.md +4 -2
- package/examples/capacitor/package-lock.json +520 -447
- package/examples/capacitor/package.json +4 -4
- package/examples/capacitor/scripts/setup.sh +5 -3
- package/examples/capacitor/src/main.css +9 -8
- package/examples/capacitor/src/main.html +1 -1
- package/examples/capacitor/src/main.tsx +2 -2
- package/examples/ionic/README.md +4 -2
- package/examples/ionic/config.xml +1 -0
- package/examples/ionic/package.json +3 -3
- package/examples/ionic/src/main.css +9 -8
- package/examples/ionic/src/main.html +1 -1
- package/examples/ionic/src/main.tsx +2 -2
- package/examples/react_native/README.md +4 -2
- package/examples/react_native/package.json +3 -3
- package/examples/react_native/src/main.css +9 -8
- package/examples/react_native/src/main.html +1 -1
- package/examples/react_native/src/main.tsx +2 -2
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/test/package-lock.json +1 -1
- package/www/types/index.d.ts +4 -4
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.3.
|
|
10
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
11
|
-
"@regulaforensics/document-reader-btdevice": "8.
|
|
9
|
+
"@regulaforensics/document-reader": "8.3.281-beta",
|
|
10
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
|
|
11
|
+
"@regulaforensics/document-reader-btdevice": "8.3.10-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
13
13
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
14
14
|
"cordova-plugin-file": "8.1.3",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@capacitor/status-bar": "7.0.0",
|
|
22
22
|
"@ionic/react": "8.4.3",
|
|
23
23
|
"@vitejs/plugin-react": "4.3.4",
|
|
24
|
-
"vite-plugin-static-copy": "
|
|
24
|
+
"vite-plugin-static-copy": "3.1.2",
|
|
25
25
|
"@types/react-router-dom": "5.3.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -16,11 +16,6 @@ body {
|
|
|
16
16
|
-webkit-touch-callout: none !important;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/* Prevent image dragging */
|
|
20
|
-
img {
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
.column {
|
|
25
20
|
display: flex;
|
|
26
21
|
flex-direction: column;
|
|
@@ -41,14 +36,20 @@ img {
|
|
|
41
36
|
padding-top: 80px;
|
|
42
37
|
margin-top: -10px;
|
|
43
38
|
background-color: rgba(0, 0, 0, 0.03);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.title {
|
|
47
39
|
font-weight: 600;
|
|
48
40
|
font-size: 18px;
|
|
49
41
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
50
42
|
}
|
|
51
43
|
|
|
44
|
+
.sub-header {
|
|
45
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
46
|
+
width: 100%;
|
|
47
|
+
padding-top: 13px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
font-weight: 550;
|
|
50
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
51
|
+
}
|
|
52
|
+
|
|
52
53
|
.divider {
|
|
53
54
|
height: 1px;
|
|
54
55
|
background-color: rgba(0, 0, 0, 0.075);
|
|
@@ -92,8 +92,6 @@ export function handleException(error: DocReaderException | null) {
|
|
|
92
92
|
|
|
93
93
|
// --------------------------------------------------------------------------------------------------------------------
|
|
94
94
|
|
|
95
|
-
var documentUIImage: HTMLImageElement
|
|
96
|
-
var portraitUIImage: HTMLImageElement
|
|
97
95
|
export function main() {
|
|
98
96
|
documentUIImage = document.getElementById("document-image") as HTMLImageElement
|
|
99
97
|
portraitUIImage = document.getElementById("portrait-image") as HTMLImageElement
|
|
@@ -116,11 +114,13 @@ export function setStatus(data: string | null) {
|
|
|
116
114
|
document.getElementById("status")!.innerHTML = data
|
|
117
115
|
}
|
|
118
116
|
|
|
117
|
+
var portraitUIImage: HTMLImageElement
|
|
119
118
|
function setPortrait(data: string | null) {
|
|
120
119
|
if (data != null)
|
|
121
120
|
portraitUIImage.src = "data:image/png;base64," + data
|
|
122
121
|
}
|
|
123
122
|
|
|
123
|
+
var documentUIImage: HTMLImageElement
|
|
124
124
|
function setDocImage(data: string | null) {
|
|
125
125
|
if (data != null)
|
|
126
126
|
documentUIImage.src = "data:image/png;base64," + data
|
package/examples/ionic/README.md
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
|
-
2.
|
|
6
|
-
3.
|
|
5
|
+
2. Put `regula.license` file at `assets/` (you can get a trial license [here](https://client.regulaforensics.com)).
|
|
6
|
+
3. Put `db.dat` file at `assets/` (you can get a trial database [here](https://client.regulaforensics.com/customer/databases))
|
|
7
|
+
4. Execute `npm run setup` within this directory.
|
|
8
|
+
5. Run the app:
|
|
7
9
|
* IOS: `npm run ios`.
|
|
8
10
|
* Android: `npm run android`.
|
|
9
11
|
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
</platform>
|
|
20
20
|
<platform name="ios">
|
|
21
21
|
<resource-file src="assets/db.dat" />
|
|
22
|
+
<preference name="deployment-target" value="14.0" />
|
|
22
23
|
<preference name="orientation" value="portrait" />
|
|
23
24
|
<allow-intent href="itms:*" />
|
|
24
25
|
<allow-intent href="itms-apps:*" />
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.3.
|
|
10
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
11
|
-
"@regulaforensics/document-reader-btdevice": "8.
|
|
9
|
+
"@regulaforensics/document-reader": "8.3.281-beta",
|
|
10
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
|
|
11
|
+
"@regulaforensics/document-reader-btdevice": "8.3.10-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.14.0",
|
|
13
13
|
"@awesome-cordova-plugins/camera": "6.14.0",
|
|
14
14
|
"cordova-ios": "7.1.1",
|
|
@@ -16,11 +16,6 @@ body {
|
|
|
16
16
|
-webkit-touch-callout: none !important;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/* Prevent image dragging */
|
|
20
|
-
img {
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
.column {
|
|
25
20
|
display: flex;
|
|
26
21
|
flex-direction: column;
|
|
@@ -41,14 +36,20 @@ img {
|
|
|
41
36
|
padding-top: 80px;
|
|
42
37
|
margin-top: -10px;
|
|
43
38
|
background-color: rgba(0, 0, 0, 0.03);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.title {
|
|
47
39
|
font-weight: 600;
|
|
48
40
|
font-size: 18px;
|
|
49
41
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
50
42
|
}
|
|
51
43
|
|
|
44
|
+
.sub-header {
|
|
45
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
46
|
+
width: 100%;
|
|
47
|
+
padding-top: 13px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
font-weight: 550;
|
|
50
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
51
|
+
}
|
|
52
|
+
|
|
52
53
|
.divider {
|
|
53
54
|
height: 1px;
|
|
54
55
|
background-color: rgba(0, 0, 0, 0.075);
|
|
@@ -92,8 +92,6 @@ export function handleException(error: DocReaderException | null) {
|
|
|
92
92
|
|
|
93
93
|
// --------------------------------------------------------------------------------------------------------------------
|
|
94
94
|
|
|
95
|
-
var documentUIImage: HTMLImageElement
|
|
96
|
-
var portraitUIImage: HTMLImageElement
|
|
97
95
|
export function main() {
|
|
98
96
|
documentUIImage = document.getElementById("document-image") as HTMLImageElement
|
|
99
97
|
portraitUIImage = document.getElementById("portrait-image") as HTMLImageElement
|
|
@@ -116,11 +114,13 @@ export function setStatus(data: string | null) {
|
|
|
116
114
|
document.getElementById("status")!.innerHTML = data
|
|
117
115
|
}
|
|
118
116
|
|
|
117
|
+
var portraitUIImage: HTMLImageElement
|
|
119
118
|
function setPortrait(data: string | null) {
|
|
120
119
|
if (data != null)
|
|
121
120
|
portraitUIImage.src = "data:image/png;base64," + data
|
|
122
121
|
}
|
|
123
122
|
|
|
123
|
+
var documentUIImage: HTMLImageElement
|
|
124
124
|
function setDocImage(data: string | null) {
|
|
125
125
|
if (data != null)
|
|
126
126
|
documentUIImage.src = "data:image/png;base64," + data
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
|
-
2.
|
|
6
|
-
3.
|
|
5
|
+
2. Put `regula.license` file at `assets/` (you can get a trial license [here](https://client.regulaforensics.com)).
|
|
6
|
+
3. Put `db.dat` file at `assets/` (you can get a trial database [here](https://client.regulaforensics.com/customer/databases))
|
|
7
|
+
4. Execute `npm run setup` within this directory.
|
|
8
|
+
5. Run the app:
|
|
7
9
|
* IOS: `npm run ios`.
|
|
8
10
|
* Android: `npm run android`.
|
|
9
11
|
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "8.3.
|
|
12
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
13
|
-
"@regulaforensics/document-reader-btdevice": "8.
|
|
11
|
+
"@regulaforensics/document-reader": "8.3.281-beta",
|
|
12
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
|
|
13
|
+
"@regulaforensics/document-reader-btdevice": "8.3.10-beta",
|
|
14
14
|
"react-native": "0.79.5",
|
|
15
15
|
"react-native-fs": "2.20.0",
|
|
16
16
|
"react-native-image-picker": "8.2.1",
|
|
@@ -16,11 +16,6 @@ body {
|
|
|
16
16
|
-webkit-touch-callout: none !important;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/* Prevent image dragging */
|
|
20
|
-
img {
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
.column {
|
|
25
20
|
display: flex;
|
|
26
21
|
flex-direction: column;
|
|
@@ -41,14 +36,20 @@ img {
|
|
|
41
36
|
padding-top: 80px;
|
|
42
37
|
margin-top: -10px;
|
|
43
38
|
background-color: rgba(0, 0, 0, 0.03);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.title {
|
|
47
39
|
font-weight: 600;
|
|
48
40
|
font-size: 18px;
|
|
49
41
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
50
42
|
}
|
|
51
43
|
|
|
44
|
+
.sub-header {
|
|
45
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
46
|
+
width: 100%;
|
|
47
|
+
padding-top: 13px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
font-weight: 550;
|
|
50
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
51
|
+
}
|
|
52
|
+
|
|
52
53
|
.divider {
|
|
53
54
|
height: 1px;
|
|
54
55
|
background-color: rgba(0, 0, 0, 0.075);
|
|
@@ -92,8 +92,6 @@ export function handleException(error: DocReaderException | null) {
|
|
|
92
92
|
|
|
93
93
|
// --------------------------------------------------------------------------------------------------------------------
|
|
94
94
|
|
|
95
|
-
var documentUIImage: HTMLImageElement
|
|
96
|
-
var portraitUIImage: HTMLImageElement
|
|
97
95
|
export function main() {
|
|
98
96
|
documentUIImage = document.getElementById("document-image") as HTMLImageElement
|
|
99
97
|
portraitUIImage = document.getElementById("portrait-image") as HTMLImageElement
|
|
@@ -116,11 +114,13 @@ export function setStatus(data: string | null) {
|
|
|
116
114
|
document.getElementById("status")!.innerHTML = data
|
|
117
115
|
}
|
|
118
116
|
|
|
117
|
+
var portraitUIImage: HTMLImageElement
|
|
119
118
|
function setPortrait(data: string | null) {
|
|
120
119
|
if (data != null)
|
|
121
120
|
portraitUIImage.src = "data:image/png;base64," + data
|
|
122
121
|
}
|
|
123
122
|
|
|
123
|
+
var documentUIImage: HTMLImageElement
|
|
124
124
|
function setDocImage(data: string | null) {
|
|
125
125
|
if (data != null)
|
|
126
126
|
documentUIImage.src = "data:image/png;base64," + data
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.281-beta",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="8.3.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="8.3.281-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
package/test/package-lock.json
CHANGED
package/www/types/index.d.ts
CHANGED
|
@@ -152,10 +152,10 @@ export class DocumentReader {
|
|
|
152
152
|
/** Information about your license. */
|
|
153
153
|
get license(): License | null;
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
/** Allows you to check if native RFID chip reading can be performed
|
|
156
|
+
* based on your license and Core framework capabilities.
|
|
157
|
+
* @returns `true` if native RFID chip reading is supported.
|
|
158
|
+
*/
|
|
159
159
|
isRFIDAvailableForUse(): Promise<boolean>;
|
|
160
160
|
|
|
161
161
|
/**
|