@ionic/pwa-elements
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"entries": [ | ||
"components/camera-modal/camera-modal-instance.js", | ||
"components/camera-modal/camera-modal.js", | ||
"components/camera-modal/camera-modal-instance.js", | ||
"components/toast/toast.js", | ||
@@ -10,4 +10,4 @@ "components/camera/camera.js" | ||
"name": "@stencil/core", | ||
"version": "1.0.0-beta.5", | ||
"typescriptVersion": "3.4.5" | ||
"version": "1.3.2", | ||
"typescriptVersion": "3.5.3" | ||
}, | ||
@@ -14,0 +14,0 @@ "collections": [], |
@@ -1,2 +0,2 @@ | ||
import { h } from '@stencil/core'; | ||
import { h } from "@stencil/core"; | ||
export class PWACameraModal { | ||
@@ -3,0 +3,0 @@ async handlePhoto(photo) { |
@@ -1,2 +0,2 @@ | ||
import { h } from '@stencil/core'; | ||
import { h } from "@stencil/core"; | ||
export class PWACameraModal { | ||
@@ -3,0 +3,0 @@ async present() { |
@@ -1,2 +0,2 @@ | ||
import { h } from '@stencil/core'; | ||
import { h } from "@stencil/core"; | ||
import './imagecapture'; | ||
@@ -3,0 +3,0 @@ export class CameraPWA { |
@@ -1,2 +0,2 @@ | ||
import { h } from '@stencil/core'; | ||
import { h } from "@stencil/core"; | ||
export class PWAToast { | ||
@@ -3,0 +3,0 @@ constructor() { |
@@ -1,1 +0,6 @@ | ||
import{a,b as e}from"./p-7a741ef8.js";a().then(a=>e([["p-biwru87b",[[1,"pwa-camera-modal",{present:[64],dismiss:[64]}]]],["p-fdm4yntq",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["p-xgtgrjtl",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],onPhoto:[16],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32]}]]],["p-ctbsxitn",[[1,"pwa-camera-modal-instance",null,[[32,"keyup","handleBackdropKeyUp"]]]]]],{resourcesUrl:a})); | ||
import { p as patchBrowser, g as globals, b as bootstrapLazy } from './core-b0ca243c.js'; | ||
patchBrowser().then(options => { | ||
globals(); | ||
return bootstrapLazy([["pwa-camera-modal-instance",[[1,"pwa-camera-modal-instance",null,[[32,"keyup","handleBackdropKeyUp"]]]]],["pwa-camera-modal",[[1,"pwa-camera-modal",{"present":[64],"dismiss":[64]}]]],["pwa-toast",[[1,"pwa-toast",{"message":[1],"duration":[2],"closing":[32]}]]],["pwa-camera",[[1,"pwa-camera",{"facingMode":[1,"facing-mode"],"onPhoto":[16],"photo":[32],"photoSrc":[32],"showShutterOverlay":[32],"flashIndex":[32]}]]]], options); | ||
}); |
@@ -27,40 +27,5 @@ /* tslint:disable */ | ||
declare namespace LocalJSX { | ||
interface PwaCamera extends JSXBase.HTMLAttributes { | ||
'facingMode'?: string; | ||
'onPhoto'?: (e: any) => void; | ||
} | ||
interface PwaCameraModal extends JSXBase.HTMLAttributes { | ||
'onOnPhoto'?: (event: CustomEvent<any>) => void; | ||
} | ||
interface PwaCameraModalInstance extends JSXBase.HTMLAttributes { | ||
'onOnPhoto'?: (event: CustomEvent<any>) => void; | ||
} | ||
interface PwaToast extends JSXBase.HTMLAttributes { | ||
'duration'?: number; | ||
'message'?: string; | ||
} | ||
interface IntrinsicElements { | ||
'pwa-camera': PwaCamera; | ||
'pwa-camera-modal': PwaCameraModal; | ||
'pwa-camera-modal-instance': PwaCameraModalInstance; | ||
'pwa-toast': PwaToast; | ||
} | ||
} | ||
export { LocalJSX as JSX }; | ||
declare module "@stencil/core" { | ||
export namespace JSX { | ||
interface IntrinsicElements extends LocalJSX.IntrinsicElements {} | ||
} | ||
} | ||
declare global { | ||
interface HTMLPwaCameraElement extends Components.PwaCamera, HTMLStencilElement {} | ||
@@ -89,3 +54,2 @@ var HTMLPwaCameraElement: { | ||
}; | ||
interface HTMLElementTagNameMap { | ||
@@ -97,5 +61,37 @@ 'pwa-camera': HTMLPwaCameraElement; | ||
} | ||
} | ||
interface ElementTagNameMap extends HTMLElementTagNameMap {} | ||
declare namespace LocalJSX { | ||
interface PwaCamera extends JSXBase.HTMLAttributes<HTMLPwaCameraElement> { | ||
'facingMode'?: string; | ||
'onPhoto'?: (e: any) => void; | ||
} | ||
interface PwaCameraModal extends JSXBase.HTMLAttributes<HTMLPwaCameraModalElement> { | ||
'onOnPhoto'?: (event: CustomEvent<any>) => void; | ||
} | ||
interface PwaCameraModalInstance extends JSXBase.HTMLAttributes<HTMLPwaCameraModalInstanceElement> { | ||
'onOnPhoto'?: (event: CustomEvent<any>) => void; | ||
} | ||
interface PwaToast extends JSXBase.HTMLAttributes<HTMLPwaToastElement> { | ||
'duration'?: number; | ||
'message'?: string; | ||
} | ||
interface IntrinsicElements { | ||
'pwa-camera': PwaCamera; | ||
'pwa-camera-modal': PwaCameraModal; | ||
'pwa-camera-modal-instance': PwaCameraModalInstance; | ||
'pwa-toast': PwaToast; | ||
} | ||
} | ||
export { LocalJSX as JSX }; | ||
declare module "@stencil/core" { | ||
export namespace JSX { | ||
interface IntrinsicElements extends LocalJSX.IntrinsicElements {} | ||
} | ||
} | ||
@@ -38,3 +38,3 @@ import { FlashMode } from '../../definitions'; | ||
cycleFlash(): void; | ||
flashScreen(): Promise<{}>; | ||
flashScreen(): Promise<unknown>; | ||
handleShutterClick(_e: Event): void; | ||
@@ -41,0 +41,0 @@ handleRotateClick(_e: Event): void; |
@@ -64,6 +64,9 @@ /** | ||
export interface ComponentInstance { | ||
export interface ComponentInterface { | ||
connectedCallback?: () => void; | ||
disconnectedCallback?: () => void; | ||
componentWillRender?: () => Promise<void> | void; | ||
componentDidRender?: () => void; | ||
/** | ||
@@ -111,20 +114,4 @@ * The component is about to load and it has not | ||
/** | ||
* The component did unload and the element | ||
* will be destroyed. | ||
*/ | ||
componentDidUnload?: () => void; | ||
render?: () => any; | ||
/** | ||
* Used to dynamically set host element attributes. | ||
* Should be placed directly above render() | ||
*/ | ||
hostData?: () => { | ||
class?: {[className: string]: boolean}; | ||
style?: any; | ||
[attrName: string]: any; | ||
}; | ||
[memberName: string]: any; | ||
@@ -811,6 +798,5 @@ } | ||
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes { | ||
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> { | ||
// vdom specific | ||
innerHTML?: string; | ||
ref?: (elm?: T) => void; | ||
key?: string | number; | ||
@@ -830,3 +816,2 @@ | ||
lang?: string; | ||
slot?: string; | ||
spellCheck?: boolean; | ||
@@ -883,3 +868,3 @@ spellcheck?: boolean | string; | ||
export interface SVGAttributes extends DOMAttributes { | ||
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> { | ||
// Attributes which also defined in HTMLAttributes | ||
@@ -1149,3 +1134,6 @@ // See comment in SVGDOMPropertyConfig.js | ||
export interface DOMAttributes { | ||
export interface DOMAttributes<T = Element> { | ||
ref?: (elm?: T) => void; | ||
slot?: string; | ||
// Clipboard Events | ||
@@ -1152,0 +1140,0 @@ onCopy?: (event: ClipboardEvent) => void; |
module.exports = require('../dist/cjs/loader.cjs.js'); | ||
module.exports.applyPolyfills = function() { return Promise.resolve() }; | ||
module.exports = require('../dist/cjs/loader.cjs.js'); | ||
module.exports.applyPolyfills = function() { return Promise.resolve() }; |
@@ -7,2 +7,3 @@ | ||
syncQueue?: boolean; | ||
jmp?: (c: Function) => any; | ||
raf?: (c: FrameRequestCallback) => number; | ||
@@ -9,0 +10,0 @@ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void; |
@@ -6,5 +6,7 @@ { | ||
"main": "./index.cjs.js", | ||
"node:main": "./node-main.js", | ||
"jsnext:main": "./index.es2017.mjs", | ||
"es2015": "./index.es2017.mjs", | ||
"es2017": "./index.es2017.mjs" | ||
"es2017": "./index.es2017.mjs", | ||
"unpkg": "./cdn.js" | ||
} |
{ | ||
"name": "@ionic/pwa-elements", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Stencil Component Starter", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@stencil/core": "1.0.0-beta.5", | ||
"@stencil/core": "^1.3.2", | ||
"@types/jest": "23.3.14", | ||
@@ -36,0 +36,0 @@ "@types/puppeteer": "1.12.4", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
2
285255
55
6367