@uniformdev/context-react 17.7.0 → 17.7.1-alpha.140
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/index.d.ts +8 -8
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare function useQuirks(): Quirks;
|
|
|
14
14
|
*/
|
|
15
15
|
declare function useScores(): ScoreVector;
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
type VariantOutputType = 'edge' | 'standard';
|
|
18
18
|
interface UniformContextProps$1 {
|
|
19
19
|
/** The configured Uniform Context instance to provide */
|
|
20
20
|
context: Context;
|
|
@@ -38,7 +38,7 @@ interface UniformContextProps$1 {
|
|
|
38
38
|
*/
|
|
39
39
|
declare const UniformContext: react__default.FC<react__default.PropsWithChildren<UniformContextProps$1>>;
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
type UniformContextProps = {
|
|
42
42
|
context: Context;
|
|
43
43
|
outputType: VariantOutputType;
|
|
44
44
|
};
|
|
@@ -61,17 +61,17 @@ interface UseUniformContextDoesNotThrowOptions extends UseUniformContextOptions
|
|
|
61
61
|
declare function useUniformContext(options?: UseUniformContextThrowsOptions): UniformContextProps;
|
|
62
62
|
declare function useUniformContext(options?: UseUniformContextDoesNotThrowOptions): UniformContextProps | undefined;
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
type PersonalizeWrapperComponent = react__default.ComponentType<{
|
|
65
65
|
children: ReactNode;
|
|
66
66
|
personalizationOccurred: boolean;
|
|
67
67
|
}>;
|
|
68
|
-
|
|
68
|
+
type PersonalizedVariationComponent<TVariation> = react__default.ComponentType<TVariation & {
|
|
69
69
|
personalizationResult: {
|
|
70
70
|
variation: PersonalizedVariant;
|
|
71
71
|
personalizationOccurred: boolean;
|
|
72
72
|
};
|
|
73
73
|
}>;
|
|
74
|
-
|
|
74
|
+
type PersonalizeComponentProps<TVariation extends PersonalizedVariant> = {
|
|
75
75
|
/**
|
|
76
76
|
* Name of the personalized placement. Should be unique to this placement location and set of variants.
|
|
77
77
|
* This name is emitted to analytics after personalization executes.
|
|
@@ -88,7 +88,7 @@ declare type PersonalizeComponentProps<TVariation extends PersonalizedVariant> =
|
|
|
88
88
|
};
|
|
89
89
|
declare function Personalize<TVariation extends PersonalizedVariant>(props: PersonalizeComponentProps<TVariation>): ReactElement | null;
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
type TVariation = TestVariant;
|
|
92
92
|
interface TestComponentProps<TVariation extends TestVariant> {
|
|
93
93
|
/** Name of the test that is running. */
|
|
94
94
|
name: string;
|
|
@@ -106,7 +106,7 @@ interface TestComponentProps<TVariation extends TestVariant> {
|
|
|
106
106
|
}
|
|
107
107
|
declare const Test: <TVariation_1 extends TestVariant>(props: TestComponentProps<TVariation_1>) => ReactElement | null;
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
type TrackFragmentProps = {
|
|
110
110
|
/** Behavior that will be pushed when tracking occurs. */
|
|
111
111
|
behavior: EnrichmentData | EnrichmentData[] | undefined;
|
|
112
112
|
/** Nested elements that are related to the behavior specified. */
|
|
@@ -120,7 +120,7 @@ declare type TrackFragmentProps = {
|
|
|
120
120
|
*/
|
|
121
121
|
declare const TrackFragment: ({ behavior, children }: TrackFragmentProps) => JSX.Element;
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
type TrackProps = TrackFragmentProps & HTMLAttributes<HTMLElement> & {
|
|
124
124
|
/**
|
|
125
125
|
* Element tag that will be used for tracking.
|
|
126
126
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-react",
|
|
3
|
-
"version": "17.7.
|
|
3
|
+
"version": "17.7.1-alpha.140+80ab6baf9",
|
|
4
4
|
"description": "Uniform Context React integration package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-dom": "18.2.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@uniformdev/context": "^17.7.
|
|
32
|
+
"@uniformdev/context": "^17.7.1-alpha.140+80ab6baf9",
|
|
33
33
|
"cookie": "0.5.0",
|
|
34
34
|
"dequal": "2.0.3"
|
|
35
35
|
},
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "80ab6baf9edea6b520738bd3dff5c6afc882bf77"
|
|
47
47
|
}
|