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
4
4
5
5
> ℹ️  ; A commercial Vaadin [ subscription] ( https://vaadin.com/pricing ) is required to use Cookie Consent in your project.
6
6
7
+ > [ !WARNING]
8
+ > ` <vaadin-cookie-consent> ` is deprecated and will be removed without a replacement in Vaadin 25.
9
+
7
10
[ Documentation + Live Demo ↗] ( https://vaadin.com/docs/latest/components/cookie-consent )
8
11
9
12
[ ![ 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 9
9
* license.
10
10
*/
11
11
import 'cookieconsent/build/cookieconsent.min.js' ;
12
+ import { issueWarning } from '@vaadin/component-base/src/warnings.js' ;
12
13
13
14
/**
14
15
* @polymerMixin
@@ -121,6 +122,8 @@ export const CookieConsentMixin = (superClass) =>
121
122
this . cookieName ,
122
123
this . position ,
123
124
) ;
125
+
126
+ issueWarning ( '`<vaadin-cookie-consent>` is deprecated and will be removed without a replacement in Vaadin 25.' ) ;
124
127
}
125
128
126
129
/** @protected */
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ import { CookieConsentMixin } from './vaadin-cookie-consent-mixin.js';
36
36
* `cc-dismiss` | Dismiss cookie button
37
37
* `cc-btn` | Dismiss cookie button
38
38
* `cc-link` | Learn more link element
39
+ *
40
+ * @deprecated `<vaadin-cookie-consent>` is deprecated and will be removed without a replacement in Vaadin 25.
39
41
*/
40
42
declare class CookieConsent extends CookieConsentMixin ( ElementMixin ( HTMLElement ) ) { }
41
43
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import { CookieConsentMixin } from './vaadin-cookie-consent-mixin.js';
43
43
* @extends HTMLElement
44
44
* @mixes ElementMixin
45
45
* @mixes CookieConsentMixin
46
+ * @deprecated `<vaadin-cookie-consent>` is deprecated and will be removed without a replacement in Vaadin 25.
46
47
*/
47
48
class CookieConsent extends CookieConsentMixin ( ElementMixin ( PolymerElement ) ) {
48
49
static get template ( ) {
You can’t perform that action at this time.
0 commit comments