@uniformdev/context-vue 20.6.2-alpha.10 → 20.6.2-alpha.11
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.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as vue from 'vue';
|
2
2
|
import { Component, PropType, HTMLAttributes, App } from 'vue';
|
3
|
-
import { PersonalizedVariant, TestVariant, EnrichmentData, Context, Quirks, ScoreVector } from '@uniformdev/context';
|
3
|
+
import { PersonalizedVariant, VariationMatchMetadata, TestVariant, EnrichmentData, Context, Quirks, ScoreVector } from '@uniformdev/context';
|
4
4
|
|
5
|
-
|
5
|
+
interface PersonalizedVariationComponentProps extends PersonalizedVariant<VariationMatchMetadata> {
|
6
6
|
personalizationResult: {
|
7
|
-
variation: PersonalizedVariant
|
7
|
+
variation: PersonalizedVariant<VariationMatchMetadata>;
|
8
8
|
personalizationOccurred: boolean;
|
9
9
|
};
|
10
|
-
}
|
10
|
+
}
|
11
11
|
type PersonalizedVariationComponent = (variation: PersonalizedVariationComponentProps) => Component<any>;
|
12
12
|
type PersonalizeComponentProps = {
|
13
13
|
/**
|
@@ -16,7 +16,7 @@ type PersonalizeComponentProps = {
|
|
16
16
|
*/
|
17
17
|
name: string;
|
18
18
|
/** The possible variations of the content to render depending on personalization conditions */
|
19
|
-
variations: PersonalizedVariant[];
|
19
|
+
variations: PersonalizedVariant<VariationMatchMetadata>[];
|
20
20
|
/** A Vue component to use to render a selected variant. */
|
21
21
|
component: PersonalizedVariationComponent;
|
22
22
|
/** The number of variations to select. Use for personalized lists where the `count` most relevant should be shown. */
|
package/dist/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as vue from 'vue';
|
2
2
|
import { Component, PropType, HTMLAttributes, App } from 'vue';
|
3
|
-
import { PersonalizedVariant, TestVariant, EnrichmentData, Context, Quirks, ScoreVector } from '@uniformdev/context';
|
3
|
+
import { PersonalizedVariant, VariationMatchMetadata, TestVariant, EnrichmentData, Context, Quirks, ScoreVector } from '@uniformdev/context';
|
4
4
|
|
5
|
-
|
5
|
+
interface PersonalizedVariationComponentProps extends PersonalizedVariant<VariationMatchMetadata> {
|
6
6
|
personalizationResult: {
|
7
|
-
variation: PersonalizedVariant
|
7
|
+
variation: PersonalizedVariant<VariationMatchMetadata>;
|
8
8
|
personalizationOccurred: boolean;
|
9
9
|
};
|
10
|
-
}
|
10
|
+
}
|
11
11
|
type PersonalizedVariationComponent = (variation: PersonalizedVariationComponentProps) => Component<any>;
|
12
12
|
type PersonalizeComponentProps = {
|
13
13
|
/**
|
@@ -16,7 +16,7 @@ type PersonalizeComponentProps = {
|
|
16
16
|
*/
|
17
17
|
name: string;
|
18
18
|
/** The possible variations of the content to render depending on personalization conditions */
|
19
|
-
variations: PersonalizedVariant[];
|
19
|
+
variations: PersonalizedVariant<VariationMatchMetadata>[];
|
20
20
|
/** A Vue component to use to render a selected variant. */
|
21
21
|
component: PersonalizedVariationComponent;
|
22
22
|
/** The number of variations to select. Use for personalized lists where the `count` most relevant should be shown. */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/context-vue",
|
3
|
-
"version": "20.6.2-alpha.
|
3
|
+
"version": "20.6.2-alpha.11+af78064791",
|
4
4
|
"description": "Vue SDK for Uniform Context",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"document": "api-extractor run --local"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@uniformdev/context": "20.6.2-alpha.
|
33
|
+
"@uniformdev/context": "20.6.2-alpha.11+af78064791",
|
34
34
|
"cookie-es": "^1.0.0",
|
35
35
|
"dequal": "^2.0.2",
|
36
36
|
"uuid": "9.0.1"
|
@@ -59,5 +59,5 @@
|
|
59
59
|
"publishConfig": {
|
60
60
|
"access": "public"
|
61
61
|
},
|
62
|
-
"gitHead": "
|
62
|
+
"gitHead": "af78064791c47044f8ba447bbe1221f672f6de3e"
|
63
63
|
}
|