@meeeetup/camera-react-native 0.8.0 → 0.10.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/README.md +17 -77
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/useFaceCaptureSession.d.ts +1 -12
- package/dist/useFaceCaptureSession.d.ts.map +1 -1
- package/dist/useFaceCaptureSession.js +2 -3
- package/dist/useFaceCaptureSession.js.map +1 -1
- package/package.json +2 -2
- package/dist/useAutoUpload.d.ts +0 -17
- package/dist/useAutoUpload.d.ts.map +0 -1
- package/dist/useAutoUpload.js +0 -51
- package/dist/useAutoUpload.js.map +0 -1
package/README.md
CHANGED
|
@@ -5,11 +5,10 @@ runs on the camera's worklet thread through a native Vision Camera frame
|
|
|
5
5
|
processor (ML Kit), and the results feed the shared tracking and
|
|
6
6
|
quality-selection pipeline.
|
|
7
7
|
|
|
8
|
-
**
|
|
9
|
-
no credential: it calls `onBatchCapture` with base64 JPEG data URLs
|
|
10
|
-
sending them is your code
|
|
11
|
-
|
|
12
|
-
a connection. No pairing UI either way.
|
|
8
|
+
**BYOT (bring your own transport).** The SDK makes no network request and
|
|
9
|
+
holds no credential: it calls `onBatchCapture` with base64 JPEG data URLs and
|
|
10
|
+
sending them is your code — any backend, any auth scheme, any retry strategy.
|
|
11
|
+
No pairing UI.
|
|
13
12
|
|
|
14
13
|
You own the `<Camera>` element and its ref; the hook owns the pipeline.
|
|
15
14
|
|
|
@@ -46,9 +45,6 @@ Permissions: `android.permission.CAMERA` in `AndroidManifest.xml`,
|
|
|
46
45
|
|
|
47
46
|
## Usage
|
|
48
47
|
|
|
49
|
-
This example brings its own transport. For the built-in one, see `autoUpload`
|
|
50
|
-
below.
|
|
51
|
-
|
|
52
48
|
```tsx
|
|
53
49
|
import { useRef } from "react";
|
|
54
50
|
import { useWindowDimensions } from "react-native";
|
|
@@ -111,81 +107,25 @@ call `flushBatch()` yourself. Either way, a flush only hands over faces whose
|
|
|
111
107
|
track has settled for more than 5 s, so a still-improving track is never sent
|
|
112
108
|
early.
|
|
113
109
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
`
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
Session tuning forwarded to `FaceCaptureSession`: `batchIntervalMs`,
|
|
111
|
+
`cooldownMs`, `maxBufferedFaces`, `maxFacesPerRequest` and `matchThreshold`.
|
|
112
|
+
`noseLandmark` is fixed to `"noseBase"` for ML Kit. ML Kit provides only
|
|
113
|
+
keypoints `[0..2]`, so frontalness uses the three-keypoint formula; the
|
|
114
|
+
six-keypoint head pose applies on web only.
|
|
119
115
|
|
|
120
|
-
|
|
121
|
-
const { ready, error, trackedCount, frameProcessor } = useFaceCaptureSession({
|
|
122
|
-
cameraRef: camera,
|
|
123
|
-
sessionType: "passive",
|
|
124
|
-
windowWidth: width,
|
|
125
|
-
windowHeight: height,
|
|
126
|
-
cameraFacing: "front",
|
|
127
|
-
autoUpload: { captureKey },
|
|
128
|
-
});
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
| Field | Type | Default | Meaning |
|
|
132
|
-
|---|---|---|---|
|
|
133
|
-
| `captureKey` | `string` | — | Required. Sent as `Authorization: Bearer <captureKey>` |
|
|
134
|
-
| `endpoint` | `string` | `DEFAULT_CAPTURE_ENDPOINT` | `https://api.meeeetup.com/capture` |
|
|
135
|
-
| `channelId` | `string` | — | Omitted from the body entirely when unset |
|
|
136
|
-
| `maxRetries` | `number` | `2` | Extra attempts after a transient failure |
|
|
137
|
-
| `retryDelayMs` | `number` | `1000` | Base backoff, doubled each attempt |
|
|
138
|
-
| `fetch` | `CaptureFetch` | global `fetch` | Override the HTTP client (tests, proxies) |
|
|
139
|
-
| `onUploaded` | `(result: AutoUploadResult) => void` | — | `{ count, status, attempts }` per request |
|
|
140
|
-
| `onError` | `(error: unknown) => void` | — | Upload failure, or an observer that threw |
|
|
141
|
-
|
|
142
|
-
The request is exactly the `POST /capture` contract of the Meeeetup face-ID
|
|
143
|
-
API: `Content-Type: application/json` and a body of
|
|
144
|
-
`{ images: [{ image, capturedAt }], channelId? }`, where `capturedAt` is each
|
|
145
|
-
face's `createdAt` as an ISO-8601 string. `channelId` is left out of the body
|
|
146
|
-
when unset, because the server schema is strict.
|
|
147
|
-
|
|
148
|
-
Batches reaching the uploader are already chunked to `maxFacesPerRequest`
|
|
149
|
-
(default 50); keep that at or below the key's `maxImagesPerRequest` from
|
|
150
|
-
`GET /capture/keys/me`.
|
|
151
|
-
|
|
152
|
-
### Observers
|
|
153
|
-
|
|
154
|
-
Passing `autoUpload` and `onBatchCapture` together is supported:
|
|
155
|
-
`onBatchCapture` becomes an observer. It is fired without being awaited, so it
|
|
156
|
-
can neither delay nor fail the upload, and anything it throws surfaces on
|
|
157
|
-
`autoUpload.onError` instead of requeueing the batch. Without `autoUpload`,
|
|
158
|
-
`onBatchCapture` keeps its original role — the only output path, and a
|
|
159
|
-
rejection requeues the batch.
|
|
160
|
-
|
|
161
|
-
### Retries
|
|
162
|
-
|
|
163
|
-
A failed request is resent with a byte-identical payload. 5xx, 429, 408 and
|
|
164
|
-
transport failures retry up to `maxRetries` with the backoff doubling each
|
|
165
|
-
attempt; any other 4xx fails immediately. Once attempts are exhausted the
|
|
166
|
-
uploader throws `CaptureUploadError`:
|
|
167
|
-
|
|
168
|
-
```ts
|
|
169
|
-
class CaptureUploadError extends Error {
|
|
170
|
-
status?: number; // absent when the request never completed
|
|
171
|
-
retryable: boolean; // 408/429/5xx/transport failure = true; other 4xx = false
|
|
172
|
-
attempts: number;
|
|
173
|
-
cause?: unknown;
|
|
174
|
-
}
|
|
175
|
-
```
|
|
116
|
+
## Transport
|
|
176
117
|
|
|
177
|
-
`
|
|
178
|
-
|
|
118
|
+
`onBatchCapture` is the only output path. Rejecting (throwing) from the sink
|
|
119
|
+
re-queues the batch; resolving marks it sent. There is no built-in HTTP
|
|
120
|
+
client — pick your own stack (`fetch`, Axios, native HTTP, OkHttp bridge,
|
|
121
|
+
whatever) and send the JPEG data URLs however your backend expects.
|
|
179
122
|
|
|
180
123
|
## Exports
|
|
181
124
|
|
|
182
125
|
`useFaceCaptureSession`, `RNFrameBuffer`, `facesToDetections`,
|
|
183
|
-
`FaceCaptureSession`, `
|
|
184
|
-
`
|
|
185
|
-
|
|
186
|
-
`AutoUploader`, `AutoUploadOptions`, `AutoUploadResult`, `CaptureFetch`,
|
|
187
|
-
`CaptureImage`, `UseFaceCaptureSessionOptions` and
|
|
188
|
-
`UseFaceCaptureSessionReturn` types.
|
|
126
|
+
`FaceCaptureSession`, plus the `Detection`, `FrameBuffer`, `SelectedFace`,
|
|
127
|
+
`NoseLandmark`, `CameraLike`, `VisionCameraFace`, `UseFaceCaptureSessionOptions`
|
|
128
|
+
and `UseFaceCaptureSessionReturn` types.
|
|
189
129
|
|
|
190
130
|
## Licence
|
|
191
131
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export type { Detection, FrameBuffer, SelectedFace, NoseLandmark } from "@meeeetup/camera-core";
|
|
2
2
|
export { FaceCaptureSession } from "@meeeetup/camera-core";
|
|
3
|
-
export { createAutoUploader, CaptureUploadError, DEFAULT_CAPTURE_ENDPOINT } from "@meeeetup/camera-core";
|
|
4
|
-
export type { AutoUploader, AutoUploadOptions, AutoUploadResult, CaptureFetch, CaptureImage, } from "@meeeetup/camera-core";
|
|
5
3
|
export { RNFrameBuffer } from "./frame-buffer";
|
|
6
4
|
export { facesToDetections, type VisionCameraFace } from "./detectors/vision-camera-detector";
|
|
7
5
|
export { useFaceCaptureSession, type UseFaceCaptureSessionOptions, type UseFaceCaptureSessionReturn, type CameraLike, } from "./useFaceCaptureSession";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAO3D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EACL,qBAAqB,EACrB,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,UAAU,GAChB,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFaceCaptureSession = exports.facesToDetections = exports.RNFrameBuffer = exports.
|
|
3
|
+
exports.useFaceCaptureSession = exports.facesToDetections = exports.RNFrameBuffer = exports.FaceCaptureSession = void 0;
|
|
4
4
|
var camera_core_1 = require("@meeeetup/camera-core");
|
|
5
5
|
Object.defineProperty(exports, "FaceCaptureSession", { enumerable: true, get: function () { return camera_core_1.FaceCaptureSession; } });
|
|
6
|
-
// ── Opt-in transport ──────────────────────────────────────────────────────────
|
|
7
|
-
// Pass `autoUpload` to `useFaceCaptureSession` and the SDK posts batches
|
|
8
|
-
// itself. Omit it and the SDK never touches the network.
|
|
9
|
-
var camera_core_2 = require("@meeeetup/camera-core");
|
|
10
|
-
Object.defineProperty(exports, "createAutoUploader", { enumerable: true, get: function () { return camera_core_2.createAutoUploader; } });
|
|
11
|
-
Object.defineProperty(exports, "CaptureUploadError", { enumerable: true, get: function () { return camera_core_2.CaptureUploadError; } });
|
|
12
|
-
Object.defineProperty(exports, "DEFAULT_CAPTURE_ENDPOINT", { enumerable: true, get: function () { return camera_core_2.DEFAULT_CAPTURE_ENDPOINT; } });
|
|
13
6
|
// React Native
|
|
7
|
+
//
|
|
8
|
+
// Transport is yours. The hook's `onBatchCapture` sink is the only output
|
|
9
|
+
// path — sending the JPEG data URLs is your code (fetch, Axios, native
|
|
10
|
+
// HTTP, whatever).
|
|
14
11
|
var frame_buffer_1 = require("./frame-buffer");
|
|
15
12
|
Object.defineProperty(exports, "RNFrameBuffer", { enumerable: true, get: function () { return frame_buffer_1.RNFrameBuffer; } });
|
|
16
13
|
var vision_camera_detector_1 = require("./detectors/vision-camera-detector");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,qDAA2D;AAAlD,iHAAA,kBAAkB,OAAA;AAE3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,qDAA2D;AAAlD,iHAAA,kBAAkB,OAAA;AAE3B,eAAe;AACf,EAAE;AACF,0EAA0E;AAC1E,uEAAuE;AACvE,mBAAmB;AACnB,+CAA+C;AAAtC,6GAAA,aAAa,OAAA;AACtB,6EAA8F;AAArF,2HAAA,iBAAiB,OAAA;AAC1B,iEAKiC;AAJ/B,8HAAA,qBAAqB,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Detection, type FaceCaptureSessionOptions } from "@meeeetup/camera-core";
|
|
2
2
|
import { type ReadonlyFrameProcessor } from "react-native-vision-camera";
|
|
3
3
|
import { type Face } from "react-native-vision-camera-face-detector";
|
|
4
4
|
/**
|
|
@@ -65,17 +65,6 @@ export interface UseFaceCaptureSessionOptions extends Omit<FaceCaptureSessionOpt
|
|
|
65
65
|
* `autoMode`. Default: "front".
|
|
66
66
|
*/
|
|
67
67
|
cameraFacing?: "front" | "back" | "external";
|
|
68
|
-
/**
|
|
69
|
-
* Opt in to the SDK's own transport: each flushed batch is POSTed to the
|
|
70
|
-
* Meeeetup capture endpoint with this capture key, so no upload code is
|
|
71
|
-
* needed on your side. Omit it and the SDK makes no network call at all —
|
|
72
|
-
* `onBatchCapture` stays the only output path.
|
|
73
|
-
*
|
|
74
|
-
* With it set, `onBatchCapture` becomes an observer: it is fired without
|
|
75
|
-
* being awaited, so logging or previewing cannot delay or fail the upload.
|
|
76
|
-
* Observer failures surface on `autoUpload.onError`.
|
|
77
|
-
*/
|
|
78
|
-
autoUpload?: AutoUploadOptions;
|
|
79
68
|
}
|
|
80
69
|
export interface SnapshotInfo {
|
|
81
70
|
/** `file://` URI of the latest cached preview snapshot. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFaceCaptureSession.d.ts","sourceRoot":"","sources":["../src/useFaceCaptureSession.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"useFaceCaptureSession.d.ts","sourceRoot":"","sources":["../src/useFaceCaptureSession.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAqC,KAAK,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAC5G,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAYtF;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,OAAO,CAAC,EAAE;QAClB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;QAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,C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AAW,EAAE,eAAe,GAAG,IAAI,CAAC;IACpC,6DAA6D;IAC7D,cAAc,EAAE,sBAAsB,CAAC;IACvC,+DAA+D;IAC/D,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,4BAA4B,GACjC,2BAA2B,CA+M7B;AAID,YAAY,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -9,7 +9,6 @@ const react_native_worklets_core_1 = require("react-native-worklets-core");
|
|
|
9
9
|
const react_native_1 = require("react-native");
|
|
10
10
|
const frame_buffer_1 = require("./frame-buffer");
|
|
11
11
|
const vision_camera_detector_1 = require("./detectors/vision-camera-detector");
|
|
12
|
-
const useAutoUpload_1 = require("./useAutoUpload");
|
|
13
12
|
const RNFS = react_native_1.NativeModules.RNFSManager
|
|
14
13
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
15
14
|
? require("react-native-fs")
|
|
@@ -50,7 +49,6 @@ function useFaceCaptureSession(opts) {
|
|
|
50
49
|
(0, react_1.useEffect)(() => { optsRef.current = opts; }, [opts]);
|
|
51
50
|
const sessionRef = (0, react_1.useRef)(null);
|
|
52
51
|
const photoCacheRef = (0, react_1.useRef)(null);
|
|
53
|
-
const batchSink = (0, useAutoUpload_1.useAutoUploadSink)(optsRef);
|
|
54
52
|
// ── Session lifecycle ─────────────────────────────────────────────────────
|
|
55
53
|
(0, react_1.useEffect)(() => {
|
|
56
54
|
const session = new camera_core_1.FaceCaptureSession({
|
|
@@ -59,13 +57,14 @@ function useFaceCaptureSession(opts) {
|
|
|
59
57
|
maxBufferedFaces: opts.maxBufferedFaces,
|
|
60
58
|
maxFacesPerRequest: opts.maxFacesPerRequest,
|
|
61
59
|
cooldownMs: opts.cooldownMs,
|
|
60
|
+
matchThreshold: opts.matchThreshold,
|
|
62
61
|
// ML Kit gives noseBase, not noseTip — compensate.
|
|
63
62
|
noseLandmark: "noseBase",
|
|
64
63
|
onSelect: (face) => optsRef.current.onSelect?.(face),
|
|
65
64
|
onTrackRemoved: (id) => optsRef.current.onTrackRemoved?.(id),
|
|
66
65
|
onBatchSent: (n) => optsRef.current.onBatchSent?.(n),
|
|
67
66
|
onBatchError: (e) => optsRef.current.onBatchError?.(e),
|
|
68
|
-
onBatchCapture:
|
|
67
|
+
onBatchCapture: (faces) => optsRef.current.onBatchCapture?.(faces),
|
|
69
68
|
});
|
|
70
69
|
sessionRef.current = session;
|
|
71
70
|
setReady(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFaceCaptureSession.js","sourceRoot":"","sources":["../src/useFaceCaptureSession.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useFaceCaptureSession.js","sourceRoot":"","sources":["../src/useFaceCaptureSession.ts"],"names":[],"mappings":";;AA2JA,sDAiNC;AA5WD,iCAA0E;AAC1E,uDAI+B;AAC/B,2EAA4G;AAC5G,uGAAsF;AACtF,2EAAsD;AACtD,+CAA6C;AAE7C,iDAA+C;AAC/C,+EAA8F;AAE9F,MAAM,IAAI,GAAG,4BAAa,CAAC,WAAW;IACpC,iEAAiE;IACjE,CAAC,CAAE,OAAO,CAAC,iBAAiB,CAAsC;IAClE,CAAC,CAAC,IAAI,CAAC;AAkHT;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,qBAAqB,CACnC,IAAkC;IAElC,MAAM,CAAC,KAAK,EAAW,QAAQ,CAAC,GAAY,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,CAAC,KAAK,EAAW,QAAQ,CAAC,GAAY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,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACL,CAAC,EACD,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,CAAC,CACzC,CAAC;IAEF,MAAM,UAAU,GAAG,IAAA,mBAAW,EAC5B,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,OAAO,CAAC,OAAO,EAAE,EAC3D,EAAE,CACH,CAAC;IAIF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC;AAC/G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meeeetup/camera-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "React Native SDK for meeeetup-cam — Vision Camera + native ML Kit frame processor",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@meeeetup/camera-core": "0.
|
|
18
|
+
"@meeeetup/camera-core": "0.10.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^18 || ^19",
|
package/dist/useAutoUpload.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type AutoUploadOptions, type SelectedFace } from "@meeeetup/camera-core";
|
|
2
|
-
/** The hook options this module reads — kept narrow so it stays testable. */
|
|
3
|
-
export interface AutoUploadSinkOptions {
|
|
4
|
-
autoUpload?: AutoUploadOptions;
|
|
5
|
-
onBatchCapture?: (faces: SelectedFace[]) => void | Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Compose the batch sink with the opt-in uploader.
|
|
9
|
-
*
|
|
10
|
-
* `FaceCaptureSession` is constructed once and reads the latest options through
|
|
11
|
-
* `optsRef`, so the sink must be stable for the hook's lifetime and resolve the
|
|
12
|
-
* uploader per batch. The uploader itself is rebuilt only when a transport
|
|
13
|
-
* field actually changes — consumers pass `autoUpload` as an inline literal, so
|
|
14
|
-
* object identity cannot serve as the cache key.
|
|
15
|
-
*/
|
|
16
|
-
export declare function useAutoUploadSink(optsRef: React.RefObject<AutoUploadSinkOptions>): (faces: SelectedFace[]) => void | Promise<void>;
|
|
17
|
-
//# sourceMappingURL=useAutoUpload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoUpload.d.ts","sourceRoot":"","sources":["../src/useAutoUpload.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;AAaD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC,GAC9C,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAgCjD"}
|
package/dist/useAutoUpload.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useAutoUploadSink = useAutoUploadSink;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const camera_core_1 = require("@meeeetup/camera-core");
|
|
6
|
-
/** Fields that change where a batch lands, as a cache key. */
|
|
7
|
-
function transportKey(config) {
|
|
8
|
-
return [
|
|
9
|
-
config.captureKey,
|
|
10
|
-
config.endpoint ?? "",
|
|
11
|
-
config.channelId ?? "",
|
|
12
|
-
config.maxRetries ?? "",
|
|
13
|
-
config.retryDelayMs ?? "",
|
|
14
|
-
].join("|");
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Compose the batch sink with the opt-in uploader.
|
|
18
|
-
*
|
|
19
|
-
* `FaceCaptureSession` is constructed once and reads the latest options through
|
|
20
|
-
* `optsRef`, so the sink must be stable for the hook's lifetime and resolve the
|
|
21
|
-
* uploader per batch. The uploader itself is rebuilt only when a transport
|
|
22
|
-
* field actually changes — consumers pass `autoUpload` as an inline literal, so
|
|
23
|
-
* object identity cannot serve as the cache key.
|
|
24
|
-
*/
|
|
25
|
-
function useAutoUploadSink(optsRef) {
|
|
26
|
-
const cache = (0, react_1.useRef)(null);
|
|
27
|
-
return (0, react_1.useCallback)((faces) => {
|
|
28
|
-
const opts = optsRef.current;
|
|
29
|
-
const config = opts.autoUpload;
|
|
30
|
-
if (!config?.captureKey)
|
|
31
|
-
return opts.onBatchCapture?.(faces);
|
|
32
|
-
const key = transportKey(config);
|
|
33
|
-
if (cache.current?.key !== key) {
|
|
34
|
-
cache.current = {
|
|
35
|
-
key,
|
|
36
|
-
uploader: (0, camera_core_1.createAutoUploader)({
|
|
37
|
-
captureKey: config.captureKey,
|
|
38
|
-
endpoint: config.endpoint,
|
|
39
|
-
channelId: config.channelId,
|
|
40
|
-
maxRetries: config.maxRetries,
|
|
41
|
-
retryDelayMs: config.retryDelayMs,
|
|
42
|
-
fetch: config.fetch,
|
|
43
|
-
onUploaded: (result) => optsRef.current.autoUpload?.onUploaded?.(result),
|
|
44
|
-
onError: (error) => optsRef.current.autoUpload?.onError?.(error),
|
|
45
|
-
}),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
return (0, camera_core_1.composeBatchSink)(cache.current.uploader, opts.onBatchCapture, (error) => optsRef.current.autoUpload?.onError?.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