@uniformdev/context-react 20.6.2-alpha.10 → 20.6.5-alpha.1

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 CHANGED
@@ -86,8 +86,6 @@ type PersonalizeComponentProps<TVariation extends PersonalizedVariant> = {
86
86
  * This name is emitted to analytics after personalization executes.
87
87
  */
88
88
  name: string;
89
- /** The algorithm to use for personalization, if not the default. */
90
- algorithm?: string;
91
89
  /** The possible variations of the content to render depending on personalization conditions */
92
90
  variations: TVariation[];
93
91
  /** A React component to use to render a selected variant. */
package/dist/index.d.ts CHANGED
@@ -86,8 +86,6 @@ type PersonalizeComponentProps<TVariation extends PersonalizedVariant> = {
86
86
  * This name is emitted to analytics after personalization executes.
87
87
  */
88
88
  name: string;
89
- /** The algorithm to use for personalization, if not the default. */
90
- algorithm?: string;
91
89
  /** The possible variations of the content to render depending on personalization conditions */
92
90
  variations: TVariation[];
93
91
  /** A React component to use to render a selected variant. */
package/dist/index.esm.js CHANGED
@@ -83,8 +83,7 @@ function PersonalizeEdge(props) {
83
83
  const { variations, count, component } = props;
84
84
  const options = {
85
85
  name: props.name,
86
- count: count != null ? count : 1,
87
- algorithm: props.algorithm
86
+ count: count != null ? count : 1
88
87
  };
89
88
  const Component = component;
90
89
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
@@ -121,21 +120,18 @@ function PersonalizeStandard({
121
120
  component,
122
121
  wrapperComponent,
123
122
  name,
124
- algorithm,
125
123
  count = 1
126
124
  }) {
127
125
  const { context } = useUniformContext();
128
126
  const scores = useScores();
129
- const quirks = useQuirks();
130
127
  const { variations: personalizedVariations, personalized: personalizationOccurred } = useMemo(
131
128
  () => context.personalize({
132
129
  name,
133
130
  variations,
134
- take: count,
135
- algorithm
131
+ take: count
136
132
  }),
137
133
  // eslint-disable-next-line react-hooks/exhaustive-deps
138
- [scores, quirks, context, count, name, variations]
134
+ [scores, context, count, name, variations]
139
135
  );
140
136
  const Wrapper = wrapperComponent != null ? wrapperComponent : ({ children }) => /* @__PURE__ */ React2.createElement(React2.Fragment, null, children);
141
137
  const Component = component;
package/dist/index.js CHANGED
@@ -125,8 +125,7 @@ function PersonalizeEdge(props) {
125
125
  const { variations, count, component } = props;
126
126
  const options = {
127
127
  name: props.name,
128
- count: count != null ? count : 1,
129
- algorithm: props.algorithm
128
+ count: count != null ? count : 1
130
129
  };
131
130
  const Component = component;
132
131
  return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(
@@ -163,21 +162,18 @@ function PersonalizeStandard({
163
162
  component,
164
163
  wrapperComponent,
165
164
  name,
166
- algorithm,
167
165
  count = 1
168
166
  }) {
169
167
  const { context } = useUniformContext();
170
168
  const scores = useScores();
171
- const quirks = useQuirks();
172
169
  const { variations: personalizedVariations, personalized: personalizationOccurred } = (0, import_react7.useMemo)(
173
170
  () => context.personalize({
174
171
  name,
175
172
  variations,
176
- take: count,
177
- algorithm
173
+ take: count
178
174
  }),
179
175
  // eslint-disable-next-line react-hooks/exhaustive-deps
180
- [scores, quirks, context, count, name, variations]
176
+ [scores, context, count, name, variations]
181
177
  );
182
178
  const Wrapper = wrapperComponent != null ? wrapperComponent : ({ children }) => /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, children);
183
179
  const Component = component;
package/dist/index.mjs CHANGED
@@ -83,8 +83,7 @@ function PersonalizeEdge(props) {
83
83
  const { variations, count, component } = props;
84
84
  const options = {
85
85
  name: props.name,
86
- count: count != null ? count : 1,
87
- algorithm: props.algorithm
86
+ count: count != null ? count : 1
88
87
  };
89
88
  const Component = component;
90
89
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
@@ -121,21 +120,18 @@ function PersonalizeStandard({
121
120
  component,
122
121
  wrapperComponent,
123
122
  name,
124
- algorithm,
125
123
  count = 1
126
124
  }) {
127
125
  const { context } = useUniformContext();
128
126
  const scores = useScores();
129
- const quirks = useQuirks();
130
127
  const { variations: personalizedVariations, personalized: personalizationOccurred } = useMemo(
131
128
  () => context.personalize({
132
129
  name,
133
130
  variations,
134
- take: count,
135
- algorithm
131
+ take: count
136
132
  }),
137
133
  // eslint-disable-next-line react-hooks/exhaustive-deps
138
- [scores, quirks, context, count, name, variations]
134
+ [scores, context, count, name, variations]
139
135
  );
140
136
  const Wrapper = wrapperComponent != null ? wrapperComponent : ({ children }) => /* @__PURE__ */ React2.createElement(React2.Fragment, null, children);
141
137
  const Component = component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-react",
3
- "version": "20.6.2-alpha.10+ff8a28da1a",
3
+ "version": "20.6.5-alpha.1+1b1a069415",
4
4
  "description": "Uniform Context React integration package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "react-dom": "18.3.1"
31
31
  },
32
32
  "dependencies": {
33
- "@uniformdev/context": "20.6.2-alpha.10+ff8a28da1a",
33
+ "@uniformdev/context": "20.6.5-alpha.1+1b1a069415",
34
34
  "cookie": "1.0.1",
35
35
  "dequal": "2.0.3"
36
36
  },
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "ff8a28da1a7c11416e5585bc4cb66032bcb6ab53"
47
+ "gitHead": "1b1a06941575fefd19f3ab5621a0c403aa2cf7d5"
48
48
  }