@ionic/pwa-elements
Advanced tools
Comparing version 3.0.3 to 3.1.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
core.patchBrowser().then(options => { | ||
return core.bootstrapLazy([["pwa-camera-modal.cjs",[[1,"pwa-camera-modal",{"present":[64],"dismiss":[64]}]]],["pwa-action-sheet.cjs",[[1,"pwa-action-sheet",{"header":[1],"cancelable":[4],"options":[16],"open":[32]}]]],["pwa-toast.cjs",[[1,"pwa-toast",{"message":[1],"duration":[2],"closing":[32]}]]],["pwa-camera.cjs",[[1,"pwa-camera",{"facingMode":[1,"facing-mode"],"handlePhoto":[16],"handleNoDeviceError":[16],"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"],"photo":[32],"photoSrc":[32],"showShutterOverlay":[32],"flashIndex":[32],"hasCamera":[32],"rotation":[32],"deviceError":[32]}]]],["pwa-camera-modal-instance.cjs",[[1,"pwa-camera-modal-instance",{"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]], options); | ||
return core.bootstrapLazy([["pwa-camera-modal.cjs",[[1,"pwa-camera-modal",{"facingMode":[1,"facing-mode"],"present":[64],"dismiss":[64]}]]],["pwa-action-sheet.cjs",[[1,"pwa-action-sheet",{"header":[1],"cancelable":[4],"options":[16],"open":[32]}]]],["pwa-toast.cjs",[[1,"pwa-toast",{"message":[1],"duration":[2],"closing":[32]}]]],["pwa-camera.cjs",[[1,"pwa-camera",{"facingMode":[1,"facing-mode"],"handlePhoto":[16],"handleNoDeviceError":[16],"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"],"photo":[32],"photoSrc":[32],"showShutterOverlay":[32],"flashIndex":[32],"hasCamera":[32],"rotation":[32],"deviceError":[32]}]]],["pwa-camera-modal-instance.cjs",[[1,"pwa-camera-modal-instance",{"facingMode":[1,"facing-mode"],"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]], options); | ||
}); |
@@ -9,3 +9,3 @@ 'use strict'; | ||
return core.patchEsm().then(() => { | ||
core.bootstrapLazy([["pwa-camera-modal.cjs",[[1,"pwa-camera-modal",{"present":[64],"dismiss":[64]}]]],["pwa-action-sheet.cjs",[[1,"pwa-action-sheet",{"header":[1],"cancelable":[4],"options":[16],"open":[32]}]]],["pwa-toast.cjs",[[1,"pwa-toast",{"message":[1],"duration":[2],"closing":[32]}]]],["pwa-camera.cjs",[[1,"pwa-camera",{"facingMode":[1,"facing-mode"],"handlePhoto":[16],"handleNoDeviceError":[16],"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"],"photo":[32],"photoSrc":[32],"showShutterOverlay":[32],"flashIndex":[32],"hasCamera":[32],"rotation":[32],"deviceError":[32]}]]],["pwa-camera-modal-instance.cjs",[[1,"pwa-camera-modal-instance",{"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]], options); | ||
core.bootstrapLazy([["pwa-camera-modal.cjs",[[1,"pwa-camera-modal",{"facingMode":[1,"facing-mode"],"present":[64],"dismiss":[64]}]]],["pwa-action-sheet.cjs",[[1,"pwa-action-sheet",{"header":[1],"cancelable":[4],"options":[16],"open":[32]}]]],["pwa-toast.cjs",[[1,"pwa-toast",{"message":[1],"duration":[2],"closing":[32]}]]],["pwa-camera.cjs",[[1,"pwa-camera",{"facingMode":[1,"facing-mode"],"handlePhoto":[16],"handleNoDeviceError":[16],"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"],"photo":[32],"photoSrc":[32],"showShutterOverlay":[32],"flashIndex":[32],"hasCamera":[32],"rotation":[32],"deviceError":[32]}]]],["pwa-camera-modal-instance.cjs",[[1,"pwa-camera-modal-instance",{"facingMode":[1,"facing-mode"],"noDevicesText":[1,"no-devices-text"],"noDevicesButtonText":[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]], options); | ||
}); | ||
@@ -12,0 +12,0 @@ }; |
@@ -10,2 +10,3 @@ 'use strict'; | ||
core.registerInstance(this, hostRef); | ||
this.facingMode = 'user'; | ||
this.noDevicesText = 'No camera found'; | ||
@@ -36,3 +37,3 @@ this.noDevicesButtonText = 'Choose image'; | ||
render() { | ||
return (core.h("div", { class: "wrapper", onClick: e => this.handleBackdropClick(e) }, core.h("div", { class: "content" }, core.h("pwa-camera", { onClick: e => this.handleComponentClick(e), handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
return (core.h("div", { class: "wrapper", onClick: e => this.handleBackdropClick(e) }, core.h("div", { class: "content" }, core.h("pwa-camera", { onClick: e => this.handleComponentClick(e), facingMode: this.facingMode, handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
} | ||
@@ -39,0 +40,0 @@ get el() { return core.getElement(this); } |
@@ -10,2 +10,3 @@ 'use strict'; | ||
core.registerInstance(this, hostRef); | ||
this.facingMode = 'user'; | ||
this.onPhoto = core.createEvent(this, "onPhoto", 7); | ||
@@ -16,2 +17,3 @@ this.noDeviceError = core.createEvent(this, "noDeviceError", 7); | ||
const camera = document.createElement('pwa-camera-modal-instance'); | ||
camera.facingMode = this.facingMode; | ||
camera.addEventListener('onPhoto', async (e) => { | ||
@@ -18,0 +20,0 @@ if (!this._modal) { |
@@ -185,3 +185,3 @@ 'use strict'; | ||
this.handleShutterClick = (_e) => { | ||
console.log(); | ||
console.debug('shutter click'); | ||
this.capture(); | ||
@@ -221,3 +221,3 @@ }; | ||
const orientation = await this.getOrientation(file); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -230,3 +230,3 @@ } | ||
this.handleVideoMetadata = (e) => { | ||
console.log('Video metadata', e); | ||
console.debug('Video metadata', e); | ||
}; | ||
@@ -312,2 +312,5 @@ this.isServer = core.getContext(this, "isServer"); | ||
stopStream() { | ||
if (this.videoElement) { | ||
this.videoElement.srcObject = null; | ||
} | ||
this.stream && this.stream.getTracks().forEach(track => track.stop()); | ||
@@ -333,3 +336,3 @@ } | ||
const orientation = await this.getOrientation(photo); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -427,3 +430,3 @@ if (orientation) { | ||
setFlashMode(mode) { | ||
console.log('New flash mode: ', mode); | ||
console.debug('New flash mode: ', mode); | ||
this.flashMode = mode; | ||
@@ -430,0 +433,0 @@ } |
{ | ||
"entries": [ | ||
"components/camera-modal/camera-modal.js", | ||
"components/action-sheet/action-sheet.js", | ||
"components/camera-modal/camera-modal-instance.js", | ||
"components/camera-modal/camera-modal.js", | ||
"components/toast/toast.js", | ||
"components/camera/camera.js" | ||
"components/camera/camera.js", | ||
"components/toast/toast.js" | ||
], | ||
@@ -9,0 +9,0 @@ "compiler": { |
import { h } from "@stencil/core"; | ||
export class PWACameraModal { | ||
constructor() { | ||
this.facingMode = 'user'; | ||
this.noDevicesText = 'No camera found'; | ||
@@ -29,3 +30,3 @@ this.noDevicesButtonText = 'Choose image'; | ||
h("div", { class: "content" }, | ||
h("pwa-camera", { onClick: e => this.handleComponentClick(e), handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
h("pwa-camera", { onClick: e => this.handleComponentClick(e), facingMode: this.facingMode, handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
} | ||
@@ -41,2 +42,20 @@ static get is() { return "pwa-camera-modal-instance"; } | ||
static get properties() { return { | ||
"facingMode": { | ||
"type": "string", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "string", | ||
"resolved": "string", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "facing-mode", | ||
"reflect": false, | ||
"defaultValue": "'user'" | ||
}, | ||
"noDevicesText": { | ||
@@ -43,0 +62,0 @@ "type": "string", |
import { h } from "@stencil/core"; | ||
export class PWACameraModal { | ||
constructor() { | ||
this.facingMode = 'user'; | ||
} | ||
async present() { | ||
const camera = document.createElement('pwa-camera-modal-instance'); | ||
camera.facingMode = this.facingMode; | ||
camera.addEventListener('onPhoto', async (e) => { | ||
@@ -36,2 +40,22 @@ if (!this._modal) { | ||
}; } | ||
static get properties() { return { | ||
"facingMode": { | ||
"type": "string", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "string", | ||
"resolved": "string", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "facing-mode", | ||
"reflect": false, | ||
"defaultValue": "'user'" | ||
} | ||
}; } | ||
static get events() { return [{ | ||
@@ -38,0 +62,0 @@ "method": "onPhoto", |
@@ -24,3 +24,3 @@ import { h } from "@stencil/core"; | ||
this.handleShutterClick = (_e) => { | ||
console.log(); | ||
console.debug('shutter click'); | ||
this.capture(); | ||
@@ -60,3 +60,3 @@ }; | ||
const orientation = await this.getOrientation(file); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -69,3 +69,3 @@ } | ||
this.handleVideoMetadata = (e) => { | ||
console.log('Video metadata', e); | ||
console.debug('Video metadata', e); | ||
}; | ||
@@ -150,2 +150,5 @@ } | ||
stopStream() { | ||
if (this.videoElement) { | ||
this.videoElement.srcObject = null; | ||
} | ||
this.stream && this.stream.getTracks().forEach(track => track.stop()); | ||
@@ -171,3 +174,3 @@ } | ||
const orientation = await this.getOrientation(photo); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -265,3 +268,3 @@ if (orientation) { | ||
setFlashMode(mode) { | ||
console.log('New flash mode: ', mode); | ||
console.debug('New flash mode: ', mode); | ||
this.flashMode = mode; | ||
@@ -268,0 +271,0 @@ } |
@@ -42,2 +42,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
registerInstance(this, hostRef); | ||
this.facingMode = 'user'; | ||
this.noDevicesText = 'No camera found'; | ||
@@ -75,3 +76,3 @@ this.noDevicesButtonText = 'Choose image'; | ||
var _this = this; | ||
return (h("div", { class: "wrapper", onClick: function (e) { return _this.handleBackdropClick(e); } }, h("div", { class: "content" }, h("pwa-camera", { onClick: function (e) { return _this.handleComponentClick(e); }, handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
return (h("div", { class: "wrapper", onClick: function (e) { return _this.handleBackdropClick(e); } }, h("div", { class: "content" }, h("pwa-camera", { onClick: function (e) { return _this.handleComponentClick(e); }, facingMode: this.facingMode, handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
}; | ||
@@ -78,0 +79,0 @@ Object.defineProperty(class_1.prototype, "el", { |
@@ -41,2 +41,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
registerInstance(this, hostRef); | ||
this.facingMode = 'user'; | ||
this.onPhoto = createEvent(this, "onPhoto", 7); | ||
@@ -51,2 +52,3 @@ this.noDeviceError = createEvent(this, "noDeviceError", 7); | ||
camera = document.createElement('pwa-camera-modal-instance'); | ||
camera.facingMode = this.facingMode; | ||
camera.addEventListener('onPhoto', function (e) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -53,0 +55,0 @@ var photo; |
@@ -223,3 +223,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.handleShutterClick = function (_e) { | ||
console.log(); | ||
console.debug('shutter click'); | ||
_this.capture(); | ||
@@ -267,3 +267,3 @@ }; | ||
orientation = _a.sent(); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -281,3 +281,3 @@ return [3 /*break*/, 4]; | ||
this.handleVideoMetadata = function (e) { | ||
console.log('Video metadata', e); | ||
console.debug('Video metadata', e); | ||
}; | ||
@@ -424,2 +424,5 @@ this.isServer = getContext(this, "isServer"); | ||
class_1.prototype.stopStream = function () { | ||
if (this.videoElement) { | ||
this.videoElement.srcObject = null; | ||
} | ||
this.stream && this.stream.getTracks().forEach(function (track) { return track.stop(); }); | ||
@@ -468,3 +471,3 @@ }; | ||
orientation = _a.sent(); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -566,3 +569,3 @@ if (orientation) { | ||
class_1.prototype.setFlashMode = function (mode) { | ||
console.log('New flash mode: ', mode); | ||
console.debug('New flash mode: ', mode); | ||
this.flashMode = mode; | ||
@@ -569,0 +572,0 @@ }; |
@@ -6,2 +6,3 @@ import { r as registerInstance, c as createEvent, h, g as getElement } from './core-f86805ad.js'; | ||
registerInstance(this, hostRef); | ||
this.facingMode = 'user'; | ||
this.noDevicesText = 'No camera found'; | ||
@@ -32,3 +33,3 @@ this.noDevicesButtonText = 'Choose image'; | ||
render() { | ||
return (h("div", { class: "wrapper", onClick: e => this.handleBackdropClick(e) }, h("div", { class: "content" }, h("pwa-camera", { onClick: e => this.handleComponentClick(e), handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
return (h("div", { class: "wrapper", onClick: e => this.handleBackdropClick(e) }, h("div", { class: "content" }, h("pwa-camera", { onClick: e => this.handleComponentClick(e), facingMode: this.facingMode, handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText })))); | ||
} | ||
@@ -35,0 +36,0 @@ get el() { return getElement(this); } |
@@ -6,2 +6,3 @@ import { r as registerInstance, c as createEvent, h } from './core-f86805ad.js'; | ||
registerInstance(this, hostRef); | ||
this.facingMode = 'user'; | ||
this.onPhoto = createEvent(this, "onPhoto", 7); | ||
@@ -12,2 +13,3 @@ this.noDeviceError = createEvent(this, "noDeviceError", 7); | ||
const camera = document.createElement('pwa-camera-modal-instance'); | ||
camera.facingMode = this.facingMode; | ||
camera.addEventListener('onPhoto', async (e) => { | ||
@@ -14,0 +16,0 @@ if (!this._modal) { |
@@ -181,3 +181,3 @@ import { r as registerInstance, d as getContext, h, g as getElement } from './core-f86805ad.js'; | ||
this.handleShutterClick = (_e) => { | ||
console.log(); | ||
console.debug('shutter click'); | ||
this.capture(); | ||
@@ -217,3 +217,3 @@ }; | ||
const orientation = await this.getOrientation(file); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -226,3 +226,3 @@ } | ||
this.handleVideoMetadata = (e) => { | ||
console.log('Video metadata', e); | ||
console.debug('Video metadata', e); | ||
}; | ||
@@ -308,2 +308,5 @@ this.isServer = getContext(this, "isServer"); | ||
stopStream() { | ||
if (this.videoElement) { | ||
this.videoElement.srcObject = null; | ||
} | ||
this.stream && this.stream.getTracks().forEach(track => track.stop()); | ||
@@ -329,3 +332,3 @@ } | ||
const orientation = await this.getOrientation(photo); | ||
console.log('Got orientation', orientation); | ||
console.debug('Got orientation', orientation); | ||
this.photoOrientation = orientation; | ||
@@ -423,3 +426,3 @@ if (orientation) { | ||
setFlashMode(mode) { | ||
console.log('New flash mode: ', mode); | ||
console.debug('New flash mode: ', mode); | ||
this.flashMode = mode; | ||
@@ -426,0 +429,0 @@ } |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as o}from"./p-15febc39.js";e().then(e=>o([["p-bjfgqh5l",[[1,"pwa-camera-modal",{present:[64],dismiss:[64]}]]],["p-fhfll3cn",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["p-zqzr1fwg",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["p-knb9aomv",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["p-w86kjxwh",[[1,"pwa-camera-modal-instance",{noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]],e)); | ||
import{p as e,b as o}from"./p-15febc39.js";e().then(e=>o([["p-bkfsoe1v",[[1,"pwa-camera-modal",{facingMode:[1,"facing-mode"],present:[64],dismiss:[64]}]]],["p-fhfll3cn",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["p-zqzr1fwg",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["p-jfp542e0",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["p-gbpzcszq",[[1,"pwa-camera-modal-instance",{facingMode:[1,"facing-mode"],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]],e)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-af1e6af1.system.js"],(function(){"use strict";var e,t;return{setters:[function(s){e=s.p;t=s.b}],execute:function(){e().then((function(e){return t([["p-sfl5sv99.system",[[1,"pwa-camera-modal",{present:[64],dismiss:[64]}]]],["p-lu2lsra5.system",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["p-yeodxb9a.system",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["p-5q3oayfi.system",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["p-xfzhztoe.system",[[1,"pwa-camera-modal-instance",{noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]],e)}))}}})); | ||
System.register(["./p-af1e6af1.system.js"],(function(){"use strict";var e,t;return{setters:[function(o){e=o.p;t=o.b}],execute:function(){e().then((function(e){return t([["p-uvlmfwq9.system",[[1,"pwa-camera-modal",{facingMode:[1,"facing-mode"],present:[64],dismiss:[64]}]]],["p-lu2lsra5.system",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["p-yeodxb9a.system",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["p-ieeicgib.system",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["p-5rhrbdj5.system",[[1,"pwa-camera-modal-instance",{facingMode:[1,"facing-mode"],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[32,"keyup","handleBackdropKeyUp"]]]]]],e)}))}}})); |
@@ -29,5 +29,7 @@ /* eslint-disable */ | ||
'dismiss': () => Promise<void>; | ||
'facingMode': string; | ||
'present': () => Promise<void>; | ||
} | ||
interface PwaCameraModalInstance { | ||
'facingMode': string; | ||
'noDevicesButtonText': string; | ||
@@ -98,2 +100,3 @@ 'noDevicesText': string; | ||
interface PwaCameraModal { | ||
'facingMode'?: string; | ||
'onNoDeviceError'?: (event: CustomEvent<any>) => void; | ||
@@ -103,2 +106,3 @@ 'onOnPhoto'?: (event: CustomEvent<any>) => void; | ||
interface PwaCameraModalInstance { | ||
'facingMode'?: string; | ||
'noDevicesButtonText'?: string; | ||
@@ -105,0 +109,0 @@ 'noDevicesText'?: string; |
@@ -6,2 +6,3 @@ import { EventEmitter } from '../../stencil.core'; | ||
noDeviceError: EventEmitter; | ||
facingMode: string; | ||
noDevicesText: string; | ||
@@ -8,0 +9,0 @@ noDevicesButtonText: string; |
import { EventEmitter } from '../../stencil.core'; | ||
export declare class PWACameraModal { | ||
facingMode: string; | ||
onPhoto: EventEmitter; | ||
@@ -4,0 +5,0 @@ noDeviceError: EventEmitter; |
{ | ||
"name": "@ionic/pwa-elements", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"description": "Stencil Component Starter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1038973
16475