@smileid/usesmileid_vision_document 12.0.2 → 12.1.1

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 (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +33 -1
  3. package/dist/index.d.ts +4 -4
  4. package/dist/index.js +1 -34
  5. package/ios/UseSmileIDVisionDocumentExpo.podspec +2 -5
  6. package/ios/UseSmileIDVisionDocumentModule/ResizingFrameStorage.swift +1 -1
  7. package/ios/UseSmileIDVisionDocumentModule/UseSmileIDVisionDocumentKameraAnalysisTick.swift +80 -0
  8. package/ios/UseSmileIDVisionDocumentModule/UseSmileIDVisionDocumentModule.swift +9 -14
  9. package/package.json +13 -14
  10. package/plugin/build/index.d.ts +10 -1
  11. package/plugin/build/index.js +1 -124
  12. package/plugin/build/lib/deployment_target.js +1 -39
  13. package/plugin/build/lib/podfile.d.ts +15 -0
  14. package/plugin/build/lib/podfile.js +159 -130
  15. package/plugin/build/lib/signature_dedup.d.ts +14 -0
  16. package/plugin/build/lib/signature_dedup.js +2 -0
  17. package/plugin/build/lib/spm.d.ts +21 -0
  18. package/plugin/build/lib/spm.js +1 -196
  19. package/dist/index.d.ts.map +0 -1
  20. package/dist/index.js.map +0 -1
  21. package/ios/UseSmileIDVisionDocumentModule/UseSmileIDVisionDocumentFrameProcessorPlugin.swift +0 -149
  22. package/plugin/build/index.js.map +0 -1
  23. package/plugin/build/lib/deployment_target.js.map +0 -1
  24. package/plugin/build/lib/podfile.js.map +0 -1
  25. package/plugin/build/lib/spm.js.map +0 -1
  26. package/plugin/src/__tests__/deployment_target.test.ts +0 -41
  27. package/plugin/src/__tests__/podfile.test.ts +0 -138
  28. package/plugin/src/index.ts +0 -108
  29. package/plugin/src/lib/deployment_target.ts +0 -46
  30. package/plugin/src/lib/podfile.ts +0 -254
  31. package/plugin/src/lib/spm.ts +0 -314
  32. package/plugin/tsconfig.json +0 -24
  33. package/src/__tests__/use_smile_id_vision_document.test.ts +0 -79
  34. 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 };