@ebrains/react 0.5.0-alpha.0 → 0.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{analytics-1cde8e4a.esm.js → analytics-44b1416b.esm.js} +9 -1
- package/eds-accordion_13.entry.esm.js +1064 -0
- package/eds-alert.entry.esm.js +104 -0
- package/eds-block-break.entry.esm.js +22 -0
- package/eds-breadcrumb.entry.esm.js +182 -0
- package/eds-card-project.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +1 -1
- package/eds-cookies-preference.entry.esm.js +47 -0
- package/eds-dropdown_2.entry.esm.js +12 -12
- package/eds-footer.entry.esm.js +102 -0
- package/eds-form.entry.esm.js +1 -1
- package/eds-fullscreen-menu.entry.esm.js +143 -0
- package/eds-header.entry.esm.js +130 -0
- package/eds-link.entry.esm.js +204 -0
- package/eds-login.entry.esm.js +2 -2
- package/eds-logo.entry.esm.js +87 -0
- package/eds-modal.entry.esm.js +1 -1
- package/eds-pagination_2.entry.esm.js +1 -1
- package/eds-rating.entry.esm.js +79 -0
- package/eds-social-networks.entry.esm.js +74 -0
- package/eds-steps.entry.esm.js +98 -0
- package/eds-switch.entry.esm.js +58 -0
- package/eds-tabs-content.entry.esm.js +5 -5
- package/eds-tabs.entry.esm.js +4 -4
- package/eds-tooltip.entry.esm.js +1 -1
- package/eds-user.entry.esm.js +1 -1
- package/index.esm2.js +41 -17
- package/package.json +1 -1
- package/eds-accordion.entry.esm.js +0 -126
- package/eds-alert_17.entry.esm.js +0 -187
- package/eds-avatar_4.entry.esm.js +0 -193
- package/eds-card-generic.entry.esm.js +0 -124
- package/eds-card-section.entry.esm.js +0 -70
- package/eds-matomo-notice.entry.esm.js +0 -128
|
@@ -43,5 +43,13 @@ function matomoOptIn() {
|
|
|
43
43
|
console.log('User has opted in to tracking');
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
// Function to opt-out the user
|
|
47
|
+
function matomoOptOut() {
|
|
48
|
+
if (isMatomoAvailable()) {
|
|
49
|
+
window._paq.push(['forgetConsentGiven']);
|
|
50
|
+
// eslint-disable-next-line
|
|
51
|
+
console.log('User has opted out of tracking');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
46
54
|
|
|
47
|
-
export { matomoOptIn as m, sendAnalytics as s };
|
|
55
|
+
export { matomoOptOut as a, matomoOptIn as m, sendAnalytics as s };
|