@equinor/react-native-mad-tag-ocr 0.4.0 → 0.4.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @equinor/react-native-mad-ocr
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9c0ac83: Migrated from react-native-markdown-display to react-native-enriched-markdown since the
|
|
8
|
+
former is not maintained any longer and includes vulnerabilities. Upgraded eslint libraries to fix
|
|
9
|
+
vulnerabilities as well.
|
|
10
|
+
- 8b4b42a: Fixed an intermittent bug causing a blur UI on Menus and similar components. The issue
|
|
11
|
+
was primarily reported on iOS 27 and seemed to be caused by the way Animation was implemented in
|
|
12
|
+
the PopinContainer component. Made modifications to the animation scaling to fix the bug
|
|
13
|
+
- Updated dependencies [9c0ac83]
|
|
14
|
+
- Updated dependencies [8b4b42a]
|
|
15
|
+
- @equinor/mad-components@0.26.2
|
|
16
|
+
|
|
17
|
+
## 0.4.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- a3dc592: Skia Draw Peer dependencies updated
|
|
22
|
+
- Updated dependencies [a3dc592]
|
|
23
|
+
- @equinor/mad-components@0.26.1
|
|
24
|
+
|
|
3
25
|
## 0.4.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/react-native-mad-tag-ocr",
|
|
3
3
|
"description": "A React Native library for scanning tags",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Equinor Mobile App Delivery team (MAD)"
|
|
7
7
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@equinor/mad-tsconfig": "*",
|
|
15
15
|
"@ismaelmoreiraa/vision-camera-ocr": "^3.0.1",
|
|
16
16
|
"@react-native/jest-preset": "~0.86.3",
|
|
17
|
-
"@shopify/react-native-skia": "
|
|
17
|
+
"@shopify/react-native-skia": "2.6.2",
|
|
18
18
|
"@types/react": "19.2.3",
|
|
19
19
|
"eslint": "^8.46.0",
|
|
20
20
|
"jest-expo": "^57.0.5",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"main": "./dist/index.js",
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@ismaelmoreiraa/vision-camera-ocr": "^3.0.1",
|
|
42
|
-
"@shopify/react-native-skia": "2.
|
|
42
|
+
"@shopify/react-native-skia": "~2.6.2",
|
|
43
43
|
"react": "^19.2.0",
|
|
44
44
|
"react-native": "~0.86.3",
|
|
45
45
|
"react-native-gesture-handler": "^2.30.0",
|
|
@@ -65,6 +65,10 @@ var OCRCamera = ({
|
|
|
65
65
|
setCameraWidth(event.nativeEvent.layout.width);
|
|
66
66
|
setCameraHeight(event.nativeEvent.layout.height);
|
|
67
67
|
};
|
|
68
|
+
const confirmSelection = (text) => {
|
|
69
|
+
if (onSelectTag) onSelectTag(text);
|
|
70
|
+
setShowDialog(false);
|
|
71
|
+
};
|
|
68
72
|
const setScannedTagOnJS = useRunOnJS(
|
|
69
73
|
(text) => {
|
|
70
74
|
if (!enableDialogShared.value) confirmSelection(text);
|
|
@@ -79,10 +83,6 @@ var OCRCamera = ({
|
|
|
79
83
|
setClickedText("");
|
|
80
84
|
setShowDialog(false);
|
|
81
85
|
};
|
|
82
|
-
const confirmSelection = (text) => {
|
|
83
|
-
if (onSelectTag) onSelectTag(text);
|
|
84
|
-
setShowDialog(false);
|
|
85
|
-
};
|
|
86
86
|
const format = useCameraFormat(device, [
|
|
87
87
|
{
|
|
88
88
|
fps,
|