@uniformdev/context 19.190.1-alpha.7 → 19.194.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/dist/api/api.d.mts +1 -1
- package/dist/api/api.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +3 -12
- package/dist/index.js +3 -12
- package/dist/index.mjs +3 -12
- package/dist/{types-gG_D1dEo.d.mts → types-o4ZU_qKY.d.mts} +0 -7
- package/dist/{types-gG_D1dEo.d.ts → types-o4ZU_qKY.d.ts} +0 -7
- package/package.json +2 -2
package/dist/api/api.d.mts
CHANGED
package/dist/api/api.d.ts
CHANGED
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-
|
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-
|
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-
|
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-
|
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 (
|
658
|
+
if (variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
|
661
659
|
variantMatches.push(variant);
|
662
660
|
}
|
663
661
|
} else {
|
@@ -1215,8 +1213,7 @@ var LocalStorage = class {
|
|
1215
1213
|
this.partitionKey = partitionKey;
|
1216
1214
|
__privateAdd(this, _LocalStorage_instances);
|
1217
1215
|
__publicField(this, "inMemoryFallback", {});
|
1218
|
-
|
1219
|
-
__publicField(this, "hasLocalStorageObject", typeof document !== "undefined" && typeof localStorage !== "undefined");
|
1216
|
+
__publicField(this, "hasLocalStorageObject", typeof localStorage !== "undefined");
|
1220
1217
|
}
|
1221
1218
|
get(key) {
|
1222
1219
|
const keyValue = __privateMethod(this, _LocalStorage_instances, key_fn).call(this, key);
|
@@ -1470,7 +1467,7 @@ import { dequal as dequal5 } from "dequal/lite";
|
|
1470
1467
|
import mitt3 from "mitt";
|
1471
1468
|
var CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
|
1472
1469
|
var CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID = "contextual_editing_test_selected_variant";
|
1473
|
-
var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands,
|
1470
|
+
var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
|
1474
1471
|
var Context = class {
|
1475
1472
|
constructor(options) {
|
1476
1473
|
__privateAdd(this, _Context_instances);
|
@@ -1481,7 +1478,6 @@ var Context = class {
|
|
1481
1478
|
__privateAdd(this, _pzCache, {});
|
1482
1479
|
__privateAdd(this, _plugins);
|
1483
1480
|
__privateAdd(this, _commands);
|
1484
|
-
__privateAdd(this, _requireConsentForPersonalization);
|
1485
1481
|
__privateAdd(this, _mitt3, mitt3());
|
1486
1482
|
/**
|
1487
1483
|
* Subscribe to events
|
@@ -1495,7 +1491,6 @@ var Context = class {
|
|
1495
1491
|
const { manifest, ...storageOptions } = options;
|
1496
1492
|
__privateSet(this, _state, {});
|
1497
1493
|
__privateSet(this, _plugins, options.plugins);
|
1498
|
-
__privateSet(this, _requireConsentForPersonalization, options.requireConsentForPersonalization);
|
1499
1494
|
if (typeof options.transitionStore !== "undefined") {
|
1500
1495
|
__privateSet(this, _commands, []);
|
1501
1496
|
}
|
@@ -1572,9 +1567,6 @@ var Context = class {
|
|
1572
1567
|
var _a, _b;
|
1573
1568
|
return (_b = (_a = __privateGet(this, _serverTransitionState)) == null ? void 0 : _a.quirks) != null ? _b : this.storage.data.quirks;
|
1574
1569
|
}
|
1575
|
-
get requireConsentForPersonalization() {
|
1576
|
-
return __privateGet(this, _requireConsentForPersonalization);
|
1577
|
-
}
|
1578
1570
|
/**
|
1579
1571
|
* Updates the Context with new data of any sort, such as
|
1580
1572
|
* new URLs, cookies, quirks, and enrichments.
|
@@ -1872,7 +1864,6 @@ _state = new WeakMap();
|
|
1872
1864
|
_pzCache = new WeakMap();
|
1873
1865
|
_plugins = new WeakMap();
|
1874
1866
|
_commands = new WeakMap();
|
1875
|
-
_requireConsentForPersonalization = new WeakMap();
|
1876
1867
|
_mitt3 = new WeakMap();
|
1877
1868
|
_Context_instances = new WeakSet();
|
1878
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 (
|
742
|
+
if (variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
|
745
743
|
variantMatches.push(variant);
|
746
744
|
}
|
747
745
|
} else {
|
@@ -1299,8 +1297,7 @@ var LocalStorage = class {
|
|
1299
1297
|
this.partitionKey = partitionKey;
|
1300
1298
|
__privateAdd(this, _LocalStorage_instances);
|
1301
1299
|
__publicField(this, "inMemoryFallback", {});
|
1302
|
-
|
1303
|
-
__publicField(this, "hasLocalStorageObject", typeof document !== "undefined" && typeof localStorage !== "undefined");
|
1300
|
+
__publicField(this, "hasLocalStorageObject", typeof localStorage !== "undefined");
|
1304
1301
|
}
|
1305
1302
|
get(key) {
|
1306
1303
|
const keyValue = __privateMethod(this, _LocalStorage_instances, key_fn).call(this, key);
|
@@ -1554,7 +1551,7 @@ var import_lite5 = require("dequal/lite");
|
|
1554
1551
|
var import_mitt3 = __toESM(require("mitt"));
|
1555
1552
|
var CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
|
1556
1553
|
var CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID = "contextual_editing_test_selected_variant";
|
1557
|
-
var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands,
|
1554
|
+
var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
|
1558
1555
|
var Context = class {
|
1559
1556
|
constructor(options) {
|
1560
1557
|
__privateAdd(this, _Context_instances);
|
@@ -1565,7 +1562,6 @@ var Context = class {
|
|
1565
1562
|
__privateAdd(this, _pzCache, {});
|
1566
1563
|
__privateAdd(this, _plugins);
|
1567
1564
|
__privateAdd(this, _commands);
|
1568
|
-
__privateAdd(this, _requireConsentForPersonalization);
|
1569
1565
|
__privateAdd(this, _mitt3, (0, import_mitt3.default)());
|
1570
1566
|
/**
|
1571
1567
|
* Subscribe to events
|
@@ -1579,7 +1575,6 @@ var Context = class {
|
|
1579
1575
|
const { manifest, ...storageOptions } = options;
|
1580
1576
|
__privateSet(this, _state, {});
|
1581
1577
|
__privateSet(this, _plugins, options.plugins);
|
1582
|
-
__privateSet(this, _requireConsentForPersonalization, options.requireConsentForPersonalization);
|
1583
1578
|
if (typeof options.transitionStore !== "undefined") {
|
1584
1579
|
__privateSet(this, _commands, []);
|
1585
1580
|
}
|
@@ -1656,9 +1651,6 @@ var Context = class {
|
|
1656
1651
|
var _a, _b;
|
1657
1652
|
return (_b = (_a = __privateGet(this, _serverTransitionState)) == null ? void 0 : _a.quirks) != null ? _b : this.storage.data.quirks;
|
1658
1653
|
}
|
1659
|
-
get requireConsentForPersonalization() {
|
1660
|
-
return __privateGet(this, _requireConsentForPersonalization);
|
1661
|
-
}
|
1662
1654
|
/**
|
1663
1655
|
* Updates the Context with new data of any sort, such as
|
1664
1656
|
* new URLs, cookies, quirks, and enrichments.
|
@@ -1956,7 +1948,6 @@ _state = new WeakMap();
|
|
1956
1948
|
_pzCache = new WeakMap();
|
1957
1949
|
_plugins = new WeakMap();
|
1958
1950
|
_commands = new WeakMap();
|
1959
|
-
_requireConsentForPersonalization = new WeakMap();
|
1960
1951
|
_mitt3 = new WeakMap();
|
1961
1952
|
_Context_instances = new WeakSet();
|
1962
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 (
|
658
|
+
if (variantMatches.length !== take && evaluateVariantMatch(variant.id, variant.pz, context.scores, onLogMessage)) {
|
661
659
|
variantMatches.push(variant);
|
662
660
|
}
|
663
661
|
} else {
|
@@ -1215,8 +1213,7 @@ var LocalStorage = class {
|
|
1215
1213
|
this.partitionKey = partitionKey;
|
1216
1214
|
__privateAdd(this, _LocalStorage_instances);
|
1217
1215
|
__publicField(this, "inMemoryFallback", {});
|
1218
|
-
|
1219
|
-
__publicField(this, "hasLocalStorageObject", typeof document !== "undefined" && typeof localStorage !== "undefined");
|
1216
|
+
__publicField(this, "hasLocalStorageObject", typeof localStorage !== "undefined");
|
1220
1217
|
}
|
1221
1218
|
get(key) {
|
1222
1219
|
const keyValue = __privateMethod(this, _LocalStorage_instances, key_fn).call(this, key);
|
@@ -1470,7 +1467,7 @@ import { dequal as dequal5 } from "dequal/lite";
|
|
1470
1467
|
import mitt3 from "mitt";
|
1471
1468
|
var CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
|
1472
1469
|
var CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID = "contextual_editing_test_selected_variant";
|
1473
|
-
var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands,
|
1470
|
+
var _serverTransitionState, _scores, _state, _pzCache, _plugins, _commands, _mitt3, _Context_instances, emitTest_fn, updateGoals_fn, updateComputedScores_fn, calculateScores_fn;
|
1474
1471
|
var Context = class {
|
1475
1472
|
constructor(options) {
|
1476
1473
|
__privateAdd(this, _Context_instances);
|
@@ -1481,7 +1478,6 @@ var Context = class {
|
|
1481
1478
|
__privateAdd(this, _pzCache, {});
|
1482
1479
|
__privateAdd(this, _plugins);
|
1483
1480
|
__privateAdd(this, _commands);
|
1484
|
-
__privateAdd(this, _requireConsentForPersonalization);
|
1485
1481
|
__privateAdd(this, _mitt3, mitt3());
|
1486
1482
|
/**
|
1487
1483
|
* Subscribe to events
|
@@ -1495,7 +1491,6 @@ var Context = class {
|
|
1495
1491
|
const { manifest, ...storageOptions } = options;
|
1496
1492
|
__privateSet(this, _state, {});
|
1497
1493
|
__privateSet(this, _plugins, options.plugins);
|
1498
|
-
__privateSet(this, _requireConsentForPersonalization, options.requireConsentForPersonalization);
|
1499
1494
|
if (typeof options.transitionStore !== "undefined") {
|
1500
1495
|
__privateSet(this, _commands, []);
|
1501
1496
|
}
|
@@ -1572,9 +1567,6 @@ var Context = class {
|
|
1572
1567
|
var _a, _b;
|
1573
1568
|
return (_b = (_a = __privateGet(this, _serverTransitionState)) == null ? void 0 : _a.quirks) != null ? _b : this.storage.data.quirks;
|
1574
1569
|
}
|
1575
|
-
get requireConsentForPersonalization() {
|
1576
|
-
return __privateGet(this, _requireConsentForPersonalization);
|
1577
|
-
}
|
1578
1570
|
/**
|
1579
1571
|
* Updates the Context with new data of any sort, such as
|
1580
1572
|
* new URLs, cookies, quirks, and enrichments.
|
@@ -1872,7 +1864,6 @@ _state = new WeakMap();
|
|
1872
1864
|
_pzCache = new WeakMap();
|
1873
1865
|
_plugins = new WeakMap();
|
1874
1866
|
_commands = new WeakMap();
|
1875
|
-
_requireConsentForPersonalization = new WeakMap();
|
1876
1867
|
_mitt3 = new WeakMap();
|
1877
1868
|
_Context_instances = new WeakSet();
|
1878
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.
|
3
|
+
"version": "19.194.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": "
|
71
|
+
"gitHead": "0ac01d94c0f76fc1d7b7756af8ea09a0c9a14b55"
|
72
72
|
}
|