@smileid/usesmileid_vision_face 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 -36
- package/ios/UseSmileIDVisionFaceExpo.podspec +2 -5
- package/ios/UseSmileIDVisionFaceModule/ResizingFrameStorage.swift +1 -1
- package/ios/UseSmileIDVisionFaceModule/UseSmileIDVisionFaceKameraAnalysisTick.swift +61 -0
- package/ios/UseSmileIDVisionFaceModule/UseSmileIDVisionFaceModule.swift +6 -13
- package/package.json +13 -14
- package/plugin/build/index.d.ts +10 -1
- package/plugin/build/index.js +1 -132
- 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/UseSmileIDVisionFaceModule/UseSmileIDVisionFaceFrameProcessorPlugin.swift +0 -96
- 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 -136
- package/plugin/src/index.ts +0 -116
- 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_face.test.ts +0 -79
- package/src/index.ts +0 -41
package/src/index.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AnalyzerFactoryKey } from "@smileid/usesmileid_bridge";
|
|
2
|
-
import type { FaceConfig, FaceScanResult } from "@smileid/usesmileid_bridge";
|
|
3
|
-
import { useSmileIDAnalyzerExecutor } from "@smileid/usesmileid_platform_interface";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Apple Vision face analyzer (iOS-only).
|
|
7
|
-
*
|
|
8
|
-
* Thin shim around the existing native session
|
|
9
|
-
* `UseSmileID.UseSmileIDFaceSession(FaceDetectorAnalyzer())` shipped in
|
|
10
|
-
* the `UseSmileIDVisionFace` Swift Package. The native side runs the
|
|
11
|
-
* entire pipeline (analyzer + validator + transitioner + state
|
|
12
|
-
* machine); this TS layer routes calls and validates wire payloads at
|
|
13
|
-
* the channel boundary.
|
|
14
|
-
*
|
|
15
|
-
* The canonical wiring lives in [useSmileIDAnalyzerExecutor] in
|
|
16
|
-
* `usesmileid_platform_interface`.
|
|
17
|
-
*
|
|
18
|
-
* Lifecycle: `configure()` → per-frame analysis via the native frame
|
|
19
|
-
* processor plugin → `reset()`? → `close()`. See
|
|
20
|
-
* `usesmileid_platform_interface` `FaceAnalyzer` for the canonical
|
|
21
|
-
* contract.
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* Must match the Swift Expo Module's `Name("UseSmileIDVisionFace")` and its
|
|
25
|
-
* VisionCamera frame-processor-plugin registration — drift is a runtime
|
|
26
|
-
* "module/plugin not found" error, not a compile error.
|
|
27
|
-
*/
|
|
28
|
-
export const UseSmileIDVisionFaceIdentifiers = {
|
|
29
|
-
nativeModuleName: "UseSmileIDVisionFace",
|
|
30
|
-
frameProcessorPluginName: "UseSmileIDVisionFaceFrameProcessor",
|
|
31
|
-
} as const;
|
|
32
|
-
|
|
33
|
-
export const useSmileIDVisionFace = useSmileIDAnalyzerExecutor({
|
|
34
|
-
nativeModuleName: UseSmileIDVisionFaceIdentifiers.nativeModuleName,
|
|
35
|
-
frameProcessorPluginName:
|
|
36
|
-
UseSmileIDVisionFaceIdentifiers.frameProcessorPluginName,
|
|
37
|
-
kind: "face",
|
|
38
|
-
key: AnalyzerFactoryKey.VisionFace,
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export type { FaceConfig, FaceScanResult };
|