@ai-matrx/capture 0.5.0 → 0.5.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.
- package/CHANGELOG.md +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -127,3 +127,25 @@ The injected-engine seam is unchanged: hosts with their own cross-feature
|
|
|
127
127
|
media runtime (matrx-frontend's lease manager) still inject a
|
|
128
128
|
`CaptureCameraEngine`; their adapters now import the package's crop /
|
|
129
129
|
classification / flip helpers instead of carrying twins.
|
|
130
|
+
|
|
131
|
+
### Consumer action (C28)
|
|
132
|
+
|
|
133
|
+
- **Host engine adapters**: delete local copies of the aspect crop, the
|
|
134
|
+
NotAllowedError/SecurityError classification, and the flip-cycling
|
|
135
|
+
algorithm — import `cropBlobToAspect`, `classifyCameraBlockReason`,
|
|
136
|
+
`nextCameraDevice`, `PHOTO_JPEG_QUALITY` from `@ai-matrx/capture/react`.
|
|
137
|
+
Any remaining adapter line must be lease-runtime identity wiring with a
|
|
138
|
+
C22 justification. (matrx-frontend: done same-session.)
|
|
139
|
+
- **Host cloud-library sheets**: replace bespoke tiled-gallery chrome with
|
|
140
|
+
the package `CloudLibrarySheet` — the host supplies
|
|
141
|
+
`items: CaptureCloudLibraryItem[]` (own thumbnail nodes), `loading`,
|
|
142
|
+
`onOpenItem`, optional `onUpload` (v3 in-library door). (matrx-frontend:
|
|
143
|
+
host copy collapsed to a data wrapper, consumer props unchanged.)
|
|
144
|
+
- **Runtime-less hosts**: adopt the rewritten `useDefaultCaptureEngine`
|
|
145
|
+
(now returns `DefaultCaptureEngine` = engine + `flash` +
|
|
146
|
+
`capturePhotoWith`; new options `mode`, `fileNamePrefix`, `onError`).
|
|
147
|
+
No breaking signature change — existing options still work.
|
|
148
|
+
- **`DefaultEngineOptions` behavior delta**: video capture callbacks now
|
|
149
|
+
fire with warm-mic-managed audio and the combined permission prompt;
|
|
150
|
+
hosts that suppressed their own double-prompt workarounds can delete
|
|
151
|
+
them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/capture",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The AI Matrx capture kit: the opinionated iPhone-style camera chrome — translucent viewfinder bars, two-tap options grid, zoom pills, shutter, VIDEO·PHOTO·UPLOAD mode row, iOS-style sheets, instant in-browser crop/rotate editing — cloud-first by law (the cloud port is required), engine-injected (the host owns getUserMedia), and slot-extensible for domain add-ons.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|