@vaadin/vaadin-cookie-consent
Advanced tools
Comparing version 1.1.2 to 1.2.0-alpha1
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-cookie-consent", | ||
"version": "1.1.2", | ||
"version": "1.2.0-alpha1", | ||
"main": "vaadin-cookie-consent.js", | ||
@@ -21,2 +21,9 @@ "author": "Vaadin Ltd", | ||
}, | ||
"files": [ | ||
"vaadin-*.d.ts", | ||
"vaadin-*.js", | ||
"@types", | ||
"src", | ||
"theme" | ||
], | ||
"resolutions": { | ||
@@ -28,7 +35,7 @@ "inherits": "2.0.3", | ||
}, | ||
"dependencies": { | ||
"cookieconsent": "^3.0.6", | ||
"dependencies": { | ||
"cookieconsent": "^3.0.6", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-themable-mixin": "^1.2.0", | ||
"@vaadin/vaadin-element-mixin": "^2.0.0", | ||
"@vaadin/vaadin-themable-mixin": "^1.6.1", | ||
"@vaadin/vaadin-element-mixin": "^2.4.1", | ||
"@vaadin/vaadin-lumo-styles": "^1.1.0", | ||
@@ -38,5 +45,8 @@ "@vaadin/vaadin-material-styles": "^1.1.0", | ||
}, | ||
"scripts": { | ||
"generate-typings": "gen-typescript-declarations --outDir . --verify" | ||
}, | ||
"devDependencies": { | ||
"axe-core": "^3.0.3", | ||
"pwa-helpers": "^0.8.3", | ||
"axe-core": "^3.0.3", | ||
"pwa-helpers": "^0.8.3", | ||
"@polymer/iron-component-page": "^4.0.0", | ||
@@ -46,4 +56,4 @@ "@polymer/iron-demo-helpers": "^3.0.0", | ||
"wct-browser-legacy": "^1.0.1", | ||
"@vaadin/vaadin-demo-helpers": "^3.0.0" | ||
"@vaadin/vaadin-demo-helpers": "^3.1.0" | ||
} | ||
} |
@@ -42,5 +42,5 @@ /** | ||
* | ||
* @memberof Vaadin | ||
* @mixes Vaadin.ElementMixin | ||
* @mixes Vaadin.ThemableMixin | ||
* @extends PolymerElement | ||
* @mixes ElementMixin | ||
* @mixes ThemableMixin | ||
* @demo demo/index.html | ||
@@ -64,4 +64,5 @@ */ | ||
} | ||
static get version() { | ||
return '1.1.2'; | ||
return '1.2.0-alpha1'; | ||
} | ||
@@ -73,2 +74,3 @@ | ||
* The message to show in the popup. | ||
* @type {string} | ||
*/ | ||
@@ -79,4 +81,6 @@ message: { | ||
}, | ||
/** | ||
* The text to show on the dismiss/consent button. | ||
* @type {string} | ||
*/ | ||
@@ -87,4 +91,6 @@ dismiss: { | ||
}, | ||
/** | ||
* The text to show on the 'learn more' link. | ||
* @type {string} | ||
*/ | ||
@@ -95,4 +101,6 @@ learnMore: { | ||
}, | ||
/** | ||
* The URL the 'learn more' link should open. | ||
* @type {string} | ||
*/ | ||
@@ -103,2 +111,4 @@ learnMoreLink: { | ||
}, | ||
/** @private */ | ||
_showLearnMore: { | ||
@@ -108,2 +118,3 @@ type: Boolean, | ||
}, | ||
/** | ||
@@ -115,2 +126,3 @@ * Determines the position of the banner. | ||
* it is shown as a smaller popup. | ||
* @type {!CookieConsentPosition} | ||
*/ | ||
@@ -121,2 +133,3 @@ position: { | ||
}, | ||
/** | ||
@@ -126,2 +139,3 @@ * The name of the cookie to set to remember that the user has consented. | ||
* This rarely needs to be changed. | ||
* @type {string} | ||
*/ | ||
@@ -132,2 +146,4 @@ cookieName: { | ||
}, | ||
/** @private */ | ||
_css: { | ||
@@ -139,5 +155,3 @@ type: Object | ||
/** | ||
* @protected | ||
*/ | ||
/** @protected */ | ||
static _finalizeClass() { | ||
@@ -153,2 +167,3 @@ super._finalizeClass(); | ||
/** @private */ | ||
_showLink(learnMoreLink) { | ||
@@ -158,5 +173,3 @@ return !!learnMoreLink; | ||
/** | ||
* @protected | ||
*/ | ||
/** @protected */ | ||
connectedCallback() { | ||
@@ -216,5 +229,3 @@ super.connectedCallback(); | ||
/** | ||
* @protected | ||
*/ | ||
/** @protected */ | ||
disconnectedCallback() { | ||
@@ -230,7 +241,11 @@ super.disconnectedCallback(); | ||
} | ||
/** @private */ | ||
_getPopup() { | ||
return document.querySelector('[aria-label="cookieconsent"]'); | ||
} | ||
/* | ||
/** | ||
* Shows the popup even if the user has seen it before. | ||
* @protected | ||
*/ | ||
@@ -245,4 +260,5 @@ _show() { | ||
} | ||
customElements.define(CookieConsentElement.is, CookieConsentElement); | ||
export { CookieConsentElement }; |
import './theme/lumo/vaadin-cookie-consent.js'; | ||
export * from './src/vaadin-cookie-consent.js'; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
0
34755
10
340
1