@uniformdev/canvas-vue 20.6.1 → 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 CHANGED
@@ -35,6 +35,7 @@ interface PersonalizeComponent {
35
35
  };
36
36
  parameters: {
37
37
  trackingEventName?: ComponentParameter<string>;
38
+ algorithm?: ComponentParameter<string>;
38
39
  count?: ComponentParameter<string | number>;
39
40
  };
40
41
  }
package/dist/index.d.ts CHANGED
@@ -35,6 +35,7 @@ interface PersonalizeComponent {
35
35
  };
36
36
  parameters: {
37
37
  trackingEventName?: ComponentParameter<string>;
38
+ algorithm?: ComponentParameter<string>;
38
39
  count?: ComponentParameter<string | number>;
39
40
  };
40
41
  }
package/dist/index.esm.js CHANGED
@@ -337,6 +337,9 @@ var ContextualEditingComponentWrapper = defineComponent3({
337
337
 
338
338
  // src/components/UniformSlot.ts
339
339
  import {
340
+ CANVAS_PERSONALIZATION_ALGORITHM_PARAM,
341
+ CANVAS_PERSONALIZATION_EVENT_NAME_PARAM,
342
+ CANVAS_PERSONALIZATION_TAKE_PARAM,
340
343
  CANVAS_PERSONALIZE_SLOT,
341
344
  CANVAS_PERSONALIZE_TYPE,
342
345
  CANVAS_TEST_SLOT,
@@ -412,16 +415,16 @@ var UniformSlot = defineComponent4({
412
415
  }
413
416
  });
414
417
  function renderPersonalizeComponent(component, resolveRenderer) {
415
- var _a, _b, _c, _d, _e, _f;
418
+ var _a, _b, _c, _d, _e, _f, _g;
416
419
  const parameters = component == null ? void 0 : component.parameters;
417
420
  const processedVariants = mapSlotToPersonalizedVariations((_a = component.slots) == null ? void 0 : _a.pz);
418
- const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b.trackingEventName) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
421
+ const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b[CANVAS_PERSONALIZATION_EVENT_NAME_PARAM]) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
419
422
  return h4(Personalize, {
420
423
  name,
421
- // TODO: Fix the `as unknown`
422
424
  component: (variant) => resolveRenderer(variant),
423
425
  variations: processedVariants,
424
- count: Number((_f = (_e = parameters == null ? void 0 : parameters.count) == null ? void 0 : _e.value) != null ? _f : 1)
426
+ count: Number((_f = (_e = parameters == null ? void 0 : parameters[CANVAS_PERSONALIZATION_TAKE_PARAM]) == null ? void 0 : _e.value) != null ? _f : 1),
427
+ algorithm: (_g = parameters == null ? void 0 : parameters[CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _g.value
425
428
  });
426
429
  }
427
430
  function renderTestComponent(component, resolveRenderer) {
package/dist/index.js CHANGED
@@ -435,16 +435,16 @@ var UniformSlot = (0, import_vue5.defineComponent)({
435
435
  }
436
436
  });
437
437
  function renderPersonalizeComponent(component, resolveRenderer) {
438
- var _a, _b, _c, _d, _e, _f;
438
+ var _a, _b, _c, _d, _e, _f, _g;
439
439
  const parameters = component == null ? void 0 : component.parameters;
440
440
  const processedVariants = (0, import_canvas5.mapSlotToPersonalizedVariations)((_a = component.slots) == null ? void 0 : _a.pz);
441
- const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b.trackingEventName) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
441
+ const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b[import_canvas5.CANVAS_PERSONALIZATION_EVENT_NAME_PARAM]) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
442
442
  return (0, import_vue5.h)(import_context_vue2.Personalize, {
443
443
  name,
444
- // TODO: Fix the `as unknown`
445
444
  component: (variant) => resolveRenderer(variant),
446
445
  variations: processedVariants,
447
- count: Number((_f = (_e = parameters == null ? void 0 : parameters.count) == null ? void 0 : _e.value) != null ? _f : 1)
446
+ count: Number((_f = (_e = parameters == null ? void 0 : parameters[import_canvas5.CANVAS_PERSONALIZATION_TAKE_PARAM]) == null ? void 0 : _e.value) != null ? _f : 1),
447
+ algorithm: (_g = parameters == null ? void 0 : parameters[import_canvas5.CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _g.value
448
448
  });
449
449
  }
450
450
  function renderTestComponent(component, resolveRenderer) {
package/dist/index.mjs CHANGED
@@ -337,6 +337,9 @@ var ContextualEditingComponentWrapper = defineComponent3({
337
337
 
338
338
  // src/components/UniformSlot.ts
339
339
  import {
340
+ CANVAS_PERSONALIZATION_ALGORITHM_PARAM,
341
+ CANVAS_PERSONALIZATION_EVENT_NAME_PARAM,
342
+ CANVAS_PERSONALIZATION_TAKE_PARAM,
340
343
  CANVAS_PERSONALIZE_SLOT,
341
344
  CANVAS_PERSONALIZE_TYPE,
342
345
  CANVAS_TEST_SLOT,
@@ -412,16 +415,16 @@ var UniformSlot = defineComponent4({
412
415
  }
413
416
  });
414
417
  function renderPersonalizeComponent(component, resolveRenderer) {
415
- var _a, _b, _c, _d, _e, _f;
418
+ var _a, _b, _c, _d, _e, _f, _g;
416
419
  const parameters = component == null ? void 0 : component.parameters;
417
420
  const processedVariants = mapSlotToPersonalizedVariations((_a = component.slots) == null ? void 0 : _a.pz);
418
- const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b.trackingEventName) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
421
+ const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b[CANVAS_PERSONALIZATION_EVENT_NAME_PARAM]) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
419
422
  return h4(Personalize, {
420
423
  name,
421
- // TODO: Fix the `as unknown`
422
424
  component: (variant) => resolveRenderer(variant),
423
425
  variations: processedVariants,
424
- count: Number((_f = (_e = parameters == null ? void 0 : parameters.count) == null ? void 0 : _e.value) != null ? _f : 1)
426
+ count: Number((_f = (_e = parameters == null ? void 0 : parameters[CANVAS_PERSONALIZATION_TAKE_PARAM]) == null ? void 0 : _e.value) != null ? _f : 1),
427
+ algorithm: (_g = parameters == null ? void 0 : parameters[CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _g.value
425
428
  });
426
429
  }
427
430
  function renderTestComponent(component, resolveRenderer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-vue",
3
- "version": "20.6.1",
3
+ "version": "20.6.2-alpha.11+af78064791",
4
4
  "description": "Vue SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -30,9 +30,9 @@
30
30
  "document": "api-extractor run --local"
31
31
  },
32
32
  "dependencies": {
33
- "@uniformdev/canvas": "20.6.1",
34
- "@uniformdev/context-vue": "20.6.1",
35
- "@uniformdev/richtext": "20.6.1"
33
+ "@uniformdev/canvas": "20.6.2-alpha.11+af78064791",
34
+ "@uniformdev/context-vue": "20.6.2-alpha.11+af78064791",
35
+ "@uniformdev/richtext": "20.6.2-alpha.11+af78064791"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "vue": ">=3.0.0"
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "6416edea60b972d5b18ec052c401d1a39f8df667"
67
+ "gitHead": "af78064791c47044f8ba447bbe1221f672f6de3e"
68
68
  }