@micromag/core 0.3.711 → 0.3.712

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 +7 -7
  2. package/package.json +2 -2
package/es/contexts.js CHANGED
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import isString from 'lodash/isString';
3
3
  import PropTypes from 'prop-types';
4
4
  import React, { useContext, useMemo, useState, useCallback, useEffect, useRef } from 'react';
5
- import { ComponentsManager, PropTypes as PropTypes$1, FieldsManager, ScreensManager, ColorsParser, Tracking } from '@micromag/core';
5
+ import { ComponentsManager, FieldsManager, PropTypes as PropTypes$1, ScreensManager, ColorsParser, Tracking } from '@micromag/core';
6
6
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
7
7
  import JSCookie from 'js-cookie';
8
8
  import { defineMessages, useIntl } from 'react-intl';
@@ -276,27 +276,27 @@ var consentStates = [{
276
276
  id: 'personalization_storage',
277
277
  label: messages.personalization_storage_title,
278
278
  description: messages.personalization_storage_description,
279
- value: true
279
+ value: false
280
280
  }, {
281
281
  id: 'analytics_storage',
282
282
  label: messages.analytics_title,
283
283
  description: messages.analytics_description,
284
- value: true
284
+ value: false
285
285
  }, {
286
286
  id: 'ad_storage',
287
287
  label: messages.ad_storage_title,
288
288
  description: messages.ad_storage_description,
289
- value: true
289
+ value: false
290
290
  }, {
291
291
  id: 'ad_personalization',
292
292
  label: messages.ad_personalization_title,
293
293
  description: messages.ad_personalization_description,
294
- value: true
294
+ value: false
295
295
  }, {
296
296
  id: 'ad_user_data',
297
297
  label: messages.ad_user_data_title,
298
298
  description: messages.ad_user_data_description,
299
- value: true
299
+ value: false
300
300
  }];
301
301
  var ConsentContext = /*#__PURE__*/React.createContext({
302
302
  consent: null,
@@ -307,7 +307,7 @@ var useConsent = function useConsent() {
307
307
  };
308
308
  var propTypes$i = {
309
309
  children: PropTypes.node.isRequired,
310
- consent: PropTypes$1.consent,
310
+ consent: PropTypes.arrayOf(PropTypes.shape({})),
311
311
  consented: PropTypes.bool,
312
312
  expiration: PropTypes.number
313
313
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.711",
3
+ "version": "0.3.712",
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": "97c52792a1d544dcb13e106c26220fc8aca22669"
148
+ "gitHead": "e656480a89e304c105b6b40831605e09e389f851"
149
149
  }