assentify-sdk-react-native 1.0.0-Beta.4 → 1.0.0-Beta.41

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.
Files changed (107) hide show
  1. package/Package.swift +172 -0
  2. package/README.md +124 -32
  3. package/android/build.gradle +1 -6
  4. package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +48 -9
  5. package/android/src/main/java/com/assentifysdk/FlowActivity.kt +75 -7
  6. package/android/src/main/java/com/assentifysdk/ScanIDActivity.kt +67 -6
  7. package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +53 -1
  8. package/android/src/main/res/layout/activity_scan.xml +45 -57
  9. package/ios/AssentifySdkBaseModule.swift +1 -0
  10. package/ios/NativeAssentifySdk.mm +19 -2
  11. package/ios/NativeAssentifySdk.swift +151 -25
  12. package/ios/UIComponents/RNPassportScanner.swift +4 -3
  13. package/ios/View/AssentifySdkEventEmitting.swift +10 -0
  14. package/ios/View/DataDecoder.swift +16 -16
  15. package/ios/View/FaceMatchController.swift +51 -51
  16. package/ios/View/IDCardController.swift +93 -37
  17. package/ios/View/OtherController.swift +33 -33
  18. package/ios/View/PassportController.swift +84 -36
  19. package/ios/View/QrController.swift +10 -10
  20. package/ios/View/UI.swift +77 -26
  21. package/lib/commonjs/AssentifyProvider.js +3 -0
  22. package/lib/commonjs/AssentifyProvider.js.map +1 -1
  23. package/lib/commonjs/AssentifyWrapper.js +4 -4
  24. package/lib/commonjs/AssentifyWrapper.js.map +1 -1
  25. package/lib/commonjs/ClickFontWeightType.js +14 -0
  26. package/lib/commonjs/ClickFontWeightType.js.map +1 -0
  27. package/lib/commonjs/FlowStepperType.js +11 -0
  28. package/lib/commonjs/FlowStepperType.js.map +1 -0
  29. package/lib/commonjs/Language.js +5 -1
  30. package/lib/commonjs/Language.js.map +1 -1
  31. package/lib/commonjs/ValidationStyleType.js +11 -0
  32. package/lib/commonjs/ValidationStyleType.js.map +1 -0
  33. package/lib/commonjs/index.js +36 -0
  34. package/lib/commonjs/index.js.map +1 -1
  35. package/lib/commonjs/types.js.map +1 -1
  36. package/lib/module/AssentifyProvider.js +4 -0
  37. package/lib/module/AssentifyProvider.js.map +1 -1
  38. package/lib/module/AssentifyWrapper.js +4 -4
  39. package/lib/module/AssentifyWrapper.js.map +1 -1
  40. package/lib/module/ClickFontWeightType.js +8 -0
  41. package/lib/module/ClickFontWeightType.js.map +1 -0
  42. package/lib/module/FlowStepperType.js +5 -0
  43. package/lib/module/FlowStepperType.js.map +1 -0
  44. package/lib/module/Language.js +4 -0
  45. package/lib/module/Language.js.map +1 -1
  46. package/lib/module/ValidationStyleType.js +5 -0
  47. package/lib/module/ValidationStyleType.js.map +1 -0
  48. package/lib/module/index.js +3 -0
  49. package/lib/module/index.js.map +1 -1
  50. package/lib/module/types.js.map +1 -1
  51. package/lib/typescript/babel.config.d.ts +0 -1
  52. package/lib/typescript/example/babel.config.d.ts +36 -5
  53. package/lib/typescript/example/babel.config.d.ts.map +1 -1
  54. package/lib/typescript/example/metro.config.d.ts +9 -1
  55. package/lib/typescript/example/metro.config.d.ts.map +1 -1
  56. package/lib/typescript/example/react-native.config.d.ts +34 -3
  57. package/lib/typescript/example/react-native.config.d.ts.map +1 -1
  58. package/lib/typescript/example/src/App.d.ts.map +1 -1
  59. package/lib/typescript/example/src/Home.d.ts.map +1 -1
  60. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -1
  61. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +2 -2
  62. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
  63. package/lib/typescript/lib/commonjs/ClickFontWeightType.d.ts +9 -0
  64. package/lib/typescript/lib/commonjs/ClickFontWeightType.d.ts.map +1 -0
  65. package/lib/typescript/lib/commonjs/FlowStepperType.d.ts +6 -0
  66. package/lib/typescript/lib/commonjs/FlowStepperType.d.ts.map +1 -0
  67. package/lib/typescript/lib/commonjs/Language.d.ts +6 -0
  68. package/lib/typescript/lib/commonjs/ValidationStyleType.d.ts +6 -0
  69. package/lib/typescript/lib/commonjs/ValidationStyleType.d.ts.map +1 -0
  70. package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -1
  71. package/lib/typescript/lib/module/AssentifyWrapper.d.ts +2 -2
  72. package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
  73. package/lib/typescript/lib/module/ClickFontWeightType.d.ts +8 -0
  74. package/lib/typescript/lib/module/ClickFontWeightType.d.ts.map +1 -0
  75. package/lib/typescript/lib/module/FlowStepperType.d.ts +5 -0
  76. package/lib/typescript/lib/module/FlowStepperType.d.ts.map +1 -0
  77. package/lib/typescript/lib/module/Language.d.ts +6 -0
  78. package/lib/typescript/lib/module/ValidationStyleType.d.ts +5 -0
  79. package/lib/typescript/lib/module/ValidationStyleType.d.ts.map +1 -0
  80. package/lib/typescript/lib/module/index.d.ts +5 -2
  81. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  82. package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -1
  83. package/lib/typescript/src/AssentifyWrapper.d.ts +6 -2
  84. package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
  85. package/lib/typescript/src/ClickFontWeightType.d.ts +9 -0
  86. package/lib/typescript/src/ClickFontWeightType.d.ts.map +1 -0
  87. package/lib/typescript/src/FlowStepperType.d.ts +6 -0
  88. package/lib/typescript/src/FlowStepperType.d.ts.map +1 -0
  89. package/lib/typescript/src/Language.d.ts +5 -0
  90. package/lib/typescript/src/Language.d.ts.map +1 -1
  91. package/lib/typescript/src/ValidationStyleType.d.ts +6 -0
  92. package/lib/typescript/src/ValidationStyleType.d.ts.map +1 -0
  93. package/lib/typescript/src/index.d.ts +5 -2
  94. package/lib/typescript/src/index.d.ts.map +1 -1
  95. package/lib/typescript/src/types.d.ts.map +1 -1
  96. package/package.json +63 -10
  97. package/src/AssentifyProvider.tsx +341 -305
  98. package/src/AssentifyWrapper.ts +47 -6
  99. package/src/ClickFontWeightType.ts +10 -0
  100. package/src/FlowStepperType.ts +7 -0
  101. package/src/Language.ts +7 -0
  102. package/src/ValidationStyleType.ts +7 -0
  103. package/src/index.ts +3 -0
  104. package/src/types.ts +1 -0
  105. package/assentify-sdk.podspec +0 -44
  106. package/lib/typescript/example/src/navigator.d.ts +0 -4
  107. package/lib/typescript/example/src/navigator.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assentify-sdk-react-native",
3
- "version": "1.0.0-Beta.4",
3
+ "version": "1.0.0-Beta.41",
4
4
  "description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -13,7 +13,7 @@
13
13
  "android",
14
14
  "ios",
15
15
  "cpp",
16
- "*.podspec",
16
+ "Package.swift",
17
17
  "!ios/build",
18
18
  "!android/build",
19
19
  "!android/gradle",
@@ -72,7 +72,7 @@
72
72
  "jest": "^29.7.0",
73
73
  "prettier": "^3.0.3",
74
74
  "react": "19.2.3",
75
- "react-native": "0.84.1",
75
+ "react-native": "^0.86.2",
76
76
  "react-native-builder-bob": "^0.20.0",
77
77
  "react-native-gesture-handler": "^2.16.2",
78
78
  "react-native-safe-area-context": "^4.10.4",
@@ -86,9 +86,9 @@
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@gorhom/bottom-sheet": "^4",
89
- "@react-native/babel-preset": "0.84.1",
90
- "@react-native/metro-config": "0.84.1",
91
- "@react-native/typescript-config": "0.84.1",
89
+ "@react-native/babel-preset": "^0.86.0",
90
+ "@react-native/metro-config": "^0.86.0",
91
+ "@react-native/typescript-config": "^0.86.0",
92
92
  "@react-navigation/native": ">=6.0.0 <8.0.0",
93
93
  "@react-navigation/native-stack": ">=6.0.0 <8.0.0",
94
94
  "react": "*",
@@ -97,18 +97,70 @@
97
97
  "react-native-reanimated": "^4.2.2",
98
98
  "react-native-safe-area-context": ">= 3.0.0",
99
99
  "react-native-screens": "^4.18.0",
100
- "react-native-worklets": "^0.7.0"
100
+ "react-native-worklets": "0.10.x - 0.11.x"
101
101
  },
102
102
  "workspaces": [
103
103
  "example"
104
104
  ],
105
105
  "packageManager": "yarn@3.6.1",
106
106
  "jest": {
107
- "preset": "react-native",
107
+ "testEnvironment": "node",
108
+ "roots": [
109
+ "<rootDir>/src"
110
+ ],
111
+ "testMatch": [
112
+ "**/__tests__/**/*.test.ts?(x)"
113
+ ],
114
+ "transform": {
115
+ "^.+\\.[jt]sx?$": [
116
+ "babel-jest",
117
+ {
118
+ "configFile": false,
119
+ "babelrc": false,
120
+ "presets": [
121
+ [
122
+ "@babel/preset-env",
123
+ {
124
+ "targets": {
125
+ "node": "current"
126
+ }
127
+ }
128
+ ],
129
+ [
130
+ "@babel/preset-react",
131
+ {
132
+ "runtime": "automatic"
133
+ }
134
+ ],
135
+ "@babel/preset-typescript"
136
+ ]
137
+ }
138
+ ]
139
+ },
140
+ "moduleNameMapper": {
141
+ "^react-native$": "<rootDir>/src/__tests__/support/react-native.ts"
142
+ },
108
143
  "modulePathIgnorePatterns": [
109
144
  "<rootDir>/example/node_modules",
110
145
  "<rootDir>/lib/"
111
- ]
146
+ ],
147
+ "collectCoverageFrom": [
148
+ "src/**/*.{ts,tsx}",
149
+ "!src/__tests__/**"
150
+ ],
151
+ "coverageReporters": [
152
+ "text-summary",
153
+ "cobertura",
154
+ "lcov"
155
+ ],
156
+ "coverageThreshold": {
157
+ "global": {
158
+ "lines": 98,
159
+ "statements": 98,
160
+ "functions": 95,
161
+ "branches": 90
162
+ }
163
+ }
112
164
  },
113
165
  "release-it": {
114
166
  "git": {
@@ -176,7 +228,8 @@
176
228
  [
177
229
  "typescript",
178
230
  {
179
- "esm": true
231
+ "esm": true,
232
+ "tsc": "./node_modules/.bin/tsc"
180
233
  }
181
234
  ]
182
235
  ]