@smileid/usesmileid_vision_document 12.0.2 → 12.1.0
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 +7 -0
- package/README.md +33 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -34
- package/ios/UseSmileIDVisionDocumentExpo.podspec +2 -5
- package/ios/UseSmileIDVisionDocumentModule/ResizingFrameStorage.swift +1 -1
- package/ios/UseSmileIDVisionDocumentModule/UseSmileIDVisionDocumentKameraAnalysisTick.swift +80 -0
- package/ios/UseSmileIDVisionDocumentModule/UseSmileIDVisionDocumentModule.swift +9 -14
- package/package.json +13 -14
- package/plugin/build/index.d.ts +10 -1
- package/plugin/build/index.js +1 -124
- package/plugin/build/lib/deployment_target.js +1 -39
- package/plugin/build/lib/podfile.d.ts +15 -0
- package/plugin/build/lib/podfile.js +159 -130
- package/plugin/build/lib/signature_dedup.d.ts +14 -0
- package/plugin/build/lib/signature_dedup.js +2 -0
- package/plugin/build/lib/spm.d.ts +21 -0
- package/plugin/build/lib/spm.js +1 -196
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/ios/UseSmileIDVisionDocumentModule/UseSmileIDVisionDocumentFrameProcessorPlugin.swift +0 -149
- package/plugin/build/index.js.map +0 -1
- package/plugin/build/lib/deployment_target.js.map +0 -1
- package/plugin/build/lib/podfile.js.map +0 -1
- package/plugin/build/lib/spm.js.map +0 -1
- package/plugin/src/__tests__/deployment_target.test.ts +0 -41
- package/plugin/src/__tests__/podfile.test.ts +0 -138
- package/plugin/src/index.ts +0 -108
- package/plugin/src/lib/deployment_target.ts +0 -46
- package/plugin/src/lib/podfile.ts +0 -254
- package/plugin/src/lib/spm.ts +0 -314
- package/plugin/tsconfig.json +0 -24
- package/src/__tests__/use_smile_id_vision_document.test.ts +0 -79
- package/src/index.ts +0 -42
package/src/index.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
DocumentConfig,
|
|
3
|
-
DocumentScanResult,
|
|
4
|
-
} from "@smileid/usesmileid_bridge";
|
|
5
|
-
import { useSmileIDAnalyzerExecutor } from "@smileid/usesmileid_platform_interface";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Apple Vision document analyzer (iOS-only).
|
|
9
|
-
*
|
|
10
|
-
* Thin shim around the existing native session
|
|
11
|
-
* `UseSmileID.UseSmileIDDocumentSession(DocumentDetectorAnalyzer())` shipped
|
|
12
|
-
* in the `UseSmileIDVisionDocument` Swift Package. The native side runs the
|
|
13
|
-
* entire pipeline (analyzer + validator + transitioner + state machine);
|
|
14
|
-
* this TS layer routes calls and validates wire payloads at the channel
|
|
15
|
-
* boundary.
|
|
16
|
-
*
|
|
17
|
-
* The canonical wiring lives in [useSmileIDAnalyzerExecutor] in
|
|
18
|
-
* `usesmileid_platform_interface`.
|
|
19
|
-
*
|
|
20
|
-
* Lifecycle: `configure()` → per-frame analysis via the native frame
|
|
21
|
-
* processor plugin → `reset()`? → `close()`. See
|
|
22
|
-
* `usesmileid_platform_interface` `DocumentAnalyzer` for the canonical
|
|
23
|
-
* contract.
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
* Must match the Swift Expo Module's `Name("UseSmileIDVisionDocument")` and
|
|
27
|
-
* its VisionCamera frame-processor-plugin registration — drift is a runtime
|
|
28
|
-
* "module/plugin not found" error, not a compile error.
|
|
29
|
-
*/
|
|
30
|
-
export const UseSmileIDVisionDocumentIdentifiers = {
|
|
31
|
-
nativeModuleName: "UseSmileIDVisionDocument",
|
|
32
|
-
frameProcessorPluginName: "UseSmileIDVisionDocumentFrameProcessor",
|
|
33
|
-
} as const;
|
|
34
|
-
|
|
35
|
-
export const useSmileIDVisionDocument = useSmileIDAnalyzerExecutor({
|
|
36
|
-
nativeModuleName: UseSmileIDVisionDocumentIdentifiers.nativeModuleName,
|
|
37
|
-
frameProcessorPluginName:
|
|
38
|
-
UseSmileIDVisionDocumentIdentifiers.frameProcessorPluginName,
|
|
39
|
-
kind: "document",
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export type { DocumentConfig, DocumentScanResult };
|