@micromag/core 0.3.709 → 0.3.711

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.
Files changed (2) hide show
  1. package/es/contexts.js +2 -1
  2. package/package.json +2 -2
package/es/contexts.js CHANGED
@@ -313,7 +313,7 @@ var propTypes$i = {
313
313
  };
314
314
  var defaultProps$i = {
315
315
  consent: ['functionality_storage', 'analytics_storage', 'ad_storage', 'ad_personalization', 'ad_user_data'],
316
- consented: false,
316
+ consented: null,
317
317
  expiration: 182 // Default expiration in days
318
318
  };
319
319
  var ConsentProvider = function ConsentProvider(_ref) {
@@ -390,6 +390,7 @@ var ConsentProvider = function ConsentProvider(_ref) {
390
390
  }, {});
391
391
  if (typeof gtag === 'function') {
392
392
  gtag('consent', initial === true ? 'default' : 'update', tagManagerConsent);
393
+ gtag('event', initial === true ? 'consent_default' : 'consent_update', tagManagerConsent);
393
394
  }
394
395
  setConsentState(values);
395
396
  }, [setConsentState, expiration]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.709",
3
+ "version": "0.3.711",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -145,5 +145,5 @@
145
145
  "access": "public",
146
146
  "registry": "https://registry.npmjs.org/"
147
147
  },
148
- "gitHead": "367f9fd8ecf298da947c017e9a0434e34c90e248"
148
+ "gitHead": "97c52792a1d544dcb13e106c26220fc8aca22669"
149
149
  }