@uniformdev/context 19.135.1-alpha.10 → 19.135.1-alpha.12
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 +25 -25
- package/dist/api/api.d.ts +25 -25
- package/dist/api/api.js +8 -19
- package/dist/api/api.mjs +8 -19
- package/dist/index.d.mts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.esm.js +261 -239
- package/dist/index.js +274 -239
- package/dist/index.mjs +261 -239
- package/dist/{types-DqYG-dCc.d.mts → types-o4ZU_qKY.d.mts} +39 -13
- package/dist/{types-DqYG-dCc.d.ts → types-o4ZU_qKY.d.ts} +39 -13
- package/package.json +3 -3
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as mitt from 'mitt';
|
2
|
+
import { Emitter } from 'mitt';
|
2
3
|
|
3
4
|
type Quirks = {
|
4
5
|
[key: string]: string;
|
@@ -158,6 +159,7 @@ type SetPersonalizeVariantControlCommand = StorageCommand<'setpersonalizecontrol
|
|
158
159
|
index: number;
|
159
160
|
control: boolean;
|
160
161
|
}>;
|
162
|
+
declare const areCommandsEqual: (a: StorageCommands, b: StorageCommands) => boolean;
|
161
163
|
|
162
164
|
type TransitionDataStoreOptions = {
|
163
165
|
initialData?: Partial<VisitorData>;
|
@@ -169,6 +171,10 @@ type ServerToClientTransitionState = Pick<Partial<VisitorData>, 'quirks' | 'test
|
|
169
171
|
* recomputation.
|
170
172
|
*/
|
171
173
|
ssv?: ScoreVector;
|
174
|
+
/**
|
175
|
+
* Storage commands that the server
|
176
|
+
*/
|
177
|
+
commands?: StorageCommands[];
|
172
178
|
};
|
173
179
|
declare const SERVER_STATE_ID = "__UNIFORM_DATA__";
|
174
180
|
type TransitionDataStoreEvents = {
|
@@ -195,7 +201,7 @@ declare abstract class TransitionDataStore {
|
|
195
201
|
(type: "*", handler: mitt.WildcardHandler<TransitionDataStoreEvents>): void;
|
196
202
|
};
|
197
203
|
off: {
|
198
|
-
<
|
204
|
+
<Key extends "dataUpdatedAsync">(type: Key, handler?: mitt.Handler<TransitionDataStoreEvents[Key]> | undefined): void;
|
199
205
|
(type: "*", handler: mitt.WildcardHandler<TransitionDataStoreEvents>): void;
|
200
206
|
};
|
201
207
|
};
|
@@ -277,6 +283,11 @@ type VisitorDataStoreOptions = {
|
|
277
283
|
onServerTransitionReceived?: (state: ServerToClientTransitionState) => void;
|
278
284
|
/** Called when a log message is emitted from the data store */
|
279
285
|
onLogMessage?: (message: LogMessage) => void;
|
286
|
+
/**
|
287
|
+
* Optionally specify a prefix for all storage keys.
|
288
|
+
* Only required if using multiple Context instances on the same domain and need to separate them.
|
289
|
+
*/
|
290
|
+
partitionKey?: string;
|
280
291
|
};
|
281
292
|
type VisitorDataStoreEvents = {
|
282
293
|
/**
|
@@ -309,6 +320,8 @@ type VisitorDataStoreEvents = {
|
|
309
320
|
goalConverted: {
|
310
321
|
goalId: string;
|
311
322
|
};
|
323
|
+
/** Fired when storage update commands are done executing */
|
324
|
+
commandsExecuted: StorageCommands[];
|
312
325
|
};
|
313
326
|
declare class VisitorDataStore {
|
314
327
|
#private;
|
@@ -326,7 +339,7 @@ declare class VisitorDataStore {
|
|
326
339
|
(type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
|
327
340
|
};
|
328
341
|
off: {
|
329
|
-
<
|
342
|
+
<Key extends keyof VisitorDataStoreEvents>(type: Key, handler?: mitt.Handler<VisitorDataStoreEvents[Key]> | undefined): void;
|
330
343
|
(type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
|
331
344
|
};
|
332
345
|
};
|
@@ -528,7 +541,7 @@ interface external {
|
|
528
541
|
* & = AND
|
529
542
|
* | = OR
|
530
543
|
*
|
531
|
-
* Default is `&` if unspecified
|
544
|
+
* Default is `&` if unspecified
|
532
545
|
*
|
533
546
|
* @default &
|
534
547
|
* @enum {string}
|
@@ -555,7 +568,7 @@ interface external {
|
|
555
568
|
* & = AND
|
556
569
|
* | = OR
|
557
570
|
*
|
558
|
-
* Default is `&` if unspecified
|
571
|
+
* Default is `&` if unspecified
|
559
572
|
*
|
560
573
|
* @enum {string}
|
561
574
|
*/
|
@@ -616,7 +629,7 @@ interface external {
|
|
616
629
|
};
|
617
630
|
/** @description Describes a match expression on a string */
|
618
631
|
StringMatch: {
|
619
|
-
/** @description The right
|
632
|
+
/** @description The right-hand side of the match expression */
|
620
633
|
rhs: string;
|
621
634
|
/**
|
622
635
|
* @description The match operator
|
@@ -629,7 +642,7 @@ interface external {
|
|
629
642
|
* @enum {string}
|
630
643
|
*/
|
631
644
|
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
632
|
-
/** @description The case sensitivity of the match. Defaults to false if unspecified
|
645
|
+
/** @description The case sensitivity of the match. Defaults to false if unspecified */
|
633
646
|
cs?: boolean;
|
634
647
|
} | {
|
635
648
|
/**
|
@@ -643,7 +656,7 @@ interface external {
|
|
643
656
|
};
|
644
657
|
/** @description Describes a match expression on a number */
|
645
658
|
NumberMatch: {
|
646
|
-
/** @description The right
|
659
|
+
/** @description The right-hand side of the match expression */
|
647
660
|
rhs: number;
|
648
661
|
/**
|
649
662
|
* @description The type of match to perform
|
@@ -656,7 +669,7 @@ interface external {
|
|
656
669
|
*/
|
657
670
|
op: "=" | "<" | ">" | "!=";
|
658
671
|
};
|
659
|
-
/** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience
|
672
|
+
/** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
|
660
673
|
AggregateDimension: {
|
661
674
|
/** @description Input dimensions to the aggregate dimension */
|
662
675
|
inputs: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
|
@@ -670,7 +683,7 @@ interface external {
|
|
670
683
|
*
|
671
684
|
* Note that creating a cycle of aggregate dimensions is allowed, however
|
672
685
|
* the final score will _ignore_ the cycled aggregate dimension in the result.
|
673
|
-
* This can be used to create mutually exclusive aggregates
|
686
|
+
* This can be used to create mutually exclusive aggregates
|
674
687
|
*/
|
675
688
|
dim: string;
|
676
689
|
/**
|
@@ -678,7 +691,7 @@ interface external {
|
|
678
691
|
*
|
679
692
|
* '+' = add to the final score
|
680
693
|
* '-' = subtract from the final score
|
681
|
-
* 'c' = clear the final score (if the input dimension has any score at all, this
|
694
|
+
* 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
|
682
695
|
*
|
683
696
|
* Default if unspecified: '+'
|
684
697
|
*
|
@@ -981,7 +994,7 @@ type TestOptions<TVariant extends TestVariant> = {
|
|
981
994
|
};
|
982
995
|
declare const testVariations: <TVariant extends TestVariant>({ name, context, variations, onLogMessage, }: TestOptions<TVariant> & {
|
983
996
|
context: Context;
|
984
|
-
onLogMessage?: (
|
997
|
+
onLogMessage?: (message: LogMessage) => void;
|
985
998
|
}) => TestResult<TVariant>;
|
986
999
|
|
987
1000
|
declare const CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
|
@@ -1075,6 +1088,10 @@ interface ContextInstance {
|
|
1075
1088
|
forget(fromAllDevices: boolean): Promise<void>;
|
1076
1089
|
getServerToClientTransitionState(): ServerToClientTransitionState;
|
1077
1090
|
readonly manifest: ManifestInstance;
|
1091
|
+
events: {
|
1092
|
+
on: Emitter<ContextEvents>['on'];
|
1093
|
+
off: Emitter<ContextEvents>['off'];
|
1094
|
+
};
|
1078
1095
|
/** @deprecated */
|
1079
1096
|
internal_processTestEvent(event: TestEvent): void;
|
1080
1097
|
/** @deprecated */
|
@@ -1097,7 +1114,7 @@ declare class Context implements ContextInstance {
|
|
1097
1114
|
(type: "*", handler: mitt.WildcardHandler<ContextEvents>): void;
|
1098
1115
|
};
|
1099
1116
|
off: {
|
1100
|
-
<
|
1117
|
+
<Key extends keyof ContextEvents>(type: Key, handler?: mitt.Handler<ContextEvents[Key]> | undefined): void;
|
1101
1118
|
(type: "*", handler: mitt.WildcardHandler<ContextEvents>): void;
|
1102
1119
|
};
|
1103
1120
|
};
|
@@ -1112,6 +1129,10 @@ declare class Context implements ContextInstance {
|
|
1112
1129
|
* will NOT result in a recomputation of signal state.
|
1113
1130
|
*/
|
1114
1131
|
update(newData: Partial<ContextState>): Promise<void>;
|
1132
|
+
processServerCommands({ serverCommands, commands, }: {
|
1133
|
+
serverCommands: StorageCommands[] | undefined;
|
1134
|
+
commands: StorageCommands[];
|
1135
|
+
}): Promise<void>;
|
1115
1136
|
/** use test() instead */
|
1116
1137
|
getTestVariantId(testName: string): string | null | undefined;
|
1117
1138
|
/** use test() instead */
|
@@ -1204,7 +1225,12 @@ declare global {
|
|
1204
1225
|
interface Window {
|
1205
1226
|
/** Window var set by enableContextDevTools() to enable embedded devtools to receive Context instance and attach events to it. */
|
1206
1227
|
__UNIFORM_DEVTOOLS_CONTEXT_INSTANCE__?: Context;
|
1228
|
+
/**
|
1229
|
+
* Window var set automatically that Uniform's contextual editing uses to respond to changes in the Context within its preview pane,
|
1230
|
+
* for example quirks being set from within the preview.
|
1231
|
+
*/
|
1232
|
+
__UNIFORM_CONTEXTUAL_EDITING_CONTEXT__?: Context;
|
1207
1233
|
}
|
1208
1234
|
}
|
1209
1235
|
|
1210
|
-
export { type TestOptions as $, type AggregateDimension as A, type MessageFunc as B, type ContextPlugin as C, type DecayFunction as D, type LogMessageSingle as E, type LogMessageGroup as F, ManifestInstance as G, GroupCriteriaEvaluator as H, type CriteriaEvaluatorResult as I, type CriteriaEvaluatorParameters as J, type SignalData as K, type LogDrain as L, type MessageCategory as M, type ManifestV2 as N, type OutputSeverity as O, type PersonalizationEvent as P, type PersonalizationManifest as Q, type Signal as R, type ScoreVector as S, TransitionDataStore as T, type SignalCriteriaGroup as U, type VisitorData as V, type SignalCriteria as W, type EnrichmentCategory as X, type NumberMatch as Y, type TestDefinition as Z, type AggregateDimensionInput as _, type StorageCommands as a, testVariations as a0, type DimensionMatch as a1, type PersonalizeOptions as a2, personalizeVariations as a3, type BehaviorTag as a4, type PersonalizedVariant as a5, type PersonalizedResult as a6, type TestVariant as a7, type TestResult as a8, type StorageCommand as a9, type
|
1236
|
+
export { type TestOptions as $, type AggregateDimension as A, type MessageFunc as B, type ContextPlugin as C, type DecayFunction as D, type LogMessageSingle as E, type LogMessageGroup as F, ManifestInstance as G, GroupCriteriaEvaluator as H, type CriteriaEvaluatorResult as I, type CriteriaEvaluatorParameters as J, type SignalData as K, type LogDrain as L, type MessageCategory as M, type ManifestV2 as N, type OutputSeverity as O, type PersonalizationEvent as P, type PersonalizationManifest as Q, type Signal as R, type ScoreVector as S, TransitionDataStore as T, type SignalCriteriaGroup as U, type VisitorData as V, type SignalCriteria as W, type EnrichmentCategory as X, type NumberMatch as Y, type TestDefinition as Z, type AggregateDimensionInput as _, type StorageCommands as a, testVariations as a0, type DimensionMatch as a1, type PersonalizeOptions as a2, personalizeVariations as a3, type BehaviorTag as a4, type PersonalizedVariant as a5, type PersonalizedResult as a6, type TestVariant as a7, type TestResult as a8, type StorageCommand as a9, type ContextStateUpdate as aA, type GoalStateUpdate as aB, type paths as aC, type SetGoalCommand as aa, type ModifyScoreCommand as ab, type ModifySessionScoreCommand as ac, type SetConsentCommand as ad, type SetQuirkCommand as ae, type SetTestCommand as af, type IdentifyCommand as ag, type SetControlGroupCommand as ah, type SetPersonalizeVariantControlCommand as ai, areCommandsEqual as aj, type ServerToClientTransitionState as ak, SERVER_STATE_ID as al, type TransitionDataStoreEvents as am, type DecayOptions as an, type VisitorDataStoreOptions as ao, type VisitorDataStoreEvents as ap, VisitorDataStore as aq, type Quirks as ar, type Tests as as, type Goals as at, type EnrichmentData as au, type PersonalizeControlVariant as av, type PersonalizeVariants as aw, type EventData as ax, emptyVisitorData as ay, type ContextState as az, type TransitionDataStoreOptions as b, type CriteriaEvaluator as c, type StringMatch as d, type VariantMatchCriteria as e, type LogMessage as f, type DevToolsEvents as g, CONTEXTUAL_EDITING_TEST_NAME as h, CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID as i, type ContextOptions as j, type TestEvent as k, type ContextEvents as l, type ContextInstance as m, Context as n, type DevToolsUiVersion as o, type DevToolsState as p, type DevToolsActions as q, type DevToolsEvent as r, type DevToolsLogEvent as s, type DevToolsDataEvent as t, type DevToolsHelloEvent as u, type DevToolsUpdateEvent as v, type DevToolsRawCommandsEvent as w, type DevToolsForgetEvent as x, type LogMessages as y, type Severity as z };
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as mitt from 'mitt';
|
2
|
+
import { Emitter } from 'mitt';
|
2
3
|
|
3
4
|
type Quirks = {
|
4
5
|
[key: string]: string;
|
@@ -158,6 +159,7 @@ type SetPersonalizeVariantControlCommand = StorageCommand<'setpersonalizecontrol
|
|
158
159
|
index: number;
|
159
160
|
control: boolean;
|
160
161
|
}>;
|
162
|
+
declare const areCommandsEqual: (a: StorageCommands, b: StorageCommands) => boolean;
|
161
163
|
|
162
164
|
type TransitionDataStoreOptions = {
|
163
165
|
initialData?: Partial<VisitorData>;
|
@@ -169,6 +171,10 @@ type ServerToClientTransitionState = Pick<Partial<VisitorData>, 'quirks' | 'test
|
|
169
171
|
* recomputation.
|
170
172
|
*/
|
171
173
|
ssv?: ScoreVector;
|
174
|
+
/**
|
175
|
+
* Storage commands that the server
|
176
|
+
*/
|
177
|
+
commands?: StorageCommands[];
|
172
178
|
};
|
173
179
|
declare const SERVER_STATE_ID = "__UNIFORM_DATA__";
|
174
180
|
type TransitionDataStoreEvents = {
|
@@ -195,7 +201,7 @@ declare abstract class TransitionDataStore {
|
|
195
201
|
(type: "*", handler: mitt.WildcardHandler<TransitionDataStoreEvents>): void;
|
196
202
|
};
|
197
203
|
off: {
|
198
|
-
<
|
204
|
+
<Key extends "dataUpdatedAsync">(type: Key, handler?: mitt.Handler<TransitionDataStoreEvents[Key]> | undefined): void;
|
199
205
|
(type: "*", handler: mitt.WildcardHandler<TransitionDataStoreEvents>): void;
|
200
206
|
};
|
201
207
|
};
|
@@ -277,6 +283,11 @@ type VisitorDataStoreOptions = {
|
|
277
283
|
onServerTransitionReceived?: (state: ServerToClientTransitionState) => void;
|
278
284
|
/** Called when a log message is emitted from the data store */
|
279
285
|
onLogMessage?: (message: LogMessage) => void;
|
286
|
+
/**
|
287
|
+
* Optionally specify a prefix for all storage keys.
|
288
|
+
* Only required if using multiple Context instances on the same domain and need to separate them.
|
289
|
+
*/
|
290
|
+
partitionKey?: string;
|
280
291
|
};
|
281
292
|
type VisitorDataStoreEvents = {
|
282
293
|
/**
|
@@ -309,6 +320,8 @@ type VisitorDataStoreEvents = {
|
|
309
320
|
goalConverted: {
|
310
321
|
goalId: string;
|
311
322
|
};
|
323
|
+
/** Fired when storage update commands are done executing */
|
324
|
+
commandsExecuted: StorageCommands[];
|
312
325
|
};
|
313
326
|
declare class VisitorDataStore {
|
314
327
|
#private;
|
@@ -326,7 +339,7 @@ declare class VisitorDataStore {
|
|
326
339
|
(type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
|
327
340
|
};
|
328
341
|
off: {
|
329
|
-
<
|
342
|
+
<Key extends keyof VisitorDataStoreEvents>(type: Key, handler?: mitt.Handler<VisitorDataStoreEvents[Key]> | undefined): void;
|
330
343
|
(type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
|
331
344
|
};
|
332
345
|
};
|
@@ -528,7 +541,7 @@ interface external {
|
|
528
541
|
* & = AND
|
529
542
|
* | = OR
|
530
543
|
*
|
531
|
-
* Default is `&` if unspecified
|
544
|
+
* Default is `&` if unspecified
|
532
545
|
*
|
533
546
|
* @default &
|
534
547
|
* @enum {string}
|
@@ -555,7 +568,7 @@ interface external {
|
|
555
568
|
* & = AND
|
556
569
|
* | = OR
|
557
570
|
*
|
558
|
-
* Default is `&` if unspecified
|
571
|
+
* Default is `&` if unspecified
|
559
572
|
*
|
560
573
|
* @enum {string}
|
561
574
|
*/
|
@@ -616,7 +629,7 @@ interface external {
|
|
616
629
|
};
|
617
630
|
/** @description Describes a match expression on a string */
|
618
631
|
StringMatch: {
|
619
|
-
/** @description The right
|
632
|
+
/** @description The right-hand side of the match expression */
|
620
633
|
rhs: string;
|
621
634
|
/**
|
622
635
|
* @description The match operator
|
@@ -629,7 +642,7 @@ interface external {
|
|
629
642
|
* @enum {string}
|
630
643
|
*/
|
631
644
|
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
632
|
-
/** @description The case sensitivity of the match. Defaults to false if unspecified
|
645
|
+
/** @description The case sensitivity of the match. Defaults to false if unspecified */
|
633
646
|
cs?: boolean;
|
634
647
|
} | {
|
635
648
|
/**
|
@@ -643,7 +656,7 @@ interface external {
|
|
643
656
|
};
|
644
657
|
/** @description Describes a match expression on a number */
|
645
658
|
NumberMatch: {
|
646
|
-
/** @description The right
|
659
|
+
/** @description The right-hand side of the match expression */
|
647
660
|
rhs: number;
|
648
661
|
/**
|
649
662
|
* @description The type of match to perform
|
@@ -656,7 +669,7 @@ interface external {
|
|
656
669
|
*/
|
657
670
|
op: "=" | "<" | ">" | "!=";
|
658
671
|
};
|
659
|
-
/** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience
|
672
|
+
/** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
|
660
673
|
AggregateDimension: {
|
661
674
|
/** @description Input dimensions to the aggregate dimension */
|
662
675
|
inputs: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
|
@@ -670,7 +683,7 @@ interface external {
|
|
670
683
|
*
|
671
684
|
* Note that creating a cycle of aggregate dimensions is allowed, however
|
672
685
|
* the final score will _ignore_ the cycled aggregate dimension in the result.
|
673
|
-
* This can be used to create mutually exclusive aggregates
|
686
|
+
* This can be used to create mutually exclusive aggregates
|
674
687
|
*/
|
675
688
|
dim: string;
|
676
689
|
/**
|
@@ -678,7 +691,7 @@ interface external {
|
|
678
691
|
*
|
679
692
|
* '+' = add to the final score
|
680
693
|
* '-' = subtract from the final score
|
681
|
-
* 'c' = clear the final score (if the input dimension has any score at all, this
|
694
|
+
* 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
|
682
695
|
*
|
683
696
|
* Default if unspecified: '+'
|
684
697
|
*
|
@@ -981,7 +994,7 @@ type TestOptions<TVariant extends TestVariant> = {
|
|
981
994
|
};
|
982
995
|
declare const testVariations: <TVariant extends TestVariant>({ name, context, variations, onLogMessage, }: TestOptions<TVariant> & {
|
983
996
|
context: Context;
|
984
|
-
onLogMessage?: (
|
997
|
+
onLogMessage?: (message: LogMessage) => void;
|
985
998
|
}) => TestResult<TVariant>;
|
986
999
|
|
987
1000
|
declare const CONTEXTUAL_EDITING_TEST_NAME = "contextual_editing_test";
|
@@ -1075,6 +1088,10 @@ interface ContextInstance {
|
|
1075
1088
|
forget(fromAllDevices: boolean): Promise<void>;
|
1076
1089
|
getServerToClientTransitionState(): ServerToClientTransitionState;
|
1077
1090
|
readonly manifest: ManifestInstance;
|
1091
|
+
events: {
|
1092
|
+
on: Emitter<ContextEvents>['on'];
|
1093
|
+
off: Emitter<ContextEvents>['off'];
|
1094
|
+
};
|
1078
1095
|
/** @deprecated */
|
1079
1096
|
internal_processTestEvent(event: TestEvent): void;
|
1080
1097
|
/** @deprecated */
|
@@ -1097,7 +1114,7 @@ declare class Context implements ContextInstance {
|
|
1097
1114
|
(type: "*", handler: mitt.WildcardHandler<ContextEvents>): void;
|
1098
1115
|
};
|
1099
1116
|
off: {
|
1100
|
-
<
|
1117
|
+
<Key extends keyof ContextEvents>(type: Key, handler?: mitt.Handler<ContextEvents[Key]> | undefined): void;
|
1101
1118
|
(type: "*", handler: mitt.WildcardHandler<ContextEvents>): void;
|
1102
1119
|
};
|
1103
1120
|
};
|
@@ -1112,6 +1129,10 @@ declare class Context implements ContextInstance {
|
|
1112
1129
|
* will NOT result in a recomputation of signal state.
|
1113
1130
|
*/
|
1114
1131
|
update(newData: Partial<ContextState>): Promise<void>;
|
1132
|
+
processServerCommands({ serverCommands, commands, }: {
|
1133
|
+
serverCommands: StorageCommands[] | undefined;
|
1134
|
+
commands: StorageCommands[];
|
1135
|
+
}): Promise<void>;
|
1115
1136
|
/** use test() instead */
|
1116
1137
|
getTestVariantId(testName: string): string | null | undefined;
|
1117
1138
|
/** use test() instead */
|
@@ -1204,7 +1225,12 @@ declare global {
|
|
1204
1225
|
interface Window {
|
1205
1226
|
/** Window var set by enableContextDevTools() to enable embedded devtools to receive Context instance and attach events to it. */
|
1206
1227
|
__UNIFORM_DEVTOOLS_CONTEXT_INSTANCE__?: Context;
|
1228
|
+
/**
|
1229
|
+
* Window var set automatically that Uniform's contextual editing uses to respond to changes in the Context within its preview pane,
|
1230
|
+
* for example quirks being set from within the preview.
|
1231
|
+
*/
|
1232
|
+
__UNIFORM_CONTEXTUAL_EDITING_CONTEXT__?: Context;
|
1207
1233
|
}
|
1208
1234
|
}
|
1209
1235
|
|
1210
|
-
export { type TestOptions as $, type AggregateDimension as A, type MessageFunc as B, type ContextPlugin as C, type DecayFunction as D, type LogMessageSingle as E, type LogMessageGroup as F, ManifestInstance as G, GroupCriteriaEvaluator as H, type CriteriaEvaluatorResult as I, type CriteriaEvaluatorParameters as J, type SignalData as K, type LogDrain as L, type MessageCategory as M, type ManifestV2 as N, type OutputSeverity as O, type PersonalizationEvent as P, type PersonalizationManifest as Q, type Signal as R, type ScoreVector as S, TransitionDataStore as T, type SignalCriteriaGroup as U, type VisitorData as V, type SignalCriteria as W, type EnrichmentCategory as X, type NumberMatch as Y, type TestDefinition as Z, type AggregateDimensionInput as _, type StorageCommands as a, testVariations as a0, type DimensionMatch as a1, type PersonalizeOptions as a2, personalizeVariations as a3, type BehaviorTag as a4, type PersonalizedVariant as a5, type PersonalizedResult as a6, type TestVariant as a7, type TestResult as a8, type StorageCommand as a9, type
|
1236
|
+
export { type TestOptions as $, type AggregateDimension as A, type MessageFunc as B, type ContextPlugin as C, type DecayFunction as D, type LogMessageSingle as E, type LogMessageGroup as F, ManifestInstance as G, GroupCriteriaEvaluator as H, type CriteriaEvaluatorResult as I, type CriteriaEvaluatorParameters as J, type SignalData as K, type LogDrain as L, type MessageCategory as M, type ManifestV2 as N, type OutputSeverity as O, type PersonalizationEvent as P, type PersonalizationManifest as Q, type Signal as R, type ScoreVector as S, TransitionDataStore as T, type SignalCriteriaGroup as U, type VisitorData as V, type SignalCriteria as W, type EnrichmentCategory as X, type NumberMatch as Y, type TestDefinition as Z, type AggregateDimensionInput as _, type StorageCommands as a, testVariations as a0, type DimensionMatch as a1, type PersonalizeOptions as a2, personalizeVariations as a3, type BehaviorTag as a4, type PersonalizedVariant as a5, type PersonalizedResult as a6, type TestVariant as a7, type TestResult as a8, type StorageCommand as a9, type ContextStateUpdate as aA, type GoalStateUpdate as aB, type paths as aC, type SetGoalCommand as aa, type ModifyScoreCommand as ab, type ModifySessionScoreCommand as ac, type SetConsentCommand as ad, type SetQuirkCommand as ae, type SetTestCommand as af, type IdentifyCommand as ag, type SetControlGroupCommand as ah, type SetPersonalizeVariantControlCommand as ai, areCommandsEqual as aj, type ServerToClientTransitionState as ak, SERVER_STATE_ID as al, type TransitionDataStoreEvents as am, type DecayOptions as an, type VisitorDataStoreOptions as ao, type VisitorDataStoreEvents as ap, VisitorDataStore as aq, type Quirks as ar, type Tests as as, type Goals as at, type EnrichmentData as au, type PersonalizeControlVariant as av, type PersonalizeVariants as aw, type EventData as ax, emptyVisitorData as ay, type ContextState as az, type TransitionDataStoreOptions as b, type CriteriaEvaluator as c, type StringMatch as d, type VariantMatchCriteria as e, type LogMessage as f, type DevToolsEvents as g, CONTEXTUAL_EDITING_TEST_NAME as h, CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID as i, type ContextOptions as j, type TestEvent as k, type ContextEvents as l, type ContextInstance as m, Context as n, type DevToolsUiVersion as o, type DevToolsState as p, type DevToolsActions as q, type DevToolsEvent as r, type DevToolsLogEvent as s, type DevToolsDataEvent as t, type DevToolsHelloEvent as u, type DevToolsUpdateEvent as v, type DevToolsRawCommandsEvent as w, type DevToolsForgetEvent as x, type LogMessages as y, type Severity as z };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/context",
|
3
|
-
"version": "19.135.1-alpha.
|
3
|
+
"version": "19.135.1-alpha.12+5743153a1e",
|
4
4
|
"description": "Uniform Context core package",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"dependencies": {
|
58
58
|
"dequal": "^2.0.2",
|
59
59
|
"js-cookie": "3.0.5",
|
60
|
-
"mitt": "^3.0.
|
60
|
+
"mitt": "^3.0.1",
|
61
61
|
"p-limit": "^3.1.0",
|
62
62
|
"rfdc": "^1.3.0",
|
63
63
|
"uuid": "9.0.1"
|
@@ -68,5 +68,5 @@
|
|
68
68
|
"publishConfig": {
|
69
69
|
"access": "public"
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "5743153a1e4308de3dfe7c0812eb493154421a71"
|
72
72
|
}
|