@uniformdev/canvas-next-rsc-shared 20.6.1 → 20.6.2-alpha.10

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
@@ -216,14 +216,14 @@ declare class AppDirectoryContextInstance implements AppDirectoryContext {
216
216
  type PersonalizeProps = {
217
217
  trackingEventName: string;
218
218
  count: number | string | undefined;
219
+ algorithm?: string;
219
220
  };
220
221
  type PersonalizeWithContextComponentProps = ComponentProps<PersonalizeProps> & {
221
222
  contextInstance: AppDirectoryServerContext;
222
223
  };
223
224
 
224
- declare const runPersonalization: ({ component, trackingEventName, count, contextInstance, }: PersonalizeProps & {
225
+ declare const runPersonalization: ({ component, trackingEventName, count, algorithm, contextInstance, }: PersonalizeProps & {
225
226
  component: ComponentProps["component"];
226
- } & {
227
227
  contextInstance: Pick<ContextInstance, "personalize"> | undefined;
228
228
  }) => {
229
229
  indexes: number[];
package/dist/index.d.ts CHANGED
@@ -216,14 +216,14 @@ declare class AppDirectoryContextInstance implements AppDirectoryContext {
216
216
  type PersonalizeProps = {
217
217
  trackingEventName: string;
218
218
  count: number | string | undefined;
219
+ algorithm?: string;
219
220
  };
220
221
  type PersonalizeWithContextComponentProps = ComponentProps<PersonalizeProps> & {
221
222
  contextInstance: AppDirectoryServerContext;
222
223
  };
223
224
 
224
- declare const runPersonalization: ({ component, trackingEventName, count, contextInstance, }: PersonalizeProps & {
225
+ declare const runPersonalization: ({ component, trackingEventName, count, algorithm, contextInstance, }: PersonalizeProps & {
225
226
  component: ComponentProps["component"];
226
- } & {
227
227
  contextInstance: Pick<ContextInstance, "personalize"> | undefined;
228
228
  }) => {
229
229
  indexes: number[];
package/dist/index.esm.js CHANGED
@@ -176,6 +176,7 @@ var runPersonalization = ({
176
176
  component,
177
177
  trackingEventName,
178
178
  count,
179
+ algorithm,
179
180
  contextInstance
180
181
  }) => {
181
182
  var _a, _b;
@@ -204,7 +205,8 @@ var runPersonalization = ({
204
205
  const { variations } = contextInstance.personalize({
205
206
  name: trackingEventName,
206
207
  take: parsedCount,
207
- variations: componentVariations
208
+ variations: componentVariations,
209
+ algorithm
208
210
  });
209
211
  if (variations) {
210
212
  for (let i = 0; i < variations.length; i++) {
package/dist/index.js CHANGED
@@ -203,6 +203,7 @@ var runPersonalization = ({
203
203
  component,
204
204
  trackingEventName,
205
205
  count,
206
+ algorithm,
206
207
  contextInstance
207
208
  }) => {
208
209
  var _a, _b;
@@ -231,7 +232,8 @@ var runPersonalization = ({
231
232
  const { variations } = contextInstance.personalize({
232
233
  name: trackingEventName,
233
234
  take: parsedCount,
234
- variations: componentVariations
235
+ variations: componentVariations,
236
+ algorithm
235
237
  });
236
238
  if (variations) {
237
239
  for (let i = 0; i < variations.length; i++) {
package/dist/index.mjs CHANGED
@@ -176,6 +176,7 @@ var runPersonalization = ({
176
176
  component,
177
177
  trackingEventName,
178
178
  count,
179
+ algorithm,
179
180
  contextInstance
180
181
  }) => {
181
182
  var _a, _b;
@@ -204,7 +205,8 @@ var runPersonalization = ({
204
205
  const { variations } = contextInstance.personalize({
205
206
  name: trackingEventName,
206
207
  take: parsedCount,
207
- variations: componentVariations
208
+ variations: componentVariations,
209
+ algorithm
208
210
  });
209
211
  if (variations) {
210
212
  for (let i = 0; i < variations.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc-shared",
3
- "version": "20.6.1",
3
+ "version": "20.6.2-alpha.10+ff8a28da1a",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -32,8 +32,8 @@
32
32
  "react-dom": "18.3.1"
33
33
  },
34
34
  "dependencies": {
35
- "@uniformdev/canvas": "20.6.1",
36
- "@uniformdev/context": "20.6.1"
35
+ "@uniformdev/canvas": "20.6.2-alpha.10+ff8a28da1a",
36
+ "@uniformdev/context": "20.6.2-alpha.10+ff8a28da1a"
37
37
  },
38
38
  "engines": {
39
39
  "node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "6416edea60b972d5b18ec052c401d1a39f8df667"
49
+ "gitHead": "ff8a28da1a7c11416e5585bc4cb66032bcb6ab53"
50
50
  }