@equinor/react-native-mad-tag-ocr 0.4.1 → 0.4.3

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,32 @@
1
1
  # @equinor/react-native-mad-ocr
2
2
 
3
+ ## 0.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 7c94990: eslint peer deps updated to allow apps to use later versions of eslint plugin. Removed
8
+ replace workspace:\* script from release workflow to ensure packages are locked to existing
9
+ versions to maintain backward compatibility. Also changed workspace:\* to workspace:~ which will
10
+ not pin packages and instead allow patch upgrades. v7 and v8 typescript will be supported going
11
+ forward
12
+ - Updated dependencies [7c94990]
13
+ - Updated dependencies [552edef]
14
+ - @equinor/mad-components@0.26.3
15
+
16
+ ## 0.4.2
17
+
18
+ ### Patch Changes
19
+
20
+ - 9c0ac83: Migrated from react-native-markdown-display to react-native-enriched-markdown since the
21
+ former is not maintained any longer and includes vulnerabilities. Upgraded eslint libraries to fix
22
+ vulnerabilities as well.
23
+ - 8b4b42a: Fixed an intermittent bug causing a blur UI on Menus and similar components. The issue
24
+ was primarily reported on iOS 27 and seemed to be caused by the way Animation was implemented in
25
+ the PopinContainer component. Made modifications to the animation scaling to fix the bug
26
+ - Updated dependencies [9c0ac83]
27
+ - Updated dependencies [8b4b42a]
28
+ - @equinor/mad-components@0.26.2
29
+
3
30
  ## 0.4.1
4
31
 
5
32
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OCRCamera
3
- } from "../../chunk-BMAS5ZHG.js";
3
+ } from "../../chunk-ZMSYYYKS.js";
4
4
  import "../../chunk-WA2RO7BG.js";
5
5
  import "../../chunk-JFXZ5SLD.js";
6
6
  import "../../chunk-AINAHK2V.js";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-6F4PWJZI.js";
2
2
  import {
3
3
  OCRCamera
4
- } from "./chunk-BMAS5ZHG.js";
4
+ } from "./chunk-ZMSYYYKS.js";
5
5
  import "./chunk-WA2RO7BG.js";
6
6
  import "./chunk-JFXZ5SLD.js";
7
7
  import "./chunk-AINAHK2V.js";
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
1
  {
2
- "name": "@equinor/react-native-mad-tag-ocr",
3
- "description": "A React Native library for scanning tags",
4
- "version": "0.4.1",
5
- "author": {
6
- "name": "Equinor Mobile App Delivery team (MAD)"
7
- },
8
- "bugs": "https://github.com/equinor/mad/issues",
9
- "dependencies": {
10
- "@equinor/mad-components": "*"
11
- },
12
- "devDependencies": {
13
- "@equinor/eslint-config-mad": "*",
14
- "@equinor/mad-tsconfig": "*",
15
- "@ismaelmoreiraa/vision-camera-ocr": "^3.0.1",
16
- "@react-native/jest-preset": "~0.86.3",
17
- "@shopify/react-native-skia": "2.6.2",
18
- "@types/react": "19.2.3",
19
- "eslint": "^8.46.0",
20
- "jest-expo": "^57.0.5",
21
- "react-native-vision-camera": "^4.0.4",
22
- "react-native-worklets-core": "^1.3.3",
23
- "tsup": "^8.3.5"
24
- },
25
- "files": [
26
- "CODE_OF_CONDUCT.md",
27
- "LICENSE",
28
- "CHANGELOG.md",
29
- "dist"
30
- ],
31
- "homepage": "https://github.com/equinor/mad/",
32
- "keywords": [
33
- "markup",
34
- "OCR",
35
- "react native",
36
- "typescript"
37
- ],
38
- "license": "MIT",
39
- "main": "./dist/index.js",
40
- "peerDependencies": {
41
- "@ismaelmoreiraa/vision-camera-ocr": "^3.0.1",
42
- "@shopify/react-native-skia": "~2.6.2",
43
- "react": "^19.2.0",
44
- "react-native": "~0.86.3",
45
- "react-native-gesture-handler": "^2.30.0",
46
- "react-native-vision-camera": "^4.0.4",
47
- "react-native-worklets-core": "^1.3.3"
48
- },
49
- "scripts": {
50
- "build": "tsup-node && echo '\n ⚙️ Generating typescript declarations..' && tsc --project tsconfig.json --emitDeclarationOnly --declaration",
51
- "clean": "rm -rf node_modules dist .turbo",
52
- "dev": "tsup-node --watch --clean=false",
53
- "lint": "eslint src/"
54
- },
55
- "type": "module",
56
- "types": "./dist/index.d.ts"
57
- }
2
+ "name": "@equinor/react-native-mad-tag-ocr",
3
+ "description": "A React Native library for scanning tags",
4
+ "version": "0.4.3",
5
+ "author": {
6
+ "name": "Equinor Mobile App Delivery team (MAD)"
7
+ },
8
+ "bugs": "https://github.com/equinor/mad/issues",
9
+ "dependencies": {
10
+ "@equinor/mad-components": "~0.26.3"
11
+ },
12
+ "devDependencies": {
13
+ "@equinor/eslint-config-mad": "~0.4.3",
14
+ "@equinor/mad-tsconfig": "~0.0.0",
15
+ "@ismaelmoreiraa/vision-camera-ocr": "^3.0.1",
16
+ "@react-native/jest-preset": "~0.86.3",
17
+ "@shopify/react-native-skia": "2.6.2",
18
+ "@types/react": "19.2.3",
19
+ "eslint": "^8.46.0",
20
+ "jest-expo": "^57.0.5",
21
+ "react-native-vision-camera": "^4.0.4",
22
+ "react-native-worklets-core": "^1.3.3",
23
+ "tsup": "^8.3.5"
24
+ },
25
+ "files": [
26
+ "CODE_OF_CONDUCT.md",
27
+ "LICENSE",
28
+ "CHANGELOG.md",
29
+ "dist"
30
+ ],
31
+ "homepage": "https://github.com/equinor/mad/",
32
+ "keywords": [
33
+ "markup",
34
+ "OCR",
35
+ "react native",
36
+ "typescript"
37
+ ],
38
+ "license": "MIT",
39
+ "main": "./dist/index.js",
40
+ "peerDependencies": {
41
+ "@ismaelmoreiraa/vision-camera-ocr": "^3.0.1",
42
+ "@shopify/react-native-skia": "~2.6.2",
43
+ "react": "^19.2.0",
44
+ "react-native": "~0.86.3",
45
+ "react-native-gesture-handler": "^2.30.0",
46
+ "react-native-vision-camera": "^4.0.4",
47
+ "react-native-worklets-core": "^1.3.3"
48
+ },
49
+ "scripts": {
50
+ "build": "tsup-node && echo '\n ⚙️ Generating typescript declarations..' && tsc --project tsconfig.json --emitDeclarationOnly --declaration",
51
+ "clean": "rm -rf node_modules dist .turbo",
52
+ "dev": "tsup-node --watch --clean=false",
53
+ "lint": "eslint src/"
54
+ },
55
+ "type": "module",
56
+ "types": "./dist/index.d.ts"
57
+ }
@@ -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,