@microblink/camera-manager 7.0.0-next.2
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/dist/camera-manager.js +8243 -0
- package/package.json +70 -0
- package/types/core/Camera.d.ts +33 -0
- package/types/core/Camera.d.ts.map +1 -0
- package/types/core/Camera.test.d.ts +2 -0
- package/types/core/Camera.test.d.ts.map +1 -0
- package/types/core/CameraManager.d.ts +115 -0
- package/types/core/CameraManager.d.ts.map +1 -0
- package/types/core/cameraManagerStore.d.ts +68 -0
- package/types/core/cameraManagerStore.d.ts.map +1 -0
- package/types/core/cameraNames.d.ts +23 -0
- package/types/core/cameraNames.d.ts.map +1 -0
- package/types/core/cameraUtils.d.ts +28 -0
- package/types/core/cameraUtils.d.ts.map +1 -0
- package/types/core/createCustomImageData.d.ts +11 -0
- package/types/core/createCustomImageData.d.ts.map +1 -0
- package/types/core/imageDataUtils.d.ts +3 -0
- package/types/core/imageDataUtils.d.ts.map +1 -0
- package/types/core/iosCameraNames.d.ts +2 -0
- package/types/core/iosCameraNames.d.ts.map +1 -0
- package/types/core/utils.d.ts +4 -0
- package/types/core/utils.d.ts.map +1 -0
- package/types/core/videoToImageData.d.ts +2 -0
- package/types/core/videoToImageData.d.ts.map +1 -0
- package/types/index.d.ts +9 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.rollup.d.ts +279 -0
- package/types/media-mock/MediaMocker.d.ts +809 -0
- package/types/media-mock/MediaMocker.d.ts.map +1 -0
- package/types/media-mock/createInputDeviceInfo.d.ts +14 -0
- package/types/media-mock/createInputDeviceInfo.d.ts.map +1 -0
- package/types/media-mock/defineProperty.d.ts +7 -0
- package/types/media-mock/defineProperty.d.ts.map +1 -0
- package/types/media-mock/fake-devices.d.ts +802 -0
- package/types/media-mock/fake-devices.d.ts.map +1 -0
- package/types/media-mock/utils.d.ts +2 -0
- package/types/media-mock/utils.d.ts.map +1 -0
- package/types/tests/camera-picking.test.d.ts +2 -0
- package/types/tests/camera-picking.test.d.ts.map +1 -0
- package/types/tsdoc-metadata.json +11 -0
- package/types/ui/CameraSelector.d.ts +3 -0
- package/types/ui/CameraSelector.d.ts.map +1 -0
- package/types/ui/CameraUiStoreContext.d.ts +31 -0
- package/types/ui/CameraUiStoreContext.d.ts.map +1 -0
- package/types/ui/CaptureScreen.d.ts +4 -0
- package/types/ui/CaptureScreen.d.ts.map +1 -0
- package/types/ui/ErrorAlert.d.ts +5 -0
- package/types/ui/ErrorAlert.d.ts.map +1 -0
- package/types/ui/Header.d.ts +3 -0
- package/types/ui/Header.d.ts.map +1 -0
- package/types/ui/LocalizationContext.d.ts +16 -0
- package/types/ui/LocalizationContext.d.ts.map +1 -0
- package/types/ui/RootComponent.d.ts +4 -0
- package/types/ui/RootComponent.d.ts.map +1 -0
- package/types/ui/SolidShadowRoot.d.ts +18 -0
- package/types/ui/SolidShadowRoot.d.ts.map +1 -0
- package/types/ui/createCameraManagerUi.d.ts +27 -0
- package/types/ui/createCameraManagerUi.d.ts.map +1 -0
- package/types/ui/locales/en.d.ts +10 -0
- package/types/ui/locales/en.d.ts.map +1 -0
- package/types/ui/zustandRefStore.d.ts +26 -0
- package/types/ui/zustandRefStore.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaMocker.d.ts","sourceRoot":"","sources":["../../src/media-mock/MediaMocker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGjE,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC;IACvC,MAAM,EAAE,MAAM,OAAO,WAAW,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC;IACnB,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC,CAAC;AAEH,cAAM,WAAW;;IACf,UAAU,EAAE,MAAM,OAAO,WAAW,CAAe;IACnD,MAAM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AAM;IAMN,sBAAsB;IAItB,gBAAgB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,CAAC,WAAW,CAAC;IA0B3E,eAAe,IAAI,gBAAgB;IAyDnC,6BAA6B;CAmD9B;AAED,eAAO,MAAM,WAAW,aAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface CreateInputDeviceProps extends Partial<InputDeviceInfo> {
|
|
2
|
+
label: string;
|
|
3
|
+
/**
|
|
4
|
+
* The mock capabilities are used to simulate the capabilities of the device.
|
|
5
|
+
* This is not available on Firefox.
|
|
6
|
+
*/
|
|
7
|
+
mockCapabilities?: Partial<MediaTrackCapabilities>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a fake `InputDeviceInfo` info object.
|
|
11
|
+
*/
|
|
12
|
+
export declare const createInputDeviceInfo: ({ label, deviceId, groupId, kind, mockCapabilities, }: CreateInputDeviceProps) => InputDeviceInfo;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=createInputDeviceInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createInputDeviceInfo.d.ts","sourceRoot":"","sources":["../../src/media-mock/createInputDeviceInfo.ts"],"names":[],"mappings":"AAAA,UAAU,sBAAuB,SAAQ,OAAO,CAAC,eAAe,CAAC;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,0DAS/B,sBAAsB,KAAG,eA0B3B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Taken from
|
|
3
|
+
* https://github.com/eatsjobs/media-mock/blob/main/lib/defineProperty.ts
|
|
4
|
+
* @returns a function that reverts the property to its original value
|
|
5
|
+
*/
|
|
6
|
+
export declare function defineProperty<T extends Record<string | symbol | number, any>>(targetObject: T, property: keyof T, newValue: unknown): () => void;
|
|
7
|
+
//# sourceMappingURL=defineProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineProperty.d.ts","sourceRoot":"","sources":["../../src/media-mock/defineProperty.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,EAC5E,YAAY,EAAE,CAAC,EACf,QAAQ,EAAE,MAAM,CAAC,EACjB,QAAQ,EAAE,OAAO,GAChB,MAAM,IAAI,CAeZ"}
|