@uppy/webcam
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -418,2 +418,2 @@ var _class, _temp; | ||
return Webcam; | ||
}(Plugin), _class.VERSION = "1.3.0", _temp); | ||
}(Plugin), _class.VERSION = "1.3.1", _temp); |
{ | ||
"name": "@uppy/webcam", | ||
"description": "Uppy plugin that takes photos or records videos using the device's camera.", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"license": "MIT", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^1.3.0", | ||
"@uppy/utils": "^2.0.0", | ||
"preact": "8.2.9" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "056a7114a15fc7480a4014342d7f2c19305dc96c" | ||
"gitHead": "4e32e61d7c7821ca5d8641a3df741487ea27f0bb" | ||
} |
const { h } = require('preact') | ||
module.exports = (props) => { | ||
return <svg aria-hidden="true" focusable="false" fill="#0097DC" width="66" height="55" viewBox="0 0 66 55"> | ||
<path d="M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z" fill-rule="evenodd" /> | ||
</svg> | ||
return ( | ||
<svg aria-hidden="true" focusable="false" fill="#0097DC" width="66" height="55" viewBox="0 0 66 55"> | ||
<path d="M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z" fill-rule="evenodd" /> | ||
</svg> | ||
) | ||
} |
@@ -348,20 +348,23 @@ const { h } = require('preact') | ||
if (!webcamState.cameraReady) { | ||
return <PermissionsScreen | ||
icon={CameraIcon} | ||
i18n={this.i18n} /> | ||
return ( | ||
<PermissionsScreen icon={CameraIcon} i18n={this.i18n} /> | ||
) | ||
} | ||
return <CameraScreen | ||
{...webcamState} | ||
onSnapshot={this.takeSnapshot} | ||
onStartRecording={this.startRecording} | ||
onStopRecording={this.stopRecording} | ||
onFocus={this.focus} | ||
onStop={this.stop} | ||
i18n={this.i18n} | ||
modes={this.opts.modes} | ||
supportsRecording={supportsMediaRecorder()} | ||
recording={webcamState.isRecording} | ||
mirror={this.opts.mirror} | ||
src={this.stream} /> | ||
return ( | ||
<CameraScreen | ||
{...webcamState} | ||
onSnapshot={this.takeSnapshot} | ||
onStartRecording={this.startRecording} | ||
onStopRecording={this.stopRecording} | ||
onFocus={this.focus} | ||
onStop={this.stop} | ||
i18n={this.i18n} | ||
modes={this.opts.modes} | ||
supportsRecording={supportsMediaRecorder()} | ||
recording={webcamState.isRecording} | ||
mirror={this.opts.mirror} | ||
src={this.stream} | ||
/> | ||
) | ||
} | ||
@@ -368,0 +371,0 @@ |
@@ -6,3 +6,4 @@ const { h } = require('preact') | ||
return ( | ||
<button class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video" | ||
<button | ||
class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video" | ||
type="button" | ||
@@ -12,3 +13,4 @@ title={i18n('stopRecording')} | ||
onclick={onStopRecording} | ||
data-uppy-super-focusable> | ||
data-uppy-super-focusable | ||
> | ||
<svg aria-hidden="true" focusable="false" class="UppyIcon" width="100" height="100" viewBox="0 0 100 100"> | ||
@@ -22,3 +24,4 @@ <rect x="15" y="15" width="70" height="70" /> | ||
return ( | ||
<button class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video" | ||
<button | ||
class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video" | ||
type="button" | ||
@@ -28,3 +31,4 @@ title={i18n('startRecording')} | ||
onclick={onStartRecording} | ||
data-uppy-super-focusable> | ||
data-uppy-super-focusable | ||
> | ||
<svg aria-hidden="true" focusable="false" class="UppyIcon" width="100" height="100" viewBox="0 0 100 100"> | ||
@@ -31,0 +35,0 @@ <circle cx="50" cy="50" r="40" /> |
@@ -6,3 +6,4 @@ const { h } = require('preact') | ||
return ( | ||
<button class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture" | ||
<button | ||
class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture" | ||
type="button" | ||
@@ -12,3 +13,4 @@ title={i18n('takePicture')} | ||
onclick={onSnapshot} | ||
data-uppy-super-focusable> | ||
data-uppy-super-focusable | ||
> | ||
{CameraIcon()} | ||
@@ -15,0 +17,0 @@ </button> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44618
1067
+ Added@uppy/utils@2.4.4(transitive)
- Removed@uppy/utils@1.3.0(transitive)
Updated@uppy/utils@^2.0.0