@uniformdev/context 19.190.1-alpha.5 → 19.191.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.
@@ -1,4 +1,4 @@
1
- import { aC as paths$7, N as ManifestV2 } from '../types-gG_D1dEo.mjs';
1
+ import { aC as paths$7, N as ManifestV2 } from '../types-o4ZU_qKY.mjs';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
package/dist/api/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { aC as paths$7, N as ManifestV2 } from '../types-gG_D1dEo.js';
1
+ import { aC as paths$7, N as ManifestV2 } from '../types-o4ZU_qKY.js';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-gG_D1dEo.mjs';
2
- export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-gG_D1dEo.mjs';
1
+ import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-o4ZU_qKY.mjs';
2
+ export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-o4ZU_qKY.mjs';
3
3
  import Cookies from 'js-cookie';
4
4
  import 'mitt';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-gG_D1dEo.js';
2
- export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-gG_D1dEo.js';
1
+ import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-o4ZU_qKY.js';
2
+ export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-o4ZU_qKY.js';
3
3
  import Cookies from 'js-cookie';
4
4
  import 'mitt';
5
5
 
package/dist/index.esm.js CHANGED
@@ -653,11 +653,9 @@ function personalizeVariations({
653
653
  try {
654
654
  const variantMatches = [];
655
655
  const defaultVariants = [];
656
- const needsConsent = context.requireConsentForPersonalization;
657
- const canEvaluate = !needsConsent || context.storage.data.consent;
658
656
  for (const variant of variations) {
659
657
  if ((_a = variant.pz) == null ? void 0 : _a.crit.length) {
660
- if (canEvaluate && variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
658
+ if (variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
661
659
  variantMatches.push(variant);
662
660
  }
663
661
  } else {
@@ -1469,7 +1467,7 @@ import { dequal as dequal5 } from "dequal/lite";
1469
1467
  import mitt3 from "mitt";
1470
1468
  var CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
1471
1469
  var CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID = "contextual_editing_test_selected_variant";
1472
- var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _requireConsentForPersonalization, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
1470
+ var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
1473
1471
  var Context = class {
1474
1472
  constructor(options) {
1475
1473
  __privateAdd(this, _Context_instances);
@@ -1480,7 +1478,6 @@ var Context = class {
1480
1478
  __privateAdd(this, _pzCache, {});
1481
1479
  __privateAdd(this, _plugins);
1482
1480
  __privateAdd(this, _commands);
1483
- __privateAdd(this, _requireConsentForPersonalization);
1484
1481
  __privateAdd(this, _mitt3, mitt3());
1485
1482
  /**
1486
1483
  * Subscribe to events
@@ -1494,7 +1491,6 @@ var Context = class {
1494
1491
  const { manifest, ...storageOptions } = options;
1495
1492
  __privateSet(this, _state, {});
1496
1493
  __privateSet(this, _plugins, options.plugins);
1497
- __privateSet(this, _requireConsentForPersonalization, options.requireConsentForPersonalization);
1498
1494
  if (typeof options.transitionStore !== "undefined") {
1499
1495
  __privateSet(this, _commands, []);
1500
1496
  }
@@ -1571,9 +1567,6 @@ var Context = class {
1571
1567
  var _a, _b;
1572
1568
  return (_b = (_a = __privateGet(this, _serverTransitionState)) == null ? void 0 : _a.quirks) != null ? _b : this.storage.data.quirks;
1573
1569
  }
1574
- get requireConsentForPersonalization() {
1575
- return __privateGet(this, _requireConsentForPersonalization);
1576
- }
1577
1570
  /**
1578
1571
  * Updates the Context with new data of any sort, such as
1579
1572
  * new URLs, cookies, quirks, and enrichments.
@@ -1871,7 +1864,6 @@ _state = new WeakMap();
1871
1864
  _pzCache = new WeakMap();
1872
1865
  _plugins = new WeakMap();
1873
1866
  _commands = new WeakMap();
1874
- _requireConsentForPersonalization = new WeakMap();
1875
1867
  _mitt3 = new WeakMap();
1876
1868
  _Context_instances = new WeakSet();
1877
1869
  emitTest_fn = function(event) {
package/dist/index.js CHANGED
@@ -737,11 +737,9 @@ function personalizeVariations({
737
737
  try {
738
738
  const variantMatches = [];
739
739
  const defaultVariants = [];
740
- const needsConsent = context.requireConsentForPersonalization;
741
- const canEvaluate = !needsConsent || context.storage.data.consent;
742
740
  for (const variant of variations) {
743
741
  if ((_a = variant.pz) == null ? void 0 : _a.crit.length) {
744
- if (canEvaluate && variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
742
+ if (variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
745
743
  variantMatches.push(variant);
746
744
  }
747
745
  } else {
@@ -1553,7 +1551,7 @@ var import_lite5 = require("dequal/lite");
1553
1551
  var import_mitt3 = __toESM(require("mitt"));
1554
1552
  var CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
1555
1553
  var CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID = "contextual_editing_test_selected_variant";
1556
- var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _requireConsentForPersonalization, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
1554
+ var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
1557
1555
  var Context = class {
1558
1556
  constructor(options) {
1559
1557
  __privateAdd(this, _Context_instances);
@@ -1564,7 +1562,6 @@ var Context = class {
1564
1562
  __privateAdd(this, _pzCache, {});
1565
1563
  __privateAdd(this, _plugins);
1566
1564
  __privateAdd(this, _commands);
1567
- __privateAdd(this, _requireConsentForPersonalization);
1568
1565
  __privateAdd(this, _mitt3, (0, import_mitt3.default)());
1569
1566
  /**
1570
1567
  * Subscribe to events
@@ -1578,7 +1575,6 @@ var Context = class {
1578
1575
  const { manifest, ...storageOptions } = options;
1579
1576
  __privateSet(this, _state, {});
1580
1577
  __privateSet(this, _plugins, options.plugins);
1581
- __privateSet(this, _requireConsentForPersonalization, options.requireConsentForPersonalization);
1582
1578
  if (typeof options.transitionStore !== "undefined") {
1583
1579
  __privateSet(this, _commands, []);
1584
1580
  }
@@ -1655,9 +1651,6 @@ var Context = class {
1655
1651
  var _a, _b;
1656
1652
  return (_b = (_a = __privateGet(this, _serverTransitionState)) == null ? void 0 : _a.quirks) != null ? _b : this.storage.data.quirks;
1657
1653
  }
1658
- get requireConsentForPersonalization() {
1659
- return __privateGet(this, _requireConsentForPersonalization);
1660
- }
1661
1654
  /**
1662
1655
  * Updates the Context with new data of any sort, such as
1663
1656
  * new URLs, cookies, quirks, and enrichments.
@@ -1955,7 +1948,6 @@ _state = new WeakMap();
1955
1948
  _pzCache = new WeakMap();
1956
1949
  _plugins = new WeakMap();
1957
1950
  _commands = new WeakMap();
1958
- _requireConsentForPersonalization = new WeakMap();
1959
1951
  _mitt3 = new WeakMap();
1960
1952
  _Context_instances = new WeakSet();
1961
1953
  emitTest_fn = function(event) {
package/dist/index.mjs CHANGED
@@ -653,11 +653,9 @@ function personalizeVariations({
653
653
  try {
654
654
  const variantMatches = [];
655
655
  const defaultVariants = [];
656
- const needsConsent = context.requireConsentForPersonalization;
657
- const canEvaluate = !needsConsent || context.storage.data.consent;
658
656
  for (const variant of variations) {
659
657
  if ((_a = variant.pz) == null ? void 0 : _a.crit.length) {
660
- if (canEvaluate && variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
658
+ if (variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
661
659
  variantMatches.push(variant);
662
660
  }
663
661
  } else {
@@ -1469,7 +1467,7 @@ import { dequal as dequal5 } from "dequal/lite";
1469
1467
  import mitt3 from "mitt";
1470
1468
  var CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
1471
1469
  var CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID = "contextual_editing_test_selected_variant";
1472
- var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _requireConsentForPersonalization, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
1470
+ var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
1473
1471
  var Context = class {
1474
1472
  constructor(options) {
1475
1473
  __privateAdd(this, _Context_instances);
@@ -1480,7 +1478,6 @@ var Context = class {
1480
1478
  __privateAdd(this, _pzCache, {});
1481
1479
  __privateAdd(this, _plugins);
1482
1480
  __privateAdd(this, _commands);
1483
- __privateAdd(this, _requireConsentForPersonalization);
1484
1481
  __privateAdd(this, _mitt3, mitt3());
1485
1482
  /**
1486
1483
  * Subscribe to events
@@ -1494,7 +1491,6 @@ var Context = class {
1494
1491
  const { manifest, ...storageOptions } = options;
1495
1492
  __privateSet(this, _state, {});
1496
1493
  __privateSet(this, _plugins, options.plugins);
1497
- __privateSet(this, _requireConsentForPersonalization, options.requireConsentForPersonalization);
1498
1494
  if (typeof options.transitionStore !== "undefined") {
1499
1495
  __privateSet(this, _commands, []);
1500
1496
  }
@@ -1571,9 +1567,6 @@ var Context = class {
1571
1567
  var _a, _b;
1572
1568
  return (_b = (_a = __privateGet(this, _serverTransitionState)) == null ? void 0 : _a.quirks) != null ? _b : this.storage.data.quirks;
1573
1569
  }
1574
- get requireConsentForPersonalization() {
1575
- return __privateGet(this, _requireConsentForPersonalization);
1576
- }
1577
1570
  /**
1578
1571
  * Updates the Context with new data of any sort, such as
1579
1572
  * new URLs, cookies, quirks, and enrichments.
@@ -1871,7 +1864,6 @@ _state = new WeakMap();
1871
1864
  _pzCache = new WeakMap();
1872
1865
  _plugins = new WeakMap();
1873
1866
  _commands = new WeakMap();
1874
- _requireConsentForPersonalization = new WeakMap();
1875
1867
  _mitt3 = new WeakMap();
1876
1868
  _Context_instances = new WeakSet();
1877
1869
  emitTest_fn = function(event) {
@@ -1021,12 +1021,6 @@ type ContextOptions = {
1021
1021
  * only - don't call scores, update, etc on it. If you need to call these methods immediately, attach your plugin after initialisation.
1022
1022
  */
1023
1023
  plugins?: Array<ContextPlugin>;
1024
- /**
1025
- * Only show personalizations if the visitor has given consent.
1026
- * `false (default)`: personalization can run in memory without visitor granting storage consent
1027
- * `true`: personalization is not run at all unless storage consent is given
1028
- */
1029
- requireConsentForPersonalization?: boolean;
1030
1024
  } & Omit<VisitorDataStoreOptions, 'manifest' | 'onServerTransitionScoresReceived'>;
1031
1025
  /** Emitted when a personalization runs */
1032
1026
  type PersonalizationEvent = {
@@ -1111,7 +1105,6 @@ declare class Context implements ContextInstance {
1111
1105
  get scores(): Readonly<ScoreVector>;
1112
1106
  /** Gets the current visitor's quirks values. */
1113
1107
  get quirks(): Readonly<Quirks>;
1114
- get requireConsentForPersonalization(): boolean | undefined;
1115
1108
  /**
1116
1109
  * Subscribe to events
1117
1110
  */
@@ -1021,12 +1021,6 @@ type ContextOptions = {
1021
1021
  * only - don't call scores, update, etc on it. If you need to call these methods immediately, attach your plugin after initialisation.
1022
1022
  */
1023
1023
  plugins?: Array<ContextPlugin>;
1024
- /**
1025
- * Only show personalizations if the visitor has given consent.
1026
- * `false (default)`: personalization can run in memory without visitor granting storage consent
1027
- * `true`: personalization is not run at all unless storage consent is given
1028
- */
1029
- requireConsentForPersonalization?: boolean;
1030
1024
  } & Omit<VisitorDataStoreOptions, 'manifest' | 'onServerTransitionScoresReceived'>;
1031
1025
  /** Emitted when a personalization runs */
1032
1026
  type PersonalizationEvent = {
@@ -1111,7 +1105,6 @@ declare class Context implements ContextInstance {
1111
1105
  get scores(): Readonly<ScoreVector>;
1112
1106
  /** Gets the current visitor's quirks values. */
1113
1107
  get quirks(): Readonly<Quirks>;
1114
- get requireConsentForPersonalization(): boolean | undefined;
1115
1108
  /**
1116
1109
  * Subscribe to events
1117
1110
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context",
3
- "version": "19.190.1-alpha.5+e62509cf6f",
3
+ "version": "19.191.0",
4
4
  "description": "Uniform Context core package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "e62509cf6f61000e1fde780921e4ea7ba8103ad5"
71
+ "gitHead": "5af19bc55804e29fda14eb6f0b4b7bd90be0610f"
72
72
  }