File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ A web component to display a banner for users to give consent to the usage of co
44
55> ℹ️  ; A commercial Vaadin [ subscription] ( https://vaadin.com/pricing ) is required to use Cookie Consent in your project.
66
7+ > [ !WARNING]
8+ > ` <vaadin-cookie-consent> ` is deprecated and will be removed without a replacement in Vaadin 25.
9+
710[ Documentation + Live Demo ↗] ( https://vaadin.com/docs/latest/components/cookie-consent )
811
912[ ![ npm version] ( https://badgen.net/npm/v/@vaadin/cookie-consent )] ( https://www.npmjs.com/package/@vaadin/cookie-consent )
Original file line number Diff line number Diff line change 99 * license.
1010 */
1111import 'cookieconsent/build/cookieconsent.min.js' ;
12+ import { issueWarning } from '@vaadin/component-base/src/warnings.js' ;
1213
1314/**
1415 * @polymerMixin
@@ -121,6 +122,8 @@ export const CookieConsentMixin = (superClass) =>
121122 this . cookieName ,
122123 this . position ,
123124 ) ;
125+
126+ issueWarning ( '`<vaadin-cookie-consent>` is deprecated and will be removed without a replacement in Vaadin 25.' ) ;
124127 }
125128
126129 /** @protected */
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ import { CookieConsentMixin } from './vaadin-cookie-consent-mixin.js';
3636 * `cc-dismiss` | Dismiss cookie button
3737 * `cc-btn` | Dismiss cookie button
3838 * `cc-link` | Learn more link element
39+ *
40+ * @deprecated `<vaadin-cookie-consent>` is deprecated and will be removed without a replacement in Vaadin 25.
3941 */
4042declare class CookieConsent extends CookieConsentMixin ( ElementMixin ( HTMLElement ) ) { }
4143
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import { CookieConsentMixin } from './vaadin-cookie-consent-mixin.js';
4343 * @extends HTMLElement
4444 * @mixes ElementMixin
4545 * @mixes CookieConsentMixin
46+ * @deprecated `<vaadin-cookie-consent>` is deprecated and will be removed without a replacement in Vaadin 25.
4647 */
4748class CookieConsent extends CookieConsentMixin ( ElementMixin ( PolymerElement ) ) {
4849 static get template ( ) {
You can’t perform that action at this time.
0 commit comments