@uniformdev/canvas-react 20.6.2-alpha.11 → 20.7.1-alpha.4

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.esm.js CHANGED
@@ -148,9 +148,6 @@ import React6 from "react";
148
148
 
149
149
  // src/defaultSystemComponentResolver.tsx
150
150
  import {
151
- CANVAS_PERSONALIZATION_ALGORITHM_PARAM,
152
- CANVAS_PERSONALIZATION_EVENT_NAME_PARAM,
153
- CANVAS_PERSONALIZATION_TAKE_PARAM,
154
151
  mapSlotToPersonalizedVariations,
155
152
  mapSlotToTestVariations
156
153
  } from "@uniformdev/canvas";
@@ -174,7 +171,7 @@ var defaultSystemComponentResolver = {
174
171
  );
175
172
  },
176
173
  personalization: (component, key, renderChild) => {
177
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
174
+ var _a, _b, _c, _d, _e, _f, _g;
178
175
  const pzComponent = component;
179
176
  const processedVariants = mapSlotToPersonalizedVariations((_a = pzComponent == null ? void 0 : pzComponent.slots) == null ? void 0 : _a.pz);
180
177
  return /* @__PURE__ */ React2.createElement(
@@ -182,10 +179,9 @@ var defaultSystemComponentResolver = {
182
179
  {
183
180
  key,
184
181
  variations: processedVariants,
185
- count: Number((_d = (_c = (_b = pzComponent.parameters) == null ? void 0 : _b[CANVAS_PERSONALIZATION_TAKE_PARAM]) == null ? void 0 : _c.value) != null ? _d : 1),
186
- name: (_g = (_f = (_e = pzComponent.parameters) == null ? void 0 : _e[CANVAS_PERSONALIZATION_EVENT_NAME_PARAM]) == null ? void 0 : _f.value) != null ? _g : "Untitled Personalization",
187
- component: (variation) => renderChild(variation, 0),
188
- algorithm: (_i = (_h = pzComponent.parameters) == null ? void 0 : _h[CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _i.value
182
+ count: Number((_d = (_c = (_b = pzComponent.parameters) == null ? void 0 : _b.count) == null ? void 0 : _c.value) != null ? _d : 1),
183
+ name: (_g = (_f = (_e = pzComponent.parameters) == null ? void 0 : _e.trackingEventName) == null ? void 0 : _f.value) != null ? _g : "Untitled Personalization",
184
+ component: (variation) => renderChild(variation, 0)
189
185
  }
190
186
  );
191
187
  }
package/dist/index.js CHANGED
@@ -216,7 +216,7 @@ var defaultSystemComponentResolver = {
216
216
  );
217
217
  },
218
218
  personalization: (component, key, renderChild) => {
219
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
219
+ var _a, _b, _c, _d, _e, _f, _g;
220
220
  const pzComponent = component;
221
221
  const processedVariants = (0, import_canvas2.mapSlotToPersonalizedVariations)((_a = pzComponent == null ? void 0 : pzComponent.slots) == null ? void 0 : _a.pz);
222
222
  return /* @__PURE__ */ React2.createElement(
@@ -224,10 +224,9 @@ var defaultSystemComponentResolver = {
224
224
  {
225
225
  key,
226
226
  variations: processedVariants,
227
- count: Number((_d = (_c = (_b = pzComponent.parameters) == null ? void 0 : _b[import_canvas2.CANVAS_PERSONALIZATION_TAKE_PARAM]) == null ? void 0 : _c.value) != null ? _d : 1),
228
- name: (_g = (_f = (_e = pzComponent.parameters) == null ? void 0 : _e[import_canvas2.CANVAS_PERSONALIZATION_EVENT_NAME_PARAM]) == null ? void 0 : _f.value) != null ? _g : "Untitled Personalization",
229
- component: (variation) => renderChild(variation, 0),
230
- algorithm: (_i = (_h = pzComponent.parameters) == null ? void 0 : _h[import_canvas2.CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _i.value
227
+ count: Number((_d = (_c = (_b = pzComponent.parameters) == null ? void 0 : _b.count) == null ? void 0 : _c.value) != null ? _d : 1),
228
+ name: (_g = (_f = (_e = pzComponent.parameters) == null ? void 0 : _e.trackingEventName) == null ? void 0 : _f.value) != null ? _g : "Untitled Personalization",
229
+ component: (variation) => renderChild(variation, 0)
231
230
  }
232
231
  );
233
232
  }
package/dist/index.mjs CHANGED
@@ -148,9 +148,6 @@ import React6 from "react";
148
148
 
149
149
  // src/defaultSystemComponentResolver.tsx
150
150
  import {
151
- CANVAS_PERSONALIZATION_ALGORITHM_PARAM,
152
- CANVAS_PERSONALIZATION_EVENT_NAME_PARAM,
153
- CANVAS_PERSONALIZATION_TAKE_PARAM,
154
151
  mapSlotToPersonalizedVariations,
155
152
  mapSlotToTestVariations
156
153
  } from "@uniformdev/canvas";
@@ -174,7 +171,7 @@ var defaultSystemComponentResolver = {
174
171
  );
175
172
  },
176
173
  personalization: (component, key, renderChild) => {
177
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
174
+ var _a, _b, _c, _d, _e, _f, _g;
178
175
  const pzComponent = component;
179
176
  const processedVariants = mapSlotToPersonalizedVariations((_a = pzComponent == null ? void 0 : pzComponent.slots) == null ? void 0 : _a.pz);
180
177
  return /* @__PURE__ */ React2.createElement(
@@ -182,10 +179,9 @@ var defaultSystemComponentResolver = {
182
179
  {
183
180
  key,
184
181
  variations: processedVariants,
185
- count: Number((_d = (_c = (_b = pzComponent.parameters) == null ? void 0 : _b[CANVAS_PERSONALIZATION_TAKE_PARAM]) == null ? void 0 : _c.value) != null ? _d : 1),
186
- name: (_g = (_f = (_e = pzComponent.parameters) == null ? void 0 : _e[CANVAS_PERSONALIZATION_EVENT_NAME_PARAM]) == null ? void 0 : _f.value) != null ? _g : "Untitled Personalization",
187
- component: (variation) => renderChild(variation, 0),
188
- algorithm: (_i = (_h = pzComponent.parameters) == null ? void 0 : _h[CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _i.value
182
+ count: Number((_d = (_c = (_b = pzComponent.parameters) == null ? void 0 : _b.count) == null ? void 0 : _c.value) != null ? _d : 1),
183
+ name: (_g = (_f = (_e = pzComponent.parameters) == null ? void 0 : _e.trackingEventName) == null ? void 0 : _f.value) != null ? _g : "Untitled Personalization",
184
+ component: (variation) => renderChild(variation, 0)
189
185
  }
190
186
  );
191
187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "20.6.2-alpha.11+af78064791",
3
+ "version": "20.7.1-alpha.4+20185a97ff",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,10 +45,10 @@
45
45
  "document": "api-extractor run --local"
46
46
  },
47
47
  "dependencies": {
48
- "@uniformdev/canvas": "20.6.2-alpha.11+af78064791",
49
- "@uniformdev/context": "20.6.2-alpha.11+af78064791",
50
- "@uniformdev/context-react": "20.6.2-alpha.11+af78064791",
51
- "@uniformdev/richtext": "20.6.2-alpha.11+af78064791"
48
+ "@uniformdev/canvas": "20.7.1-alpha.4+20185a97ff",
49
+ "@uniformdev/context": "20.7.1-alpha.4+20185a97ff",
50
+ "@uniformdev/context-react": "20.7.1-alpha.4+20185a97ff",
51
+ "@uniformdev/richtext": "20.7.1-alpha.4+20185a97ff"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "immer": ">= 10",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "af78064791c47044f8ba447bbe1221f672f6de3e"
70
+ "gitHead": "20185a97ff6c2de2f871223af12d73583fe300af"
71
71
  }