@microblink/blinkid-react-native 7.6.0 → 7.6.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/README.md +7 -4
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +50 -53
- package/ios/BlinkIdSerializationUtilities.swift +1 -0
- package/ios/BlinkidReactNative.h +10 -2
- package/ios/BlinkidReactNative.mm +62 -48
- package/ios/Frameworks/BlinkID.xcframework/Info.plist +5 -5
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +19 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +40 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +15 -15
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +3 -3
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +38 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +40 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +40 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +25 -25
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +3 -3
- package/ios/Frameworks/BlinkIDUX.xcframework/Info.plist +5 -5
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +81 -81
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +261 -139
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +3 -3
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +261 -139
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +261 -139
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +26 -2
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +1 -1
- package/lib/module/NativeBlinkidReactNative.js +2 -1
- package/lib/module/NativeBlinkidReactNative.js.map +1 -1
- package/lib/module/index.js +4 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +12 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/NativeBlinkidReactNative.d.ts +2 -2
- package/lib/typescript/src/NativeBlinkidReactNative.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +11 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/NativeBlinkidReactNative.ts +4 -1
- package/src/index.tsx +9 -1
- package/src/types.ts +13 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.project +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature ExistentialAny -enable-experimental-feature DebugDescriptionMacro -module-name BlinkIDUX -package-name blinkid_ios
|
|
4
|
-
// swift-module-flags-ignorable: -interface-compiler-version 6.
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import BlinkID
|
|
7
7
|
import Combine
|
|
@@ -44,7 +44,9 @@ public actor BlinkIDAnalyzer : BlinkIDUX.CameraFrameAnalyzer {
|
|
|
44
44
|
public var stepTimeoutDuration: Foundation.TimeInterval {
|
|
45
45
|
get
|
|
46
46
|
}
|
|
47
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
47
48
|
public init(sdk: BlinkID.BlinkIDSdk, blinkIdSessionSettings: BlinkID.BlinkIDSessionSettings = BlinkIDSessionSettings(inputImageSource: .video), eventStream: BlinkIDUX.BlinkIDEventStream, classFilter: (any BlinkIDUX.BlinkIDClassFilter)? = nil) async throws
|
|
49
|
+
#endif
|
|
48
50
|
nonisolated public var sessionNumber: Swift.Int {
|
|
49
51
|
get
|
|
50
52
|
}
|
|
@@ -83,6 +85,7 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
@_inheritsConvenienceInitializers @_Concurrency.MainActor final public class BlinkIDUXModel : BlinkIDUX.ScanningViewModel<BlinkID.BlinkIDScanningResult, BlinkIDUX.BlinkIDScanningAlertType> {
|
|
88
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
86
89
|
@Combine.Published @_projectedValueProperty($result) @_Concurrency.MainActor final public var result: BlinkIDUX.BlinkIDResultState? {
|
|
87
90
|
get
|
|
88
91
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -90,11 +93,14 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
90
93
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
91
94
|
_modify
|
|
92
95
|
}
|
|
96
|
+
#endif
|
|
97
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
93
98
|
@_Concurrency.MainActor final public var $result: Combine.Published<BlinkIDUX.BlinkIDResultState?>.Publisher {
|
|
94
99
|
get
|
|
95
100
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
96
101
|
set
|
|
97
102
|
}
|
|
103
|
+
#endif
|
|
98
104
|
@_Concurrency.MainActor override public init(analyzer: any BlinkIDUX.CameraFrameAnalyzer<BlinkID.CameraFrame, BlinkIDUX.UIEvent>, uxSettings: BlinkIDUX.ScanningUXSettings = ScanningUXSettings(), sessionNumber: Swift.Int)
|
|
99
105
|
@_Concurrency.MainActor override final public func analyze() async
|
|
100
106
|
@_Concurrency.MainActor override final public func processAnalyzerResult() async
|
|
@@ -137,7 +143,9 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
137
143
|
}
|
|
138
144
|
public protocol ScanningResultProtocol : Swift.Sendable {
|
|
139
145
|
associatedtype Result : Swift.Sendable
|
|
146
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
140
147
|
nonisolated var scanResult: Self.Result? { get }
|
|
148
|
+
#endif
|
|
141
149
|
}
|
|
142
150
|
public enum ScanningResult<T, U> : BlinkIDUX.ScanningResultProtocol where T : Swift.Sendable, U : Swift.Sendable {
|
|
143
151
|
public typealias Result = T
|
|
@@ -145,9 +153,11 @@ public enum ScanningResult<T, U> : BlinkIDUX.ScanningResultProtocol where T : Sw
|
|
|
145
153
|
case interrupted(U)
|
|
146
154
|
case cancelled
|
|
147
155
|
case ended
|
|
156
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
148
157
|
nonisolated public var scanResult: T? {
|
|
149
158
|
get
|
|
150
159
|
}
|
|
160
|
+
#endif
|
|
151
161
|
}
|
|
152
162
|
public protocol EventStream<Event> : Swift.Sendable {
|
|
153
163
|
associatedtype Event : Swift.Sendable
|
|
@@ -255,7 +265,9 @@ public enum DocumentSide : Swift.Sendable, Swift.Equatable {
|
|
|
255
265
|
@_Concurrency.MainActor func start() async
|
|
256
266
|
@_Concurrency.MainActor func stop() async
|
|
257
267
|
@_Concurrency.MainActor func focusAndExpose(at point: CoreFoundation.CGPoint) async
|
|
268
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
258
269
|
@_Concurrency.MainActor var error: (any Swift.Error)? { get }
|
|
270
|
+
#endif
|
|
259
271
|
@_Concurrency.MainActor var isTorchSupported: Swift.Bool { get }
|
|
260
272
|
@_Concurrency.MainActor var isTorchEnabled: Swift.Bool { get set }
|
|
261
273
|
@_Concurrency.MainActor var orientation: AVFoundation.AVCaptureVideoOrientation { get }
|
|
@@ -279,7 +291,9 @@ public enum CaptureMode : Swift.String, Swift.Identifiable, Swift.CaseIterable {
|
|
|
279
291
|
get
|
|
280
292
|
}
|
|
281
293
|
case video
|
|
294
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
282
295
|
public init?(rawValue: Swift.String)
|
|
296
|
+
#endif
|
|
283
297
|
public typealias AllCases = [BlinkIDUX.CaptureMode]
|
|
284
298
|
public typealias ID = BlinkIDUX.CaptureMode
|
|
285
299
|
public typealias RawValue = Swift.String
|
|
@@ -366,6 +380,7 @@ public struct ScanningUXSettings {
|
|
|
366
380
|
public init(showIntroductionAlert: Swift.Bool = true, showHelpButton: Swift.Bool = true, preferredCameraPosition: BlinkIDUX.Camera.CameraPosition = .back, allowHapticFeedback: Swift.Bool = true)
|
|
367
381
|
}
|
|
368
382
|
@_Concurrency.MainActor public class ScanningViewModel<T, U> : Foundation.ObservableObject {
|
|
383
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
369
384
|
@Combine.Published @_projectedValueProperty($scanningResult) @_Concurrency.MainActor public var scanningResult: T? {
|
|
370
385
|
get
|
|
371
386
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -373,11 +388,15 @@ public struct ScanningUXSettings {
|
|
|
373
388
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
374
389
|
_modify
|
|
375
390
|
}
|
|
391
|
+
#endif
|
|
392
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
376
393
|
@_Concurrency.MainActor public var $scanningResult: Combine.Published<T?>.Publisher {
|
|
377
394
|
get
|
|
378
395
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
379
396
|
set
|
|
380
397
|
}
|
|
398
|
+
#endif
|
|
399
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
381
400
|
@Combine.Published @_projectedValueProperty($alertType) @_Concurrency.MainActor public var alertType: U? {
|
|
382
401
|
get
|
|
383
402
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -385,11 +404,14 @@ public struct ScanningUXSettings {
|
|
|
385
404
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
386
405
|
_modify
|
|
387
406
|
}
|
|
407
|
+
#endif
|
|
408
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
388
409
|
@_Concurrency.MainActor public var $alertType: Combine.Published<U?>.Publisher {
|
|
389
410
|
get
|
|
390
411
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
391
412
|
set
|
|
392
413
|
}
|
|
414
|
+
#endif
|
|
393
415
|
@Combine.Published @_projectedValueProperty($roi) @_Concurrency.MainActor public var roi: BlinkID.RegionOfInterest {
|
|
394
416
|
get
|
|
395
417
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -495,7 +517,9 @@ public enum MicroblinkColor : Swift.String {
|
|
|
495
517
|
case background
|
|
496
518
|
case needHelpTooltipBackground
|
|
497
519
|
case toastBackgroundColor
|
|
520
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
498
521
|
public init?(rawValue: Swift.String)
|
|
522
|
+
#endif
|
|
499
523
|
public typealias RawValue = Swift.String
|
|
500
524
|
public var rawValue: Swift.String {
|
|
501
525
|
get
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature ExistentialAny -enable-experimental-feature DebugDescriptionMacro -module-name BlinkIDUX -package-name blinkid_ios
|
|
4
|
-
// swift-module-flags-ignorable: -interface-compiler-version 6.
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import BlinkID
|
|
7
7
|
import Combine
|
|
@@ -44,7 +44,9 @@ public actor BlinkIDAnalyzer : BlinkIDUX.CameraFrameAnalyzer {
|
|
|
44
44
|
public var stepTimeoutDuration: Foundation.TimeInterval {
|
|
45
45
|
get
|
|
46
46
|
}
|
|
47
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
47
48
|
public init(sdk: BlinkID.BlinkIDSdk, blinkIdSessionSettings: BlinkID.BlinkIDSessionSettings = BlinkIDSessionSettings(inputImageSource: .video), eventStream: BlinkIDUX.BlinkIDEventStream, classFilter: (any BlinkIDUX.BlinkIDClassFilter)? = nil) async throws
|
|
49
|
+
#endif
|
|
48
50
|
nonisolated public var sessionNumber: Swift.Int {
|
|
49
51
|
get
|
|
50
52
|
}
|
|
@@ -83,6 +85,7 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
@_inheritsConvenienceInitializers @_Concurrency.MainActor final public class BlinkIDUXModel : BlinkIDUX.ScanningViewModel<BlinkID.BlinkIDScanningResult, BlinkIDUX.BlinkIDScanningAlertType> {
|
|
88
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
86
89
|
@Combine.Published @_projectedValueProperty($result) @_Concurrency.MainActor final public var result: BlinkIDUX.BlinkIDResultState? {
|
|
87
90
|
get
|
|
88
91
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -90,11 +93,14 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
90
93
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
91
94
|
_modify
|
|
92
95
|
}
|
|
96
|
+
#endif
|
|
97
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
93
98
|
@_Concurrency.MainActor final public var $result: Combine.Published<BlinkIDUX.BlinkIDResultState?>.Publisher {
|
|
94
99
|
get
|
|
95
100
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
96
101
|
set
|
|
97
102
|
}
|
|
103
|
+
#endif
|
|
98
104
|
@_Concurrency.MainActor override public init(analyzer: any BlinkIDUX.CameraFrameAnalyzer<BlinkID.CameraFrame, BlinkIDUX.UIEvent>, uxSettings: BlinkIDUX.ScanningUXSettings = ScanningUXSettings(), sessionNumber: Swift.Int)
|
|
99
105
|
@_Concurrency.MainActor override final public func analyze() async
|
|
100
106
|
@_Concurrency.MainActor override final public func processAnalyzerResult() async
|
|
@@ -137,7 +143,9 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
137
143
|
}
|
|
138
144
|
public protocol ScanningResultProtocol : Swift.Sendable {
|
|
139
145
|
associatedtype Result : Swift.Sendable
|
|
146
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
140
147
|
nonisolated var scanResult: Self.Result? { get }
|
|
148
|
+
#endif
|
|
141
149
|
}
|
|
142
150
|
public enum ScanningResult<T, U> : BlinkIDUX.ScanningResultProtocol where T : Swift.Sendable, U : Swift.Sendable {
|
|
143
151
|
public typealias Result = T
|
|
@@ -145,9 +153,11 @@ public enum ScanningResult<T, U> : BlinkIDUX.ScanningResultProtocol where T : Sw
|
|
|
145
153
|
case interrupted(U)
|
|
146
154
|
case cancelled
|
|
147
155
|
case ended
|
|
156
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
148
157
|
nonisolated public var scanResult: T? {
|
|
149
158
|
get
|
|
150
159
|
}
|
|
160
|
+
#endif
|
|
151
161
|
}
|
|
152
162
|
public protocol EventStream<Event> : Swift.Sendable {
|
|
153
163
|
associatedtype Event : Swift.Sendable
|
|
@@ -255,7 +265,9 @@ public enum DocumentSide : Swift.Sendable, Swift.Equatable {
|
|
|
255
265
|
@_Concurrency.MainActor func start() async
|
|
256
266
|
@_Concurrency.MainActor func stop() async
|
|
257
267
|
@_Concurrency.MainActor func focusAndExpose(at point: CoreFoundation.CGPoint) async
|
|
268
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
258
269
|
@_Concurrency.MainActor var error: (any Swift.Error)? { get }
|
|
270
|
+
#endif
|
|
259
271
|
@_Concurrency.MainActor var isTorchSupported: Swift.Bool { get }
|
|
260
272
|
@_Concurrency.MainActor var isTorchEnabled: Swift.Bool { get set }
|
|
261
273
|
@_Concurrency.MainActor var orientation: AVFoundation.AVCaptureVideoOrientation { get }
|
|
@@ -279,7 +291,9 @@ public enum CaptureMode : Swift.String, Swift.Identifiable, Swift.CaseIterable {
|
|
|
279
291
|
get
|
|
280
292
|
}
|
|
281
293
|
case video
|
|
294
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
282
295
|
public init?(rawValue: Swift.String)
|
|
296
|
+
#endif
|
|
283
297
|
public typealias AllCases = [BlinkIDUX.CaptureMode]
|
|
284
298
|
public typealias ID = BlinkIDUX.CaptureMode
|
|
285
299
|
public typealias RawValue = Swift.String
|
|
@@ -366,6 +380,7 @@ public struct ScanningUXSettings {
|
|
|
366
380
|
public init(showIntroductionAlert: Swift.Bool = true, showHelpButton: Swift.Bool = true, preferredCameraPosition: BlinkIDUX.Camera.CameraPosition = .back, allowHapticFeedback: Swift.Bool = true)
|
|
367
381
|
}
|
|
368
382
|
@_Concurrency.MainActor public class ScanningViewModel<T, U> : Foundation.ObservableObject {
|
|
383
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
369
384
|
@Combine.Published @_projectedValueProperty($scanningResult) @_Concurrency.MainActor public var scanningResult: T? {
|
|
370
385
|
get
|
|
371
386
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -373,11 +388,15 @@ public struct ScanningUXSettings {
|
|
|
373
388
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
374
389
|
_modify
|
|
375
390
|
}
|
|
391
|
+
#endif
|
|
392
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
376
393
|
@_Concurrency.MainActor public var $scanningResult: Combine.Published<T?>.Publisher {
|
|
377
394
|
get
|
|
378
395
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
379
396
|
set
|
|
380
397
|
}
|
|
398
|
+
#endif
|
|
399
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
381
400
|
@Combine.Published @_projectedValueProperty($alertType) @_Concurrency.MainActor public var alertType: U? {
|
|
382
401
|
get
|
|
383
402
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -385,11 +404,14 @@ public struct ScanningUXSettings {
|
|
|
385
404
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
386
405
|
_modify
|
|
387
406
|
}
|
|
407
|
+
#endif
|
|
408
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
388
409
|
@_Concurrency.MainActor public var $alertType: Combine.Published<U?>.Publisher {
|
|
389
410
|
get
|
|
390
411
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
391
412
|
set
|
|
392
413
|
}
|
|
414
|
+
#endif
|
|
393
415
|
@Combine.Published @_projectedValueProperty($roi) @_Concurrency.MainActor public var roi: BlinkID.RegionOfInterest {
|
|
394
416
|
get
|
|
395
417
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -495,7 +517,9 @@ public enum MicroblinkColor : Swift.String {
|
|
|
495
517
|
case background
|
|
496
518
|
case needHelpTooltipBackground
|
|
497
519
|
case toastBackgroundColor
|
|
520
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
498
521
|
public init?(rawValue: Swift.String)
|
|
522
|
+
#endif
|
|
499
523
|
public typealias RawValue = Swift.String
|
|
500
524
|
public var rawValue: Swift.String {
|
|
501
525
|
get
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature ExistentialAny -enable-experimental-feature DebugDescriptionMacro -module-name BlinkIDUX -package-name blinkid_ios
|
|
4
|
-
// swift-module-flags-ignorable: -interface-compiler-version 6.
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import BlinkID
|
|
7
7
|
import Combine
|
|
@@ -44,7 +44,9 @@ public actor BlinkIDAnalyzer : BlinkIDUX.CameraFrameAnalyzer {
|
|
|
44
44
|
public var stepTimeoutDuration: Foundation.TimeInterval {
|
|
45
45
|
get
|
|
46
46
|
}
|
|
47
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
47
48
|
public init(sdk: BlinkID.BlinkIDSdk, blinkIdSessionSettings: BlinkID.BlinkIDSessionSettings = BlinkIDSessionSettings(inputImageSource: .video), eventStream: BlinkIDUX.BlinkIDEventStream, classFilter: (any BlinkIDUX.BlinkIDClassFilter)? = nil) async throws
|
|
49
|
+
#endif
|
|
48
50
|
nonisolated public var sessionNumber: Swift.Int {
|
|
49
51
|
get
|
|
50
52
|
}
|
|
@@ -83,6 +85,7 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
@_inheritsConvenienceInitializers @_Concurrency.MainActor final public class BlinkIDUXModel : BlinkIDUX.ScanningViewModel<BlinkID.BlinkIDScanningResult, BlinkIDUX.BlinkIDScanningAlertType> {
|
|
88
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
86
89
|
@Combine.Published @_projectedValueProperty($result) @_Concurrency.MainActor final public var result: BlinkIDUX.BlinkIDResultState? {
|
|
87
90
|
get
|
|
88
91
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -90,11 +93,14 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
90
93
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
91
94
|
_modify
|
|
92
95
|
}
|
|
96
|
+
#endif
|
|
97
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
93
98
|
@_Concurrency.MainActor final public var $result: Combine.Published<BlinkIDUX.BlinkIDResultState?>.Publisher {
|
|
94
99
|
get
|
|
95
100
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
96
101
|
set
|
|
97
102
|
}
|
|
103
|
+
#endif
|
|
98
104
|
@_Concurrency.MainActor override public init(analyzer: any BlinkIDUX.CameraFrameAnalyzer<BlinkID.CameraFrame, BlinkIDUX.UIEvent>, uxSettings: BlinkIDUX.ScanningUXSettings = ScanningUXSettings(), sessionNumber: Swift.Int)
|
|
99
105
|
@_Concurrency.MainActor override final public func analyze() async
|
|
100
106
|
@_Concurrency.MainActor override final public func processAnalyzerResult() async
|
|
@@ -137,7 +143,9 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
137
143
|
}
|
|
138
144
|
public protocol ScanningResultProtocol : Swift.Sendable {
|
|
139
145
|
associatedtype Result : Swift.Sendable
|
|
146
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
140
147
|
nonisolated var scanResult: Self.Result? { get }
|
|
148
|
+
#endif
|
|
141
149
|
}
|
|
142
150
|
public enum ScanningResult<T, U> : BlinkIDUX.ScanningResultProtocol where T : Swift.Sendable, U : Swift.Sendable {
|
|
143
151
|
public typealias Result = T
|
|
@@ -145,9 +153,11 @@ public enum ScanningResult<T, U> : BlinkIDUX.ScanningResultProtocol where T : Sw
|
|
|
145
153
|
case interrupted(U)
|
|
146
154
|
case cancelled
|
|
147
155
|
case ended
|
|
156
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
148
157
|
nonisolated public var scanResult: T? {
|
|
149
158
|
get
|
|
150
159
|
}
|
|
160
|
+
#endif
|
|
151
161
|
}
|
|
152
162
|
public protocol EventStream<Event> : Swift.Sendable {
|
|
153
163
|
associatedtype Event : Swift.Sendable
|
|
@@ -255,7 +265,9 @@ public enum DocumentSide : Swift.Sendable, Swift.Equatable {
|
|
|
255
265
|
@_Concurrency.MainActor func start() async
|
|
256
266
|
@_Concurrency.MainActor func stop() async
|
|
257
267
|
@_Concurrency.MainActor func focusAndExpose(at point: CoreFoundation.CGPoint) async
|
|
268
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
258
269
|
@_Concurrency.MainActor var error: (any Swift.Error)? { get }
|
|
270
|
+
#endif
|
|
259
271
|
@_Concurrency.MainActor var isTorchSupported: Swift.Bool { get }
|
|
260
272
|
@_Concurrency.MainActor var isTorchEnabled: Swift.Bool { get set }
|
|
261
273
|
@_Concurrency.MainActor var orientation: AVFoundation.AVCaptureVideoOrientation { get }
|
|
@@ -279,7 +291,9 @@ public enum CaptureMode : Swift.String, Swift.Identifiable, Swift.CaseIterable {
|
|
|
279
291
|
get
|
|
280
292
|
}
|
|
281
293
|
case video
|
|
294
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
282
295
|
public init?(rawValue: Swift.String)
|
|
296
|
+
#endif
|
|
283
297
|
public typealias AllCases = [BlinkIDUX.CaptureMode]
|
|
284
298
|
public typealias ID = BlinkIDUX.CaptureMode
|
|
285
299
|
public typealias RawValue = Swift.String
|
|
@@ -366,6 +380,7 @@ public struct ScanningUXSettings {
|
|
|
366
380
|
public init(showIntroductionAlert: Swift.Bool = true, showHelpButton: Swift.Bool = true, preferredCameraPosition: BlinkIDUX.Camera.CameraPosition = .back, allowHapticFeedback: Swift.Bool = true)
|
|
367
381
|
}
|
|
368
382
|
@_Concurrency.MainActor public class ScanningViewModel<T, U> : Foundation.ObservableObject {
|
|
383
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
369
384
|
@Combine.Published @_projectedValueProperty($scanningResult) @_Concurrency.MainActor public var scanningResult: T? {
|
|
370
385
|
get
|
|
371
386
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -373,11 +388,15 @@ public struct ScanningUXSettings {
|
|
|
373
388
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
374
389
|
_modify
|
|
375
390
|
}
|
|
391
|
+
#endif
|
|
392
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
376
393
|
@_Concurrency.MainActor public var $scanningResult: Combine.Published<T?>.Publisher {
|
|
377
394
|
get
|
|
378
395
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
379
396
|
set
|
|
380
397
|
}
|
|
398
|
+
#endif
|
|
399
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
381
400
|
@Combine.Published @_projectedValueProperty($alertType) @_Concurrency.MainActor public var alertType: U? {
|
|
382
401
|
get
|
|
383
402
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -385,11 +404,14 @@ public struct ScanningUXSettings {
|
|
|
385
404
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
386
405
|
_modify
|
|
387
406
|
}
|
|
407
|
+
#endif
|
|
408
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
388
409
|
@_Concurrency.MainActor public var $alertType: Combine.Published<U?>.Publisher {
|
|
389
410
|
get
|
|
390
411
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
391
412
|
set
|
|
392
413
|
}
|
|
414
|
+
#endif
|
|
393
415
|
@Combine.Published @_projectedValueProperty($roi) @_Concurrency.MainActor public var roi: BlinkID.RegionOfInterest {
|
|
394
416
|
get
|
|
395
417
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -495,7 +517,9 @@ public enum MicroblinkColor : Swift.String {
|
|
|
495
517
|
case background
|
|
496
518
|
case needHelpTooltipBackground
|
|
497
519
|
case toastBackgroundColor
|
|
520
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
498
521
|
public init?(rawValue: Swift.String)
|
|
522
|
+
#endif
|
|
499
523
|
public typealias RawValue = Swift.String
|
|
500
524
|
public var rawValue: Swift.String {
|
|
501
525
|
get
|
|
@@ -11,5 +11,6 @@ import { TurboModuleRegistry } from "react-native";
|
|
|
11
11
|
* The Turbo Module contains the functions `performScan` and `performDirectApiScan` which enable the BlinkID scanning process, with the default UX properties, and with static images.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const BlinkidReactNative = TurboModuleRegistry.getEnforcing("BlinkidReactNative");
|
|
15
|
+
export default BlinkidReactNative;
|
|
15
16
|
//# sourceMappingURL=NativeBlinkidReactNative.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeBlinkidReactNative.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmFA,
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","BlinkidReactNative","getEnforcing"],"sourceRoot":"../../src","sources":["NativeBlinkidReactNative.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmFA,MAAMC,kBAAwB,GAC5BD,mBAAmB,CAACE,YAAY,CAAO,oBAAoB,CAAC;AAE9D,eAAeD,kBAAkB","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
// index.ts
|
|
3
4
|
import { BlinkIdScanningResult } from "./blinkIdResult.js";
|
|
4
|
-
import BlinkidReactNative from "./NativeBlinkidReactNative.js";
|
|
5
5
|
// Configuration classes
|
|
6
6
|
export { BlinkIdScanningSettings, BlinkIdSdkSettings, BlinkIdSessionSettings, BlinkIdScanningUxSettings, CroppedImageSettings } from "./blinkIdSettings.js";
|
|
7
7
|
export { BlinkIdScanningResult } from "./blinkIdResult.js";
|
|
8
8
|
|
|
9
9
|
// Types & enums
|
|
10
10
|
export * from "./types.js";
|
|
11
|
+
const BlinkidReactNative = require("./NativeBlinkidReactNative").default;
|
|
12
|
+
export default BlinkidReactNative;
|
|
11
13
|
|
|
12
14
|
/** The `loadBlinkIdSdk` method creates or retrieves the instance of the BlinkID SDK.
|
|
13
15
|
*
|
|
@@ -79,6 +81,7 @@ export async function performScan(blinkIdSdkSettings, blinkIdSessionSettings, bl
|
|
|
79
81
|
const jsonResult = await BlinkidReactNative.performScan(JSON.stringify(blinkIdSdkSettings), JSON.stringify(blinkIdSessionSettings), JSON.stringify(blinkIdScanningUxSettings), JSON.stringify(classFilter));
|
|
80
82
|
return new BlinkIdScanningResult(JSON.parse(jsonResult));
|
|
81
83
|
}
|
|
84
|
+
|
|
82
85
|
/**
|
|
83
86
|
* The `performDirectApiScan` platform channel method launches the BlinkID scanning process inteded for information extraction from static images.
|
|
84
87
|
*
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BlinkIdScanningResult","
|
|
1
|
+
{"version":3,"names":["BlinkIdScanningResult","BlinkIdScanningSettings","BlinkIdSdkSettings","BlinkIdSessionSettings","BlinkIdScanningUxSettings","CroppedImageSettings","BlinkidReactNative","require","default","loadBlinkIdSdk","blinkIdSdkSettings","JSON","stringify","unloadBlinkIdSdk","deleteCachedResources","performScan","blinkIdSessionSettings","blinkIdScanningUxSettings","classFilter","jsonResult","parse","performDirectApiScan","firstImage","secondImage"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA,SAASA,qBAAqB,QAAQ,oBAAiB;AASvD;AACA,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,sBAAsB,EACtBC,yBAAyB,EACzBC,oBAAoB,QACf,sBAAmB;AAE1B,SAASL,qBAAqB,QAAQ,oBAAiB;;AAEvD;AACA,cAAc,YAAS;AAEvB,MAAMM,kBAAwB,GAAGC,OAAO,CAAC,4BAA4B,CAAC,CAACC,OAAO;AAE9E,eAAeF,kBAAkB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeG,cAAcA,CAClCC,kBAAsC,EACvB;EACf,MAAMJ,kBAAkB,CAACG,cAAc,CAACE,IAAI,CAACC,SAAS,CAACF,kBAAkB,CAAC,CAAC;AAC7E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeG,gBAAgBA,CACpCC,qBAA8B,EACf;EACf,MAAMR,kBAAkB,CAACO,gBAAgB,CAACC,qBAAqB,CAAC;AAClE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeC,WAAWA,CAC/BL,kBAAsC,EACtCM,sBAA8C,EAC9CC,yBAAqD,EACrDC,WAAyB,EACO;EAChC,MAAMC,UAAU,GAAG,MAAMb,kBAAkB,CAACS,WAAW,CACrDJ,IAAI,CAACC,SAAS,CAACF,kBAAkB,CAAC,EAClCC,IAAI,CAACC,SAAS,CAACI,sBAAsB,CAAC,EACtCL,IAAI,CAACC,SAAS,CAACK,yBAAyB,CAAC,EACzCN,IAAI,CAACC,SAAS,CAACM,WAAW,CAC5B,CAAC;EAED,OAAO,IAAIlB,qBAAqB,CAACW,IAAI,CAACS,KAAK,CAACD,UAAU,CAAC,CAAC;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeE,oBAAoBA,CACxCX,kBAAsC,EACtCM,sBAA8C,EAC9CM,UAAkB,EAClBC,WAAoB,EACY;EAChC,MAAMJ,UAAU,GAAG,MAAMb,kBAAkB,CAACe,oBAAoB,CAC9DV,IAAI,CAACC,SAAS,CAACF,kBAAkB,CAAC,EAClCC,IAAI,CAACC,SAAS,CAACI,sBAAsB,CAAC,EACtCM,UAAU,EACVC,WACF,CAAC;EAED,OAAO,IAAIvB,qBAAqB,CAACW,IAAI,CAACS,KAAK,CAACD,UAAU,CAAC,CAAC;AAC1D","ignoreList":[]}
|
package/lib/module/types.js
CHANGED
|
@@ -2436,6 +2436,17 @@ export class BarcodeExtendedElements {
|
|
|
2436
2436
|
* 9 = 146+ kg (321+ lbs)
|
|
2437
2437
|
*/
|
|
2438
2438
|
|
|
2439
|
+
/**
|
|
2440
|
+
* SubField Designator extracted from barcode, to support proper document classification based on the standard.
|
|
2441
|
+
*
|
|
2442
|
+
* Subfield designator is a 2-character code that specifies the type of document, typically DL or ID.
|
|
2443
|
+
*
|
|
2444
|
+
* It is located immediately after the IIN and the variable metadata structure in the PDF417 barcode data structure.
|
|
2445
|
+
*
|
|
2446
|
+
*
|
|
2447
|
+
* For example: ANSI 636010090002DL00410267ZF03080067DLDAQS1234567812300000000000000 ^^ | | | +-- SubField Designator (DL, ID, EN, etc.) +----- IIN (636010)
|
|
2448
|
+
*/
|
|
2449
|
+
|
|
2439
2450
|
/**
|
|
2440
2451
|
*
|
|
2441
2452
|
* @param nativeBarcodeExtendedElements - specifies the extended barcode elements obtained from the native SDK.
|
|
@@ -2524,6 +2535,7 @@ export class BarcodeExtendedElements {
|
|
|
2524
2535
|
this.weightKilograms = nativeBarcodeExtendedElements.weightKilograms;
|
|
2525
2536
|
this.weightPounds = nativeBarcodeExtendedElements.weightPounds;
|
|
2526
2537
|
this.weightRange = nativeBarcodeExtendedElements.weightRange;
|
|
2538
|
+
this.subFieldDesignator = nativeBarcodeExtendedElements.subFieldDesignator;
|
|
2527
2539
|
}
|
|
2528
2540
|
}
|
|
2529
2541
|
|