@regulaforensics/document-reader 8.2.204-beta → 8.3.242-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 +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +3 -1
- package/examples/capacitor/README.md +10 -0
- package/examples/capacitor/index.html +2 -7
- package/examples/capacitor/index.tsx +39 -0
- package/examples/capacitor/package.json +3 -3
- package/examples/capacitor/scripts/setup.sh +4 -0
- package/examples/capacitor/src/extra/bt_device.tsx +7 -6
- package/examples/capacitor/src/main.css +4 -1
- package/examples/capacitor/src/main.html +1 -4
- package/examples/capacitor/src/main.tsx +48 -81
- package/examples/cordova/README.md +10 -0
- package/examples/cordova/config.xml +3 -0
- package/examples/cordova/package-lock.json +459 -1
- package/examples/cordova/package.json +5 -4
- package/examples/cordova/scripts/bundle.sh +4 -0
- package/examples/cordova/www/bootstrap.js +30 -0
- package/examples/cordova/www/index.html +1 -1
- package/examples/cordova/www/index.js +26 -36
- package/examples/cordova/www/src/extra/bt_device.js +7 -6
- package/examples/cordova/www/src/main.css +4 -1
- package/examples/cordova/www/src/main.html +1 -4
- package/examples/cordova/www/src/main.js +48 -77
- package/examples/ionic/README.md +10 -0
- package/examples/ionic/config.xml +2 -0
- package/examples/ionic/index.ts +40 -2
- package/examples/ionic/package.json +3 -3
- package/examples/ionic/src/extra/bt_device.ts +7 -6
- package/examples/ionic/src/main.css +4 -1
- package/examples/ionic/src/main.html +1 -4
- package/examples/ionic/src/main.ts +48 -87
- package/examples/react_native/README.md +10 -0
- package/examples/react_native/index.tsx +26 -4
- package/examples/react_native/package-lock.json +476 -421
- package/examples/react_native/package.json +10 -10
- package/examples/react_native/src/extra/bt_device.tsx +7 -6
- package/examples/react_native/src/main.css +4 -1
- package/examples/react_native/src/main.html +1 -4
- package/examples/react_native/src/main.tsx +48 -69
- package/ios/RGLWConfig.m +2 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/www/capacitor/index.js +16 -16
- package/www/capacitor/params/process_params/ProcessParams.js +7 -0
- package/www/cordova.js +23 -16
- package/www/react-native/index.js +16 -16
- package/www/react-native/params/process_params/ProcessParams.js +7 -0
- package/www/types/index.d.ts +8 -8
- package/www/types/params/process_params/ProcessParams.d.ts +4 -0
|
@@ -11,7 +11,424 @@
|
|
|
11
11
|
"cordova-ios": "7.1.1",
|
|
12
12
|
"cordova-plugin-camera": "8.0.0",
|
|
13
13
|
"cordova-plugin-dialogs": "2.0.2",
|
|
14
|
-
"cordova-plugin-file": "8.1.3"
|
|
14
|
+
"cordova-plugin-file": "8.1.3",
|
|
15
|
+
"esbuild": "0.25.8"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"node_modules/@esbuild/aix-ppc64": {
|
|
19
|
+
"version": "0.25.8",
|
|
20
|
+
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.8.tgz",
|
|
21
|
+
"integrity": "sha512-urAvrUedIqEiFR3FYSLTWQgLu5tb+m0qZw0NBEasUeo6wuqatkMDaRT+1uABiGXEu5vqgPd7FGE1BhsAIy9QVA==",
|
|
22
|
+
"cpu": [
|
|
23
|
+
"ppc64"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"optional": true,
|
|
27
|
+
"os": [
|
|
28
|
+
"aix"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"node_modules/@esbuild/android-arm": {
|
|
35
|
+
"version": "0.25.8",
|
|
36
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.8.tgz",
|
|
37
|
+
"integrity": "sha512-RONsAvGCz5oWyePVnLdZY/HHwA++nxYWIX1atInlaW6SEkwq6XkP3+cb825EUcRs5Vss/lGh/2YxAb5xqc07Uw==",
|
|
38
|
+
"cpu": [
|
|
39
|
+
"arm"
|
|
40
|
+
],
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"optional": true,
|
|
43
|
+
"os": [
|
|
44
|
+
"android"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"node_modules/@esbuild/android-arm64": {
|
|
51
|
+
"version": "0.25.8",
|
|
52
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.8.tgz",
|
|
53
|
+
"integrity": "sha512-OD3p7LYzWpLhZEyATcTSJ67qB5D+20vbtr6vHlHWSQYhKtzUYrETuWThmzFpZtFsBIxRvhO07+UgVA9m0i/O1w==",
|
|
54
|
+
"cpu": [
|
|
55
|
+
"arm64"
|
|
56
|
+
],
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"optional": true,
|
|
59
|
+
"os": [
|
|
60
|
+
"android"
|
|
61
|
+
],
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=18"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"node_modules/@esbuild/android-x64": {
|
|
67
|
+
"version": "0.25.8",
|
|
68
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.8.tgz",
|
|
69
|
+
"integrity": "sha512-yJAVPklM5+4+9dTeKwHOaA+LQkmrKFX96BM0A/2zQrbS6ENCmxc4OVoBs5dPkCCak2roAD+jKCdnmOqKszPkjA==",
|
|
70
|
+
"cpu": [
|
|
71
|
+
"x64"
|
|
72
|
+
],
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"optional": true,
|
|
75
|
+
"os": [
|
|
76
|
+
"android"
|
|
77
|
+
],
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=18"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"node_modules/@esbuild/darwin-arm64": {
|
|
83
|
+
"version": "0.25.8",
|
|
84
|
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.8.tgz",
|
|
85
|
+
"integrity": "sha512-Jw0mxgIaYX6R8ODrdkLLPwBqHTtYHJSmzzd+QeytSugzQ0Vg4c5rDky5VgkoowbZQahCbsv1rT1KW72MPIkevw==",
|
|
86
|
+
"cpu": [
|
|
87
|
+
"arm64"
|
|
88
|
+
],
|
|
89
|
+
"license": "MIT",
|
|
90
|
+
"optional": true,
|
|
91
|
+
"os": [
|
|
92
|
+
"darwin"
|
|
93
|
+
],
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">=18"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"node_modules/@esbuild/darwin-x64": {
|
|
99
|
+
"version": "0.25.8",
|
|
100
|
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.8.tgz",
|
|
101
|
+
"integrity": "sha512-Vh2gLxxHnuoQ+GjPNvDSDRpoBCUzY4Pu0kBqMBDlK4fuWbKgGtmDIeEC081xi26PPjn+1tct+Bh8FjyLlw1Zlg==",
|
|
102
|
+
"cpu": [
|
|
103
|
+
"x64"
|
|
104
|
+
],
|
|
105
|
+
"license": "MIT",
|
|
106
|
+
"optional": true,
|
|
107
|
+
"os": [
|
|
108
|
+
"darwin"
|
|
109
|
+
],
|
|
110
|
+
"engines": {
|
|
111
|
+
"node": ">=18"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"node_modules/@esbuild/freebsd-arm64": {
|
|
115
|
+
"version": "0.25.8",
|
|
116
|
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.8.tgz",
|
|
117
|
+
"integrity": "sha512-YPJ7hDQ9DnNe5vxOm6jaie9QsTwcKedPvizTVlqWG9GBSq+BuyWEDazlGaDTC5NGU4QJd666V0yqCBL2oWKPfA==",
|
|
118
|
+
"cpu": [
|
|
119
|
+
"arm64"
|
|
120
|
+
],
|
|
121
|
+
"license": "MIT",
|
|
122
|
+
"optional": true,
|
|
123
|
+
"os": [
|
|
124
|
+
"freebsd"
|
|
125
|
+
],
|
|
126
|
+
"engines": {
|
|
127
|
+
"node": ">=18"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"node_modules/@esbuild/freebsd-x64": {
|
|
131
|
+
"version": "0.25.8",
|
|
132
|
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.8.tgz",
|
|
133
|
+
"integrity": "sha512-MmaEXxQRdXNFsRN/KcIimLnSJrk2r5H8v+WVafRWz5xdSVmWLoITZQXcgehI2ZE6gioE6HirAEToM/RvFBeuhw==",
|
|
134
|
+
"cpu": [
|
|
135
|
+
"x64"
|
|
136
|
+
],
|
|
137
|
+
"license": "MIT",
|
|
138
|
+
"optional": true,
|
|
139
|
+
"os": [
|
|
140
|
+
"freebsd"
|
|
141
|
+
],
|
|
142
|
+
"engines": {
|
|
143
|
+
"node": ">=18"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"node_modules/@esbuild/linux-arm": {
|
|
147
|
+
"version": "0.25.8",
|
|
148
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.8.tgz",
|
|
149
|
+
"integrity": "sha512-FuzEP9BixzZohl1kLf76KEVOsxtIBFwCaLupVuk4eFVnOZfU+Wsn+x5Ryam7nILV2pkq2TqQM9EZPsOBuMC+kg==",
|
|
150
|
+
"cpu": [
|
|
151
|
+
"arm"
|
|
152
|
+
],
|
|
153
|
+
"license": "MIT",
|
|
154
|
+
"optional": true,
|
|
155
|
+
"os": [
|
|
156
|
+
"linux"
|
|
157
|
+
],
|
|
158
|
+
"engines": {
|
|
159
|
+
"node": ">=18"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"node_modules/@esbuild/linux-arm64": {
|
|
163
|
+
"version": "0.25.8",
|
|
164
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.8.tgz",
|
|
165
|
+
"integrity": "sha512-WIgg00ARWv/uYLU7lsuDK00d/hHSfES5BzdWAdAig1ioV5kaFNrtK8EqGcUBJhYqotlUByUKz5Qo6u8tt7iD/w==",
|
|
166
|
+
"cpu": [
|
|
167
|
+
"arm64"
|
|
168
|
+
],
|
|
169
|
+
"license": "MIT",
|
|
170
|
+
"optional": true,
|
|
171
|
+
"os": [
|
|
172
|
+
"linux"
|
|
173
|
+
],
|
|
174
|
+
"engines": {
|
|
175
|
+
"node": ">=18"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"node_modules/@esbuild/linux-ia32": {
|
|
179
|
+
"version": "0.25.8",
|
|
180
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.8.tgz",
|
|
181
|
+
"integrity": "sha512-A1D9YzRX1i+1AJZuFFUMP1E9fMaYY+GnSQil9Tlw05utlE86EKTUA7RjwHDkEitmLYiFsRd9HwKBPEftNdBfjg==",
|
|
182
|
+
"cpu": [
|
|
183
|
+
"ia32"
|
|
184
|
+
],
|
|
185
|
+
"license": "MIT",
|
|
186
|
+
"optional": true,
|
|
187
|
+
"os": [
|
|
188
|
+
"linux"
|
|
189
|
+
],
|
|
190
|
+
"engines": {
|
|
191
|
+
"node": ">=18"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"node_modules/@esbuild/linux-loong64": {
|
|
195
|
+
"version": "0.25.8",
|
|
196
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.8.tgz",
|
|
197
|
+
"integrity": "sha512-O7k1J/dwHkY1RMVvglFHl1HzutGEFFZ3kNiDMSOyUrB7WcoHGf96Sh+64nTRT26l3GMbCW01Ekh/ThKM5iI7hQ==",
|
|
198
|
+
"cpu": [
|
|
199
|
+
"loong64"
|
|
200
|
+
],
|
|
201
|
+
"license": "MIT",
|
|
202
|
+
"optional": true,
|
|
203
|
+
"os": [
|
|
204
|
+
"linux"
|
|
205
|
+
],
|
|
206
|
+
"engines": {
|
|
207
|
+
"node": ">=18"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"node_modules/@esbuild/linux-mips64el": {
|
|
211
|
+
"version": "0.25.8",
|
|
212
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.8.tgz",
|
|
213
|
+
"integrity": "sha512-uv+dqfRazte3BzfMp8PAQXmdGHQt2oC/y2ovwpTteqrMx2lwaksiFZ/bdkXJC19ttTvNXBuWH53zy/aTj1FgGw==",
|
|
214
|
+
"cpu": [
|
|
215
|
+
"mips64el"
|
|
216
|
+
],
|
|
217
|
+
"license": "MIT",
|
|
218
|
+
"optional": true,
|
|
219
|
+
"os": [
|
|
220
|
+
"linux"
|
|
221
|
+
],
|
|
222
|
+
"engines": {
|
|
223
|
+
"node": ">=18"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"node_modules/@esbuild/linux-ppc64": {
|
|
227
|
+
"version": "0.25.8",
|
|
228
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.8.tgz",
|
|
229
|
+
"integrity": "sha512-GyG0KcMi1GBavP5JgAkkstMGyMholMDybAf8wF5A70CALlDM2p/f7YFE7H92eDeH/VBtFJA5MT4nRPDGg4JuzQ==",
|
|
230
|
+
"cpu": [
|
|
231
|
+
"ppc64"
|
|
232
|
+
],
|
|
233
|
+
"license": "MIT",
|
|
234
|
+
"optional": true,
|
|
235
|
+
"os": [
|
|
236
|
+
"linux"
|
|
237
|
+
],
|
|
238
|
+
"engines": {
|
|
239
|
+
"node": ">=18"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"node_modules/@esbuild/linux-riscv64": {
|
|
243
|
+
"version": "0.25.8",
|
|
244
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.8.tgz",
|
|
245
|
+
"integrity": "sha512-rAqDYFv3yzMrq7GIcen3XP7TUEG/4LK86LUPMIz6RT8A6pRIDn0sDcvjudVZBiiTcZCY9y2SgYX2lgK3AF+1eg==",
|
|
246
|
+
"cpu": [
|
|
247
|
+
"riscv64"
|
|
248
|
+
],
|
|
249
|
+
"license": "MIT",
|
|
250
|
+
"optional": true,
|
|
251
|
+
"os": [
|
|
252
|
+
"linux"
|
|
253
|
+
],
|
|
254
|
+
"engines": {
|
|
255
|
+
"node": ">=18"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"node_modules/@esbuild/linux-s390x": {
|
|
259
|
+
"version": "0.25.8",
|
|
260
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.8.tgz",
|
|
261
|
+
"integrity": "sha512-Xutvh6VjlbcHpsIIbwY8GVRbwoviWT19tFhgdA7DlenLGC/mbc3lBoVb7jxj9Z+eyGqvcnSyIltYUrkKzWqSvg==",
|
|
262
|
+
"cpu": [
|
|
263
|
+
"s390x"
|
|
264
|
+
],
|
|
265
|
+
"license": "MIT",
|
|
266
|
+
"optional": true,
|
|
267
|
+
"os": [
|
|
268
|
+
"linux"
|
|
269
|
+
],
|
|
270
|
+
"engines": {
|
|
271
|
+
"node": ">=18"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"node_modules/@esbuild/linux-x64": {
|
|
275
|
+
"version": "0.25.8",
|
|
276
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.8.tgz",
|
|
277
|
+
"integrity": "sha512-ASFQhgY4ElXh3nDcOMTkQero4b1lgubskNlhIfJrsH5OKZXDpUAKBlNS0Kx81jwOBp+HCeZqmoJuihTv57/jvQ==",
|
|
278
|
+
"cpu": [
|
|
279
|
+
"x64"
|
|
280
|
+
],
|
|
281
|
+
"license": "MIT",
|
|
282
|
+
"optional": true,
|
|
283
|
+
"os": [
|
|
284
|
+
"linux"
|
|
285
|
+
],
|
|
286
|
+
"engines": {
|
|
287
|
+
"node": ">=18"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"node_modules/@esbuild/netbsd-arm64": {
|
|
291
|
+
"version": "0.25.8",
|
|
292
|
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.8.tgz",
|
|
293
|
+
"integrity": "sha512-d1KfruIeohqAi6SA+gENMuObDbEjn22olAR7egqnkCD9DGBG0wsEARotkLgXDu6c4ncgWTZJtN5vcgxzWRMzcw==",
|
|
294
|
+
"cpu": [
|
|
295
|
+
"arm64"
|
|
296
|
+
],
|
|
297
|
+
"license": "MIT",
|
|
298
|
+
"optional": true,
|
|
299
|
+
"os": [
|
|
300
|
+
"netbsd"
|
|
301
|
+
],
|
|
302
|
+
"engines": {
|
|
303
|
+
"node": ">=18"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"node_modules/@esbuild/netbsd-x64": {
|
|
307
|
+
"version": "0.25.8",
|
|
308
|
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.8.tgz",
|
|
309
|
+
"integrity": "sha512-nVDCkrvx2ua+XQNyfrujIG38+YGyuy2Ru9kKVNyh5jAys6n+l44tTtToqHjino2My8VAY6Lw9H7RI73XFi66Cg==",
|
|
310
|
+
"cpu": [
|
|
311
|
+
"x64"
|
|
312
|
+
],
|
|
313
|
+
"license": "MIT",
|
|
314
|
+
"optional": true,
|
|
315
|
+
"os": [
|
|
316
|
+
"netbsd"
|
|
317
|
+
],
|
|
318
|
+
"engines": {
|
|
319
|
+
"node": ">=18"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"node_modules/@esbuild/openbsd-arm64": {
|
|
323
|
+
"version": "0.25.8",
|
|
324
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.8.tgz",
|
|
325
|
+
"integrity": "sha512-j8HgrDuSJFAujkivSMSfPQSAa5Fxbvk4rgNAS5i3K+r8s1X0p1uOO2Hl2xNsGFppOeHOLAVgYwDVlmxhq5h+SQ==",
|
|
326
|
+
"cpu": [
|
|
327
|
+
"arm64"
|
|
328
|
+
],
|
|
329
|
+
"license": "MIT",
|
|
330
|
+
"optional": true,
|
|
331
|
+
"os": [
|
|
332
|
+
"openbsd"
|
|
333
|
+
],
|
|
334
|
+
"engines": {
|
|
335
|
+
"node": ">=18"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"node_modules/@esbuild/openbsd-x64": {
|
|
339
|
+
"version": "0.25.8",
|
|
340
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.8.tgz",
|
|
341
|
+
"integrity": "sha512-1h8MUAwa0VhNCDp6Af0HToI2TJFAn1uqT9Al6DJVzdIBAd21m/G0Yfc77KDM3uF3T/YaOgQq3qTJHPbTOInaIQ==",
|
|
342
|
+
"cpu": [
|
|
343
|
+
"x64"
|
|
344
|
+
],
|
|
345
|
+
"license": "MIT",
|
|
346
|
+
"optional": true,
|
|
347
|
+
"os": [
|
|
348
|
+
"openbsd"
|
|
349
|
+
],
|
|
350
|
+
"engines": {
|
|
351
|
+
"node": ">=18"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"node_modules/@esbuild/openharmony-arm64": {
|
|
355
|
+
"version": "0.25.8",
|
|
356
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.8.tgz",
|
|
357
|
+
"integrity": "sha512-r2nVa5SIK9tSWd0kJd9HCffnDHKchTGikb//9c7HX+r+wHYCpQrSgxhlY6KWV1nFo1l4KFbsMlHk+L6fekLsUg==",
|
|
358
|
+
"cpu": [
|
|
359
|
+
"arm64"
|
|
360
|
+
],
|
|
361
|
+
"license": "MIT",
|
|
362
|
+
"optional": true,
|
|
363
|
+
"os": [
|
|
364
|
+
"openharmony"
|
|
365
|
+
],
|
|
366
|
+
"engines": {
|
|
367
|
+
"node": ">=18"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"node_modules/@esbuild/sunos-x64": {
|
|
371
|
+
"version": "0.25.8",
|
|
372
|
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.8.tgz",
|
|
373
|
+
"integrity": "sha512-zUlaP2S12YhQ2UzUfcCuMDHQFJyKABkAjvO5YSndMiIkMimPmxA+BYSBikWgsRpvyxuRnow4nS5NPnf9fpv41w==",
|
|
374
|
+
"cpu": [
|
|
375
|
+
"x64"
|
|
376
|
+
],
|
|
377
|
+
"license": "MIT",
|
|
378
|
+
"optional": true,
|
|
379
|
+
"os": [
|
|
380
|
+
"sunos"
|
|
381
|
+
],
|
|
382
|
+
"engines": {
|
|
383
|
+
"node": ">=18"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"node_modules/@esbuild/win32-arm64": {
|
|
387
|
+
"version": "0.25.8",
|
|
388
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.8.tgz",
|
|
389
|
+
"integrity": "sha512-YEGFFWESlPva8hGL+zvj2z/SaK+pH0SwOM0Nc/d+rVnW7GSTFlLBGzZkuSU9kFIGIo8q9X3ucpZhu8PDN5A2sQ==",
|
|
390
|
+
"cpu": [
|
|
391
|
+
"arm64"
|
|
392
|
+
],
|
|
393
|
+
"license": "MIT",
|
|
394
|
+
"optional": true,
|
|
395
|
+
"os": [
|
|
396
|
+
"win32"
|
|
397
|
+
],
|
|
398
|
+
"engines": {
|
|
399
|
+
"node": ">=18"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"node_modules/@esbuild/win32-ia32": {
|
|
403
|
+
"version": "0.25.8",
|
|
404
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.8.tgz",
|
|
405
|
+
"integrity": "sha512-hiGgGC6KZ5LZz58OL/+qVVoZiuZlUYlYHNAmczOm7bs2oE1XriPFi5ZHHrS8ACpV5EjySrnoCKmcbQMN+ojnHg==",
|
|
406
|
+
"cpu": [
|
|
407
|
+
"ia32"
|
|
408
|
+
],
|
|
409
|
+
"license": "MIT",
|
|
410
|
+
"optional": true,
|
|
411
|
+
"os": [
|
|
412
|
+
"win32"
|
|
413
|
+
],
|
|
414
|
+
"engines": {
|
|
415
|
+
"node": ">=18"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"node_modules/@esbuild/win32-x64": {
|
|
419
|
+
"version": "0.25.8",
|
|
420
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.8.tgz",
|
|
421
|
+
"integrity": "sha512-cn3Yr7+OaaZq1c+2pe+8yxC8E144SReCQjN6/2ynubzYjvyqZjTXfQJpAcQpsdJq3My7XADANiYGHoFC69pLQw==",
|
|
422
|
+
"cpu": [
|
|
423
|
+
"x64"
|
|
424
|
+
],
|
|
425
|
+
"license": "MIT",
|
|
426
|
+
"optional": true,
|
|
427
|
+
"os": [
|
|
428
|
+
"win32"
|
|
429
|
+
],
|
|
430
|
+
"engines": {
|
|
431
|
+
"node": ">=18"
|
|
15
432
|
}
|
|
16
433
|
},
|
|
17
434
|
"node_modules/@netflix/nerror": {
|
|
@@ -411,6 +828,47 @@
|
|
|
411
828
|
"integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==",
|
|
412
829
|
"license": "MIT"
|
|
413
830
|
},
|
|
831
|
+
"node_modules/esbuild": {
|
|
832
|
+
"version": "0.25.8",
|
|
833
|
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.8.tgz",
|
|
834
|
+
"integrity": "sha512-vVC0USHGtMi8+R4Kz8rt6JhEWLxsv9Rnu/lGYbPR8u47B+DCBksq9JarW0zOO7bs37hyOK1l2/oqtbciutL5+Q==",
|
|
835
|
+
"hasInstallScript": true,
|
|
836
|
+
"license": "MIT",
|
|
837
|
+
"bin": {
|
|
838
|
+
"esbuild": "bin/esbuild"
|
|
839
|
+
},
|
|
840
|
+
"engines": {
|
|
841
|
+
"node": ">=18"
|
|
842
|
+
},
|
|
843
|
+
"optionalDependencies": {
|
|
844
|
+
"@esbuild/aix-ppc64": "0.25.8",
|
|
845
|
+
"@esbuild/android-arm": "0.25.8",
|
|
846
|
+
"@esbuild/android-arm64": "0.25.8",
|
|
847
|
+
"@esbuild/android-x64": "0.25.8",
|
|
848
|
+
"@esbuild/darwin-arm64": "0.25.8",
|
|
849
|
+
"@esbuild/darwin-x64": "0.25.8",
|
|
850
|
+
"@esbuild/freebsd-arm64": "0.25.8",
|
|
851
|
+
"@esbuild/freebsd-x64": "0.25.8",
|
|
852
|
+
"@esbuild/linux-arm": "0.25.8",
|
|
853
|
+
"@esbuild/linux-arm64": "0.25.8",
|
|
854
|
+
"@esbuild/linux-ia32": "0.25.8",
|
|
855
|
+
"@esbuild/linux-loong64": "0.25.8",
|
|
856
|
+
"@esbuild/linux-mips64el": "0.25.8",
|
|
857
|
+
"@esbuild/linux-ppc64": "0.25.8",
|
|
858
|
+
"@esbuild/linux-riscv64": "0.25.8",
|
|
859
|
+
"@esbuild/linux-s390x": "0.25.8",
|
|
860
|
+
"@esbuild/linux-x64": "0.25.8",
|
|
861
|
+
"@esbuild/netbsd-arm64": "0.25.8",
|
|
862
|
+
"@esbuild/netbsd-x64": "0.25.8",
|
|
863
|
+
"@esbuild/openbsd-arm64": "0.25.8",
|
|
864
|
+
"@esbuild/openbsd-x64": "0.25.8",
|
|
865
|
+
"@esbuild/openharmony-arm64": "0.25.8",
|
|
866
|
+
"@esbuild/sunos-x64": "0.25.8",
|
|
867
|
+
"@esbuild/win32-arm64": "0.25.8",
|
|
868
|
+
"@esbuild/win32-ia32": "0.25.8",
|
|
869
|
+
"@esbuild/win32-x64": "0.25.8"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
414
872
|
"node_modules/execa": {
|
|
415
873
|
"version": "5.1.1",
|
|
416
874
|
"resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
|
|
@@ -6,14 +6,15 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.
|
|
10
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
11
|
-
"@regulaforensics/document-reader-btdevice": "8.
|
|
9
|
+
"@regulaforensics/document-reader": "8.3.242-beta",
|
|
10
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
|
|
11
|
+
"@regulaforensics/document-reader-btdevice": "8.3.10-beta",
|
|
12
12
|
"cordova-ios": "7.1.1",
|
|
13
13
|
"cordova-android": "13.0.0",
|
|
14
14
|
"cordova-plugin-file": "8.1.3",
|
|
15
15
|
"cordova-plugin-camera": "8.0.0",
|
|
16
|
-
"cordova-plugin-dialogs": "2.0.2"
|
|
16
|
+
"cordova-plugin-dialogs": "2.0.2",
|
|
17
|
+
"esbuild": "0.25.8"
|
|
17
18
|
},
|
|
18
19
|
"cordova": {
|
|
19
20
|
"plugins": {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
document.addEventListener('deviceready', () => {
|
|
2
|
+
// imports
|
|
3
|
+
window.DocumentReader = DocumentReaderPlugin.DocumentReader
|
|
4
|
+
DocReaderAction = DocumentReaderPlugin.DocReaderAction
|
|
5
|
+
FieldType = DocumentReaderPlugin.FieldType
|
|
6
|
+
GraphicFieldType = DocumentReaderPlugin.GraphicFieldType
|
|
7
|
+
InitConfig = DocumentReaderPlugin.InitConfig
|
|
8
|
+
RecognizeConfig = DocumentReaderPlugin.RecognizeConfig
|
|
9
|
+
ResultType = DocumentReaderPlugin.ResultType
|
|
10
|
+
RFIDConfig = DocumentReaderPlugin.RFIDConfig
|
|
11
|
+
ScannerConfig = DocumentReaderPlugin.ScannerConfig
|
|
12
|
+
Scenario = DocumentReaderPlugin.Scenario
|
|
13
|
+
RFIDDataFileType = DocumentReaderPlugin.RFIDDataFileType
|
|
14
|
+
RFIDNotificationCodes = DocumentReaderPlugin.RFIDNotificationCodes
|
|
15
|
+
|
|
16
|
+
window.resolveLocalFileSystemURL(cordova.file.applicationDirectory + 'www/src/main.html', (fileEntry) => {
|
|
17
|
+
fileEntry.file((file) => {
|
|
18
|
+
const reader = new FileReader()
|
|
19
|
+
reader.onloadend = async function () {
|
|
20
|
+
document.getElementById('content').innerHTML = this.result
|
|
21
|
+
|
|
22
|
+
const script = document.createElement('script')
|
|
23
|
+
script.src = 'bundle.js'
|
|
24
|
+
script.onload = () => document.dispatchEvent(new CustomEvent("ready"))
|
|
25
|
+
document.body.appendChild(script)
|
|
26
|
+
}
|
|
27
|
+
reader.readAsText(file)
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
})
|
|
@@ -1,40 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
// imports
|
|
3
|
-
window.DocumentReader = DocumentReaderPlugin.DocumentReader
|
|
4
|
-
DocReaderAction = DocumentReaderPlugin.DocReaderAction
|
|
5
|
-
FieldType = DocumentReaderPlugin.FieldType
|
|
6
|
-
GraphicFieldType = DocumentReaderPlugin.GraphicFieldType
|
|
7
|
-
InitConfig = DocumentReaderPlugin.InitConfig
|
|
8
|
-
RecognizeConfig = DocumentReaderPlugin.RecognizeConfig
|
|
9
|
-
ResultType = DocumentReaderPlugin.ResultType
|
|
10
|
-
RFIDConfig = DocumentReaderPlugin.RFIDConfig
|
|
11
|
-
ScannerConfig = DocumentReaderPlugin.ScannerConfig
|
|
12
|
-
Scenario = DocumentReaderPlugin.Scenario
|
|
13
|
-
RFIDDataFileType = DocumentReaderPlugin.RFIDDataFileType
|
|
14
|
-
RFIDNotificationCodes = DocumentReaderPlugin.RFIDNotificationCodes
|
|
1
|
+
import { main } from './src/main.js'
|
|
15
2
|
|
|
16
|
-
|
|
3
|
+
export async function loadAsset(path) {
|
|
4
|
+
path = cordova.file.applicationDirectory + "www/" + path
|
|
5
|
+
return new Promise((resolve, _) => {
|
|
6
|
+
window.resolveLocalFileSystemURL(path, (fileEntry) => {
|
|
17
7
|
fileEntry.file((file) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
await loadModule('src/extra/bt_device.js')
|
|
22
|
-
await loadModule('src/extra/custom_rfid.js')
|
|
23
|
-
|
|
24
|
-
document.getElementById('content').innerHTML = this.result
|
|
25
|
-
document.dispatchEvent(new CustomEvent("ready"))
|
|
26
|
-
}
|
|
27
|
-
reader.readAsText(file)
|
|
8
|
+
var reader = new FileReader()
|
|
9
|
+
reader.onloadend = function (_) { resolve(this.result) }
|
|
10
|
+
reader.readAsDataURL(file)
|
|
28
11
|
})
|
|
12
|
+
})
|
|
29
13
|
})
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
return new Promise((resolve) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export async function pickImage() {
|
|
17
|
+
return new Promise((resolve, _) => {
|
|
18
|
+
navigator.camera.getPicture(
|
|
19
|
+
(imageData) => resolve(imageData),
|
|
20
|
+
(_) => resolve(null),
|
|
21
|
+
{
|
|
22
|
+
destinationType: Camera.DestinationType.DATA_URL,
|
|
23
|
+
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
|
|
24
|
+
mediaType: Camera.MediaType.PICTURE
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
document.addEventListener('ready', main)
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { handleException, setStatus } from "../main.js"
|
|
1
|
+
import { handleException, init, setStatus } from "../main.js"
|
|
2
2
|
|
|
3
3
|
export const useBtDevice = false
|
|
4
|
-
const btDeviceName = "Regula 0000"
|
|
4
|
+
export const btDeviceName = "Regula 0000"
|
|
5
5
|
|
|
6
6
|
export function setupBTDevice() {
|
|
7
|
-
document.getElementById("
|
|
8
|
-
|
|
7
|
+
var connectButton = document.getElementById("connect")
|
|
8
|
+
connectButton.style.display = "flex"
|
|
9
|
+
connectButton.onclick = () => connect()
|
|
9
10
|
setStatus("Connect to a bluetooth device")
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
async function connect() {
|
|
13
14
|
setStatus("Searching for devices...")
|
|
14
15
|
if (await DocumentReader.instance.connectBluetoothDevice(btDeviceName)) {
|
|
15
|
-
await
|
|
16
|
+
await init()
|
|
16
17
|
DocumentReader.instance.functionality.useAuthenticator = true
|
|
17
18
|
document.getElementById("bt-device").style.display = "none"
|
|
18
19
|
} else
|
|
19
20
|
setStatus("Failed to connect")
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
async function
|
|
23
|
+
export async function initializeWithBTDevice() {
|
|
23
24
|
setStatus("Initializing...")
|
|
24
25
|
|
|
25
26
|
var initConfig = InitConfig.withBleDevice()
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
html,
|
|
2
2
|
body {
|
|
3
|
-
|
|
3
|
+
margin: 0;
|
|
4
|
+
width: 100%;
|
|
4
5
|
height: 99vh;
|
|
5
6
|
display: flex;
|
|
7
|
+
overflow: hidden;
|
|
6
8
|
flex-direction: column;
|
|
7
9
|
}
|
|
8
10
|
|
|
@@ -59,6 +61,7 @@ body {
|
|
|
59
61
|
color: white;
|
|
60
62
|
border: none;
|
|
61
63
|
padding: 10px 20px;
|
|
64
|
+
justify-content: center;
|
|
62
65
|
font-size: 16px;
|
|
63
66
|
border-radius: 100px;
|
|
64
67
|
cursor: pointer;
|
|
@@ -14,10 +14,6 @@
|
|
|
14
14
|
<img id="document-image" src="images/document.png" height="160px" width="200px">
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
|
-
<div id="bt-device" class="row" style="display: none;">
|
|
18
|
-
<input type="text" placeholder="Regula 0000" />
|
|
19
|
-
<button id="connect" class="button">Connect</button>
|
|
20
|
-
</div>
|
|
21
17
|
<div id="scenario-container" class="column no-scroll" style="margin-top: 15px; background-color: rgba(0, 0, 0, 0.03);">
|
|
22
18
|
<div id="scenarios" class="scroll"></div>
|
|
23
19
|
</div>
|
|
@@ -29,6 +25,7 @@
|
|
|
29
25
|
<button id="scan" class="button">Scan document</button>
|
|
30
26
|
<button id="recognize" class="button">Scan image</button>
|
|
31
27
|
</div>
|
|
28
|
+
<button id="connect" class="button" style="width: 360px; display: none;">Connect</button>
|
|
32
29
|
<div style="padding-top: 20px;"></div>
|
|
33
30
|
</div>
|
|
34
31
|
<div id="custom-rfid" class="column no-scroll" style="display: none;">
|